:root {
  --bg: #f2e9e1;
  --surface: #fbf6f1;
  --ink: #1c1a19;
  --muted: #6e5f5c;
  --accent: #9e4d58;
  --accent-ink: #ffffff;
  --or: #ae9474;
  --line: #e0d2c6;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 ui-rounded, "Nunito", "Segoe UI", "Trebuchet MS", system-ui, sans-serif;
}
h1, h2, h3 { line-height: 1.2; margin: 0; font-weight: 700; }
a { color: var(--accent); }
button, select, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 max(16px, 4vw); }

/* En-tête et menu */
.top {
  position: sticky; top: 0; z-index: 9; background: var(--bg); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px max(16px, 4vw);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.1rem; }
.brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.menu { display: flex; gap: 8px; overflow-x: auto; padding: 12px max(16px, 4vw); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.menu::-webkit-scrollbar { display: none; }
.menu button {
  flex: none; background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 18px; cursor: pointer; font-weight: 600;
}
.menu button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* Boutons */
.btn {
  background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); border-radius: 999px;
  padding: 9px 18px; cursor: pointer; font-weight: 600;
}
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.plein { width: 100%; margin-top: 18px; border-radius: 12px; padding: 12px; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.lien { background: none; border: 0; color: var(--accent); text-decoration: underline; cursor: pointer; padding: 4px; }

/* Présentation */
.hero { display: grid; gap: 24px; align-items: center; padding: 36px 0 12px; }
@media (min-width: 760px) { .hero { grid-template-columns: 1.2fr 1fr; } }
.hero h1 { font-size: clamp(1.9rem, 5.5vw, 3rem); max-width: 18ch; }
.hero p { color: var(--muted); max-width: 52ch; margin: 14px 0 0; }
.hero img { width: 100%; max-width: 320px; justify-self: center; border-radius: 50%; }

/* Filtres et grille */
.barre { display: flex; flex-wrap: wrap; gap: 10px; padding: 20px 0 8px; }
.barre input, .barre select { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; min-width: 0; }
.barre input { flex: 1 1 200px; }
.compte { color: var(--muted); margin: 8px 0 14px; }
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px 18px; padding-bottom: 40px; }
.carte { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.photo { position: relative; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: #ead9d0; display: grid; place-items: center; }
.photo .ph { color: var(--muted); font-size: .9rem; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.carte h3 { font-size: 1rem; margin-top: 8px; }
.meta { color: var(--muted); font-size: .9rem; margin: 0; }
.prix { font-weight: 700; font-size: 1.2rem; color: var(--accent); margin: auto 0 0; padding-top: 6px; }
.carte .btn { width: 100%; margin-top: 6px; border-radius: 10px; }
.reserve { text-align: center; color: var(--muted); padding: 9px; margin: 6px 0 0; border: 1px dashed var(--line); border-radius: 10px; }
.vide { grid-column: 1 / -1; color: var(--muted); padding: 24px 0; }

/* Retrait */
.retrait { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 40px; }
.retrait h2 { font-size: 1.3rem; margin-bottom: 8px; }
.retrait p { margin: 4px 0; }

/* Pied de page */
footer { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); font-size: .9rem; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; }

/* Tiroir de réservation */
#voile { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 20; display: none; }
#voile.on { display: block; }
#tiroir {
  position: fixed; top: 0; bottom: 0; right: 0; width: min(440px, 100%); background: var(--surface); z-index: 21;
  padding: 18px 20px; overflow-y: auto; transform: translateX(105%); transition: transform .25s;
}
#tiroir.on { transform: none; }
.entete { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.entete h2 { font-size: 1.3rem; }
.ligne { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
label { display: block; font-weight: 600; margin: 14px 0 4px; }
#tiroir input[type=text], #tiroir input[type=email], #tiroir select { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.case { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; margin-top: 16px; }
.case input { margin-top: 5px; flex: none; }
.aide { color: var(--muted); font-size: .9rem; margin: 8px 0 0; }
.erreur { color: #a1281a; font-weight: 600; margin: 12px 0 0; }
.piege { position: absolute; left: -9999px; }
.ok { padding: 24px 0; }
.ok h2 { margin-bottom: 12px; }

/* Pages légales */
.page { max-width: 760px; margin: 0 auto; padding: 28px max(16px, 4vw) 56px; }
.page h1 { font-size: 1.8rem; margin-bottom: 6px; }
.page h2 { font-size: 1.2rem; margin: 28px 0 8px; }
.page p, .page li { max-width: 70ch; }
.page .maj { color: var(--muted); font-size: .9rem; margin: 0 0 18px; }
.page mark { background: #f5e1a4; padding: 0 4px; border-radius: 3px; }
