/* ===========================================================
   DÉMO — Bistrot "Le Comptoir d'Augustin"
   Archétype VOLONTAIREMENT différent de la démo esthéticienne :
   mise en page ÉDITORIALE "carte imprimée" (grille deux colonnes,
   grands titres sérif, filets, lignes pointillées de prix, peu
   d'images mais grandes). But : prouver qu'on ne plaque pas un
   template unique d'un métier à l'autre.
   =========================================================== */

:root {
  --r-paper:    #f7f0e3;   /* fond papier crème chaud */
  --r-paper2:   #fdfaf3;   /* papier plus clair (cartes) */
  --r-ink:      #211a13;   /* encre brun-noir */
  --r-soft:     #6e6253;
  --r-wine:     #7a2e2e;
  --r-wine-dk:  #5e2222;
  --r-gold:     #b08524;
  --r-line:     #d8cab2;   /* filets imprimés */
  --r-serif:    "Fraunces", Georgia, "Times New Roman", serif;
  --r-sans:     "DM Sans", -apple-system, sans-serif;
}

body.resto {
  margin: 0;
  background: var(--r-paper);
  color: var(--r-ink);
  font-family: var(--r-serif);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.resto h1, body.resto h2, body.resto h3, body.resto h4 {
  font-family: var(--r-serif);
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
}
body.resto p { margin: 0 0 1rem; }
body.resto a { color: inherit; }

/* Petites capitales espacées = signature typographique de la "carte" */
.r-kicker {
  font-family: var(--r-sans);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--r-wine);
  margin: 0 0 0.7rem;
}

/* Filets décoratifs (règles imprimées) */
.r-rule { height: 1px; background: var(--r-ink); max-width: 220px; margin: 1rem auto; }
.r-rule--double { position: relative; height: 4px; background: none; border-top: 1px solid var(--r-ink); border-bottom: 1px solid var(--r-ink); }

/* ── Boutons (réutilisés par les modales) ─────────────────── */
.r-btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: var(--r-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 1.9rem;
  background: var(--r-wine);
  color: #fff;
  border-radius: 2px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.r-btn:hover { background: var(--r-wine-dk); transform: translateY(-2px); }
.r-btn--dark { background: var(--r-ink); }
.r-btn--dark:hover { background: #000; }
.r-btn--full { width: 100%; text-align: center; }
.r-link {
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--r-sans);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--r-wine);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.r-link:hover { color: var(--r-ink); }

/* ── Barre utilitaire ─────────────────────────────────────── */
.r-util {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem clamp(1.2rem, 5vw, 3rem);
  font-family: var(--r-sans);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--r-soft);
  border-bottom: 1px solid var(--r-line);
  background: var(--r-paper);
}
.r-util__right { display: flex; align-items: center; gap: 1.2rem; }
.r-util__right a { text-decoration: none; }
.r-util__cta {
  border: 1px solid var(--r-ink);
  background: none;
  font-family: var(--r-sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
}
.r-util__cta:hover { background: var(--r-ink); color: var(--r-paper); }

/* ── Masthead (couverture typographique) ──────────────────── */
.r-mast {
  text-align: center;
  padding: clamp(3rem, 9vw, 6rem) clamp(1.2rem, 5vw, 2rem) clamp(2rem, 5vw, 3rem);
  max-width: 720px;
  margin: 0 auto;
}
.r-mast__est {
  font-family: var(--r-sans);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.72rem;
  color: var(--r-soft);
  margin: 0 0 1.2rem;
}
.r-mast .r-rule--double { max-width: 320px; }
.r-mast__name {
  font-size: clamp(3rem, 12vw, 6.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 1.2rem 0;
}
.r-mast__name em { font-style: italic; color: var(--r-wine); font-weight: 500; }
.r-mast__tag {
  font-family: var(--r-sans);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  color: var(--r-soft);
  margin: 1.2rem 0 0;
}

/* ── Intro avec lettrine ──────────────────────────────────── */
.r-intro {
  max-width: 600px;
  margin: 0 auto;
  padding: clamp(1rem, 4vw, 2rem) clamp(1.2rem, 5vw, 2rem) clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}
.r-intro p { font-size: 1.3rem; line-height: 1.6; margin: 0; color: #3b3127; }
.r-intro p::first-letter {
  float: left;
  font-size: 3.6rem;
  line-height: 0.78;
  padding: 0.3rem 0.6rem 0 0;
  color: var(--r-wine);
  font-weight: 600;
}

/* ── Grandes images-bandeaux ──────────────────────────────── */
.r-band {
  position: relative;
  height: clamp(220px, 42vw, 460px);
  margin: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--r-line);
}
.r-band figcaption {
  position: absolute;
  bottom: 1rem; left: 1.2rem;
  font-family: var(--r-sans);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: #fff;
  background: rgba(33,26,19,0.55);
  padding: 0.4rem 0.9rem;
  backdrop-filter: blur(2px);
}

/* ── LA CARTE (deux colonnes type menu imprimé) ───────────── */
.r-carte {
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1.2rem, 5vw, 2rem);
}
.r-carte__head { text-align: center; margin-bottom: 3rem; }
.r-carte__head h2 { font-size: clamp(2.6rem, 7vw, 4.2rem); }
.r-carte__hint {
  font-family: var(--r-sans);
  color: var(--r-soft);
  font-size: 0.95rem;
  margin-top: 1rem;
  /* Pleine largeur centrée par text-align (comme le h2) — pas de max-width +
     margin auto, dont la boîte refusait de se centrer ici. */
  text-align: center;
  text-wrap: balance;      /* si ça passe à 2 lignes (mobile), pas de mot orphelin */
}

/* Deux colonnes EXPLICITES et indépendantes (≠ column-count, qui rééquilibre
   les hauteurs dynamiquement et fait sauter les catégories au moindre clic). */
.r-carte__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.r-cat { margin-bottom: 2.6rem; }
.r-cat:last-child { margin-bottom: 0; }
.r-cat__title {
  text-align: center;
  font-size: 1.7rem;
  font-style: italic;
  color: var(--r-wine);
  margin-bottom: 1.4rem;
  position: relative;
}
.r-cat__title span { background: var(--r-paper); padding: 0 1rem; position: relative; z-index: 1; }
.r-cat__title::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  border-top: 1px solid var(--r-line);
}

.r-item { margin-bottom: 1.5rem; }
.r-item__line { display: flex; align-items: baseline; gap: 0.4rem; }
.r-item__name { font-size: 1.18rem; font-weight: 500; }
.r-item__pop { color: var(--r-gold); font-size: 0.95rem; }
.r-item__dots { flex: 1; border-bottom: 2px dotted var(--r-line); transform: translateY(-0.35rem); }
.r-item__price { font-size: 1.18rem; font-weight: 600; color: var(--r-wine); flex-shrink: 0; }
.r-item__desc {
  font-family: var(--r-sans);
  font-size: 0.9rem;
  color: var(--r-soft);
  margin: 0.35rem 0 0.5rem;
}
.r-item__add {
  display: inline-block;
  border: 1px solid var(--r-wine);
  background: none;
  cursor: pointer;
  font-family: var(--r-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--r-wine);
  padding: 0.32rem 0.8rem;
  border-radius: 2px;
  transition: all 0.18s;
}
.r-item__add:hover { background: var(--r-wine); color: #fff; }
.r-item__add.is-added { background: var(--r-gold); border-color: var(--r-gold); color: #fff; }

/* ── Deux cartons d'action (réserver / emporter) ──────────── */
.r-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.5rem, 4vw, 2.4rem);
  max-width: 940px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.2rem, 5vw, 2rem);
}
.r-actions__card {
  text-align: center;
  background: var(--r-paper2);
  border: 1px solid var(--r-ink);
  outline: 1px solid var(--r-ink);
  outline-offset: 5px;
  padding: clamp(2rem, 5vw, 3rem);
  display: flex;
  flex-direction: column;
}
.r-actions__card--collect { background: var(--r-ink); color: #ece1cd; }
.r-actions__card--collect .r-kicker { color: var(--r-gold); }
.r-actions__card--collect h2 { color: #fff; }
.r-actions__card--collect strong { color: var(--r-gold); }
.r-actions__card h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 0.8rem; }
.r-actions__card p { color: var(--r-soft); font-family: var(--r-sans); font-size: 0.95rem; margin: 0 auto 1.6rem; flex: 1; }
.r-actions__card--collect p { color: #cdbfa6; }
.r-actions__alt { flex: none !important; margin: 1.4rem 0 0.8rem !important; font-size: 0.85rem; }
.r-platforms { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }
.r-platform {
  font-family: var(--r-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  transition: transform 0.18s ease, filter 0.18s ease;
}
.r-platform:hover { transform: translateY(-2px); filter: brightness(1.06); }
.r-platform--uber { background: #06C167; color: #fff; }
.r-platform--deliveroo { background: #00CCBC; color: #042B2B; }

/* ── Le mot de la maison (rythme image / texte) ───────────── */
.r-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 0;
  max-width: 1100px;
  margin: clamp(2rem, 6vw, 4rem) auto;
}
.r-story__img { min-height: 340px; background-size: cover; background-position: center; background-color: var(--r-line); }
.r-story__text {
  padding: clamp(2rem, 5vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.r-story__text h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1rem; }
.r-story__text p { color: #3b3127; }
.r-story__sign { font-style: italic; color: var(--r-soft); margin: 0.5rem 0 0; }

/* ── Avis : grande citation ───────────────────────────────── */
.r-quote {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5rem) clamp(1.2rem, 5vw, 2rem);
  text-align: center;
}
.r-quote__stars { color: var(--r-gold); letter-spacing: 0.3em; font-size: 1.1rem; margin: 0 0 1rem; }
.r-quote blockquote {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-style: italic;
  line-height: 1.4;
  margin: 0 0 1.2rem;
}
.r-quote__author { font-family: var(--r-sans); font-size: 0.9rem; letter-spacing: 0.06em; color: var(--r-soft); margin: 0 0 1.6rem; }
.r-quote__google {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  font-family: var(--r-sans);
  font-size: 0.9rem;
  color: var(--r-soft);
  border-top: 1px solid var(--r-line);
  padding-top: 1.2rem;
}

/* ── Colophon / infos ─────────────────────────────────────── */
.r-colophon {
  background: var(--r-ink);
  color: #e3d8c6;
  text-align: center;
  padding: clamp(3rem, 8vw, 5rem) clamp(1.2rem, 5vw, 2rem);
}
.r-colophon .r-kicker { color: var(--r-gold); }
.r-colophon__name { font-family: var(--r-serif); font-size: clamp(1.8rem, 5vw, 2.6rem); color: #fff; margin: 0 0 2rem; }
.r-colophon__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}
.r-colophon__grid p { font-family: var(--r-sans); font-size: 0.95rem; }
.r-hours { list-style: none; margin: 0; padding: 0; font-family: var(--r-sans); font-size: 0.92rem; }
.r-hours li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; border-bottom: 1px solid rgba(255,255,255,0.12); color: #cabba4; }
.r-colophon__fin { color: var(--r-gold); font-size: 1.4rem; margin: 2.5rem 0 0; }

/* ── Pastille de validation (modales) ─────────────────────── */
.r-check {
  width: 64px; height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--r-wine);
  color: #fff;
  font-size: 2rem;
  display: flex; align-items: center; justify-content: center;
  animation: r-pop 0.3s ease;
}

/* ===========================================================
   Panier flottant + tiroir (commande à emporter, simulés)
   =========================================================== */
.cart-fab[hidden] { display: none; }
.cart-fab {
  position: fixed;
  bottom: 1.4rem; right: 1.4rem;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--r-wine);
  color: #fff;
  border: none;
  border-radius: 2px;
  padding: 0.85rem 1.3rem;
  font-family: var(--r-sans);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 16px 34px -12px rgba(122,46,46,0.7);
  transition: transform 0.2s ease;
  animation: r-pop 0.3s ease;
}
.cart-fab:hover { transform: translateY(-3px); }
.cart-fab__icon { font-size: 1.2rem; }
.cart-fab__count {
  background: #fff;
  color: var(--r-wine);
  border-radius: 999px;
  min-width: 1.4rem;
  padding: 0 0.4rem;
  font-size: 0.8rem;
  text-align: center;
}

.cart[hidden], .rv[hidden] { display: none; }
.cart { position: fixed; inset: 0; z-index: 1000; }
.cart__overlay { position: absolute; inset: 0; background: rgba(33,26,19,0.55); backdrop-filter: blur(3px); }
.cart__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 100%);
  background: var(--r-paper);
  padding: clamp(1.6rem, 5vw, 2.4rem);
  overflow-y: auto;
  box-shadow: -20px 0 60px -20px rgba(33,26,19,0.5);
  animation: r-slide 0.28s ease;
}
@keyframes r-slide { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes r-pop { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
.cart__x, .rv__x {
  position: absolute;
  top: 0.8rem; right: 1rem;
  border: none; background: none;
  font-size: 1.9rem; line-height: 1;
  color: var(--r-soft); cursor: pointer;
}
.cart__title, .rv__title { font-family: var(--r-serif); font-size: 1.8rem; margin-bottom: 1.2rem; }
.cart__lines { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1rem; }
.cart__line {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0;
  border-bottom: 1px dashed var(--r-line);
}
.cart__line-name { flex: 1; font-family: var(--r-sans); font-size: 0.95rem; }
.cart__qty { display: flex; align-items: center; gap: 0.5rem; font-family: var(--r-sans); }
.cart__qty button {
  width: 1.7rem; height: 1.7rem;
  border: 1px solid var(--r-line);
  background: var(--r-paper2);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  color: var(--r-ink);
}
.cart__qty button:hover { border-color: var(--r-wine); color: var(--r-wine); }
.cart__line-price { font-family: var(--r-serif); font-size: 1.05rem; width: 3.5rem; text-align: right; flex-shrink: 0; }
.cart__empty { font-family: var(--r-sans); color: var(--r-soft); font-size: 0.95rem; }
.cart__pickup, .cart__sum {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  font-family: var(--r-sans);
}
.cart__pickup { border-top: 1px solid var(--r-line); color: var(--r-soft); }
.cart__pickup strong { font-family: var(--r-serif); font-size: 1.15rem; color: var(--r-ink); }
.cart__sum { border-top: 2px solid var(--r-line); font-size: 1.05rem; margin-bottom: 1.2rem; }
.cart__sum strong { font-family: var(--r-serif); font-size: 1.5rem; color: var(--r-wine); }
.cart__fee { margin-top: 0.9rem; font-family: var(--r-sans); font-size: 0.82rem; color: var(--r-soft); text-align: center; }
.cart__step[hidden], .rv__step[hidden] { display: none; }
.cart [data-cart-step="done"], .rv [data-rv-step="done"] { text-align: center; }
.cart__confirm, .rv__confirm { font-family: var(--r-sans); font-size: 1.05rem; margin: 0.6rem 0 1rem; line-height: 1.5; }
.cart__note, .rv__note { font-family: var(--r-sans); font-size: 0.82rem; color: var(--r-soft); margin-bottom: 1.6rem; }

/* ===========================================================
   Réservation de table (modale simulée, anti no-show)
   =========================================================== */
.rv {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.rv__overlay { position: absolute; inset: 0; background: rgba(33,26,19,0.55); backdrop-filter: blur(3px); }
.rv__panel {
  position: relative;
  background: var(--r-paper);
  border-radius: 4px;
  padding: clamp(1.8rem, 5vw, 2.6rem);
  width: 100%;
  max-width: 440px;
  box-shadow: 0 30px 70px -20px rgba(33,26,19,0.5);
  animation: r-pop 0.25s ease;
}
.rv__label {
  font-family: var(--r-sans);
  font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--r-soft); margin: 1.2rem 0 0.7rem;
}
.rv__couverts { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.rv__couvert {
  width: 2.8rem; height: 2.8rem;
  border: 1px solid var(--r-line);
  background: var(--r-paper2);
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--r-sans);
  font-weight: 700;
  font-size: 1rem;
  color: var(--r-ink);
  transition: all 0.15s;
}
.rv__couvert:hover { border-color: var(--r-wine); }
.rv__couvert.is-sel { background: var(--r-wine); color: #fff; border-color: var(--r-wine); }
.rv__slots { display: flex; flex-direction: column; gap: 0.6rem; }
.rv__slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--r-line);
  background: var(--r-paper2);
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--r-sans);
  transition: all 0.18s ease;
}
.rv__slot:hover { border-color: var(--r-wine); background: #fff; transform: translateY(-1px); }
.rv__slot-date { text-transform: capitalize; font-size: 0.98rem; }
.rv__slot-time { font-family: var(--r-serif); font-size: 1.2rem; color: var(--r-wine); }

/* Faux téléphone / SMS (le moment "anti no-show") */
.rv__phone {
  background: var(--r-paper2);
  border: 1px solid var(--r-line);
  border-radius: 8px;
  padding: 1.1rem 1.2rem;
  margin: 0.5rem 0 1rem;
}
.rv__sms-from {
  font-family: var(--r-sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--r-soft);
  margin: 0 0 0.5rem;
}
.rv__sms-body {
  font-family: var(--r-sans);
  background: var(--r-paper);
  border-radius: 10px 10px 10px 3px;
  padding: 0.8rem 1rem;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
}
.rv__why { font-family: var(--r-sans); font-size: 0.85rem; color: var(--r-soft); margin-bottom: 1.2rem; }
.rv__sms-actions { display: flex; flex-direction: column; gap: 0.6rem; }
.rv__cancel {
  border: none; background: none;
  color: var(--r-soft);
  font-family: var(--r-sans);
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
}
.rv__cancel:hover { color: var(--r-ink); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 720px) {
  .r-carte__cols { grid-template-columns: 1fr; }
  .r-story { grid-template-columns: 1fr; }
  .r-story__img { min-height: 220px; }
  .cart-fab__total { display: none; }
}
