/* La fermette Autarcie : le fond glisse doucement de la crème au vert du logo; grandes photos, peu de mots.
   L'en-tête passe au vert foncé sur fond clair (site.js), la réservation vit dans la finale verte. */
@font-face { font-family: "Goudy"; src: url("assets/fonts/goudy-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Goudy"; src: url("assets/fonts/goudy-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Sans"; src: url("assets/fonts/sourcesans.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  --or: #E7A55A;  --peche: #D9875E;  --rose: #B8666A;  --mauve: #5E4466;  --bleu: #26304A;  --nuit: #0E1522;
  --creme: #F7EDD7;  --creme-douce: #E6D6BC;  --ampoule: #FFD58A;
  --vert: #68693E;  --vert-fonce: #474826;  --encre: #2A2A17;  --encre-douce: #4A4A30;
  --sc-canvas: #F4EAD3;  --sc-surface: #1A2233;
  --sc-ink: var(--creme);  --sc-ink-soft: var(--creme-douce);
  --sc-accent: var(--ampoule);  --sc-accent-ink: #1A1408;
  --sc-font-display: "Goudy", "Iowan Old Style", Georgia, serif;
  --sc-font-text: "Source Sans", system-ui, sans-serif;
}
html { scroll-padding-top: 150px; }
body { color: var(--creme); transition: none; }
.sc-display { font-weight: 400; letter-spacing: -0.015em; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.evitement { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 12px 16px; background: var(--nuit); color: var(--creme); }
.evitement:focus { top: 12px; }
:focus-visible { outline-color: var(--ampoule); }

.logo-complet, .logo-fa { display: block; background-color: currentColor; }
.logo-complet { aspect-ratio: 947 / 728; -webkit-mask: url("assets/logo-complet.svg") center / contain no-repeat; mask: url("assets/logo-complet.svg") center / contain no-repeat; }
.logo-fa { aspect-ratio: 770 / 618; -webkit-mask: url("assets/logo-fa.svg") center / contain no-repeat; mask: url("assets/logo-fa.svg") center / contain no-repeat; }

/* ── En-tête : logo, réserver ──────────────────────────────────────── */
.entete { position: fixed; z-index: 40; inset: 0 0 auto 0; display: grid; grid-template-columns: 1fr; grid-auto-flow: column; gap: 10px; align-items: center; padding: 14px 22px; pointer-events: none; }
.entete > * { pointer-events: auto; }
.entete [hidden] { display: none; } /* .reserver (inline-flex) annulerait l'attribut hidden */
.entete::before { content: ""; position: absolute; inset: 0 0 -30px; z-index: -1; pointer-events: none; background: linear-gradient(color-mix(in oklab, var(--sc-canvas) 88%, transparent) 55%, transparent); opacity: var(--voile, 0); transition: opacity 300ms; }
.est-defile .entete::before { --voile: 1; }
.sur-grange .entete::before { --voile: 0; }
.marque { position: relative; isolation: isolate; color: #F7EDD7; justify-self: start; padding: 4px; filter: drop-shadow(0 1px 2px rgb(40 18 4 / .7)) drop-shadow(0 3px 14px rgb(40 18 4 / .6)); }
/* Ombre douce derrière le logo : il reste lisible devant le soleil de l'ouverture. */
.marque::before { content: ""; position: absolute; inset: -18% -22%; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgb(40 18 4 / .48), rgb(40 18 4 / .22) 60%, transparent); }
.marque .logo-complet { height: 105px; }
.reserver { justify-self: end; display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid color-mix(in oklab, var(--creme) 70%, transparent); color: var(--creme); text-decoration: none; backdrop-filter: blur(6px); background: rgb(14 21 34 / .22); transition: background-color 200ms, color 200ms; }
.reserver:hover { background: var(--ampoule); color: var(--nuit); border-color: var(--ampoule); }
/* Fond clair (crème) : le logo et le bouton passent au vert; l'ombre du logo ne sert qu'au-dessus de la photo d'ouverture. */
.marque::before { transition: opacity 300ms; }
.est-defile .marque::before { opacity: 0; }
.marque, .reserver { transition: color 300ms, background-color 200ms, border-color 300ms; }
.fond-clair.est-defile .marque { color: var(--vert-fonce); filter: none; }
.fond-clair.est-defile .reserver { color: var(--vert-fonce); border-color: color-mix(in oklab, var(--vert-fonce) 70%, transparent); background: rgb(255 255 255 / .25); }

/* ── Acte 1 : l'heure dorée (pin) ────────────────────────────────────── */
.doree [data-sc-stage] { height: 100svh; overflow: hidden; }
.doree__photo { position: absolute; inset: 0; margin: 0; }
.doree__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; scale: calc(1.1 - var(--sc-p, 0) * .1); }
.doree__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgb(30 16 6 / .28), rgb(30 16 6 / .42)); }
.doree__soleil { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; background: radial-gradient(ellipse 60% 50% at 38% 32%, rgb(255 190 110 / .35), transparent 70%); }
.doree__texte { position: absolute; z-index: 3; left: 7vw; bottom: 13svh; max-width: 60rem; }
.doree h1 { margin: 0; font-size: clamp(2.8rem, 1.4rem + 5.2vw, 6.6rem); line-height: .95; text-shadow: 0 2px 24px rgb(40 20 0 / .45); }
.doree h1 em { display: block; color: var(--ampoule); }
/* Le voile du bas assombrit sous le texte; seule une mince bande se fond dans la crème de la section suivante. */
.doree .sc-scrim--bottom { background: linear-gradient(0deg, color-mix(in oklab, var(--sc-canvas) 85%, transparent) 0%, transparent 8%), linear-gradient(0deg, rgb(30 16 6 / .55), rgb(30 16 6 / .2) 55%, transparent 80%); }
.doree__avis { margin: 28px 0 0; max-width: 34rem; padding-left: 16px; border-left: 2px solid color-mix(in oklab, var(--ampoule) 70%, transparent); text-shadow: 0 1px 12px rgb(40 20 0 / .6); }
.doree__avis blockquote { margin: 0; }
.doree__avis p { margin: 0; font: italic 400 clamp(1.05rem, .98rem + .3vw, 1.25rem)/1.45 var(--sc-font-display); }
.doree__avis figcaption { margin-top: 6px; font-size: .95rem; color: var(--creme-douce); }
.doree__avis figcaption::before { content: "— "; }

/* ── Moments en flux : la photo dans le ciel ─────────────────────────── */
.moment { padding: clamp(5rem, 12vw, 10rem) var(--sc-gutter); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: clamp(2rem, 5vw, 5rem); align-items: end; max-width: 92rem; margin: 0 auto; }
.moment--inverse { grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); }
.moment--inverse .moment__texte { order: -1; }
.moment figure { margin: 0; }
.moment img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; box-shadow: 0 30px 60px -30px rgb(0 0 0 / .55); }
.moment h2 { margin: 0 0 14px; font-size: clamp(2.2rem, 1.4rem + 2.8vw, 4rem); line-height: 1; }
.moment p { margin: 0; font-size: 1.12rem; line-height: 1.6; max-width: 24rem; }

/* ── Le four (pin, lent zoom) ────────────────────────────────────────── */
.four [data-sc-stage] { height: 100svh; overflow: hidden; display: grid; place-items: center; }
.four__cadre { position: relative; width: min(84vw, 1200px); height: 78svh; overflow: hidden; border-radius: 2px; box-shadow: 0 40px 80px -40px rgb(0 0 0 / .6); }
.four__cadre img { width: 100%; height: 100%; object-fit: cover; scale: calc(1.22 - var(--sc-p, 0) * .22); transform-origin: 50% 55%; }
.four__texte { position: absolute; left: 0; right: 0; bottom: 0; padding: 18svh 4vw 5svh; background: linear-gradient(transparent, rgb(30 12 6 / .72)); }
.four__texte h2 { margin: 6px 0 0; font-size: clamp(2.2rem, 1.4rem + 3vw, 4.4rem); line-height: 1; }

/* ── La table (pan) ──────────────────────────────────────────────────── */
.table [data-sc-stage] { height: 100svh; display: flex; align-items: center; overflow: hidden; }
.table__rail { display: flex; gap: clamp(1rem, 2.4vw, 2.2rem); padding: 0 7vw; align-items: center; }
.table__intro { flex: 0 0 min(24rem, 74vw); }
.table__intro h2 { margin: 0; font-size: clamp(2.2rem, 1.4rem + 2.8vw, 4rem); line-height: 1; }
.table__rail figure { margin: 0; flex: 0 0 auto; }
.table__rail img { height: min(70svh, 640px); width: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 2px; box-shadow: 0 30px 60px -30px rgb(0 0 0 / .6); }
.table__rail figure:nth-of-type(even) img { height: min(56svh, 520px); }

/* ── Les lumières (signature + peak, pin) : reprend lumieres.js du site ─ */
.lumieres [data-sc-stage] { height: 100svh; overflow: hidden; }
.lumieres__nuit { position: absolute; inset: 0; margin: 0; }
.lumieres__nuit img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.nuit__eteinte { filter: brightness(.38) saturate(.5) hue-rotate(8deg); }
.nuit__allumee { -webkit-mask-image: var(--masque, linear-gradient(transparent, transparent)); mask-image: var(--masque, linear-gradient(transparent, transparent)); }
.nuit__pleine { opacity: var(--plein, 0); will-change: opacity; }
.nuit__halos { position: absolute; inset: 0; mix-blend-mode: screen; background: var(--halos, none); pointer-events: none; opacity: calc(1 - var(--plein, 0) * 0.6); }
.lumieres__nuit { will-change: transform; }

/* ── Le retour (close) ───────────────────────────────────────────────── */
.retour { padding: clamp(5rem, 10vw, 9rem) var(--sc-gutter) 0; }
.retour__haut { max-width: 46rem; margin: 0 auto; text-align: center; }
.retour h2 { margin: 0 0 18px; font-size: clamp(2.6rem, 1.6rem + 3.6vw, 5rem); line-height: 1; }
.retour h2 em { color: var(--ampoule); }
.retour__haut p { font-size: 1.15rem; line-height: 1.65; color: var(--creme-douce); }
.bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 30px; border: 0; border-radius: 999px; font: 600 1rem/1 var(--sc-font-text); cursor: pointer; background: var(--ampoule); color: var(--nuit); font-weight: 600; text-decoration: none; transition: transform 200ms var(--sc-ease-out), background-color 200ms; }
.bouton:hover { transform: translateY(-2px); background: #FFE2AE; }
.lien { color: inherit; text-underline-offset: .22em; display: inline-block; min-height: 44px; line-height: 44px; }
.fleurs { display: grid; grid-template-columns: 10rem 1fr; gap: 24px; align-items: center; max-width: 46rem; margin: clamp(3.5rem, 7vw, 5rem) auto 0; }
.fleurs img { width: 10rem; height: 12.5rem; object-fit: cover; border-radius: 2px; }
.fleurs p { margin: 0; color: var(--creme-douce); line-height: 1.6; }
.fleurs strong { color: var(--creme); font-weight: 400; font-family: var(--sc-font-display); font-style: italic; font-size: 1.3rem; display: block; margin-bottom: 4px; }
.infos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; max-width: 72rem; margin: clamp(4rem, 8vw, 6rem) auto 0; padding-top: 2rem; border-top: 1px solid rgb(247 237 215 / .18); }
.infos h3 { margin: 0 0 6px; font: 600 .95rem var(--sc-font-text); color: var(--ampoule); }
.infos p { margin: 0; line-height: 1.6; color: var(--creme-douce); }
.pied { display: flex; align-items: center; gap: 16px; padding: 4rem var(--sc-gutter) 3rem; color: var(--creme-douce); font-size: .9rem; max-width: 72rem; margin: 0 auto; }
.pied .logo-fa { height: 44px; flex: none; color: var(--creme); }

/* ── Page des forfaits (sans moteur de défilement, sur le vert) ────── */
.page-forfaits { --sc-canvas: #68693E; background: var(--vert); }
.page-forfaits .marque { filter: none; } .page-forfaits .marque::before { display: none; } /* l'ombre ne sert que sur la photo d'ouverture */
.forfaits { max-width: 72rem; margin: 0 auto; padding: 170px var(--sc-gutter) 2rem; }
.forfaits [hidden] { display: none !important; }
.forfaits__haut { max-width: 46rem; margin: 0 auto 3rem; text-align: center; }
.forfaits__haut h1 { margin: 0 0 18px; font-size: clamp(2.4rem, 1.6rem + 3vw, 4.4rem); line-height: 1.05; }
.forfaits__haut p { margin: 0; font-size: 1.15rem; line-height: 1.65; color: var(--creme-douce); }
.forfaits__cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 24px; }
.forfait { display: flex; flex-direction: column; gap: 10px; padding-bottom: 22px; border-radius: 10px; overflow: hidden; background: rgb(20 22 8 / .22); border: 1px solid color-mix(in oklab, var(--creme) 25%, transparent); }
.forfait > :not(img) { margin: 0 22px; }
.forfait img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.forfait h2 { margin-top: 8px; font: 400 1.7rem/1.15 var(--sc-font-display); }
.forfait h3 { font: 600 .85rem var(--sc-font-text); letter-spacing: .05em; text-transform: uppercase; color: var(--ampoule); }
.forfait p { line-height: 1.55; color: var(--creme-douce); }
.forfait p.forfait__prix { margin-top: auto; padding-top: 8px; color: var(--creme); font-weight: 600; }
.forfait .bouton { align-self: flex-start; }
.forfaits__form, .forfaits__merci { max-width: 46rem; margin: 4rem auto 0; display: grid; gap: 18px; scroll-margin-top: 150px; }
.forfaits__form h2, .forfaits__merci h2 { margin: 0; }
.forfaits__contact { margin: 3rem 0 0; text-align: center; color: var(--creme-douce); }

/* ── Téléphone ───────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .entete { padding: 10px 12px; grid-template-columns: auto 1fr; gap: 8px; }
  .marque .logo-complet { height: 80px; }
  .reserver { padding: 0 14px; min-height: 46px; }
  .forfaits { padding-top: 130px; }
  .doree__texte { left: 20px; right: 20px; bottom: 9svh; }
  .moment, .moment--inverse { grid-template-columns: 1fr; gap: 1.5rem; padding-block: 4.5rem; }
  .moment--inverse .moment__texte { order: 0; }
  .moment img { aspect-ratio: 4 / 5; }
  .four__cadre { width: calc(100vw - 32px); height: 74svh; }
  .table__rail img, .table__rail figure:nth-of-type(even) img { height: 56svh; }
  .fleurs { grid-template-columns: 7rem 1fr; }
  .fleurs img { width: 7rem; height: 8.75rem; }
  .infos { grid-template-columns: 1fr; gap: 1.2rem; }
}
/* Très petits téléphones (320 px) : logo plus petit pour garder Forfaits et Réserver sur une ligne. */
@media (max-width: 359px) { .marque .logo-complet { height: 66px; } .reserver { padding: 0 12px; } }
@media (prefers-reduced-motion: reduce) {
  .reserver, .bouton { transition: none; }
  .four__cadre img, .doree__photo img { scale: 1; }
}
/* Sections sur fond crème ou vert pâle : encre foncée. */
.table, .moment--inverse, .histoire { color: var(--encre); }
/* Mouvement réduit : le moteur fige le rail; on le rend glissable à la main. */
@media (prefers-reduced-motion: reduce) { .table [data-sc-stage] { overflow-x: auto; overscroll-behavior-x: contain; } }

/* ── Notre histoire (flow, fond crème) ───────────────────────────────── */
.histoire { color: var(--encre); padding: clamp(4rem, 9vw, 8rem) var(--sc-gutter); }
.histoire__grille { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px 64px; align-items: center; max-width: 76rem; margin: 0 auto; }
.histoire__texte { max-width: 36rem; }
.histoire h2 { margin: 0 0 20px; font-size: clamp(2.2rem, 1.4rem + 2.8vw, 4rem); line-height: 1; }
.histoire__texte > p { margin: 0 0 14px; font-size: 1.12rem; line-height: 1.6; color: var(--encre-douce); }
.histoire figure { margin: 0; }
.histoire img { display: block; width: 100%; height: auto; border-radius: 2px; box-shadow: 0 30px 60px -30px rgb(0 0 0 / .45); }
.histoire__portrait { max-width: 30rem; justify-self: end; }
.histoire figcaption { margin-top: 10px; font: italic 400 1rem var(--sc-font-display); color: var(--encre-douce); }
.citation { margin: 24px 0 0; padding-left: 18px; border-left: 2px solid var(--vert); font: italic 400 1.35rem/1.35 var(--sc-font-display); }
.citation p { margin: 0; }
.citation footer { margin-top: 6px; font: 400 .95rem var(--sc-font-text); color: var(--encre-douce); }
.citation footer::before { content: "— "; }

/* ── Réservation (dans la finale verte) ──────────────────────────────── */
.resa-bloc { max-width: 46rem; margin: 1.6rem auto 0; }
.resa-bloc > .sc-body { max-width: none; margin: 0 auto 2.4rem; text-align: center; font-size: 1.15rem; line-height: 1.65; color: var(--creme-douce); }
.retour__bas { text-align: center; margin-top: 2rem; }
.bouton--discret { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
.bouton--discret:hover { background: rgb(255 255 255 / .1); }
.resa fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 18px; }
.resa [hidden] { display: none !important; } /* les règles display des classes annuleraient l'attribut hidden */
.resa legend { font: 400 1.6rem/1.2 var(--sc-font-display); margin-bottom: 12px; padding: 0; }
.resa__mois h3 { font: 600 .95rem var(--sc-font-text); letter-spacing: .03em; margin: 18px 0 10px; text-transform: capitalize; color: var(--ampoule); }
.resa__grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.resa__date { display: grid; gap: 2px; justify-items: center; min-height: 84px; padding: 10px 6px; border: 1px solid color-mix(in oklab, var(--creme) 35%, transparent); border-radius: 8px; background: rgb(20 22 8 / .22); color: var(--creme); font: inherit; cursor: pointer; transition: transform 160ms var(--sc-ease-out), border-color 160ms, background-color 160ms; }
.resa__date:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--ampoule); }
.resa__date[aria-pressed="true"] { border-color: var(--ampoule); background: color-mix(in oklab, var(--ampoule) 24%, var(--vert)); }
.resa__date:disabled { opacity: .6; cursor: not-allowed; background: transparent; }
.resa__date:disabled .resa__p { color: var(--creme-douce); }
.resa__j { font-size: .8rem; opacity: .85; } .resa__n { font: 400 1.7rem/1 var(--sc-font-display); } .resa__p { font-size: .75rem; color: var(--ampoule); min-height: 1em; }
.resa__note { margin: 0; color: var(--creme-douce); }
.resa__compteur { display: flex; align-items: center; gap: 18px; }
.resa__pas { width: 48px; height: 48px; border-radius: 50%; border: 1px solid currentColor; background: transparent; color: inherit; font-size: 1.4rem; cursor: pointer; }
.resa__pas:disabled { opacity: .35; cursor: not-allowed; }
.resa__compteur output { min-width: 2ch; text-align: center; font: 400 2.4rem/1 var(--sc-font-display); }
.resa__champs { display: grid; gap: 4px; }
.resa__champs label { display: block; font-size: .95rem; }
.resa__champs input, .resa__champs textarea, .resa__champs select { display: block; width: 100%; margin-top: 6px; }
.resa input, .resa textarea, .resa select { min-height: 46px; padding: 10px 12px; border-radius: 6px; border: 1px solid color-mix(in oklab, var(--creme) 40%, transparent); background: rgb(20 22 8 / .25); color: var(--creme); font: inherit; }
.resa input:focus, .resa textarea:focus, .resa select:focus { border-color: var(--ampoule); outline: none; }
.resa input[aria-invalid="true"] { border-color: #FFB4A2; }
.resa__erreur { margin: 0 0 8px; min-height: 1.2em; font-size: .9rem; color: #FFC9B8; }
.facultatif { opacity: .75; font-size: .85rem; }
.resa__recap { display: grid; grid-template-columns: auto 1fr; gap: 8px 24px; margin: 0; }
.resa__recap dt { color: var(--creme-douce); } .resa__recap dd { margin: 0; text-align: right; }
.resa__recap dt:last-of-type, .resa__recap dd:last-of-type { font-weight: 700; border-top: 1px solid color-mix(in oklab, var(--creme) 30%, transparent); padding-top: 8px; }
.resa__actions { display: flex; gap: 12px; justify-content: space-between; margin-top: 8px; }
.resa__merci h3 { margin: 0 0 12px; }
.resa__merci p { line-height: 1.6; }
@media (max-width: 760px) {
  .histoire__grille { grid-template-columns: 1fr; gap: 2rem; }
}
