/**
 * Composition V2. min-height préserve l’intention plein écran sans couper
 * les textes lorsque l’écran est court, le zoom actif ou une FAQ ouverte.
 */
.screen {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  scroll-snap-align: start;
}

/* 01 — Vidéo plein cadre, affiche immédiate et contrastes constants pendant le vol. */
.welcome {
  display: flex;
  flex-direction: column;
  isolation: isolate;
  background: #23382a;
  color: var(--color-white);
}

.welcome .site-header {
  padding-block: 1.25rem;
}

.welcome-landscape {
  position: absolute;
  z-index: -2;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.welcome-landscape img,
.welcome-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.welcome-video {
  opacity: 0;
  transition: opacity 600ms ease;
}

.is-video-ready .welcome-video {
  opacity: 1;
}

/* Les feuillages bougent : protéger le haut et le bas sans masquer le paysage central. */
.welcome::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: '';
  pointer-events: none;
  background: linear-gradient(180deg, rgba(12, 29, 19, 0.64), rgba(12, 29, 19, 0.47) 31%, rgba(12, 29, 19, 0.16) 48%, rgba(12, 29, 19, 0.68) 70%, rgba(12, 29, 19, 0.90));
}

.welcome-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  padding: clamp(0.25rem, 1vh, 0.875rem) var(--gutter) clamp(2.25rem, 5vh, 4rem);
  text-align: center;
}

.welcome-body .eyebrow {
  margin-bottom: 0.5rem;
  color: var(--color-white);
}

.welcome h1 {
  max-width: 65rem;
  font-size: clamp(2.65rem, 4.1vw, 4.65rem);
}

.welcome h1 span,
.estate h2 span,
.contact h2 span {
  display: block;
}

.welcome-description {
  max-width: 29rem;
  margin-top: auto;
  padding-top: clamp(3rem, 8vh, 6rem);
  color: var(--color-white);
  line-height: 1.75;
  text-wrap: pretty;
  text-shadow: 0 1px 8px rgba(12, 24, 16, 0.35);
}

.welcome .button-pill {
  margin-top: 1.25rem;
}

.discover-nav {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0.5rem var(--gutter) 0.625rem;
  color: var(--color-ink);
  background: var(--color-paper);
  border-top: 1px solid var(--color-line);
}

.discover-nav a {
  display: grid;
  grid-template-columns: auto minmax(0, max-content) auto;
  justify-content: center;
  align-items: center;
  gap: 0.625rem;
  min-height: 44px;
  text-align: center;
  text-decoration: none;
}

.discover-nav a:hover strong {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.discover-index {
  color: var(--color-muted);
  font-size: 0.6875rem;
}

.discover-nav strong {
  display: block;
  font: 400 1.3rem / 1.3 var(--font-display);
}

.discover-nav small {
  display: block;
  margin-top: 0.25rem;
  color: var(--color-muted);
  font-size: 0.75rem;
}

/* 02 — Répartition 50/50 au repos ; les largeurs évoluent au survol. */
.stays {
  background: var(--color-ink);
  isolation: isolate;
}

.stays-stage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 100vh;
  min-height: 100svh;
  isolation: isolate;
}

.stay-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 7rem clamp(1.5rem, 4vw, 5rem) 8rem;
  overflow: hidden;
  isolation: isolate;
  color: var(--color-white);
  text-decoration: none;
  text-align: center;
}

.stay-panel img,
.estate > img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stay-panel img {
  object-position: 50% 55%;
}

.stay-panel::after,
.estate::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: '';
  pointer-events: none;
}

.stay-panel::after {
  background: linear-gradient(180deg, rgba(9, 23, 16, 0.40), rgba(9, 23, 16, 0.48) 28%, rgba(9, 23, 16, 0.72) 70%, rgba(9, 23, 16, 0.79));
}

.stay-copy {
  width: 100%;
  max-width: 28rem;
  transform: translateY(2rem);
}

.stay-panel h2 {
  margin: 1rem 0 1.5rem;
  font-size: clamp(2.65rem, 4.6vw, 5rem);
}

.stay-description {
  max-width: 23rem;
  margin-inline: auto;
  line-height: 1.8;
}

.stay-facts {
  margin-top: 1.75rem;
  font-size: 0.8125rem;
  letter-spacing: 0.025em;
}

.stay-facts span {
  display: block;
}

.stay-site-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
  padding: 0.25rem 0 0.375rem;
  border-bottom: 1px solid rgba(255, 253, 245, 0.75);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stay-site-link > span {
  font-size: 1rem;
  transition: transform 200ms ease;
}

.stay-panel:hover .stay-site-link > span,
.stay-panel:focus-visible .stay-site-link > span {
  transform: translate(0.2rem, -0.2rem);
}

.stay-panel:focus-visible {
  outline: 3px solid var(--color-white);
  outline-offset: -8px;
}

/* 03 — Une photographie du domaine ; les textes restent de vrais éléments HTML. */
.estate {
  display: flex;
  align-items: center;
  isolation: isolate;
  padding: 5rem max(var(--gutter), 8vw) 6rem;
  color: var(--color-white);
  background: var(--color-ink);
}

.estate::after {
  background: linear-gradient(90deg, rgba(12, 30, 20, 0.85), rgba(12, 30, 20, 0.60) 55%, rgba(12, 30, 20, 0.10));
}

.estate-copy {
  max-width: 45rem;
}

.estate h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.65rem, 4.65vw, 4rem);
}

.estate-copy > p:not(.estate-caption) {
  line-height: 1.9;
}

.estate-copy > p + p {
  margin-top: 1.25rem;
}

.estate-copy .estate-caption {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 253, 245, 0.45);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* 04 — Contact et FAQ : la section grandit librement avec les réponses ouvertes. */
.contact {
  display: flex;
  flex-direction: column;
  padding: clamp(2.5rem, 6vh, 5rem) var(--gutter) 0;
}

.contact-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
}

.contact-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  padding: 1.25rem 0 2rem;
}

.contact h2 {
  font-size: clamp(2.65rem, 3.5vw, 4.5rem);
}

.contact-heading > p {
  max-width: 22rem;
  color: var(--color-muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 7vw, 7rem);
}

.contact h3 {
  margin-bottom: 1rem;
  font-size: 1.875rem;
}

.contact-details p,
.contact-details address {
  color: var(--color-muted);
  font-size: 0.875rem;
}

.phone-link {
  display: inline-block;
  font: 400 clamp(1.6rem, 2.4vw, 2rem) / 1.6 var(--font-body);
  letter-spacing: 0.015em;
  text-decoration: none;
  margin-top: 1rem;
}

.phone-link:hover {
  text-decoration: underline;
}

.email-link {
  display: block;
  width: fit-content;
  margin: -0.25rem 0 1rem;
  color: var(--color-ink);
  font-size: 1rem;
  text-decoration: none;
}

.email-link:hover,
.email-link:focus-visible {
  text-decoration: underline;
}

.faq details {
  border-bottom: 1px solid var(--color-line);
}

.faq details:last-child {
  border-bottom: 0;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 54px;
  padding: 1rem 0;
  list-style: none;
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1.6;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary > span {
  flex-shrink: 0;
  font-size: 1.25rem;
  transition: transform 200ms ease;
}

.faq details[open] summary > span {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem 1rem 0;
  color: var(--color-muted);
  font-size: 0.875rem;
}

.faq-answer ul {
  padding-left: 1rem;
}

.faq-answer a {
  display: inline-block;
  padding: 0.375rem 0;
}

.events-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 2rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--color-line);
  font-size: 0.8125rem;
}

.events-link a {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  min-height: 44px;
}

/* 04 — Rappel des deux sites : Bastide 1820 et Gîtes 1820. */
.contact-stays ul {
  display: grid;
  /* Deux cartes seulement lorsque chacune conserve une largeur confortable. */
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.contact-stay {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  text-align: center;
  gap: 0.25rem;
  padding: 0.5rem 0.5rem;
  border: 1px solid var(--color-line);
  border-radius: 6px;
  color: var(--color-ink);
  text-decoration: none;
  transition: border-color 200ms ease, background-color 200ms ease;
}
.contact-stay:hover,
.contact-stay:focus-visible {
  border-color: var(--color-ink);
  background: var(--color-paper);
}
.contact-stay strong {
  font-size: 1.25rem;
  font-weight: 400;
}
.contact-stay small {
  color: var(--color-muted);
  font-size: 0.8125rem;
}

@media (max-width: 1000px) {
  .discover-nav strong {
    font-size: 1.125rem;
  }

  .contact-heading > p {
    max-width: 18rem;
  }
}

/*
 * Une tablette portrait est beaucoup plus haute que le rush panoramique.
 * Le cadrage contenu conserve le paysage et évite d’agrandir inutilement
 * une petite portion de l’image ; le léger débord préserve l’effet immersif.
 */
@media (min-width: 701px) and (max-width: 1100px) and (orientation: portrait) {
  .welcome-landscape {
    background: #23382a;
  }

  .welcome-landscape img,
  .welcome-video {
    left: -7.5%;
    width: 115%;
    object-fit: contain;
  }

  .welcome::before {
    background: linear-gradient(
      180deg,
      rgba(12, 29, 19, 0.72),
      rgba(12, 29, 19, 0.28) 32%,
      rgba(12, 29, 19, 0.16) 50%,
      rgba(12, 29, 19, 0.32) 68%,
      rgba(12, 29, 19, 0.84)
    );
  }
}

@media (max-width: 700px) {
  .mobile-screen-label{
    display: none;
  }
  .welcome .site-header {
    gap: 0.25rem;
    padding-top: 1rem;
    padding-bottom: 0.5rem;
  }

  .contact-stays ul {
    gap: 0.625rem;
  }
  .contact-stay {
    padding: 0.875rem 1rem;
  }

  .welcome .primary-nav {
    gap: clamp(0.75rem, 3vw, 1.5rem);
  }

  .welcome::before {
    background: linear-gradient(180deg, rgba(12, 29, 19, 0.65), rgba(12, 29, 19, 0.48) 29%, rgba(12, 29, 19, 0.15) 43%, rgba(12, 29, 19, 0.65) 62%, rgba(12, 29, 19, 0.92));
  }

  .welcome-body {
    padding: 2rem var(--gutter) 2.25rem;
  }

  .welcome-body .eyebrow {
    font-size: 0.625rem;
    margin-bottom: 0.625rem;
  }

  .welcome h1 {
    font-size: clamp(1.5rem, 7.4vw, 2.75rem);
  }

  .welcome-description {
    padding-top: 7rem;
    font-size: 0.875rem;
    line-height: 1.7;
  }

  .welcome .button-pill {
    text-align: left;
  }

  .discover-nav {
    /* Le bouton principal suffit à poursuivre la découverte sur téléphone. */
    display: none;
  }

  .stays-stage {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
  }

  /* Une demi-hauteur minimum ; on laisse le contenu agrandir chaque panneau. */
  .stay-panel {
    min-height: 50svh;
    padding: 4rem var(--gutter) 2.5rem;
  }

  .stay-panel:nth-of-type(2) {
    padding: 2.5rem var(--gutter) 6.5rem;
  }

  .stay-copy {
    max-width: 20rem;
    transform: none;
  }

  .stay-copy .eyebrow {
    font-size: 0.625rem;
    line-height: 1.45;
  }

  .stay-panel h2 {
    margin: 0.375rem 0 0.625rem;
    font-size: clamp(1.75rem, 8vw, 2.2rem);
  }

  .stay-description {
    font-size: 0.8125rem;
    line-height: 1.55;
  }

  .stay-facts {
    margin-top: 0.75rem;
    font-size: 0.6875rem;
    line-height: 1.5;
  }

  .stay-site-link {
    gap: 0.5rem;
    margin-top: 0.875rem;
    font-size: 0.6875rem;
  }

  .estate {
    padding: 6rem var(--gutter) 8rem;
  }

  .estate::after {
    background: rgba(12, 30, 20, 0.73);
  }

  .estate h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.9rem, 7vw, 2.5rem);
  }

  .estate-copy > p:not(.estate-caption) {
    font-size: 0.875rem;
    line-height: 1.65;
  }

  .estate-copy > p + p {
    margin-top: 0.875rem;
  }

  .estate-copy .estate-caption {
    margin-top: 1.5rem;
    padding-top: 1rem;
    font-size: 0.6875rem;
  }

  .contact-heading {
    display: block;
    padding: 0.875rem 0 1rem;
  }

  .contact-heading > p {
    max-width: none;
    margin-top: 0.875rem;
    font-size: 0.875rem;
    line-height: 1.65;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1rem 0;
  }

  .contact h2 {
    font-size: clamp(1.9rem, 7vw, 2.5rem);
  }

  .contact h3 {
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
  }

  .contact-details p,
  .contact-details address {
    font-size: 0.8125rem;
    line-height: 1.6;
  }

  .phone-link {
    margin-top: 0.75rem;
    font-size: 1.35rem;
  }

  .email-link {
    margin-bottom: 0.75rem;
    font-size: 0.8125rem;
  }

  .contact-stays ul {
    gap: 0.5rem;
  }

  .contact-stay {
    gap: 0.125rem;
    padding: 0.75rem 0.875rem;
  }

  .contact-stay strong {
    font-size: 1.0625rem;
  }

  .contact-stay small {
    font-size: 0.6875rem;
    line-height: 1.5;
  }

  .faq summary {
    padding: 0.75rem 0;
    font-size: 0.8125rem;
  }

  .faq-answer {
    font-size: 0.8125rem;
  }

  .events-link {
    font-size: 0.75rem;
  }
}

/* Petits mobiles : réunir le texte et son lien dans un bloc centré. */
@media (max-width: 429px) {
  .events-link {
    flex-direction: column;
    justify-content: center;
    gap: 0;
    text-align: center;
  }

  .events-link a {
    justify-content: center;
    gap: 0.5rem;
  }
}
