/* ==========================================================================
   LA BRAISE — Design tokens
   ========================================================================== */
:root {
  --bg: #1a120b;
  --bg-alt: #140d08;
  --surface: #241811;
  --surface-2: #2e1f15;
  --border: rgba(255, 235, 210, 0.08);
  --border-strong: rgba(255, 235, 210, 0.16);
  --text: #f5ead9;
  --text-muted: #b8a58f;

  --accent: #ff4500;
  --accent-rgb: 255, 69, 0;
  --accent-2: #ffb020;
  --accent-2-rgb: 255, 176, 32;
  --success: #4a9d5f;
  --success-rgb: 74, 157, 95;

  --font-head: "Bebas Neue", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 76px;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.drawer-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}
input, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 400; line-height: 1.05; letter-spacing: 0.01em; text-transform: uppercase; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--alt { background: var(--bg-alt); }
.section--stats { padding-block: clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--border); }
.section__lead { max-width: 62ch; color: var(--text-muted); font-size: 1.05rem; margin-top: 0.75rem; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

h2 { font-size: clamp(2rem, 4.5vw, 3rem); max-width: 26ch; }

.grid { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
.grid--menu { grid-template-columns: 1fr; }
.grid--testimonials { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid--menu { grid-template-columns: repeat(2, 1fr); }
  .grid--testimonials { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .grid--menu { grid-template-columns: repeat(3, 1fr); }
}

.accent-text { color: var(--accent); }

/* ==========================================================================
   Accessibility utilities
   ========================================================================== */
.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  background: var(--accent);
  color: #1a0a00;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

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

/* ==========================================================================
   Progress bar + custom cursor
   ========================================================================== */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 9999;
  transition: width 0.1s linear;
}

.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: none;
}
.cursor-dot { width: 6px; height: 6px; background: var(--accent); }
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(var(--accent-rgb), 0.5);
  transition: width 0.2s var(--ease), height 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.cursor-ring.is-active { width: 54px; height: 54px; background: rgba(var(--accent-rgb), 0.08); border-color: var(--accent); }

@media (hover: hover) and (pointer: fine) {
  .has-custom-cursor .cursor-dot,
  .has-custom-cursor .cursor-ring { display: block; }
  .has-custom-cursor, .has-custom-cursor a, .has-custom-cursor button { cursor: none; }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), height 0.3s var(--ease);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(20, 13, 8, 0.85);
  background-image: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.18) 0 2px, transparent 2px 36px);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.site-header.is-scrolled { border-color: var(--border); height: 64px; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-header__brand { display: flex; align-items: center; gap: 0.9rem; min-width: 0; order: 1; }
/* Ordre visuel de base = ordre du DOM (identique au rendu desktop précédent).
   Le déplacement de .status-pill hors de .site-header__brand ne change donc
   rien au desktop ; seule la media query mobile réordonne ces valeurs. */
.status-pill { order: 2; }
.nav { order: 3; }
.cart-btn { order: 4; }
.burger { order: 5; }

.back-link {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}
.back-link:hover { border-color: var(--accent); color: var(--accent); }
@media (min-width: 900px) { .back-link { display: inline-flex; } }

.logo {
  font-family: var(--font-head);
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}
.logo__mark { width: 20px; height: 20px; color: var(--accent); }
.logo__accent { color: var(--accent); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  white-space: nowrap;
  transition: border-color 0.2s var(--ease);
}
.status-pill:hover { border-color: var(--accent-2); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px rgba(var(--success-rgb), 0.8); flex-shrink: 0; }
.status-dot.is-closed { background: #c94b4b; box-shadow: 0 0 8px rgba(201, 75, 75, 0.7); animation: none; }
.status-dot:not(.is-closed) { animation: statusPulse 2.4s ease-in-out infinite; }
@keyframes statusPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__list { display: none; align-items: center; gap: 1.5rem; }
.nav__link {
  position: relative;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
  white-space: nowrap;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.25s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__link:hover::after, .nav__link.is-active::after { width: 100%; }
.nav__cta { display: none; }

@media (min-width: 1180px) {
  .nav__list { display: flex; }
  .nav__cta { display: inline-flex; }
}

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--text);
  flex-shrink: 0;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.cart-btn:hover { border-color: var(--accent); color: var(--accent); }
.cart-btn svg { width: 20px; height: 20px; }
.cart-btn__badge {
  position: absolute;
  top: -6px; right: -6px;
  min-width: 20px; height: 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #1a0a00;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 4px;
}
@keyframes badgeBump { 0% { transform: scale(1); } 35% { transform: scale(1.35); } 100% { transform: scale(1); } }
.cart-btn__badge.is-bumping { animation: badgeBump 0.35s ease; }

.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  flex-shrink: 0;
  gap: 5px;
  width: 32px; height: 32px;
  padding: 0;
  z-index: 600;
  touch-action: manipulation;
}
.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1180px) { .burger { display: none; } }

@media (max-width: 1179px) {
  .nav {
    position: fixed;
    inset: 0;
    z-index: 550;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.2rem;
    overflow-y: auto;
    padding-block: 2rem;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
  }
  .nav.is-open { transform: translateX(0); }
  .nav__list { display: flex; flex-direction: column; gap: 1.8rem; text-align: center; }
  .nav__link { font-size: 1.3rem; }
  .nav__cta { display: inline-flex; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease), opacity 0.2s var(--ease);
  white-space: nowrap;
}
.btn--primary { background: var(--accent); color: #1a0a00; }
.btn--primary:hover { box-shadow: 0 0 32px rgba(var(--accent-rgb), 0.4); transform: translateY(-2px); }
.btn--primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--ghost { border: 1px solid var(--border-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--outline { border: 1px solid var(--border-strong); color: var(--text); }
.btn--outline:hover { border-color: var(--accent-2); color: var(--accent-2); background: rgba(var(--accent-2-rgb), 0.08); }
.btn--sm { padding: 0.6rem 1.2rem; font-size: 0.85rem; }
.btn--full { width: 100%; }

.btn--add {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 0.85rem;
  padding: 0.7rem 1rem;
}
.btn--add svg { width: 16px; height: 16px; }
.btn--add:hover { border-color: var(--accent); color: var(--accent); }
.btn--add.is-added { background: rgba(var(--success-rgb), 0.15); border-color: var(--success); color: var(--success); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 1.5rem);
  padding-bottom: 4rem;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(650px circle at var(--mx, 50%) var(--my, 30%), rgba(var(--accent-rgb), 0.16), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255, 235, 210, 0.025) 0 1px, transparent 1px 40px);
  z-index: 0;
  pointer-events: none;
  animation: emberGlow 6s ease-in-out infinite;
}
@keyframes emberGlow { 0%, 100% { opacity: 1; } 50% { opacity: 0.75; } }
.hero__inner { position: relative; z-index: 1; display: grid; gap: 3rem; }
.hero__title { font-size: clamp(2.6rem, 7vw, 4.4rem); display: flex; flex-direction: column; gap: 0.1rem; }
.hero__subtitle { margin-top: 1.25rem; max-width: 54ch; color: var(--text-muted); font-size: 1.05rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }

.badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  color: var(--text-muted);
}

@media (min-width: 1024px) {
  .hero__inner { grid-template-columns: 1.05fr 0.95fr; align-items: center; }
}

.hero__showcase { display: none; }
@media (min-width: 1024px) { .hero__showcase { display: block; } }

.hero__showcase-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: radial-gradient(circle at 50% 45%, rgba(255, 69, 0, 0.22), #140d08 70%);
  border: 1px solid var(--border-strong);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.7);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
}
.pizza-hero-art { width: 100%; height: 100%; filter: drop-shadow(0 0 24px rgba(var(--accent-rgb), 0.4)); }
.hero__showcase-tag {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.dot-live {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0.35; } }

.scroll-indicator {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  z-index: 1;
}
.scroll-indicator span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  background: var(--accent);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDot 1.6s infinite;
}
@keyframes scrollDot {
  0% { top: 8px; opacity: 1; }
  70% { top: 22px; opacity: 0; }
  100% { top: 22px; opacity: 0; }
}

/* ==========================================================================
   Stats bar
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; }
.stat__number, .stat__suffix {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.5vw, 2.6rem);
  color: var(--accent);
}
.stat__suffix { font-size: clamp(1.1rem, 2.5vw, 1.3rem); color: var(--text-muted); margin-left: 2px; }
.stat__label { color: var(--text-muted); font-size: 0.82rem; margin-top: 0.35rem; font-family: var(--font-body); text-transform: none; }

/* ==========================================================================
   Localisation / horaires
   ========================================================================== */
#scheduleGrid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 2.5rem; }
@media (min-width: 640px) { #scheduleGrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { #scheduleGrid { grid-template-columns: repeat(4, 1fr); } }

.schedule-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.schedule-card.is-today { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.3), 0 20px 50px -25px rgba(var(--accent-rgb), 0.3); transform: translateY(-3px); }
.schedule-card__day { font-family: var(--font-head); font-size: 1.1rem; display: block; margin-bottom: 0.6rem; }
.schedule-card.is-today .schedule-card__day { color: var(--accent); }
.schedule-card__location { display: flex; align-items: flex-start; gap: 0.4rem; color: var(--text); font-size: 0.88rem; margin-bottom: 0.4rem; }
.schedule-card__location svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 0.1rem; color: var(--accent-2); }
.schedule-card__hours { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-muted); }
.schedule-card__closed { color: var(--text-muted); font-size: 0.88rem; font-style: italic; }

/* ==========================================================================
   Menu tabs (fluid sliding indicator)
   ========================================================================== */
.menu-tabs {
  position: relative;
  display: inline-flex;
  gap: 0.25rem;
  margin-top: 2rem;
  padding: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow-x: auto;
  max-width: 100%;
}
.menu-tabs__indicator {
  position: absolute;
  top: 0.35rem;
  left: 0.35rem;
  height: calc(100% - 0.7rem);
  width: 0;
  background: var(--accent);
  border-radius: 999px;
  transition: transform 0.35s var(--ease), width 0.35s var(--ease);
  z-index: 0;
}
.menu-tab {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.25s var(--ease);
}
.menu-tab.is-active { color: #1a0a00; }

/* ==========================================================================
   Pizza cards (Menu)
   ========================================================================== */
.pizza-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.pizza-card:hover { transform: translateY(-4px); border-color: rgba(var(--accent-rgb), 0.5); box-shadow: 0 20px 50px -25px rgba(var(--accent-rgb), 0.25); }
.pizza-card.is-hidden { display: none; }
.pizza-card__icon { width: 52px; height: 52px; flex-shrink: 0; }
.pizza-card__icon svg { width: 100%; height: 100%; }
.pizza-card__body { flex-grow: 1; }
.pizza-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.4rem; }
.pizza-card__head h3 { font-size: 1.05rem; text-transform: none; letter-spacing: normal; }
.pizza-card__price { font-family: var(--font-mono); font-size: 0.92rem; color: var(--accent-2); flex-shrink: 0; }
.pizza-card__desc { color: var(--text-muted); font-size: 0.86rem; }

@keyframes galleryIn { from { opacity: 0; transform: translateY(14px) scale(0.96); } to { opacity: 1; transform: none; } }
.pizza-card--anim { animation: galleryIn 0.45s var(--ease) both; }

/* ==========================================================================
   Steps (Comment commander)
   ========================================================================== */
.steps { display: grid; gap: 1.5rem; margin-top: 3rem; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; }
.step__number { font-family: var(--font-mono); color: var(--accent); font-size: 0.85rem; display: block; margin-bottom: 1rem; }
.step h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.step p { color: var(--text-muted); font-size: 0.9rem; }

/* ==========================================================================
   Testimonials (Avis)
   ========================================================================== */
.testimonial-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; }
.testimonial-card__stars { color: var(--accent-2); letter-spacing: 0.1em; margin-bottom: 0.85rem; }
.testimonial-card__quote { color: var(--text); font-size: 0.95rem; margin-bottom: 1rem; }
.testimonial-card__author { color: var(--text-muted); font-size: 0.82rem; font-family: var(--font-mono); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { max-width: 760px; margin-top: 2.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.faq-item__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem; text-align: left; font-weight: 600; }
.faq-item__icon { font-family: var(--font-mono); color: var(--accent); font-size: 1.2rem; transition: transform 0.3s var(--ease); flex-shrink: 0; }
.faq-item__q[aria-expanded="true"] .faq-item__icon { transform: rotate(45deg); }
.faq-item__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s var(--ease); }
.faq-item__a > p { overflow: hidden; color: var(--text-muted); font-size: 0.92rem; padding: 0 1.5rem; }
.faq-item__q[aria-expanded="true"] + .faq-item__a { grid-template-rows: 1fr; }
.faq-item__q[aria-expanded="true"] + .faq-item__a > p { padding-bottom: 1.25rem; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact__grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .contact__grid { grid-template-columns: 1fr 1fr; align-items: start; } }

.contact__email {
  display: inline-block;
  margin-top: 1.75rem;
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.contact__email:hover { border-color: var(--accent); }
.contact__note { margin-top: 0.5rem; color: var(--text-muted); font-size: 0.85rem; }

.contact-info { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
.contact-info__label { display: block; font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent-2); margin-bottom: 0.35rem; }
.contact-info__row p { color: var(--text-muted); font-size: 0.92rem; }
.contact-info__row a { color: var(--text); transition: color 0.2s var(--ease); }
.contact-info__row a:hover { color: var(--accent); }
.contact-info__socials { display: flex; gap: 0.75rem; margin-top: 0.5rem; }
.social-icon { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-strong); border-radius: 50%; color: var(--text-muted); transition: border-color 0.2s var(--ease), color 0.2s var(--ease); }
.social-icon svg { width: 18px; height: 18px; }
.social-icon:hover { border-color: var(--accent); color: var(--accent); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--border); padding-block: 3rem; background-image: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.15) 0 2px, transparent 2px 36px); }
.site-footer__inner { display: grid; gap: 2rem; }
@media (min-width: 768px) { .site-footer__inner { grid-template-columns: 1.5fr 1fr 1fr; } }
.site-footer__tagline { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.75rem; max-width: 34ch; }
.site-footer__links { display: flex; flex-direction: column; gap: 0.6rem; }
.site-footer__links a { color: var(--text-muted); font-size: 0.9rem; transition: color 0.2s var(--ease); }
.site-footer__links a:hover { color: var(--accent); }
.site-footer__contact a { color: var(--accent); font-family: var(--font-mono); font-size: 0.9rem; }
.site-footer__contact p { color: var(--text-muted); font-size: 0.8rem; margin-top: 0.6rem; }
.site-footer__credit a { color: var(--text-muted); text-decoration: underline; text-decoration-color: var(--border-strong); }
.site-footer__credit a:hover { color: var(--accent); }
.logo--footer { font-size: 1.3rem; }

/* ==========================================================================
   Cart drawer + overlay
   ========================================================================== */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(10, 6, 3, 0.6);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.cart-overlay.is-visible { opacity: 1; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  bottom: 0;
  z-index: 901;
  width: min(420px, 100%);
  background: var(--surface);
  border-left: 1px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  box-shadow: -30px 0 80px -20px rgba(0, 0, 0, 0.6);
}
.cart-drawer.is-open { transform: translateX(0); }

.cart-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem; border-bottom: 1px solid var(--border); }
.cart-drawer__head h2 { font-size: 1.3rem; }
.cart-drawer__close { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--border-strong); color: var(--text); transition: border-color 0.2s var(--ease), color 0.2s var(--ease); }
.cart-drawer__close:hover { border-color: var(--accent); color: var(--accent); }
.cart-drawer__close svg { width: 16px; height: 16px; }

.cart-drawer__items { flex: 1; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.cart-empty { color: var(--text-muted); font-size: 0.92rem; text-align: center; margin-top: 2rem; }

.cart-item { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem 1rem; align-items: center; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.cart-item__name { font-weight: 600; font-size: 0.92rem; }
.cart-item__price { color: var(--text-muted); font-size: 0.8rem; font-family: var(--font-mono); margin-top: 0.2rem; }
.cart-item__qty { display: flex; align-items: center; gap: 0.6rem; grid-column: 1; }
.qty-btn {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.qty-btn:hover { border-color: var(--accent); color: var(--accent); }
.cart-item__qty span { font-family: var(--font-mono); font-size: 0.9rem; min-width: 1.2em; text-align: center; }
.cart-item__line-total { font-family: var(--font-mono); font-size: 0.9rem; color: var(--accent-2); grid-row: 1 / 3; grid-column: 2; align-self: center; }

.cart-drawer__success { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem; gap: 0.5rem; }
.cart-drawer__success svg { color: var(--success); margin-bottom: 0.5rem; }
.cart-drawer__success h3 { font-size: 1.3rem; }
.cart-drawer__success p { color: var(--text-muted); font-size: 0.9rem; max-width: 32ch; }
.cart-drawer__success button { margin-top: 1rem; }

.cart-drawer__footer { padding: 1.5rem; border-top: 1px solid var(--border); }
.cart-drawer__total { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1rem; font-family: var(--font-head); font-size: 1.4rem; }
.cart-drawer__total span { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Grain overlay
   ========================================================================== */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   QA Mobile — correctifs forcés (n'affectent que <= 768px, desktop inchangé)
   ========================================================================== */
@media (max-width: 768px) {
  /* Le header passe sur 2 lignes (pastille en ligne 2) : sa hauteur fixe doit
     devenir élastique, sinon la 2e ligne serait rognée ou chevaucherait le hero. */
  .site-header {
    height: auto !important;
    min-height: var(--header-h) !important;
    padding-block: 10px !important;
  }
  .hero {
    padding-top: calc(var(--header-h) + 4rem) !important;
  }

  /* Conteneur parent du header : largeur strictement bornée au viewport,
     aucun débordement horizontal possible. */
  .site-header__inner {
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    padding: 15px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
  }

  /* Ligne 1 : Logo, Panier, Burger. */
  .site-header__brand { order: 1 !important; flex-wrap: nowrap !important; }
  .cart-btn { order: 2 !important; }
  .burger { order: 3 !important; }

  /* Ligne 2 : la pastille "Ouvert" est forcée en pleine largeur, centrée. */
  .status-pill {
    order: 4 !important;
    flex-basis: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    margin-top: 10px !important;
  }
  #statusLabel {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
