/* ==========================================================================
   Hôtel-Restaurant Bon Abri — Sanary-sur-Mer (Var, 83)
   Design system moderne — palette provençale, polices système, 100 % hors-ligne
   ========================================================================== */

:root {
  --bg: #fdf6ec;
  --bg-soft: #f6ecdc;
  --surface: #ffffff;
  --ink: #2f2a24;
  --muted: #6d635a;
  --brand: #8c2f42;
  --brand-dark: #6d2334;
  --brand-soft: #f7e4e7;
  --accent: #5f7047;
  --accent-soft: #edf1e6;
  --gold: #b98a3c;
  --line: #e9dcc8;
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1080px;
  --shadow: 0 12px 32px rgba(47, 42, 36, 0.09);
  --shadow-soft: 0 4px 14px rgba(47, 42, 36, 0.07);
  --font-display: Georgia, "Times New Roman", "Songti SC", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.22;
  color: var(--ink);
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); }
h3 { font-size: clamp(1.12rem, 1.8vw, 1.35rem); }

p { margin: 0 0 1em; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--brand);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ------------------------------ Header ------------------------------ */

.site-header {
  background: rgba(253, 246, 236, 0.96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.2rem;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 50%;
  background: var(--brand);
  color: #fdf6ec;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-soft);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.2;
}

.brand-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.35rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: inline-block;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
}

.main-nav a:hover { background: var(--brand-soft); color: var(--brand-dark); }

.main-nav a[aria-current="page"] {
  background: var(--brand);
  color: #fff;
}

.lang-switch a {
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  color: var(--muted);
}
.lang-switch a:hover { border-color: var(--brand); color: var(--brand); }

/* ------------------------------ Breadcrumb ------------------------------ */

.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 1.1rem 0 0;
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
}
.breadcrumb li + li::before { content: "›"; padding: 0 0.35rem; color: var(--gold); }
.breadcrumb a { color: var(--muted); }
.breadcrumb [aria-current="page"] { color: var(--brand); font-weight: 600; }

/* ------------------------------ Hero ------------------------------ */

.hero {
  padding: clamp(1.6rem, 4vw, 3rem) 0 1.4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.2rem, 3.5vw, 2.6rem);
  align-items: center;
}

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.7rem;
}

.hero .lede {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.3rem;
}

.hero-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.hero-photos img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  aspect-ratio: 3 / 4;
}

.hero-photos img:last-child { margin-top: 1.6rem; }

/* ------------------------------ Sections ------------------------------ */

.section { padding: clamp(1.8rem, 4vw, 3rem) 0; }
.section + .section { border-top: 1px solid var(--line); }

.section-head { max-width: 46em; margin-bottom: 1.4rem; }
.section-head p { color: var(--muted); margin: 0.4rem 0 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

/* ------------------------------ Cards ------------------------------ */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
  gap: 1.1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem 1.35rem;
  box-shadow: var(--shadow-soft);
  border-top: 3px solid var(--brand);
}

.card h3 { margin-bottom: 0.45rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card .card-num {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 0.55rem;
}

.card--accent { border-top-color: var(--accent); }
.card--gold { border-top-color: var(--gold); }

/* ------------------------------ Split blocks ------------------------------ */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.2rem, 3.5vw, 2.4rem);
  align-items: center;
}

.split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
}

.split .split-media { order: 2; }

/* ------------------------------ Menu preview ------------------------------ */

.menu-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  max-width: 720px;
}

.menu-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow-soft);
}

.menu-card .menu-price {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--brand);
  display: block;
  margin: 0.3rem 0 0.6rem;
}

.menu-card .menu-note {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0;
}

/* ------------------------------ Price tables ------------------------------ */

.tablewrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

table.menu-list { width: 100%; border-collapse: collapse; min-width: 560px; }

table.menu-list td, table.menu-list th {
  padding: 0.68rem 1.1rem;
  text-align: left;
  border-bottom: 1px dashed var(--line);
  vertical-align: top;
}

table.menu-list tr:last-child td { border-bottom: 0; }
table.menu-list .price {
  text-align: right;
  white-space: nowrap;
  font-weight: 700;
  color: var(--brand);
  width: 7.5em;
}

table.menu-list th {
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--brand-dark);
  background: var(--bg-soft);
}

table.menu-list .cat td {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brand-dark);
  background: var(--bg-soft);
}

/* ------------------------------ Rates table ------------------------------ */

table.rates {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

table.rates th, table.rates td {
  padding: 0.6rem 0.8rem;
  text-align: center;
  border: 1px solid var(--line);
}

table.rates thead th { background: var(--brand); color: #fff; }
table.rates tbody th[scope="rowgroup"],
table.rates tbody th[scope="row"] { background: var(--bg-soft); text-align: left; }
table.rates .room-type td {
  background: var(--accent-soft);
  text-align: left;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.03em;
}

/* ------------------------------ Gallery ------------------------------ */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 0.9rem;
}

.gallery figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.gallery figure:hover img { transform: scale(1.03); }

.gallery figcaption {
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
}

.gallery-strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}

/* ------------------------------ FAQ ------------------------------ */

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.2rem;
  margin-bottom: 0.7rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--brand-dark);
  list-style-position: outside;
}

.faq details p { margin: 0.6rem 0 0; color: var(--muted); }

/* ------------------------------ CTA band ------------------------------ */

.cta-band {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fdf1ea;
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3.5vw, 2.3rem);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.4rem;
  align-items: center;
  box-shadow: var(--shadow);
}

.cta-band h2 { color: #fff; margin-bottom: 0.4rem; }
.cta-band p { margin: 0; color: #f3dbe0; }
.cta-band .hero-actions { margin-top: 1rem; }

.btn {
  display: inline-block;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-solid { background: var(--brand); color: #fff; box-shadow: var(--shadow-soft); }
.btn-solid:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); }

.btn-ghost { border: 1.5px solid var(--brand); color: var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); }

.cta-band .btn-solid { background: #fdf6ec; color: var(--brand-dark); }
.cta-band .btn-ghost { border-color: #e9c4cc; color: #f9e4e8; }

/* ------------------------------ Trust / guides ------------------------------ */

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.6rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.trust .badge {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-weight: 700;
  color: var(--ink);
}

/* ------------------------------ Notes & misc ------------------------------ */

.note {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.15rem;
  color: var(--ink);
  font-size: 0.93rem;
}

.note--brand { background: var(--brand-soft); border-left-color: var(--brand); }

.photo-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.4rem 0;
}

.photo-row img {
  width: 100%;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}

figure.snap { margin: 0; }
figure.snap figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 0.45rem; }

.wine-note {
  font-style: italic;
  color: var(--muted);
  padding: 0.5rem 1.1rem 0.7rem;
  font-size: 0.92rem;
}

.link-more { font-weight: 700; text-decoration: none; }
.link-more::after { content: " →"; }

/* ------------------------------ Footer ------------------------------ */

.site-footer {
  margin-top: 2.5rem;
  background: #2f2a24;
  color: #d8cfc4;
}

.site-footer .wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1.8rem;
  padding: 2.4rem 1.25rem 1.6rem;
}

.site-footer h2, .site-footer h3 {
  color: #fff;
  font-size: 1rem;
  margin: 0 0 0.7rem;
  font-family: var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer p { margin: 0 0 0.45rem; font-size: 0.9rem; }
.site-footer a { color: #e8c9cf; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.4rem; font-size: 0.9rem; }

.footer-bottom {
  border-top: 1px solid #453d34;
  padding: 0.9rem 1.25rem;
  text-align: center;
  font-size: 0.8rem;
  color: #a89c8e;
}

.footer-bottom .wrap { padding: 0; }

/* ------------------------------ Responsive ------------------------------ */

@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .split .split-media { order: 0; }
  .hero-photos { max-width: 560px; }
  .cta-band { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .site-header .wrap { justify-content: center; }
  .main-nav ul { justify-content: center; }
  .hero-photos img:last-child { margin-top: 0; }
  .menu-preview { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; gap: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery figure:hover img { transform: none; }
  .btn { transition: none; }
}

@media print {
  .site-header, .site-footer, .skip-link, .cta-band { display: none; }
  body { background: #fff; }
}