/* Fiches « centrale nucléaire, réacteur par réacteur » (gabarit fiche-centrale.html) : CSS de la maquette validée
   docs/projets-tempo/fiches-centrales/gabarit.html, tout sous .fc (chargé seulement sur les 18 fiches). */
:root { --ombre: 0 1px 2px rgba(14, 26, 38, .05), 0 8px 24px -12px rgba(14, 26, 38, .18); --ombre-haute: 0 2px 4px rgba(14, 26, 38, .06), 0 22px 44px -18px rgba(14, 26, 38, .28); --r1: #1b4fd6; --r2: #3a6cf0; --r3: #5c86f4; --r4: #7fa0f7; --r5: #a3bbf9; --r6: #b9cbfb; --sc-ciel-a: #b9d3f1; --sc-ciel-b: #eef4fa; --sc-mer-a: #a8c6e6; --sc-mer-b: #7da3d0; --sc-sable: #ebe2d0; --sc-dune: #dbe0d3; --sc-dune-loin: #cdd8e0; --sc-bat: #e6ecf2; --sc-bat-ombre: #c3cfdb; --sc-dome-a: #ffffff; --sc-dome-b: #d3dde8; --sc-arret-a: #d5dbe1; --sc-arret-b: #b4bec8; --sc-halo: #4f7dff; --sc-vague: rgba(255, 255, 255, .7); --sc-astre: #fff3cf; --sc-trait: #9aa8b6; --sc-fenetre: #ffd27a; --sc-etoiles: 0; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --ombre: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px -14px rgba(0, 0, 0, .6); --ombre-haute: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 48px -18px rgba(0, 0, 0, .75); --r1: #2f63e6; --r2: #4f7dff; --r3: #6c92ff; --r4: #86a6ff; --r5: #a2bbff; --r6: #bccfff; --sc-ciel-a: #08142a; --sc-ciel-b: #1a2d4d; --sc-mer-a: #13284a; --sc-mer-b: #0a1629; --sc-sable: #2b3340; --sc-dune: #1d2734; --sc-dune-loin: #18233a; --sc-bat: #2c3949; --sc-bat-ombre: #1e2936; --sc-dome-a: #55667c; --sc-dome-b: #2e3b4c; --sc-arret-a: #2a3441; --sc-arret-b: #1f2833; --sc-halo: #8fb0ff; --sc-vague: rgba(150, 185, 255, .28); --sc-astre: #e6edf8; --sc-trait: #4a5868; --sc-fenetre: #ffcf6e; --sc-etoiles: 1; }
}
:root[data-theme="dark"] { --ombre: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px -14px rgba(0, 0, 0, .6); --ombre-haute: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 48px -18px rgba(0, 0, 0, .75); --r1: #2f63e6; --r2: #4f7dff; --r3: #6c92ff; --r4: #86a6ff; --r5: #a2bbff; --r6: #bccfff; --sc-ciel-a: #08142a; --sc-ciel-b: #1a2d4d; --sc-mer-a: #13284a; --sc-mer-b: #0a1629; --sc-sable: #2b3340; --sc-dune: #1d2734; --sc-dune-loin: #18233a; --sc-bat: #2c3949; --sc-bat-ombre: #1e2936; --sc-dome-a: #55667c; --sc-dome-b: #2e3b4c; --sc-arret-a: #2a3441; --sc-arret-b: #1f2833; --sc-halo: #8fb0ff; --sc-vague: rgba(150, 185, 255, .28); --sc-astre: #e6edf8; --sc-trait: #4a5868; --sc-fenetre: #ffcf6e; --sc-etoiles: 1; }/* ---------- Héros : la réponse + la vue d'ensemble ---------- */
.fc .heros { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); padding-bottom: 8px; }
@media (min-width: 900px) {
.fc .heros { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: stretch; } 
}
.fc .carte { background: var(--carte); border: 1px solid var(--trait); border-radius: 28px; box-shadow: var(--ombre); }
.fc .etiq { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--pale); }
.fc .reponse { position: relative; padding: 26px 26px 22px; display: flex; flex-direction: column; overflow: hidden; }
.fc .reponse::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px;
  background: linear-gradient(90deg, var(--r1), var(--r2), var(--r4), var(--r6)); }
.fc .phrase { margin: 10px 0 22px; font: 400 clamp(28px, 3.3vw, 38px)/1.12 var(--serif); letter-spacing: -.01em; max-width: 20ch; }
.fc .phrase b { font-weight: 400; color: var(--bleu); white-space: nowrap; }
:root[data-theme="dark"] .fc .phrase b { color: var(--lien); }
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) .fc .phrase b { color: var(--lien); } 
}
.fc .chiffres { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: auto 0 0; padding: 0; }
.fc .chiffres > div { background: var(--fond); border-radius: 18px; padding: 14px 16px 12px; }
.fc .chiffres dt { font-size: 13px; color: var(--pale); font-weight: 600; }
.fc .chiffres dd { margin: 2px 0 0; font: 400 40px/1 var(--serif); letter-spacing: -.02em; }
.fc .chiffres dd small { font: 600 14px var(--sans); color: var(--pale); letter-spacing: 0; margin-left: 4px; }
.fc .pastilles { display: flex; gap: 5px; margin-top: 9px; }
.fc .pastilles i { width: 10px; height: 10px; border-radius: 50%; background: var(--bleu); }
.fc .pastilles i.off { background: transparent; box-shadow: inset 0 0 0 1.5px var(--blanc-bord); }
.fc .maj { margin: 14px 0 0; font-size: 13px; color: var(--pale); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fc .direct-pt { width: 8px; height: 8px; border-radius: 50%; background: #1fa463; position: relative; flex: none; }
.fc .direct-pt::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: onde 2.2s ease-out infinite; }
@keyframes onde { from { transform: scale(1); opacity: .55; } to { transform: scale(3.2); opacity: 0; } }

/* Vue d'ensemble */
.fc .vue { padding: 20px 20px 18px; display: flex; flex-direction: column; overflow: hidden; }
.fc .vue-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 0 4px; }
.fc .vue-tete p:last-child { margin: 0; font-size: 13.5px; color: var(--pale); }
.fc .scene { position: relative; margin: 12px 0 14px; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 10;
  background: linear-gradient(180deg, var(--sc-ciel-a), var(--sc-ciel-b) 70%); isolation: isolate; }
.fc .s3-repli svg { display: block; width: 100%; height: 100%; }
.fc .legende { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 600px) {
.fc .legende { grid-template-columns: repeat(6, minmax(0, 1fr)); } 
}
.fc .legende li { display: grid; gap: 1px; padding: 8px 10px; border-radius: 14px; background: var(--fond); font-size: 12.5px; line-height: 1.25; transition: background .25s, transform .25s; cursor: default; }
.fc .legende li b { font-size: 13px; }
.fc .legende li span { color: var(--pale); }
.fc .legende li[data-etat="arret"] span { font-style: italic; }
.fc .legende li.actif { background: color-mix(in srgb, var(--bleu) 14%, var(--fond)); transform: translateY(-2px); }

/* Scène : animations douces */
.fc .sc-halo { transform-box: fill-box; transform-origin: center; animation: respire 4.8s ease-in-out infinite; }
@keyframes respire { 0%, 100% { opacity: .55; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.06); } }
.fc .sc-reflet { animation: miroite 3.6s ease-in-out infinite; }
@keyframes miroite { 0%, 100% { opacity: .22; } 50% { opacity: .42; } }
.fc .sc-vagues { animation: houle 14s linear infinite; }
.fc .sc-vagues.lent { animation-duration: 22s; animation-direction: reverse; }
@keyframes houle { to { transform: translateX(-80px); } }
.fc .sc-oiseaux { animation: vol 38s linear infinite; }
@keyframes vol { from { transform: translateX(-60px); } to { transform: translateX(700px); } }
.fc .sc-etoiles { opacity: var(--sc-etoiles); transition: opacity .6s; }
.fc .sc-etoiles circle { animation: scintille 3s ease-in-out infinite; }
.fc .sc-etoiles circle:nth-child(3n) { animation-delay: -1s; }
.fc .sc-etoiles circle:nth-child(3n+1) { animation-delay: -2s; }
@keyframes scintille { 50% { opacity: .35; } }
.fc .sc-unite { transition: transform .35s cubic-bezier(.2, .8, .2, 1); transform-box: fill-box; transform-origin: 50% 100%; }
.fc .sc-unite.actif { transform: translateY(-3px); }
.fc .sc-num { font: 700 11px var(--sans); fill: var(--pale); text-anchor: middle; }

/* ---------- Sections ---------- */
.fc .section { margin-top: 56px; }
.fc .section-tete { display: flex; align-items: end; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; margin-bottom: 16px; }
.fc .section-tete h2 { font-size: clamp(32px, 4vw, 44px); line-height: 1.04; margin: 0; }
.fc .section-tete p { margin: 0; color: var(--pale); font-size: 15px; max-width: 46ch; }

/* Cartes réacteur */
.fc .reacteurs { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) {
.fc .reacteurs { grid-template-columns: repeat(2, minmax(0, 1fr)); } 
}
@media (min-width: 1000px) {
.fc .reacteurs { grid-template-columns: repeat(3, minmax(0, 1fr)); } 
}
.fc .reac { --d-a: var(--sc-dome-a); --d-b: var(--sc-dome-b); --d-halo: 1; --d-fen: var(--sc-fenetre);
  position: relative; padding: 18px 20px 16px; border-radius: 26px; transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; overflow: hidden; }
.fc .reac:hover, .fc .reac.actif { transform: translateY(-3px); box-shadow: var(--ombre-haute); }
.fc .reac[data-etat="arret"] { --d-a: var(--sc-arret-a); --d-b: var(--sc-arret-b); --d-halo: 0; --d-fen: var(--sc-arret-b);
  background: color-mix(in srgb, var(--carte) 70%, var(--fond)); box-shadow: none; }
.fc .reac-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fc .reac-nom { margin: 0; font: 700 15px var(--sans); }
.fc .reac-nom span { color: var(--pale); font-weight: 500; }
.fc .etat { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 9px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap;
  background: color-mix(in srgb, var(--bleu) 11%, var(--carte)); color: var(--texte); }
.fc .etat i { width: 8px; height: 8px; border-radius: 50%; background: #1fa463; position: relative; }
.fc .etat i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: onde 2.2s ease-out infinite; }
.fc .reac[data-etat="arret"] .etat { background: var(--doux); }
.fc .reac[data-etat="arret"] .etat i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--pale); }
.fc .reac[data-etat="arret"] .etat i::after { display: none; }
.fc .reac-corps { display: flex; align-items: flex-end; gap: 14px; margin: 14px 0 12px; }
.fc .dome { width: 74px; height: 62px; flex: none; overflow: visible; }
.fc .dome .d-halo { opacity: var(--d-halo); transform-box: fill-box; transform-origin: center; animation: respire 4.8s ease-in-out infinite; }
.fc .reac-mw { margin: 0; font: 400 64px/.86 var(--serif); letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.fc .reac-mw small { font: 600 16px var(--sans); letter-spacing: 0; color: var(--pale); margin-left: 6px; }
.fc .reac[data-etat="arret"] .reac-mw { font-size: 44px; line-height: .95; font-style: italic; color: var(--pale); }
.fc .reac-mw .sous { display: block; font: 600 14px var(--sans); font-style: normal; margin: 8px 0 0; letter-spacing: 0; }
.fc .barre { position: relative; height: 8px; border-radius: 99px; background: var(--doux); overflow: hidden; }
.fc .barre span { position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--p)); border-radius: inherit;
  background: linear-gradient(90deg, var(--r2), var(--r1)); transition: transform 1.4s cubic-bezier(.2, .8, .2, 1); }
.js .fc .barre span { transform: scaleX(0); }
.js .fc .vu .barre span { transform: scaleX(var(--p)); }
.fc .barre-legende { display: flex; justify-content: space-between; margin: 5px 0 0; font-size: 11.5px; color: var(--pale); font-variant-numeric: tabular-nums; }
.fc .spark { display: block; width: 100%; height: 54px; margin-top: 12px; overflow: visible; }
.fc .spark-ligne { fill: none; stroke: var(--r1); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.fc .reac[data-etat="arret"] .spark-ligne { stroke: var(--blanc-bord); stroke-dasharray: 1 0; }
.fc .spark-aire { fill: url(#g-spark); }
.fc .spark-avenir { stroke: var(--trait); stroke-width: 1.5; stroke-dasharray: 2 4; vector-effect: non-scaling-stroke; }
.fc .spark-minuit { stroke: var(--trait); stroke-width: 1; vector-effect: non-scaling-stroke; }
.fc .spark-pt { fill: var(--r1); }
.fc .reac[data-etat="arret"] .spark-pt { fill: var(--blanc-bord); }
.fc .spark-axe { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--pale); margin-top: 3px; }
.fc .reac-note { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--trait); font-size: 14px; color: var(--pale); line-height: 1.45; }

/* Courbe empilée */
.fc .courbe { padding: 22px 22px 16px; }
.fc .courbe-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 20px; flex-wrap: wrap; }
.fc .courbe-total { margin: 0; font: 400 34px/1 var(--serif); }
.fc .courbe-total small { font: 600 14px var(--sans); color: var(--pale); margin-left: 4px; }
.fc .cles { display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; margin: 0; padding: 0; font-size: 13px; color: var(--pale); }
.fc .cles li { display: inline-flex; align-items: center; gap: 6px; }
.fc .cles i { width: 12px; height: 12px; border-radius: 4px; }
.fc .cles li.zero i { background: transparent !important; box-shadow: inset 0 0 0 1.5px var(--blanc-bord); }
.fc .graphe { position: relative; margin-top: 14px; touch-action: pan-y; }
.fc .graphe svg { display: block; width: 100%; height: auto; overflow: visible; }
.fc .graphe:focus-visible { outline-offset: 6px; border-radius: 12px; }
.fc .g-grille { stroke: var(--trait); stroke-width: 1; }
.fc .g-txt { font: 500 12px var(--sans); fill: var(--pale); font-variant-numeric: tabular-nums; }
.fc .g-jour { font: 700 12px var(--sans); fill: var(--texte); }
.fc .g-bande { stroke: var(--carte); stroke-width: 1.2; stroke-linejoin: round; }
.fc .g-avenir { fill: url(#g-hachure); }
.fc .g-avenir-txt { font: 500 12.5px var(--sans); fill: var(--pale); font-style: italic; }
.fc .g-maintenant { stroke: var(--texte); stroke-width: 1.2; stroke-dasharray: 3 3; }
.fc .g-maintenant-txt { font: 700 12px var(--sans); fill: var(--texte); }
.fc .g-etiq { font: 600 12.5px var(--sans); fill: var(--texte); }
.fc .g-etiq tspan { fill: var(--pale); font-weight: 500; }
.fc .g-curseur { stroke: var(--texte); stroke-width: 1; opacity: 0; transition: opacity .15s; }
.fc .g-revele { transition: none; }
.fc .bulle { position: absolute; top: 0; left: 0; min-width: 176px; padding: 10px 12px; border-radius: 14px; background: var(--encre); color: #fff; font-size: 13px;
  line-height: 1.45; pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; box-shadow: var(--ombre-haute); z-index: 2; }
:root[data-theme="dark"] .fc .bulle { background: #f1f4f8; color: #0e1a26; }
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) .fc .bulle { background: #f1f4f8; color: #0e1a26; } 
}
.fc .bulle.vis { opacity: 1; transform: none; }
.fc .bulle b { display: block; font-size: 13.5px; margin-bottom: 4px; }
.fc .bulle div { display: flex; justify-content: space-between; gap: 14px; font-variant-numeric: tabular-nums; }
.fc .bulle div span:first-child { opacity: .75; }
.fc .bulle .tot { border-top: 1px solid rgba(127, 127, 127, .4); margin-top: 4px; padding-top: 4px; font-weight: 700; }
.fc .graphe-note { margin: 10px 0 0; font-size: 13px; color: var(--pale); }
.fc .donnees-brutes { margin-top: 12px; font-size: 14px; }
.fc .donnees-brutes summary { cursor: pointer; font-weight: 600; min-height: 32px; display: inline-flex; align-items: center; }
.fc .donnees-brutes .defile { overflow-x: auto; max-height: 320px; margin-top: 8px; border: 1px solid var(--trait); border-radius: 14px; }
.fc .donnees-brutes table { border-collapse: collapse; width: 100%; font-size: 13px; font-variant-numeric: tabular-nums; }
.fc .donnees-brutes th, .fc .donnees-brutes td { padding: 6px 10px; border-bottom: 1px solid var(--trait); text-align: right; white-space: nowrap; }
.fc .donnees-brutes th:first-child, .fc .donnees-brutes td:first-child { text-align: left; }
.fc .donnees-brutes thead th { position: sticky; top: 0; background: var(--carte); }

/* Le saviez-vous + comment lire */
.fc .duo { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 800px) {
.fc .duo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } 
}
.fc .saviez { position: relative; padding: 24px 24px 22px; overflow: hidden;
  background: linear-gradient(160deg, color-mix(in srgb, var(--ciel-a) 70%, var(--carte)), var(--carte) 70%); }
.fc .saviez p.fait { margin: 10px 0 12px; font: 400 clamp(24px, 2.6vw, 30px)/1.18 var(--serif); max-width: 24ch; }
.fc .saviez .src { margin: 0; font-size: 13px; color: var(--pale); }
.fc .saviez svg { position: absolute; right: -10px; bottom: -14px; width: 150px; opacity: .5; }
.fc .lire { padding: 22px 24px; }
.fc .lire ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.fc .lire li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; font-size: 15.5px; line-height: 1.5; }
.fc .lire li i { width: 28px; height: 28px; border-radius: 9px; background: var(--fond); display: grid; place-items: center; font-style: normal; font-size: 14px; font-weight: 700; color: var(--pale); }

/* FAQ */
.fc .faq-liste { overflow: hidden; }
.fc .faq details + details { border-top: 1px solid var(--trait); }
.fc .faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 14px 20px; cursor: pointer; list-style: none; font-weight: 700; }
.fc .faq summary::-webkit-details-marker { display: none; }
.fc .faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--fond); font-size: 20px; font-weight: 400; transition: transform .3s; }
.fc .faq details[open] summary::after { transform: rotate(45deg); }
.fc .faq summary:hover { color: var(--lien); }
.fc .faq details p { margin: 0; padding: 0 20px 18px; font-size: 16px; line-height: 1.6; }

/* ---------- Maquette 3D dans l'encadré ---------- */
.fc .scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; outline: none; }
.fc .scene::before { content: ""; position: absolute; left: 10%; right: 10%; top: 38%; bottom: 14%; border-radius: 26px; z-index: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--sc-dune) 80%, transparent), color-mix(in srgb, var(--sc-mer-a) 70%, transparent));
  transform: perspective(700px) rotateX(52deg); animation: charge 1.6s ease-in-out infinite; transition: opacity .6s; pointer-events: none; }
.fc .scene::after { content: ""; position: absolute; left: 26%; right: 26%; top: 44%; height: 9%; z-index: 0; pointer-events: none; opacity: .85; transition: opacity .6s;
  background: radial-gradient(circle, var(--sc-dome-b) 0 45%, transparent 48%) 0 50% / 16.6% 100% repeat-x; }
@keyframes charge { 50% { opacity: .55; } }
.fc .scene.prete::before, .fc .scene.prete::after { opacity: 0; animation: none; }
.fc .s3-repli { position: absolute; inset: 0; display: none; }
.fc .scene.sans3d .s3-repli { display: block; }
.fc .scene.sans3d canvas, .fc .scene.sans3d .s3-outils, .fc .scene.sans3d .s3-etq, .fc .scene.sans3d .s3-credit { display: none; }
.fc .scene.sans3d { aspect-ratio: 640 / 300; }
.fc .s3-etq { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.fc .s3-e { position: absolute; left: 0; top: 0; pointer-events: auto; border: 0; cursor: pointer; font: 700 12px/1.15 var(--sans); color: var(--texte);
  background: var(--carte); border-radius: 999px; padding: 3px 9px 3px 3px; display: flex; align-items: center; gap: 5px; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(14, 26, 38, .12), 0 6px 16px -6px rgba(14, 26, 38, .35); transition: opacity .25s, box-shadow .25s; }
.fc .s3-e::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 8px; height: 8px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 0 0 2px 0; }
.fc .s3-n { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--bleu); color: #fff; font-size: 11.5px; position: relative; z-index: 1; }
.fc .s3-e.off .s3-n { background: transparent; color: var(--pale); box-shadow: inset 0 0 0 1.5px var(--blanc-bord); }
.fc .s3-e.off .s3-court { color: var(--pale); font-style: italic; font-weight: 600; }
.fc .s3-court, .fc .s3-long { position: relative; z-index: 1; }
.fc .s3-long { display: none; }
.fc .s3-e.actif { box-shadow: 0 0 0 2.5px var(--lien), 0 8px 18px -6px rgba(14, 26, 38, .4); }
.fc .s3-e.cache { opacity: 0; pointer-events: none; }
.fc .scene.grand .s3-e { padding: 6px 13px 7px 6px; border-radius: 16px; gap: 8px; }
.fc .scene.grand .s3-court { display: none; }
.fc .scene.grand .s3-long { display: grid; gap: 1px; }
.fc .scene.grand .s3-long b { font-size: 14px; }
.fc .scene.grand .s3-long small { font-size: 12px; font-weight: 600; color: var(--pale); }
.fc .scene.grand .s3-n { width: 26px; height: 26px; font-size: 13px; }
.fc .s3-outils { position: absolute; right: 10px; top: 10px; display: flex; gap: 6px; z-index: 3; }
.fc .s3-btn { border: 1px solid var(--trait); font: 700 13px var(--sans); color: var(--texte); background: color-mix(in srgb, var(--carte) 88%, transparent);
  backdrop-filter: blur(8px); border-radius: 999px; min-height: 36px; padding: 6px 13px; cursor: pointer; box-shadow: var(--ombre); }
.fc .s3-btn:hover { background: var(--carte); }
.fc .s3-btn[hidden] { display: none; }
.fc .s3-credit { position: absolute; left: 10px; bottom: 8px; margin: 0; z-index: 3; font-size: 11px; color: var(--pale);
  background: color-mix(in srgb, var(--carte) 75%, transparent); border-radius: 999px; padding: 2px 9px; }
.fc .s3-total { display: none; }
.fc .scene.grand .s3-total { display: block; position: absolute; left: 16px; top: 16px; z-index: 3; background: var(--carte); border: 1px solid var(--trait);
  border-radius: 22px; padding: 14px 18px; box-shadow: var(--ombre-haute); max-width: 290px; }
.fc .s3-total p { margin: 0; }
.fc .s3-total .etiq { margin-bottom: 4px; }
.fc .s3-total .t-mw { font: 400 44px/1 var(--serif); }
.fc .s3-total .t-mw small { font: 600 15px var(--sans); color: var(--pale); margin-left: 4px; }
.fc .s3-total .t-sous { font-size: 14px; font-weight: 600; margin-top: 4px; }
.fc .s3-total .t-src { font-size: 12px; color: var(--pale); margin-top: 6px; }
.fc .s3-fiche { position: absolute; right: 10px; bottom: 10px; z-index: 4; width: 220px; background: var(--carte); border: 1px solid var(--trait);
  border-radius: 18px; padding: 10px 12px; box-shadow: var(--ombre-haute); }
.fc .s3-fiche[hidden] { display: none; }
.fc .s3-fiche p { margin: 0; }
.fc .s3-ft { font-weight: 700; font-size: 14px; }
.fc .s3-fe { font-size: 12.5px; font-weight: 600; color: #157a45; }
.fc .s3-fe.off { color: var(--pale); font-style: italic; }
:root[data-theme="dark"] .fc .s3-fe.on { color: #6fd39b; }
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) .fc .s3-fe.on { color: #6fd39b; } 
}
.fc .s3-fv { font: 400 30px/1.05 var(--serif); margin-top: 2px !important; }
.fc .s3-fv small { font: 600 12px var(--sans); color: var(--pale); }
.fc .s3-fiche svg { display: block; width: 100%; height: 44px; margin-top: 6px; }
.fc .s3-g { stroke: var(--trait); stroke-dasharray: 3 4; }
.fc .s3-a { fill: var(--r2); opacity: .14; }
.fc .s3-l { fill: none; stroke: var(--r1); stroke-width: 2; stroke-linejoin: round; }
.fc .s3-fl { font-size: 11.5px; color: var(--pale); margin-top: 4px !important; }
.fc .s3-x { position: absolute; right: 6px; top: 6px; width: 30px; height: 30px; border: 0; border-radius: 10px; background: var(--fond); color: var(--texte); font-size: 17px; cursor: pointer; }
.fc .scene.grand .s3-fiche { width: 320px; right: 16px; bottom: 16px; padding: 16px 18px; border-radius: 22px; }
.fc .scene.grand .s3-fiche svg { height: 80px; }
.fc .scene.grand .s3-fv { font-size: 40px; }
.fc .scene.grand .s3-outils { right: 16px; top: 16px; }
.fc .scene:fullscreen, .fc .scene.plein { aspect-ratio: auto; width: 100vw; height: 100vh; height: 100dvh; margin: 0; border-radius: 0; }
.fc .scene.plein { position: fixed; inset: 0; z-index: 1000; }
@media (max-width: 599px) {
.fc .scene { aspect-ratio: 4 / 3.3; }
.fc .scene:not(.grand) .s3-court { display: none; }
.fc .scene:not(.grand) .s3-e { padding: 3px; }
.fc .s3-fiche { left: 8px; right: 8px; width: auto; bottom: 8px; }
.fc .s3-fiche svg { height: 34px; }
.fc .scene.grand .s3-fiche { left: 10px; right: 10px; width: auto; }
.fc .scene.grand .s3-total { left: 10px; top: 10px; padding: 10px 13px; max-width: 190px; }
.fc .scene.grand .s3-total .t-mw { font-size: 30px; }
.fc .scene.grand .s3-total .t-src { display: none; }
.fc .scene.grand .s3-e { padding: 3px 9px 3px 3px; }
.fc .scene.grand .s3-long small { display: none; }
.fc .scene.grand .s3-long b { font-size: 12px; }
.fc .scene.grand .s3-n { width: 20px; height: 20px; font-size: 11.5px; }
.fc .scene.grand .s3-outils { top: auto; bottom: 10px; right: 10px; }

}

/* Apparition douce au défilement */
.js .fc .monte { opacity: 0; transform: translateY(14px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.js .fc .monte.vu { opacity: 1; transform: none; }
.js .fc .reac.monte.vu { transition: opacity .8s ease, transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; }
.js .fc .reac.monte.vu:hover, .js .fc .reac.monte.vu.actif { transform: translateY(-3px); }
@media (max-width: 599px) {
.fc .reponse { padding: 22px 20px 18px; }
.fc .vue { padding: 16px 14px 14px; }
.fc .chiffres dd { font-size: 34px; }
.fc .reac-mw { font-size: 56px; }
.fc .courbe { padding: 18px 14px 14px; }

}
@media (prefers-reduced-motion: reduce) {
.fc *, .fc *::before, .fc *::after { animation: none !important; transition: none !important; }
.js .fc .monte { opacity: 1; transform: none; }
.js .fc .barre span { transform: scaleX(var(--p)); }

}

/* ---------- Fiches générées : ajouts (visite intérieure, légende variable, chiffres clés, fiche technique) ---------- */
.fc .s3-entrer { background: var(--bleu); color: #fff; border-color: transparent; }
.fc .s3-entrer:hover { background: var(--bleu); filter: brightness(1.08); }
.fc .s3-go { display: block; width: 100%; margin-top: 8px; border: 0; border-radius: 999px; min-height: 38px; background: var(--bleu); color: #fff; font: 700 13.5px var(--sans); cursor: pointer; }
.fc .s3-voile { position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 50%, var(--sc-ciel-b), var(--sc-ciel-a)); transition: opacity .55s ease-in; }
.fc .s3-voile.vu { opacity: 1; }
.fc .scene.sans3d .s3-voile { display: none; }
.fc .s3-pal { font-weight: 500; color: var(--pale); font-size: 12.5px; }
.fc .s3-jauge { height: 8px; border-radius: 99px; background: var(--doux); overflow: hidden; margin-top: 8px; }
.fc .s3-jauge span { display: block; height: 100%; transform-origin: left; transform: scaleX(var(--p)); background: linear-gradient(90deg, var(--r2), var(--r1)); border-radius: inherit; }
.fc .scene::after { background-size: calc(100% / var(--n, 6)) 100%; }
.fc .legende { grid-template-columns: repeat(var(--nm, 3), minmax(0, 1fr)); }
@media (min-width: 600px) {
.fc .legende { grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); } 
}
.fc .lien-visite { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 14px; font-weight: 700; text-decoration: none; }
.fc .lien-visite:hover { text-decoration: underline; }
.fc .reac-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; margin: 10px 0 0; font-size: 13px; color: var(--pale); }
.fc .reac-meta b { color: var(--texte); font-weight: 600; }
.fc .reac-releve { margin: 12px 0 0; font-size: 13.5px; color: var(--pale); }
.fc .note-maquette { margin: 14px 0 0; font-size: 13.5px; color: var(--pale); }
.fc .faits { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); margin: 0; }
@media (min-width: 640px) {
.fc .faits { grid-template-columns: repeat(2, minmax(0, 1fr)); } 
}
@media (min-width: 1000px) {
.fc .faits { grid-template-columns: repeat(3, minmax(0, 1fr)); } 
}
.fc .fait-c { padding: 18px 20px 16px; }
.fc .fait-c dt { font-size: 13px; color: var(--pale); font-weight: 600; }
.fc .fait-c dd { margin: 4px 0 0; }
.fc .fait-c .v { display: block; font: 400 40px/1.05 var(--serif); letter-spacing: -.02em; }
.fc .fait-c .v small { font: 600 14px var(--sans); color: var(--pale); letter-spacing: 0; margin-left: 4px; }
.fc .fait-c .d { display: block; margin-top: 8px; font-size: 14px; color: var(--pale); line-height: 1.45; }
.fc .fait-c .d a { font-weight: 600; }
.fc .tech { overflow-x: auto; }
.fc .tech table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.fc .tech th, .fc .tech td { padding: 11px 16px; border-bottom: 1px solid var(--trait); text-align: right; white-space: nowrap; }
.fc .tech th:first-child, .fc .tech td:first-child, .fc .tech th:nth-child(2), .fc .tech td:nth-child(2) { text-align: left; }
.fc .tech thead th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--pale); }
.fc .tech tfoot th, .fc .tech tfoot td { border-bottom: 0; font-weight: 700; }
.fc .tech .off { color: var(--pale); font-style: italic; }
.fc .a-rediger { padding: 20px 24px; border: 1.5px dashed var(--trait); background: transparent; box-shadow: none; color: var(--pale); }
.fc .a-rediger p { margin: 0; }
.fc .histoire { padding: 24px 26px 22px; }
.fc .histoire p { margin: 0 0 14px; max-width: 72ch; line-height: 1.62; }
.fc .histoire sup { font-size: 11px; line-height: 0; margin-left: 1px; }
.fc .histoire sup a { text-decoration: none; font-weight: 700; }
.fc .histoire .h-src { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--trait); font-size: 13.5px; color: var(--pale); }
.fc .histoire .h-src p { margin: 0 0 6px; font-weight: 700; color: var(--texte); }
.fc .histoire .h-src ol { margin: 0; padding-left: 22px; display: grid; gap: 5px; line-height: 1.45; }
.fc .histoire .h-src a { overflow-wrap: anywhere; }
.fc .sources ol { margin: 0; padding: 20px 26px 20px 44px; display: grid; gap: 9px; font-size: 14.5px; line-height: 1.5; }
.fc .voisines ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fc .voisines a { display: inline-flex; gap: 6px; align-items: baseline; padding: 9px 15px; border-radius: 999px; background: var(--carte); border: 1px solid var(--trait); text-decoration: none; font-weight: 600; font-size: 14.5px; color: var(--texte); }
.fc .voisines a span { color: var(--pale); font-weight: 500; font-size: 13px; }
.fc .voisines a:hover { border-color: var(--lien); }
.fc .sc-vapeur { animation: fume 7s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes fume { 50% { transform: translate(6px, -4px) scale(1.06); opacity: .75; } }
@media (prefers-reduced-motion: reduce) {
.fc .sc-vapeur { animation: none; } 
}
@media (max-width: 599px) {
.fc .s3-plus { display: none; }
.fc .s3-btn { white-space: nowrap; padding: 5px 11px; min-height: 34px; }
.fc .s3-credit { max-width: calc(100% - 20px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

}


/* ---------- Site : l'illustration (SVG calculé au build) reste affichée tant que la 3D n'est pas prête ---------- */
.fc .scene:not(.prete) .s3-repli { display: block; z-index: 1; }
.fc .scene:not(.prete)::before, .fc .scene:not(.prete)::after { display: none; }
.fc .scene:not(.prete) .s3-outils { display: none; }
.fc .note-maquette { font-size: 13.5px; color: var(--pale); }
.fc .page-fiche { padding-bottom: 8px; }
.fc .maj > span:last-child { flex: 1; min-width: 0; }
