/* ===== Fonte =====
   Une seule famille pour tout le site, titres compris : Inter, en fonte
   variable (toutes les graisses dans un fichier de 48 ko), sous licence SIL
   Open Font License (public/fonts/OFL.txt). Auto-hébergée : aucune requête
   vers un tiers. Sous-ensemble latin, qui couvre le français, les guillemets
   et l'espace fine insécable. */
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ===== Design tokens =====
   Des neutres chauds et une seule couleur, la brique, réservée à l'action
   (boutons, liens) et aux repères. Tout le reste est en encre et en gris :
   c'est ce qui laisse les photos porter la couleur.

   Contrastes vérifiés sur fond blanc : --ink 17:1, --ink-soft 7,6:1,
   --accent 6,0:1 (et blanc sur --accent, 6,0:1). Tous au-dessus de 4,5:1. */
:root {
  --ink: #1c1917;
  --ink-soft: #57534e;
  --bg: #ffffff;
  --bg-alt: #f7f5f2;
  --line: #e7e2dc;
  --line-strong: #cfc7bf;
  --accent: #a8432a;
  --accent-hover: #8f3822;
  /* Deux ombres, à peine perceptibles : elles décollent une carte du fond
     sans dessiner de halo. */
  --shadow: 0 1px 2px rgb(28 25 23 / 0.04), 0 2px 8px rgb(28 25 23 / 0.04);
  --shadow-lg: 0 1px 3px rgb(28 25 23 / 0.05), 0 8px 24px rgb(28 25 23 / 0.06);
  --radius: 10px;
  --radius-lg: 16px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* L'échelle des tailles, resserrée : le texte courant à 15px, les titres
     sans emphase. Les champs de formulaire restent à 16px (--fs-md) : en
     dessous, Safari sur iPhone zoome la page au toucher du champ. */
  --fs-xs: 0.8125rem;
  --fs-sm: 0.875rem;
  --fs-base: 0.9375rem;
  --fs-md: 1rem;
  --fs-lead: clamp(0.98rem, 1.2vw, 1.05rem);
  --fs-h3: 0.97rem;
  --fs-h2: clamp(1.35rem, 2.3vw, 1.7rem);
  --fs-h1: clamp(1.85rem, 3.6vw, 2.5rem);
  --header-h: 64px;
  --gutter: 24px;
}

/* ===== Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

/* En colonne flexible : sur une page plus courte que l'écran (la
   confirmation), le pied descend jusqu'en bas au lieu de laisser une bande
   vide sous lui. */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

a {
  color: var(--accent);
}

/* height: auto, sans quoi l'attribut height de la balise (posé pour réserver
   la place et éviter les sauts de mise en page) fixerait la hauteur en dur, et
   aspect-ratio resterait sans effet. */
img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Pictogrammes : un trait, jamais un aplat, sauf la croix. Sans dimensions,
   un <svg> prend 300x150 par défaut : la taille est donc posée ici pour tous,
   puis ajustée au cas par cas. */
svg[aria-hidden="true"] {
  width: 1.2em;
  height: 1.2em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

main {
  flex: 1 0 auto;
}

/* Lu par les lecteurs d'écran, invisible à l'œil. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.wrap-narrow {
  max-width: 780px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 18px;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection {
  background: var(--ink);
  color: #fff;
}

/* ===== Contenus à compléter =====
   Ce qui ne peut venir que de l'hôte porte data-todo et l'une de ces deux
   classes : un pointillé, sans couleur de plus. `npm test` en dresse la liste
   (voir le README). */
.todo {
  outline: 1px dashed var(--ink-soft);
  outline-offset: 2px;
  border-radius: 3px;
}

.todo-block {
  outline: 1px dashed var(--ink-soft);
  outline-offset: 6px;
  border-radius: 6px;
}

/* ===== Boutons =====
   Le même composant sert à des <a> et à des <button> : les quatre premières
   déclarations neutralisent les défauts du navigateur sur ces derniers. */
.btn {
  appearance: none;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-family: inherit;
  font-weight: 600;
  font-size: var(--fs-sm);
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: var(--ink);
}

.btn-block {
  width: 100%;
}

.btn[aria-busy="true"] {
  cursor: progress;
  opacity: 0.7;
}

.btn svg[aria-hidden="true"] {
  width: 1.1em;
  height: 1.1em;
  stroke-width: 2;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
}

.link-arrow:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ===== En-tête ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-bar {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
  font-size: var(--fs-md);
  font-weight: 650;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-mark[aria-hidden="true"] {
  width: 22px;
  height: 22px;
  fill: var(--accent);
  stroke: none;
}

.site-links {
  display: flex;
  gap: 24px;
}

.site-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 500;
  padding: 6px 0;
}

.site-links a:hover {
  color: var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-cta {
  padding: 8px 16px;
}

.nav-toggle {
  display: none;
  appearance: none;
  border: 1px solid var(--line);
  background: var(--bg);
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.burger {
  display: grid;
  gap: 4px;
}

.burger i {
  display: block;
  width: 17px;
  height: 1.6px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .burger i:nth-child(1) {
  transform: translateY(5.6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .burger i:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .burger i:nth-child(3) {
  transform: translateY(-5.6px) rotate(-45deg);
}

.menu-panel {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 4px 0 16px;
}

.menu-panel nav {
  display: grid;
}

.menu-panel a {
  color: var(--ink);
  text-decoration: none;
  font-size: var(--fs-md);
  font-weight: 500;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

/* ===== Petits textes d'introduction ===== */
.eyebrow {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--accent);
}

.lead {
  margin-top: 12px;
  font-size: var(--fs-lead);
  color: var(--ink-soft);
  max-width: 42em;
}

/* ===== Hero =====
   Le film en fond, sur toute la largeur, le texte centré par-dessus
   (scripts/components/video-fond.js). Dessous, dans l'ordre : la photo
   d'affiche, le film qui la recouvre en fondu une fois en lecture, un voile
   sombre pour le contraste du texte. */
.hero {
  padding: 0;
}

.hero-scene {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(460px, calc(100svh - var(--header-h, 64px) - 64px), 760px);
  overflow: hidden;
  background: #1c1917;
  color: #fff;
  isolation: isolate;
}

.hero-affiche,
.hero-video,
.hero-voile {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-affiche,
.hero-video {
  object-fit: cover;
  object-position: var(--focus, 50% 50%);
}

/* Plus sombre au centre, où se lit le texte, que sur les bords. */
.hero-voile {
  background:
    radial-gradient(ellipse at center, rgb(20 16 14 / 0.55), rgb(20 16 14 / 0.25) 70%),
    linear-gradient(to bottom, rgb(20 16 14 / 0.15), rgb(20 16 14 / 0.35));
}

.hero-contenu {
  position: relative;
  display: grid;
  justify-items: center;
  max-width: 760px;
  padding-top: 56px;
  padding-bottom: 56px;
  text-align: center;
}

.hero .eyebrow {
  color: #fff;
  opacity: 0.9;
}

.hero h1 {
  margin-top: 6px;
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  letter-spacing: -0.03em;
  text-shadow: 0 2px 24px rgb(0 0 0 / 0.25);
}

.hero .lead {
  margin-top: 14px;
  color: rgb(255 255 255 / 0.92);
  max-width: 40em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

/* Le bouton clair, posé sur le film : un verre dépoli plutôt qu'un aplat. */
.btn-clair {
  background: rgb(255 255 255 / 0.14);
  color: #fff;
  border-color: rgb(255 255 255 / 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.btn-clair[hidden] {
  display: none;
}

.btn-clair:hover {
  background: rgb(255 255 255 / 0.24);
  border-color: #fff;
}

.hero :focus-visible {
  outline-color: #fff;
}

/* Arrêter le fond : un petit bouton rond, en bas à droite. */
.hero-pause {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 0.5);
  border-radius: 50%;
  background: rgb(0 0 0 / 0.3);
  color: #fff;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.hero-pause[hidden] {
  display: none;
}

.hero-pause:hover {
  background: rgb(0 0 0 / 0.5);
}

.hero-pause svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-pause .icone-lecture {
  fill: currentColor;
  stroke-width: 1;
}

.hero-pause .icone-lecture,
.hero-pause.est-en-pause .icone-pause {
  display: none;
}

.hero-pause.est-en-pause .icone-lecture {
  display: block;
}

/* Sur téléphone, les boutons d'action prennent toute la largeur. */
@media (max-width: 560px) {
  .hero-actions {
    display: grid;
    justify-content: stretch;
    width: 100%;
  }

  .hero-actions .btn,
  .journee-texte .btn,
  .cta-content .btn {
    width: 100%;
    justify-content: center;
  }

  .journee-texte {
    justify-items: stretch;
  }
}

/* Le lecteur du film, avec le son : caché jusqu'à ce qu'on le demande.
   C'est lui qui passe en plein écran, film et bouton « Revenir au site »
   ensemble ; là où le plein écran d'un élément n'existe pas (iPhone), il
   couvre la fenêtre. */
.hero-lecteur {
  display: none;
}

/* La scène isole son empilement (isolation) : ouverte, elle doit passer
   devant l'en-tête collant, sans quoi celui-ci couvrirait le film et son
   bouton de fermeture. */
.hero-scene.film-ouvert {
  z-index: 300;
}

.film-ouvert .hero-lecteur {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: block;
  background: #000;
}

.hero-lecteur:fullscreen {
  width: 100%;
  height: 100%;
}

.hero-film {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-fermer {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px 0 12px;
  border: 1px solid rgb(255 255 255 / 0.5);
  border-radius: 999px;
  background: rgb(0 0 0 / 0.55);
  color: #fff;
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.hero-fermer:hover {
  background: rgb(0 0 0 / 0.75);
  border-color: #fff;
}

.hero-fermer:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.hero-fermer svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.piece-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, 50% 50%);
  transition: transform 0.4s ease;
}

.piece-photos a:hover img {
  transform: scale(1.03);
}

/* L'anneau de focus est dessiné à l'intérieur de la vignette : à l'extérieur,
   l'overflow: hidden des compositions le rognerait. */
.piece-photos a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-sm);
}

.facts li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.facts svg[aria-hidden="true"] {
  width: 20px;
  height: 20px;
  color: var(--ink-soft);
}

/* ===== Sections ===== */
.section {
  padding: clamp(56px, 7vw, 88px) 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 640px;
  margin-bottom: 32px;
}

.section-head h2,
.logement-texte h2 {
  margin-top: 6px;
  font-size: var(--fs-h2);
}

.section-head > p:not(.eyebrow) {
  margin-top: 10px;
  color: var(--ink-soft);
}

/* ===== Le logement ===== */
.logement {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.prose {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  max-width: 62ch;
}

.highlights {
  display: grid;
  gap: 12px;
}

.highlight {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.highlight svg[aria-hidden="true"] {
  width: 38px;
  height: 38px;
  padding: 9px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  color: var(--accent);
}

.highlight p {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: var(--fs-sm);
}

.sleep {
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.sleep-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.sleep-head h3 {
  font-size: var(--fs-md);
}

/* Où vous dormirez : une carte par chambre, sans photo (la visite les
   montre, pièce par pièce, juste en dessous). */
.beds {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.bed {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.bed svg[aria-hidden="true"] {
  width: 26px;
  height: 26px;
  color: var(--accent);
}

.bed div {
  display: grid;
  line-height: 1.4;
}

.bed span {
  color: var(--ink-soft);
  font-size: var(--fs-sm);
}

/* ===== Équipements ===== */
.amenities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 32px;
}

.amenities li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.amenities svg[aria-hidden="true"] {
  width: 20px;
  height: 20px;
  color: var(--ink-soft);
}

/* ===== La visite, pièce par pièce =====
   Un sommaire des pièces, collé sous l'en-tête, et pour chaque pièce un
   chapitre : son nom, deux lignes, et ses photos composées selon leur
   nombre. La première photo d'une pièce est toujours la plus grande. */
.visite {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.visite-index {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 2px;
  counter-reset: piece;
}

.visite-index a {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: baseline;
  gap: 6px;
  padding: 8px 10px;
  border-radius: var(--radius);
  color: var(--ink-soft);
  text-decoration: none;
  font-size: var(--fs-sm);
  counter-increment: piece;
}

.visite-index a::before {
  content: counter(piece, decimal-leading-zero);
  font-size: var(--fs-xs);
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
}

.visite-index a small {
  font-size: var(--fs-xs);
  font-variant-numeric: tabular-nums;
}

.visite-index a:hover {
  color: var(--ink);
}

.visite-index a[aria-current="true"] {
  background: var(--bg-alt);
  color: var(--ink);
  font-weight: 600;
}

.visite-index a[aria-current="true"]::before {
  color: var(--accent);
}

.visite-pieces {
  display: grid;
  gap: 56px;
}

.piece {
  display: grid;
  gap: 16px;
}

/* Une pièce d'une seule photo : le texte et la photo côte à côte, la photo
   dans son format. Étirée sur toute la largeur, elle ne montrait plus qu'un
   tiers de l'image. */
.piece:has(.piece-photos[data-n="1"]) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.piece-texte {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 14px;
  align-items: baseline;
  max-width: 64ch;
}

.piece-num {
  grid-row: span 2;
  font-size: var(--fs-xs);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.piece-texte h3 {
  font-size: var(--fs-md);
}

.piece-texte p:not(.piece-num) {
  color: var(--ink-soft);
}

.piece-photos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(120px, 13vw, 180px);
  gap: 8px;
}

.piece-photos li,
.piece-photos figure {
  position: relative;
  margin: 0;
  min-height: 0;
}

.piece-photos figure,
.piece-photos a {
  display: block;
  height: 100%;
}

.piece-photos a {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--line);
}

/* La légende se pose sur la photo, en pastille : elle nomme la vue sans
   prendre de place sous la composition. */
.piece-photos figcaption {
  position: absolute;
  left: 8px;
  bottom: 8px;
  max-width: calc(100% - 16px);
  padding: 3px 8px;
  border-radius: 6px;
  background: rgb(255 255 255 / 0.9);
  color: var(--ink);
  font-size: var(--fs-xs);
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

/* Compositions selon le nombre de photos de la pièce, au-dessus de 720px.
   Elles sont dans une requête de média, et non posées pour toutes les
   largeurs puis défaites sur téléphone : plus spécifiques que les règles du
   téléphone, elles l'emportaient sur elles (la cuisine en bandeaux). La
   première photo est toujours la plus grande. */
.piece-photos[data-n="1"] {
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: auto;
}

.piece-photos[data-n="1"] a {
  aspect-ratio: 4 / 5;
}

@media (min-width: 721px) {
  .piece-photos[data-n="2"] li {
    grid-column: span 2;
    grid-row: span 2;
  }

  .piece-photos[data-n="3"] li:first-child,
  .piece-photos[data-n="4"] li:first-child {
    grid-column: span 2;
    grid-row: span 2;
  }

  .piece-photos[data-n="3"] li:not(:first-child),
  .piece-photos[data-n="4"] li:nth-child(2) {
    grid-column: span 2;
  }

  /* Les chambres : trois photos égales, une par chambre. */
  .piece-photos.egal {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .piece-photos.egal li {
    grid-row: span 2;
  }
}

/* ===== Carte =====
   La mise en page et la liste des lieux sont ici, et non dans carte.css :
   cette feuille-là n'arrive qu'avec le script de la carte, et la liste doit
   se lire sans lui. */
.carte-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.carte {
  height: 460px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  overflow: hidden;
}

/* Sur deux colonnes, la liste a la hauteur de la carte et défile seule : la
   carte reste à côté du lieu choisi, et un repère cliqué ramène sa ligne en
   vue sans faire bouger la page. */
.lieux {
  display: grid;
  border-top: 1px solid var(--line);
}

@media (min-width: 961px) {
  .lieux {
    max-height: 460px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

.lieu {
  border-bottom: 1px solid var(--line);
}

.lieu-bouton {
  appearance: none;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 2px 12px;
  width: 100%;
  padding: 11px 10px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-sm);
  text-align: left;
  cursor: pointer;
}

.lieu-bouton:hover,
.lieu[aria-current="true"] .lieu-bouton {
  background: var(--bg);
}

.lieu-num {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 600;
}

.lieu[data-type="transport"] .lieu-num {
  background: var(--ink);
}

.lieu-num svg[aria-hidden="true"] {
  width: 14px;
  height: 14px;
}

.lieu-texte {
  color: var(--ink-soft);
  font-size: var(--fs-xs);
  line-height: 1.5;
}

/* ===== Infos pratiques ===== */
.infos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.info {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
}

.info svg[aria-hidden="true"] {
  width: 22px;
  height: 22px;
  margin-bottom: 8px;
  color: var(--accent);
}

.info p {
  color: var(--ink-soft);
  font-size: var(--fs-sm);
}

/* ===== FAQ ===== */
.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 18px 40px 18px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

/* Le « + » devient « − » : une seule barre pivote. */
.faq-list summary::before,
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 12px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease;
}

.faq-list summary::after {
  transform: rotate(90deg);
}

.faq-list details[open]:not(.is-closing) summary::after {
  transform: rotate(0deg);
}

.faq-body p {
  padding-bottom: 18px;
  color: var(--ink-soft);
  max-width: 66ch;
}

/* ===== Bandeau final =====
   Une photo, voilée d'encre pour que le texte blanc reste lisible quelle que
   soit la photo. */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #fff;
}

.cta-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, 50% 50%);
  opacity: 0.5;
}

/* Un voile plus dense du côté du texte : sur la photo de nuit, les appliques
   allumées passaient sous le paragraphe et le contraste tombait sous 4,5:1. */
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Au-dessus de la photo, qui la suit dans le document et passerait sinon
     par-dessus le voile. */
  z-index: 1;
  background: linear-gradient(90deg, rgb(28 25 23 / 0.88), rgb(28 25 23 / 0.72) 50%, rgb(28 25 23 / 0.1) 85%);
}

.cta-content {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: start;
  gap: 10px;
  max-width: 520px;
  padding: clamp(36px, 6vw, 64px);
}

.cta-content h2 {
  font-size: var(--fs-h2);
}

.cta-content p {
  color: rgb(255 255 255 / 0.9);
}

.cta-content .btn {
  margin-top: 8px;
}

.cta-band :focus-visible {
  outline-color: #fff;
}

/* ===== À la journée =====
   Une photo et un texte côte à côte ; l'un sous l'autre sous 960px. */
.journee {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.journee img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: var(--focus, 50% 50%);
  border-radius: var(--radius-lg);
}

.journee-texte {
  display: grid;
  justify-items: start;
  gap: 14px;
}

.journee-texte h2 {
  font-size: var(--fs-h2);
}

.journee-texte > p:not(.eyebrow) {
  color: var(--ink-soft);
}

.journee-points {
  display: grid;
  gap: 10px;
  margin: 4px 0 6px;
}

.journee-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-sm);
}

.journee-points svg {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 960px) {
  .journee {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

/* ===== Formulaires ===== */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

/* minmax(0, 1fr) et min-width: 0, sans quoi la largeur intrinsèque d'un
   champ de date (plus de 150px dans Chromium) élargit la colonne et fait
   déborder le formulaire, puis la page entière sur un téléphone. */
.field {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
}

.field-wide {
  grid-column: 1 / -1;
}

.field > span {
  font-size: var(--fs-sm);
  font-weight: 600;
}

.field small {
  font-size: var(--fs-xs);
  font-weight: 400;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  appearance: none;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-md);
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231C1917' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--line-strong);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: transparent;
}

/* L'astérisque des champs obligatoires, à la couleur des liens, et la
   légende qui l'explique en tête du formulaire. */
.requis {
  color: var(--accent);
  font-weight: 600;
}

.form-legende {
  margin-bottom: 16px;
  font-size: var(--fs-xs);
  color: var(--ink-soft);
}

/* Un champ ou un bouton masqué par le script (formule, calendrier) : sans
   cette règle, le display: grid de .field ou de .sejour-bouton l'emporterait
   sur l'attribut hidden. */
.contact-form [hidden] {
  display: none;
}

/* ===== Formules =====
   Séjour, journée, demi-journée : trois boutons radio en cartes. Le vrai
   bouton radio reste dans la page, transparent par-dessus sa carte, pour le
   clavier et les lecteurs d'écran. */
.formules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

.formule {
  position: relative;
  display: grid;
  cursor: pointer;
}

.formule input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.formule span {
  display: grid;
  align-content: start;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.formule b {
  font-size: var(--fs-sm);
  font-weight: 600;
}

.formule small {
  font-size: var(--fs-xs);
  color: var(--ink-soft);
}

.formule:hover span {
  border-color: var(--line-strong);
}

.formule input:checked + span {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
  background: #fbf4f1;
}

.formule input:checked + span b {
  color: var(--accent);
}

.formule input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 560px) {
  .formules {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ===== Calendrier du séjour =====
   scripts/components/calendrier.js. Les deux boutons ont l'allure des
   champs du formulaire ; le calendrier s'ouvre dessous, dans le flux : rien
   à positionner, rien de rogné sur un petit écran. */
.sejour.est-ameliore .sejour-natif {
  display: none;
}

.sejour-choix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

/* Une seule date, à la journée : le bouton prend toute la largeur. */
.sejour-choix.un-jour {
  grid-template-columns: minmax(0, 1fr);
}

.sejour-bouton {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.sejour-libelle {
  font-size: var(--fs-sm);
  font-weight: 600;
}

.sejour-valeur {
  display: block;
  overflow: hidden;
  min-height: 44px;
  padding: 10px 40px 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2357534E' stroke-width='1.6' stroke-linecap='round'%3E%3Crect x='3.5' y='5' width='17' height='15' rx='2'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E") no-repeat right 12px center;
  font-size: var(--fs-md);
  line-height: 1.4;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@media (max-width: 480px) {
  .sejour-semaine {
    display: none;
  }
}

.sejour-bouton.est-vide .sejour-valeur {
  color: var(--ink-soft);
}

.sejour-bouton:hover .sejour-valeur {
  border-color: var(--line-strong);
}

.sejour-bouton:focus-visible {
  outline: none;
}

.sejour-bouton:focus-visible .sejour-valeur,
.sejour-bouton.est-actif .sejour-valeur {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: transparent;
}

.calendrier {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--shadow-lg);
  animation: calendrier-ouverture 0.18s ease-out;
}

@keyframes calendrier-ouverture {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

.cal-tete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cal-consigne {
  font-size: var(--fs-sm);
  font-weight: 600;
  text-align: center;
}

.cal-nav {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
}

.cal-nav svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cal-nav:hover:not(:disabled) {
  border-color: var(--line-strong);
}

.cal-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.cal-mois-liste {
  display: grid;
  grid-template-columns: repeat(var(--mois, 1), minmax(0, 1fr));
  gap: 28px;
  margin-top: 8px;
}

.cal-mois h3 {
  margin-bottom: 8px;
  font-size: var(--fs-sm);
  text-align: center;
}

.cal-mois table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.cal-mois th {
  padding-bottom: 4px;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--ink-soft);
}

.cal-mois abbr {
  text-decoration: none;
}

.cal-mois td {
  padding: 1px 0;
}

/* La période : un ruban teinté de brique d'un jour à l'autre, l'arrivée et
   le départ en pastilles pleines à ses extrémités. */
.cal-mois td.dans-plage {
  background: #f6ebe7;
}

.cal-mois td.est-debut.a-une-fin {
  background: linear-gradient(to right, transparent 50%, #f6ebe7 50%);
}

.cal-mois td.est-fin:not(.est-debut) {
  background: linear-gradient(to left, transparent 50%, #f6ebe7 50%);
}

.cal-jour {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 44px;
  height: 40px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

.cal-jour:hover:not([aria-disabled]) {
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.cal-jour:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.est-aujourdhui .cal-jour {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.est-debut .cal-jour,
.est-fin .cal-jour {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.cal-jour[aria-disabled="true"] {
  color: var(--line-strong);
  cursor: default;
}

.cal-pied {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.cal-resume {
  font-size: var(--fs-sm);
  color: var(--ink-soft);
}

.cal-actions {
  display: flex;
  gap: 8px;
}

.contact-form .calendrier .btn {
  margin-top: 0;
  padding: 8px 14px;
}

.form-error {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 500;
}

.form-note {
  margin-top: 12px;
  font-size: var(--fs-xs);
  color: var(--ink-soft);
}

/* Le délai de réponse, juste sous le bouton : c'est la promesse qui fait
   cliquer, elle se lit avant la note sur les données. */
.form-delai {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--accent);
}

/* Le pot de miel : hors écran, hors du parcours clavier, ignoré des lecteurs
   d'écran. Seul un robot qui remplit tous les champs le remplit. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ===== Pages secondaires ===== */
.page-hero {
  padding: clamp(40px, 6vw, 64px) 0 0;
}

.page-hero h1 {
  margin-top: 6px;
  font-size: var(--fs-h1);
  letter-spacing: -0.03em;
}

.page-body {
  padding-top: 32px;
}

.legal {
  max-width: none;
  gap: 10px;
}

.legal h2 {
  margin-top: 22px;
  font-size: var(--fs-md);
}

.legal p {
  color: var(--ink-soft);
}

/* Contact : le formulaire, et à côté ce qui se passe ensuite. */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  align-items: start;
}

.contact-form {
  padding: clamp(20px, 3.5vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--shadow);
}

.form-section + .form-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.form-section h2 {
  margin-bottom: 14px;
  font-size: var(--fs-md);
  letter-spacing: -0.01em;
}

.contact-form .btn {
  margin-top: 20px;
  padding: 12px 18px;
}

.contact-aside {
  display: grid;
  gap: 20px;
}

.contact-aside img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: var(--focus, 50% 50%);
  border-radius: var(--radius-lg);
}

.contact-aside h2 {
  font-size: var(--fs-md);
  letter-spacing: -0.01em;
}

.steps {
  display: grid;
  gap: 14px;
  margin-top: 12px;
  counter-reset: etape;
}

.steps li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 0 12px;
  counter-increment: etape;
  font-size: var(--fs-sm);
}

.steps li::before {
  content: counter(etape);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-alt);
  font-size: var(--fs-xs);
  font-weight: 600;
}

.steps b {
  font-weight: 600;
}

.steps p {
  color: var(--ink-soft);
}

.confirmation {
  display: grid;
  justify-items: start;
  gap: 12px;
  padding-bottom: clamp(64px, 9vw, 112px);
}

.confirmation .btn {
  margin-top: 10px;
}

/* ===== Pied de page ===== */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  color: var(--ink-soft);
  padding-top: 48px;
  font-size: var(--fs-sm);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 2fr auto;
  gap: 40px;
  padding-bottom: 36px;
}

.footer-brand p {
  margin-top: 10px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 6px 44px;
  align-content: start;
}

.site-footer a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
}

.site-footer a:not(.btn):hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Le filet est un fond et non une bordure : posé sur .wrap, une bordure
   courrait sous les marges intérieures et dépasserait la colonne de texte. */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 18px;
  padding-bottom: 26px;
  background: linear-gradient(var(--line), var(--line)) center top / calc(100% - 2 * var(--gutter)) 1px
    no-repeat;
  font-size: var(--fs-xs);
}

/* ===== Barre de réservation mobile ===== */
.booking-bar {
  display: none;
}

/* ===== Visionneuse =====
   La règle d'affichage vise [open] : poser « display: grid » sur .lightbox
   seule écraserait le « display: none » que le navigateur applique au
   <dialog> fermé, et la visionneuse resterait à l'écran. */
.lightbox {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--ink);
  color: #fff;
}

.lightbox[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.lightbox::backdrop {
  background: transparent;
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
}

.lightbox-count {
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-sm);
  color: rgb(255 255 255 / 0.75);
}

.lightbox-figure {
  margin: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  gap: 10px;
  padding: 0 72px 20px;
  min-height: 0;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  align-self: center;
}

.lightbox-figure figcaption {
  font-size: var(--fs-sm);
  color: rgb(255 255 255 / 0.85);
}

.lightbox button {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.1);
  color: #fff;
  transition: background-color 0.15s ease;
}

.lightbox button:hover {
  background: rgb(255 255 255 / 0.2);
}

.lightbox button svg[aria-hidden="true"] {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 14px;
}

.lightbox-next {
  right: 14px;
}

.lightbox :focus-visible {
  outline-color: #fff;
}

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .site-links {
    gap: 18px;
  }

  .infos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .amenities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 36px;
  }
}

/* Sous 960px : une colonne. Le sommaire de la visite devient une rangée de
   pastilles collée sous l'en-tête, et la barre de réservation apparaît en bas
   d'écran. */
@media (max-width: 960px) {
  .site-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .logement,
  .contact-layout,
  .carte-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .contact-aside {
    max-width: 560px;
  }

  .visite {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .visite-index {
    top: var(--header-h);
    z-index: 10;
    display: flex;
    gap: 6px;
    margin: 0 calc(-1 * var(--gutter));
    padding: 10px var(--gutter);
    overflow-x: auto;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    scrollbar-width: none;
  }

  .visite-index::-webkit-scrollbar {
    display: none;
  }

  .visite-index a {
    display: flex;
    flex: none;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    white-space: nowrap;
  }

  .visite-index a::before {
    display: none;
  }

  .visite-index a[aria-current="true"] {
    border-color: var(--ink);
  }

  /* La rangée de pastilles s'ajoute à l'en-tête au-dessus d'une pièce
     atteinte par son ancre. */
  .piece {
    scroll-margin-top: 56px;
  }

  .piece:has(.piece-photos[data-n="1"]) {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .carte {
    height: 340px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-book {
    grid-column: 1 / -1;
  }

  /* La réserve sous le pied, pour que la barre ne masque rien, n'existe que
     sur les pages qui portent la barre. Elle est prise dans le pied, et non
     dans le <body>, pour rester de sa couleur. */
  body:has(.booking-bar) .footer-legal {
    padding-bottom: calc(26px + 72px);
  }

  /* Un élément qui reçoit le focus en bas d'écran s'arrête au-dessus de la
     barre, au lieu de passer dessous (WCAG 2.4.11). */
  html:has(.booking-bar) {
    scroll-padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  .booking-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 20px calc(10px + env(safe-area-inset-bottom));
    background: var(--bg);
    border-top: 1px solid var(--line);
    box-shadow: 0 -2px 10px rgb(28 25 23 / 0.05);
  }

  .booking-bar div {
    display: grid;
    line-height: 1.35;
    font-size: var(--fs-sm);
  }

  .booking-bar b {
    font-weight: 650;
  }

  .booking-bar span {
    font-size: var(--fs-xs);
    color: var(--ink-soft);
  }
}

/* Sous 720px. */
@media (max-width: 720px) {
  :root {
    --header-h: 58px;
    --gutter: 16px;
  }

  .facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .beds,
  .amenities,
  .infos,
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .piece-photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 150px;
    gap: 6px;
  }

  /* Sur téléphone : la première photo en grand, les autres en dessous, sans
     case vide. Quatre photos : une grande puis trois petites. Trois : une
     grande puis deux. Deux : côte à côte. Les chambres défilent au doigt,
     comme la mosaïque, chacune à sa taille. */
  .piece-photos[data-n="4"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 110px;
  }

  .piece-photos[data-n="4"] li:first-child {
    grid-column: span 3;
    grid-row: span 2;
  }

  /* Trois petites vignettes de 110px : une légende y serait tronquée. La
     visionneuse la donne en entier. */
  .piece-photos[data-n="4"] li:not(:first-child) figcaption {
    display: none;
  }

  .piece-photos[data-n="3"] li:first-child {
    grid-column: span 2;
    grid-row: span 2;
  }

  .piece-photos[data-n="2"] li {
    grid-row: span 2;
  }

  .piece-photos.egal {
    display: flex;
    gap: 8px;
    margin: 0 calc(-1 * var(--gutter));
    padding: 0 var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
  }

  .piece-photos.egal::-webkit-scrollbar {
    display: none;
  }

  .piece-photos.egal li {
    flex: 0 0 72%;
    aspect-ratio: 4 / 5;
    scroll-snap-align: start;
  }

  .lightbox-figure {
    padding: 0 0 72px;
  }

  .lightbox-nav {
    top: auto;
    bottom: 16px;
    transform: none;
  }

  .lightbox-prev {
    left: calc(50% - 54px);
  }

  .lightbox-next {
    right: calc(50% - 54px);
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Sur un petit téléphone, le bouton de l'en-tête laisse la place au nom : la
   barre du bas offre le même bouton. */
@media (max-width: 440px) {
  .nav-cta {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }

  .calendrier {
    animation: none;
  }
}
