/* ===================================
   FONTS
=================================== */
@font-face {
  font-family: 'Arsenica Antiqua';
  src: url('fonts/arsenica/ArsenicaTrial-Demibold.ttf') format('truetype');
}
@font-face {
  font-family: 'Arsenica Antiqua Regular';
  src: url('fonts/arsenica/ArsenicaTrial-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Magic Retro';
  src: url('fonts/Magic Retro.ttf') format('truetype');
}

/* ===================================
   RESET & BASE
=================================== */
body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background: #f2ebe6;
  color: #333;
}

h1, h2, h3 {
  font-family: 'Arsenica Antiqua', serif;
  margin: 0.5em 0;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* ===================================
   HEADER / NAV
=================================== */
header {
  background-color: #f2ebe6;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f8f4f0;
  padding: 1em 2em;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-family: 'Arsenica Antiqua Regular', serif;
  font-size: 1.5em;
  font-weight: bold;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5em;
  margin: 0;
  padding: 0;
}

nav a {
  font-weight: 600;
  font-family: 'Arsenica Antiqua Regular', serif;
}

nav a:hover {
  color: #b48b6c;
}

/* Hamburger menu */
#menu-toggle {
  display: none;
  font-size: 1.8em;
  background: none;
  border: none;
  cursor: pointer;
}

#nav-links.show {
  display: flex !important;
}

/* ===================================
   HERO
=================================== */
.hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 2em;
  gap: 2em;
  text-align: center;
}

.hero-left, .hero-right {
  flex: 1 1 300px;
  min-width: 280px;
}

.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-photo {
  width: 100%;
  max-width: 400px;
  height: auto;
}

.hero h1 {
  font-family: 'Arsenica Antiqua', serif;
  font-size: 2.5em;
}

.hero p {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2em;
}

/* ===================================
   COUNTDOWN
=================================== */
.countdown {
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-family: 'Magic Retro', serif;
  margin-top: 1em;
}

.time-part {
  text-align: center;
}

.time-part span {
  font-size: 2.5em;
  font-weight: bold;
  display: block;
  color: #a65f52;
}

.time-part small {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9em;
  color: #555;
}

.colon {
  font-size: 2.5em;
  font-weight: bold;
  color: #a65f52;
  margin-top: -0.2em;
}

/* ===================================
   ANIMATIONS
=================================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out forwards;
}

/* délais uniformes */
.delay-0 { animation-delay: 0s; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }
.delay-5 { animation-delay: 1s; }
.delay-6 { animation-delay: 1.2s; }
.delay-7 { animation-delay: 1.4s; }
.delay-8 { animation-delay: 1.6s; }
.delay-9 { animation-delay: 1.8s; }

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}


/* ===================================
   TIMELINE / PROGRAMME
=================================== */
.programme {
  padding: 3em 2em;
  max-width: 700px;
  margin: auto;
}

/* Conteneur programme + image */
.programme-flex {
  display: flex;
  align-items: stretch; /* force même hauteur */
  gap: 2rem;
}

.timeline {
  flex: 1;
  list-style: none;
  padding-left: 1.5em;
  margin: 1em 0;
  border-left: 3px solid #a65f52;
  position: relative;
}

.timeline li {
  position: relative;
  margin-bottom: 1.5em;
  font-size: 1.1em;
  padding-left: 0.5em;
  opacity: 0;
  transform: translateY(20px);
}


.timeline li::before {
  content: '';
  position: absolute;
  left: -1.1em;
  top: 0.35em;
  width: 0.8em;
  height: 0.8em;
  background-color: #a65f52;
  border-radius: 50%;
}

.time {
  font-weight: bold;
  margin-right: 0.5em;
  color: #a65f52;
  font-family: 'Magic Retro', serif;
  font-size: 1.4em;
}

/* Image à droite */
.programme-image {
  flex: 0 0 40%; /* prend environ 40% de la largeur */
  display: flex;
  align-items: center;
}

.programme-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* remplit verticalement */
  border-radius: 8px;
}

/* ===================================
   LIEU
=================================== */
.lieu-container {
  display: flex;
  gap: 3rem;
  align-items: center;
  padding: 4em;
  max-width: 1000px;
  margin: auto;
}

.lieu-photo {
  flex: 0 0 40%;
}

.lieu-info {
  flex: 1;
  font-size: 1.1em;
}

/* ===================================
   HEBERGEMENTS
=================================== */
.hebergements-section {
  max-width: 1000px;
  margin: auto;
  padding: 2em 1em;
}

.hebergements-sur-place, .hebergements-proximite {
  margin-bottom: 2em;
}

.hebergements-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.hebergement-card {
  background-color: #fffdfb;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.35s ease, box-shadow 0.2s ease, opacity 0.35s ease;
}

.card-exit {
  opacity: 0;
  transform: translateY(10px);
}

.card-enter {
  opacity: 0;
  transform: translateY(-10px);
}

.card-enter-active {
  opacity: 1;
  transform: translateY(0);
}

.hebergement-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.hebergement-card h3 {
  margin-top: 0;
  font-family: 'Arsenica Antiqua Regular', cursive;
  font-size: 1.4rem;
  color: #6b3e26;
}

.hebergement-card h3 a:hover {
  text-decoration: underline;
  color: #b48b6c;
}

.hebergement-card p {
  font-size: 0.9rem;
  font-family: 'Montserrat', sans-serif;
}

.hebergement-card .commentaire {
  margin-top: 1rem;
  font-style: italic;
  color: #555;
}

.btn-reserver {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 12px;
  background-color: #F5F2F0;
  color: #6b3e26;
  border-radius: 6px;
  font-size: 0.9em;
  border: 1px solid #BDA99E;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-reserver:hover {
  background-color: #ab9285;
  color: #3b2215;
}

/* ====== HEBERGEMENT RÉSERVÉ - RUBAN DIAGONAL AJUSTÉ ====== */
.hebergement-card.reserved {
  position: relative;
  opacity: 0.85;
  overflow: hidden; /* empêche le ruban de dépasser */
}

.hebergement-card.reserved::before {
  content: "RÉSERVÉ";
  position: absolute;
  top: 16px;
  right: -40px;
  transform: rotate(45deg);
  background: #a65f52;
  color: #fff;
  font-weight: bold;
  padding: 6px 45px;
  font-size: 0.8em;
  letter-spacing: 1px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  z-index: 2;
}

.hebergement-card.reserved .btn-reserver {
  opacity: 0.5;
  pointer-events: none; /* désactive le clic */
}


/* ====== TRI DES LOGEMENTS ====== */
.tri-container {
  margin: 30px 0 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

#tri-select {
  padding: 8px 12px;
  font-size: 1em;
  border-radius: 10px;
  border: 1px solid #d0d0d0;
  background: #fafafa;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: 0.2s ease-in-out;
}

#tri-select:hover {
  background: #f0f0f0;
}

.tri-container label {
  font-weight: 600;
  color: #333;
}

/* ===================================
   BULLE NOTIF
=================================== */

#notif-bulle {
  position: fixed;
  top: 90px;
  right: 25px;
  background: #ffffff;
  padding: 14px 18px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 5px solid #784420; /* petit accent couleur */
  animation: slideUp 0.4s ease forwards;
  z-index: 9999;
}

#notif-bulle span {
  font-size: 0.95em;
  font-weight: 600;
  color: #333;
}

#notif-close {
  background: none;
  border: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: #555;
  transition: 0.2s ease;
}

#notif-close:hover {
  color: #000;
  transform: scale(1.15);
}

/* Animation d’arrivée */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animation de fermeture */
@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(20px);
  }
}

/* ===================================
   CONTACT
=================================== */
.contact-section {
  max-width: 800px;
  margin: auto;
  padding: 2rem 1rem;
}

.contact-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.contact-card {
  flex: 1 1 250px;
  text-align: center;
  background: #f7f7f7;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contact-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem auto; /* centre horizontalement et ajoute un espace en bas */
  display: block; /* indispensable pour que margin: auto fonctionne */
}

.contact-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.contact-card a:hover {
  text-decoration: underline;
}

/* ===================================
   FOOTER
=================================== */
footer {
  text-align: center;
  padding: 2em 1em;
  background-color: #f8f4f0;
  font-size: 0.9em;
}

/* ===================================
   MEDIA QUERIES
=================================== */
@media (max-width: 768px) {
  .hero {
    flex-direction: column-reverse;
  }

  .lieu-container {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1em;
  }

  .lieu-photo, .lieu-info {
    flex: none;
    width: 100%;
  }

  #menu-toggle {
    display: block;
  }

  #nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 2em;
    background: #f8f4f0; /* ← il manquait la valeur ici */
    padding: 1em;
    border-radius: 8px;
  }

  /* === PROGRAMME === */
  .programme-flex {
    flex-direction: column; /* pile verticale */
  }

  .programme-image {
    order: 2; /* image après le programme */
    margin-top: 1.5rem;
    flex: unset;
  }

  .timeline {
    order: 1;
  }
}
