/* Éolien (Jour Tempo) : CSS des maquettes validées, généré par scripts/donnees/eolien_preparer.py — ne pas éditer à la main. */
/* fiches des 5 parcs en mer (modèle Saint-Nazaire) */
/* ---------- Jetons du thème Ciel (recopiés du site) ---------- */
:root {
  --accent: #1b4fd6; --accent-texte: #fff; --fond: #e9eef3; --texte: #0e1a26; --doux: #d3dbe3;
  --carte: #ffffff; --pale: #4d5b6a; --trait: #d3dbe3; --lien: #1b4fd6;
  --bleu: #1b4fd6; --rouge: #c3261c; --blanc-bord: #7d8b99; --encre: #0e1a26;
  --avenir: #dfe5eb; --ciel-a: #cfe0f5; --ciel-b: #f4f7fa; --bande: #0e1a26;
  --serif: 'Instrument Serif', 'Times New Roman', Georgia, serif;
  --sans: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --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);
  /* Série empilée : une gamme de bleus du site, du plus sombre (réacteur 1) au plus clair */
  --r1: #1b4fd6; --r2: #3a6cf0; --r3: #5c86f4; --r4: #7fa0f7; --r5: #a3bbf9; --r6: #b9cbfb;
  /* Scène de la centrale */
  --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;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fond: #0b1118; --carte: #141c26; --texte: #eef2f6; --pale: #a3b0bd; --trait: #2a3644; --doux: #222d39;
    --lien: #9db8ff; --accent: #9db8ff; --accent-texte: #0b1118; --bleu: #2f63e6; --blanc-bord: #8795a3; --avenir: #1f2a36;
    --ciel-a: #13233a; --ciel-b: #0e1622; --bande: #04070b; color-scheme: 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;
  }
}
:root[data-theme="dark"] {
  --fond: #0b1118; --carte: #141c26; --texte: #eef2f6; --pale: #a3b0bd; --trait: #2a3644; --doux: #222d39;
  --lien: #9db8ff; --accent: #9db8ff; --accent-texte: #0b1118; --bleu: #2f63e6; --blanc-bord: #8795a3; --avenir: #1f2a36;
  --ciel-a: #13233a; --ciel-b: #0e1622; --bande: #04070b; color-scheme: 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;
}

/* En-tête de page */
.tete-page { padding: 6px 0 26px; }
.retour { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px 6px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--carte) 72%, transparent); color: var(--texte); font-size: 14px; font-weight: 600; text-decoration: none; }
.retour:hover { background: var(--carte); }
.type { display: flex; align-items: center; gap: 7px; margin: 22px 0 0; font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--texte); }
.ico-type { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; color: var(--rouge); animation: emission 2.4s ease-in-out infinite; }
@keyframes emission { 50% { opacity: .35; } }
.tete-page h1 { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.02; margin: 10px 0 14px; max-width: 18ch; }
.verif { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; font-size: 14px; color: var(--pale); }
.verif strong { color: var(--texte); font-weight: 600; }

/* ---------- Héros : la réponse + la vue d'ensemble ---------- */
.heros { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); padding-bottom: 8px; }
@media (min-width: 900px) { .heros { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: stretch; } }
.carte { background: var(--carte); border: 1px solid var(--trait); border-radius: 28px; box-shadow: var(--ombre); }
.etiq { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--pale); }

.reponse { position: relative; padding: 26px 26px 22px; display: flex; flex-direction: column; overflow: hidden; }
.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)); }
.phrase { margin: 10px 0 22px; font: 400 clamp(28px, 3.3vw, 38px)/1.12 var(--serif); letter-spacing: -.01em; max-width: 20ch; }
.phrase b { font-weight: 400; color: var(--bleu); white-space: nowrap; }
:root[data-theme="dark"] .phrase b { color: var(--lien); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .phrase b { color: var(--lien); } }
.chiffres { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: auto 0 0; padding: 0; }
.chiffres > div { background: var(--fond); border-radius: 18px; padding: 14px 16px 12px; }
.chiffres dt { font-size: 13px; color: var(--pale); font-weight: 600; }
.chiffres dd { margin: 2px 0 0; font: 400 40px/1 var(--serif); letter-spacing: -.02em; }
.chiffres dd small { font: 600 14px var(--sans); color: var(--pale); letter-spacing: 0; margin-left: 4px; }
.pastilles { display: flex; gap: 5px; margin-top: 9px; }
.pastilles i { width: 10px; height: 10px; border-radius: 50%; background: var(--bleu); }
.pastilles i.off { background: transparent; box-shadow: inset 0 0 0 1.5px var(--blanc-bord); }
.maj { margin: 14px 0 0; font-size: 13px; color: var(--pale); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.direct-pt { width: 8px; height: 8px; border-radius: 50%; background: #1fa463; position: relative; flex: none; }
.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 */
.vue { padding: 20px 20px 18px; display: flex; flex-direction: column; overflow: hidden; }
.vue-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 0 4px; }
.vue-tete p:last-child { margin: 0; font-size: 13.5px; color: var(--pale); }
.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; }
.s3-repli svg { display: block; width: 100%; height: 100%; }
.legende { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 600px) { .legende { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.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; }
.legende li b { font-size: 13px; }
.legende li span { color: var(--pale); }
.legende li[data-etat="arret"] span { font-style: italic; }
.legende li.actif { background: color-mix(in srgb, var(--bleu) 14%, var(--fond)); transform: translateY(-2px); }

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

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

/* Cartes réacteur */
.reacteurs { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) { .reacteurs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .reacteurs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.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; }
.reac:hover, .reac.actif { transform: translateY(-3px); box-shadow: var(--ombre-haute); }
.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; }
.reac-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.reac-nom { margin: 0; font: 700 15px var(--sans); }
.reac-nom span { color: var(--pale); font-weight: 500; }
.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); }
.etat i { width: 8px; height: 8px; border-radius: 50%; background: #1fa463; position: relative; }
.etat i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: onde 2.2s ease-out infinite; }
.reac[data-etat="arret"] .etat { background: var(--doux); }
.reac[data-etat="arret"] .etat i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--pale); }
.reac[data-etat="arret"] .etat i::after { display: none; }
.reac-corps { display: flex; align-items: flex-end; gap: 14px; margin: 14px 0 12px; }
.dome { width: 74px; height: 62px; flex: none; overflow: visible; }
.dome .d-halo { opacity: var(--d-halo); transform-box: fill-box; transform-origin: center; animation: respire 4.8s ease-in-out infinite; }
.reac-mw { margin: 0; font: 400 64px/.86 var(--serif); letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.reac-mw small { font: 600 16px var(--sans); letter-spacing: 0; color: var(--pale); margin-left: 6px; }
.reac[data-etat="arret"] .reac-mw { font-size: 44px; line-height: .95; font-style: italic; color: var(--pale); }
.reac-mw .sous { display: block; font: 600 14px var(--sans); font-style: normal; margin: 8px 0 0; letter-spacing: 0; }
.barre { position: relative; height: 8px; border-radius: 99px; background: var(--doux); overflow: hidden; }
.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 .barre span { transform: scaleX(0); }
.js .vu .barre span { transform: scaleX(var(--p)); }
.barre-legende { display: flex; justify-content: space-between; margin: 5px 0 0; font-size: 11.5px; color: var(--pale); font-variant-numeric: tabular-nums; }
.spark { display: block; width: 100%; height: 54px; margin-top: 12px; overflow: visible; }
.spark-ligne { fill: none; stroke: var(--r1); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.reac[data-etat="arret"] .spark-ligne { stroke: var(--blanc-bord); stroke-dasharray: 1 0; }
.spark-aire { fill: url(#g-spark); }
.spark-avenir { stroke: var(--trait); stroke-width: 1.5; stroke-dasharray: 2 4; vector-effect: non-scaling-stroke; }
.spark-minuit { stroke: var(--trait); stroke-width: 1; vector-effect: non-scaling-stroke; }
.spark-pt { fill: var(--r1); }
.reac[data-etat="arret"] .spark-pt { fill: var(--blanc-bord); }
.spark-axe { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--pale); margin-top: 3px; }
.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 */
.courbe { padding: 22px 22px 16px; }
.courbe-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 20px; flex-wrap: wrap; }
.courbe-total { margin: 0; font: 400 34px/1 var(--serif); }
.courbe-total small { font: 600 14px var(--sans); color: var(--pale); margin-left: 4px; }
.cles { display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; margin: 0; padding: 0; font-size: 13px; color: var(--pale); }
.cles li { display: inline-flex; align-items: center; gap: 6px; }
.cles i { width: 12px; height: 12px; border-radius: 4px; }
.cles li.zero i { background: transparent !important; box-shadow: inset 0 0 0 1.5px var(--blanc-bord); }
.graphe { position: relative; margin-top: 14px; touch-action: pan-y; }
.graphe svg { display: block; width: 100%; height: auto; overflow: visible; }
.graphe:focus-visible { outline-offset: 6px; border-radius: 12px; }
.g-grille { stroke: var(--trait); stroke-width: 1; }
.g-txt { font: 500 12px var(--sans); fill: var(--pale); font-variant-numeric: tabular-nums; }
.g-jour { font: 700 12px var(--sans); fill: var(--texte); }
.g-bande { stroke: var(--carte); stroke-width: 1.2; stroke-linejoin: round; }
.g-avenir { fill: url(#g-hachure); }
.g-avenir-txt { font: 500 12.5px var(--sans); fill: var(--pale); font-style: italic; }
.g-maintenant { stroke: var(--texte); stroke-width: 1.2; stroke-dasharray: 3 3; }
.g-maintenant-txt { font: 700 12px var(--sans); fill: var(--texte); }
.g-etiq { font: 600 12.5px var(--sans); fill: var(--texte); }
.g-etiq tspan { fill: var(--pale); font-weight: 500; }
.g-curseur { stroke: var(--texte); stroke-width: 1; opacity: 0; transition: opacity .15s; }
.g-revele { transition: none; }
.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"] .bulle { background: #f1f4f8; color: #0e1a26; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bulle { background: #f1f4f8; color: #0e1a26; } }
.bulle.vis { opacity: 1; transform: none; }
.bulle b { display: block; font-size: 13.5px; margin-bottom: 4px; }
.bulle div { display: flex; justify-content: space-between; gap: 14px; font-variant-numeric: tabular-nums; }
.bulle div span:first-child { opacity: .75; }
.bulle .tot { border-top: 1px solid rgba(127, 127, 127, .4); margin-top: 4px; padding-top: 4px; font-weight: 700; }
.graphe-note { margin: 10px 0 0; font-size: 13px; color: var(--pale); }
.donnees-brutes { margin-top: 12px; font-size: 14px; }
.donnees-brutes summary { cursor: pointer; font-weight: 600; min-height: 32px; display: inline-flex; align-items: center; }
.donnees-brutes .defile { overflow-x: auto; max-height: 320px; margin-top: 8px; border: 1px solid var(--trait); border-radius: 14px; }
.donnees-brutes table { border-collapse: collapse; width: 100%; font-size: 13px; font-variant-numeric: tabular-nums; }
.donnees-brutes th, .donnees-brutes td { padding: 6px 10px; border-bottom: 1px solid var(--trait); text-align: right; white-space: nowrap; }
.donnees-brutes th:first-child, .donnees-brutes td:first-child { text-align: left; }
.donnees-brutes thead th { position: sticky; top: 0; background: var(--carte); }

/* Le saviez-vous + comment lire */
.duo { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 800px) { .duo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.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%); }
.saviez p.fait { margin: 10px 0 12px; font: 400 clamp(24px, 2.6vw, 30px)/1.18 var(--serif); max-width: 24ch; }
.saviez .src { margin: 0; font-size: 13px; color: var(--pale); }
.saviez svg { position: absolute; right: -10px; bottom: -14px; width: 150px; opacity: .5; }
.lire { padding: 22px 24px; }
.lire ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.lire li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; font-size: 15.5px; line-height: 1.5; }
.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 */
.faq-liste { overflow: hidden; }
.faq details + details { border-top: 1px solid var(--trait); }
.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; }
.faq summary::-webkit-details-marker { display: none; }
.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; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--lien); }
.faq details p { margin: 0; padding: 0 20px 18px; font-size: 16px; line-height: 1.6; }

/* ---------- Maquette 3D dans l'encadré ---------- */
.scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; outline: none; }
.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; }
.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; } }
.scene.prete::before, .scene.prete::after { opacity: 0; animation: none; }
.s3-repli { position: absolute; inset: 0; display: none; }
.scene.sans3d .s3-repli { display: block; }
.scene.sans3d canvas, .scene.sans3d .s3-outils, .scene.sans3d .s3-etq, .scene.sans3d .s3-credit { display: none; }
.scene.sans3d { aspect-ratio: 640 / 300; }
.s3-etq { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.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; }
.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; }
.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; }
.s3-e.off .s3-n { background: transparent; color: var(--pale); box-shadow: inset 0 0 0 1.5px var(--blanc-bord); }
.s3-e.off .s3-court { color: var(--pale); font-style: italic; font-weight: 600; }
.s3-court, .s3-long { position: relative; z-index: 1; }
.s3-long { display: none; }
.s3-e.actif { box-shadow: 0 0 0 2.5px var(--lien), 0 8px 18px -6px rgba(14, 26, 38, .4); }
.s3-e.cache { opacity: 0; pointer-events: none; }
.scene.grand .s3-e { padding: 6px 13px 7px 6px; border-radius: 16px; gap: 8px; }
.scene.grand .s3-court { display: none; }
.scene.grand .s3-long { display: grid; gap: 1px; }
.scene.grand .s3-long b { font-size: 14px; }
.scene.grand .s3-long small { font-size: 12px; font-weight: 600; color: var(--pale); }
.scene.grand .s3-n { width: 26px; height: 26px; font-size: 13px; }
.s3-outils { position: absolute; right: 10px; top: 10px; display: flex; gap: 6px; z-index: 3; }
.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); }
.s3-btn:hover { background: var(--carte); }
.s3-btn[hidden] { display: none; }
.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; }
.s3-total { display: none; }
.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; }
.s3-total p { margin: 0; }
.s3-total .etiq { margin-bottom: 4px; }
.s3-total .t-mw { font: 400 44px/1 var(--serif); }
.s3-total .t-mw small { font: 600 15px var(--sans); color: var(--pale); margin-left: 4px; }
.s3-total .t-sous { font-size: 14px; font-weight: 600; margin-top: 4px; }
.s3-total .t-src { font-size: 12px; color: var(--pale); margin-top: 6px; }
.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); }
.s3-fiche[hidden] { display: none; }
.s3-fiche p { margin: 0; }
.s3-ft { font-weight: 700; font-size: 14px; }
.s3-fe { font-size: 12.5px; font-weight: 600; color: #157a45; }
.s3-fe.off { color: var(--pale); font-style: italic; }
:root[data-theme="dark"] .s3-fe.on { color: #6fd39b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .s3-fe.on { color: #6fd39b; } }
.s3-fv { font: 400 30px/1.05 var(--serif); margin-top: 2px !important; }
.s3-fv small { font: 600 12px var(--sans); color: var(--pale); }
.s3-fiche svg { display: block; width: 100%; height: 44px; margin-top: 6px; }
.s3-g { stroke: var(--trait); stroke-dasharray: 3 4; }
.s3-a { fill: var(--r2); opacity: .14; }
.s3-l { fill: none; stroke: var(--r1); stroke-width: 2; stroke-linejoin: round; }
.s3-fl { font-size: 11.5px; color: var(--pale); margin-top: 4px !important; }
.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; }
.scene.grand .s3-fiche { width: 320px; right: 16px; bottom: 16px; padding: 16px 18px; border-radius: 22px; }
.scene.grand .s3-fiche svg { height: 80px; }
.scene.grand .s3-fv { font-size: 40px; }
.scene.grand .s3-outils { right: 16px; top: 16px; }
.scene:fullscreen, .scene.plein { aspect-ratio: auto; width: 100vw; height: 100vh; height: 100dvh; margin: 0; border-radius: 0; }
.scene.plein { position: fixed; inset: 0; z-index: 1000; }
@media (max-width: 599px) {
  .scene { aspect-ratio: 4 / 3.3; }
  .scene:not(.grand) .s3-court { display: none; }
  .scene:not(.grand) .s3-e { padding: 3px; }
  .s3-fiche { left: 8px; right: 8px; width: auto; bottom: 8px; }
  .s3-fiche svg { height: 34px; }
  .scene.grand .s3-fiche { left: 10px; right: 10px; width: auto; }
  .scene.grand .s3-total { left: 10px; top: 10px; padding: 10px 13px; max-width: 190px; }
  .scene.grand .s3-total .t-mw { font-size: 30px; }
  .scene.grand .s3-total .t-src { display: none; }
  .scene.grand .s3-e { padding: 3px 9px 3px 3px; }
  .scene.grand .s3-long small { display: none; }
  .scene.grand .s3-long b { font-size: 12px; }
  .scene.grand .s3-n { width: 20px; height: 20px; font-size: 11.5px; }
  .scene.grand .s3-outils { top: auto; bottom: 10px; right: 10px; }
}

/* Apparition douce au défilement */
.js .monte { opacity: 0; transform: translateY(14px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.js .monte.vu { opacity: 1; transform: none; }
.js .reac.monte.vu { transition: opacity .8s ease, transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; }
.js .reac.monte.vu:hover, .js .reac.monte.vu.actif { transform: translateY(-3px); }

@media (max-width: 599px) {
  .reponse { padding: 22px 20px 18px; }
  .vue { padding: 16px 14px 14px; }
  .chiffres dd { font-size: 34px; }
  .reac-mw { font-size: 56px; }
  .courbe { padding: 18px 14px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .monte { opacity: 1; transform: none; }
  .js .barre span { transform: scaleX(var(--p)); }
}

:root { --eol: #23a596; --eol-f: #127a6e; --eol-c: #bfe9e2; --mer: #2a7fc0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --eol: #3cc6b5; --eol-f: #7fe0d3; --eol-c: #17403b; --mer: #6fb3ec; } }
:root[data-theme="dark"] { --eol: #3cc6b5; --eol-f: #7fe0d3; --eol-c: #17403b; --mer: #6fb3ec; }
.jeton-tete { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 9px; background: var(--eol); color: #fff; flex: none; box-shadow: inset 0 -2px 0 rgba(0,0,0,.12); }
.jeton-tete svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.type .sep { color: var(--pale); font-weight: 500; }
.phrase b { color: var(--eol-f) !important; }
.eol-src-date { font-size: 13px; color: var(--pale); }
.o-res[hidden], .o-liste[hidden], .s3-survol[hidden] { display: none !important; }

/* ---------- blocs communs éolien ---------- */
.courbe { padding: 22px 22px 16px; }
.courbe-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 20px; flex-wrap: wrap; }
.courbe-total { margin: 0; font: 400 34px/1 var(--serif); }
.courbe-total small { font: 600 14px var(--sans); color: var(--pale); margin-left: 4px; }
.cles-c { display: flex; gap: 14px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; font-size: 13.5px; color: var(--pale); }
.cles-c li { display: inline-flex; align-items: center; gap: 7px; }
.cles-c i { width: 14px; height: 10px; border-radius: 3px; display: inline-block; }
.graphe { position: relative; margin-top: 14px; touch-action: pan-y; }
.graphe svg { display: block; width: 100%; height: auto; overflow: visible; }
.graphe:focus-visible { outline-offset: 6px; border-radius: 12px; }
.g-axe { font: 500 12px var(--sans); fill: var(--pale); }
.g-grille { stroke: var(--trait); stroke-dasharray: 3 5; }
.g-terre { fill: var(--eol); opacity: .85; }
.g-mer { fill: var(--mer); opacity: .9; }
.g-mer-motif { fill: url(#motif-mer); }
.g-futur { fill: url(#hachure); opacity: .7; }
.curseur { stroke: var(--texte); stroke-width: 1.2; opacity: 0; }
.bulle { position: absolute; top: -6px; transform: translate(-50%, -100%); padding: 6px 10px; border-radius: 10px; background: var(--encre); color: #fff; font: 600 13px/1.3 var(--sans); white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s; z-index: 2; }
.bulle.vis { opacity: 1; }
:root[data-theme="dark"] .bulle { background: #f1f4f8; color: #0e1a26; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bulle { background: #f1f4f8; color: #0e1a26; } }
.graphe-note { margin: 10px 0 0; font-size: 13px; color: var(--pale); }
.donnees-brutes { margin-top: 10px; font-size: 14px; }
.donnees-brutes summary { cursor: pointer; font-weight: 700; color: var(--lien); }
.donnees-brutes table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.donnees-brutes th, .donnees-brutes td { padding: 5px 10px; border-bottom: 1px solid var(--trait); text-align: right; white-space: nowrap; }
.donnees-brutes th:first-child, .donnees-brutes td:first-child { text-align: left; }


.g1 { fill: var(--eol); opacity: .9; } .g2 { fill: var(--mer); opacity: .85; }
.s3-e .s3-n { background: var(--eol); }
.s3-e.off .s3-n { background: transparent; }
.rejouer { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 12px; padding: 10px 12px; border-radius: 16px; background: var(--fond); }
.rejouer button { border: 0; font: 700 13.5px var(--sans); color: var(--accent-texte); background: var(--accent); border-radius: 999px; min-height: 36px; padding: 6px 14px; cursor: pointer; }
.rejouer input { flex: 1 1 200px; accent-color: var(--eol); min-height: 30px; }
.rejouer output { font-size: 13.5px; font-weight: 600; min-width: 15ch; }
.legende li { cursor: pointer; }
.legende li i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; }
@media (min-width: 600px) { .legende { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
.reac .eol-mini { width: 44px; height: 54px; flex: none; color: var(--eol-f); }
.reac[data-etat="arret"] .eol-mini { color: var(--blanc-bord); }
.fiche-cles { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
@media (min-width: 900px) { .fiche-cles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fiche-cles > div { padding: 16px 18px 14px; border-radius: 22px; }
.fiche-cles dt { font-size: 13px; color: var(--pale); font-weight: 600; }
.fiche-cles dd { margin: 4px 0 0; font: 400 38px/1 var(--serif); letter-spacing: -.02em; }
.fiche-cles dd small { font: 600 13.5px var(--sans); color: var(--pale); margin-left: 4px; letter-spacing: 0; }
.fiche-cles .src { display: block; margin-top: 8px; font: 500 12.5px/1.4 var(--sans); color: var(--pale); letter-spacing: 0; }
@media (min-width: 640px) { #reacteurs { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
.vent-box { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; font-size: 14px; color: var(--pale); }
.vent-box svg { width: 34px; height: 34px; flex: none; color: var(--eol-f); }

.s3-survol { position: absolute; left: 0; top: 0; z-index: 5; max-width: 250px; pointer-events: none; display: grid; gap: 2px; padding: 8px 11px; border-radius: 14px;
  background: var(--carte); border: 1px solid var(--trait); box-shadow: var(--ombre-haute); font: 500 12.5px/1.35 var(--sans); color: var(--texte); }
.s3-survol[hidden] { display: none; }
.s3-survol b { font-size: 13.5px; }
.s3-survol small { color: var(--pale); font-size: 11.5px; }
.s3-zoom { display: flex; gap: 6px; }
.s3-zoom .s3-btn { min-width: 36px; padding: 6px 0; font-size: 16px; line-height: 1; }
.s3-moment { position: absolute; left: 10px; top: 10px; z-index: 3; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; font: 700 12px var(--sans); }
.s3-moment span { background: color-mix(in srgb, var(--carte) 85%, transparent); border: 1px solid var(--trait); border-radius: 999px; padding: 4px 10px; backdrop-filter: blur(6px); }
.scene.grand .s3-moment { top: auto; bottom: 16px; left: 16px; }
@media (max-width: 599px) { .s3-moment { top: auto; bottom: 34px; } .s3-credit { font-size: 10px; } }
.scene.sans3d .s3-moment, .scene.sans3d .s3-zoom { display: none; }
.scene.sans3d .s3-repli { position: static; display: block; }
.scene.sans3d { aspect-ratio: auto; }
.scene.sans3d .s3-repli svg { display: block; width: 100%; height: auto; }
.vue-pied { display: grid; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--pale); }
.vue-pied ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.vue-pied li { display: inline-flex; align-items: center; gap: 6px; }
.vue-pied i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.histoire { list-style: none; margin: 0; padding: 0 0 0 4px; display: grid; gap: 0; }
.histoire li { position: relative; padding: 0 0 18px 26px; border-left: 2px solid var(--trait); margin-left: 7px; }
.histoire li:last-child { border-left-color: transparent; padding-bottom: 0; }
.histoire li::before { content: ""; position: absolute; left: -8px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--carte); box-shadow: inset 0 0 0 3px var(--eol); }
.histoire li:last-child::before { background: var(--eol); }
.histoire b { display: block; font: 400 21px/1.15 var(--serif); }
.histoire p { margin: 3px 0 0; font-size: 15px; }
.histoire small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--pale); }
.histoire-carte { padding: 22px 24px; }
.tech { width: 100%; border-collapse: collapse; font-size: 15px; }
.tech th, .tech td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--trait); }
.tech th { width: 34%; font-weight: 700; }
.tech td small { display: block; color: var(--pale); font-size: 12.5px; margin-top: 2px; }
.tech-carte { padding: 8px 12px 12px; overflow-x: auto; }
@media (max-width: 599px) { .tech th { width: auto; display: block; border-bottom: 0; padding-bottom: 0; } .tech td { display: block; padding-top: 4px; } }
.mois-carte { padding: 20px 22px 14px; }
.mois-carte svg { display: block; width: 100%; height: auto; }
.g-trou { fill: var(--doux); opacity: .8; }
.b-mois { fill: var(--eol); opacity: .85; } .b-mois.partiel { opacity: .45; }
.autres { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); list-style: none; margin: 0; padding: 0; }
.autres a { display: block; padding: 16px 18px; border-radius: 22px; text-decoration: none; color: var(--texte); height: 100%; transition: transform .3s, box-shadow .3s; }
.autres a:hover { transform: translateY(-3px); box-shadow: var(--ombre-haute); }
.autres b { display: block; font: 400 24px/1.1 var(--serif); }
.autres span { display: block; font-size: 13.5px; color: var(--pale); margin-top: 4px; }
.autres em { display: block; font-style: normal; font-weight: 700; font-size: 18px; margin-top: 8px; font-variant-numeric: tabular-nums; }
.alerte { margin: 12px 0 0; padding: 10px 14px; border-radius: 14px; background: color-mix(in srgb, var(--eol-c) 55%, var(--carte)); font-size: 14px; }
.sources p { margin: 0 0 8px; } .sources a { word-break: break-word; }
/* audit 16/10 : cibles tactiles >= 44 px sur écran tactile */
@media (pointer:coarse),(max-width:700px){.s3-btn,.s3-e,.lien-carte,.rejouer button,.fr-lien,.parc-actions a,.reg-actions a,.donnees-brutes summary,.s3-x,.o-plus{min-height:44px;min-width:44px}.s3-btn,.s3-e,.lien-carte,.fr-lien,.parc-actions a,.reg-actions a{display:inline-flex;align-items:center;justify-content:center}.rejouer input{min-height:44px}.s3-zoom .s3-btn{min-width:44px;width:44px}.s3-x{width:44px;height:44px}}
