/* Plateforme du club : système « Banque privée » (direction A).
   Papier, encre et bleu de Prusse ; titres en Newsreader, texte en Instrument Sans.
   Pas de cartes arrondies : des filets, des marges, des chiffres posés.
   Polices servies par le site lui-même (aucun appel à Google). */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/newsreader-latin-opsz-normal.f94a697b1650.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/newsreader-latin-ext-opsz-normal.2e01db0610b1.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/newsreader-latin-opsz-italic.e97067eb043b.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/newsreader-latin-ext-opsz-italic.43736a955d60.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/instrument-sans-latin-wght-normal.fa41c43a3d8e.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/instrument-sans-latin-ext-wght-normal.1ff13d113ba4.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --papier: #fbfbf9;
  --blanc: #ffffff;
  --encre: #14171c;
  --pierre: #4a5160;
  --filet: #e3e2dd;
  --pointille: #bebdb6;
  --prusse: #1e3a6e;
  --prusse-pale: #eef1f6;
  --prusse-clair: #c9d3e8;
  --ok: #2e6b47;
  --ok-pale: #e7f1ea;
  --alerte: #8a4b0f;
  --alerte-pale: #f6ede2;
  --danger: #9b2c2c;
  --danger-pale: #f7e6e6;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --largeur: 1180px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font: 15.5px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--prusse); }
a:hover { color: var(--encre); }
:focus-visible { outline: 2px solid var(--prusse); outline-offset: 3px; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; }
.discret { color: var(--pierre); }
.petit { font-size: 14px; }

/* ------------------------------------------------------------- En-tête */
.entete { border-bottom: 1px solid var(--filet); background: var(--papier); }
.entete .contenu {
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 22px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 40px;
}
.marque { display: flex; align-items: center; gap: 12px; color: var(--encre); text-decoration: none; margin-right: auto; }
.marque span { font-family: var(--serif); font-size: 23px; font-weight: 400; letter-spacing: -0.01em; }
.marque:hover { color: var(--encre); }
.nav { display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: 12.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.nav a { color: var(--pierre); text-decoration: none; padding: 6px 0; }
.nav a:hover { color: var(--encre); }
.nav a[aria-current="page"] { color: var(--encre); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.compte { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.compte .separateur { width: 1px; height: 16px; background: var(--filet); }
.compte form { display: inline; }
.lien-bouton { background: none; border: 0; padding: 6px 0; color: var(--pierre); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--filet); }
.lien-bouton:hover { color: var(--encre); }
/* Gestion : marque et compte en haut, navigation pleine largeur dessous. */
.entete-gestion .nav { order: 3; flex-basis: 100%; gap: 6px 24px; padding-top: 12px; border-top: 1px solid var(--filet); }

/* ------------------------------------------------------------- Mise en page */
main {
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 64px 40px 72px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}
main.etroit { max-width: 680px; gap: 36px; }
.rangee { display: flex; flex-wrap: wrap; gap: 40px 48px; }
.rangee > * { min-width: 0; }
.rangee .large { flex: 2 1 520px; }
.rangee .moyen { flex: 1 1 380px; }
.rangee .etroit { flex: 1 1 300px; }
.rangee.bas { align-items: flex-end; }

@media (max-width: 640px) {
  .entete .contenu { padding: 16px; gap: 12px 20px; }
  main { padding: 40px 16px 56px; gap: 44px; }
  .fiche { padding: 24px 20px; }
}

/* ------------------------------------------------------------- Typographie */
h1 { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(42px, 6vw, 68px); line-height: 1.02; letter-spacing: -0.025em; text-wrap: balance; }
h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.2; }
.surtitre { font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--pierre); }
.lede { font-size: 17px; color: var(--pierre); max-width: 54ch; }
.titre-bloc { display: flex; flex-direction: column; gap: 14px; }
.en-tete-section { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 16px; }
.chiffre-serif { font-family: var(--serif); font-variant-numeric: lining-nums tabular-nums; }

/* ------------------------------------------------------------- Messages */
.messages { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.messages li { padding: 12px 16px; background: var(--prusse-pale); color: var(--prusse); }
.messages .success { background: var(--ok-pale); color: var(--ok); }
.messages .error { background: var(--danger-pale); color: var(--danger); }
.messages .warning { background: var(--alerte-pale); color: var(--alerte); }

/* ------------------------------------------------------------- Listes à filets */
.lignes { display: flex; flex-direction: column; list-style: none; padding: 0; }
.ligne {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px;
  padding: 20px 0; border-top: 1px solid var(--filet); color: var(--encre); text-decoration: none;
}
.lignes > :first-child { border-top-color: var(--encre); }
.lignes > :last-child { border-bottom: 1px solid var(--filet); }
.ligne .corps { flex: 1 1 380px; min-width: 0; }
.ligne .titre { font-weight: 600; font-size: 17px; }
.ligne .desc { color: var(--pierre); }
.lien-souligne { font-weight: 500; color: var(--prusse); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.lien-souligne:hover { color: var(--encre); }

/* Relevé : libellé à gauche, valeur à droite */
.releve { display: flex; flex-direction: column; font-size: 14.5px; }
.releve > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--filet); }
.releve > div:first-child { border-top-color: var(--encre); }
.releve > div:last-child { border-bottom: 1px solid var(--filet); }
.releve dt { color: var(--pierre); }
.releve dd { text-align: right; }
.releve .a-faire { color: var(--prusse); font-weight: 500; }

/* Registre à points de conduite */
.registre { list-style: none; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--encre); }
.registre li { display: flex; align-items: baseline; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--filet); }
.registre .conduite { flex-grow: 1; border-bottom: 1px dotted var(--pointille); transform: translateY(-4px); min-width: 24px; }
.registre .valeur { font-family: var(--serif); font-style: italic; font-size: 18px; }

/* ------------------------------------------------------------- Fiches */
.fiche, .carte {
  background: var(--blanc);
  border: 1px solid var(--filet);
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.fiche.vide { background: transparent; border-style: dashed; border-color: var(--pointille); }
.bloc-club { background: var(--prusse); color: var(--blanc); padding: 36px 40px; display: flex; flex-direction: column; gap: 22px; }
.bloc-club .surtitre { color: var(--prusse-clair); }
.bloc-club .citation { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 27px; line-height: 1.28; }
.bloc-club a { color: var(--blanc); }
.bloc-club .chiffres { border-top: 1px solid rgba(255, 255, 255, 0.25); padding-top: 18px; }
.bloc-club .chiffre span { color: var(--prusse-clair); }

.chiffres { display: flex; flex-wrap: wrap; gap: 16px 44px; }
.chiffre { display: flex; flex-direction: column; }
.chiffre b { font-family: var(--serif); font-weight: 300; font-size: 40px; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.chiffre span { font-size: 12.5px; color: var(--pierre); margin-top: 8px; letter-spacing: 0.04em; }

/* ------------------------------------------------------------- Formulaires */
form.formulaire { display: flex; flex-direction: column; gap: 24px; }
.champ { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.champ > label, .champ legend, .champ .libelle {
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pierre);
}
.champ .aide { color: var(--pierre); font-size: 13.5px; }
.champ .erreurs { color: var(--danger); font-size: 14px; margin: 0; padding-left: 18px; }
fieldset.champ { border: 0; padding: 0; margin: 0; }
fieldset.champ legend { padding: 0; margin-bottom: 10px; }
input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="number"], input[type="tel"], select {
  width: 100%;
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--encre);
  border-radius: 0;
  background: transparent;
  color: var(--encre);
  font: 400 17px var(--sans);
}
select {
  cursor: pointer; -webkit-appearance: none; appearance: none; padding-right: 28px;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2314171c' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 4px center;
}

/* Menus déroulants (static/js/menus.js) : bouton souligné comme les champs, liste à filets */
.menu { position: relative; width: 100%; }
.menu .menu-natif { position: absolute; inset: auto 0 0 0; width: 100%; height: 1px; opacity: 0; pointer-events: none; }
.menu-bouton {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 44px; padding: 8px 0; margin: 0;
  border: 0; border-bottom: 1px solid var(--encre); border-radius: 0; background: transparent;
  color: var(--encre); font: 400 17px var(--sans); text-align: left; cursor: pointer;
}
.menu.encadre .menu-bouton { border: 1px solid var(--filet); background: var(--blanc); padding-right: 10px; }
.menu-bouton::after {
  content: ""; flex: none; width: 12px; height: 8px; margin-right: 4px; transition: transform .15s ease;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2314171c' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat center;
}
.menu.ouvert .menu-bouton::after { transform: rotate(180deg); }
.menu-texte { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-bouton.sans-choix .menu-texte { color: var(--pierre); }
.menu-bouton:hover { border-bottom-color: var(--prusse); }
.menu-bouton:focus-visible, .menu.ouvert .menu-bouton { outline: none; border-bottom: 2px solid var(--prusse); }
.menu.encadre .menu-bouton:focus-visible, .menu.encadre.ouvert .menu-bouton { border: 1px solid var(--prusse); }
.menu-bouton:disabled { color: var(--pierre); cursor: default; border-bottom-style: dotted; }
.menu.invalide .menu-bouton { border-bottom-color: var(--danger); }
.menu-liste {
  position: absolute; z-index: 60; left: 0; top: calc(100% + 6px);
  min-width: 100%; width: max-content; max-width: min(360px, calc(100vw - 32px));
  max-height: 280px; overflow-y: auto; margin: 0; padding: 6px 0; list-style: none;
  background: var(--blanc); border: 1px solid var(--encre); border-radius: 0;
  box-shadow: 0 14px 30px -18px rgba(20, 23, 28, .35);
}
.menu.vers-le-haut .menu-liste { top: auto; bottom: calc(100% + 6px); }
.menu.a-droite .menu-liste { left: auto; right: 0; }
.menu-liste li {
  position: relative; display: flex; align-items: center; min-height: 40px; padding: 8px 18px 8px 22px;
  font: 400 15px/1.35 var(--sans); color: var(--encre); cursor: pointer; text-transform: none; letter-spacing: 0;
}
.menu-liste li + li { border-top: 1px solid var(--filet); }
.menu-liste li.actif { background: var(--prusse-pale); }
.menu-liste li[aria-selected="true"] { font-weight: 500; }
.menu-liste li[aria-selected="true"]::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--prusse);
}
.menu-liste li.sans-choix { color: var(--pierre); font-style: italic; font-family: var(--serif); font-size: 15.5px; }
.menu-liste li[aria-disabled="true"] { color: var(--pointille); cursor: default; }
@media (max-width: 640px) { .menu-liste li { min-height: 46px; font-size: 16px; } }
textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--filet); border-radius: 0;
  background: var(--blanc); color: var(--encre); font: inherit;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-bottom: 2px solid var(--prusse); }
textarea:focus-visible { border: 1px solid var(--prusse); }
.champ input[type="checkbox"], .case input { accent-color: var(--encre); width: 18px; height: 18px; }

/* Choix multiples et uniques : étiquettes à filet, l'option choisie passe en encre */
fieldset.champ > div, .choix > div { display: flex; flex-wrap: wrap; gap: 8px; }
fieldset.champ > div > div, .choix > div > div { position: relative; }
fieldset.champ > div label, .choix > div label {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--filet); background: var(--blanc); color: var(--encre);
  font-size: 14.5px; cursor: pointer; user-select: none;
}
fieldset.champ > div label:hover, .choix > div label:hover { border-color: var(--encre); }
fieldset.champ > div input, .choix > div input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
fieldset.champ > div label:has(input:checked), .choix > div label:has(input:checked) { background: var(--encre); border-color: var(--encre); color: var(--blanc); }
fieldset.champ > div label:has(input:focus-visible), .choix > div label:has(input:focus-visible) { outline: 2px solid var(--prusse); outline-offset: 2px; }
.case, .champ > label.case {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 15px; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--encre);
}
.case input { margin-top: 3px; flex-shrink: 0; }

/* Niveaux d'intérêt : une ligne par classe d'actifs */
.niveaux { display: flex; flex-direction: column; border-top: 1px solid var(--encre); }
.niveau { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 18px 0; border-bottom: 1px solid var(--filet); }
.niveau .nom { flex: 1 1 260px; min-width: 0; font-weight: 600; font-size: 16px; }
.niveau .nom small { display: block; font-weight: 400; color: var(--pierre); font-size: 14px; margin-top: 2px; }
.niveau .choix > div { gap: 0; }
.niveau .choix > div > div + div label { border-left: 0; }
.niveau .choix > div label { padding: 0 14px; font-size: 14px; }

/* ------------------------------------------------------------- Boutons */
.boutons { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 24px; border: 1px solid var(--encre); border-radius: 0;
  background: var(--encre); color: var(--blanc);
  font: 500 12.5px var(--sans); letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
}
.bouton:hover { background: var(--prusse); border-color: var(--prusse); color: var(--blanc); }
.bouton.secondaire { background: transparent; color: var(--encre); }
.bouton.secondaire:hover { background: var(--encre); color: var(--blanc); }
.bouton.danger { background: var(--danger); border-color: var(--danger); }

/* ------------------------------------------------------------- Tableaux */
.tableau { overflow-x: auto; border-top: 1px solid var(--encre); }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th, td { text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--filet); vertical-align: top; }
th { font-size: 11.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pierre); }
td.nombre, th.nombre { text-align: right; font-variant-numeric: tabular-nums; }

/* Statuts : petites capitales et point de couleur */
.pastille { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--prusse); }
.pastille::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pastille.ok { color: var(--ok); }
.pastille.alerte { color: var(--alerte); }
.pastille.danger { color: var(--danger); }

/* ------------------------------------------------------------- Divers */
pre.charte {
  white-space: pre-wrap; margin: 0; padding: 24px 28px; background: var(--blanc); border: 1px solid var(--filet);
  font: 400 17px/1.6 var(--serif); max-height: 420px; overflow: auto;
}
.constructeur { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 980px) { .constructeur { grid-template-columns: 320px minmax(0, 1fr); } }
.constructeur .criteres fieldset.champ > div { gap: 6px; }
.constructeur .criteres fieldset.champ > div label { min-height: 36px; padding: 0 12px; font-size: 13.5px; }
.colonne { display: flex; flex-direction: column; gap: 24px; min-width: 0; }

.pied { border-top: 1px solid var(--filet); }
.pied .contenu {
  max-width: var(--largeur); margin: 0 auto; padding: 22px 40px;
  display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 13px; color: var(--pierre);
}
.pied .contenu span { margin-right: auto; }
.pied a { color: var(--pierre); }
@media (max-width: 640px) { .pied .contenu { padding: 20px 16px; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Champ fichier (pièces KYB, dataroom, import) : le bouton du navigateur, arrondi et en police système,
   devient un bouton à filet sans arrondi, comme .bouton.secondaire. */
input[type="file"] { max-width: 100%; font: 400 14px var(--sans); color: var(--pierre); }
input[type="file"]::file-selector-button {
  margin-right: 14px; min-height: 40px; padding: 0 16px; border: 1px solid var(--encre); border-radius: 0;
  background: transparent; color: var(--encre); font: 500 11.5px var(--sans); letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer;
}
input[type="file"]::file-selector-button:hover { background: var(--encre); color: var(--blanc); }

/* Teaser : avertissement entre deux filets avant d'entrer dans un deal. */
.note { border-top: 1px solid var(--encre); border-bottom: 1px solid var(--filet); padding: 18px 0; display: flex; flex-direction: column; gap: 8px; }
.note p { margin: 0; }

/* Fiche deal : mémorandum (sommaire, rubriques numérotées) + chiffres en tête et encadré d'engagement. */
.fil { font-size: 13px; color: var(--pierre); }
.fil a { color: var(--pierre); }
.bande-chiffres { display: flex; flex-wrap: wrap; column-gap: 32px; margin: 0; }
.bande-chiffres > div { flex: 1 1 160px; padding: 18px 0; border-top: 1px solid var(--encre); }
.bande-chiffres dt { font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pierre); }
.bande-chiffres dd { margin: 6px 0 0; font-family: var(--serif); font-weight: 300; font-size: 30px; line-height: 1.05; font-variant-numeric: lining-nums tabular-nums; }
.encadre-engagement { background: var(--prusse); color: var(--blanc); padding: 30px 32px; display: flex; flex-direction: column; gap: 16px; }
.encadre-engagement .surtitre { color: var(--prusse-clair); }
.encadre-engagement .releve > div, .encadre-engagement .releve > div:first-child, .encadre-engagement .releve > div:last-child { border-color: rgba(255, 255, 255, 0.25); }
.encadre-engagement .releve dt, .encadre-engagement .petit { color: var(--prusse-clair); }
.encadre-engagement a { color: var(--blanc); }
.encadre-engagement .bouton { background: var(--blanc); color: var(--encre); border-color: var(--blanc); }
.encadre-engagement .lien-souligne { color: var(--blanc); text-decoration-color: rgba(255, 255, 255, 0.5); }
.encadre-engagement .pastille { background: transparent; color: var(--blanc); border-color: rgba(255, 255, 255, 0.5); }
.memorandum { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.sommaire { flex: 0 0 210px; position: sticky; top: 24px; display: flex; flex-direction: column; font-size: 14.5px; border-bottom: 1px solid var(--filet); }
.sommaire a { display: flex; gap: 14px; padding: 9px 0; border-top: 1px solid var(--filet); color: var(--pierre); text-decoration: none; }
.sommaire a:first-child { border-top-color: var(--encre); color: var(--encre); }
.sommaire a:hover { color: var(--encre); }
.sommaire a span { width: 22px; font-family: var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.memorandum article { flex: 1 1 560px; min-width: 0; max-width: 780px; display: flex; flex-direction: column; gap: 44px; }
.memorandum section { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 24px; }
.memorandum h2 .numero { margin-right: 14px; color: var(--pierre); font-size: 18px; font-variant-numeric: lining-nums; }
.these { margin: 0; padding-left: 22px; border-left: 2px solid var(--prusse); font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 25px; line-height: 1.3; }
.conditions-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.risques { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--encre); }
.risques li { padding: 11px 0; border-bottom: 1px solid var(--filet); }

/* Dataroom : dossiers à gauche, registre des documents, aperçu filigrané à droite. */
.dataroom { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.dataroom-nav { flex: 0 0 220px; display: flex; flex-direction: column; font-size: 14.5px; border-bottom: 1px solid var(--filet); }
.dataroom-nav .surtitre { padding-bottom: 10px; }
.dataroom-nav a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--filet); color: var(--pierre); text-decoration: none; font-variant-numeric: tabular-nums; }
.dataroom-nav a:first-of-type { border-top-color: var(--encre); }
.dataroom-nav a[aria-current] { color: var(--encre); font-weight: 600; }
.dataroom-corps { flex: 1 1 560px; min-width: 0; display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.dataroom-liste { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.dataroom-liste .en-tete-section { padding-bottom: 10px; }
.surtitre.accent { color: var(--prusse); }
.docs { border-top: 1px solid var(--encre); }
.doc { display: grid; grid-template-columns: minmax(0, 1fr) 48px 84px 80px auto; gap: 14px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--filet); font-size: 14.5px; }
.doc.avant .nom { font-weight: 600; }
.doc .tags { display: block; font-size: 12.5px; font-weight: 400; color: var(--pierre); }
.doc .meta { font-size: 13px; color: var(--pierre); font-variant-numeric: tabular-nums; }
.doc .nouveau { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--prusse); }
.doc .actions { display: flex; gap: 14px; font-size: 13.5px; }
.doc[aria-current] { background: var(--prusse-pale); }
.avec-apercu .dataroom-liste { flex-basis: 380px; }
.avec-apercu .doc { grid-template-columns: minmax(0, 1fr) auto auto; }
.avec-apercu .doc .col-option { display: none; }
.apercu { flex: 1 1 360px; position: sticky; top: 24px; display: flex; flex-direction: column; gap: 10px; }
.apercu .en-tete-section { padding-bottom: 0; }
.apercu iframe { width: 100%; aspect-ratio: 0.72; border: 1px solid var(--filet); background: var(--blanc); }
@media (max-width: 760px) {
  .sommaire, .dataroom-nav { position: static; flex-basis: 100%; }
  .conditions-grille { grid-template-columns: 1fr; }
  .doc { grid-template-columns: minmax(0, 1fr) auto; }
  .doc .col-option, .doc .actions a + a { display: none; }
}

/* Accueil public : étapes d'entrée dans le club, entre filets. */
.etapes-entree { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--encre); }
.etapes-entree li { display: flex; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--filet); }
.etapes-entree li > span { font-family: var(--serif); font-size: 26px; font-weight: 300; line-height: 1.1; color: var(--pierre); font-variant-numeric: lining-nums; min-width: 40px; }
.etapes-entree strong { font-size: 17px; font-weight: 600; }
.etapes-entree p { margin: 4px 0 0; color: var(--pierre); max-width: 62ch; }

/* Vitrine publique : thèse, familles de projets, engagements, équipe, risques. */
.vitrine { display: flex; flex-direction: column; gap: 20px; }
.trois-colonnes, .deux-colonnes { display: grid; gap: 28px 40px; border-top: 1px solid var(--encre); padding-top: 22px; }
.trois-colonnes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.deux-colonnes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.trois-colonnes > div, .deux-colonnes > div { display: flex; flex-direction: column; gap: 8px; }
.trois-colonnes p, .deux-colonnes p { margin: 0; color: var(--pierre); }
.vitrine .citation, .bloc-club .citation { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 20px; line-height: 1.35; color: var(--encre); }
.bloc-club .citation { font-size: 27px; color: var(--blanc); }
.bloc-club .bouton { background: var(--blanc); color: var(--encre); border-color: var(--blanc); }
.risques-detail { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--encre); }
.risques-detail li { padding: 20px 0; border-bottom: 1px solid var(--filet); }
.risques-detail h2 { font-size: 24px; }
.risques-detail p { margin: 8px 0 0; }
@media (max-width: 760px) { .trois-colonnes, .deux-colonnes { grid-template-columns: 1fr; } }

/* Pages légales : titres et listes saisis au back-office. */
.texte-legal { display: flex; flex-direction: column; gap: 14px; }
.texte-legal h2 { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--encre); font-size: 24px; }
.texte-legal p { margin: 0; }
.texte-legal ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

/* Charte affichée à l'invitation : longue, donc dans un cadre qui défile. */
.charte-defilante { max-height: 360px; overflow-y: auto; padding: 4px 18px 18px; border: 1px solid var(--filet); background: var(--blanc); }
.charte-defilante .texte-legal h2 { font-size: 20px; }

/* Lot 3 : références, IBAN, instructions de virement */
code, .code { font-variant-numeric: tabular-nums; letter-spacing: 0.04em; font-family: inherit; font-weight: 500; }
.instructions-virement dd { font-size: 17px; }
.instructions-virement .code { font-size: 18px; letter-spacing: 0.08em; color: var(--prusse); }
details > summary { cursor: pointer; color: var(--prusse); }
details[open] > summary { margin-bottom: 10px; }

/* ------------------------------------------------------------- Téléphone (essais iPhone du 20/11/2026) */
/* Champs sans type et dates : même style que les autres. */
input:not([type]), input[type="date"], input[type="search"], input[type="datetime-local"] {
  width: 100%; min-height: 44px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--encre); border-radius: 0;
  background: transparent; color: var(--encre); font: 400 17px var(--sans);
}
.saisie-code { font-size: 26px !important; letter-spacing: 0.35em; font-variant-numeric: tabular-nums; max-width: 12ch; }
.instructions-virement dd .lien-bouton { margin-left: 10px; font-size: 14px; }
@media (max-width: 640px) {
  /* Safari zoome sur un champ dont le texte fait moins de 16 px. */
  input, select, textarea { font-size: max(16px, 1em); }
  textarea { font-size: 16px; }
  /* En-tête : marque et déconnexion sur une ligne, menu sur une ligne qui défile. */
  .entete .contenu { padding: 12px 16px 0; gap: 4px 16px; }
  .marque span { font-size: 20px; }
  .compte { order: 2; font-size: 13.5px; }
  .compte > span:not(.separateur), .compte .separateur { display: none; }
  .entete .nav, .entete-gestion .nav {
    order: 3; flex-basis: 100%; flex-wrap: nowrap; overflow-x: auto; gap: 22px; padding: 2px 0 6px;
    margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    border-top: 0;
  }
  .entete .nav::-webkit-scrollbar { display: none; }
  .entete .nav a { white-space: nowrap; padding: 10px 0; }
  main { padding-top: 28px; }
  /* Relevés : la valeur passe sous le libellé quand la ligne est longue (IBAN, références). */
  .instructions-virement > div { flex-direction: column; gap: 2px; }
  .instructions-virement dd { text-align: left; }
  .masque-mobile { display: none; }
}

/* ------------------------------------------------------------- Schémas des montages (21/11/2026) */
.schema { margin: 8px 0 20px; max-width: 460px; }
.schema svg { display: block; width: 100%; height: auto; }
.schema .boite { fill: var(--blanc); stroke: var(--encre); stroke-width: 1; }
.schema .boite.spv { fill: var(--prusse-pale); stroke: var(--prusse); }
.schema .titre { font-family: var(--serif); font-size: 17px; fill: var(--encre); text-anchor: middle; }
.schema .sous { font-family: var(--sans); font-size: 13px; fill: var(--pierre); text-anchor: middle; }
.schema .legende { font-family: var(--sans); font-size: 12.5px; fill: var(--pierre); }
.schema .fleche { stroke: var(--prusse); stroke-width: 1.5; }
.schema .fleche-retour { stroke: var(--pierre); stroke-width: 1.2; stroke-dasharray: 4 3; }
.schema .pointe { fill: var(--prusse); }
.schema .pointe-retour { fill: var(--pierre); }
.montages-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px 48px; }
.releve.texte > div { display: block; }
.releve.texte dd { text-align: left; margin-top: 4px; }

/* Double authentification et équipe */
.etapes-double-auth { padding-left: 20px; margin: 0 0 28px; }
.etapes-double-auth li { margin-bottom: 14px; }
.qr { margin: 14px 0 6px; width: 208px; border: 1px solid var(--filet); background: var(--blanc); padding: 8px; }
.qr svg { display: block; width: 100%; height: auto; }
code.cle, .codes-secours code { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.04em; }
code.cle { word-break: break-all; }
.codes-secours { columns: 2; column-gap: 32px; padding-left: 24px; margin: 0 0 28px; font-size: 17px; }
.codes-secours li { padding: 6px 0; border-bottom: 1px solid var(--filet); break-inside: avoid; }
.actions-equipe form { margin: 0 0 4px; }
.actions-equipe .en-ligne { display: flex; gap: 8px; align-items: center; }
.actions-equipe select { font: inherit; font-size: 14px; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Adhésions : grille comparative des niveaux (filets, colonne du niveau actuel teintée) */
.grille-adhesion table { min-width: 640px; }
.grille-adhesion th, .grille-adhesion td { padding: 12px 14px; }
.grille-adhesion tr > :first-child { padding-left: 0; width: 170px; }
.grille-adhesion thead th { vertical-align: bottom; }
.grille-adhesion .nom-niveau { display: block; font-family: var(--serif); font-size: 22px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--encre); }
.grille-adhesion .mention-niveau { display: block; margin-top: 4px; color: var(--prusse); }
.grille-adhesion .niveau-actuel { background: var(--prusse-pale); }
.grille-adhesion thead .niveau-actuel { box-shadow: inset 0 2px 0 var(--prusse); }
.grille-adhesion td.chiffre-serif { font-size: 19px; }
.grille-adhesion .avantages { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.grille-adhesion .ligne-action td { border-bottom: none; }
.mention-adhesion { max-width: 72ch; margin: 14px 0 0; }

/* Adhésions : simulateur « Quel niveau pour vous ? » et graphique SVG (couleurs du design A) */
.simulateur-adhesion { display: flex; flex-direction: column; gap: 16px; }
.saisie-montant label { display: block; font-weight: 500; margin-bottom: 8px; }
.curseur-montant { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.curseur-montant input[type="range"] { flex: 1 1 260px; accent-color: var(--prusse); }
.champ-montant { display: inline-flex; align-items: center; gap: 6px; }
.champ-montant input { width: 130px; text-align: right; font-variant-numeric: tabular-nums; }
.resume-simulation { margin: 0; font-family: var(--serif); font-size: 20px; min-height: 1.4em; }
.resultats-simulation tr.plus-avantageux td { background: var(--prusse-pale); }
.resultats-simulation tr.plus-avantageux .verdict { color: var(--prusse); font-weight: 500; }
.graphique-adhesion { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.cadre-graphique { overflow-x: auto; border-top: 1px solid var(--encre); padding-top: 8px; }
.cadre-graphique svg { display: block; width: 100%; min-width: 440px; height: auto; font-family: var(--sans, inherit); }
.graphique-adhesion .grille { stroke: var(--filet); stroke-width: 1; }
.graphique-adhesion .axe { stroke: var(--encre); stroke-width: 1; }
.graphique-adhesion .graduation { font-size: 13px; fill: var(--pierre); font-variant-numeric: tabular-nums; }
.graphique-adhesion .enveloppe { fill: none; stroke: var(--prusse); stroke-opacity: 0.18; stroke-width: 9; stroke-linecap: butt; }
.graphique-adhesion .ligne-niveau, .graphique-adhesion .fin-niveau { fill: none; stroke-width: 2; }
.graphique-adhesion .style-1 { stroke: var(--pierre); fill: var(--pierre); stroke-dasharray: 5 4; }
.graphique-adhesion .style-2 { stroke: var(--prusse); fill: var(--prusse); }
.graphique-adhesion .style-3 { stroke: var(--encre); fill: var(--encre); }
.graphique-adhesion .style-4 { stroke: var(--prusse); fill: var(--prusse); stroke-dasharray: 2 3; }
.graphique-adhesion .fin-niveau { stroke-dasharray: none; }
.graphique-adhesion .nom-ligne { font-size: 14px; stroke: none; font-weight: 500; }
.graphique-adhesion .bascule { stroke: var(--pierre); stroke-width: 1; stroke-dasharray: 1 3; }
.graphique-adhesion .numero-bascule { font-size: 12px; fill: var(--pierre); font-weight: 600; }
.graphique-adhesion .curseur-graphique { stroke: var(--prusse); stroke-width: 1.5; }
.points-bascule { margin: 0; padding-left: 20px; font-size: 14.5px; display: flex; flex-direction: column; gap: 6px; }
.valeurs-graphique summary { font-size: 14px; color: var(--prusse); }
.mention-adhesion + .simulateur-adhesion, .grille-adhesion + .simulateur-adhesion { margin-top: 36px; }
/* Curseur pleine largeur, champ du montant compact (les règles générales des champs étiraient le champ et réduisaient le curseur). */
.simulateur-adhesion .curseur-montant input[type="range"] { flex: 1 1 100%; width: 100%; min-width: 0; height: 28px; }
.simulateur-adhesion .champ-montant { flex: 0 0 auto; }
.simulateur-adhesion .champ-montant input[type="number"] { width: 150px; max-width: 150px; }

/* Adhésion unique : respiration entre le relevé, les avantages et le bouton. */
.adhesion-unique h3 { margin: 28px 0 8px; }
.adhesion-unique .boutons { margin-top: 20px; }

/* Demande d'adhésion : une page, des sections séparées par des filets, d'abord pour le téléphone. */
form.formulaire-interet { gap: 48px; }
.section-formulaire { display: flex; flex-direction: column; gap: 24px; }
.section-formulaire > .en-tete-section { padding-bottom: 12px; border-bottom: 1px solid var(--encre); }
.section-formulaire > p { margin: 0; }
.liste-risques, .liste-avantages { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
fieldset.groupe-montants { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
fieldset.groupe-montants > legend { padding: 0; margin-bottom: 4px; font-size: 11.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pierre); }
fieldset.groupe-montants .aide { color: var(--pierre); font-size: 13.5px; }
.montants { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px 24px; }
.mentions-candidature ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.formulaire-interet fieldset.champ > div label { padding-block: 8px; line-height: 1.35; }
.section-formulaire > .note { border-top: 0; padding-top: 0; }

/* Deux clubs sur le même moteur : La Relève (soignants) garde le bleu de Prusse, Le Bloc passe en vert sapin. */
.theme-bloc { --prusse: #1d5546; --prusse-pale: #ebf2ee; --prusse-clair: #c5dbd1; }

/* Logo « Nom | Club deal » */
.marque .nom-club { display: inline-flex; align-items: baseline; }
.marque .pipe { font-family: var(--sans); font-size: 20px; font-weight: 300; color: var(--pointille); margin: 0 10px;
  letter-spacing: 0; }
.marque .sous-titre { font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; color: var(--pierre); }
.marque svg, .marque-panneau svg { color: var(--prusse); }
@media (max-width: 560px) { .marque .pipe, .marque .sous-titre { display: none; } }
