/*
 * Design system « Carib Luxe Coastal ».
 * Les trois couleurs de marque sont injectées par le back-office
 * (--primary, --secondary, --dark) ; tout le reste en dérive.
 */

:root {
  --primary: #00685f;
  --secondary: #a73a00;
  --dark: #0f172a;

  --sand-warm: #faf7f2;
  --sand-card: #ffffff;
  --sand-border: #ede6dd;
  /*
   * Neutres sable. Les anciens tons froids (lavande #f0f3ff, marine
   * #111c2d, gris-vert #3d4947) juraient avec le sable de l'habillage.
   * Le fond teinté garde la luminance de l'ancien lavande : les sur-titres
   * en couleur principale y conservent leur contraste, quel que soit le
   * préréglage.
   */
  --surface-low: #f8f3ea;
  --surface-container: #f1eadf;
  --on-surface: #2a2420;
  --on-surface-variant: #5a5047;
  --outline-variant: #cdbfae;
  --gold: #f59e0b;
  --sky: #0ea5e9;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 6rem;

  --container: 1240px;
  --gutter: 1rem;

  --serif: "Noto Serif", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: var(--serif);
  --script: var(--serif);

  /* Ce que chaque habillage redéfinit pour se distinguer. */
  --header-bg: rgba(250, 247, 242, 0.85);
  --header-border: 1px solid rgba(237, 230, 221, 0.8);
  --header-ink: var(--dark);
  --ink: var(--dark);
  --hero-bg: var(--dark);
  --hero-ink: #ffffff;
  /*
   * Deux voiles superposés : l'un horizontal, qui garantit la lisibilité du
   * texte aligné à gauche quelle que soit la photographie déposée ; l'autre
   * vertical, qui ancre l'en-tête et les encarts du bas. Sans le premier,
   * une photo prise à contre-jour effaçait le titre.
   */
  --hero-veil:
    linear-gradient(to right, rgba(15, 23, 42, 0.78) 0%, rgba(15, 23, 42, 0.55) 42%, rgba(15, 23, 42, 0.12) 78%, rgba(15, 23, 42, 0.05) 100%),
    linear-gradient(to top, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.08) 55%, rgba(15, 23, 42, 0.45));
  --hero-accent: #89f5e7;
  --hero-min-height: 85vh;
  --card-bg: var(--sand-card);
  --card-border: 1px solid var(--sand-border);
  --card-shadow: var(--shadow-1);
  --card-radius: var(--radius-lg);
  --eyebrow-tracking: 0.08em;
  --eyebrow-transform: uppercase;
  --title-weight: 500;
  --footer-bg: var(--sand-card);

  --shadow-1: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
  --shadow-2: 0 8px 28px -6px rgba(15, 23, 42, 0.10);
  --shadow-3: 0 20px 40px -8px rgba(15, 23, 42, 0.12);

  --header-height: 5rem;
}

@media (min-width: 1024px) {
  :root { --gutter: 2rem; }
}

*, *::before, *::after { box-sizing: border-box; }

/* L'attribut hidden doit l'emporter sur tout display posé par une classe. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 1rem); }

body {
  margin: 0;
  background: var(--sand-warm);
  color: var(--on-surface);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-size: 20px;
  vertical-align: middle;
  flex-shrink: 0;
}

.icon-sm { font-size: 16px; }
.icon-md { font-size: 18px; }
.icon-lg { font-size: 22px; }
.icon-xl { font-size: 26px; }
.filled { font-variation-settings: "FILL" 1; }

/* ---------------------------------------------------------------- Layout */

.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--space-3xl); }
.section--tinted { background: var(--surface-low); }

@media (min-width: 1024px) {
  .section--wide { padding-block: var(--space-4xl); }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--dark);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 200;
  border-radius: 0 0 var(--radius-md) 0;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------ Typographie */

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: var(--eyebrow-tracking);
  text-transform: var(--eyebrow-transform);
  color: var(--primary);
  display: block;
}
.eyebrow--secondary { color: var(--secondary); }
.eyebrow--gold { color: var(--gold); }
/*
 * Sur fond clair, l'or tombait à 2,15:1. La couleur principale ne suffit pas
 * non plus partout (3,5:1 sur Nocturne, 3,8:1 avec un bleu clair) : le texte
 * secondaire de l'habillage reste lisible quel que soit le préréglage.
 */
.eyebrow--muted { color: var(--on-surface-variant); }

.headline-lg { font-size: 28px; line-height: 36px; font-weight: var(--title-weight); }
.headline-md { font-size: 26px; line-height: 34px; font-weight: var(--title-weight); }
.headline-sm { font-size: 20px; line-height: 28px; font-weight: 600; }

@media (min-width: 768px) {
  .headline-lg { font-size: 40px; line-height: 48px; }
}

.lead { font-size: 18px; line-height: 28px; }
.body { font-size: 16px; line-height: 24px; color: var(--on-surface-variant); }
.small { font-size: 14px; line-height: 20px; color: var(--on-surface-variant); }
.muted { color: var(--on-surface-variant); }

/* --------------------------------------------------------------- Boutons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  height: 48px;
  padding-inline: var(--space-xl);
  border: 0;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(0, 104, 95, 0.25); }
.btn--primary:hover { background: color-mix(in srgb, var(--primary) 82%, #ffffff); transform: translateY(-1px); box-shadow: var(--shadow-2); }

.btn--accent { background: var(--secondary); color: #fff; }
.btn--accent:hover { background: color-mix(in srgb, var(--secondary) 85%, #ffffff); }

.btn--dark { background: var(--dark); color: #fff; height: 44px; }
.btn--dark:hover { background: var(--on-surface-variant); }

.btn--outline { background: transparent; color: var(--dark); box-shadow: inset 0 0 0 1.5px var(--dark); }
.btn--outline:hover { background: var(--dark); color: #fff; }

.btn--glass { background: rgba(255, 255, 255, 0.15); color: #fff; backdrop-filter: blur(8px); }
.btn--glass:hover { background: #fff; color: var(--dark); }

.btn--sm { height: 40px; padding-inline: var(--space-md); }

/* Un numéro coupé sur deux lignes ne se lit ni ne se recopie. */
.tel { white-space: nowrap; font-variant-numeric: tabular-nums; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
}
.link-arrow:hover { text-decoration: underline; }
.link-arrow--secondary { color: var(--secondary); }

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

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: var(--header-border);
}

.header__inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.brand { display: flex; flex-direction: column; line-height: 1.15; }
.brand--logo { justify-content: center; }
.brand--logo img { max-height: 48px; width: auto; max-width: 220px; object-fit: contain; }
.brand__mark { max-height: 44px; width: auto; max-width: 200px; object-fit: contain; margin-bottom: var(--space-2xs); }
.brand__name--footer { font-size: 20px; }

/* Emblème sans texte : il accompagne le nom au lieu de le remplacer. */
.brand--embleme { flex-direction: row; align-items: center; gap: 10px; }
.brand__embleme { width: 44px; height: 44px; flex: none; object-fit: contain; }
.brand__texte { display: flex; flex-direction: column; min-width: 0; }

@media (max-width: 480px) {
  .brand--logo img { max-height: 40px; max-width: 140px; }
  .brand__embleme { width: 36px; height: 36px; }
  .brand--embleme .brand__name { font-size: 17px; }
  .brand--embleme .brand__place { font-size: 10px; letter-spacing: 0.08em; }
}
.brand__name { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; text-transform: uppercase; }
.brand__place { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary); }

.nav { display: none; align-items: center; gap: var(--space-lg); }
.nav a { font-size: 14px; font-weight: 600; color: var(--on-surface-variant); transition: color 0.2s ease; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--primary); }

@media (min-width: 1100px) { .nav { display: flex; } }

.header__actions { display: flex; align-items: center; gap: var(--space-sm); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--sand-border);
  border-radius: var(--radius-md);
  background: var(--sand-card);
  color: var(--ink);
  cursor: pointer;
}
@media (min-width: 1100px) { .nav-toggle { display: none; } }

.header__phone { display: none; }
@media (min-width: 640px) { .header__phone { display: inline-flex; } }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--sand-border);
  background: var(--sand-warm);
  padding-block: var(--space-md);
}
.mobile-nav[data-open="true"] { display: block; }
@media (min-width: 1100px) { .mobile-nav { display: none !important; } }
.mobile-nav a {
  display: block;
  padding: var(--space-sm) 0;
  font-weight: 600;
  border-bottom: 1px solid var(--sand-border);
}
.mobile-nav a:last-child { border-bottom: 0; }

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

.hero {
  position: relative;
  background: var(--hero-bg);
  color: var(--hero-ink);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}

.hero__veil {
  position: absolute;
  inset: 0;
  background: var(--hero-veil);
}

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-2xl);
  min-height: var(--hero-min-height);
  padding-top: calc(var(--header-height) + var(--space-2xl));
  padding-bottom: var(--space-3xl);
}

.hero__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-sm); }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.375rem var(--space-md);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--gold);
  animation: pulse 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.hero__note { display: none; align-items: center; gap: var(--space-xs); font-size: 14px; color: rgba(250, 247, 242, 0.85); }
@media (min-width: 768px) { .hero__note { display: flex; } }

.hero__body { max-width: 48rem; display: flex; flex-direction: column; gap: var(--space-md); margin-block: auto; }

.hero__title {
  font-size: 38px;
  line-height: 46px;
  font-weight: 600;
  color: var(--hero-ink);
  text-wrap: balance;
}
.hero__title em { font-style: italic; font-weight: 400; color: var(--hero-accent); }

@media (min-width: 768px) { .hero__title { font-size: 56px; line-height: 68px; } }

.hero__text { font-size: 18px; line-height: 28px; font-weight: 300; color: rgba(250, 247, 242, 0.92); max-width: 42rem; }

.hero__horaires {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--hero-ink);
}
.hero__horaires .material-symbols-outlined { color: var(--gold); }
@media (min-width: 768px) { .hero__horaires { display: none; } }

/*
 * Sur téléphone, sept lignes de texte repoussaient les horaires et les
 * boutons sous la ligne de flottaison. Trois suffisent : la version longue
 * se lit dans la section « La maison ».
 */
@media (max-width: 767px) {
  .hero__text {
    font-size: 16px;
    line-height: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-md); padding-top: var(--space-xs); }

.hero__facts { display: grid; gap: var(--space-md); grid-template-columns: 1fr; }
@media (min-width: 768px) { .hero__facts { grid-template-columns: repeat(3, 1fr); } }

.fact {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(6px);
}
.fact__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}
.fact__icon--primary { background: rgba(0, 104, 95, 0.28); color: #89f5e7; }
.fact__icon--secondary { background: rgba(245, 158, 11, 0.2); color: var(--gold); }
.fact__icon--sky { background: rgba(14, 165, 233, 0.2); color: #7dd3fc; }
.fact__title { font-size: 14px; font-weight: 600; color: #fff; }
.fact__text { font-size: 14px; color: rgba(250, 247, 242, 0.72); }

/* --------------------------------------------------------------- Concept */

.split { display: grid; gap: var(--space-2xl); align-items: center; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; } }

.concept__visual { position: relative; padding-bottom: var(--space-xl); }

.concept__main {
  position: relative;
  z-index: 2;
  width: 82%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-3);
  background: var(--surface-container);
}
.concept__main img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.concept__main:hover img { transform: scale(1.04); }

.concept__caption {
  position: absolute;
  z-index: 4;
  left: 1rem;
  right: auto;
  bottom: 1rem;
  max-width: 58%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-1);
}

.concept__inset {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 3;
  width: 48%;
  aspect-ratio: 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-3);
  background: var(--surface-container);
}
.concept__inset img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.concept__inset:hover img { transform: scale(1.04); }

.concept__glow {
  position: absolute;
  top: -3rem;
  left: -3rem;
  width: 16rem;
  height: 16rem;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  filter: blur(60px);
  z-index: 1;
  pointer-events: none;
}

.concept__body { display: flex; flex-direction: column; gap: var(--space-lg); }
@media (min-width: 1024px) { .concept__body { padding-left: var(--space-xl); } }

.eyebrow-row { display: flex; align-items: center; gap: var(--space-xs); color: var(--primary); }

.feature-grid { display: grid; gap: var(--space-md); }
@media (min-width: 560px) { .feature-grid { grid-template-columns: 1fr 1fr; } }

.card {
  background: var(--card-bg);
  border: var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
}

.feature { display: flex; flex-direction: column; gap: var(--space-2xs); padding: var(--space-md); }
.feature__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-2xs);
}
.tone-primary { background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); }
.tone-secondary { background: color-mix(in srgb, var(--secondary) 12%, transparent); color: var(--secondary); }
.tone-gold { background: rgba(245, 158, 11, 0.14); color: #b45309; }

/* --------------------------------------------------------------- Moments */

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}
@media (min-width: 768px) {
  .section-head--split { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .section-head--split .section-head__aside { max-width: 28rem; text-align: right; }
}
.section-head--center { text-align: center; align-items: center; max-width: 42rem; margin-inline: auto; }

.duo { display: grid; gap: var(--space-xl); }
@media (min-width: 1024px) { .duo { grid-template-columns: 1fr 1fr; } }

.moment {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: var(--space-xl);
  overflow: hidden;
  border-radius: var(--radius-xl);
}
@media (min-width: 1024px) { .moment { padding: var(--space-2xl); } }

.moment__blob {
  position: absolute;
  top: 0;
  right: 0;
  width: 9rem;
  height: 9rem;
  border-radius: 0 0 0 100%;
  pointer-events: none;
  transition: transform 0.4s ease;
}
.moment:hover .moment__blob { transform: scale(1.12); }
.moment--primary .moment__blob { background: color-mix(in srgb, var(--primary) 7%, transparent); }
.moment--secondary .moment__blob { background: rgba(245, 158, 11, 0.1); }

.moment__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-xs); margin-bottom: var(--space-md); }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem var(--space-xs);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge--primary { background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); }
.badge--secondary { background: color-mix(in srgb, var(--secondary) 12%, transparent); color: var(--secondary); }
.badge--gold { background: rgba(245, 158, 11, 0.12); color: #b45309; }

.moment__points { display: flex; flex-direction: column; gap: var(--space-xs); margin-block: var(--space-lg); font-size: 14px; }
.moment__points li { display: flex; align-items: flex-start; gap: var(--space-xs); }
.moment--primary .moment__points .material-symbols-outlined { color: var(--primary); }
.moment--secondary .moment__points .material-symbols-outlined { color: var(--secondary); }

.moment__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xs);
  padding-top: var(--space-md);
  border-top: 1px solid var(--sand-border);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

/* ------------------------------------------------- Aperçu et page carte */

.menu-columns { display: grid; gap: var(--space-xl); }
@media (min-width: 1024px) { .menu-columns { grid-template-columns: 1fr 1fr; align-items: start; } }

.menu-panel { display: flex; flex-direction: column; gap: var(--space-lg); padding: var(--space-xl); }
.menu-panel__head { display: flex; align-items: center; gap: var(--space-xs); padding-bottom: var(--space-xs); }
.menu-panel__head .material-symbols-outlined { color: var(--primary); }
.menu-panel:nth-child(even) .menu-panel__head .material-symbols-outlined { color: var(--secondary); }

.dish { display: flex; flex-direction: column; gap: var(--space-2xs); }
.dish + .dish { margin-top: var(--space-lg); }

.dish__line { display: flex; align-items: baseline; gap: var(--space-xs); }
.dish__name { font-family: var(--serif); font-size: 18px; line-height: 26px; font-weight: 600; color: var(--ink); }
.dish__leader { flex: 1 1 auto; height: 1px; border-bottom: 1px dashed var(--outline-variant); transform: translateY(-3px); }
.dish__price { font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.dish__text { font-size: 14px; line-height: 20px; color: var(--on-surface-variant); }
.dish__tags { display: flex; flex-wrap: wrap; gap: var(--space-2xs); padding-top: var(--space-2xs); }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
}
.tag--allergen { background: rgba(186, 26, 26, 0.08); color: #93000a; text-transform: none; letter-spacing: 0; font-weight: 600; }

.menu-cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: flex-start;
  margin-top: var(--space-2xl);
  padding: var(--space-lg);
  border-radius: var(--radius-xl);
}
@media (min-width: 640px) { .menu-cta { flex-direction: row; align-items: center; justify-content: space-between; padding: var(--space-xl); } }
.menu-cta__body { display: flex; align-items: center; gap: var(--space-md); }
.menu-cta__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

/* --------------------------------------------------------------- Galerie */

.mosaic { display: grid; gap: var(--space-md); grid-template-columns: 1fr; }
@media (min-width: 640px) { .mosaic { grid-template-columns: repeat(2, 1fr); } }

/*
 * Sur téléphone, six photos empilées occupaient trois écrans : elles
 * défilent désormais à l'horizontale, la suivante dépassant du bord pour
 * montrer qu'il y en a d'autres.
 */
@media (max-width: 639px) {
  .mosaic {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) var(--space-xs);
    scrollbar-width: none;
  }
  .mosaic::-webkit-scrollbar { display: none; }
  /* Sans largeur explicite, le format 4:5 rétrécissait le cadre dans sa colonne. */
  .mosaic .frame { width: 100%; align-self: start; scroll-snap-align: start; }
}

@media (min-width: 1024px) { .mosaic { grid-template-columns: repeat(12, 1fr); } }

.frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface-container);
  box-shadow: var(--shadow-1);
  aspect-ratio: 4 / 5;
}
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.frame:hover img { transform: scale(1.05); }

.frame__caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: var(--space-md);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.72), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.frame:hover .frame__caption, .frame:focus-within .frame__caption { opacity: 1; }

/* Sans survol possible, les légendes ne se révélaient jamais : elles restent affichées.
 * Placée après la règle de base : à spécificité égale, c'est la dernière qui l'emporte. */
@media (hover: none) {
  .frame__caption { opacity: 1; }
}

@media (min-width: 1024px) {
  /*
   * La variété vient de la largeur des cadres, pas de leur hauteur :
   * chaque bande garde ainsi un alignement net, quel que soit le
   * nombre de photos déposées.
   */
  .mosaic { grid-auto-rows: 200px; }
  .mosaic .frame { aspect-ratio: auto; grid-row: span 2; }

  .frame--a { grid-column: span 4; }
  .frame--b { grid-column: span 5; }
  .frame--c { grid-column: span 3; }
  .frame--d { grid-column: span 3; }
  .frame--e { grid-column: span 5; }
  .frame--f { grid-column: span 4; }

  /* Trois photos ou moins : une rangée simple, à parts égales. */
  .mosaic[data-count="1"],
  .mosaic[data-count="2"],
  .mosaic[data-count="3"] { grid-auto-rows: auto; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .mosaic[data-count="1"] .frame,
  .mosaic[data-count="2"] .frame,
  .mosaic[data-count="3"] .frame { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 5; }
}

/* ------------------------------------------------------- Accès & contact */

.access { display: grid; gap: var(--space-2xl); }
@media (min-width: 1024px) { .access { grid-template-columns: 5fr 7fr; } }

.info-card { display: flex; align-items: flex-start; gap: var(--space-md); padding: var(--space-md); }
.info-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
  transition: background-color 0.2s ease, color 0.2s ease;
}
a.info-card:hover .info-card__icon { background: var(--primary); color: #fff; }
.info-card__label { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-surface-variant); }
.info-card__value { font-size: 14px; font-weight: 600; color: var(--ink); }
.itineraire { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-md); padding-top: var(--space-xs); }

/* Les cartes passent sur une colonne avant que le numéro ne déborde. */
.phone-grid { display: grid; gap: var(--space-md); grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }

.hours { padding: var(--space-md); display: flex; flex-direction: column; gap: var(--space-2xs); }
.hours__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-xs); padding-bottom: var(--space-2xs); border-bottom: 1px solid var(--sand-border); }
.hours__row { display: flex; justify-content: space-between; gap: var(--space-md); padding-block: 0.25rem; font-size: 14px; }
.hours__row strong { font-weight: 600; color: var(--ink); }

/*
 * Le jour courant ressort, et lui seul : la couleur ne sert plus à
 * distinguer des jours dont les horaires sont pourtant identiques.
 */
.hours__row.is-today {
  margin-inline: calc(var(--space-xs) * -1);
  padding-inline: var(--space-xs);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
}
.hours__row.is-today > span { color: var(--ink); font-weight: 600; }
.hours__row.is-today > span::after {
  content: " · aujourd'hui";
  font-weight: 500;
  color: var(--primary);
}
.hours__row strong.is-secondary { color: var(--secondary); }
/* Un jour de fermeture ne mérite pas la couleur d'accent. */
.hours__row strong.is-muted { color: var(--text-muted, #6b7280); font-weight: 500; }

.map {
  position: relative;
  min-height: 420px;
  height: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  background: var(--surface-container);
}
.map iframe, .map img { width: 100%; height: 100%; min-height: 420px; border: 0; object-fit: cover; }

.map__card {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: none;
  flex-direction: column;
  gap: var(--space-2xs);
  max-width: 20rem;
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-2);
}
@media (min-width: 640px) { .map__card { display: flex; } }

.stars { display: inline-flex; color: var(--gold); }

/* ------------------------------------------------------------ CTA finale */

.banner {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: #fff;
  padding-block: var(--space-2xl);
}
.banner__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  text-align: center;
}
@media (min-width: 768px) {
  .banner__inner { flex-direction: row; align-items: center; justify-content: space-between; text-align: left; }
}
.banner h2 { color: #fff; }
.banner__glow {
  position: absolute;
  right: -5rem;
  bottom: -5rem;
  width: 24rem;
  height: 24rem;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--primary) 25%, transparent);
  filter: blur(80px);
  pointer-events: none;
}
.banner__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); justify-content: center; }

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

.footer { background: var(--footer-bg); box-shadow: var(--shadow-1); }
.footer__grid { display: grid; gap: var(--space-2xl); padding-block: var(--space-3xl); }
@media (min-width: 640px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: repeat(4, 1fr); } }
.footer__col { display: flex; flex-direction: column; gap: var(--space-sm); }
.footer__title { font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.footer__link { display: flex; align-items: center; gap: var(--space-2xs); font-size: 14px; }
.footer__link:hover { color: var(--primary); }
.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding-bottom: var(--space-xl);
  font-size: 14px;
  color: var(--on-surface-variant);
}
@media (min-width: 640px) { .footer__bottom { flex-direction: row; justify-content: space-between; } }
.footer__legal { display: flex; gap: var(--space-lg); }

.social {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-md);
  background: var(--surface-container);
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.social:hover { background: var(--primary); color: #fff; }

/* ------------------------------------------------------------ Page texte */

.prose { max-width: 44rem; }
.prose p { margin-bottom: var(--space-md); color: var(--on-surface-variant); line-height: 26px; }

.page-head { padding-top: calc(var(--header-height) + var(--space-2xl)); padding-bottom: var(--space-xl); }

/* ============================================================ Page carte */

.carte { padding-top: calc(var(--header-height) + var(--space-2xl)); }

.filters {
  position: sticky;
  top: var(--header-height);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  border: 1px solid var(--sand-border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-1);
}

.filters__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); }
.filters__label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-surface-variant); margin-right: var(--space-2xs); }
.filters__row--status { justify-content: space-between; }
.filters__detail { display: flex; flex-direction: column; gap: var(--space-md); }

/*
 * Les filtres fins se déplient à la demande, quelle que soit la largeur :
 * déployés, les mentions et les allergènes occupaient à eux seuls la moitié
 * de l'écran avant que la carte ne commence.
 */
.filters__more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  height: 44px;
  padding-inline: var(--space-md);
  border: 1px solid var(--sand-border);
  border-radius: var(--radius-md);
  background: var(--sand-card);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.filters__more:hover { border-color: var(--primary); color: var(--primary); }
.filters__more[aria-expanded="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.filters__more[aria-expanded="true"] .filters__count { background: #fff; color: var(--primary); }

.filters__detail { display: none; }
.filters[data-open="true"] .filters__detail { display: flex; }

.filters__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding-inline: 5px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

/*
 * Sur mobile, le panneau occupait presque tout l'écran : chaque rangée
 * de pastilles se repliait sur plusieurs lignes. Les catégories défilent
 * désormais à l'horizontale, et les filtres fins se dépliant à la demande.
 */
@media (max-width: 767px) {
  .filters { padding: var(--space-sm); gap: var(--space-sm); }

  .filters__bar { flex-wrap: nowrap; }
  .filters__more { padding-inline: var(--space-sm); }

  /* Les catégories restent visibles : c'est la navigation première. */
  .filters__row--scroll {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: calc(-1 * var(--space-sm));
    padding-inline: var(--space-sm);
    scroll-snap-type: x proximity;
  }

  .filters__row--scroll::-webkit-scrollbar { display: none; }
  .filters__row--scroll .chip { flex: 0 0 auto; scroll-snap-align: start; }
  .filters__row--scroll .filters__label { display: none; }

  /* Déplié, le panneau ne doit pas reprendre tout l'écran. */
  .filters[data-open="true"] .filters__detail { max-height: 46vh; overflow-y: auto; }

  .filters__mode { margin-left: 0; width: 100%; }
  .filters__row--status { font-size: 13px; }
}

.search {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex: 1 1 16rem;
  min-width: 12rem;
  height: 44px;
  padding-inline: var(--space-sm);
  border: 1px solid #d1c7bd;
  border-radius: var(--radius-md);
  background: var(--sand-warm);
  color: var(--on-surface-variant);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.search:focus-within { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  color: var(--on-surface);
  min-width: 0;
}
.search button { border: 0; background: transparent; color: var(--on-surface-variant); cursor: pointer; padding: 0; display: none; }
.search[data-filled="true"] button { display: inline-flex; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  height: 36px;
  padding-inline: var(--space-sm);
  border: 1px solid var(--sand-border);
  border-radius: var(--radius-md);
  background: var(--sand-card);
  color: var(--on-surface-variant);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip__count { font-size: 12px; opacity: 0.75; }

.chip--allergen[aria-pressed="true"] { background: #93000a; border-color: #93000a; color: #fff; }
.chip--allergen[aria-pressed="true"] .material-symbols-outlined { font-variation-settings: "FILL" 1; }

.filters__mode { display: flex; align-items: center; gap: var(--space-xs); font-size: 13px; color: var(--on-surface-variant); margin-left: auto; }
.filters__reset { border: 0; background: transparent; color: var(--primary); font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: underline; }

.switch { display: inline-flex; border: 1px solid var(--sand-border); border-radius: var(--radius-md); overflow: hidden; }
.switch button { border: 0; background: var(--sand-card); color: var(--on-surface-variant); padding: 0.4rem 0.7rem; font-size: 13px; font-weight: 600; cursor: pointer; }
.switch button[aria-pressed="true"] { background: var(--dark); color: #fff; }

.carte__status { font-size: 14px; color: var(--on-surface-variant); }
.carte__status strong { color: var(--ink); }

.category { margin-bottom: var(--space-2xl); scroll-margin-top: calc(var(--header-height) + 5rem); }
.category__head { display: flex; align-items: baseline; gap: var(--space-sm); margin-bottom: var(--space-lg); padding-bottom: var(--space-xs); border-bottom: 1px solid var(--sand-border); }
.category__count { font-size: 13px; color: var(--on-surface-variant); }

.dishes--list { display: flex; flex-direction: column; gap: var(--space-lg); }
.dishes--grid { display: grid; gap: var(--space-md); grid-template-columns: 1fr; }
@media (min-width: 640px) { .dishes--grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .dishes--grid { grid-template-columns: repeat(3, 1fr); } }

.dishes--grid .dish { padding: var(--space-md); border-radius: var(--radius-lg); border: 1px solid var(--sand-border); background: var(--sand-card); box-shadow: var(--shadow-1); }
.dishes--grid .dish + .dish { margin-top: 0; }
.dishes--grid .dish__leader { display: none; }
.dishes--grid .dish__line { justify-content: space-between; }

.dish__photo { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-md); margin-bottom: var(--space-xs); }

.dish[hidden] { display: none !important; }
.category[hidden] { display: none !important; }

.empty {
  padding: var(--space-2xl);
  text-align: center;
  border: 1px dashed var(--outline-variant);
  border-radius: var(--radius-lg);
  color: var(--on-surface-variant);
}

.legend { margin-top: var(--space-2xl); padding: var(--space-lg); border-radius: var(--radius-lg); background: var(--surface-low); }
.legend__list { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-xs); }

.notice {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: rgba(245, 158, 11, 0.1);
  color: #7c4a03;
  font-size: 14px;
}
.notice--error { background: rgba(186, 26, 26, 0.08); color: #93000a; }

/* ------------------------------------------- Plan différé & consentement */

/*
 * Le plan Google ne se charge qu'à la demande : tant qu'il n'est pas
 * réclamé, aucune requête ne part vers un tiers.
 */
.map__attente { position: relative; width: 100%; height: 100%; min-height: 420px; }
.map__attente img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }

.map__invite {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-xl);
  text-align: center;
  background: color-mix(in srgb, var(--sand-card) 88%, transparent);
  backdrop-filter: blur(2px);
}

.map__invite .material-symbols-outlined { color: var(--primary); }
.map__texte { max-width: 34ch; font-size: 14px; line-height: 20px; color: var(--on-surface-variant); }
.map__lien { font-size: 13px; color: var(--on-surface-variant); text-decoration: underline; }
.map__lien:hover { color: var(--primary); }

.consentement {
  position: fixed;
  z-index: 80;
  left: var(--gutter);
  right: var(--gutter);
  bottom: var(--gutter);
  max-width: 34rem;
  margin-inline: auto;
  padding: var(--space-lg);
  border: 1px solid var(--sand-border);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  box-shadow: var(--shadow-3);
}

.consentement[hidden] { display: none; }
.consentement__texte { font-size: 14px; line-height: 21px; color: var(--on-surface-variant); }
.consentement__texte a { color: var(--primary); text-decoration: underline; }
.consentement__actions { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-md); }
.consentement__actions .btn { flex: 1 1 auto; height: 42px; }

.reglages-cookies {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* ------------------------------------------------- Sélecteur de langue */

.langues { display: none; align-items: center; gap: 2px; }
@media (min-width: 560px) { .langues { display: flex; } }

.langues__choix {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  padding: 0.3rem 0.45rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--on-surface-variant);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.langues__choix:hover { border-color: var(--sand-border); color: var(--ink); }
.langues__choix.is-active { background: color-mix(in srgb, var(--primary) 10%, transparent); color: var(--primary); }
.langues__choix .drapeau { border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12); }
.langues__code { line-height: 1; }

/* Le sélecteur mobile prend place dans le panneau déroulant. */
.mobile-nav .langues { display: flex; padding-top: var(--space-sm); gap: var(--space-xs); }
.mobile-nav .langues__choix { border-color: var(--sand-border); padding: 0.45rem 0.6rem; }

/*
 * Google ajoute une barre d'outils en haut de page et décale le corps.
 * On la masque : le sélecteur du site remplit déjà cet office.
 */
.skiptranslate { display: none !important; }
body { top: 0 !important; }
#google_translate_element { display: none; }

/* ---------------------------------------------------------- WhatsApp */

/*
 * La couleur de la marque plutôt que celle de l'habillage : c'est ce qui
 * rend le bouton immédiatement reconnaissable, et c'est tout son intérêt.
 */
.btn--whatsapp { background: #25d366; color: #06331a; }
.btn--whatsapp:hover { background: #1fbe5a; color: #06331a; transform: translateY(-1px); }
.ico-wa { flex-shrink: 0; }

/*
 * Le bouton flottant reste à portée de pouce pendant toute la lecture.
 * Il passe sous les dialogues de consentement, qui doivent rester lisibles.
 */
.wa-flottant {
  position: fixed;
  z-index: 70;
  right: var(--gutter);
  bottom: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  height: 52px;
  padding-inline: 18px 22px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  border-radius: var(--radius-full);
  background: #25d366;
  color: #06331a;
  box-shadow: 0 6px 20px -4px rgba(6, 51, 26, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.wa-flottant:hover {
  background: #1fbe5a;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px -6px rgba(6, 51, 26, 0.5);
}

.wa-flottant:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

@media (max-width: 767px) { .wa-flottant { display: none; } }

/* ------------------------------------------- Barre de réservation mobile */

.barre-mobile { display: none; }

@media (max-width: 767px) {
  .barre-mobile {
    position: fixed;
    z-index: 65;
    inset: auto 0 0 0;
    display: flex;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--gutter) calc(var(--space-xs) + env(safe-area-inset-bottom, 0px));
    background: var(--header-bg, rgba(255, 255, 255, 0.94));
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--sand-border);
    box-shadow: 0 -6px 18px -12px rgba(15, 23, 42, 0.35);
  }
  .barre-mobile .btn { height: 48px; padding-inline: var(--space-md); }
  .barre-mobile__appel {
    flex: 0 0 auto;
    background: var(--sand-card);
    color: var(--ink);
    box-shadow: inset 0 0 0 1.5px var(--sand-border);
  }
  .barre-mobile__wa { flex: 1 1 auto; min-width: 0; }

  /* Le contenu ne passe plus sous la barre. */
  body:has(.barre-mobile) { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }

  /* Un dialogue de consentement ouvert reste lisible : la barre s'efface. */
  body:has(.consentement:not([hidden])) .barre-mobile { display: none; }
}

@media (max-width: 359px) {
  .wa-complement { display: none; }
}

/* Un dialogue ouvert le recouvrirait sur petit écran : il s'efface. */
@media (max-width: 560px) {
  body:has(.consentement:not([hidden])) .wa-flottant { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .wa-flottant, .btn--whatsapp { transition: none; }
  .wa-flottant:hover, .btn--whatsapp:hover { transform: none; }
}

/* ------------------------------------------------- QR code de la carte */

/*
 * L'image est volontairement grande et nette : elle est faite pour être
 * enregistrée puis imprimée, pas seulement regardée à l'écran.
 */
.qr-carte {
  display: flex;
  gap: var(--space-md, 16px);
  align-items: center;
  flex-wrap: wrap;
}
.qr-carte__image {
  width: 160px;
  height: 160px;
  flex: none;
  border-radius: var(--radius-sm, 8px);
  background: #fff;
  image-rendering: crisp-edges;
}
.qr-carte__texte { flex: 1 1 220px; min-width: 0; }
.qr-carte__texte p { margin: 4px 0; }
.qr-carte__texte a { display: inline-block; margin-top: 6px; }

@media (max-width: 520px) {
  .qr-carte { justify-content: center; text-align: center; }
  .qr-carte__texte { flex-basis: 100%; }
}

/* ------------------------------------------------------ Résultats */

.preuves {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md, 16px);
}
.preuve { display: flex; gap: var(--space-sm, 12px); align-items: flex-start; }

/*
 * Le rang se lit avant le texte : c'est le chiffre qui porte la preuve,
 * pas la phrase qui l'entoure.
 */
.preuve__rang {
  flex: none;
  font-size: 34px;
  line-height: 1;
  font-weight: 700;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.preuve__corps { min-width: 0; }
.preuve__requete {
  margin: 2px 0 6px;
  font-size: 13px;
  font-style: italic;
  color: var(--secondary);
  overflow-wrap: anywhere;
}
.preuves__note { margin-top: var(--space-md, 16px); }

/* ------------------------------------------- Formulaire de réservation */

/*
 * Le formulaire rédige le message WhatsApp à la place du visiteur. Il prend
 * les couleurs de la carte de l'habillage (fond, texte, rayon) : il reste
 * lisible sur Nocturne comme sur Éditoriale sans règle propre à chacun.
 */
/*
 * Colonne explicite, et non la piste implicite « auto » : Safari calcule la
 * largeur minimale de la grille des créneaux (auto-fill) comme si tous les
 * boutons tenaient sur une ligne, et le formulaire débordait de l'écran.
 */
.hero--resa .hero__main { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); margin-block: auto; }
.hero--resa .hero__body { margin-block: 0; }

@media (min-width: 1024px) {
  .hero--resa .hero__main {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 400px);
    align-items: center;
    gap: var(--space-2xl);
  }
}

/*
 * Sur téléphone, le formulaire doit arriver le plus haut possible : le texte
 * de présentation se lit plus bas, dans « La maison », et la carte reste
 * dans le menu et juste après le bandeau.
 */
@media (max-width: 767px) {
  .hero--resa .hero__inner { min-height: 0; gap: var(--space-lg); padding-bottom: var(--space-xl); }
  .hero--resa .hero__text,
  .hero--resa .hero__actions { display: none; }
}

.resa {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  width: 100%;
  max-width: 36rem;
  padding: var(--space-lg);
  color: var(--on-surface);
}
@media (min-width: 1024px) { .resa { max-width: none; padding: var(--space-xl); } }

.resa__titre { font-size: 24px; line-height: 30px; font-weight: var(--title-weight, 600); text-wrap: balance; }

.resa__form { display: flex; flex-direction: column; gap: var(--space-md); }
.resa__champ { min-width: 0; margin: 0; padding: 0; border: 0; }
.resa__legende {
  margin-bottom: var(--space-xs);
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}

.resa__jours { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-xs); }
@media (max-width: 359px) { .resa__jours { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.resa__heures { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(4.5rem, 100%), 1fr)); gap: var(--space-xs); }

.resa__jour,
.resa__heure,
.resa__pas {
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--on-surface);
  box-shadow: inset 0 0 0 1.5px var(--on-surface-variant);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.resa__jour { min-height: 52px; padding: var(--space-2xs); font-size: 14px; font-weight: 600; line-height: 1.15; }
.resa__jour small { display: block; font-size: 12px; font-weight: 500; color: var(--on-surface-variant); }
/* Liste déroulante : 16 px minimum, sinon iOS zoome sur la page au toucher. */
.resa__heures--liste { display: block; }
.resa__select {
  width: 100%;
  min-height: 48px;
  padding: 0 var(--space-md);
  border: 1.5px solid var(--on-surface-variant);
  border-radius: var(--radius-md);
  background-color: var(--sand-card);
  color: var(--on-surface);
  font: 600 16px/1.2 var(--sans);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.resa__select:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

.resa__heure { min-height: 44px; padding: var(--space-2xs); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.resa__jour:hover,
.resa__heure:hover,
.resa__pas:hover:not(:disabled) { background: color-mix(in srgb, var(--on-surface) 7%, transparent); }

/*
 * Le jour choisi prend la couleur du texte, et le fond des cartes passe
 * dessus. --sand-card plutôt que --card-bg : Éditoriale rend ses cartes
 * transparentes, et le libellé disparaissait.
 */
.resa__jour[aria-pressed="true"],
.resa__heure[aria-pressed="true"] { background: var(--on-surface); color: var(--sand-card); box-shadow: inset 0 0 0 1.5px var(--on-surface); }
.resa__jour[aria-pressed="true"] small { color: inherit; opacity: 0.85; }

.resa__nombre { display: flex; align-items: center; gap: var(--space-md); }
.resa__pas { width: 48px; height: 48px; font-size: 24px; line-height: 1; }
.resa__pas:disabled { opacity: 0.4; cursor: not-allowed; }
.resa__nombre output { min-width: 7ch; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }

.resa__option { display: grid; grid-template-columns: 24px 1fr; gap: var(--space-sm); align-items: start; cursor: pointer; }
.resa__option input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--primary); cursor: inherit; }
.resa__option strong { display: block; font-weight: 600; }
.resa__option small { display: block; font-size: 14px; line-height: 20px; color: var(--on-surface-variant); }
.resa__option:has(input:disabled) { cursor: not-allowed; }
.resa__option:has(input:disabled) strong { color: var(--on-surface-variant); }

/* Un libellé long passe à la ligne plutôt que de déborder de la carte. */
.resa .btn { width: 100%; height: auto; min-height: 48px; padding: var(--space-xs) var(--space-md); white-space: normal; text-align: center; }
.resa__form .resa__envoi { margin-top: var(--space-xs); }

/*
 * Tant qu'aucune heure n'est choisie, le bouton dit ce qui manque. Il reste
 * lisible : un bouton grisé à l'opacité réduite ne se lisait plus.
 */
.resa__envoi[aria-disabled="true"],
.resa__envoi[aria-disabled="true"]:hover { background: color-mix(in srgb, var(--on-surface) 8%, transparent); color: var(--on-surface); box-shadow: inset 0 0 0 1.5px var(--on-surface-variant); cursor: not-allowed; transform: none; }

.resa__note { display: flex; gap: var(--space-xs); align-items: flex-start; font-size: 14px; line-height: 20px; color: var(--on-surface-variant); }
.resa__note .material-symbols-outlined { margin-top: 1px; }

.resa button:focus-visible,
.resa a:focus-visible,
.resa input:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

/* La bulle WhatsApp s'efface tant que le formulaire est à l'écran. */
.wa-flottant[data-cachee="true"] { opacity: 0; visibility: hidden; transform: translateY(8px); }
.wa-flottant { transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, opacity 0.2s ease, visibility 0.2s; }

/* La barre du bas s'efface tant que le bouton d'envoi est à l'écran. */
@media (max-width: 767px) {
  .barre-mobile { transition: transform 0.2s ease; }
  .barre-mobile[data-cachee="true"] { transform: translateY(110%); }
}

@media (prefers-reduced-motion: reduce) {
  .resa__jour, .resa__heure, .resa__pas, .barre-mobile, .wa-flottant { transition: none; }
}

/* Questions fréquentes -------------------------------------------------- */
.faq { max-width: 820px; }
.faq__item {
  border-bottom: 1px solid var(--outline-variant);
}
.faq__question {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  padding-block: var(--space-md);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.4;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after {
  content: "+";
  flex: none;
  font-size: 22px;
  line-height: 1;
  color: var(--primary);
  transition: transform .2s ease;
}
.faq__item[open] .faq__question::after { transform: rotate(45deg); }
.faq__question:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: var(--radius-sm); }
.faq__reponse { padding-bottom: var(--space-md); max-width: 70ch; }
@media (prefers-reduced-motion: reduce) {
  .faq__question::after { transition: none; }
}

/* Assistant vocal (elevenlabs-convai) : il occupe le coin bas droit. Le bouton WhatsApp
   flottant remonte au-dessus de lui, et sur mobile le widget passe au-dessus de la barre fixe. */
body:has(elevenlabs-convai) .wa-flottant { bottom: 120px; }
@media (max-width: 767px) {
  elevenlabs-convai { bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important; }
  body:has(elevenlabs-convai) .wa-flottant { bottom: calc(64px + 120px + env(safe-area-inset-bottom, 0px)); }
}
