/* ==========================================================================
   STYLE ÉPURÉ SUR FOND BLANC CRÈME & SCÈNE VIVANTE — DataGrandEst 2026
   Direction Artistique : Grand Est opaque, scène stylisée vivante en fond
   ========================================================================== */

:root {
  /* Palette Blanc Crème & Papiers */
  --bg-app: #f7f5f0;
  --bg-card: rgba(255, 255, 255, 0.94);
  --bg-map: #eef3f7;
  --bg-active: #ece7db;
  
  --border-subtle: #e5e0d3;
  --border-strong: #cfc8b8;
  
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #8e9aab;

  /* Couleurs sobres & fonctionnelles */
  --c-heat: #dc2626;      /* Rouge brique carmin */
  --c-snow: #0284c7;      /* Bleu glacier */
  --c-soil: #b45309;      /* Ocre terre de Sienne */
  --c-rain: #475569;      /* Gris ardoise pluie */
  --c-assec: #b91c1c;     /* Rouge profond */
  --c-accent: #1e293b;    /* Anthracite boutons */

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-app);
  color: var(--text-main);
  font-family: var(--font);
  overflow: hidden;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- BANDEAU SUPÉRIEUR SOBRE --- */
.app-header {
  height: 52px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 20;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-badge {
  background: #1e293b;
  color: #ffffff;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 1.2px;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.brand-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.2px;
}

.brand-title span {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 13px;
  margin-left: 6px;
}

/* --- CARTE PLEIN ÉCRAN (FIXE, NON DÉPLAÇABLE) --- */
.map-container {
  flex: 1;
  position: relative;
  background-color: var(--bg-map);
  overflow: hidden;
  cursor: default; /* Pas de curseur grab */
}

/* Canvas graphique unifié GPU */
#map-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* ==========================================================================
   WIDGETS CARTOGRAPHIQUES HAUT DE GAMME
   ========================================================================== */

/* 1. STATS HYDROLOGIQUES : EN HAUT AU CENTRE DE LA CARTE */
.map-top-center-stats {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 30px;
  padding: 6px 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  gap: 16px;
}

.hydro-stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hydro-stat-icon {
  font-size: 16px;
}

.hydro-stat-content {
  display: flex;
  flex-direction: column;
}

.hydro-stat-val {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}

.hydro-stat-val.assec-alert {
  color: #b91c1c;
}

.hydro-stat-label {
  font-size: 9.5px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.hydro-stat-divider {
  width: 1px;
  height: 22px;
  background: #e2ded4;
}

/* 2. LÉGENDE UNIFIÉE : EN HAUT À DROITE DE LA CARTE */
.map-legend-card-top-right {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 290px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  z-index: 10;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 11px;
}

.legend-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid #f1ece1;
  padding-top: 8px;
}

.legend-section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.legend-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.legend-gradient-bar {
  height: 7px;
  border-radius: 4px;
  background: linear-gradient(90deg, #60a5fa 0%, #cbd5e1 45%, #ea580c 100%);
  margin-top: 2px;
}

.legend-gradient-labels {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #64748b;
  font-weight: 600;
}

.legend-boxes-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.legend-box {
  width: 13px;
  height: 8px;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: inline-block;
}

.legend-text-sm {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-main);
  margin-left: 4px;
}

/* Échelle unifiée des rivières (Normal -> Étiage -> À sec) */
.river-scale-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8f6f0;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #eae5d8;
  margin-top: 2px;
}

.river-scale-step {
  display: flex;
  align-items: center;
  gap: 5px;
}

.step-desc {
  display: flex;
  flex-direction: column;
}

.step-name {
  font-size: 10px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}

.step-name.text-assec {
  color: #b91c1c;
}

.step-sub {
  font-size: 8.5px;
  color: #64748b;
  line-height: 1.1;
}

.river-scale-arrow {
  color: #94a3b8;
  font-weight: 800;
  font-size: 10px;
}

.dot-normal {
  width: 7px;
  height: 7px;
  background: #64748b;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-low {
  width: 9px;
  height: 9px;
  background: #ea580c;
  border-radius: 50%;
  border: 1px solid #fff;
  flex-shrink: 0;
}

.dot-dry {
  width: 11px;
  height: 11px;
  background: #450a0a;
  border-radius: 50%;
  border: 1.5px solid #fff;
  box-shadow: 0 0 5px #dc2626;
  flex-shrink: 0;
}

.dot-nodata {
  width: 7px;
  height: 7px;
  border: 1.2px solid #94a3b8;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.legend-sub-note {
  font-size: 9px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}

/* 3. GROS BLOC STATS CLIMATIQUES : EN BAS À GAUCHE DE LA CARTE */
.map-bottom-left-climate {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 10;
  width: 290px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.climate-badge-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.climate-badge-tag {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #64748b;
  text-transform: uppercase;
}

.climate-badge-main {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.climate-big-temp {
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1px;
  transition: color 0.25s ease;
}

.climate-sub-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.climate-real-temp {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}

.climate-rain-val {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

.climate-badge-desc {
  font-size: 11px;
  color: #334155;
  font-weight: 500;
  font-style: italic;
  border-top: 1px solid #f1ece1;
  padding-top: 6px;
  margin-top: 2px;
}

/* Footer gauche : description sobre */
.footer-sub-desc {
  font-size: 10px;
  color: #64748b;
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Bannière flottante d'alerte assec */
.active-assec-banner {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border: 1.5px solid #dc2626;
  padding: 7px 16px;
  border-radius: 30px;
  color: #991b1b;
  font-size: 12.5px;
  font-weight: 700;
  display: none;
  align-items: center;
  gap: 8px;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.12);
  pointer-events: none;
}

.assec-dot-pulse {
  width: 9px;
  height: 9px;
  background: #dc2626;
  border-radius: 50%;
}

/* ==========================================================================
   DISPOSITION PRINCIPALE (App Layout)
   ========================================================================== */
.app-layout {
  display: flex;
  flex: 1;
  height: calc(100vh - 52px);
  overflow: hidden;
}

/* --- PANNEAU GAUCHE : CHRONIQUE & FRISE VERTICALE --- */
.chronicle-panel {
  width: 480px;
  min-width: 450px;
  max-width: 500px;
  background: #ffffff;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  z-index: 10;
  position: relative;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.04);
}

.chronicle-top-bar {
  height: 52px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 14px;
  background: #fdfcfa;
}

/* --- BARRE DE JALONS NARRATIFS INTERACTIFS (1-CLIC) --- */
.story-milestones-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 7px 10px;
  background: #f8f6f0;
  border-bottom: 1px solid var(--border-subtle);
}

.story-pill {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 3px 7px;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4.5px;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.story-pill:hover {
  background: #1e293b;
  color: #ffffff;
  border-color: #1e293b;
  transform: translateY(-1px);
}

.story-pill.active {
  background: #1e293b;
  color: #ffffff;
  border-color: #1e293b;
}

.story-pill-dot {
  width: 5.5px;
  height: 5.5px;
  border-radius: 50%;
  flex-shrink: 0;
}
.story-pill-dot.heat { background: #dc2626; }
.story-pill-dot.water { background: #0284c7; }
.story-pill-dot.drought { background: #d97706; }
.story-pill-dot.assec { background: #991b1b; }
.story-pill-dot.rupture { background: #b45309; }
.story-pill-dot.reference { background: #0284c7; }

/* En-tête date et méta */
.header-right-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-vignette-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155;
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3.5px 9px;
  border-radius: 6px;
  transition: all 0.15s ease;
  margin-left: 4px;
}

.header-vignette-link:hover {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.header-date-tag {
  font-size: 13px;
  color: #64748b;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.header-divider {
  width: 1px;
  height: 28px;
  background: var(--border-subtle);
}

.metric-text-box {
  display: flex;
  flex-direction: column;
}

.metric-title-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Couches de carte avec icône info alignée */
.layer-toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.layer-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legend-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

/* ==========================================================================
   SYSTÈME D'INFOBULLES & POPOVERS UX (EXPLICATIONS DES CALCULS)
   ========================================================================== */
.ux-tooltip-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: help;
  outline: none;
}

.info-icon, .info-icon-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f1ede4;
  color: #64748b;
  font-weight: 700;
  font-style: normal;
  border: 1px solid #dcd6c8;
  transition: all 0.15s ease;
  user-select: none;
}

.info-icon {
  width: 18px;
  height: 18px;
  font-size: 11px;
}

.info-icon-sm {
  width: 15px;
  height: 15px;
  font-size: 9.5px;
}

.info-icon-xs {
  width: 13px;
  height: 13px;
  font-size: 8px;
}

.ux-tooltip-trigger:hover .info-icon,
.ux-tooltip-trigger:focus .info-icon,
.ux-tooltip-trigger:hover .info-icon-sm,
.ux-tooltip-trigger:focus .info-icon-sm,
.ux-tooltip-trigger:hover .info-icon-xs,
.ux-tooltip-trigger:focus .info-icon-xs {
  background: #1e293b;
  color: #ffffff;
  border-color: #1e293b;
}

/* Popover sombre soigné (Dark Glass) */
.ux-tooltip-popover {
  position: absolute;
  background: #0f172a;
  color: #e2e8f0;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 11px;
  line-height: 1.45;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.35), 0 8px 10px -6px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 1000;
  width: 250px;
  text-align: left;
}

.ux-tooltip-popover p {
  margin: 4px 0 0 0;
  color: #cbd5e1;
  font-weight: 400;
}

.ux-tooltip-popover code {
  background: #1e293b;
  color: #38bdf8;
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.ux-tooltip-popover strong {
  color: #ffffff;
  font-weight: 700;
}

.tooltip-title {
  font-size: 11.5px;
  font-weight: 800;
  color: #f8fafc;
  border-bottom: 1px solid #334155;
  padding-bottom: 5px;
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}

.tooltip-section {
  margin-top: 6px;
  padding-top: 5px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

.tooltip-section:first-of-type {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.tooltip-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
  margin-right: 4px;
  text-transform: uppercase;
}
.tooltip-badge.heat { background: #7f1d1d; color: #fca5a5; }
.tooltip-badge.rain { background: #1e3a5f; color: #93c5fd; }
.tooltip-badge.soil { background: #78350f; color: #fde68a; }
.tooltip-badge.hydro { background: #854d0e; color: #fef08a; }
.tooltip-badge.assec { background: #450a0a; color: #f87171; border: 1px solid #b91c1c; }

.tooltip-footnote {
  margin-top: 8px;
  padding-top: 5px;
  border-top: 1px solid #334155;
  font-size: 10px;
  color: #94a3b8;
  font-style: italic;
}

/* Positionnements relatifs */
.popover-bottom-left {
  top: calc(100% + 8px);
  right: 0;
  transform: translateY(-4px);
}
.popover-bottom-right {
  top: calc(100% + 8px);
  left: 0;
  transform: translateY(-4px);
}
.popover-top-left {
  bottom: calc(100% + 8px);
  left: 0;
  transform: translateY(4px);
}
.popover-top-right {
  bottom: calc(100% + 8px);
  right: 0;
  transform: translateY(4px);
}
.popover-left {
  right: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%) translateX(4px);
}

/* Apparition au survol et au focus */
.ux-tooltip-trigger:hover .ux-tooltip-popover,
.ux-tooltip-trigger:focus .ux-tooltip-popover,
.ux-tooltip-trigger:focus-within .ux-tooltip-popover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.ux-tooltip-trigger:hover .popover-left,
.ux-tooltip-trigger:focus .popover-left,
.ux-tooltip-trigger:focus-within .popover-left {
  transform: translateY(-50%) translateX(0);
}

/* Flèches des infobulles */
.popover-bottom-left::before {
  content: "";
  position: absolute;
  top: -5px;
  right: 10px;
  border-width: 0 5px 5px 5px;
  border-style: solid;
  border-color: transparent transparent #0f172a transparent;
}
.popover-bottom-right::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 10px;
  border-width: 0 5px 5px 5px;
  border-style: solid;
  border-color: transparent transparent #0f172a transparent;
}
.popover-top-left::before {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 14px;
  border-width: 5px 5px 0 5px;
  border-style: solid;
  border-color: #0f172a transparent transparent transparent;
}
.popover-top-right::before {
  content: "";
  position: absolute;
  bottom: -5px;
  right: 14px;
  border-width: 5px 5px 0 5px;
  border-style: solid;
  border-color: #0f172a transparent transparent transparent;
}
.popover-left::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -5px;
  margin-top: -5px;
  border-width: 5px 0 5px 5px;
  border-style: solid;
  border-color: transparent transparent transparent #0f172a;
}



.metric-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.metric-icon {
  font-size: 18px;
}

.metric-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
}

.metric-sub {
  font-size: 9.5px;
  color: var(--text-muted);
}

.chronicle-content {
  flex: 1;
  display: flex;
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

.chronicle-chart-box {
  flex: 1;
  position: relative;
  height: 100%;
}

#chronicle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* --- FRISE TEMPORELLE VERTICALE (À droite du panneau, temps vers le bas) --- */
.v-timeline-box {
  width: 76px;
  border-left: 1px solid var(--border-subtle);
  background: #faf8f5;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
  user-select: none;
}

.v-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  width: 100%;
  padding: 0 6px;
}

.v-btn.play-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1e293b;
  color: #ffffff;
  border: none;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, background 0.15s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.v-btn.play-btn:hover {
  transform: scale(1.06);
  background: #0f172a;
}

.v-step-row {
  display: flex;
  gap: 4px;
}

.v-step-btn {
  width: 26px;
  height: 22px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 9px;
  cursor: pointer;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
}

.v-step-btn:hover {
  background: #e2ded4;
}

.v-speed-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  width: 58px;
}

.v-speed-btn {
  padding: 2px 0;
  font-size: 9px;
  font-weight: 700;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  cursor: pointer;
  color: var(--text-muted);
  text-align: center;
}

.v-speed-btn.active {
  background: #1e293b;
  color: #ffffff;
  border-color: #1e293b;
}

/* Piste temporelle verticale */
.v-track-area {
  flex: 1;
  width: 100%;
  position: relative;
  cursor: pointer;
}

.v-track-line {
  position: absolute;
  left: 48px;
  top: 10px;
  bottom: 10px;
  width: 4px;
  background: #e2ded4;
  border-radius: 2px;
  transform: translateX(-50%);
}

.v-track-progress {
  position: absolute;
  left: 48px;
  top: 10px;
  width: 4px;
  background: #1e293b;
  border-radius: 2px;
  transform: translateX(-50%);
  height: 0%;
}

.v-year-ticks {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  right: 0;
  pointer-events: none;
}

.v-tick-label {
  position: absolute;
  font-size: 9px;
  font-weight: 700;
  color: #64748b;
  transform: translateY(-50%);
  left: 6px;
}

.v-milestones-container {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  right: 0;
  pointer-events: auto;
}

.v-milestone-marker {
  position: absolute;
  left: 48px;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
  border: 1.5px solid #ffffff;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
  z-index: 5;
}

.v-milestone-marker:hover, .v-milestone-marker.active {
  background: #e11d48;
  transform: translate(-50%, -50%) scale(1.4);
}

.v-scrubber-thumb {
  position: absolute;
  left: 48px;
  transform: translate(-50%, -50%);
  top: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #1e293b;
  border: 2.5px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  cursor: grab;
  z-index: 20;
}

.v-scrubber-thumb:active {
  cursor: grabbing;
  transform: translate(-50%, -50%) scale(1.15);
}

.v-thumb-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffffff;
  margin: 4.5px auto;
}

.v-thumb-badge {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  background: #1e293b;
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 3px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

/* Pied de panneau de résumé */
.chronicle-footer-badge {
  min-height: 48px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 6px 14px;
  background: #fdfcfa;
  font-size: 11px;
}

.footer-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.live-heat {
  font-size: 10.5px;
  white-space: nowrap;
}

.live-date-center {
  color: var(--text-main);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: -0.1px;
}

.live-water {
  font-size: 10.5px;
  white-space: nowrap;
  color: #0284c7;
}

/* --- ANIMATIONS ASSECS CARMIN --- */
@keyframes ping-assec-subtle {
  0% {
    r: var(--start-r, 6px);
    opacity: 0.85;
    stroke-width: var(--start-sw, 2px);
  }
  100% {
    r: var(--max-r, 26px);
    opacity: 0;
    stroke-width: 0.5px;
  }
}

.assec-pulse-circle {
  fill: none;
  stroke: #dc2626;
  animation: ping-assec-subtle var(--anim-duration, 1.2s) cubic-bezier(0.1, 0.8, 0.2, 1) infinite;
  pointer-events: none;
}

.assec-core-circle {
  fill: #b91c1c;
  stroke: #ffffff;
  stroke-width: 2px;
  pointer-events: none;
}
