/* =========================================================
   LE REFUGE DES PILOTES — feuille de style premium
   Direction : maison de famille · esprit « gentleman driver »
   Vert anglais profond · ivoire · laiton · typographie éditoriale
   ========================================================= */

:root {
  --ivory: #f6f2ea;
  --paper: #eee7da;
  --white: #fbf9f4;
  --green: #1d3a2f;
  --green-2: #284a3c;
  --green-deep: #13281f;
  --brass: #a8875a;
  --brass-lt: #cdb28a;
  --brass-ink: #7d6238; /* texte laiton sur fond clair (contraste AA) */
  --ink: #14271e;   /* « une seule encre » : vert très sombre plutôt que noir (DESIGN.md § 2) */
  --muted: #56605a; /* gris-vert, contraste ≥ 5:1 sur ivoire, papier et sable */
  --line: rgba(20, 39, 30, .14);
  --line-lt: rgba(246, 242, 234, .2);

  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;

  --pad: clamp(20px, 4vw, 56px);
  /* Espacement vertical : 3 crans seulement (DESIGN.md § 4). Sur téléphone (≤ 620 px), pages.css fixe 40 / 56 / 64 px. */
  --sp-l: clamp(80px, 11vw, 160px);   /* grande section : visite, équipements, tarifs, formules, bandeau d'appel */
  --sp-m: clamp(56px, 7vw, 100px);    /* section resserrée : bas des en-têtes, calendrier, bandeau « Venir » */
  --sp-s: clamp(48px, 6vw, 88px);     /* bande dense : cartes de La région, tuiles, sous les chiffres clés */
  --sp-head: clamp(48px, 7vw, 100px); /* entre un titre de section et son contenu */
  --ease: cubic-bezier(.22, .9, .24, 1);
  --ease-in-out: cubic-bezier(.76, 0, .24, 1);

  /* Même flèche que picto("fleche"), pour les liens qui la dessinent en CSS (masque coloré par currentColor) */
  --fleche: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12h15M14 6.5l5.5 5.5-5.5 5.5'/%3E%3C/svg%3E");
}

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

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading, body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
/* Les <img> locales sont enveloppées dans un <picture> au build : il ne doit pas changer la mise en page */
picture { display: contents; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--green); color: var(--ivory); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1; letter-spacing: -.01em; }
h2 { font-size: clamp(2.6rem, 5.6vw, 5.2rem); }
h2 em, h1 em { font-style: italic; }
h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 400; }

.container { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--pad); }

.label {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--sans); font-size: .72rem; font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase; color: var(--brass-ink);
  margin: 0 0 28px;
}
.label::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.label-center { display: flex; justify-content: center; }
.label-light { color: var(--brass-lt); }
.muted { color: var(--muted); }

/* ---------- Bouton ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 18px;
  padding: 18px 30px;
  background: var(--green); color: var(--ivory);
  border: 0; cursor: pointer; text-decoration: none;
  font-family: var(--sans); font-size: .78rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
}
.btn::before {
  content: ""; position: absolute; inset: 0; background: var(--brass);
  transform: translateY(101%); transition: transform .6s var(--ease);
}
.btn > * { position: relative; }
.btn i { display: inline-flex; font-style: normal; transition: transform .5s var(--ease); }
/* Icônes SVG (partials/picto.njk) : traits fins à toutes les tailles, jamais de caractère ← → × (DESIGN.md § 7) */
.btn .picto { width: 18px; height: 18px; }
.btn-small .picto { width: 16px; height: 16px; }
button .picto { pointer-events: none; }
.btn:hover::before { transform: none; }
.btn:hover i { transform: translateX(6px); }
.btn-small { padding: 13px 20px; font-size: .7rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .75rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; padding-bottom: 6px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .5s var(--ease);
}
.link-arrow::after {
  content: ""; flex: none; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: var(--fleche) center / contain no-repeat; mask: var(--fleche) center / contain no-repeat;
  transition: transform .5s var(--ease);
}
.link-arrow:hover { background-size: 40% 1px; }
.link-arrow:hover::after { transform: translateX(6px); }

.round-btn {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; cursor: pointer;
  display: inline-grid; place-items: center; padding: 0;
  font-size: 1rem; transition: background .4s, color .4s, border-color .4s;
}
.round-btn .picto { width: 20px; height: 20px; }
@media (hover: hover) { .round-btn:hover:not(:disabled) { background: var(--green); color: var(--ivory); border-color: var(--green); } }
.round-btn:disabled { opacity: .25; cursor: default; }

/* ---------- Préchargement ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-content: center; justify-items: center; gap: 22px;
  background: var(--green-deep); color: var(--brass-lt);
  transition: transform 1.1s var(--ease-in-out) .2s;
}
body:not(.is-loading) .loader { transform: translateY(-100%); }
.loader-mark { width: 92px; height: 92px; }
.loader-mark circle { fill: none; stroke: currentColor; stroke-width: 1; stroke-dasharray: 360; stroke-dashoffset: 360; animation: draw 1.4s var(--ease) forwards; }
.loader-mark circle.thin { stroke-width: .5; animation-delay: .2s; }
.loader-mark text { fill: currentColor; font-family: var(--serif); font-size: 34px; font-style: italic; opacity: 0; animation: fade .8s .6s forwards; }
.loader-text { margin: 0; font-family: var(--serif); font-size: 1.1rem; font-style: italic; letter-spacing: .04em; opacity: 0; animation: fade .8s .8s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

/* ---------- Grain ---------- */
.grain {
  position: fixed; inset: -10%; z-index: 150; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@media (pointer: coarse) { .grain { animation: none; } }
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 22px var(--pad);
  color: var(--ivory);
  transition: transform .7s var(--ease), background .5s, color .5s, padding .5s;
}
.nav.solid { background: rgba(246, 242, 234, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--ink); padding-top: 14px; padding-bottom: 14px; box-shadow: 0 1px 0 var(--line); }
.nav.hidden { transform: translateY(-100%); }
body.menu-open .nav { background: var(--ivory); box-shadow: 0 1px 0 var(--line); color: var(--ink); transform: none; backdrop-filter: none; }

.menu-btn { justify-self: start; display: inline-flex; align-items: center; gap: 14px; background: none; border: 0; cursor: pointer; padding: 6px 0; }
.menu-lines { display: grid; gap: 7px; width: 30px; }
.menu-lines i { height: 1px; background: currentColor; transition: transform .5s var(--ease), width .5s var(--ease); }
.menu-lines i:last-child { width: 20px; }
.menu-btn:hover .menu-lines i:last-child { width: 30px; }
.menu-btn[aria-expanded="true"] .menu-lines i:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-lines i:last-child { width: 30px; transform: translateY(-4px) rotate(-45deg); }
.menu-label { font-size: .72rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; }

.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo svg { width: 44px; height: 44px; flex: none; }
.logo circle, .loader-mark circle { fill: none; stroke: currentColor; }
.logo circle { stroke-width: 1.2; }
.logo circle.thin { stroke-width: .6; }
.logo text { fill: currentColor; font-family: var(--serif); font-size: 36px; font-style: italic; }
.logo span { font-family: var(--serif); font-size: 1.35rem; letter-spacing: .01em; white-space: nowrap; }
.logo em { font-style: italic; }

.nav-cta {
  justify-self: end;
  font-size: .72rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; text-decoration: none;
  padding: 12px 22px; border: 1px solid currentColor;
  transition: background .4s, color .4s, border-color .4s;
}
.nav-cta:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.nav.solid .nav-cta:hover { background: var(--green); color: var(--ivory); border-color: var(--green); }

/* ---------- Menu : panneau clair à gauche, sous l'en-tête ----------
   Fond assombri derrière (un clic dessus ferme le menu), textes à taille normale, aucun changement de taille au survol. */
.overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(19, 40, 31, .4);
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility 0s .3s;
}
body.menu-open .overlay { opacity: 1; visibility: visible; transition: opacity .3s ease, visibility 0s; }
.overlay-panel {
  position: absolute; inset: 0 auto 0 0; width: min(440px, 100%);
  display: flex; flex-direction: column; gap: 28px;
  padding: 112px clamp(24px, 3vw, 40px) calc(28px + env(safe-area-inset-bottom));
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--ivory); color: var(--ink);
  box-shadow: 1px 0 0 var(--line), 24px 0 60px rgba(19, 40, 31, .14);
  transform: translateX(-24px); transition: transform .3s var(--ease);
}
body.menu-open .overlay-panel { transform: none; }
.overlay-nav { display: grid; }
.overlay-groupe {
  margin: 26px 0 4px; font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--brass-ink);
}
.overlay-nav a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
  font-size: 1.05rem; line-height: 1.3; text-decoration: none; color: var(--ink);
  transition: color .2s, border-color .2s;
}
.overlay-nav a.overlay-logement { font-family: var(--serif); font-size: 1.3rem; }
.overlay-nav a small { font-family: var(--sans); font-size: .8rem; color: var(--muted); white-space: nowrap; }
.overlay-nav a:hover { color: var(--green); border-bottom-color: var(--green); }
.overlay-nav a[aria-current="page"] { color: var(--green); font-weight: 600; }
.overlay-nav a.overlay-logement[aria-current="page"] { font-weight: 500; }
.overlay-btn { align-self: flex-start; }
.overlay-foot { margin-top: auto; display: grid; gap: 4px; font-size: .86rem; color: var(--muted); }
.overlay-foot p { margin: 0; }
.overlay-foot a { color: inherit; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; color: var(--ivory); background: var(--green-deep); }
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%; height: 115%; object-fit: cover;
  transform: scale(1.18); transition: transform 2.6s var(--ease) .3s;
  will-change: transform;
}
body:not(.is-loading) .hero-media img { transform: scale(1.04); }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(19, 40, 31, .55) 0%, rgba(19, 40, 31, 0) 28%),
    linear-gradient(90deg, rgba(19, 40, 31, .55) 0%, rgba(19, 40, 31, 0) 60%),
    linear-gradient(0deg, rgba(19, 40, 31, .82) 0%, rgba(19, 40, 31, .15) 60%);
}
.hero-content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--pad) clamp(36px, 6vh, 64px);
  max-width: 1360px; margin: 0 auto;
}
.hero-kicker { font-size: .72rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--ivory); margin: 0 0 22px; text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }
.hero-title, .hero-lead { text-shadow: 0 2px 40px rgba(0, 0, 0, .25); }
.hero-title { font-size: clamp(3.6rem, 9vw, 9.5rem); line-height: .86; letter-spacing: -.035em; margin-bottom: clamp(28px, 5vh, 52px); }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .2em; margin-bottom: -.14em; }
.hero-title .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.4s var(--ease); }
.hero-title .line:nth-child(2) { padding-left: clamp(40px, 14vw, 240px); }
.hero-title .line:nth-child(2) > span { transition-delay: .12s; }
body:not(.is-loading) .hero-title .line > span { transform: none; transition-delay: .7s; }
body:not(.is-loading) .hero-title .line:nth-child(2) > span { transition-delay: .82s; }
.hero-title em { color: var(--brass-lt); }

.hero-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; border-top: 1px solid var(--line-lt); padding-top: 26px; }
.hero-lead { margin: 0; font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.6rem); font-style: italic; line-height: 1.3; }
.scroll-cue { display: flex; align-items: center; gap: 16px; text-decoration: none; font-size: .7rem; letter-spacing: .28em; text-transform: uppercase; }
.scroll-cue i { position: relative; width: 1px; height: 54px; background: var(--line-lt); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--ivory); animation: cue 2.2s var(--ease-in-out) infinite; }
@keyframes cue { to { top: 100%; } }
.hero-side {
  position: absolute; z-index: 2; right: calc(var(--pad) / 2); top: 50%;
  margin: 0; transform: translateY(-50%) rotate(90deg); transform-origin: right center;
  font-size: .66rem; letter-spacing: .32em; color: rgba(246, 242, 234, .65); white-space: nowrap;
}

/* Apparition au chargement / au scroll */
.reveal-up { opacity: 0; transform: translateY(20px); transition: opacity 1.2s var(--ease) 1.1s, transform 1.2s var(--ease) 1.1s; }
body:not(.is-loading) .reveal-up { opacity: 1; transform: none; }
.reveal { opacity: 0; transform: translateY(46px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Chiffres clés (accueil) ---------- */
.figures {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(80px, 10vw, 150px); padding-top: 0;
}
.figures > div { border-top: 1px solid var(--line); padding: 24px 24px 0 0; display: flex; flex-direction: column; }
.figures > div:nth-child(2) { transition-delay: .1s; }
.figures > div:nth-child(3) { transition-delay: .2s; }
.figures > div:nth-child(4) { transition-delay: .3s; }
.figures dt { font-size: .7rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.figures dd { margin: auto 0 0; padding-top: 10px; font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 6vw, 5.6rem); line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.figures small { font-size: .3em; font-family: var(--sans); margin-left: 6px; color: var(--muted); letter-spacing: .1em; }

.section-head { margin-bottom: var(--sp-head); }
.section-head h2 em, .rates h2 em { color: var(--green-2); }

/* ---------- Livre d'or ---------- */
.reviews { padding: var(--sp-l) 0; text-align: center; }
.quotes { display: grid; max-width: 1040px; margin: 0 auto; }
.quote { grid-area: 1 / 1; margin: 0; opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease), transform 1s var(--ease); pointer-events: none; }
.quote.is-active { opacity: 1; transform: none; pointer-events: auto; }
.quote blockquote { margin: 0 0 34px; font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 3.4vw, 3.1rem); line-height: 1.22; }
.quote figcaption { font-size: .74rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.quotes-nav { display: flex; justify-content: center; gap: 12px; margin: 44px 0 28px; }
.quotes-nav button { width: 40px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.quotes-nav button::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); transition: background .4s; }
.quotes-nav button[aria-current="true"]::after { background: var(--ink); height: 2px; }
.score { margin: 0; font-size: .9rem; color: var(--muted); }
.stars { display: inline-flex; gap: 3px; vertical-align: -.12em; color: var(--brass); margin-right: 8px; }
.stars .picto { width: 1em; height: 1em; }

/* ---------- Tarifs ---------- */
.rates { padding: var(--sp-l) 0; background: var(--paper); }
.rates-table { width: 100%; border-collapse: collapse; }
.rates-table thead th { font-size: .7rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); text-align: right; padding: 0 0 16px; border-bottom: 1px solid var(--ink); }
.rates-table thead th:first-child { text-align: left; }
.rates-table tbody th, .rates-table td { padding: 26px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.rates-table tbody th { text-align: left; font-family: var(--serif); font-weight: 400; font-size: clamp(1.4rem, 2vw, 1.75rem); line-height: 1.15; padding-right: 16px; }
.rates-table tbody th small { display: block; font-family: var(--sans); font-size: .82rem; font-weight: 400; color: var(--muted); margin-top: 6px; }
.rates-table td { text-align: right; font-family: var(--serif); font-size: clamp(1.4rem, 2vw, 1.75rem); white-space: nowrap; padding-left: 20px; font-variant-numeric: lining-nums tabular-nums; }
.row-event th, .row-event td { color: var(--green); }
.row-event td { font-style: italic; }
/* Même pastille laiton que les jours de course du calendrier (.dot-event) : un seul signe pour « course » */
.row-event th::before { content: ""; display: inline-block; width: 10px; height: 10px; margin: 0 12px 0 0; border-radius: 50%; background: var(--brass); vertical-align: .16em; }

/* Calendrier */
.cal { margin-top: clamp(80px, 10vw, 140px); }
.cal-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; padding-bottom: 28px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.cal-head h3 { font-size: clamp(2rem, 3vw, 2.6rem); margin-right: auto; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; font-size: .85rem; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 10px; }
.cal-arrows { display: flex; gap: 10px; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot-free { border: 1px solid var(--ink); }
.dot-booked { background: rgba(26, 29, 27, .14); }
.dot-event { background: var(--brass); }

.calendar { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 64px); }
.month h4 { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: 1.5rem; margin: 0 0 18px; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 4px; text-align: center; }
.days .dow { font-size: .66rem; font-weight: 500; letter-spacing: .14em; color: var(--muted); padding-bottom: 10px; }
.day { aspect-ratio: 1; display: grid; place-items: center; font-size: .9rem; font-variant-numeric: tabular-nums; border-radius: 50%; }
.day.past { color: rgba(26, 29, 27, .25); }
.day.booked { color: rgba(26, 29, 27, .35); text-decoration: line-through; text-decoration-color: rgba(26, 29, 27, .3); border-radius: 0; background: rgba(26, 29, 27, .06); }
.day.race { background: var(--brass); color: var(--ink); }
.day.today { box-shadow: inset 0 0 0 1px var(--ink); font-weight: 500; }

/* ---------- Réserver ---------- */
.book { display: grid; grid-template-columns: 1fr 1fr; min-height: 100svh; background: var(--white); }
.book-media { position: relative; overflow: hidden; color: var(--ivory); display: flex; align-items: flex-end; }
.book-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.book-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(19, 40, 31, .88) 10%, rgba(19, 40, 31, .25) 70%); }
.book-media-text { position: relative; z-index: 1; padding: clamp(40px, 6vw, 88px); }
.book-media-text h2 em { color: var(--brass-lt); }
.book-media-text > p:not(.label) { font-family: var(--serif); font-style: italic; font-size: 1.35rem; margin: 22px 0 40px; }
.book-media-text dl { margin: 0; display: grid; gap: 18px; }
.book-media-text dt { font-size: .68rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--brass-lt); }
.book-media-text dd { margin: 0; }
.book-media-text a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.book-media-text a:hover { background-size: 100% 1px; }

.form { align-self: center; display: grid; gap: 30px; padding: clamp(48px, 7vw, 110px); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.field { position: relative; }
.field input, .field select, .field textarea {
  width: 100%; padding: 26px 0 10px;
  background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  font-family: var(--sans); font-weight: 400; font-size: 1.05rem; color: var(--ink);
  transition: border-color .4s;
  -webkit-appearance: none; appearance: none;
}
.field select { cursor: pointer; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6' fill='none' stroke='%231a1d1b'/%3E%3C/svg%3E") right 4px bottom 18px no-repeat; }
.field textarea { resize: vertical; min-height: 90px; }
/* iOS : un champ date vide n'a pas de hauteur et centre sa valeur */
.field input[type="date"] { min-height: calc(36px + 1.05rem * 1.7); line-height: 1.4; }
.field input::-webkit-date-and-time-value { text-align: left; }
.field input::-webkit-calendar-picker-indicator { opacity: .55; cursor: pointer; }
/* Chrome : pas de fond jaune ni de texte illisible au remplissage automatique */
.field input:-webkit-autofill, .field textarea:-webkit-autofill, .field select:-webkit-autofill {
  -webkit-text-fill-color: var(--ink); caret-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px var(--white) inset; box-shadow: 0 0 0 1000px var(--white) inset;
  transition: background-color 600000s 0s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); }
.field label {
  position: absolute; left: 0; top: 26px; pointer-events: none;
  font-size: 1.05rem; color: var(--muted);
  transform-origin: left top; transition: transform .4s var(--ease), color .4s;
}
.field label.fixed,
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  transform: translateY(-24px) scale(.7); letter-spacing: .14em; text-transform: uppercase; color: var(--brass-ink);
}
.field input:-webkit-autofill + label { transform: translateY(-24px) scale(.7); letter-spacing: .14em; text-transform: uppercase; color: var(--brass-ink); }
.form .btn { justify-self: start; margin-top: 8px; }
.form-status { margin: 0; min-height: 1.6em; font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--green); }

/* ---------- Pied de page ---------- */
.footer { background: var(--green-deep); color: rgba(246, 242, 234, .62); padding: clamp(48px, 6vw, 72px) 0 40px; font-size: .9rem; overflow: hidden; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer-cols p { margin: 0; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ivory); }

/* ---------- Visionneuse ---------- */
.lightbox {
  --lb-pad: clamp(64px, 9vh, 88px);
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0;
  padding: var(--lb-pad) clamp(12px, 3vw, 40px); border: 0; overflow: hidden;
  background: rgba(19, 40, 31, .96); color: var(--ivory);
}
.lightbox::backdrop { background: rgba(19, 40, 31, .5); }
.lightbox[open] { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(8px, 2vw, 32px); animation: lb .6s var(--ease); }
@keyframes lb { from { opacity: 0; transform: scale(.98); } }
/* La zone autour de la photo laisse passer le clic jusqu'au fond (qui ferme la visionneuse) */
.lb-figure { grid-column: 2; margin: 0; min-width: 0; display: grid; justify-items: center; gap: 16px; pointer-events: none; }
.lb-figure img {
  max-width: 100%; max-height: calc(100vh - 2 * var(--lb-pad) - 3.4rem); max-height: calc(100dvh - 2 * var(--lb-pad) - 3.4rem);
  width: auto; object-fit: contain; pointer-events: auto;
  opacity: 0; transition: opacity .45s var(--ease);
}
.lb-figure img.ready { opacity: 1; }
.lb-figure figcaption { text-align: center; font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.3; font-variant-numeric: lining-nums tabular-nums; pointer-events: auto; }
.lb-close, .lb-prev, .lb-next {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-lt); background: rgba(19, 40, 31, .4);
  color: var(--ivory); cursor: pointer; transition: background .4s, color .4s, border-color .4s;
}
.lb-close, .lb-prev, .lb-next { display: grid; place-items: center; padding: 0; }
.lb-close { position: absolute; z-index: 2; top: 16px; right: 16px; }
.lb-close .picto { width: 22px; height: 22px; }
.lb-prev .picto, .lb-next .picto { width: 20px; height: 20px; }
@media (hover: hover) { .lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); } }
@media (max-width: 860px) {
  .lightbox { --lb-pad: 72px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .lightbox[open] { grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr) auto; row-gap: 20px; }
  .lb-figure { grid-column: 1 / -1; grid-row: 1; }
  .lb-figure img { max-height: calc(100dvh - var(--lb-pad) - 140px); }
  .lb-prev { grid-row: 2; justify-self: end; }
  .lb-next { grid-row: 2; justify-self: start; }
}

.mobile-cta { display: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .calendar { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .footer { padding-bottom: calc(40px + 68px + env(safe-area-inset-bottom)); }
  .nav { grid-template-columns: auto 1fr auto; padding: 16px var(--pad); }
  .logo { justify-self: center; }
  .logo span:not(.sr-only) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* masqué à l'écran, lu par les lecteurs d'écran */
  .logo svg { width: 40px; height: 40px; }
  .menu-label { display: none; }
  .menu-btn { min-width: 44px; min-height: 44px; justify-content: center; margin-left: -7px; }
  .nav-cta { padding: 10px 14px; font-size: .64rem; }

  .overlay-panel { width: 100%; padding: 92px var(--pad) calc(24px + env(safe-area-inset-bottom)); gap: 24px; box-shadow: none; }
  .overlay-nav a.overlay-logement { flex-direction: column; align-items: flex-start; gap: 2px; }

  .hero-media img { object-position: 38% 50%; }
  .hero-title .line:nth-child(2) { padding-left: 12vw; }
  .hero-side { display: none; }
  .scroll-cue { display: none; }

  .figures { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }

  .calendar { grid-template-columns: 1fr; }
  .cal-head h3 { width: 100%; }
  .cal-arrows { margin-left: auto; }


  .book { grid-template-columns: 1fr; min-height: 0; }
  .book-media { min-height: 45svh; }
  .book-media::after { background: linear-gradient(0deg, rgba(19, 40, 31, .9) 0%, rgba(19, 40, 31, .55) 100%); }
  .book-media-text dl { display: none; }
  .form { padding: 56px var(--pad) 64px; }
  .field-row { grid-template-columns: 1fr; }

  .footer-cols { grid-template-columns: 1fr 1fr; row-gap: 28px; }

  .mobile-cta {
    position: fixed; inset: auto 0 0; z-index: 80;
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
    background: rgba(246, 242, 234, .96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .6s var(--ease);
  }
  .mobile-cta.show { transform: none; }
  .mobile-cta p { margin: 0; font-family: var(--serif); font-size: 1.15rem; font-style: italic; }
  .mobile-cta b { font-weight: 500; font-style: normal; font-variant-numeric: lining-nums tabular-nums; }
}

@media (max-width: 480px) {
  .footer-cols { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .grain { display: none; }
}

/* =========================================================
   FORMULES · ONGLETS · TARIFS PAR FORMULE
   ========================================================= */

/* ---------- Onglets ---------- */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
.tabs button {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 10px 20px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font-size: .74rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  transition: background .4s var(--ease), color .4s;
}
.tabs button small { font-family: var(--serif); font-size: 1rem; font-style: italic; letter-spacing: 0; text-transform: none; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--green); color: var(--ivory); }
.tabs-small button { padding: 8px 16px; font-size: .68rem; }

.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn-line::before { background: var(--green); }
.btn-line:hover { color: var(--ivory); }

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

/* ---------- Formules ---------- */
.offers { padding: clamp(40px, 6vw, 80px) 0 var(--sp-l); }
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); align-items: stretch; }
.offer {
  position: relative; display: flex; flex-direction: column;
  padding: 14px 14px 30px; background: var(--white); border: 1px solid var(--line);
  transition: transform .8s var(--ease), box-shadow .8s var(--ease), opacity 1.2s var(--ease);
}
.offer:nth-child(2) { transition-delay: .08s; }
.offer:nth-child(3) { transition-delay: .16s; }
/* Survol : seulement avec une vraie souris (pas d'effet « collé » après un tap sur téléphone), même effet au clavier.
   Le décalage d'apparition (.08s / .16s) ne doit pas retarder le survol. */
@media (hover: hover) and (pointer: fine) {
  .offer.in:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(19, 40, 31, .35); transition-delay: 0s; }
  .offer:hover .offer-img img { transform: scale(1.05); }
}
.offer.in:has(:focus-visible) { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(19, 40, 31, .35); transition-delay: 0s; }
.offer > :not(.offer-img):not(.offer-tag) { margin-left: 16px; margin-right: 16px; }
.offer-img { aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 22px; background: var(--paper); }
.offer-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.offer-soon { display: grid; place-items: center; background: repeating-linear-gradient(135deg, var(--paper) 0 14px, #e8e0d1 14px 15px); }
.offer-soon span { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--muted); }
.offer-floor { margin-top: 0; margin-bottom: 8px; font-size: .7rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--brass-ink); }
.offer h3 { font-size: clamp(2rem, 3vw, 2.6rem); font-weight: 400; margin-bottom: 12px; }
/* 3 faits clés, un par ligne (voyageurs + 2 premiers points de la formule) */
.offer-specs { list-style: none; padding: 0; margin-top: 0; margin-bottom: 18px; flex: 1; font-size: .95rem; line-height: 1.5; }
.offer-specs li + li { margin-top: 2px; }
.offer-specs b { font-family: var(--serif); font-size: 1.25rem; font-weight: 400; margin-right: 4px; }
.offer-price { margin-top: 0; margin-bottom: 18px; font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--muted); }
.offer-price b { font-style: normal; font-weight: 400; font-size: 1.7rem; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.offer .btn { align-self: flex-start; }
.offer-featured { background: var(--green-deep); color: var(--ivory); border-color: var(--green-deep); }
.offer-featured .offer-price { color: rgba(246, 242, 234, .7); }
.offer-featured .offer-price b { color: var(--ivory); }
.offer-featured .offer-floor { color: var(--brass-lt); }
.offer-featured .btn { background: var(--brass-lt); color: var(--ink); }
.offer-featured .btn::before { background: var(--ivory); }
.offer-featured .btn:hover { color: var(--ink); }
.offer-tag {
  position: absolute; z-index: 2; top: 28px; left: 28px; margin: 0;
  padding: 6px 14px; background: var(--ivory); color: var(--ink);
  font-size: .66rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
}

/* ---------- Tarifs par formule ---------- */
.rates-table thead th { text-align: right; }
.rates-table td { font-size: clamp(1.25rem, 1.7vw, 1.55rem); }
.row-event td { text-align: center; }
.figures .pre { display: block; font-size: .7rem; margin: 0 0 6px; letter-spacing: .2em; text-transform: uppercase; }

/* ---------- Calendrier par formule ---------- */
.cal-head { border-bottom: 0; margin-bottom: 16px; padding-bottom: 0; }
.cal .cal-legend { padding-bottom: 24px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.cal-note { margin: 24px 0 0; font-size: .9rem; color: var(--muted); font-style: italic; font-family: var(--serif); font-size: 1.1rem; }

/* ---------- Choix de formule dans le formulaire ---------- */
.formula { border: 0; padding: 0; margin: 0; }
.formula legend { padding: 0; margin-bottom: 14px; font-size: .7rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--brass-ink); }
.formula-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.formula-options label { position: relative; cursor: pointer; }
.formula-options input { position: absolute; opacity: 0; pointer-events: none; }
.formula-options span {
  display: grid; gap: 2px; height: 100%; padding: 14px 16px;
  border: 1px solid var(--line); transition: border-color .3s, background .3s, color .3s;
}
.formula-options b { font-family: var(--serif); font-size: 1.25rem; font-weight: 400; }
.formula-options small { font-size: .78rem; color: var(--muted); }
.formula-options label:hover span { border-color: var(--ink); }
.formula-options input:checked + span { background: var(--green); border-color: var(--green); color: var(--ivory); }
.formula-options input:checked + span small { color: rgba(246, 242, 234, .75); }
.formula-options input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 2px; }

@media (max-width: 1080px) {
  .offer-grid { grid-template-columns: 1fr 1fr; }
  .offer-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; align-items: start; }
  .offer-featured .offer-img { grid-column: 1; grid-row: 1 / span 6; margin-bottom: 0; height: 100%; min-height: 320px; aspect-ratio: auto; }
  .offer-featured > :not(.offer-img):not(.offer-tag) { grid-column: 2; }
  .offer-featured > :not(.offer-img):not(.offer-tag) { margin-left: 0; }
  .offer-featured .offer-floor { margin-top: 20px; }
}

@media (max-width: 860px) {
  .offer-grid { grid-template-columns: 1fr; }
  .offer-featured { display: flex; }
  .offer-featured .offer-img { height: auto; min-height: 0; margin-bottom: 26px; aspect-ratio: 4 / 3; }
  .offer-featured > :not(.offer-img):not(.offer-tag) { margin-left: 16px; }
  .offer-featured .offer-floor { margin-top: 0; }
  .tabs { width: 100%; }
  .tabs button { flex: 1; justify-content: center; flex-direction: column; align-items: center; gap: 2px; padding: 10px 8px; }
  .tabs-small button { flex-direction: row; font-size: .62rem; letter-spacing: .08em; }
  .formula-options { grid-template-columns: 1fr; }

  /* Tableau des tarifs en blocs */
  .rates-table thead { display: none; }
  .rates-table, .rates-table tbody, .rates-table tr, .rates-table th, .rates-table td { display: block; width: 100%; }
  .rates-table tr { padding: 18px 0; border-bottom: 1px solid var(--line); }
  .rates-table tbody th { border: 0; padding: 0 0 10px; }
  .rates-table td { display: flex; justify-content: space-between; align-items: baseline; border: 0; padding: 4px 0; text-align: right; }
  .rates-table td::before { content: attr(data-label); font-family: var(--sans); font-size: .82rem; color: var(--muted); }
  .row-event td { text-align: right; }
}

/* Ajustements écrans moyens */
@media (max-width: 1280px) {
  .formula-options { grid-template-columns: 1fr; }
  .formula-options span { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 16px; }
}
