/* Écrin — module Énergie « Villa Écrin » (0.120.0). Écrit par Grok le 15/09/2026 sur le cahier
   des charges d'Écrin, relu et corrigé à l'intégration (découpes d'origine, format portrait,
   axes des courbes, collisions de noms). ES2017, fonctions globales, sans dépendance. */
/* energie-graphes.css — historique Villa Écrin. Suit les jetons --e-* / --or / --texte. */

.graphe-energie {
  width: 100%;
  height: auto;
  display: block;
  font-family: Montserrat, "Helvetica Neue", Arial, sans-serif;
}

.graphe-energie .axe {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

.graphe-energie .axe-zero {
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 1;
}

.graphe-energie .tick-lab {
  fill: var(--faible, rgba(255, 255, 255, 0.45));
  font-size: 12px;
}

.graphe-energie .courbe {
  fill: none;
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
}


.graphe-energie .aire {
  stroke: none;
  opacity: 1;
}

.graphe-energie .pt-fin {
  stroke: none;
}

.graphe-energie .val-fin {
  font-size: 11px;
  font-weight: 600;
  fill: var(--texte, #efe6d4);
}

.graphe-energie .zone {
  fill: transparent;
  cursor: pointer;
}

.graphe-energie .zone:hover {
  fill: rgba(216, 171, 106, 0.06);
}

.bilan-energie {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-family: Montserrat, "Helvetica Neue", Arial, sans-serif;
}

.bilan-item {
  min-width: 140px;
}

.bilan-item .lab {
  display: block;
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--faible, rgba(255, 255, 255, 0.5));
  margin-bottom: 4px;
}

.bilan-item .val {
  display: block;
  font-size: 28px;
  font-weight: 600;
  color: var(--texte, #efe6d4);
  letter-spacing: -0.3px;
}

.bilan-item .sous {
  display: block;
  font-size: 12px;
  color: var(--faible, rgba(255, 255, 255, 0.45));
  margin-top: 4px;
}

.puces-series {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: Montserrat, "Helvetica Neue", Arial, sans-serif;
}

.puce-serie {
  background: transparent;
  border: 1px solid rgba(216, 171, 106, 0.35);
  color: var(--texte, #efe6d4);
  border-radius: 999px;
  padding: 7px 14px;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.2px;
  cursor: pointer;
}

.puce-serie.active {
  border-color: var(--or, #d8ab6a);
  box-shadow: 0 0 0 1px var(--or, #d8ab6a);
  color: var(--or, #d8ab6a);
}

.repartition-energie {
  font-family: Montserrat, "Helvetica Neue", Arial, sans-serif;
}

.rep-ligne {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 12px;
  align-items: center;
  margin: 8px 0;
}

.rep-nom {
  font-size: 13px;
  color: var(--texte, #efe6d4);
}

.rep-barre-fond {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
}

.rep-barre {
  height: 100%;
  background: var(--or, #d8ab6a);
  border-radius: 99px;
}

.rep-kwh {
  font-size: 13px;
  font-weight: 600;
  color: var(--texte, #efe6d4);
  text-align: right;
  min-width: 64px;
}

.rep-sous {
  grid-column: 2 / 3;
  font-size: 12px;
  color: var(--faible, rgba(255, 255, 255, 0.45));
  margin-top: -6px;
}

.rep-autres {
  font-size: 12px;
  color: var(--faible, rgba(255, 255, 255, 0.45));
  margin-top: 8px;
}

.cartouche-tranche {
  font-family: Montserrat, "Helvetica Neue", Arial, sans-serif;
  background: var(--carte, rgba(14, 15, 19, 0.86));
  border: 1px solid rgba(216, 171, 106, 0.35);
  border-radius: 10px;
  padding: 10px 14px;
  min-width: 180px;
  color: var(--texte, #efe6d4);
}

.cartouche-tranche .ct-lab {
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--faible, rgba(255, 255, 255, 0.5));
  margin-bottom: 8px;
}

.cartouche-tranche .ct-ligne {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  margin: 3px 0;
}

.cartouche-tranche .ct-val {
  font-weight: 600;
}

.reservoir-energie {
  width: 100%;
  height: auto;
  display: block;
  font-family: Montserrat, "Helvetica Neue", Arial, sans-serif;
}

.reservoir-energie .aire-stock {
  stroke: none;
}

.reservoir-energie .ligne-stock {
  fill: none;
  stroke: #3ee6a6;
  stroke-width: 1.8;
}

.reservoir-energie .capa {
  fill: none;
  stroke: rgba(62, 230, 166, 0.45);
  stroke-width: 1;
  stroke-dasharray: 4 5;
}

.reservoir-energie .inconnu {
  fill: var(--faible, rgba(255, 255, 255, 0.45));
  font-size: 14px;
}

.demi-jauges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  font-family: Montserrat, "Helvetica Neue", Arial, sans-serif;
}

.demi-jauge .lab {
  font-size: 11px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--faible, rgba(255, 255, 255, 0.5));
}

.demi-jauge .val {
  font-size: 20px;
  font-weight: 600;
  color: var(--texte, #efe6d4);
}

.demi-jauge .track {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  margin-top: 6px;
  overflow: hidden;
}

.demi-jauge .fill {
  height: 100%;
  background: var(--e-charge, #6d94e0);
  border-radius: 99px;
}

@media (prefers-reduced-motion: reduce) {
  .puce-serie { transition: none; }
}
