/* === POLICES DE NOËL === */
@import url('https://fonts.googleapis.com/css2?family=Chewy&family=Mountains+of+Christmas:wght@700&family=Berkshire+Swash&display=swap');

/* ============================================================
   GÉNÉRAL
============================================================ */
body {
  margin: 0;
  padding: 0;
  background-color: #001f3f;
  font-family: 'Chewy', cursive;
  color: #fff;
  text-align: center;
  background-image: url('https://symbiose-music.fr/images/snow-top.png');
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% auto;
}

h1, h2, h3, h4, .menu, .nav a, .actus-calendrier {
  font-family: 'Berkshire Swash', cursive;
}

h1 {
  font-size: 3em;
  margin-top: 100px;
  color: #ffffff;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
}

h2 {
  font-size: 2em;
  margin-bottom: 10px;
  color: #ffdddd;
}

p {
  font-size: 1.2em;
  max-width: 800px;
  margin: 10px auto;
  line-height: 1.6;
  padding: 0 10px;
}

/* ============================================================
   HEADER (VERSION SPÉCIALE CALENDRIER)
============================================================ */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-image:url("Calendrier de l'avent/header_noel_bois.png");
    padding: 10px 20px;
    height: 70px;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 2px -2px gray;
}

/* Logo desktop */
header .logo img {
    height: 60px;
    width: auto;
    display: block;
}

/* Désactive absolument toute apparition de logo sur calendrier.php en mobile */
.page-calendrier .logo,
.page-calendrier .logo img,
.page-calendrier .logo::before {
    content: none !important;
}

/* Navigation desktop */
.page-calendrier #desktop-nav a {
    color: #ffffff !important;
    text-shadow: 2px 2px 4px #000000aa; /* optionnel mais lisible */
}
#desktop-nav {
    display: flex;
    gap: 20px;
		
}

#desktop-nav a {
    text-decoration: none;
    font-weight: bold;
}

/* Liens sociaux */
.music-links2 img {
    width: 40px;
    height: auto;
}

/* ============================================================
   BURGER / MOBILE NAV
============================================================ */
.menu-hamburger {
    display: none;
    cursor: pointer;
}

.burger-icon {
    width: 30px;
    height: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.burger-icon span {
    height: 4px;
    background-color: #000;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger-icon.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.burger-icon.open span:nth-child(2) {
    opacity: 0;
}
.burger-icon.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Menu mobile */
#mobile-nav {
    position: absolute;
    top: 70px;
    left: 20px;
    width: 220px;
    background-color: #DFD5BC;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#mobile-nav.show {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

#mobile-nav a {
    padding: 12px;
    text-align: center;
    color: #000;
    text-decoration: none;
    font-weight: bold;
}

/* ============================================================
   DÉCOMPTE + CALENDRIER
============================================================ */

.decompte-container{
  position: relative;
  text-align: center;
  max-width: 1000px;
  margin: 120px auto 0 auto;
}

.decompte-container img {
  width: 100%;
  filter: blur(5px);
  border-radius: 20px;
}

.countdown-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color:aliceblue;
  padding: 30px 20px;
  border-radius: 20px;
  max-width: 600px;
  font-family: 'Chewy';
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  z-index: 2;
}

.countdown-wrapper h2 {
  font-size: 2em;
  color: #fff;
}

#countdown {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 1.8em;
  font-weight: bold;
  color:#AB1515;
}

#countdown div {
  background-image:url("header_noel.png");
  padding: 10px 15px;
  border-radius: 10px;
}

/* ============================================================
   GRILLE DU CALENDRIER
============================================================ */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  padding: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.calendar-day {
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px solid #fff;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  transition: 0.3s;
}

.calendar-day:hover {
  transform: scale(1.05);
  background-color: rgba(255, 255, 255, 0.15);
}

.calendar-day span {
  font-family: 'Mountains of Christmas', cursive;
  font-size: 1.4em;
}

.calendar-day iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  border-radius: 5px;
  margin-top: 10px;
  display: none;
}

.calendar-day.open iframe {
  display: block;
}

.retour-site-mobile {
  display: none;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 768px) {
/* ============================
   MODALE MOBILE OPTIMISÉE
   (image supprimée)
============================ */


  .modal-content {
    width: 90%;
    max-height: 75vh; /* empêche tout débordement */
    padding: 15px 20px;
    overflow: hidden; /* pour gérer le scroll interne */
    display: flex;
    flex-direction: column;
  }

  .modal-content h3 {
    font-size: 1.1em;
    margin-bottom: 5px;
  }

  .modal-content h1 {
    font-size: 1.5em;
    margin: 5px 0 5px;
  }

  .modal-content h2 {
    font-size: 1.1em;
    margin-bottom: 10px;
  }

  /* SUPPRESSION TOTALE DE L’IMAGE EN MOBILE */
  .modal-content img {
    display: none !important;
  }

  /* === Zone scrollable uniquement pour la description === */
  .modal-content p {
    font-size: 0.95em;
    line-height: 1.5em;
    overflow-y: auto;
    max-height: 30vh; /* confortable et lisible */
    padding-right: 10px; /* évite que le texte touche trop le bord */
    margin-bottom: 10px;
  }

  /* Barre inférieure : flèches + lien YouTube */
  .modal-navigation {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .modal-navigation button {
    background: none;
    border: none;
    font-size: 1.8em;
    color: #333;
  }

  /* Lien YouTube intégré dans la barre du bas */
  #modal-body > p:last-of-type {
    font-size: 1em;
    margin: 0;
    padding: 0;
  }





  /* Cache totalement le logo */
  header .logo,
  header .logo img,
  header .logo::before {
      display: none !important;
      content: none !important;
  }

  /* Active le hamburger */
  .menu-hamburger {
      display: block;
      position: absolute;
      top: 15px;
      left: 15px;
  }

  /* Burger blanc */
  .burger-icon span {
      background-color: white !important;
  }

  /* Cache le menu desktop */
  #desktop-nav {
      display: none !important;
  }

  .retour-site-mobile {
    display: block;
    margin-top: 120px;
  }

  .retour-site-mobile a {
    color:#FFFFFF;
    text-decoration: underline;
    font-size: 1.2em;
  }

  /* Décompte compact */
  .decompte-container{
    max-width: 80%;
    margin-top: 10px;
  }

  #countdown {
    font-size: 1.4em;
    gap: 10px;
  }

  #countdown div {
    padding: 6px 10px;
    min-width: 45px;
  }

  /* Grille */
  .calendar-grid {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 12px;
  }
}

@media (max-width: 600px) {

  header {
    height: 60px;
    padding: 5px 10px;
  }

  h1 {
    font-size: 2em;
    margin-top: 60px;
  }


  .calendar-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }

  .decompte-container  {
    margin-top: 100px;
  }

  .countdown-wrapper {
    max-width: 75%;
  }
	/* === FIX MENU MOBILE CALENDRIER === */

/* Forcer le fond bois */
.page-calendrier #mobile-nav {
    background-image:url("header_noel.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 10px;
    padding: 10px 0;
}

/* Toujours au-dessus du contenu */
.page-calendrier #mobile-nav {
    position: fixed !important;
    top: 60px !important;
    left: 0 !important;
    width: 75% !important;
    z-index: 99999 !important;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-20px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Quand le menu est ouvert */
.page-calendrier #mobile-nav.show {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateX(0);
}

/* Texte du menu en BLANC */
.page-calendrier #mobile-nav ul li a {
    color: #ffffff !important;
    text-shadow: 2px 2px 4px #000000aa;
    font-size: 1.3em;
    font-family: 'Chewy', cursive;
}

/* Supprimer la zone beige résiduelle */
.page-calendrier #mobile-nav ul {
    background: transparent !important;
}

/* Fond légèrement assombri derrière le menu */
.page-calendrier #mobile-nav::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.65);
    z-index: -1;
}

}
/* H2 responsive centré sur deux lignes */
@media (max-width: 768px) {
    .countdown-wrapper h2 {
        text-align: center !important;
        font-size: 1.2em !important;
        line-height: 1.3em !important;
        display: block;
    }
}
