/* ============================================================
   HMV-V2.CSS : nouveau design HMV Data (validé par Nicolas le 15/10/2026, maquette Claude Design).
   Se charge APRÈS tabler-hmv.css et AVANT hmv-colors.js (qui lit les variables ci-dessous).
   Thème clair façon bilan, en-tête dégradé du site pro, Montserrat partout.
   Appliqué à tout le site le 15/10/2026 (conversion : scripts_design/bascule_v2.py).
   ============================================================ */

:root {
  --tb-body-bg: #F2F4F7;
  --tb-card-bg: #FFFFFF;
  --tb-text: #003249;
  --tb-text-muted: #5B6B78;
  --tb-border: rgba(0, 50, 73, .08);
  --tb-blue: #2F80C9;
  --tb-green: #167A4A;
  --tb-red: #B42318;
  --hmv-navy: #003249;
  --hmv-framboise: #E2285A;

  /* Palette graphiques toutes stations (charte du bilan) : bleu nuit, framboise, gris et leurs nuances.
     Plus d'orange ni de bleu vif, confondus avec Aussois et Val Cenis (16/10/2026). Reprise par hmv-nav-v2.js. */
  --chart-1: #003249;
  --chart-2: #E2285A;
  --chart-3: #A0A8B0;
  --chart-4: #7F99A4;
  --chart-5: #F193AC;
  --chart-6: #D5DAE0;
  --chart-7: #4D7083;
  --chart-8: #C4CBD2;

  /* Couleurs stations : charte du bilan (Reporting/CHARTE_COULEURS_TYPO.md) */
  --st-aussois: #F97E25;
  --st-bessans: #EE3D2B;
  --st-bonneval: #E0AA37;
  --st-lanorma: #F7749F;
  --st-valcenis: #00AED2;
  --st-valfrejus: #00408F;
}

body { background: var(--tb-body-bg) !important; }
.page, .page-body, div[style*="background:var(--tb-body-bg)"] { background: transparent !important; }   /* laissent voir les fonds alternés */
body, .page, .page-body { color: var(--tb-text); font-family: 'Montserrat', sans-serif; }
body * { font-family: inherit; }
.container-xl { max-width: 1240px; padding-left: 20px; padding-right: 20px; box-sizing: border-box; }

/* --- En-tête --- */
.hmv2-header { background: linear-gradient(90deg, #003249 0%, #F2295B 100%); color: #FFFFFF; }
.hmv2-bar { max-width: 1240px; margin: 0 auto; box-sizing: border-box; padding: 14px 20px; min-height: 150px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; }
.hmv2-wordmark { justify-self: start; color: #FFFFFF !important; text-decoration: none !important; min-height: 44px; display: flex; align-items: center;
  font-size: clamp(12px, 2.9vw, 17.6px); font-weight: 200; letter-spacing: .8em; text-transform: uppercase; white-space: nowrap; }
.hmv2-wordmark b { font-weight: 700; }
.hmv2-logo { display: flex; justify-content: center; }
.hmv2-logo img { height: clamp(64px, 16vw, 100px); width: auto; }
.hmv2-burger { justify-self: end; width: 48px; height: 48px; border-radius: 999px; border: 1px solid rgba(255,255,255,.45);
  background: rgba(255,255,255,.12); color: #FFFFFF; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.hmv2-burger:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 3px; }

/* --- Menu ouvert : accordéon bleu nuit --- */
.hmv2-menu { background: #003249; color: #FFFFFF; }
.hmv2-menu[hidden] { display: none; }
.hmv2-menu-in { max-width: 1240px; margin: 0 auto; box-sizing: border-box; padding: 12px 20px 36px; display: flex; flex-direction: column; }
.hmv2-rub { border-bottom: 1px solid rgba(255,255,255,.16); }
.hmv2-rub-btn, .hmv2-rub-link { width: 100%; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: transparent; border: 0; padding: 0; color: #FFFFFF !important; cursor: pointer; text-align: left; text-decoration: none !important;
  font-size: clamp(20px, 5vw, 28px); font-weight: 300; letter-spacing: .06em; }
.hmv2-rub-nom { display: flex; align-items: center; gap: 14px; }
.hmv2-point { width: 8px; height: 8px; border-radius: 999px; background: transparent; }
.hmv2-ici .hmv2-point { background: #F2295B; }
.hmv2-signe { font-size: 28px; font-weight: 200; width: 32px; text-align: center; }
.hmv2-pages { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 32px; padding: 0 0 18px; }
.hmv2-pages[hidden] { display: none; }
.hmv2-pages a { text-decoration: none !important; color: #FFFFFF !important; font-size: 16px; font-weight: 600; min-height: 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hmv2-pages a.hmv2-actif { color: #FF7EA0 !important; }
.hmv2-menu-pied { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 24px; font-size: 13px; }
.hmv2-menu-pied span { opacity: .7; }
.hmv2-menu-pied a { text-decoration: none; color: #FFFFFF !important; font-weight: 700; border: 1px solid rgba(255,255,255,.5); border-radius: 999px;
  padding: 12px 20px; min-height: 44px; box-sizing: border-box; display: flex; align-items: center; }

/* --- Pied de page (repris du site pro) --- */
.hmv2-footer { background: #000000; color: #FFFFFF; margin-top: 32px; font-size: 15px; }
.hmv2-footer a { color: #A9B4BE !important; text-decoration: none; }
.hmv2-footer a:hover { color: #FFFFFF !important; }
.hmv2-footer-in { max-width: 1240px; margin: 0 auto; box-sizing: border-box; padding: 28px 20px 20px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px 80px; }
.hmv2-f-col { display: flex; flex-direction: column; gap: 12px; min-width: 220px; }
.hmv2-f-col p { margin: 0; line-height: 1.6; color: #FFFFFF; }
.hmv2-f-col p a { color: #FFFFFF !important; }
.hmv2-f-logo { height: 75px; width: auto; }
.hmv2-f-titre { font-size: 20px; font-weight: 400; color: #FFFFFF; margin-bottom: 4px; }
.hmv2-f-sites { display: grid; grid-template-columns: auto auto; gap: 8px 40px; }
.hmv2-f-col > a, .hmv2-f-sites a { font-size: 16px; min-height: 24px; }
.hmv2-f-bas { width: calc(100% - 40px); max-width: 1200px; margin: 0 auto; box-sizing: border-box; padding: 18px 0 24px; border-top: 1px solid rgba(255,255,255,.35);
  display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; }
.hmv2-f-reseaux { display: flex; gap: 8px; }
.hmv2-f-reseaux a { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: #FFFFFF !important; }

/* --- Ancien bandeau de titre : devient un titre de page clair --- */
.navbar-hmv, .logo-mobile-banner, .logo-desktop { display: none !important; }
.page-header-hmv { background: transparent !important; border: 0 !important; padding: 28px 0 4px !important; }
.page-header-inner { max-width: 1240px; padding-left: 20px; padding-right: 20px; box-sizing: border-box; }
.page-title-hmv { font-family: 'Montserrat', sans-serif !important; font-weight: 800 !important; font-size: clamp(26px, 6vw, 40px) !important;
  letter-spacing: -1px; line-height: 1.15 !important; color: var(--hmv-navy) !important; margin: 0; }
.page-title-hmv > span:first-child:not(:last-child) { display: block; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--hmv-framboise) !important; margin-bottom: 6px; }
.page-title-hmv > span:last-child { color: var(--hmv-navy) !important; }
.live-text, #pageFilterTag { color: var(--tb-text-muted) !important; }

/* --- Cartes, titres de section --- */
.card { background: #FFFFFF !important; border: 0 !important; border-radius: 20px !important; box-shadow: none; }
.card-body { padding: 24px; }
.stat-card:hover { box-shadow: 0 6px 20px rgba(0, 50, 73, .10) !important; }
.section-label, .section-label-home { color: var(--hmv-navy) !important; font-size: 18px; font-weight: 700; text-transform: none; letter-spacing: 0;
  border-bottom: 0 !important; border-top: 0 !important; padding-top: 0 !important; margin-top: 28px !important; }
.chart-title, .h2, .h3, h1, h2, h3 { color: var(--hmv-navy) !important; }
.h2 { font-weight: 800; letter-spacing: -.5px; }
.subheader { color: var(--tb-text-muted) !important; }
.text-secondary, .text-muted { color: var(--tb-text-muted) !important; }
a.card { color: var(--hmv-navy); overflow: hidden; }

/* --- Filtres et boutons --- */
.form-select, .filter-select-hmv { font-family: 'Montserrat', sans-serif; font-weight: 600; color: var(--hmv-navy) !important; background-color: #FFFFFF !important;
  border: 1px solid #D5DCE3 !important; border-radius: 999px !important; min-height: 40px; padding-left: 18px !important; padding-right: 2.6rem !important; background-position: right 1rem center !important; }
.btn-outline-primary { color: var(--hmv-navy) !important; border-color: #D5DCE3 !important; border-radius: 999px !important; }
.btn-outline-primary.active, .btn-outline-primary:hover { background: var(--hmv-navy) !important; color: #FFFFFF !important; border-color: var(--hmv-navy) !important; }

/* --- Textes blancs codés en dur dans les scripts des pages (thème sombre) --- */
[style*="color:#fff"], [style*="color: #fff"], [style*="color:#FFF"], [style*="color: #FFF"],
[style*="color:white"], [style*="color: white"] { color: var(--hmv-navy) !important; }
/* toute couleur de texte blanche transparente écrite en ligne (rgba(255,255,255,x)), quelle que soit l'opacité */
[style*="color:rgba(255,255,255"]:not([style*="background-color:rgba(255,255,255"]),
[style*="color: rgba(255,255,255"]:not([style*="background-color: rgba(255,255,255"]),
[style*="color:rgba(255, 255, 255"]:not([style*="background-color:rgba(255, 255, 255"]),
[style*="color: rgba(255, 255, 255"]:not([style*="background-color: rgba(255, 255, 255"]) { color: var(--tb-text-muted) !important; }
[style*="border:1px solid rgba(255,255,255"], [style*="border: 1px solid rgba(255,255,255"] { border-color: var(--tb-border) !important; }
select option { color: #003249 !important; background: #FFFFFF !important; }
[style*="background:rgba(255,255,255,.04)"], [style*="background: rgba(255,255,255,.04)"], [style*="background:rgba(255,255,255,.06)"] { background: #F2F4F7 !important; }
[style*="background:rgba(91,163,212,0.06)"] { background: #E8EEF4 !important; }
[style*="border-top:1px solid rgba(255,255,255"], [style*="border-bottom:1px solid rgba(255,255,255"] { border-color: var(--tb-border) !important; }
/* exceptions : éléments réellement sur fond foncé */
.hmv2-header [style], .hmv2-menu [style], .hmv2-footer [style] { color: inherit; }


/* --- Classes de tabler-hmv.css prévues pour le fond sombre --- */
.page-title-hmv .highlight, .dash-card-title, .kpi-value { color: var(--hmv-navy) !important; }
.dash-card-title { font-family: 'Montserrat', sans-serif !important; }
.kpi-label, .kpi-sub, .saison-item .year, .saison-item .txn, .legend-item, .pie-title, .filter-badge,
.bucket-label, .bucket-pct, .season-analysis .tag-neutral { color: var(--tb-text-muted) !important; }
.vac-dot-off, .vac-dot.off, .bucket-track { background: #E6EBF0 !important; }
.sh-row, .chart-wrap, .saison-item, .kpi-card { background: #F7F9FB !important; border-color: var(--tb-border) !important; }
.sh-row:hover, .saison-item:hover, .vac-table tr:hover { background: #EEF2F6 !important; }
.vac-table td, .vac-table th { border-color: var(--tb-border) !important; }
.vac-table tr:nth-child(even) { background: #F7F9FB !important; }

/* --- Titres de saison (crème sur fond sombre dans l'ancien design) --- */
.season-title { color: var(--hmv-navy) !important; font-family: 'Montserrat', sans-serif !important; }
[style*="color: rgb(244, 241, 236)"], [style*="color:#f4f1ec"] { color: var(--hmv-navy) !important; }

/* --- Polices de l'ancien design écrites dans les pages (Playfair, DM Mono, Inter) --- */
[style*="Playfair"], [style*="DM Mono"], [style*="Inter,"], [style*="'Inter'"] { font-family: 'Montserrat', sans-serif !important; }

/* --- Mobile d'abord --- */
@media (max-width: 767px) {
  .card-body { padding: 18px; }
  .row-cards { --tblr-gutter-x: 12px; --tblr-gutter-y: 12px; }
}

/* ============ Composants de la maquette (pages refaites : accueil_v2, *_forfaits_v2) ============ */
.v2-main { max-width: 1240px; margin: 0 auto; box-sizing: border-box; padding: 28px 20px 56px; display: flex; flex-direction: column; gap: 28px; color: #003249; }
.v2-main h1, .v2-main h2 { color: #003249 !important; font-family: 'Montserrat', sans-serif; }
.v2-tete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.v2-surtitre { font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #E2285A; }
.v2-tete h1 { margin: 6px 0 0; font-size: clamp(26px, 6vw, 40px); font-weight: 800; letter-spacing: -1px; line-height: 1.15; }
.v2-tete p { margin: 10px 0 0; font-size: 15px; color: #5B6B78; }
.v2-select { position: relative; display: inline-flex; }
.v2-select select { font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 600; color: #003249; padding: 12px 52px 12px 18px; min-height: 44px;
  border: 1px solid #D5DCE3; border-radius: 999px; background: #FFFFFF; appearance: none; -webkit-appearance: none; cursor: pointer; }
.v2-select svg { position: absolute; right: 20px; top: 50%; margin-top: -7px; pointer-events: none; }
.v2-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.v2-kpi { background: #FFFFFF; border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.v2-kpi-l { font-size: 13px; font-weight: 600; color: #5B6B78; }
.v2-kpi-v { font-size: clamp(26px, 5vw, 34px); font-weight: 800; letter-spacing: -1px; color: #003249; }
.v2-kpi-s { font-size: 13px; color: #5B6B78; }
.v2-kpi-fonce { background: #003249; color: #FFFFFF; }
.v2-kpi-fonce .v2-kpi-l, .v2-kpi-fonce .v2-kpi-s { color: #FFFFFF; opacity: .8; }
.v2-duo { display: flex; flex-wrap: wrap; gap: 20px; }
.v2-carte { background: #FFFFFF; border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 18px; box-sizing: border-box; }
.v2-carte h2, .v2-section h2 { margin: 0; font-size: 18px; font-weight: 700; }
.v2-carte-pays { flex: 1 1 300px; }
.v2-carte-sem { flex: 999 1 300px; min-width: 0; }
.v2-carte-tete { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: baseline; }
.v2-carte-tete span { font-size: 12px; color: #5B6B78; }
.v2-pays { display: flex; flex-direction: column; gap: 6px; }
.v2-pays-t { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; }
.v2-pays-piste { height: 10px; border-radius: 999px; background: #EEF1F5; overflow: hidden; }
.v2-pays-piste div { height: 10px; border-radius: 999px; }
.v2-sems { height: 260px; display: flex; align-items: flex-end; gap: 3px; border-bottom: 1px solid #E3E8EE; }
.v2-sem { flex: 1 1 0; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; cursor: default; }
.v2-sem:hover div { filter: brightness(1.25); }
.v2-sems-l { display: flex; gap: 3px; font-size: 10px; color: #5B6B78; }
.v2-sems-l div { flex: 1 1 0; text-align: center; white-space: nowrap; }
.v2-section { display: flex; flex-direction: column; gap: 16px; }
.v2-stations { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.v2-st { background: #FFFFFF; border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 8px; border-top: 5px solid #003249; }
.v2-st-n { font-size: 15px; font-weight: 700; }
.v2-st-v { font-size: 20px; font-weight: 800; }
.v2-st-e { font-size: 13px; font-weight: 700; }
.v2-tdb { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.v2-tdb a { text-decoration: none; background: #FFFFFF; border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 8px; color: #003249 !important; }
.v2-tdb a:hover { box-shadow: 0 6px 20px rgba(0, 50, 73, .10); }
.v2-tdb a span:nth-child(1) { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #E2285A; }
.v2-tdb a span:nth-child(2) { font-size: 17px; font-weight: 700; }
.v2-tdb a span:nth-child(3) { font-size: 13px; color: #5B6B78; }
.v2-pastilles { display: flex; flex-wrap: wrap; gap: 8px; }
.v2-pastilles a { text-decoration: none; font-size: 14px; font-weight: 600; color: #003249 !important; background: #FFFFFF; padding: 8px 16px; border-radius: 999px; }
.v2-pastilles a.v2-ici { color: #FFFFFF !important; font-weight: 700; }
.v2-bascule { font-family: 'Montserrat', sans-serif; display: flex; align-items: center; gap: 12px; border: 1px solid #D5DCE3; background: #FFFFFF; border-radius: 999px;
  padding: 8px 18px 8px 8px; cursor: pointer; font-size: 14px; font-weight: 700; color: #003249; min-height: 44px; }
.v2-bascule-piste { width: 44px; height: 26px; border-radius: 999px; background: #C9D2DB; display: flex; align-items: center; padding: 3px; box-sizing: border-box; justify-content: flex-start; }
.v2-bascule-piste span { width: 20px; height: 20px; border-radius: 999px; background: #FFFFFF; }
.v2-bascule[aria-pressed="true"] .v2-bascule-piste { background: #E2285A; justify-content: flex-end; }
.v2-note { margin: 0; font-size: 13px; color: #5B6B78; }

/* ============ Composants de la maquette appliqués aux pages qui n'ont pas été dessinées (15/10/2026) ============
   Même vocabulaire que l'accueil et les pages Forfaits : titre de page, filtres en pilules sans bandeau,
   cartes de chiffres (libellé 13 px, chiffre 800 bleu nuit), cartes de graphique (padding 28, titre 18 px). */
.page-header-hmv { padding: 28px 0 0 !important; }
.page-header-content { display: flex; flex-direction: column; gap: 0; }
.live-text { font-size: 15px !important; font-weight: 400 !important; color: #5B6B78 !important; margin-top: 10px; text-transform: none !important; letter-spacing: 0 !important; }
.live-dot { display: none !important; }
#pageFilterTag { font-size: 13px !important; text-transform: none !important; margin-top: 4px !important; }

/* Filtres : pilules posées sur le fond, sans carte autour */
.card:has(.filter-bar) { background: transparent !important; box-shadow: none !important; margin-top: 24px !important; margin-bottom: 8px !important; }
.card-body:has(.filter-bar) { padding: 0 !important; }
.filter-bar { gap: 10px !important; }
.filter-bar .form-select, .filter-select-hmv { font-size: 14px !important; font-weight: 600 !important; min-height: 44px !important; height: auto !important;
  padding: 10px 44px 10px 18px !important; width: auto !important; max-width: 100%; text-transform: none !important; letter-spacing: 0 !important; }

/* Grilles : 20 px entre les cartes comme la maquette */
.row-cards { --tblr-gutter-x: 20px; --tblr-gutter-y: 20px; }

/* Cartes de chiffres (cat-card, stat-card, kpi-card) */
.card:has(> .cat-card) { overflow: hidden; }
.cat-card, .stat-card > .card-body, .kpi-card { padding: 24px !important; display: flex; flex-direction: column; gap: 6px; }
/* Liserés (16/10/2026) : couleurs des catégories dans les graphiques (PRO, PAP, non commercialisé), palette HMV ou de la
   station choisie, tenues à jour par hmv-nav-v2.js (--hmv-c0 à --hmv-c2) ; total = dégradé du site, ou station pleine. */
.cat-card { border-left: 0 !important; border-top: 5px solid transparent; border-image: var(--hmv-total, linear-gradient(90deg, #003249, #E2285A)) 1; }
.card:has(> .cat-card) { overflow: hidden; }
.cat-card.cat-pro { border-image: none; border-top-color: var(--hmv-c0, #003249) !important; }
.cat-card.cat-pap { border-image: none; border-top-color: var(--hmv-c1, #E2285A) !important; }
.cat-card.cat-nc { border-image: none; border-top-color: var(--hmv-c2, #A0A8B0) !important; }
.cat-label, .stat-card .subheader, .kpi-label { font-size: 13px !important; font-weight: 600 !important; color: #5B6B78 !important;
  text-transform: none !important; letter-spacing: 0 !important; margin: 0 !important; }
.cat-value, .stat-card .h2, .kpi-value { font-size: clamp(24px, 4vw, 32px) !important; font-weight: 800 !important; letter-spacing: -1px !important;
  color: #003249 !important; line-height: 1.15 !important; margin: 0 !important; }
.cat-sub, .kpi-sub, .stat-card .card-body > div:not(.subheader):not(.h2) { font-size: 13px !important; color: #5B6B78; margin: 0 !important; }
.kpi-card { background: #FFFFFF !important; border: 0 !important; border-radius: 20px !important; }
.kpi-card::before { display: none !important; }
.stat-card:hover { transform: none !important; }

/* Cartes de graphique */
.card > .card-body { padding: 28px; }
.chart-title { font-size: 18px !important; font-weight: 700 !important; color: #003249 !important; margin-bottom: 18px !important; line-height: 1.3; }
.chart-title span, .chart-title small { font-size: 12px !important; font-weight: 400 !important; color: #5B6B78 !important; text-transform: none !important; letter-spacing: 0 !important; }
.section-label, .section-label-home { margin-top: 36px !important; margin-bottom: 16px !important; }
.page-body { padding-top: 8px; }
@media (max-width: 767px) {
  .card > .card-body, .cat-card, .stat-card > .card-body, .kpi-card { padding: 18px !important; }
  .chart-title { font-size: 16px !important; }
}

/* Cartes de chiffres écrites en « subheader + h1/h2 » (Tarifs, Nuitées...) : même rendu que la maquette */
.card-body:has(> .subheader) { display: flex; flex-direction: column; gap: 6px; }
.card-body > .subheader { font-size: 13px !important; font-weight: 600 !important; color: #5B6B78 !important; text-transform: none !important; letter-spacing: 0 !important; margin: 0 !important; }
.card-body > .h1, .card-body > .h2 { font-size: clamp(24px, 4vw, 32px) !important; font-weight: 800 !important; letter-spacing: -1px !important; color: #003249 !important; line-height: 1.15 !important; margin: 0 !important; }
.card-body.p-2 > .h2, .card-body.p-2 > .h1 { font-size: clamp(18px, 2.5vw, 22px) !important; }
.card-body.p-2 { padding: 16px !important; }
.card-body > .text-secondary { font-size: 13px !important; margin: 0 !important; }
.tcam-val { font-weight: 800 !important; color: #003249; }

/* Tableau de l'état des lieux du CRM (accueil) */
.v2-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.v2-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; font-variant-numeric: tabular-nums; }
.v2-table th, .v2-table td { padding: 12px 10px; text-align: right; border-bottom: 1px solid #E3E8EE; white-space: nowrap; }
.v2-table th:first-child { text-align: left; font-weight: 500; }
.v2-table thead th { font-weight: 700; font-size: 13px; color: #003249; border-bottom: 2px solid #D5DCE3; }
.v2-table thead th:first-child { font-weight: 700; }
.v2-table td.v2-tt, .v2-table thead th:last-child { font-weight: 800; background: #F7F9FB; }
.v2-table tr.v2-total th, .v2-table tr.v2-total td { font-weight: 800; background: #EEF2F6; border-bottom: 2px solid #D5DCE3; }
.v2-table tr.v2-abonnes th, .v2-table tr.v2-abonnes td { font-weight: 700; background: #FDEEF2; }
.v2-pt { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: 1px; }
.v2-crm-notes p { margin: 0 0 4px; font-size: 12px; color: #5B6B78; line-height: 1.5; }

/* Cartes « Par station » : nom de station sur une seule ligne (Bonneval sur Arc), 7 cartes de front sur l'accueil */
.v2-st { padding: 18px 14px; }
.v2-st-n { font-size: 14px; white-space: nowrap; }

/* Navigation secondaire « Voir aussi » : menu déroulant à droite du titre (rubrique G2A, 16/10/2026) */
.page-header-inner:has(.hmv2-voir-aussi) { display: flex !important; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hmv2-voir-aussi { margin-left: auto; }
.hmv2-voir-aussi .form-select { font-size: 14px !important; min-height: 44px; padding-top: 10px; padding-bottom: 10px; width: auto; min-width: 220px; cursor: pointer; }
@media (max-width: 767px) {
  /* menu « Voir aussi » juste sous le titre, avant la ligne des données (16/10/2026) */
  .page-header-inner:has(.hmv2-voir-aussi) { flex-direction: column; align-items: stretch; gap: 0; text-align: center; }
  .page-header-inner:has(.hmv2-voir-aussi) .page-header-content { display: contents; }
  .page-header-inner:has(.hmv2-voir-aussi) .page-header-content > * { order: 3; }   /* tout le reste après le titre et le menu */
  .page-header-inner:has(.hmv2-voir-aussi) .page-header-content > .page-title-hmv { order: 1; }
  .hmv2-voir-aussi { order: 2; margin: 4px 0 12px; width: 100%; }
  .page-header-inner:has(.hmv2-voir-aussi) .live-text { order: 3; }
  .hmv2-voir-aussi .form-select { width: 100%; }
}

/* Mobile : « HMVDATA » centré sous le logo, menu burger à droite (16/10/2026) */
@media (max-width: 767px) {
  .hmv2-bar { grid-template-columns: 48px minmax(0, 1fr) 48px; grid-template-areas: ". logo burger" ". mot ."; row-gap: 4px; min-height: 0; }
  .hmv2-logo { grid-area: logo; }
  .hmv2-burger { grid-area: burger; }
  .hmv2-wordmark { grid-area: mot; justify-self: center; justify-content: center; min-height: 32px; padding-left: .8em; }
}

/* Pied de page compact (16/10/2026) : fond noir, adresse et téléphone sur une ligne sous le logo, sans titre de colonne */
.hmv2-f-col { gap: 8px; }
.hmv2-f-adresse { font-size: 14px; }
@media (min-width: 992px) { .hmv2-f-adresse { white-space: nowrap; } }
.hmv2-f-bas { padding: 14px 0 16px !important; }

/* Mobile : filtres les uns sous les autres, pleine largeur (16/10/2026) ; idem pour les menus d'un graphique */
@media (max-width: 767px) {
  .filter-bar { display: flex !important; flex-direction: column !important; align-items: stretch !important; flex-wrap: nowrap !important; }
  .filter-bar > * { width: 100% !important; max-width: none !important; margin-left: 0 !important; }
  .filter-bar .form-select, .filter-bar select { width: 100% !important; max-width: none !important; }
  .card-body > .d-flex:has(> select) { flex-direction: column; align-items: stretch !important; }
  .card-body > .d-flex:has(> select) > select { width: 100% !important; }
}

/* Pied de page = bandeau de l'en-tête (16/10/2026) : même dégradé, même hauteur, copyright et réseaux seulement */
.hmv2-footer { background: linear-gradient(90deg, #003249 0%, #F2295B 100%) !important; margin-top: 32px; }
.hmv2-footer .hmv2-f-bas { max-width: 1240px; width: 100%; padding: 14px 20px !important; min-height: 150px; border-top: 0 !important; }
.hmv2-footer .hmv2-f-reseaux a { border: 1px solid rgba(255,255,255,.45); border-radius: 999px; background: rgba(255,255,255,.12); }
/* Mobile : menu burger centré dans la hauteur de l'en-tête (logo + HMVDATA sur deux lignes) */
@media (max-width: 767px) {
  .hmv2-burger { grid-row: 1 / span 2; align-self: center; }
}

/* Menu « Voir aussi » en framboise (16/10/2026) */
.hmv2-voir-aussi .form-select { background-color: #E2285A !important; border-color: #E2285A !important; color: #FFFFFF !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important; background-size: 14px 10px !important; }
.hmv2-voir-aussi .form-select:hover { background-color: #C91F4D !important; border-color: #C91F4D !important; }
.hmv2-voir-aussi .form-select:focus { box-shadow: 0 0 0 3px rgba(226, 40, 90, .3) !important; }
.hmv2-voir-aussi .form-select option { color: #003249; background: #FFFFFF; }

/* « Voir aussi » dans le bloc de titre des pages Forfaits (16/10/2026) */
.v2-tete .hmv2-voir-aussi { margin-left: auto; align-self: center; }
@media (max-width: 767px) { .v2-tete .hmv2-voir-aussi { margin: 0; width: 100%; order: 0; } }

/* Boutons des pages G2A en haut de page : mêmes boutons et même place que sur les pages Forfaits (16/10/2026) */
.hmv2-onglets { margin-bottom: 28px; justify-content: flex-start; text-align: left; }
/* Pages G2A sur téléphone : titre aligné à gauche comme les pages Forfaits (16/10/2026) */
@media (max-width: 767px) {
  .page-header-hmv .page-header-content:has(.hmv2-onglets), .page-header-hmv .page-header-content:has(.hmv2-onglets) * { text-align: left !important; }
  .page-header-hmv .page-header-content:has(.hmv2-onglets) .live-text { justify-content: flex-start !important; }
}

/* Menu « Voir aussi » et rangées de boutons (G2A, Ventes) : ordinateur seulement, masqués sur téléphone (16/10/2026) */
@media (max-width: 767px) { .hmv2-voir-aussi, .v2-pastilles { display: none !important; } }
/* Sous le titre : seulement « Données au … » (plus de pastille ni de rappel des filtres) */
.page-header-hmv #pageFilterTag, .page-header-hmv #liveSubtitleExt, .page-header-hmv .live-dot { display: none !important; }

:root { --hmv-bande: #DAE3EA; }   /* bleu nuit très clair, nettement distinct du fond de page #F2F4F7 */
html, body { overflow-x: clip; }
/* (16/10/2026) Zone claire du haut de page jusqu'à la fin de l'état des lieux, puis fond foncé jusqu'au pied de page,
   dessiné par hmv-nav-v2.js (calque .hmv2-fond derrière le contenu). Plus d'espace avant la partie foncée. */
#v2Etat + .v2-tete, #v2Crm + * { margin-top: 56px !important; }
.hmv2-fond { position: absolute; left: 0; width: 100%; background: var(--hmv-bande); z-index: -1; pointer-events: none; }
