/* ==========================================================================
   Dar Rbatia : dîner aux chandelles dans une demeure du XVIIIe siècle
   Thème unique sombre assumé (color-scheme: dark), contrastes AA.
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Palette */
  --bg: #15100d;            /* charbon chaud */
  --bg-deep: #0f0b09;
  --surface: #1e1612;       /* panneaux */
  --surface-2: #271c16;
  --wine: #3d1219;          /* bordeaux profond */
  --wine-2: #5a1b26;
  --accent: #c9a25a;        /* or patiné */
  --accent-2: #e2b866;      /* safran clair */
  --saffron: #d9922e;
  --ink: #f3ead9;           /* ivoire */
  --ink-soft: #e2d6c1;
  --muted: #b9a88f;         /* 7,9:1 sur --bg */
  --line: rgba(201, 162, 90, 0.34);
  --line-soft: rgba(243, 234, 217, 0.12);
  --on-accent: #1a120c;

  /* Typographie */
  --font-display: "Cormorant", "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --font-text: "Karla", "Helvetica Neue", Arial, sans-serif;

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1.0625rem, 1.02rem + 0.2vw, 1.1875rem);
  --step-1: clamp(1.25rem, 1.12rem + 0.6vw, 1.6rem);
  --step-2: clamp(1.6rem, 1.3rem + 1.4vw, 2.5rem);
  --step-3: clamp(2.15rem, 1.6rem + 2.6vw, 3.9rem);
  --step-4: clamp(2.7rem, 1.8rem + 4.2vw, 5.9rem);
  --step-5: clamp(3.6rem, 2rem + 8vw, 9.5rem);

  /* Espacements */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --space-s: clamp(1rem, 0.8rem + 1vw, 1.5rem);
  --space-m: clamp(1.75rem, 1.2rem + 2.4vw, 3rem);
  --space-l: clamp(3rem, 2rem + 5vw, 6rem);
  --space-xl: clamp(5rem, 3rem + 8vw, 10rem);
  --max: 1240px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --arch: 100vmax 100vmax 0 0;

  /* Motif zellige (étoile à huit branches), dessiné en SVG */
  --zellige: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23c9a25a' stroke-opacity='.3' stroke-width='1'%3E%3Crect x='17' y='17' width='30' height='30'/%3E%3Crect x='17' y='17' width='30' height='30' transform='rotate(45 32 32)'/%3E%3Ccircle cx='32' cy='32' r='6'/%3E%3Cpath d='M0 0 10 10M64 0 54 10M0 64 10 54M64 64 54 54M32 0v6M32 64v-6M0 32h6M64 32h-6'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(217, 146, 46, 0.11), transparent 62%),
    radial-gradient(900px 700px at -10% 40%, rgba(90, 27, 38, 0.22), transparent 60%),
    var(--bg);
  background-attachment: scroll;
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.68;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--accent); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.04; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--accent-2); font-weight: 400; }
strong { font-weight: 600; color: var(--ink); }
::selection { background: var(--accent); color: var(--on-accent); }

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

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--accent); color: var(--on-accent);
  padding: 0.75rem 1.1rem; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--gutter), 860px); margin-inline: auto; }

/* ---------- Ruban de démonstration ---------- */
#demo-banner {
  position: relative; z-index: 60;
  margin: 0;
  padding: 0.55rem var(--gutter);
  background: linear-gradient(90deg, var(--wine), #2a0d12 50%, var(--wine));
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.8125rem;
  line-height: 1.45;
  letter-spacing: 0.02em;
  text-align: center;
}

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line-soft);
}
.site-header::before { /* fond flouté sur un pseudo-élément : ne crée pas de bloc conteneur pour le menu mobile */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(21, 16, 13, 0.88);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
}
.brand, .menu-toggle { position: relative; z-index: 90; }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 74px;
}
.brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; }
.brand__name { font-family: var(--font-display); font-size: 1.75rem; font-weight: 500; letter-spacing: 0.01em; }
.brand__name em { font-style: italic; color: var(--accent-2); font-weight: 400; }
.brand__tag { margin-top: 0.3rem; font-size: 0.75rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.25rem); }
.nav__list { display: flex; gap: clamp(1rem, 2.2vw, 2.1rem); }
.nav__list a {
  position: relative; text-decoration: none; font-size: 0.875rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft); padding: 0.5rem 0;
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.15rem; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease);
}
.nav__list a:hover::after, .nav__list a[aria-current="page"]::after { transform: scaleX(1); }
.nav__list a[aria-current="page"] { color: var(--accent-2); }

.header-actions { display: flex; align-items: center; gap: 0.6rem; }
.menu-toggle {
  display: none;
  width: 46px; height: 46px; padding: 0; border: 1px solid var(--line); border-radius: 50%;
  background: transparent; color: var(--ink); cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle__bars { position: relative; width: 18px; height: 10px; }
.menu-toggle__bars::before, .menu-toggle__bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.menu-toggle__bars::before { top: 0; }
.menu-toggle__bars::after { top: 8.5px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { top: 4.25px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { top: 4.25px; transform: rotate(-45deg); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.7em;
  min-height: 48px; padding: 0.85rem 1.6rem;
  border: 1px solid var(--accent); border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  font-family: var(--font-text); font-size: 0.875rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; line-height: 1.2; text-align: center;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: rgba(243, 234, 217, 0.45); }
.btn--ghost:hover { background: rgba(243, 234, 217, 0.08); border-color: var(--ink); color: var(--ink); }
.btn--small { min-height: 42px; padding: 0.6rem 1.15rem; font-size: 0.8125rem; letter-spacing: 0.12em; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.6em;
  color: var(--accent-2); text-decoration: none; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  padding-block: 0.5rem;
}
.link-arrow::after { content: ""; width: 2.2rem; height: 1px; background: currentColor; transition: width 0.45s var(--ease); }
.link-arrow:hover::after { width: 3.4rem; }

/* ---------- Éléments éditoriaux ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.9em;
  margin: 0 0 1.4rem;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 2.4rem; height: 1px; background: currentColor; opacity: 0.8; }
.eyebrow--center { justify-content: center; }
.eyebrow--center::after { content: ""; width: 2.4rem; height: 1px; background: currentColor; opacity: 0.8; }

.lead { font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); font-family: var(--font-display); font-weight: 400; }
.muted { color: var(--muted); }

.ornament { display: flex; align-items: center; justify-content: center; gap: 1rem; color: var(--accent); margin: 0 auto; }
.ornament::before, .ornament::after { content: ""; flex: 0 1 7rem; height: 1px; background: linear-gradient(90deg, transparent, var(--line), var(--accent)); }
.ornament::after { transform: scaleX(-1); }
.ornament svg { width: 22px; height: 22px; flex: none; }

.section { padding-block: clamp(4.5rem, 3rem + 6vw, 8rem); position: relative; }
.section--tight { padding-block: var(--space-l); }
.section-head { max-width: 46rem; margin-bottom: var(--space-l); }
.section-head h2 { font-size: var(--step-3); }
.section-head--center { text-align: center; margin-inline: auto; }

/* ---------- Photos : conteneurs, arches, repli ---------- */
.ph {
  position: relative; overflow: hidden; margin: 0;
  background-color: var(--surface);
  background-image: linear-gradient(160deg, rgba(90, 27, 38, 0.55), rgba(21, 16, 13, 0.2) 60%), var(--zellige);
  background-size: auto, 64px 64px;
}
.ph::before { /* motif plus discret sous la photo, visible uniquement si elle manque */
  content: ""; position: absolute; inset: 0; opacity: 0.35; pointer-events: none;
}
.ph img { width: 100%; height: 100%; object-fit: cover; position: relative; color: transparent; font-size: 0; }
.ph img.is-missing { visibility: hidden; }
.ph--arch { border-radius: var(--arch); }
.arch-frame { position: relative; }
.arch-frame::after { /* filet doré décalé, en arche */
  content: ""; position: absolute; inset: -14px 14px 14px -14px; border: 1px solid var(--line); border-radius: var(--arch); pointer-events: none; z-index: -1;
}
figcaption, .caption {
  margin-top: 0.9rem; font-size: var(--step--1); letter-spacing: 0.04em; color: var(--muted);
}
.caption-num { font-family: var(--font-display); font-style: italic; color: var(--accent); margin-right: 0.5em; font-size: 1.1em; }

/* ---------- Héros (accueil) ---------- */
.hero { position: relative; min-height: 560px; height: calc(100svh - 110px); max-height: 920px; display: flex; align-items: flex-end; isolation: isolate; overflow: hidden; }
.hero .ph { position: absolute; inset: 0; z-index: -2; }
.hero .ph img { object-position: 64% 0%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(0deg, rgba(15, 11, 9, 0.96) 0%, rgba(15, 11, 9, 0.72) 30%, rgba(15, 11, 9, 0.12) 62%, rgba(15, 11, 9, 0.35) 100%),
    linear-gradient(90deg, rgba(15, 11, 9, 0.55), transparent 55%);
}
.hero__content { padding-block: var(--space-l) clamp(2.5rem, 6vw, 5rem); }
.hero h1 { font-size: var(--step-5); font-weight: 400; line-height: 0.9; letter-spacing: -0.02em; margin-bottom: 1.4rem; }
.hero h1 em { display: block; font-size: 0.42em; letter-spacing: 0; line-height: 1.1; margin-top: 0.45rem; color: var(--ink-soft); }
.hero__lead { max-width: 34rem; font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); font-family: var(--font-display); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.hero__side {
  position: absolute; right: var(--gutter); bottom: clamp(2.5rem, 6vw, 5rem);
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: 0.8125rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted);
  display: none;
}
@media (min-aspect-ratio: 13/10) {
  .hero .ph img { object-position: 50% 0%; }
}
@media (min-width: 900px) { .hero__side { display: block; } }

/* ---------- Héros des pages internes ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; min-height: 460px; height: 72svh; max-height: 760px; display: flex; align-items: flex-end; }
.page-hero .ph { position: absolute; inset: 0; z-index: -2; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(0deg, rgba(15, 11, 9, 0.97) 0%, rgba(15, 11, 9, 0.7) 36%, rgba(15, 11, 9, 0.12) 72%, rgba(15, 11, 9, 0.42) 100%),
    linear-gradient(90deg, rgba(15, 11, 9, 0.62), rgba(15, 11, 9, 0) 62%);
}
.page-hero__content { padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.page-hero h1 { font-size: var(--step-4); font-weight: 400; margin-bottom: 1.1rem; max-width: 54rem; }
.page-hero__lead { max-width: 36rem; font-family: var(--font-display); font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); margin: 0; }
.page-hero .btn { margin-top: 1.8rem; }

/* ---------- Introduction (accueil) ---------- */
.intro { display: grid; gap: var(--space-l); align-items: center; }
.intro__text h2 { font-size: var(--step-3); margin-bottom: 1.6rem; }
.intro__text p { max-width: 34rem; color: var(--ink-soft); }
.intro__media { position: relative; padding: 0 0 18% 0; max-width: 520px; justify-self: center; width: 100%; }
.intro__media .ph--arch { aspect-ratio: 4 / 5; }
.intro__media .ph--arch img { object-position: 30% 50%; }
.intro__media .inset {
  position: absolute; right: -4%; bottom: 0; width: 46%; aspect-ratio: 1; border: 6px solid var(--bg); border-radius: 50%;
}
.intro__media .inset img { object-position: 50% 45%; }

/* Chiffres */
.figures { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: var(--space-l); }
.figure { padding: 1.6rem 0; text-align: center; }
.figure + .figure { border-top: 1px solid var(--line-soft); }
.figure__value { display: block; font-family: var(--font-display); font-size: var(--step-3); line-height: 1; color: var(--accent-2); font-weight: 400; }
.figure__value small { font-size: 0.5em; vertical-align: super; font-style: italic; }
.figure__label { display: block; margin-top: 0.6rem; font-size: 0.8125rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }

/* ---------- Mise en avant de la carte (accueil) ---------- */
.dishes { display: grid; gap: var(--space-m); }
@media (max-width: 719px) { /* rangée défilante sur téléphone, sans débordement de la page */
  .dishes {
    grid-auto-flow: column; grid-auto-columns: 74%; gap: 1rem;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
    padding-bottom: 0.5rem; scrollbar-width: thin; scrollbar-color: var(--line) transparent;
  }
  .dish { scroll-snap-align: start; }
}
.dish { margin: 0; }
.dish .ph { aspect-ratio: 3 / 4; }
.dish figcaption { margin-top: 1.2rem; font-family: var(--font-display); font-size: var(--step-1); color: var(--ink); letter-spacing: 0; line-height: 1.25; }
.dish figcaption span { display: block; margin-top: 0.35rem; font-family: var(--font-text); font-size: var(--step--1); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.carte-teaser__foot { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; margin-top: var(--space-l); padding-top: var(--space-m); border-top: 1px solid var(--line); }
.carte-teaser__foot p { margin: 0; font-family: var(--font-display); font-size: var(--step-1); color: var(--ink-soft); }

/* ---------- Bande « le soir » ---------- */
.evening { position: relative; background: var(--wine); overflow: hidden; isolation: isolate; }
.evening::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.08;
  background-image: var(--zellige); background-size: 64px 64px;
}
.evening__grid { display: grid; gap: var(--space-l); align-items: center; }
.evening .ph { aspect-ratio: 2 / 1; border-radius: 2px; }
.evening .ph img { object-position: 40% 100%; }
@media (min-width: 960px) {
  .evening .ph { aspect-ratio: 1 / 1; }
  .evening .ph img { object-position: 0% 50% !important; }
}
.evening h2 { font-size: var(--step-3); margin-bottom: 1.4rem; }
.evening p { color: var(--ink-soft); max-width: 32rem; }
.evening .eyebrow { color: var(--accent-2); }

/* ---------- Deux services ---------- */
.services { display: grid; gap: var(--space-l); align-items: center; }
.services__media { max-width: 440px; width: 100%; justify-self: center; }
.services__media .ph { aspect-ratio: 4 / 5; }
.services__media .ph img { object-position: 50% 0%; }
.service { padding-block: var(--space-m); border-top: 1px solid var(--line); }
.service:last-child { border-bottom: 1px solid var(--line); }
.service__num { font-family: var(--font-display); font-style: italic; font-size: var(--step-1); color: var(--accent); }
.service h3 { font-size: var(--step-2); margin: 0.4rem 0 0.8rem; }
.service p { color: var(--ink-soft); max-width: 32rem; }

/* ---------- Infos pratiques ---------- */
.practical { display: grid; gap: 0; border-top: 1px solid var(--line); }
.practical__item { padding: var(--space-m) 0; border-bottom: 1px solid var(--line-soft); }
.practical__item h3 { font-family: var(--font-text); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.9rem; }
.practical__item p { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.4; color: var(--ink); margin-bottom: 0.9rem; }
.practical__item p.small { font-family: var(--font-text); font-size: var(--step-0); color: var(--ink-soft); }

/* ---------- Carte du restaurant (menus.html) ---------- */
.carte {
  position: relative;
  background: linear-gradient(180deg, rgba(39, 28, 22, 0.92), rgba(30, 22, 18, 0.96));
  border: 1px solid var(--line);
  padding: clamp(2.25rem, 6vw, 5.5rem) clamp(1.25rem, 5vw, 5rem);
}
.carte::before { /* double filet doré */
  content: ""; position: absolute; inset: 8px; border: 1px solid rgba(201, 162, 90, 0.18); pointer-events: none;
}
.carte__corner { position: absolute; width: 54px; height: 54px; color: var(--accent); opacity: 0.75; }
.carte__corner--tl { top: 18px; left: 18px; }
.carte__corner--tr { top: 18px; right: 18px; transform: scaleX(-1); }
.carte__corner--bl { bottom: 18px; left: 18px; transform: scaleY(-1); }
.carte__corner--br { bottom: 18px; right: 18px; transform: scale(-1, -1); }
.carte__head { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.carte__head h2 { font-size: var(--step-3); margin: 1.2rem 0 0.8rem; }
.carte__head p { color: var(--muted); margin: 0 auto; max-width: 34rem; }

.menus { display: grid; grid-template-columns: 1fr; }
.menu-item { text-align: center; padding: clamp(2rem, 4vw, 3rem) clamp(0.5rem, 2vw, 2rem); border-top: 1px solid var(--line-soft); }
.menu-item:first-child { border-top: 0; }
.menu-item__num { display: block; font-family: var(--font-display); font-style: italic; font-size: var(--step-1); color: var(--accent); line-height: 1; }
.menu-item h3 { font-size: var(--step-2); margin: 0.6rem 0 0.35rem; }
.menu-item__en { margin: 0 0 1.3rem; font-family: var(--font-display); font-style: italic; font-size: 1.0625rem; color: var(--muted); }
.menu-item ul { display: grid; gap: 0.15rem; }
.menu-item li { color: var(--ink-soft); line-height: 1.55; }
.menu-item li + li::before { content: ""; display: block; width: 5px; height: 5px; margin: 0.45rem auto 0.55rem; background: var(--accent); transform: rotate(45deg); opacity: 0.7; }
.menu-item__price { display: inline-flex; align-items: center; gap: 0.9rem; margin-top: 1.5rem; font-family: var(--font-display); font-size: var(--step-1); color: var(--accent-2); letter-spacing: 0.04em; }
.menu-item__price::before, .menu-item__price::after { content: ""; width: 1.8rem; height: 1px; background: var(--line); }
.menu-item__price abbr { text-decoration: none; font-size: 0.72em; letter-spacing: 0.16em; margin-left: 0.25em; }
.menu-item--signature { position: relative; }
.menu-item__flag { display: inline-block; margin-bottom: 0.9rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--accent); }

.carte__foot { margin-top: clamp(2rem, 4vw, 3rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); text-align: center; }
.carte__foot p { color: var(--muted); font-size: var(--step--1); margin: 0 auto 1.4rem; max-width: 36rem; }

.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.5rem, 1.5vw, 1.25rem); }
.strip .ph { aspect-ratio: 3 / 4; }
.strip .ph--arch { border-radius: var(--arch); }

.drinks { display: grid; gap: var(--space-l); }
.drinks h2 { font-size: var(--step-3); }
.price-list li { display: flex; align-items: baseline; gap: 0.8rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line-soft); }
.price-list .name { color: var(--ink); }
.price-list .name small { display: block; font-family: var(--font-display); font-size: 1rem; color: var(--muted); font-style: italic; }
.price-list .dots { flex: 1; border-bottom: 1px dotted rgba(201, 162, 90, 0.45); transform: translateY(-0.3em); min-width: 1rem; }
.price-list .price { font-family: var(--font-display); font-size: 1.25rem; color: var(--accent-2); white-space: nowrap; }

.on-request { text-align: center; }
.on-request h2 { font-size: var(--step-3); margin-bottom: 1.2rem; }
.on-request .dishes-names { font-family: var(--font-display); font-style: italic; font-size: var(--step-2); color: var(--accent-2); margin: 0 auto 1.4rem; }
.on-request p { color: var(--ink-soft); max-width: 36rem; margin-inline: auto; }

/* ---------- Page « La maison » ---------- */
.chapter { display: grid; gap: var(--space-l); align-items: center; padding-block: var(--space-l); }
.chapter + .chapter { border-top: 1px solid var(--line-soft); }
.chapter__num { display: block; font-family: var(--font-display); font-style: italic; font-size: var(--step-3); color: var(--accent); line-height: 1; margin-bottom: 1rem; }
.chapter h2 { font-size: var(--step-3); margin-bottom: 1.4rem; }
.chapter p { color: var(--ink-soft); max-width: 34rem; }
.chapter__media { width: 100%; max-width: 520px; justify-self: center; }
.chapter__media .ph { aspect-ratio: 4 / 5; }
.chapter__media--wide { max-width: none; }
.chapter__media--wide .ph { aspect-ratio: 3 / 2; border-radius: 2px; }

.quote { text-align: center; padding-block: var(--space-l) 0; }
.quote blockquote { margin: 0 auto; max-width: 52rem; font-family: var(--font-display); font-size: var(--step-3); line-height: 1.15; font-style: italic; font-weight: 400; color: var(--ink); }
.quote cite { display: block; margin-top: 1.6rem; font-style: normal; font-size: 0.8125rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }

/* ---------- Privatisation ---------- */
.capacity { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line-soft); }
.capacity div { padding: clamp(1.4rem, 3vw, 2.4rem) clamp(1rem, 2vw, 1.6rem); border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.capacity strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: var(--step-4); line-height: 0.95; color: var(--accent-2); }
.capacity span { display: block; margin-top: 0.6rem; font-size: 0.8125rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

.split { display: grid; gap: var(--space-l); align-items: center; }
.split h2 { font-size: var(--step-3); margin-bottom: 1.4rem; }
.split p { color: var(--ink-soft); max-width: 34rem; }
.split__media .ph { aspect-ratio: 4 / 5; }

.occasions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.6rem 0 2rem; }
.occasions li { border: 1px solid var(--line); border-radius: 999px; padding: 0.45rem 1rem; font-size: 0.9375rem; color: var(--ink-soft); }

.trust { margin-top: var(--space-m); padding-top: var(--space-m); border-top: 1px solid var(--line-soft); }
.trust h3 { font-family: var(--font-text); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.trust ul { display: grid; gap: 0.5rem; }
.trust li { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.3; color: var(--ink); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: var(--space-l); align-items: start; }
.contact-list { border-top: 1px solid var(--line); }
.contact-list > div { padding: 1.6rem 0; border-bottom: 1px solid var(--line-soft); display: grid; gap: 0.4rem; }
.contact-list dt { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); }
.contact-list dd { margin: 0; font-family: var(--font-display); font-size: var(--step-2); line-height: 1.2; }
.contact-list dd a { text-decoration: none; }
.contact-list dd a:hover { color: var(--accent-2); }
.contact-list dd .small { display: block; margin-top: 0.5rem; font-family: var(--font-text); font-size: var(--step-0); color: var(--ink-soft); line-height: 1.5; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.contact-media .ph { aspect-ratio: 4 / 5; }

/* ---------- Appel final ---------- */
.cta-band { text-align: center; padding-block: clamp(4.5rem, 3rem + 6vw, 8rem); position: relative; isolation: isolate; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.07;
  background-image: var(--zellige); background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent);
  mask-image: radial-gradient(closest-side, #000, transparent);
}
.cta-band h2 { font-size: var(--step-4); font-weight: 400; margin: 1.4rem 0 1.2rem; }
.cta-band p { color: var(--ink-soft); max-width: 34rem; margin: 0 auto 2rem; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--line); padding: var(--space-l) 0 calc(6.5rem + env(safe-area-inset-bottom)); }
.footer-grid { display: grid; gap: var(--space-m); }
.footer-brand .brand__name { font-size: 2.4rem; }
.footer-brand p { margin-top: 1rem; color: var(--muted); max-width: 22rem; }
.site-footer h2 { font-family: var(--font-text); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.site-footer p, .site-footer li { color: var(--ink-soft); font-size: 1rem; }
.site-footer ul { display: grid; gap: 0.35rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--accent-2); text-decoration: underline; }
.footer-bottom { margin-top: var(--space-l); padding-top: 1.6rem; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; justify-content: space-between; }
.footer-bottom p { margin: 0; font-size: 0.875rem; color: var(--muted); }

/* ---------- WhatsApp flottant ---------- */
.wa-float {
  position: fixed; z-index: 70;
  right: calc(16px + env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: #1f5c43; color: #fff;
  border: 1px solid rgba(226, 184, 102, 0.75);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 0 6px rgba(21, 16, 13, 0.55);
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease);
}
.wa-float:hover { transform: translateY(-2px); background: #247050; }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Animations au défilement ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-delay-1 { transition-delay: 0.12s; }
.js .reveal-delay-2 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Mobile : menu ---------- */
@media (max-width: 959px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 0; z-index: 80;
    flex-direction: column; justify-content: center; align-items: stretch; gap: 2.5rem;
    padding: 6rem var(--gutter) calc(3rem + env(safe-area-inset-bottom));
    background-color: #0f0b09;
    background-image: radial-gradient(700px 500px at 80% 0%, rgba(90, 27, 38, 0.45), transparent 70%);
    visibility: hidden; opacity: 0; transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transition: opacity 0.4s var(--ease); }
  .nav__list { flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
  .nav__list a { display: block; padding: 1.05rem 0; border-bottom: 1px solid var(--line-soft); font-family: var(--font-display); font-size: 2rem; letter-spacing: 0; text-transform: none; color: var(--ink); }
  .nav__list a::after { display: none; }
  .nav__list a[aria-current="page"] { color: var(--accent-2); font-style: italic; }
  .nav .btn { align-self: flex-start; }
  body.nav-open { overflow: hidden; }
}
@media (min-width: 960px) {
  .nav .nav__cta-mobile { display: none; }
}
@media (max-width: 420px) {
  .brand__name { font-size: 1.5rem; }
  .brand__tag { font-size: 0.75rem; letter-spacing: 0.18em; }
  .header-actions .btn--small { padding-inline: 0.95rem; letter-spacing: 0.08em; }
}

/* ---------- Grilles à partir de la tablette ---------- */
@media (min-width: 720px) {
  .figures { grid-template-columns: repeat(3, 1fr); }
  .figure + .figure { border-top: 0; border-left: 1px solid var(--line-soft); }
  .dishes { grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 2.5rem); }
  .dish:nth-child(2) { margin-top: clamp(3rem, 7vw, 6rem); }
  .dish:nth-child(3) { margin-top: clamp(1.5rem, 3.5vw, 3rem); }
  .practical { grid-template-columns: repeat(3, 1fr); gap: 0 clamp(1.5rem, 3vw, 3rem); }
  .capacity { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .menus { grid-template-columns: 1fr 1fr; }
  .menu-item { border-top: 1px solid var(--line-soft); }
  .menu-item:nth-child(-n+2) { border-top: 0; }
  .menu-item:nth-child(odd):not(.menu-item--signature) { border-right: 1px solid var(--line-soft); }
  .menu-item--signature { grid-column: 1 / -1; }
  .drinks { grid-template-columns: 0.8fr 1.2fr; align-items: start; }
  .drinks .price-list { column-count: 1; }
}
@media (min-width: 960px) {
  .intro { grid-template-columns: 1.05fr 0.95fr; }
  .intro__media { justify-self: end; }
  .evening__grid { grid-template-columns: 1.15fr 0.85fr; }
  .services { grid-template-columns: 0.85fr 1.15fr; gap: clamp(3rem, 7vw, 7rem); }
  .chapter { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 7vw, 7rem); }
  .chapter--reverse .chapter__media { order: -1; }
  .split { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 7vw, 7rem); }
  .split--reverse .split__media { order: -1; }
  .contact-grid { grid-template-columns: 1.2fr 0.8fr; gap: clamp(3rem, 7vw, 7rem); }
}

@media print {
  .site-header, .wa-float, #demo-banner { position: static; }
  .wa-float { display: none; }
}

/* Libellé court du bouton d'en-tête sur petit écran (nom accessible complet conservé) */
@media (max-width: 479px) {
  .cta-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

sup { font-size: 0.62em; line-height: 0; vertical-align: 0.55em; margin-left: 0.04em; }
.nowrap { white-space: nowrap; }
.services__title { font-size: var(--step-3); margin-bottom: var(--space-m); }
@media (min-width: 960px) {
  .services { align-items: start; }
  .services__media, .contact-media { position: sticky; top: 120px; }
}
.hero .eyebrow, .page-hero .eyebrow { color: var(--accent-2); text-shadow: 0 1px 14px rgba(0, 0, 0, 0.85), 0 0 2px rgba(0, 0, 0, 0.6); }
.quote blockquote::before { content: "\201C"; display: block; font-size: 2.4em; line-height: 0.6; color: var(--accent); margin-bottom: 0.2em; font-style: normal; }
