/* Fiches des centrales à gaz et au charbon (générateur unique). */
/* ---------- Héros : le diorama ---------- */
.vue { padding: 14px 14px 16px; overflow: hidden; }
.scene { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 9.4; isolation: isolate;
  background: radial-gradient(120% 90% at 50% 30%, var(--sc-ciel-b), var(--sc-ciel-a)); }
@media (max-width: 599px) { .scene { aspect-ratio: 1 / 1.08; } .vue { padding: 10px 10px 14px; border-radius: 24px; } }
.scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; outline: none; }
/* attente : une France floue qui respire */
.scene::before { content: ""; position: absolute; left: 30%; right: 30%; top: 22%; bottom: 18%; border-radius: 42% 48% 40% 52%; z-index: 0;
  background: color-mix(in srgb, var(--sc-terre) 85%, transparent); transform: perspective(700px) rotateX(48deg); filter: blur(2px);
  animation: charge 1.6s ease-in-out infinite; transition: opacity .6s; pointer-events: none; }
@keyframes charge { 50% { opacity: .55; } }
.scene.prete::before { opacity: 0; animation: none; }
.vue-pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 12px 6px 0; }
.legende { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; margin: 0; padding: 0; font-size: 13.5px; color: var(--pale); }
.legende li { display: inline-flex; align-items: center; gap: 7px; }
.lg-on, .lg-off { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.lg-on { background: radial-gradient(circle, #fff 0 30%, #ffd27a 32% 52%, color-mix(in srgb, #ffd27a 30%, transparent) 55%); box-shadow: 0 0 0 1px color-mix(in srgb, #c99a2e 60%, transparent); }
.lg-off { background: var(--doux); box-shadow: inset 0 0 0 1.5px var(--blanc-bord); }
.lg-dome { width: 18px; height: 12px; flex: none; }
.lg-pause { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #fff; color: #4d5b6a; font-size: 7px; letter-spacing: -1px; box-shadow: inset 0 0 0 1.5px #6b7785; flex: none; }
.vue-pied .src { margin: 0; font-size: 12.5px; color: var(--pale); }

/* surcouches de la scène */
.s3-bulle { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; padding: 7px 12px; border-radius: 12px; background: var(--encre); color: #fff;
  font: 600 13.5px/1.3 var(--sans); white-space: nowrap; box-shadow: var(--ombre-haute); opacity: 0; transition: opacity .15s; }
.s3-bulle b { font-weight: 800; }
.s3-bulle.vis { opacity: 1; }
:root[data-theme="dark"] .s3-bulle { background: #f1f4f8; color: #0e1a26; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .s3-bulle { background: #f1f4f8; color: #0e1a26; } }
.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: 600 12.5px/1.15 var(--sans); color: var(--texte);
  background: var(--carte); border-radius: 999px; padding: 3px 10px 3px 3px; display: flex; align-items: center; gap: 6px; white-space: nowrap;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--texte) 12%, transparent), 0 6px 16px -6px rgba(14, 26, 38, .45); transition: opacity .3s; }
.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 { position: relative; z-index: 1; display: grid; place-items: center; min-width: 21px; height: 21px; padding: 0 4px; border-radius: 999px; background: #e0a526; color: #1d1400; font: 800 11.5px/1 var(--sans); }
.s3-e.off .s3-n { background: var(--doux); color: var(--texte); box-shadow: inset 0 0 0 1.5px var(--blanc-bord); }
.s3-t { position: relative; z-index: 1; }
.s3-t b { font-weight: 800; }
.s3-t small { font-size: 12px; font-weight: 600; color: var(--pale); font-variant-numeric: tabular-nums; }
.s3-e.off .s3-t small { font-style: italic; }
.s3-e.mini { padding: 3px; }
.s3-e.mini .s3-t { display: none; }
.s3-e.sans-pointe::after { display: none; }
@media (max-width: 599px) {
  .scene:not(.grand) .s3-total { display: none; }
  .scene:not(.grand) .s3-n { min-width: 18px; height: 18px; font-size: 10.5px; }
  .scene:not(.grand) .s3-e.mini { padding: 2px; }
}
.s3-e.cache { opacity: 0; pointer-events: none; }
.s3-outils { position: absolute; right: 10px; top: 10px; display: flex; gap: 6px; z-index: 4; }
.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-total { position: absolute; left: 12px; top: 12px; z-index: 3; background: color-mix(in srgb, var(--carte) 90%, transparent); backdrop-filter: blur(8px);
  border: 1px solid var(--trait); border-radius: 20px; padding: 10px 14px; box-shadow: var(--ombre); }
.s3-total p { margin: 0; }
.s3-total .t-mw { font: 400 34px/1 var(--serif); margin-top: 2px; }
.s3-total .t-mw small { font: 600 13px var(--sans); color: var(--pale); margin-left: 4px; }
.s3-total .t-sous { font-size: 13px; font-weight: 600; margin-top: 3px; }
.s3-fiche { position: absolute; right: 12px; bottom: 12px; z-index: 5; width: 340px; background: var(--carte); border: 1px solid var(--trait);
  border-radius: 22px; padding: 14px 16px 14px; box-shadow: var(--ombre-haute); }
.s3-fiche[hidden] { display: none; }
.s3-fiche p { margin: 0; }
.s3-ft { font: 400 26px/1.05 var(--serif); padding-right: 30px; }
.s3-fr { font-size: 12.5px; color: var(--pale); margin-top: 2px !important; }
.s3-fv { font: 400 40px/1 var(--serif); margin-top: 8px !important; }
.s3-fv small { font: 600 13px var(--sans); color: var(--pale); margin-left: 4px; }
.s3-fe { font-size: 13.5px; font-weight: 600; margin-top: 4px !important; }
.s3-rx { display: grid; grid-template-columns: repeat(auto-fill, minmax(94px, 1fr)); gap: 5px; list-style: none; margin: 10px 0 0; padding: 0; }
.s3-rx li { display: grid; padding: 5px 8px; border-radius: 10px; background: var(--fond); font-size: 12px; line-height: 1.25; }
.s3-rx li b { font-size: 12px; display: flex; align-items: center; gap: 5px; }
.s3-rx li b i { width: 7px; height: 7px; border-radius: 50%; background: #e0a526; }
.s3-rx li.off b i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--blanc-bord); }
.s3-rx li span { color: var(--pale); font-variant-numeric: tabular-nums; }
.s3-rx li.off span { font-style: italic; }
.s3-lien { display: inline-flex; margin-top: 10px; font-weight: 700; font-size: 14px; }
.s3-x { position: absolute; right: 8px; top: 8px; width: 32px; height: 32px; border: 0; border-radius: 10px; background: var(--fond); color: var(--texte); font-size: 18px; cursor: pointer; }
.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-repli { position: absolute; inset: 0; display: none; }
.s3-repli svg { display: block; width: 100%; height: 100%; }
.scene.sans3d .s3-repli { display: block; }
.scene.sans3d canvas, .scene.sans3d .s3-outils, .scene.sans3d .s3-etq, .scene.sans3d .s3-credit, .scene.sans3d .s3-bulle { display: none; }
.r-terre { fill: var(--sc-terre); stroke: color-mix(in srgb, var(--pale) 40%, transparent); stroke-width: 1; }
.r-fleuve { fill: none; stroke: color-mix(in srgb, var(--bleu) 45%, transparent); stroke-width: 1.4; }
.r-c circle.f { fill: #e0a526; stroke: #8a5a00; stroke-width: 1; }
.r-c circle.v { fill: var(--carte); stroke: var(--blanc-bord); stroke-width: 1.5; }
.r-c text { font: 700 11px var(--sans); fill: var(--texte); paint-order: stroke; stroke: var(--carte); stroke-width: 3px; }
.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; }
.scene.grand .s3-e { z-index: 1; }
@media (max-width: 599px) { .scene.focus .s3-total { display: none; } }
.scene.grand .s3-total { left: 16px; top: 16px; padding: 14px 18px; }
.scene.grand .s3-total .t-mw { font-size: 44px; }
.scene.grand .s3-outils { right: 16px; top: 16px; }
.scene.grand .s3-fiche { right: 16px; bottom: 16px; width: 360px; }
@media (max-width: 599px) {
  .s3-total { padding: 8px 11px; border-radius: 16px; }
  .s3-total .t-mw { font-size: 26px; }
  .s3-total .t-sous { font-size: 12px; }
  .s3-fiche { left: 8px; right: 8px; width: auto; bottom: 8px; padding: 12px 14px; }
  .scene.grand .s3-fiche { left: 10px; right: 10px; width: auto; }
  .s3-fv { font-size: 30px; margin-top: 4px !important; }
  .scene:not(.grand) .s3-rx, .scene:not(.grand) .s3-fr { display: none; }
  .s3-ft { font-size: 22px; }
  .s3-outils { top: auto; bottom: 10px; right: 10px; }
  .s3-credit { display: none; }
}
.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); }
.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; }
.faits { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); margin: 0; }
@media (min-width: 640px) { .faits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .faits { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fait-c { padding: 18px 20px 16px; }
.fait-c dt { font-size: 13px; color: var(--pale); font-weight: 600; }
.fait-c dd { margin: 4px 0 0; }
.fait-c .v { display: block; font: 400 40px/1.05 var(--serif); letter-spacing: -.02em; }
.fait-c .v small { font: 600 14px var(--sans); color: var(--pale); letter-spacing: 0; margin-left: 4px; }
.fait-c .d { display: block; margin-top: 8px; font-size: 14px; color: var(--pale); line-height: 1.45; }
.fait-c .d a { font-weight: 600; }
.tech { overflow-x: auto; }
.tech table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.tech th, .tech td { padding: 11px 16px; border-bottom: 1px solid var(--trait); text-align: right; white-space: nowrap; }
.tech th:first-child, .tech td:first-child, .tech th:nth-child(2), .tech td:nth-child(2) { text-align: left; }
.tech thead th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--pale); }
.tech tfoot th, .tech tfoot td { border-bottom: 0; font-weight: 700; }
.tech .off { color: var(--pale); font-style: italic; }
.a-rediger { padding: 20px 24px; border: 1.5px dashed var(--trait); background: transparent; box-shadow: none; color: var(--pale); }
.a-rediger p { margin: 0; }
.histoire { padding: 24px 26px 22px; }
.histoire p { margin: 0 0 14px; max-width: 72ch; line-height: 1.62; }
.histoire sup { font-size: 11px; line-height: 0; margin-left: 1px; }
.histoire sup a { text-decoration: none; font-weight: 700; }
.reponse::before { background: linear-gradient(90deg, var(--charbon), color-mix(in srgb, var(--charbon) 40%, var(--carte))); }
.phrase b { color: var(--texte); }
.scene { position: relative; margin: 12px 0 10px; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 10; background: linear-gradient(180deg, var(--sc-ciel-a), var(--sc-ciel-b) 70%); isolation: isolate; }
.scene::before { left: 18%; right: 18%; top: 30%; bottom: 20%; border-radius: 26px; background: color-mix(in srgb, var(--sc-terre) 85%, transparent); }
@media (max-width: 599px) { .scene { aspect-ratio: 1 / 1; } }
.scene.sans3d { aspect-ratio: 640 / 300; }
.s3-ft a { color: var(--texte); text-decoration: none; } .s3-ft a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.voisines a:focus-visible { outline: 3px solid var(--lien); outline-offset: 2px; }
.legende { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.legende li.actif { background: color-mix(in srgb, var(--charbon) 14%, var(--fond)); }
.pastilles { display: flex; gap: 5px; margin-top: 9px; }
.pastilles i { width: 10px; height: 10px; background: var(--charbon); } .pastilles i.off { background: transparent; box-shadow: inset 0 0 0 1.5px var(--blanc-bord); }
.repli-cord { display: grid; place-items: center; height: 100%; padding: 20px; text-align: center; color: var(--pale); font-size: 14px; }
.grp-cartes { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); list-style: none; margin: 0; padding: 0; }
@media (min-width: 720px) { .grp-cartes { grid-template-columns: 1fr 1fr; } }
.gc { padding: 20px 22px 16px; scroll-margin-top: 90px; transition: box-shadow .3s, transform .3s; }
.gc.actif { box-shadow: var(--ombre-haute); transform: translateY(-3px); outline: 2.5px solid var(--charbon); }
.gc h3 { margin: 0; font: 700 18px var(--sans); display: flex; align-items: center; gap: 8px; }
.gc .v { font: 400 54px/.95 var(--serif); margin: 10px 0 6px; font-variant-numeric: tabular-nums; } .gc .v small { font: 600 15px var(--sans); color: var(--pale); margin-left: 6px; }
.gc p { margin: 0 0 4px; font-size: 14.5px; color: var(--pale); } .gc p b { color: var(--texte); }
.et { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--texte); }
.et i { width: 8px; height: 8px; border-radius: 50%; background: var(--gaz); }
.et.off { color: var(--pale); font-style: italic; } .et.off i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--pale); }
.janv { padding: 18px 18px 14px; } .janv canvas { display: block; width: 100%; height: auto; }
.rb { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); } @media (min-width: 720px) { .rb { grid-template-columns: 1fr 1fr; } }
.rb > div { padding: 20px 22px; } .rb .j { font: 400 64px/.9 var(--serif); font-variant-numeric: tabular-nums; } .rb .j small { font: 600 15px var(--sans); color: var(--pale); margin-left: 4px; }
.rb p { margin: 6px 0 0; }
.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); }
/* 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; }

/* Pied + dock */
.pied { margin-top: 80px; padding: 26px 0 30px; border-top: 1px solid var(--trait); color: var(--pale); font-size: 14px; }
.pied-in { display: grid; gap: 8px; }
.pied p { margin: 0; }
.pied-marque { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--texte); font-size: 16px; }
.note-maquette { margin: 14px 0 0; font-size: 13.5px; color: var(--pale); }
.faits { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); margin: 0; }
@media (min-width: 640px) { .faits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .faits { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fait-c { padding: 18px 20px 16px; }
.fait-c dt { font-size: 13px; color: var(--pale); font-weight: 600; }
.fait-c dd { margin: 4px 0 0; }
.fait-c .v { display: block; font: 400 40px/1.05 var(--serif); letter-spacing: -.02em; }
.fait-c .v small { font: 600 14px var(--sans); color: var(--pale); letter-spacing: 0; margin-left: 4px; }
.fait-c .d { display: block; margin-top: 8px; font-size: 14px; color: var(--pale); line-height: 1.45; }
.fait-c .d a { font-weight: 600; }
.tech { overflow-x: auto; }
.tech table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.tech th, .tech td { padding: 11px 16px; border-bottom: 1px solid var(--trait); text-align: right; white-space: nowrap; }
.tech th:first-child, .tech td:first-child, .tech th:nth-child(2), .tech td:nth-child(2) { text-align: left; }
.tech thead th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--pale); }
.tech tfoot th, .tech tfoot td { border-bottom: 0; font-weight: 700; }
.tech .off { color: var(--pale); font-style: italic; }
.a-rediger { padding: 20px 24px; border: 1.5px dashed var(--trait); background: transparent; box-shadow: none; color: var(--pale); }
.a-rediger p { margin: 0; }
.histoire { padding: 24px 26px 22px; }
.histoire p { margin: 0 0 14px; max-width: 72ch; line-height: 1.62; }
.histoire sup { font-size: 11px; line-height: 0; margin-left: 1px; }
.histoire sup a { text-decoration: none; font-weight: 700; }
.histoire .h-src { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--trait); font-size: 13.5px; color: var(--pale); }
.histoire .h-src p { margin: 0 0 6px; font-weight: 700; color: var(--texte); }
.histoire .h-src ol { margin: 0; padding-left: 22px; display: grid; gap: 5px; line-height: 1.45; }
.histoire .h-src a { overflow-wrap: anywhere; }
.sources ol { margin: 0; padding: 20px 26px 20px 44px; display: grid; gap: 9px; font-size: 14.5px; line-height: 1.5; }
.voisines ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.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); }
.voisines a span { color: var(--pale); font-weight: 500; font-size: 13px; }
.voisines a:hover { border-color: var(--lien); }
.reponse::before { background: linear-gradient(90deg, var(--fc, var(--gaz)), color-mix(in srgb, var(--fc, var(--gaz)) 40%, var(--carte))); }
.scene { aspect-ratio: 16 / 10.5; }
.legende { display: grid !important; grid-template-columns: repeat(var(--nm, 2), minmax(0, 1fr)) !important; gap: 6px !important; }
@media (min-width: 600px) { .legende { grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)) !important; } }
.legende li { cursor: pointer; display: grid !important; }
.legende li.actif { background: color-mix(in srgb, var(--fc, var(--gaz)) 16%, var(--fond)); }
.pastilles i { background: var(--fc, var(--gaz)); }
.gc.actif { outline-color: var(--fc, var(--gaz)); }
.gc .spark { display: block; width: 100%; height: 46px; margin: 10px 0 2px; }
.sp-a { fill: color-mix(in srgb, var(--fc, var(--gaz)) 16%, transparent); stroke: none; } .sp-l { fill: none; stroke: var(--fc, var(--gaz)); stroke-width: 2; }
.spark-axe { display: flex; justify-content: space-between; margin: 0 0 8px; font-size: 11.5px; color: var(--pale); }
.gc .note-g { margin-top: 8px; font-size: 13.5px; }
.cb-carte { padding: 18px 18px 14px; } .cb { display: block; width: 100%; height: auto; }
.cb-g { stroke: var(--trait); } .cb-t { font: 600 12px var(--sans); fill: var(--pale); } .cb-cap { stroke: var(--pale); stroke-dasharray: 4 4; }
.cb-a { stroke: var(--carte); stroke-width: 1; transition: opacity .2s; } .cb-a.actif { opacity: .75; }
.cb-mk { stroke: var(--texte); stroke-width: 1.5; stroke-dasharray: 3 3; }
.cles { display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; margin: 0 0 10px; padding: 0; font-size: 13.5px; font-weight: 600; }
.cles i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; vertical-align: -1px; }
:root { --c1: var(--fc, var(--gaz)); --c2: color-mix(in srgb, var(--fc, var(--gaz)) 60%, #fff); --c3: color-mix(in srgb, var(--fc, var(--gaz)) 60%, #000); --c4: color-mix(in srgb, var(--fc, var(--gaz)) 35%, #fff); }
.hm-carte { padding: 18px 18px 14px; } .hm-carte canvas { display: block; width: 100%; }
.hm-leg { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 0; font-size: 13px; color: var(--pale); align-items: center; }
.hm-leg i { display: inline-block; width: 14px; height: 10px; border-radius: 3px; vertical-align: -1px; margin-right: 5px; }
.hm-bulle { position: absolute; pointer-events: none; padding: 6px 10px; border-radius: 10px; background: var(--encre, #0e1a26); color: #fff; font-size: 12.5px; opacity: 0; transition: opacity .15s; white-space: nowrap; z-index: 3; }
.hm-bulle.vis { opacity: 1; }
.hm-zone { position: relative; }
.tempo3 { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); } @media (min-width: 760px) { .tempo3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tp { padding: 18px 20px 16px; position: relative; overflow: hidden; }
.tp::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--tc); }
.tp.bleu { --tc: #4f7dff; } .tp.blanc { --tc: #c9d1dc; } .tp.rouge { --tc: #e5483d; }
.tp h3 { margin: 0; font: 700 15px var(--sans); display: flex; align-items: center; gap: 8px; }
.tp h3 i { width: 12px; height: 12px; background: var(--tc); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.tp.bleu h3 i { border-radius: 50%; } .tp.rouge h3 i { transform: rotate(45deg) scale(.85); }
.tp .v { font: 400 46px/1 var(--serif); margin: 10px 0 4px; font-variant-numeric: tabular-nums; } .tp .v small { font: 600 14px var(--sans); color: var(--pale); margin-left: 4px; }
.tp p { margin: 2px 0 0; font-size: 14px; color: var(--pale); } .tp p b { color: var(--texte); }
.tp-phrase { margin: 16px 0 0; font: 400 clamp(21px, 2.3vw, 26px)/1.25 var(--serif); max-width: 48ch; }
.voisines a { color: var(--texte); }
.carte-lien { display: inline-flex; margin-top: 14px; font-weight: 700; }

.fiches { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) { .fiches { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .fiches { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fl { overflow: hidden; transition: transform .3s, box-shadow .3s; } .fl:hover { transform: translateY(-3px); box-shadow: var(--ombre-haute); }
.fl a { display: block; color: var(--texte); text-decoration: none; }
.fl-txt { display: grid; gap: 2px; padding: 14px 18px 16px; font-size: 14px; color: var(--pale); }
.fl-txt b { font: 400 28px/1.1 var(--serif); color: var(--texte); } .fl-mw { font: 400 22px var(--serif); color: var(--texte); } .fl-mw small { font: 600 13px var(--sans); color: var(--pale); }
