/* ===== STATIONS.CSS =====
   Styles spécifiques à la page stations.html.
   Complète style.css qui fournit les bases communes (nav, boutons, cards) */

/* ===== GRILLE 4 COLONNES =====
   4 stations par ligne, la 8e case est occupée par la carte animée */
.stations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 16px;
}

/* ===== TITRE DE PAGE STICKY =====
   Le titre reste visible sous la navigation lors du défilement.
   top: 57px correspond à la hauteur de la barre de navigation */
.stations-page h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: 0.05em;
  color: #ffffff;
  position: sticky;
  top: 57px;
  background: #0a0a0a;
  margin: 0 -40px 30px;
  padding: 18px 40px;
  z-index: 998;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* Étiquette rouge au-dessus du titre (style page accueil) */
.stations-page h1::before {
  content: 'Réseau N\'PY';
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #e53935;
  margin-bottom: 6px;
}

/* ===== BOUTON PLAN DES PISTES =====
   Bouton pour ouvrir le PDF en modale.
   Même charte bleue que les autres boutons du site */
.open-plan {
  display: inline-block;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 9px 16px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 8px;
  margin-bottom: 4px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.open-plan:hover {
  background: rgba(30,136,229,0.25);
  border-color: #1e88e5;
  color: #ffffff;
}

/* ===== NAVIGATION STICKY =====
   Renforcée ici pour la page stations qui a aussi un titre sticky */
.main-nav {
  z-index: 999;
}

/* ===== MODALE PLAN DES PISTES =====
   Fenêtre plein écran affichant le PDF via iframe.
   z-index très élevé pour passer au-dessus de tout */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

/* Conteneur interne : occupe tout l'écran sans aucune marge */
.modal-content {
  width: 100vw;
  height: 100vh;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Iframe du PDF : plein écran total, aucune bordure */
#planFrame {
  width: 100vw;
  height: 100vh;
  border: none;
  background: #fff;
}

/* Bouton de fermeture de la modale : croix fixe en haut à droite */
.modal .close {
  position: fixed;
  top: 14px;
  right: 22px;
  font-size: 2.2rem;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  z-index: 10100;
  line-height: 1;
  transition: color 0.2s ease;
}

.modal .close:hover {
  color: #ffffff;
}

/* Grille fixe à 4 colonnes par ligne */
.stations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 16px;
}

/* ===== CARTE ANIMATION TÉLESIÈGE =====
   8ème carte décorative complétant la 2ème ligne */
.station-card.telesiege {
  background: linear-gradient(160deg, #0d1b2a, #1a2f4a);
  border: 1px solid rgba(30,136,229,0.25);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 340px;
  cursor: default;
  overflow: hidden;
  position: relative;
}

.station-card.telesiege:hover {
  transform: none;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* Canvas de l'animation télesiège */
#teleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Texte superposé au canvas */
.telesiege-label {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: auto;
  padding: 14px;
}

.telesiege-label h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6);
  margin: 0;
}

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 1100px) {
  .stations-grid { grid-template-columns: repeat(3, 1fr); }
}

@media screen and (max-width: 750px) {
  .stations-grid { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (max-width: 500px) {
  .stations-page { padding: 90px 16px 40px; }
  .stations-page h1 { margin: 0 -16px 20px; padding: 14px 16px; }
  .stations-grid { grid-template-columns: 1fr; }
}


@media screen and (max-width: 600px) {
  .stations-page {
    padding: 90px 16px 40px;
  }

  .stations-page h1 {
    margin: 0 -16px 20px;
    padding: 14px 16px;
  }

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