@import url("./carousel.css");
@import url("./navbar.css");
@import url("./calendar.css");
@import url("./footer.css");

/* --- VARIABLES ET RESET --- */
:root {
  --primary: #4f7fa8;
  --primary-gradient: linear-gradient(90deg, #6f9fd1, #4f7fa8, #2f5f85);
  --dark: #333;
  --light-blue: #a3bddf;
  --border-color: #bcdfe5;
  --bg-site: #d5f1f5;
  --font-base: "Plus Jakarta Sans", sans-serif;
  --font-title: "Playfair Display", serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.65; /* Un interligne généreux pour donner envie de lire */
  color: #f22222; /* Le noir d'Airbnb (un peu adouci pour le confort visuel) */
  background-color: var(--bg-site);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.logo {
  font-family: var(--font-title);
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--bg-site);
}

html,
body {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

/* --- HEADER (Navigation Supérieure) --- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 10px; /* Padding réduit de 40px à 20px pour moins de marge sur les côtés */
  background-color: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  position: relative;
  /* min-height supprimé : le logo définit la hauteur naturellement */
}

.header-left,
.logo,
.header-right {
  flex: 1 1 33.33%;
  display: flex;
  align-items: center;
}

.header-left {
  justify-content: flex-start;
}

.logo {
  flex-direction: column;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  z-index: 2;
  margin-left: 10px;
  margin-top: -10px;
  margin-bottom: -10px;
  /* position absolute et transform supprimés */
}

.header-right {
  justify-content: flex-end;
  flex-direction: column;
  gap: 8px;
}

.header-logo {
  max-height: 120px;
  width: auto;
  display: block;
  /* margin-bottom: 2px; */
}

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

header .btn {
  background: var(--primary);
  padding: 10px 10px; /* Padding réduit : 8px haut/bas et 15px gauche/droite */
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: background 0.3s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mode Administration : bouton réservation en rouge */
body.admin-mode header .btn {
  background: #ff4d4d !important;
}

header .btn.active {
  background: #2f5f85;
  position: relative;
}

header .btn.active::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 4px;
  width: 40%;
  height: 2px;
  background-color: white;
}

.mode-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 20px;
}

.mode-label {
  color: #2f5f85;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 1px;
}

.toggle {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 18px;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary);
}
input:checked + .slider:before {
  transform: translateX(16px);
}

/* --- NAVIGATION DES PAGES --- */
.page {
  display: none;
  animation: fadeIn 0.5s;
}

.page.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.header-title {
  text-align: center;
  margin: 40px 0 20px 0;
}

.header-title h1 {
  font-family: "Georgia", serif;
  font-weight: 400;
  font-size: 2.5rem;
}

/* --- LAYOUT CONFIGURATION BUREAU (PC WIX) --- */
.hero-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  padding-top: 30px;
  padding-bottom: 50px;
  margin: 0 auto;
  max-width: 95%;
}

.hero-container.reverse {
  flex-direction: row-reverse;
}

.image-wrapper {
  flex: 0 0 65%;
  max-width: 65%;
  z-index: 1;
}

.image-wrapper img {
  width: 100%;
  display: block;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.info-card {
  flex: 0 0 45%;
  max-width: 50%;
  background-color: var(--light-blue);
  background: var(--primary-gradient);
  color: white;
  padding: 20px;
  margin-left: -5%;
  z-index: 2;
  box-shadow: 10px 10px 40px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
}

.hero-container.reverse .info-card {
  margin-left: 0;
  margin-right: -10%;
}

.info-card h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  letter-spacing: 4px;
  font-weight: 400;
}

.info-card p {
  line-height: 1.5;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.info-card li {
  line-height: 1.4;
  margin-bottom: 20px;
  list-style-position: inside;
}

.info-card li:last-child {
  margin-bottom: 0;
}

/* --- LAYOUT RÉSERVATION (CALENDRIER + TARIFS CÔTE À CÔTE) --- */
.reservation-main-layout {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 30px !important;
  padding: 20px 40px !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
}

.calendar-section {
  flex: 2 !important; /* Prend plus de place */
  width: 65% !important;
}

.pricing-section {
  flex: 1 !important; /* Prend moins de place */
  width: 35% !important;
}

.calendar-card,
.pricing-card-wrapper {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

.pricing-vertical-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.pricing-card {
  background: #f8fbff;
  border-radius: 8px;
  padding: 15px;
  border: 1px solid #e0eaf5;
  color: #333;
}

.pricing-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--primary);
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
}

.pricing-table {
  width: 100%;
  font-size: 0.85rem;
}

.pricing-table td,
.pricing-table th {
  padding: 6px 4px;
}

.pricing-table th:nth-child(2),
.pricing-table th:nth-child(3),
.pricing-table td:nth-child(2),
.pricing-table td:nth-child(3) {
  text-align: center;
}

.discount-badge {
  font-size: 0.7rem;
  background: #e8f5e9;
  color: #2e7d32;
  padding: 2px 4px;
  border-radius: 3px;
}

@media (max-width: 1000px) {
  .reservation-main-layout {
    flex-direction: column !important;
    padding: 0 !important;
  }

  .calendar-section,
  .pricing-section {
    width: 100% !important;
  }
}

/* --- CONDITIONS D'AFFICHAGE --- */
.mobile-only {
  display: none !important;
}
.pc-only {
  display: block;
}

.welcome-text p,
li {
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.65; /* Un interligne généreux pour donner envie de lire */
  color: #ffffff; /* Le noir d'Airbnb (un peu adouci pour le confort visuel) */
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
  margin-bottom: 15px;
}

.accordion-header {
  background: none;
  border: none;
  padding: 0;
  width: 100%;
  text-align: left;
  color: inherit;
  font-family: var(--font-base); /* Optionnel : garde les titres d'accordéons en Sans-Serif pour le côté moderne */
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.accordion-icon {
  display: none;
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.video-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   6. RESPONSIVE MOBILE UNIVERSEL (PORTRAIT & PAYSAGE SMARTPHONE / TABLETTE)
   ========================================================================== */
@media (max-width: 1000px) or (max-height: 480px), screen and (max-device-width: 950px) and (orientation: landscape) {
  header {
    flex-direction: column;
    padding: 15px 10px;
    text-align: center;
    z-index: 1000 !important;
  }

  .header-left,
  .logo,
  .header-right {
    flex: 0 0 100%;
    width: 100%;
    position: relative;
    transform: none;
    left: auto;
    top: auto;
    align-items: center;
  }

  /* --- BOUTON RÉSERVATION MOBILE --- */
  .header-right {
    position: absolute;
    top: 55px; /* Aligné précisément sous le burger (5px + 40px + 10px gap) */
    left: 5px;
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1001;
  }

  header .btn {
    width: 45px; /* Taille identique au menu burger */
    height: 45px;
    padding: 0;
    border-radius: 5px; /* Même arrondi que le burger */
    background: var(--primary);
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  header .btn .btn-text {
    display: none; /* Cache le texte sur mobile */
  }

  header .btn svg {
    margin: 0;
    width: 24px;
    height: 24px;
    stroke: white; /* Assure que l'icône est blanche comme le burger */
  }

  .pc-only {
    display: none !important;
  }
  .mobile-only {
    display: block !important;
  }

  .hero-container,
  .hero-container.reverse {
    flex-direction: column !important;
    padding: 0 !important;
    max-width: 100% !important;
    margin-bottom: 2px !important;
  }

  .image-wrapper {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    order: 1;
  }

  .image-wrapper img {
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .details-container .image-wrapper {
    display: none;
  }

  .info-card {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    order: 2;
    margin: 0 !important;
    padding: 0 !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .accordion-header {
    color: #ffffff !important;
    padding: 15px 20px;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    cursor: pointer;
    width: 100%;
  }

  .accordion-header h2 {
    font-size: 1rem !important;
    font-weight: bold !important;
    letter-spacing: 0.5px !important;
    margin: 0 !important;
    text-align: left !important;
  }

  .accordion-icon {
    display: inline-block !important;
    font-size: 1.2rem;
    font-weight: 300;
  }

  /* Zone de texte masquée par défaut sur mobile */
  .responsive-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;

    /* 🌟 EFFET "DÉCOLLAGE EN DOUCEUR" : L'amorce de départ est ralentie au maximum */
    transition:
      max-height 0.8s cubic-bezier(0.5, 0, 0.2, 1),
      padding 0.8s cubic-bezier(0.5, 0, 0.2, 1);
  }

  .responsive-content .image-wrapper.mobile-only {
    margin: -20px -20px 15px -20px !important;
    width: auto !important;
    max-width: none !important;
    display: block !important;
  }

  .hero-container.active .responsive-content {
    max-height: 2000px !important; /* Assez grand pour l'image + le texte sans couper */
    padding: 20px;
    border-bottom: 1px solid #eee;
  }

  .responsive-content ul {
    display: block;
    text-align: left;
    margin-top: 10px;
    margin-left: 20px;
  }

  .responsive-content li {
    list-style-position: outside;
    margin-bottom: 8px;
  }

  .equipment-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 0;
  }
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.7) !important; /* Changez la couleur ici (ex: blanc à 70%) */
  opacity: 1; /* Obligatoire pour Firefox qui baisse l'opacité par défaut */
}

/* Quand l'utilisateur clique dans un input ou le textarea */
#contact-form input:focus,
#contact-form textarea:focus {
  border-color: #ffffff !important; /* Devient blanc pur au clic */
  background: rgba(255, 255, 255, 0.15) !important; /* Le fond devient légèrement plus clair */
  outline: none !important; /* Supprime la bordure bleue par défaut des navigateurs */
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5) !important; /* Ajoute un léger effet de halo lumineux blanc */
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.6) !important;
  opacity: 1;

  /* MODIFICATIONS DE LA POLICE ICI */
  font-size: 1.1rem !important; /* Taille du texte (plus petit que le texte tapé) */
}

/* Style des liens sur votre fond bleu */
ul li a {
  color: #ffffff; /* Blanc pur pour une lisibilité maximale */
  text-decoration: underline; /* Souligné pour bien indiquer que c'est un lien */
  text-underline-offset: 4px; /* Décale un peu le soulignement pour l'élégance */
  font-weight: 600;
  transition: color 0.3s ease;
}

/* Au survol de la souris */
ul li a:hover {
  color: #f7d070; /* Devient un joli doré lumineux au survol */
}
