/* =========================================================================
   Blocs des pages : ouvertures, cartes, mosaïque, galerie, formulaire.
   ========================================================================= */

/* --- Ouverture (hero) --------------------------------------------------- */

.hero {
  position: relative;
  display: grid;
  align-content: center;
  isolation: isolate;
  color: var(--c-creme);
  overflow: hidden;
}

.hero--accueil {
  min-height: max(36rem, 100svh);
  padding-block: calc(var(--hauteur-entete) + var(--e-6)) calc(var(--e-8) + 4rem);
}

.hero--page {
  min-height: clamp(30rem, 72svh, 44rem);
  padding-block: calc(var(--hauteur-entete) + var(--e-7)) var(--e-8);
  align-content: end;
}

.hero__media,
.hero__voile {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__media picture,
.hero__image {
  width: 100%;
  height: 100%;
}

.hero__image {
  object-fit: cover;
  object-position: center 60%;
}

/* Voile : sombre en haut pour l'en-tête, plus sombre en bas pour le
   texte, léger au milieu pour que la photo reste la vedette. */
.hero__voile {
  background:
    linear-gradient(180deg, rgb(26 44 71 / 55%) 0%, rgb(26 44 71 / 0%) 28%),
    linear-gradient(0deg, rgb(26 44 71 / 72%) 0%, rgb(26 44 71 / 18%) 55%, rgb(26 44 71 / 10%) 100%);
}

/* Pages intérieures : le texte est aligné à gauche, le voile s'y épaissit
   pour qu'il reste lisible sur les photos claires (chambres, murs blancs). */
.hero--page .hero__voile {
  background:
    linear-gradient(180deg, rgb(26 44 71 / 55%) 0%, rgb(26 44 71 / 0%) 28%),
    linear-gradient(90deg, rgb(26 44 71 / 78%) 0%, rgb(26 44 71 / 45%) 45%, rgb(26 44 71 / 5%) 80%),
    linear-gradient(0deg, rgb(26 44 71 / 45%) 0%, rgb(26 44 71 / 0%) 45%);
}

/* Sur téléphone, le texte occupe toute la largeur : le voile s'épaissit
   partout plutôt qu'à gauche seulement. */
@media (max-width: 699px) {
  .hero--page .hero__voile {
    background:
      linear-gradient(180deg, rgb(26 44 71 / 60%) 0%, rgb(26 44 71 / 45%) 40%, rgb(26 44 71 / 65%) 100%);
  }
}

/* Sur les pages des gîtes, les chiffres clés chevauchent le bas de la
   photo : on leur garde la place. */
.page-grandGite .hero--page,
.page-petitGite .hero--page {
  padding-bottom: calc(var(--e-8) + 3rem);
}

.hero--accueil .hero__voile {
  background:
    linear-gradient(180deg, rgb(26 44 71 / 55%) 0%, rgb(26 44 71 / 0%) 30%),
    radial-gradient(ellipse at 50% 55%, rgb(26 44 71 / 45%) 0%, rgb(26 44 71 / 15%) 70%),
    linear-gradient(0deg, rgb(26 44 71 / 60%) 0%, rgb(26 44 71 / 0%) 35%);
}

.hero__contenu {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero--page .hero__contenu {
  align-items: flex-start;
  text-align: left;
}

.hero__ancre {
  width: 2.1rem;
  aspect-ratio: 2189 / 2635;
  margin-bottom: var(--e-4);
  color: var(--c-creme);
}

.hero__titre {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 400;
}

.hero__script {
  color: var(--c-creme);
  font-size: clamp(2.4rem, 1.8rem + 2.6vw, 4rem);
  text-shadow: 0 2px 18px rgb(0 0 0 / 30%);
}

.hero--page .hero__script {
  color: var(--c-creme);
}

/* Le nom en capitales espacées, comme sur le logo. */
.hero__nom {
  font-family: var(--f-titre);
  font-size: clamp(2.3rem, 1.2rem + 5.2vw, 5.6rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  /* L'espacement ajoute un blanc après la dernière lettre : compensé pour
     que le mot reste centré. */
  margin-right: -0.12em;
  text-shadow: 0 2px 24px rgb(0 0 0 / 28%);
}

/* Assez large pour tenir en deux lignes (« À propos du Domaine /
   de Sarromas »), sans jamais s'étaler sur toute la photo. */
.hero__titre-page {
  max-width: 24ch;
  font-family: var(--f-titre);
  font-size: var(--t-3xl);
  font-weight: 500;
  line-height: var(--lh-serre);
  text-shadow: 0 2px 20px rgb(0 0 0 / 25%);
  text-wrap: balance;
}

.hero__sous-titre {
  max-width: 42rem;
  margin-top: var(--e-5);
  font-size: var(--t-l);
  line-height: 1.55;
  text-shadow: 0 1px 12px rgb(0 0 0 / 35%);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--e-3);
  margin-top: var(--e-6);
}

.hero--page .hero__actions {
  justify-content: flex-start;
}

/* Les chiffres clés, relevés du bas de la photo et posés sur un filet :
   collés au bord, ils semblaient buter contre la section suivante. */
.hero__faits {
  position: absolute;
  left: 50%;
  bottom: clamp(2.5rem, 1rem + 5vh, 4.5rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--e-2) 0;
  width: max-content;
  max-width: calc(100% - 2 * var(--gouttiere));
  padding: 1.6rem var(--e-6) 0;
  translate: -50% 0;
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Le filet s'estompe à ses deux bouts, avec un losange au centre. */
.hero__faits::before,
.hero__faits::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
}

.hero__faits::before {
  width: 100%;
  height: 1px;
  translate: -50% 0;
  background: linear-gradient(90deg, rgb(247 243 234 / 0%), rgb(247 243 234 / 55%) 30%, rgb(247 243 234 / 55%) 70%, rgb(247 243 234 / 0%));
}

.hero__faits::after {
  width: 7px;
  height: 7px;
  translate: -50% -50%;
  rotate: 45deg;
  background: var(--c-pierre);
}

.hero__faits li {
  display: flex;
  align-items: center;
}

.hero__faits li + li::before {
  content: '';
  width: 5px;
  height: 5px;
  margin-inline: var(--e-4);
  background: var(--c-pierre);
  transform: rotate(45deg);
}

@media (max-width: 599px) {
  .hero__faits {
    position: static;
    width: auto;
    max-width: none;
    position: relative;
    /* En position relative, le « bottom » du grand écran remonterait le
       bloc sur les boutons : on l'annule avec le reste du placement. */
    left: auto;
    bottom: auto;
    margin: var(--e-7) var(--gouttiere) 0;
    padding: 1.4rem 0 0;
    translate: none;
    letter-spacing: 0.08em;
  }

  .hero__faits li + li::before {
    margin-inline: var(--e-3);
  }

  .hero--accueil {
    padding-bottom: var(--e-6);
  }
}

/* Entrée de la page : le texte monte en cascade, la photo se pose. Tout
   en CSS : rien n'attend le script, et la photo (image principale de la
   page) s'affiche tout de suite, seul son cadrage bouge. */
@media (prefers-reduced-motion: no-preference) {
  .hero__image {
    animation: hero-pose 2.6s var(--courbe-douce) both;
  }

  .hero__contenu > *,
  .hero__titre > *,
  .hero__faits {
    animation: hero-monte 1.3s var(--courbe-douce) both;
  }

  .hero__contenu > :nth-child(1) { animation-delay: 0.15s; }
  .hero__titre > :nth-child(1) { animation-delay: 0.25s; }
  .hero__titre > :nth-child(2) { animation-delay: 0.4s; }
  .hero__contenu > :nth-child(2):not(.hero__titre) { animation-delay: 0.3s; }
  .hero__contenu > :nth-child(3) { animation-delay: 0.55s; }
  .hero__contenu > :nth-child(4) { animation-delay: 0.7s; }
  /* Les chiffres clés sont centrés par translate : ils apparaissent en
     fondu seul, pour ne pas perdre ce centrage. */
  .hero__faits {
    animation-name: hero-fondu;
    animation-delay: 0.9s;
  }

  /* Le titre de l'accueil se contente d'animer ses deux lignes. */
  .hero__contenu > .hero__titre {
    animation: none;
  }
}

@keyframes hero-pose {
  from { scale: 1.08; }
  to { scale: 1; }
}

@keyframes hero-fondu {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes hero-monte {
  from { opacity: 0; translate: 0 22px; }
  to { opacity: 1; translate: 0 0; }
}

/* --- Arche : la photo prend la forme d'une fenêtre cintrée -------------- */

.arche {
  position: relative;
  border-radius: 999px 999px var(--r-moyen) var(--r-moyen);
  overflow: hidden;
  isolation: isolate;
}

.arche picture,
.arche__image {
  width: 100%;
  height: 100%;
}

.arche__image {
  object-fit: cover;
  transition: transform 1.2s var(--courbe);
}

a:hover .arche__image {
  transform: scale(1.04);
}

/* --- Introduction ------------------------------------------------------ */

.intro__grille {
  display: grid;
  gap: var(--e-7);
  align-items: center;
}

@media (min-width: 900px) {
  .intro__grille {
    grid-template-columns: 1fr 1fr;
    gap: var(--e-8);
  }
}

.intro__texte {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--e-2);
}

.intro__texte .ornement {
  margin-bottom: var(--e-4);
}

.intro__texte .texte-grand {
  margin-bottom: var(--e-5);
}

.intro__photos {
  position: relative;
  padding-bottom: 12%;
  padding-right: 14%;
}

.intro__photos .arche {
  aspect-ratio: 4 / 5;
}

/* Un filet de pierre décalé derrière l'arche, comme un encadrement. */
.intro__photos::before {
  content: '';
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  right: calc(14% - 1.5rem);
  bottom: calc(12% - 1.5rem);
  border: 1px solid var(--c-pierre);
  border-radius: 999px 999px var(--r-moyen) var(--r-moyen);
}

.intro__vignette {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 46%;
  aspect-ratio: 1;
  border: 6px solid var(--c-creme);
  border-radius: var(--r-moyen);
  overflow: hidden;
  box-shadow: var(--ombre-carte);
}

.intro__vignette picture,
.intro__vignette-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Cartes des gîtes -------------------------------------------------- */

.cartes-gites {
  display: grid;
  gap: var(--e-7) var(--e-6);
}

@media (min-width: 800px) {
  .cartes-gites {
    grid-template-columns: 1fr 1fr;
  }
}

.carte-gite__lien {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.carte-gite__media {
  aspect-ratio: 5 / 4;
  border-radius: 999px 999px var(--r-moyen) var(--r-moyen);
}

.carte-gite__corps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--e-3);
  margin: -3.5rem var(--e-5) 0;
  padding: var(--e-6) var(--e-5) var(--e-5);
  background: var(--c-blanc);
  border-radius: var(--r-moyen);
  box-shadow: var(--ombre-douce);
  text-align: center;
  position: relative;
  flex: 1;
}

.carte-gite__accroche {
  font-size: 1.9rem;
}

.carte-gite__nom {
  font-family: var(--f-titre);
  font-size: var(--t-2xl);
  font-weight: 500;
  line-height: 1.1;
}

.carte-gite__resume {
  color: var(--c-encre-douce);
  max-width: 28rem;
}

.pastilles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--e-2);
}

.pastilles li {
  display: inline-flex;
  align-items: center;
  gap: var(--e-2);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--c-creme);
  border: 1px solid var(--c-filet);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.pastilles .icone {
  width: 1rem;
  height: 1rem;
  color: var(--c-bleu);
}

/* --- Le domaine entier : aplat bleu à lames de persienne ---------------- */

.domaine-entier,
.appel {
  position: relative;
  isolation: isolate;
  background: var(--c-bleu);
  color: var(--c-creme);
  overflow: hidden;
}

/* Les lames verticales des volets de la façade, dessinées en CSS. */
.domaine-entier__persienne,
.appel__persienne {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    repeating-linear-gradient(90deg,
      rgb(255 255 255 / 0%) 0 46px,
      rgb(255 255 255 / 7%) 46px 47px,
      rgb(10 25 50 / 12%) 47px 49px),
    linear-gradient(135deg, var(--c-bleu-volet) 0%, var(--c-bleu) 55%, var(--c-bleu-fonce) 100%);
}

.domaine-entier {
  display: grid;
  gap: var(--e-4) var(--e-6);
  align-items: center;
  margin-top: var(--e-7);
  padding: var(--e-6) var(--e-6);
  border-radius: var(--r-grand);
}

@media (min-width: 800px) {
  .domaine-entier {
    grid-template-columns: auto 1fr auto;
    padding: var(--e-6) var(--e-7);
  }
}

.domaine-entier__chiffre {
  font-family: var(--f-titre);
  font-size: clamp(4rem, 3rem + 4vw, 6.5rem);
  font-weight: 500;
  line-height: 0.85;
  color: var(--c-creme);
}

.domaine-entier__titre {
  font-family: var(--f-titre);
  font-size: var(--t-xl);
  font-weight: 600;
  margin-bottom: var(--e-1);
}

.domaine-entier :focus-visible,
.appel :focus-visible {
  outline-color: var(--c-creme);
}

.domaine-entier--compact {
  margin-top: 0;
  grid-template-columns: 1fr;
  align-content: center;
  padding: var(--e-6);
}

/* --- Venir, distances -------------------------------------------------- */

.venir__grille {
  display: grid;
  gap: var(--e-7);
  align-items: center;
}

@media (min-width: 900px) {
  .venir__grille {
    grid-template-columns: 5fr 6fr;
    gap: var(--e-8);
  }
}

.venir__media {
  aspect-ratio: 4 / 5;
  max-width: 30rem;
  width: 100%;
  justify-self: center;
}

.venir__texte {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--e-3);
}

.venir__texte .ornement {
  margin-bottom: var(--e-3);
}

.venir__adresse {
  display: flex;
  align-items: center;
  gap: var(--e-2);
  color: var(--c-encre-douce);
  font-size: var(--t-s);
  margin-block: var(--e-2) var(--e-3);
}

.venir__adresse .icone {
  color: var(--c-bleu);
}

.distances {
  width: 100%;
  display: grid;
  gap: var(--e-3);
  margin-block: var(--e-3);
}

.distances__ligne {
  display: flex;
  align-items: baseline;
  gap: var(--e-3);
}

.distances__lieu {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.distances__lieu b {
  font-family: var(--f-titre);
  font-size: 1.35rem;
  font-weight: 600;
}

.distances__lieu span {
  font-size: var(--t-xs);
  color: var(--c-encre-douce);
}

.distances__pointilles {
  flex: 1;
  min-width: 1.5rem;
  border-bottom: 1px dotted var(--c-bordure);
  transform: translateY(-0.35em);
}

.distances__valeur {
  font-weight: 500;
  white-space: nowrap;
}

.distances__duree {
  color: var(--c-encre-douce);
  font-weight: 400;
}

/* --- Bandeau d'appel --------------------------------------------------- */

.appel {
  padding-block: var(--e-section);
}

.appel__contenu {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.appel .titre-section {
  margin-bottom: var(--e-6);
}

.appel__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--e-4) var(--e-6);
}

.appel__mail {
  display: inline-flex;
  align-items: center;
  gap: var(--e-2);
  min-height: var(--cible);
  color: var(--c-creme);
  text-decoration: none;
  border-bottom: 1px solid rgb(247 243 234 / 45%);
}

.appel__mail:hover {
  color: var(--c-blanc);
  border-bottom-color: currentColor;
}

/* --- Pages des gîtes : chiffres clés ----------------------------------- */

.faits {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: -3rem;
  background: var(--c-blanc);
  border-radius: var(--r-moyen);
  box-shadow: var(--ombre-carte);
}

@media (min-width: 800px) {
  .faits {
    grid-template-columns: repeat(4, 1fr);
  }
}

.fait {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--e-1);
  padding: var(--e-5) var(--e-3);
  text-align: center;
}

.fait + .fait {
  border-left: 1px solid var(--c-filet);
}

@media (max-width: 799px) {
  .fait:nth-child(3) {
    border-left: 0;
  }

  .fait:nth-child(n + 3) {
    border-top: 1px solid var(--c-filet);
  }
}

.fait__icone {
  width: 1.6rem;
  height: 1.6rem;
  color: var(--c-bleu-volet);
  margin-bottom: var(--e-1);
}

.fait__valeur {
  font-family: var(--f-titre);
  font-size: var(--t-xl);
  font-weight: 600;
  line-height: 1;
}

.fait__libelle {
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-encre-douce);
}


/* --- Visionneuse ------------------------------------------------------- */

.visionneuse {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgb(15 26 43 / 96%);
  color: var(--c-creme);
}

.visionneuse[open] {
  display: grid;
  place-items: center;
}

.visionneuse::backdrop {
  background: rgb(15 26 43 / 80%);
}

.visionneuse__cadre {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--e-3);
  padding: var(--e-8) var(--e-4);
}

.visionneuse__image {
  max-width: min(92vw, 1200px);
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--r-petit);
}

.visionneuse__legende {
  font-size: var(--t-s);
  text-align: center;
  color: var(--c-pierre);
}

.visionneuse__bouton {
  position: absolute;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgb(247 243 234 / 35%);
  border-radius: 50%;
  background: rgb(26 44 71 / 60%);
  color: var(--c-creme);
  cursor: pointer;
  transition: background-color var(--d-rapide);
}

.visionneuse__bouton:hover {
  background: var(--c-bleu);
}

.visionneuse__bouton:focus-visible {
  outline-color: var(--c-creme);
}

.visionneuse__fermer { top: var(--e-4); right: var(--e-4); }
.visionneuse__prec { left: var(--e-4); top: 50%; transform: translateY(-50%); }
.visionneuse__suiv { right: var(--e-4); top: 50%; transform: translateY(-50%); }

.visionneuse__compteur {
  position: absolute;
  top: var(--e-5);
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  color: var(--c-pierre);
}

@media (max-width: 699px) {
  .visionneuse__prec,
  .visionneuse__suiv {
    top: auto;
    bottom: var(--e-4);
    transform: none;
  }
}

/* --- Compris dans le séjour -------------------------------------------- */

.inclus,
.pratique {
  display: grid;
  gap: var(--e-7);
}

@media (min-width: 900px) {
  .inclus,
  .pratique {
    grid-template-columns: 1fr 1fr;
    gap: var(--e-8);
  }
}

.inclus__titre {
  margin-bottom: var(--e-5);
  font-family: var(--f-titre);
  font-size: var(--t-2xl);
  font-weight: 500;
  line-height: 1.15;
}

.pratique__colonne > .script {
  font-size: 2.4rem;
}

.pratique__colonne > p {
  color: var(--c-encre-douce);
  margin-bottom: var(--e-3);
}

.liste-icones {
  display: grid;
  gap: var(--e-3);
}

.liste-icones li {
  display: flex;
  align-items: center;
  gap: var(--e-3);
}

.liste-icones .icone {
  color: var(--c-bleu-volet);
  width: 1.4rem;
  height: 1.4rem;
}

.inclus__couchages {
  display: flex;
  align-items: flex-start;
  gap: var(--e-3);
  margin-bottom: var(--e-6);
  font-size: var(--t-l);
}

.inclus__couchages .icone {
  margin-top: 0.2em;
  color: var(--c-bleu-volet);
}

.encart {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--e-3);
  padding: var(--e-6);
  border-radius: var(--r-grand);
  /* Posé sur la section sable qui suit la visite : blanc pour s'en détacher. */
  background: var(--c-blanc);
  box-shadow: var(--ombre-carte);
}

.encart__script {
  font-size: 2.2rem;
}

/* --- L'autre gîte ------------------------------------------------------ */

.voisin {
  display: grid;
  gap: var(--e-5);
}

@media (min-width: 900px) {
  .voisin {
    grid-template-columns: 3fr 2fr;
  }
}

.voisin__carte {
  display: grid;
  background: var(--c-creme);
  border-radius: var(--r-grand);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

@media (min-width: 600px) {
  .voisin__carte {
    grid-template-columns: 1fr 1fr;
  }
}

.voisin__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

@media (min-width: 600px) {
  .voisin__media {
    aspect-ratio: auto;
    min-height: 16rem;
  }
}

.voisin__media picture,
.voisin__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--courbe);
}

.voisin__carte:hover .voisin__image {
  transform: scale(1.05);
}

.voisin__corps {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: var(--e-3);
  padding: var(--e-6);
}

.voisin__corps p {
  color: var(--c-encre-douce);
}

.voisin__titre {
  font-family: var(--f-titre);
  font-size: var(--t-2xl);
  font-weight: 500;
  line-height: 1.1;
}

/* --- Contact ----------------------------------------------------------- */

.contact .titre-section {
  margin-bottom: var(--e-7);
}

.contact__grille {
  display: grid;
  gap: var(--e-7);
  align-items: start;
}

@media (min-width: 1000px) {
  .contact__grille {
    grid-template-columns: minmax(0, 1fr) 21rem;
    gap: var(--e-7);
  }

  .contact__aside {
    position: sticky;
    top: calc(var(--hauteur-entete) + var(--e-4));
  }
}

.contact__principal:focus {
  outline: none;
}

.contact__aside {
  display: grid;
  gap: var(--e-4);
}

.carte-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--e-3);
  padding: var(--e-5);
  background: var(--c-blanc);
  border-radius: var(--r-moyen);
  box-shadow: var(--ombre-douce);
}

.carte-contact .script {
  font-size: 2.1rem;
}

.carte-contact .liste-icones {
  font-size: var(--t-s);
}

/* L'adresse e-mail tient sur une ligne à cette taille ; si la colonne se
   resserre, elle se coupe après l'arobase plutôt qu'au milieu d'un mot. */
.carte-contact .liste-icones a {
  overflow-wrap: anywhere;
}

.carte-contact__adresse {
  line-height: 1.5;
}

.carte-contact__note {
  font-size: var(--t-s);
  color: var(--c-encre-douce);
}

.contact__photo {
  aspect-ratio: 4 / 3;
  border-radius: 999px 999px var(--r-moyen) var(--r-moyen);
}

@media (max-width: 999px) {
  .contact__photo {
    display: none;
  }
}

/* --- Formulaire -------------------------------------------------------- */

.formulaire {
  display: grid;
  gap: var(--e-5);
}

.etape {
  display: grid;
  gap: var(--e-5);
  padding: var(--e-6) var(--e-5);
  background: var(--c-blanc);
  border: 1px solid var(--c-filet);
  border-radius: var(--r-grand);
}

@media (min-width: 700px) {
  .etape {
    padding: var(--e-6) var(--e-7);
  }
}

.etape__titre {
  display: flex;
  align-items: center;
  gap: var(--e-3);
  float: left;
  width: 100%;
  margin-bottom: var(--e-2);
  font-family: var(--f-titre);
  font-size: var(--t-xl);
  font-weight: 600;
  line-height: 1.2;
}

/* float sur la légende : sans lui, les navigateurs la posent sur la
   bordure du cadre et ignorent la grille. */
.etape__titre + * {
  clear: both;
}

.etape__numero {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  flex: none;
  border-radius: 50%;
  background: var(--c-bleu);
  color: var(--c-blanc);
  font-family: var(--f-texte);
  font-size: var(--t-s);
  font-weight: 600;
}

.etape__facultatif {
  margin-left: auto;
  font-family: var(--f-texte);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-encre-douce);
}

.etape__aide {
  margin-top: calc(-1 * var(--e-3));
  font-size: var(--t-s);
  color: var(--c-encre-douce);
}

.champ {
  display: grid;
  gap: var(--e-2);
}

.champ__libelle {
  font-weight: 500;
  font-size: var(--t-s);
}

.champ__aide-inline {
  font-weight: 400;
  color: var(--c-encre-douce);
}

.requis {
  color: var(--c-erreur);
}

.champ__saisie {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  /* 16 px au moins : en dessous, Safari sur iPhone zoome à la saisie. */
  font-size: max(1rem, 16px);
  background: var(--c-blanc);
  border: 1px solid var(--c-bordure);
  border-radius: var(--r-petit);
  transition: border-color var(--d-rapide), box-shadow var(--d-rapide);
  appearance: none;
}

.champ__saisie:hover {
  border-color: var(--c-encre-douce);
}

.champ__saisie:focus {
  outline: none;
  border-color: var(--c-bleu);
  box-shadow: 0 0 0 3px rgb(63 125 194 / 30%);
}

.champ__saisie--nombre {
  max-width: 9rem;
}

textarea.champ__saisie {
  min-height: 8rem;
  resize: vertical;
  line-height: 1.5;
}

input[type='date'].champ__saisie {
  min-height: 48px;
}

.champs-duo {
  display: grid;
  gap: var(--e-4);
}

@media (min-width: 600px) {
  .champs-duo {
    grid-template-columns: 1fr 1fr;
  }
}

/* Puces : boutons radio et cases à cocher habillés en pastilles. Le
   champ reste dans la page (invisible mais focalisable) : le clavier et
   les lecteurs d'écran le trouvent comme n'importe quel champ. */
.puces {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e-2);
}

.puce,
.choix-gite,
.case {
  position: relative;
  cursor: pointer;
}

.puce input,
.choix-gite input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.puce span {
  display: inline-flex;
  align-items: center;
  gap: var(--e-2);
  min-height: var(--cible);
  padding: 0.45rem 1.05rem;
  border: 1px solid var(--c-bordure);
  border-radius: 999px;
  background: var(--c-blanc);
  font-size: var(--t-s);
  transition: background-color var(--d-rapide), border-color var(--d-rapide), color var(--d-rapide);
}

.puce--case span::before {
  content: '';
  width: 0.95rem;
  height: 0.95rem;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  flex: none;
}

.puce:hover span {
  border-color: var(--c-bleu);
}

.puce input:checked + span {
  background: var(--c-bleu);
  border-color: var(--c-bleu);
  color: var(--c-blanc);
}

.puce--case input:checked + span::before {
  background: var(--c-blanc)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a5c99' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 80% no-repeat;
  border-color: var(--c-blanc);
}

.puce input:focus-visible + span,
.choix-gite input:focus-visible ~ .choix-gite__nom {
  outline: 3px solid var(--c-bleu-volet);
  outline-offset: 3px;
}

.choix-gites {
  display: grid;
  gap: var(--e-3);
}

@media (min-width: 700px) {
  .choix-gites {
    grid-template-columns: repeat(3, 1fr);
  }
}

.choix-gite {
  display: flex;
  flex-direction: column;
  gap: var(--e-1);
  padding: var(--e-4);
  border: 1px solid var(--c-bordure);
  border-radius: var(--r-moyen);
  background: var(--c-blanc);
  transition: border-color var(--d-rapide), background-color var(--d-rapide), box-shadow var(--d-rapide);
}

.choix-gite:hover {
  border-color: var(--c-bleu);
}

.choix-gite:has(input:checked) {
  border-color: var(--c-bleu);
  background: #eef3fa;
  box-shadow: inset 0 0 0 1px var(--c-bleu);
}

.choix-gite:has(input:focus-visible) {
  outline: 3px solid var(--c-bleu-volet);
  outline-offset: 3px;
}

.choix-gite__nom {
  font-family: var(--f-titre);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.15;
  padding-right: 1.6rem;
}

/* Pastille ronde de sélection, en haut à droite de la carte. */
.choix-gite__nom::after {
  content: '';
  position: absolute;
  top: var(--e-4);
  right: var(--e-4);
  width: 1.1rem;
  height: 1.1rem;
  border: 1.5px solid var(--c-bordure);
  border-radius: 50%;
  background: var(--c-blanc);
}

.choix-gite input:checked ~ .choix-gite__nom::after {
  border: 5px solid var(--c-bleu);
}

.choix-gite__detail {
  font-size: var(--t-s);
  color: var(--c-encre-douce);
}

.case {
  display: inline-flex;
  align-items: flex-start;
  gap: var(--e-3);
  min-height: var(--cible);
  padding-block: var(--e-2);
  font-size: var(--t-s);
}

.case input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.1rem 0 0;
  flex: none;
  accent-color: var(--c-bleu);
}

/* Champs conditionnels : masqués seulement quand le script les pilote. */
.js [data-si-enfants].est-masque,
.js [data-si-sejour].est-masque,
.js [data-si-option].est-masque {
  display: none;
}

.capacite {
  padding: var(--e-3) var(--e-4);
  border-left: 3px solid var(--c-bleu-volet);
  background: #eef3fa;
  border-radius: 0 var(--r-petit) var(--r-petit) 0;
  font-size: var(--t-s);
}

.capacite.est-alerte {
  border-left-color: var(--c-erreur);
  background: #fbefed;
  color: var(--c-erreur);
}

.piege {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.formulaire__legende {
  font-size: var(--t-xs);
  color: var(--c-encre-douce);
}

.formulaire__envoi {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--e-4);
}

.formulaire__resume {
  font-family: var(--f-titre);
  font-size: var(--t-xl);
  font-weight: 500;
  color: var(--c-bleu);
}

.formulaire__resume:empty {
  display: none;
}

.alerte {
  margin-bottom: var(--e-5);
  padding: var(--e-4) var(--e-5);
  border-left: 4px solid var(--c-erreur);
  border-radius: 0 var(--r-moyen) var(--r-moyen) 0;
  background: #fbefed;
  color: var(--c-erreur);
}

.alerte:focus {
  outline: none;
}

.alerte__titre {
  font-weight: 600;
  margin-bottom: var(--e-2);
}

.alerte ul {
  margin: 0;
  padding-left: 1.2rem;
}

.confirmation {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--e-4);
  padding: var(--e-7) var(--e-6);
  background: var(--c-blanc);
  border-radius: var(--r-grand);
  box-shadow: var(--ombre-douce);
}

.confirmation__icone {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--c-succes);
  color: var(--c-blanc);
}

.confirmation__icone .icone {
  width: 1.6rem;
  height: 1.6rem;
}

.confirmation__titre {
  font-family: var(--f-titre);
  font-size: var(--t-2xl);
  font-weight: 500;
  line-height: 1.15;
}

.confirmation__note {
  font-size: var(--t-s);
  color: var(--c-encre-douce);
}

.recap {
  width: 100%;
  display: grid;
  margin: 0;
  border-top: 1px solid var(--c-filet);
}

.recap div {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: var(--e-3);
  padding-block: var(--e-3);
  border-bottom: 1px solid var(--c-filet);
}

.recap dt {
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-encre-douce);
  padding-top: 0.2em;
}

.recap dd {
  font-weight: 500;
}

/* --- Pages de texte (mentions, confidentialité) ------------------------ */

.prose {
  max-width: 44rem;
  margin-inline: auto;
}

.prose h2 {
  margin: var(--e-7) 0 var(--e-3);
  font-family: var(--f-titre);
  font-size: var(--t-xl);
  font-weight: 600;
  line-height: 1.2;
}

.prose p,
.prose ul {
  margin-bottom: var(--e-4);
}

.prose ul {
  padding-left: 1.2rem;
}

.prose li {
  margin-bottom: var(--e-1);
}

.prose code {
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: 3px;
  background: var(--c-sable);
}

/* --- Pages d'erreur ---------------------------------------------------- */

.page-erreur {
  min-height: 60vh;
  display: grid;
  align-content: center;
}

.page-erreur__liens {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--e-3);
}

/* --- Avis -------------------------------------------------------------- */

.avis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: var(--e-4);
}

.avis__carte {
  display: flex;
  flex-direction: column;
  gap: var(--e-3);
  padding: var(--e-5);
  background: var(--c-blanc);
  border-radius: var(--r-moyen);
  box-shadow: var(--ombre-douce);
}

.avis__etoiles {
  color: var(--c-bleu-volet);
  letter-spacing: 0.15em;
}

.avis__texte {
  font-family: var(--f-titre);
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.5;
}

.avis__signature {
  margin-top: auto;
  font-size: var(--t-s);
  color: var(--c-encre-douce);
}

.avis__source {
  margin-top: var(--e-5);
  text-align: center;
  font-size: var(--t-xs);
  color: var(--c-encre-douce);
}

/* --- Mouvement réduit --------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
