.reponse::before { background: linear-gradient(90deg, var(--pompe), var(--turbine)); }
.phrase b { color: var(--hyd); }
.scene { --sc-ciel-a: #bcd7f2; --sc-ciel-b: #f1f6fb; aspect-ratio: 16 / 10.4; margin: 12px 0 10px; transition: background .6s; }
.scene::before { left: 8%; right: 8%; top: 30%; bottom: 10%; background: linear-gradient(180deg, color-mix(in srgb, #c9c3b6 80%, transparent), color-mix(in srgb, #7cc3e8 60%, transparent)); }
.scene::after { display: none; }
@media (max-width: 599px) { .scene { aspect-ratio: 4 / 3.7; } .scene:not(.grand) .s3-credit { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100% - 24px); } }
.scene.grand .s3-total { max-width: 320px; }
/* bulle de survol (nom seulement au survol) */
.s3-survol { cursor: default; pointer-events: none; padding: 4px 10px 4px 5px; gap: 6px; font-weight: 600; z-index: 3; transition: opacity .15s; }
.s3-survol .s3-t b { font-weight: 800; } .s3-survol .s3-t small { color: var(--pale); font-weight: 600; font-size: 11.5px; margin-left: 2px; }
.s3-survol:not(:has(.s3-n)) { padding-left: 10px; }
.s3-n.turbine { background: var(--turbine); } .s3-n.pompe { background: var(--pompe); } .s3-n.arret { background: var(--arret-c); }
.scene .s3-total { display: none; } .scene.grand .s3-total { display: block; }
.etat-scene { margin: 0; padding: 0 4px; font-size: 14.5px; line-height: 1.45; min-height: 2.9em; }
.vue-note { margin: 4px 4px 0; font-size: 13.5px; color: var(--pale); line-height: 1.45; }
/* cartes des groupes */
.groupes { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
@media (min-width: 720px) { .groupes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .groupes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.groupes.peu { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .groupes.peu { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.grp-c { padding: 14px 16px 12px; border-radius: 22px; transition: transform .3s, box-shadow .3s; cursor: pointer; }
.grp-c:hover, .grp-c.actif { transform: translateY(-3px); box-shadow: var(--ombre-haute); }
.grp-c[data-etat="arret"] { background: color-mix(in srgb, var(--carte) 70%, var(--fond)); box-shadow: none; }
.grp-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px; }
.grp-tete h3 { margin: 0; font: 700 15px var(--sans); }
.grp-tete h3 span { color: var(--pale); font-weight: 500; }
.grp-mw { margin: 8px 0 4px; font: 400 40px/.9 var(--serif); font-variant-numeric: tabular-nums; }
.grp-mw small { font: 600 13px var(--sans); color: var(--pale); margin-left: 4px; }
.grp-c[data-etat="arret"] .grp-mw { font-style: italic; color: var(--pale); font-size: 30px; }
.grp-c svg { display: block; width: 100%; height: 40px; }
.grp-c p.note { margin: 6px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--pale); }
.grp-axe { display: flex; justify-content: space-between; margin: 2px 0 0; font-size: 11px; color: var(--pale); }
.partiel { margin: 14px 0 0; padding: 14px 18px; border-radius: 18px; background: var(--carte); font-size: 14.5px; line-height: 1.5; }
/* production 12 mois (sans direct) */
.p12 { padding: 22px 24px; }
.p12-tete { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: flex-end; }
.p12-v { margin: 0; font: 400 64px/.9 var(--serif); letter-spacing: -.02em; }
.p12-v small { font: 600 15px var(--sans); color: var(--pale); margin-left: 6px; letter-spacing: 0; }
.p12-d { margin: 0; max-width: 46ch; color: var(--pale); font-size: 14.5px; line-height: 1.5; }
.p12-jauge { margin: 18px 0 4px; height: 14px; border-radius: 999px; background: var(--fond); overflow: hidden; }
.p12-jauge span { display: block; height: 100%; width: calc(var(--p) * 100%); border-radius: inherit; background: linear-gradient(90deg, var(--hyd), color-mix(in srgb, var(--hyd) 60%, #8fd3ff)); }
.p12-leg { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--pale); }
.p12 h3 { margin: 22px 0 8px; font: 700 15px var(--sans); }
.barres-h { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.barres-h li { display: grid; grid-template-columns: minmax(96px, 30%) 1fr auto; gap: 10px; align-items: center; font-size: 13.5px; }
.barres-h li > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barres-h i { display: block; height: 10px; border-radius: 999px; width: calc(var(--p) * 100%); background: color-mix(in srgb, var(--hyd) 35%, var(--fond)); }
.barres-h li.ici { font-weight: 800; } .barres-h li.ici i { background: var(--hyd); }
.barres-h b { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--pale); }
.barres-h li.ici b { color: var(--texte); }
.barres-h a { color: inherit; text-decoration: none; } .barres-h a:hover { text-decoration: underline; }
/* courbe */
.horloge .graphe { margin-top: 14px; position: relative; touch-action: pan-y; }
.horloge svg { display: block; width: 100%; height: auto; overflow: visible; }
/* maintenances + fiche technique */
.maint { padding: 20px 22px; }
.maint ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.maint li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 10px 12px; border-radius: 14px; background: var(--fond); font-size: 14.5px; }
.maint li b { font-weight: 700; }
.maint li span { color: var(--pale); font-variant-numeric: tabular-nums; }
.maint li em { flex-basis: 100%; font-style: normal; font-size: 13px; color: var(--pale); }
.tech { padding: 20px 22px; }
.tech dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 10px 0 0; }
.tech dl div { background: var(--fond); border-radius: 16px; padding: 12px 14px; }
.tech dt { font-size: 12.5px; color: var(--pale); font-weight: 600; }
.tech dd { margin: 2px 0 0; font: 400 26px/1.05 var(--serif); overflow-wrap: anywhere; }
.tech dd.txt { font: 600 15px/1.3 var(--sans); }
.tech dd small { font: 600 12px var(--sans); color: var(--pale); display: block; margin-top: 3px; }
.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; }
.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; }
.a-rediger { padding: 22px 24px; color: var(--pale); }
.sources ol { margin: 0; padding: 20px 26px 20px 44px; display: grid; gap: 9px; font-size: 14.5px; line-height: 1.5; }
.sources a { overflow-wrap: anywhere; }
.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); }
.voisines p { margin: 12px 0 0; font-size: 14px; color: var(--pale); }
