/* Boullemberg : charte « hygge », principes Material Design 3.
   Couleurs par rôles, grille de 8 px, formes arrondies, cibles de 48 px. */

@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --surface: #F7F3EC; --surface-c: #EFE9DF; --surface-ch: #E5DDD0;
  --on: #2B2722; --on-v: #5E564C; --outline: #D3C9BA; --outline-strong: #948A7C;
  --primary: #3F5B4E; --on-primary: #FFFFFF; --primary-c: #DCE6DD; --on-primary-c: #1F3329;
  --wood-c: #EAD9C3; --on-wood-c: #4A3521; --accent: #8A5E17;
  --error: #9C3A2E; --error-c: #F6DDD7; --on-error-c: #5B1A12;
  --scrim: rgba(30, 24, 18, .88);
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --page: 1160px;
  color-scheme: light;
}
:root[data-theme="soir"] {
  --surface: #1E1B18; --surface-c: #2A2622; --surface-ch: #36312B;
  --on: #EDE6DB; --on-v: #B9AE9F; --outline: #4A443C; --outline-strong: #7C7366;
  --primary: #A9C8B6; --on-primary: #1F3329; --primary-c: #33493E; --on-primary-c: #DCE6DD;
  --wood-c: #4A3521; --on-wood-c: #EAD9C3; --accent: #E5B76A;
  --error: #F0A99C; --error-c: #5B1A12; --on-error-c: #F6DDD7;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--surface); color: var(--on); font-family: var(--body); font-size: 16px; line-height: 1.55; transition: background-color .4s, color .4s; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--primary); color: var(--on-primary); padding: 12px 16px; border-radius: 12px; z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.section { padding: 48px 0 0; }
.section-head { margin: 0 4px 20px; }
.section-head p { color: var(--on-v); margin: 8px 0 0; max-width: 60ch; }
.lead { font-size: 1.08rem; color: var(--on-v); max-width: 62ch; }
.muted { color: var(--on-v); }
.small { font-size: .9rem; }

/* Barre du haut */
.topbar { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); }
.topbar-in { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { font-family: var(--display); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.01em; color: var(--primary); text-decoration: none; }
.nav { display: none; align-items: center; gap: 4px; }
.nav a { color: var(--on); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 10px 14px; border-radius: 20px; }
.nav a:hover { background: var(--surface-c); }
.nav a[aria-current="page"] { background: var(--primary-c); color: var(--on-primary-c); }
.top-actions { display: flex; align-items: center; gap: 4px; }
.icon-btn { width: 48px; height: 48px; border: 0; background: transparent; border-radius: 24px; color: var(--on); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.icon-btn:hover { background: var(--surface-c); }
.top-cta { display: none; }
.theme-btn .moon, :root[data-theme="soir"] .theme-btn .sun { display: none; }
:root[data-theme="soir"] .theme-btn .moon { display: block; }

/* Menu plein écran sur téléphone */
.menu { position: fixed; inset: 0; z-index: 60; background: var(--surface); padding: 8px 16px 24px; display: none; flex-direction: column; overflow-y: auto; }
.menu.open { display: flex; }
.menu-head { height: 56px; display: flex; align-items: center; justify-content: space-between; padding-left: 4px; }
.menu nav { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; }
.menu nav a { font-family: var(--display); font-weight: 600; font-size: 1.6rem; color: var(--on); text-decoration: none; padding: 14px 16px; border-radius: 20px; }
.menu nav a[aria-current="page"] { background: var(--primary-c); color: var(--on-primary-c); }
.menu .btn { margin-top: 24px; }
.menu-contact { margin-top: auto; padding: 24px 4px 0; color: var(--on-v); }

/* Boutons et puces */
.btn { min-height: 56px; padding: 0 28px; border-radius: 28px; border: 0; background: var(--primary); color: var(--on-primary); font: inherit; font-weight: 600; font-size: 1.05rem; display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, opacity .15s; }
.btn:hover { box-shadow: 0 6px 18px rgba(31, 51, 41, .22); transform: translateY(-1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
.btn.block { display: flex; width: 100%; }
.btn.small-btn { min-height: 48px; padding: 0 22px; font-size: .95rem; border-radius: 24px; }
.btn.tonal { background: var(--primary-c); color: var(--on-primary-c); }
.btn.outline { background: transparent; color: var(--on); border: 1px solid var(--outline-strong); }
.btn.outline:hover { box-shadow: none; background: var(--surface-c); }
.btn.on-tonal { background: transparent; color: var(--on-primary-c); border: 1px solid var(--on-primary-c); }
.btn.danger { background: transparent; color: var(--error); border: 1px solid var(--error); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 32px; padding: 4px 12px; border-radius: 8px; border: 1px solid var(--outline); font-size: .9rem; display: inline-flex; align-items: center; color: var(--on); background: transparent; }
button.chip, a.chip { min-height: 48px; padding: 0 16px; font: inherit; font-size: .95rem; font-weight: 500; cursor: pointer; text-decoration: none; }
button.chip[aria-pressed="true"], .chip.on { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
button.chip:disabled { opacity: .45; cursor: not-allowed; text-decoration: line-through; }

/* Cartes */
.card { background: var(--surface-c); border-radius: 24px; overflow: hidden; }
.card-body { padding: 16px 20px 20px; }
.card h3 { font-size: 1.4rem; }
.card-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.price-from { font-size: .95rem; color: var(--on-v); white-space: nowrap; }
.price-from strong { color: var(--on); font-weight: 600; }
.cover { width: 100%; object-fit: cover; }
.grid-2 { display: grid; gap: 16px; }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat { background: var(--surface-c); border-radius: 16px; padding: 16px; }
.stat b { display: block; font-family: var(--display); font-weight: 600; font-size: 1.5rem; color: var(--primary); }
.stat span { font-size: .9rem; color: var(--on-v); }

/* Accueil */
.hero { padding-top: 4px; }
.hero-media { position: relative; border-radius: 28px; overflow: hidden; height: min(72vh, 480px); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 96px 20px 22px; background: linear-gradient(to top, var(--scrim), rgba(30, 24, 18, 0)); color: #FFFFFF; }
.hero-text h1 { max-width: 16ch; }
.hero-intro { margin: 20px 4px 0; font-size: 1.08rem; color: var(--on-v); max-width: 56ch; }
.hero-cta { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.hero-cta p { margin: 0; text-align: center; font-size: .9rem; color: var(--on-v); }
.band { margin-top: 48px; padding: 36px 0; background: var(--primary-c); color: var(--on-primary-c); }
.band .section-head p { color: inherit; }
.band-media { border-radius: 24px; width: 100%; height: 260px; object-fit: cover; }
.ritual { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ritual li { display: flex; gap: 16px; align-items: center; background: var(--surface); color: var(--on); border-radius: 16px; padding: 14px 16px; }
.ritual .deg { flex: none; width: 76px; font-family: var(--display); font-weight: 700; font-size: 1.35rem; color: var(--accent); line-height: 1.1; }
.ritual .deg.cool { color: var(--primary); }
.ritual strong { display: block; font-weight: 600; }
.ritual span span { font-size: .9rem; color: var(--on-v); }
.wood { background: var(--wood-c); color: var(--on-wood-c); border-radius: 28px; overflow: hidden; }
.wood .card-body { padding: 20px; }
.wood p { margin: 8px 0 0; }
.notice { background: var(--wood-c); color: var(--on-wood-c); border-radius: 20px; padding: 16px 20px; }
.notice h2, .notice h3 { font-size: 1.15rem; margin-bottom: 4px; }
.notice p:last-child { margin: 0; }
.review { background: var(--surface-c); border-radius: 24px; padding: 20px; }
.review .stars { color: var(--accent); letter-spacing: 2px; }
.review p { margin: 8px 0 12px; }
.review cite { font-style: normal; font-weight: 600; }
.places { list-style: none; margin: 12px 0 0; padding: 0; }
.places li { display: flex; justify-content: space-between; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--outline); }
.places li:last-child { border-bottom: 0; }
.places span:last-child { color: var(--on-v); font-size: .9rem; white-space: nowrap; }
.media-tag { position: relative; border-radius: 24px; overflow: hidden; }
.media-tag img { width: 100%; height: 220px; object-fit: cover; }
.media-tag div { position: absolute; left: 12px; bottom: 12px; background: rgba(255, 255, 255, .94); color: #2B2722; border-radius: 12px; padding: 8px 12px; font-size: .85rem; }
.media-tag strong { display: block; font-size: .95rem; font-weight: 600; }

/* Pages intérieures */
.page-head { padding: 24px 4px 0; }
.page-head .lead { margin-top: 12px; }
.crumbs { font-size: .88rem; color: var(--on-v); margin-bottom: 12px; }
.crumbs a { color: inherit; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }
.gallery img:first-child { grid-column: 1 / -1; aspect-ratio: 3 / 2; border-radius: 24px; }
.room { padding-top: 48px; scroll-margin-top: 72px; }
.room-info { margin-top: 20px; }
.room-info .chips { margin: 16px 0; }
.ticks { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 8px; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .5em; width: 12px; height: 6px; border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(-45deg); }
.split { display: grid; gap: 24px; align-items: center; }
.split img { border-radius: 24px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split.tall img { aspect-ratio: 3 / 4; max-height: 560px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.facts div { background: var(--surface-c); border-radius: 16px; padding: 14px 16px; }
.facts dt { font-size: .85rem; color: var(--on-v); }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--outline); vertical-align: top; }
.table thead th { font-weight: 500; color: var(--on-v); font-size: .85rem; }
.faq-item { border-bottom: 1px solid var(--outline); }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 44px 18px 4px; font-family: var(--display); font-weight: 600; font-size: 1.15rem; position: relative; min-height: 48px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; position: absolute; right: 12px; top: 24px; width: 10px; height: 10px; border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(45deg); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(-135deg); top: 28px; }
.faq-item p { margin: 0 4px 18px; color: var(--on-v); max-width: 68ch; }
.place-grid { display: grid; gap: 16px; }
.place img { width: 100%; height: 200px; object-fit: cover; }
.place .card-body p { margin: 6px 0 0; color: var(--on-v); font-size: .95rem; }
.place[hidden] { display: none; }
.itineraries { display: grid; gap: 16px; }
.prose h2 { font-size: 1.3rem; margin: 32px 0 8px; }
.prose p { color: var(--on-v); }
.cta-band { margin-top: 56px; background: var(--primary-c); color: var(--on-primary-c); border-radius: 28px; padding: 28px 20px; display: flex; flex-direction: column; gap: 16px; }
.cta-band p { margin: 6px 0 0; }

/* Pied de page */
.footer { margin-top: 64px; padding: 36px 0 120px; background: var(--surface-ch); font-size: .95rem; }
.footer-grid { display: grid; gap: 28px; }
.footer .brand { font-size: 1.25rem; }
.footer p { margin: 8px 0 0; color: var(--on-v); }
.footer a { color: var(--on); }
.footer-links { display: flex; flex-direction: column; gap: 12px; font-weight: 500; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer small { display: block; margin-top: 28px; color: var(--on-v); }

/* Barre de réservation fixe, sur téléphone */
.bookbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--surface-c); border-top: 1px solid var(--outline); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bookbar small { display: block; font-size: .8rem; color: var(--on-v); }
.bookbar b { font-weight: 600; font-size: 1.1rem; }
.no-bookbar .bookbar { display: none; }
.no-bookbar .footer { padding-bottom: 40px; }

/* Messages */
.alert { border-radius: 16px; padding: 14px 16px; background: var(--error-c); color: var(--on-error-c); margin: 0 0 16px; }
.alert.ok { background: var(--primary-c); color: var(--on-primary-c); }
.alert.warn { background: var(--wood-c); color: var(--on-wood-c); }
.alert ul { margin: 0; padding-left: 18px; }

/* Formulaires */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label, .field legend { font-weight: 500; font-size: .95rem; }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea { min-height: 56px; border-radius: 12px; border: 1px solid var(--outline-strong); background: var(--surface); color: var(--on); font: inherit; padding: 14px 16px; width: 100%; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--primary); outline-offset: 0; border-color: var(--primary); }
.field .help { font-size: .85rem; color: var(--on-v); }
.field .errorlist, .errorlist { list-style: none; margin: 0; padding: 0; color: var(--error); font-size: .9rem; font-weight: 500; }
.check { display: flex; gap: 12px; align-items: flex-start; min-height: 48px; padding: 8px 0; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--primary); flex: none; }
.form-grid { display: grid; gap: 0 16px; }
fieldset { border: 0; padding: 0; margin: 0; }

/* Réservation */
.booking { display: grid; gap: 24px; padding-top: 16px; }
.panel { background: var(--surface-c); border-radius: 28px; padding: 20px 16px; }
.panel h2 { font-size: 1.35rem; margin: 0 4px 12px; }
.steps { display: flex; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; font-size: .88rem; color: var(--on-v); }
.steps li { display: flex; align-items: center; gap: 8px; }
.steps li::before { content: attr(data-n); width: 24px; height: 24px; border-radius: 12px; background: var(--surface-ch); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: .8rem; }
.steps li.on { color: var(--on); font-weight: 600; }
.steps li.on::before { background: var(--primary); color: var(--on-primary); }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 0 8px; }
.cal-head strong { font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-dow { text-align: center; font-size: .75rem; color: var(--on-v); padding-bottom: 4px; }
.cal-grid { row-gap: 4px; min-height: 300px; align-content: start; }
.day { height: 56px; border: 0; border-radius: 16px; background: transparent; color: var(--on); font: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; padding: 0; }
.day:hover:not(:disabled) { background: var(--surface-ch); }
.day .n { font-size: .95rem; font-weight: 600; }
.day .p { font-size: .68rem; color: var(--on-v); }
.day.formula .p { color: var(--accent); font-weight: 600; }
.day:disabled { cursor: default; color: var(--outline-strong); }
.day:disabled .n { font-weight: 400; }
.day.sold .n { text-decoration: line-through; }
.day:disabled .p { color: var(--outline-strong); font-weight: 400; }
.day.range { background: var(--primary-c); color: var(--on-primary-c); border-radius: 0; }
.day.range .p { color: var(--on-primary-c); }
.day.sel, .day.sel:hover { background: var(--primary); color: var(--on-primary); }
.day.sel .p { color: var(--on-primary); }
.day.out { color: var(--on-v); }
.cal-legend { margin: 12px 4px 0; font-size: .85rem; color: var(--on-v); }
.cal-legend b { color: var(--accent); }
.summary { background: var(--surface); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.summary-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.summary .total { font-family: var(--display); font-weight: 600; font-size: 1.5rem; }
.assure { list-style: none; margin: 0; padding: 0; font-size: .85rem; color: var(--on-v); display: flex; flex-direction: column; gap: 4px; }
.lines { list-style: none; margin: 0; padding: 0; }
.lines li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--outline); font-size: .95rem; }
.lines li small { display: block; color: var(--on-v); }
.lines li > :last-child { white-space: nowrap; }
.status { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; border-radius: 8px; font-size: .88rem; font-weight: 600; background: var(--wood-c); color: var(--on-wood-c); }
.status.ok { background: var(--primary-c); color: var(--on-primary-c); }
.status.no { background: var(--error-c); color: var(--on-error-c); }
.closed-box { text-align: left; }
.contact-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }

@media (min-width: 720px) {
  .wrap { padding: 0 32px; }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-cta { flex-direction: row; align-items: center; gap: 20px; }
  .hero-cta p { text-align: left; }
  .hero-text { padding: 140px 40px 40px; }
  .hero-media { height: min(70vh, 620px); }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery img:first-child { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
  .split.flip > :first-child { order: 2; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .place-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .itineraries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid .full { grid-column: 1 / -1; }
  .cta-band { flex-direction: row; align-items: center; justify-content: space-between; padding: 36px 40px; }
  .contact-actions { flex-direction: row; }
  .panel { padding: 28px; }
  .band-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
  .band-media { height: 420px; }
  .ritual { margin-top: 0; }
  .section { padding-top: 72px; }
  .band { margin-top: 72px; padding: 64px 0; }
}
@media (min-width: 1000px) {
  .nav { display: flex; }
  .menu-btn { display: none; }
  .top-cta { display: inline-flex; margin-left: 8px; }
  .bookbar { display: none; }
  .footer { padding-bottom: 48px; }
  .place-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .place img { height: 180px; }
  .booking { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; gap: 40px; }
  .booking aside { position: sticky; top: 88px; }
  .day { height: 64px; }
  .day .p { font-size: .75rem; }
  .room-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: start; }
  .room-info { margin-top: 0; position: sticky; top: 88px; }
  .room-layout .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .room-layout .gallery img:first-child { aspect-ratio: 3 / 2; }
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
