:root {
  --fond: #f4f3ef;
  --papier: #fbfaf7;
  --blanc: #ffffff;
  --encre: #0d1b16;
  --doux: #4a5a52;
  --pale: #7d8a83;
  --ligne: rgba(13, 27, 22, .12);
  --vert: #1d7a4f;
  --or: #ffcd3c;
  --or-fonce: #e0a400;
  --chaud: #e8582c;
  --tiede: #e0a400;
  --froid: #2f9a6a;
  --vente: #7c5cd6;
  --marge: clamp(20px, 5vw, 80px);
  --large: 1240px;
  --gauche: max(var(--marge), calc((100vw - var(--large)) / 2));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  background: var(--fond); color: var(--encre);
  font-family: "Outfit", system-ui, sans-serif; font-size: 18px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -.04em; font-weight: 800; }
h2 { font-size: clamp(36px, 5vw, 72px); line-height: 1.02; }
h3 { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.025em; }
em { font-style: normal; background: var(--or); padding: 0 .16em .04em; border-radius: .14em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.ligne-mot { overflow: hidden; padding-bottom: .06em; }

.sur {
  display: inline-block; margin: 0 0 24px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600;
  color: #fff; background: var(--encre); padding: 7px 14px 6px; border-radius: 6px; white-space: nowrap;
}
.sur.noir { margin-bottom: 14px; }
.sur-ligne { display: inline-block; margin: 0; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: var(--doux); border-bottom: 2px solid var(--or); padding-bottom: 6px; }
.num { margin: 0 0 18px; font-family: "IBM Plex Mono", monospace; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--vert); }
.mention { font-size: 12.5px; color: var(--pale); margin: 18px 0 0; }

.bouton {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 13px 22px; border-radius: 999px; transition: transform .25s, box-shadow .25s, background .25s;
}
.bouton.noir { background: var(--encre); color: #fff; }
.bouton.clair { background: var(--blanc); color: var(--encre); border: 1px solid var(--ligne); }
.bouton:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(13,27,22,.14); }

/* ---------- navigation ---------- */
.nav {
  position: fixed; z-index: 50; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(var(--large), calc(100% - 28px)); height: 60px; padding: 0 12px 0 20px;
  display: flex; align-items: center; gap: 24px;
  background: rgba(251,250,247,.78); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid var(--ligne); border-radius: 999px; box-shadow: 0 8px 30px rgba(13,27,22,.06);
}
.marque { display: flex; align-items: center; gap: 9px; text-decoration: none; font-size: 19px; letter-spacing: .2em; text-transform: uppercase; font-family: "Montserrat", sans-serif; color: var(--encre); }
.marque svg { width: 32px; height: 32px; overflow: visible; }
.marque b { font-weight: 700; }
.marque span { font-weight: 600; margin-left: .25em; padding-left: .45em; border-left: 2px solid #e0a400; }
.marque .aiguille { transform-origin: 12px 12px; animation: tourne 4s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
.liens-nav { display: flex; gap: 2px; margin-left: auto; }
.liens-nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--doux); padding: 8px 14px; border-radius: 999px; transition: background .2s, color .2s; }
.liens-nav a:hover, .liens-nav a.actif { color: var(--encre); background: rgba(13,27,22,.06); }
.nav .candidater { padding: 10px 18px; font-size: 15px; flex: none; }
/* (01/12/2026) le menu n'a plus que trois liens : « Le club » y reste */

/* fraîcheur : chiffres lus en base au chargement */
.etape .frais { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 24px; padding: 7px 15px 7px 12px; border-radius: 999px;
  max-width: none; background: var(--blanc); border: 1px solid var(--ligne); font-size: 14px; line-height: 1.35; color: var(--doux); }
.etape .frais[hidden] { display: none; }
.frais b { color: var(--encre); font-weight: 700; }
.frais .pouls { width: 9px; height: 9px; border-radius: 50%; background: var(--chaud); flex: none; box-shadow: 0 0 0 0 rgba(232,88,44,.5); animation: pouls 2s infinite; }
@keyframes pouls { 70% { box-shadow: 0 0 0 9px rgba(232,88,44,0); } 100% { box-shadow: 0 0 0 0 rgba(232,88,44,0); } }

/* téléphone : l'action reste au pouce */
.barre-club { display: none; }

/* ---------- 1. récit 3D ---------- */
.recit { position: relative; height: 560vh; }
.scene-collante { position: sticky; top: 0; height: 100vh; overflow: hidden;
  background: radial-gradient(70% 80% at 70% 55%, #ffffff 0%, var(--fond) 70%); }
.scene3d { position: absolute; inset: 0; }
.scene3d canvas { display: block; }
/* accueil : les sources attirées par l'immeuble (derrière la 3D, puis devant quand elles passent au premier plan) */
.aimant { position: absolute; inset: 0; pointer-events: none; visibility: hidden; }
.aimant svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.aimant line { stroke-width: 1.2; stroke-dasharray: 3 4; }
.aimant line.proc { stroke: var(--chaud); } .aimant line.tr { stroke: var(--tiede); } .aimant line.reg { stroke: var(--vert); }
.aimant line.int { stroke: var(--encre); } .aimant line.radar { stroke: var(--vente); }
.pastille { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 7px 13px 7px 10px; border-radius: 999px; background: rgba(255,255,255,.94); border: 1px solid var(--ligne);
  box-shadow: 0 6px 18px -8px rgba(13,27,22,.28); will-change: transform, opacity;
  font: 600 11.5px/1 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .07em; text-transform: uppercase; color: var(--encre); }
.pastille i { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent); }
.pastille.proc { --c: var(--chaud); border-color: color-mix(in srgb, var(--chaud) 35%, transparent); }
.pastille.tr { --c: var(--tiede); border-color: color-mix(in srgb, var(--tiede) 40%, transparent); }
.pastille.reg { --c: var(--vert); }
.pastille.int { --c: var(--encre); }
.pastille.radar { --c: var(--vente); background: var(--encre); color: #fff; border-color: var(--encre); }
.etapes { position: absolute; left: var(--gauche); top: 0; bottom: 0; width: min(560px, 41vw); pointer-events: none; }
.etape { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); opacity: 0; }
.etape.e0 { opacity: 1; pointer-events: auto; }
/* accueil : le bloc descend, pour respirer sous le menu (il y avait de la place en bas) */
@media (min-width: 901px) { .etape.e0 { top: calc(50% + 6vh); } }
.etape h1 { font-size: clamp(44px, 5.2vw, 84px); line-height: 1.02; letter-spacing: -.05em; }
.etape h1 em { line-height: 1.16; }
.etape .chapo { margin: 28px 0 0; font-size: clamp(17px, 1.35vw, 20px); color: var(--doux); max-width: 500px; }
.etape .chapo b { color: var(--encre); }
.etape .actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.etape h2 { font-size: clamp(36px, 4.2vw, 62px); }
.etape p { font-size: clamp(17px, 1.35vw, 20px); color: var(--doux); margin: 22px 0 0; max-width: 470px; }
.etape p b { color: var(--encre); }
.defiler { display: flex; align-items: center; gap: 12px; margin-top: 54px !important; font-size: 14px !important; color: var(--pale) !important; }
.souris { width: 22px; height: 34px; border: 2px solid var(--pale); border-radius: 12px; position: relative; flex: none; }
.souris::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--pale); animation: molette 1.6s ease-in-out infinite; }
@keyframes molette { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }

.encart {
  position: absolute; z-index: 3; background: var(--blanc); border: 1px solid var(--ligne); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(13,27,22,.12); padding: 18px 20px; opacity: 0; pointer-events: none;
  display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; color: var(--doux);
}
.encart small { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--pale); }
.encart b { font-size: 19px; color: var(--encre); letter-spacing: -.01em; line-height: 1.25; }
.encart-bodacc { right: var(--gauche); top: 30vh; width: 290px; border-top: 5px solid var(--or); }
.encart-bodacc .puce { align-self: flex-start; margin-bottom: 6px; }
.encart-bodacc .zone { font-family: "IBM Plex Mono", monospace; font-size: 12px; margin-top: 4px; }
.encart-fiche { right: var(--gauche); bottom: 12vh; width: 330px; }
.encart-fiche ul { list-style: none; margin: 6px 0 0; padding: 0; }
.encart-fiche li { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-top: 1px solid var(--ligne); font-size: 14px; }
.encart-fiche li b { font-size: 14px; text-align: right; }
.puce { font-weight: 700; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; color: #fff; background: var(--chaud); }
.puce.tiede { background: var(--or); color: var(--encre); }
.puce.froid { background: var(--froid); }
.progression { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.progression li { width: 6px; height: 6px; border-radius: 50%; background: rgba(13,27,22,.18); transition: background .3s, transform .3s; }
.progression li.actif { background: var(--encre); transform: scale(1.5); }

/* étiquettes 3D */
.et { pointer-events: none; }
.et > div { transform: translateX(calc(50% + 16px)); display: flex; align-items: center; gap: 9px; white-space: nowrap; font-size: 13px; }
.et .trait { width: 22px; height: 1px; background: var(--encre); opacity: .35; }
.et .n { font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--doux); min-width: 86px; }
.et .p { font-weight: 700; background: #fff; border: 1px solid var(--ligne); padding: 1px 8px 2px; border-radius: 5px; }
.et .c { color: var(--doux); font-size: 12px; }
.et.s .p { background: var(--or); border-color: var(--or); }
.et .t { font-size: 11.5px; font-weight: 700; padding: 2px 8px 3px; border-radius: 999px; border: 1px solid transparent; }
.et .t.chaud { background: #fdeee8; color: #c0392b; border-color: rgba(192,57,43,.25); }
.et .t.tiede { background: #fff4d6; color: #8a6400; border-color: rgba(224,164,0,.35); }
.et .t.froid { background: #eef1ee; color: var(--doux); border-color: var(--ligne); }
.et .t.neutre { background: #fff; color: var(--doux); border-color: var(--ligne); font-weight: 600; }
.liste-etages { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; font-size: .9em; }
.liste-etages span { border-left: 3px solid var(--chaud); padding-left: 10px; }
/* étape 02 : la fiche du dossier, reliée à son étage */
.e2 h2 { font-size: clamp(30px, 3.2vw, 48px); }
.e2 .autres { font-size: 14px !important; color: var(--pale) !important; margin-top: 14px !important; }
.fil-dossier { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 2; opacity: 0; }
.fil-dossier path { fill: none; stroke: var(--chaud); stroke-width: 2; }
.fil-dossier circle { fill: var(--chaud); stroke: #fff; stroke-width: 2.5; }
.encart-dossier { right: 44px; top: auto; bottom: 7vh; width: 330px; padding: 0; gap: 0; border-top: 5px solid var(--chaud); overflow: hidden; }
.fd { color: var(--doux); }
.fd .fd-tete { display: flex; align-items: center; gap: 10px; padding: 12px 18px 6px; }
.fd .fd-tete small { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--pale); }
.fd .fd-l { padding: 9px 18px; border-top: 1px solid var(--ligne); font-size: 13px; line-height: 1.35; }
.fd .fd-l:first-of-type { border-top: 0; }
.fd h4 { margin: 0 0 2px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--pale); }
.fd .fd-l b { display: block; font-size: 15.5px; color: var(--encre); letter-spacing: -.01em; }
.fd .fd-or { background: var(--or); color: var(--encre); }
.fd .fd-or h4 { color: rgba(13,27,22,.6); }
.fd .tel { font-family: "IBM Plex Mono", monospace; font-weight: 600; color: var(--vert); }
.fd .fd-liens { display: flex; gap: 14px; padding: 10px 18px 12px; border-top: 1px solid var(--ligne); font-size: 13px; pointer-events: auto; }
.fd .fd-liens a { color: var(--vert); font-weight: 700; text-decoration: none; }
.encart-dossier:has(.fd-liens) { pointer-events: auto; }
.fd-mobile { display: none; }
.et.vide > div { opacity: .45; }
.cote { pointer-events: none; }
.cote > div {
  font-family: "IBM Plex Mono", monospace; font-size: 13px; font-weight: 600; white-space: nowrap;
  background: #fff; color: var(--encre); border: 1px solid var(--ligne); padding: 5px 10px; border-radius: 6px;
}
.cote > div small { display: block; font-size: 10.5px; font-weight: 400; color: var(--pale); }

/* ---------- 2. chiffres ---------- */
.chiffres { padding: 18vh var(--marge) 14vh; max-width: calc(var(--large) + 2 * var(--marge)); margin: 0 auto; }
.chiffres dl { margin: 34px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.chiffres dl div { display: flex; flex-direction: column; border-top: 1px solid var(--encre); padding-top: 18px; }
.chiffres dd { order: -1; margin: 0; font-family: "League Gothic", sans-serif; font-size: clamp(54px, 6.5vw, 104px); line-height: .95; }
.chiffres dt { margin-top: 10px; color: var(--doux); font-size: 15.5px; max-width: 240px; }
number-flow { --number-flow-char-height: 1em; font-variant-numeric: tabular-nums; }

/* ---------- 3. carte ---------- */
.carte { position: relative; height: 480vh; }
.carte-collante { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.carte-map { position: absolute; inset: 0; }
.carte-voile { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(244,243,239,.97) 0%, rgba(244,243,239,.88) 30%, rgba(244,243,239,0) 52%); }
.carte-textes { position: absolute; left: var(--gauche); top: 0; bottom: 0; width: min(460px, 36vw); }
.ct { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); opacity: 0; }
.ct p:not(.num) { color: var(--doux); font-size: clamp(17px, 1.35vw, 20px); margin: 20px 0 26px; }
.ct b { color: var(--encre); }
.legende-carte { position: absolute; right: var(--marge); bottom: 6vh; list-style: none; margin: 0; padding: 12px 16px; display: flex; flex-direction: column; gap: 7px;
  background: rgba(251,250,247,.9); border: 1px solid var(--ligne); border-radius: 12px; font-size: 13px; color: var(--doux); }
.legende-carte i { display: inline-block; width: 10px; height: 10px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); margin-right: 10px; }
.h-chaud { background: var(--chaud); } .h-tiede { background: var(--tiede); } .h-froid { background: var(--froid); } .h-vente { background: var(--vente); }
.maplibregl-ctrl-attrib { background: rgba(251,250,247,.8) !important; font-size: 10px; color: var(--pale); }

/* fils et étiquettes (carte et trottoir) */
.fils { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 3; }
.fils path { fill: none; stroke: var(--encre); stroke-width: 1.6; }
.fils path.or { stroke: var(--or-fonce); stroke-width: 2; }
.fils circle { fill: var(--or); stroke: var(--encre); stroke-width: 1.6; }
.fils circle.halo { fill: rgba(255,205,60,.28); stroke: none; }
.etiquettes { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.tag {
  position: absolute; background: var(--blanc); border: 1px solid var(--ligne); border-radius: 12px; padding: 10px 14px 11px;
  box-shadow: 0 14px 34px rgba(13,27,22,.14); max-width: 300px; opacity: 0; font-size: 14px; line-height: 1.35; color: var(--doux);
}
.tag small { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--encre); margin-bottom: 4px; }
.tag small::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--vert); flex: none; }
.tag.or small::before { background: var(--encre); }
.tag.noir small::before { background: var(--or); }
.tag b { display: block; color: var(--encre); font-size: 17px; letter-spacing: -.01em; }
.tag.or { background: var(--or); border-color: var(--or); }
.tag.or small { color: var(--encre); }
.tag.noir { background: #e9f4ee; border-color: rgba(29,122,79,.35); color: var(--doux); }
.tag.noir small { color: var(--vert); } .tag.noir b { color: var(--encre); }
.tag .tel { font-family: "IBM Plex Mono", monospace; font-weight: 600; color: var(--encre); }
.tag.noir .tel { color: var(--vert); }

/* ---------- 4. trottoir ---------- */
.trottoir { position: relative; height: 520vh; background: var(--papier); color: var(--encre); border-top: 1px solid var(--ligne); }
.trottoir-collant { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.trottoir-tete { position: absolute; left: var(--gauche); top: 12vh; z-index: 6; }
.trottoir-tete .num { color: var(--vert); }
.trottoir-tete h2 { font-size: clamp(30px, 3vw, 46px); }
.diapos { position: absolute; inset: 0; }
.diapo { position: absolute; inset: 0; opacity: 0; }
.diapo .cadre {
  position: absolute; right: calc(var(--gauche) + 300px); top: 50%; transform: translateY(-44%);
  width: min(46vw, 740px); aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; background: #e7e5de;
  box-shadow: 0 30px 80px rgba(13,27,22,.16);
}
.diapo .cadre > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.diapo .cadre .grille { position: absolute; inset: 0; opacity: 0;
  background-image: linear-gradient(rgba(255,205,60,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255,205,60,.18) 1px, transparent 1px);
  background-size: 48px 48px; mix-blend-mode: screen; }
.diapo .cadre .scan { position: absolute; top: 0; bottom: 0; left: 0; width: 3px; background: var(--or); box-shadow: 0 0 26px 8px rgba(255,205,60,.55); opacity: 0; }
.diapo .cadre .cible { position: absolute; left: 50%; top: 46%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border: 2px solid var(--or); border-radius: 14px; opacity: 0; }
.diapo .cadre .cible::before, .diapo .cadre .cible::after { content: ""; position: absolute; background: var(--or); }
.diapo .cadre .cible::before { left: 50%; top: -18px; width: 2px; height: 14px; }
.diapo .cadre .cible::after { top: 50%; left: -18px; height: 2px; width: 14px; }
.diapo .illus { position: absolute; left: 14px; bottom: 12px; z-index: 5; font-size: 11px; color: #e8efeb; background: rgba(0,0,0,.5); padding: 3px 8px; border-radius: 5px; max-width: 90%; }
.fiche-cas {
  position: absolute; right: var(--gauche); top: 50%; transform: translateY(-46%); width: 340px; z-index: 4;
  background: var(--blanc); color: var(--doux); border-radius: 20px; padding: 8px 22px 12px; border: 1px solid var(--ligne); box-shadow: 0 30px 70px rgba(13,27,22,.14);
}
.fiche-cas .ligne { padding: 12px 0; border-bottom: 1px solid var(--ligne); font-size: 14px; line-height: 1.35; }
.fiche-cas .ligne:last-child { border-bottom: 0; }
.fiche-cas h4 { margin: 0 0 3px; display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--encre); }
.fiche-cas h4::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--vert); }
.fiche-cas .ligne.or { background: var(--or); margin: 8px -12px 4px; padding: 12px; border-radius: 12px; border: 0; }
.fiche-cas .ligne.or h4::before { background: var(--encre); }
.fiche-cas .ligne.noir { background: #e9f4ee; color: var(--doux); margin: 4px -12px; padding: 12px; border-radius: 12px; border: 0; }
.fiche-cas .ligne.noir h4 { color: var(--vert); } .fiche-cas .ligne.noir h4::before { background: var(--vert); }
.fiche-cas .ligne.noir b { color: var(--encre); }
.fiche-cas b { display: block; color: var(--encre); font-size: 17px; letter-spacing: -.01em; }
.fiche-cas .tel { font-family: "IBM Plex Mono", monospace; font-weight: 600; color: var(--vert); }
.diapo .compteur { position: absolute; left: var(--gauche); bottom: 10vh; font-family: "League Gothic", sans-serif; font-size: 110px; line-height: 1; color: rgba(13,27,22,.08); }
.diapo .compteur b { color: var(--or-fonce); }
.diapo .resume { position: absolute; left: var(--gauche); top: 44vh; width: min(220px, 15vw); color: var(--doux); font-size: 15.5px; }
.diapo .resume b { display: block; color: var(--encre); font-size: 22px; letter-spacing: -.02em; line-height: 1.2; margin-bottom: 8px; }
.diapo .resume a { display: inline-block; margin-top: 16px; color: var(--vert); font-weight: 700; text-decoration: none; }
.trottoir-credit { position: absolute; left: var(--gauche); bottom: 4vh; color: var(--pale); z-index: 6; }
.trottoir-vide { position: absolute; left: var(--gauche); top: 45vh; color: var(--doux); max-width: 520px; }

/* ---------- 4 bis. transmission ---------- */
.transmission { position: relative; height: 480vh; background: var(--fond); color: var(--encre); border-top: 1px solid var(--ligne); }
.tr-collant { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.tr-gauche { position: absolute; left: var(--gauche); top: 50%; transform: translateY(-50%); width: min(560px, 42vw); z-index: 3; }
.tr-gauche .num { color: var(--vert); }
.tr-titre { font-size: clamp(32px, 3.3vw, 52px); }
.tr-titre em { color: var(--encre); line-height: 1.18; }
.tr-texte { color: var(--doux); font-size: clamp(16px, 1.25vw, 19px); margin: 22px 0 0; }
.tr-chiffres { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 34px; }
.tr-c { display: flex; flex-direction: column; border-top: 1px solid var(--ligne); padding-top: 14px; position: relative; }
.tr-c i { position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; }
.tr-c.deces i { background: var(--chaud); box-shadow: 0 0 0 5px rgba(232,88,44,.18); } .tr-c.ages i { background: var(--tiede); box-shadow: 0 0 0 5px rgba(224,164,0,.2); }
.tr-c number-flow { font-family: "League Gothic", sans-serif; font-size: clamp(52px, 5vw, 80px); line-height: .95; color: var(--encre); }
.tr-c span { color: var(--doux); font-size: 14px; margin-top: 6px; }
.tr-c b { font-size: 17px; margin-top: 8px; }
.tr-c.deces b { color: #c4441c; } .tr-c.ages b { color: #9a6f00; }
.tr-regle { margin: 26px 0 0; font-size: 13.5px; color: var(--doux); border-left: 2px solid var(--or-fonce); padding-left: 12px; }
.tr-droite { position: absolute; right: var(--gauche); top: 50%; transform: translateY(-50%); width: min(44vw, 640px); aspect-ratio: 1; }
.tr-scope { width: 100%; height: 100%; display: block; overflow: visible; }
.tr-scope .pt { transition: none; }
.tr-cartes { position: absolute; inset: 0; pointer-events: none; }

/* fiches Transmission : une couleur par signal, la même partout (radar, chiffres, fiches) */
.tr-carte {
  --acc: var(--chaud); --acc-fonce: #c4441c; --acc-pale: #fdeee8; --acc-texte: #fff;
  position: absolute; left: 50%; top: 50%; width: min(440px, 94%); background: var(--blanc); color: var(--doux); border-radius: 20px;
  overflow: hidden; border: 1px solid var(--ligne); box-shadow: 0 30px 80px rgba(13,27,22,.18); opacity: 0; font-size: 14px; line-height: 1.45;
}
.tr-carte.ages { --acc: var(--tiede); --acc-fonce: #9a6f00; --acc-pale: #fff4d6; --acc-texte: var(--encre); }
.tr-carte header { display: flex; align-items: center; gap: 10px; padding: 12px 18px; background: var(--acc); color: var(--acc-texte); }
.tr-carte header .rang { font-family: "IBM Plex Mono", monospace; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(255,255,255,.22); padding: 3px 8px; border-radius: 6px; }
.tr-carte.ages header .rang { background: rgba(13,27,22,.1); }
.tr-carte header .sig { font-weight: 800; font-size: 15px; letter-spacing: -.01em; }
.tr-carte header .etat { margin-left: auto; font-size: 12px; font-weight: 700; opacity: .9; }
.tr-corps { padding: 16px 18px 18px; }
.tr-valeur { display: flex; align-items: center; gap: 14px; }
.tr-valeur strong { font-family: "League Gothic", sans-serif; font-weight: 400; font-size: 54px; line-height: .9; color: var(--encre); white-space: nowrap; }
.tr-valeur span { font-weight: 700; color: var(--encre); font-size: 15px; line-height: 1.25; }
.tr-valeur small { font-weight: 400; color: var(--pale); font-size: 12px; }
.tr-trois { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 12px; }
.tr-trois div { background: var(--acc-pale); border-radius: 10px; padding: 8px 10px; border-top: 3px solid var(--acc); }
.tr-trois dt { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--acc-fonce); }
.tr-trois dd { margin: 2px 0 0; font-size: 16px; font-weight: 800; color: var(--encre); letter-spacing: -.02em; line-height: 1.2; }
.tr-trois small { font-size: 11px; color: var(--doux); }
.tr-pourquoi, .tr-verifs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.tr-pourquoi li, .tr-verifs li { position: relative; padding-left: 18px; color: var(--encre); }
.tr-pourquoi li::before { content: ""; position: absolute; left: 3px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); }
.tr-verifs { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--ligne); }
.tr-verifs li { color: var(--doux); }
.tr-verifs li::before { content: "✓"; position: absolute; left: 1px; top: 0; font-weight: 800; color: var(--acc-fonce); }
.tr-carte .ecrire { margin: 12px 0 0; padding: 8px 12px; border-radius: 10px; background: #f3f4f1; color: var(--doux); font-size: 12.5px; border-left: 3px solid var(--acc); }

/* ---------- 5. biens ---------- */
.tete { max-width: 760px; }
.tete p:not(.num) { color: var(--doux); font-size: clamp(17px, 1.35vw, 20px); margin: 24px 0 0; max-width: 560px; }
.biens { padding: 18vh var(--marge) 8vh; max-width: calc(var(--large) + 2 * var(--marge)); margin: 0 auto; }
.chapitre { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding: 14vh 0 0; }
.chapitre:nth-child(even) { grid-template-columns: .9fr 1.1fr; }
.chapitre:nth-child(even) .visuel { order: 2; }
.visuel { position: relative; }
.visuel .photo { border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3.2; background: #e7e5de; }
.visuel .photo img { width: 100%; height: 118%; object-fit: cover; margin-top: -9%; }
.visuel .ecran {
  position: absolute; width: 62%; right: -6%; bottom: -10%; border-radius: 12px; overflow: hidden; border: 1px solid var(--ligne);
  box-shadow: 0 30px 70px rgba(13,27,22,.22); background: #fff;
}
.chapitre:nth-child(even) .visuel .ecran { right: auto; left: -6%; }
.visuel .ecran img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 0 0; }
.visuel .ecran span { position: absolute; left: 10px; top: 10px; font-size: 11px; font-family: "IBM Plex Mono", monospace; background: var(--encre); color: #fff; padding: 3px 8px; border-radius: 5px; }
.texte-chap .rang { font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--vert); letter-spacing: .08em; }
.texte-chap h3 { font-size: clamp(34px, 3.6vw, 54px); letter-spacing: -.04em; margin-top: 10px; }
.texte-chap .gros { display: flex; align-items: baseline; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.texte-chap .gros number-flow { font-family: "League Gothic", sans-serif; font-size: clamp(60px, 7vw, 110px); line-height: .9; }
.texte-chap .gros span { color: var(--doux); font-size: 16px; max-width: 200px; }
.texte-chap .second { margin-top: 12px; display: inline-flex; align-items: baseline; gap: 10px; background: var(--or); padding: 6px 14px; border-radius: 8px; font-size: 15px; }
.texte-chap .second b { font-family: "League Gothic", sans-serif; font-size: 32px; font-weight: 400; line-height: 1; }
.texte-chap ul { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--ligne); }
.texte-chap li { padding: 13px 0 13px 30px; border-bottom: 1px solid var(--ligne); position: relative; font-size: 16.5px; }
.texte-chap li::before { content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; border: 2px solid var(--vert); }
.texte-chap li::after { content: ""; position: absolute; left: 5px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: var(--vert); }

/* ---------- 6. fiches ---------- */
.fiches { padding: 22vh var(--marge) 10vh; max-width: calc(var(--large) + 2 * var(--marge)); margin: 0 auto; }
.pile { margin-top: 64px; }
.feuille {
  position: sticky; top: 14vh; display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center;
  background: var(--blanc); border: 1px solid var(--ligne); border-radius: 24px; padding: 36px; margin-bottom: 6vh; min-height: 52vh;
  box-shadow: 0 30px 80px rgba(13,27,22,.08); transform-origin: 50% 0;
}
.feuille:nth-child(2) { top: calc(14vh + 14px); } .feuille:nth-child(3) { top: calc(14vh + 28px); }
.feuille:nth-child(4) { top: calc(14vh + 42px); } .feuille:nth-child(5) { top: calc(14vh + 56px); }
.feuille-txt span { font-family: "League Gothic", sans-serif; font-size: 64px; line-height: 1; display: inline-block; border-bottom: 8px solid var(--or); }
.feuille-txt h3 { margin-top: 22px; }
.feuille-txt p { color: var(--doux); margin: 12px 0 0; }
.feuille img { width: 100%; max-height: 46vh; object-fit: contain; border-radius: 12px; border: 1px solid var(--ligne); background: #fff; }

/* ---------- 7. matin ---------- */
.matin { padding: 14vh var(--marge) 18vh; max-width: calc(var(--large) + 2 * var(--marge)); margin: 0 auto; }
.trois { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.trois li { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; }
.trois i, .quatre i { font-style: normal; width: 48px; height: 48px; border-radius: 50%; background: var(--or); display: grid; place-items: center; font-weight: 800; font-size: 22px; }
.trois b { display: block; font-size: 22px; letter-spacing: -.02em; }
.trois p { margin: 6px 0 0; color: var(--doux); font-size: 16.5px; }
.capture-matin { margin: 64px 0 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--ligne); box-shadow: 0 40px 90px rgba(13,27,22,.12); }

/* ---------- 8. club ---------- */
.club { position: relative; padding: 16vh var(--marge); overflow: hidden; background: var(--blanc); border-top: 10px solid var(--or); }
.club-fond { position: absolute; inset: 0; opacity: .9; }
.club-contenu { position: relative; max-width: var(--large); margin: 0 auto; display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.club h2 { font-size: clamp(36px, 4.4vw, 64px); }
.club h2 em { line-height: 1.16; }
.pour { font-size: 19px; color: var(--doux); margin: 22px 0 0; }
.cinq { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 22px; }
.cinq li { display: grid; grid-template-columns: 70px 1fr; gap: 16px; align-items: start; }
.cinq i { font-style: normal; font-family: "League Gothic", sans-serif; font-size: 46px; line-height: .9; border-bottom: 6px solid var(--or); justify-self: start; }
.cinq b { font-size: 21px; letter-spacing: -.02em; }
.cinq p { margin: 2px 0 0; color: var(--doux); font-size: 16px; }
.candidature { background: var(--blanc); border: 1px solid var(--ligne); border-radius: 24px; padding: 32px; box-shadow: 0 40px 100px rgba(13,27,22,.14); display: grid; gap: 26px; }
.candidature > img { width: 220px; height: 220px; image-rendering: pixelated; justify-self: center; }
.candidature h3 { font-size: clamp(26px, 2.4vw, 34px); margin-bottom: 18px; }
.candidature h3 em { line-height: 1.2; }
.quatre { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; font-size: 19px; font-weight: 600; }
.quatre li { display: flex; align-items: center; gap: 14px; }
.quatre i { width: 38px; height: 38px; font-size: 17px; flex: none; }

/* ---------- pied ---------- */
.pied { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 32px var(--marge); background: var(--papier); border-top: 1px solid var(--ligne); color: var(--doux); font-size: 14px; }
.pied-lien { color: inherit; text-decoration: underline; text-underline-offset: 3px; opacity: .8; }
.marque-pied { color: var(--encre); font-size: 18px; } .marque-pied b { font-weight: 800; }

/* ---------- téléphone ---------- */
@media (max-width: 900px) {
  body { font-size: 17px; }
  .liens-nav { display: none; }
  .nav .candidater { margin-left: auto; padding: 9px 15px; font-size: 14px; }
  .pastille { font-size: 9.5px; padding: 5px 9px 5px 7px; gap: 6px; }
  .pastille i { width: 6px; height: 6px; }
  .etape .frais { font-size: 12.5px; margin-bottom: 14px; padding: 6px 12px 6px 10px; border-radius: 12px; align-items: flex-start; }
  .etape .frais .pouls { margin-top: 4px; }
  .barre-club { display: flex; position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    align-items: center; justify-content: space-between; gap: 10px; padding: 13px 18px; border-radius: 14px;
    background: var(--encre); color: #fff; text-decoration: none; box-shadow: 0 12px 30px rgba(13,27,22,.28);
    transform: translateY(140%); transition: transform .35s ease; }
  .barre-club span { font-size: 13px; opacity: .75; white-space: nowrap; }
  .barre-club b { font-size: 15.5px; white-space: nowrap; }
  .barre-club.visible { transform: none; }
  .nav { height: 56px; gap: 10px; padding-left: 14px; }
  /* téléphone : le logo laissait le bouton « Candidater » coupé (01/12/2026) */
  .nav .marque { font-size: 15px; letter-spacing: .14em; gap: 7px; min-width: 0; }
  .nav .marque svg { width: 26px; height: 26px; }
  .etapes { left: 20px; right: 20px; width: auto; top: auto; bottom: 0; height: 50vh; }
  .etape { top: auto; bottom: 6vh; transform: none; }
  .etape h1 { font-size: 36px; }
  .etape .chapo { font-size: 16px; margin-top: 16px; }
  .etape .actions { margin-top: 20px; }
  .defiler { display: none !important; }
  .scene-collante { background: radial-gradient(90% 60% at 50% 30%, #ffffff 0%, var(--fond) 80%); }
  .encart { display: none; }
  .et .c, .et .t.neutre { display: none; }
  .et.bouge .p { display: none; }
  .fil-dossier { display: none; }
  .e2 h2 { font-size: 25px; }
    .e2 .autres { font-size: 12px !important; margin-top: 8px !important; }
  .fd-mobile { display: block; margin-top: 10px; background: #fff; border: 1px solid var(--ligne); border-top: 4px solid var(--chaud); border-radius: 14px; overflow: hidden; }
  .fd-mobile .fd-tete { display: none; }
  .fd-mobile .fd-l { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 6px 12px; font-size: 0; }
  .fd-mobile .fd-l h4 { font-size: 10px; margin: 0; flex: none; }
  .fd-mobile .fd-l b { font-size: 13px; text-align: right; }
  .fd-mobile .fd-l br, .fd-mobile .fd-l .tel { display: none; }
  .fd-mobile .fd-liens { font-size: 12px; padding: 6px 12px; }
  .tr-verifs, .tr-carte .ecrire, .tr-trois small { display: none; }
  .tr-valeur strong { font-size: 40px; }
  .tr-trois { margin: 10px 0 8px; gap: 6px; }
  .tr-trois div { padding: 6px 8px; }
  .tr-trois dd { font-size: 13.5px; }
  .tr-carte header { padding: 10px 14px; }
  .tr-corps { padding: 12px 14px 14px; }
  .liste-etages { font-size: 14px; }
  .et > div { font-size: 11px; gap: 6px; }
  .et .n, .et .trait { display: none; }
  .progression { display: none; }
  .chiffres dl { grid-template-columns: 1fr 1fr; gap: 24px; }
  .carte-voile { background: linear-gradient(0deg, rgba(244,243,239,.96) 0%, rgba(244,243,239,.85) 34%, rgba(244,243,239,0) 58%); }
  .carte-textes { left: 20px; right: 20px; width: auto; top: auto; bottom: 0; height: 40vh; }
  .ct { top: auto; bottom: 5vh; transform: none; }
  .legende-carte { display: none; }
  .tag { max-width: 190px; font-size: 12px; padding: 7px 10px 8px; }
  .tag b { font-size: 14px; }
  .trottoir-tete { top: 10vh; left: 20px; }
  .diapo .cadre { right: 0; left: 0; width: 100vw; border-radius: 0; top: 26vh; transform: none; aspect-ratio: auto; height: 30vh; }
  .fiche-cas { left: 16px; right: 16px; width: auto; top: auto; bottom: 6.5vh; transform: none; padding: 4px 16px 8px; }
  .trottoir-credit { left: 16px; right: 16px; bottom: 1.2vh; font-size: 10px; line-height: 1.3; }
  .fiche-cas .ligne { padding: 7px 0; font-size: 12.5px; }
  .fiche-cas b { font-size: 14.5px; }
  .fiche-cas h4 { font-size: 11px; }
  .transmission { height: 520vh; }
  .tr-gauche { left: 20px; right: 20px; width: auto; top: 11vh; transform: none; }
  .tr-texte, .tr-regle { display: none; }
  .tr-chiffres { margin-top: 18px; gap: 14px; }
  .tr-c number-flow { font-size: 44px; }
  .tr-c span { font-size: 12px; }
  .tr-droite { right: 6vw; width: 88vw; top: auto; bottom: 3vh; transform: none; }
  .diapo .resume, .diapo .compteur { display: none; }
  .chapitre, .chapitre:nth-child(even) { grid-template-columns: 1fr; gap: 54px; padding-top: 10vh; }
  .chapitre:nth-child(even) .visuel { order: 0; }
  .visuel .ecran { width: 70%; right: -2% !important; left: auto !important; bottom: -12%; }
  .feuille { grid-template-columns: 1fr; gap: 18px; padding: 22px; min-height: 0; top: 10vh; }
  .feuille-txt span { font-size: 44px; }
  .trois { grid-template-columns: 1fr; }
  .club-contenu { grid-template-columns: 1fr; gap: 40px; }
  .sur { white-space: normal; }
}

/* ---------- téléphone, reprise du 01/12/2026 : une colonne alignée (marge de 20 px), rien ne sort, barre fixe réservée ---------- */
@media (max-width: 760px) {
  :root { --bas: calc(88px + env(safe-area-inset-bottom)); }
  /* candidater.css pose overflow-x:hidden sur html sous 640 px : le corps devenait un conteneur de défilement et tous les
     récits épinglés (position: sticky) cessaient de coller. On le défait ici, sur cette page seulement. */
  html:has(#haut) { overflow: visible; max-width: none; }
  html:has(#haut) body { overflow-x: hidden; max-width: none; }
  /* en-tête : calé par left/right, sans translateX(-50%) (GSAP le convertissait en pixels au chargement et décalait la barre) */
  .nav { left: 14px; right: 14px; width: auto; transform: none !important; }
  [id] { scroll-margin-top: 84px; }
  /* un décor ou une animation d'entrée (échelle, décalage) ne doit jamais élargir la page */
  .chiffres, .biens, .fiches, .matin, .club, .pied { overflow-x: clip; }
  h2 { font-size: clamp(30px, 8.6vw, 38px); line-height: 1.05; }
  .tete p:not(.num) { font-size: 17px; margin-top: 16px; }
  .num { margin-bottom: 12px; font-size: 12px; }

  /* 1. récit : l'immeuble en haut, le texte sur un fond plein en bas, jamais l'un sur l'autre */
  .scene3d { inset: 70px 0 auto 0; height: calc(100vh - 70px - 46vh); }
  .etapes { height: auto; top: auto; bottom: 0; pointer-events: none; }
  .etape { position: absolute; left: 0; right: 0; bottom: var(--bas); top: auto; transform: none; }
  .etape:not(.e0) { padding: 16px 16px 18px; background: rgba(251,250,247,.94); border: 1px solid var(--ligne); border-radius: 18px;
    box-shadow: 0 18px 40px rgba(13,27,22,.10); }
  .etape h2 { font-size: clamp(26px, 7.4vw, 32px); }
  .etape p { font-size: 15.5px; margin-top: 10px; max-width: none; }
  .etape .num { margin-bottom: 8px; }
  .e2 h2 { font-size: clamp(21px, 5.9vw, 25px); }
  .e2 .autres { margin-top: 8px !important; }
  .et > div { font-size: 11.5px; transform: translateX(calc(50% + 10px)); }
  .et .p { padding: 1px 6px 2px; }
  .pastille { font-size: 9.5px; }

  /* 2. chiffres */
  .chiffres { padding: 12vh var(--marge) 10vh; }
  .chiffres dd { font-size: clamp(52px, 15vw, 66px); }
  .chiffres dt { font-size: 14.5px; max-width: none; }
  .chiffres dl { gap: 22px 18px; }

  /* 3. carte : texte sur un voile plein en bas, au-dessus de la barre */
  .carte-voile { background: linear-gradient(0deg, rgba(244,243,239,.98) 0%, rgba(244,243,239,.95) 36%, rgba(244,243,239,0) 62%); }
  .carte-textes { height: auto; bottom: 0; top: auto; }
  .ct { left: 0; right: 0; bottom: var(--bas); top: auto; transform: none; }
  .ct p:not(.num) { font-size: 16px; margin: 10px 0 0; }
  .tag { max-width: min(190px, 52vw); }

  /* 4. dossiers du jour : titre, photo, fiche dans la même colonne */
  .trottoir-tete { left: var(--marge); right: var(--marge); top: 78px; }
  .trottoir-tete h2 { font-size: clamp(26px, 7.4vw, 30px); }
  .trottoir-tete .num { margin-bottom: 8px; }
  .diapo .cadre { left: var(--marge); right: var(--marge); width: auto; height: 17vh; top: 172px; border-radius: 16px; }
  .diapo .cadre > img.photo, .diapo img.photo { width: 100%; max-width: none; height: 100%; }
  .fiche-cas { left: var(--marge); right: var(--marge); width: auto; max-width: none; bottom: var(--bas); padding: 2px 14px 6px; border-radius: 16px; }
  .fiche-cas .ligne { padding: 5px 0; font-size: 12px; line-height: 1.3; }
  .fiche-cas b { font-size: 14px; }
  .fiche-cas h4 { font-size: 10.5px; margin-bottom: 1px; }
  .fiche-cas .ligne.or, .fiche-cas .ligne.noir { margin-left: -8px; margin-right: -8px; padding: 7px 8px; }
  .trottoir-credit { display: none; }

  /* 4 bis. transmission */
  .tr-gauche { left: var(--marge); right: var(--marge); top: 80px; }
  .tr-titre { font-size: clamp(27px, 7.6vw, 32px); }
  .tr-droite { right: auto; left: 50%; margin-left: calc(-44vw); width: 88vw; bottom: var(--bas); }
  .tr-carte { width: min(440px, 100%); top: 76%; }

  /* 5. biens : la capture sous la photo, pas par-dessus */
  .biens { padding: 12vh var(--marge) 6vh; }
  .chapitre, .chapitre:nth-child(even) { gap: 22px; padding-top: 9vh; }
  .visuel .photo { aspect-ratio: 16 / 11; border-radius: 18px; }
  .visuel .ecran, .chapitre:nth-child(even) .visuel .ecran { position: relative; width: 100%; right: auto !important; left: auto !important; bottom: auto;
    margin: 12px 0 0; border-radius: 14px; box-shadow: 0 14px 34px rgba(13,27,22,.14); }
  .visuel .ecran img { aspect-ratio: 16 / 10; }
  .texte-chap h3 { font-size: clamp(32px, 9vw, 40px); }
  .texte-chap .gros { margin-top: 14px; gap: 12px; }
  .texte-chap .gros span { max-width: none; flex: 1 1 140px; }
  .texte-chap ul { margin-top: 18px; }
  .texte-chap li { font-size: 16px; }

  /* 6. fiches */
  .fiches { padding: 12vh var(--marge) 6vh; }
  .pile { margin-top: 32px; }
  .feuille, .feuille:nth-child(n) { top: 82px; padding: 18px; border-radius: 20px; margin-bottom: 4vh; box-shadow: 0 18px 44px rgba(13,27,22,.08); }
  .feuille:nth-child(2) { top: 90px; } .feuille:nth-child(3) { top: 98px; } .feuille:nth-child(4) { top: 106px; } .feuille:nth-child(5) { top: 114px; }
  .feuille img { max-height: none; width: 100%; }

  /* 7. chaque matin : la capture pleine largeur de l'écran, recadrée sur la carte */
  .matin { padding: 10vh var(--marge) 10vh; }
  .trois { margin-top: 30px; gap: 22px; }
  .trois li { grid-template-columns: 44px 1fr; gap: 14px; }
  .trois i { width: 44px; height: 44px; }
  .trois b { font-size: 20px; }
  .capture-matin { margin: 40px calc(-1 * var(--marge)) 0; border-radius: 20px; border-left: 0; border-right: 0; box-shadow: 0 24px 60px rgba(13,27,22,.14); }
  .capture-matin img { width: 100%; height: 118vw; max-height: 620px; object-fit: cover; object-position: 100% 50%; }

  /* 8. club : plus de vide en bas, titre lisible */
  .club { padding: 56px var(--marge) 44px; border-top-width: 8px; }
  .club-contenu { gap: 28px; }
  .club h2 { font-size: clamp(30px, 8.4vw, 38px); }
  .pour { font-size: 17px; margin-top: 14px; }
  .cinq { margin-top: 24px; gap: 16px; }
  .cinq li { grid-template-columns: 54px 1fr; gap: 12px; }
  .cinq i { font-size: 38px; }
  .cinq b { font-size: 19px; }
  .cinq p { font-size: 15.5px; }
  .candidature { padding: 22px 18px; border-radius: 20px; gap: 18px; }
  .candidature > img { width: 168px; height: 168px; }
  .quatre { font-size: 17px; margin-bottom: 18px; }
  .club .club-partenaire { margin-top: 24px; }
  .club-partenaire .bouton { width: 100%; justify-content: center; }

  /* pied de page */
  .pied { flex-direction: column; align-items: flex-start; gap: 8px; padding: 28px var(--marge) calc(28px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marque .aiguille, .souris::after { animation: none; }
}

/* Étiquettes des étages du récit 3D sur téléphone (assemblage du 01/12/2026) : elles dépassaient à droite
   (« Dissoute et radiée 20… » coupé). Retour à la ligne permis, largeur bornée, police un peu plus petite. */
@media (max-width: 760px) {
  .et > div { white-space: normal; flex-wrap: wrap; max-width: 42vw; row-gap: 2px; font-size: 10.5px; gap: 5px; }
  .et .trait { width: 10px; }
  .et .n { min-width: 0; font-size: 10px; }
  .et .p { padding: 1px 6px 2px; }
  .et .t { font-size: 10px; padding: 1px 6px 2px; }
  .et .c { font-size: 10.5px; }
}

/* Retouches du 01/12/2026 sur téléphone : moins de vide après Transmission et entre les fiches et « Chaque matin ». */
@media (max-width: 760px) {
  .biens { padding-top: 40px; }
  .fiches { padding-bottom: 0; }
  .feuille:last-child { margin-bottom: 0; }
  .matin { padding-top: 56px; }
}

/* ---------- Deux portes (demande de Charles du 06/12/2026) : le club d'un côté, les partenaires de l'autre,
   et l'entrée de l'espace partenaire toujours dans le menu ---------- */
.nav .espace-nav { flex: none; margin-left: 0; padding: 9px 16px 9px 13px; font-size: 15px; background: var(--blanc); color: var(--encre); border: 1px solid var(--ligne); }
.nav .espace-nav svg { width: 18px; height: 18px; color: var(--vert); }
.nav .espace-nav .court { display: none; }
.nav .candidater { margin-left: 0; }
.liens-nav { margin-right: 4px; }
@media (min-width: 901px) and (max-width: 1140px) {
  .liens-nav a[href="#ouverture"] { display: none; }
  .nav .espace-nav .long { display: none; }
  .nav .espace-nav .court { display: inline; }
}
.nav .espace-nav .court { font-size: 12.5px; line-height: 1.08; text-align: left; }
.pour-qui { display: inline-block; margin-left: 10px; padding: 3px 10px 3px; border-radius: 999px; background: var(--encre); color: #fff;
  font-size: 11px; letter-spacing: .08em; vertical-align: 1px; }

#partenaires { scroll-margin-top: 110px; }
.entrer { position: relative; max-width: var(--large); margin: 0 auto; }
.entrer-tete { margin-bottom: 44px; }
.entrer-tete h2 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; letter-spacing: -.012em; line-height: 1;
  font-size: clamp(44px, 5vw, 76px); }
.entrer-tete h2 i { color: var(--vert); font-weight: 500; }
.portes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
/* une carte = une fiche sombre, filet doré, anneaux du radar en filigrane. Pas de transition : GSAP anime l'entrée. */
.porte { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; padding: 40px 40px 36px;
  border-radius: 20px; color: #fff; background: #0b1713; border: 1px solid rgba(255,205,60,.28);
  box-shadow: 0 40px 90px rgba(13,27,22,.22), inset 0 1px 0 rgba(255,255,255,.06); }
.porte::before { content: ""; position: absolute; z-index: -1; right: -180px; top: -180px; width: 460px; height: 460px; border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(255,205,60,.13) 0 1px, transparent 1px 46px); }
.porte::after { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: radial-gradient(120% 70% at 100% 0%, rgba(255,205,60,.10), transparent 60%); }
.porte-partenaire { background: #0d3324; border-color: rgba(255,205,60,.22); box-shadow: 0 40px 90px rgba(13,51,36,.28), inset 0 1px 0 rgba(255,255,255,.06); }
.porte-partenaire::after { background: radial-gradient(120% 70% at 100% 0%, rgba(84,201,140,.14), transparent 60%); }
.porte-tete { display: flex; align-items: baseline; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,205,60,.35);
  font-family: "IBM Plex Mono", monospace; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; }
.porte-num { color: var(--or); font-weight: 600; }
.porte-nom { font-weight: 600; color: #fff; }
.porte-statut { margin-left: auto; color: rgba(255,255,255,.6); letter-spacing: .12em; }
.porte h3 { margin-top: 30px; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: clamp(42px, 4vw, 60px);
  line-height: .98; letter-spacing: -.01em; }
.porte h3 i { color: var(--or); font-weight: 500; }
.porte-chapo { margin: 18px 0 0; font-size: 17.5px; line-height: 1.5; color: rgba(255,255,255,.86); max-width: 460px; }
.porte-pour { margin: 14px 0 0; font-size: 14.5px; line-height: 1.5; color: rgba(255,255,255,.6); }
@media (min-width: 901px) { .porte-pour { min-height: 44px; } }
.porte-pour span { margin-right: 8px; font-family: "IBM Plex Mono", monospace; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--or); }
.porte-liste { margin: 28px 0 32px; padding: 0; border-top: 1px solid rgba(255,255,255,.12); }
.porte-liste > div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.porte-liste dt { font-weight: 600; font-size: 15.5px; color: #fff; }
.porte-liste dd { margin: 0; font-size: 15.5px; color: rgba(255,255,255,.7); }
.porte-actions { margin-top: auto; display: grid; gap: 12px; }
.porte-bouton { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 22px; border-radius: 12px; text-decoration: none;
  font-weight: 700; font-size: 16.5px; letter-spacing: -.005em; transition: background .2s, border-color .2s, color .2s; }
.porte-bouton svg { width: 19px; height: 19px; flex: none; }
.porte-bouton .fleche { margin-left: auto; }
.porte-bouton.plein { background: var(--or); color: var(--encre); box-shadow: 0 14px 34px rgba(255,205,60,.22); }
.porte-bouton.plein:hover { background: #ffd95e; }
.porte-bouton.contour { border: 1px solid rgba(255,255,255,.32); color: #fff; background: rgba(255,255,255,.04); }
.porte-bouton.contour svg { color: var(--or); }
.porte-bouton.contour:hover { border-color: var(--or); background: rgba(255,255,255,.08); }
.porte-lien { justify-self: start; padding: 6px 2px; font-size: 15px; font-weight: 600; color: rgba(255,255,255,.75); text-underline-offset: 4px; }
.porte-lien:hover { color: #fff; }

@media (max-width: 900px) {
  .portes { grid-template-columns: 1fr; gap: 18px; }
  /* en-tête du téléphone : logo et « Espace partenaire » */
  /* le logo, « Espace partenaire » et « Candidater » ne tiennent pas ensemble sur un téléphone (logo coupé) : on candidate
     par les deux portes de l'ouverture et la barre du bas ; l'en-tête garde l'entrée de l'espace partenaire */
  .nav .espace-nav { margin-left: auto; padding: 6px 13px 6px 10px; gap: 7px; }
  .nav .espace-nav svg { width: 16px; height: 16px; }
  .nav .espace-nav .long { display: none; }
  .nav .espace-nav .court { display: inline; }
  .nav .candidater { display: none; }
  /* barre du bas : les deux portes côte à côte */
  .barre-club { padding: 6px; gap: 6px; border-radius: 16px; justify-content: stretch; }
  .barre-club a { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 7px 6px 8px;
    border-radius: 11px; color: #fff; text-decoration: none; text-align: center; }
  .barre-club a + a { background: var(--or); color: var(--encre); }
  .barre-club a span { font-size: 11.5px; opacity: .7; }
  .barre-club a b { font-size: 15px; }
}
@media (max-width: 760px) {
  .entrer-tete { margin-bottom: 26px; }
  .entrer-tete h2 { font-size: clamp(38px, 11vw, 48px); }
  .porte { padding: 26px 20px 22px; border-radius: 18px; }
  .porte::before { right: -220px; top: -220px; }
  .porte-tete { font-size: 11.5px; gap: 10px; letter-spacing: .12em; }
  .porte h3 { margin-top: 22px; font-size: 42px; }
  .porte-chapo { font-size: 16.5px; }
  .porte-liste { margin: 22px 0 24px; }
  .porte-liste > div { grid-template-columns: 1fr; gap: 2px; padding: 11px 0; }
  .porte-liste dt, .porte-liste dd { font-size: 15px; }
  .porte-bouton { min-height: 54px; font-size: 16px; padding: 0 18px; }
  .porte-bouton.contour { font-size: 15px; }
  .porte-lien { justify-self: center; }
  .pour-qui { display: table; margin: 8px 0 0; }
}
@media (max-width: 380px) {
  .nav .marque { font-size: 13px; letter-spacing: .1em; gap: 6px; }
  .nav .marque svg { width: 23px; height: 23px; }
  .nav .espace-nav { padding-left: 9px; padding-right: 10px; }
}

/* Nom des cartes bien visible (Charles, 06/12/2026 : « le club et les partenaires, on ne les voit pas, c'est trop petit ») :
   grandes capitales dans la police du logo, numéro et statut au-dessus */
.porte-tete { display: grid; grid-template-columns: auto 1fr; align-items: center; row-gap: 12px; column-gap: 14px; padding-bottom: 20px; }
.porte-num { grid-row: 1; grid-column: 1; font-size: 13px; }
.porte-statut { grid-row: 1; grid-column: 2; justify-self: end; font-size: 12px; }
.porte-nom { grid-row: 2; grid-column: 1 / -1; font-family: "Montserrat", "Outfit", sans-serif; font-weight: 700; color: #fff;
  font-size: clamp(30px, 2.9vw, 42px); line-height: 1; letter-spacing: .14em; }
.porte h3 { margin-top: 26px; font-size: clamp(36px, 3.4vw, 50px); }
@media (max-width: 760px) {
  .porte-nom { font-size: 28px; letter-spacing: .1em; }
  .porte h3 { margin-top: 20px; font-size: 36px; }
}
@media (max-width: 380px) { .porte-nom { font-size: 25px; } }
@media (max-width: 380px) { .porte-bouton .sc { display: none; } }
