/* Château d'Herbelon — feuille de style. Direction « Domaine » : Garamond, pierre claire et lierre, filets fins.
   Mise en page : la photo d'abord, une entrée par raison de venir, une année en deux couleurs,
   des prix affichés comme sur une carte. */
:root {
  --bg: #f5f3ee;            /* pierre claire */
  --surface: #ebe8e0;
  --card: #fbfaf7;
  --ink: #1d2a24;           /* vert presque noir */
  --soft: #6d695f;          /* lauze */
  --line: rgba(29, 42, 36, 0.2);
  --accent: #1f3a2f;        /* lierre */
  --accent-ink: #f5f3ee;
  --accent-inv: #f5f3ee;
  --accent-inv-ink: #1d2a24;
  --summer: #e8dcc5;        /* lin, sable de la plage */
  --summer-ink: #1d2a24;
  --summer-strong: #2c7a80;  /* lac */
  --tint: #e4e8df;
  --dark: #1f3a2f;
  --dark-ink: #f1efe8;
  --dark-soft: #a9b8ae;
  --foot: #17251e;
  --now: #e6b84d;
  --f-display: "Cormorant Garamond Variable", "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --f-body: "Instrument Sans Variable", "Helvetica Neue", Arial, sans-serif;
  --f-voice: var(--f-display);
  --voice-style: italic;
  --voice-w: 500;
  --d-w: 500;
  --d-track: -0.012em;
  --d-lh: 1.02;
  --d-var: normal;
  --d-stretch: 100%;
  --d1: clamp(3rem, 7.2vw, 6.2rem);
  --d2: clamp(2.3rem, 4.8vw, 3.9rem);
  --d3: clamp(1.6rem, 2.4vw, 2rem);
  --r: 2px;
  --r-door: 2px;
  --r-btn: 2px;
  --r-card: 2px;
  --btn-case: none;
  --btn-track: 0.01em;
  --wrap: 1180px;
  --gutter: clamp(18px, 4vw, 40px);
  --section: clamp(60px, 8.5vw, 120px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--summer-strong); outline-offset: 3px; }
h1[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */
.d1, .d2, .d3 {
  font-family: var(--f-display);
  font-weight: var(--d-w);
  font-stretch: var(--d-stretch);
  font-variation-settings: var(--d-var);
  letter-spacing: var(--d-track);
  line-height: var(--d-lh);
  text-wrap: balance;
}
.d1 { font-size: var(--d1); }
.d2 { font-size: var(--d2); }
.d3 { font-size: var(--d3); line-height: 1.1; }
.voice, .doors-title, .news-title, .days b, .carte h3, .quotes p, .foot-sign {
  font-family: var(--f-voice);
  font-style: var(--voice-style);
  font-weight: var(--voice-w);
  font-variation-settings: var(--d-var);
}
.lede { font-size: clamp(1.08rem, 1.5vw, 1.24rem); line-height: 1.5; max-width: 34em; }
.muted { color: var(--soft); }
.small { font-size: 0.86rem; }
p { max-width: 38em; }

/* ---------- Boutons et liens ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 26px;
  border: 1px solid transparent; border-radius: var(--r-btn);
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--f-body); font-size: 0.92rem; font-weight: 600; letter-spacing: var(--btn-track); text-transform: var(--btn-case);
  text-decoration: none; cursor: pointer;
  transition: opacity .15s ease, transform .15s ease;
}
.btn:hover { opacity: 0.86; }
.btn:active { transform: translateY(1px); }
.btn-line { background: transparent; color: inherit; border-color: currentColor; }
.hero .btn, .on-dark .btn-main, .cta-band .btn-main { background: var(--accent-inv); color: var(--accent-inv-ink); }
.on-summer .btn-main, .cta-band.summer .btn-main { background: var(--ink); color: var(--bg); }
.textlink { font-weight: 600; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.textlink:hover { text-decoration-thickness: 2px; }

/* ---------- En-tête ---------- */
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 95%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.head-in { display: flex; align-items: center; gap: 22px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; margin-right: auto; color: var(--ink); }
.brand-mark { width: 27px; height: 35px; flex: none; }
.brand-text { display: flex; flex-direction: column; gap: 3px; line-height: 1; }
.brand-pre { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--soft); }
.brand-word { font-family: var(--f-display); font-weight: 500; font-size: 1.95rem; letter-spacing: 0.005em; line-height: 0.9; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { padding: 8px 9px; text-decoration: none; font-weight: 500; font-size: 0.92rem; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--ink); }
.head-tools { display: flex; align-items: center; gap: 14px; }
.lang { display: inline-flex; gap: 2px; }
.lang button { border: 0; background: transparent; color: var(--soft); font: 600 0.8rem var(--f-body); letter-spacing: 0.06em; padding: 8px 5px; cursor: pointer; }
.lang button[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.head-cta { min-height: 42px; padding: 0 18px; font-size: 0.86rem; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--r-btn); background: transparent; cursor: pointer; padding: 0; }
.burger span, .burger span::before, .burger span::after { display: block; width: 20px; height: 1.5px; background: var(--ink); margin: 0 auto; position: relative; content: ""; }
.burger span::before { position: absolute; top: -6px; }
.burger span::after { position: absolute; top: 6px; }
@media (max-width: 1140px) {
  .burger { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 6px var(--gutter) 18px; }
  .nav.open { display: flex; }
  .nav a { padding: 15px 2px; font-size: 1.08rem; border-bottom: 1px solid var(--line); box-shadow: none !important; }
  .head-cta { display: none; }
}

/* ---------- Héro ---------- */
.hero { position: relative; color: #fff; background: var(--dark); }
.hero-photo { width: 100%; height: clamp(480px, 58vw, 740px); object-fit: cover; object-position: 72% 50%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 20, 16, 0.78) 0%, rgba(8, 20, 16, 0.36) 40%, rgba(8, 20, 16, 0) 68%); pointer-events: none; }
.hero-text { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 16px; padding-bottom: clamp(30px, 5vw, 64px); }
.hero-where { font-family: var(--f-voice); font-style: var(--voice-style); font-weight: var(--voice-w); font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.2; }
.hero h1 { max-width: 13em; }
.hero .lede { max-width: 32em; color: #f1f4f1; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 8px; }
@media (prefers-reduced-motion: no-preference) {
  .hero-text > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) backwards; }
  .hero-text > *:nth-child(2) { animation-delay: .07s; }
  .hero-text > *:nth-child(3) { animation-delay: .14s; }
  .hero-text > *:nth-child(4) { animation-delay: .21s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
}
@media (max-width: 640px) {
  .hero-photo { height: 620px; object-position: 80% 50%; }
  .hero::after { background: linear-gradient(0deg, rgba(8, 20, 16, 0.9) 0%, rgba(8, 20, 16, 0.5) 52%, rgba(8, 20, 16, 0.05) 100%); }
}

/* ---------- Les quatre entrées ---------- */
.doors { padding-top: clamp(40px, 6vw, 80px); }
.doors-title { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.1; margin-bottom: clamp(18px, 2.6vw, 30px); }
.doors-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); }
@media (max-width: 1100px) { .doors-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 34px; } }
.door { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.door-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-door); transition: transform .35s ease; }
.door:hover .door-photo { transform: translateY(-6px); }
.door-body { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; flex: 1; }
.season { display: inline-flex; align-items: center; gap: 8px; font-size: 0.86rem; color: var(--soft); line-height: 1.2; }
.season::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.season.summer::before { background: var(--summer-strong); }
.door-verb { font-family: var(--f-display); font-weight: var(--d-w); font-stretch: var(--d-stretch); font-variation-settings: var(--d-var); letter-spacing: var(--d-track); font-size: clamp(1.75rem, 2.7vw, 2.4rem); line-height: 1; }
.door:hover .door-verb { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.door-desc { font-size: 0.95rem; line-height: 1.45; color: var(--soft); }
.door-price { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-weight: 600; font-size: 0.92rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; align-items: baseline; font-variant-numeric: tabular-nums; }
.door-price span:last-child { font-weight: 400; color: var(--soft); }
.door-price { flex-direction: column; align-items: flex-start; }
@media (max-width: 960px) { .doors-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; } }
@media (max-width: 560px) {
  .doors-grid { grid-template-columns: 1fr; row-gap: 22px; }
  .door { flex-direction: row; gap: 16px; }
  .door-photo { width: 118px; flex: none; aspect-ratio: auto; min-height: 158px; }
  .door-body { padding-top: 0; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section.tight { padding-block: clamp(40px, 5.5vw, 72px); }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); }
.on-dark { background: var(--dark); color: var(--dark-ink); --line: rgba(255, 255, 255, 0.22); --soft: var(--dark-soft); }
.on-summer { background: var(--summer); color: var(--summer-ink); --soft: var(--summer-ink); --line: rgba(0, 0, 0, 0.22); }
.on-surface { background: var(--surface); }
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(30px, 5.5vw, 84px); align-items: center; }
.split.flip > :first-child { order: 2; }
.stack { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }
.arch { width: 100%; aspect-ratio: 4 / 4.8; object-fit: cover; border-radius: var(--r-door); }
.photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); }
.photo.tall { aspect-ratio: 4 / 5; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; }
.pair .arch { aspect-ratio: 4 / 5.6; }
.pair .arch:first-child { margin-bottom: clamp(24px, 4vw, 56px); }

/* ---------- En ce moment ---------- */
.news { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 3fr); gap: 12px 32px; align-items: start; padding-block: 26px; border-block: 1px solid var(--line); }
.news-title { font-size: 1.5rem; line-height: 1.15; }
.news ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 32px; }
.news li { font-size: 0.94rem; line-height: 1.45; }
@media (max-width: 860px) { .news { grid-template-columns: 1fr; } .news ul { grid-template-columns: 1fr; } .news li { padding-top: 10px; border-top: 1px solid var(--line); } }


/* ---------- L'année ---------- */
.year { --cols: repeat(12, minmax(0, 1fr)); display: grid; grid-template-columns: var(--cols); gap: 6px 4px; font-size: 0.88rem; }
.year .m { text-align: center; font-weight: 500; padding-bottom: 8px; color: var(--dark-soft); position: relative; }
.year .m .s { display: none; }
.year .m.now { color: var(--now); }
.year .m.now::after { content: ""; position: absolute; left: 50%; bottom: -1px; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: var(--now); }
.bar { display: flex; align-items: center; min-height: 44px; padding: 6px 14px; border-radius: var(--r); font-weight: 500; line-height: 1.15; overflow: hidden; }
.bar.main { background: var(--dark-ink); color: var(--dark); min-height: 58px; font-size: 1.02rem; font-weight: 600; }
.bar.main.summer { background: var(--summer); color: var(--summer-ink); }
.bar.sub { background: rgba(255, 255, 255, 0.1); color: var(--dark-ink); }
.bar.summer-list { background: color-mix(in srgb, var(--summer) 28%, transparent); color: var(--dark-ink); flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; }
.year-note { margin-top: 20px; }
.year-note .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--now); margin-right: 8px; }
@media (max-width: 720px) {
  .year { --cols: repeat(10, minmax(0, 1fr)) repeat(2, minmax(0, 1.9fr)); font-size: 0.76rem; gap: 5px 3px; }
  .year .m .l { display: none; } .year .m .s { display: inline; }
  .bar { padding: 6px 8px; } .bar.main { font-size: 0.84rem; } .bar.summer-list { gap: 8px; padding: 6px 5px; font-size: 0.7rem; }
  .bar.wed { padding: 6px 2px; justify-content: center; font-size: 0.68rem; letter-spacing: -0.01em; }
}


/* ---------- La carte des prix ---------- */
.carte { position: relative; background: var(--card); color: var(--ink); padding: clamp(24px, 3.4vw, 42px); border-radius: var(--r-card); border: 1px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 4px; margin: 5px; }
.carte h3 { font-size: clamp(1.8rem, 2.8vw, 2.4rem); line-height: 1.05; margin-bottom: 12px; }
.carte li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 15px 0; border-top: 1px solid var(--line); }
.carte li > span { font-size: 1.06rem; font-weight: 500; }
.carte li::before { content: ""; order: 1; flex: 1 1 24px; border-bottom: 1px dotted currentColor; opacity: 0.45; }
.carte li b { order: 2; font-weight: 600; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.carte li small { order: 3; flex-basis: 100%; font-size: 0.86rem; line-height: 1.4; color: var(--soft); }
.carte-intro { margin-bottom: 6px; color: var(--soft); max-width: none; }
.carte-foot a { color: inherit; font-weight: 600; }
.carte-foot { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--soft); max-width: none; }
.tag-proto { align-self: flex-start; display: inline-block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; padding: 3px 9px; border: 1px dashed currentColor; border-radius: 3px; opacity: 0.7; margin-bottom: 16px; }

/* ---------- Listes ---------- */
.checks { display: grid; width: 100%; }
.checks li { padding: 16px 0 16px 30px; border-top: 1px solid var(--line); position: relative; max-width: 40em; }
.checks li:last-child { border-bottom: 1px solid var(--line); }
.checks li::before { content: ""; position: absolute; left: 0; top: 1.72em; width: 16px; height: 1px; background: currentColor; }
.checks b { display: block; font-size: 1.04rem; font-weight: 600; }
.checks span { color: var(--soft); }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }
.facts li { padding: 14px 0; border-top: 1px solid var(--ink); font-size: 0.92rem; color: var(--soft); }
.facts b { display: block; font-family: var(--f-display); font-weight: var(--d-w); font-variation-settings: var(--d-var); letter-spacing: var(--d-track); font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1; color: var(--ink); font-variant-numeric: lining-nums; white-space: nowrap; margin-bottom: 6px; }

.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 3.4vw, 48px); }
.quotes blockquote { display: flex; flex-direction: column; gap: 14px; padding-top: 20px; border-top: 1px solid var(--ink); }
.quotes p { font-size: clamp(1.4rem, 2.1vw, 1.75rem); line-height: 1.2; text-wrap: balance; }
.quotes footer { font-size: 0.86rem; color: var(--soft); }
@media (max-width: 820px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- Pages intérieures ---------- */
.vh { padding-block: clamp(36px, 5.5vw, 76px) clamp(44px, 6.5vw, 84px); }
.vh .d1 { font-size: calc(var(--d1) * 0.82); }
.vh-meta { display: flex; flex-wrap: wrap; gap: 6px 0; }
.vh-meta span { font-size: 0.86rem; padding: 0 14px; border-left: 1px solid var(--line); color: var(--soft); }
.vh-meta span:first-child { padding-left: 0; border-left: 0; }
.vh .arch { max-height: 600px; }
@media (max-width: 860px) { .vh .arch { aspect-ratio: 4 / 3.4; } }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.steps li { counter-increment: s; padding-top: 16px; border-top: 1px solid var(--ink); font-size: 0.94rem; line-height: 1.45; color: var(--soft); }
.steps li::before { content: counter(s); display: block; font-family: var(--f-display); font-weight: var(--d-w); font-variation-settings: var(--d-var); font-size: 2.6rem; line-height: 0.9; margin-bottom: 12px; color: var(--ink); font-variant-numeric: lining-nums; }
.steps b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; gap: 0; } .steps li { display: grid; grid-template-columns: 48px 1fr; padding: 16px 0; border-top: 1px solid var(--line); } .steps li::before { grid-row: span 2; margin: 0; } }

.estim { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(22px, 3.2vw, 38px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(22px, 4vw, 52px); align-items: center; }
.estim fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.estim legend, .estim label.lab { font-weight: 600; padding: 0; margin-bottom: 8px; display: block; font-size: 0.94rem; }
.estim .row { margin-bottom: 22px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { position: relative; display: block; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-btn); font-weight: 500; text-align: center; line-height: 1.2; }
.seg input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.seg input:focus-visible + span { outline: 2px solid var(--summer-strong); outline-offset: 2px; }
input[type="range"] { width: 100%; accent-color: var(--ink); height: 32px; }
.range-out { font-weight: 700; font-variant-numeric: tabular-nums; }
.estim-out { background: var(--tint); border-radius: var(--r); padding: clamp(20px, 3vw, 30px); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.estim-sum { font-family: var(--f-display); font-weight: var(--d-w); font-variation-settings: var(--d-var); letter-spacing: var(--d-track); font-size: clamp(2.6rem, 5vw, 4rem); line-height: 0.95; font-variant-numeric: lining-nums tabular-nums; }
@media (max-width: 820px) { .estim { grid-template-columns: 1fr; } }

.table-wrap { overflow-x: auto; }
.spaces { width: 100%; border-collapse: collapse; min-width: 560px; }
.spaces th, .spaces td { text-align: left; padding: 16px 18px 16px 0; border-top: 1px solid var(--line); vertical-align: baseline; }
.spaces thead th { border-top: 0; font-size: 0.82rem; color: var(--soft); font-weight: 500; }
.spaces tbody th { font-family: var(--f-display); font-weight: var(--d-w); font-variation-settings: var(--d-var); letter-spacing: var(--d-track); font-size: 1.5rem; line-height: 1.1; }
.spaces td.n { font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; font-weight: 600; }
.spaces td:last-child { color: var(--soft); }

.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3.2vw, 40px); }
.trio article { display: flex; flex-direction: column; gap: 12px; }
.trio .photo { aspect-ratio: 4 / 3; margin-bottom: 6px; }
.trio ul { display: grid; font-size: 0.94rem; color: var(--soft); }
.trio li { padding: 9px 0; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .trio { grid-template-columns: 1fr; gap: 44px; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 15px; border-radius: var(--r-btn); border: 1px solid currentColor; font-weight: 500; font-size: 0.9rem; }

.days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3.2vw, 44px); }
.days li { padding-top: 16px; border-top: 1px solid var(--ink); color: var(--soft); }
.days b { display: block; font-size: 2rem; line-height: 1; margin-bottom: 10px; color: var(--ink); }
@media (max-width: 760px) { .days { grid-template-columns: 1fr; } }

.cta-band { background: var(--dark); color: var(--dark-ink); }
.cta-band.summer { background: var(--summer); color: var(--summer-ink); }
.cta-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 44px; padding-block: clamp(44px, 7vw, 84px); }
.cta-in p { max-width: 30em; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.88rem; }
.field input, .field select, .field textarea { font: inherit; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; min-height: 50px; width: 100%; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--summer-strong); outline-offset: 0; border-color: var(--ink); }
.form-status { grid-column: 1 / -1; background: var(--tint); border-radius: var(--r); padding: 14px 16px; font-weight: 500; max-width: none; }
.contact-card { background: var(--surface); border-radius: var(--r-card); padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; gap: 16px; }
.contact-card dt { font-size: 0.82rem; color: var(--soft); }
.contact-card dd { font-weight: 600; font-size: 1.04rem; margin-bottom: 12px; overflow-wrap: anywhere; }
@media (max-width: 620px) { .form { grid-template-columns: 1fr; } }

.foot { background: var(--foot); color: #dfe4de; padding-block: clamp(44px, 6vw, 72px) 30px; --soft: #9aa59c; --ink: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px 44px; }
.foot a { text-underline-offset: 4px; text-decoration-thickness: 1px; }
.foot h2 { font-size: 0.82rem; font-weight: 500; color: var(--soft); margin-bottom: 10px; }
.foot ul { display: grid; gap: 7px; font-size: 0.94rem; }
.foot .brand { margin: 0; color: #fff; }
.foot-base { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: 0.8rem; color: var(--soft); max-width: none; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Réglages propres au Garamond ---------- */
.lede { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.4rem, 2.1vw, 1.72rem); line-height: 1.28; }
.season,
.vh-meta span { font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: 1.12rem; }
.door-verb { font-size: clamp(1.9rem, 2.5vw, 2.35rem); }

/* ---------- Héro : la photo d'abord, le texte dessous, sur la pierre ---------- */
.hero { background: var(--bg); color: var(--ink); }
.hero::after { display: none; }
.hero-photo { height: clamp(320px, 46vw, 600px); object-position: 70% 46%; }
.hero-text { position: static; display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); grid-template-areas: "where where" "title lede" "title actions"; gap: 10px clamp(28px, 5vw, 80px); align-items: end; padding-block: clamp(26px, 3.6vw, 48px) 0; }
.hero-where { grid-area: where; color: var(--soft); }
.hero h1 { grid-area: title; max-width: none; font-size: clamp(3rem, 6.6vw, 5.8rem); }
.hero .lede { grid-area: lede; color: var(--ink); font-size: clamp(1.25rem, 1.7vw, 1.5rem); align-self: end; }
.hero-actions { grid-area: actions; margin: 8px 0 0; padding-bottom: 10px; }
.hero .btn { background: var(--accent); color: var(--accent-ink); }
@media (max-width: 860px) {
  .hero-text { grid-template-columns: 1fr; grid-template-areas: "where" "title" "lede" "actions"; gap: 14px; }
  .hero-photo { height: clamp(300px, 70vw, 460px); object-position: 80% 50%; }
}

/* ---------- Simple à organiser ---------- */
.easy { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px clamp(20px, 3vw, 44px); margin-bottom: 30px; }
.easy li { border-top: 1px solid var(--ink); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.easy h3 { font-family: var(--f-display); font-weight: var(--d-w); letter-spacing: var(--d-track); font-size: clamp(1.7rem, 2.6vw, 2.25rem); line-height: 1.05; }
.easy p { color: var(--soft); }
@media (max-width: 760px) { .easy { grid-template-columns: 1fr; } }

/* ---------- Avis, signature ---------- */
.insta { margin-top: clamp(26px, 3.4vw, 40px); color: var(--soft); max-width: none; }
.insta a { color: var(--ink); }
.foot-sign { font-size: 1.55rem; line-height: 1.1; color: #fff; margin-top: 4px; }

/* ---------- Saison : en juillet-août, l'été passe en premier ---------- */
.is-summer .door-ete { order: -1; }

/* ---------- Bandeau utile (restaurant, téléphone) ---------- */
.util-bar { background: var(--dark); color: var(--dark-ink); font-size: 0.82rem; }
.util-in { display: flex; align-items: center; justify-content: space-between; gap: 6px 18px; min-height: 34px; padding-block: 6px; }
.util-bar a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.util-msg { text-decoration: underline; }
.util-side { display: flex; gap: 16px; white-space: nowrap; }
.util-side a { text-decoration: none; }
.util-side a:hover { text-decoration: underline; }
.nav-contact { display: none; }
@media (max-width: 1140px) { .nav-contact { display: block; } }
@media (max-width: 640px) { .util-side { display: none; } .util-in { justify-content: center; text-align: center; } }

/* ---------- Restaurant ---------- */
.resto-band { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(26px, 5vw, 72px); align-items: center; }
.resto-band .photo { aspect-ratio: 16 / 10; }
.resto-band .season { margin: 0; }
@media (max-width: 860px) { .resto-band { grid-template-columns: 1fr; } }
.view[data-view="accueil"] { display: flex; flex-direction: column; }
.is-summer .view[data-view="accueil"] .hero { order: -2; }
.is-summer .resto-home { order: -1; }
.resto-call { display: flex; flex-direction: column; gap: 2px; padding: 16px 20px; border: 1px solid currentColor; }
.resto-phone { font-family: var(--f-display); font-weight: var(--d-w); font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1.05; text-decoration: none; font-variant-numeric: lining-nums; }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: 14px 0; border-top: 1px solid var(--line); font-weight: 500; }
.hours td { color: var(--soft); text-align: right; }

/* ---------- Histoire (vraie chronologie) ---------- */
.history { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.history li { padding-top: 16px; border-top: 1px solid var(--ink); color: var(--soft); font-size: 0.94rem; line-height: 1.45; }
.history b { display: block; font-family: var(--f-display); font-weight: var(--d-w); font-size: 1.8rem; line-height: 1; color: var(--ink); margin-bottom: 10px; font-variant-numeric: lining-nums; }
@media (max-width: 900px) { .history { grid-template-columns: 1fr; gap: 0; } .history li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); } .history b { font-size: 1.4rem; margin: 0; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Vidéo d’accueil */
.hero-media { position: relative; }
.hero-video { display: block; object-position: 50% 50%; background: var(--dark); }
.hero-pause { position: absolute; right: 16px; bottom: 16px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(8, 20, 16, 0.55); color: #fff; cursor: pointer; display: grid; place-items: center; }
.hero-pause[hidden] { display: none; }
.hero-pause span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero-pause::before { content: ""; width: 12px; height: 14px; border-inline: 4px solid currentColor; box-sizing: border-box; }
.hero-pause[aria-pressed="true"]::before { width: 0; height: 0; border-inline: 0; border-block: 7px solid transparent; border-left: 12px solid currentColor; margin-left: 3px; }
.hero-pause:hover { background: rgba(8, 20, 16, 0.75); }
.hero-pause:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Chambres, une par une */
.rooms { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: clamp(28px, 3vw, 40px) clamp(18px, 2vw, 28px); }
.rooms li { display: flex; flex-direction: column; gap: 6px; }
.rooms img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); margin-bottom: 8px; }
.rooms h3 { font-family: var(--f-voice); font-style: var(--voice-style); font-weight: var(--voice-w); font-size: 1.45rem; line-height: 1.15; }
.rooms p { font-size: 0.95rem; line-height: 1.45; color: var(--soft); }

/* Restaurant : de la salle à la terrasse */
.walk { background: var(--dark); color: var(--dark-ink); }
.walk-video { display: block; width: 100%; height: clamp(300px, 52vw, 700px); object-fit: cover; }
.walk-caption { font-family: var(--f-voice); font-style: var(--voice-style); font-size: clamp(1.05rem, 1.5vw, 1.3rem); padding-block: 14px 18px; color: var(--dark-soft); }

/* ---------- En-tête : logo, menu regroupé ---------- */
.brand-mark { width: 52px; height: 52px; }
.foot .brand-mark { width: 48px; height: 48px; }
.nav { gap: 4px; }
.nav > a, .nav-top { padding: 8px 12px; font: 500 0.95rem var(--f-body); color: inherit; }
.nav-group { position: relative; }
.nav-top { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; cursor: pointer; white-space: nowrap; }
.nav-top::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.nav-top[aria-expanded="true"]::after { transform: translateY(1px) rotate(-135deg); }
.nav-top:hover, .nav-top.is-current { box-shadow: inset 0 -1px 0 var(--ink); }
.nav-menu { position: absolute; top: calc(100% + 12px); left: -10px; min-width: 300px; display: none; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 8px; box-shadow: 0 18px 40px -24px rgba(20, 30, 25, 0.35); }
.nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -13px; height: 13px; }
.nav-group:hover .nav-menu, .nav-top[aria-expanded="true"] + .nav-menu { display: flex; }
.nav-menu a { display: flex; flex-direction: column; gap: 2px; padding: 11px 14px; border-radius: calc(var(--r) - 2px); text-decoration: none; white-space: normal; box-shadow: none !important; }
.nav-menu a:hover, .nav-menu a:focus-visible { background: var(--tint); }
.nav-menu a[aria-current="page"] b { text-decoration: underline; text-underline-offset: 4px; }
.nav-menu b { font-weight: 600; font-size: 0.95rem; }
.nav-menu small { font-size: 0.82rem; color: var(--soft); }
@media (max-width: 1140px) { .burger { display: none; } .nav { display: flex; position: static; flex-direction: row; align-items: center; padding: 0; border: 0; background: transparent; } .head-cta { display: inline-flex; } }
@media (max-width: 1140px) { .nav > a { padding: 8px 12px; font-size: 0.95rem; border-bottom: 0; } }
@media (max-width: 1020px) {
  .burger { display: block; }
  .head-cta { display: none; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 6px var(--gutter) 18px; max-height: calc(100vh - 80px); overflow-y: auto; }
  .nav.open { display: flex; }
  .nav > a, .nav-top { padding: 15px 2px; font-size: 1.08rem; border-bottom: 1px solid var(--line); box-shadow: none !important; width: 100%; justify-content: space-between; }
  .nav-menu { position: static; display: flex; min-width: 0; border: 0; box-shadow: none; padding: 4px 0 8px 12px; background: transparent; }
  .nav-top::after { display: none; }
  .nav-top { cursor: default; }
  .nav-menu a { padding: 10px 2px; }
}

/* ---------- Héro : la vidéo plein cadre, le texte dessus ---------- */
.hero { position: relative; background: var(--dark); color: #fff; }
.hero-media { position: relative; }
.hero-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(9, 21, 16, 0.86) 0%, rgba(9, 21, 16, 0.6) 30%, rgba(9, 21, 16, 0.14) 62%, rgba(9, 21, 16, 0.22) 100%); }
.hero-photo { height: min(84vh, 880px); min-height: 540px; object-position: 50% 50%; }
.hero-text { position: absolute; top: auto; left: 0; right: 0; bottom: 0; z-index: 2; align-items: end; color: #fff; padding-block: 0 clamp(30px, 5vw, 64px); }
.hero-where { color: rgba(255, 255, 255, 0.86); }
.hero h1 { color: #fff; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3); }
.hero .lede { color: #f2f0ea; text-shadow: 0 1px 16px rgba(0, 0, 0, 0.35); }
.hero .btn { background: var(--accent-inv); color: var(--accent-inv-ink); }
.hero .textlink { color: #fff; }
.hero-pause { top: 16px; bottom: auto; z-index: 3; }
@media (max-width: 860px) {
  .hero-photo { height: 86vh; min-height: 560px; max-height: 760px; }
  .hero-media::after { background: linear-gradient(0deg, rgba(9, 21, 16, 0.9) 0%, rgba(9, 21, 16, 0.7) 42%, rgba(9, 21, 16, 0.2) 75%, rgba(9, 21, 16, 0.25) 100%); }
  .hero h1 { font-size: clamp(2.7rem, 11vw, 3.6rem); }
  .hero .lede { font-size: 1.12rem; }
}

/* ---------- Passe UI du 18 nov. ---------- */
/* Accueil : le restaurant se détache des entrées */
.resto-home { background: var(--surface); margin-top: clamp(56px, 8vw, 104px); padding-block: clamp(48px, 6vw, 84px); }
.resto-home .news { border-color: color-mix(in srgb, var(--ink) 18%, transparent); }
.is-summer .resto-home { margin-top: 0; }
/* Séminaires : prix et estimateur côte à côte, sous un même titre */
.estim-head { max-width: 46rem; }
.split-estim { align-items: start; }
.split-estim .estim { grid-template-columns: 1fr; }
/* Chambres : deux par ligne sur téléphone */
@media (max-width: 560px) {
  .rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .rooms h3 { font-size: 1.2rem; }
  .rooms p { font-size: 0.86rem; }
}
/* Titres des entrées toujours sur une ligne */
.door { container-type: inline-size; }
.door-verb { white-space: nowrap; font-size: min(2.25rem, 15.6cqi); }
@media (max-width: 560px) { .door { container-type: normal; } .door-verb { font-size: 1.75rem; } }
.head-cta { white-space: nowrap; }

/* ---------- Pages légales ---------- */
.legal-in { max-width: 46rem; }
.legal h1 { margin-bottom: 8px; }
.legal-note { color: var(--soft); font-size: 0.92rem; margin-bottom: clamp(24px, 4vw, 40px); }
.legal h2 { font-family: var(--f-display); font-weight: var(--d-w); font-size: clamp(1.4rem, 2.2vw, 1.75rem); line-height: 1.15; margin: clamp(28px, 4vw, 44px) 0 10px; }
.legal p, .legal li { line-height: 1.6; max-width: 70ch; }
.legal p + p { margin-top: 10px; }
.legal ul { margin: 10px 0 0; padding-left: 1.2em; list-style: disc; }
.legal li + li { margin-top: 4px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
mark.todo { background: #f6e7b8; color: var(--ink); padding: 0 4px; border-radius: 3px; font-size: 0.92em; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.foot-legal { display: flex; gap: 20px; }
.foot-legal a { color: inherit; }

/* ---------- Formulaire ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-send { align-items: flex-start; gap: 12px; }
.form-privacy { font-size: 0.86rem; color: var(--soft); }
.form-privacy a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.form-status.is-error { background: #f6e3dc; }
.legal ul + p { margin-top: 12px; }

/* Juin : bandeau « réservez l'été » au lieu de « restaurant ouvert » */
.util-june { display: none; }
.is-june .util-june { display: inline; }
.is-june .util-high { display: none; }

/* Contact card: who answers */
.contact-card .contact-who { color: var(--soft); font-size: 0.98rem; line-height: 1.5; margin: -6px 0 0; max-width: 34ch; }

/* Restaurant : vidéo en boucle avec bouton pause */
.walk-media { position: relative; }
.walk .walk-pause { top: auto; bottom: 16px; right: 16px; }

/* Vidéos en boucle dans les pages (arche, photo haute) */
.loop-media { position: relative; }
.loop-media .loop-video { display: block; width: 100%; }
.loop-media .loop-pause { top: auto; bottom: 16px; right: 16px; }

/* Réservation des chambres (Sirvoy) */
.booking { scroll-margin-top: 90px; }
.booking-head { max-width: 640px; margin-bottom: 28px; display: flex; flex-direction: column; gap: 12px; }
.booking-widget { background: var(--surface); border-radius: var(--r); padding: clamp(14px, 2.5vw, 28px); min-height: 220px; }
.booking-widget iframe { width: 100%; border: 0; }
.booking-loading { color: var(--soft); margin: 0; }
.booking-widget:has(iframe) .booking-loading, .booking-widget:has(form) .booking-loading { display: none; }
.booking-help { margin-top: 14px; }

/* Anglais : les titres des entrées sont plus longs ("Spend the summer") */
html[lang="en"] .door-verb { font-size: min(2.25rem, 13.6cqi); }
@media (max-width: 560px) { html[lang="en"] .door-verb { font-size: 1.75rem; } }

/* Tableau des espaces : en lignes empilées sur mobile, sans défilement horizontal */
@media (max-width: 620px) {
  .spaces { min-width: 0; }
  .spaces thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .spaces tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; border-top: 1px solid var(--line); padding: 14px 0; }
  .spaces th, .spaces td { border-top: 0; padding: 0; }
  .spaces td:last-child { grid-column: 1 / -1; color: var(--soft); padding-top: 4px; }
}

/* Très petits écrans (320 px) : l'en-tête tient sur la largeur */
@media (max-width: 380px) {
  .head-in { gap: 10px; }
  .brand { gap: 8px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-word { font-size: 1.6rem; }
  .head-tools { gap: 6px; }
}
@media (max-width: 560px) { .door-body { min-width: 0; } .door-verb { white-space: normal; } }
@media (max-width: 380px) { .door-photo { width: 96px; } }
.estim-tax { font-size: 0.42em; letter-spacing: 0; white-space: nowrap; }

/* Photo panoramique sous « Votre week-end au château » */
.wide-photo { aspect-ratio: 21 / 9; margin-top: clamp(24px, 4vw, 44px); }
@media (max-width: 700px) { .wide-photo { aspect-ratio: 4 / 3; } }

/* FAQ */
.faq-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 18px 0; font-weight: 600; font-size: 1.04rem; line-height: 1.4; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; line-height: 1; color: var(--soft); flex: none; transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.faq-item p { margin: 0 0 20px; max-width: 62ch; color: var(--soft); line-height: 1.6; }
@media (max-width: 860px) { .faq-in { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .faq-item summary::after { transition: none; } }

/* Sélecteur de langue : liens vers la même page dans l'autre langue */
.lang a { color: var(--soft); font: 600 0.8rem var(--f-body); letter-spacing: 0.06em; padding: 8px 5px; text-decoration: none; }
.lang a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.lang a:hover { color: var(--ink); }
@media (max-width: 380px) { .facts b { font-size: 1.55rem; } }

/* Chambres : numéro et étage sous le nom */
.rooms .room-no { font-size: 0.82rem; color: var(--soft); }

/* Estimation séminaire envoyée par e-mail */
.estim-mail { width: 100%; min-width: 0; max-width: 100%; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.estim-mail-row { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; min-width: 0; }
.estim-mail-row input { flex: 1 1 120px; min-width: 0; width: 100%; font: inherit; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; min-height: 46px; }
.estim-mail-row input:focus-visible { outline: 2px solid var(--summer-strong); outline-offset: 0; border-color: var(--ink); }
.estim-mail-row .btn { flex: 0 0 auto; }
.nowrap { white-space: nowrap; }

/* Mariages : deux cartes côte à côte (boissons, dimanche) et bloc « S’il pleut » */
.cartes-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); align-items: start; }
.plan-b { margin-top: clamp(28px, 4vw, 44px); max-width: 62ch; }
.plan-b h3 { margin-bottom: 8px; }
@media (max-width: 860px) { .cartes-2 { grid-template-columns: minmax(0, 1fr); } }
