/*
 Theme Name: Audioguide Child
 Template: twentytwentyfour
 Text Domain: audioguide
*/
/* === Plan de l'église === */
.plan-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.plan-title {
  display: block;
  width: 100%;
  text-align: center;
  margin-bottom: 1rem;
}

.plan-hint {
  text-align: center;
  font-style: italic;
  color: #666;
  margin-bottom: 1rem;
}

.plan-back {
  text-align: center;
  margin-top: 1.5rem;
}

.plan-back-btn {
  background: none;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 8px 20px;
  font-size: 0.95rem;
  cursor: pointer;
  color: #333;
  transition: background 0.2s;
}

.plan-back-btn:hover {
  background: #eee;
}

.plan-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.plan-container svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Cercles de station */
[id^="station-"]:not([id$="-label"]):not([id$="-tspan"]) {
  cursor: pointer;
}

/* Hover : fond rouge, texte blanc */
[id^="station-"]:not([id$="-label"]):not([id$="-tspan"]).station-active path {
  fill: #952816 !important;
}

[id$="-label"] {
  cursor: pointer;
}

[id$="-label"].station-active tspan {
  fill: #ffffff !important;
}

/* === Bannière temporaire développement === */
.dev-banner {
  background: #b00;
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.audioguide-station {
  max-width: 600px;
  margin: auto;
  text-align: center;
}
main.station {padding:20pt;}
audio { width: 100%; margin: 0.2em 0; border-radius: 25px;}

.station-nav { display: flex; justify-content: space-between; margin-top: 2em; }
.station-menu ul { list-style: none; padding: 0; }
.lang-menu {
  text-align: right;          /* place à droite, changer en left si besoin */
  margin-bottom: 1.5rem;
}

.station h3 {margin-bottom: 0.2em;}
.station-ecouter-aussi h4 {margin-bottom: 0.2em; font-weight: bold;}
.station-audio p {margin:0;}
.illustration-desc p {margin:0pt;}

/* === Médiathèque musicale (station récapitulative) === */
.station-library-title {
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
}

.epoque-heading {
    margin-top: 3rem;
    margin-bottom: 0.5rem;
}

.station-ecouter-aussi .epoque-heading:first-child {
    margin-top: 1rem;
}

nav.lang-menu {
  list-style: none;
  display: inline-flex;       /* horizontal */
  gap: 0.2rem;                  /* espace entre FR DE EN */
  margin: 0;
  padding: 0;
  float: right;
  background: #dadada;
  padding:8pt;
  border-radius: 25px;
  margin-top: 50px;
}

.lang-menu li {
      margin: 0 10px;
    }


.lang-menu a {
  text-decoration: none;
  font-weight: 600;
  color: #333;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.lang-menu a:hover {
  background: #eee;
}

.lang-menu .current-lang a {
  background: #333;
  color: #fff;
}
.station-main-image {
  margin-bottom: 0.2rem;
}

.main-image-title {
  /* font-size: 1.3rem; */
  margin-bottom: 0.2rem;
}

.main-image-img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 0.5rem;
}

.main-image-desc {
  font-size: 0.95rem;
  color: #555;
}
.station-main-image img,
.station-illustration img {
  max-width: 100%;     /* limite la largeur au conteneur */
  height: auto;        /* conserve le ratio */
  display: block;
}

.station-main-image,
.station-illustration {
  width: 100%;
}

.station-illustration-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}


/* === Navigation flottante === */
.station-floating-nav {
  position: fixed;
  top: 50%;
  left: 0;
  width: 100%;
  pointer-events: none; /* permet de cliquer à travers sauf sur les boutons */
  z-index: 1000;
  transform: translateY(-50%);
}

.station-floating-nav .nav-button {
  position: absolute;
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 2rem;
  text-align: center;
  line-height: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none; /* ✅ empêche le soulignement */
  transition: background 0.3s, transform 0.3s;
}

.station-floating-nav .nav-button a {
  text-decoration: none; /* ✅ empêche aussi le soulignement du lien interne */
  color: inherit;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.station-floating-nav .nav-button:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

.station-floating-nav .prev-button {
  left: 10px;
}

.station-floating-nav .next-button {
  right: 10px;
}

/* Adaptation mobile */
@media (max-width: 600px) {
  .station-floating-nav .nav-button {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
}


/* === Menu burger des stations === */
.stations-burger-menu {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
}

.burger-toggle {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.burger-toggle:hover {
  background: rgba(255, 255, 255, 1);
}

.burger-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #333;
  transition: all 0.3s;
}

/* Animation du burger en X quand ouvert */
.burger-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger-toggle.active span:nth-child(2) {
  opacity: 0;
}

.burger-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Panel du menu */
.burger-nav {
  position: fixed;
  top: 0;
  right: -350px;  /* Changé de -300px à -320px pour compenser le padding */
  width: 300px;
  height: 100vh;   /* fallback */
  height: 100dvh;  /* tient compte de la barre d'adresse sur mobile */
  background: rgba(255, 255, 255, 0.98);
  box-shadow: -2px 0 10px rgba(0,0,0,0.2);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* défilement fluide sur iOS */
  transition: right 0.3s ease;
  padding: 20px 20px 0;    /* pas de padding-bottom ici : Chrome le coupe */
}

.burger-nav.open {
  right: 0;
}

.stations-list {
  list-style: none;
  margin: 0;
  padding: 0 0 20px; /* padding-bottom ici plutôt que sur le conteneur */
}

.stations-list li {
  margin-bottom: 10px;
}

.stations-list a {
  display: block;
  padding: 12px 15px;
  text-decoration: none;
  color: #333;
  border-radius: 6px;
  transition: background 0.2s;
  font-size: 0.95rem;
  background: #e8e8e8;
}

.stations-list a:hover {
  background: #e0e0e0;
}

.stations-list .current-menu-item a,
.stations-list .current_page_item a {
  background: #333;
  color: #fff;
  font-weight: 600;
}

/* Overlay semi-transparent */
.burger-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1999;
}

.burger-overlay.active {
  display: block;
}

/* Adaptation mobile */
@media (max-width: 600px) {
  .burger-nav {
    width: 80%;
    right: -100%;  /* Changé pour être sûr qu'il soit complètement caché */
  }
}

/* === Popup de fin d'audio === */
.audio-end-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 3000;
  justify-content: center;
  align-items: center;
}

.audio-end-popup.active {
  display: flex;
}

.popup-content {
  background: white;
  border-radius: 12px;
  padding: 30px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: popupAppear 0.3s ease;
}

@keyframes popupAppear {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.popup-content h2 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #333;
  font-size: 1.5rem;
}

.popup-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.popup-btn {
  padding: 14px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: block;
}

.popup-btn-primary {
  background: #333;
  color: white;
}

.popup-btn-primary:hover {
  background: #555;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.popup-btn-secondary {
  background: #e8e8e8;
  color: #333;
}

.popup-btn-secondary:hover {
  background: #d0d0d0;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-close:hover {
  color: #333;
}