/* ==========================================================================
   Origine — maison de soins millésimés, Neuchâtel (démo ARCELYS)
   Craie, encre, absinthe, or patiné. Bodoni Moda pour la voix, Manrope pour l'usage.
   La structure emprunte au vin : millésime, fiche technique, étiquette.
   ========================================================================== */

@font-face {
  font-family: "Bodoni Moda";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/bodoni-moda.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/manrope.woff2") format("woff2");
}

:root {
  --craie: #ebe7de;
  --craie-2: #e1dbcf;
  --encre: #1c1b17;
  --encre-2: #5d594f;
  --absinthe: #222b24;
  --absinthe-2: #2c372f;
  --or: #8f6d33;
  --or-clair: #cdb27a;
  --sauge: #a9ae9f;
  --serif: "Bodoni Moda", "Bodoni 72", Didot, Georgia, serif;
  --sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --marge: clamp(20px, 4.6vw, 76px);
  --entete: 84px;
  --doux: cubic-bezier(.22, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--entete); }
body {
  margin: 0;
  background: var(--craie);
  color: var(--encre);
  font: 400 15px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
h2 { font-size: clamp(2.5rem, 4.8vw, 5rem); line-height: 1.02; text-wrap: balance; }
h3 { font-size: clamp(1.45rem, 1.9vw, 1.8rem); line-height: 1.15; }
p { margin: 0; }
sup { font-size: .55em; line-height: 0; vertical-align: .9em; }
:focus-visible { outline: 1px solid var(--encre); outline-offset: 4px; }
.chapeau { font: 400 clamp(1.2rem, 1.6vw, 1.45rem)/1.5 var(--serif); }

.evitement { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--encre); color: var(--craie); text-decoration: none; }
.evitement:focus { top: 12px; }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- gestes ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 30px;
  border: 1px solid var(--encre); border-radius: 1px;
  background: var(--encre); color: var(--craie);
  font: 600 13px/1 var(--sans); letter-spacing: .06em; text-decoration: none;
  cursor: pointer; transition: background-color .3s, border-color .3s, color .3s;
}
.bouton:hover { background: var(--absinthe); border-color: var(--absinthe); }
.lien-trait {
  display: inline-flex; align-items: center; padding: 0 0 5px; border: 0; border-bottom: 1px solid currentColor; background: none; cursor: pointer;
  font: 600 13px/1.4 var(--sans); letter-spacing: .04em; text-decoration: none;
  transition: color .3s, border-color .3s;
}
.lien-trait:hover { color: var(--or); }
.lien-trait.est-ajoute { color: var(--or); border-color: transparent; }

/* ---------- en-tête ---------- */
.entete {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: var(--entete); padding: 0 var(--marge);
  transition: background-color .5s, box-shadow .5s;
}
.entete.est-defile { background: rgba(235, 231, 222, .98); box-shadow: 0 1px 0 rgba(28, 27, 23, .1); }
.entete.est-sombre:not(.est-defile) { color: var(--craie); }
.menu { display: flex; gap: 30px; }
.menu a, .entete__allocation, .entete__panier {
  font: 500 13px/1 var(--sans); letter-spacing: .02em; text-decoration: none;
  padding: 8px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--doux);
}
.menu a:hover, .menu a.est-actif, .entete__allocation:hover { background-size: 100% 1px; }
.marque { display: flex; flex-direction: column; align-items: center; gap: 7px; text-decoration: none; }
.marque__nom { font: 400 21px/1 var(--serif); letter-spacing: .44em; margin-right: -.44em; text-transform: uppercase; }
.marque__lieu { font: 500 10px/1 var(--sans); letter-spacing: .26em; color: var(--encre-2); }
.entete.est-sombre:not(.est-defile) .marque__lieu { color: var(--sauge); }
.entete__actions { display: flex; align-items: center; justify-content: flex-end; gap: 30px; }
.entete__allocation { background-size: 100% 1px; }
.entete__panier { border: 0; cursor: pointer; background-color: transparent; }
.entete__panier span { font-variant-numeric: tabular-nums; }
.menu-bouton { display: none; padding: 8px 0; border: 0; background: none; cursor: pointer; font: 600 13px/1 var(--sans); letter-spacing: .04em; }
.menu-mobile {
  position: fixed; inset: 0; z-index: 29; display: flex; flex-direction: column; gap: 4px;
  padding: calc(var(--entete) + 36px) var(--marge) 36px; background: var(--craie);
}
.menu-mobile a { font: 400 2rem/1.3 var(--serif); text-decoration: none; }
.menu-mobile a.menu-mobile__signature { margin-top: auto; font: 500 13px/1.4 var(--sans); color: var(--encre-2); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- l'ouverture ---------- */
.ouverture { position: relative; height: 100svh; min-height: 640px; max-height: 1120px; overflow: hidden; background: #b9b1a4; }
.ouverture__repli, .ouverture__repli img, .ouverture__rendu { position: absolute; inset: 0; width: 100%; height: 100%; }
.ouverture__repli img { object-fit: cover; object-position: 60% 50%; }
.ouverture__rendu { opacity: 0; transition: opacity .5s; }
.ouverture.est-rendu .ouverture__rendu { opacity: 1; }
.ouverture__texte {
  position: absolute; z-index: 2; left: var(--marge); bottom: clamp(56px, 13vh, 150px);
  width: min(580px, 42vw);
}
.ouverture__sur { margin-bottom: 26px; font: 500 13px/1 var(--sans); letter-spacing: .06em; color: var(--encre-2); opacity: 0; transition: opacity 1.2s .3s; }
.ouverture h1 { font-size: clamp(3.6rem, 7.6vw, 8.8rem); line-height: .93; letter-spacing: -.025em; }
.ligne { display: block; overflow: hidden; padding-bottom: .06em; }
.ligne > span { display: block; transform: translateY(110%); transition: transform 1.5s var(--doux); }
.ligne + .ligne > span { transition-delay: .14s; }
.ouverture__intro { max-width: 30rem; margin-top: 28px; font: 400 1.18rem/1.55 var(--serif); opacity: 0; transition: opacity 1.2s .7s; }
.ouverture__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-top: 34px; opacity: 0; transition: opacity 1.2s .9s; }
.est-pret .ligne > span { transform: none; }
.est-pret .ouverture__sur, .est-pret .ouverture__intro, .est-pret .ouverture__actions { opacity: 1; }
.ouverture__note {
  position: absolute; z-index: 2; right: var(--marge); bottom: clamp(56px, 13vh, 150px);
  display: flex; align-items: center; gap: 12px; font: 500 12px/1 var(--sans); letter-spacing: .05em; color: var(--encre-2);
  opacity: 0; transition: opacity 1s 1.6s;
}
.ouverture__note::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.est-pret .ouverture.est-vivant .ouverture__note { opacity: 1; }

/* ---------- la maison ---------- */
.maison {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 130px); align-items: center;
  padding: clamp(110px, 18vh, 200px) var(--marge);
}
.maison__texte { max-width: 760px; }
.maison__texte .chapeau { margin-top: 40px; max-width: 34rem; }
.maison__texte p:not(.chapeau) { margin-top: 22px; max-width: 32rem; color: var(--encre-2); }
.maison__visage { margin: 0; }
.maison__visage img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

/* ---------- le millésime ---------- */
.millesime { position: relative; background: var(--craie-2); }
.millesime__cadre { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; }
.millesime__piste { display: flex; align-items: flex-start; gap: clamp(40px, 4.5vw, 80px); padding: calc(var(--entete) + 30px) var(--marge) 40px; will-change: transform; }
.millesime__intro { flex: 0 0 clamp(300px, 27vw, 420px); align-self: center; }
.millesime__intro p { margin-top: 24px; color: var(--encre-2); max-width: 22rem; }
.etape { flex: 0 0 clamp(300px, 27vw, 420px); margin-top: 10vh; }
.etape img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; max-height: 44vh; }
.etape--haute { margin-top: 0; flex-basis: clamp(260px, 22vw, 340px); }
.etape--haute img { aspect-ratio: 3 / 4; max-height: 52vh; }
.etape__date { display: flex; align-items: baseline; gap: 10px; margin-top: 22px; font: 500 13px/1 var(--sans); letter-spacing: .04em; color: var(--encre-2); }
.etape__date span { font: 400 2.8rem/1 var(--serif); color: var(--or); letter-spacing: -.02em; }
.etape__date sup { font-size: .36em; vertical-align: 1.5em; margin-left: 1px; }
.etape h3 { margin-top: 10px; }
.etape p:not(.etape__date) { margin-top: 10px; max-width: 32ch; color: var(--encre-2); font-size: 14.5px; }
.fiche { flex: 0 0 300px; align-self: center; padding: 32px 30px; border: 1px solid var(--encre); box-shadow: 0 0 0 5px var(--craie-2), 0 0 0 6px var(--encre); }
.fiche__titre { font: 400 1.6rem/1.1 var(--serif); text-align: center; padding-bottom: 18px; border-bottom: 1px solid var(--encre); }
.fiche dl { margin: 0; }
.fiche dl div { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid rgba(28, 27, 23, .18); }
.fiche dl div:last-child { border-bottom: 0; padding-bottom: 0; }
.fiche dt { font-size: 12px; letter-spacing: .04em; color: var(--encre-2); }
.fiche dd { margin: 0; font: 400 1rem/1.3 var(--serif); text-align: right; }

/* ---------- la matière ---------- */
.matiere { position: relative; overflow: hidden; height: 100svh; min-height: 640px; max-height: 1080px; background: #b69c6b; }
.matiere__pierre, .matiere__toile { position: absolute; inset: 0; width: 100%; height: 100%; }
.matiere__pierre { object-fit: cover; }
.matiere__toile { z-index: 1; touch-action: pan-y; cursor: crosshair; opacity: 0; transition: opacity .6s; }
.matiere.est-active .matiere__toile { opacity: 1; }
.matiere.est-doigt .matiere__toile { touch-action: none; }
.matiere__tete { position: absolute; z-index: 2; left: var(--marge); top: calc(var(--entete) + 5vh); width: min(400px, 29vw); pointer-events: none; }
.matiere__tete::before {
  content: ""; position: absolute; z-index: -1; inset: -60px -90px -70px -80px;
  background: radial-gradient(closest-side, rgba(238, 232, 218, .35), rgba(238, 232, 218, 0));
}
.matiere__tete h2 { font-size: clamp(2.2rem, 3.6vw, 3.8rem); }
.matiere__tete p { margin-top: 18px; color: #2b2419; font-weight: 500; }
.matiere__noms { position: absolute; inset: 0; z-index: 2; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.matiere__noms li {
  position: absolute; left: calc(var(--x, 0) * 100%); top: calc(var(--y, 0) * 100%);
  display: grid; gap: 2px; width: min(12.5vw, 180px);
  transform: translate(-28%, calc(-100% - 22px)); opacity: 0; transition: opacity .9s, transform .9s var(--doux);
}
.matiere__noms li.est-visible { opacity: 1; transform: translate(-28%, calc(-100% - 30px)); }
.matiere__noms strong { font: 400 1.35rem/1.1 var(--serif); }
.matiere__noms span { font-size: 12.5px; font-weight: 500; color: #2b2419; }
.matiere__outils {
  position: absolute; z-index: 3; left: 50%; bottom: clamp(22px, 5vh, 50px); transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px; padding: 5px;
  background: rgba(235, 231, 222, .97);
  white-space: nowrap;
}
.matiere__choix { display: flex; gap: 2px; }
.matiere__choix button, .matiere__effacer, .matiere__doigt {
  min-height: 42px; padding: 0 18px; border: 0; background: transparent; cursor: pointer;
  font: 600 13px/1 var(--sans); letter-spacing: .03em; transition: background-color .25s, color .25s;
}
.matiere__choix button:hover, .matiere__effacer:hover { background: rgba(28, 27, 23, .07); }
.matiere__choix button[aria-checked="true"] { background: var(--encre); color: var(--craie); }
.matiere__effacer { color: var(--encre-2); font-weight: 500; border-left: 1px solid rgba(28, 27, 23, .15); }
.matiere__doigt { display: none; background: var(--encre); color: var(--craie); }
.matiere__doigt[aria-pressed="true"] { background: var(--or); }
.matiere__repli { display: none; position: absolute; z-index: 2; left: var(--marge); right: var(--marge); bottom: 110px; max-width: 520px; padding: 16px 20px; background: rgba(235, 231, 222, .92); font-size: 14px; }
.sans-webgl .matiere__repli { display: block; }
.sans-webgl .matiere__outils, .sans-webgl .matiere__noms { display: none; }

/* ---------- la collection ---------- */
.collection { padding: clamp(110px, 16vh, 180px) var(--marge); }
.collection__tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 60px; padding-bottom: 34px; border-bottom: 1px solid var(--encre); }
.collection__tete p { max-width: 26rem; color: var(--encre-2); }
.collection__corps { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 110px); margin-top: 60px; }
.soin--phare .soin__image { background: #cfc7ba; }
.soin--phare img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.soin__texte { display: grid; grid-template-columns: 1fr auto; gap: 8px 30px; margin-top: 26px; }
.soin__texte h3 { font-size: clamp(1.7rem, 2.4vw, 2.3rem); }
.soin__texte > p:first-of-type { grid-column: 1; color: var(--encre-2); max-width: 30rem; }
.soin__texte .soin__prix { grid-column: 2; grid-row: 1; }
.soin__etat { grid-column: 1; font-size: 13px; color: var(--or); letter-spacing: .03em; }
.soin__texte .bouton { grid-column: 1; justify-self: start; margin-top: 14px; }
.soin__prix { font: 400 1.35rem/1.2 var(--serif); white-space: nowrap; }
.soin__prix span { margin-right: 12px; font: 500 12px/1 var(--sans); letter-spacing: .04em; color: var(--encre-2); }
.carte { margin: 0; padding: 0; list-style: none; align-self: start; }
.carte .soin { display: grid; grid-template-columns: clamp(120px, 11vw, 170px) 1fr; gap: 28px; align-items: center; padding: 26px 0; border-bottom: 1px solid rgba(28, 27, 23, .18); }
.carte .soin:first-child { padding-top: 0; }
.carte img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #cfc7ba; }
.carte p:not(.soin__prix) { margin-top: 8px; color: var(--encre-2); font-size: 14.5px; max-width: 30rem; }
.carte .soin__prix { margin-top: 12px; }
.carte .lien-trait { margin-top: 14px; }

/* ---------- le rituel ---------- */
.rituel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); background: var(--craie-2); }
.rituel__image { margin: 0; position: relative; min-height: 640px; }
.rituel__image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rituel__texte { align-self: center; padding: clamp(80px, 13vh, 150px) var(--marge); max-width: 760px; }
.gestes { margin: 46px 0 0; padding: 0; list-style: none; counter-reset: geste; }
.gestes li { counter-increment: geste; display: grid; grid-template-columns: 56px 1fr; gap: 2px 18px; padding: 22px 0; border-top: 1px solid rgba(28, 27, 23, .18); }
.gestes li::before { content: counter(geste); grid-row: span 2; font: 400 2.4rem/1 var(--serif); color: var(--or); }
.gestes strong { font: 400 1.35rem/1.25 var(--serif); }
.gestes span { color: var(--encre-2); }
.rituel__matin { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(28, 27, 23, .18); font: 400 1.15rem/1.5 var(--serif); }

/* ---------- le terroir ---------- */
.terroir { padding: clamp(100px, 15vh, 170px) var(--marge); background: var(--absinthe); color: var(--craie); }
.terroir__tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 60px; }
.terroir__tete h2 { max-width: 13em; }
.terroir__tete p { max-width: 24rem; color: var(--sauge); }
.terroir__corps { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 90px); align-items: center; margin-top: 60px; }
.carte-lac { position: relative; }
.carte-lac svg { display: block; width: 100%; height: auto; overflow: visible; }
.carte-lac__lac { fill: url(#hachure-eau); stroke: var(--or-clair); stroke-width: 1.4; }
.carte-lac__jura { fill: none; stroke: rgba(169, 174, 159, .32); stroke-width: 1; stroke-dasharray: 2 7; }
.carte-lac__riviere { fill: none; stroke: rgba(205, 178, 122, .55); stroke-width: 1.2; }
.carte-lac__nom { font: 400 22px var(--serif); letter-spacing: .32em; fill: rgba(205, 178, 122, .55); }
.carte-lac__ville { font: 500 13px var(--sans); letter-spacing: .1em; fill: var(--sauge); }
.carte-lac__maison { fill: var(--craie); }
.lieu {
  position: absolute; left: var(--x); top: var(--y);
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 10px 8px 0; margin: -20px 0 0 -7px;
  border: 0; background: none; cursor: pointer; color: var(--craie);
  font: 500 13px/1 var(--sans); letter-spacing: .06em;
}
.lieu::before {
  content: ""; width: 13px; height: 13px; border-radius: 50%; border: 1px solid var(--or-clair); background: var(--absinthe);
  transition: background-color .3s, box-shadow .4s var(--doux);
}
.lieu--gauche { flex-direction: row-reverse; padding: 8px 0 8px 10px; transform: translateX(calc(-100% + 13px)); }
.lieu:hover::before { background: rgba(205, 178, 122, .45); }
.lieu[aria-pressed="true"]::before { background: var(--or-clair); box-shadow: 0 0 0 7px rgba(205, 178, 122, .16); }
.lieu:focus-visible { outline-color: var(--or-clair); }
.lieu-fiche { animation: apparait .7s var(--doux); }
.lieu-fiche img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.lieu-fiche__distance { margin-top: 22px; font: 500 12px/1 var(--sans); letter-spacing: .06em; color: var(--or-clair); }
.lieu-fiche h3 { margin-top: 10px; }
.lieu-fiche p:last-child { margin-top: 10px; color: var(--sauge); max-width: 30rem; }

/* ---------- le salon ---------- */
.salon { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 110px); padding: clamp(110px, 16vh, 180px) var(--marge); }
.salon__images { position: relative; align-self: start; position: sticky; top: calc(var(--entete) + 24px); height: calc(100vh - var(--entete) - 48px); min-height: 520px; }
.salon__escalier { position: absolute; left: 0; top: 0; width: 64%; height: 82%; object-fit: cover; }
.salon__cabine { position: absolute; right: 0; bottom: 0; width: 46%; height: 54%; object-fit: cover; box-shadow: 0 0 0 10px var(--craie); }
.salon__texte .chapeau { margin-top: 28px; max-width: 30rem; }
.reserver { margin-top: 46px; }
.reserver fieldset { margin: 0 0 30px; padding: 0; border: 0; min-width: 0; }
.reserver legend, .allouer legend { padding: 0; margin-bottom: 14px; font: 500 12px/1 var(--sans); letter-spacing: .06em; color: var(--encre-2); }
.reserver__soins { border-top: 1px solid rgba(28, 27, 23, .18); }
.reserver__soins label { position: relative; display: block; cursor: pointer; }
.reserver__soins input { position: absolute; opacity: 0; }
.reserver__soins span { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0 16px 28px; border-bottom: 1px solid rgba(28, 27, 23, .18); transition: color .25s; }
.reserver__soins span::before { content: ""; position: absolute; left: 2px; top: 50%; width: 11px; height: 11px; margin-top: -6px; border: 1px solid var(--encre); border-radius: 50%; transition: background-color .25s, box-shadow .25s; }
.reserver__soins strong { font: 400 1.15rem/1.3 var(--serif); }
.reserver__soins em { font-style: normal; font-size: 13px; color: var(--encre-2); white-space: nowrap; }
.reserver__soins input:checked + span::before { background: var(--encre); box-shadow: inset 0 0 0 2px var(--craie); }
.reserver__soins input:focus-visible + span { outline: 1px solid var(--encre); outline-offset: 2px; }
.reserver__jours { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.jour {
  flex: 0 0 auto; display: grid; justify-items: center; gap: 3px; width: 64px; padding: 12px 0;
  border: 1px solid rgba(28, 27, 23, .2); background: transparent; cursor: pointer; scroll-snap-align: start;
  transition: border-color .25s, background-color .25s, color .25s;
}
.jour span { font-size: 11.5px; color: var(--encre-2); letter-spacing: .03em; }
.jour strong { font: 400 1.4rem/1.1 var(--serif); }
.jour:hover:not(:disabled) { border-color: var(--encre); }
.jour[aria-checked="true"] { background: var(--encre); border-color: var(--encre); color: var(--craie); }
.jour[aria-checked="true"] span { color: var(--sauge); }
.jour:disabled { cursor: not-allowed; opacity: .32; }
.reserver__heures { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 6px; }
.heure { min-height: 46px; border: 1px solid rgba(28, 27, 23, .2); background: transparent; cursor: pointer; font: 600 14px/1 var(--sans); transition: border-color .25s, background-color .25s, color .25s; }
.heure:hover:not(:disabled) { border-color: var(--encre); }
.heure[aria-checked="true"] { background: var(--encre); border-color: var(--encre); color: var(--craie); }
.heure:disabled { cursor: not-allowed; color: rgba(28, 27, 23, .3); text-decoration: line-through; }
.reserver__aide { margin-top: 10px; font-size: 13.5px; color: var(--encre-2); }
.reserver__coordonnees { display: grid; gap: 16px; }
.champ { display: grid; gap: 8px; }
.champ span { font: 500 12px/1 var(--sans); letter-spacing: .06em; color: var(--encre-2); }
.champ input {
  min-height: 50px; padding: 0 2px; border: 0; border-bottom: 1px solid var(--encre); border-radius: 0;
  background: transparent; color: var(--encre); font: 400 1.1rem var(--serif);
}
.champ input:focus { outline: none; border-bottom-width: 2px; }
.champ input[aria-invalid="true"] { border-bottom-color: #8f2a15; }
.reserver__erreur { margin: -8px 0 18px; color: #8f2a15; font-size: 14px; font-weight: 600; }
.reserver__envoi { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-top: 22px; border-top: 1px solid rgba(28, 27, 23, .18); }
.reserver__recap { font: 400 1.02rem/1.4 var(--serif); color: var(--encre-2); max-width: 22rem; }
.ticket { margin-top: 46px; padding: 40px 36px; border: 1px solid var(--encre); box-shadow: 0 0 0 5px var(--craie), 0 0 0 6px var(--encre); animation: apparait .7s var(--doux); }
.ticket:focus { outline: none; }
.ticket__titre { font: 400 2rem/1.1 var(--serif); }
.ticket__detail { margin-top: 14px; font: 400 1.15rem/1.5 var(--serif); }
.ticket__demo { margin: 18px 0 22px; font-size: 13.5px; color: var(--encre-2); }

/* ---------- l'allocation ---------- */
.allocation { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); background: var(--craie-2); }
.allocation__image { position: relative; min-height: 680px; background: #cfc7ba; }
.allocation__image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.allocation__etiquette {
  align-self: center; justify-self: center; width: min(560px, calc(100% - 2 * var(--marge)));
  margin: clamp(70px, 12vh, 130px) 0; padding: clamp(36px, 4vw, 56px);
  border: 1px solid var(--encre); box-shadow: 0 0 0 6px var(--craie-2), 0 0 0 7px var(--encre);
  text-align: center;
}
.allocation__maison { font: 500 12px/1 var(--sans); letter-spacing: .3em; }
.allocation h2 { margin-top: 22px; font-size: clamp(2.6rem, 4.4vw, 4.4rem); }
.allocation__sous { margin-top: 12px; font: 400 1.1rem/1.4 var(--serif); color: var(--encre-2); }
.allocation__regles { display: grid; grid-template-columns: 1fr 1fr; margin: 30px 0 0; border-top: 1px solid var(--encre); border-bottom: 1px solid var(--encre); }
.allocation__regles div { padding: 14px 8px; }
.allocation__regles div:nth-child(odd) { border-right: 1px solid rgba(28, 27, 23, .25); }
.allocation__regles div:nth-child(-n+2) { border-bottom: 1px solid rgba(28, 27, 23, .25); }
.allocation__regles dt { font-size: 11.5px; letter-spacing: .06em; color: var(--encre-2); }
.allocation__regles dd { margin: 4px 0 0; font: 400 1.05rem/1.3 var(--serif); }
.allouer { display: grid; gap: 22px; margin-top: 34px; text-align: left; }
.allouer__choix { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.allouer__choix legend { width: 100%; }
.allouer__choix label { position: relative; cursor: pointer; }
.allouer__choix input { position: absolute; opacity: 0; }
.allouer__choix span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border: 1px solid rgba(28, 27, 23, .3); font: 600 13px/1 var(--sans); transition: background-color .25s, color .25s, border-color .25s; }
.allouer__choix input:checked + span { background: var(--encre); border-color: var(--encre); color: var(--craie); }
.allouer__choix input:focus-visible + span { outline: 1px solid var(--encre); outline-offset: 3px; }
.allouer .bouton { justify-self: center; margin-top: 6px; }
.ticket--etiquette { box-shadow: none; border-width: 1px 0; margin-top: 34px; padding: 30px 8px; }

/* ---------- le panier ---------- */
.voile { position: fixed; inset: 0; z-index: 40; background: rgba(28, 27, 23, .38); animation: fondu .35s; }
.panier {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 41; display: flex; flex-direction: column;
  width: min(440px, 100vw); background: var(--craie); animation: glisse .5s var(--doux);
}
.panier__tete { display: flex; align-items: baseline; justify-content: space-between; padding: 30px 30px 22px; border-bottom: 1px solid var(--encre); margin: 0 30px; padding-left: 0; padding-right: 0; }
.panier__tete h2 { font-size: 2.1rem; }
.panier__fermer { padding: 6px 0; border: 0; background: none; cursor: pointer; font: 600 13px/1 var(--sans); letter-spacing: .04em; text-decoration: underline; text-underline-offset: 5px; }
.panier__liste { flex: 1 1 auto; margin: 0; padding: 0 30px; list-style: none; overflow-y: auto; }
.article { display: grid; grid-template-columns: 76px 1fr auto; gap: 18px; align-items: center; padding: 20px 0; border-bottom: 1px solid rgba(28, 27, 23, .14); }
.article img { width: 76px; height: 95px; object-fit: cover; background: #cfc7ba; }
.article__nom { font: 400 1.12rem/1.2 var(--serif); }
.article__format { font-size: 12.5px; color: var(--encre-2); }
.quantite { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; }
.quantite button { width: 30px; height: 30px; border: 1px solid rgba(28, 27, 23, .25); background: none; cursor: pointer; font-size: 15px; line-height: 1; }
.quantite button:hover { border-color: var(--encre); }
.quantite output { min-width: 24px; text-align: center; font-size: 14px; font-weight: 600; }
.article__prix { align-self: start; font: 400 1.1rem/1.2 var(--serif); }
.panier__vide { padding: 28px 30px; color: var(--encre-2); }
.panier__pied { padding: 22px 30px 30px; border-top: 1px solid var(--encre); margin: 0 30px; padding-left: 0; padding-right: 0; }
.panier__note { font-size: 13px; color: var(--encre-2); }
.panier__total { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0; }
.panier__total strong { font: 400 1.7rem/1 var(--serif); }
.panier__pied .bouton { width: 100%; }
.panier__demo { min-height: 1.5em; margin-top: 12px; font-size: 13px; color: var(--encre-2); text-align: center; }

/* ---------- pied ---------- */
.pied { padding: clamp(70px, 10vh, 110px) var(--marge) 36px; background: var(--absinthe); color: var(--craie); }
.pied__haut { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 32px; align-items: start; padding-bottom: 50px; border-bottom: 1px solid rgba(169, 174, 159, .3); }
.pied__haut p { color: var(--sauge); font-size: 14.5px; }
.pied .pied__marque { font: 400 1.6rem/1 var(--serif); letter-spacing: .44em; text-transform: uppercase; color: var(--craie); }
.pied__retour { font: 600 13px/1.4 var(--sans); letter-spacing: .04em; text-underline-offset: 5px; }
.pied__bas { display: grid; gap: 10px; padding-top: 26px; font-size: 12.5px; color: var(--sauge); max-width: 920px; }
.pied__bas a { color: var(--craie); text-underline-offset: 3px; }

@keyframes apparait { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fondu { from { opacity: 0; } }
@keyframes glisse { from { transform: translateX(100%); } }

@media (min-width: 901px) {
  .millesime__piste { width: max-content; }
}

/* ---------- tablettes ---------- */
@media (max-width: 1100px) {
  .menu { gap: 20px; }
  .entete__allocation { display: none; }
}

/* ---------- mobiles ---------- */
@media (max-width: 900px) {
  :root { --entete: 66px; }
  .entete { grid-template-columns: auto 1fr; }
  .menu { display: none; }
  .menu-bouton { display: inline-flex; }
  .marque { align-items: flex-start; }
  .marque__nom { font-size: 17px; letter-spacing: .36em; margin-right: 0; }
  .entete__actions { gap: 20px; }

  .ouverture__texte { top: calc(var(--entete) + 3vh); bottom: auto; left: var(--marge); right: var(--marge); width: auto; }
  .ouverture h1 { font-size: clamp(3rem, 14vw, 4.6rem); }
  .ouverture__sur { margin-bottom: 16px; }
  .ouverture__intro { font-size: 1.05rem; margin-top: 18px; max-width: 26rem; }
  .ouverture__actions { margin-top: 24px; gap: 14px 24px; }
  .ouverture__actions .bouton { min-height: 48px; padding: 0 22px; }
  .ouverture__note { display: none; }

  .maison { grid-template-columns: minmax(0, 1fr); }
  .maison__visage { max-width: 520px; }

  .millesime { height: auto !important; padding: 80px 0 60px; }
  .millesime__cadre { position: static; height: auto; display: block; overflow: visible; }
  .millesime__piste { transform: none !important; align-items: flex-start; padding: 0 var(--marge) 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--marge); scrollbar-width: none; }
  .millesime__piste::-webkit-scrollbar { display: none; }
  .millesime__intro, .etape, .etape--haute, .fiche { flex-basis: 78vw; scroll-snap-align: start; margin-top: 0; }
  .etape img, .etape--haute img { aspect-ratio: 4 / 5; max-height: none; }
  .fiche { align-self: flex-start; margin: 6px; }

  .matiere__tete { right: var(--marge); width: auto; top: calc(var(--entete) + 3vh); }
  .matiere__tete h2 { font-size: clamp(2rem, 8.4vw, 2.6rem); }
  .matiere__tete p { font-size: 14px; margin-top: 10px; }
  .matiere__noms li { transform: translate(-6px, calc(-100% - 22px)); width: auto; max-width: 80vw; display: flex; gap: 10px; align-items: baseline; }
  .matiere__noms li.est-visible { transform: translate(-6px, calc(-100% - 30px)); }
  .matiere__noms strong { font-size: 1.15rem; }
  .matiere__outils { left: var(--marge); right: var(--marge); transform: none; flex-wrap: wrap; justify-content: center; }
  .matiere__choix { width: 100%; justify-content: space-between; }
  .matiere__choix button { flex: 1; padding: 0 6px; }
  .matiere__doigt { display: inline-flex; align-items: center; }
  .matiere__effacer { border-left: 0; }

  .collection__corps { grid-template-columns: minmax(0, 1fr); }
  .soin__texte { grid-template-columns: 1fr; }
  .soin__texte .soin__prix { grid-column: 1; grid-row: auto; }
  .carte .soin { grid-template-columns: 110px 1fr; gap: 20px; }

  .rituel { grid-template-columns: minmax(0, 1fr); }
  .rituel__image { min-height: 0; aspect-ratio: 4 / 5; }

  .terroir { overflow: hidden; }
  .terroir__corps { grid-template-columns: minmax(0, 1fr); }
  /* sur un petit écran, la carte se recadre sur les quatre lieux */
  .carte-lac { width: 170%; margin-left: -55%; }
  .carte-lac__nom { font-size: 26px; }
  .carte-lac__ville { display: none; }
  .lieu { font-size: 12px; gap: 8px; }

  .salon { grid-template-columns: minmax(0, 1fr); }
  .salon__images { position: relative; top: 0; height: 120vw; max-height: 640px; min-height: 0; }

  .allocation { grid-template-columns: minmax(0, 1fr); }
  .allocation__image { min-height: 0; aspect-ratio: 4 / 5; }
  .allocation__etiquette { margin: 60px 0; }

  .pied__haut { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 760px) {
  .ouverture { min-height: 620px; }
  .ouverture__repli img { object-position: 50% 50%; }
  .allocation__regles { grid-template-columns: 1fr; }
  .allocation__regles div:nth-child(odd) { border-right: 0; }
  .allocation__regles div:not(:last-child) { border-bottom: 1px solid rgba(28, 27, 23, .25); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .ligne > span { transform: none; }
  .ouverture__sur, .ouverture__intro, .ouverture__actions { opacity: 1; }
}
