/* ═══════════════════════════════════════════════════
   NOCTAMBUS — style.css
   TPG Genève · IMD 2026
   Mobile-first · 768px · 1024px · 1440px
   Commentaires en français
═══════════════════════════════════════════════════ */


/* ── VARIABLES GLOBALES ─────────────────────────── */
:root {
  --fond: #000000;
  --fond1: #08080F;
  --fond2: #0D0D18;
  --fond3: #111120;
  --violet: #9747FF;
  --violet-c: #B47FFF;
  --violet-rgb: 151, 71, 255;
  --orange: #FF5500;
  --vert: #4ADE80;
  --rouge: #FF3B5C;
  --blanc: #FFFFFF;
  --blanc2: rgba(255, 255, 255, 0.85);
  --gris: rgba(255, 255, 255, 0.30);
  --gris2: rgba(255, 255, 255, 0.55);
  --bordure: rgba(255, 255, 255, 0.08);
  --nav-h: 62px;
  --itinerary-h: 185px;
  --g: 20px;
  --mw: 1200px;
  --r: 14px;
}


/* ── REMISE A ZERO ───────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--fond);
  color: var(--blanc);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
}

a {
  color: inherit;
}


/* ── UTILITAIRES ─────────────────────────────────── */
/* Conteneur centré avec gouttière */
.wrap {
  width: 100%;
  max-width: var(--mw);
  margin: 0 auto;
  padding: 0 var(--g);
}

/* Espace vertical entre les sections */
.s-gap {
  height: 120px;
}

/* En-tête de section avec label et lien "voir tout" */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gris);
}

.voir-tout {
  font-size: 12px;
  color: var(--violet-c);
  text-decoration: none;
  letter-spacing: .5px;
  transition: color .2s;
}

.voir-tout:hover {
  color: #fff;
}


/* ══════════════════════════════════════════════════
   BARRE DE NAVIGATION FIXE
══════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  /* inset: 0 0 auto; */
  height: var(--nav-h);
  z-index: 2000;
  /* background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px); */
  /* border-bottom: 1px solid rgba(255, 255, 255, .05); */
}

.nav-inner {
  width: 100%;
  max-width: var(--mw);
  margin: 0 auto;
  padding: 0 var(--g);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--nav-h);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-svg {
  width: 38px;
  height: 38px;
}

.nav-logo-nom {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  letter-spacing: 1px;
  color: #fff;
  display: none;
}

/* Liens de navigation (visibles uniquement sur desktop) */
.nav-liens {
  display: none;
  list-style: none;
  gap: 4px;
  align-items: end;
  margin-left: auto;
  margin-right: 8px;
}

.nav-liens a {
  font-size: 13px;
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
  font-weight: 600;
  padding: 6px 14px;
  background: rgba(var(--violet-rgb), .08);
  border: 1px solid rgba(var(--violet-rgb), .18);
  border-radius: 50px;
  letter-spacing: .5px;
  text-shadow: none;
  transition: all .18s;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.nav-liens a:hover {
  background: rgba(var(--violet-rgb), .16);
  border-color: rgba(var(--violet-rgb), .42);
  color: #fff;
}

.nav-liens a.actif {
  color: #fff;
  background: linear-gradient(180deg, rgba(var(--violet-rgb), .28), rgba(var(--violet-rgb), .18));
  border-color: rgba(var(--violet-rgb), .62);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 0 0 1px rgba(var(--violet-rgb), .14),
    0 10px 24px -16px rgba(var(--violet-rgb), .68);
  transform: translateY(-1px);
}

/* Espace poussant les boutons à droite */
/* .nav-espace {
  flex: 1;
} */

.nav-droite {
  display: flex;
  align-items: end;
  gap: 8px;
}

/* Bouton pill — langue (fr/en) et tpg+ */
.nav-pill,
.nav-pill-tpg {
  width: 50px;
  text-decoration: none;
  aspect-ratio: 1/1;
  border-radius: 999px;
  border: 1.5px solid rgba(var(--violet-rgb), .36);
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--blanc2);
  padding: 0 14px;
  transition: all .18s;
  letter-spacing: .5px;
}

.nav-pill:hover {
  border-color: var(--violet);
  color: var(--violet-c);
}

.nav-pill.plein {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
}

.nav-pill-tpg {
  border: 1.5px solid #F93B11;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-pill-tpg:hover {
  border-color: #F93B11;
  color: #F93B11;
}


/* Bouton langue — légèrement différencié */
#btn-lang {
  min-width: 52px;
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 12px;
}

/* Bouton hamburger (mobile) */
.nav-hamburger {
  width: 50px;
  height: 50px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(var(--violet-rgb), .36);
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4.5px;
  transition: border-color .18s;
}



.nav-hamburger span {
  display: block;
  height: 1px;
  background: var(--blanc2);
  border-radius: 2px;
  transition: all .28s;
}


.nav-hamburger span:nth-child(1) {
  width: 16px;
}

.nav-hamburger span:nth-child(2) {
  width: 10px;
}

.nav-hamburger span:nth-child(3) {
  width: 16px;
}

.nav-hamburger:hover span {
  border-color: var(--violet) !important;
}

/* Etat ouvert — croix */
.nav-hamburger.open span:nth-child(1) {
  width: 18px;
  transform: translateY(5.5px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(3) {
  width: 18px;
  transform: translateY(-5.5px) rotate(-45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}


/* ── MENU MOBILE PLEIN ECRAN ─────────────────────── */
.menu-mobile {
  height: 100vh;
  overflow: hidden;
  display: none;
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(151, 71, 255, .14), transparent 28%),
    linear-gradient(180deg, rgba(5, 5, 12, .98) 0%, rgba(10, 3, 18, .98) 100%);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  padding: calc(var(--nav-h) + 36px) 24px 40px;
  z-index: 1999;
  flex-direction: column;
  justify-content: flex-start;
  opacity: 0;
  transition: opacity .22s ease;
  align-items: stretch;
}
/* Classe active ajoutée par toggleMenu() dans main.js */
.menu-mobile.ouvert {
  display: flex;
  /* transform: translateY(0); */
  opacity: 1;
 
}

.menu-mobile a {
  font-size: 20px;
  font-weight: 700;
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
  padding: 12px 18px;
  margin-bottom: 10px;
  border: 1px solid rgba(var(--violet-rgb), .26);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-align: right;
  transition: all .18s ease;
}

.menu-mobile a::after {
  content: none;
}

.menu-mobile a:hover {
  color: var(--violet-c);
  border-color: rgba(var(--violet-rgb), .42);
  background: rgba(var(--violet-rgb), .12);
}

.menu-mobile a.actif {
  color: #fff;
  border-color: rgba(var(--violet-rgb), .42);
  background: rgba(var(--violet-rgb), .16);
}


/* ══════════════════════════════════════════════════
   PANNEAU ITINERAIRE STICKY
   Fond dégradé noir vers violet #9747FF
   Sans bordure sur les bulles A/B (demande client)
══════════════════════════════════════════════════ */
.panel-itineraire {
  width: 80%;
  position: sticky;
  top: 0;
  padding-top: calc(var(--nav-h) + 14px);
  margin-top: -14px;
  margin-inline: auto;
  margin-bottom: 200px;
  z-index: 1990;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 18, 0) 0%,
    rgba(10, 10, 18, 0.92) 8%,
    rgba(13, 10, 22, 0.98) 18%,
    rgba(var(--violet-rgb), .82) 100%
  );
  border-radius: 0 0 26px 26px;
  box-shadow: 0 22px 34px -22px rgba(var(--violet-rgb), .34) !important;
}

.panel-inner {
  max-width: var(--mw);
  margin: 0 auto;
  padding: 20px var(--g) 20px;
}

/* Onglets Itinéraire / Prochain départ */
.panel-onglets {
  display: flex;
  background: rgba(0, 0, 0, .42);
  border-radius: 50px;
  padding: 4px;
  margin-bottom: 14px;
}

.panel-tab {
  flex: 1;
  padding: 10px 0;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  transition: all .2s;
}

.panel-tab.active {
  background: var(--violet);
  color: #fff;
}

.panel-tab.inactive {
  background: transparent;
  color: rgba(255, 255, 255, .45);
}

.panel-tab.inactive:hover {
  color: rgba(255, 255, 255, .8);
}

/* Contenu des champs A/B */
.panel-champs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.panel-rang {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Bulle A / B — SANS bordure (demande client) */
.panel-bulle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .6);
  /* Pas de border */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

/* Logo S pour l'onglet "Prochain départ" — SANS bordure */
.panel-bulle.logo-s {
  background: var(--orange);
  font-size: 16px;
  font-weight: 900;
  font-style: italic;
  color: #000;
}

/* Champ texte pill */
.panel-input {
  flex: 1;
  background: rgba(0, 0, 0, .55);
  border: none;
  border-radius: 50px;
  padding: 12px 18px;
  font-size: 14px;
  color: rgba(255, 255, 255, .75);
  outline: none;
  transition: background .18s;
}

.panel-input::placeholder {
  color: rgba(255, 255, 255, .38);
}

.panel-input:focus {
  background: rgba(0, 0, 0, .8);
  color: #fff;
}

/* Bouton icône à droite du champ */
.panel-btn-icone {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  border: 1.5px solid rgba(151, 71, 255, .5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .18s;
}

.panel-btn-icone:hover {
  background: rgba(151, 71, 255, .22);
  border-color: var(--violet);
}

.panel-btn-icone svg {
  width: 16px;
  height: 16px;
}


/* ══════════════════════════════════════════════════
   SECTION HERO — bulles néon flottantes
══════════════════════════════════════════════════ */
.hero {
  min-height: calc(100vh - var(--nav-h) - var(--itinerary-h));
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}

/* Dégradé violet en bas du hero */
.hero-degrade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  background:
    radial-gradient(circle at 18% 26%, rgba(230, 126, 34, 0.12), transparent 18%),
    radial-gradient(circle at 62% 18%, rgba(233, 30, 99, 0.1), transparent 20%),
    radial-gradient(circle at 74% 56%, rgba(24, 212, 216, 0.1), transparent 18%),
    radial-gradient(circle at 38% 72%, rgba(139, 195, 74, 0.08), transparent 22%),
    linear-gradient(to top, rgba(10, 10, 18, 0.34) 0%, rgba(10, 10, 18, 0.12) 36%, transparent 100%);
  pointer-events: none;
}

/* Scène des bulles positionnée en absolu */
.bulle-scene {
  position: absolute;
  inset: 0;
  z-index: 1;
}


/* ── BULLES NÉON ─────────────────────────────────── */
.bulle {
  position: absolute;
  z-index: 1;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: .5px;
  cursor: pointer;
  /* Ombre du texte néon */
  text-shadow:
    0 0 8px color-mix(in srgb, var(--c) 68%, white 12%),
    0 0 18px color-mix(in srgb, var(--c) 48%, black 22%);
  /* Fond en dégradé radial — effet verre sombre */
  background: radial-gradient(circle at 50% 52%,
      #000 0%, #000 34%,
      color-mix(in srgb, var(--c) 25%, black 75%) 52%,
      color-mix(in srgb, var(--c) 68%, black 32%) 72%,
      color-mix(in srgb, var(--c) 93%, white 7%) 100%);
  /* Lueur externe et interne */
  box-shadow:
    inset 0 0 20px color-mix(in srgb, var(--c) 36%, white 4%),
    inset 0 0 30px rgba(255, 255, 255, .03),
    0 0 16px color-mix(in srgb, var(--c) 26%, transparent 74%),
    0 0 36px color-mix(in srgb, var(--c) 13%, transparent 87%);
  animation: flotter var(--d, 6s) ease-in-out infinite;
  transform: translateZ(0);
  transition: transform .28s, box-shadow .28s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  pointer-events: auto;
}

/* Reflet interne en haut de la bulle */
.bulle::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow:
    inset 0 7px 14px rgba(255, 255, 255, .07),
    inset 0 -12px 16px rgba(0, 0, 0, .28);
  pointer-events: none;
}

.bulle:hover,
.bulle:active {
  animation-play-state: paused !important;
}

/* Animation de flottement vertical */
@keyframes flotter {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-11px);
  }
}

/* Positions des bulles — basées sur le plan officiel */
.b-2 {
  --c: #E67E22;
  left: 20%;
  top: 11%;
  --d: 5.9s;
}

.b-9 {
  --c: #E91E63;
  left: 62%;
  top: 9%;
  --d: 6.3s;
}

.b-18 {
  --c: #CC5EB7;
  left: 85%;
  top: 13%;
  --d: 5.7s;
}

.b-12 {
  --c: #8BC34A;
  left: 50%;
  top: 19%;
  --d: 6.1s;
}

.b-1 {
  --c: #E74C3C;
  left: 72%;
  top: 23%;
  --d: 6.8s;
}

.b-10 {
  --c: #00BCD4;
  left: 20%;
  top: 27%;
  --d: 6.2s;
}

.b-6 {
  --c: #1ABC9C;
  left: 42%;
  top: 31%;
  --d: 6.0s;
}

.b-11 {
  --c: #FF5722;
  left: 8%;
  top: 35%;
  --d: 6.9s;
}

.b-48a {
  --c: #18D4D8;
  left: 26%;
  top: 43%;
  --d: 6.8s;
}

.b-7 {
  --c: #3498DB;
  left: 70%;
  top: 39%;
  --d: 5.5s;
}

.b-48b {
  --c: #A89AE8;
  left: 33%;
  top: 53%;
  --d: 6.7s;
}

.b-3 {
  --c: #F1C40F;
  left: 58%;
  top: 50%;
  --d: 5.8s;
}

.b-E {
  --c: #F39C12;
  left: 7%;
  top: 58%;
  --d: 5.4s;
}

.b-5 {
  --c: #27AE60;
  left: 23%;
  top: 67%;
  --d: 5.6s;
}

/* Contenu textuel du hero */
.hero-contenu {
  position: relative;
  z-index: 2;
  max-width: var(--mw);
  margin: 0 auto;
  padding: 380px var(--g) 84px;
  pointer-events: none;
}

.hero-copy,
.hero-pastille,
.hero-title,
.hero-texte,
.hero-subline,
.hero-subline-card {
  pointer-events: none;
}

.hero-copy {
  margin-left: auto;
  width: min(680px, calc(100vw - 56px));
  max-width: 680px;
  display: grid;
  gap: 4px;
  justify-items: end;
  text-align: right;
  margin-top: 0;
}

.hero-ctas,
.hero-ctas a,
.hero-ctas button {
  pointer-events: auto;
}

/* Pastille en haut du texte */
.hero-pastille {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(var(--violet-rgb), .12);
  border: 1px solid rgba(var(--violet-rgb), .24);
  border-radius: 50px;
  padding: 5px 14px;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
}

.hero-title {
  margin: 0 0 22px;
  font-size: clamp(58px, 8vw, 108px);
  line-height: .92;
  letter-spacing: -.06em;
  color: #fff;
  max-width: 8.5ch;
  text-wrap: balance;
}

/* Point vert pulsant dans la pastille */
.hero-pastille span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--vert);
  box-shadow: 0 0 6px rgba(74, 222, 128, .6);
  flex-shrink: 0;
}

.hero-texte {
  font-size: 18px;
  font-weight: 400;
  color: var(--blanc2);
  line-height: 1.72;
  margin-bottom: 28px;
  max-width: 360px;
}

.hero-texte strong {
  color: #fff;
  font-weight: 700;
}

.hero-texte em {
  font-style: italic;
  opacity: .6;
}

/* Boutons CTA du hero */
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn-violet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--violet);
  border: none;
  border-radius: 50px;
  padding: 14px 28px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: all .2s;
}

.btn-violet:hover {
  background: var(--violet-c);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(var(--violet-rgb), .4);
}

.btn-contour {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50px;
  padding: 14px 28px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gris2);
  text-decoration: none;
  transition: all .2s;
}

.btn-contour:hover {
  border: solid 2px;
  font-weight: 500;
  border-color: var(--violet-c);
  color: var(--violet-c);
}


/* ══════════════════════════════════════════════════
   SECTION INFO TRAFIC LIVE
══════════════════════════════════════════════════ */
.section-trafic {
  padding: 0 var(--g);
  max-width: var(--mw);
  margin: 0 auto;
}

/* En-tête avec point pulsant et horodatage */
.trafic-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.trafic-titre-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Point vert pulsant indicateur "live" */
.trafic-point-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--vert);
  animation: pulsation 2s infinite;
}

@keyframes pulsation {
  0% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, .5);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(74, 222, 128, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
  }
}

.trafic-titre {
  font-size: 18px;
  font-weight: 700;
}

.trafic-heure {
  font-size: 11px;
  color: var(--gris);
  font-family: 'Space Mono', monospace;
}

/* Carte contenant les items trafic */
.trafic-carte {
  background: var(--fond1);
  border: 1px solid var(--bordure);
  border-radius: var(--r);
  overflow: hidden;
}

/* Item individuel de trafic */
.traffic-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .04);
  transition: background .15s;
}

.traffic-item:last-child {
  border-bottom: none;
}

.traffic-item:hover {
  background: rgba(255, 255, 255, .025);
}

/* Barre colorée à gauche selon le statut */
.traffic-item.traffic-warning {
  border-left: 3px solid #F5A623;
}

.traffic-item.traffic-ok {
  border-left: 3px solid var(--vert);
}

.traffic-item.traffic-alert {
  border-left: 3px solid var(--rouge);
}

/* Icône SVG blanc à gauche */
.traffic-icone {
  width: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.traffic-icone svg {
  stroke: #fff;
}

.traffic-icone-ok svg {
  stroke: var(--vert);
}

.traffic-icone-warning svg {
  stroke: #F5A623;
}

.traffic-icone-alert svg {
  stroke: var(--rouge);
}

.traffic-body {
  flex: 1;
  min-width: 0;
}

.traffic-ligne {
  font-size: 13px;
  font-weight: 600;
  color: var(--blanc2);
}

.traffic-msg {
  font-size: 12px;
  color: var(--gris2);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Point statut à droite */
.traffic-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.traffic-dot-ok {
  background: var(--vert);
}

.traffic-dot-warning {
  background: #F5A623;
}

.traffic-dot-alert {
  background: var(--rouge);
  animation: clignoter 1s infinite;
}

@keyframes clignoter {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .3
  }
}

/* Pied de la carte trafic */
.trafic-pied {
  padding: 11px 16px;
  background: rgba(255, 255, 255, .02);
  border-top: 1px solid var(--bordure);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.trafic-pied span {
  font-size: 11px;
  color: var(--gris);
}

.trafic-pied a {
  font-size: 12px;
  color: var(--violet-c);
  text-decoration: none;
}

.trafic-pied a:hover {
  color: #fff;
}


/* ══════════════════════════════════════════════════
   SECTION CARTE OSM INTERACTIVE
══════════════════════════════════════════════════ */
.section-carte {
  padding: 0 var(--g);
  max-width: var(--mw);
  margin: 0 auto;
}

/* En-tête carte */
.carte-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 12px;
}

.carte-titre {
  font-size: 18px;
  font-weight: 700;
}

.carte-sous {
  font-size: 12px;
  color: var(--gris);
  margin-top: 3px;
}

/* Conteneur de la carte Leaflet */
.carte-osm-wrap {
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid rgba(151, 71, 255, .2);
  height: 270px;
}

#map-home {
  height: 100%;
  width: 100%;
}

/* Popup personnalisé Leaflet */
.map-popup {
  background: #0D0D20;
  border: 1px solid rgba(151, 71, 255, .4);
  border-radius: 10px;
  padding: 11px 13px;
  min-width: 150px;
}

.map-popup-line {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 3px;
}

.map-popup-route {
  font-size: 11px;
  color: var(--gris2);
  margin-bottom: 7px;
  line-height: 1.4;
}

.map-popup-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 3px 0;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.map-popup-row span {
  font-size: 10px;
  color: var(--gris);
}

.map-popup-row strong {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: var(--orange);
}

/* Surcharge des styles Leaflet par défaut */
.leaflet-popup-content-wrapper {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 10px !important;
}

.leaflet-popup-tip-container {
  display: none !important;
}

.leaflet-popup-content {
  margin: 0 !important;
}

/* ── BOUTONS COLLÉS EN BAS ── */
.sorties-page .event-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

.sorties-page .event-card-body {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
}

.sorties-page .event-card-footer {

  display: flex !important;
  gap: 12px !important;
  padding: 0 16px 20px !important;
}


/* ══════════════════════════════════════════════════
   SECTION ACTIVITES
══════════════════════════════════════════════════ */
.section-activites {
  padding: 0 var(--g);
  max-width: var(--mw);
  margin: 0 auto;
  padding-top: 24px;
}

/* Onglets En cours / Cette nuit */
.tabs-act {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.tab-act {
  padding: 9px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  transition: all .15s;
}

.tab-act.active {
  background: var(--violet);
  color: #fff;
}

.tab-act.off {
  background: rgba(255, 255, 255, .06);
  color: var(--gris2);
}

.tab-act.off:hover {
  background: rgba(255, 255, 255, .10);
  color: #fff;
}

/* Grille des cartes d'activité — 1 colonne mobile */
.grille-events {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

/* Carte d'activité */
.event-card {
  background: transparent;
  border: none;
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s;
}

.event-card:hover {
  background: transparent;
  transform: translateY(-3px);
}

/* Image en haut de la carte */
.event-img-wrap {
  position: relative;
  overflow: hidden;
}

.event-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  transition: transform .35s;
}

.event-card:hover .event-img {
  transform: scale(1.05);
}

/* Badge coloré sur l'image */
.event-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--orange);
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 9px;
  font-weight: 700;
  color: #000;
  letter-spacing: .5px;
  text-transform: uppercase;
}

/* Corps de la carte */
.event-corps {
  padding: 13px 15px 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.event-lieu {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gris);
  margin-bottom: 4px;
}

.event-nom {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 6px;
}

.event-statut {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--gris2);
  margin-bottom: 9px;
}

.event-point {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.event-point.vert {
  background: var(--vert);
  box-shadow: 0 0 5px rgba(74, 222, 128, .4);
}

.event-point.orange {
  background: var(--orange);
}

.event-desc {
  font-size: 12.5px;
  color: rgba(255, 255, 255, .4);
  line-height: 1.6;
  margin-bottom: 13px;
  flex: 1;
}

/* Boutons en bas de la carte */
.event-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  flex-wrap: wrap;
}

.btn-ev {
  flex: 0 1 auto;
  padding: 9px 0;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  transition: all .15s;
}

.btn-ev.contour {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--bordure);
  color: var(--gris2);
}

.btn-ev.contour:hover {
  border-color: rgba(255, 255, 255, .22);
  color: #fff;
}

.btn-ev.plein {
  background: var(--violet);
  border: none;
  color: #fff;
}

.btn-ev.plein:hover {
  background: var(--violet-c);
}

/* Bouton "voir tout" en bas de la grille */
.btn-voir-tout {
  width: fit-content;
  max-width: 400px;
  padding: 13px;
  border-radius: 11px;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  background: rgba(var(--violet-rgb), .10);
  border: 1px solid rgba(var(--violet-rgb), .22);
  color: var(--violet-c);
  transition: background .18s;
}

.btn-voir-tout:hover {
  background: rgba(var(--violet-rgb), .18);
}

.hero-ctas,
.abo-actions,
.event-card-footer,
.event-actions,
.bs-btn-wrap {
  flex-wrap: wrap;
  margin-top: auto;
}

.btn-violet,
.btn-contour,
.btn-abo,
.btn-abo-contour,
.btn-ev,
.btn-voir-tout,
.bs-btn,
.btn-card-fill,
.btn-card-ghost,
.modal-go,
.btn-ev-all {
  font-family: 'Quicksand', 'DM Sans', sans-serif !important;
  width: fit-content;
  max-width: 400px;
}

.btn-violet,
.btn-contour,
.btn-abo,
.btn-abo-contour,
.btn-voir-tout,
.bs-btn,
.modal-go,
.btn-ev-all {
  padding-left: 20px;
  padding-right: 20px;
}


/* ══════════════════════════════════════════════════
   SECTION INFOS PRATIQUES
   Icones SVG blancs — pas d'emojis
══════════════════════════════════════════════════ */
.section-infos {
  padding: 0 var(--g);
  max-width: var(--mw);
  margin: 0 auto;
  padding-top: 28px;
}

.infos-liste {
  display: flex;
  flex-direction: column;
}

/* Ligne individuelle d'info */
.info-rang {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--bordure);
}

.info-rang:last-child {
  border-bottom: none;
}

/* Icone dans un carré arrondi */
.info-icone {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Forcer l'icone SVG en blanc */
.info-icone svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.info-titre {
  font-size: 14px;
  font-weight: 600;
  color: var(--blanc2);
  margin-bottom: 2px;
}

.info-sous {
  font-size: 12px;
  color: var(--gris);
  line-height: 1.5;
}


/* ══════════════════════════════════════════════════
   SECTION ABONNEMENT
══════════════════════════════════════════════════ */
.section-abo {
  padding: 0 var(--g);
  max-width: var(--mw);
  margin: 0 auto;
  padding-top: 28px;
}

.abo-carte {
  background: linear-gradient(135deg, #0D0820 0%, #180B38 100%);
  border: 1px solid rgba(151, 71, 255, .28);
  border-radius: var(--r);
  padding: 30px 24px;
  position: relative;
  overflow: hidden;
}

.abo-interieur {
  display: grid;
  gap: 28px;
  align-items: center;
}

.abo-copy {
  position: relative;
  z-index: 1;
}

/* Halo lumineux décoratif */
.abo-halo {
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(151, 71, 255, .26) 0%, transparent 68%);
  pointer-events: none;
}

/* Pastille texte en haut */
.abo-etiquette {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(151, 71, 255, .14);
  border: 1px solid rgba(151, 71, 255, .28);
  border-radius: 50px;
  padding: 5px 14px;
  margin-bottom: 16px;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(190, 160, 255, .9);
}

.abo-titre {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.abo-titre span {
  color: var(--orange);
}

.abo-texte {
  font-size: 14px;
  color: var(--gris2);
  line-height: 1.7;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
  max-width: 520px;
}

.abo-points {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
  max-width: 460px;
}

.abo-point {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, .8);
  font-size: 14px;
  line-height: 1.45;
}

.abo-point span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--violet-c);
  box-shadow: 0 0 12px rgba(180, 127, 255, .55);
  flex-shrink: 0;
}

.abo-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.btn-abo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  background: var(--violet);
  border: none;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  transition: all .2s;
}

.btn-abo:hover {
  background: var(--violet-c);
  transform: translateY(-1px);
}

.btn-abo-contour {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gris2);
  transition: all .2s;
}

.abo-widget {
  position: relative;
  z-index: 1;
  justify-self: end;
}

.abo-phone {
  width: min(100%, 330px);
  border-radius: 28px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .22);
  backdrop-filter: blur(14px);
}

.abo-screen {
  border-radius: 22px;
  padding: 18px;
  background:
    radial-gradient(circle at 80% 16%, rgba(180, 127, 255, .18), transparent 22%),
    radial-gradient(circle at 18% 84%, rgba(255, 85, 0, .12), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015)),
    #100c1f;
  border: 1px solid rgba(255,255,255,.06);
}

.abo-screen-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.abo-app-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(151, 71, 255, .18);
  border: 1px solid rgba(180, 127, 255, .26);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.abo-app-status {
  color: rgba(255,255,255,.62);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
}

.abo-screen-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  margin-bottom: 16px;
}

.abo-screen-kicker {
  color: rgba(255,255,255,.52);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.abo-screen-title {
  font-size: 25px;
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 8px;
}

.abo-screen-meta {
  color: rgba(255,255,255,.68);
  font-size: 14px;
  line-height: 1.5;
}

.abo-store-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.abo-store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.btn-abo-contour:hover {
  border-color: rgba(255, 255, 255, .5);
  color: #fff;
}


/* ══════════════════════════════════════════════════
   PIED DE PAGE
   Fond dégradé noir vers violet #9747FF
══════════════════════════════════════════════════ */
footer {
  margin-top: 56px;
  overflow: hidden;
  background: linear-gradient(180deg, #000000 0%, #9747FF 100%);
  padding: 52px var(--g) 44px;
}

.footer-inner {
  max-width: var(--mw);
  margin: 0 auto;
}

/* Colonnes de liens */
.footer-haut {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 40px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col-titre {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .4);
  margin-bottom: 14px;
}

.footer-col a {
  font-size: 14px;
  color: rgba(255, 255, 255, .62);
  text-decoration: none;
  padding: 6px 0;
  transition: color .18s;
  width: fit-content;
}

.footer-col a:hover {
  color: #fff;
}

/* Logo grand format en bas */
.footer-logo-grand {
  font-family: 'Space Mono', monospace;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.footer-logo-grand .fl-icone {
  display: inline-block;
  width: 38px;
  height: 38px;
  background: var(--orange);
  border-radius: 9px;
  margin-right: 10px;
  flex-shrink: 0;
  position: relative;
  top: -2px;
}

/* Icones réseaux sociaux — SVG blancs */
.footer-reseaux {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.social-ico {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #000;
  border: 1px solid var(--violet);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .18s;
}

/* L'icone SVG dans le cercle est blanc */
.social-ico svg {
  width: 16px;
  height: 16px;
  fill: #fff;
  stroke: currentColor;
  display: block;
}

.social-ico:hover {
  border-color: var(--violet-c);
  background: #000;
}

.footer-separateur {
  height: 1px;
  background: rgba(255, 255, 255, .14);
  margin: 22px 0;
}

.footer-copyright {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  color: rgba(255, 255, 255, .32);
  letter-spacing: .5px;
}


/* ══════════════════════════════════════════════════
   BOTTOM SHEET — panneau horaires nocturnes
   S'ouvre depuis les bulles hero et les marqueurs carte
══════════════════════════════════════════════════ */
/* Fond semi-transparent derrière le panneau */
.bs-fond {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .72);
  z-index: 3000;
  backdrop-filter: blur(5px);
}

/* Panneau coulissant depuis le bas */
/* --- Modifie ou remplace ces propriétés pour .bs --- */
.bs {
  display: none;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  /* Caché par défaut */
  width: 100%;
  max-width: var(--mw);
  background: var(--fond2);
  border-radius: var(--r) var(--r) 0 0;
  border: 1px solid var(--bordure);
  z-index: 3010;
  transition: transform 0.4s cubic-bezier(0.33, 1, 0.68, 1);
  padding: 20px;

  /* L'astuce Sticky : quand on ajoutera la classe .is-sticky en JS */
}

.bs.is-preview {
  top: calc(var(--nav-h) + 28px);
  bottom: auto;
  left: auto;
  right: max(24px, calc((100vw - var(--mw)) / 2 + var(--g)));
  transform: translateY(12px);
  width: min(520px, calc(100vw - 48px));
  max-width: 520px;
  border-radius: 22px;
  padding: 0 18px 18px;
}

.bs.is-preview .bs-poignee,
.bs.is-preview .bs-col-trajet,
.bs.is-preview .bs-stops-wrap,
.bs.is-preview .bs-btn-wrap,
.bs.is-preview .bs-btn,
.bs.is-preview #bs-summer {
  display: none !important;
}

.bs.is-preview .bs-layout {
  display: block;
}

.bs.is-preview .bs-top-bar {
  padding-top: 6px;
}

.bs.is-preview .bs-close {
  display: none;
}

.bs.is-preview .bs-bulle {
  width: 54px;
  height: 54px;
  border-radius: 18px;
}

.bs.is-preview .bs-nom-ligne {
  font-size: 24px;
}

.bs.is-preview .bs-grille-infos {
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.bs.is-preview .bs-info-case {
  min-height: auto;
  padding: 12px 14px;
}

.bs.is-preview .bs-info-val--heure {
  font-size: 18px;
}

.bs.is-sticky {
  position: fixed;
  top: 0;
  /* Se colle en haut */
  bottom: auto;
  /* Annule le bas */
  border-radius: 0 0 var(--r) var(--r);
  /* Arrondis inversés */
  transform: translateX(-50%) translateY(0);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Poignée visuelle en haut */
.bs-poignee {
  width: 42px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .12);
  margin: 14px auto 20px;
}

/* En-tête : bulle colorée + nom + type */
.bs-entete {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 6px;
}

.bs-bulle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  /* Lueur externe — couleur injectée par JS */
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .08),
    0 0 20px rgba(151, 71, 255, .35);
  transition: box-shadow .22s;
}

.bs-nom-ligne {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.2px;
}

/* Badge type (Urbaine / Régionale / Train) */
.bs-type-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50px;
  padding: 2px 10px;
  font-size: 10px;
  color: var(--gris2);
  margin-top: 4px;
}

/* Trajet de la ligne */
.bs-trajet {
  font-size: 13px;
  color: var(--gris2);
  line-height: 1.5;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--bordure);
}

/* Cases Premier / Dernier départ */
.bs-horaires-cases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.bs-case {
  background: var(--fond2);
  border-radius: 14px;
  padding: 16px 18px;
  /* border coloré injecté par JS */
  border: 1px solid rgba(151, 71, 255, .15);
  transition: border-color .22s;
}

.bs-case-label {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gris);
  margin-bottom: 6px;
}

.bs-case-heure {
  font-family: 'Space Mono', monospace;
  font-size: 26px;
  font-weight: 700;
  color: var(--orange);
}

/* Cases Fréquence + Nuits actives */
.bs-details-cases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.bs-detail-case {
  background: var(--fond2);
  border-radius: 12px;
  padding: 12px 16px;
}

.bs-detail-label {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gris);
  margin-bottom: 5px;
}

.bs-detail-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--blanc2);
}

/* Grille des départs du soir */
.bs-horaires-titre {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gris);
  margin-bottom: 10px;
}

.bs-horaires-grille {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

/* Chaque heure de départ */
.bs-heure {
  background: var(--fond2);
  border: 1px solid rgba(151, 71, 255, .2);
  border-radius: 8px;
  padding: 8px 14px;
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  /* La couleur est overridée par JS */
  transition: color .22s, border-color .22s;
}

/* Bandeau extension estivale */
.bs-ete {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255, 85, 0, .1);
  border: 1px solid rgba(255, 85, 0, .26);
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: 12px;
  color: rgba(255, 180, 100, .9);
}

.bs-ete svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke: rgba(255, 180, 100, .9);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

/* Bouton principal */
.bs-btn {
  width: 100%;
  padding: 15px;
  background: var(--violet);
  border: none;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  /* La couleur est overridée par JS selon la ligne */
  transition: filter .2s, transform .15s;
}

.bs-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}


/* ══════════════════════════════════════════════════
   DISPOSITION DESKTOP — Trafic + Carte cote a cote
   S'active a partir de 1024px
══════════════════════════════════════════════════ */
.rangee-trafic-carte {
  display: flex;
  flex-direction: column;
  gap: 24px;
}


/* ══════════════════════════════════════════════════
   RESPONSIVE TABLETTE — 768px+
══════════════════════════════════════════════════ */
@media (min-width: 768px) {
  :root {
    --g: 32px;
    --r: 16px;
  }

  /* Nom du logo visible */
  .nav-logo-nom {
    display: block;
  }

  /* Bulles légèrement plus grandes */
  .bulle {
    width: 94px;
    height: 94px;
    font-size: 27px;
  }

  /* Carte plus haute */
  .carte-osm-wrap {
    height: 340px;
  }

  /* Grille 2 colonnes pour les activités */
  .grille-events {
    grid-template-columns: 1fr 1fr;
  }

  /* Section infos en 2 colonnes */
  .infos-liste {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 32px;
  }

  /* Footer sur 3 colonnes */
  .footer-haut {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-logo-grand {
    font-size: 64px;
  }

  /* Carte d'abonnement plus de padding */
  .abo-carte {
    padding: 40px 40px;
  }

  .abo-interieur {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
    gap: 34px;
  }
}


/* ══════════════════════════════════════════════════
   RESPONSIVE DESKTOP — 1024px+
   Meme ADN que le mobile, mais etendu en largeur
══════════════════════════════════════════════════ */
@media (min-width: 1024px) {
  :root {
    --g: 48px;
  }

  /* Liens de navigation visibles — hamburger masque */
  .nav-liens {
    display: flex;
  }

  .nav-hamburger {
    display: none;
    
  }

  /* Panneau itinéraire horizontal sur une ligne */
  .panel-itineraire {
    width: 100%;
  }

  .panel-inner {
    display: grid;
    grid-template-columns: 272px minmax(0, 1fr);
    align-items: center;
    justify-content: center;
    column-gap: 28px;
    padding: 14px var(--g) 18px;
    width: 100%;
    max-width: var(--mw);
    margin: 0 auto;
  }

  .panel-onglets {
    width: 272px;
    flex-shrink: 0;
    margin-bottom: 0;
  }

  /* Les deux champs A/B en colonnes */
  .panel-champs {
    width: 100%;
    flex-direction: row;
    gap: 16px;
    justify-content: flex-start;
    align-items: center;
  }

  #panel-itin {
    flex-direction: row;
    width: 100%;
    gap: 16px;
  }

  #panel-next {
    flex-direction: row;
    width: 100%;
    gap: 16px;
  }

  .panel-rang {
    flex: 1;
    min-width: 0;
  }

  .panel-input {
    width: 100%;
  }

  /* Hero — texte plus grand */
  .hero-contenu {
    padding-top: 220px;
    padding-bottom: 80px;
  }

  .hero-texte {
    font-size: 20px;
    max-width: 500px;
  }

  /* Trafic + Carte côte à côte */
  .rangee-trafic-carte {
    flex-direction: row;
  }

  .section-trafic {
    flex: 1;
    padding: 0;
  }

  .section-carte {
    flex: 1;
    padding: 0;
  }

  /* Carte plus haute en desktop */
  .carte-osm-wrap {
    height: 400px;
  }

  /* Activités sur 3 colonnes */
  .grille-events {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Infos pratiques sur 4 colonnes — style vertical */
  .infos-liste {
    grid-template-columns: repeat(4, 1fr);
  }

  .info-rang {
    flex-direction: column;
    align-items: flex-start;
    border-bottom: none;
    border-right: 1px solid var(--bordure);
    padding-right: 24px;
  }

  .info-rang:last-child {
    border-right: none;
  }

  /* Abonnement — layout côte à côte texte / bouton */
  .abo-interieur {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 56px;
  }

  .abo-texte {
    margin-bottom: 0;
  }

  /* Footer sur 4 colonnes */
  .footer-haut {
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
  }

  .footer-logo-grand {
    font-size: 80px;
  }
}


/* ══════════════════════════════════════════════════
   RESPONSIVE GRAND ECRAN — 1440px+
══════════════════════════════════════════════════ */
@media (min-width: 1440px) {
  :root {
    --g: 64px;
  }

  /* 4 colonnes d'activités */
  .grille-events {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Texte hero plus grand */
  .hero-texte {
    font-size: 22px;
  }

  /* Bulles plus grandes */
  .bulle {
    width: 104px;
    height: 104px;
    font-size: 30px;
  }

  /* Logo footer plus grand */
  .footer-logo-grand {
    font-size: 96px;
  }

  /* Espace entre sections plus grand */
  .s-gap {
    height: 64px;
  }
}

/* ══════════════════════════════════════════════════
   BOTTOM SHEET — responsive desktop
   Mobile  : plein largeur depuis le bas
   Tablette: max-width 580px, arrondi 4 côtés
   Desktop : panneau centré large 780px, flotte
══════════════════════════════════════════════════ */

/* Tablette 768px+ */
@media (min-width: 768px) {
  .bs {
    max-width: 600px;
    border-radius: 24px;
    bottom: 28px;
  }

  .bs-bulle {
    width: 64px;
    height: 64px;
    font-size: 22px;
  }

  .bs-nom-ligne {
    font-size: 22px;
  }

  .bs-case-heure {
    font-size: 28px;
  }
}

/* Desktop 1024px+ — panneau large centré */
@media (min-width: 1024px) {
  .bs {
    max-width: 820px;
    width: 820px;
    bottom: 40px;
    border-radius: 24px;
    padding: 0 36px 44px;
  }

  .bs-poignee {
    display: none;
  }

  /* Layout 2 colonnes sur desktop */
  .bs-desktop-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
  }

  /* Colonne gauche — infos */
  .bs-col-gauche {}

  /* Colonne droite — graphique trajet */
  .bs-col-droite {
    display: block;
  }

  .bs-entete {
    gap: 18px;
    margin-bottom: 10px;
  }

  .bs-bulle {
    width: 72px;
    height: 72px;
    font-size: 26px;
  }

  .bs-nom-ligne {
    font-size: 26px;
  }

  .bs-case-heure {
    font-size: 32px;
  }

  .bs-trajet {
    font-size: 15px;
  }

  /* Bouton plein largeur sur desktop aussi */
  .bs-btn-wrap {
    grid-column: 1 / -1;
  }
}

/* ══════════════════════════════════════════════════
   BOTTOM SHEET — graphique de trajet + col droite
══════════════════════════════════════════════════ */

/* Colonne droite — cachée sur mobile, visible sur desktop */
.bs-col-droite {
  display: none;
}

/* Titre "Arrêts principaux" */
.bs-graphe-titre {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gris);
  margin-bottom: 16px;
  font-weight: 600;
}

/* Conteneur du graphique SVG */
.bs-graphe-wrap {
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 14px;
  padding: 20px 16px 28px;
  overflow: hidden;
}

/* Bouton wrap — plein largeur */
.bs-btn-wrap {
  margin-top: 16px;
}

/* Afficher la colonne droite sur desktop */
@media (min-width: 1024px) {
  .bs-col-droite {
    display: block;
  }

  /* Graphique plus grand sur desktop */
  .bs-graphe-wrap {
    padding: 24px 20px 32px;
    background: rgba(255, 255, 255, .04);
  }
}

@media screen and (max-width: 1023px) {
  .nav-droite {
    margin-left: auto;
    margin-right: 0;
    margin-top: 0;
  }

  .nav-inner {
    padding: 0;
    width: 95%;
  }

  .panel-inner {
    margin: 0;
  }

  .panel-itineraire {
    width: 100%;
  }
}


/* ══════════════════════════════════════════════════
   MODIFICATIONS v2 — Noctambus
   - Quicksand sur les titres importants
   - Images avec coin arrondi (bottom-left)
   - Filles grises → violet
   - Menu mobile amélioré (slide + icônes sociaux)
   - Borders nav alignées au texte
   - Facebook dans le footer
══════════════════════════════════════════════════ */

/* ── QUICKSAND — titres importants ── */
.trafic-titre,
.abo-titre,
.footer-col-titre,
.event-nom,
.bs-nom-ligne,
.carte-titre,
.section-label,
h1, h2, h3 {
  font-family: 'Quicksand', 'DM Sans', sans-serif;
  font-weight: 700;
}

/* ── IMAGES AVEC COIN ARRONDI (bas-gauche arrondi, style capture) ── */
.event-img,
.event-card-img,
.event-card > img,
.event-img-wrap img,
.event-card-img-wrap img {
  border-radius: 0 0 0 18px;
}

.event-img-wrap,
.event-card-img-wrap {
  border-radius: 0 0 0 18px;
  overflow: hidden;
}

.event-img-wrap.img-fallback,
.event-card-img-wrap.img-fallback {
  min-height: 160px;
  background:
    radial-gradient(circle at 18% 26%, rgba(151, 71, 255, .24), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(255, 85, 0, .18), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0)),
    #0d0d18;
}

.event-img-wrap.img-fallback::after,
.event-card-img-wrap.img-fallback::after {
  content: 'Noctambus';
  position: absolute;
  left: 16px;
  bottom: 14px;
  font-family: 'Quicksand', 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  color: rgba(255,255,255,.78);
}

/* ── FILLES GRISES → VIOLET (lignes de séparation) ── */
.footer-separateur,
hr,
.section-separateur,
.infos-sep,
.info-rang {
  border-color: rgba(151, 71, 255, .22) !important;
}

/* Lignes horizontales dans les items trafic */
.traffic-item {
  border-bottom-color: rgba(151, 71, 255, .12) !important;
}

/* Séparateur générique */
[class*="sep"],
[class*="separateur"],
[class*="divider"] {
  background: rgba(151, 71, 255, .22) !important;
  border-color: rgba(151, 71, 255, .22) !important;
}

/* ── MENU MOBILE — plus dynamique ── */
/* Transition slide depuis le haut */
.menu-mobile {
  transform: translateY(-12px);
  transition: opacity .28s ease, transform .28s cubic-bezier(.4,0,.2,1);
}

.menu-mobile.ouvert {
  transform: translateY(0);
  opacity: 1;
}



/* ── NAV — borders alignées avec le texte ── */
.nav-liens a {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  padding: 8px 16px;
}

/* ── FOOTER — icône Facebook ── */
/* (ajoutée directement dans le HTML index.html) */



/* ===== GLOBAL FINAL PATCH ===== */
.nav-logo-img,
.nav-logo svg,
.nav-logo img,
.nav-logo-svg {
  width: 100%;
  height: 100px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-droite {
  align-items: center;
}

.nav-liens a,
.menu-mobile a,
.btn-contour,
.btn-abo-contour,
.btn-ev.contour,
.voir-tout {
  transition: all .18s ease;
}

.nav-liens a,
.menu-mobile a,
.btn-contour,
.btn-abo-contour,
.btn-ev.contour {
  border-color: rgba(151, 71, 255, .42);
}

.footer-logo-grand img {
  width: auto;
  height: 44px;
}

.footer-logo-grand a {
  display: inline-flex;
  align-items: center;
}

/* uniformiser les liens à bordure sur tout le site */
.btn-contour,
.btn-abo-contour,
.btn-ev.contour,
.nav-liens a,
.menu-mobile a {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02), 0 0 0 rgba(0,0,0,0);
}

.btn-contour:hover,
.btn-abo-contour:hover,
.btn-ev.contour:hover,
.nav-liens a:hover,
.menu-mobile a:hover {
  border-color: var(--violet-c);
  color: #fff;
  background: rgba(151, 71, 255, .10);
}

/* sorties + infos : icones blanches */
.tarif-icon,
.security-icon,
.contact-icon {
  color: #fff !important;
  font-size: 22px;
  filter: grayscale(1) brightness(2.2);
}

.sorties-chip-icon,
.event-meta-icon,
.marker-pin {
  color: #fff;
}

/* Bottom sheet corrigé pour matcher le HTML réel */
.bs-fond {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .72);
  z-index: 950;
  backdrop-filter: blur(5px);
}

.bs {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) translateY(100%);
  width: calc(100% - 16px);
  max-width: 680px;
  background: linear-gradient(180deg, rgba(20, 20, 30, .98) 0%, rgba(8, 8, 15, .98) 100%);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 22px 22px 0 0;
  z-index: 1000;
  padding: 0 18px 20px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .45);
  display: none;
  overflow: hidden;
  transition: transform .4s cubic-bezier(0.33, 1, 0.68, 1);
}

.bs-top-bar { position: relative; display:flex; justify-content:center; align-items:center; padding-top:8px; }
.bs-close { position:absolute; top:10px; right:0; width:38px; height:38px; border:1px solid rgba(255,255,255,.08); border-radius:50%; background:rgba(255,255,255,.04); color:#fff; display:flex; align-items:center; justify-content:center; }
.bs-close svg { width:16px; height:16px; }
.bs-layout { display:block; }
.bs-col-info { display:block; min-width:0; }
.bs-col-trajet { display:none; }
.bs-entete-texte { min-width:0; }
.bs-grille-infos { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:14px; }
.bs-info-case { background:rgba(255,255,255,.03); border:1px solid rgba(151,71,255,.15); border-radius:14px; padding:14px 16px; }
.bs-info-label { font-size:9px; letter-spacing:2px; text-transform:uppercase; color:var(--gris); margin-bottom:6px; }
.bs-info-val { font-size:14px; font-weight:600; color:var(--blanc2); }
.bs-info-val--heure { font-family:'Space Mono', monospace; font-size:24px; font-weight:700; color:var(--orange); }
.bs-section-label { font-size:10px; letter-spacing:2px; text-transform:uppercase; color:var(--gris); margin-bottom:10px; font-weight:600; }
.bs-departs { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:14px; }

@media (min-width: 768px) {
  .bs { width: calc(100% - 48px); max-width: 720px; bottom: 24px; border-radius:24px; padding: 0 24px 24px; }
}

@media (min-width: 1024px) {
  .bs { width: min(860px, calc(100% - 80px)); max-width:860px; bottom:40px; border-radius:24px; padding:0 30px 30px; }
  .bs-poignee { display:none; }
  .bs-layout { display:grid; grid-template-columns:1.05fr .95fr; gap:22px; align-items:start; }
  .bs-col-trajet { display:block; }
}


/* ===== PROFESSIONAL CONSISTENCY PATCH ===== */
.filter-pill,
.btn-ev-all,
.section-nav a,
.breadcrumb a,
.dp-close,
.bs-close {
  transition: all .18s ease;
}

.filter-pill,
.btn-ev-all,
.section-nav a {
  border-radius: 999px !important;
  border: 1px solid rgba(151, 71, 255, .28) !important;
  background: rgba(255,255,255,.03) !important;
  color: rgba(255,255,255,.82) !important;
}

.filter-pill:hover,
.btn-ev-all:hover,
.section-nav a:hover {
  border-color: var(--violet-c) !important;
  background: rgba(151,71,255,.10) !important;
  color: #fff !important;
}

.filter-pill.active,
.filter-pill.actif,
.section-nav a.active {
  background: rgba(151,71,255,.16) !important;
  border-color: var(--violet) !important;
  color: #fff !important;
}

.sorties-page .filter-pill,
.sorties-page .btn-ev-all,
.infos-page .filter-pill,
.lignes-page .filter-pill {
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}

.nav,
footer {
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.nav {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.history-bus-icon,
.story-stop::before {will-change: transform;}


/* ===== REFINED INFO PAGE + HOME ENHANCEMENTS ===== */
.infos-page,
.infos-page body,
.infos-page section,
.infos-page p,
.infos-page li,
.infos-page .faq-answer,
.infos-page .faq-question,
.infos-page .page-subtitle,
.infos-page .tarif-text,
.infos-page .security-text,
.infos-page .contact-text {
  font-family: 'Quicksand', 'DM Sans', sans-serif !important;
  line-height: 1.42 !important;
  letter-spacing: .01em;
}

.infos-page .page-subtitle,
.infos-page p,
.infos-page li,
.infos-page .faq-answer,
.infos-page .contact-sub,
.infos-page .security-sub,
.infos-page .tarif-sub {
  line-height: 1.38 !important;
}

.infos-page .tarif-icon,
.infos-page .security-icon,
.infos-page .contact-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(151,71,255,.18);
  color: #fff !important;
  font-size: 0 !important;
  filter: none !important;
}

.infos-page .tarif-icon svg,
.infos-page .security-icon svg,
.infos-page .contact-icon svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
  color: #fff;
}

.infos-page .filter-pill {
  gap: 8px;
  padding-inline: 16px !important;
}

.home-facts {
  max-width: var(--mw);
  margin: 0 auto;
  padding: 0 var(--g) 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.home-fact-card {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid rgba(151,71,255,.18);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 16px 34px rgba(0,0,0,.18);
  animation: homeCardFloat 6s ease-in-out infinite;
}

.home-fact-card:nth-child(2) { animation-delay: .6s; }
.home-fact-card:nth-child(3) { animation-delay: 1.2s; }
.home-fact-kicker {
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--violet-c);
  margin-bottom: 6px;
}
.home-fact-value {
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}
.home-fact-text {
  color: var(--gris2);
  line-height: 1.45;
}

.hero-pastille,
.hero-ctas a,
.home-fact-card,
.panel-itineraire {
  animation: homeReveal .7s ease both;
}
.hero-ctas a:nth-child(2){ animation-delay: .08s; }
.home-fact-card:nth-child(1){ animation-delay: .14s; }
.home-fact-card:nth-child(2){ animation-delay: .18s; }
.home-fact-card:nth-child(3){ animation-delay: .22s; }

@keyframes homeReveal {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes homeCardFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@media (min-width: 768px) {
  .home-facts { grid-template-columns: repeat(3, 1fr); }
}

/* ===== HOME LINE PANEL RESET ===== */
.bs-fond {
  display: none;
  position: absolute;
  inset: 0;
  background: transparent;
  backdrop-filter: none;
  z-index: 2;
  pointer-events: none;
}

.bs {
  --bs-accent: var(--violet);
  --bs-text: #fff;
  font-family: 'Quicksand', 'DM Sans', sans-serif;
  display: none;
  position: absolute;
  top: calc(var(--nav-h) + 8px);
  right: max(28px, calc((100vw - var(--mw)) / 2 + var(--g)));
  left: auto;
  bottom: auto;
  transform: translateY(-12px) scale(.985);
  width: min(620px, calc(100vw - 72px));
  max-height: calc(100vh - var(--nav-h) - 92px);
  overflow: auto;
  padding: 14px 20px 22px;
  border-radius: 30px;
  border: 1px solid color-mix(in srgb, var(--bs-accent) 20%, rgba(255,255,255,.08));
  background:
    radial-gradient(circle at 14% 10%, color-mix(in srgb, var(--bs-accent) 10%, transparent 90%), transparent 32%),
    radial-gradient(circle at 88% 86%, rgba(151,71,255,.08), transparent 28%),
    linear-gradient(180deg, rgba(14, 12, 24, 0.74), rgba(8, 8, 14, 0.84));
  box-shadow:
    0 18px 46px rgba(0,0,0,.20),
    0 0 0 1px rgba(255,255,255,.02) inset;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  z-index: 3;
  transition: transform .22s ease, opacity .22s ease, border-color .22s ease, box-shadow .22s ease;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.bs.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.bs.is-hover {
  box-shadow:
    0 22px 54px rgba(0,0,0,.24),
    0 0 32px color-mix(in srgb, var(--bs-accent) 10%, transparent 90%);
}

.bs-top-bar {
  display: flex;
  justify-content: flex-end;
  padding: 0 0 2px;
}

.bs-close {
  position: static;
  top: auto;
  right: auto;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.72);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bs-shell {
  display: grid;
  gap: 16px;
  position: relative;
}

.bs-head {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.bs-badge {
  width: 78px;
  height: 78px;
  min-height: 78px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--bs-accent);
  position: relative;
  isolation: isolate;
  text-shadow:
    0 0 8px color-mix(in srgb, var(--bs-accent) 68%, white 12%),
    0 0 18px color-mix(in srgb, var(--bs-accent) 48%, black 22%);
  box-shadow:
    inset 0 0 20px color-mix(in srgb, var(--bs-accent) 36%, white 4%),
    inset 0 0 30px rgba(255, 255, 255, .03),
    0 0 16px color-mix(in srgb, var(--bs-accent) 26%, transparent 74%),
    0 0 36px color-mix(in srgb, var(--bs-accent) 13%, transparent 87%);
}

.bs-badge::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 52%,
      #000 0%, #000 34%,
      color-mix(in srgb, var(--bs-accent) 25%, black 75%) 52%,
      color-mix(in srgb, var(--bs-accent) 68%, black 32%) 72%,
      color-mix(in srgb, var(--bs-accent) 93%, white 7%) 100%);
  z-index: -1;
}

.bs-head-copy {
  display: grid;
  gap: 10px;
  max-width: 34ch;
  width: 100%;
}

.bs-line-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.bs-destination {
  font-size: 31px;
  line-height: 1;
  letter-spacing: -.05em;
  color: #fff;
  font-weight: 700;
}

.bs-route-line {
  display: grid;
  gap: 6px;
  font-size: 15px;
  line-height: 1.4;
  color: rgba(255,255,255,.78);
  max-width: 34ch;
  font-weight: 600;
}

.bs-route-line::before {
  content: "Parcours";
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
}

.bs-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.bs-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.04);
  color: rgba(255,255,255,.58);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bs-validity {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255,255,255,.42);
  max-width: 42ch;
  padding-top: 4px;
}

.bs-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.bs-info-box {
  display: grid;
  gap: 6px;
  padding: 13px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.028);
  border: 1px solid color-mix(in srgb, var(--bs-accent) 14%, rgba(255,255,255,.06));
}

.bs-btn-wrap {
  margin-top: 2px;
}

.bs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--bs-accent) 18%, rgba(255,255,255,.08));
  background: linear-gradient(135deg, rgba(151,71,255,.16), rgba(151,71,255,.08));
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.01em;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.bs-btn:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--bs-accent) 30%, rgba(255,255,255,.08));
  background: linear-gradient(135deg, rgba(151,71,255,.22), rgba(151,71,255,.12));
}

.bs-info-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.46);
}

.bs-info-value {
  font-size: 23px;
  line-height: 1;
  letter-spacing: -.04em;
  color: #fff;
  font-weight: 700;
}

.bs-empty {
  padding: 18px 0 6px;
  color: rgba(255,255,255,.56);
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 1023px) {
  .hero-contenu {
    padding-top: 240px;
    padding-bottom: 64px;
  }

  .hero-copy {
    width: 100%;
    max-width: 100%;
    justify-items: end;
    text-align: right;
  }

  .hero-ctas {
    justify-content: flex-end;
  }

  html.bs-open,
  body.bs-open {
    overflow: hidden;
    height: 100%;
    touch-action: none;
  }

  .bs {
    position: fixed;
    left: 50%;
    right: auto;
    top: auto;
    bottom: 16px;
    transform: translateX(-50%) translateY(16px) scale(1);
    width: calc(100vw - 20px);
    max-height: calc(100vh - var(--nav-h) - 28px);
    padding: 16px 16px 20px;
    border-radius: 24px;
    will-change: transform;
  }

  .bs-top-bar {
    padding-bottom: 4px;
  }

  .bs-head {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .bs-badge {
    width: 82px;
    height: 82px;
    min-height: 82px;
    max-width: none;
  }

  .bs-destination {
    font-size: 24px;
  }

  .bs-route-line {
    font-size: 14px;
  }

  .bs-info-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .bs-info-box {
    padding: 14px 16px;
  }

  .bs-info-value {
    font-size: 22px;
  }

  .bs-fond {
    position: fixed;
    background: rgba(5, 5, 10, 0.38);
    backdrop-filter: blur(2px);
    z-index: 1200;
    pointer-events: auto;
  }
}

/* ===== DESKTOP NAV + CURRENT FOOTER FIX ===== */
@media (min-width: 1024px) {
  .nav-inner {
    transform: translateY(5px);
  }
}

.site-footer {
  margin-top: 56px;
  overflow: hidden;
  background: linear-gradient(180deg, #06060b 0%, #9747FF 100%);
  padding: 52px var(--g) 40px;
}

.site-footer .footer-inner {
  max-width: var(--mw);
  margin: 0 auto;
}

.site-footer .footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(180px, .42fr) minmax(180px, .42fr) minmax(140px, .28fr);
  gap: 28px;
  align-items: start;
}

.site-footer .footer-brand-lockup {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  text-decoration: none;
  color: inherit;
}

.site-footer .footer-brand-lockup img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex-shrink: 0;
}

.site-footer .footer-brand-copy {
  display: grid;
  gap: 10px;
  max-width: 520px;
}

.site-footer .footer-kicker {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.48);
}

.site-footer .footer-title {
  font-family: 'Quicksand', 'DM Sans', sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  line-height: .98;
  letter-spacing: -.04em;
  color: #fff;
}

.site-footer .footer-title span {
  color: rgba(255,255,255,.76);
}

.site-footer .footer-brand-copy p {
  margin: 0;
  max-width: 42ch;
  color: rgba(255,255,255,.68);
  line-height: 1.55;
}

.site-footer .footer-nav-grid {
  display: contents;
}

.site-footer .footer-linkgroup {
  display: grid;
  gap: 10px;
  align-content: start;
}

.site-footer .footer-linkgroup a {
  text-decoration: none;
  color: rgba(255,255,255,.72);
  transition: color .18s ease;
}

.site-footer .footer-linkgroup a:hover {
  color: #fff;
}

.site-footer .footer-socials {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: flex-start;
  align-items: flex-start;
  align-content: start;
  margin-top: 0;
  width: 100%;
}

.site-footer .footer-socials .footer-kicker {
  width: 100%;
  text-align: left;
  margin-bottom: 2px;
}

.site-footer .footer-socials .social-ico,
.site-footer .footer-socials .social-ico.social-ico-text {
  width: auto;
  height: auto;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  color: rgba(255,255,255,.74);
  text-decoration: none;
  transition: color .18s ease, opacity .18s ease;
}

.site-footer .footer-socials .social-ico:hover,
.site-footer .footer-socials .social-ico.social-ico-text:hover {
  background: transparent;
  border: none;
  color: #fff;
}

.site-footer .footer-socials .social-ico svg,
.site-footer .footer-socials .social-ico.social-ico-text svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  stroke: currentColor;
  flex-shrink: 0;
  display: block;
}

.site-footer .footer-socials .social-ico span,
.site-footer .footer-socials .social-ico.social-ico-text span {
  display: inline;
  font-family: 'Quicksand', 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
}

.site-footer .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.12);
}

.site-footer .footer-meta {
  color: rgba(255,255,255,.54);
  max-width: 60ch;
}

.site-footer .footer-copyright {
  max-width: 520px;
}

@media (max-width: 1023px) {
  .site-footer .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-footer .footer-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .site-footer .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer .footer-socials {
    align-items: flex-start;
    width: auto;
  }

  .site-footer .footer-socials .footer-kicker {
    text-align: left;
  }
}

/* ===== HOME TRAFIC / MAP / FACTS REFINEMENT ===== */
.rangee-trafic-carte {
  align-items: start;
  gap: 28px;
}

.section-trafic,
.section-carte {
  padding: 0;
}

.trafic-header,
.carte-header {
  min-height: 54px;
  margin-bottom: 16px;
}

.trafic-header {
  align-items: center;
}

.carte-header {
  align-items: center;
}

.trafic-carte,
.carte-osm-wrap,
.home-fact-card {
  background: rgba(255,255,255,.02);
  border: 0 !important;
  box-shadow: none !important;
}

.trafic-carte,
.carte-osm-wrap {
  border-radius: 24px;
}

.trafic-carte {
  overflow: hidden;
}

.traffic-item {
  padding: 18px 20px;
  align-items: center;
  border-bottom: 1px solid rgba(151, 71, 255, .10);
}

.traffic-item:hover {
  background: rgba(255, 255, 255, .018);
}

.traffic-item.traffic-warning,
.traffic-item.traffic-ok,
.traffic-item.traffic-alert {
  border-left: 0;
}

.traffic-body {
  display: grid;
  gap: 4px;
}

.traffic-ligne {
  font-size: 15px;
  line-height: 1.2;
}

.traffic-msg {
  font-size: 13px;
  line-height: 1.45;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

.trafic-pied {
  padding: 14px 20px 16px;
  background: transparent;
  border-top: 1px solid rgba(151, 71, 255, .10);
}

.carte-header > div {
  display: grid;
  gap: 4px;
}

.carte-osm-wrap {
  height: 460px;
}

.home-facts {
  gap: 18px;
  margin-top: 26px;
}

.home-fact-card {
  padding: 20px 22px;
  border-radius: 24px;
}

.home-fact-kicker {
  margin-bottom: 10px;
}

.home-fact-value {
  margin-bottom: 10px;
}

.home-fact-text {
  line-height: 1.55;
}

/* ===== ACTIVITES REDESIGN ===== */
.section-activites {
  display: grid;
  gap: 22px;
}

.events-carousel {
  display: grid;
  gap: 0;
}

.events-carousel-track {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  padding: 0;
}

.section-activites .section-head {
  align-items: center;
  margin-bottom: 2px;
}

.tabs-act {
  gap: 10px;
  margin-bottom: 10px;
}

.tab-act {
  padding: 10px 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
}

.tab-act.active {
  box-shadow: 0 10px 30px rgba(var(--violet-rgb), .18);
}

.grille-events {
  gap: 20px;
}

.event-card {
  position: relative;
  display: grid;
  grid-template-rows: 210px 1fr;
  flex: 0 0 min(380px, calc(100vw - 132px));
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015)),
    rgba(10,10,16,.72);
  overflow: hidden;
  scroll-snap-align: start;
  box-shadow: 0 18px 38px rgba(0,0,0,.18);
}

.event-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(151,71,255,.24), transparent);
  opacity: .8;
}

.event-card:hover {
  transform: translateY(-4px);
}

@media (max-width: 1023px) {
  .event-card {
    flex-basis: min(360px, calc(100vw - 68px));
  }
}

.event-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 0 28px;
}

.event-img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.04) 0%, rgba(0,0,0,.14) 42%, rgba(8,8,14,.88) 100%);
  pointer-events: none;
}

.event-img {
  height: 100%;
}

.event-badge {
  top: 14px;
  left: 14px;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 10px;
}

.event-corps {
  padding: 18px 18px 18px;
  gap: 10px;
}

.event-lieu {
  font-size: 11px;
  letter-spacing: .12em;
  color: rgba(255,255,255,.48);
  margin-bottom: 0;
}

.event-nom {
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: -.03em;
  margin-bottom: 0;
}

.event-statut {
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,.76);
  margin-bottom: 0;
}

.event-desc {
  font-size: 13px;
  color: rgba(255,255,255,.58);
  line-height: 1.6;
  margin-bottom: 0;
}

.event-actions {
  gap: 10px;
  padding-top: 6px;
}

.btn-ev {
  padding: 11px 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.btn-ev.contour {
  background: transparent;
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.76);
}

.btn-ev.plein {
  background: linear-gradient(135deg, var(--violet) 0%, #a45cff 100%);
}

.btn-voir-tout {
  margin-top: 4px;
  padding: 15px;
  border-radius: 999px;
}

/* ===== ACTIVITES REDESIGN V2 ===== */
.section-activites .section-label {
  color: rgba(201, 178, 255, .92);
}

.section-activites .section-head {
  margin-bottom: 8px;
}

.section-activites .voir-tout {
  color: rgba(201, 178, 255, .86);
}

.tab-act {
  padding: 11px 20px;
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.05);
}

.tab-act.active {
  background: linear-gradient(135deg, rgba(127,65,255,.28), rgba(164,92,255,.18));
  border-color: rgba(151,71,255,.26);
}

.event-card {
  grid-template-rows: 228px 1fr;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)),
    linear-gradient(180deg, rgba(10,10,16,.92), rgba(12,11,20,.84));
  box-shadow: 0 22px 46px rgba(0,0,0,.24);
  transition: transform .22s ease, box-shadow .22s ease;
}

.event-card::after {
  inset: 0;
  height: auto;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(145deg, rgba(151,71,255,.24), rgba(255,255,255,.05), rgba(151,71,255,0));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .78;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 60px rgba(0,0,0,.28);
}

.event-img-wrap {
  border-radius: 0 0 30px 30px;
}

.event-img-wrap::after {
  background:
    linear-gradient(180deg, rgba(0,0,0,.06) 0%, rgba(0,0,0,.2) 40%, rgba(8,8,14,.92) 100%),
    linear-gradient(135deg, rgba(151,71,255,.16), transparent 36%, transparent 100%);
}

.event-img {
  transform: scale(1.01);
  transition: transform .45s ease;
}

.event-card:hover .event-img {
  transform: scale(1.05);
}

.event-badge {
  top: 16px;
  left: 16px;
  padding: 6px 12px;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: rgba(8,8,14,.64);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  color: #fff;
}

.event-corps {
  padding: 22px 22px 20px;
  gap: 12px;
}

.event-lieu {
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(201, 178, 255, .72);
}

.event-nom {
  font-size: 24px;
  line-height: 1.08;
  max-width: 14ch;
}

.event-statut {
  color: rgba(255,255,255,.82);
  padding-bottom: 4px;
}

.event-desc {
  color: rgba(255,255,255,.62);
  max-width: 32ch;
}

.event-actions {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.btn-ev {
  min-height: 44px;
  padding: 0 18px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.btn-ev.contour {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.82);
}

.btn-ev.contour:hover {
  border-color: rgba(151,71,255,.28);
  color: #fff;
}

.btn-ev.plein {
  background: linear-gradient(135deg, #7f41ff 0%, #a45cff 100%);
  box-shadow: 0 12px 28px rgba(127,65,255,.28);
}

.btn-ev.plein:hover {
  background: linear-gradient(135deg, #8a50ff 0%, #af67ff 100%);
}

@media (max-width: 1023px) {
  .event-nom {
    font-size: 22px;
    max-width: none;
  }

  .event-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

@media (min-width: 1024px) {
  .event-card {
    flex-basis: min(440px, calc((100vw - 240px) / 2));
  }
}

@media (max-width: 767px) {
  .event-card {
    grid-template-rows: 180px 1fr;
  }

  .event-nom {
    font-size: 18px;
  }
}

/* ===== HOME PARCOURS + PRATIQUE ALIGNMENT ===== */
.home-experience,
.section-infos {
  max-width: var(--mw);
  margin: 0 auto;
  padding: 0 var(--g);
}

.home-experience {
  display: grid;
  gap: 28px;
}

.home-experience-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
  gap: 28px;
  align-items: end;
}

.home-experience-head > div {
  display: grid;
  gap: 10px;
}

.home-experience-title {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.02;
  letter-spacing: -.04em;
}

.home-experience-text {
  margin: 0;
  max-width: 44ch;
  justify-self: end;
  color: rgba(255,255,255,.72);
  line-height: 1.6;
}

.home-experience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.home-experience-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 22px 0 0;
}

.home-experience-step {
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  letter-spacing: .08em;
  color: rgba(255,255,255,.46);
}

.home-experience-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.home-experience-card p {
  margin: 0;
  color: rgba(255,255,255,.72);
  line-height: 1.6;
}

.home-experience-link {
  color: rgba(255,255,255,.92);
  text-decoration: none;
  width: fit-content;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255,255,255,.18);
}

.section-infos .section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-infos .infos-liste {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  align-items: stretch;
}

.section-infos .info-rang {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 0;
  border: 0 !important;
  min-height: 100%;
}

.section-infos .info-icone {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  margin-bottom: 2px;
}

.section-infos .info-rang > div:last-child {
  display: grid;
  gap: 8px;
  align-content: start;
}

.section-infos .info-titre {
  font-size: 17px;
  line-height: 1.25;
  margin: 0;
}

.section-infos .info-sous {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,.58);
}

@media (max-width: 1023px) {
  .home-experience-head {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .home-experience-text {
    justify-self: start;
  }

  .home-experience-grid,
  .section-infos .infos-liste {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .section-infos .info-rang {
    grid-template-columns: 50px 1fr;
    grid-template-rows: none;
    gap: 16px;
  }
}

/* ===== HOME STRUCTURE REORDER ===== */
.home-overview .wrap {
  display: grid;
  gap: 24px;
}

.home-overview-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 34px;
  align-items: end;
}

.home-overview-title {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.02;
  letter-spacing: -.04em;
  max-width: 12ch;
}

.home-overview-text {
  margin: 0;
  max-width: 38ch;
  justify-self: end;
  color: rgba(255,255,255,.68);
  line-height: 1.7;
}

.home-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 10px;
}

.home-fact-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 28px 0 0;
  min-height: 100%;
}

.home-fact-kicker {
  margin-bottom: 0;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(201, 178, 255, .76);
}

.home-fact-value {
  margin-bottom: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: .96;
  letter-spacing: -.04em;
}

.home-fact-text {
  max-width: 32ch;
  color: rgba(255,255,255,.66);
  line-height: 1.65;
}

.home-network-head {
  margin-bottom: 28px;
  align-items: end;
}

.home-network-head > div {
  display: grid;
  gap: 8px;
}

.home-network-title {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
  letter-spacing: -.03em;
  color: #fff;
  max-width: 18ch;
}

.rangee-trafic-carte {
  align-items: start;
  row-gap: 24px;
}

.home-experience {
  gap: 30px;
}

.home-experience-head {
  align-items: start;
}

.home-experience-grid {
  gap: 28px;
}

.home-experience-card {
  gap: 14px;
  padding-top: 26px;
}

.home-experience-card h3 {
  font-size: 22px;
}

.home-experience-card p {
  max-width: 32ch;
  color: rgba(255,255,255,.68);
}

@media (max-width: 1023px) {
  .home-overview .wrap {
    gap: 16px;
  }

  .home-overview-intro {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .home-overview-text {
    justify-self: start;
  }

  .home-facts {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .home-network-head {
    gap: 14px;
    align-items: start;
  }

  .home-network-title {
    max-width: none;
  }
}

/* ===== HOME GRID SYMMETRY ===== */
@media (min-width: 1024px) {
  .home-overview,
  .section-activites,
  .home-experience,
  .section-infos {
    max-width: var(--mw);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--g);
    padding-right: var(--g);
  }

  .home-overview .wrap,
  .section-activites,
  .home-experience,
  .section-infos {
    --home-grid-gap: 28px;
  }

  .home-overview .section-head,
  .home-network-head,
  .section-activites .section-head,
  .home-experience-head,
  .section-infos .section-head {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--home-grid-gap);
    align-items: end;
  }

  .home-overview .section-head .section-label,
  .home-network-head > div,
  .section-activites .section-head .section-label,
  .home-experience-head > div,
  .section-infos .section-head .section-label {
    grid-column: 1 / span 7;
  }

  .home-overview .section-head .voir-tout,
  .home-network-head .voir-tout,
  .section-activites .section-head .voir-tout,
  .home-experience-head .home-experience-text,
  .section-infos .section-head .voir-tout {
    grid-column: 8 / span 5;
    justify-self: end;
  }

  .home-overview-intro {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--home-grid-gap);
    align-items: start;
  }

  .home-overview-title {
    grid-column: 1 / span 7;
    max-width: 13ch;
  }

  .home-overview-text {
    grid-column: 8 / span 5;
    max-width: 40ch;
    padding-top: 6px;
  }

  .home-facts,
  .home-experience-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--home-grid-gap);
    row-gap: 28px;
  }

  .home-facts > * ,
  .home-experience-grid > * {
    min-width: 0;
  }

  .home-facts > *:nth-child(3n + 1),
  .home-experience-grid > *:nth-child(3n + 1) {
    grid-column: span 4;
  }

  .home-facts > *:nth-child(3n + 2),
  .home-experience-grid > *:nth-child(3n + 2) {
    grid-column: span 4;
  }

  .home-facts > *:nth-child(3n),
  .home-experience-grid > *:nth-child(3n) {
    grid-column: span 4;
  }

  .home-fact-card,
  .home-experience-card,
  .section-infos .info-rang {
    min-height: 100%;
  }

  .home-fact-card {
    padding-top: 26px;
  }

  .rangee-trafic-carte {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--home-grid-gap);
    align-items: stretch;
  }

  .section-trafic {
    grid-column: 1 / span 6;
  }

  .section-carte {
    grid-column: 7 / span 6;
  }

  .section-trafic,
  .section-carte {
    min-height: 100%;
  }

  .section-activites .tabs-act,
  .section-activites #en-cours,
  .section-activites #cette-nuit,
  .home-experience-grid,
  .section-infos .infos-liste {
    margin-left: 0;
    margin-right: 0;
  }

  .section-infos .infos-liste {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--home-grid-gap);
    row-gap: 28px;
  }

  .section-infos .info-rang {
    grid-column: span 3;
    gap: 18px;
  }

  .section-infos .info-titre,
  .home-experience-card h3,
  .home-fact-value {
    text-wrap: balance;
  }
}

/* ===== CETTE NUIT HERO LAYOUT ===== */
@media (min-width: 1024px) {
  .home-overview .wrap {
    gap: 26px;
  }

  .home-overview-intro,
  .home-facts {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 28px;
  }

  .home-overview-title {
    grid-column: 1 / span 7;
    max-width: 10.5ch;
  }

  .home-overview-text {
    grid-column: 8 / span 5;
    align-self: start;
    padding-top: 8px;
    max-width: 18ch;
    justify-self: start;
  }

  .home-facts {
    align-items: stretch;
  }

  .home-facts > :first-child {
    grid-column: 1 / span 5;
    grid-row: 1 / span 3;
    min-height: 100%;
  }

  .home-facts > :nth-child(2),
  .home-facts > :nth-child(3) {
    grid-column: 6 / span 3;
  }

  .home-facts > :nth-child(4) {
    grid-column: 9 / span 4;
  }

  .home-fact-card {
    padding: 28px 26px 24px;
  }

  .home-facts > :first-child .home-fact-value {
    font-size: clamp(44px, 4.2vw, 64px);
    line-height: .9;
  }

  .home-facts > :first-child .home-fact-text {
    max-width: 20ch;
    font-size: 16px;
  }

  .home-facts > :not(:first-child) .home-fact-value {
    font-size: clamp(26px, 2.4vw, 40px);
    line-height: .96;
  }

  .home-facts > :not(:first-child) .home-fact-text {
    max-width: 24ch;
  }
}

/* ===== ACTIVITES CONTEMPORARY LAYOUT ===== */
.section-activites {
  gap: 26px;
}

.section-activites .section-head {
  margin-bottom: 2px;
}

.tabs-act {
  display: inline-flex;
  width: fit-content;
  padding: 6px;
  border-radius: 999px;
}

.tab-act {
  min-height: 42px;
}

.events-carousel {
  gap: 0;
}

.events-carousel-track {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  overflow: visible;
  padding: 0;
  mask-image: none;
}

.event-card {
  min-height: 100%;
  flex: none;
  border-radius: 30px;
  scroll-snap-align: unset;
}

.event-card::before {
  content: "";
  position: absolute;
  inset: auto 22px 0;
  height: 72px;
  background: linear-gradient(180deg, rgba(127,65,255,0), rgba(127,65,255,.12));
  filter: blur(24px);
  opacity: .55;
  pointer-events: none;
}

.event-card:first-child {
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
    linear-gradient(180deg, rgba(12,11,22,.96), rgba(10,10,16,.88));
}

.event-card:first-child .event-corps {
  padding: 24px 24px 22px;
}

.event-card:first-child .event-nom {
  font-size: clamp(28px, 3vw, 38px);
  max-width: 12ch;
}

.event-card:first-child .event-desc {
  max-width: 38ch;
}

.event-img-wrap {
  min-height: 220px;
}

.event-img {
  width: 100%;
  object-fit: cover;
}

.event-corps {
  min-height: 100%;
}

.event-lieu {
  font-size: 10px;
}

.event-desc {
  font-size: 14px;
}

.event-actions {
  padding-top: 10px;
}

.btn-ev {
  min-width: 124px;
  justify-content: center;
}

@media (min-width: 1024px) {
  #en-cours .events-carousel-track {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 24px 28px;
  }

  #en-cours .event-card:first-child {
    grid-column: 1 / span 7;
    grid-row: 1 / span 3;
  }

  #en-cours .event-card:nth-child(n + 2) {
    grid-column: 8 / span 5;
  }

  #cette-nuit .events-carousel-track {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 24px 28px;
  }

  #cette-nuit .event-card:first-child {
    grid-column: 1 / span 6;
  }

  #cette-nuit .event-card:nth-child(2) {
    grid-column: 7 / span 3;
  }

  #cette-nuit .event-card:nth-child(3) {
    grid-column: 10 / span 3;
  }

  #cette-nuit .event-card:nth-child(2),
  #cette-nuit .event-card:nth-child(3) {
    grid-template-rows: 188px 1fr;
  }

  #cette-nuit .event-card:nth-child(2) .event-nom,
  #cette-nuit .event-card:nth-child(3) .event-nom {
    font-size: 22px;
    max-width: none;
  }

  #cette-nuit .event-card:nth-child(2) .event-desc,
  #cette-nuit .event-card:nth-child(3) .event-desc {
    max-width: 28ch;
  }
}

@media (max-width: 1023px) {
  .tabs-act {
    width: 100%;
  }

  .tab-act {
    flex: 1 1 0;
    justify-content: center;
  }

  .events-carousel-track {
    gap: 18px;
  }

  .event-card:first-child .event-nom {
    font-size: 26px;
  }
}

/* ===== ACTIVITES / REPERES SWAP ===== */
@media (min-width: 1024px) {
  #en-cours .events-carousel-track {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 24px 28px;
  }

  #en-cours .event-card:first-child,
  #en-cours .event-card:nth-child(2),
  #en-cours .event-card:nth-child(3),
  #en-cours .event-card:nth-child(4) {
    grid-row: auto;
  }

  #en-cours .event-card:first-child,
  #en-cours .event-card:nth-child(2) {
    grid-column: span 6;
  }

  #en-cours .event-card:nth-child(3),
  #en-cours .event-card:nth-child(4) {
    grid-column: span 6;
  }

  #en-cours .event-card:first-child .event-nom,
  #en-cours .event-card:nth-child(2) .event-nom,
  #en-cours .event-card:nth-child(3) .event-nom,
  #en-cours .event-card:nth-child(4) .event-nom {
    font-size: 28px;
    max-width: 14ch;
  }

  #cette-nuit .events-carousel-track {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 24px 28px;
  }

  #cette-nuit .event-card:first-child,
  #cette-nuit .event-card:nth-child(2),
  #cette-nuit .event-card:nth-child(3) {
    grid-column: span 4;
    grid-template-rows: 210px 1fr;
  }

  #cette-nuit .event-card:first-child .event-nom,
  #cette-nuit .event-card:nth-child(2) .event-nom,
  #cette-nuit .event-card:nth-child(3) .event-nom {
    font-size: 24px;
    max-width: 13ch;
  }

  .home-experience-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 24px 28px;
  }

  .home-experience-card {
    position: relative;
    min-height: 100%;
    padding: 28px 28px 26px;
    border-radius: 28px;
    background:
      linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018)),
      linear-gradient(180deg, rgba(10,10,16,.9), rgba(12,11,20,.82));
    box-shadow: 0 20px 44px rgba(0,0,0,.2);
  }

  .home-experience-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(145deg, rgba(151,71,255,.2), rgba(255,255,255,.05), rgba(151,71,255,0));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: .8;
  }

  .home-experience-card:first-child {
    grid-column: 1 / span 7;
    grid-row: 1 / span 2;
    align-content: end;
    min-height: 100%;
    background:
      linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
      linear-gradient(180deg, rgba(12,11,22,.96), rgba(10,10,16,.88));
  }

  .home-experience-card-map {
    overflow: hidden;
    isolation: isolate;
  }

  .home-experience-card-map > *:not(.home-experience-map) {
    position: relative;
    z-index: 2;
  }

  .home-experience-map {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
      radial-gradient(circle at 20% 24%, rgba(255, 85, 0, .08), transparent 24%),
      radial-gradient(circle at 76% 32%, rgba(151,71,255,.12), transparent 26%),
      linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0) 28%),
      linear-gradient(180deg, rgba(7,7,12,.18), rgba(7,7,12,.66) 60%, rgba(8,8,14,.92) 100%);
  }

  .home-experience-card-map::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(8,8,14,.08), rgba(8,8,14,.2) 28%, rgba(8,8,14,.76) 68%, rgba(8,8,14,.94) 100%);
    z-index: 0;
  }

  .home-experience-map-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: .95;
  }

  .home-map-node {
    position: absolute;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Quicksand', 'DM Sans', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    background:
      radial-gradient(circle at center, rgba(0,0,0,.94) 0 42%, transparent 43%),
      radial-gradient(circle, rgba(151,71,255,.78), rgba(151,71,255,.18) 58%, transparent 72%);
    box-shadow: 0 0 26px rgba(151,71,255,.18);
    z-index: 1;
  }

  .home-map-node.node-1 {
    top: 18%;
    left: 11%;
    color: #ffb45a;
    background:
      radial-gradient(circle at center, rgba(0,0,0,.94) 0 42%, transparent 43%),
      radial-gradient(circle, rgba(232, 105, 10, .76), rgba(232, 105, 10, .18) 58%, transparent 72%);
    box-shadow: 0 0 26px rgba(232,105,10,.18);
  }

  .home-map-node.node-2 {
    top: 34%;
    left: 34%;
    color: #d7b5ff;
  }

  .home-map-node.node-3 {
    top: 54%;
    left: 52%;
    color: #f1eaff;
    background:
      radial-gradient(circle at center, rgba(0,0,0,.94) 0 42%, transparent 43%),
      radial-gradient(circle, rgba(168, 154, 232, .82), rgba(168, 154, 232, .2) 58%, transparent 72%);
    box-shadow: 0 0 26px rgba(168,154,232,.18);
  }

  .home-map-node.node-4 {
    top: 20%;
    right: 18%;
    color: #d7f07b;
    background:
      radial-gradient(circle at center, rgba(0,0,0,.94) 0 42%, transparent 43%),
      radial-gradient(circle, rgba(200, 212, 0, .78), rgba(200, 212, 0, .18) 58%, transparent 72%);
    box-shadow: 0 0 26px rgba(200,212,0,.18);
  }

  .home-map-node.node-5 {
    bottom: 18%;
    right: 11%;
    color: #9cebe5;
    background:
      radial-gradient(circle at center, rgba(0,0,0,.94) 0 42%, transparent 43%),
      radial-gradient(circle, rgba(0, 172, 193, .78), rgba(0, 172, 193, .18) 58%, transparent 72%);
    box-shadow: 0 0 26px rgba(0,172,193,.18);
  }

  .home-experience-card:nth-child(2),
  .home-experience-card:nth-child(3) {
    grid-column: 8 / span 5;
  }

  .home-experience-step {
    font-size: 13px;
    letter-spacing: .16em;
    color: rgba(201,178,255,.7);
  }

  .home-experience-card h3 {
    font-size: 26px;
    line-height: 1.08;
    max-width: 12ch;
  }

  .home-experience-card:first-child h3 {
    font-size: clamp(30px, 3vw, 38px);
    max-width: 11ch;
  }

  .home-experience-card p {
    max-width: 34ch;
    color: rgba(255,255,255,.7);
  }

  .home-experience-link {
    margin-top: auto;
    border-bottom-color: rgba(151,71,255,.34);
    color: #fff;
  }
}

@media (max-width: 1023px) {
  .home-experience-card {
    padding: 24px 0 0;
  }
}

/* ===== CETTE NUIT ALIGNMENT ===== */
@media (min-width: 1024px) {
  #cette-nuit .events-carousel-track {
    align-items: stretch;
  }

  #cette-nuit .event-card {
    align-self: stretch;
    min-height: 100%;
    grid-template-rows: 220px minmax(0, 1fr) !important;
    background:
      linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)),
      linear-gradient(180deg, rgba(10,10,16,.92), rgba(12,11,20,.84)) !important;
    box-shadow: 0 22px 46px rgba(0,0,0,.24);
  }

  #cette-nuit .event-img-wrap {
    min-height: 220px;
    height: 220px;
    border-radius: 0 0 28px 28px;
    overflow: hidden;
  }

  #cette-nuit .event-img-wrap::after {
    background:
      linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.14) 38%, rgba(8,8,14,.88) 100%),
      linear-gradient(135deg, rgba(151,71,255,.12), transparent 38%, transparent 100%);
  }

  #cette-nuit .event-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  #cette-nuit .event-corps {
    min-height: 100%;
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 22px 22px 20px;
  }

  #cette-nuit .event-lieu {
    color: rgba(201, 178, 255, .72);
    letter-spacing: .16em;
    text-transform: uppercase;
  }

  #cette-nuit .event-nom {
    font-size: 24px !important;
    line-height: 1.08;
    max-width: 12ch !important;
  }

  #cette-nuit .event-desc {
    min-height: 3.5em;
    max-width: 30ch;
    color: rgba(255,255,255,.62);
  }

  #cette-nuit .event-actions {
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  #cette-nuit .btn-ev {
    width: 100%;
    min-width: 0;
  }

  #cette-nuit .event-card:first-child,
  #cette-nuit .event-card:nth-child(2),
  #cette-nuit .event-card:nth-child(3) {
    grid-column: span 4;
    grid-template-rows: 220px minmax(0, 1fr) !important;
  }

  #cette-nuit .event-card:first-child .event-nom,
  #cette-nuit .event-card:nth-child(2) .event-nom,
  #cette-nuit .event-card:nth-child(3) .event-nom {
    font-size: 24px !important;
    max-width: 12ch !important;
  }
}

@media (max-width: 1023px) {
  #cette-nuit .event-card {
    grid-template-rows: 200px minmax(0, 1fr) !important;
  }

  #cette-nuit .event-img-wrap {
    min-height: 200px;
    height: 200px;
  }

  #cette-nuit .event-corps {
    padding: 20px 20px 18px;
  }

  #cette-nuit .event-nom {
    font-size: 22px !important;
    max-width: none !important;
  }
}

/* ══════════════════════════════════════════════════
   LISIBILITE NUIT — COUCHE GLOBALE
══════════════════════════════════════════════════ */
html {
  text-size-adjust: 100%;
}

body {
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
}

p,
li,
dd,
.page-sub,
.hero-para,
.hero-copy p,
.traffic-item-desc,
.event-card-desc,
.home-overview-intro p,
.home-overview-card p,
.home-experience-card p,
.footer-linkgroup a,
.footer-brand-copy p,
.footer-copyright,
.footer-meta,
.map-popup p,
.bs-route-line,
.bs-validity,
.bs-info-val {
  line-height: 1.68 !important;
  letter-spacing: 0 !important;
}

.section-label,
.footer-kicker,
.bs-info-label,
.bs-section-label,
.event-tag-line,
.home-experience-step {
  letter-spacing: 1.2px !important;
}

.hero-copy,
.home-overview-intro,
.traffic-body,
.event-card-body,
.bs-head-copy {
  max-width: 60ch;
}

.page-sub,
.hero-para,
.traffic-item-desc,
.event-card-desc,
.home-overview-intro p,
.home-overview-card p,
.home-experience-card p,
.footer-brand-copy p,
.footer-copyright,
.footer-meta,
.bs-validity,
.bs-route-line {
  color: rgba(255, 255, 255, .76) !important;
}

.traffic-item-title,
.event-card-name,
.home-overview-card h3,
.home-experience-card h3,
.bs-destination {
  letter-spacing: -.02em !important;
}

@media (max-width: 767px) {
  body {
    font-size: 15.5px;
    line-height: 1.68;
  }

  p,
  li,
  dd,
  .page-sub,
  .hero-para,
  .hero-copy p,
  .traffic-item-desc,
  .event-card-desc,
  .home-overview-intro p,
  .home-overview-card p,
  .home-experience-card p,
  .footer-linkgroup a,
  .footer-brand-copy p,
  .footer-copyright,
  .footer-meta,
  .map-popup p,
  .bs-route-line,
  .bs-validity,
  .bs-info-val {
    line-height: 1.72 !important;
  }
}

@media (min-width: 768px) {
  .section-head {
    margin-bottom: 22px;
  }

  .hero-copy,
  .home-overview-intro,
  .traffic-body,
  .event-card-body,
  .bs-head-copy {
    max-width: 62ch;
  }
}

/* ===== NAV + HOME FINAL ALIGNMENT ===== */
.nav-liens {
  gap: 8px;
  align-items: center;
}

.nav-liens a {
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  background: rgba(var(--violet-rgb), .10);
  border: 1.5px solid rgba(var(--violet-rgb), .34);
  color: rgba(255, 255, 255, .86);
}

.nav-liens a:hover {
  background: rgba(var(--violet-rgb), .18);
  border-color: rgba(var(--violet-rgb), .5);
}

.nav-liens a.actif {
  background: linear-gradient(180deg, rgba(var(--violet-rgb), .34), rgba(var(--violet-rgb), .22));
  border-color: rgba(var(--violet-rgb), .62);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 10px 24px -16px rgba(var(--violet-rgb), .62);
}

.home-overview,
.section-activites,
.home-experience {
  position: relative;
}

.home-overview .section-head,
.section-activites .section-head,
.home-experience-head {
  margin-bottom: 22px;
}

.nav {
  position: fixed !important;
  z-index: 100000 !important;
}

.nav,
.nav-inner,
.nav-droite,
.nav-hamburger {
  pointer-events: auto !important;
}

.page-hero,
.page-hero::after,
.infos-anchor-nav,
.infos-wrap.infos-anchor-nav {
  pointer-events: auto;
  
}

.page-hero::after {
  pointer-events: none !important;
}