/* ─── Variables ─────────────────────────────────────────────────────────────── */
:root {
  /* Palette Wolt : bleu cerulean #009DE0, texte cod gray #141414 */
  --blue:      #009DE0;
  --blue-dark: #007FB8;
  --blue-mid:  #00ACEE;
  --blue-bg:   #E5F6FD;
  --blue-line: #B3E4F7;
  --navy:      #141414;
  --fond:      #F7F7F8;
  --blanc:     #FFFFFF;
  --text:      #141414;
  --text-s:    #4D4D4D;
  --text-t:    #8A8A8E;
  --bordure:   #EAEAEC;
  --bordure-f: #D4D4D8;
  --rouge:     #DC2626;
  --vert-ok:   #16A34A;
  --ombre:     0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
  --ombre-md:  0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.05);
  --ombre-lg:  0 8px 30px rgba(0,0,0,0.10);
  --radius:    10px;
  --radius-sm: 7px;
  --nav-h:     60px;
  --bot-h:     62px;
}

/* ─── Reset & Base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--fond); color: var(--text); line-height: 1.6;
  padding-top: var(--nav-h);
  min-width: 0;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }

/* ─── Header ────────────────────────────────────────────────────────────────── */
.header {
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--bordure);
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 9999;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  transition: box-shadow .25s, background .25s;
  /* Forcer le rendu GPU — évite tout saut ou disparition sur iOS/Android */
  -webkit-transform: translate3d(0,0,0);
  transform: translate3d(0,0,0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
/* Effet verre dépoli au scroll */
.header.scrolled {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem; height: var(--nav-h);
}
.logo {
  font-size: 1.3rem; font-weight: 800; color: var(--navy);
  letter-spacing: -0.03em;
  display: inline-flex; align-items: center;
}
.logo span { color: var(--blue); }
.logo-img { height: 40px; width: auto; max-width: 180px; object-fit: contain; display: block; }

.nav { display: flex; gap: 2rem; align-items: center; }
.nav a {
  font-size: 0.875rem; font-weight: 500; color: var(--text-s);
  transition: color .15s; white-space: nowrap;
}
.nav a:hover { color: var(--blue); }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.btn-panier {
  position: relative; display: flex; align-items: center; gap: 0.35rem;
  background: var(--blue); color: #fff; padding: 0.45rem 1rem;
  border-radius: var(--radius-sm); font-size: 0.8rem; font-weight: 600;
  transition: background .15s; white-space: nowrap; letter-spacing: .01em;
}
.btn-panier:hover { background: var(--blue-dark); }
.panier-badge {
  background: #fff; color: var(--blue);
  font-size: 0.6rem; font-weight: 800;
  min-width: 16px; height: 16px; border-radius: 50%; padding: 0 3px;
  display: flex; align-items: center; justify-content: center;
  position: absolute; top: -5px; right: -5px;
  border: 1.5px solid var(--blue);
}
.btn-link {
  font-size: 0.8rem; font-weight: 500; color: var(--text-s);
  transition: color .15s;
}
.btn-link:hover { color: var(--blue); }

/* ─── Hamburger ─────────────────────────────────────────────────────────────── */
.burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px; width: 40px; height: 40px; border-radius: 10px;
  transition: background .15s;
}
.burger:hover { background: var(--fond); }
.burger span {
  display: block; width: 20px; height: 2px;
  background: var(--text); border-radius: 2px; transition: all .28s cubic-bezier(.4,0,.2,1);
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Menu mobile overlay ───────────────────────────────────────────────────── */
.nav-mobile {
  display: none;
  position: fixed; inset: 0;
  background: rgba(15,23,42,0.5);
  z-index: 190;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .25s;
}
.nav-mobile.open {
  display: block;
  opacity: 1;
}
/* Panel qui glisse depuis la gauche */
.nav-mobile-panel {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: min(300px, 82vw);
  background: var(--blanc);
  display: flex; flex-direction: column;
  box-shadow: 6px 0 30px rgba(0,0,0,0.15);
  transform: translateX(-100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  padding-top: env(safe-area-inset-top, 0px);
}
.nav-mobile.open .nav-mobile-panel {
  transform: translateX(0);
}
/* Header du panel */
.nav-mobile-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.1rem 0.75rem;
  border-bottom: 1px solid var(--bordure);
  background: var(--navy);
  min-height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  flex-shrink: 0;
}
.nav-mobile-logo {
  font-size: 1.2rem; font-weight: 800; color: #fff; letter-spacing: -0.03em;
}
.nav-mobile-logo span { color: #60A5FA; }
.nav-mobile-close {
  background: rgba(255,255,255,0.12); border: none; color: #fff;
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; transition: background .15s;
}
.nav-mobile-close:hover { background: rgba(255,255,255,0.22); }
/* Liens du panel */
.nav-mobile-links {
  flex: 1; padding: 0.75rem 0;
}
.nav-mobile-links a {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  font-size: 0.92rem; font-weight: 500; color: var(--text);
  transition: background .12s, color .12s;
  border-left: 3px solid transparent;
}
.nav-mobile-links a:hover,
.nav-mobile-links a.actif {
  background: var(--blue-bg);
  color: var(--blue);
  border-left-color: var(--blue);
}
.nav-mobile-sep { height: 1px; background: var(--bordure); margin: 0.5rem 1.25rem; }
/* Pied de panel */
.nav-mobile-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--bordure);
  background: var(--fond);
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  flex-shrink: 0;
}
.nav-mobile-footer a {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 0;
  font-size: 0.85rem; font-weight: 500; color: var(--text-s);
  transition: color .12s;
}
.nav-mobile-footer a:hover { color: var(--blue); }

/* ─── Barre navigation mobile ───────────────────────────────────────────────── */
.bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 9999;
  /* Hauteur + safe area iPhone (encoche/barre d'accueil) */
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1.5px solid var(--bordure);
  box-shadow: 0 -2px 16px rgba(0,0,0,0.08);
  /* Forcer le rendu GPU — évite tout saut ou disparition sur iOS/Android */
  -webkit-transform: translate3d(0,0,0);
  transform: translate3d(0,0,0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.bottom-nav-inner {
  display: flex; align-items: stretch;
  height: var(--bot-h);
}
.bot-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  font-size: 0.59rem; font-weight: 600; color: var(--text-t);
  text-transform: uppercase; letter-spacing: .04em;
  text-decoration: none; transition: color .15s;
  position: relative; padding: 0 2px;
}
.bot-item:hover { color: var(--blue); }
/* Indicateur actif : pastille en haut + icône colorée */
.bot-item.actif { color: var(--blue); }
.bot-item.actif::before {
  content: '';
  position: absolute; top: 0; left: 25%; right: 25%; height: 2.5px;
  background: var(--blue); border-radius: 0 0 4px 4px;
}
.bot-item.actif .bot-icon-box {
  background: var(--blue-bg);
  border-radius: 10px;
}
.bot-icon-box {
  width: 36px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.bot-icon-box svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.bot-badge {
  position: absolute; top: 4px; left: calc(50% + 7px);
  background: var(--blue); color: #fff;
  font-size: 0.52rem; font-weight: 800;
  min-width: 14px; height: 14px; border-radius: 50%; padding: 0 2px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid #fff;
}

/* ─── Messages flash ────────────────────────────────────────────────────────── */
.messages { max-width: 1200px; margin: 0.75rem auto; padding: 0 1.5rem; }
.msg {
  padding: 0.7rem 1rem; border-radius: var(--radius-sm);
  font-size: 0.85rem; font-weight: 500; margin-bottom: 0.4rem;
}
.msg-success { background: #F0FDF4; color: #15803D; border-left: 3px solid var(--vert-ok); }
.msg-error   { background: #FEF2F2; color: var(--rouge); border-left: 3px solid var(--rouge); }
.msg-warning { background: #FFFBEB; color: #B45309; border-left: 3px solid #D97706; }
.msg-info    { background: var(--blue-bg); color: var(--blue); border-left: 3px solid var(--blue); }

/* ─── Layout ────────────────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.page { padding: 1.75rem 0 3rem; }

/* ─── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  background: var(--navy);
  color: #fff; padding: 3.5rem 1.5rem 3rem; text-align: center;
}
.hero h1 {
  font-size: clamp(1.6rem, 5vw, 2.4rem); font-weight: 800;
  margin-bottom: 0.6rem; line-height: 1.25; letter-spacing: -0.02em;
}
.hero p {
  font-size: clamp(0.88rem, 2.5vw, 1rem); color: rgba(255,255,255,0.6);
  margin-bottom: 2rem; max-width: 480px; margin-left: auto; margin-right: auto;
}
.hero-btns { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.btn-hero {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--blue); color: #fff;
  padding: 0.8rem 1.75rem; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.9rem; letter-spacing: .01em;
  transition: background .15s, transform .15s; min-height: 46px;
}
.btn-hero:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-hero-sec {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: transparent; color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.8rem 1.5rem; border-radius: var(--radius-sm);
  font-weight: 500; font-size: 0.9rem; transition: all .15s; min-height: 46px;
}
.btn-hero-sec:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.4); }

/* ─── Section header ────────────────────────────────────────────────────────── */
.section-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem;
}
.section-title {
  font-size: 1.1rem; font-weight: 700; color: var(--text);
  letter-spacing: -0.01em;
}
.voir-tout {
  font-size: 0.82rem; font-weight: 600; color: var(--blue);
  white-space: nowrap; transition: opacity .15s;
}
.voir-tout:hover { opacity: .7; }

/* ─── Catégories ────────────────────────────────────────────────────────────── */
.cats-section { padding: 1.5rem 0 0; }
.cats-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cat-pill {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 1rem; border-radius: 50px;
  background: var(--blanc); border: 1px solid var(--bordure);
  font-size: 0.82rem; font-weight: 500; color: var(--text-s);
  transition: all .15s; cursor: pointer; white-space: nowrap; min-height: 38px;
}
.cat-pill:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-bg); }
.cat-pill.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.cat-pill img { width: 20px; height: 20px; border-radius: 3px; object-fit: cover; }
.cat-pill-icone { font-size: 1.1rem; line-height: 1; }

/* ─── Catégories style Wolt (accueil) ───────────────────────────────────────── */
.cats-wolt {
  display: flex; gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  -ms-overflow-style: none; scrollbar-width: none;
}
.cats-wolt::-webkit-scrollbar { display: none; }
.cat-card { flex: 0 0 auto; width: 112px; text-align: center; }
.cat-card-thumb {
  width: 112px; height: 112px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  transition: transform .18s, box-shadow .18s;
}
.cat-card:hover .cat-card-thumb { transform: translateY(-3px); box-shadow: var(--ombre-md); }
.cat-card-thumb img { max-width: 80%; max-height: 80%; object-fit: contain; }
.cat-card-icone { font-size: 3rem; line-height: 1; }
.cat-card-nom {
  margin-top: 0.55rem; font-size: 0.86rem; font-weight: 700;
  color: var(--text); line-height: 1.25;
}
/* Fonds pastel en rotation (style Wolt) */
.cat-card:nth-child(6n+1) .cat-card-thumb { background: #FFF4D6; }
.cat-card:nth-child(6n+2) .cat-card-thumb { background: #E5F7E8; }
.cat-card:nth-child(6n+3) .cat-card-thumb { background: #FDE9EC; }
.cat-card:nth-child(6n+4) .cat-card-thumb { background: #EFEAFB; }
.cat-card:nth-child(6n+5) .cat-card-thumb { background: #E3F4FB; }
.cat-card:nth-child(6n+6) .cat-card-thumb { background: #FCEEDD; }
/* Catégorie active (page catalogue) — sans contour, juste le nom en bleu */
.cat-card.active .cat-card-nom { color: var(--blue); }

/* ─── Formules (accueil) ────────────────────────────────────────────────────── */
.formules-home { margin: 2rem 0; }
.formules-home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
}
.formule-home-card {
  background: var(--blanc); border-radius: var(--radius);
  border: 1px solid var(--bordure); overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--ombre); transition: box-shadow .2s, transform .2s;
}
.formule-home-card:hover {
  box-shadow: var(--ombre-md); transform: translateY(-2px);
}
.formule-home-card.pop { border-color: var(--blue); border-width: 1.5px; }
.formule-home-photo { width: 100%; aspect-ratio: 16/9; height: auto; object-fit: cover; }
.formule-home-photo-ph {
  width: 100%; aspect-ratio: 16/9;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
}
.formule-home-photo-ph span {
  font-size: 0.75rem; font-weight: 600; color: rgba(255,255,255,0.3);
  letter-spacing: .1em; text-transform: uppercase;
}
.formule-home-body { padding: 0.85rem 0.9rem 0; flex: 1; }
.formule-home-pop {
  display: inline-block; font-size: 0.65rem; font-weight: 700;
  background: var(--blue-bg); color: var(--blue);
  padding: 2px 8px; border-radius: 4px; text-transform: uppercase;
  letter-spacing: .06em; margin-bottom: 0.35rem;
}
.formule-home-nom { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 0.3rem; }
.formule-home-inclus { font-size: 0.73rem; color: var(--text-t); line-height: 1.6; }
.formule-home-footer {
  padding: 0.75rem 0.9rem; display: flex; align-items: center;
  justify-content: space-between; border-top: 1px solid var(--bordure); margin-top: 0.7rem;
}
.formule-home-prix { font-size: 1.25rem; font-weight: 800; color: var(--text); }
.btn-choisir-sm {
  background: var(--blue); color: #fff;
  padding: 0.4rem 0.9rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.78rem; transition: background .15s;
  min-height: 34px; display: flex; align-items: center;
}
.btn-choisir-sm:hover { background: var(--blue-dark); }

/* ─── Grille produits ───────────────────────────────────────────────────────── */
.produits-section { margin-top: 1.75rem; }
.produits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

/* ─── Card produit (style Wolt) ───────────────────────────────────────────────── */
.card {
  background: var(--blanc); border-radius: 16px;
  border: none; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--ombre); transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--ombre-md); transform: translateY(-3px); }

/* Image arrondie + zone d'overlay (tags + bouton +) */
.card-img-wrap { position: relative; border-radius: 16px; overflow: hidden; }
.card-img-link { display: block; }
.card-img {
  width: 100%; aspect-ratio: 3/2; height: auto; object-fit: cover;
  transition: transform .35s ease;
}
.card:hover .card-img { transform: scale(1.05); }
.card-img-placeholder {
  width: 100%; aspect-ratio: 3/2; background: var(--fond);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; color: var(--text-t); letter-spacing: .08em;
  text-transform: uppercase; font-weight: 600;
}

/* Tags casher/vegan posés sur l'image (haut gauche) */
.card-tags {
  position: absolute; top: 8px; left: 8px;
  display: flex; flex-wrap: wrap; gap: 4px; max-width: calc(100% - 56px);
}
.card-tag {
  background: rgba(255,255,255,0.94); color: #15803D;
  font-size: 0.64rem; font-weight: 700; padding: 3px 7px;
  border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,.12);
  backdrop-filter: blur(2px);
}

/* Médaille (coup de cœur) — haut droite de l'image */
.card-medaille {
  position: absolute; top: 7px; right: 7px; z-index: 2;
  display: flex; align-items: center; justify-content: center;
}
.card-medaille .medaille-svg {
  width: 34px; height: 34px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.3));
}
.badge-medaille { background: #FEF3C7; color: #92400E; display: inline-flex; align-items: center; gap: 4px; }
.badge-medaille .medaille-svg { width: 16px; height: 16px; }

/* Bouton + rond façon Wolt (bas droite de l'image) */
.card-fab-form { position: absolute; right: 9px; bottom: 9px; margin: 0; }
.card-fab {
  width: 38px; height: 38px; border-radius: 50%;
  background: #fff; color: var(--blue); border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  font-size: 1.5rem; font-weight: 400; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: transform .15s, background .15s, color .15s;
}
.card-fab:hover { background: var(--blue); color: #fff; transform: scale(1.08); }
.card-fab.disabled { color: #CBD5E1; cursor: not-allowed; box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.card-fab.disabled:hover { background: #fff; color: #CBD5E1; transform: none; }

/* Corps : titre, sous-titre, ligne d'info */
.card-body { padding: 0.6rem 0.4rem 0.2rem; flex: 1; display: flex; flex-direction: column; gap: 0.1rem; }
.card-cat { font-size: 0.68rem; color: var(--blue); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.card-nom {
  font-size: 0.95rem; font-weight: 700; color: var(--text); line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-sub {
  font-size: 0.82rem; color: var(--text-t); line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-meta {
  display: flex; align-items: center; gap: 0.35rem; margin-top: 0.35rem;
  font-size: 0.82rem; color: var(--text-s);
}
.card-meta-icon { display: inline-flex; color: var(--blue); }
.card-meta-icon svg { width: 16px; height: 16px; }
.card-meta .prix { font-size: 0.82rem; font-weight: 700; color: var(--text); }
.card-meta-dot { color: var(--text-t); }
.card-meta-info { color: var(--text-t); font-weight: 500; }
.card-marque { font-size: 0.76rem; color: var(--text-t); }
.card-badges { display: flex; gap: 0.3rem; flex-wrap: wrap; margin-top: 0.2rem; }
.badge { font-size: 0.66rem; font-weight: 600; padding: 2px 7px; border-radius: 4px; }
.badge-casher { background: #F0FDF4; color: #15803D; }
.badge-unite  { background: var(--blue-bg); color: var(--blue); }
.card-footer {
  padding: 0.65rem 0.85rem; border-top: 1px solid var(--bordure);
  display: flex; flex-direction: column; gap: 0.5rem;
}
.card-footer-top {
  display: flex; align-items: center; justify-content: space-between;
}
.prix { font-size: 1rem; font-weight: 800; color: var(--text); }
.stock-gauge {
  width: 100%; height: 5px;
  background: #E2E8F0; border-radius: 99px; overflow: hidden;
}
.stock-gauge-lg { height: 7px; margin-top: -0.75rem; }
.stock-gauge-fill {
  height: 100%; width: 0%; border-radius: 99px;
  transition: width 0.4s ease, background 0.4s ease;
}
.stock-label {
  font-size: 0.65rem; color: var(--text-t); letter-spacing: 0.04em;
  text-transform: uppercase; margin-top: 3px;
}
.btn-add {
  background: var(--blue); color: #fff; border: none;
  border-radius: var(--radius-sm); padding: 0.4rem 0.8rem;
  font-size: 0.76rem; font-weight: 600; cursor: pointer;
  transition: background .15s; min-height: 34px;
}
.btn-add:hover { background: var(--blue-dark); }
.btn-add.disabled { background: #CBD5E1; color: #94A3B8; cursor: not-allowed; }

/* ─── Détail produit ────────────────────────────────────────────────────────── */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.detail-img-main { width: 100%; aspect-ratio: 4/3; height: auto; object-fit: cover; border-radius: var(--radius); }
.detail-img-placeholder {
  width: 100%; aspect-ratio: 4/3; background: var(--fond);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; color: var(--text-t); font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em; border-radius: var(--radius);
  border: 1px solid var(--bordure);
}
.detail-cat { font-size: 0.72rem; color: var(--blue); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 0.5rem; }
.detail-nom { font-size: 1.7rem; font-weight: 800; color: var(--text); line-height: 1.2; margin-bottom: 0.4rem; letter-spacing: -0.02em; }
.detail-marque { font-size: 0.88rem; color: var(--text-t); margin-bottom: 0.85rem; }
.detail-desc { font-size: 0.875rem; color: var(--text-s); line-height: 1.75; margin-bottom: 1.25rem; }
.detail-prix { font-size: 1.9rem; font-weight: 800; color: var(--text); margin-bottom: 1.25rem; letter-spacing: -0.02em; }
.btn-add-detail {
  width: 100%; background: var(--blue); color: #fff; border: none;
  border-radius: var(--radius-sm); padding: 0.9rem; font-size: 0.95rem; font-weight: 700;
  cursor: pointer; transition: background .15s; min-height: 50px;
}
.btn-add-detail:hover { background: var(--blue-dark); }

/* ─── Panier ────────────────────────────────────────────────────────────────── */
.panier-layout { display: grid; grid-template-columns: 1fr 290px; gap: 1.5rem; align-items: start; }
.panier-table { background: var(--blanc); border-radius: var(--radius); border: 1px solid var(--bordure); overflow: hidden; box-shadow: var(--ombre); }
.panier-row {
  display: grid; grid-template-columns: 56px 1fr;
  gap: 0.9rem; align-items: start;
  padding: 1rem 1.1rem; border-bottom: 1px solid var(--bordure);
}
.panier-row:last-child { border-bottom: none; }
.panier-row-right {
  display: flex; align-items: center; gap: 0.75rem; margin-top: 0.4rem; flex-wrap: wrap;
}
.panier-img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius-sm); }
.panier-img-placeholder {
  width: 56px; height: 56px; background: var(--fond); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; color: var(--text-t); font-weight: 600; text-align: center;
}
.panier-nom { font-weight: 600; font-size: 0.88rem; color: var(--text); line-height: 1.3; }
.panier-prix { font-size: 0.8rem; color: var(--text-t); margin-top: 0.15rem; }
.panier-sous-total { font-weight: 700; font-size: 0.92rem; color: var(--text); }
.panier-qty { display: flex; align-items: center; gap: 0.35rem; }
.qty-input {
  width: 46px; padding: 0.3rem 0.4rem; border: 1px solid var(--bordure);
  border-radius: var(--radius-sm); text-align: center; font-size: 0.85rem;
}
.btn-qty {
  background: var(--blue); color: #fff; border: none;
  padding: 0.3rem 0.6rem; border-radius: var(--radius-sm);
  cursor: pointer; font-weight: 600; font-size: 0.78rem; min-height: 30px;
}
.btn-qty:hover { background: var(--blue-dark); }
.btn-suppr {
  background: none; border: 1px solid var(--bordure); color: var(--text-t);
  border-radius: var(--radius-sm); padding: 0.3rem 0.6rem; cursor: pointer;
  font-size: 0.75rem; transition: all .15s; min-height: 30px;
}
.btn-suppr:hover { background: #FEF2F2; border-color: var(--rouge); color: var(--rouge); }

.recapitulatif {
  background: var(--blanc); border-radius: var(--radius); border: 1px solid var(--bordure);
  padding: 1.25rem; position: sticky; top: 76px; box-shadow: var(--ombre);
}
.recapitulatif h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 1rem; color: var(--text); text-transform: uppercase; letter-spacing: .05em; }
.recap-ligne { display: flex; justify-content: space-between; font-size: 0.84rem; color: var(--text-s); margin-bottom: 0.5rem; gap: 0.5rem; }
.recap-ligne span:last-child { font-weight: 600; color: var(--text); white-space: nowrap; }
.recap-total {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 1.05rem; font-weight: 800; color: var(--text);
  border-top: 1px solid var(--bordure); padding-top: 0.75rem; margin-top: 0.75rem;
}
.btn-commander {
  display: flex; align-items: center; justify-content: center;
  width: 100%; margin-top: 1rem;
  background: var(--blue); color: #fff; border: none;
  border-radius: var(--radius-sm); padding: 0.85rem; font-size: 0.9rem; font-weight: 700;
  cursor: pointer; transition: background .15s; min-height: 48px; letter-spacing: .01em;
}
.btn-commander:hover { background: var(--blue-dark); }

/* ─── Formulaires ───────────────────────────────────────────────────────────── */
.form-card {
  background: var(--blanc); border-radius: var(--radius);
  border: 1px solid var(--bordure); padding: 1.75rem;
  max-width: 480px; margin: 0 auto; box-shadow: var(--ombre);
}
.form-card h1 { font-size: 1.35rem; font-weight: 800; margin-bottom: 1.25rem; color: var(--text); letter-spacing: -0.02em; }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-s); margin-bottom: 0.35rem; text-transform: uppercase; letter-spacing: .04em; }
.form-input {
  width: 100%; padding: 0.65rem 0.9rem;
  border: 1px solid var(--bordure); border-radius: var(--radius-sm);
  font-size: 0.875rem; color: var(--text); background: #fff;
  transition: border-color .15s; min-height: 44px;
}
.form-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29,78,216,0.1); }
.form-error { font-size: 0.76rem; color: var(--rouge); margin-top: 0.2rem; }
.form-errors-list { background: #FEF2F2; border-radius: var(--radius-sm); padding: 0.7rem 1rem; margin-bottom: 1rem; }
.form-errors-list li { font-size: 0.82rem; color: var(--rouge); }
.btn-submit {
  width: 100%; background: var(--blue); color: #fff; border: none;
  border-radius: var(--radius-sm); padding: 0.85rem; font-size: 0.9rem; font-weight: 700;
  cursor: pointer; margin-top: 0.5rem; transition: background .15s; min-height: 48px;
  letter-spacing: .01em;
}
.btn-submit:hover { background: var(--blue-dark); }
.form-link { text-align: center; margin-top: 0.85rem; font-size: 0.82rem; color: var(--text-t); }
.form-link a { color: var(--blue); font-weight: 600; }

/* ─── Checkout ──────────────────────────────────────────────────────────────── */
.checkout-layout { display: grid; grid-template-columns: 1fr 300px; gap: 1.5rem; align-items: start; }

/* ─── Confirmation ──────────────────────────────────────────────────────────── */
.confirmation-card {
  max-width: 640px; margin: 0 auto;
  background: var(--blanc); border-radius: var(--radius);
  border: 1px solid var(--bordure); padding: 2rem; box-shadow: var(--ombre);
}
.confirmation-header { text-align: center; margin-bottom: 1.75rem; }
.confirmation-icon { font-size: 0; margin-bottom: 1rem; }
.conf-ok {
  display: inline-flex; width: 56px; height: 56px; border-radius: 50%;
  background: #F0FDF4; border: 2px solid #BBF7D0;
  align-items: center; justify-content: center;
}
.conf-ok::after {
  content: ''; display: block; width: 22px; height: 12px;
  border-left: 3px solid var(--vert-ok); border-bottom: 3px solid var(--vert-ok);
  transform: rotate(-45deg) translate(2px, -2px);
}
.confirmation-header h1 { font-size: 1.4rem; font-weight: 800; color: var(--text); margin-top: 1rem; letter-spacing: -0.02em; }
.confirmation-header p { color: var(--text-t); margin-top: 0.3rem; font-size: 0.88rem; }
.partage-box {
  background: var(--blue-bg); border: 1px solid var(--blue-line);
  border-radius: var(--radius); padding: 1.25rem; margin: 1.25rem 0;
}
.partage-box h3 { font-size: 0.85rem; font-weight: 700; color: var(--text-s); margin-bottom: 0.85rem; text-transform: uppercase; letter-spacing: .05em; }
.code-partage {
  font-size: 1.75rem; font-weight: 900; letter-spacing: 0.2em;
  color: var(--blue); text-align: center; padding: 0.65rem;
  background: #fff; border-radius: var(--radius-sm); border: 1px solid var(--blue-line);
  margin-bottom: 1rem; font-family: 'Courier New', monospace;
}
.lien-partage-input { display: flex; gap: 0.5rem; align-items: center; }
.lien-input { flex: 1; padding: 0.5rem 0.75rem; border: 1px solid var(--bordure); border-radius: var(--radius-sm); font-size: 0.78rem; color: var(--text-t); background: #fff; }
.btn-copier {
  background: var(--blue); color: #fff; border: none;
  padding: 0.5rem 1rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.8rem; cursor: pointer; white-space: nowrap; min-height: 38px;
}
.btn-copier:hover { background: var(--blue-dark); }

/* ─── Jauge de paiement ─────────────────────────────────────────────────────── */
.jauge-section { margin: 1.25rem 0; }
.jauge-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.4rem; }
.jauge-label { font-size: 0.82rem; font-weight: 600; color: var(--text-s); }
.jauge-pct { font-size: 0.82rem; font-weight: 700; color: var(--blue); }
.jauge-track { height: 8px; background: var(--blue-bg); border-radius: 4px; overflow: hidden; }
.jauge-fill { height: 100%; background: var(--blue); border-radius: 4px; transition: width 0.6s ease; }
.jauge-fill.complet { background: var(--vert-ok); }
.jauge-montants { display: flex; justify-content: space-between; margin-top: 0.35rem; font-size: 0.75rem; color: var(--text-t); }

/* ─── Page participation ────────────────────────────────────────────────────── */
.participer-layout { display: grid; grid-template-columns: 1fr 340px; gap: 1.5rem; align-items: start; }
.commande-detail {
  background: var(--blanc); border-radius: var(--radius);
  border: 1px solid var(--bordure); padding: 1.25rem; box-shadow: var(--ombre);
}
.commande-detail h2 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.85rem; color: var(--text); }
.item-list { display: flex; flex-direction: column; gap: 0.5rem; }
.item-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.84rem; }
.item-nom { color: var(--text-s); }
.item-prix { font-weight: 700; color: var(--text); }
.item-total { display: flex; justify-content: space-between; font-size: 1rem; font-weight: 800; border-top: 1px solid var(--bordure); margin-top: 0.65rem; padding-top: 0.65rem; }
.statut-valide { display: inline-flex; align-items: center; gap: 0.35rem; background: #F0FDF4; color: #15803D; padding: 0.25rem 0.75rem; border-radius: 4px; font-size: 0.75rem; font-weight: 600; }
.statut-attente { display: inline-flex; align-items: center; gap: 0.35rem; background: #FFFBEB; color: #B45309; padding: 0.25rem 0.75rem; border-radius: 4px; font-size: 0.75rem; font-weight: 600; }
.participation-row { display: flex; justify-content: space-between; font-size: 0.84rem; padding: 0.4rem 0; border-bottom: 1px solid var(--bordure); }
.p-nom { color: var(--text-s); }
.p-montant { font-weight: 700; color: var(--text); }

/* ─── Mon compte ────────────────────────────────────────────────────────────── */
.commandes-list { display: flex; flex-direction: column; gap: 0.75rem; }
.commande-card {
  background: var(--blanc); border: 1px solid var(--bordure);
  border-radius: var(--radius); padding: 1.1rem;
  display: grid; grid-template-columns: 1fr auto; gap: 0.85rem; align-items: center;
  box-shadow: var(--ombre);
}
.commande-meta { font-size: 0.8rem; color: var(--text-t); margin-top: 0.15rem; }
.commande-total { font-size: 1rem; font-weight: 800; color: var(--text); }
.btn-voir {
  display: inline-block; background: var(--blue-bg); color: var(--blue);
  padding: 0.4rem 0.9rem; border-radius: var(--radius-sm);
  font-size: 0.8rem; font-weight: 600; transition: all .15s;
}
.btn-voir:hover { background: var(--blue); color: #fff; }
.vide { text-align: center; padding: 2.5rem; color: var(--text-t); }
.vide p { font-size: 0.9rem; margin-bottom: 0.85rem; }

/* ─── Partager code ─────────────────────────────────────────────────────────── */
.partager-card {
  max-width: 420px; margin: 2rem auto;
  background: var(--blanc); border-radius: var(--radius);
  border: 1px solid var(--bordure); padding: 2rem; text-align: center;
  box-shadow: var(--ombre);
}
.partager-card h1 { font-size: 1.3rem; font-weight: 800; margin-bottom: 0.35rem; letter-spacing: -0.02em; }
.partager-card p { color: var(--text-t); font-size: 0.85rem; margin-bottom: 1.5rem; }
.code-input-big {
  width: 100%; padding: 0.75rem; text-align: center; letter-spacing: 0.2em;
  font-size: 1.15rem; font-weight: 700; text-transform: uppercase;
  border: 1px solid var(--bordure); border-radius: var(--radius-sm); margin-bottom: 1rem;
  font-family: 'Courier New', monospace; transition: border-color .15s; min-height: 50px;
}
.code-input-big:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29,78,216,0.1); }

/* ─── Empty state ───────────────────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 3.5rem 1rem; color: var(--text-t); }
.empty-icon { font-size: 0; margin-bottom: 1rem; }
.empty-icon::before {
  content: ''; display: inline-block; width: 48px; height: 48px;
  border: 2px solid var(--bordure-f); border-radius: 50%;
}
.empty-state h3 { font-size: 1rem; font-weight: 700; color: var(--text-s); margin-bottom: 0.4rem; }
.empty-state p { font-size: 0.85rem; }
.btn-green {
  display: inline-block; background: var(--blue); color: #fff;
  padding: 0.65rem 1.4rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.85rem; margin-top: 1rem; transition: background .15s;
}
.btn-green:hover { background: var(--blue-dark); }

/* ─── Footer ────────────────────────────────────────────────────────────────── */
.footer {
  background: var(--navy); color: rgba(255,255,255,0.35);
  text-align: center; padding: 1.25rem; font-size: 0.78rem; margin-top: 3rem;
}

/* ─── Breadcrumb ────────────────────────────────────────────────────────────── */
.breadcrumb { font-size: 0.76rem; color: var(--text-t); margin-bottom: 1.25rem; display: flex; align-items: center; gap: 0.25rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--blue); }
.breadcrumb span { color: var(--bordure-f); }

/* ─── Bouton Rejoindre (accueil) ─────────────────────────────────────────────── */
.btn-rejoindre {
  display: flex; align-items: center; justify-content: center; gap: 0.65rem;
  width: 100%; margin: 1.25rem 0;
  padding: 0.9rem 1.5rem; border-radius: 50px;
  border: 2px solid var(--blue); background: var(--blanc);
  color: var(--blue); font-size: 0.95rem; font-weight: 700;
  text-decoration: none; transition: all .15s; min-height: 52px;
}
.btn-rejoindre:hover { background: var(--blue-bg); }
.btn-rejoindre svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ─── Formules scroll horizontal ────────────────────────────────────────────── */
.formules-scroll-wrap {
  overflow-x: auto; margin: 0 -1.5rem; padding: 0.25rem 1.5rem 0.75rem;
  scrollbar-width: none;
}
.formules-scroll-wrap::-webkit-scrollbar { display: none; }
.formules-scroll { display: flex; gap: 1rem; width: max-content; }
.formule-scroll-card {
  width: 190px; background: var(--blanc); border-radius: var(--radius);
  border: 1px solid var(--bordure); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--ombre);
  flex-shrink: 0; text-decoration: none; transition: box-shadow .2s;
}
.formule-scroll-card:hover { box-shadow: var(--ombre-md); }
.formule-scroll-photo-wrap { position: relative; }
.formule-scroll-photo { width: 100%; aspect-ratio: 16/9; height: auto; object-fit: cover; display: block; }
.formule-scroll-photo-ph {
  width: 100%; aspect-ratio: 16/9; background: var(--navy);
  display: flex; align-items: center; justify-content: center;
}
.badge-scroll-pop {
  position: absolute; top: 7px; left: 7px;
  background: linear-gradient(135deg, #c8922a 0%, #e8b84b 50%, #c8922a 100%);
  color: #fff;
  font-size: 0.6rem; font-weight: 700;
  padding: 4px 8px 4px 6px;
  border-radius: 3px;
  letter-spacing: .03em;
  display: flex; align-items: center; gap: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  white-space: nowrap;
}
.badge-scroll-pop svg { flex-shrink: 0; }
.formule-scroll-body { padding: 0.75rem 0.85rem; flex: 1; }
.formule-scroll-nom { font-size: 0.88rem; font-weight: 700; color: var(--text); line-height: 1.3; margin-bottom: 0.2rem; }
.formule-scroll-pers { font-size: 0.72rem; font-weight: 600; color: var(--text-s); margin-bottom: 0.2rem; }
.formule-scroll-nb { font-size: 0.7rem; color: var(--text-t); }
.formule-scroll-footer {
  padding: 0.6rem 0.85rem; border-top: 1px solid var(--bordure);
  display: flex; justify-content: space-between; align-items: center;
}
.formule-scroll-prix { font-size: 1rem; font-weight: 800; color: var(--blue); }
.formule-scroll-cta { font-size: 0.72rem; font-weight: 600; color: var(--text-t); }

/* ─── Page Rejoindre une commande ────────────────────────────────────────────── */
.partager-page {
  max-width: 440px; margin: 0 auto; padding: 2.5rem 1.5rem 3rem;
}
.partager-illus {
  display: flex; justify-content: center; margin-bottom: 2.25rem;
}
.partager-illus-circle {
  width: 130px; height: 130px; border-radius: 50%;
  background: var(--blue-bg); border: 2px solid var(--blue-line);
  display: flex; align-items: center; justify-content: center;
}
.partager-illus-circle svg { width: 60px; height: 60px; stroke: var(--blue); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.partager-titre {
  font-size: 1.8rem; font-weight: 800; color: var(--text);
  text-align: center; line-height: 1.2; margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.partager-sous {
  font-size: 0.9rem; color: var(--text-s); text-align: center;
  line-height: 1.65; margin-bottom: 2.25rem;
}
.input-label { font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.25rem; }
.input-label .req { color: var(--rouge); }
.input-code-wrap { position: relative; margin-bottom: 1.5rem; }
.input-code {
  width: 100%; padding: 0.9rem 3.25rem 0.9rem 1.1rem;
  background: #F3F4F6; border: 1.5px solid transparent;
  border-radius: 14px; font-size: 0.95rem; color: var(--text);
  outline: none; transition: border-color .15s, background .15s; min-height: 54px;
  font-family: inherit;
}
.input-code::placeholder { color: var(--text-t); }
.input-code:focus { border-color: var(--blue); background: #fff; }
.input-code-btn {
  position: absolute; right: 0.85rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--blue); padding: 4px;
  display: flex; align-items: center;
}
.input-code-btn svg { width: 22px; height: 22px; }
.btn-primary-pill {
  display: flex; align-items: center; justify-content: center;
  width: 100%; padding: 1rem; border-radius: 50px; border: none;
  background: var(--blue); color: #fff; font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: background .15s; min-height: 56px;
  text-decoration: none; font-family: inherit;
}
.btn-primary-pill:hover { background: var(--blue-dark); }

/* ─── Mon compte : design seoud ──────────────────────────────────────────────── */
.compte-header-blue {
  background: var(--blue); color: #fff; padding: 2.5rem 1.5rem 2rem; text-align: center;
}
.compte-avatar-circle {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255,255,255,0.18); border: 2.5px solid rgba(255,255,255,0.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; font-weight: 800; color: #fff; margin: 0 auto 0.85rem;
  text-transform: uppercase;
}
.compte-header-nom { font-size: 1.2rem; font-weight: 800; margin-bottom: 0.2rem; }
.compte-header-email { font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.menu-sections { padding: 0 0 2rem; }
.menu-section-label {
  font-size: 0.8rem; font-weight: 700; color: var(--blue);
  padding: 1.1rem 1.5rem 0.4rem; text-transform: uppercase; letter-spacing: .06em;
}
.menu-row {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.85rem 1.5rem; border-bottom: 1px solid var(--bordure);
  color: var(--text); text-decoration: none; transition: background .12s;
  background: var(--blanc);
}
.menu-row:last-child { border-bottom: none; }
.menu-row:hover { background: var(--fond); }
.menu-row-icon {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--blue-bg); color: var(--blue);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.menu-row-icon svg { width: 16px; height: 16px; stroke: var(--blue); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.menu-row-text { flex: 1; font-size: 0.9rem; font-weight: 500; }
.menu-row-chevron { color: var(--text-t); font-size: 1rem; font-weight: 300; }

/* ══════════════════════════════════════════════════════
   RESPONSIVE TABLETTE
══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .produits-grid { grid-template-columns: repeat(3, 1fr); }
  .checkout-layout { grid-template-columns: 1fr 280px; }
  .panier-layout { grid-template-columns: 1fr 260px; }
  .participer-layout { grid-template-columns: 1fr 300px; }
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE MOBILE
══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav { display: none; }
  .btn-link { display: none; }
  .burger { display: flex; }
  .bottom-nav { display: block; }
  body {
    padding-bottom: calc(var(--bot-h) + env(safe-area-inset-bottom, 0px));
  }

  /* ── Header : réduit le padding pour éviter le débordement horizontal ── */
  .header-inner { padding: 0 0.75rem; }
  .header-actions { gap: 0.4rem; }
  .btn-panier { padding: 0.4rem 0.6rem; font-size: 0.76rem; }

  .produits-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .detail-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .panier-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .participer-layout { grid-template-columns: 1fr; }
  .recapitulatif { position: static; }
  .modifier-recap { position: static; }

  .hero { padding: 2.5rem 1.1rem 2rem; }
  .hero-btns { flex-direction: column; align-items: stretch; }
  .btn-hero, .btn-hero-sec { justify-content: center; }

  .formules-home-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }

  .form-card { padding: 1.25rem; }
  .confirmation-card { padding: 1.25rem; }
  .partager-card { margin: 1.25rem auto; }
  .page { padding: 1.25rem 0 2rem; }
  .container { padding: 0 1rem; }
  .messages { padding: 0 1rem; }
  .section-header { margin-bottom: 0.75rem; }

  /* ── Panier row : actions plus compactes ── */
  .panier-actions { gap: 0.35rem; }
  .panier-sous-total { min-width: 44px; font-size: 0.85rem; }

  /* ── Commande confirmée / partage ── */
  .commande-detail { padding: 1rem; }
  .lien-partage-input { flex-direction: column; }
  .lien-input { width: 100%; }
}

@media (max-width: 480px) {
  .produits-grid { gap: 0.6rem; }
  .formules-home-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .hero h1 { font-size: 1.45rem; }

  /* ── Panier row : empilement sur petits écrans ── */
  .panier-row { flex-wrap: wrap; gap: 0.5rem; }
  .panier-actions { width: 100%; justify-content: flex-end; }

  /* ── Formules ── */
  .formule-footer { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .formule-prix { font-size: 1.35rem; }
  .btn-choisir { width: 100%; justify-content: center; }

  /* ── Récap checkout / participer ── */
  .commande-active-actions { gap: 0.4rem; }
  .btn-action-wa, .btn-action-voir, .btn-action-modifier, .btn-action-suppr {
    padding: 0.45rem 0.7rem; font-size: 0.78rem;
  }
}

/* ── Très petits écrans (< 360px, ex: iPhone SE gen 1) ── */
@media (max-width: 360px) {
  .header-inner { padding: 0 0.5rem; }
  .header-actions { gap: 0.25rem; }
  .logo { font-size: 1.1rem; }
  .btn-panier { padding: 0.35rem 0.45rem; font-size: 0.7rem; }
  .container { padding: 0 0.75rem; }
  .messages { padding: 0 0.75rem; }
  .produits-grid { gap: 0.5rem; }
}
