/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap');

/* =============================================
   VARIABLES – modifie ici pour changer tout le design
   ============================================= */
:root {
  /* Couleurs */
  --color-primary:      #FD5312;
  --color-secondary:    #f5c518;
  --color-bg:           #0a1628;
  --color-bg-mid:       #0d2a50;
  --color-text:         #ffffff;
  --color-text-muted:   rgba(255, 255, 255, 0.78);

  /* Nav */
  --nav-height:         80px;
  --nav-padding-x:      40px;
  --nav-icon-bg:        rgba(0, 0, 0, 0.55);  /* fond sombre derrière les icônes */
  --nav-link-size:      17px;

  /* Typographie */
  --font:               'Roboto', Arial, sans-serif;

  /* Espacements */
  --gap-sm:   12px;
  --gap-md:   24px;
  --gap-lg:   40px;
  --gap-xl:   72px;

  /* Rayons */
  --r-sm:     8px;
  --r-md:     18px;
  --r-lg:     32px;
  --r-pill:   999px;

  /* Ombres – système papier superposé */
  --shadow-sm:     0 2px 8px rgba(0,0,0,0.38), 0 1px 3px rgba(0,0,0,0.26);
  --shadow-md:     0 4px 16px rgba(0,0,0,0.42), 0 2px 6px rgba(0,0,0,0.28);
  --shadow-card:   0 10px 32px rgba(0,0,0,0.48), 0 4px 10px rgba(0,0,0,0.30);
  --shadow-btn:    0 8px 22px rgba(0,0,0,0.42), 0 3px 8px rgba(0,0,0,0.28);
  --shadow-moon:   0 4px 14px rgba(0,0,0,0.40);
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html  { scroll-behavior: smooth; }
body  {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main  { flex: 1; }
img   { display: block; max-width: 100%; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }

/* =============================================
   NAV DESKTOP  (injectée via JS)
   ============================================= */
.navbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: var(--nav-height);
  padding: 0 var(--nav-padding-x);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  overflow: hidden;
}

/* Réserve l'espace de la navbar avant son injection JS */
body {
  padding-top: var(--nav-height);
}

/* Fond flouté : carte réseau */
.navbar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../image/Group 16.png') no-repeat center / cover;
  filter: blur(6px);
  transform: scale(1.06);
  z-index: 0;
}
/* Overlay sombre */
.navbar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 36, 0.6);
  z-index: 0;
}
/* Contenu au-dessus */
.navbar > * { position: relative; z-index: 1; }

/* Logo */
.navbar__logo { display: flex; align-items: center; }
.navbar__logo-img { height: 30px; width: auto; }

/* Liens */
.navbar__links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.navbar__links a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--nav-link-size);
  font-weight: 500;
  padding: 7px 14px 7px 8px;
  border-radius: var(--r-pill);
  transition: background 0.2s;
  white-space: nowrap;
}

.navbar__links a:hover {
  background: rgba(255,255,255,0.08);
}

.navbar__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.navbar__icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.55));
  transition: width 0.2s, height 0.2s;
}

/* Lien actif : icône encore plus grande, pas de soulignement */
.navbar__links a.active .navbar__icon {
  width: 60px;
  height: 60px;
}

/* Bouton lune */
.navbar__moon {
  background: none;
  border: none;
  width: 42px;
  height: 42px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  transition: transform 0.25s;
  box-shadow: var(--shadow-moon);
}
.navbar__moon:hover { transform: rotate(18deg) scale(1.12); }
.navbar__moon-img { width: 100%; height: 100%; object-fit: contain; }

/* =============================================
   FOOTER  (injecté via JS – desktop only)
   ============================================= */
.footer {
  background: var(--color-bg-mid);
  padding: var(--gap-lg);
  text-align: center;
  font-size: 13px;
  color: var(--color-text-muted);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer__logo { font-size: 20px; font-weight: 900; color: var(--color-primary); margin-bottom: 12px; }
.footer__links { display: flex; justify-content: center; gap: var(--gap-md); margin-bottom: 12px; }
.footer__links a:hover { color: var(--color-text); }
.footer__copy { font-size: 12px; opacity: 0.45; }

/* =============================================
   HERO
   ============================================= */
.hero {
  padding: var(--gap-md) var(--gap-lg) var(--gap-lg);
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Fond flouté */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../image/Group 16.png') no-repeat center / cover;
  filter: blur(7px);
  transform: scale(1.06);
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

/* Titre */
.hero__title {
  font-size: clamp(30px, 4.5vw, 56px);
  font-weight: 900;
  line-height: 1.12;
  max-width: 660px;
  margin-bottom: var(--gap-lg);
}

/* Vidéo hero */
.hero__video-wrap {
  width: 100%;
  max-width: 800px;
  border-radius: var(--r-lg);
  overflow: hidden;
  margin: 0 auto var(--gap-lg);
  box-shadow: var(--shadow-card);
}

.hero__video {
  display: block;
  width: 100%;
  height: auto;
}

/* Ligne blanche sous le titre */
.hero__title::after {
  content: '';
  display: block;
  width: min(340px, 100%);
  height: 2px;
  background: rgba(255,255,255,0.7);
  margin-top: 20px;
  border-radius: 2px;
}

/* =============================================
   CARDS GRID
   ============================================= */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  align-items: start;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: opacity 0.25s, transform 0.25s;
  text-decoration: none;
  color: inherit;
}

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

.card__header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.card__label {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-muted);
  line-height: 1.5;
  padding-top: 4px;
}

/* Pastille dans les cards : même taille que nuit genève */
.card .badge {
  min-width: 44px;
  height: 44px;
  font-size: 16px;
}

/* Wrapper image : contrôle la taille, le clip et l'ombre */
.card__img-box {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: var(--video-h);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(0,0,0,0.48), 0 4px 10px rgba(0,0,0,0.30);
}

/* Image remplit le wrapper sans déborder */
.card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}


/* Badge numéro de ligne */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-secondary);
  color: var(--color-bg);
  font-weight: 900;
  font-size: 14px;
  min-width: 34px;
  height: 34px;
  border-radius: var(--r-pill);
  padding: 0 8px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

/* =============================================
   BOUTON CTA
   ============================================= */
.cta-wrap {
  padding: var(--gap-md) 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--r-pill);
  font-family: var(--font);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-text);
  width: 100%;
  padding: 22px 32px;
  font-size: 17px;
  box-shadow: var(--shadow-btn);
}
.btn--primary:hover {
  background: #FD5312;
  transform: scale(1.01);
  box-shadow: 0 18px 42px rgba(0,0,0,0.5), 0 4px 10px rgba(0,0,0,0.3);
}

/* =============================================
   BOTTOM NAV  (mobile uniquement – injectée via JS)
   ============================================= */
.bottom-nav { display: none; }

/* =============================================
   DESKTOP UNIQUEMENT  > 768px
   ============================================= */
@media (min-width: 769px) {
  .hero {
    padding-left: var(--gap-lg);
    padding-right: var(--gap-lg);
    align-items: center;
  }

  .hero__title,
  .hero__video-wrap,
  .cards,
  .hero .cta-wrap {
    width: 100%;
    max-width: 1040px;
  }
}

/* =============================================
   RESPONSIVE  ≤ 768px  →  MOBILE
   ============================================= */
@media (max-width: 768px) {

  /* ── Variables mobile ── */
  :root {
    --nav-padding-x: 18px;
    --gap-lg: 18px;
    --gap-xl: 44px;
  }

  /* ── Nav desktop : cacher les liens, garder logo + lune ── */
  .navbar__links { display: none; }
  .navbar { height: 60px; justify-content: space-between; }
  body { padding-top: 60px; }

  /* ── Bottom nav ── */
  .bottom-nav {
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: fixed;
    bottom: 14px;
    left: 14px;
    right: 14px;
    background: var(--color-primary);
    border-radius: var(--r-pill);
    padding: 10px 6px;
    z-index: 200;
    box-shadow: 0 18px 40px rgba(0,0,0,0.52), 0 4px 10px rgba(0,0,0,0.32);
  }

  .bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    color: rgba(255,255,255,0.72);
    transition: color 0.2s;
  }

  .bottom-nav__icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  }

  .bottom-nav__icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.45));
  }

  .bottom-nav__label {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.01em;
  }

  /* Item actif */
  .bottom-nav__item.active { color: white; }

  .bottom-nav__item.active .bottom-nav__icon-wrap {
    background: white;
    transform: translateY(-8px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.28);
    border-radius: var(--r-md);
  }

  .bottom-nav__item.active .bottom-nav__icon {
    width: 36px;
    height: 36px;
  }

  .bottom-nav__item.active .bottom-nav__label {
    font-weight: 700;
  }

  /* ── Hero mobile : pas de centrage vertical ── */
  .hero {
    min-height: auto;
    justify-content: flex-start;
    padding-left: var(--gap-lg);
    padding-right: var(--gap-lg);
  }

  .hero__video-wrap {
    margin-bottom: 72px;
  }

  /* ── Cards empilées + reorder mobile ── */
  .cards { grid-template-columns: 1fr; }
  .hero__title::after { width: 200px; }


  /* Maquette mobile : party1 (2e card) passe en premier */
  .card:nth-child(1) { order: 2; }
  .card:nth-child(2) { order: 1; }
  .card:nth-child(3) { order: 3; }

  /* ── Espace sous contenu pour la bottom nav ── */
  body { padding-bottom: 96px; }

  /* ── Footer caché sur mobile ── */
  .footer { display: none; }
}

@media (max-width: 400px) {
  .bottom-nav__label { font-size: 12px; }
  .bottom-nav__icon-wrap { width: 40px; height: 40px; }
}
/* =============================================
   BADGE VARIANTES
   ============================================= */
/* Badge violet pour les numéros de ligne */
.badge--line {
  background: #6B3BA0;
  color: #ffffff;
  min-width: 34px;
  height: 34px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

/* =============================================
   LIGNE DÉTAIL  (ligne-1.html)
   ============================================= */

/* Boîte sélecteur : fond clair, pill violet + bouton orange */
.line-selector {
  background: rgba(255, 255, 255, 0.97);
  border-radius: var(--r-lg);
  padding: 16px;
  display: grid;
  gap: 12px;
  margin-bottom: var(--gap-md);
  box-shadow: 0 12px 40px rgba(0,0,0,0.38), 0 4px 12px rgba(0,0,0,0.22);
}

.line-selector__num {
  background: #6B3BA0;
  color: #ffffff;
  border-radius: var(--r-pill);
  text-align: center;
  padding: 16px;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

/* Liste d'événements */
.line-events {
  display: grid;
  gap: var(--gap-md);
}

.line-event {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Badge + label au-dessus de l'image */
.line-event__meta {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.line-event__label {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Wrapper image ligne */
.line-event__img-box {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.line-event__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* =============================================
   PAGES INTERNES
   ============================================= */
.page {
  position: relative;
  overflow: hidden;
  padding: var(--gap-xl) var(--gap-lg) var(--gap-lg);
  min-height: 80vh;
}

.page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../image/Group 16.png') no-repeat center / cover;
  filter: blur(7px);
  transform: scale(1.06);
  z-index: 0;
}

.page > * {
  position: relative;
  z-index: 1;
}

.page--narrow {
  max-width: 980px;
  margin: 0 auto;
}

.page--wide {
  max-width: 1300px;
  margin: 0 auto;
}

.page-header {
  margin-bottom: var(--gap-md);
}

.page-header h1 {
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.1;
  margin-bottom: 10px;
}

.page-header p {
  color: var(--color-text-muted);
  font-size: 15px;
}

.page-header--route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-sm);
}

.page-header--route h1 {
  margin-bottom: 0;
}

.page-header--route h1 span {
  color: var(--color-secondary);
}

.line-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap-sm);
  margin: 0 0 var(--gap-md);
}

.line-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-md);
  background: rgba(10, 22, 40, 0.55);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.line-chip:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
}

.page-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap-md);
  align-items: start;
}

.event-card {
  border-radius: var(--r-md);
  overflow: hidden;
  background: rgba(8, 18, 36, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-card);
}

.event-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.event-card__body {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.45;
}

.form-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: var(--r-md);
  background: rgba(8, 18, 36, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-card);
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 13px;
  color: var(--color-text-muted);
}

.field input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.07);
  color: var(--color-text);
  padding: 12px 14px;
  font-family: var(--font);
}

.recent {
  margin-top: var(--gap-md);
  display: grid;
  gap: 10px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-sm);
}

.section-title h2 {
  font-size: 20px;
}

.ghost-link {
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  font-family: var(--font);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--r-pill);
  padding: 8px 14px;
  font-size: 13px;
  box-shadow: var(--shadow-sm);
}

.recent-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: rgba(8, 18, 36, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.recent-item span {
  color: var(--color-text-muted);
}

.timetable {
  display: grid;
  gap: 10px;
}

.time-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  border-radius: var(--r-md);
  background: rgba(8, 18, 36, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.time-row time {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.map-card {
  padding: 16px;
  border-radius: var(--r-lg);
  background: rgba(8, 18, 36, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-card);
}

.map-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-md);
  background: #102746;
}

.page--map-bg::before {
  background: url('../resources/cartesvg.svg') no-repeat center / cover;
  filter: blur(10px);
}

.map-context {
  transition: opacity 0.25s ease;
}

.map-panel {
  margin-top: var(--gap-md);
  padding: 12px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 18, 36, 0.7);
  box-shadow: var(--shadow-card);
}

.map-panel img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-md);
  background: #132f52;
}

.page--map-bg.is-map-open::before {
  filter: blur(0);
}

.page--map-bg.is-map-open .map-context {
  opacity: 0.08;
  pointer-events: none;
}

.bottom-nav {
  transition: transform 0.25s ease;
}

body.map-open .bottom-nav {
  transform: translateY(8px);
}

.cta-wrap--compact {
  padding: var(--gap-md) 0 0;
}

@media (max-width: 980px) {
  .line-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page {
    padding-top: var(--gap-lg);
  }

  .line-grid {
    grid-template-columns: 1fr;
  }

  .page-header--route {
    align-items: flex-start;
    flex-direction: column;
  }
}
