/* Environnements intelligents : le même modèle de logiciel pour chaque lieu (dossiers « Tableau ambulance »
   et « JARVIS accueil lumières »). Cartes noires, filets et cadres de cristal dorés, accents selon le mode
   (Signature, Platinum, Base). S'adapte à sa propre largeur (requêtes de conteneur), pas à celle de l'écran.

   Langage des cartes (modèle : le cadran du thermostat du hangar privé). Chaque carte, chaque type :
   1. Verre noir profond : fond noir neutre, plus clair en haut, jamais brun (--e-glass); un seul reflet
      doux en haut de la carte, comme le verre du cadran (--e-sheen).
   2. Lunette : un filet métallique en dégradé (clair en haut à gauche, sombre au milieu, or en bas à
      droite) autour du verre, avec un liseré noir intérieur qui donne la profondeur (--e-bezel, --e-depth).
   3. Pastilles d'icône : disque de métal sombre, anneau fin teinté du ton (or par défaut), pictogramme
      au trait fin. Même pastille en tête de carte, dans les rangées et les indicateurs.
   4. Chiffres : gros, légers (graisse 300), blancs et nets, chiffres tabulaires; l'unité plus petite et
      atténuée. Les valeurs de rangée restent en 650, comme sous le cadran.
   5. Libellés : petites capitales Geist Mono, espacées (--e-label), atténuées; jamais en gras criard.
   6. Jauges, anneaux et barres : piste fine sur verre noir, graduations fines (les majeures plus
      claires), arc de valeur lumineux; mêmes règles que le cadran.
   7. Rangées : pastille, libellé au-dessus de la valeur, chevron atténué à droite; séparateurs en
      filets à peine visibles; espacements généreux. États : ok vert, alerte ambre, erreur corail, muet gris.
   8. Commandes en métal brossé (--e-metal, --e-raise) : boutons, interrupteurs et boutons ronds
      assortis. En mode Base : mêmes formes, sans reflets ni lueurs (filet plat, ombres simples). */

.ev {
  --e-text: rgb(250 246 237);
  --e-muted: rgb(190 183 171);
  --e-faint: rgb(152 146 136);
  --e-acc: var(--gold-soft);
  --e-ok: rgb(108 224 166);
  --e-warn: #f3c969;
  --e-err: #ef8d85;
  --e-water: #66b2ff;
  --e-line: color-mix(in srgb, var(--gold-soft) 19%, transparent);
  --e-line2: color-mix(in srgb, var(--gold-soft) 38%, transparent);
  --e-panel: linear-gradient(180deg, #101010, #060606 48%, #030303);
  --e-fill: rgb(255 244 222 / .045);
  --e-fill2: rgb(255 244 222 / .085);
  --e-font: "Jarvis Manrope", var(--sans);
  --e-ease: cubic-bezier(.16, 1, .3, 1);
  /* Langage des cartes */
  --e-glass: radial-gradient(130% 60% at 50% -14%, rgb(255 255 255 / .06), transparent 64%), var(--e-panel);
  --e-sheen: radial-gradient(64% 34% at 50% 0%, rgb(255 255 255 / .07), transparent 72%);
  --e-bezel: linear-gradient(155deg, color-mix(in srgb, var(--gold-soft) 62%, #fff 10%), color-mix(in srgb, var(--gold-soft) 16%, transparent) 24%,
    rgb(255 255 255 / .05) 50%, color-mix(in srgb, var(--gold-soft) 14%, transparent) 72%, color-mix(in srgb, var(--gold-soft) 46%, transparent));
  --e-bezel-hi: linear-gradient(155deg, color-mix(in srgb, var(--gold-soft) 85%, #fff 15%), color-mix(in srgb, var(--gold-soft) 45%, transparent) 30%,
    color-mix(in srgb, var(--gold-soft) 22%, transparent) 55%, color-mix(in srgb, var(--gold-soft) 75%, transparent));
  --e-depth: 0 22px 48px #000b, 0 2px 0 #0009, inset 0 1px 0 rgb(255 255 255 / .09), inset 0 0 0 1px #000c;
  --e-well: linear-gradient(180deg, #050505, #0a0a0a);
  --e-tile: linear-gradient(180deg, #131313, #080808);
  --e-tile-sh: inset 0 1px 0 rgb(255 255 255 / .06), 0 6px 16px #0007;
  --e-edge: rgb(255 255 255 / .07);
  --e-sunk: inset 0 1px 3px #000, inset 0 0 0 1px rgb(255 255 255 / .06);
  --e-metal: linear-gradient(165deg, #262626, #0c0c0c 52%, #171717);
  --e-raise: inset 0 1px 0 rgb(255 255 255 / .11), inset 0 -1px 0 #000, 0 6px 16px #000a;
  --e-disc: radial-gradient(circle at 50% 26%, #272727, #0b0b0b 66%, #050505);
  --e-label: 600 10.5px/1.25 var(--mono);
  --e-sep: rgb(255 255 255 / .06);
  --e-tick: rgb(255 255 255 / .16);
  --e-tick-maj: rgb(255 255 255 / .34);
  position: relative; container: ev / inline-size; color: var(--e-text);
  font: 400 14px/1.42 var(--e-font); text-align: left; -webkit-font-smoothing: antialiased;
}
:root[data-mode="platinum"] .ev {
  --e-text: #f6f8fb; --e-muted: #b9c2cf; --e-faint: #8f98a6;
  --e-panel: linear-gradient(180deg, #111317, #060708 48%, #030304);
  --e-metal: linear-gradient(165deg, #272a2f, #0c0d0f 52%, #17191c);
  --e-disc: radial-gradient(circle at 50% 26%, #282b30, #0b0c0e 66%, #050506);
  --e-fill: rgb(225 236 255 / .045); --e-fill2: rgb(225 236 255 / .085);
}
/* Base : sobre. Même verre noir et mêmes formes, sans reflet, sans lunette en dégradé, sans lueur. */
:root[data-mode="base"] .ev {
  --e-text: #f2f2f2; --e-muted: #b8b8b8; --e-faint: #8d8d8d;
  --e-panel: linear-gradient(180deg, #121212, #090909);
  --e-glass: var(--e-panel);
  --e-sheen: none;
  --e-bezel: linear-gradient(var(--e-line2), var(--e-line2));
  --e-bezel-hi: linear-gradient(var(--e-acc), var(--e-acc));
  --e-depth: 0 10px 24px #0008;
  --e-metal: linear-gradient(#141414, #141414);
  --e-raise: 0 2px 6px #0008;
  --e-disc: linear-gradient(#141414, #141414);
  --e-sunk: inset 0 0 0 1px rgb(255 255 255 / .06);
  --e-tile: #101010;
  --e-tile-sh: none;
  --e-fill: rgb(255 255 255 / .04); --e-fill2: rgb(255 255 255 / .075);
}
.ev [hidden] { display: none !important; }
:where(.ev) button { font: inherit; color: inherit; }
.ev :is(button, [tabindex]):focus-visible { outline: 2px solid var(--e-acc); outline-offset: 2px; }
.ev .ev-i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ev .ev-i.is-sm { width: 15px; height: 15px; }
:where(.ev) :is(h4, h5, h6, p) { margin: 0; }
:where(.ev) small { font-size: 12.5px; color: var(--e-muted); }
:where(.ev) :is(b, strong) { font-weight: 650; }
.ev-app { min-height: 760px; }
.ev-nos { padding: 40px; text-align: center; color: var(--e-muted); }
.ev.is-off :is(.ev-fp, .ev-flow-core, .m-rt, .m-me, .ev-tag, .ev-ot, .is-spin, .ev-sent .ev-i, .w-rays, .w-drift, .w-cloud, .w-halo, .ev-stg li, .ev-sec-ring, .ev-site-d), .ev.is-off :is(.m-me, .ev-tag)::before, .ev.is-off .ev-dot::after, .ev.is-off .m-me::after { animation-play-state: paused !important; }

/* Tons */
.ev .t-ok { color: var(--e-ok); }
.ev .t-warn { color: var(--e-warn); }
.ev .t-err { color: var(--e-err); }
.ev .t-water { color: var(--e-water); }
.ev .t-gold { color: var(--e-acc); }
.ev .t-muted { color: var(--e-muted); }
.ev-dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: currentColor; vertical-align: .08em; box-shadow: 0 0 8px currentColor; flex: none; }
.ev-dot.t-muted { box-shadow: none; opacity: .7; }
/* Respiration discrète des voyants qui demandent l'attention (anneau qui s'élargit; transform et opacité seulement) */
.ev-dot:is(.t-warn, .t-err) { position: relative; }
.fx .ev-dot:is(.t-warn, .t-err)::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid currentColor; animation: evPing 2.6s cubic-bezier(.2, .6, .3, 1) infinite; }
@keyframes evPing { 0% { transform: scale(1); opacity: .8; } 70%, 100% { transform: scale(2.6); opacity: 0; } }
:root[data-mode="base"] .ev-dot::after { display: none; }

/* ---------- Barre du haut, en-tête de section ---------- */
.ev-bar0 { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin: 4px 2px 14px; }
.ev-back {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 4px; border: 0; background: none; cursor: pointer;
  font: 650 17px/1 var(--e-font); color: var(--e-acc); letter-spacing: -.01em;
}
.ev-back .ev-i { width: 22px; height: 22px; transition: transform .35s var(--e-ease); }
.ev-back:hover .ev-i { transform: translateX(-4px); }
.ev-badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--e-line2);
  font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--e-acc); background: #0a0908b3;
}
.ev-badge .ev-i { width: 14px; height: 14px; }
.ev-adms { display: flex; gap: 8px; margin-left: auto; }
.ev-adm {
  display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 16px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--e-line2); background: #090807d9; font: 650 14px/1 var(--e-font); transition: border-color .25s, background .25s;
}
.ev-adm:hover { border-color: var(--e-acc); }
.ev-adm.is-cfg { background: var(--mode-action); color: var(--mode-on-action); border-color: transparent; box-shadow: var(--mode-action-edge), 0 8px 24px color-mix(in srgb, var(--mode-glow) 22%, transparent); }
.ev-adm .ev-i { width: 17px; height: 17px; }
.ev-adm .ev-lk { width: 14px; height: 14px; opacity: .75; margin-left: -2px; }
.ev-pop {
  position: absolute; z-index: 6; right: 0; top: calc(100% + 6px); display: flex; align-items: center; gap: 9px; padding: 10px 14px; border-radius: 12px;
  background: #0a0a0af2; border: 1px solid var(--e-line2); box-shadow: 0 16px 40px #000c; font-weight: 600; font-size: 13.5px;
}
.ev-pop .ev-i { color: var(--e-acc); width: 17px; height: 17px; }
.fx .ev-pop.is-on { animation: evPop .4s var(--e-ease) both; }
@keyframes evPop { from { opacity: 0; transform: translateY(-6px); } }

.ev-hero {
  position: relative; isolation: isolate; display: flex; align-items: center; min-height: 176px; border-radius: 18px;
  background: radial-gradient(90% 140% at 0% 0%, #1b1916, #070707 62%); box-shadow: 0 18px 44px #0008, inset 0 1px 0 #ffffff12;
}
.ev-hero::after {
  content: ""; position: absolute; inset: -3px; z-index: 3; pointer-events: none; border-radius: 20px;
  border: 12px solid transparent; border-image: url("/media/modes/rim.png") 50 / 12px / 0 stretch; filter: var(--mode-rim-filter);
}
:root[data-mode="base"] .ev-hero::after { inset: 0; border: 1px solid var(--e-line2); border-image: none; filter: none; border-radius: 18px; }
.ev-hero-t { position: relative; z-index: 2; padding: 26px 30px; max-width: 58%; }
.ev-env { font: 650 13px/1 var(--e-font); letter-spacing: .14em; color: var(--e-acc); margin-bottom: 10px; }
.ev-h { font: 700 44px/1.04 var(--e-font); letter-spacing: -.03em; text-shadow: 0 2px 24px #000a; }
.ev-sub { margin-top: 10px; font-size: 17px; color: #ece6da; }
:root[data-mode="platinum"] .ev-sub { color: #e8eef7; }
.ev-meta { display: flex; align-items: center; gap: 7px; margin-top: 14px; font: 600 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--e-muted); }
.ev-ban { position: absolute; z-index: 0; inset: 0 0 0 auto; width: 60%; margin: 0; overflow: hidden; border-radius: 0 18px 18px 0; }
.ev-ban img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-mask: linear-gradient(90deg, #0000, #000 34%); mask: linear-gradient(90deg, #0000, #000 34%); }
/* Panneau d'attente (photo à venir) : verre noir profond, reflet discret, vignette, filet doré. */
.ev-ban.is-ph { background: radial-gradient(90% 150% at 76% 112%, color-mix(in srgb, var(--mode-glow) 17%, transparent), transparent 64%), linear-gradient(125deg, #121110, #070707 52%, #030303); }
.ev-ban.is-ph::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgb(255 248 230 / .05), transparent 42%), radial-gradient(130% 100% at 50% -10%, transparent 52%, rgb(0 0 0 / .5)); }
.ev-ph-frame { position: absolute; inset: 10px; border: 1px solid color-mix(in srgb, var(--gold-soft) 26%, transparent); border-radius: 10px; pointer-events: none; }
.ev-ph-frame::before { content: ""; position: absolute; left: 16%; right: 16%; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--gold-soft) 80%, transparent), transparent); }
.ev-ph-b { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; justify-items: center; gap: 11px; padding: 18px; text-align: center; }
.ev-ban.is-ph:not(.is-pick) { -webkit-mask: linear-gradient(90deg, #0000, #000 34%); mask: linear-gradient(90deg, #0000, #000 34%); }
.ev-ban.is-ph:not(.is-pick) .ev-ph-b { padding-left: 38%; }
.ev-ph-n { font: 600 12.5px/1 var(--mono); letter-spacing: .32em; text-indent: .32em; text-transform: uppercase; color: var(--e-text); text-shadow: 0 1px 14px #000; }
.ev-ph-chips { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; }
.ev-ph-c { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--e-line); background: #000000b8; font: 600 11.5px/1 var(--mono); }
.ev-ph-c .ev-i.is-sm { width: 13px; height: 13px; color: var(--e-faint); }
.ev-ph-c b { font-weight: 650; }
.ev-ban figcaption { position: absolute; right: 12px; bottom: 10px; z-index: 2; padding: 4px 9px; border-radius: 999px; background: #000a; border: 1px solid var(--e-line); font: 600 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--e-muted); }

/* ---------- Corps : navigation et section ---------- */
.ev-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 14px; }
.ev-nav { min-width: 0; }
.ev-nav-h { display: none; }
.ev-nav-l { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.ev-nav-l::-webkit-scrollbar { display: none; }
.ev-nav-i {
  position: relative; flex: none; display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 14px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--e-line); background: var(--e-metal); color: var(--e-muted); font: 600 14px/1 var(--e-font); white-space: nowrap; transition: color .25s, border-color .25s, background .25s;
}
.ev-nav-i:hover { color: var(--e-text); border-color: var(--e-line2); }
.ev-nav-i.is-on {
  color: var(--e-acc); border-color: color-mix(in srgb, var(--gold-soft) 60%, transparent);
  background: linear-gradient(95deg, color-mix(in srgb, var(--gold-soft) 17%, transparent), color-mix(in srgb, var(--gold-soft) 5%, transparent));
  box-shadow: 0 0 22px color-mix(in srgb, var(--mode-glow) 18%, transparent);
}
.ev-nav-i .ev-i { width: 19px; height: 19px; }
.ev-lcount { font: 600 11px/1 var(--mono); font-style: normal; color: var(--e-ok); }
.ev-lcount:empty { display: none; }
.ev-foot { margin-top: 14px; display: flex; justify-content: space-between; font: 500 10.5px/1 var(--mono); letter-spacing: .1em; color: var(--e-faint); }

@container ev (min-width: 940px) {
  .ev-main { grid-template-columns: 204px minmax(0, 1fr); align-items: start; }
  .ev-nav { position: relative; padding: 16px 10px 12px; border-radius: 16px; background: var(--e-panel); border: 1px solid var(--e-line); box-shadow: 0 18px 44px #0007, inset 0 1px 0 #ffffff10; }
  .ev-nav-h { display: block; margin: 0 10px 10px; font: 600 13px/1 var(--e-font); letter-spacing: .12em; color: var(--e-muted); }
  .ev-nav-l { flex-direction: column; gap: 2px; overflow: visible; }
  .ev-nav-i { height: 46px; border-color: transparent; background: none; font-size: 14.5px; white-space: normal; text-align: left; line-height: 1.15; }
  .ev-nav-i:not(:last-child)::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 1px; background: #ffffff0d; }
  .ev-nav-i.is-on::after { display: none; }
  .ev-lcount { margin-left: auto; }
}

.ev-sec { min-width: 0; container: evs / inline-size; }
.ev-tabs { display: flex; gap: 6px; margin: 0 0 12px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.ev-tabs::-webkit-scrollbar { display: none; }
.ev-tab {
  flex: none; height: 40px; padding: 0 20px; border-radius: 11px; cursor: pointer; border: 1px solid var(--e-line); background: var(--e-metal);
  font: 600 14px/1 var(--e-font); color: var(--e-muted); transition: color .25s, border-color .25s, background .25s;
}
.ev-tab:hover { color: var(--e-text); border-color: var(--e-line2); }
.ev-tab.is-on { color: var(--e-acc); border-color: color-mix(in srgb, var(--gold-soft) 70%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--gold-soft) 15%, transparent), color-mix(in srgb, var(--gold-soft) 5%, transparent)); box-shadow: 0 0 20px color-mix(in srgb, var(--mode-glow) 16%, transparent); }

/* ---------- Grille de cartes (12 colonnes, selon la largeur de la section) ---------- */
.ev-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; grid-auto-flow: dense; }
/* Carte : verre noir dans sa lunette (voir « Langage des cartes ») */
.ev-card {
  position: relative; grid-column: span 12; min-width: 0; padding: 18px; border-radius: 18px; container: card / inline-size; display: flex; flex-direction: column;
  border: 1px solid transparent; background: var(--e-glass) padding-box, var(--e-bezel) border-box; box-shadow: var(--e-depth);
}
.ev-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: var(--e-sheen); }
/* Même verre et même lunette pour les cartes-boutons (modes, lieux, résumé du hangar); la lunette s'éclaire au survol */
.ev :is(.ev-mode, .ev-pick, .ev-hs) { border: 1px solid transparent; background: var(--e-glass) padding-box, var(--e-bezel) border-box; box-shadow: var(--e-depth); }
.ev :is(.ev-mode:hover, .ev-mode.is-sel, .ev-pick:hover, .ev-pick.is-cur, button.ev-hs:hover) { --e-bezel: var(--e-bezel-hi); }
.ev-card > * { position: relative; }
@container evs (max-width: 799px) { .ev-grid > .ev-t-kpi.w3 { grid-column: span 6; } }
@container evs (min-width: 560px) {
  .ev-grid > .w3, .ev-grid > .w4 { grid-column: span 6; }
}
@container evs (min-width: 800px) {
  .ev-grid > .w3 { grid-column: span 3; } .ev-grid > .w4 { grid-column: span 4; } .ev-grid > .w5 { grid-column: span 5; }
  .ev-grid > .w6 { grid-column: span 6; } .ev-grid > .w7 { grid-column: span 7; } .ev-grid > .w8 { grid-column: span 8; } .ev-grid > .w9 { grid-column: span 9; }
  .ev-grid > .h2 { grid-row: span 2; } .ev-grid > .h3 { grid-row: span 3; }
}
.fx .ev-card.is-new { animation: evIn .7s var(--e-ease) both; animation-delay: calc(min(var(--i), 10) * 45ms); }
@keyframes evIn { from { opacity: 0; transform: translateY(14px); } }
/* Rangées qui entrent l'une après l'autre (listes, chronologies, consommateurs, températures, prévisions) */
.fx .ev-card.is-new :is(.ev-row, .ev-tl > li, .ev-checks > li, .ev-up > li, .ev-prio > li, .ev-con, .ev-temp, .ev-dr, .ev-mrow, .ev-auto) { animation: evRow .6s var(--e-ease) both; animation-delay: calc(min(var(--i), 10) * 45ms + 160ms); }
.fx .ev-card.is-new :is(.ev-row, .ev-tl > li, .ev-checks > li, .ev-up > li, .ev-prio > li, .ev-con, .ev-temp, .ev-dr, .ev-mrow, .ev-auto):nth-child(2) { animation-delay: calc(min(var(--i), 10) * 45ms + 220ms); }
.fx .ev-card.is-new :is(.ev-row, .ev-tl > li, .ev-checks > li, .ev-up > li, .ev-prio > li, .ev-con, .ev-temp, .ev-dr, .ev-mrow, .ev-auto):nth-child(3) { animation-delay: calc(min(var(--i), 10) * 45ms + 280ms); }
.fx .ev-card.is-new :is(.ev-row, .ev-tl > li, .ev-checks > li, .ev-up > li, .ev-prio > li, .ev-con, .ev-temp, .ev-dr, .ev-mrow, .ev-auto):nth-child(n+4) { animation-delay: calc(min(var(--i), 10) * 45ms + 340ms); }
@keyframes evRow { from { opacity: 0; transform: translateX(-8px); } }

/* En-tête de carte */
.ev-ch { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; margin: 0 0 14px; min-width: 0; }
/* Pastille d'icône : disque de métal sombre, anneau fin teinté du ton (or par défaut) */
.ev :is(.ev-ci, .ev-ri, .ev-ki, .ev-hs-i, .ev-opb-i) {
  flex: none; border-radius: 50%; display: grid; place-items: center; border: 1px solid transparent;
  background: var(--e-disc) padding-box, linear-gradient(160deg, color-mix(in srgb, currentColor 72%, #fff 8%), color-mix(in srgb, currentColor 14%, transparent) 48%, color-mix(in srgb, currentColor 46%, transparent)) border-box;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .1), 0 4px 10px #0009;
}
:root[data-mode="base"] .ev :is(.ev-ci, .ev-ri, .ev-ki, .ev-hs-i, .ev-opb-i) { background: var(--e-disc) padding-box, linear-gradient(color-mix(in srgb, currentColor 40%, transparent), color-mix(in srgb, currentColor 40%, transparent)) border-box; box-shadow: none; }
.ev-ci { width: 40px; height: 40px; color: var(--e-acc); }
.ev-ci.is-warn { color: var(--e-warn); }
.ev-ci .ev-i { width: 20px; height: 20px; }
.ev-ct { min-width: 0; flex: 1 1 150px; }
.ev-ct h5 { font: 650 16px/1.2 var(--e-font); letter-spacing: -.01em; color: #fff; }
.ev-ct p { margin-top: 3px; font-size: 13px; color: var(--e-muted); }
.ev-ct p .ev-i { width: 14px; height: 14px; vertical-align: -2px; margin-right: 3px; }
.ev-cr { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: 0 1 auto; min-width: 0; text-align: right; }
.ev-tag { display: inline-flex; align-items: center; margin-left: 8px; padding: 3px 7px; border-radius: 6px; font: 600 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--e-muted); border: 1px solid var(--e-line); vertical-align: middle; white-space: nowrap; }
.ev-tag.is-live { color: var(--e-ok); border-color: color-mix(in srgb, var(--e-ok) 45%, transparent); background: color-mix(in srgb, var(--e-ok) 8%, transparent); }
.ev-tag.is-live::before { content: ""; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.fx .ev-tag.is-live::before { animation: evBeat 2s ease-in-out infinite; }
@keyframes evBeat { 50% { opacity: .35; } }
/* Libellés de mesure : petites capitales mono */
.ev :is(.ev-kl, .ev-eq-s .ev-kv span, .ev-semi-v small, .ev-vent-h > span) { font: var(--e-label); letter-spacing: .12em; text-transform: uppercase; color: var(--e-muted); }
.ev-k { margin: 6px 0 10px; font: var(--e-label); letter-spacing: .14em; text-transform: uppercase; color: var(--e-muted); }
.ev-count { font-size: 13px; color: var(--e-muted); white-space: nowrap; }
.ev-count b { color: var(--e-text); }
.ev-fine { margin-top: 10px; font-size: 12.5px; color: var(--e-muted); display: flex; gap: 7px; align-items: flex-start; }
.ev-fine.is-c { justify-content: center; }
.ev-fine .ev-i { width: 15px; height: 15px; margin-top: 1px; }
/* Gros chiffres : légers, blancs, nets (comme la consigne du cadran) */
.ev :is(.ev-big, .ev-kn, .ev-ringv b, .ev-gw b, .ev-semi-v b, .ev-level strong) { font-weight: 300; letter-spacing: -.035em; font-variant-numeric: tabular-nums; color: #fff; text-shadow: 0 0 22px rgb(255 255 255 / .14); }
:root[data-mode="base"] .ev :is(.ev-big, .ev-kn, .ev-ringv b, .ev-gw b, .ev-semi-v b, .ev-level strong) { text-shadow: none; }
.ev-big { font: 300 38px/1.05 var(--e-font); margin: 2px 0 6px; }
.ev-big .ev-of { font-size: 22px; color: var(--e-muted); }
.ev :is(.ev-big, .ev-kn) :is(.ev-state, .ev-tag, small) { letter-spacing: 0; text-shadow: none; }
.ev-mono { font-variant-numeric: tabular-nums; }
/* Valeurs typographiées (unitize) : chiffres tabulaires, unité plus petite, atténuée, légèrement décollée */
.ev .ev-num, .ev .ev-u { display: inline; }
.ev-num { font-variant-numeric: tabular-nums; }
.ev .ev-u { margin-left: .14em; font-family: var(--e-font); text-transform: none; font-size: .56em; font-weight: 500; letter-spacing: .01em; color: var(--e-muted); text-shadow: none; vertical-align: baseline; }
.ev :is(.ev-row, .ev-kv, .ev-flow-f, .ev-chip) .ev-u { font-size: .78em; }
.ev-upd { font-size: 12px; color: var(--e-muted); line-height: 1.5; }
.ev-hint { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--e-muted); }
.ev-hint .ev-i { width: 15px; height: 15px; }
.ev-pct { font: 650 14px/1 var(--e-font); color: var(--e-acc); }
.ev-hr { border: 0; height: 1px; background: #ffffff12; margin: 6px 0; }

/* Lignes, boutons, interrupteurs, barres */
.ev-row { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-top: 1px solid var(--e-sep); min-width: 0; }
.ev-row:first-of-type { border-top: 0; }
/* Listes plus courtes que leur rangée : les rangées s'espacent régulièrement, la note descend en bas */
.ev-t-list > .ev-row, .ev-t-outside > .ev-row, .ev-arr > .ev-row, .ev-t-ventilation > .ev-row { flex: 1 0 auto; max-height: 104px; }
.ev-card > .ev-fine:last-child, .ev-card > .ev-btn.is-wide:last-child, .ev-card > .ev-legend:last-child { margin-top: auto; padding-top: 10px; }
.ev-arr { flex: 1; display: flex; flex-direction: column; }
.ev-row > span:not(.ev-ri) { flex: 1; min-width: 5.5em; display: flex; flex-direction: column; gap: 2px; }
.ev-row > span small { font-size: 13px; }
.ev-row > span b { font-weight: 650; color: #fff; font-variant-numeric: tabular-nums; }
.ev-row > b { font-size: 14px; text-align: right; display: inline-flex; align-items: center; justify-content: flex-end; max-width: 64%; }
/* Carte étroite : la valeur passe sous son libellé plutôt que de déborder */
@container card (max-width: 260px) {
  .ev-row:has(> b) { flex-wrap: wrap; row-gap: 0; }
  .ev-row:has(> b) > span:not(.ev-ri) { min-width: 0; }
  .ev-row > b { flex: 1 0 100%; max-width: none; justify-content: flex-start; text-align: left; padding-left: 50px; }
}
.ev-row > em { font-style: normal; font-size: 13px; color: var(--e-muted); }
.ev-row.is-lg > span b { font-size: 19px; letter-spacing: -.01em; }
.ev-row > strong { font-size: 16px; color: var(--e-acc); white-space: nowrap; }
.ev-ri { width: 36px; height: 36px; color: var(--tc, var(--e-acc)); }
.ev-ri .ev-i { width: 18px; height: 18px; }
.ev-chev { width: 16px !important; height: 16px !important; color: var(--e-faint); flex: none; opacity: .8; }
.ev-kv { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 13.5px; }
.ev-kv span { color: var(--e-muted); }
.ev-kv b { text-align: right; font-variant-numeric: tabular-nums; }
.ev-kv2 { padding: 10px 0; border-top: 1px solid var(--e-sep); }
.ev-kv2:first-child { border-top: 0; }
.ev-kv2 small { display: block; font: var(--e-label); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 3px; }
.ev-kv2 b { font-size: 18px; }
/* Tuiles dans une carte : verre un peu plus clair, filet discret (les règles propres à chaque tuile l'emportent) */
:where(.ev) :where(.ev-pack, .ev-pt, .ev-ecc > div, .ev-prio li, .ev-lmain, .ev-ld, .ev-lsum, .ev-mres, .ev-mm-b, .ev-mm-s, .ev-hali, .ev-upi, .ev-brow, .ev-why) { box-shadow: var(--e-tile-sh); }
/* Commandes en métal brossé : boutons, boutons ronds, boutons d'icône, segments, interrupteurs */
.ev :is(.ev-btn, .ev-iconb, .ev-round, .ev-seg button):not(.is-primary, .is-done, .is-on) { background: var(--e-metal); box-shadow: var(--e-raise); }
.ev-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 12px; cursor: pointer; white-space: nowrap;
  border: 1px solid color-mix(in srgb, var(--gold-soft) 50%, transparent); color: var(--e-acc); font: 650 14px/1 var(--e-font);
  transition: border-color .25s, color .25s, transform .2s, opacity .25s;
}
.ev-btn:hover, .ev-iconb:hover, .ev-round:hover { border-color: var(--e-acc); color: var(--e-acc); }
.ev-btn:active { transform: scale(.97); }
.ev-btn .ev-i { width: 17px; height: 17px; }
.ev-btn.is-primary { background: var(--mode-action); color: var(--mode-on-action); border-color: transparent; box-shadow: var(--mode-action-edge), 0 8px 22px color-mix(in srgb, var(--mode-glow) 20%, transparent); }
.ev-btn.is-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.ev-btn.is-wide { width: 100%; margin-top: 12px; }
.ev-btn.is-done { color: var(--e-ok); border-color: color-mix(in srgb, var(--e-ok) 45%, transparent); background: color-mix(in srgb, var(--e-ok) 9%, #050505); }
.ev-btn[disabled] { opacity: .55; cursor: default; transform: none; }
.ev-link { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; cursor: pointer; padding: 4px 2px; font: 650 13.5px/1 var(--e-font); color: var(--e-acc); }
.ev-link .ev-i { width: 16px; height: 16px; }
.ev-link.is-done { color: var(--e-ok); }
.ev-iconb { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--e-line); color: var(--e-text); cursor: pointer; padding: 0; }
.ev-iconb[disabled] { opacity: .3; cursor: default; }
.ev-iconb .ev-i { width: 17px; height: 17px; }
.ev-round { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--e-line2); color: var(--e-text); cursor: pointer; transition: border-color .25s, color .25s, transform .2s; }
.ev-round:active { transform: scale(.92); }
/* Interrupteur : piste de verre noir creusée, bouton de métal; allumé : piste du mode (or), comme l'éclairage */
.ev-sw { position: relative; width: 50px; height: 28px; flex: none; border-radius: 999px; border: 1px solid var(--e-edge); background: #050505; box-shadow: var(--e-sunk); cursor: pointer; padding: 0; transition: background .3s, border-color .3s; }
.ev-sw i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 50% 30%, #bdbdbd, #6f6f6f); box-shadow: 0 2px 5px #000c, inset 0 1px 0 #fff6; transition: transform .35s var(--e-ease), background .3s; }
.ev-sw.is-on { background: var(--mode-action); border-color: transparent; box-shadow: var(--mode-action-edge), 0 0 14px color-mix(in srgb, var(--mode-glow) 26%, transparent); }
.ev-sw.is-on i { transform: translateX(22px); background: radial-gradient(circle at 50% 30%, #3a3a3a, #0b0b0b); box-shadow: 0 1px 4px #0009, inset 0 1px 0 #ffffff26; }
:root[data-mode="base"] .ev-sw.is-on { box-shadow: none; }
/* Barre fine graduée : piste de verre, remplissage en dégradé (sombre → ton → reflet blanc), pointe lumineuse,
   graduations fines sous la piste tous les dixièmes. Même barre partout (indicateurs, compteurs, consommateurs). */
.ev-bar { --bc: var(--e-acc); position: relative; display: block; height: 4px; margin-bottom: 7px; border-radius: 99px; background: rgb(255 255 255 / .07); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .55); }
.ev-bar::after { content: ""; position: absolute; left: 0; right: -1px; top: calc(100% + 3px); height: 3px; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgb(255 255 255 / .18) 0 1px, transparent 1px 10%); }
.ev-bar i { position: relative; display: block; height: 100%; max-width: 100%; border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--bc) 22%, transparent), var(--bc) 82%, color-mix(in srgb, var(--bc) 55%, #fff));
  box-shadow: 0 0 10px color-mix(in srgb, var(--bc) 40%, transparent); transition: width .9s var(--e-ease); }
.ev-bar i::after { content: ""; position: absolute; right: -2px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px color-mix(in srgb, var(--bc) 35%, transparent), 0 0 10px var(--bc); }
.ev-bar i[style^="width:0.0%"]::after { display: none; }
.ev-bar.t-ok { --bc: var(--e-ok); } .ev-bar.t-water { --bc: var(--e-water); } .ev-bar.t-gold { --bc: var(--e-acc); } .ev-bar.t-warn { --bc: var(--e-warn); }
:root[data-mode="base"] .ev-bar i { background: var(--bc); box-shadow: none; }
:root[data-mode="base"] .ev-bar i::after { box-shadow: none; }
.ev-bar.is-sm { width: 110px; height: 3px; margin-bottom: 0; }
.ev-bar.is-sm::after, .ev-bar.is-xs::after { display: none; }
.ev-bar.is-lg { height: 6px; }
.fx .ev-card.is-new .ev-bar i { animation: evGrow 1.1s var(--e-ease) both .2s; transform-origin: left; }
@keyframes evGrow { from { transform: scaleX(0); } }
.ev-sent { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; font-size: 12.5px; color: var(--e-ok); }
.ev-sent .ev-i { width: 15px; height: 15px; }
.ev-sent.is-wait { color: var(--e-acc); }
.ev-sent.is-idle { color: var(--e-muted); }
.fx .ev-sent.is-wait .ev-i, .fx .is-spin { animation: evSpin 1s linear infinite; }
@keyframes evSpin { to { transform: rotate(360deg); } }
.ev-legend { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--e-muted); }
.ev-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: -8px; }
.ev-legend i.c-gold { background: var(--e-acc); } .ev-legend i.c-blue { background: var(--e-water); } .ev-legend i.c-white { background: var(--e-text); } .ev-legend i.c-green { background: var(--e-ok); }
.ev-legend i.is-dash { background: none; width: 16px; height: 0; border-top: 2px dashed var(--e-acc); border-radius: 0; }
.ev-legend.is-below { margin-top: 8px; }
/* Légende de courbe sous l'en-tête : pastille, libellé atténué, valeur repère */
.ev-lg { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: -2px 0 12px; }
.ev-lg-i { display: inline-flex; align-items: center; gap: 9px; }
.ev-lg-i > span { display: grid; gap: 1px; }
.ev-lg-i span > small { font: var(--e-label); letter-spacing: .1em; text-transform: uppercase; color: var(--e-faint); }
.ev-lg-i b { font: 400 16px/1.15 var(--e-font); color: #fff; font-variant-numeric: tabular-nums; }
.ev-lg-i i { width: 10px; height: 10px; border-radius: 3px; background: var(--e-acc); box-shadow: 0 0 10px currentColor; color: var(--e-acc); }
.ev-lg-i i.c-blue { background: var(--e-water); color: var(--e-water); } .ev-lg-i i.c-green { background: var(--e-ok); color: var(--e-ok); } .ev-lg-i i.c-white { background: var(--e-text); color: #fff; }
.ev-lg-i i.is-dash { height: 0; width: 14px; border-top: 2px dashed var(--e-acc); background: none; box-shadow: none; border-radius: 0; }
.ev-card > :is(.ev-btn:not(.is-wide), .ev-sent, .ev-legend, .ev-flag) { align-self: flex-start; }
.ev-flag { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 999px; font: 650 12px/1 var(--e-font); border: 1px solid color-mix(in srgb, currentColor 40%, transparent); background: color-mix(in srgb, currentColor 9%, transparent); white-space: nowrap; }
.ev-note { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--e-muted); }
.ev-t-note { padding: 12px 18px; }
.ev-note .ev-i { color: var(--e-acc); }
.ev-seg { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.ev-seg button { height: 34px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--e-line2); cursor: pointer; font: 600 13px/1 var(--e-font); color: var(--e-text); }
.ev .ev-seg button.is-on { background: var(--mode-action); color: var(--mode-on-action); border-color: transparent; box-shadow: var(--mode-action-edge); }
.ev-state { display: inline-flex; align-items: center; font-size: 13px; font-weight: 500; color: var(--e-muted); }
.ev-state.is-lg { font-size: 16px; font-weight: 650; color: var(--e-text); margin: 0 0 12px; }

/* ---------- Courbes ---------- */
/* Une courbe placée directement dans une carte (ou dans son conteneur [data-fill]) occupe la hauteur restante :
   la rangée garde la même hauteur sans vide. */
.ev-plot { position: relative; padding: 6px 0 22px 0; display: flex; flex-direction: column; }
.ev-plot.has-y { padding-left: 38px; }
.ev-pa { position: relative; flex: 1; height: auto; min-height: var(--h, 140px); touch-action: pan-y; }
.ev-pa[data-tip] { cursor: crosshair; }
.ev-pa svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ev-grid line, .ev-pa .ev-grid line { stroke: rgb(255 255 255 / .06); stroke-width: 1; }
.ev-pa .ev-grid line.is-v { stroke-dasharray: 2 4; }
.ev-pa-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ev-pa-glow { fill: none; stroke-width: 7; stroke-linejoin: round; stroke-linecap: round; opacity: .12; }
:root[data-mode="base"] .ev-pa-glow { display: none; }
.ev-pa-line.is-dash { stroke-dasharray: 6 6; opacity: .8; }
.ev-pa-now { stroke: var(--e-acc); stroke-width: 1; stroke-dasharray: 3 4; opacity: .8; }
.ev-pa-bar { shape-rendering: crispEdges; }
.fx .ev-card.is-new .ev-pa-line:not(.is-dash) { stroke-dasharray: 1000; animation: evDraw 1.6s var(--e-ease) both .15s; }
.fx .ev-card.is-new :is(.ev-pa-fill, .ev-pa-glow) { animation: evFade 1.2s ease both .5s; }
.fx .ev-card.is-new .ev-pa-bar { animation: evRise .9s var(--e-ease) both .15s; transform-box: fill-box; transform-origin: bottom; }
@keyframes evDraw { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }
@keyframes evFade { from { opacity: 0; } }
@keyframes evRise { from { transform: scaleY(0); } }
.ev-card > .ev-plot, .ev-card > [data-fill], [data-fill] > .ev-plot { flex: 1 1 auto; }
[data-fill] { display: flex; flex-direction: column; min-height: 0; }
/* Curseur au survol : filet vertical, points, infobulle de verre noir */
.ev-pc { position: absolute; top: 0; bottom: 0; width: 0; pointer-events: none; z-index: 3; }
.ev-pc-l { position: absolute; top: 0; bottom: 0; left: -.5px; width: 1px; background: linear-gradient(180deg, transparent, rgb(255 255 255 / .45) 18%, rgb(255 255 255 / .45) 82%, transparent); }
.ev-pc-d i { position: absolute; left: 0; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; border: 2px solid #050505; background: var(--e-acc); box-shadow: 0 0 10px currentColor; }
.ev-pc-t { position: absolute; top: 4px; left: 12px; display: grid; gap: 3px; min-width: 120px; padding: 8px 10px; border-radius: 10px; white-space: nowrap;
  background: rgb(8 8 8 / .94); border: 1px solid var(--e-line2); box-shadow: 0 10px 26px #000c; font-size: 12px; }
.ev-pc-t.is-l { left: auto; right: 12px; }
.ev-pc-t > small { font: var(--e-label); letter-spacing: .1em; text-transform: uppercase; color: var(--e-faint); }
.ev-pc-t span { display: flex; align-items: center; gap: 7px; }
.ev-pc-t span i { width: 7px; height: 7px; border-radius: 50%; background: var(--e-acc); }
.ev-pc-t em { font-style: normal; color: var(--e-muted); }
.ev-pc-t b { margin-left: auto; padding-left: 10px; font-weight: 650; color: #fff; font-variant-numeric: tabular-nums; }
.ev :is(.ev-pc-d, .ev-pc-t) i.c-blue { background: var(--e-water); color: var(--e-water); }
.ev :is(.ev-pc-d, .ev-pc-t) i.c-green { background: var(--e-ok); color: var(--e-ok); }
.ev :is(.ev-pc-d, .ev-pc-t) i.c-white { background: var(--e-text); color: var(--e-text); }
.ev :is(.ev-pc-d, .ev-pc-t) i.c-gold { color: var(--e-acc); }
.ev-yl { position: absolute; right: calc(100% + 8px); transform: translateY(-50%); font: 600 11px/1 var(--e-font); color: var(--e-faint); white-space: nowrap; }
.ev-xl { position: absolute; top: calc(100% + 7px); transform: translateX(-50%); font: 600 11px/1 var(--e-font); color: var(--e-faint); white-space: nowrap; }
.ev-xl:first-of-type { transform: none; }
.ev-xl.is-end { transform: translateX(-100%); }
.ev-xl.is-b { color: var(--e-text); font-weight: 600; transform: translateX(-100%); }
.ev-pd { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--e-acc); box-shadow: 0 0 0 3px #0009, 0 0 12px var(--e-acc); }
.ev-pd b { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); font: 600 11.5px/1 var(--e-font); color: var(--e-text); white-space: nowrap; text-shadow: 0 1px 4px #000; }
.ev-pd.c-blue { background: var(--e-water); box-shadow: 0 0 0 3px #0009, 0 0 12px var(--e-water); }
.ev-pd.c-green { background: var(--e-ok); box-shadow: 0 0 0 3px #0009, 0 0 12px var(--e-ok); }
.ev-pd.c-green b, .ev-pd.c-gold b { right: 6px; left: auto; transform: none; color: var(--e-acc); padding: 4px 7px; border-radius: 7px; background: #0a0908e6; border: 1px solid var(--e-line2); text-shadow: none; }
.ev-pd.c-green b { color: var(--e-ok); }
.is-cond .ev-pd { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; }
.is-cond .ev-pd b { font-size: 11px; color: var(--e-text); }
.is-net .ev-yl, .is-sys .ev-yl { font-size: 10.5px; }
.is-spark { padding-bottom: 4px; margin-top: 8px; }
.is-spark .ev-yl { font-size: 10px; }

/* Jauges, anneaux : graduations fines, piste creusée, arc lumineux, verre noir au centre */
.ev-gauge { width: 100%; display: block; overflow: visible; }
.ev :is(.ev-gauge, .ev-ring) .g-track { fill: none; stroke: rgb(255 255 255 / .07); stroke-width: 5; stroke-linecap: round; }
.ev :is(.ev-gauge, .ev-ring) .g-val { fill: none; stroke: var(--gs); stroke-width: 5; stroke-linecap: round; filter: drop-shadow(0 0 3px color-mix(in srgb, var(--gc) 70%, transparent)); transition: stroke-dasharray 1s var(--e-ease); }
.ev :is(.ev-gauge, .ev-ring) .g-face { stroke: rgb(255 255 255 / .06); stroke-width: .6; }
.ev .g-tk { stroke: var(--e-tick); stroke-width: .6; stroke-linecap: round; }
.ev .g-tk.is-maj { stroke: var(--e-tick-maj); stroke-width: .9; }
.ev .g-tk.is-on { stroke: var(--gs); }
.ev .ev-gauge.is-semi :is(.g-track, .g-val) { stroke-width: 3.6; }
:root[data-mode="base"] .ev :is(.ev-gauge, .ev-ring) .g-val { filter: none; }
.fx .ev-card.is-new .g-val { animation: evGauge 1.4s var(--e-ease) both .1s; }
@keyframes evGauge { from { stroke-dasharray: 0 100; } }

/* ---------- Indicateurs (Vue d'ensemble) ---------- */
.ev-t-kpi { padding: 0; }
.ev-kpi { display: flex; gap: 14px; width: 100%; height: 100%; padding: 16px 16px 15px; border: 0; background: none; text-align: left; cursor: default; border-radius: 16px; align-items: flex-start; }
button.ev-kpi { cursor: pointer; transition: background .25s; }
button.ev-kpi:hover { background: var(--e-fill); }
.ev-ki { width: 52px; height: 52px; color: var(--tc, var(--e-acc)); }
.ev-ki.t-water { --tc: var(--e-water); } .ev-ki.t-ok { --tc: var(--e-ok); } .ev-ki.t-gold { --tc: var(--e-acc); } .ev-ki.t-heat { --tc: #ff9f5a; }
.ev-ki .ev-i { width: 25px; height: 25px; }
.ev-kb { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ev-kl { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.ev-kl .ev-tag { margin-left: 2px; white-space: normal; max-width: 100%; letter-spacing: .06em; }
.ev-kn { font: 300 28px/1.05 var(--e-font); display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.ev-kn .ev-dot { margin: 0; width: 10px; height: 10px; color: var(--e-ok); }
.ev-ks { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--e-muted); }
.ev-ks .ev-i { width: 16px; height: 16px; color: var(--e-water); }
.ev-kgo { color: var(--e-muted); margin-left: -6px; }
.ev-kgo .ev-i { width: 18px; height: 18px; }
@container card (max-width: 250px) {
  .ev-kpi { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; column-gap: 10px; row-gap: 6px; padding: 14px; align-items: center; }
  .ev-kb { display: contents; }
  .ev-ki { width: 38px; height: 38px; grid-row: 1; }
  .ev-ki .ev-i { width: 20px; height: 20px; }
  .ev-kl { grid-column: 2; grid-row: 1; }
  .ev-kgo { grid-column: 3; grid-row: 1; margin: 0; }
  .ev-kl:has(.ev-tag) { grid-column: 1 / -1; grid-row: 2; }
  .ev-kn, .ev-kpi > .ev-kb > .ev-bar, .ev-ks { grid-column: 1 / -1; }
  .ev-kb > .ev-bar { grid-column: 1 / -1; }
  .ev-kn { font-size: 25px; margin-top: 2px; }
}

/* Conditions */
.ev-cond { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-bottom: 8px; }
.ev-cond-now { display: flex; align-items: center; gap: 12px; padding-right: 22px; border-right: 1px solid var(--e-sep); }
.ev-cond-now b { font: 700 34px/1 var(--e-font); letter-spacing: -.02em; display: block; }
.ev-cond-now span { font-size: 13.5px; color: var(--e-muted); }
.ev-cond-i { display: flex; gap: 9px; align-items: flex-start; }
.ev-cond-i > .ev-i { color: var(--e-acc); margin-top: 2px; }
.ev-cond-i small { display: block; font-size: 12px; }
.ev-cond-i b { font-size: 17px; }
.ev-cond-chips { display: flex; gap: 8px; }
.ev-cond-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--e-line); font-size: 12.5px; color: var(--e-muted); }
.ev-cond-chips .ev-i { width: 15px; height: 15px; color: var(--e-acc); }
.ev-cond-chips b { color: var(--e-ok); }
@container card (max-width: 520px) { .ev-cond-now { border: 0; padding: 0; width: 100%; } }

/* Pictogrammes météo (dégradés communs déclarés dans .ev-defs) */
.ev-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.ev-wx { width: 34px; height: 34px; flex: none; overflow: visible; }
.ev-wx.is-md { width: 52px; height: 52px; }
.ev-wx.is-lg { width: 58px; height: 58px; }
.ev-wx.is-xl { width: 128px; height: 128px; }
.ev-wx .w-sun { filter: drop-shadow(0 0 5px #ffb33acc); }
.ev-wx .w-ray { stroke: #ffc44f; stroke-width: 2.4; stroke-linecap: round; fill: none; }
.ev-wx .w-moon { filter: drop-shadow(0 0 6px #fff2d066); }
.ev-wx .w-cloud { stroke: #ffffff40; stroke-width: .6; filter: drop-shadow(0 2px 3px #0008); }
.ev-wx .w-rain { stroke: #6fb4ff; stroke-width: 2.6; stroke-linecap: round; }
.ev-wx .w-snow { fill: #fff; filter: drop-shadow(0 0 2px #fff8); }
.ev-wx .w-fog { stroke: #c7cdd4; stroke-width: 2.6; stroke-linecap: round; }
.ev-wx .w-rays, .ev-wx .w-drift { transform-box: fill-box; transform-origin: center; }
.fx .ev-wx.is-xl .w-rays { animation: evRays 30s linear infinite; }
.fx .ev-wx.is-xl .w-drift, .fx .ev-wx.is-xl .w-cloud { animation: evDrift 7s ease-in-out infinite alternate; }
.fx .ev-wx.is-xl .w-halo { animation: evHalo 4s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes evRays { to { transform: rotate(360deg); } }
@keyframes evDrift { from { transform: translateX(-1.2px); } to { transform: translateX(1.6px); } }
@keyframes evHalo { from { opacity: .7; transform: scale(.94); } to { opacity: 1; transform: scale(1.06); } }

/* Éclairage (module externe) */
.ev-lum-mini { min-height: 150px; flex: 1; }
.ev-lumf { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--e-sep); }
.ev-lumf > span:nth-child(2) { flex: 1; display: grid; gap: 1px; min-width: 0; }
.ev-lumf small { font-size: 12.5px; color: var(--e-muted); }
.ev-lumf b { font-weight: 600; }
.ev-lumf .ev-lumf-t { font: 300 24px/1 var(--e-font); color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ev-lumph { display: grid; justify-items: center; gap: 6px; padding: 28px 16px; text-align: center; border-radius: 14px; border: 1px dashed var(--e-line2); color: var(--e-muted); }
.ev-lumph .ev-i { width: 28px; height: 28px; color: var(--e-acc); }
.ev-lumph b { color: var(--e-text); font-size: 15px; }
.ev-lum > .ev-lumph { padding: 70px 20px; background: var(--e-panel); }

/* Autour de… (carte stylisée) */
/* Autour de… : la carte occupe toute la largeur, les points de service s'alignent dessous en colonnes */
.ev-around { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-content: space-between; }
.ev-around-l { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); column-gap: 14px; align-items: start; }
.ev-around-l > .ev-k { grid-column: 1 / -1; margin: 4px 0 0; }
.ev-around-l .ev-row { border-top: 0; padding: 8px 0; gap: 10px; }
.ev-around-l .ev-row b { font-size: 14px; }
.ev-around-l .ev-btn { grid-column: 1 / -1; margin-top: 6px; }
.ev-map { position: relative; width: 100%; aspect-ratio: 5 / 3; border-radius: 12px; overflow: hidden; border: 1px solid #ffffff17; background: #000; container-type: inline-size; box-shadow: inset 0 0 0 1px #0008; }
.ev-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ev-map .m-land { fill: #030303; }
.ev-map .m-tex { opacity: 1; }
.ev-map .m-tex path { fill: none; stroke: color-mix(in srgb, var(--gold-soft) 7%, transparent); stroke-width: .5; }
.ev-map .m-field { fill: #0b0a08; stroke: color-mix(in srgb, var(--gold-soft) 16%, transparent); stroke-width: .7; stroke-dasharray: 3 3; }
.ev-map .m-shore { fill: none; stroke: #4f86b833; stroke-width: 5; stroke-linejoin: round; }
.ev-map .m-water { fill: #070b10; stroke: #5b8fc0; stroke-width: .9; stroke-opacity: .75; }
.ev-map .m-river { fill: none; stroke: #3f6f9c; stroke-width: 1.8; stroke-linecap: round; opacity: .8; }
.ev-map .m-road { fill: none; stroke: color-mix(in srgb, var(--gold-soft) 72%, transparent); stroke-width: 1.3; stroke-linecap: round; filter: drop-shadow(0 0 2px color-mix(in srgb, var(--gold-soft) 35%, transparent)); }
:root[data-mode="base"] .ev-map .m-road { stroke: #9a9a9a; filter: none; }
.ev-map .m-road.is-minor { stroke-width: .7; opacity: .5; filter: none; }
.ev-map .m-road.is-rail { stroke-dasharray: 4 3; stroke-width: .9; opacity: .55; filter: none; }
.ev-map .m-block { fill: #0d0d0d; stroke: #ffffff1f; stroke-width: .6; }
.ev-map .m-block.is-hi { fill: color-mix(in srgb, var(--gold-soft) 16%, #050505); stroke: var(--e-acc); }
.ev-map .m-block.is-park { fill: #070a08; stroke: #ffffff1a; }
.ev-map .m-strip { stroke: #161616; stroke-linecap: butt; }
.ev-map .m-strip-c { stroke: #d9d4c7; stroke-width: .8; stroke-dasharray: 6 5; opacity: .6; }
.ev-map .m-vig { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 45%, transparent 55%, #000c); }
.ev-map .m-rt { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ev-map .m-rt.is-done { stroke: var(--e-acc); stroke-width: 3; opacity: .6; }
.ev-map .m-rt.is-next { stroke: var(--e-acc); stroke-width: 3.4; stroke-dasharray: 2 7; filter: drop-shadow(0 0 4px var(--mode-glow)); }
.fx .ev-map .m-rt.is-next { animation: evMarch 1.2s linear infinite; }
@keyframes evMarch { to { stroke-dashoffset: -18; } }
.ev-map .m-rt.is-later { stroke: #ffffff; stroke-width: 1.2; stroke-dasharray: 3 5; opacity: .3; }
.ev-map .m-ring { fill: color-mix(in srgb, var(--gold-soft) 5%, transparent); stroke: var(--e-acc); stroke-width: 1.4; stroke-dasharray: 6 6; }
.ev-map .m-lake { position: absolute; transform: translate(-50%, -50%); font: italic 500 clamp(10px, 3.4cqw, 14px)/1 var(--e-font); color: #8fb8e0; letter-spacing: .04em; white-space: nowrap; opacity: .85; }
.ev-map .m-town { position: absolute; display: flex; align-items: center; gap: 5px; transform: translate(-4px, -50%); font: 600 clamp(9.5px, 2.8cqw, 12.5px)/1 var(--e-font); color: #f1ebde; text-shadow: 0 1px 3px #000, 0 0 10px #000; white-space: nowrap; }
.ev-map .m-town i { width: 5px; height: 5px; border-radius: 50%; background: var(--e-acc); box-shadow: 0 0 0 2px #000, 0 0 8px var(--e-acc); flex: none; }
.ev-map .m-town.is-l { flex-direction: row-reverse; transform: translate(calc(-100% + 4px), -50%); }
.ev-map .m-town.is-b { transform: translate(-50%, 0); margin-top: clamp(13px, 4.6cqw, 20px); }
.ev-map .m-town.is-b i, .ev-map .m-town.is-a i { display: none; }
.ev-map .m-town.is-a { transform: translate(-50%, -190%); }
.ev-map .m-lbl { position: absolute; transform: translate(-50%, -50%); font: 500 clamp(9px, 2.6cqw, 12px)/1 var(--e-font); color: var(--e-muted); text-shadow: 0 1px 3px #000; white-space: nowrap; }
.ev-map .m-lbl.is-water { color: #8fb8e0; font-style: italic; }
.ev-map .m-lbl.is-hi { color: var(--e-acc); font-weight: 650; }
.ev-map .m-lbl.is-r { transform: translate(-100%, -50%); }
.ev-map .m-shield { position: absolute; transform: translate(-50%, -50%); padding: 2px 5px; border-radius: 4px; background: #000; border: 1px solid color-mix(in srgb, var(--gold-soft) 70%, transparent); font: 700 clamp(8.5px, 2.4cqw, 10.5px)/1 var(--e-font); color: var(--e-acc); }
.ev-map .m-pin { position: absolute; width: clamp(22px, 7.5cqw, 32px); height: clamp(22px, 7.5cqw, 32px); transform: translate(-50%, -100%); display: grid; place-items: center; border-radius: 50% 50% 50% 0; rotate: -45deg; translate: 0 -2px;
  background: var(--pc, var(--e-acc)); box-shadow: 0 4px 12px #000, 0 0 0 2px #000, 0 0 14px color-mix(in srgb, var(--pc, var(--e-acc)) 45%, transparent); color: #fff; transition: opacity .3s, filter .3s; }
.ev-map .m-pin > * { rotate: 45deg; }
.ev-map .m-pin .ev-i { width: 56%; height: 56%; }
.ev-map .m-pin b { font: 700 clamp(10px, 3.2cqw, 14px)/1 var(--e-font); }
.ev-map .m-pin.t-water { --pc: #3d8ff0; } .ev-map .m-pin.t-ok { --pc: #22a06b; } .ev-map .m-pin.t-muted { --pc: #5d6268; } .ev-map .m-pin.t-gold { --pc: #c99a45; color: #1c1408; }
.ev-map .m-pin.t-warn { --pc: #d7a133; color: #1c1408; }
.ev-map .m-pin.is-dim { opacity: .3; filter: grayscale(.6); }
.ev-map .m-me, .ev-map .m-dest { position: absolute; transform: translate(-50%, -50%); width: clamp(26px, 9cqw, 38px); height: clamp(26px, 9cqw, 38px); border-radius: 50%; display: grid; place-items: center;
  background: #000; border: 2px solid var(--e-acc); color: var(--e-acc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold-soft) 18%, transparent), 0 0 24px color-mix(in srgb, var(--mode-glow) 45%, transparent); }
.ev-map .m-me .ev-i { width: 58%; height: 58%; }
.fx .ev-map .m-me::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1.5px solid var(--e-acc); animation: evPulse 2.4s ease-out infinite; }
@keyframes evPulse { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(2.1); } }
.ev-map .m-dest { width: clamp(20px, 6.5cqw, 28px); height: clamp(20px, 6.5cqw, 28px); background: var(--mode-action); color: var(--mode-on-action); border: 0; }
.ev-map .m-dest .ev-i { width: 60%; height: 60%; }
.ev-map .m-scale { position: absolute; right: 10px; bottom: 9px; display: grid; justify-items: start; gap: 3px; width: var(--w); font: 500 10px/1 var(--mono); color: #d6d0c3; text-shadow: 0 1px 2px #000; }
.ev-map .m-scale i { display: block; width: 100%; height: 5px; border: 1.5px solid #d6d0c3; border-top: 0; }
.ev-map .m-ringl { position: absolute; transform: translate(-50%, -110%); font: 650 12px/1 var(--e-font); color: var(--e-acc); text-shadow: 0 1px 3px #000; }
.ev-map .m-note { position: absolute; left: 10px; bottom: 9px; padding: 3px 7px; border-radius: 6px; background: #000c; border: 1px solid var(--e-edge); font: 500 10px/1 var(--mono); color: var(--e-muted); letter-spacing: .04em; }
.ev-map.is-mini .m-note { display: none; }

/* Listes à cocher, avec la source de chaque élément */
.ev-checks { list-style: none; margin: 0; padding: 0; flex: 1 0 auto; display: flex; flex-direction: column; }
.ev-checks > li { flex: 1 0 auto; max-height: 82px; display: flex; align-items: center; }
.ev-checks > li > .ev-check { width: 100%; }
.ev-chk-s { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--e-sep); }
.ev-chk-s > span:last-child { display: grid; gap: 2px; min-width: 0; }
.ev-chk-s small { font: var(--e-label); letter-spacing: .1em; text-transform: uppercase; color: var(--e-faint); }
.ev-chk-s b { font-weight: 600; color: #fff; }
.ev-chk-g { position: relative; flex: none; width: 58px; }
.ev-chk-g > b { position: absolute; inset: 0; display: flex; align-items: baseline; justify-content: center; padding-top: 20px; font: 300 17px/1 var(--e-font) !important; }
.ev-chk-g > b small { font: 500 11px/1 var(--e-font); letter-spacing: 0; text-transform: none; color: var(--e-muted); }
.ev-t-checklist .ev-checks { margin-bottom: 14px; }
.ev-checks li + li { border-top: 1px solid var(--e-sep); }
.ev-check { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 0; border: 0; background: none; cursor: pointer; text-align: left; font-size: 14.5px; }
.ev-check:hover > .ev-chk-t > span { color: var(--e-acc); }
.ev-chk-t { display: grid; gap: 4px; min-width: 0; }
.ev-box { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 6px; border: 1.5px solid color-mix(in srgb, var(--e-text) 40%, transparent); color: transparent; transition: background .25s, border-color .25s, color .25s, transform .25s var(--e-ease); }
.ev-box .ev-i { width: 15px; height: 15px; stroke-width: 2.4; }
.ev-check.is-on .ev-box { background: var(--e-ok); border-color: transparent; color: #04140c; box-shadow: 0 0 12px color-mix(in srgb, var(--e-ok) 45%, transparent); }
.fx .ev-check:active .ev-box { transform: scale(.86); }
.ev-check.is-on .ev-chk-t > span:first-child { color: var(--e-muted); }
.ev-t-checklist .ev-cr { flex-direction: column; align-items: flex-end; gap: 6px; }
.ev-src { --sc: var(--e-acc); display: inline-flex; align-items: center; gap: 5px; max-width: 100%; min-width: 0; font-size: 11.5px; line-height: 1.25; color: var(--e-muted); }
.ev-src .ev-i { width: 13px; height: 13px; color: var(--sc); flex: none; }
.ev-src b { font-weight: 650; color: var(--sc); white-space: nowrap; }
.ev-src em { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ev-src em::before { content: "· "; }
.ev-src.s-capteur { --sc: var(--e-ok); } .ev-src.s-compteur { --sc: var(--e-water); } .ev-src.s-saison { --sc: #9ecbff; } .ev-src.s-vous { --sc: #e9e2d2; }
.ev-src.s-jarvis { --sc: var(--e-acc); } .ev-src.s-fab { --sc: #e4c48f; } .ev-src.s-regle { --sc: var(--e-warn); }
:root[data-mode="platinum"] .ev-src.s-fab { --sc: #c9d6e8; }

/* Prochaines 48 heures */
.ev-up { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; flex: 1; align-content: space-between; }
.ev-upi { --tc: var(--e-acc); display: grid; grid-template-columns: 38px minmax(0, 1fr) 16px; gap: 12px; align-items: center; width: 100%; padding: 9px 12px 9px 9px; border-radius: 12px; border: 1px solid var(--e-edge); background: var(--e-tile); cursor: pointer; text-align: left; transition: border-color .25s, background .25s, transform .3s var(--e-ease); }
.ev-upi:hover { border-color: var(--e-line2); background: linear-gradient(var(--e-fill2), var(--e-fill2)), var(--e-tile); }
.fx .ev-upi:hover { transform: translateX(3px); }
.ev-upi .ev-ri { width: 38px; height: 38px; color: var(--tc); }
.ev-upi.t-water { --tc: var(--e-water); } .ev-upi.t-warn { --tc: var(--e-warn); } .ev-upi.t-err { --tc: var(--e-err); } .ev-upi.t-gold { --tc: var(--e-acc); }
.ev-upi.is-pin { border-color: color-mix(in srgb, var(--e-water) 40%, transparent); background: linear-gradient(100deg, color-mix(in srgb, var(--e-water) 10%, #0a0a0a), #0a0a0a80 70%); }
.ev-upi.t-err { border-color: color-mix(in srgb, var(--e-err) 35%, transparent); }
.ev-upi-b { display: grid; gap: 1px; min-width: 0; }
.ev-upi-b em { font: 650 11px/1.2 var(--e-font); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--tc); }
.ev-upi-b b { font-size: 14.5px; }
.ev-upi-b small { font-size: 12.5px; }

/* Sécurité en un regard */
.ev-sec-st { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; padding: 12px 14px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--e-warn) 30%, transparent); background: linear-gradient(110deg, color-mix(in srgb, var(--e-warn) 9%, #0a0a0a), #0a0a0a80 70%); }
.ev-sec-st.is-armed { border-color: color-mix(in srgb, var(--e-ok) 32%, transparent); background: linear-gradient(110deg, color-mix(in srgb, var(--e-ok) 10%, #0a0a0a), #0a0a0a80 70%); }
.ev-sec-st > span:nth-child(2) { flex: 1; min-width: 150px; display: grid; gap: 2px; }
.ev-sec-st b { font-size: 16px; }
.ev-sec-ring { position: relative; width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--e-warn); border: 1.5px solid currentColor; background: color-mix(in srgb, currentColor 12%, transparent); }
.ev-sec-st.is-armed .ev-sec-ring { color: var(--e-ok); }
.ev-sec-ring .ev-i { width: 22px; height: 22px; }
.fx .ev-sec-st.is-armed .ev-sec-ring::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 1.5px solid currentColor; animation: evRing 2.8s ease-out infinite; }
@keyframes evRing { from { opacity: .8; transform: scale(1); } to { opacity: 0; transform: scale(1.45); } }
.ev-t-secsum .ev-row > span b { font-size: 14px; }
.ev-t-secsum .ev-row > b { font-size: 13.5px; white-space: nowrap; }

/* Voyage : étapes du circuit */
.ev-stg { padding: 14px 8px 6px; }
.ev-stg ol { position: relative; list-style: none; margin: 0 4%; padding: 0; height: 40px; }
.ev-stg ol::before, .ev-stg ol::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 3px; border-radius: 3px; background: #ffffff17; }
.ev-stg ol::after { right: auto; width: var(--p); background: linear-gradient(90deg, color-mix(in srgb, var(--gold-soft) 45%, transparent), var(--e-acc)); box-shadow: 0 0 12px color-mix(in srgb, var(--mode-glow) 45%, transparent); }
.ev-stg li { position: absolute; left: var(--x); top: 0; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; z-index: 1; }
.ev-stg li i { width: 17px; height: 17px; border-radius: 50%; background: #111; border: 2px solid #ffffff38; }
.ev-stg li.is-done i { background: var(--e-acc); border-color: var(--e-acc); }
.ev-stg li.is-here i { width: 21px; height: 21px; margin-top: -2px; background: #000; border: 3px solid var(--e-acc); box-shadow: 0 0 0 5px color-mix(in srgb, var(--gold-soft) 20%, transparent), 0 0 18px var(--mode-glow); }
.fx .ev-stg li.is-here i { animation: evBeat 2.2s ease-in-out infinite; }
.ev-stg li.is-next i { border-color: var(--e-acc); border-style: dashed; }
.ev-stg li span { font-size: 12px; color: var(--e-muted); white-space: nowrap; }
.ev-stg li.is-here span, .ev-stg li.is-next span { color: var(--e-text); font-weight: 650; }
.ev-stg-f { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--e-sep); }
.ev-stg-f span { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 8px; align-items: center; }
.ev-stg-f .ev-i { grid-row: span 2; color: var(--e-acc); width: 19px; height: 19px; }
.ev-stg-f b { font-size: 15px; }
@container card (max-width: 560px) { .ev-stg li:not(.is-here):not(.is-next):not(:first-child):not(:last-child) span { display: none; } .ev-stg-f { grid-template-columns: minmax(0, 1fr); } }

/* Trajet compact : départ → arrivée, nom, échéance, conditions à l'arrivée */
.ev-trip-s { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.ev-trip-r { display: grid; grid-template-columns: minmax(0, 1fr) minmax(60px, 1.2fr) minmax(0, 1fr); align-items: center; gap: 10px; margin-bottom: 10px; }
.ev-trip-r > span { display: grid; gap: 2px; min-width: 0; }
.ev-trip-r > span:last-child { text-align: right; }
.ev-trip-r small { font: var(--e-label); letter-spacing: .1em; text-transform: uppercase; color: var(--e-faint); }
.ev-trip-r b { font-size: 14px; color: #fff; overflow-wrap: anywhere; }
.ev-trip-l { display: flex !important; align-items: center; gap: 6px; color: var(--e-acc); }
.ev-trip-l i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--e-acc)); }
.ev-trip-l i:last-child { background: repeating-linear-gradient(90deg, var(--e-acc) 0 4px, transparent 4px 8px); opacity: .7; }
.ev-trip-w { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 14px; align-items: center; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--e-sep); }
.ev-trip-w > span { display: grid; gap: 2px; }
.ev-trip-w small { font-size: 12.5px; color: var(--e-muted); }
.ev-trip-w b { font: 300 26px/1 var(--e-font); color: #fff; }
.ev-trip-w > span:last-child b { font: 600 14px/1.3 var(--e-font); }
.ev-trip-n { font: 650 22px/1.15 var(--e-font); letter-spacing: -.015em; }
.ev-trip-x { font-size: 17px; color: #ece6da; }
.ev-trip-d { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--e-muted); margin: 6px 0 10px; }
.ev-trip-d .ev-i { color: var(--e-acc); }
.ev-trip-d b { color: var(--e-text); }
@container card (max-width: 560px) { .ev-trip { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Confort ---------- */
.ev-thermo { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; }
.ev-thermo-r { border-left: 1px solid var(--e-sep); padding-left: 18px; align-self: center; }
@container card (max-width: 540px) { .ev-thermo { grid-template-columns: minmax(0, 1fr); } .ev-thermo-r { border: 0; padding: 0; } }
/* Cadran de thermostat : lunette métallique, verre noir, arc de chauffe */
.ev-dialw { display: flex; flex-direction: column; align-items: center; container: dial / inline-size; }
.ev-dial { display: flex; align-items: center; gap: 14px; }
.ev-dial-g { position: relative; width: min(200px, calc(100cqw - 124px)); aspect-ratio: 1; border-radius: 50%; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
  filter: drop-shadow(0 18px 26px #000) drop-shadow(0 0 22px color-mix(in srgb, var(--mode-glow) 10%, transparent)); }
.ev-dial-g.is-drag { cursor: grabbing; }
/* Carte étroite : boutons plus petits et plus proches, le cadran garde sa place */
@container dial (max-width: 340px) { .ev-dial { gap: 8px; } .ev-dial .ev-round { width: 40px; height: 40px; } .ev-dial-g { width: min(200px, calc(100cqw - 96px)); } .ev-dial-v b { font-size: 40px; } .ev-dial-m { font-size: 10px; letter-spacing: .06em; } }
.ev-dial-g:focus-visible { outline: 2px solid var(--e-acc); outline-offset: 4px; }
.ev-dsvg { display: block; width: 100%; height: 100%; overflow: visible; }
.ev-dsvg .d-bezel { stroke: #ffffff2e; stroke-width: .8; }
.ev-dsvg .d-bezel-in { fill: none; stroke: #000; stroke-width: 2.5; }
.ev-dsvg .d-tk { stroke: var(--e-tick); stroke-width: 1.2; stroke-linecap: round; }
.ev-dsvg .d-tk.is-maj { stroke: var(--e-tick-maj); stroke-width: 1.6; }
.ev-dsvg.is-heat .d-tk.is-on { stroke: #ffa24a; }
.ev-dsvg.is-cool .d-tk.is-on { stroke: #7cc4ff; }
.ev-dsvg.is-hold .d-tk.is-on { stroke: #6ee7b7; }
.ev-dsvg .d-track { fill: none; stroke: #ffffff14; stroke-width: 5; stroke-linecap: round; }
.ev-dsvg .d-val { fill: none; stroke-width: 5; stroke-linecap: round; }
.ev-dsvg .d-val.is-heat { stroke: url(#evd-heat); filter: drop-shadow(0 0 5px #ff8a3daa); }
.ev-dsvg .d-val.is-cool { stroke: url(#evd-cool); filter: drop-shadow(0 0 5px #3d8ff0aa); }
.ev-dsvg .d-val.is-hold { stroke: url(#evd-hold); filter: drop-shadow(0 0 5px #34d39999); }
.ev-dsvg .d-now { stroke: #fff; stroke-width: 2.4; stroke-linecap: round; opacity: .85; }
.ev-dsvg .d-knob { fill: #fff; stroke: #000; stroke-width: 1.5; }
.ev-dsvg .d-knob.is-heat { filter: drop-shadow(0 0 6px #ff8a3d); } .ev-dsvg .d-knob.is-cool { filter: drop-shadow(0 0 6px #3d8ff0); } .ev-dsvg .d-knob.is-hold { filter: drop-shadow(0 0 6px #34d399); }
.ev-dsvg .d-glass { pointer-events: none; }
.ev-dial-v { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; gap: 2px; pointer-events: none; }
.ev-dial-v b { font: 300 46px/1 var(--e-font); letter-spacing: -.04em; color: #fff; text-shadow: 0 0 22px #ffffff26; }
.ev-dial-v b sup { font-size: 15px; font-weight: 500; vertical-align: 24px; margin-left: 2px; color: var(--e-muted); letter-spacing: 0; }
.ev-dial-v small { font-size: 12px; }
.ev-dial-m { display: inline-flex; align-items: center; gap: 5px; font: 650 11px/1 var(--e-font); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.ev-dial-m .ev-i { width: 14px; height: 14px; }
.ev-dial-m.is-heat { color: #ffa24a; } .ev-dial-m.is-cool { color: #7cc4ff; } .ev-dial-m.is-hold { color: var(--e-ok); }
.ev-hot .ev-row { margin-top: 6px; border-top: 1px solid var(--e-sep); }
.ev-trends { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ev-trend + .ev-trend { border-left: 1px solid var(--e-sep); padding-left: 18px; }
.ev-trend .ev-ch { margin-bottom: 8px; }
.ev-trend .ev-ci { width: 34px; height: 34px; }
.ev-trend .ev-big { font-size: 28px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
@container card (max-width: 460px) { .ev-trends { grid-template-columns: minmax(0, 1fr); } .ev-trend + .ev-trend { border: 0; padding: 0; } }
.ev-vent { padding: 4px 0 12px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.ev-vent-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.ev-vent-h b { font-size: 22px; }
.ev-vdots { position: relative; display: flex; justify-content: space-between; align-items: center; height: 26px; }
.ev-vdots::before, .ev-vdots::after { content: ""; position: absolute; left: 11px; right: 11px; top: 50%; height: 3px; margin-top: -1.5px; background: #ffffff1c; border-radius: 3px; }
.ev-vdots::after { right: auto; width: calc((100% - 22px) * var(--p) / 100); background: var(--mode-action); transition: width .5s var(--e-ease); }
.ev-vd { position: relative; z-index: 1; width: 22px; height: 22px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: #3a3a3a; box-shadow: inset 0 0 0 2px #0006; transition: background .3s, transform .2s; }
.ev-vd.is-on { background: var(--mode-action); box-shadow: 0 0 12px color-mix(in srgb, var(--mode-glow) 50%, transparent); }
.ev-vd:hover { transform: scale(1.12); }
.ev-semi { position: relative; width: min(240px, 100%); margin: auto; }
.ev-semi-v { position: absolute; left: 0; right: 0; bottom: 2px; display: grid; justify-items: center; text-align: center; }
.ev-semi-v b { font: 300 26px/1.1 var(--e-font); }
.ev-semi-v span { display: inline-flex; align-items: center; font-size: 13px; color: var(--e-muted); }
.ev-trio { margin-top: auto !important; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--e-sep); text-align: center; }
.ev-trio span { display: grid; justify-items: center; gap: 2px; }
.ev-trio .ev-i { width: 16px; height: 16px; color: var(--e-acc); }
.ev-trio small { font-size: 11.5px; }
.ev-out { display: flex; align-items: center; gap: 14px; margin: 0 0 6px; }
.ev-out b { display: block; font: 300 38px/1.05 var(--e-font); letter-spacing: -.03em; color: #fff; }
.ev-out span { color: var(--e-muted); }
/* Météo actuelle : ciel selon l'heure et les conditions */
.ev-t-wxnow { padding: 0; overflow: hidden; }
.ev-wxhero { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px 22px; align-items: center; padding: 22px 22px 16px; border-radius: inherit; isolation: isolate;
  background: radial-gradient(90% 120% at 18% 0%, #222, transparent 60%), linear-gradient(180deg, #111, #050505); }
.ev-wxhero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .9; pointer-events: none; }
.ev-wxhero.sky-d::before { background: radial-gradient(70% 90% at 16% 10%, #f5a5243a, transparent 60%), linear-gradient(180deg, #16120b, #050505 80%); }
.ev-wxhero.sky-p::before { background: radial-gradient(70% 90% at 16% 10%, #f5a52426, transparent 60%), linear-gradient(180deg, #14130f, #060606 80%); }
.ev-wxhero.sky-c::before, .ev-wxhero.sky-f::before { background: linear-gradient(180deg, #16181b, #060606 80%); }
.ev-wxhero.sky-r::before, .ev-wxhero.sky-w::before { background: radial-gradient(80% 90% at 20% 0%, #4f86b826, transparent 60%), linear-gradient(180deg, #101318, #050505 80%); }
.ev-wxhero.sky-n::before, .ev-wxhero.is-night::before { background: radial-gradient(70% 90% at 18% 6%, #8fb8e01f, transparent 60%), radial-gradient(1.2px 1.2px at 62% 18%, #fff9, transparent), radial-gradient(1px 1px at 78% 30%, #fff7, transparent), radial-gradient(1px 1px at 88% 12%, #fff8, transparent), radial-gradient(1px 1px at 46% 10%, #fff6, transparent), linear-gradient(180deg, #0b0e15, #040404 85%); }
:root[data-mode="platinum"] .ev-wxhero { background: linear-gradient(180deg, #12151b, #050506); }
.ev-wxh-m { display: flex; align-items: center; gap: 16px; min-width: 0; }
.ev-wxh-t { display: grid; gap: 3px; min-width: 0; }
.ev-wxh-t small { display: inline-flex; align-items: center; gap: 4px; }
.ev-wxh-t b { font: 250 76px/.95 var(--e-font); letter-spacing: -.05em; color: #fff; text-shadow: 0 0 30px #ffffff1f; }
.ev-wxh-t span { font-size: 18px; color: #f3ede1; }
.ev-wxh-t em { font-style: normal; font-size: 13px; color: var(--e-muted); }
.ev-wxh-t em i { font-style: normal; margin: 0 6px; opacity: .6; }
.ev-wxh-s { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ev-wxt { display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 8px; row-gap: 1px; align-items: center; padding: 10px 10px 9px; border-radius: 12px; background: #ffffff08; border: 1px solid var(--e-edge); backdrop-filter: blur(6px); min-width: 0; }
.ev-wxt-i { grid-row: span 3; align-self: start; color: var(--e-acc); }
.ev-wxt-i .ev-i { width: 19px; height: 19px; }
.ev-wxt small { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-wxt b { font-size: 16px; white-space: nowrap; }
.ev-wxt em { font-style: normal; font-size: 11.5px; color: var(--e-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-compass { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--gold-soft) 50%, transparent); }
.ev-compass .ev-i { width: 13px; height: 13px; transform: rotate(calc(var(--a) - 45deg)); fill: currentColor; transition: transform .8s var(--e-ease); }
.ev-wxh-f { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--e-faint); }
@container card (max-width: 640px) { .ev-wxhero { grid-template-columns: minmax(0, 1fr); } }
@container card (max-width: 420px) { .ev-wxh-s { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ev-wxh-t b { font-size: 58px; } .ev-wx.is-xl { width: 92px; height: 92px; } .ev-wxhero { padding: 18px 14px 14px; } }

/* Prévisions horaires : courbe de température et pictogrammes */
.ev-hrs { overflow-x: auto; scrollbar-width: none; margin: 0 -4px; padding: 0 4px 4px; }
.ev-hrs-in { position: relative; min-width: calc(var(--n) * 50px); }
.ev-hrs-cw { position: relative; height: 72px; }
.ev-hrs-c { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ev-hrs-a { opacity: .16; }
.ev-hrs-l { fill: none; stroke-width: 2.4; stroke-linecap: round; filter: drop-shadow(0 0 6px #ffffff22); }
.fx .ev-card.is-new .ev-hrs-l { stroke-dasharray: 1400; animation: evDraw2 1.6s var(--e-ease) both .15s; }
@keyframes evDraw2 { from { stroke-dashoffset: 1400; } to { stroke-dashoffset: 0; } }
.ev-hrs-lb span { position: absolute; transform: translate(-50%, -100%); font: 650 13px/1 var(--e-font); color: var(--e-text); text-shadow: 0 1px 4px #000; }
.ev-hrs-g { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.ev-hrs-g > div { position: relative; display: grid; justify-items: center; gap: 5px; padding: 8px 2px 6px; border-radius: 12px; }
.ev-hrs-g > div.is-now { background: linear-gradient(180deg, color-mix(in srgb, var(--gold-soft) 14%, transparent), transparent); }
.ev-hrs-g > div.is-now small { color: var(--e-acc); font-weight: 650; }
.ev-hrs-g small { font-size: 12px; white-space: nowrap; }
.ev-hp { width: 6px; height: 26px; border-radius: 4px; background: #ffffff10; display: flex; align-items: flex-end; overflow: hidden; }
.ev-hp i { display: block; width: 100%; border-radius: inherit; background: linear-gradient(180deg, #9fd0ff, #3d8ff0); }
.ev-hrs-g em { font-style: normal; font-size: 11.5px; color: #8fc4ff; }
.ev-hsun { display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; border-radius: 999px; font-size: 10.5px; font-weight: 650; color: #ffc44f; background: #ffc44f14; border: 1px solid #ffc44f40; white-space: nowrap; }
.ev-hsun .ev-i { width: 12px; height: 12px; }

/* Prévisions sur 5 jours : plages colorées */
.ev-days { flex: 1; display: grid; gap: 2px; align-content: space-around; }
.ev-dr { display: grid; grid-template-columns: minmax(84px, 1.1fr) 36px 52px 34px minmax(80px, 2.4fr) 34px; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; }
.ev-dr + .ev-dr { border-top: 1px solid #ffffff0b; }
.ev-dr.is-on { background: var(--e-fill2); border-color: transparent; }
.ev-dr.is-on + .ev-dr { border-color: transparent; }
.ev-dr > b { font-size: 15px; }
.ev-dpop { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--e-faint); }
.ev-dpop .ev-i { width: 12px; height: 12px; }
.ev-dpop.is-hi { color: #8fc4ff; }
.ev-dt { font-size: 15px; font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; }
.ev-dt.is-lo { color: var(--e-muted); font-weight: 500; }
.ev-drg { position: relative; height: 6px; border-radius: 6px; background: #ffffff10; }
.ev-drg i { position: absolute; top: 0; bottom: 0; border-radius: 6px; box-shadow: 0 0 10px #ffffff1a; }
.fx .ev-card.is-new .ev-drg i { animation: evGrow .9s var(--e-ease) both .2s; transform-origin: left; }
.ev-drg em { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #fff; border: 2px solid #000; box-shadow: 0 0 8px #fff8; }
@container card (max-width: 460px) { .ev-dr { grid-template-columns: minmax(82px, 1fr) 28px 28px minmax(56px, 2fr) 28px; gap: 8px; padding: 8px 4px; } .ev-dpop { display: none; } .ev-dr > b { font-size: 13.5px; } .ev-dr .ev-wx { width: 28px; height: 28px; } }

/* Soleil et lune */
.ev-sunnext { display: grid; text-align: right; }
.ev-sunnext b { font-size: 24px; letter-spacing: -.01em; }
.ev-sunwrap { position: relative; flex: none; border-radius: 12px; overflow: hidden; border: 1px solid var(--e-edge); }
.ev-sunarc { display: block; width: 100%; height: auto; }
.ev-sunarc .s-sky0 { stop-color: #05070c; }
.ev-sunarc .s-sky1 { stop-color: #241912; }
.ev-sunarc .s-sky2 { stop-color: #6e4523; }
:root[data-mode="platinum"] .ev-sunarc .s-sky1 { stop-color: #2a3346; }
:root[data-mode="platinum"] .ev-sunarc .s-sky2 { stop-color: #8aa2c4; }
:root[data-mode="base"] .ev-sunarc .s-sky1 { stop-color: #2a2a2a; }
:root[data-mode="base"] .ev-sunarc .s-sky2 { stop-color: #777; }
.ev-sunarc .s-glow0 { stop-color: #ffb347; stop-opacity: .55; }
.ev-sunarc .s-glow1 { stop-color: #ffb347; stop-opacity: 0; }
.ev-sunarc .s-gl.is-night { opacity: .25; }
.ev-sunarc .s-sea0 { stop-color: #120f0b; }
.ev-sunarc .s-sea1 { stop-color: #020202; }
.ev-sunarc .s-refl { stroke: #ffc24a; stroke-width: 2; stroke-linecap: round; opacity: .45; }
:root[data-mode="platinum"] .ev-sunarc .s-glow0 { stop-color: #cfe0ff; }
.ev-sunarc .s-arc { fill: none; stroke: #ffffff59; stroke-width: 2.4; stroke-dasharray: 9 9; }
.ev-sunarc .s-arc.is-done { stroke: var(--e-acc); stroke-width: 3; }
.ev-sunarc .s-hz { stroke: var(--e-acc); stroke-width: 1.4; opacity: .7; }
.ev-sunarc .s-drop { stroke: var(--e-acc); stroke-width: 1.4; stroke-dasharray: 5 6; opacity: .7; }
.ev-sunarc .s-end { fill: var(--e-acc); stroke: #0008; stroke-width: 2; }
.ev-sundot { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: radial-gradient(circle, #fff7d6, #ffd35a 50%, #f5a524); box-shadow: 0 0 24px 6px #ffc24a99; }
.ev-sundot b { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); padding: 4px 9px; border-radius: 8px; font-size: 13px; white-space: nowrap; color: var(--e-acc); background: #0a0908e6; border: 1px solid var(--e-line2); }
.ev-sunfoot { display: grid; grid-template-columns: 1fr 1.4fr 1fr; text-align: center; margin-top: 10px; }
.ev-sunfoot span { display: grid; gap: 2px; }
.ev-sunfoot b { font-size: 19px; }
.ev-sunfoot .is-mid { border-inline: 1px solid #ffffff12; }
.ev-sunbar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; margin-top: auto; padding-top: 16px; }
.ev-sunbar small { font: var(--e-label); letter-spacing: .1em; text-transform: uppercase; color: var(--e-faint); }
.ev-sunbar .ev-bar { margin: 7px 0 0; }
.ev-sunbar b { font: 400 16px/1 var(--e-font); color: #fff; }
.ev-sunpos { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 14px; align-items: center; }
@container card (max-width: 400px) { .ev-sunpos { grid-template-columns: minmax(0, 1fr); } }
.ev-dome { max-width: 380px; margin: 0 auto; }
.ev-dome { width: 100%; display: block; }
.ev-dome .d-sky { fill: #ffffff07; stroke: #ffffff2e; stroke-width: 1; }
.ev-dome .d-ground { fill: #ffffff05; stroke: #ffffff40; stroke-width: 1; }
.ev-dome .d-mer { fill: none; stroke: #ffffff1f; stroke-width: 1; stroke-dasharray: 4 5; }
.ev-dome .d-ray { stroke: var(--e-acc); stroke-width: 1.4; stroke-dasharray: 5 5; }
.ev-dome .d-drop { stroke: #ffffff40; stroke-width: 1; stroke-dasharray: 3 4; }
.ev-dome .d-foot { fill: var(--e-acc); }
.ev-dome .d-sun { fill: #ffcf4d; filter: drop-shadow(0 0 8px #ffc24a); }
.ev-dome .d-sun.is-down { fill: #8b7d5d; filter: none; }
.ev-dome text { font: 600 13px var(--e-font); fill: var(--e-muted); }
.ev-dome text.d-s { fill: var(--e-acc); }
.ev-moonw { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 18px; align-items: center; }
.ev-moon { width: 130px; height: 130px; filter: drop-shadow(0 0 18px #fff3d633); }
.ev-moon .m-dark { fill: #17171a; stroke: #ffffff14; }
.ev-moon .m-crater circle { fill: #00000016; }
@container card (max-width: 360px) { .ev-moonw { grid-template-columns: 90px minmax(0, 1fr); } .ev-moon { width: 90px; height: 90px; } }

/* ---------- Énergie ---------- */
/* Flux d'énergie : scène en croix sur verre noir (photo du lieu en fond, très assombrie par superposition),
   nœuds en pastilles de métal, conduits tracés selon la position réelle des nœuds (HOOK.flow), particules. */
.ev-t-flow { display: flex; flex-direction: column; }
.ev-flow {
  position: relative; flex: 1; min-height: 300px; display: grid; gap: 14px 10px; padding: 14px 6px 10px; margin: 0 -6px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-rows: auto 1fr auto;
  grid-template-areas: "top top top" "l core r" "b b b"; align-items: center; border-radius: 14px; isolation: isolate;
}
.ev-flow-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: inherit; }
.ev-flow-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-flow-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 70% at 50% 50%, rgb(0 0 0 / .8), rgb(0 0 0 / .93) 70%), linear-gradient(180deg, #000d, #000a 40%, #000f); }
.ev-flow-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; overflow: visible; pointer-events: none; }
.ev-fc { fill: none; stroke: rgb(255 255 255 / .09); stroke-width: 1.5; }
.ev-fg { fill: none; stroke-linecap: round; opacity: .13; }
.ev-fl { fill: none; stroke-width: 1.3; opacity: .55; }
.ev-fp { fill: none; stroke-width: 3.4; stroke-linecap: round; stroke-dasharray: 0 22; filter: drop-shadow(0 0 3px currentColor); }
.fx .ev-fp { animation: evFlow var(--sp, 1.6s) linear infinite; }
@keyframes evFlow { to { stroke-dashoffset: -44; } }
:root[data-mode="base"] .ev-fp { filter: none; }
:root[data-mode="base"] .ev-fg { display: none; }
.ev-flow-top { grid-area: top; display: flex; justify-content: center; gap: clamp(12px, 5cqi, 56px); }
.ev-flow-l { grid-area: l; justify-self: start; } .ev-flow-r { grid-area: r; justify-self: end; } .ev-flow-b { grid-area: b; justify-self: center; }
.ev-flow-core { grid-area: core; width: 62px; height: 62px; margin: 0 clamp(10px, 4cqi, 40px); border-radius: 50%; display: grid; place-items: center; color: var(--e-acc);
  border: 1px solid transparent; background: radial-gradient(circle at 50% 30%, #2a2723, #0b0b0b 70%) padding-box, var(--e-bezel-hi) border-box;
  box-shadow: 0 0 0 6px rgb(0 0 0 / .55), 0 0 34px color-mix(in srgb, var(--mode-glow) 26%, transparent), inset 0 1px 0 rgb(255 255 255 / .14); }
.ev-flow-core .ev-i { width: 26px; height: 26px; filter: drop-shadow(0 0 6px var(--mode-glow)); }
.fx .ev-flow-core { animation: evBreath 3.6s ease-in-out infinite; }
@keyframes evBreath { 50% { box-shadow: 0 0 0 6px rgb(0 0 0 / .55), 0 0 50px color-mix(in srgb, var(--mode-glow) 40%, transparent), inset 0 1px 0 rgb(255 255 255 / .14); } }
:root[data-mode="base"] .ev-flow-core { box-shadow: none; animation: none; }
.ev-fn { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ev-fn.is-top { flex-direction: column-reverse; text-align: center; gap: 8px; }
.ev-fn.is-left { flex-direction: row-reverse; text-align: right; }
.ev-fn-ic { position: relative; flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: var(--e-faint);
  border: 1px solid transparent; background: var(--e-disc) padding-box, linear-gradient(160deg, rgb(255 255 255 / .28), rgb(255 255 255 / .05) 50%, rgb(255 255 255 / .16)) border-box;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .1), 0 6px 16px #000b; transition: color .4s, box-shadow .4s; }
.ev-fn-ic .ev-i { width: 23px; height: 23px; }
.ev-fn.is-on .ev-fn-ic { color: var(--e-acc); background: var(--e-disc) padding-box, linear-gradient(160deg, color-mix(in srgb, currentColor 80%, #fff 10%), color-mix(in srgb, currentColor 14%, transparent) 50%, color-mix(in srgb, currentColor 55%, transparent)) border-box;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .12), 0 6px 16px #000b, 0 0 22px color-mix(in srgb, currentColor 22%, transparent); }
.ev-fn.is-on.t-grid .ev-fn-ic, .ev-fn.is-on.t-load .ev-fn-ic { color: #f1ece2; }
.ev-fn-ic.is-bat { width: 76px; height: 76px; background: none; border: 0; box-shadow: none; }
.ev-fn-ic.is-bat .ev-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.ev-fn-soc { position: relative; font: 300 19px/1 var(--e-font); color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.ev-fn-soc .ev-u { font-size: 11px; }
.ev-fn-t { display: grid; gap: 2px; min-width: 0; }
.ev-fn-t > small { font: var(--e-label); letter-spacing: .12em; text-transform: uppercase; color: var(--e-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 22ch; }
.ev-fn-v { font: 300 27px/1.05 var(--e-font); color: #fff; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; text-shadow: 0 0 22px rgb(255 255 255 / .12); }
.ev-fn-v.is-na { color: var(--e-faint); }
.ev-fn-s { font-style: normal; font-size: 12px; color: var(--e-muted); display: inline-flex; align-items: center; justify-content: inherit; white-space: nowrap; }
.ev-fn.is-top .ev-fn-s, .ev-fn.is-top .ev-fn-t { justify-items: center; justify-content: center; }
.ev-fn.is-left .ev-fn-t { justify-items: end; }
.ev-fn-s .ev-dot { width: 6px; height: 6px; margin-right: 6px; }
.ev-flow-f { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px 0; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--e-sep); }
.ev-flow-f > span { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; padding: 0 12px; }
.ev-flow-f > span + span { border-left: 1px solid var(--e-sep); }
.ev-flow-f .ev-i { grid-row: span 2; color: var(--e-acc); }
.ev-flow-f span > small { font: var(--e-label); letter-spacing: .1em; text-transform: uppercase; color: var(--e-faint); white-space: nowrap; }
.ev-flow-f b { font: 400 17px/1.2 var(--e-font); color: #fff; font-variant-numeric: tabular-nums; }
@container card (max-width: 520px) {
  .ev-flow { gap: 18px 4px; min-height: 0; }
  .ev-flow-top { gap: 10px; }
  .ev-fn-ic { width: 42px; height: 42px; } .ev-fn-ic .ev-i { width: 19px; height: 19px; }
  .ev-fn-ic.is-bat { width: 64px; height: 64px; }
  .ev-fn-v { font-size: 20px; }
  .ev-fn.is-left, .ev-fn.is-right { flex-direction: column; text-align: center; gap: 6px; }
  .ev-fn.is-left .ev-fn-t, .ev-fn.is-right .ev-fn-t { justify-items: center; }
  .ev-fn-t > small { max-width: 13ch; white-space: normal; overflow: visible; line-height: 1.3; }
  .ev-flow-core { width: 42px; height: 42px; margin: 0 6px; }
  .ev-flow-f { grid-template-columns: 1fr 1fr; }
  .ev-flow-f > span { padding: 4px 8px; }
  .ev-flow-f > span:nth-child(odd) { border-left: 0; }
}
.ev-ringw { flex: 1; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: center; }
.ev-ringg { position: relative; width: 150px; }
.ev-ring { display: block; width: 100%; }
.ev-ringv { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ev-ringv b { font: 300 34px/1 var(--e-font); }
.ev-auton { margin-top: 8px; display: grid; gap: 2px; }
.ev-auton b { font-size: 17px; line-height: 1.25; }
@container card (max-width: 330px) { .ev-ringw { grid-template-columns: minmax(0, 1fr); justify-items: center; } .ev-ringr { width: 100%; } }
.ev-tot { display: grid; justify-items: end; gap: 2px; }
.ev-tot > small { font: var(--e-label); letter-spacing: .12em; text-transform: uppercase; color: var(--e-faint); }
.ev-tot b { font: 300 24px/1 var(--e-font); color: #fff; letter-spacing: -.02em; }
.ev-cons { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 4px; }
.ev-con { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; column-gap: 12px; row-gap: 7px; align-items: center; padding: 7px 0; }
.ev-con .ev-ri { grid-row: span 2; align-self: center; }
.ev-con-n { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.ev-con-n b { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-con-n small { font-size: 12px; color: var(--e-faint); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ev-con-v { font: 400 16px/1 var(--e-font); color: #fff; font-variant-numeric: tabular-nums; text-align: right; }
.ev-con .ev-bar { grid-column: 2 / -1; margin-bottom: 4px; }
.ev-con.is-off { opacity: .55; }
.ev-con.is-off .ev-bar i::after { display: none; }
@container card (max-width: 340px) { .ev-con-n { flex-direction: column; gap: 1px; } }
.ev-t-chips { padding: 12px; }
.ev-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ev-chip { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; }
.ev-chip + .ev-chip { border-left: 1px solid var(--e-sep); }
.ev-chip > span:last-child { display: grid; gap: 2px; }
.ev-chip b { display: inline-flex; align-items: center; font-size: 16px; }
@container card (max-width: 560px) { .ev-chips { grid-template-columns: minmax(0, 1fr); } .ev-chip + .ev-chip { border-left: 0; border-top: 1px solid var(--e-sep); } }
.ev-packs { flex: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.ev-pack { display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: 14px; border: 1px solid var(--e-edge); background: var(--e-tile); }
.ev-pack-h { display: flex; align-items: center; gap: 16px; }
.ev-pack-g { position: relative; flex: none; width: 104px; }
.ev-pack-v { position: absolute; inset: 0; display: grid; place-content: center; font: 300 25px/1 var(--e-font); color: #fff; letter-spacing: -.03em; }
.ev-pack-t { display: grid; justify-items: start; gap: 7px; min-width: 0; }
.ev-pack-t h6 { font: 650 16px/1.2 var(--e-font); color: #fff; }
.ev-pack-c { font-size: 12px; color: var(--e-faint); font-variant-numeric: tabular-nums; }
.ev-pack-s { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--e-sep); }
.ev-pack-s > span { display: grid; gap: 3px; padding: 10px 8px 2px 0; }
.ev-pack-s > span:nth-child(n+4) { border-top: 1px solid var(--e-sep); }
.ev-pack-s span > small { font: var(--e-label); letter-spacing: .06em; text-transform: uppercase; color: var(--e-faint); }
.ev-pack-s b { font: 400 16px/1.2 var(--e-font); color: #fff; font-variant-numeric: tabular-nums; }
.ev-flag .ev-dot { width: 6px; height: 6px; margin-right: 6px; }
.ev-fwx { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.2fr; gap: 16px; align-items: center; }
.ev-fwx > div { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ev-fwx > div + div { border-left: 1px solid var(--e-sep); padding-left: 16px; }
.ev-fwx > div:nth-child(2), .ev-fwx > div:nth-child(3) { display: grid; gap: 6px; }
.ev-fwx b { font-size: 18px; }
.ev-fwx span { display: grid; gap: 2px; }
@container card (max-width: 700px) { .ev-fwx { grid-template-columns: 1fr 1fr; } .ev-fwx > div:nth-child(3) { border-left: 0; padding-left: 0; } }
@container card (max-width: 400px) { .ev-fwx { grid-template-columns: minmax(0, 1fr); } .ev-fwx > div + div { border-left: 0; padding-left: 0; } }

/* ---------- Eau ---------- */
.ev-tanks { flex: 1 1 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; }
.ev-tank { display: grid; justify-items: center; gap: 4px; padding: 0 8px; }
.ev-tank + .ev-tank { border-left: 1px solid var(--e-sep); }
.ev-tank p { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14.5px; }
.ev-tank p .ev-i { color: var(--e-water); width: 18px; height: 18px; }
.ev-gw { position: relative; width: min(168px, 100%); margin: 4px 0; }
.ev-gw b { position: absolute; inset: 0; display: grid; place-content: center; font: 300 26px/1 var(--e-font); }
.ev-tank small { font-size: 14px; color: var(--e-text); font-weight: 600; font-variant-numeric: tabular-nums; }
.ev-tank .ev-bar { width: 72%; margin-top: 6px; }
@container card (max-width: 400px) { .ev-gw b { font-size: 20px; } .ev-tank p { font-size: 12.5px; } .ev-tank small { font-size: 12px; } }
.ev-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ev-level { display: flex; gap: 12px; align-items: center; padding: 6px 4px; }
.ev-level + .ev-level { border-left: 1px solid var(--e-sep); padding-left: 16px; }
.ev-level > div { flex: 1; display: grid; gap: 4px; }
.ev-level p { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.ev-level p span { color: var(--e-muted); }
.ev-level strong { font-size: 22px; }
.ev-level .ev-ri { color: var(--tc); }
@container card (max-width: 620px) { .ev-levels { grid-template-columns: minmax(0, 1fr); } .ev-level + .ev-level { border-left: 0; padding-left: 4px; border-top: 1px solid var(--e-sep); } }
.ev-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ev-duo > span { display: grid; grid-template-columns: 22px 1fr; column-gap: 8px; align-items: center; }
.ev-duo > span + span { border-left: 1px solid var(--e-sep); padding-left: 14px; }
.ev-duo .ev-i { grid-row: span 2; color: var(--e-acc); }
.ev-duo b { font-size: 19px; }
.ev-duo.is-foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--e-sep); }
.ev-duo.is-foot b { color: var(--e-acc); }
/* Instruments (pompes, gicleurs, séparateur) : deux mesures en grand, centrées dans la hauteur disponible */
.ev-inst { flex: 1; display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.ev-inst-i { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 6px 8px; }
.ev-inst-i + .ev-inst-i { border-left: 1px solid var(--e-sep); }
.ev-inst-i .ev-ri { width: 40px; height: 40px; margin-bottom: 4px; }
.ev-inst-i small { font: var(--e-label); letter-spacing: .1em; text-transform: uppercase; color: var(--e-faint); }
.ev-inst-i b { font: 300 28px/1.05 var(--e-font); color: #fff; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
/* Températures par point : valeur et réglette (−30 à +60 °C) colorée selon la température */
.ev-temps { flex: 1; display: flex; flex-direction: column; justify-content: space-around; }
.ev-temp { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 12px; row-gap: 8px; align-items: center; padding: 9px 0; border-top: 1px solid var(--e-sep); }
.ev-temp:first-child { border-top: 0; }
.ev-temp > span:nth-child(2) { display: grid; gap: 1px; min-width: 0; }
.ev-temp small { font-size: 12.5px; color: var(--e-muted); }
.ev-temp b { font: 300 22px/1.1 var(--e-font); color: #fff; font-variant-numeric: tabular-nums; }
.ev-tscale { grid-column: 2; position: relative; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #4f6cff55, #66b2ff55 24%, #7fe0c055 37%, #ffd25c55 49%, #ff8a3d55 60%, #ff5f3d55); }
.ev-tscale i { position: absolute; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--tc); border: 2px solid #050505; box-shadow: 0 0 10px var(--tc); }
/* Compteur : jauge d'instrument et valeur */
.ev-meter { flex: 1; display: grid; grid-template-columns: minmax(84px, 118px) minmax(0, 1fr); gap: 16px; align-items: center; }
.ev-meter-g { position: relative; }
.ev-meter-p { position: absolute; inset: 0; display: grid; place-content: center; font: 400 17px/1 var(--e-font); color: #fff; }
.ev-meter-v { display: grid; gap: 2px; }
.ev-meter-v > small { font-size: 12.5px; color: var(--e-muted); }
.ev-meter-v .ev-big { margin: 0; font-size: 34px; }
.ev-okline { display: flex; flex: 1 0 auto; align-items: center; gap: 10px; font-weight: 650; font-size: 16px; color: var(--e-ok); margin-bottom: 14px; }
.ev-okline .ev-i { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: var(--e-ok); color: #04140c; stroke-width: 2.4; }
.ev-sensors { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(92px, 100%), 1fr)); gap: 10px; }
.ev-sensors > span { min-width: 0; overflow-wrap: anywhere; }
.ev-sensors span { display: grid; grid-template-columns: 22px 1fr; column-gap: 8px; }
.ev-sensors .ev-i { grid-row: span 2; color: var(--e-acc); }
.ev-sensors b { display: inline-flex; align-items: center; font-size: 13.5px; }
.ev-gaugew { flex: 1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px; align-items: center; }
.ev-est { display: grid; gap: 2px; }
.ev-est b + small { margin-top: 10px; }
.ev-est b { font-size: 21px; }
.ev-usage .ev-big { font-size: 30px; }
.ev-fill { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 14px; align-items: center; }
.ev-fill .ev-big { font-size: 28px; }
.ev-fill .ev-btn { margin-top: 12px; }
@container card (max-width: 460px) { .ev-fill { grid-template-columns: minmax(0, 1fr); } }
.ev-pts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; }
.ev-pts-l { display: grid; gap: 10px; align-content: start; }
.ev-pt { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--e-edge); background: var(--e-tile); align-items: start; }
.ev-ptn { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: currentColor; }
.ev-ptn.t-water { background: #3d8ff0; color: #fff; } .ev-ptn.t-ok { background: #22a06b; color: #fff; } .ev-ptn.t-muted { background: #6b7178; color: #fff; } .ev-ptn.t-gold { background: #c99a45; color: #1c1408; }
.ev-pt h6 { font: 650 15px/1.25 var(--e-font); }
.ev-pt p { font-size: 13.5px; margin: 2px 0 4px; }
.ev-pt-a { display: grid; gap: 6px; justify-items: stretch; }
@container evs (max-width: 760px) { .ev-pts { grid-template-columns: minmax(0, 1fr); } }
@container card (max-width: 520px) { .ev-pt { grid-template-columns: 34px minmax(0, 1fr); } .ev-pt-a { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; } .ev-pt-a .ev-link { grid-column: 1 / -1; justify-self: start; } }

/* ---------- Sécurité : ouvertures en fiches, groupées par zone ---------- */
.ev-opc { font-size: 13px; color: var(--e-muted); white-space: nowrap; }
.ev-opc b { color: var(--e-text); font-size: 15px; }
.ev-opb { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; padding: 11px 14px; border-radius: 14px; border: 1px solid color-mix(in srgb, currentColor 35%, transparent);
  background: linear-gradient(100deg, color-mix(in srgb, currentColor 12%, #0a0a0a), #0a0a0a99 72%); }
.ev-opb > span:nth-child(2) { flex: 1; min-width: 160px; display: grid; gap: 2px; color: var(--e-text); }
.ev-opb b { font-size: 14.5px; }
.ev-opb-i { width: 36px; height: 36px; }
.ev-opb-i .ev-i { width: 19px; height: 19px; }
.fx .ev-opb.t-warn .ev-opb-i { animation: evBeat 2.4s ease-in-out infinite; }
.ev-opz + .ev-opz { margin-top: 14px; }
.ev-opz-h { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font: 700 11.5px/1 var(--e-font); letter-spacing: .12em; text-transform: uppercase; color: var(--e-muted); }
.ev-opz-h span { padding: 2px 7px; border-radius: 999px; background: #ffffff10; font-size: 10.5px; letter-spacing: 0; color: var(--e-text); }
.ev-opz-h::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, #ffffff17, transparent); }
.ev-ots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 8px; }
.ev-ot { --tc: var(--e-ok); position: relative; display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 10px 9px 9px; border-radius: 14px;
  border: 1px solid var(--e-edge); background: var(--e-tile); box-shadow: inset 0 1px 0 #ffffff0d; transition: border-color .3s, transform .35s var(--e-ease), box-shadow .3s; }
.ev .ev-ot { color: var(--e-text); }
.ev-ot:hover { border-color: var(--e-line2); }
.fx .ev-ot:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 #ffffff0d, 0 10px 24px #0009; }
.ev-ot.t-gold { --tc: var(--e-acc); }
.ev-ot.t-warn { --tc: var(--e-warn); border-color: color-mix(in srgb, var(--e-warn) 40%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--e-warn) 9%, #12100b), #080808); }
.ev-ot-ph { position: relative; margin: 0; width: 58px; height: 58px; border-radius: 11px; overflow: hidden; background: radial-gradient(90% 90% at 30% 20%, #191919, #050505); border: 1px solid var(--e-edge); }
.ev-ot-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-ot-ph::after { content: ""; position: absolute; right: 5px; bottom: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--tc); box-shadow: 0 0 0 2px #000, 0 0 8px var(--tc); }
.ev-ot-pha { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 3px; color: color-mix(in srgb, var(--gold-soft) 70%, transparent); }
.ev-ot-pha .ev-i { width: 20px; height: 20px; stroke-width: 1.3; }
.ev-ot-pha small { font: 600 7px/1.15 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--e-faint); text-align: center; max-width: 50px; }
.ev-ot-b { display: grid; gap: 2px; min-width: 0; }
.ev-ot-b b { font-size: 14.5px; line-height: 1.2; }
.ev-ot-st { display: inline-flex; align-items: center; font-size: 13px; font-weight: 650; color: var(--tc); }
.ev-ot-st .ev-dot { width: 7px; height: 7px; margin-right: 6px; }
.ev-ot-b small { font-size: 11.5px; color: var(--e-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-ot-lk { display: grid; justify-items: center; gap: 3px; min-width: 64px; padding: 7px 6px; border-radius: 11px; cursor: pointer; border: 1px solid var(--e-line2); background: var(--e-metal); color: var(--e-acc); font: 650 10.5px/1 var(--e-font); transition: background .25s, border-color .25s, color .25s; }
.ev-ot-lk .ev-i { width: 18px; height: 18px; }
.ev-ot-lk:hover { border-color: var(--e-acc); background: color-mix(in srgb, var(--gold-soft) 10%, transparent); }
.ev-ot-lk.is-on { color: var(--e-ok); border-color: color-mix(in srgb, var(--e-ok) 40%, transparent); background: color-mix(in srgb, var(--e-ok) 8%, transparent); }
.ev-ot-lk[disabled] { opacity: .7; cursor: default; }
.ev-t-openings > .ev-btn.is-wide { margin-top: 14px; }
.ev-empty { flex: 1; align-content: center; display: grid; justify-items: center; gap: 6px; text-align: center; padding: 30px 16px; border-radius: 12px; border: 1px dashed var(--e-line2); }
.ev-empty .ev-i { width: 30px; height: 30px; color: var(--e-acc); }
.ev-empty b { font-size: 15px; }
/* Caméras : mosaïque 2 × 2 dans les cartes étroites (une rangée raisonnable), plus large ailleurs */
.ev-cams { flex: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(118px, 100%), 1fr)); gap: 8px; align-content: start; }
.ev-cams:has(> figure:nth-child(2)) { grid-template-columns: repeat(auto-fill, minmax(min(118px, 46%), 1fr)); }
.ev-cams figure { position: relative; margin: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: radial-gradient(90% 100% at 30% 0%, #191919, #050505); border: 1px solid var(--e-edge); }
.ev-cams img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-cams figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 1px; padding: 22px 9px 8px; background: linear-gradient(180deg, #0000, #000d); font-size: 12.5px; line-height: 1.2; }
.ev-cams figcaption span { font-size: 11px; color: var(--e-muted); }
.ev-cams figure::after { content: "● EXEMPLE"; position: absolute; top: 9px; left: 10px; font: 600 9.5px/1 var(--mono); letter-spacing: .1em; color: #ff9b8f; text-shadow: 0 1px 3px #000; }
.ev-tl { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; }
.ev-tl > li { flex: 1 0 auto; max-height: 104px; }
.ev-tl li { position: relative; display: grid; grid-template-columns: 66px minmax(0, 1fr); gap: 10px; padding: 0 0 14px 22px; }
.ev-tl li::before { content: ""; position: absolute; left: 4px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.ev-tl li::after { content: ""; position: absolute; left: 8.5px; top: 17px; bottom: 0; width: 1px; background: #ffffff1f; }
.ev-tl li:last-child::after { display: none; }
.ev-tl time { font: 600 14px/1.3 var(--e-font); color: var(--e-text); white-space: nowrap; }
.ev-tl span { display: grid; gap: 1px; color: var(--e-text); }
.ev-tl b { font-size: 14.5px; }
.ev-t-toggle { padding: 12px 18px; }
.ev-tog .ev-ch { margin: 0; }
.ev-ecc { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.ev-ecc > div { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--e-edge); background: var(--e-tile); }
.ev-ecc > div.is-on { border-color: var(--e-line2); }
.ev-ecc .ev-ri { width: 40px; height: 40px; }
.ev-ecc span:last-child { display: grid; }
.ev-ecc b { font-size: 24px; line-height: 1.1; }
@container card (max-width: 760px) { .ev-ecc { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container card (max-width: 420px) { .ev-ecc { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ev-ecw { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--e-muted); }
.ev-ecw b { font-size: 22px; color: var(--e-text); }
.ev-alert { display: flex; gap: 16px; margin-top: 12px; padding: 14px 18px; border-radius: 14px; border: 1px solid color-mix(in srgb, currentColor 55%, transparent); background: linear-gradient(100deg, color-mix(in srgb, currentColor 16%, #0a0a0a), #0a0a0a 75%); }
.ev-alert-i { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 2px solid currentColor; }
.ev-alert-i .ev-i { width: 24px; height: 24px; }
.ev-alert h6 { font: 650 18px/1.25 var(--e-font); color: var(--e-text); }
.ev-alert h6 em { font-style: normal; color: currentColor; }
.ev-alert.t-warn h6 em { color: var(--e-warn); }
.ev-alert p { color: #ece6da; margin: 4px 0 6px; }
.ev-alert small { display: block; line-height: 1.5; }
.ev-dgw { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: center; }
.ev-dgw b { display: block; font: 300 34px/1.1 var(--e-font); letter-spacing: -.02em; }
.ev-dgw { flex: 1; }
.ev-dgw p { display: flex; gap: 6px; align-items: center; margin-top: 6px; }
.ev-dgw p .ev-i { color: var(--e-ok); }
.ev-danger { width: 100%; display: block; }
.ev-danger .dg-s { fill: none; stroke-width: 4; stroke-linecap: round; opacity: .28; }
.ev-danger .dg-s.is-on { opacity: 1; filter: drop-shadow(0 0 4px currentColor); }
.ev-danger .dg-n { stroke: #f4ecd9; stroke-width: 1.4; stroke-linecap: round; filter: drop-shadow(0 0 3px rgb(255 255 255 / .5)); }
.fx .ev-card.is-new .ev-danger .dg-n { animation: evNeedle 1.4s var(--e-ease) both .25s; transform-box: view-box; transform-origin: 50px 52px; }
@keyframes evNeedle { from { transform: rotate(var(--a0)); } }
.ev-danger .dg-c { fill: #0b0b0b; stroke: #f4ecd9; stroke-width: 1.2; }
@container card (max-width: 380px) { .ev-dgw { grid-template-columns: minmax(0, 1fr); } }

.ev-raw { display: grid; gap: 4px; margin: 4px 0 10px; }
.ev-raw code { display: block; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--e-edge); background: #050505; font: 500 12.5px/1.5 var(--mono); color: var(--e-acc); white-space: pre-wrap; word-break: break-word; }
.ev-metar { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); column-gap: 18px; }
.ev-metar .ev-row:first-of-type { border-top: 0; }
.ev-metar .ev-row { border-top: 1px solid var(--e-sep); }

/* ---------- Internet ---------- */
.ev-sig { display: flex; align-items: center; gap: 10px; }
.ev-sig small { font-size: 12px; text-align: right; line-height: 1.35; }
.ev-sigb { display: flex; align-items: flex-end; gap: 3px; height: 26px; }
.ev-sigb i { width: 6px; border-radius: 2px; background: #ffffff26; }
.ev-sigb i.is-on { background: var(--mode-action); }
.ev-thr { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ev-thr p { display: flex; gap: 28px; margin-top: 4px; }
.ev-thr p > span { display: inline-flex; align-items: center; gap: 4px; font-size: 16px; }
.ev-thr p > span b { font: 700 26px/1 var(--e-font); letter-spacing: -.01em; }
.ev-thr .ev-i { width: 20px; height: 20px; }
.ev-t-link .ev-plot { margin-top: 12px; }
.ev-devs { flex: 1; display: grid; justify-items: center; align-content: center; }
.ev-dev-r { display: grid; justify-items: center; gap: 4px; color: var(--e-acc); }
.ev :is(.ev-dev-r, .ev-dev-g) .ev-i { box-sizing: border-box; width: 50px; height: 50px; padding: 13px; border-radius: 50%; border: 1px solid transparent; stroke-width: 1.4;
  background: var(--e-disc) padding-box, linear-gradient(160deg, color-mix(in srgb, currentColor 70%, #fff 8%), color-mix(in srgb, currentColor 12%, transparent) 50%, color-mix(in srgb, currentColor 45%, transparent)) border-box; box-shadow: inset 0 1px 0 rgb(255 255 255 / .1), 0 6px 14px #000a; }
.ev-dev-r .ev-i { width: 58px; height: 58px; padding: 15px; box-shadow: inset 0 1px 0 rgb(255 255 255 / .12), 0 0 26px color-mix(in srgb, var(--mode-glow) 22%, transparent); }
.ev-dev-r small { color: var(--e-text); }
.ev-dev-t { width: calc(100% - 100% / var(--n)); height: 20px; margin-top: 10px; border: 1px solid color-mix(in srgb, var(--gold-soft) 45%, transparent); border-bottom: 0; border-radius: 10px 10px 0 0; }
.ev-dev-g { width: 100%; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); text-align: center; }
.ev-dev-g span { position: relative; display: grid; justify-items: center; gap: 6px; padding-top: 6px; }
.ev-dev-g .ev-i { color: var(--e-acc); }
.ev-dev-g em { position: absolute; top: 2px; left: calc(50% + 12px); min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; display: grid; place-items: center; font: 750 11px/1 var(--e-font); font-style: normal; background: var(--mode-action); color: var(--mode-on-action); }
.ev-dev-g small { color: var(--e-text); font-size: 13px; }
.ev-prio { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; flex: 1; align-content: space-evenly; }
.ev-prio li { display: grid; grid-template-columns: 26px 22px minmax(0, 1fr) 34px 34px; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 12px; border: 1px solid var(--e-edge); background: var(--e-tile); }
.ev-prio li:first-child { border-color: var(--e-line2); }
.ev-pn { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 750 12px/1 var(--e-font); background: var(--mode-action); color: var(--mode-on-action); }
.ev-prio li .ev-i:not(.ev-iconb .ev-i) { color: var(--e-acc); }
.ev-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ev-t-actions { padding: 12px 14px; background: none; border-color: transparent; box-shadow: none; }
.ev-t-actions::before { display: none; }
.ev-acts .ev-sent { margin: 0 0 0 6px; }

/* ---------- Équipements ---------- */
.ev-t-status { padding: 12px 18px; }
.ev-status { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 15px; }
.ev-status > span:first-child { display: inline-flex; align-items: center; }
.ev-status em { font-style: normal; color: var(--e-ok); font-weight: 600; margin-left: 6px; }
.ev-status.is-moving em { color: var(--e-warn); }
.ev-status .ev-dot { width: 12px; height: 12px; }
.ev-sim { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; font-size: 13px; color: var(--e-muted); }
.ev-sim .ev-sw { width: 42px; height: 24px; }
.ev-sim .ev-sw i { width: 16px; height: 16px; }
.ev-sim .ev-sw.is-on { background: color-mix(in srgb, var(--e-warn) 75%, #a60); }
.ev-sim .ev-sw.is-on i { transform: translateX(18px); }
.ev-lockn { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--e-muted); }
.ev-lockn .ev-i { color: var(--e-acc); }
.ev-eq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: center; }
.ev-eq-ph { position: relative; margin: 0; height: 112px; border-radius: 12px; overflow: hidden; border: 1px solid var(--e-edge); background: radial-gradient(90% 100% at 30% 0%, #191919, #050505 70%); box-shadow: inset 0 1px 0 #ffffff10; }
.ev-eq-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-eq-ph::before { content: ""; position: absolute; inset: 6px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--gold-soft) 18%, transparent); pointer-events: none; }
.ev-eq-ph.has-img::before { display: none; }
.ev-eq-pha { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 7px; }
.ev-eq-pha .ev-i { width: 26px; height: 26px; stroke-width: 1.2; color: color-mix(in srgb, var(--gold-soft) 65%, transparent); }
.ev-eq-pha small { font: 600 9.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--e-faint); }
.ev-eq-s { display: grid; gap: 2px; min-width: 0; }
.ev-eq-s .ev-kv { display: grid; gap: 1px; padding: 3px 0; }
.ev-eq-s .ev-kv span { font-size: 12px; }
.ev-eq-s .ev-kv b { text-align: left; }
.ev-eq-s > b { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; font-size: 16px; line-height: 1.28; margin-bottom: 4px; }
.ev-eq-s > b .ev-dot { align-self: center; }
.ev-eqt { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--e-edge); }
.ev-eqt span { flex: 1; font-weight: 600; }
.ev-eqt .ev-i { color: var(--e-acc); }
.ev-t-equip { display: flex; flex-direction: column; }
.ev-t-equip > .ev-btn.is-wide, .ev-t-equip > .ev-eqt { margin-top: auto; }
.ev-t-equip > .ev-fine { margin-top: 8px; }
.ev-grid.is-moving .ev-t-equip { transition: opacity .3s; }
.ev-insp { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ev-insp > span:nth-child(2) { display: grid; gap: 2px; flex: 1; min-width: 180px; }
.ev-insp b { font-size: 16px; }
.ev-insp-d { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 650; color: var(--e-acc); }

/* ---------- Voyage, agenda, listes, entretien ---------- */
.ev-t-arrival .ev-out { margin: 6px 0 10px; }
.ev-agn { display: flex; gap: 6px; align-items: center; }
.ev-t-agenda .ev-ch h5 { font-size: 19px; }
.ev-ag { display: grid; gap: 6px; }
.ev-ag-d { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin-left: 44px; text-align: center; }
.ev-ag-d > div { display: grid; gap: 2px; padding: 6px 0 8px; border-bottom: 2px solid transparent; }
.ev-ag-d b { font-size: 17px; }
.ev-ag-d .is-today { color: var(--e-acc); border-color: var(--e-acc); }
.ev-ag-d .is-today small { color: var(--e-acc); }
.ev-ag-b { display: grid; grid-template-columns: 44px minmax(0, 1fr); height: 300px; }
.ev-ag-h { position: relative; }
.ev-ag-h span { position: absolute; left: 0; transform: translateY(-50%); font: 500 11px/1 var(--mono); color: var(--e-faint); }
.ev-ag-c { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--e-sep); border-bottom: 1px solid var(--e-sep); background: repeating-linear-gradient(180deg, transparent 0 calc(20% - 1px), #ffffff0a calc(20% - 1px) 20%); }
.ev-ag-c > div { border-left: 1px dashed #ffffff0f; }
.ev-ag-c > div.is-today { background: color-mix(in srgb, var(--gold-soft) 9%, transparent); }
.ev-ag-e { position: absolute; left: calc(var(--c0) / 7 * 100% + 3px); width: calc((var(--c1) - var(--c0)) / 7 * 100% - 6px); display: flex; gap: 6px; align-items: flex-start; padding: 6px 8px; border-radius: 8px; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--gold-soft) 65%, transparent); background: color-mix(in srgb, var(--gold-soft) 16%, #0a0a0a); font-size: 12px; line-height: 1.2; }
.ev-ag-e .ev-i { width: 15px; height: 15px; color: var(--e-acc); flex: none; }
.ev-ag-e span { display: grid; gap: 2px; min-width: 0; }
.ev-ag-e b, .ev-ag-e small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-ag-e b { font-size: 12.5px; }
.ev-ag-e small { font-size: 11px; }
.ev-ag-e.is-maint, .ev-ag-e.is-peak { border-color: #5aa9ffaa; background: #12263f; }
.ev-ag-e.is-maint .ev-i { color: var(--e-water); }
.ev-ag-e.is-stay { min-height: 26px; height: auto !important; align-items: center; }
@container card (max-width: 520px) { .ev-ag-e span small { display: none; } .ev-ag-e { padding: 4px; } .ev-ag-e .ev-i { display: none; } .ev-ag-e b { font-size: 10.5px; } .ev-ag-d b { font-size: 14px; } }
.ev-next { display: flex; gap: 14px; align-items: flex-start; }
.ev-next > div { display: grid; gap: 3px; }
.ev-next small { font: var(--e-label); letter-spacing: .1em; text-transform: uppercase; color: var(--e-faint); }
.ev-next b { font-size: 18px; color: #fff; }
.ev-next p { color: var(--e-muted); }
/* Chronologie des 7 prochains jours : piste fine, jours gradués, marqueur à l'échéance, compte à rebours */
.ev-nx { margin-top: auto; padding-top: 16px; display: grid; gap: 12px; }
.ev-nx-l { flex: 1 0 auto; display: flex; flex-direction: column; margin-top: 14px; padding-top: 4px; border-top: 1px solid var(--e-sep); }
.ev-nx-l .ev-row { flex: 0 1 auto; }
.ev-nx-l .ev-row { padding: 8px 0; }
.ev-nx-l .ev-row b { font-size: 14px; }
.ev-nx-h { display: flex; align-items: baseline; gap: 10px; }
.ev-nx-h small { font: var(--e-label); letter-spacing: .1em; text-transform: uppercase; color: var(--e-faint); }
.ev-nx-h b { font: 300 40px/1 var(--e-font); color: #fff; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ev-nx-t { position: relative; height: 3px; margin: 0 8px 22px; border-radius: 3px; background: rgb(255 255 255 / .08); }
.ev-nx-f { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p); border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--e-acc) 20%, transparent), var(--e-acc)); box-shadow: 0 0 10px color-mix(in srgb, var(--e-acc) 40%, transparent); }
.ev-nx-t > i { position: absolute; top: -3px; width: 1px; height: 9px; background: rgb(255 255 255 / .22); }
.ev-nx-t > i small { position: absolute; top: 17px; left: 50%; transform: translateX(-50%); font: 600 10px/1 var(--e-font); letter-spacing: 0; text-transform: none; color: var(--e-faint); white-space: nowrap; }
.ev-nx-t > em { position: absolute; left: var(--p); top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; display: grid; place-items: center; color: #0b0a08; background: var(--mode-action); box-shadow: 0 0 0 3px #050505, 0 0 14px var(--mode-glow); }
.ev-nx-t > em .ev-i { width: 12px; height: 12px; stroke-width: 2; }
@container card (max-width: 300px) { .ev-nx-t > i:nth-child(odd) small { display: none; } }
.fx .ev-card.is-new .ev-nx-f { animation: evGrow 1.1s var(--e-ease) both .2s; transform-origin: left; }
.ev-lists-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.ev-lists-h h5 { font: 700 26px/1.1 var(--e-font); letter-spacing: -.015em; }
.ev-lists-h p { color: var(--e-muted); margin-top: 4px; }
.ev-lists { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; }
.ev-lmain, .ev-ld { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--e-edge); background: var(--e-tile); }
.ev-lmain .ev-cr { flex-direction: column; align-items: flex-end; gap: 6px; }
.ev-litems { list-style: none; margin: 0; padding: 0; }
.ev-litems li { display: flex; align-items: center; gap: 10px; padding: 0 8px; border-radius: 10px; border-top: 1px solid var(--e-sep); }
.ev-litems li:first-child { border-top: 0; }
.ev-litems li.is-sel { background: var(--e-fill2); border-color: transparent; }
.ev-litems .ev-check { width: auto; padding: 10px 0; }
.ev-li { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto 16px; gap: 10px; align-items: center; padding: 10px 0; border: 0; background: none; text-align: left; cursor: pointer; font-size: 14.5px; }
.ev-li small { font-size: 12.5px; }
.ev-ld { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.ev-ld .ev-ch { margin: 0; }
.ev-ld .ev-row { border: 0; padding: 0; gap: 8px; color: var(--e-muted); }
.ev-ld .ev-btn { margin-top: auto; }
.ev-ld.is-done { align-items: center; justify-content: center; text-align: center; color: var(--e-ok); }
.ev-ld.is-done .ev-i { width: 34px; height: 34px; }
.ev-lsums { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 14px; }
.ev-lsum { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--e-edge); background: var(--e-tile); cursor: pointer; text-align: left; }
.ev-lsum:hover { border-color: var(--e-line2); }
.ev-lsum > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.ev-lsum em { font-style: normal; font-weight: 700; text-align: right; display: grid; }
.ev-lsum .ev-bar { grid-column: 1 / -1; margin-top: 6px; }
@container card (max-width: 640px) { .ev-lists { grid-template-columns: minmax(0, 1fr); } }
.ev-mleg { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: -4px 0 12px; }
.ev-mleg .ev-src { padding: 4px 9px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--sc) 30%, transparent); background: color-mix(in srgb, var(--sc) 7%, transparent); }
.ev-mleg .ev-src em { font-weight: 700; color: var(--e-text); }
.ev-mleg .ev-src em::before { content: ""; }
.ev-maint { display: grid; }
.ev-mrow { --tc: var(--e-ok); display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 13px 0; border-top: 1px solid var(--e-sep); }
.ev-mrow:first-child { border-top: 0; }
.ev .ev-mrow { color: var(--e-text); }
.ev-mrow.t-warn { --tc: var(--e-warn); } .ev-mrow.t-err { --tc: var(--e-err); }
.ev-mrow > .ev-ri { width: 38px; height: 38px; }
.ev-mb { display: grid; gap: 5px; min-width: 0; }
.ev-mt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.ev-mt b { font-size: 15px; }
.ev-msrc { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--e-muted); }
.ev-msrc .ev-src { font-size: 12px; }
.ev-mprog { position: relative; display: block; height: 4px; border-radius: 4px; background: #ffffff10; max-width: 360px; }
.ev-mprog i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 40%, transparent), var(--tc)); }
.fx .ev-card.is-new .ev-mprog i { animation: evGrow 1s var(--e-ease) both .2s; transform-origin: left; }
.ev-mcalc { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; color: var(--e-faint); }
.ev-mcalc .ev-i { width: 14px; height: 14px; margin-top: 1px; flex: none; }
.ev-mcalc b { color: var(--tc); font-weight: 650; }
.ev-mside { display: grid; justify-items: end; gap: 6px; }
.ev-mwhen { font-size: 12.5px; color: var(--e-muted); white-space: nowrap; }
@container card (max-width: 520px) { .ev-mrow { grid-template-columns: 34px minmax(0, 1fr); } .ev-mside { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; justify-items: start; gap: 8px; } .ev-mrow > .ev-ri { width: 34px; height: 34px; } }

/* Listes de bord : source dans chaque élément et dans le détail */
.ev-li > span { display: grid; gap: 3px; min-width: 0; }
.ev-ld-n { color: var(--e-text); font-size: 14px; }
.ev-why { width: 100%; display: grid; gap: 6px; padding: 12px; border-radius: 12px; border: 1px solid var(--e-edge); background: #0000004d; }
.ev-why .ev-k { margin: 0 0 2px; }
.ev-why .ev-src { font-size: 13px; white-space: normal; }
.ev-why .ev-src em { white-space: normal; }
.ev-why > small { font-size: 12.5px; }
.ev-why-v { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--e-muted); }
.ev-why-v .ev-i { width: 15px; height: 15px; color: var(--e-acc); }

/* ---------- Modes et activité ---------- */
.ev-t-modes { padding: 0; background: none; border: 0; box-shadow: none; }
.ev-t-modes::before { display: none; }
.ev-modes { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.ev-mode { position: relative; display: flex; align-items: center; gap: 12px; min-height: 84px; padding: 14px; border-radius: 14px; cursor: pointer; text-align: left;
  transition: background .25s; }
.ev-mode > .ev-i { width: 30px; height: 30px; color: var(--e-text); stroke-width: 1.3; }
.ev-mode span { display: grid; gap: 2px; min-width: 0; }
.ev-mode b { font-size: 16px; }
.ev-mode small { font-size: 12.5px; }
.ev-mode em { justify-self: start; margin-top: 4px; padding: 3px 8px; border-radius: 999px; font: 700 11px/1 var(--e-font); font-style: normal; background: var(--mode-action); color: var(--mode-on-action); }
.ev .ev-mode.is-sel { --e-glass: linear-gradient(160deg, color-mix(in srgb, var(--gold-soft) 15%, #0a0a0a), #0a0a0a); box-shadow: var(--e-depth), 0 0 26px color-mix(in srgb, var(--mode-glow) 20%, transparent); }
.ev-mode.is-sel b, .ev-mode.is-sel > .ev-i { color: var(--e-acc); }
@container card (max-width: 820px) { .ev-modes { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
.ev-mgrid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.ev-mgrid > .ev-card { grid-column: auto; }
@container card (max-width: 700px) { .ev-mgrid { grid-template-columns: minmax(0, 1fr); } }
.ev-subcard { padding: 16px 18px; }
.ev-mgrid .ev-row > span b { font-size: 15px; }
.ev-mapply { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--e-sep); }
.ev-mapply .ev-fine { margin: 0; }
.ev-mres { margin-top: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--e-edge); background: var(--e-tile); }
.ev-mline { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 0; font-size: 13.5px; }
.ev-mline em { font-style: normal; font-size: 12.5px; color: var(--e-muted); text-align: right; }
.ev-mline.is-ok .ev-i { color: var(--e-ok); }
.ev-mline.is-warn .ev-i, .ev-mline.is-warn em { color: var(--e-warn); }
.ev-mline.is-wait .ev-i { color: var(--e-acc); }
.ev-msum { display: flex; gap: 8px; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--e-sep); font-weight: 650; }
.ev-scen { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 12px; padding: 8px 0; border-top: 1px solid var(--e-sep); font-size: 13.5px; }
.ev-scen span { color: var(--e-muted); }
.ev-auto { display: grid; grid-template-columns: 34px minmax(0, 1fr) minmax(0, .8fr) 64px 50px; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--e-sep); }
.ev-auto:first-of-type { border-top: 0; }
.ev-auto > span:nth-child(2) { display: grid; gap: 2px; }
.ev-trig { display: grid !important; grid-template-columns: 18px 1fr; column-gap: 7px; }
.ev-trig .ev-i { grid-row: span 2; width: 16px; height: 16px; color: var(--e-acc); }
.ev-trig small { font-size: 11.5px; }
.ev-trig b { font-size: 13px; }
.ev-auto > em { font-style: normal; font-weight: 650; font-size: 13px; }
@container card (max-width: 620px) { .ev-auto { grid-template-columns: 34px minmax(0, 1fr) 50px; } .ev-trig { grid-column: 2; } .ev-auto > em { display: none; } .ev-auto .ev-sw { grid-column: 3; grid-row: 1; } }
.ev-act { list-style: none; margin: 0; padding: 0; }
.ev-act li { display: grid; grid-template-columns: 10px 170px 90px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--e-sep); font-size: 14px; }
.ev-act li:first-child { border-top: 0; }
.ev-act li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--e-acc); box-shadow: 0 0 8px var(--e-acc); }
.ev-act time { font: 500 13px/1 var(--mono); color: var(--e-muted); }
@container card (max-width: 560px) { .ev-act li { grid-template-columns: 10px minmax(0, 1fr); gap: 4px 12px; } .ev-act li > * { grid-column: 2; } .ev-act li::before { grid-row: span 3; align-self: start; margin-top: 4px; } }

/* ---------- Sélecteur d'environnements ---------- */
.ev-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.ev-pick { position: relative; display: flex; flex-direction: column; padding: 0; border-radius: 16px; overflow: hidden; cursor: pointer; text-align: left;
  transition: transform .45s var(--e-ease), box-shadow .3s; }
.ev .ev-pick:hover { transform: translateY(-4px); box-shadow: 0 26px 54px #000a, 0 0 30px color-mix(in srgb, var(--mode-glow) 14%, transparent); }
.ev-ban.is-pick { position: relative; inset: auto; width: 100%; height: 132px; border-radius: 0; }
.ev-ban.is-pick img { -webkit-mask: linear-gradient(180deg, #000 60%, #0000); mask: linear-gradient(180deg, #000 60%, #0000); }
.ev-ban.is-pick.is-ph .ev-ph-b { place-content: end start; justify-items: start; text-align: left; padding: 14px 14px 15px; gap: 9px; }
.ev-ban.is-pick.is-ph .ev-ph-n { font-size: 11.5px; }
.ev-ban.is-pick.is-ph .ev-ph-chips { justify-content: flex-start; }
.ev-ban.is-pick figcaption { top: 10px; bottom: auto; }
.ev-pick-b { display: grid; gap: 6px; padding: 4px 16px 16px; flex: 1; }
.ev-pick-k { display: flex; align-items: center; gap: 7px; font: 600 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--e-acc); }
.ev-pick-k .ev-i { width: 16px; height: 16px; }
.ev-pick-b > b { font: 700 24px/1.1 var(--e-font); letter-spacing: -.015em; }
.ev-pick-b > small { display: flex; align-items: center; gap: 5px; }
.ev-pick-s { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--e-sep); }
.ev-ps { display: grid; gap: 2px; min-width: 0; }
.ev-ps .ev-i { width: 16px; height: 16px; color: var(--e-muted); }
.ev-ps small { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-ps b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-pick-go { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-weight: 650; color: var(--e-acc); }
.ev-pick-go .ev-i { width: 16px; height: 16px; transition: transform .3s var(--e-ease); }
.ev-pick:hover .ev-pick-go .ev-i { transform: translateX(4px); }
.ev-pick.is-add { align-items: center; justify-content: center; gap: 8px; min-height: 180px; border-style: dashed; border-color: var(--e-line2); background: #0a0908a6; color: var(--e-muted); }
.ev-pick.is-add > .ev-i { width: 34px; height: 34px; color: var(--e-acc); }
.ev-pick.is-add b { color: var(--e-text); font-size: 16px; }
.ev-pick.is-add small { display: flex; align-items: center; gap: 5px; }
.fx .ev-pick { animation: evIn .7s var(--e-ease) both; }
.fx .ev-pick:nth-child(2) { animation-delay: .05s; } .fx .ev-pick:nth-child(3) { animation-delay: .1s; } .fx .ev-pick:nth-child(4) { animation-delay: .15s; }
.fx .ev-pick:nth-child(5) { animation-delay: .2s; } .fx .ev-pick:nth-child(6) { animation-delay: .25s; } .fx .ev-pick:nth-child(7) { animation-delay: .3s; } .fx .ev-pick:nth-child(n+8) { animation-delay: .35s; }

/* ---------- Accueil multisite ---------- */
.ev-home { container: evs / inline-size; }
.ev-home .ev-bar0 { align-items: flex-end; margin-bottom: 16px; }
.ev-home .ev-bar0 > div { flex: 1 1 380px; }
.ev-home .ev-h { font-size: 42px; }
.ev-home .ev-badge { margin-left: auto; }
.ev-hsum { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.ev-hs { position: relative; display: flex; gap: 11px; align-items: flex-start; min-width: 0; padding: 14px 14px 13px; border-radius: 16px; text-align: left; color: inherit; }
button.ev-hs { cursor: pointer; transition: transform .35s var(--e-ease); }
.fx button.ev-hs:hover { transform: translateY(-2px); }
.fx .ev-hsum.is-new .ev-hs { animation: evIn .7s var(--e-ease) both; animation-delay: calc(var(--i) * 50ms); }
.ev-hs-i { --tc: var(--e-acc); width: 38px; height: 38px; color: var(--tc); }
.ev-hs-i.t-ok { --tc: var(--e-ok); } .ev-hs-i.t-warn { --tc: var(--e-warn); } .ev-hs-i.t-water { --tc: var(--e-water); }
.ev-hs-i .ev-i { width: 19px; height: 19px; }
.ev-hs-b { display: grid; gap: 2px; min-width: 0; }
.ev-hs-b small { font-size: 12px; }
.ev-hs-b b { font: 700 21px/1.1 var(--e-font); letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-hs-b em { font-style: normal; font-size: 12px; color: var(--e-faint); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@container ev (max-width: 1100px) { .ev-hsum { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container ev (max-width: 560px) { .ev-hsum { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ev-hs { padding: 12px; gap: 9px; flex-direction: column; } .ev-hs-i { width: 32px; height: 32px; } .ev-hs-b b { font-size: 17px; white-space: normal; } }
.ev-hgrid { margin-bottom: 8px; align-items: start; }
.ev-card.is-flash { animation: evFlash 1.2s ease; }
@keyframes evFlash { 30% { border-color: var(--e-acc); box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold-soft) 40%, transparent), 0 18px 44px #0007; } }
.ev-hsec { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 22px 2px 12px; }
.ev-hsec h5 { font: 700 22px/1.1 var(--e-font); letter-spacing: -.01em; }
.ev-hsec p { color: var(--e-muted); }

/* Tableau de tous les lieux */
.ev-board { display: grid; gap: 4px; }
.ev-brow { --cols: minmax(150px, 1.4fr) 94px 64px 84px minmax(96px, 1fr) minmax(110px, 1.1fr) minmax(120px, 1.2fr) 40px 16px;
  display: grid; grid-template-columns: var(--cols); gap: 10px; align-items: center; width: 100%; padding: 8px 10px; border-radius: 12px; border: 1px solid transparent; background: none; text-align: left; cursor: pointer; color: inherit;
  transition: background .25s, border-color .25s; }
.ev-brow:not(.is-h) { border-color: #ffffff0b; background: var(--e-tile); }
.ev-brow:not(.is-h):hover { background: linear-gradient(var(--e-fill2), var(--e-fill2)), var(--e-tile); border-color: var(--e-line2); }
.ev-brow.is-h { cursor: default; padding-block: 0 4px; font: 650 10.5px/1 var(--e-font); letter-spacing: .1em; text-transform: uppercase; color: var(--e-faint); }
.ev-b-site { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ev-b-site > span:last-child { display: grid; gap: 1px; min-width: 0; }
.ev-b-site b { font-size: 15px; }
.ev-b-site small { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-b-ic { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; color: var(--e-acc); border: 1px solid var(--e-line2); background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--gold-soft) 14%, transparent), #050505); }
.ev-b-ic .ev-i { width: 19px; height: 19px; }
.ev-b-c { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13.5px; }
.ev-b-c > b { font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ev-b-c > small { display: grid; gap: 1px; font-size: 12px; line-height: 1.25; min-width: 0; }
.ev-b-c > small em { font-style: normal; color: var(--e-acc); font-weight: 650; }
.ev-b-c.is-en { flex-direction: column; align-items: flex-start; gap: 3px; }
.ev-b-en { display: flex; align-items: center; gap: 7px; width: 100%; }
.ev-b-en b { font-size: 13.5px; white-space: nowrap; }
.ev-bar.is-xs { flex: 1; height: 5px; min-width: 36px; }
.ev-b-c.is-wx .ev-wx { width: 28px; height: 28px; }
.ev-b-who { display: flex !important; align-items: center; gap: 5px; }
.ev-b-who .ev-i { color: var(--e-muted); flex: none; }
.ev-b-arm { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px 4px 7px; border-radius: 999px; font: 650 12px/1 var(--e-font); color: var(--e-acc); border: 1px solid color-mix(in srgb, var(--gold-soft) 35%, transparent); background: color-mix(in srgb, var(--gold-soft) 7%, transparent); white-space: nowrap; }
.ev-b-arm.is-on { color: var(--e-ok); border-color: color-mix(in srgb, var(--e-ok) 35%, transparent); background: color-mix(in srgb, var(--e-ok) 8%, transparent); }
.ev-b-arm .ev-i { width: 14px; height: 14px; }
.ev-b-al { min-width: 26px; height: 26px; padding: 0 7px; border-radius: 13px; display: inline-grid; place-items: center; font: 750 12.5px/1 var(--e-font); color: #120d03; background: var(--e-warn); box-shadow: 0 0 12px color-mix(in srgb, var(--e-warn) 45%, transparent); }
.ev-b-al.t-err { background: var(--e-err); color: #1a0505; box-shadow: 0 0 12px color-mix(in srgb, var(--e-err) 45%, transparent); }
.ev .ev-b-al.t-warn { color: #120d03; } .ev .ev-b-al.t-err { color: #1a0505; }
.ev-b-al.t-ok { background: color-mix(in srgb, var(--e-ok) 14%, transparent); color: var(--e-ok); box-shadow: none; }
.ev-b-al .ev-i { width: 14px; height: 14px; }
@container card (max-width: 940px) {
  .ev-brow.is-h { display: none; }
  .ev-brow { grid-template-columns: repeat(4, minmax(0, 1fr)) 16px; gap: 10px 12px; padding: 12px; }
  .ev-b-site { grid-column: 1 / 4; }
  .ev-brow > .ev-b-c[data-l="Alertes"] { grid-column: 4; grid-row: 1; justify-content: flex-end; }
  .ev-brow > .ev-chev { grid-column: 5; grid-row: 1; }
  .ev-b-c { flex-direction: column; align-items: flex-start; gap: 3px; }
  .ev-b-c::before { content: attr(data-l); font: 650 10px/1 var(--e-font); letter-spacing: .1em; text-transform: uppercase; color: var(--e-faint); }
  .ev-brow > .ev-b-c[data-l="Alertes"]::before { display: none; }
  .ev-b-c.is-wx { flex-direction: column; }
  .ev-b-c.is-wx .ev-wx { display: none; }
  .ev-b-c[data-l="Présence"], .ev-b-c[data-l="Entretien"] { grid-column: span 2; }
}
@container card (max-width: 560px) {
  .ev-brow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ev-b-site { grid-column: 1 / 3; }
  .ev-brow > .ev-b-c[data-l="Alertes"] { grid-column: 3; }
  .ev-brow > .ev-chev { display: none; }
  .ev-b-c[data-l="Présence"] { grid-column: span 2; }
  .ev-b-c[data-l="Entretien"] { grid-column: 1 / -1; }
}

/* Alertes de tous les lieux */
.ev-hal { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ev-hali { --tc: var(--e-acc); display: grid; grid-template-columns: 36px minmax(0, 1fr) auto 16px; gap: 12px; align-items: center; width: 100%; padding: 9px 12px 9px 9px; border-radius: 12px; cursor: pointer; text-align: left;
  border: 1px solid var(--e-edge); background: var(--e-tile); transition: border-color .25s, background .25s; }
.ev .ev-hali { color: var(--e-text); }
.ev-hali:hover { border-color: var(--e-line2); background: linear-gradient(var(--e-fill2), var(--e-fill2)), var(--e-tile); }
.ev-hali.t-err { --tc: var(--e-err); border-color: color-mix(in srgb, var(--e-err) 32%, transparent); background: linear-gradient(100deg, color-mix(in srgb, var(--e-err) 8%, #0a0a0a), #0a0a0a70 70%); }
.ev-hali.t-warn { --tc: var(--e-warn); }
.ev-hali.t-water { --tc: var(--e-water); }
.ev-hali .ev-ri { width: 36px; height: 36px; }
.ev-hali-b { display: grid; gap: 1px; min-width: 0; }
.ev-hali-b b { font-size: 14px; }
.ev-hali-b small { font-size: 12.5px; }
.ev-sitec { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px 4px 7px; border-radius: 999px; border: 1px solid var(--e-line); background: #000; font: 600 11.5px/1 var(--e-font); color: var(--e-text); white-space: nowrap; }
.ev-sitec .ev-i.is-sm { width: 13px; height: 13px; color: var(--e-acc); }
@container card (max-width: 480px) { .ev-hali { grid-template-columns: 34px minmax(0, 1fr) 16px; } .ev-hali .ev-sitec { grid-column: 2; grid-row: 2; justify-self: start; } .ev-hali > .ev-chev { grid-column: 3; grid-row: 1; } }
.ev-seg.is-sm button { height: 30px; padding: 0 11px; font-size: 12.5px; }
.ev-t-tl .ev-seg, .ev-t-cmp .ev-seg { margin-bottom: 12px; }

/* Mode sur plusieurs lieux */
.ev-mm { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.ev-mm-b { display: grid; justify-items: start; gap: 6px; padding: 11px 12px; border-radius: 13px; cursor: pointer; text-align: left; border: 1px solid var(--e-line); background: var(--e-tile); transition: border-color .25s, background .25s; }
.ev-mm-b > .ev-i { width: 22px; height: 22px; color: var(--e-muted); }
.ev-mm-b span { display: grid; gap: 1px; }
.ev-mm-b b { font-size: 14.5px; }
.ev-mm-b small { font-size: 11.5px; line-height: 1.25; }
.ev-mm-b.is-on { border-color: color-mix(in srgb, var(--gold-soft) 70%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--gold-soft) 14%, #0a0a0a), #0a0a0a); box-shadow: 0 0 22px color-mix(in srgb, var(--mode-glow) 16%, transparent); }
.ev-mm-b.is-on > .ev-i, .ev-mm-b.is-on b { color: var(--e-acc); }
@container card (max-width: 420px) { .ev-mm { grid-template-columns: minmax(0, 1fr); } .ev-mm-b { grid-template-columns: 24px minmax(0, 1fr); align-items: center; } }
.ev-mm-l { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ev-mm-l li.is-na { display: grid; grid-template-columns: 22px 20px minmax(0, 1fr); gap: 10px; align-items: center; padding: 7px 10px; opacity: .5; }
.ev-mm-l li.is-na .ev-box { border-style: dashed; }
.ev-mm-s { display: grid; grid-template-columns: 22px 20px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; padding: 7px 10px; border-radius: 11px; cursor: pointer; text-align: left; border: 1px solid var(--e-edge); background: var(--e-tile); }
.ev-mm-s:hover { border-color: var(--e-line2); }
.ev-mm-s.is-on .ev-box { background: var(--e-ok); border-color: transparent; color: #04140c; }
.ev-mm-l li > * > .ev-i { width: 18px; height: 18px; color: var(--e-acc); }
.ev-mm-l span { display: grid; gap: 1px; min-width: 0; }
.ev-mm-l b { font-size: 14px; }
.ev-mm-l small { font-size: 12px; }
.ev-mm-s .ev-flag { font-size: 11px; padding: 3px 7px; }

/* Comparer vos lieux */
.ev-cmp { display: grid; gap: 4px; }
.ev-cmpr { display: grid; grid-template-columns: 20px minmax(70px, .7fr) minmax(0, 2fr) 72px; gap: 10px; align-items: center; width: 100%; padding: 6px 8px; border-radius: 10px; border: 0; background: none; cursor: pointer; text-align: left; }
.ev-cmpr:hover { background: var(--e-fill); }
.ev-cmpr > .ev-i { width: 17px; height: 17px; color: var(--e-acc); }
.ev-cmpr > span:nth-child(2) { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-cmpr > b { text-align: right; font-size: 13.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ev-cmpr.is-top > b { color: var(--e-acc); }
.ev-cmpb { position: relative; height: 10px; border-radius: 6px; background: #ffffff0b; }
.ev-cmpb i { position: absolute; top: 0; bottom: 0; border-radius: 6px; transition: left .7s var(--e-ease), width .7s var(--e-ease); }
.ev-cmpb i.ev-cmpz { width: 1px !important; background: #ffffff55; border-radius: 0; top: -3px; bottom: -3px; }
.fx .ev-card.is-new .ev-cmpb i:not(.ev-cmpz) { animation: evGrow .9s var(--e-ease) both; animation-delay: calc(var(--i) * 40ms + .2s); transform-origin: left; }

/* Journal de tous les lieux */
.ev-htl { list-style: none; margin: 0; padding: 0; }
.ev-htl li { --tc: var(--e-acc); position: relative; display: grid; grid-template-columns: 92px auto minmax(0, 1fr); gap: 4px 12px; align-items: baseline; padding: 9px 0 9px 20px; border-top: 1px solid #ffffff0b; }
.ev-htl li:first-child { border-top: 0; }
.ev-htl li::before { content: ""; position: absolute; left: 3px; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--tc); box-shadow: 0 0 8px var(--tc); }
.ev-htl li.t-ok { --tc: var(--e-ok); } .ev-htl li.t-warn { --tc: var(--e-warn); } .ev-htl li.t-err { --tc: var(--e-err); }
.ev-htl time { font: 500 12px/1.3 var(--mono); color: var(--e-muted); white-space: nowrap; }
.ev-htl li > span:last-child { display: grid; gap: 1px; min-width: 0; }
.ev-htl b { font-size: 13.5px; }
.ev-htl small { font-size: 12px; }
@container card (max-width: 560px) { .ev-htl li { grid-template-columns: auto minmax(0, 1fr); } .ev-htl li > span:last-child { grid-column: 1 / -1; } }
.ev-t-tl .ev-link { margin-top: 8px; }

/* Bande des lieux dans un tableau, puces d'état du héros */
.ev-sites { display: flex; gap: 6px; margin: -4px 0 12px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.ev-sites::-webkit-scrollbar { display: none; }
.ev-site { position: relative; flex: none; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 999px; cursor: pointer; border: 1px solid var(--e-line); background: var(--e-metal); color: var(--e-muted); font: 600 13px/1 var(--e-font); white-space: nowrap; transition: color .25s, border-color .25s, background .25s; }
.ev-site .ev-i { width: 16px; height: 16px; }
.ev-site:hover { color: var(--e-text); border-color: var(--e-line2); }
.ev-site.is-on { color: var(--mode-on-action); background: var(--mode-action); border-color: transparent; }
.ev-site-d { width: 7px; height: 7px; border-radius: 50%; background: var(--e-warn); box-shadow: 0 0 8px var(--e-warn); }
.ev-site-d.t-err { background: var(--e-err); box-shadow: 0 0 8px var(--e-err); }
.fx .ev-site-d { animation: evBeat 2.4s ease-in-out infinite; }
.ev-hero-s { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.ev-hero-s > span { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px 0 8px; border-radius: 999px; background: #000000b3; border: 1px solid #ffffff17; font-size: 12.5px; color: var(--e-muted); backdrop-filter: blur(6px); }
.ev-hero-s > span b { color: var(--e-text); font-size: 13.5px; }
.ev-hero-s .ev-wx { width: 22px; height: 22px; }
.ev-hero-s .ev-i.is-sm { width: 14px; height: 14px; }
.ev-hero-s > span.t-ok { color: var(--e-ok); } .ev-hero-s > span.t-warn { color: var(--e-warn); } .ev-hero-s > span.t-gold { color: var(--e-acc); }
.ev-pick-al { position: absolute; z-index: 3; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 999px; background: #000000d0; border: 1px solid color-mix(in srgb, var(--e-warn) 50%, transparent); color: var(--e-warn); font: 650 11.5px/1 var(--e-font); }
.ev-pick-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.ev-pick-f .ev-pick-go { margin: 0; }

/* ---------- Fenêtre de confirmation, message ---------- */
.ev-dlg { width: min(520px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 18px; color: var(--e-text); background: transparent; font: 400 14px/1.42 var(--e-font); }
.ev-dlg::backdrop { background: #000000b8; backdrop-filter: blur(4px); }
.ev-dlg-f { margin: 0; padding: 20px; border-radius: 18px; background: linear-gradient(155deg, #191816, #070707); border: 1px solid var(--e-line2); box-shadow: 0 30px 80px #000, 0 0 60px color-mix(in srgb, var(--mode-glow) 14%, transparent); }
.ev-dlg-f > header { display: flex; gap: 14px; align-items: flex-start; }
.ev-dlg-f h5 { font: 700 19px/1.25 var(--e-font); }
.ev-dlg-f header p { margin-top: 6px; color: var(--e-muted); }
.ev-dlg-l { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 6px; max-height: 50vh; overflow: auto; }
.ev-dlg-l label { display: grid; grid-template-columns: 22px 20px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--e-edge); background: var(--e-tile); cursor: pointer; }
.ev-dlg-l input { position: absolute; opacity: 0; pointer-events: none; }
.ev-dlg-l label:has(input:focus-visible) { outline: 2px solid var(--e-acc); outline-offset: 2px; }
.ev-dlg-l input:checked + .ev-box { background: var(--e-ok); border-color: transparent; color: #04140c; }
.ev-dlg-l label > .ev-i { color: var(--e-acc); width: 18px; height: 18px; }
.ev-dlg-l span { display: grid; gap: 1px; }
.ev-dlg-l small { font-size: 12px; }
.ev-dlg-l strong { color: var(--e-acc); font-size: 13.5px; white-space: nowrap; }
.ev-dlg-f footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.ev-toast { position: fixed; z-index: 60; left: 50%; bottom: 24px; max-width: min(560px, calc(100vw - 32px)); padding: 12px 18px; border-radius: 14px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: #0d0c0bf2; border: 1px solid var(--e-line2); box-shadow: 0 20px 50px #000c; font: 550 14px/1.4 var(--e-font); color: var(--e-text); transition: opacity .35s, transform .45s var(--e-ease); }
.ev-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Largeurs réduites (téléphone : conteneur ≈ 330 px) ---------- */
@container ev (max-width: 720px) {
  .ev-hero { min-height: 190px; align-items: flex-end; }
  .ev-ban { width: 100%; border-radius: 18px; }
  .ev-ban img { -webkit-mask: linear-gradient(0deg, #0000 8%, #000 75%); mask: linear-gradient(0deg, #0000 8%, #000 75%); opacity: .62; }
  .ev-ban.is-ph:not(.is-pick) { -webkit-mask: linear-gradient(0deg, #0000 8%, #000 75%); mask: linear-gradient(0deg, #0000 8%, #000 75%); }
  .ev-ban.is-ph:not(.is-pick) .ev-ph-b { display: none; }
  .ev-ban.is-ph:not(.is-pick) figcaption { top: 10px; bottom: auto; }
  .ev-hero-t { max-width: none; padding: 20px 20px 18px; }
  .ev-h { font-size: 32px; }
  .ev-sub { font-size: 15px; }
  .ev-adm span, .ev-adm .ev-lk { display: none; }
  .ev-adm { width: 40px; padding: 0; justify-content: center; }
  .ev-home .ev-h { font-size: 30px; }
}
@container ev (max-width: 460px) {
  .ev-bar0 { gap: 8px; }
  .ev-back { font-size: 15px; }
  .ev-badge { order: 3; font-size: 10px; padding: 5px 9px; }
  .ev-h { font-size: 28px; }
  .ev-meta { display: none; }
  .ev-card { padding: 14px; }
  .ev-ch { gap: 10px; }
  .ev-ci { width: 34px; height: 34px; }
  .ev-ci .ev-i { width: 17px; height: 17px; }
  .ev-ct h5 { font-size: 15px; }
  .ev-cr { flex-wrap: wrap; justify-content: flex-end; }
  .ev-tab { padding: 0 14px; font-size: 13.5px; }
  .ev-ch:has(.ev-cr > .ev-upd), .ev-ch:has(.ev-cr > .ev-ecw), .ev-ch:has(.ev-cr > .ev-agn), .ev-ch:has(.ev-cr > .ev-legend) { flex-wrap: wrap; }
  .ev-ch:has(.ev-cr > .ev-upd) .ev-cr, .ev-ch:has(.ev-cr > .ev-ecw) .ev-cr, .ev-ch:has(.ev-cr > .ev-agn) .ev-cr, .ev-ch:has(.ev-cr > .ev-legend) .ev-cr { width: 100%; margin-left: 0; justify-content: flex-start; text-align: left; }
  .ev-big { font-size: 28px; }
  .ev-dial-g { width: 168px; }
  .ev-dial-v b { font-size: 38px; }
  .ev-round { width: 40px; height: 40px; }
  .ev-ringw { grid-template-columns: 116px minmax(0, 1fr); }
  .ev-ringg { width: 116px; }
  .ev-ringv b { font-size: 26px; }
  .ev-tanks .ev-tank { padding: 0 4px; }
  .ev-thr p { gap: 18px; }
  .ev-thr p > span b { font-size: 22px; }
  .ev-duo { grid-template-columns: minmax(0, 1fr); }
  .ev-duo > span + span { border-left: 0; padding-left: 0; }
  .ev-sunfoot b { font-size: 16px; }
  .ev-pick-s { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ev-foot { font-size: 9.5px; }
}
.ev-more { margin-top: 10px; }

/* ---------- Ferme : bâtiments (vue d'ensemble) et en-tête du détail d'un bâtiment ---------- */
.ev-bats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@container card (max-width: 700px) { .ev-bats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ev-bat {
  display: grid; grid-template-rows: auto 1fr; min-width: 0; padding: 0; overflow: hidden; text-align: left; cursor: pointer; color: inherit; font: inherit;
  border-radius: 14px; border: 1px solid var(--e-line); background: var(--e-tile); box-shadow: inset 0 1px 0 #ffffff10;
  transition: border-color .3s, box-shadow .3s, transform .3s var(--e-ease);
}
.ev-bat:hover, .ev-bat:focus-visible { border-color: var(--e-line2); box-shadow: 0 0 26px color-mix(in srgb, var(--mode-glow) 16%, transparent), inset 0 1px 0 #ffffff14; }
.fx .ev-bat:hover { transform: translateY(-2px); }
.ev-bat[data-tone="warn"] { border-color: color-mix(in srgb, var(--e-warn) 45%, transparent); }
.ev-bat-ph { position: relative; margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: radial-gradient(90% 110% at 30% 0%, #191919, #050505 70%); }
.ev-bat-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-bat-ph::before { content: ""; position: absolute; inset: 7px; z-index: 1; border-radius: 9px; border: 1px solid color-mix(in srgb, var(--gold-soft) 18%, transparent); pointer-events: none; }
.ev-bat-ph.has-img::before { display: none; }
.ev-bat-ph::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 45%, #000000b8); }
.ev-bph-a { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 7px; color: var(--e-faint); }
.ev-bph-a .ev-i { width: 28px; height: 28px; stroke-width: 1.2; color: color-mix(in srgb, var(--gold-soft) 65%, transparent); }
.ev-bph-a small { font: 600 10px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; }
.ev-bat-st { position: absolute; left: 10px; bottom: 9px; z-index: 2; display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; font: 650 11.5px/1 var(--e-font); color: var(--e-text); background: #000000b0; border: 1px solid #ffffff1c; }
.ev-bat[data-tone="ok"] .ev-bat-st .ev-dot { color: var(--e-ok); } .ev-bat[data-tone="warn"] .ev-bat-st .ev-dot { color: var(--e-warn); } .ev-bat[data-tone="gold"] .ev-bat-st .ev-dot { color: var(--e-acc); }
.ev-bat-b { display: grid; gap: 10px; align-content: start; padding: 12px 13px 13px; min-width: 0; }
.ev-bat-n { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ev-bat-n .ev-i { width: 18px; height: 18px; color: var(--e-acc); flex: none; }
.ev-bat-n b { font: 650 14.5px/1.25 var(--e-font); }
.ev-bat-k { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ev-bat-k > span { display: grid; gap: 3px; min-width: 0; padding: 7px 8px; border-radius: 9px; background: var(--e-fill); border: 1px solid var(--e-edge); }
.ev-bat-k small { font-size: 10.5px; color: var(--e-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-bat-k b { font: 700 13.5px/1.1 var(--e-font); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-bat-a { display: flex; align-items: center; gap: 7px; font-size: 12.5px; line-height: 1.35; color: var(--e-muted); min-width: 0; }
.ev-bat-a > span { flex: 1; min-width: 0; }
.ev-bat-a > .ev-i:first-child { width: 15px; height: 15px; flex: none; color: var(--e-acc); }
.ev-bat[data-tone="warn"] .ev-bat-a { color: var(--e-warn); } .ev-bat[data-tone="warn"] .ev-bat-a > .ev-i:first-child { color: var(--e-warn); }

.ev-bh { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ev-bh-ph { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ev-bh-ph .ev-bat-ph { border-radius: 12px; border: 1px solid var(--e-edge); aspect-ratio: 4 / 3; }
.ev-bh-ph figcaption { position: absolute; left: 10px; bottom: 9px; z-index: 2; font: 600 10.5px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--e-text); text-shadow: 0 1px 8px #000; }
.ev-bh-b { min-width: 0; }
.ev-bh-cs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.ev-bh-c { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 8px; align-items: center; padding: 9px 10px; border-radius: 11px; background: var(--e-fill); border: 1px solid var(--e-edge); min-width: 0; }
.ev-bh-c > .ev-i { grid-row: span 2; width: 18px; height: 18px; color: var(--e-acc); }
.ev-bh-c small { font-size: 11px; color: var(--e-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-bh-c b { font: 700 14px/1.15 var(--e-font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-bh-c[data-tone="ok"] .ev-dot { color: var(--e-ok); } .ev-bh-c[data-tone="warn"] .ev-dot { color: var(--e-warn); } .ev-bh-c[data-tone="gold"] .ev-dot { color: var(--e-acc); }
.ev-bh-c[data-tone="warn"] { border-color: color-mix(in srgb, var(--e-warn) 40%, transparent); }
.ev-bh-src { display: flex; flex-wrap: wrap; gap: 6px; }
.ev-bh-src span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; font-size: 12px; color: var(--e-muted); border: 1px solid var(--e-line); }
.ev-bh-src .ev-i { width: 13px; height: 13px; color: var(--e-acc); }
@container card (max-width: 820px) { .ev-bh { grid-template-columns: minmax(0, 1fr); } .ev-bh-ph .ev-bat-ph { aspect-ratio: 16 / 8; } }
@container card (max-width: 460px) { .ev-bh-cs { grid-template-columns: minmax(0, 1fr); } .ev-bats { grid-template-columns: minmax(0, 1fr); } .ev-bat > .ev-bat-ph { aspect-ratio: 21 / 8; } .ev-bh-ph { grid-template-columns: minmax(0, 1fr); } .ev-bh-ph .ev-bat-ph { aspect-ratio: 21 / 9; } }

/* ---------- Hangar à deux appareils : bande de choix et carte « Le hangar » ---------- */
.ev-fleet { position: relative; display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 10px 12px; border-radius: 16px; background: var(--e-tile); box-shadow: inset 0 1px 0 #ffffff10; min-width: 0; }
.ev-fleet::after { content: ""; position: absolute; inset: -3px; pointer-events: none; border-radius: 18px; border: 12px solid transparent; border-image: url("/media/modes/rim.png") 50 / 12px / 0 stretch; filter: var(--mode-rim-filter); }
:root[data-mode="base"] .ev-fleet::after { inset: 0; border: 1px solid var(--e-line2); border-image: none; filter: none; border-radius: 16px; }
.ev-fleet-h { display: inline-flex; align-items: center; gap: 10px; flex: none; min-width: 0; padding-right: 4px; }
.ev-fleet-h > .ev-i { width: 22px; height: 22px; color: var(--e-acc); flex: none; }
.ev-fleet-h b { display: block; font: 650 14px/1.2 var(--e-font); color: var(--e-text); white-space: nowrap; }
.ev-fleet-h small { display: block; font-size: 12px; color: var(--e-muted); white-space: nowrap; }
.ev-fleet-l { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; flex: 1; min-width: 0; }
.ev-fleet-b { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 6px 12px 6px 6px; border-radius: 12px; cursor: pointer; text-align: left; color: var(--e-text); font: inherit;
  border: 1px solid var(--e-line); background: var(--e-metal); transition: border-color .25s, box-shadow .25s, background .25s; }
.ev-fleet-b:hover, .ev-fleet-b:focus-visible { border-color: var(--e-line2); }
.ev-fleet-b.is-on { border-color: color-mix(in srgb, var(--mode-action) 75%, transparent); background: color-mix(in srgb, var(--mode-action) 9%, #0a0a0a); box-shadow: 0 0 22px color-mix(in srgb, var(--mode-glow) 18%, transparent), inset 0 1px 0 #ffffff12; }
.ev-fleet-ph { flex: none; display: grid; place-items: center; width: 64px; height: 42px; border-radius: 8px; overflow: hidden; background: #050505; border: 1px solid var(--e-edge); color: var(--e-acc); }
.ev-fleet-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-fleet-t { display: grid; gap: 3px; min-width: 0; }
.ev-fleet-t b { font: 650 14px/1.15 var(--e-font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-fleet-t small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--e-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-fleet-b .ev-site-d { position: absolute; top: 7px; right: 8px; }
@media (max-width: 760px) {
  .ev-fleet { flex-direction: column; align-items: stretch; gap: 10px; }
  .ev-fleet-l { grid-template-columns: minmax(0, 1fr); }
}

.ev-hg-r { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 2px 0 14px; }
.ev-hg-r > span { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 9px; row-gap: 2px; min-width: 0; padding: 9px 11px; border-radius: 11px; background: var(--e-fill); border: 1px solid var(--e-edge); }
.ev-hg-r .ev-i { grid-row: span 2; width: 18px; height: 18px; color: var(--e-acc); }
.ev-hg-r small { font-size: 11.5px; color: var(--e-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-hg-r b { display: flex; align-items: center; gap: 6px; font: 650 13.5px/1.2 var(--e-font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-hg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ev-hg-p { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; padding: 0; overflow: hidden; text-align: left; color: inherit; font: inherit;
  border-radius: 14px; border: 1px solid var(--e-line); background: var(--e-tile); box-shadow: inset 0 1px 0 #ffffff10; transition: border-color .3s, box-shadow .3s, transform .3s var(--e-ease); }
button.ev-hg-p { cursor: pointer; }
button.ev-hg-p:hover, button.ev-hg-p:focus-visible { border-color: var(--e-line2); box-shadow: 0 0 26px color-mix(in srgb, var(--mode-glow) 16%, transparent), inset 0 1px 0 #ffffff14; }
.fx button.ev-hg-p:hover { transform: translateY(-2px); }
.ev-hg-p.is-cur { border-color: color-mix(in srgb, var(--mode-action) 60%, transparent); }
.ev-hg-ph { position: relative; margin: 0; aspect-ratio: 16 / 8; overflow: hidden; background: radial-gradient(90% 110% at 30% 0%, #191919, #050505 70%); }
.ev-hg-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-hg-ph::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 50%, #000000b8); }
.ev-hg-spot, .ev-hg-al { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 999px; font: 650 11.5px/1 var(--e-font); background: #000000b8; border: 1px solid #ffffff1c; }
.ev-hg-spot { left: 10px; bottom: 9px; color: var(--e-text); }
.ev-hg-al { right: 10px; top: 9px; color: var(--e-warn); border-color: color-mix(in srgb, var(--e-warn) 45%, transparent); }
.ev-hg-b { display: grid; gap: 9px; padding: 13px 14px 14px; min-width: 0; }
.ev-hg-k { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--e-muted); min-width: 0; }
.ev-hg-k .ev-i { width: 15px; height: 15px; color: var(--e-acc); flex: none; }
.ev-hg-n { font: 650 17px/1.2 var(--e-font); color: var(--e-text); }
.ev-hg-st { display: flex; align-items: center; gap: 7px; font: 600 13px/1.3 var(--e-font); }
.ev-hg-kp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.ev-hg-kp > span { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 7px; row-gap: 2px; align-items: center; min-width: 0; padding: 7px 9px; border-radius: 9px; background: var(--e-fill); border: 1px solid var(--e-edge); }
.ev-hg-kp .ev-i { grid-row: span 2; color: var(--e-acc); }
.ev-hg-kp small { font-size: 10.5px; color: var(--e-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-hg-kp b { font: 700 13px/1.15 var(--e-font); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-hg-go { display: inline-flex; align-items: center; gap: 6px; font: 650 12.5px/1 var(--e-font); color: var(--e-acc); }
@container card (max-width: 760px) { .ev-hg-r { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container card (max-width: 620px) { .ev-hg { grid-template-columns: minmax(0, 1fr); } }

/* Les lieux montrés par leur photo, pas par une icône. */
.ev-b-ic.is-ph { width: 52px; height: 52px; padding: 0; overflow: hidden; border-radius: 12px; background: #050505; }
.ev-b-ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-sitec-ph { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; flex: none; }
.ev-mm-ph { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; flex: none; }
