/* Gîte Les Oyats — annuaire des marées
   Bleu nuit : le fond. Écume : la lecture. Orange du couchant : l'action, et elle seule. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

:root {
  --nuit: #0d1a2b;
  --nuit-claire: #16283f;
  --ecume: #f4f7f5;
  --sable: #e8d5b5;
  --couchant: #ff6b2c;
  --couchant-clair: #ff8650;
  --brume: #b9c7d6;
  --ardoise: #44556a;
  --erreur: #b3261e;

  --police: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --marge: max(clamp(1.25rem, 3.9vw, 3.5rem), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --bord: max(var(--marge), calc((100vw - 84rem) / 2));
  --entete: 4.5rem;
  --maree: cubic-bezier(0.22, 1, 0.36, 1);
  --filet: rgb(244 247 245 / 0.22);
  --filet-sombre: rgb(13 26 43 / 0.2);
  --focus: var(--nuit);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--entete) + 1rem);
  scrollbar-color: var(--ardoise) var(--nuit);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: var(--police);
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--nuit);
  background: var(--ecume);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--couchant); color: var(--nuit); }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a, button { touch-action: manipulation; }
button { font: inherit; color: inherit; -webkit-user-select: none; user-select: none; }
p, li, dd { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }

[hidden] { display: none !important; }
.insecable { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.evitement {
  position: fixed; left: 1rem; top: -5rem; z-index: 100;
  background: var(--couchant); color: var(--nuit);
  padding: 0.75rem 1.1rem; font-weight: 700; text-decoration: none;
}
.evitement:focus { top: 1rem; }

/* ---------- Lettrage ---------- */

h1, h2, h3 { font-weight: 700; font-stretch: 82%; line-height: 0.98; letter-spacing: -0.015em; text-wrap: balance; }
h2 { font-size: clamp(2.5rem, 5.6vw, 5rem); }
h3 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); font-stretch: 86%; line-height: 1.05; }
.chiffre { font-weight: 800; font-stretch: 75%; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; line-height: 0.85; }
.unite { font-weight: 600; font-stretch: 80%; letter-spacing: 0; }
.colonne { font-size: 1rem; font-weight: 700; font-stretch: 90%; letter-spacing: 0.06em; text-transform: uppercase; }
.chapo { font-size: clamp(1.15rem, 1.5vw, 1.375rem); line-height: 1.5; max-width: 32em; }
.prose { max-width: 62ch; }
.prose > * + * { margin-top: 1em; }

/* ---------- Zones ---------- */

.zone { padding: clamp(4rem, 9vw, 8.5rem) var(--bord); }
.zone--ecume { background: var(--ecume); }
.zone--sable { background: var(--sable); }
.zone--nuit { background: var(--nuit); color: var(--ecume); --focus: var(--ecume); }
.zone--nuit .chapo, .zone--nuit .prose { color: var(--brume); }
.zone--nuit a:not(.reserver):not(.bouton) { text-decoration-color: var(--couchant); }
.zone--ecume a:not(.reserver):not(.bouton), .zone--sable a:not(.reserver):not(.bouton) { text-decoration-color: var(--nuit); }
.zone__tete { margin-bottom: clamp(2rem, 4.5vw, 4rem); }
.zone__tete h2 { max-width: 13em; }
.zone__tete .chapo { margin-top: 1.25rem; }
@media (min-width: 58rem) {
  .zone__tete--duo { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: end; }
  .zone__tete--duo .chapo { margin-top: 0; padding-bottom: 0.35rem; }
  .deborde { margin-right: calc(-1 * var(--bord)); }
}
.deborde img { width: 100%; }
.suite { margin-top: clamp(2.5rem, 5vw, 4.5rem); }
.suite-courte { margin-top: 1.4rem; }

.duo { display: grid; gap: clamp(2rem, 5vw, 5rem); }
@media (min-width: 58rem) {
  .duo { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: start; }
  .duo--texte-large { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}

/* ---------- Actions : l'orange du couchant ---------- */

.reserver {
  display: inline-flex; align-items: center; gap: 0.6em;
  min-height: 3.75rem; padding: 0.55em 1.15em;
  background: var(--couchant); color: var(--nuit);
  font-weight: 800; font-stretch: 80%; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1;
  text-decoration: none; border: 0; cursor: pointer;
  transition: background-color 180ms ease, transform 160ms var(--maree);
  -webkit-user-select: none; user-select: none;
}
.reserver svg { width: 0.8em; height: 0.8em; flex: none; transition: transform 220ms var(--maree); }
.reserver:active { transform: scale(0.97); }

.bouton {
  display: inline-flex; align-items: center; gap: 0.55em;
  min-height: 3.75rem; padding: 0.55em 1.15em;
  border: 2px solid currentColor;
  font-weight: 700; font-stretch: 84%; font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1;
  font-variant-numeric: tabular-nums; text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, transform 160ms var(--maree);
  -webkit-user-select: none; user-select: none;
}
.bouton svg { width: 0.85em; height: 0.85em; flex: none; }
.bouton:active { transform: scale(0.97); }
.actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.lien-fleche { display: inline-flex; align-items: center; gap: 0.5em; font-weight: 700; }
.lien-fleche svg { width: 1.05em; height: 1.05em; transition: transform 220ms var(--maree); }
.lien-bouton { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }

@media (hover: hover) and (pointer: fine) {
  .reserver:hover { background: var(--couchant-clair); }
  .reserver:hover svg, .lien-fleche:hover svg { transform: translateX(4px); }
  .zone--nuit .bouton:hover, .hero .bouton:hover, .tete .bouton:hover { background: var(--ecume); color: var(--nuit); }
  .zone--ecume .bouton:hover, .zone--sable .bouton:hover { background: var(--nuit); color: var(--ecume); }
  a:not(.reserver):not(.bouton):not(.marque):hover { text-decoration-thickness: 3px; }
}

/* ---------- En-tête ---------- */

.entete {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 1.5rem;
  height: var(--entete); padding: 0 var(--bord);
  color: var(--ecume); --focus: var(--ecume);
  transition: background-color 240ms ease;
}
.entete--pleine, .page-interieure .entete { background: var(--nuit); }
.marque { margin-right: auto; font-weight: 700; font-stretch: 88%; font-size: 1.75rem; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.nav ul { display: flex; align-items: center; gap: clamp(1.25rem, 2.6vw, 2.4rem); }
.nav a {
  display: inline-block; padding: 0.8rem 0; font-weight: 550; font-size: 1.0625rem; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 calc(100% - 0.5rem) / 0 2px;
  transition: background-size 240ms var(--maree);
}
.nav a[aria-current="page"] { background-size: 100% 2px; }
.nav .nav__tel {
  padding: 0.55rem 1.1rem; border: 2px solid currentColor; border-radius: 999px;
  font-weight: 650; font-variant-numeric: tabular-nums; background: none;
  transition: background-color 180ms ease, color 180ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { background-size: 100% 2px; }
  .nav .nav__tel:hover { background: var(--ecume); color: var(--nuit); }
}

.bascule {
  display: none; align-items: center; gap: 0.55rem;
  min-height: 2.9rem; padding: 0 1rem;
  border: 2px solid currentColor; border-radius: 999px; background: none; cursor: pointer;
  font-weight: 650; font-size: 1.0625rem;
  transition: transform 140ms var(--maree);
}
.bascule:active { transform: scale(0.97); }
.bascule svg { width: 1.2rem; height: 1.2rem; }
.bascule .i-fermer, .bascule[aria-expanded="true"] .i-menu { display: none; }
.bascule[aria-expanded="true"] .i-fermer { display: block; }

@media (max-width: 47.99rem) {
  :root { --entete: 4rem; }
  .marque { font-size: 1.5rem; }
  .bascule { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    display: none; padding: 0.25rem var(--marge) 1.25rem;
    height: calc(100dvh - var(--entete)); overflow-y: auto; overscroll-behavior: contain;
    background: var(--nuit); border-top: 1px solid var(--filet);
  }
  html:has(.bascule[aria-expanded="true"]) { overflow: hidden; }
  .nav[data-ouvert] { display: block; transition: opacity 180ms ease-out, transform 240ms var(--maree); }
  @starting-style { .nav[data-ouvert] { opacity: 0; transform: translateY(-0.6rem); } }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav li + li { border-top: 1px solid var(--filet); }
  .nav a { display: block; padding: 1rem 0; font-size: 1.75rem; font-weight: 700; font-stretch: 84%; background: none; }
  .nav a[aria-current="page"] { color: var(--couchant); }
  .nav .nav__tel { border: 0; border-radius: 0; padding: 1rem 0; }
  .entete:has(.bascule[aria-expanded="true"]) { background: var(--nuit); }
}

/* ---------- Premier écran : la mer, 50 m, le tableau des saisons ---------- */

.hero {
  position: relative; isolation: isolate; overflow: clip;
  display: grid; grid-template-rows: 1fr auto;
  min-height: 100svh;
  background: var(--nuit); color: var(--ecume); --focus: var(--ecume);
}
.hero__video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 47.99rem) { .hero__video { object-position: 31% 50%; } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(13 26 43 / 0.6) 0, rgb(13 26 43 / 0) 24%, rgb(13 26 43 / 0.08) 46%, rgb(13 26 43 / 0.86) 100%);
}
.hero__titre { align-self: end; padding: calc(var(--entete) + 1rem) var(--bord) clamp(1.25rem, 3.4vh, 2.75rem); }
.hero h1 { font-size: 1rem; line-height: 1; letter-spacing: 0; }
.hero h1 .chiffre { display: block; font-size: clamp(9.5rem, 46vw, 14rem); line-height: 0.8; }
.hero h1 .chiffre .unite { font-size: 0.46em; margin-left: 0.04em; }
.hero h1 .ligne {
  display: block; margin-top: 0.3em;
  font-size: clamp(1.75rem, 7.4vw, 2.5rem); font-weight: 600; font-stretch: 88%; line-height: 1.02; letter-spacing: -0.01em;
  max-width: 12em;
  padding-right: 3.5rem; /* place du bouton pause, à droite */
}

.hero__titre { position: relative; }
.hero__pause {
  position: absolute; right: var(--bord); bottom: clamp(1.25rem, 3.4vh, 2.75rem);
  display: grid; place-content: center; width: 2.75rem; height: 2.75rem;
  border: 2px solid var(--ecume); border-radius: 50%; background: rgb(13 26 43 / 0.35); cursor: pointer;
  transition: background-color 180ms ease, transform 140ms var(--maree);
}
.hero__pause:active { transform: scale(0.95); }
.hero__pause svg { width: 1.05rem; height: 1.05rem; }
.hero__pause .i-lecture, .hero__pause[aria-pressed="true"] .i-pause { display: none; }
.hero__pause[aria-pressed="true"] .i-lecture { display: block; }

.saisons {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--nuit);
}
.saison { padding: 0.9rem 0.75rem 1rem; border-left: 1px solid var(--filet); }
.saison:first-child { padding-left: var(--marge); border-left: 0; }
.saison dt .colonne { display: block; font-size: 0.75rem; letter-spacing: 0.03em; white-space: nowrap; }
.saison dt .mois { display: none; }
.saison dd { margin-top: 0.35rem; }
.saison .chiffre { font-size: 2.1rem; font-weight: 700; font-stretch: 80%; line-height: 1; }
.saison .par { display: block; font-size: 0.8125rem; color: var(--brume); }
.saisons .reserver { grid-column: 1 / -1; justify-content: space-between; min-height: 4rem; padding-inline: var(--marge); }
.saisons .reserver small { display: none; }

@media (min-width: 48rem) {
  .hero h1 .chiffre { font-size: clamp(11rem, min(23vw, 37vh), 21rem); }
  .hero h1 .ligne { font-size: clamp(2rem, min(4.45vw, 7.2vh), 4rem); max-width: none; }
  .saison { padding: 1.25rem clamp(1rem, 2.4vw, 2.1rem) 1.35rem; display: flex; flex-direction: column; }
  .saison dd { margin-top: auto; padding-top: 0.5rem; }
  .saison:first-child { padding-left: var(--bord); }
  .saison dt .colonne { font-size: 1rem; letter-spacing: 0.06em; }
  .saison dt .mois { display: block; font-size: 1rem; color: var(--brume); margin-top: 0.15rem; }
  .saison dd { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
  .saison .chiffre { font-size: 2.75rem; }
  .saison .par { font-size: 1.125rem; font-weight: 500; font-stretch: 86%; color: var(--ecume); }
  .saisons .reserver { min-height: 4.75rem; padding-inline: var(--bord); font-size: 2rem; justify-content: flex-start; gap: 1.25rem; }
  .saisons .reserver small { display: block; font-size: 0.6em; font-weight: 600; font-stretch: 100%; margin-right: auto; }
}

@media (min-width: 64rem) {
  .saisons {
    --contenu: calc(100vw - 2 * var(--bord));
    grid-template-columns: repeat(3, calc(var(--contenu) / 4.25)) minmax(0, 1fr);
    min-height: 11rem; padding-left: var(--bord);
  }
  .saison { padding: 1.6rem clamp(1rem, 2.4vw, 2.1rem); }
  .saison:first-child { padding-left: 0; }
  .saison dt .colonne { font-size: clamp(1rem, 1.5vw, 1.375rem); }
  .saison dt .mois { font-size: 1.0625rem; }
  .saison .chiffre { font-size: clamp(2.75rem, 4.3vw, 3.9rem); }
  .saison .par { font-size: 1.25rem; }
  .saisons .reserver {
    grid-column: auto; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0.5rem;
    padding: 1.5rem var(--bord) 1.5rem clamp(1.25rem, 2.8vw, 2.5rem);
    font-size: clamp(1.9rem, 3vw, 2.75rem);
  }
  .saisons .reserver small { margin-right: 0; }
  .saisons .reserver svg { display: none; }
}

/* ---------- En-tête de page intérieure ---------- */

.tete {
  position: relative; overflow: clip;
  padding: calc(var(--entete) + clamp(2.5rem, 7vw, 6rem)) var(--bord) clamp(2.5rem, 6vw, 5rem);
  background: var(--nuit); color: var(--ecume); --focus: var(--ecume);
}
.tete h1 { font-size: clamp(3.75rem, 11.5vw, 10rem); font-weight: 800; font-stretch: 78%; line-height: 0.9; letter-spacing: 0; }
.tete .chapo { margin-top: 1.5rem; color: var(--brume); }
.tete .actions { margin-top: 2rem; }

/* ---------- La pellicule : photos au bord de l'écran ---------- */

.pellicule {
  display: flex; gap: clamp(0.6rem, 1.2vw, 1rem);
  margin-inline: calc(-1 * var(--bord)); padding-inline: var(--bord);
  overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--bord);
  scrollbar-width: thin; overscroll-behavior-x: contain;
  padding-bottom: 0.9rem;
}
.pellicule figure { flex: 0 0 clamp(15rem, 27vw, 24rem); scroll-snap-align: start; }
.pellicule--large figure { flex-basis: clamp(18rem, 40vw, 36rem); }
.pellicule img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--nuit-claire); }
.pellicule--large img { aspect-ratio: 4 / 3; }
.pellicule figcaption, .galerie figcaption { margin-top: 0.55rem; font-size: 1rem; line-height: 1.35; }
.zone--nuit figcaption { color: var(--brume); }
.zone--ecume figcaption, .zone--sable figcaption { color: var(--ardoise); }

/* ---------- Tables de l'annuaire ---------- */

.table { width: 100%; border-collapse: collapse; border-bottom: 1px solid var(--filet); }
.table th, .table td { padding: clamp(0.9rem, 1.8vw, 1.5rem) 0; border-top: 1px solid var(--filet); text-align: left; vertical-align: baseline; }
.table thead th { border-top: 0; padding-top: 0; color: var(--brume); }
.table tbody th { font-weight: 700; font-stretch: 84%; font-size: clamp(1.35rem, 2.6vw, 2.25rem); line-height: 1.05; }
.table .periode { color: var(--brume); padding-inline: 1rem; }
.table .valeur { text-align: right; white-space: nowrap; }
.table .valeur .chiffre { font-size: clamp(2.6rem, 6.4vw, 5.5rem); }
.table .valeur .unite { font-size: clamp(1.1rem, 2vw, 1.75rem); margin-left: 0.2em; }
.zone--ecume .table, .zone--ecume .table th, .zone--ecume .table td,
.zone--sable .table, .zone--sable .table th, .zone--sable .table td { border-color: var(--filet-sombre); }
.zone--ecume .table thead th, .zone--ecume .table .periode,
.zone--sable .table thead th, .zone--sable .table .periode { color: var(--ardoise); }
@media (max-width: 39.99rem) {
  .table--saisons .periode { display: block; padding: 0.2rem 0 0; border: 0; }
  .table--saisons thead .periode { display: none; }
  .table--saisons tbody th { display: block; border-bottom: 0; padding-bottom: 0; }
  .table--saisons tbody tr { display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; border-top: 1px solid var(--filet); padding: 0.9rem 0; }
  .table--saisons tbody th, .table--saisons tbody td { border-top: 0; padding: 0; }
  .table--saisons tbody .valeur { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .table--saisons thead { display: none; }
}

.reperes { border-bottom: 1px solid var(--filet-sombre); }
.zone--nuit .reperes { border-color: var(--filet); }
.reperes li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: baseline;
  padding: clamp(0.7rem, 1.5vw, 1.15rem) 0; border-top: 1px solid var(--filet-sombre);
}
.zone--nuit .reperes li { border-color: var(--filet); }
.reperes .lieu { font-weight: 650; font-stretch: 86%; font-size: clamp(1.25rem, 2.2vw, 1.9rem); line-height: 1.3; }
.reperes .lieu small { display: block; font-size: 1rem; font-weight: 400; font-stretch: 100%; line-height: 1.35; color: var(--ardoise); margin-top: 0.2rem; }
.zone--nuit .reperes .lieu small { color: var(--brume); }
.reperes .valeur { white-space: nowrap; text-align: right; }
.reperes .chiffre { font-size: clamp(2.4rem, 5.6vw, 4.75rem); }
.reperes .unite { font-size: clamp(1.05rem, 1.9vw, 1.6rem); margin-left: 0.18em; }

/* ---------- Avis : la note en très grand sur la mer, puis les voyageurs face aux photos ---------- */

.avis-une {
  position: relative; isolation: isolate; overflow: clip;
  display: grid; align-items: end;
  min-height: min(88svh, 52rem);
  padding: calc(var(--entete) + 2rem) var(--bord) clamp(2rem, 5vh, 3.5rem);
  color: var(--ecume); --focus: var(--ecume);
}
.avis-une__photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; background: var(--nuit-claire); }
.avis-une::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(13 26 43 / 0.6) 0%, rgb(13 26 43 / 0) 28%, rgb(13 26 43 / 0.35) 45%, rgb(13 26 43 / 0.92) 100%);
}
.avis-une h1 { font-size: 1rem; line-height: 1; letter-spacing: 0; }
.avis-une h1 .chiffre {
  display: block; font-size: clamp(9.5rem, 46vw, 14rem); font-weight: 800; font-stretch: 75%;
  line-height: 0.8; letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.avis-une h1 .unite { font-size: 0.34em; font-weight: 600; font-stretch: 80%; margin-left: 0.06em; letter-spacing: 0; }
.avis-une .etoiles { gap: 0.3rem; margin-top: clamp(1rem, 2.4vh, 1.6rem); color: var(--ecume); }
.avis-une .etoiles svg { width: clamp(1.75rem, 3.4vw, 2.6rem); height: clamp(1.75rem, 3.4vw, 2.6rem); }
.avis-une__ligne { margin-top: 0.9rem; font-size: clamp(1.35rem, 2.6vw, 2.25rem); font-weight: 650; font-stretch: 86%; line-height: 1.15; max-width: 18em; text-wrap: balance; }
.avis-une__autres {
  display: flex; flex-wrap: wrap; gap: 0.4rem 2.25rem;
  margin-top: clamp(1.25rem, 3vh, 2rem); padding-top: 1rem; border-top: 1px solid var(--filet);
  color: var(--brume); font-size: 1rem; font-weight: 550;
}
.avis-une__autres .valeur { margin-left: 0.45rem; color: var(--ecume); white-space: nowrap; }
.avis-une__autres .chiffre { font-size: 1.6rem; font-weight: 800; font-stretch: 78%; font-variant-numeric: tabular-nums; }
.avis-une__autres .unite { font-size: 1rem; margin-left: 0.1em; }
@media (min-width: 64rem) {
  .avis-une h1 .chiffre { font-size: clamp(11rem, min(23vw, 37vh), 21rem); }
}

.etoiles { display: flex; gap: 0.15rem; color: var(--nuit); }
.etoiles svg { width: 1.15rem; height: 1.15rem; }

.temoins { display: grid; gap: clamp(4.5rem, 10vw, 9rem); }
.temoin { display: grid; gap: clamp(1.5rem, 3.5vw, 3rem); align-items: center; }
.temoin__photo { margin-inline: calc(-1 * var(--bord)); }
.temoin__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--nuit-claire); }
.temoin__accroche {
  font-size: clamp(2.2rem, 4.6vw, 4.25rem); font-weight: 800; font-stretch: 80%;
  line-height: 0.98; letter-spacing: -0.015em; text-wrap: balance; max-width: 13em;
}
.temoin__accroche::first-letter { text-transform: uppercase; }
.temoin__accroche::before { content: "«\00a0"; }
.temoin__accroche::after { content: "\00a0»"; }
.temoin__avis { margin: clamp(1.25rem, 2.4vw, 2rem) 0 0; max-width: 36em; font-size: 1.125rem; line-height: 1.55; color: var(--ardoise); }
.temoin__avis p + p { margin-top: 0.45em; }
.temoin__qui {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1.5rem;
  max-width: 36em; margin-top: 1.25rem; padding-top: 0.9rem; border-top: 1px solid var(--filet-sombre);
}
.temoin__qui p { font-size: 1rem; color: var(--ardoise); }
.temoin__nom { font-weight: 700; font-stretch: 86%; font-size: 1.25rem; color: var(--nuit); }
@media (min-width: 58rem) {
  .temoin { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 5vw, 5rem); }
  .temoin__photo { margin-inline: calc(-1 * var(--bord)) 0; }
  .temoin__photo img { aspect-ratio: 4 / 5; }
  .temoin:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .temoin:nth-child(even) .temoin__photo { order: 2; margin-inline: 0 calc(-1 * var(--bord)); }
}

.avis-source { margin-top: clamp(4rem, 8vw, 7rem); padding-top: 1.25rem; border-top: 1px solid var(--filet-sombre); max-width: 62ch; }
.avis-source p:first-child { font-size: 1rem; line-height: 1.45; color: var(--ardoise); }

.cles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1rem, 3vw, 3rem); margin-bottom: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 48rem) { .cles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cles li { padding: 1rem 0 1.15rem; border-top: 1px solid var(--filet-sombre); }
.cles .chiffre { display: block; font-size: clamp(2.75rem, 5.4vw, 4.75rem); }
.cles .unite { font-size: 0.42em; margin-left: 0.12em; }
.cles .quoi { display: block; margin-top: 0.45rem; font-weight: 600; font-stretch: 88%; line-height: 1.25; }

.calendrier { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.calendrier li { padding: 0.65rem 0 0.55rem; text-align: center; font-size: 0.8125rem; font-weight: 650; font-stretch: 84%; letter-spacing: 0.03em; text-transform: uppercase; border: 1px solid var(--filet); }
.calendrier .moyenne { background: var(--ardoise); border-color: var(--ardoise); }
.calendrier .haute { background: var(--ecume); border-color: var(--ecume); color: var(--nuit); }
.calendrier .reste { display: none; }
@media (min-width: 44rem) { .calendrier .reste { display: inline; } }
.pastille { display: inline-block; width: 0.62em; height: 0.62em; margin-right: 0.5em; border: 1px solid var(--brume); }
.pastille--moyenne { background: var(--ardoise); border-color: var(--ardoise); }
.pastille--haute { background: var(--ecume); border-color: var(--ecume); }

.conditions { display: grid; gap: 0; border-bottom: 1px solid var(--filet); }
.conditions li { padding: 0.9rem 0 0.85rem; border-top: 1px solid var(--filet); font-weight: 600; font-stretch: 88%; font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.15; }
.zone--ecume .conditions, .zone--ecume .conditions li, .zone--sable .conditions, .zone--sable .conditions li { border-color: var(--filet-sombre); }

/* ---------- Distinctions ---------- */

.distinctions { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
@media (min-width: 34rem) { .distinctions { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.distinctions img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #003b95; }
.distinctions figcaption { margin-top: 0.55rem; font-size: 1rem; line-height: 1.35; color: var(--ardoise); }
.distinctions .plaque img { aspect-ratio: 1; object-fit: cover; object-position: 50% 42%; }

/* ---------- Galerie du gîte ---------- */

.galerie { display: grid; gap: clamp(0.6rem, 1.2vw, 1rem); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.galerie figure { min-width: 0; }
.galerie a { display: block; overflow: hidden; background: var(--nuit-claire); }
.galerie img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 500ms var(--maree); }
.galerie .haute img { aspect-ratio: 3 / 4; }
@media (min-width: 48rem) {
  .galerie { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .galerie figure { grid-column: span 4; }
  .galerie .large { grid-column: span 8; }
  .galerie .large img { aspect-ratio: 16 / 10; }
  .galerie .haute { grid-column: span 4; grid-row: span 2; }
  .galerie .haute img { aspect-ratio: auto; height: 100%; min-height: 100%; }
  .galerie .haute a { height: calc(100% - 2.2rem); }
}
@media (hover: hover) and (pointer: fine) { .galerie a:hover img { transform: scale(1.035); } }

.visionneuse {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgb(8 16 27 / 0.96); color: var(--ecume); --focus: var(--ecume);
}
.visionneuse::backdrop { background: rgb(8 16 27 / 0.6); }
.visionneuse[open] { display: grid; grid-template-rows: auto 1fr auto; }
.visionneuse__barre { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem var(--marge); }
.visionneuse__compte { font-variant-numeric: tabular-nums; font-weight: 600; }
.visionneuse__image { position: relative; min-height: 0; }
.visionneuse__image img { position: absolute; inset: 0 var(--marge); width: calc(100% - 2 * var(--marge)); height: 100%; object-fit: contain; }
.visionneuse__pied { display: flex; align-items: center; gap: 1rem; padding: 0.9rem var(--marge) calc(0.9rem + env(safe-area-inset-bottom, 0px)); }
.visionneuse__legende { flex: 1; min-width: 0; color: var(--brume); }
.rond {
  flex: none; display: grid; place-content: center; width: 3rem; height: 3rem;
  border: 2px solid currentColor; border-radius: 50%; background: none; cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 140ms var(--maree);
}
.rond:active { transform: scale(0.95); }
.rond svg { width: 1.2rem; height: 1.2rem; }
@media (hover: hover) and (pointer: fine) { .rond:hover { background: var(--ecume); color: var(--nuit); } }

/* ---------- Appel final ---------- */

.appel h2 { font-size: clamp(3rem, 8.4vw, 7.5rem); font-weight: 800; font-stretch: 78%; line-height: 0.92; letter-spacing: 0; }
.appel .chapo { margin-top: 1.25rem; }
.appel .actions { margin-top: 2rem; }
.appel__ecrire { margin-top: 1.4rem; font-weight: 600; }

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

.coordonnees { display: grid; gap: 1.6rem; }
.coordonnees dt { color: var(--ardoise); }
.coordonnees dd { margin-top: 0.3rem; font-size: 1.3rem; font-weight: 600; line-height: 1.35; }
.coordonnees dd.grand { font-size: clamp(2.75rem, 6vw, 4.5rem); font-weight: 800; font-stretch: 75%; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.coordonnees dd.grand a { text-decoration: none; }

.carte { margin-top: 1rem; }
.carte iframe { width: 100%; aspect-ratio: 4 / 3; border: 0; background: var(--sable); }

.formulaire { display: grid; gap: 1.2rem; }
.champs-2 { display: grid; gap: 1.2rem; }
@media (min-width: 34rem) { .champs-2 { grid-template-columns: 1fr 1fr; } }
.champ { display: grid; gap: 0.4rem; align-content: start; }
.champ label { font-weight: 650; }
.champ .aide { font-weight: 400; color: var(--ardoise); }
.champ input, .champ textarea, .champ select {
  width: 100%; min-height: 3.25rem; padding: 0.75rem 0.9rem;
  font: inherit; color: var(--nuit); caret-color: var(--couchant);
  background: #fff; border: 2px solid var(--nuit); border-radius: 0;
}
.champ textarea { min-height: 8.5rem; resize: vertical; }
.champ select {
  -webkit-appearance: none; appearance: none; padding-right: 3rem; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d1a2b' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 9l6.5 6.5L18.5 9'/%3E%3C/svg%3E") right 0.9rem center / 1.2rem no-repeat;
}
.champ input[type="date"]::-webkit-calendar-picker-indicator {
  width: 1.3rem; height: 1.3rem; cursor: pointer; opacity: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d1a2b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.champ input:focus-visible, .champ textarea:focus-visible, .champ select:focus-visible { outline: 3px solid var(--couchant); outline-offset: 2px; }
.champ [aria-invalid="true"] { border-color: var(--erreur); box-shadow: inset 0 0 0 1px var(--erreur); }
.champ .erreur { color: var(--erreur); font-weight: 650; font-size: 1rem; }
.champ .erreur:empty { display: none; }
.consentement { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; font-size: 1rem; line-height: 1.45; }
.consentement input { width: 1.4rem; height: 1.4rem; margin: 0.1rem 0 0; accent-color: var(--nuit); }
.consentement .erreur { grid-column: 2; color: var(--erreur); font-weight: 650; }
.consentement .erreur:empty { display: none; }
.piege { position: absolute; left: -200vw; }
.formulaire__etat { font-weight: 700; padding: 1rem 1.2rem; border: 2px solid var(--nuit); }
.formulaire__etat:empty { display: none; }
.formulaire__etat[data-type="erreur"] { border-color: var(--erreur); color: var(--erreur); }
.formulaire button[disabled] { opacity: 0.6; cursor: progress; }
.formulaire .reserver { justify-self: start; }

/* ---------- Pied de page ---------- */

.pied { background: var(--nuit); color: var(--brume); --focus: var(--ecume); padding: clamp(3rem, 6vw, 5rem) var(--bord) 2rem; font-size: 1rem; border-top: 1px solid var(--filet); }
.pied__grille { display: grid; gap: 2.5rem; }
@media (min-width: 48rem) { .pied__grille { grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); } }
.pied__nom { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; font-stretch: 78%; line-height: 0.92; letter-spacing: 0; color: var(--ecume); }
.pied__nom + p { margin-top: 0.9rem; max-width: 22em; }
.pied h2 { font-size: 1rem; font-stretch: 90%; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ecume); margin-bottom: 0.8rem; line-height: 1.2; }
.pied li + li { margin-top: 0.4rem; }
.pied a { color: var(--ecume); text-decoration-color: var(--couchant); }
.pied address { font-style: normal; line-height: 1.6; }
.pied__bas { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--filet); }

/* ---------- Barre d'action mobile ---------- */

.barre { display: none; }
@media (max-width: 47.99rem) {
  .pied { padding-bottom: calc(6rem + env(safe-area-inset-bottom, 0px)); }
  .barre {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: 1fr 1.25fr;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--nuit); border-top: 1px solid var(--filet);
    transition: transform 260ms var(--maree);
  }
  .barre a { display: flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 4rem; font-weight: 800; font-stretch: 80%; font-size: 1.45rem; text-decoration: none; -webkit-user-select: none; user-select: none; }
  .barre a svg { width: 1.15rem; height: 1.15rem; }
  .barre__appel { color: var(--ecume); }
  .barre__reserver { background: var(--couchant); color: var(--nuit); }
  .barre a:active { filter: brightness(0.92); }
  .hero-visible .barre { transform: translateY(100%); }
  body:has(.formulaire:focus-within) .barre { display: none; }
}

/* ---------- Page introuvable ---------- */

.introuvable .chiffre { display: block; font-size: clamp(9rem, 30vw, 20rem); line-height: 0.8; }
.introuvable h1 { font-size: clamp(2.25rem, 6vw, 4.5rem); margin-top: 1rem; font-weight: 700; font-stretch: 82%; line-height: 1; letter-spacing: -0.01em; }

/* ---------- Mouvement : la marée des chiffres ---------- */

@media (prefers-reduced-motion: no-preference) {
  @keyframes monter { from { clip-path: inset(100% 0 0 0); transform: translateY(14%); } }
  @keyframes poser { from { transform: translateY(100%); } }
  .hero h1 .chiffre { clip-path: inset(-10% -10% -6% -10%); animation: monter 1100ms var(--maree) 120ms both; }
  .hero h1 .ligne { animation: monter 900ms var(--maree) 380ms both; clip-path: inset(-20% -5% -20% -5%); }
  .avis-une h1 .chiffre { clip-path: inset(-10% -10% -6% -10%); animation: monter 1100ms var(--maree) 120ms both; }
  .avis-une .etoiles, .avis-une__ligne { animation: monter 900ms var(--maree) 380ms both; clip-path: inset(-20% -5% -20% -5%); }
  .saisons > * { animation: poser 700ms var(--maree) both; }
  .saisons > :nth-child(1) { animation-delay: 500ms; }
  .saisons > :nth-child(2) { animation-delay: 560ms; }
  .saisons > :nth-child(3) { animation-delay: 620ms; }
  .saisons > :nth-child(4) { animation-delay: 680ms; }

  .js .a-glisser .valeur { transform: translateX(2.5rem); }
  .js .a-glisser.est-pose .valeur {
    transform: none;
    transition: transform 620ms var(--maree);
    transition-delay: calc(var(--rang, 0) * 55ms);
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reserver, .bouton, .bascule, .rond, .hero__pause { transition-property: background-color, color; }
  .reserver:active, .bouton:active, .bascule:active, .rond:active, .hero__pause:active,
  .reserver:hover svg, .lien-fleche:hover svg, .galerie a:hover img { transform: none; }
  .barre { transition: none; }
  @starting-style { .nav[data-ouvert] { transform: none; } }
}

@media print {
  .entete, .barre, .hero__video, .hero__pause { display: none; }
  .hero, .tete, .zone, .pied { background: none; color: #000; min-height: 0; padding: 1rem 0; }
}
