
/* Mise en page : une grande photo de façade en ouverture, la réservation posée juste dessous, puis des sections courtes et aérées, alignées à gauche. Fond clair uniquement (choix du propriétaire). */
:root {
  --paper: #FCFBF6;      /* blanc cassé */
  --beige: #F1EADC;      /* beige */
  --ink: #262626;        /* noir charbon */
  --ink-2: #5F5850;
  --acajou: #8C4B2D;     /* la couleur de l'action */
  --line: #E3DACA;
  --ph: #EAE2D2;         /* emplacements photo à venir */
  --white: #FFFFFF;
  --font-ui: "Montserrat", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-text: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.75rem;
  --step-3: clamp(2rem, 4vw, 3rem);
  --step-4: clamp(2.6rem, 6vw, 4.8rem);
  --wrap: 1180px;
  --gut-l: max(20px, env(safe-area-inset-left, 0px));
  --gut-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--font-text); font-size: var(--step-0); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 40; background: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--acajou); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-text); font-weight: 400; line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gut-l); padding-right: var(--gut-r); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-ui); font-weight: 500; font-size: 0.95rem;
  background: var(--acajou); color: var(--paper); border: 0; border-radius: 2px;
  padding: 13px 24px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s ease;
}
.btn:hover { background: #75391F; }
.btn-line { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.link { font-family: var(--font-ui); font-weight: 500; font-size: 0.95rem; color: var(--acajou); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; align-self: flex-start; }

/* En-tête : transparent sur la photo, plein au défilement */
.top {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 30;
  color: var(--white); transition: background-color .3s ease, color .3s ease, box-shadow .3s ease;
}
.top .wrap { display: flex; align-items: center; gap: 28px; padding-block: 18px; }
.top.solid { background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.top.solid .wrap { padding-block: 12px; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1; }
.brand b { font-family: var(--font-ui); font-weight: 600; font-size: 1.15rem; letter-spacing: 0.08em; }
.brand small { font-family: var(--font-ui); font-size: 0.7rem; margin-top: 6px; opacity: .85; }
.nav { display: flex; gap: 26px; margin-left: auto; font-family: var(--font-ui); font-size: 0.9rem; }
.nav a { text-decoration: none; opacity: .9; }
.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.lang { display: flex; gap: 10px; font-family: var(--font-ui); font-size: 0.8rem; }
.lang a { text-decoration: none; opacity: .7; }
.lang [aria-current] { opacity: 1; font-weight: 600; }
@media (max-width: 1000px) { .nav { display: none; } .lang { margin-left: auto; } }
@media (max-width: 600px) { .top .btn { display: none; } }

/* Ouverture */
.hero { position: relative; height: clamp(540px, 86vh, 880px); overflow: hidden; background: var(--ink); color: var(--white); }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,16,12,.62) 0%, rgba(20,16,12,.25) 45%, rgba(20,16,12,0) 70%), linear-gradient(180deg, rgba(20,16,12,.45) 0%, rgba(20,16,12,0) 22%, rgba(20,16,12,0) 50%, rgba(20,16,12,.55) 100%); }
.hero .wrap { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 112px; }
.hero h1 { font-size: var(--step-4); max-width: 13ch; }
.hero p { font-size: var(--step-1); margin-top: 16px; max-width: 36ch; line-height: 1.4; opacity: .95; }
.hero-tag { position: absolute; z-index: 1; right: var(--gut-r); bottom: 84px; font-family: var(--font-ui); font-size: 0.7rem; background: rgba(252,251,246,.88); color: var(--ink); padding: 4px 8px; }
@media (prefers-reduced-motion: no-preference) {
  .hero img { animation: settle 1.8s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes settle { from { transform: scale(1.06); } to { transform: scale(1); } }
}
@media (max-width: 720px) {
  .hero { height: clamp(460px, 74vh, 640px); }
  .hero .wrap { padding-bottom: 40px; }
  .hero img { object-position: 62% 50%; }
  .hero-tag { bottom: auto; top: 84px; }
  .hero::after { background: linear-gradient(180deg, rgba(20,16,12,.45) 0%, rgba(20,16,12,.1) 30%, rgba(20,16,12,.7) 100%); }
}

/* Réservation, posée sur la photo */
.book { position: relative; z-index: 2; margin-top: -64px; }
.book form {
  background: var(--paper); box-shadow: 0 18px 40px -24px rgba(38,38,38,.45);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1.3fr)) repeat(2, minmax(0, 1fr)) auto;
  gap: 16px; align-items: end; padding: 22px 24px;
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-family: var(--font-ui); font-size: 0.78rem; color: var(--ink-2); }
.field input, .field select {
  font: 500 0.95rem var(--font-ui); color: var(--ink); background: var(--white);
  border: 1px solid var(--line); border-radius: 2px; padding: 11px 12px; width: 100%; min-width: 0;
}
.book-note { margin-top: 12px; font-family: var(--font-ui); font-size: 0.8rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px 24px; }
.book-note strong { font-weight: 600; color: var(--ink); }
#book-status { color: var(--acajou); }
@media (max-width: 820px) {
  .book { margin-top: 0; background: var(--beige); padding-block: 20px; }
  .book form { grid-template-columns: repeat(2, minmax(0, 1fr)); box-shadow: none; padding: 0; background: transparent; }
  .book .btn { grid-column: 1 / -1; }
}

/* Sections */
.section { padding-block: 104px 0; }
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 48px; margin-bottom: 36px; }
.head h2 { font-size: var(--step-3); }
.head p { color: var(--ink-2); max-width: 46ch; }
@media (max-width: 720px) { .section { padding-block: 72px 0; } }

/* Chambres */
.rooms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 28px; list-style: none; margin: 0; padding: 0; }
.room { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.room figure { margin: 0 0 6px; overflow: hidden; background: var(--ph); }
.room img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.room:hover img { transform: scale(1.03); }
.room h3 { font-size: var(--step-2); }
.room p { color: var(--ink-2); }
@media (max-width: 960px) { .rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .rooms { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
  .rooms::-webkit-scrollbar { display: none; }
  .room { flex: 0 0 82%; scroll-snap-align: start; }
}

/* Emplacements photo */
.ph { background: var(--ph); display: flex; align-items: flex-end; padding: 16px; font-family: var(--font-ui); font-size: 0.78rem; color: var(--ink-2); }

/* Piscine */
.pool { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.ph-img { position: relative; margin: 0; overflow: hidden; background: var(--ph); }
.ph-img img { width: 100%; object-fit: cover; }
.pool-img img { aspect-ratio: 4 / 3; }
.season-img img { aspect-ratio: 16 / 10; }
.ai-tag { position: absolute; right: 10px; bottom: 10px; font-family: var(--font-ui); font-size: 0.7rem; background: rgba(252,251,246,.88); color: var(--ink); padding: 4px 8px; }
.pool h2 { font-size: var(--step-3); }
.pool p { margin-top: 18px; color: var(--ink-2); max-width: 40ch; }
.hours { margin-top: 26px; font-family: var(--font-ui); display: flex; align-items: baseline; gap: 12px; color: var(--ink); }
.hours b { font-family: var(--font-text); font-weight: 400; font-size: var(--step-3); font-variant-numeric: tabular-nums; }
@media (max-width: 820px) { .pool { grid-template-columns: 1fr; gap: 28px; } }

/* Saisons */
.seasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.season { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.season h3 { font-size: var(--step-2); margin-top: 6px; }
.season p { color: var(--ink-2); max-width: 46ch; }
@media (max-width: 720px) { .seasons { grid-template-columns: 1fr; } }

/* Cure et séminaires */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--beige); }
.duo > div { padding: 44px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.duo > div + div { border-left: 1px solid var(--line); }
.duo h3 { font-size: var(--step-2); }
.duo p { color: var(--ink-2); max-width: 44ch; }
@media (max-width: 720px) {
  .duo { grid-template-columns: 1fr; }
  .duo > div { padding: 28px 24px; }
  .duo > div + div { border-left: 0; border-top: 1px solid var(--line); }
}

/* Accès */
.access { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; }
.access h2 { font-size: var(--step-3); }
.access .btn-line { margin-top: 24px; }
.access dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 28px; align-content: start; }
.access dt { font-family: var(--font-ui); color: var(--ink-2); font-size: 0.8rem; padding-top: 4px; }
.access dd { margin: 0; font-size: var(--step-1); overflow-wrap: anywhere; }
.access address { font-style: normal; }
.access dd a { text-decoration: none; }
@media (max-width: 820px) { .access { grid-template-columns: 1fr; gap: 28px; } }

/* Pied de page */
.foot { margin-top: 112px; background: var(--ink); color: var(--paper); }
.foot .wrap { padding-block: 52px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; }
.foot-facade { width: 132px; color: var(--paper); opacity: .85; margin-bottom: 18px; }
.foot-facade svg { width: 100%; height: auto; display: block; }
.foot-facade svg path { fill: currentColor; }
.sister { font-size: var(--step-1); line-height: 1.45; max-width: 30ch; }
.sister a { color: var(--paper); }
.legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 24px; font-family: var(--font-ui); font-size: 0.78rem; border-top: 1px solid rgba(252,251,246,.2); padding-top: 20px; }
.legal a { text-decoration: none; opacity: .75; }
.legal span { margin-left: auto; opacity: .55; }
@media (max-width: 720px) { .foot .wrap { grid-template-columns: 1fr; } .legal span { margin-left: 0; } }

/* Barre mobile */
.mobile-book { display: none; }
@media (max-width: 720px) {
  .mobile-book {
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--paper);
    box-shadow: 0 -1px 0 var(--line);
    padding: 10px var(--gut-r) calc(10px + env(safe-area-inset-bottom, 0px)) var(--gut-l);
    transform: translateY(110%); transition: transform .3s ease;
  }
  .mobile-book.show { transform: none; }
  body { padding-bottom: 76px; }
}

/* ---- Ajouts mise en ligne ---- */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/montserrat-400.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/montserrat-500.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/montserrat-600.woff2) format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/newsreader-opsz.woff2) format("woff2"); }

body { margin: 0; }
[hidden] { display: none !important; }
.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 { position: absolute; left: 12px; top: -60px; z-index: 60; background: var(--ink); color: var(--paper); padding: 10px 14px; font-family: var(--font-ui); font-size: .9rem; }
.skip:focus { top: 12px; }
.foot-facade img { width: 100%; height: auto; display: block; }

/* Âges des enfants (demandés par le moteur de réservation) */
.ages { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px 16px; }
.ages[hidden] { display: none; }
.ages .field { width: 150px; }

/* Bouton texte dans le pied de page */
.legal button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; opacity: .75; }
.legal button:hover, .legal a:hover { opacity: 1; text-decoration: underline; }

/* Bandeau de consentement */
.consent { position: fixed; z-index: 50; left: var(--gut-l); right: var(--gut-r); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); max-width: 560px; margin-left: auto;
  background: var(--paper); color: var(--ink); box-shadow: 0 18px 50px -18px rgba(38,38,38,.55); border: 1px solid var(--line); padding: 22px 24px; font-family: var(--font-ui); font-size: .85rem; line-height: 1.5; }
.consent[hidden] { display: none; }
.consent h2 { font-family: var(--font-text); font-size: 1.35rem; margin: 0 0 8px; }
.consent p a { color: var(--acajou); }
.consent .opts { margin: 14px 0 0; padding: 0; border: 0; display: grid; gap: 8px; }
.consent .opts[hidden] { display: none; }
.consent label { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.consent input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--acajou); }
.consent .row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.consent .btn { padding: 11px 18px; font-size: .85rem; flex: 1 1 auto; }
@media (max-width: 720px) { .consent { left: 10px; right: 10px; bottom: 10px; padding: 18px; } }

/* Pages légales */
.page { padding: 140px 0 40px; }
.page .wrap { max-width: 820px; }
.page h1 { font-size: var(--step-3); margin-bottom: 28px; }
.page h2 { font-size: var(--step-2); margin: 40px 0 12px; }
.page p, .page li { color: var(--ink-2); margin: 0 0 12px; }
.page ul { padding-left: 1.2em; }
.page a { color: var(--acajou); }
.page table { border-collapse: collapse; width: 100%; font-family: var(--font-ui); font-size: .82rem; margin: 8px 0 16px; }
.page th, .page td { text-align: left; border-bottom: 1px solid var(--line); padding: 8px 10px 8px 0; vertical-align: top; }
.todo { background: #FFE9A8; color: #5a3d00; padding: 0 4px; font-family: var(--font-ui); font-size: .85em; }
.top.solid-fixed { background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
