/* ============================================================
   Friterie du Pont-de-Bonne — Modave
   Thème friterie fun jaune / rouge, typo Fredoka, marquee,
   badges. Adapté avec les photos réelles de l'établissement.
   ============================================================ */

:root {
  --yellow: #ffc328;
  --yellow-deep: #f5a623;
  --red: #e23b35;
  --red-deep: #c42d28;
  --ink: #241c12;
  --ink-soft: #5b5040;
  --cream: #fff8ec;
  --paper: #ffffff;
  --line: #efe4cf;
  --shadow: 0 18px 40px -18px rgba(54, 38, 12, 0.35);
  --radius: 18px;
  --max: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo-text { font-family: "Fredoka", sans-serif; line-height: 1.1; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.section { max-width: var(--max); margin: 0 auto; padding: 90px 24px; }
#horaires { scroll-margin-top: 80px; }

.kicker {
  display: inline-block;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--red);
  margin-bottom: 10px;
}
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(2rem, 5vw, 3rem); }
.lead { color: var(--ink-soft); font-size: 1.1rem; margin-top: 10px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-family: inherit;
}
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 10px 22px -10px var(--red); }
.btn-primary:hover { background: var(--red-deep); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); transform: translateY(-2px); }
.btn-nav { padding: 9px 18px; background: var(--ink); color: var(--cream); }
.btn-nav:hover { background: var(--red); }
.btn-block { width: 100%; }

/* ===== Header / Nav ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 236, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.4rem; font-weight: 700; }
.logo-img { height: 46px; width: auto; }
.logo-accent { color: var(--red); }
.nav-links { list-style: none; display: flex; align-items: center; gap: 26px; }
.nav-links a { font-weight: 500; transition: color 0.2s; }
.nav-links a:not(.btn):hover { color: var(--red); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 3px; background: var(--ink); border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Croix de fermeture du menu mobile (masquée par défaut) */
.nav-close {
  display: none;
  position: fixed;
  top: 14px;
  right: 16px;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--ink);
  font-size: 2.8rem;
  line-height: 1;
  padding: 0;
  z-index: 120;
}
/* Affichée uniquement quand le menu mobile est ouvert */
body.nav-open .nav-close { display: flex; }

/* ===== Hero ===== */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 70px 24px 40px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
}
.hero-eyebrow { color: var(--red); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem; }
.hero-title { font-size: clamp(2.6rem, 7vw, 4.6rem); margin: 12px 0 18px; }
.highlight {
  background: linear-gradient(120deg, var(--yellow) 0%, var(--yellow-deep) 100%);
  padding: 0 10px;
  border-radius: 8px;
  display: inline-block;
  transform: rotate(-1.5deg);
}
.hero-sub { font-size: 1.15rem; color: var(--ink-soft); max-width: 30em; }
.hero-actions { display: flex; gap: 14px; margin: 28px 0 34px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 28px; flex-wrap: wrap; }
.badge strong { display: block; font-family: "Fredoka", sans-serif; font-size: 1.5rem; color: var(--red); }
.badge span { font-size: 0.85rem; color: var(--ink-soft); }

/* Hero visuel : photo dans un cadre + petit emoji frite animé */
.hero-art { display: flex; justify-content: center; }
.fries-cone {
  font-size: clamp(8rem, 22vw, 15rem);
  filter: drop-shadow(0 24px 30px rgba(0,0,0,.2));
  animation: float 4s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0) rotate(-3deg);} 50% { transform: translateY(-18px) rotate(3deg);} }

/* ===== Marquee ===== */
.marquee {
  background: var(--red);
  color: #fff;
  overflow: hidden;
  padding: 14px 0;
  border-block: 4px solid var(--ink);
}
.marquee-track {
  display: flex;
  gap: 44px;
  white-space: nowrap;
  width: max-content;
  animation: scroll 24s linear infinite;
  font-family: "Fredoka", sans-serif;
  font-size: 1.1rem;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 8px; }
@keyframes scroll { from { transform: translateX(0);} to { transform: translateX(-50%);} }

/* ===== Cartes (accueil) ===== */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.menu-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}
.menu-card:hover { transform: translateY(-6px); }
.menu-card-head h3 { font-size: 1.4rem; margin-bottom: 16px; }
.menu-card-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 18px;
}

/* ===== Menu (carte détaillée) ===== */
.menu-cat { margin-bottom: 40px; }
.menu-cat:last-child { margin-bottom: 0; }
.menu-cat-title {
  font-size: 1.7rem;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.menu-cat-title::after { content: ""; flex: 1; height: 3px; background: var(--yellow); border-radius: 2px; }
.menu-cat-note { color: var(--ink-soft); font-size: 0.95rem; font-style: italic; margin-bottom: 14px; }
.menu-list { list-style: none; }
.menu-list li { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.menu-list li:last-child { border-bottom: 0; }
.menu-line { display: flex; align-items: baseline; gap: 8px; }
.menu-line > span:first-child { font-weight: 500; }
.dots { flex: 1; border-bottom: 2px dotted #d8c9aa; transform: translateY(-4px); min-width: 12px; }
.price { font-weight: 600; color: var(--red); white-space: nowrap; font-family: "Fredoka", sans-serif; }
.menu-item-note { display: block; color: var(--ink-soft); font-size: 0.82rem; font-style: italic; margin-top: 2px; }
.menu-note { text-align: center; margin-top: 28px; color: var(--ink-soft); font-size: 0.95rem; }

/* ===== Avis (accueil) ===== */
.reviews-section { background: #fff3d6; border-block: 4px solid var(--ink); padding-block: 70px; }
.reviews-section .section { padding-block: 0; }
.reviews-section .section-head { margin-bottom: 36px; }

.reviews-scroller {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4px 24px 8px;
}
.reviews-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.review-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.review-stars { color: var(--yellow-deep); letter-spacing: 2px; margin-bottom: 12px; font-size: 1.05rem; }
.review-card blockquote {
  margin: 0 0 16px;
  font-size: 0.98rem;
  color: var(--ink-soft);
  line-height: 1.55;
  flex: 1;
}
.review-card figcaption {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  color: var(--red);
}

/* Mobile : carrousel scrollable nativement (swipe) */
@media (max-width: 860px) {
  .reviews-scroller {
    padding-inline: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .reviews-scroller::-webkit-scrollbar { display: none; }
  .reviews-track {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: 82%;
    gap: 16px;
    padding-inline: 24px;
  }
  .review-card { scroll-snap-align: center; }
}

/* ===== About ===== */
.about { background: var(--paper); border-radius: 40px; margin-block: 30px; max-width: var(--max); }
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 40px; align-items: center; }
.about-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  border: 4px solid var(--ink);
  box-shadow: var(--shadow);
}
.about-text h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 16px; }
.about-text p { color: var(--ink-soft); margin-bottom: 14px; }
.about-points { list-style: none; margin-top: 18px; display: grid; gap: 10px; font-weight: 500; }
.about-points li { position: relative; padding-left: 30px; }
.about-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--yellow);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23241c12' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 13px 13px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ===== Hours ===== */
.hours-card {
  max-width: 620px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 28px;
  box-shadow: var(--shadow);
}
.hours-list { list-style: none; }
.hours-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.hours-list li:last-child { border-bottom: 0; }
.hours-list li > span:first-child { font-weight: 600; flex: 0 0 auto; }
.hours-list li > span:last-child { text-align: right; white-space: nowrap; }
.closed { color: var(--red); font-weight: 600; }

/* Mobile étroit : empile jour / créneau pour un affichage régulier */
@media (max-width: 560px) {
  .hours-card { padding: 8px 20px; }
  .hours-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 11px 0;
  }
  .hours-list li > span:last-child { text-align: left; color: var(--ink-soft); }
  .hours-list li .closed { color: var(--red); }
}

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.contact-list { list-style: none; margin-top: 24px; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.ci-icon { font-size: 1.5rem; }
.contact-list a:hover { color: var(--red); }
.contact-map iframe {
  width: 100%;
  min-height: 360px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 24px;
}
.contact-cta {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  text-align: center;
}
.contact-cta h3 { font-size: 1.5rem; margin-bottom: 10px; }
.contact-cta p { color: var(--ink-soft); margin-bottom: 22px; }
.contact-cta .btn { margin: 6px; }

/* ===== Footer ===== */
.footer { background: var(--ink); color: var(--cream); margin-top: 40px; }
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 50px 24px 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}
.footer-brand { max-width: 280px; }
.footer-brand .logo { color: var(--cream); }
.footer-brand .logo-img { height: 42px; }
.footer-brand p { color: #c9bda6; margin-top: 10px; font-size: 0.95rem; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a:hover { color: var(--yellow); }
.footer-social { display: flex; gap: 14px; font-size: 1.4rem; }
.footer-social a { transition: transform 0.2s; }
.footer-social a:hover { transform: translateY(-3px) scale(1.1); }
.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 24px;
  font-size: 0.85rem;
  color: #c9bda6;
}

/* ===== Lien de navigation actif ===== */
.nav-links a.active:not(.btn) { color: var(--red); }
.nav-links a.active:not(.btn)::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
  margin-top: 2px;
}

/* ===== Bannière des pages internes ===== */
.page-banner {
  background: linear-gradient(180deg, #fff3d6 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding: 60px 24px 50px;
}
.page-banner h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin: 6px 0 10px; }
.page-banner p { color: var(--ink-soft); font-size: 1.1rem; max-width: 40ch; margin: 0 auto; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 40px; }
  .hero-sub { margin-inline: auto; }
  .hero-actions, .hero-badges { justify-content: center; }
  .hero-art { order: -1; margin-bottom: 10px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { order: -1; max-width: 360px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }
  /* Le header reste cliquable au-dessus de l'overlay (logo + croix).
     IMPORTANT : on retire backdrop-filter sur mobile car il crée un
     bloc conteneur qui empêcherait l'overlay `position:fixed` de couvrir
     tout le viewport (il se limiterait au header). */
  .header { z-index: 110; backdrop-filter: none; }

  /* Menu mobile : overlay plein écran déroulant */
  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: var(--cream);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 80px 24px 40px;
    margin: 0;
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links li { padding: 0; width: 100%; text-align: center; }
  .nav-links a:not(.btn) {
    display: block;
    font-family: "Fredoka", sans-serif;
    font-size: 1.9rem;
    font-weight: 600;
    padding: 14px 0;
  }
  /* Pas de soulignement de lien actif en mode overlay */
  .nav-links a.active:not(.btn)::after { display: none; }
  .nav-links a.active:not(.btn) { color: var(--red); }
  .btn-nav {
    margin-top: 18px;
    font-size: 1.2rem;
    padding: 14px 40px;
  }
  /* Bloque le scroll de la page quand le menu est ouvert */
  body.nav-open { overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .fries-cone, .marquee-track { animation: none; }
  .add-btn, .slot, .cart-line, .step span { transition: none !important; }
}

/* ============================================================
   COMMANDE EN LIGNE À EMPORTER
   ============================================================ */

/* L'attribut [hidden] doit l'emporter sur les display: flex/grid
   posés plus bas (compteur du panier, fil d'étapes, panier vide…). */
[hidden] { display: none !important; }

/* ── Bouton « + » sur la carte ───────────────────────────── */
.add-btn {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--red);
  background: transparent;
  color: var(--red);
  font-size: 1.15rem;
  font-weight: 700;
  font-family: "Fredoka", sans-serif;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.18s;
}
.add-btn:hover { background: var(--red); color: #fff; transform: scale(1.1); }
.add-btn:focus-visible { outline: 3px solid var(--yellow-deep); outline-offset: 2px; }
.add-btn.added { background: #2e9e5b; border-color: #2e9e5b; color: #fff; }

/* ── Compteur du panier dans le header ───────────────────── */
.btn-cart { position: relative; }
.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  margin-left: 4px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  font-family: "Fredoka", sans-serif;
}

/* ── Barre « Passer commande » (bas de la page carte) ────── */
.order-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: rgba(36, 28, 18, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 -8px 30px -12px rgba(54, 38, 12, 0.5);
  animation: barIn 0.28s ease both;
}
@keyframes barIn { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) {
  .order-bar { animation: none; }
}
.order-bar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.order-bar-info { display: flex; flex-direction: column; line-height: 1.3; }
.order-bar-info strong {
  color: var(--cream);
  font-family: "Fredoka", sans-serif;
  font-size: 1.05rem;
}
.order-bar-info span {
  color: var(--yellow);
  font-family: "Fredoka", sans-serif;
  font-size: 1.25rem;
}
.order-bar-btn { white-space: nowrap; }

/* Réserve la place de la barre pour ne pas masquer le pied de page. */
body.has-order-bar .footer { padding-bottom: 92px; }

/* ── Fil d'étapes ────────────────────────────────────────── */
.steps {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-bottom: 40px;
}
.step {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--ink-soft);
  opacity: 0.55;
  transition: opacity 0.2s;
}
.step span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--line);
  color: var(--ink);
  font-family: "Fredoka", sans-serif;
  transition: background 0.2s, color 0.2s;
}
.step.is-current { opacity: 1; color: var(--ink); }
.step.is-current span { background: var(--red); color: #fff; }
.step.is-done { opacity: 1; }
.step.is-done span { background: #2e9e5b; color: #fff; }

/* ── Panneaux d'étape ────────────────────────────────────── */
.order-panel { display: none; }
.order-panel.is-active { display: block; animation: panelIn 0.25s ease both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  .order-panel.is-active { animation: none; }
}

.order-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
  align-items: start;
}
.order-main h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); margin-bottom: 8px; }

/* ── Lignes du panier ────────────────────────────────────── */
.cart-lines { list-style: none; margin-top: 22px; }
.cart-line {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}
.cl-nom { font-weight: 600; }
.cl-pu { font-size: 0.82rem; color: var(--ink-soft); }
.cl-total {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  color: var(--red);
  min-width: 74px;
  text-align: right;
  white-space: nowrap;
}
.cl-del {
  background: none;
  border: 0;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 6px;
}
.cl-del:hover { color: var(--red); }
.cl-del:focus-visible { outline: 2px solid var(--red); }

.qty { display: flex; align-items: center; gap: 4px; }
.qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.qty-btn:hover { border-color: var(--red); color: var(--red); }
.qty-btn:focus-visible { outline: 2px solid var(--red); outline-offset: 1px; }
.qty-val {
  min-width: 26px;
  text-align: center;
  font-weight: 700;
  font-family: "Fredoka", sans-serif;
}

/* Panier vide : le récap est masqué → une seule colonne, centrée. */
.order-panel.is-empty .order-grid { grid-template-columns: 1fr; }
.order-panel.is-empty .order-main { text-align: center; }
.cart-empty {
  text-align: center;
  padding: 56px 0;
  display: grid;
  justify-items: center;
  gap: 4px;
}
.cart-empty-icon { font-size: 3rem; margin-bottom: 8px; }
.cart-empty .btn { margin-top: 14px; }
.cart-add-more {
  display: inline-block;
  margin-top: 22px;
  font-weight: 600;
  color: var(--red);
  border-bottom: 2px solid transparent;
}
.cart-add-more:hover { border-color: var(--red); }

/* ── Colonne récapitulatif ───────────────────────────────── */
.order-side {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 90px;
}
.order-side h3 { font-size: 1.25rem; margin-bottom: 16px; }
.sum { margin-bottom: 18px; }
.sum > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  font-size: 0.95rem;
}
.sum dt { color: var(--ink-soft); }
.sum dd { font-weight: 600; text-align: right; }
.sum-total {
  border-top: 2px solid var(--line);
  margin-top: 6px;
  padding-top: 12px !important;
  font-size: 1.15rem !important;
}
.sum-total dd { color: var(--red); font-family: "Fredoka", sans-serif; font-size: 1.3rem; }
.sum-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  background: var(--cream);
  border-radius: 12px;
  padding: 11px 13px;
  margin-bottom: 16px;
  line-height: 1.45;
}
.sum-lines { list-style: none; margin-bottom: 16px; }
.sum-lines li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
  padding: 5px 0;
  border-bottom: 1px dashed var(--line);
}
.sum-lines li:last-child { border-bottom: 0; }
.order-side .btn + .btn { margin-top: 10px; }

/* ── Champs de formulaire ────────────────────────────────── */
.field { margin-top: 20px; }
.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 7px;
  font-size: 0.95rem;
}
.req { color: var(--red); }
.opt { color: var(--ink-soft); font-weight: 400; font-size: 0.85rem; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.15s;
}
.field textarea { resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--red);
}
.field input.is-error { border-color: var(--red); background: #fff5f4; }
.field-error { color: var(--red); font-size: 0.83rem; margin-top: 5px; min-height: 1em; }
.field-hint { color: var(--ink-soft); font-size: 0.85rem; margin-top: 9px; }

/* ── Créneaux horaires ───────────────────────────────────── */
.slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 9px;
}
.slot {
  padding: 11px 6px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  font-family: "Fredoka", sans-serif;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.slot:hover { border-color: var(--red); color: var(--red); }
.slot:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.slot.is-sel {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* ── Écran de confirmation ───────────────────────────────── */
.confirm {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px 32px;
  box-shadow: var(--shadow);
}
.confirm-check {
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #2e9e5b;
  color: #fff;
  font-size: 2.2rem;
  display: grid;
  place-items: center;
}
.confirm h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
.confirm-num {
  font-family: "Fredoka", sans-serif;
  font-size: 1.5rem;
  color: var(--red);
  margin: 10px 0 4px;
}
.confirm-lines {
  list-style: none;
  text-align: left;
  margin: 26px auto;
  max-width: 340px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.confirm-lines li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  font-size: 0.94rem;
}
.confirm-total { font-size: 1.1rem; margin-bottom: 22px; }
.confirm-total strong { color: var(--red); font-family: "Fredoka", sans-serif; font-size: 1.25rem; }
.confirm-note {
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.6;
  margin-bottom: 26px;
}
.confirm-note a { color: var(--red); font-weight: 600; }
.demo-flag {
  margin-top: 28px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  background: var(--cream);
  border-radius: 10px;
  padding: 10px 14px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 860px) {
  .order-grid { grid-template-columns: 1fr; gap: 28px; }
  .order-side { position: static; }
  .steps { gap: 8px 16px; }
  .step { font-size: 0.85rem; }
}
@media (max-width: 560px) {
  .cart-line {
    grid-template-columns: 1fr auto;
    gap: 10px 12px;
  }
  .cl-infos { grid-column: 1; }
  .cl-del { grid-column: 2; grid-row: 1; align-self: start; }
  .qty { grid-column: 1; }
  .cl-total { grid-column: 2; text-align: right; }
  .confirm { padding: 36px 22px; }
  .slots { grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); }
  .order-bar-inner { padding: 11px 16px; gap: 12px; }
  .order-bar-info strong { font-size: 0.92rem; }
  .order-bar-info span { font-size: 1.1rem; }
  .order-bar-btn { padding: 12px 18px; font-size: 0.95rem; }
}
