/* Une colonne calme sur téléphone, deux colonnes dès 760px. Palette de la Résidence Oradou : brun chaud, crème, vert feuille. */
:root {
  --bg: #f6f0e8; --surface: #fffaf3; --ink: #2b2118; --ink-soft: #6b5a4a; --line: #e3d6c5;
  --brand: #8a6240; --brand-ink: #ffffff; --leaf: #3f6a45; --leaf-bg: #e4eee3; --alert: #a63d2a; --alert-bg: #f6e0da;
  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1d1712; --surface: #271f18; --ink: #f3e9dc; --ink-soft: #b9a792; --line: #3b3025;
    --brand: #c99a6b; --brand-ink: #1d1712; --leaf: #9cc59f; --leaf-bg: #26352a; --alert: #f0a08e; --alert-bg: #43241d; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1d1712; --surface: #271f18; --ink: #f3e9dc; --ink-soft: #b9a792; --line: #3b3025;
  --brand: #c99a6b; --brand-ink: #1d1712; --leaf: #9cc59f; --leaf-bg: #26352a; --alert: #f0a08e; --alert-bg: #43241d; color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.5; padding-inline: 16px; padding-block: 0 48px; }
.wrap { max-width: 920px; margin-inline: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
[hidden] { display: none !important; }

.topbar { position: sticky; top: 0; z-index: 10; background: var(--bg); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; margin-inline: -16px; padding-inline: 16px; border-bottom: 1px solid var(--line); }
.brand { display: grid; text-decoration: none; min-width: 0; }
.brand-n { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; line-height: 1.1; }
.brand-s { font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.lang { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--ink-soft); flex: none; }
.lang select { font: inherit; font-size: 15px; letter-spacing: 0; text-transform: none; font-weight: 500; min-height: 44px; padding: 0 10px; border-radius: 4px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }

h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.3rem, 9vw, 3.6rem); line-height: 1.04; margin: 28px 0 10px; text-wrap: balance; }
h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 7vw, 2.6rem); line-height: 1.08; margin: 8px 0 18px; text-wrap: balance; }
h3.sub { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; margin: 28px 0 10px; }
.lede { max-width: 56ch; color: var(--ink-soft); margin: 0 0 22px; }

.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
.tile { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; min-height: 76px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; text-decoration: none; }
.tile:hover { border-color: var(--brand); }
.tile .tn { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; line-height: 1.1; }
.tile .td { grid-column: 1; color: var(--ink-soft); font-size: 14.5px; }
.tile .ta { grid-row: 1 / span 2; grid-column: 2; color: var(--brand); font-size: 1.4rem; }
.tile.hot { border: 2px solid var(--brand); }
@media (min-width: 760px) { .tiles { grid-template-columns: 1fr 1fr; } }

.hostbox { margin-top: 28px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; display: grid; gap: 8px; }
.hostbox h3 { font-family: var(--font-display); font-size: 1.5rem; margin: 0; font-weight: 600; }
.hostbox p { margin: 0; color: var(--ink-soft); }
.sel { user-select: all; -webkit-user-select: all; }

.backbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 8px; margin-top: 14px; font: inherit; font-weight: 600; font-size: 15px; color: var(--brand); background: transparent; border: 0; cursor: pointer; text-decoration: none; }

.facts { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); margin: 0 0 20px; }
.facts div { display: grid; grid-template-columns: minmax(7rem, 11rem) 1fr; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); min-width: 0; }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--ink-soft); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; padding-top: 3px; }
.facts dd { margin: 0; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.prose p { max-width: 62ch; margin: 0 0 12px; }
.prose ul { margin: 0 0 12px; padding-left: 1.2em; display: grid; gap: 8px; max-width: 62ch; }
.note { color: var(--ink-soft); font-size: 14px; margin: 8px 0 0; }
.codes { margin: 18px 0; padding: 16px 18px; border: 1px solid var(--line); border-left: 4px solid var(--brand); background: var(--surface); border-radius: 4px; }
.codes h4 { margin: 0 0 6px; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.codes p { margin: 0; color: var(--ink-soft); font-size: 15px; }

.cards { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 0 0 8px; list-style: none; padding: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; scroll-margin-top: calc(var(--hh, 65px) + 70px); }
.card[hidden] { display: none; }
.card h4 { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; font-weight: 600; margin: 0; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.card .addr { font-size: 14px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--ink-soft); }
.tag { padding: 3px 9px; border-radius: 3px; background: var(--line); color: var(--ink); }
.tag.local, .tag.free { background: var(--leaf-bg); color: var(--leaf); }
.tag.closed { background: var(--alert-bg); color: var(--alert); }
.tag.now, .tag.book { background: var(--brand); color: var(--brand-ink); }
@media (min-width: 760px) { .cards { grid-template-columns: 1fr 1fr; } }

dl.spec { margin: 0; display: grid; gap: 8px; font-size: 14.5px; }
dl.spec div { display: grid; grid-template-columns: 5.6rem 1fr; gap: 10px; min-width: 0; }
dl.spec dt { color: var(--ink-soft); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; padding-top: 2px; font-weight: 600; }
dl.spec dd { margin: 0; min-width: 0; font-variant-numeric: tabular-nums; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 4px; }
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 4px; font-size: 14.5px; font-weight: 600; text-decoration: none; border: 1px solid var(--brand); }
.btn.primary { background: var(--brand); color: var(--brand-ink); }
.btn.ghost { color: var(--brand); background: transparent; }

.how { margin-block: 4px 8px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.how h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; margin: 0 0 8px; }
.how ol { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; color: var(--ink-soft); font-size: 15px; }
.pick-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
.pick { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 16px 18px; border: 2px solid var(--brand); border-radius: 6px; background: var(--surface); text-decoration: none; min-width: 0; }
.pick .pk-meta { font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--brand); }
.pick .pk-name { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; font-weight: 600; }
.pick .pk-b { color: var(--ink-soft); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pick .pk-go { margin-top: auto; padding-top: 4px; font-weight: 600; font-size: 14.5px; color: var(--brand); }
@media (min-width: 760px) { .pick-list { grid-template-columns: repeat(3, 1fr); } }

.routes { display: grid; gap: 22px; margin: 12px 0 0; padding: 0; list-style: none; }
.routes li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 6px 20px; align-items: baseline; min-width: 0; }
@media (max-width: 560px) { .routes li { grid-template-columns: 1fr; gap: 4px; } }
.routes b { font-family: var(--font-display); font-size: 1.5rem; line-height: 1; color: var(--brand); white-space: nowrap; }
.routes span { color: var(--ink-soft); font-size: 15px; line-height: 1.55; min-width: 0; }

.ev-list { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--line); }
.ev { display: grid; grid-template-columns: 1fr; gap: 4px; padding-block: 14px; border-bottom: 1px solid var(--line); min-width: 0; }
.ev-date { font-size: 13px; font-weight: 600; color: var(--brand); font-variant-numeric: tabular-nums; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ev-title { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.15; font-weight: 600; margin: 0; }
.ev-place { font-size: 14.5px; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.ev-place a { font-weight: 600; color: var(--brand); }
@media (min-width: 760px) {
  .ev { grid-template-columns: 15rem 1fr; gap: 4px 20px; align-items: baseline; }
  .ev-title, .ev-place { grid-column: 2; }
  .ev-date { grid-row: 1 / span 2; }
}

.filters-bar { position: sticky; top: var(--hh, 65px); z-index: 5; background: var(--bg); padding-block: 12px; margin-inline: -16px; padding-inline: 16px; margin-top: 26px; border-block: 1px solid var(--line); }
.filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip { flex: none; font: inherit; font-size: 14.5px; font-weight: 500; padding: 9px 16px; min-height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.count { font-size: 13px; color: var(--ink-soft); margin: 14px 0 0; }
.spots { margin-top: 16px; }
@media (prefers-reduced-motion: no-preference) { .chip, .btn, .tile { transition: background-color 0.15s, color 0.15s, border-color 0.15s; } }

footer { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 14px; display: grid; gap: 6px; }
footer strong { color: var(--ink); font-weight: 600; }

.prose ul.cards { padding-left: 0; max-width: none; list-style: none; gap: 12px; }

.brand { grid-auto-flow: column; align-items: center; gap: 10px; }
.brand-logo { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.brand-t { display: grid; min-width: 0; }
.media { margin: 26px 0 8px; }
.media h3 { font-family: var(--font-display); font-size: 1.35rem; margin: 0 0 10px; }
.gallery { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
.ph { flex: 0 0 62%; max-width: 300px; scroll-snap-align: start; border: 0; padding: 0; background: none; border-radius: 12px; overflow: hidden; cursor: zoom-in; }
.ph img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.tour { width: 100%; max-width: 260px; height: auto; border-radius: 12px; background: #000; display: block; }
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, 0.9); display: grid; place-items: center; padding: 16px; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.lb-x { position: absolute; top: 10px; right: 14px; border: 0; background: none; color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer; }
