/* ============================================================
   Carte des commerciaux, proposition B « Nocturne » (18/10/2026)
   Se charge après style.css. La scène #map passe de nuit, dans la
   continuité du globe : la France en milliers de points, cinq lignes
   de lumière partent de La Clayette, l'organigramme suit.
   ============================================================ */

/* Teintes des secteurs : des clartés tirées des couleurs du site (crème, sable, kaki et olive
   éclaircis). Elles diffèrent surtout par leur clarté, pour rester distinctes en noir et blanc
   et pour un œil daltonien ; les prénoms et les limites de secteur font le reste.
   L'orange reste l'accent : La Clayette, les lignes, le secteur choisi, le focus. */
:root {
  --carte-0: #f4f2ea;   /* crème */
  --carte-1: #d9c9a4;   /* sable doré */
  --carte-2: #b3b06b;   /* kaki éclairci */
  --carte-3: #8fae8c;   /* olive éclairci */
  --carte-4: #5f7f61;   /* olive 600 éclairci */
  --carte-emmanuel: var(--carte-0);
  --carte-thierry: var(--carte-1);
  --carte-jean-pierre: var(--carte-2);
  --carte-stephanie: var(--carte-3);
  --carte-paco: var(--carte-4);
  --carte-bande: 124px;   /* hauteur réservée sous la carte : recherche et cartel */
}
/* écrans d'ordinateur peu hauts : le cartel passe sur trois lignes, on lui laisse la place */
@media (min-width: 861px) and (max-height: 820px) { :root { --carte-bande: 162px; } }

/* ---------- La fin de l'entrepôt, de nuit elle aussi ---------- */
/* Le voile « Et maintenant, place à nos commerciaux » était crème : il passe en olive 900
   pour que la carte sorte de la nuit sans éclair blanc (à reporter dans style.css, l. 633-637). */
.depot-out { background: var(--olive-900); }
.depot-out .display { color: var(--cream); }

/* ---------- Le fondu sous l'en-tête ---------- */
/* L'en-tête est fixe et transparent (style.css l. 62-68) : quand l'organigramme, ou la carte qui s'en va,
   passe dessous, un dégradé olive 900, opaque derrière le logo, s'efface sur 1,5 fois sa hauteur. Les
   textes s'y dissolvent au lieu de passer sous le logo. carte.js et constellation.js posent la classe. */
.nav::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 150%; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, var(--olive-900) 0, var(--olive-900) 52%, rgba(20,23,15,.86) 64%,
    rgba(20,23,15,.5) 80%, rgba(20,23,15,.14) 92%, rgba(20,23,15,0) 100%);
  opacity: 0; transition: opacity .35s ease;
}
html:is(.voile-carte, .voile-orga, .voile-pont) .nav:not(.is-dark)::before { opacity: 1; }   /* jamais sous un en-tête foncé */

/* ---------- La scène ---------- */
.scene--nocturne .stage {
  background: radial-gradient(120% 90% at 72% 45%, #1b2014 0%, var(--olive-900) 55%, #0a0c07 100%);
  color: var(--cream);
  grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 5vw;
  padding: 12vh var(--gutter) calc(4vh + var(--barre));
}
.scene--nocturne .eyebrow { color: var(--orange); }   /* 5,2:1 sur olive 900 */
.scene--nocturne .map-copy .display { color: var(--cream); }
.scene--nocturne .map-copy p { color: rgba(244,242,234,.8); }
/* le cache des lignes du titre rognait l'accent du « É » : on lui rend un peu de hauteur */
.scene--nocturne .map-copy .line { padding-top: .14em; margin-top: -.14em; }

/* la largeur se règle sur le plateau : la recherche et le cartel ne peuvent pas l'élargir */
.carte__plateau {
  display: grid; gap: 10px;
  width: min(54vw, calc((100vh - 16vh - var(--carte-bande)) * 1.0718));
  width: min(54vw, calc((100dvh - 16vh - var(--carte-bande) - var(--barre)) * 1.0718));
}
/* la carte est un conteneur : prénoms, repères et compteur suivent sa largeur (de 288 à 870 px) */
.carte { position: relative; margin: 0; width: 100%; aspect-ratio: 1000 / 933; container-type: inline-size; }
/* le défilement vertical reste au doigt : la carte n'attrape que les appuis */
.carte__toile { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.carte__calque, .carte__compte, .carte__loupe-legende { pointer-events: none; }
.carte__calque { position: absolute; inset: 0; }

/* compteur : sur la Manche, il compte les départements à mesure que les secteurs s'allument */
.carte__compte { position: absolute; left: 0; top: 0; display: grid; gap: 6px; }
.carte__compte strong {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(26px, 10cqi, 76px); line-height: .9;
  color: var(--orange); font-variant-numeric: tabular-nums;
}
.carte__compte span[aria-hidden] { font-size: clamp(8.5px, 1.8cqi, 12px); letter-spacing: .18em; text-transform: uppercase; color: rgba(244,242,234,.8); }

/* prénoms posés sur la carte : la teinte du secteur en pastille, le nom lisible sans elle */
.carte__prenom {
  position: absolute; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: .6em; white-space: nowrap;
  padding: .36em .8em .36em .6em; border-radius: 4px; background: rgba(10,12,7,.74);
  font-family: var(--f-display); font-weight: 700; font-stretch: 108%; font-size: clamp(8px, 2.6cqi, 11px); line-height: 1.2;
  letter-spacing: .12em; text-transform: uppercase; color: var(--cream);
  opacity: var(--a, 0);
}
.carte__prenom::before { content: ""; width: .64em; height: .64em; border-radius: 50%; background: var(--t); flex: none; }
.carte__prenom[data-s="0"] { --t: var(--carte-0); } .carte__prenom[data-s="1"] { --t: var(--carte-1); }
.carte__prenom[data-s="2"] { --t: var(--carte-2); } .carte__prenom[data-s="3"] { --t: var(--carte-3); }
.carte__prenom[data-s="4"] { --t: var(--carte-4); }
.carte__prenom--gauche { transform: translate(-100%, -50%); }

/* La Clayette : le repère du globe, qui bat doucement (en pause hors de l'écran) */
.carte__clayette { position: absolute; display: flex; align-items: center; gap: 9px; transform: translate(-5px, -50%); opacity: 0; }
.carte__clayette i { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(241,83,26,.25), 0 0 22px var(--orange); }
.carte__clayette i::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--orange);
  animation: carte-battement 2.6s cubic-bezier(.2,.85,.2,1) infinite paused;
}
.carte--visible .carte__clayette i::after { animation-play-state: running; }
@keyframes carte-battement { from { transform: scale(1); opacity: .9; } 70%, to { transform: scale(3.6); opacity: 0; } }
.carte__clayette span {
  font-size: clamp(8px, 2.6cqi, 11px); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; color: var(--cream);
  background: rgba(10,12,7,.86); border: 1px solid rgba(241,83,26,.45); padding: .36em .8em; border-radius: 4px;
}

/* la loupe : sa légende à gauche du cercle, au-dessus de la Belgique */
.carte__loupe-legende {
  position: absolute; right: 22.2%; top: 1.6%; max-width: 17%; text-align: right; opacity: 0;
  font-size: 11px; line-height: 1.35; letter-spacing: .04em; color: rgba(244,242,234,.82);
}
.carte__loupe-legende b { display: block; margin-top: 2px; font-family: var(--f-display); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cream); }

/* ---------- Recherche et cartel, sous la carte ---------- */
.carte__outils {
  width: 100%; min-height: var(--carte-bande);
  display: grid; grid-template-columns: minmax(11rem, 12rem) minmax(0, 1fr); gap: 0 22px; align-items: start;
}
.carte__recherche { display: grid; gap: 7px; margin: 0; min-width: 0; }
.carte__recherche label { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: rgba(244,242,234,.8); }
.carte__champ {
  display: flex; align-items: center; gap: 6px; padding: 3px 3px 3px 16px;
  border: 1px solid rgba(244,242,234,.42); border-radius: 999px; background: rgba(244,242,234,.06);
  transition: border-color .2s;
}
.carte__champ:hover { border-color: rgba(244,242,234,.75); }
.carte__champ:focus-within { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.carte__champ input {
  flex: 1; width: 0; min-width: 0; height: 40px; margin: 0; padding: 0; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 16px; color: var(--cream); -webkit-appearance: none; appearance: none;   /* 16 px : pas de zoom sur iPhone */
}
.carte__champ input::placeholder { color: rgba(244,242,234,.6); }
.carte__champ input::-webkit-search-decoration, .carte__champ input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.carte__champ input::-webkit-calendar-picker-indicator { display: none !important; }
.carte__champ button {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;   /* 44 px : au doigt */
  border: 0; border-radius: 999px; background: var(--orange-btn); color: #fff; cursor: pointer;
}
.carte__champ button:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.carte__aide, .carte__standard { margin: 0; font-size: 13px; line-height: 1.45; color: rgba(244,242,234,.72); }
/* le standard reste visible, plus discret que le portable du cartel */
.carte__standard a { padding: 6px 0; color: rgba(244,242,234,.9); text-decoration-color: rgba(244,242,234,.4); text-underline-offset: 3px; }
.carte__standard a:hover { text-decoration-color: var(--orange); }
.carte__standard a:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.carte__aide span + span { display: none; }
@media (hover: none) { .carte__aide span:first-child { display: none; } .carte__aide span + span { display: inline; } }

/* le cartel : crème sur la nuit, comme celui d'un musée (ed-panneau--papier de la charte) ;
   l'organigramme en reprend la forme pour sa fiche */
.carte__cartel, .orga__fiche {
  position: relative; margin: 0; padding: 13px 18px 14px; border-radius: 6px;
  background: var(--cream); color: var(--olive-800);
  box-shadow: 0 34px 90px rgb(9 11 7 / .45), 0 0 0 1px rgb(35 40 26 / .08);
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px 18px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s ease, transform .3s cubic-bezier(.2,.85,.2,1), visibility 0s linear .3s;
}
.carte__cartel.est-plein, .orga__fiche.est-plein { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .3s cubic-bezier(.2,.85,.2,1); }
.orga__fiche [hidden] { display: none; }
.carte__dep { flex: 1 0 100%; margin: 0; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--orange-fonce); }
.carte__dep:focus, .orga__fiche .carte__qui:focus { outline: none; }
.carte__qui { flex: 1 0 100%; margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.carte__nom { margin: 0; font-family: var(--f-display); font-weight: 800; font-stretch: 108%; font-size: 24px; line-height: 1; text-transform: uppercase; letter-spacing: .01em; }
.carte__fonction { margin: 0; font-family: var(--f-serif); font-size: 19px; line-height: 1.1; }
.carte__nb { margin: 4px 0 0; display: flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(35,40,26,.82); }
.carte__nb::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--teinte); box-shadow: 0 0 0 1px rgba(35,40,26,.35); }
.carte__appel {
  margin-left: auto; display: inline-flex; align-items: center; gap: 10px;
  min-height: 36px; padding: 0 2px; font-size: 14px; letter-spacing: .02em; color: var(--olive-800); text-decoration: none;
  border-bottom: 1px solid rgba(35,40,26,.45); transition: border-color .2s;
}
.carte__appel::after { content: "\2192"; color: var(--orange-fonce); transition: transform .3s cubic-bezier(.2,.85,.2,1); }
.carte__appel:hover { border-color: var(--orange-fonce); }
.carte__appel:hover::after { transform: translateX(5px); }
.carte__appel:focus-visible, .carte__fermer:focus-visible { outline: 2px solid var(--orange-fonce); outline-offset: 3px; }
.carte__fermer { display: none; }

/* texte de remplacement : lu par les lecteurs d'écran, visible si la carte ne peut pas se dessiner */
.carte__liste { font-size: 15px; line-height: 1.6; color: rgba(244,242,234,.86); }
.carte__liste p { margin: 0 0 14px; max-width: 62ch; }
.carte__liste ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.carte__liste li { padding: 12px 0 0; border-top: 1px solid rgba(244,242,234,.16); max-width: 80ch; }
.carte__liste strong { font-family: var(--f-display); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cream); }
html.js-on .scene--nocturne:not(.carte--secours) .carte__liste {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
/* tant que les données arrivent, la recherche (et au téléphone tout le plateau) attend */
html.js-on .scene--nocturne:not(.carte-prete):not(.carte--secours) .carte__outils { visibility: hidden; }
@media (max-width: 860px), (orientation: landscape) and (max-height: 560px) { html.js-on .scene--nocturne:not(.carte-prete):not(.carte--secours) .carte__plateau { visibility: hidden; } }
/* sans JavaScript, ou si les données n'arrivent pas : la scène devient un document */
html:not(.js-on) .scene--nocturne, .scene--nocturne.carte--secours { height: auto !important; }
html:not(.js-on) .scene--nocturne .stage, .carte--secours .stage { position: static; height: auto; display: block; padding: 14vh var(--gutter) 8vh; }
html:not(.js-on) .scene--nocturne :is(.carte__toile, .carte__calque, .carte__outils, .carte__loupe-legende),
.carte--secours :is(.carte__toile, .carte__calque, .carte__outils, .carte__loupe-legende) { display: none; }
/* pleine largeur : la carte est un conteneur, elle ne prendrait pas la largeur de son texte (centrée au téléphone) */
html:not(.js-on) .scene--nocturne :is(.carte__plateau, .carte), .carte--secours :is(.carte__plateau, .carte) { width: 100%; aspect-ratio: auto; }
html:not(.js-on) .scene--nocturne .carte__plateau, .carte--secours .carte__plateau { margin-top: 5vh; }
html:not(.js-on) .scene--nocturne .carte, .carte--secours .carte { margin-top: 0; }
html:not(.js-on) .scene--nocturne .carte__compte, .carte--secours .carte__compte { position: static; margin-bottom: 20px; }

/* La légende (carte.js) : au téléphone seulement */
.carte__pastilles { display: none; }

/* le bouton « retour en haut » (écrans tactiles) s'efface quand le cartel est ouvert : sur tablette, il le couvrait */
html:has(.carte__cartel.est-plein) .retour-haut { opacity: 0; visibility: hidden; }

/* ---------- Écran couché peu haut : tablette couchée, petit portable (de 561 à 800 px de haut) ----------
   20/10/2026, tablette du client : sous 800 px de haut, la bande sous la carte ne tenait plus. La carte passait sous
   l'en-tête, le cartel, trop étroit, débordait et sortait de l'écran. Ici, la recherche et le cartel passent sous le
   texte, à gauche, et la carte prend toute la hauteur à droite. La colonne de gauche garde au moins 30,25rem (484 px) :
   la recherche (12rem), son écart et un cartel lisible (16rem). */
@media (min-width: 861px) and (min-height: 561px) and (max-height: 800px) {
  html.js-on:not(.statique) .scene--nocturne:not(.carte--secours) .stage {
    grid-template-columns: minmax(30.25rem, 1fr) auto; grid-template-rows: auto auto; align-content: center; align-items: start;
    gap: 22px 5vw; padding: 100px var(--gutter) calc(16px + var(--barre));   /* 100 px : l'en-tête (84 px) et un écart */
  }
  html.js-on:not(.statique) .scene--nocturne:not(.carte--secours) .carte__plateau { display: contents; }
  html.js-on:not(.statique) .scene--nocturne:not(.carte--secours) .map-copy { grid-area: 1 / 1; align-self: end; }
  html.js-on:not(.statique) .scene--nocturne:not(.carte--secours) .map-copy .display { font-size: clamp(34px, min(4.2vw, 7.4vh), 64px); margin-bottom: 18px; }
  html.js-on:not(.statique) .scene--nocturne:not(.carte--secours) .carte {
    grid-area: 1 / 2 / 3 / 3; align-self: center;
    width: min(calc(100vw - 2 * var(--gutter) - 5vw - 30.25rem), calc((100vh - 116px) * 1.0718));
    width: min(calc(100vw - 2 * var(--gutter) - 5vw - 30.25rem), calc((100dvh - 116px - var(--barre)) * 1.0718));
  }
  html.js-on:not(.statique) .scene--nocturne:not(.carte--secours) .carte__outils { grid-area: 2 / 1; min-height: 0; max-width: 36rem; }
  /* la carte touche le coin bas droit, où se pose le bouton « retour en haut » (tablettes) : il attend la fin de la scène */
  html.js-on:not(.statique):has(.scene--nocturne.carte--visible:not(.carte--secours)) .retour-haut { opacity: 0; visibility: hidden; }
}

/* ---------- Téléphone (debout ou tenu à l'horizontale) et tablette debout ---------- */
/* Le texte d'abord, puis la carte à sa place ; carte.js et pont.js lisent la même condition. */
@media (max-width: 860px), (orientation: landscape) and (max-height: 560px) {
  :root { --carte-reserve: 268px; }   /* sous la carte : un écart, la légende (94 px), un écart, la recherche (132 px) */
  .scene--nocturne .stage {
    grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); align-items: center; gap: 0;
    padding: 84px var(--gutter) calc(2.5vh + var(--barre));
  }
  /* la carte prête, 24 px en bas : le champ reste au-dessus du bouton « retour en haut » (18 + 48 px), dont l'aide et
     le standard longent la gauche */
  html:not(.statique) .scene--nocturne.carte-prete .stage { padding-bottom: calc(24px + var(--barre)); }
  /* le texte d'abord, puis la carte à sa place : les deux occupent la même case */
  .scene--nocturne .map-copy, .carte__plateau { grid-area: 1 / 1; }
  .scene--nocturne .map-copy { max-width: 36rem; }
  /* la carte, la plus grande possible, avec sa légende, puis la recherche : un seul bloc, centré dans l'écran (le reste
     de la place se partage au-dessus et au-dessous). Le tiroir, en bas, laisse voir le secteur choisi. */
  .carte__plateau { align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; width: 100%; min-height: 0; }
  .carte {
    flex: none; margin-top: 10px;
    width: min(100%, calc((100vh - 118px - var(--carte-reserve)) * 1.0718));
    width: min(100%, calc((100dvh - 118px - var(--barre) - var(--carte-reserve)) * 1.0718));
  }
  /* le compteur rejoint la légende : sur la carte, il touchait la Bretagne et la barre de l'en-tête (sans
     JavaScript, pas de légende : la liste garde son compteur) */
  .carte-prete .carte__compte { display: none; }
  .carte__compte { gap: 3px; }
  .carte__loupe-legende { display: none; }
  /* la légende colle à la carte, la recherche suit */
  .carte__outils {
    flex: none; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 28px;
    width: 100%; max-width: 520px; min-height: 0; padding-top: 14px;
  }
  /* la légende : les cinq prénoms en pastilles (à toucher : 44 px), en deux rangées qui prennent toute la largeur,
     puis le total */
  .carte__pastilles { display: grid; gap: 6px; width: 100%; }
  .carte__rangee { display: flex; gap: 6px; }
  .carte__pastille {
    flex: 1 1 auto; display: flex; align-items: center; gap: 7px; min-width: 0; min-height: 44px; margin: 0; padding: 0 8px 0 11px;
    border: 1px solid rgba(244,242,234,.42); border-radius: 999px; background: rgba(244,242,234,.05); color: var(--cream);
    font-family: var(--f-display); font-weight: 700; font-size: 11px; line-height: 1.2;
    letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; cursor: pointer;
    -webkit-tap-highlight-color: transparent; transition: border-color .2s, background-color .2s;
  }
  .carte__pastille::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--t); }
  .carte__pastille[data-s="0"] { --t: var(--carte-0); } .carte__pastille[data-s="1"] { --t: var(--carte-1); }
  .carte__pastille[data-s="2"] { --t: var(--carte-2); } .carte__pastille[data-s="3"] { --t: var(--carte-3); }
  .carte__pastille[data-s="4"] { --t: var(--carte-4); }
  .carte__pastille.est-actif { border-color: rgba(244,242,234,.8); }
  .carte__pastille[aria-pressed="true"] { border-color: var(--orange); background: rgba(241,83,26,.16); }
  .carte__pastille:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
  .carte__total { flex: none; display: grid; align-content: center; gap: 3px; margin: 0; padding: 0 2px 0 10px; }
  .carte__total strong { font-family: var(--f-display); font-weight: 800; font-size: 22px; line-height: .9; color: var(--orange); font-variant-numeric: tabular-nums; }
  .carte__total span { font-size: 8.5px; line-height: 1.2; letter-spacing: .18em; text-transform: uppercase; color: rgba(244,242,234,.8); }
  /* le cartel devient un tiroir en bas de l'écran ; l'appui sur la carte ou sur une pastille l'ouvre */
  .carte__cartel {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 8; border-radius: 14px 14px 0 0;
    padding: 18px var(--gutter) calc(20px + env(safe-area-inset-bottom)); gap: 4px 12px;
    box-shadow: 0 -16px 40px rgb(9 11 7 / .6);   /* ce qu'il recouvre s'assombrit à son bord */
    opacity: 1; transform: translateY(104%);
    transition: transform .35s cubic-bezier(.2,.85,.2,1), visibility 0s linear .35s;
  }
  .carte__cartel.est-plein { transform: none; transition: transform .4s cubic-bezier(.2,.85,.2,1); }
  .carte__dep { flex: 1 1 0; order: -2; }
  .carte__fermer {
    order: -1; display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 44px; height: 44px; margin: -8px -8px 0 0; padding: 0; border: 1px solid rgba(35,40,26,.3); border-radius: 999px;
    background: transparent; color: var(--olive-800); font: inherit; font-size: 20px; line-height: 1; cursor: pointer;
  }
  .carte__nb { flex: 1 0 100%; }
  .carte__nom { font-size: 30px; }
  .carte__appel {
    flex: 1 0 100%; justify-content: center; margin: 12px 0 0; min-height: 50px; padding: 0 20px;
    border: 0; border-radius: 999px; background: var(--orange-btn); color: #fff; font-size: 15px; white-space: normal; text-align: center;
  }
  .carte__appel::after { color: #fff; }
  /* le tiroir prend la place du bouton « retour en haut » */
  html:has(.carte__cartel.est-plein) .retour-haut { opacity: 0; visibility: hidden; }
}
/* téléphone : la carte déborde un peu de la colonne (8 px de marge de chaque côté, la Corse comprise) */
@media (max-width: 500px) {
  .carte {
    width: min(calc(100% + 2 * var(--gutter) - 16px), calc((100vh - 118px - var(--carte-reserve)) * 1.0718));
    width: min(calc(100% + 2 * var(--gutter) - 16px), calc((100dvh - 118px - var(--barre) - var(--carte-reserve)) * 1.0718));
  }
}
/* téléphone peu haut (667 px et moins) : les écarts se resserrent, pour garder la carte grande. L'aide reste : sous le
   champ, ses deux lignes courtes longent le bouton « retour en haut » */
@media (max-width: 860px) and (orientation: portrait) and (max-height: 719px) {
  :root { --carte-reserve: 252px; }   /* un écart, la légende, un écart, la recherche */
  .carte__outils { padding-top: 10px; gap: 16px; }
}
/* téléphone étroit (320 px) ou très peu haut : pas de place pour la légende ; le compteur passe au-dessus de la
   carte, sur une ligne, à l'écart de la Bretagne et de la barre de l'en-tête */
@media (max-width: 339px), (max-width: 860px) and (orientation: portrait) and (max-height: 619px) {
  :root { --carte-reserve: 176px; }   /* la ligne du compteur (34 px), un écart, la recherche */
  .carte__pastilles { display: none; }
  .carte-prete .carte { margin-top: 44px; }
  .carte-prete .carte__compte { display: flex; top: -36px; align-items: baseline; gap: 10px; }
  .carte-prete .carte__compte strong { font-size: 26px; }
}

/* téléphone tenu à l'horizontale : la carte aussi haute que l'écran, la légende et la recherche à sa droite */
@media (orientation: landscape) and (max-height: 560px) {
  .scene--nocturne .stage, html:not(.statique) .scene--nocturne.carte-prete .stage { padding: 52px var(--gutter) calc(10px + var(--barre)); }
  .carte__plateau {
    display: grid; grid-template-columns: auto minmax(0, 17rem); align-items: center; align-content: center; justify-content: center;
    gap: 0 clamp(20px, 4vw, 48px);
  }
  .carte { margin-top: 0; width: calc((100vh - 62px) * 1.0718); width: calc((100dvh - 62px - var(--barre)) * 1.0718); }
  /* la légende et la recherche s'alignent sur le haut de la carte : le champ reste au-dessus du bouton « retour en haut » */
  .carte__outils { align-self: start; justify-content: flex-start; gap: 14px; padding-top: 0; }
  .carte__pastilles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .carte__rangee { display: contents; }
  /* le tiroir devient une fiche sur la colonne de droite : la carte reste entière à l'écran */
  .carte__cartel {
    left: auto; right: var(--gutter); bottom: calc(10px + var(--barre)); width: min(19rem, calc(100% - 2 * var(--gutter)));
    max-height: calc(100% - 66px); overflow: auto; border-radius: 12px; padding: 14px 18px 16px;
  }
}

/* L'en-tête du site, tenu à l'horizontale (375 à 430 px de haut) : ses boutons ronds de 42 px y étaient trop gros ;
   ils prennent la taille du logo (36 px, comme le bouton du menu), et gardent 44 px à toucher. Règle de style.css, à
   y reporter (bloc « Téléphone tenu à l'horizontale », l. 793-800) ; ici elle ne vaut que pour cette page. */
@media (orientation: landscape) and (max-height: 560px) {
  .nav__icone, .nav__burger { width: 36px; height: 36px; }
}
@media (orientation: landscape) and (max-height: 560px) and (min-width: 861px) {
  .nav__icone--texte { width: auto; padding: 0 15px 0 12px; }   /* « Espace pro » garde son libellé (menu d'ordinateur) */
  .nav__links a { padding: 6px 0; }   /* l'en-tête garde 50 px de haut : la carte passe dessous sans le toucher */
}
@media (orientation: landscape) and (max-height: 560px) and (hover: none) and (pointer: coarse) {
  .nav__icone::after, .nav__burger::after { content: ""; position: absolute; inset: -5px; }   /* 46 px à toucher, sans empiéter */
}

/* ---------- Animations réduites : la scène devient un document ---------- */
html.statique .scene--nocturne .carte__plateau { margin-top: 5vh; justify-items: start; align-items: start; }
html.statique .scene--nocturne .carte__plateau { width: min(100%, 760px); }
/* sur ordinateur, la même composition que la version animée : le texte à gauche, la carte à droite */
@media (min-width: 861px) {
  /* style.css l. 195 impose une seule colonne en mode statique (!important) : on la remplace ici */
  html.statique .scene--nocturne .stage { display: grid !important; grid-template-columns: minmax(0, 1fr) auto !important; align-items: center; gap: 0 5vw; padding-top: 14vh; }
  html.statique .scene--nocturne .carte__plateau { margin-top: 0; width: min(48vw, 700px); }
}
html.statique .scene--nocturne .carte__cartel { position: relative; inset: auto; transform: none; border-radius: 6px; margin-top: 14px; transition: none; }
html.statique .scene--nocturne .carte__cartel:not(.est-plein) { display: none; }
@media (prefers-reduced-motion: reduce) {
  .nav::before { transition: none; }
  .carte__clayette i::after { animation: none; }
  .carte__cartel, .carte__cartel.est-plein, .orga__fiche, .orga__fiche.est-plein, .carte__champ, .carte__appel, .carte__appel::after { transition: none; }
}

/* ============================================================
   Organigramme « Constellation » : chaque personne ou poste est
   une étoile, chaque pôle une constellation. Les liens se tracent
   au défilement (constellation.js) ; sans JavaScript, une liste.
   ============================================================ */
.organigramme { background: var(--olive-900); color: var(--cream); padding: clamp(84px, 13vh, 170px) var(--gutter); }
.orga { max-width: 1240px; margin: 0 auto; }
.orga__titre { margin: 0 0 clamp(36px, 6vh, 70px); font-family: var(--f-serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 52px); line-height: 1.05; }
.orga ul { margin: 0; padding: 0; list-style: none; }
.orga__ciel { position: relative; }
/* le nom d'un pôle, comme celui d'une constellation sur une carte du ciel */
.orga__pole-nom {
  margin: 0 0 10px; font-family: var(--f-display); font-weight: 600; font-stretch: 112%; font-size: 11px; line-height: 1.3;
  letter-spacing: .28em; text-transform: uppercase; color: rgba(230,226,216,.66);
}
.orga__nom { display: block; font-family: var(--f-display); font-weight: 700; font-stretch: 106%; font-size: 14px; line-height: 1.35; letter-spacing: .07em; text-transform: uppercase; }
.orga__fn { display: block; margin-top: 2px; font-size: 14px; line-height: 1.45; color: rgba(244,242,234,.76); }
.orga__fn a { color: var(--cream); text-underline-offset: 3px; }
.orga__fn a:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* sans JavaScript (ou sans données) : la liste des pôles */
.orga:not(.est-ciel) .orga__pole { margin-bottom: 34px; }
.orga:not(.est-ciel) li + li { margin-top: 12px; }

/* ---------- Le ciel ---------- */
/* des étoiles lointaines, fixes : trois trames de points qui ne tombent jamais juste */
.est-ciel .orga__ciel::before {
  content: ""; position: absolute; inset: -30px calc(-1 * var(--gutter)); pointer-events: none; opacity: .55;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(244,242,234,.55) 0 .7px, transparent 1.3px),
    radial-gradient(circle at 70% 80%, rgba(244,242,234,.4) 0 .6px, transparent 1.2px),
    radial-gradient(circle at 45% 60%, rgba(217,201,164,.45) 0 .8px, transparent 1.4px);
  background-size: 173px 149px, 211px 197px, 263px 241px;
}
.orga__liens { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.orga__lien, .orga__halo { fill: none; stroke-linecap: round; stroke-linejoin: round; }
/* pathLength = 1 : le tracé avance de 0 à 1 au défilement (stroke-dashoffset posé par constellation.js) */
.orga__lien { stroke: rgba(244,242,234,.36); stroke-width: 1; stroke-dasharray: 1 2; stroke-dashoffset: 1; transition: stroke .25s, stroke-width .25s, opacity .25s; }
.orga__halo { stroke: var(--orange); stroke-width: 7; opacity: 0; transition: opacity .25s; }
.orga__lien.est-actif { stroke: var(--orange); stroke-width: 1.6; stroke-dashoffset: 0 !important; }
.orga__halo.est-actif { opacity: .22; }
.est-choix .orga__lien:not(.est-actif) { opacity: .4; }

/* une étoile : le point, puis le nom ; tout le bouton répond (44 px au moins) */
.orga__etoile { --x0: 8px; --k: 1px; --r: 6.5px; }
.orga__bouton {
  position: relative; display: inline-block; max-width: 100%; min-height: 44px; margin: 0;
  padding: 7px 10px 7px calc(var(--x0) + var(--dx, 0) * var(--k) + 22px);
  border: 0; border-radius: 8px; background: none; color: var(--cream); font: inherit; text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.orga__bouton:focus { outline: none; }
.orga__bouton:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.orga__astre {
  position: absolute; left: calc(var(--x0) + var(--dx, 0) * var(--k)); top: 17px;
  width: var(--r); height: var(--r); margin: calc(var(--r) / -2) 0 0 calc(var(--r) / -2); border-radius: 50%;
  background: var(--t, var(--cream)); opacity: .35; transform: scale(.7);
  transition: opacity .5s, transform .35s cubic-bezier(.2,.85,.2,1), box-shadow .25s;
}
/* son halo scintille doucement, à des rythmes différents (en pause hors de l'écran) */
.orga__astre::after {
  content: ""; position: absolute; inset: -9px; border-radius: 50%;
  background: radial-gradient(circle, var(--t, var(--cream)) 0, transparent 68%); opacity: .34;
  animation: orga-scintille 3.6s ease-in-out infinite alternate paused;
}
.orga__etoile:nth-child(2n) .orga__astre::after { animation-duration: 4.3s; animation-delay: -1.7s; }
.orga__etoile:nth-child(3n) .orga__astre::after { animation-duration: 2.9s; animation-delay: -.6s; }
.orga__etoile:nth-child(5n) .orga__astre::after { animation-duration: 5.1s; animation-delay: -2.4s; }
.orga--visible .orga__astre::after { animation-play-state: running; }
@keyframes orga-scintille { from { opacity: .16; } to { opacity: .5; } }
/* éclat : la direction, puis les têtes de pôle et les commerciaux (à la teinte de leur secteur) */
[data-pole="direction"] .orga__etoile { --r: 10px; }
:is([data-pole="ventes"], [data-pole="comptabilite"], [data-pole="service"]) .orga__etoile:first-child { --r: 8.5px; }
[data-pole="ventes"] .orga__etoile { --r: 8.5px; }
.orga__etoile.est-allume .orga__astre { opacity: 1; transform: none; }
.orga__etoile.est-voisin .orga__astre { box-shadow: 0 0 12px 2px var(--t, rgba(244,242,234,.75)); }
.orga__etoile.est-actif .orga__astre { opacity: 1; transform: scale(1.5); box-shadow: 0 0 0 2px var(--olive-900), 0 0 0 3.2px var(--orange); }
.orga__etoile.est-actif .orga__nom { color: #fff; }

/* la petite carte de France, à côté des ventes */
.orga__carte canvas { display: block; width: 100%; aspect-ratio: 1000 / 933; }
.orga__aide { margin: 8px 0 0; font-size: 13px; line-height: 1.45; color: rgba(244,242,234,.66); transition: opacity .25s; }
.est-choix .orga__aide { opacity: 0; }
.orga__aide span + span { display: none; }
@media (hover: none) { .orga__aide span:first-child { display: none; } .orga__aide span + span { display: inline; } }

/* ---------- Grand écran : la direction en haut ; dessous, les ventes et leur carte, la comptabilité
   (et la fiche), le service commercial et l'exploitation ---------- */
@media (min-width: 1100px) {
  .orga__ciel {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 170px) minmax(230px, 1fr) minmax(0, 1.1fr);
    grid-template-areas: "dir dir dir dir" "ven . cpt ser" "ven carte fiche exp";
    column-gap: clamp(24px, 3vw, 48px); align-items: start;
  }
  .orga:not(.est-ciel) .orga__ciel { grid-template-columns: minmax(0, 1fr) 0 minmax(230px, 1fr) minmax(0, 1.1fr); }
  [data-pole="direction"] { grid-area: dir; margin-bottom: clamp(40px, 6vh, 64px); }
  [data-pole="direction"] ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 48px); }
  [data-pole="ventes"] { grid-area: ven; }
  [data-pole="comptabilite"] { grid-area: cpt; }
  [data-pole="service"] { grid-area: ser; }
  [data-pole="exploitation"] { grid-area: exp; }
  .est-ciel .orga__pole-nom { padding-left: 30px; }
  /* trois dirigeants en arc */
  .est-ciel [data-pole="direction"] li:nth-child(2) { margin-top: -14px; }
  .est-ciel [data-pole="direction"] li:nth-child(3) { margin-top: -4px; }
  /* têtes : le point en haut, le nom dessous ; les liens passent au-dessus des noms */
  .est-ciel :is([data-pole="direction"] .orga__etoile, [data-pole="ventes"] .orga__etoile:first-child, [data-pole="service"] .orga__etoile:first-child) .orga__bouton { padding-top: 24px; }
  .est-ciel :is([data-pole="direction"] .orga__etoile, [data-pole="ventes"] .orga__etoile:first-child, [data-pole="service"] .orga__etoile:first-child) .orga__astre { top: 9px; }
  /* la comptabilité, sous la ligne du chef des ventes à la responsable : le point à droite, le nom à gauche */
  .est-ciel [data-pole="comptabilite"] { justify-self: end; margin: 82px clamp(20px, 3vw, 48px) 0 0; }
  .est-ciel [data-pole="comptabilite"] .orga__bouton { padding: 7px calc(var(--x0) + 22px) 7px 10px; text-align: right; }
  .est-ciel [data-pole="comptabilite"] .orga__astre { left: auto; right: var(--x0); margin: calc(var(--r) / -2) calc(var(--r) / -2) 0 0; }
  .est-ciel [data-pole="exploitation"] { margin-top: 24px; }
  .orga__carte { grid-area: carte; margin-top: 6px; }
  /* la fiche sous la comptabilité, assez haut pour rester à l'écran ; les liens passent à sa droite */
  .orga__fiche { grid-area: fiche; margin: 26px clamp(20px, 3vw, 48px) 0 0; }
  .orga__fiche .carte__nom { font-size: 21px; }
  .orga:not(.est-ciel) [data-pole="direction"] { margin-bottom: 40px; }
}

/* l'aide de l'organigramme sous son titre : téléphone et tablette seulement (sur ordinateur, elle est sous la petite carte) */
.orga__aide--haut { display: none; }
.orga__fiche-carte { display: none; }

/* ---------- Téléphone et tablette (jusqu'à 1099 px) : la fiche en tiroir, avec la petite carte du commercial touché ---------- */
@media (max-width: 1099px) {
  .orga__etoile { --x0: 32px; --k: .7px; }
  .orga__bouton { display: block; width: 100%; min-height: 48px; padding-top: 9px; padding-bottom: 9px; }
  .orga__astre { top: 19px; }
  .orga__fn { font-size: 13.5px; }
  .est-ciel .orga__pole-nom { white-space: nowrap; }
  /* un prénom ne se coupe pas à son trait d'union */
  [data-pole="ventes"] .orga__etoile + .orga__etoile :is(.orga__nom, .orga__fn:last-child) { white-space: nowrap; }
  /* la petite carte quitte le ciel : elle apparaît dans le tiroir du commercial touché ; l'aide passe sous le titre */
  .orga__carte { display: none; }
  .est-ciel .orga__aide--haut { display: block; margin: 0 0 22px; font-size: 13px; }
  .orga__fiche {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; max-width: 560px; margin: 0 auto;
    display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "dep fermer" "qui carte" "nb carte" "appel appel";
    align-items: center; gap: 4px 14px;
    border-radius: 14px 14px 0 0; padding: 18px var(--gutter) calc(20px + env(safe-area-inset-bottom));
    opacity: 1; transform: translateY(104%); transition: transform .35s cubic-bezier(.2,.85,.2,1), visibility 0s linear .35s;
  }
  .orga__fiche.est-plein { transform: none; transition: transform .4s cubic-bezier(.2,.85,.2,1); }
  .orga__fiche .carte__dep { grid-area: dep; }
  .orga__fiche .carte__qui { grid-area: qui; }
  .orga__fiche .carte__nb { grid-area: nb; }
  /* le nom se resserre sur les écrans étroits, à côté de la petite carte ; un prénom ne se coupe pas à son trait d'union */
  .orga__fiche .carte__nom { font-size: clamp(21px, 6.6vw, 30px); }
  .orga__fiche .carte__nom span { white-space: nowrap; }
  .orga__fiche .carte__fermer {
    grid-area: fermer; justify-self: end; display: inline-flex; align-items: center; justify-content: center; margin: -8px -8px 0 0;
    width: 44px; height: 44px; padding: 0; border: 1px solid rgba(35,40,26,.3); border-radius: 999px;
    background: transparent; color: var(--olive-800); font: inherit; font-size: 20px; line-height: 1; cursor: pointer;
  }
  .orga__fiche .carte__appel {
    grid-area: appel; justify-content: center; margin: 12px 0 0; min-height: 50px; padding: 0 20px;
    border: 0; border-radius: 999px; background: var(--orange-btn); color: #fff; font-size: 15px; text-align: center;
  }
  .orga__fiche .carte__appel::after { color: #fff; }
  /* la petite carte du commercial, dans son tiroir : son secteur rallumé, La Clayette marquée */
  .orga__fiche-carte { grid-area: carte; display: block; width: clamp(96px, 27vw, 132px); margin: 2px 0 0; }
  .orga__fiche-carte canvas { display: block; width: 100%; aspect-ratio: 1000 / 933; }
  .orga__fiche-carte[hidden] { display: none; }
  html:has(.orga__fiche.est-plein) .retour-haut { opacity: 0; visibility: hidden; }
}

/* ---------- Téléphone (moins de 600 px) : les pôles l'un sous l'autre, leurs étoiles sur un même axe. La
   comptabilité se tient à gauche : de son point partent ses quatre liens, vers la ligne du chef des ventes à la
   responsable commerciale (qui longe le bord droit et rejoint la responsable par le haut) et vers les trois
   étoiles du service commercial et de l'exploitation ; aucun ne traverse un nom ---------- */
@media (max-width: 599px) {
  .orga__etoile { --x0: 50px; --k: .5px; }
  .est-ciel .orga__ciel { display: block; }
  /* des pôles compacts : lignes resserrées, chaque étoile garde 48 px à toucher */
  .est-ciel .orga__pole { margin-bottom: 18px; }
  .est-ciel .orga__pole-nom { margin-bottom: 6px; }
  .est-ciel .orga__bouton { padding-top: 6px; padding-bottom: 6px; }
  .est-ciel .orga__astre { top: 16px; }
  .est-ciel .orga__fn { margin-top: 1px; line-height: 1.38; }
  .est-ciel .orga__pole-nom, .est-ciel .orga__aide--haut { padding-left: 72px; }
  /* les deux têtes reliées par la ligne : le point en haut, le nom dessous (la ligne passe au-dessus des noms) */
  .est-ciel :is([data-pole="ventes"], [data-pole="service"]) .orga__etoile:first-child .orga__bouton { padding-top: 26px; }
  .est-ciel :is([data-pole="ventes"], [data-pole="service"]) .orga__etoile:first-child .orga__astre { top: 10px; }
  /* la ligne arrive à la responsable par le haut, sous le nom de son pôle */
  .est-ciel [data-pole="service"] .orga__pole-nom { margin-bottom: 24px; }
  /* la comptabilité : son nom au-dessus de son point, à gauche de l'axe */
  .est-ciel [data-pole="comptabilite"] { margin-bottom: 6px; }
  .est-ciel [data-pole="comptabilite"] .orga__bouton { width: auto; padding: 6px 12px 32px 8px; }
  .est-ciel [data-pole="comptabilite"] .orga__astre { left: 12px; top: auto; bottom: 12px; margin: 0 0 calc(var(--r) / -2) calc(var(--r) / -2); }
}

/* téléphone étroit : les noms de pôle se resserrent, la ligne du bord droit garde ses distances */
@media (max-width: 359px) { .est-ciel .orga__pole-nom { letter-spacing: .2em; } }

/* ---------- Tablette, petite fenêtre, téléphone tenu à l'horizontale (600 à 1099 px) : la disposition de
   l'ordinateur sans sa petite carte (elle est dans le tiroir). La direction en arc ; dessous, les ventes, la
   comptabilité sous la ligne qui relie les deux têtes, le service commercial et l'exploitation ---------- */
@media (min-width: 600px) and (max-width: 1099px) {
  .orga__etoile { --x0: 8px; --k: 1px; }
  .est-ciel .orga__ciel {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(185px, .85fr) minmax(0, 1.3fr);
    grid-template-areas: "aide aide aide" "dir dir dir" "ven cpt ser" "ven . exp"; column-gap: clamp(16px, 3vw, 40px); align-items: start;
  }
  .est-ciel .orga__aide--haut { grid-area: aide; padding-left: 30px; }
  .est-ciel .orga__pole { margin-bottom: 0; }
  .est-ciel .orga__pole-nom { padding-left: 30px; }
  .est-ciel [data-pole="direction"] { grid-area: dir; margin-bottom: clamp(32px, 6vh, 56px); }
  .est-ciel [data-pole="direction"] ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(16px, 3vw, 40px); }
  .est-ciel [data-pole="ventes"] { grid-area: ven; }
  .est-ciel [data-pole="comptabilite"] { grid-area: cpt; }
  .est-ciel [data-pole="service"] { grid-area: ser; }
  .est-ciel [data-pole="exploitation"] { grid-area: exp; margin-top: 24px; }
  /* trois dirigeants en arc */
  .est-ciel [data-pole="direction"] li:nth-child(2) { margin-top: -14px; }
  .est-ciel [data-pole="direction"] li:nth-child(3) { margin-top: -4px; }
  /* têtes : le point en haut, le nom dessous ; les liens passent au-dessus des noms */
  .est-ciel :is([data-pole="direction"] .orga__etoile, [data-pole="ventes"] .orga__etoile:first-child, [data-pole="service"] .orga__etoile:first-child) .orga__bouton { padding-top: 27px; }
  .est-ciel :is([data-pole="direction"] .orga__etoile, [data-pole="ventes"] .orga__etoile:first-child, [data-pole="service"] .orga__etoile:first-child) .orga__astre { top: 10px; }
  /* la comptabilité, sous la ligne du chef des ventes à la responsable : le point à droite, le nom à gauche */
  .est-ciel [data-pole="comptabilite"] { justify-self: end; margin: 82px clamp(20px, 3vw, 56px) 0 0; }   /* à l'écart : ses trois liens s'ouvrent en éventail */
  .est-ciel [data-pole="comptabilite"] .orga__bouton { width: auto; padding: 9px calc(var(--x0) + 22px) 9px 10px; text-align: right; }
  .est-ciel [data-pole="comptabilite"] .orga__astre { left: auto; right: var(--x0); margin: calc(var(--r) / -2) calc(var(--r) / -2) 0 0; }
}

/* ---------- Le pont : de la carte à la constellation (pont.js) ---------- */
/* Sans JavaScript, sans données, sans WebGL 2 ou en mode réduit, il n'occupe aucune place. Sinon
   (html.pont-pret) il reste collé à l'écran 140 vh. Il commence 15 vh après que la carte est complète
   (pont.js calcule son margin-top) ; l'organigramme arrive dessous à sa place habituelle et y reste
   collé 40 vh, le temps que la poussière devienne ses étoiles et que la page prenne le relais.
   La toile du pont (WebGL 2) est glissée dans le décor de la carte, juste au-dessus de son fond (z-index
   -1) : ce sont les propres points de la carte, repris au pixel près, qui s'y défont, sous ses textes
   qui s'effacent ; le fond ne change pas. Pendant le pont (html.pont-actif), la scène carte passe devant
   lui et ne répond plus ; son décor reste à l'écran jusqu'au relais (html.carte-fixe), même quand sa
   scène est finie, puis s'efface pour laisser place à l'organigramme. */
.pont { position: relative; z-index: 9; height: 0; pointer-events: none; }
.pont__stage { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; visibility: hidden; }
.pont__toile { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
html.pont-pret .pont { height: calc(100vh + 140vh); height: calc(100dvh + 140vh); margin-top: -100vh; margin-top: -100dvh; }
html.pont-pret #organigramme { margin-top: -140vh; }
html.pont-pret #organigramme::after { content: ""; display: block; height: 40vh; height: calc(140vh - 100dvh); }
.orga { top: clamp(84px, 13vh, 170px); }   /* sa place sous l'en-tête une fois collé ; crans.js la lit aussi */
html.pont-pret .orga { position: sticky; }   /* = le haut de la section */
/* au téléphone debout, le titre « Organigramme » se colle sous le fondu de l'en-tête (1,5 fois ses 84 px), pas dedans */
@media (max-width: 860px) and (orientation: portrait) { html.pont-pret .organigramme { padding-top: max(132px, 13vh); } .orga { top: max(132px, 13vh); } }
html.pont-couvre #organigramme { pointer-events: none; }
html.pont-pret .scene--nocturne { z-index: 10; }   /* dès le départ : rien ne change dans la scène au relais */
html.pont-actif .scene--nocturne .stage { pointer-events: none; }
html.carte-fixe .scene--nocturne .stage { position: fixed; top: 0; left: 0; right: 0; }
.scene--nocturne .pont__toile { z-index: -1; visibility: hidden; pointer-events: none; }
/* le titre arrive comme les autres titres de la page : sa ligne monte de son cache */
.orga__titre .line { display: block; overflow: hidden; padding: .1em 0 .24em; margin: -.1em 0 -.24em; }
.orga__titre .line > span { display: inline-block; }

/* ---------- Animations réduites : la constellation complète, immobile ---------- */
html.statique .orga__astre::after, html.anim-pause .orga__astre::after { animation-play-state: paused; }
html.statique :is(.orga__astre, .orga__lien, .orga__halo) { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .orga__astre::after { animation: none; }
  .orga__astre, .orga__lien, .orga__halo { transition: none; }
}

/* ---------- Les crans d'arrêt au doigt sur iPhone et iPad (crans.js) ---------- */
/* Deux repères invisibles posés exactement sur les crans : le scroll-snap natif de WebKit arrête l'élan sur eux
   (stop: always). La page n'est en scroll-snap que dans la zone de la carte et de l'organigramme, et un repère n'est
   armé que pendant qu'on descend au-dessus de lui. Pas de scroll-padding : il décalerait aussi les ancres ; les
   repères tiennent compte de l'en-tête par leur position. */
.cran-repere { position: absolute; left: 0; top: 0; width: 1px; height: 1px; pointer-events: none; }
html.crans-snap { scroll-snap-type: y proximity; }
html.crans-snap .cran-repere.est-arme { scroll-snap-align: start; scroll-snap-stop: always; }
html.crans-snap.crans-fort { scroll-snap-type: y mandatory; }   /* variante ?crans=fort, pendant un geste vif seulement */
