/* ==========================================================
   AUBERGE DE CRISSAY – BANDEAU DE RÉSERVATION v1.4.8
   ----------------------------------------------------------
   Base : v1.4.2 (CSS Grid)
   Évolution : ajout du sous-texte “(Chambre disponible à partir de)”
   ========================================================== */

/* ==========================================================
   VARIABLES GLOBALES
   ========================================================== */
:root {
  --auberge-bg: rgba(255, 255, 255, 0.85);
  --auberge-text: #000;
  --auberge-label: #52340F;
  --auberge-btn: #52340F;
  --auberge-font: 'Poppins', 'Inter', sans-serif;
  --auberge-accent: #52340F;
  --auberge-radius: 22px;
  --auberge-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --auberge-green: #3C7C59; /* vert Logis ETIK */
}

/* ==========================================================
   STRUCTURE GÉNÉRALE
   ========================================================== */
.auberge-banner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 0.9fr auto;
  column-gap: 2.2rem;
  row-gap: 0.8rem;
  align-items: flex-start;
  justify-content: center;
  background: var(--auberge-bg);
  backdrop-filter: blur(6px);
  border-radius: var(--auberge-radius);
  box-shadow: var(--auberge-shadow);
  padding: 1.8rem 2.2rem;
  font-family: var(--auberge-font);
  color: var(--auberge-text);
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

/* ==========================================================
   BLOCS SECTIONS
   ========================================================== */
.auberge-section {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left;
}

.auberge-section::after {
  display: none !important; /* supprime les séparateurs */
}

/* ==========================================================
   LABELS ET VALEURS
   ========================================================== */
.auberge-label {
  text-transform: uppercase;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--auberge-label);
  min-height: 1.9rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* === Sous-texte “Chambre disponible à partir de” === */
.auberge-subtext {
  font-size: 0.75rem;
  color: var(--auberge-label);
  font-weight: 400;
  text-transform: none;
  margin-top: 0.1rem;
  margin-bottom: 0.3rem;
  opacity: 0.8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auberge-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--auberge-text);
  line-height: 1.3;
}

#auberge-nuits {
  white-space: nowrap;
}

/* ==========================================================
   TARIF & COMPARAISON
   ========================================================== */
.auberge-tarif .auberge-value {
  font-size: 1.4rem;
  font-weight: 700;
}

.auberge-compare {
  font-size: 0.95rem;
  color: #888;
  margin-top: 0.2rem;
}

.auberge-compare-text {
  margin-right: 0.3rem;
}

.auberge-compare-prix {
  text-decoration: line-through;
}

/* ==========================================================
   FIDÉLITÉ (LOGIS ETIK)
   ========================================================== */
.auberge-etik {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.3rem;
}

.auberge-etik .auberge-label {
  margin-bottom: 0.4rem;
}

.etik-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
}

.etik-logo {
  width: 72px;
  height: auto;
  flex-shrink: 0;
}

.etik-text {
  font-weight: 700;
  color: var(--auberge-green);
  font-size: 1.1rem;
}

/* ==========================================================
   BOUTON DE RÉSERVATION
   ========================================================== */
.auberge-button {
  background: var(--auberge-btn);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.9rem 2.4rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.25s ease;
  text-transform: uppercase;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.auberge-button:hover {
  background: var(--auberge-accent);
  transform: scale(1.03);
}

/* ==========================================================
   RESPONSIVE DESIGN
   ========================================================== */
@media (max-width: 1200px) {
  .auberge-banner {
    grid-template-columns: 1fr 1fr 1fr auto;
  }
}

@media (max-width: 980px) {
  .auberge-banner {
    grid-template-columns: 1fr 1fr;
    row-gap: 1rem;
  }

  .auberge-section {
    text-align: center;
    align-items: center;
  }

  .auberge-label,
  .auberge-subtext {
    justify-content: center;
    text-align: center;
  }

  .auberge-button {
    grid-column: 1 / -1;
    width: 100%;
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .auberge-banner {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    padding: 1rem;
    border-radius: 14px;
    max-width: 95%;
  }

  .auberge-section {
    align-items: center;
    text-align: center;
  }

  .auberge-label {
    min-height: unset;
    font-size: 0.9rem;
  }

  .auberge-subtext {
    font-size: 0.8rem;
  }

  .auberge-value {
    font-size: 1rem;
  }

  .auberge-button {
    width: 100%;
    margin-top: 0.8rem;
    font-size: 0.9rem;
    padding: 0.7rem 1rem;
    border-radius: 10px;
  }

  .etik-logo {
    width: 72px;
  }

  .etik-text {
    font-size: 1rem;
  }
}
/* ===========================
   Bandeau – ajout sous-titre
   =========================== */

.auberge-dispo-note {
  margin-top: 0.15rem;
  font-size: 0.85rem;
  color: var(--auberge-label);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none; /* pas de majuscules */
  line-height: 1.2;
  white-space: nowrap;  /* évite de casser la ligne */
}

/* option: resserrer l'espace entre le titre et la date affichée */
.auberge-section.auberge-dates .auberge-value {
  margin-top: 0.25rem;
}

/* ==========================================================
   Ligne “Chambre disponible à partir de”
   ---------------------------------------------------------- */
.auberge-dispo-note {
  margin-top: 0.15rem;
  font-size: 0.85rem;
  color: var(--auberge-label);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0.85;
}

/* Réduction légère de l’espace au-dessus des dates */
.auberge-section.auberge-dates .auberge-value {
  margin-top: 0.25rem;
}

/* ==========================================================
   SOUS-TITRE – "Chambre disponible à partir de"
   ----------------------------------------------------------
   Version 1.3.6 : en noir, compact, collé au titre
   ========================================================== */
.auberge-subtext {
  font-size: 0.85rem;
  font-weight: 500;
  color: #000;              /* texte noir */
  text-transform: none;     /* pas en majuscules */
  display: block;
  line-height: 1.1;
  margin-top: -0.2rem;      /* colle le texte au titre */
  margin-bottom: 0.15rem;   /* espace avant la date */
}

/* ==========================================================
   AUBERGE DE CRISSAY – CALENDRIER POPUP (v1.0)
   ----------------------------------------------------------
   Styles pour le sélecteur de dates intégré au bandeau
   ========================================================== */

/* === Overlay général === */
#auberge-calendar-overlay {
  position: absolute !important;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.35);
  display: none;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 120px;
  z-index: 999999 !important;
}

/* === Fenêtre popup === */
#auberge-calendar-overlay .auberge-calendar-popup {
  position: absolute !important;
  top: 0;
  left: 40px;
  width: 700px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  padding: 1rem;
  margin: 0 !important;
}

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

/* === Fenêtre popup === */
.auberge-calendar-popup {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  width: 90%;
  max-width: 620px;
  color: #52340F;
  font-family: "Poppins", "Inter", sans-serif;
  padding: 1.6rem 2rem 1.8rem;
  animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* === En-tête === */
.auberge-calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #f1ece7;
  margin-bottom: 1rem;
}

.auberge-calendar-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  color: #52340F;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #52340F;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.2s ease;
}
.close-btn:hover { transform: scale(1.2); }

/* === Grille du calendrier === */
.auberge-calendar-content {
  margin-top: 0.8rem;
}

#auberge-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  justify-items: center;
}

.auberge-day {
  width: 100%;
  text-align: center;
  padding: 0.6rem 0.3rem;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  color: #52340F;
  font-weight: 500;
  transition: all 0.2s ease;
  background: #f8f6f3;
}

.auberge-day:hover {
  background: #eae3da;
}

.auberge-day.disabled {
  color: #bbb;
  background: #f3f3f3;
  cursor: not-allowed;
}

.auberge-day.selected {
  background: #52340F;
  color: #fff;
  font-weight: 700;
}

/* === Pied de popup === */
.auberge-calendar-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.3rem;
}

.validate-btn {
  background: #52340F;
  color: #fff;
  border: none;
  border-radius: 40px;
  padding: 0.7rem 1.6rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.25s ease;
}
.validate-btn:hover {
  background: #6b4b2b;
  transform: scale(1.05);
}

/* === Responsive (mobile) === */
@media (max-width: 700px) {
  .auberge-calendar-popup {
    width: 95%;
    padding: 1.2rem 1.4rem;
  }
  #auberge-calendar-overlay {
    align-items: flex-start;
    justify-content: center;
    padding-top: 60px;
  }
  #auberge-calendar-overlay .auberge-calendar-popup {
    max-width: 92vw;
    left: 50% !important;
    transform: translateX(-50%);
  }
  .auberge-calendar-header h3 {
    font-size: 1rem;
  }
  .validate-btn {
    width: 100%;
    padding: 0.8rem 0;
  }
  #auberge-calendar {
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
  }
  .auberge-day {
    font-size: 0.85rem;
    padding: 0.45rem 0;
  }
}

/* ==========================================================
   Icône calendrier (devant les dates de séjour)
   ========================================================== */
.auberge-calendar-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.4rem;
  background: var(--auberge-label);
  color: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  vertical-align: middle;
}

.auberge-calendar-inline:hover {
  background: #7a5430;
  transform: scale(1.05);
}

.auberge-calendar-btn {
  font-size: 1.2rem;
  margin-right: 0.5rem;
  cursor: pointer;
  color: #52340F;
  transition: transform 0.2s ease, color 0.2s ease;
}
.auberge-calendar-btn:hover {
  color: #885F36;
  transform: scale(1.1);
}

/* ==========================================================
   📅 Icône calendrier – Bandeau Réservation
   Version 1.4.4 (debug)
   ----------------------------------------------------------
   Placée juste à droite du titre “DATES DE SÉJOUR”
   et déclenche la popup du calendrier au clic.
   ========================================================== */

.auberge-calendar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--auberge-label);
  margin-left: 0.5rem;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.auberge-calendar-icon:hover {
  transform: scale(1.15);
  color: var(--auberge-accent);
}

/* Option : sur mobile, l’icône reste bien centrée */
@media (max-width: 768px) {
  .auberge-calendar-icon {
    margin-left: 0.3rem;
    font-size: 1.3rem;
  }
}

/* Chambres & occupants */
.aub-ctr{display:flex;align-items:center;justify-content:space-between;margin:8px 0;}
.aub-ctr-label{font-weight:600;color:#52340F;}
.aub-ctr-steps{display:flex;align-items:center;gap:10px;}
.aub-step{
  width:32px;height:32px;border:0;border-radius:8px;cursor:pointer;
  background:#ECE7E3;color:#2c3e50;box-shadow:0 1px 2px rgba(0,0,0,.05);
  font-size:18px;line-height:1;display:flex;align-items:center;justify-content:center;
}
.aub-step:disabled{opacity:.5;cursor:not-allowed}
.aub-val{min-width:22px;text-align:center;color:#52340F;font-weight:600}
.aub-sep{border:0;border-top:1px solid #eee;margin:8px 0;}


/* === Popup CHAMBRES & OCCUPANTS (desktop) === */
#auberge-rooms-overlay {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: none;
  background: rgba(0,0,0,0.35);
  z-index: 999999 !important;
  overflow-y: auto; /* NEW: allow scrolling so popup never goes under screen */
  align-items: flex-start;
  justify-content: flex-start;
}

#auberge-rooms-overlay .auberge-rooms-popup {
  position: absolute !important;
  top: 100px !important;
  left: 60px !important;
  width: 380px !important;
  max-width: 90vw !important;

  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  padding: 1rem;
  margin: 0 !important;
  z-index: 999999;
}

@media (max-width: 700px) {

  #auberge-rooms-overlay {
    justify-content: center !important;
  }

  #auberge-rooms-overlay .auberge-rooms-popup {
    top: 60px !important;
    left: 50% !important;
    transform: translateX(-50%);
    width: 92vw !important;
    max-width: 92vw !important;
  }
}



/* ==========================================================
   AUBERGE – BANDEAU À ONGLET (v1.5.1)
   ----------------------------------------------------------
   Styles pour les onglets : Chambres / Restaurant / Bons cadeaux
   ========================================================== */

.auberge-tabs {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  font-family: var(--auberge-font);
  margin-top: 0;
  margin-left: auto;
  margin-right: auto;
  max-width: 1400px;
  position: relative;
  z-index: 10;
}

.auberge-tab-buttons {
  display: flex;
  justify-content: space-evenly;
  border-bottom: 2px solid #e5ded8;
  background: #f9f7f5;
  position: relative;
  z-index: 11;
}

.aub-tab-button {
  flex: 1;
  padding: 0.8rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #52340F;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
}

.aub-tab-button.active {
  /**background: #fff;
  color: #885F36;**/
  background: #52340F;
  color: #ECE7E3;
  border-bottom: 3px solid #885F36;
}

.aub-tab-panel {
  display: none;
  padding: 1rem 1.5rem;
  position: relative;
  z-index: 12;
}

.aub-tab-panel.active {
  display: block;
}

/* ==========================================================
   Responsive : pile les onglets en mobile (restauré)
   ========================================================== */
@media (max-width: 740px) {
  .auberge-tab-buttons {
    flex-direction: column !important;
    border-bottom: none;
  }

  .aub-tab-button {
    border-bottom: 1px solid #e5ded8;
    padding: 1rem 0.5rem;
    text-align: center;
  }

  .aub-tab-button.active {
    background: #52340F !important;
    color: #ECE7E3 !important;
    border-bottom: 3px solid #885F36;
  }

  .aub-tab-panel {
    padding: 1rem 0.5rem;
  }
}

/* =============== Overlay fixe =============== */
#auberge-calendar-overlay {
  position: absolute !important;
  top: 0; 
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.35);
  display: none;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 0;     /* On gère le top dans la popup */
  z-index: 999999 !important;
}

/* =============== Popup desktop positionné =============== */
#auberge-calendar-overlay .auberge-calendar-popup {
  position: absolute !important;
  top: 100px !important;      /* ✔ ton réglage */
  left: 60px !important;      /* ✔ ton réglage */
  width: 700px !important;    /* ✔ ton réglage */
  max-width: 90vw !important; /* ✔ ton réglage */
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  padding: 1rem;
  margin: 0 !important;
}

/* =============== Version mobile =============== */
@media (max-width: 700px) {

  #auberge-calendar-overlay {
    justify-content: center !important;
  }

  #auberge-calendar-overlay .auberge-calendar-popup {
    top: 60px !important;
    left: 50% !important;
    transform: translateX(-50%);
    width: 92vw !important;
    max-width: 92vw !important;
  }
}

/* ================================
   Restaurant – Layout 2 colonnes
================================ */

.aub-restaurant-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: flex-start;
    padding: 1rem 0;
}

/* Texte à gauche */
.aub-restaurant-text {
    font-family: var(--auberge-font);
    color: #52340F;
    font-size: 1rem;
    line-height: 1.5;
}
.aub-restaurant-text h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: .6rem;
}

/* Widget à droite */
.aub-restaurant-widget iframe {
    width: 100%;
    min-height: 800px;
    border: none;
    overflow: hidden;
}

/* 📱 Mobile : pile verticalement */
@media(max-width: 900px) {
    .aub-restaurant-container {
        grid-template-columns: 1fr;
    }
}

.aub-tab-ico {
  margin-right: 6px;
  font-size: 1.1rem;
}

.aub-tab-badge {
  margin-left: 8px;
  padding: 2px 6px;
  font-size: 0.80rem;
  font-weight: 700;
  color: #c0392b;
  background: #fffdfa;
  border: 2px solid #c0392b;
  border-radius: 6px;
  display: inline-block;
  transform: rotate(-12deg);
  box-shadow: 2px 2px 4px rgba(0,0,0,0.15);
  animation: aub-badge-wiggle 1.8s ease-in-out infinite;
}

/* Hide badges on all tabs except Bons Cadeaux */
.aub-tab-button:not(#tab-btn-bons) .aub-tab-badge {
  display: none !important;
}

@keyframes aub-badge-wiggle {
  0% { transform: rotate(-8deg) translateY(0); }
  25% { transform: rotate(-12deg) translateY(-2px); }
  50% { transform: rotate(-8deg) translateY(0); }
  75% { transform: rotate(-4deg) translateY(-2px); }
  100% { transform: rotate(-8deg) translateY(0); }
}

/* === Oscillation douce du badge Bons Cadeaux === */
#aub-badge-bons {
  animation: aubOscillate 2.2s ease-in-out infinite;
  transform-origin: center center;
  display: inline-block;
}

@keyframes aubOscillate {
  0%   { transform: rotate(-2deg); }
  50%  { transform: rotate(2deg); }
  100% { transform: rotate(-2deg); }
}