/* CloserHub. Feuille unique, aucune dependance externe.
   Theme verrouille sombre : encre profonde, un seul accent or froid.
   Rayon unique 12px sur tout ce qui n'est pas un bouton pilule. */

:root {
  --encre:      #08090c;
  --encre-2:    #0e1015;
  --encre-3:    #14171e;
  --trait:      #1e222b;
  --trait-fort: #2b313d;

  --or:         #c9a227;
  --or-clair:   #e6c766;
  --or-sourd:   rgba(201,162,39,.10);

  --texte:      #f2f4f7;
  --gris:       #9aa2b1;
  --gris-bas:   #7a8290;   /* 5,1:1 sur --encre : AA tenu */

  --r:      12px;
  --r-pill: 999px;
  --large:  1160px;

  --police: ui-sans-serif, system-ui, -apple-system, "SF Pro Display",
            "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono:   ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(.16,1,.3,1);
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; }

/* Une regle auteur bat toujours la feuille du navigateur : sans ceci, tout
   element .jauge-l[hidden] resterait affiche a cause de son display:flex. */
[hidden] { display: none !important; }

body {
  font-family: var(--police);
  background: var(--encre);
  color: var(--texte);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width:100%; display:block; }
a   { color:inherit; text-decoration:none; }

.wrap   { width:100%; max-width:var(--large); margin:0 auto; padding:0 24px; }
.etroit { max-width:720px; }
.centre { text-align:center; }

/* Titres ------------------------------------------------------------- */
h1,h2,h3 { line-height:1.08; letter-spacing:-.028em; font-weight:680; }
h1 { font-size: clamp(38px, 6.4vw, 68px); }
h2 { font-size: clamp(28px, 4.2vw, 44px); letter-spacing:-.03em; }
h3 { font-size: clamp(19px, 2.2vw, 22px); letter-spacing:-.018em; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px; letter-spacing:.2em; text-transform:uppercase;
  color: var(--or); font-weight:600; margin-bottom:16px;
}
.chapo { color:var(--gris); font-size: clamp(16px,1.9vw,19px); line-height:1.55; }

/* En-tete ------------------------------------------------------------ */
.tete {
  position:sticky; top:0; z-index:60; height:68px;
  background: rgba(8,9,12,.78);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom:1px solid var(--trait);
}
.tete .wrap { display:flex; align-items:center; justify-content:space-between; height:100%; gap:20px; }
.marque { display:flex; align-items:center; gap:11px; font-weight:700; font-size:18.5px; letter-spacing:-.03em; }
.sceau {
  width:32px; height:32px; flex:0 0 32px; border-radius:9px;
  background: linear-gradient(145deg,#e6c766,#a9821c);
  color:#0b0c0f; display:grid; place-items:center;
  font-weight:800; font-size:15px; letter-spacing:-.04em;
}
.tete nav { display:flex; align-items:center; gap:26px; font-size:15px; color:var(--gris); }
.tete nav a { transition:color .16s var(--ease); }
.tete nav a:hover { color:var(--texte); }
@media (max-width:820px){ .tete nav .mob-non { display:none; } }

/* Boutons ------------------------------------------------------------ */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  padding:14px 24px; border-radius:var(--r-pill);
  font-family:inherit; font-size:15.5px; font-weight:650; white-space:nowrap;
  border:1px solid transparent; cursor:pointer;
  transition: transform .18s var(--ease), background .18s var(--ease),
              border-color .18s var(--ease), color .18s var(--ease);
}
.btn:active { transform: scale(.985); }
.btn-or   { background:var(--or-clair); color:#0d0e11; }
.btn-or:hover   { background:#f0d685; }
.btn-vide { background:transparent; border-color:var(--trait-fort); color:var(--texte); }
.btn-vide:hover { border-color:var(--or); color:var(--or-clair); }
.btn-large{ width:100%; }
.btn:disabled { opacity:.4; cursor:not-allowed; }

/* Sections ----------------------------------------------------------- */
section { padding: clamp(64px,9vw,112px) 0; position:relative; }
.encre-2 { background:var(--encre-2); }
.filet-haut { border-top:1px solid var(--trait); }

/* Hero : split asymetrique ------------------------------------------- */
.hero { padding-top: clamp(52px,7vw,88px); padding-bottom: clamp(56px,7vw,92px); overflow:hidden; }
.hero .wrap { display:grid; grid-template-columns: 1.15fr .85fr; gap:56px; align-items:center; }
@media (max-width:980px){ .hero .wrap { grid-template-columns:1fr; gap:40px; } }
.hero h1 { margin-bottom:22px; }
.hero h1 em { font-style:normal; color:var(--or-clair); }
.hero .chapo { max-width:46ch; margin-bottom:32px; }
.hero-actions { display:flex; gap:12px; flex-wrap:wrap; }

.visuel {
  position:relative; border-radius:var(--r); overflow:hidden;
  border:1px solid var(--trait); aspect-ratio: 4/5;
}
.visuel img { width:100%; height:100%; object-fit:cover; filter:grayscale(.35) contrast(1.06); }
.visuel::after {
  content:""; position:absolute; inset:0;
  background: linear-gradient(200deg, rgba(8,9,12,0) 30%, rgba(8,9,12,.85) 100%);
}
@media (max-width:980px){ .visuel { aspect-ratio:16/10; } }

/* Les deux portes ---------------------------------------------------- */
.portes { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
@media (max-width:860px){ .portes { grid-template-columns:1fr; } }

.porte {
  position:relative; overflow:hidden; border-radius:var(--r);
  border:1px solid var(--trait); background:var(--encre-2);
  padding:30px 28px 28px; display:flex; flex-direction:column;
  transition: border-color .22s var(--ease), transform .22s var(--ease);
}
.porte .haut-porte { display:flex; align-items:center; gap:12px; margin-bottom:20px; }
.porte .ico {
  width:46px; height:46px; flex:0 0 46px; border-radius:10px;
  display:grid; place-items:center; background:var(--or-sourd); color:var(--or-clair);
}
.porte .ico svg { width:19px; height:19px; }
.porte .pour { font-family:var(--mono); font-size:11px; letter-spacing:.16em; text-transform:uppercase; color:var(--gris-bas); }
.porte h3 { margin-bottom:10px; }
.porte > p { color:var(--gris); font-size:15.5px; margin-bottom:22px; }
.porte ul { list-style:none; display:grid; gap:12px; margin-bottom:28px; }
.porte li { display:flex; gap:11px; font-size:15px; line-height:1.5; }
.porte li svg { width:17px; height:17px; flex:0 0 17px; margin-top:3px; color:var(--or); }
.porte .pied-porte { margin-top:auto; }

/* Etapes : liste numerotee decalee, pas trois cartes egales ----------- */
.etapes { display:grid; gap:0; margin-top:8px; counter-reset:e; }
.etape-l {
  display:grid; grid-template-columns:64px 1fr; gap:24px;
  padding:30px 0; border-top:1px solid var(--trait);
}
.etape-l:last-child { border-bottom:1px solid var(--trait); }
.etape-l .n {
  font-family:var(--mono); font-size:13px; color:var(--or);
  padding-top:5px; letter-spacing:.04em;
}
.etape-l h3 { margin-bottom:8px; }
.etape-l p  { color:var(--gris); font-size:15.5px; max-width:56ch; }
@media (max-width:640px){ .etape-l { grid-template-columns:1fr; gap:8px; } }

/* Bento : tailles inegales, au moins deux cellules visuelles ---------- */
.bento { display:grid; grid-template-columns:repeat(6,1fr); gap:16px; }
.bento > * { border-radius:var(--r); border:1px solid var(--trait); background:var(--encre-2); padding:26px 24px; }
.b-6 { grid-column:span 6; } .b-4 { grid-column:span 4; }
.b-3 { grid-column:span 3; } .b-2 { grid-column:span 2; }
@media (max-width:880px){ .b-4,.b-3,.b-2 { grid-column:span 6; } }
.bento h3 { margin-bottom:9px; }
.bento p  { color:var(--gris); font-size:15px; }
.b-image { padding:0; overflow:hidden; position:relative; min-height:230px; }
.b-image img { width:100%; height:100%; object-fit:cover; position:absolute; inset:0; filter:grayscale(.4); }
.b-image .leg { position:relative; z-index:2; margin-top:auto; padding:24px; }
.b-image::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(8,9,12,.15),rgba(8,9,12,.9)); }
.b-image .leg { display:flex; flex-direction:column; justify-content:flex-end; height:100%; }
.b-image .leg > * { position:relative; z-index:3; }
.b-or { background:linear-gradient(150deg, rgba(201,162,39,.16), rgba(201,162,39,.03)); border-color:rgba(201,162,39,.28); }
.b-chiffre { font-family:var(--mono); font-size:clamp(30px,4vw,42px); color:var(--or-clair); letter-spacing:-.03em; line-height:1; margin-bottom:10px; }

/* Niches ------------------------------------------------------------- */
.niches { display:flex; flex-wrap:wrap; gap:9px; }
.niche-p {
  border:1px solid var(--trait); background:var(--encre-2);
  padding:10px 17px; border-radius:var(--r-pill); font-size:14.5px; color:var(--gris);
  transition: border-color .16s var(--ease), color .16s var(--ease);
}

/* Tunnel ------------------------------------------------------------- */
.tunnel { max-width:620px; margin:0 auto; }
.jauge-l { display:flex; align-items:center; gap:14px; margin-bottom:30px; }
.jauge { flex:1; height:4px; background:var(--encre-3); border-radius:var(--r-pill); overflow:hidden; }
.jauge { position:relative; }
.jauge i { position:absolute; inset:0; border-radius:var(--r-pill);
           background:linear-gradient(90deg,var(--or),var(--or-clair));
           transform:scaleX(var(--p,0)); transform-origin:left center;
           transition:transform .55s var(--ease-doux); }
.jauge-t { font-family:var(--mono); font-size:12px; line-height:1.45; color:var(--gris-bas); }
.jauge-l .jauge-t { white-space:nowrap; }

.pas { display:none; }
.pas.on { display:block; animation: monte .38s var(--ease); }
@keyframes monte { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:none} }

.champ { margin-bottom:20px; }
.champ label { display:block; font-weight:600; margin-bottom:7px; font-size:15.5px; }
.champ .aide { font-size:13.5px; color:var(--gris-bas); margin-bottom:9px; line-height:1.45; }
.champ input, .champ select, .champ textarea {
  width:100%; padding:13px 15px; font-size:16px; font-family:inherit;
  background:var(--encre-2); border:1px solid var(--trait-fort);
  border-radius:10px; color:var(--texte);
  transition:border-color .16s var(--ease);
}
.champ input::placeholder, .champ textarea::placeholder { color:var(--gris-bas); }
.champ input:focus, .champ select:focus, .champ textarea:focus {
  outline:none; border-color:var(--or);
}
.champ textarea { min-height:104px; resize:vertical; line-height:1.5; }
.champ select {
  appearance:none; padding-right:44px; background-repeat:no-repeat;
  background-position:right 15px center; background-size:17px;
  background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa2b1' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

.choix { display:grid; gap:9px; }
.choix.deux { grid-template-columns:1fr 1fr; }
@media (max-width:560px){ .choix.deux { grid-template-columns:1fr; } }
.choix label {
  display:flex; align-items:center; gap:11px; cursor:pointer;
  border:1px solid var(--trait-fort); background:var(--encre-2);
  padding:13px 15px; border-radius:10px; font-size:15px;
  transition:border-color .14s var(--ease), background .14s var(--ease);
}
.choix label:hover { border-color:var(--gris-bas); }
.choix label:has(input:checked) { border-color:var(--or); background:var(--or-sourd); }
.choix input { accent-color:var(--or); width:17px; height:17px; flex:0 0 17px; }

.err { color:#f08a8a; font-size:14px; margin-top:10px; min-height:20px; }
.actes { display:flex; gap:11px; margin-top:26px; }
.actes .btn { flex:1; }

/* Force du profil ---------------------------------------------------- */
.force-b { border:1px solid var(--trait); background:var(--encre-2); border-radius:var(--r); padding:24px; margin-bottom:26px; }
.force-h { display:flex; align-items:baseline; justify-content:space-between; gap:14px; margin-bottom:14px; }
.force-v { font-family:var(--mono); font-size:32px; font-weight:600; color:var(--or-clair); letter-spacing:-.03em; }
.force-l { list-style:none; display:grid; gap:0; margin-top:16px; }
.force-l li { display:flex; justify-content:space-between; gap:14px; font-size:14.5px; color:var(--gris);
              border-top:1px solid var(--trait); padding:10px 0; }
.force-l b { color:var(--or); font-family:var(--mono); font-weight:600; }

/* Encart ------------------------------------------------------------- */
.encart { border-left:2px solid var(--or); background:var(--encre-3); padding:19px 22px; border-radius:0 var(--r) var(--r) 0; margin:26px 0; }
.encart p { color:var(--gris); font-size:15.5px; }
.encart strong { color:var(--texte); font-weight:650; }

/* Pied --------------------------------------------------------------- */
footer { border-top:1px solid var(--trait); background:var(--encre-2); padding:48px 0 32px; }
footer .cols { display:grid; grid-template-columns:2.2fr 1fr 1fr 1fr; gap:32px; margin-bottom:34px; }
@media (max-width:800px){ footer .cols { grid-template-columns:1fr 1fr; } }
@media (max-width:520px){ footer .cols { grid-template-columns:1fr; } }
footer h4 { font-family:var(--mono); font-size:11.5px; text-transform:uppercase; letter-spacing:.16em; color:var(--gris-bas); margin-bottom:14px; font-weight:600; }
footer a, footer p { color:var(--gris); font-size:14.5px; display:block; margin-bottom:8px; }
footer a:hover { color:var(--texte); }
.pied-bas { border-top:1px solid var(--trait); padding-top:22px; display:flex; flex-wrap:wrap; gap:16px;
            justify-content:space-between; font-size:13.5px; color:var(--gris-bas); }

/* Reveal au defilement ----------------------------------------------- */
.rev { opacity:0; transform:translate3d(0,30px,0);
       transition:opacity .62s var(--ease-doux), transform .62s var(--ease-doux); }
.rev.vu { opacity:1; transform:none; }
html:not(.js) .rev { opacity:1; transform:none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration:.001ms !important; animation-delay:0s !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important; transition-delay:0s !important;
    scroll-behavior:auto !important;
  }
  .rev  { opacity:1 !important; transform:none !important; }
  .porte, .bento > * { transition:none !important; }
}
}

.hs { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.non { display:none !important; }


/* ── Petits telephones : l'en-tete ne doit pas rogner le bouton ─────── */
@media (max-width: 400px) {
  .wrap { padding: 0 16px; }
  .tete .wrap { gap: 10px; }
  .marque { min-width: 0; font-size: 16px; }
  .tete nav .btn { padding: 10px 13px; font-size: 13.5px; }
}

/* ── Calendly : sans repli mobile, le cadre fige 1180px sur un ecran
      de 760px de haut. Calendly n'envoie pas toujours sa hauteur. ───── */
#cal, #cal iframe { min-height: 1180px; }
@media (max-width: 640px) { #cal, #cal iframe { min-height: 820px; } }


/* La marque remplace la pastille dessinee en CSS. L'image porte deja son
   fond et sa forme, on ne lui ajoute ni degrade ni couleur. */
img.sceau { background: none; border-radius: 9px; object-fit: contain; }

/* ══════════════════════════════════════════════════════════════════════
   RELIEF_V1 + MOUVEMENT_V1
   Le theme reste sombre : on ajoute des NIVEAUX, pas de la clarte.
   Avant : deux fonds seulement sur toute la page, separes de 2,21 L*,
   soit sous le seuil de perception. Rien ne pouvait se poser sur rien.
   ══════════════════════════════════════════════════════════════════════ */

:root {
  /* Echelle a 4 niveaux, meme famille bleu-encre, ~4,5 L* entre voisins */
  --encre:      #08090c;   /* niveau 0 - fond de page          L*  2,47 */
  --encre-2:    #12151d;   /* niveau 1 - section levee         L*  6,81 */
  --encre-3:    #1a1e28;   /* niveau 2 - carte posee           L* 11,28 */
  --encre-4:    #232834;   /* niveau 3 - haut de carte         L* 16,12 */

  --trait:      #2a3040;   /* etait #1e222b : 1,20:1, invisible dehors */
  --trait-haut: #3a4254;   /* bord haut plus clair : lumiere d'en haut */
  --trait-fort: #454d61;
  --gris-bas:   #8a92a1;   /* #7a8290 tombait a 4,30:1 sur la carte */

  --ombre-posee: inset 0 1px 0 rgba(255,255,255,.05),
                 0 1px 2px rgba(0,0,0,.55),
                 0 12px 28px -10px rgba(3,4,7,.95);

  /* --ease consommait 62,8 % du parcours en 100 ms : le geste etait fini
     avant que l'oeil ne s'y pose. --ease-doux etale la meme distance. */
  --ease-doux: cubic-bezier(.22,.68,.28,1);
}

/* ── Garde-fou de grille ───────────────────────────────────────────────
   Un enfant de grille a min-width:auto, donc un plancher egal a son
   min-content : un seul contenu insecable elargit TOUTE la piste, et
   donc tous ses freres. Ceinture structurelle, a garder meme une fois
   la cause du jour corrigee. */
.hero .wrap > *, .portes > *, .bento > *,
.etape-l > *, footer .cols > * { min-width: 0; }

/* ── Cartes : elles doivent se decoller de leur section ────────────────
   Une ombre noire sur un fond quasi noir ne produit rien. En theme
   sombre le relief se fabrique par la LUMIERE : degrade haut-bas, bord
   haut plus clair que le bas, lisere interne blanc a 5 %. */
.porte, .bento > *:not(.b-image):not(.b-or), .force-b {
  background: linear-gradient(180deg, var(--encre-4) 0%, var(--encre-3) 42%);
  border: 1px solid var(--trait);
  border-top-color: var(--trait-haut);
  box-shadow: var(--ombre-posee);
}
.b-or {
  background: linear-gradient(160deg, rgba(201,162,39,.20), rgba(201,162,39,.045) 60%), var(--encre-3);
  border: 1px solid rgba(201,162,39,.34);
  border-top-color: rgba(230,199,102,.48);
  box-shadow: inset 0 1px 0 rgba(230,199,102,.14), 0 12px 28px -10px rgba(3,4,7,.95);
}
.b-image { box-shadow: var(--ombre-posee); border-color: var(--trait); }

/* ── Sections : chaque zone devient un plan eclaire par son bord haut ──
   Un trait de 1 px ne fait pas une frontiere sur telephone. Ce qui se
   voit, c'est un degrade sur 200 px. */
section { position: relative; isolation: isolate; }
.encre-2::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 200px;
  background: linear-gradient(180deg, rgba(255,255,255,.030), rgba(255,255,255,0));
  pointer-events: none; z-index: 0;
}
section > .wrap { position: relative; z-index: 1; }
.filet-haut { border-top: 1px solid var(--trait); box-shadow: 0 1px 0 rgba(255,255,255,.022); }

/* ── Ce qui descend : sans surfaces creusees, une echelle ne se lit pas ─ */
footer { background: var(--encre); border-top: 1px solid var(--trait);
         box-shadow: 0 -1px 0 rgba(201,162,39,.14); }
.tete  { background: rgba(10,12,17,.86); border-bottom-color: var(--trait);
         box-shadow: 0 1px 0 rgba(255,255,255,.03), 0 10px 28px -14px rgba(0,0,0,.95); }
.champ input, .champ select, .champ textarea, .choix label {
  background: var(--encre); box-shadow: inset 0 1px 2px rgba(0,0,0,.5);
}
.champ input:focus, .champ select:focus, .champ textarea:focus {
  box-shadow: inset 0 1px 2px rgba(0,0,0,.5), 0 0 0 3px rgba(201,162,39,.16);
}
.encart { box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }

/* ── Atmosphere du hero : un lavis, pas une lueur ─────────────────────
   7,5 % et 4,5 % etales sur 560 px. Aucune couleur nouvelle : l'accent
   or reste unique. */
.hero { position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0 -18% auto -18%; height: 560px;
  background:
    radial-gradient(68% 58% at 20% 0%,  rgba(201,162,39,.075), transparent 70%),
    radial-gradient(52% 48% at 88% 14%, rgba(230,199,102,.045), transparent 72%);
  pointer-events: none; z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; }

/* ══ Le tri, rejoue en HTML ════════════════════════════════════════════
   Remplace une image JPEG dont le texte tombait a 6,4 px sur telephone.
   Ici le texte est du vrai texte : lisible, selectionnable, indexable.
   Aucune image, aucun script : uniquement transform et opacity. */
.tri {
  position: relative; min-width: 0; overflow: hidden;
  border: 1px solid var(--trait); border-top-color: var(--trait-haut);
  border-radius: var(--r); padding: 20px 16px 16px;
  background: radial-gradient(120% 88% at 82% 0%, rgba(201,162,39,.10), transparent 60%), var(--encre-2);
  box-shadow: var(--ombre-posee);
}
.tri-req { display: flex; align-items: center; gap: 9px; font-family: var(--mono);
           font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
           color: var(--gris-bas); margin-bottom: 14px; }
.tri-pt  { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%;
           background: var(--or); box-shadow: 0 0 0 4px rgba(201,162,39,.14); }
.tri-l   { list-style: none; display: grid; gap: 8px; }
.tri-li  { position: relative; display: grid;
           grid-template-columns: 30px minmax(0,1fr) auto; gap: 12px; align-items: center;
           padding: 11px 13px; border-radius: 10px;
           border: 1px solid var(--trait); background: var(--encre-3); }
/* Calque or a part : on n'anime ainsi qu'une opacite, jamais une couleur. */
.tri-li::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit;
  border: 1px solid rgba(201,162,39,.45);
  background: linear-gradient(90deg, rgba(201,162,39,.15), rgba(201,162,39,.02));
  opacity: 0; pointer-events: none;
}
.tri-li.retenu::before { opacity: 1; }
.tri-li.ecarte { opacity: .40; }
.tri-n   { position: relative; z-index: 1; font-family: var(--mono); font-size: 11px;
           color: var(--gris-bas); text-align: center; padding: 5px 0;
           border-radius: 7px; background: rgba(255,255,255,.05); }
.tri-li.retenu .tri-n { color: var(--or-clair); background: rgba(201,162,39,.17); }
.tri-txt { position: relative; z-index: 1; min-width: 0; }
.tri-txt b { display: block; font-size: 14px; font-weight: 650; line-height: 1.3; letter-spacing: -.01em; }
.tri-txt i { display: block; font-style: normal; font-family: var(--mono);
             font-size: 10.5px; color: var(--gris-bas); margin-top: 3px; line-height: 1.35; }
.tri-sc  { position: relative; z-index: 1; font-family: var(--mono); font-size: 13px;
           font-weight: 600; color: var(--gris-bas); letter-spacing: -.02em; }
.tri-li.retenu .tri-sc { color: var(--or-clair); }
.tri-note{ font-family: var(--mono); font-size: 10.5px; color: var(--gris-bas);
           margin-top: 14px; line-height: 1.45; }
.tri-scan{ position: absolute; left: 0; right: 0; top: 0; height: 130px; z-index: 2;
           background: linear-gradient(180deg, transparent, rgba(201,162,39,.14) 55%, transparent);
           opacity: 0; pointer-events: none; }

/* Choregraphie : les 4 lignes arrivent, un faisceau balaie, puis verdict.
   L'etat FINAL est dans la CSS de base : sans JS, sans .vu ou en mouvement
   reduit, le tri accompli s'affiche directement. */
@keyframes tri-arrive { from { opacity: 0; transform: translate3d(0,16px,0); } }
@keyframes tri-arrive-ecarte {
  0% { opacity: 0; transform: translate3d(0,16px,0); }
  22% { opacity: 1; transform: translate3d(0,0,0); }
  62% { opacity: 1; } 100% { opacity: .40; }
}
@keyframes tri-allume { from { opacity: 0; } }
@keyframes tri-score  { from { opacity: 0; transform: translate3d(12px,0,0); } }
@keyframes tri-balaye {
  0% { opacity: 0; transform: translate3d(0,-45%,0); }
  14% { opacity: 1; } 86% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(0,330%,0); }
}
.tri.vu .tri-li        { animation: tri-arrive .5s var(--ease-doux) both;
                         animation-delay: calc(var(--i) * .1s); }
.tri.vu .tri-li.ecarte { animation: tri-arrive-ecarte 1.6s var(--ease-doux) both;
                         animation-delay: calc(var(--i) * .1s); }
.tri.vu .tri-scan      { animation: tri-balaye .8s linear .5s both; }
.tri.vu .tri-li.retenu::before  { animation: tri-allume .5s var(--ease-doux) 1.2s both; }
.tri.vu .tri-li.retenu .tri-sc  { animation: tri-score .45s var(--ease-doux) 1.28s both; }

/* ── Entree en cascade du hero ────────────────────────────────────────
   Au chargement, sans script : le hero est au premier ecran, il n'a rien
   a attendre. Quatre crans donnent l'ordre de lecture. */
@keyframes ch-entree { from { opacity: 0; transform: translate3d(0,20px,0); } }
.hero h1, .hero .chapo, .hero .hero-actions, .hero .tri {
  animation: ch-entree .62s var(--ease-doux) both;
}
.hero h1            { animation-delay: .06s; }
.hero .chapo        { animation-delay: .16s; }
.hero .hero-actions { animation-delay: .26s; }
.hero .tri          { animation-delay: .36s; }

/* ── Decalage de revelation : le lot d'IntersectionObserver ne contient
   presque jamais plus d'une entree, l'index JS restait a 0. */
.portes > .rev:nth-child(2) { transition-delay: .10s; }
.bento  > .rev:nth-child(2) { transition-delay: .09s; }
.bento  > .rev:nth-child(3) { transition-delay: .18s; }
.bento  > .rev:nth-child(4) { transition-delay: .27s; }
.etapes > .rev:nth-child(2) { transition-delay: .08s; }
.etapes > .rev:nth-child(3) { transition-delay: .16s; }

/* ── Retour tactile : sur iPhone il n'y a pas de survol ───────────────
   .tete nav a (0,2,1) ecrasait le transition de .btn (0,1,0). */
.btn, .porte, .niche-p, .choix label {
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.tete nav a.btn, .btn {
  transition: transform .26s var(--ease-doux), background .18s var(--ease-doux),
              border-color .18s var(--ease-doux), color .18s var(--ease-doux);
}
.btn:active     { transform: scale(.955); transition-duration: .07s; }
.porte          { transition: transform .28s var(--ease-doux), border-color .22s var(--ease-doux); }
.porte:active   { transform: scale(.985); border-color: var(--trait-fort); transition-duration: .08s; }
.niche-p        { transition: transform .18s var(--ease-doux), border-color .16s var(--ease), color .16s var(--ease); }
.niche-p:active { transform: scale(.94); border-color: var(--or); color: var(--or-clair); transition-duration: .07s; }
@media (hover: hover) {
  .porte:hover   { border-color: var(--trait-fort); transform: translate3d(0,-3px,0); }
  .bento > *:not(.b-image):not(.b-or):hover { border-color: var(--trait-fort); }
  .niche-p:hover { border-color: var(--or); color: var(--or-clair); }
}

/* ── Reflet de la jauge, rejoue a chaque etape (jamais en boucle) ─────── */
.jauge::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
  transform: translate3d(-110%,0,0);
}
.jauge.pulse::after { animation: jauge-luit .9s var(--ease-doux) .1s 1 both; }
@keyframes jauge-luit {
  0% { opacity: 0; transform: translate3d(-110%,0,0); }
  18% { opacity: 1; } 82% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(240%,0,0); }
}

/* ── Balayage du bouton principal ─────────────────────────────────────── */
.hero-actions .btn-or { position: relative; overflow: hidden; }
.hero-actions .btn-or::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 36%, rgba(255,255,255,.5) 50%, transparent 64%);
  transform: translateX(-120%); animation: lustre 5s ease-in-out 1.6s infinite;
}
@keyframes lustre { 0% { transform: translateX(-120%); } 24%, 100% { transform: translateX(120%); } }

/* ── Invite a defiler, telephone seulement ────────────────────────────── */
.filer { display: none; }
@keyframes descend { 0%, 100% { transform: translateY(0); opacity: .5 } 50% { transform: translateY(5px); opacity: 1 } }

/* ══ Telephone ════════════════════════════════════════════════════════
   Mesure avant : 120 px perdus avant le premier mot, titre sur 3 lignes,
   et les deux portes qui sont le coeur du site n'arrivaient qu'a 1,69
   ecran. On reprend du vertical, on rend du lateral. */
@media (max-width: 720px) {
  section       { padding: 44px 0; }
  .hero         { padding-top: 18px; padding-bottom: 20px; }
  .hero .wrap   { gap: 14px; }
  h1            { font-size: clamp(30px, 8.4vw, 36px); line-height: 1.05; letter-spacing: -.032em; }
  h2            { font-size: clamp(26px, 6.6vw, 32px); }
  .hero h1      { margin-bottom: 13px; }
  .hero .chapo  { font-size: 16px; line-height: 1.45; margin-bottom: 18px; max-width: 36ch; }

  /* Cote a cote, le bouton primaire mesure 173 px pour 174 disponibles a
     390 : ca passe a 1 px pres et ca casse des 375. Donc empile, et le
     second en lien : une seule action primaire au pouce. */
  .hero-actions { gap: 4px; flex-direction: column; align-items: stretch; }
  .hero-actions .btn-or   { padding: 16px 20px; font-size: 16.5px; }
  .hero-actions .btn-vide { border: 0; background: none; padding: 9px 0 0;
                            font-size: 14.5px; font-weight: 600; color: var(--gris);
                            text-decoration: underline; text-underline-offset: 4px;
                            text-decoration-color: var(--trait-fort); }
  .filer { display: flex; align-items: center; gap: 9px; margin-top: 16px;
           font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em;
           text-transform: uppercase; color: var(--gris-bas); }
  .filer svg { width: 14px; height: 14px; color: var(--or);
               animation: descend 1.9s var(--ease) infinite; }
}

@media (max-width: 560px) {
  .tri      { padding: 16px 13px 14px; }
  .tri-req  { font-size: 10px; letter-spacing: .13em; margin-bottom: 11px; }
  .tri-l    { gap: 7px; }
  .tri-li   { grid-template-columns: 26px minmax(0,1fr) auto; gap: 10px; padding: 10px 11px; }
  .tri-n    { font-size: 10px; padding: 4px 0; }
  .tri-txt b{ font-size: 13px; }
  .tri-txt i{ font-size: 10px; }
  .tri-sc   { font-size: 12px; }
  .tri-note { font-size: 10px; margin-top: 11px; }
}

@media (max-width: 520px) {
  .porte     { padding: 24px 20px 22px; }
  .bento > * { padding: 22px 20px; }
  .bento     { gap: 12px; }
  .portes    { gap: 14px; }
  .porte ul  { gap: 14px; margin-bottom: 24px; }
  .etape-l   { padding: 24px 0; }
  .niches    { gap: 10px; }
  .encart    { padding: 16px 18px; }
}

/* ══ Visuels ══════════════════════════════════════════════════════════
   Images generees pour ce site. Bande pleine largeur, jamais decorative
   au point d'ecraser le texte : elles illustrent un argument precis. */
.bande {
  margin: 0 0 34px; border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--trait); border-top-color: var(--trait-haut);
  box-shadow: var(--ombre-posee); background: var(--encre-2);
}
.bande img { display: block; width: 100%; height: auto; }
#bande-intro { margin-bottom: 26px; }

/* Le hero des pages de niche passe a deux colonnes.
   Le visuel est un background sous media query : un telephone ne le
   telecharge JAMAIS, la ou un <img> en display:none serait charge quand
   meme par Chrome et Safari. */
.hero-n { padding-top: clamp(40px,5.5vw,66px); padding-bottom: clamp(30px,4vw,50px); }
.hero-n .wrap { display: grid; gap: 30px; align-items: center; }
.hero-n .wrap > * { min-width: 0; }
.visuel-n { display: none; }
@media (min-width: 861px) {
  .hero-n .wrap { grid-template-columns: 1.15fr .85fr; gap: 46px; }
  .visuel-n {
    display: block; aspect-ratio: 860/1040; max-height: 430px; margin-left: auto;
    width: 100%; max-width: 356px; border-radius: var(--r);
    border: 1px solid var(--trait); border-top-color: var(--trait-haut);
    box-shadow: var(--ombre-posee);
    background: url("/assets/niche-carte.webp") center/cover no-repeat, var(--encre-2);
  }
}

/* Grain d'ambiance : une seule couche de plus sur le lavis or du hero,
   aucun element supplementaire, 7,5 Ko. */
.hero::before {
  background:
    radial-gradient(68% 58% at 20% 0%,  rgba(201,162,39,.075), transparent 70%),
    radial-gradient(52% 48% at 88% 14%, rgba(230,199,102,.045), transparent 72%),
    url("/assets/grain.webp") center/cover no-repeat;
  opacity: .9;
}

/* ══ Pictogrammes ═════════════════════════════════════════════════════
   Une seule planche de 20 cases (5x4), servie en MASQUE et non en image :
   le fichier ne porte que la forme, la couleur vient d'ici. 49 Ko pour
   les 20, une requete, et l'icone peut changer de teinte au survol —
   ce qu'un PNG colore ne permettrait pas. */
.pico {
  display: inline-block; flex: none;
  width: 1em; height: 1em; background-color: currentColor;
  -webkit-mask-image: url("/assets/picto.png"); mask-image: url("/assets/picto.png");
  -webkit-mask-repeat: no-repeat;               mask-repeat: no-repeat;
  -webkit-mask-size: 500% 400%;                 mask-size: 500% 400%;
}
/* Repli : sans masque, on n'affiche rien plutot qu'un carre plein. */
@supports not ((-webkit-mask-image: url("#")) or (mask-image: url("#"))) {
  .pico { display: none; }
}
.p0 {-webkit-mask-position:0     0;    mask-position:0     0}
.p1 {-webkit-mask-position:25%   0;    mask-position:25%   0}
.p2 {-webkit-mask-position:50%   0;    mask-position:50%   0}
.p3 {-webkit-mask-position:75%   0;    mask-position:75%   0}
.p4 {-webkit-mask-position:100%  0;    mask-position:100%  0}
.p5 {-webkit-mask-position:0     33.3333%; mask-position:0     33.3333%}
.p6 {-webkit-mask-position:25%   33.3333%; mask-position:25%   33.3333%}
.p7 {-webkit-mask-position:50%   33.3333%; mask-position:50%   33.3333%}
.p8 {-webkit-mask-position:75%   33.3333%; mask-position:75%   33.3333%}
.p9 {-webkit-mask-position:100%  33.3333%; mask-position:100%  33.3333%}
.p10{-webkit-mask-position:0     66.6667%; mask-position:0     66.6667%}
.p11{-webkit-mask-position:25%   66.6667%; mask-position:25%   66.6667%}
.p12{-webkit-mask-position:50%   66.6667%; mask-position:50%   66.6667%}
.p13{-webkit-mask-position:75%   66.6667%; mask-position:75%   66.6667%}
.p14{-webkit-mask-position:100%  66.6667%; mask-position:100%  66.6667%}
.p15{-webkit-mask-position:0     100%; mask-position:0     100%}
.p16{-webkit-mask-position:25%   100%; mask-position:25%   100%}
.p17{-webkit-mask-position:50%   100%; mask-position:50%   100%}
.p18{-webkit-mask-position:75%   100%; mask-position:75%   100%}
.p19{-webkit-mask-position:100%  100%; mask-position:100%  100%}

/* L'etape : le numero seul etait trop maigre, il devient reperage + image */
.etape-l .n { display: flex; align-items: center; gap: 9px; }
.etape-l .n .pico { font-size: 28px; color: var(--or); }

/* Les deux portes : l'icone remplace le trait fin d'origine */
.ico .pico { font-size: 30px; color: var(--or-clair); }

/* Pastilles de niche : l'icone prend la couleur du texte, donc elle
   s'eclaire avec lui au survol sans regle supplementaire. */
.niche-p { display: inline-flex; align-items: center; gap: 8px; }
/* Sur la pastille, currentColor vaut le gris du texte : le trait fin
   disparaissait. On force l'or, en retrait, et il monte au survol. */
.niche-p .pico { font-size: 18px; color: var(--or); opacity: .72;
                 transition: opacity .16s var(--ease); }
.niche-p:hover .pico, .niche-p:active .pico { opacity: 1; }

/* Page de niche : le pictogramme au-dessus du surtitre */
.eyebrow-p { display: block; font-size: 34px; color: var(--or); margin-bottom: 14px; }

/* ══ Chiffres ═════════════════════════════════════════════════════════
   Le nombre est ECRIT DANS LE HTML a sa valeur finale : sans script, en
   mouvement reduit, ou pour un moteur de recherche, il est deja juste.
   Le compte a rebours ne fait que le rejouer. */
.chiffres {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin: 0 0 42px; padding: 26px 4px 28px;
  border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait);
  box-shadow: 0 1px 0 rgba(255,255,255,.022), inset 0 1px 0 rgba(255,255,255,.022);
}
.chiffres > * { min-width: 0; text-align: center; }
.ch dt { font-family: var(--mono); font-size: clamp(26px, 3.6vw, 38px);
         font-weight: 600; letter-spacing: -.03em; color: var(--or-clair);
         line-height: 1.05; font-variant-numeric: tabular-nums; }
.ch dd { margin-top: 8px; font-size: 13.5px; line-height: 1.35; color: var(--gris-bas); }

@media (max-width: 720px) {
  .chiffres { gap: 22px 12px; padding: 22px 2px 24px; margin-bottom: 32px; }
  .ch dt    { font-size: clamp(23px, 6.6vw, 30px); }
  .ch dd    { font-size: 12px; margin-top: 6px; }
}
/* Sous 400 px, trois colonnes ecrasent les libelles : on empile la 3e. */
@media (max-width: 400px) {
  .chiffres { grid-template-columns: repeat(2, 1fr); }
  .chiffres > *:last-child { grid-column: 1 / -1; }
}

/* ══ Fil d'Ariane ═════════════════════════════════════════════════════
   Rendu depuis la meme source que le BreadcrumbList : deux listes qui
   divergent est la premiere cause d'avertissement dans la Search Console. */
.ariane { margin-bottom: 18px; }
.ariane ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center;
             gap: 0 8px; font-family: var(--mono); font-size: 11.5px;
             letter-spacing: .06em; color: var(--gris-bas); }
.ariane li + li::before { content: "/"; margin-right: 8px; color: var(--trait-fort); }
.ariane a { color: var(--gris-bas); text-decoration: none;
            transition: color .16s var(--ease); }
.ariane a:hover { color: var(--or-clair); }
.ariane [aria-current] { color: var(--or); }

/* ══ Carrefour des niches ═════════════════════════════════════════════ */
.n-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
            gap: 12px; }
.n-grille > * { min-width: 0; }
.n-carte {
  display: flex; gap: 14px; align-items: flex-start; text-decoration: none;
  padding: 20px 20px 19px; border-radius: var(--r);
  background: linear-gradient(180deg, var(--encre-4) 0%, var(--encre-3) 42%);
  border: 1px solid var(--trait); border-top-color: var(--trait-haut);
  box-shadow: var(--ombre-posee);
  transition: transform .22s var(--ease-doux), border-color .18s var(--ease-doux);
}
.n-carte .pico { font-size: 26px; color: var(--or); margin-top: 1px; }
.n-carte b { display: block; font-size: 15.5px; font-weight: 650; color: var(--texte);
             line-height: 1.3; letter-spacing: -.01em; margin-bottom: 5px; }
.n-carte i { display: block; font-style: normal; font-size: 13px; line-height: 1.45;
             color: var(--gris-bas); }
.n-carte:active { transform: scale(.985); border-color: var(--trait-fort); }
@media (hover: hover) {
  .n-carte:hover { transform: translate3d(0,-3px,0); border-color: var(--trait-fort); }
  .n-carte:hover b { color: var(--or-clair); }
}
@media (max-width: 520px) { .n-carte { padding: 17px 16px; gap: 12px; } }

.lien-or { color: var(--or-clair); font-size: 14.5px; text-decoration: none;
           border-bottom: 1px solid rgba(201,162,39,.35); padding-bottom: 2px;
           transition: border-color .16s var(--ease); }
.lien-or:hover { border-bottom-color: var(--or); }

/* ── Rappel de completion du profil ───────────────────────────────────
   Le score seul ne dit pas quoi faire : cette phrase relie la jauge a
   l'action. Pas une alerte, pas une couleur d'erreur : une invitation. */
.appel-profil {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 22px; padding: 14px 17px; border-radius: var(--r);
  font-size: 15.5px; font-weight: 600; line-height: 1.4; color: var(--or-clair);
  background: linear-gradient(100deg, rgba(201,162,39,.16), rgba(201,162,39,.05));
  border: 1px solid rgba(201,162,39,.32);
  border-top-color: rgba(230,199,102,.44);
}
.appel-profil .pico { font-size: 24px; color: var(--or); }
@media (max-width: 520px) {
  .appel-profil { font-size: 14.5px; padding: 13px 14px; gap: 10px; }
  .appel-profil .pico { font-size: 21px; }
}

/* Marque un champ facultatif sans l'affaiblir visuellement */
.opt {
  margin-left: 7px; padding: 2px 7px; border-radius: var(--r-pill);
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--gris-bas); background: rgba(255,255,255,.06);
  border: 1px solid var(--trait); vertical-align: middle;
}

/* ══ Espace membre ════════════════════════════════════════════════════ */
.bord-tete { display: flex; align-items: flex-start; justify-content: space-between;
             gap: 16px; flex-wrap: wrap; }
.offre {
  padding: 22px 22px 20px; border-radius: var(--r); margin-bottom: 14px;
  background: linear-gradient(180deg, var(--encre-4) 0%, var(--encre-3) 42%);
  border: 1px solid var(--trait); border-top-color: var(--trait-haut);
  box-shadow: var(--ombre-posee);
}
.offre-h { display: flex; align-items: center; justify-content: space-between;
           gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.etiq { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em;
        text-transform: uppercase; color: var(--or-clair);
        background: rgba(201,162,39,.14); border: 1px solid rgba(201,162,39,.3);
        padding: 4px 10px; border-radius: var(--r-pill); }
.offre-vu { font-family: var(--mono); font-size: 11.5px; color: var(--gris-bas); }
.offre h3 { font-size: 17.5px; line-height: 1.3; margin-bottom: 4px; }
.offre-e { font-size: 13.5px; color: var(--or-clair); margin-bottom: 10px; }
.offre-d { font-size: 14.5px; line-height: 1.55; color: var(--gris); margin-bottom: 14px; }
.offre-m { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.offre-m li { font-family: var(--mono); font-size: 11.5px; color: var(--gris-bas);
              background: rgba(255,255,255,.05); border: 1px solid var(--trait);
              padding: 5px 10px; border-radius: 7px; }
.offre-ok { font-size: 14px; font-weight: 600; color: var(--or-clair); }
.postul textarea { width: 100%; }
@media (max-width: 520px) { .offre { padding: 18px 16px 16px; } }
