/* ==========================================================================
   Cap Ferret — feuille de style
   Design : typographie large, blancs généreux, filets fins, alternance
   sections claires / sections noires, révélations au scroll.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  --white: #ffffff;
  --grey-bg: #f5f5f7;
  --grey-bg-2: #fafafc;
  --black: #000000;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --line: rgba(0, 0, 0, 0.11);
  --line-strong: rgba(0, 0, 0, 0.18);
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --blue-light: #2997ff;
  --sand: #cbb79a;

  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --nav-h: 52px;
  --gutter: clamp(22px, 5vw, 40px);
  --maxw: 1060px;
  --maxw-wide: 1400px;

  --ease: cubic-bezier(0.28, 0.11, 0.32, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --font: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI",
          Roboto, "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.01em;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
  z-index: 1000; background: var(--white); color: var(--ink);
  padding: 12px 20px; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.skip-link:focus { top: 0; }

/* --------------------------------------------------------------------------
   3. Typographie
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.025em; }

.t-display {
  font-size: clamp(3.1rem, 10vw, 6.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
}

.t-headline {
  font-size: clamp(2.1rem, 5.4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.028em;
}

.t-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.14;
  letter-spacing: -0.022em;
}

.t-sub {
  font-size: clamp(1.1rem, 2.1vw, 1.45rem);
  line-height: 1.38;
  letter-spacing: -0.014em;
  font-weight: 400;
  color: var(--ink-2);
}

.t-body { font-size: 17px; line-height: 1.53; color: var(--ink-2); }
.t-small { font-size: 14px; line-height: 1.43; color: var(--ink-2); }
.t-caption { font-size: 12px; line-height: 1.35; color: var(--ink-3); }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 18px;
}

.balance { text-wrap: balance; }

/* --------------------------------------------------------------------------
   4. Mise en page
   -------------------------------------------------------------------------- */
.section {
  padding: clamp(78px, 11vw, 140px) var(--gutter);
  position: relative;
}
.section--tight { padding-block: clamp(56px, 7vw, 90px); }
.section--grey { background: var(--grey-bg); }
.wrap { max-width: var(--maxw); margin-inline: auto; }
.wrap--wide { max-width: var(--maxw-wide); }
.center { text-align: center; }

/* Sections sombres */
.section--dark {
  background: var(--black);
  color: var(--white);
}
.section--dark .t-sub,
.section--dark .t-body,
.section--dark .t-small { color: #a1a1a6; }
.section--dark .eyebrow { color: #86868b; }
.section--dark a { color: var(--blue-light); }
.section--dark .hr { background: rgba(255,255,255,.16); }

.hr { height: 1px; background: var(--line); border: 0; margin: 0; }

/* --------------------------------------------------------------------------
   5. Boutons & liens
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 23px;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.01em;
  background: var(--blue);
  color: #fff;
  transition: background .22s var(--ease), transform .22s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--blue-hover); text-decoration: none; }
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: .42; pointer-events: none; }

.btn--ghost {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--blue);
}
.btn--ghost:hover { background: rgba(0,113,227,.06); }

.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: #f0f0f2; }

.btn--sm { min-height: 34px; padding: 0 15px; font-size: 14px; }
.btn--lg { min-height: 54px; padding: 0 30px; font-size: 19px; }
.btn--block { width: 100%; }

/* Lien fléché */
.arrow-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 17px; color: var(--blue);
}
.arrow-link::after {
  content: "›";
  font-size: 1.35em; line-height: 1;
  transform: translateY(-1px);
  transition: transform .22s var(--ease);
}
.arrow-link:hover { text-decoration: none; }
.arrow-link:hover::after { transform: translate(3px, -1px); }

.cta-row {
  display: flex; flex-wrap: wrap; gap: 14px 30px;
  align-items: center; justify-content: center;
  margin-top: 30px;
}

/* --------------------------------------------------------------------------
   6. Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease),
              color .3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); }

/* Nav transparente au-dessus du héros sombre */
.nav.is-over-hero {
  background: rgba(0, 0, 0, 0.28);
  border-bottom-color: transparent;
  color: #fff;
}
.nav.is-over-hero .nav__link,
.nav.is-over-hero .nav__brand,
.nav.is-over-hero .lang__btn { color: #fff; }
.nav.is-over-hero .lang { border-color: rgba(255,255,255,.4); }
.nav.is-over-hero .nav__burger span { background: #fff; }

.nav__inner {
  max-width: var(--maxw-wide); height: 100%; margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 20px;
}

.nav__brand {
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--ink); margin-right: auto;
}
.nav__brand:hover { text-decoration: none; }
.nav__brand small {
  display: block; font-size: 10px; font-weight: 400;
  letter-spacing: 0.16em; text-transform: uppercase;
  opacity: .58; margin-top: -1px;
}

.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__link {
  font-size: 12px; letter-spacing: -0.005em; color: var(--ink);
  opacity: .88; transition: opacity .2s var(--ease);
}
.nav__link:hover { opacity: 1; text-decoration: none; }

.nav__actions { display: flex; align-items: center; gap: 12px; }

/* Sélecteur de langue */
.lang {
  display: flex; align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 980px; padding: 2px;
}
.lang__btn {
  font-size: 11px; font-weight: 500; letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 9px; border-radius: 980px;
  color: var(--ink); opacity: .6;
  transition: background .2s var(--ease), opacity .2s var(--ease);
}
.lang__btn:hover { opacity: 1; }
.lang__btn.is-active {
  background: var(--ink); color: var(--white); opacity: 1;
}
.nav.is-over-hero .lang__btn.is-active { background: #fff; color: #000; }

/* Burger mobile */
.nav__burger {
  display: none; width: 30px; height: 30px;
  flex-direction: column; justify-content: center; gap: 5px;
}
.nav__burger span {
  display: block; height: 1.5px; width: 17px; margin-inline: auto;
  background: var(--ink); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-3.25px) rotate(-45deg); }

/* Panneau mobile */
.nav__panel {
  position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 99;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
  padding: 8px var(--gutter) 30px;
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: opacity .28s var(--ease), transform .28s var(--ease);
  max-height: calc(100dvh - var(--nav-h)); overflow-y: auto;
}
.nav__panel.is-open { opacity: 1; transform: none; pointer-events: auto; }
.nav__panel a {
  display: block; padding: 15px 0;
  font-size: 22px; font-weight: 500; letter-spacing: -0.02em;
  color: var(--ink); border-bottom: 1px solid var(--line);
}
.nav__panel a:hover { text-decoration: none; }
.nav__panel .btn { margin-top: 24px; }

/* --------------------------------------------------------------------------
   7. Emplacements photo (placeholders)
   Les visuels manquants affichent un dégradé + le nom du fichier attendu.
   Dès qu'une image existe, elle apparaît en fondu par-dessus.
   -------------------------------------------------------------------------- */
.ph {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(145deg, #dfe4e8 0%, #c8d2d8 38%, #aebcc4 100%);
  isolation: isolate;
}
.ph--warm { background: linear-gradient(145deg, #e8e0d4 0%, #d8c9b2 45%, #c2ad93 100%); }
.ph--deep { background: linear-gradient(150deg, #2b3a44 0%, #1a252c 55%, #0d1418 100%); }
.ph--sky  { background: linear-gradient(160deg, #cfe0ea 0%, #a9c6d8 50%, #7fa5bd 100%); }

.ph::after {
  content: attr(data-ph);
  position: absolute; inset: auto 0 0 0;
  padding: 10px 14px;
  font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  background: linear-gradient(to top, rgba(0,0,0,.42), rgba(0,0,0,0));
  pointer-events: none;
  transition: opacity .4s var(--ease);
}
.ph.is-filled::after { opacity: 0; }

.ph img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  transition: opacity .7s var(--ease);
}
.ph img.is-loaded { opacity: 1; }

/* --------------------------------------------------------------------------
   8. Héros
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  padding: calc(var(--nav-h) + 40px) var(--gutter) 90px;
}

.hero__media {
  position: absolute; inset: 0;
  z-index: -2;
  height: 100%;
}
.hero__media::after {
  /* Assombrit pour garantir la lisibilité du titre */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.42) 0%, rgba(0,0,0,.08) 34%,
                    rgba(0,0,0,.28) 72%, rgba(0,0,0,.62) 100%);
  z-index: 1;
}
.hero__media.ph::after {
  /* le libellé du placeholder passe au-dessus du voile */
  z-index: 2;
}

/* Assez large pour que « À cinquante mètres » tienne sur une ligne et que le
   retour à la ligne tombe là où le texte le prévoit. */
.hero__inner { max-width: 1040px; }

.hero__kicker {
  font-size: 13px; letter-spacing: .22em; text-transform: uppercase;
  font-weight: 500; opacity: .82; margin: 0 0 20px;
}

.hero__title {
  margin: 0;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.28);
}

.hero__sub {
  margin: 22px auto 0;
  max-width: 30ch;
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  font-weight: 400;
  line-height: 1.34;
  letter-spacing: -0.016em;
  color: rgba(255,255,255,.94);
  text-shadow: 0 1px 20px rgba(0,0,0,.3);
}

.hero .cta-row .arrow-link { color: #fff; }

.hero__scroll {
  position: absolute; bottom: 30px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.72);
}
.hero__scroll i {
  display: block; width: 1px; height: 34px;
  background: linear-gradient(to bottom, rgba(255,255,255,.75), transparent);
  animation: scrollcue 2.4s var(--ease) infinite;
  transform-origin: top;
}
@keyframes scrollcue {
  0%   { transform: scaleY(0); opacity: 0; }
  35%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(34px); opacity: 0; }
}

/* --------------------------------------------------------------------------
   9. Déclaration (révélation mot à mot)
   -------------------------------------------------------------------------- */
.statement {
  max-width: 22ch;
  margin-inline: auto;
  font-size: clamp(2rem, 5.4vw, 3.6rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
  font-weight: 600;
}
.statement .w {
  display: inline-block;
  opacity: .16;
  transition: opacity .5s var(--ease);
}
.statement.is-lit .w { opacity: 1; }

/* --------------------------------------------------------------------------
   10. Cartes produit
   -------------------------------------------------------------------------- */
.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}

.card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--grey-bg);
  min-height: 520px;
  display: flex; flex-direction: column;
  isolation: isolate;
}
.card--tall { min-height: 620px; }

.card__media { position: absolute; inset: 0; z-index: -1; }
.card__media img { height: 100%; }

.card__body {
  padding: 42px 38px;
  position: relative;
}
.card__body--bottom { margin-top: auto; }

.card__title { margin: 0 0 10px; }
.card__text { margin: 0; max-width: 34ch; }

/* Carte à texte clair sur photo */
.card--on-photo .card__body { color: #fff; }
.card--on-photo .card__text { color: rgba(255,255,255,.86); }
.card--on-photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(0,0,0,.5), rgba(0,0,0,.05) 55%);
}
.card--on-photo.card--grad-bottom::before {
  background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,0) 58%);
}

/* --------------------------------------------------------------------------
   11. Caractéristiques (chiffres)
   -------------------------------------------------------------------------- */
.specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.section--dark .specs,
.section--dark .specs { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.16); }

.spec {
  background: var(--white);
  padding: 34px 18px 30px;
  text-align: center;
}
.section--dark .spec { background: var(--black); }

.spec__num {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 600; letter-spacing: -0.04em; line-height: 1;
  display: block;
}
.spec__num sup {
  font-size: .38em; font-weight: 500; top: -0.9em; margin-left: 1px;
}
.spec__label {
  display: block; margin-top: 11px;
  font-size: 13px; letter-spacing: -0.005em; color: var(--ink-2);
}
.section--dark .spec__label { color: #a1a1a6; }

/* --------------------------------------------------------------------------
   12. Galerie
   -------------------------------------------------------------------------- */
.gallery { position: relative; }

.gallery__track {
  display: flex; gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-inline: max(var(--gutter), calc((100vw - var(--maxw-wide)) / 2));
  padding-block: 6px 26px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.gallery__track::-webkit-scrollbar { display: none; }

.gallery__item {
  flex: 0 0 auto;
  width: min(76vw, 560px);
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  scroll-snap-align: center;
  overflow: hidden;
}
.gallery__item--wide { width: min(88vw, 860px); aspect-ratio: 16 / 9; }

.gallery__nav {
  display: flex; gap: 10px; justify-content: center; align-items: center;
  margin-top: 6px;
}
.gallery__btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(0,0,0,.05);
  display: grid; place-items: center;
  color: var(--ink-2);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.gallery__btn:hover { background: rgba(0,0,0,.09); color: var(--ink); }
.gallery__btn[disabled] { opacity: .3; pointer-events: none; }
.section--dark .gallery__btn { background: rgba(255,255,255,.12); color: #fff; }
.section--dark .gallery__btn:hover { background: rgba(255,255,255,.2); }

/* --------------------------------------------------------------------------
   13. Équipements
   -------------------------------------------------------------------------- */
.amenities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 34px 30px;
  margin-top: 54px;
}
.amenity { display: flex; gap: 14px; align-items: flex-start; }
.amenity svg { flex: 0 0 auto; width: 26px; height: 26px; stroke: var(--ink); opacity: .85; }
.section--dark .amenity svg { stroke: #fff; }
.amenity h3 { font-size: 17px; font-weight: 600; margin: 1px 0 4px; letter-spacing: -0.015em; }
.amenity p { margin: 0; font-size: 14px; line-height: 1.42; color: var(--ink-2); }
.section--dark .amenity p { color: #a1a1a6; }

/* --------------------------------------------------------------------------
   13 bis. Distribution des pièces
   -------------------------------------------------------------------------- */
.rooms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
  margin-top: clamp(40px, 5vw, 64px);
}
.room {
  background: var(--grey-bg);
  padding: 34px 30px 38px;
}
.room h3 {
  font-size: 12px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3);
  margin: 0 0 14px;
}
.room p {
  margin: 0; font-size: 17px; line-height: 1.5;
  letter-spacing: -0.012em; color: var(--ink);
}

/* Deux rives + arrière-pays */
.sides {
  display: grid; gap: 26px;
  margin-top: 42px;
}
.side h3 {
  font-size: 12px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3);
  margin: 0 0 7px;
}
.side p {
  margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink);
}

/* --------------------------------------------------------------------------
   14. Localisation
   -------------------------------------------------------------------------- */
.place {
  display: grid;
  gap: clamp(40px, 6vw, 76px);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) {
  .place { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); }
}

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

.place__media {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

/* Respiration pleine largeur entre deux sections.
   Hauteur fixée explicitement : associer aspect-ratio et max-height ferait
   aussi rétrécir la largeur, et le bandeau ne toucherait plus les bords. */
.band { padding: 0; }
.band .ph {
  width: 100%;
  height: clamp(260px, 52vw, 700px);
  border-radius: 0;
}

.nearby { list-style: none; margin: 34px 0 0; padding: 0; }
.nearby li {
  display: flex; align-items: baseline; gap: 14px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  font-size: 17px;
}
.nearby li:last-child { border-bottom: 1px solid var(--line); }
.nearby__dist {
  margin-left: auto; color: var(--ink-3);
  font-size: 15px; font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.section--dark .nearby li { border-color: rgba(255,255,255,.16); }
.section--dark .nearby__dist { color: #86868b; }

/* --------------------------------------------------------------------------
   15. Calendrier
   -------------------------------------------------------------------------- */
.booking-grid {
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 1000px) {
  .booking-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px; }
}

.panel {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 3.4vw, 40px);
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 40px rgba(0,0,0,.06);
}
.panel--sticky { position: sticky; top: calc(var(--nav-h) + 24px); }

.cal__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin-bottom: 22px;
}
.cal__nav { display: flex; gap: 8px; }
.cal__navbtn {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grey-bg); color: var(--ink);
  transition: background .2s var(--ease);
}
.cal__navbtn:hover { background: #ececee; }
.cal__navbtn[disabled] { opacity: .32; pointer-events: none; }

.cal__months {
  display: grid; gap: 34px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .cal__months { grid-template-columns: 1fr 1fr; gap: 30px; } }

.cal__month-name {
  text-align: center; font-size: 17px; font-weight: 600;
  letter-spacing: -0.015em; margin: 0 0 14px;
  text-transform: capitalize;
}

.cal__dows, .cal__days {
  display: grid; grid-template-columns: repeat(7, 1fr);
}
.cal__dows { margin-bottom: 6px; }
.cal__dow {
  text-align: center; font-size: 11px; font-weight: 500;
  color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em;
  padding-bottom: 4px;
}

.cal__days { gap: 2px 0; }

.day {
  position: relative;
  aspect-ratio: 1 / 1;
  min-height: 40px;
  display: grid; place-items: center;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  border-radius: 50%;
  transition: background .16s var(--ease), color .16s var(--ease);
  z-index: 1;
}
.day--empty { visibility: hidden; }

.day--free { cursor: pointer; color: var(--ink); }
.day--free:hover { background: var(--grey-bg); }

.day--past, .day--blocked { color: #c7c7cc; cursor: not-allowed; }
.day--blocked::before {
  content: ""; position: absolute; left: 22%; right: 22%; top: 50%;
  height: 1px; background: #c7c7cc; transform: rotate(-12deg);
}

/* Plage sélectionnée */
.day--in-range { background: rgba(0,113,227,.09); border-radius: 0; }
.day--in-range:hover { background: rgba(0,113,227,.14); }
.day--start, .day--end {
  background: var(--blue) !important; color: #fff !important;
  font-weight: 500; border-radius: 50%;
}
/* Fond continu entre les deux bornes */
.day--start::after, .day--end::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 50%;
  background: rgba(0,113,227,.09); z-index: -1;
}
.day--start::after { right: 0; }
.day--end::after { left: 0; }
.day--start.day--end::after { display: none; }

.cal__legend {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line);
}
.cal__legend span { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.dot { width: 11px; height: 11px; border-radius: 50%; flex: 0 0 auto; }
.dot--free { background: #fff; border: 1px solid var(--line-strong); }
.dot--blocked { background: #e8e8ea; }
.dot--sel { background: var(--blue); }

.cal__hint {
  margin: 16px 0 0; font-size: 13px; color: var(--ink-3);
  min-height: 1.35em;
}
.cal__hint.is-error { color: #d8342b; }

/* Récapitulatif */
.summary__price {
  display: flex; align-items: baseline; gap: 7px; margin-bottom: 4px;
}
.summary__price b { font-size: 30px; font-weight: 600; letter-spacing: -0.03em; }
.summary__price span { font-size: 15px; color: var(--ink-2); }

.summary__dates {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius-md);
  overflow: hidden; margin: 22px 0 16px;
}
.summary__date { background: #fff; padding: 11px 14px; text-align: left; }
.summary__date small {
  display: block; font-size: 10px; text-transform: uppercase;
  letter-spacing: .07em; color: var(--ink-3); margin-bottom: 3px;
}
.summary__date b { font-size: 15px; font-weight: 500; }
.summary__date.is-empty b { color: var(--ink-3); font-weight: 400; }

.summary__lines { list-style: none; margin: 0; padding: 0; }
.summary__lines li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 11px 0; font-size: 15px; color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}
.summary__lines li span:last-child { color: var(--ink); font-variant-numeric: tabular-nums; }
.summary__lines li.is-total {
  border-bottom: 0; padding-top: 15px;
  font-size: 17px; font-weight: 600; color: var(--ink);
}
.summary__note { margin: 14px 0 0; font-size: 12px; color: var(--ink-3); }
.summary .btn { margin-top: 20px; }

.summary__empty { color: var(--ink-2); font-size: 15px; margin: 10px 0 0; }

/* --------------------------------------------------------------------------
   16. Formulaire
   -------------------------------------------------------------------------- */
.form { max-width: 660px; margin-inline: auto; }
.form__grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 500; color: var(--ink-2); }

.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 15px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  font-size: 16px;
  letter-spacing: -0.01em;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236e6e73' stroke-width='1.6' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0,113,227,.14);
}
.field input[readonly] { background: var(--grey-bg); color: var(--ink-2); }

.form__consent {
  display: flex; gap: 11px; align-items: flex-start;
  margin-top: 22px; font-size: 13px; line-height: 1.45; color: var(--ink-2);
}
.form__consent input { width: 17px; height: 17px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--blue); }

.form__submit { margin-top: 26px; text-align: center; }
.form__status {
  margin: 16px 0 0; font-size: 15px; min-height: 1.4em; text-align: center;
}
.form__status.is-ok { color: #1d8341; }
.form__status.is-error { color: #d8342b; }

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }

/* --------------------------------------------------------------------------
   17. Avis
   -------------------------------------------------------------------------- */
.rating {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-bottom: 12px;
}
.rating__score {
  font-size: clamp(3rem, 7vw, 4.6rem); font-weight: 600;
  letter-spacing: -0.04em; line-height: 1;
}
.rating__stars { display: flex; gap: 3px; }
.rating__stars svg { width: 18px; height: 18px; fill: currentColor; }

/* Étiquettes « ce qui revient dans les commentaires » */
.chips {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center;
}
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 17px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 980px;
  font-size: 15px; letter-spacing: -0.01em;
}
.chip b { font-weight: 600; color: #a1a1a6; font-variant-numeric: tabular-nums; }
.section:not(.section--dark) .chip { border-color: var(--line-strong); }
.section:not(.section--dark) .chip b { color: var(--ink-3); }

/* Bloc « Votre hôte » */
.host {
  max-width: 560px;
  margin: clamp(52px, 6vw, 80px) auto 0;
  padding: 36px 32px 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-xl);
  text-align: center;
}
.host .eyebrow { margin-bottom: 14px; }
.host h3 { margin: 0 0 4px; }

.host__stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 26px;
  background: rgba(255, 255, 255, 0.16);
  border-block: 1px solid rgba(255, 255, 255, 0.16);
}
.host__stats > div { background: var(--black); padding: 20px 8px 18px; }
.host__stats b {
  display: block;
  font-size: clamp(1.4rem, 3.4vw, 1.9rem);
  font-weight: 600; letter-spacing: -0.03em; line-height: 1;
}
.host__stats span {
  display: block; margin-top: 8px;
  font-size: 12px; line-height: 1.3; color: #a1a1a6;
}

.quotes {
  display: grid; gap: 16px; margin-top: 54px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.quote--solo {
  max-width: 620px; margin: clamp(38px, 4.5vw, 54px) auto 0;
  text-align: left;
}
.quote {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  display: flex; flex-direction: column;
}
.section--dark .quote { background: #1c1c1e; }
.quote p {
  margin: 0 0 22px; font-size: 17px; line-height: 1.5;
  letter-spacing: -0.012em;
}
.quote footer {
  margin-top: auto; font-size: 13px; color: var(--ink-3);
  display: flex; align-items: center; gap: 8px;
}
.quote footer b { color: var(--ink); font-weight: 600; }
.section--dark .quote footer b { color: #fff; }

/* --------------------------------------------------------------------------
   18. FAQ
   -------------------------------------------------------------------------- */
.faq { max-width: 760px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; align-items: center; gap: 18px;
  padding: 24px 0; text-align: left;
  font-size: clamp(1rem, 2vw, 1.2rem); font-weight: 500;
  letter-spacing: -0.018em;
}
.faq__q i {
  margin-left: auto; flex: 0 0 auto;
  position: relative; width: 15px; height: 15px;
}
.faq__q i::before, .faq__q i::after {
  content: ""; position: absolute; inset: 50% 0 auto 0;
  height: 1.5px; background: var(--ink-2); border-radius: 2px;
  transition: transform .3s var(--ease);
}
.faq__q i::after { transform: rotate(90deg); }
.faq__item.is-open .faq__q i::after { transform: rotate(0deg); }

.faq__a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .36s var(--ease);
}
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p {
  margin: 0; padding: 0 0 26px; max-width: 62ch;
  font-size: 16px; line-height: 1.55; color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   19. Barre de réservation mobile
   -------------------------------------------------------------------------- */
.dockbar {
  position: fixed; inset: auto 0 0 0; z-index: 90;
  display: flex; align-items: center; gap: 14px;
  padding: 11px var(--gutter) calc(11px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform .34s var(--ease);
}
.dockbar.is-visible { transform: none; }
.dockbar__price { font-size: 14px; line-height: 1.25; }
.dockbar__price b { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.dockbar__price span { display: block; color: var(--ink-3); font-size: 12px; }
.dockbar .btn { margin-left: auto; }
@media (min-width: 860px) { .dockbar { display: none; } }

/* --------------------------------------------------------------------------
   20. Pied de page
   -------------------------------------------------------------------------- */
.footer {
  background: var(--grey-bg);
  padding: 46px var(--gutter) 34px;
  font-size: 12px; line-height: 1.5; color: var(--ink-3);
}
.footer__inner { max-width: var(--maxw-wide); margin-inline: auto; }
.footer__cols {
  display: grid; gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  padding-bottom: 26px;
}
.footer h4 {
  font-size: 12px; font-weight: 600; color: var(--ink);
  margin: 0 0 11px;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; }
.footer a { color: var(--ink-3); }
.footer a:hover { color: var(--ink); }
.footer__legal {
  border-top: 1px solid var(--line-strong);
  padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center;
}
.footer__legal p { margin: 0; }

/* --------------------------------------------------------------------------
   21. Révélations au scroll
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .85s var(--ease-out), transform .85s var(--ease-out);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   22. Adaptations mobile
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__actions .btn { display: none; }
  /* Dégage la hauteur de la barre de réservation fixe, sinon elle masque
     définitivement le bas de la page (consentement, pied de page). */
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .card { min-height: 440px; }
  .card--tall { min-height: 500px; }
  .card__body { padding: 32px 26px; }
  .panel--sticky { position: static; }
}

@media (min-width: 861px) {
  .nav__panel { display: none; }
}

@media (max-width: 480px) {
  .summary__dates { grid-template-columns: 1fr; }
  .day { min-height: 38px; font-size: 13px; }
  /* Le sous-titre de marque viendrait toucher le sélecteur de langue. */
  .nav__brand small { display: none; }
  .nav__inner { gap: 12px; }
}

/* --------------------------------------------------------------------------
   23. Accessibilité — mouvement réduit
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .statement .w { opacity: 1; }
}

/* --------------------------------------------------------------------------
   24. Impression
   -------------------------------------------------------------------------- */
@media print {
  .nav, .dockbar, .hero__scroll, .gallery__nav { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .section { padding-block: 20px; }
}
