@charset "UTF-8";

/* ==========================================================================
   Page Séjourner
   ========================================================================== */

.sejourner-page {
  background: var(--bg);
}

/* Fil d'Ariane dans le hero */
.breadcrumb-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 253, 249, 0.75);
  letter-spacing: 0.04em;
  margin-bottom: 18px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}
.breadcrumb-hero a { color: rgba(255, 253, 249, 0.9); text-decoration: none; }
.breadcrumb-hero a:hover { color: var(--white); }
.breadcrumb-hero span[aria-current] { color: var(--white); }

/* --------------------------------------------------------------------------
   Section intro
   -------------------------------------------------------------------------- */
.section-intro-sejour {
  background: var(--bg);
  padding: 88px 0 32px;
  text-align: center;
}
.section-intro-sejour .section-lead {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Sections logements (studio + villa)
   -------------------------------------------------------------------------- */
.section-stay { padding: 80px 0 100px; }
.section-stay#sejour-studio {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.section-stay#sejour-studio::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 560px;
  height: 560px;
  background-image: url("/images/accueil/image-feuille-evenements.png");
  background-repeat: no-repeat;
  background-position: top left;
  background-size: contain;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.section-stay#sejour-studio::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 560px;
  height: 560px;
  background-image: url("/images/accueil/image-olivier-formulaire.png");
  background-repeat: no-repeat;
  background-position: bottom left;
  background-size: contain;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.section-stay#sejour-studio > * { position: relative; z-index: 1; }

.section-stay#sejour-villa { background: var(--bg-alt); }

@media (max-width: 768px) {
  .section-stay#sejour-studio::before,
  .section-stay#sejour-studio::after,
  .section-info-sejour::after { display: none; }
}

.stay-text {
  max-width: none;
  margin: 0 0 56px;
  background: #fffdf9;
  padding: 48px 56px;
  box-shadow: 0 4px 16px rgba(77, 72, 39, 0.08);
}
@media (max-width: 768px) {
  .stay-text { padding: 32px 24px; }
}
@media (max-width: 480px) {
  .stay-text { padding: 24px 18px; }
}
.stay-text .eyebrow { color: #bf9670; }
.stay-text .section-title {
  text-align: left;
  margin: 0 0 22px;
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
}
.stay-text .section-title::before { margin-left: 0; }
.stay-text .section-title em {
  font-family: var(--font-script);
  font-style: normal;
  font-weight: 700;
  font-size: 1.6em;
  line-height: 0.85;
  color: #bf9670;
  display: inline-block;
  margin-left: 0.05em;
  margin-right: 0.4rem;
  vertical-align: 0;
}

.stay-lead {
  font-size: 1.08rem;
  color: var(--ink);
  line-height: 1.7;
  margin-bottom: 24px;
}

.stay-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 0 0 32px;
  padding: 18px 22px;
  background: #f2e9e0;
}
.stay-meta-item { display: flex; flex-direction: column; gap: 4px; }
.stay-meta-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.stay-meta-value {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  color: var(--ink);
  font-weight: 600;
}

.stay-block-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin: 28px 0 12px;
  letter-spacing: 0.02em;
}

.stay-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.stay-list li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-soft);
  font-size: 0.97rem;
  line-height: 1.55;
}
.stay-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 12px;
  height: 1.5px;
  background: #bf9670;
}
.stay-list strong { color: var(--ink); font-weight: 600; }

/* Disclosure (Inclus & à prévoir) */
.stay-extra {
  margin: 28px 0;
  border: 1px solid var(--line);
  background: #f2e9e0;
}
.stay-extra summary {
  cursor: pointer;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  list-style: none;
  position: relative;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.stay-extra summary::-webkit-details-marker { display: none; }
.stay-extra summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  line-height: 1;
  color: #bf9670;
  transition: transform .25s ease;
}
.stay-extra[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.stay-extra-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease;
}
.stay-extra[open] .stay-extra-wrap { grid-template-rows: 1fr; }
.stay-extra-wrap > div { overflow: hidden; }
.stay-extra-body {
  padding: 0 22px 18px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .3s ease .05s, transform .3s ease .05s;
}
.stay-extra[open] .stay-extra-body {
  opacity: 1;
  transform: translateY(0);
}
.stay-extra-body h4 {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 14px 0 8px;
  color: var(--ink);
}
.stay-extra-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: grid;
  gap: 6px;
}
.stay-extra-body li {
  position: relative;
  padding-left: 18px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.stay-extra-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 1.5px;
  background: #bf9670;
}
.stay-extra-body p {
  margin: 0 0 8px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.stay-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
}

/* --------------------------------------------------------------------------
   Galerie mosaïque (CSS Grid avec spans variables)
   -------------------------------------------------------------------------- */
.stay-gallery { margin: 0; }

.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  grid-auto-flow: dense;
  gap: 8px;
}

.mosaic-tile {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--ink);
}
.mosaic-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.mosaic-tile:hover img {
  transform: scale(1.05);
}

/* Tous les 6 (n°1, 7, 13, 19) en grand format 2×2 */
.mosaic-tile-hero {
  grid-column: span 2;
  grid-row: span 2;
}

/* Bouton "Voir toutes les photos" sous la mosaïque */
.gallery-more {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}
.gallery-more-count {
  font-weight: 400;
  color: var(--ink-mute);
  margin-left: 4px;
}

/* Données sources cachées */
.gallery-data { display: none !important; }

/* --------------------------------------------------------------------------
   Modale diaporama plein écran (lightbox)
   -------------------------------------------------------------------------- */
.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s ease;
}
.gallery-modal.is-open { opacity: 1; }
.gallery-modal[hidden] { display: none; }

.gallery-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 8, 0.95);
  backdrop-filter: blur(6px);
}

/* Image centrée */
.gallery-modal-stage {
  position: relative;
  z-index: 1;
  margin: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 96px 70px;
  pointer-events: none;
}
.gallery-modal-stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  pointer-events: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  transition: opacity .25s ease;
}
.gallery-modal-stage img.is-fading { opacity: 0; }

/* Infos sous la photo */
.gallery-modal-meta {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 8px 22px;
  background: rgba(33, 28, 12, 0.6);
  backdrop-filter: blur(8px);
  color: rgba(255, 253, 249, 0.92);
  font-size: 13px;
  letter-spacing: 0.04em;
  border-radius: 999px;
  pointer-events: auto;
}
.gallery-modal-title {
  font-family: var(--font-serif);
  color: var(--white);
}
.gallery-modal-counter {
  color: rgba(255, 253, 249, 0.65);
  letter-spacing: 0.08em;
}
.gallery-modal-counter span { color: var(--white); }

/* Bouton fermer */
.gallery-modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 3;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255, 253, 249, 0.4);
  background: rgba(33, 28, 12, 0.6);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.gallery-modal-close:hover {
  background: rgba(255, 253, 249, 0.15);
  border-color: var(--white);
  transform: rotate(90deg);
}
.gallery-modal-close:focus-visible {
  outline: 2px solid #bf9670;
  outline-offset: 2px;
}

/* Flèches précédent / suivant */
.gallery-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255, 253, 249, 0.4);
  background: rgba(33, 28, 12, 0.6);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 32px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.gallery-modal-nav:hover {
  background: rgba(255, 253, 249, 0.15);
  border-color: var(--white);
}
.gallery-modal-nav:focus { outline: none; }
.gallery-modal-nav:focus-visible { outline: none; }
.gallery-modal-nav span {
  display: block;
  line-height: 0.9;
  margin-top: -2px;
}
.gallery-modal-prev { left: 24px; }
.gallery-modal-next { right: 24px; }

@media (max-width: 768px) {
  .gallery-modal-stage { padding: 60px 16px 70px; }
  .gallery-modal-close { top: 14px; right: 14px; width: 40px; height: 40px; font-size: 18px; }
  .gallery-modal-nav { width: 44px; height: 44px; font-size: 26px; }
  .gallery-modal-prev { left: 10px; }
  .gallery-modal-next { right: 10px; }
  .gallery-modal-meta { bottom: 16px; font-size: 12px; padding: 6px 16px; gap: 12px; }
}
@media (max-width: 480px) {
  .gallery-modal-stage { padding: 56px 8px 70px; }
  .gallery-modal-nav { width: 38px; height: 38px; font-size: 22px; }
  .gallery-modal-prev { left: 8px; }
  .gallery-modal-next { right: 8px; }
}

/* --------------------------------------------------------------------------
   Section "Bon à savoir"
   -------------------------------------------------------------------------- */
.section-info-sejour {
  background: var(--bg);
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}
.section-info-sejour::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 560px;
  height: 560px;
  background-image: url("/images/accueil/image-plantes-nuitee.png");
  background-repeat: no-repeat;
  background-position: bottom right;
  background-size: contain;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.section-info-sejour > * { position: relative; z-index: 1; }
.info-card {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 56px;
  background: var(--white);
  text-align: center;
  position: relative;
}
.info-list {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
  text-align: left;
}
.info-list li {
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: baseline;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.info-list li:last-child { border-bottom: 0; }
.info-label {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.info-value {
  font-size: 0.98rem;
  color: var(--ink);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Section CTA finale
   -------------------------------------------------------------------------- */
.section-cta {
  background: var(--bg-alt);
  padding: 100px 0;
}
.cta-block {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .gallery-mosaic {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 160px;
  }
  .info-card { padding: 44px 36px; }
}

@media (max-width: 768px) {
  .section-stay { padding: 56px 0 72px; }
  .section-intro-sejour { padding: 56px 0 24px; }
  .section-info-sejour { padding: 56px 0; }
  .section-cta { padding: 72px 0; }

  .stay-text .section-title { font-size: 1.6rem; }
  .stay-lead { font-size: 1rem; }
  .stay-text { margin-bottom: 40px; }

  .gallery-mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 140px;
    gap: 6px;
  }

  .info-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .info-card { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .stay-cta { flex-direction: column; align-items: stretch; }
  .stay-cta .btn { width: 100%; }
  .stay-meta { grid-template-columns: 1fr; padding: 14px 18px; }

  .gallery-mosaic {
    grid-auto-rows: 120px;
  }
  /* Sur très petit écran on retire le 2×2 pour éviter trop de hauteur */
  .mosaic-tile-hero {
    grid-column: span 2;
    grid-row: span 1;
  }
}
