/* =====================================================================
   eStoring — Thème public (mobile-first, éditorial premium)
   Polices : Fraunces (display) + Manrope (corps) — auto-hébergées.
   Couleurs --primary / --secondary injectées par l'admin (multi-clients).
   Les teintes dérivées utilisent color-mix() pour rester white-label.
   ===================================================================== */

:root {
  /* Couleurs de marque (surchargées en ligne par le tenant) */
  --primary: var(--primary-color, #b8654a);
  --secondary: var(--secondary-color, #211b14);

  /* Teintes dérivées de la couleur primaire */
  --primary-tint: color-mix(in srgb, var(--primary) 10%, #fff);
  --primary-tint-2: color-mix(in srgb, var(--primary) 18%, #fff);
  --primary-ink: color-mix(in srgb, var(--primary) 70%, #000);

  /* Neutres chauds (papier éditorial) */
  --ink: #1b1812;
  --paper: #f7f4ee;
  --surface: #ffffff;
  --surface-2: #fbf9f5;
  --muted: #756c5e;
  --line: rgba(27, 24, 18, .10);
  --line-strong: rgba(27, 24, 18, .16);

  --success: #2f7d52;
  --danger: #c0392b;
  --gold: #d99e34;

  /* Typographie */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Manrope', system-ui, -apple-system, Segoe UI, sans-serif;

  /* Rayons & ombres */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --shadow: 0 2px 8px rgba(40, 30, 15, .06), 0 8px 24px rgba(40, 30, 15, .05);
  --shadow-lg: 0 12px 40px rgba(40, 30, 15, .14);
  --ring: 0 0 0 3px color-mix(in srgb, var(--primary) 28%, transparent);

  --container: 1240px;
  --header-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
  font-weight: 450;
  letter-spacing: .005em;
  /* Espace pour la barre de navigation mobile */
  padding-bottom: env(safe-area-inset-bottom);
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--secondary);
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 18px; }

/* ---------- Icônes SVG ---------- */
.ic { width: 1.25em; height: 1.25em; display: inline-block; vertical-align: -0.18em; flex: none; }
.ic-lg { width: 1.6em; height: 1.6em; }
.ic-sm { width: 1em; height: 1em; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--primary); color: #fff; border: 1px solid transparent; cursor: pointer;
  padding: 13px 22px; border-radius: var(--r-pill); font-size: 15px; font-weight: 700;
  letter-spacing: .01em; line-height: 1; text-align: center;
  transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s, background .18s, color .18s;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--primary) 26%, transparent);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 36%, transparent); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn .ic { width: 1.15em; height: 1.15em; }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 30px; font-size: 16.5px; }
.btn-sm { padding: 9px 15px; font-size: 13.5px; }
.btn-outline { background: transparent; color: var(--secondary); border-color: var(--line-strong); box-shadow: none; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); box-shadow: none; }
.btn-secondary { background: var(--secondary); box-shadow: 0 6px 16px rgba(27,24,18,.22); }
.btn-ghost { background: var(--primary-tint); color: var(--primary-ink); box-shadow: none; }
.btn-wa { background: #1faa55; box-shadow: 0 6px 16px rgba(31,170,85,.3); }

/* ---------- Barre d'annonce ---------- */
.announcement {
  background: var(--secondary); color: #fff; text-align: center;
  font-size: 13px; padding: 9px 14px; letter-spacing: .04em; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.announcement .ic { color: var(--gold); }

/* ---------- En-tête collant ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 14px; height: var(--header-h); max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.logo { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -.02em; color: var(--secondary); display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.logo img { height: 38px; width: auto; }
.logo .mark { color: var(--primary); }

.main-nav { display: none; }
.search-form { margin-left: auto; display: flex; align-items: center; }
.search-form .field { display: flex; align-items: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 0 6px 0 14px; transition: border-color .15s, box-shadow .15s; max-width: 0; opacity: 0; overflow: hidden; }
.search-form.open .field, .search-form .field { } /* desktop override below */
.search-form input { border: none; background: transparent; padding: 10px 6px; font-size: 14.5px; outline: none; color: var(--ink); width: 100%; }
.search-form input::placeholder { color: var(--muted); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--secondary); cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.icon-btn:hover { background: var(--primary-tint); color: var(--primary-ink); border-color: transparent; }
.icon-btn .ic { width: 1.3em; height: 1.3em; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  padding: 64px 0 72px; text-align: center;
  background:
    radial-gradient(120% 90% at 85% 0%, color-mix(in srgb, var(--primary) 60%, transparent), transparent 60%),
    linear-gradient(155deg, var(--secondary), color-mix(in srgb, var(--secondary) 60%, #000));
}
.hero.has-image { background-size: cover; background-position: center; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 50% 120%, color-mix(in srgb, var(--primary) 45%, transparent), transparent),
    rgba(20, 16, 10, .42);
}
.hero::after { /* grain texture */
  content: ''; position: absolute; inset: 0; opacity: .5; mix-blend-mode: overlay; pointer-events: none;
  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='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}
.hero > .container { position: relative; z-index: 1; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-body);
  font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
  padding: 7px 14px; border-radius: var(--r-pill); margin-bottom: 20px;
}
.hero h1 { color: #fff; font-size: clamp(29px, 7.5vw, 64px); font-weight: 600; max-width: 16ch; margin: 0 auto 16px; overflow-wrap: break-word; hyphens: none; }
.hero h1 em { font-style: italic; font-weight: 500; color: color-mix(in srgb, var(--primary) 55%, #fff); }
.hero p { font-size: clamp(15px, 4vw, 19px); opacity: .92; max-width: 52ch; margin: 0 auto 28px; }
/* Animations d'entrée : uniquement si JS actif (sinon contenu visible) */
.js .hero-anim { opacity: 0; transform: translateY(18px); animation: rise .7s cubic-bezier(.2,.8,.2,1) forwards; }
.js .hero .eyebrow { animation-delay: .05s; }
.js .hero h1.hero-anim { animation-delay: .15s; }
.js .hero p.hero-anim { animation-delay: .28s; }
.js .hero .hero-cta.hero-anim { animation-delay: .4s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
.section { padding: 48px 0; }
.section-soft { background: var(--surface-2); border-block: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head > div { min-width: 0; }
.section-head .link { font-weight: 700; font-size: 14px; color: var(--primary); display: none; align-items: center; gap: 5px; white-space: nowrap; flex: none; }
.section-head .link:hover { gap: 9px; }
.section-title { font-size: clamp(25px, 6vw, 36px); font-weight: 600; }
.section-title .accent { font-style: italic; color: var(--primary); }
.section-sub { color: var(--muted); margin-top: 4px; font-size: 15px; }
.section-center { text-align: center; }
.section-center .section-sub { max-width: 50ch; margin-inline: auto; }

/* ---------- Carousel catégories ---------- */
.cat-scroll { display: flex; gap: 16px; overflow-x: auto; padding: 6px 2px 16px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.cat-scroll::-webkit-scrollbar { height: 6px; }
.cat-scroll::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 10px; }
.cat-item { flex: 0 0 auto; text-align: center; scroll-snap-align: start; width: 104px; }
.cat-circle {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px;
  background: var(--primary-tint); display: flex; align-items: center; justify-content: center;
  color: var(--primary); border: 1px solid var(--line);
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.cat-circle .ic { width: 34px; height: 34px; }
.cat-item:hover .cat-circle { transform: translateY(-4px) scale(1.03); box-shadow: var(--shadow-lg); }
.cat-item span { font-weight: 600; font-size: 13.5px; display: block; color: var(--ink); }

/* ---------- Grille produits ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.product-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; display: flex; flex-direction: column; position: relative;
  transition: box-shadow .22s, transform .22s, border-color .22s;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.product-thumb { position: relative; aspect-ratio: 1 / 1; background: var(--surface-2); overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.product-card:hover .product-thumb img { transform: scale(1.06); }
.product-thumb .ph { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--line-strong); }
.product-thumb .ph .ic { width: 40px; height: 40px; }
.badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--primary); color: #fff; font-size: 11.5px; font-weight: 800;
  padding: 5px 11px; border-radius: var(--r-pill); letter-spacing: .02em;
  box-shadow: 0 4px 10px color-mix(in srgb, var(--primary) 35%, transparent);
}
.badge-new { background: var(--secondary); left: auto; right: 10px; box-shadow: 0 4px 10px rgba(27,24,18,.25); }
.product-body { padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.product-cat { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.product-title { font-family: var(--font-body); font-weight: 600; font-size: 14.5px; color: var(--ink); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.price { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--secondary); }
.price-old { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.product-body .btn { margin-top: auto; }

/* ---------- Témoignages ---------- */
.testimonials-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.testimonial { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); position: relative; }
.testimonial::before { content: '\201C'; font-family: var(--font-display); position: absolute; top: 6px; right: 20px; font-size: 70px; line-height: 1; color: var(--primary-tint-2); }
.stars { display: inline-flex; gap: 2px; color: var(--gold); margin-bottom: 12px; }
.stars .ic { width: 17px; height: 17px; }
.stars .ic.on { fill: var(--gold); }
.testimonial p { font-family: var(--font-display); font-style: italic; font-size: 17px; color: var(--ink); margin-bottom: 14px; line-height: 1.5; }
.testimonial .author { font-weight: 700; color: var(--secondary); font-size: 14px; display: flex; align-items: center; gap: 9px; }
.testimonial .author .avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--primary-tint); color: var(--primary-ink); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; color: #fff; text-align: center; padding: 56px 18px;
  background: radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--primary) 55%, transparent), transparent 55%), linear-gradient(135deg, var(--secondary), color-mix(in srgb, var(--secondary) 55%, #000)); }
.cta h2 { color: #fff; font-size: clamp(26px, 7vw, 42px); margin-bottom: 12px; }
.cta p { opacity: .9; margin-bottom: 26px; font-size: 16px; max-width: 46ch; margin-inline: auto; }

/* ---------- Boutique : filtres + grille ---------- */
.shop-layout { display: grid; grid-template-columns: 1fr; gap: 22px; align-items: start; }
.filter-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.filter-card h3 { font-family: var(--font-body); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 13px; color: var(--muted); font-weight: 800; }
.filter-group { margin-bottom: 22px; }
.filter-group:last-child { margin-bottom: 0; }
.filter-list { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-list a { padding: 8px 14px; border-radius: var(--r-pill); font-size: 13.5px; font-weight: 600; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); transition: .15s; }
.filter-list a:hover { border-color: var(--primary); color: var(--primary); }
.filter-list a.active { background: var(--primary); color: #fff; border-color: transparent; }
.price-inputs { display: flex; gap: 10px; align-items: center; }
.price-inputs input { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); font: inherit; background: var(--surface-2); outline: none; }
.price-inputs input:focus { border-color: var(--primary); box-shadow: var(--ring); }

/* ---------- Page produit ---------- */
.product-detail { display: grid; grid-template-columns: 1fr; gap: 26px; align-items: start; }
.gallery-main { aspect-ratio: 1/1; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main .ph { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--line-strong); }
.gallery-main .ph .ic { width: 72px; height: 72px; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumbs img { width: 70px; height: 70px; object-fit: cover; border: 2px solid var(--line); border-radius: var(--r-sm); cursor: pointer; transition: border-color .15s, transform .15s; }
.gallery-thumbs img.active, .gallery-thumbs img:hover { border-color: var(--primary); transform: translateY(-2px); }

.buy-box .product-cat { display: block; margin-bottom: 8px; }
.buy-box h1 { font-size: clamp(26px, 7vw, 38px); margin-bottom: 14px; }
.buy-box .price-row { margin: 4px 0 14px; }
.buy-box .price { font-size: 30px; }
.buy-box .price-old { font-size: 16px; }
.stock-info { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--success); font-weight: 700; margin-bottom: 16px; background: color-mix(in srgb, var(--success) 10%, #fff); padding: 6px 13px; border-radius: var(--r-pill); }
.stock-info.stock-out { color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, #fff); }

.trust-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 18px 0; }
.trust-row .trust { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; color: var(--ink); }
.trust-row .trust .ic { color: var(--primary); width: 1.4em; height: 1.4em; }

.order-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; margin-top: 6px; box-shadow: var(--shadow); }
.order-form h3 { font-family: var(--font-display); font-size: 21px; margin-bottom: 18px; display: flex; align-items: center; gap: 9px; }
.order-form h3 .ic { color: var(--primary); }
.order-form.flash-focus { animation: formPulse 1.2s ease; }
@keyframes formPulse { 0%, 100% { box-shadow: var(--shadow); } 30% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 35%, transparent), var(--shadow-lg); } }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 7px; color: var(--secondary); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--r-sm);
  font: inherit; font-size: 15px; outline: none; background: var(--surface-2); color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--primary); box-shadow: var(--ring); background: var(--surface); }
.qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.qty-row > label { margin: 0; font-weight: 700; font-size: 14px; color: var(--secondary); }
.qty-control { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-pill); overflow: hidden; background: var(--surface-2); }
.qty-control button { width: 44px; height: 46px; border: none; background: transparent; cursor: pointer; color: var(--secondary); display: inline-flex; align-items: center; justify-content: center; transition: background .15s; }
.qty-control button:hover { background: var(--primary-tint); color: var(--primary-ink); }
.qty-control input { width: 50px; height: 46px; text-align: center; border: none; background: transparent; font-size: 16px; font-weight: 700; color: var(--ink); }
.total-line { display: flex; align-items: baseline; justify-content: space-between; font-size: 15px; font-weight: 700; color: var(--secondary); padding-top: 14px; border-top: 1px dashed var(--line-strong); margin-top: 4px; }
.total-line span { font-family: var(--font-display); font-size: 26px; color: var(--primary); }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 12px; text-align: center; display: flex; align-items: center; justify-content: center; gap: 6px; }

/* ---------- Description modulaire ---------- */
.product-description { margin-top: 44px; }
.desc-text { max-width: 760px; margin: 18px auto 0; font-size: 16.5px; }
.desc-text h1, .desc-text h2, .desc-text h3 { margin: 22px 0 10px; }
.desc-text ul, .desc-text ol { padding-left: 22px; margin: 12px 0; }
.desc-text li { margin-bottom: 6px; }
.desc-text img { border-radius: var(--r); margin: 16px 0; }
.desc-images { margin-top: 18px; }
.desc-images img { width: 100%; margin: 0 auto; display: block; }

/* ---------- Page produit : éléments de conversion ---------- */
.breadcrumb { padding: 14px 0 0; }
.breadcrumb .container { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); }
.breadcrumb a { font-weight: 600; color: var(--muted); transition: color .15s; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .current { color: var(--ink); font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.breadcrumb .ic { color: var(--line-strong); }

.gallery-main { position: relative; }
.gallery-badge { position: absolute; top: 14px; left: 14px; z-index: 2; font-size: 13px; padding: 6px 12px; }

.rating-line { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 6px; font-size: 13.5px; color: var(--muted); }
.rating-line strong { color: var(--secondary); font-family: var(--font-display); font-size: 15px; }
.rating-line .stars { margin: 0; }
.rating-line .stars .ic { width: 15px; height: 15px; }

.price-block { margin: 12px 0 14px; }
.savings { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; background: color-mix(in srgb, var(--danger) 10%, #fff); color: var(--danger); font-weight: 800; font-size: 13.5px; padding: 6px 13px; border-radius: var(--r-pill); }

.urgency { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; background: color-mix(in srgb, var(--gold) 16%, #fff); color: color-mix(in srgb, var(--gold) 80%, #000); border: 1px solid color-mix(in srgb, var(--gold) 35%, #fff); font-weight: 700; font-size: 13.5px; padding: 9px 14px; border-radius: var(--r-sm); }

.benefits { list-style: none; display: grid; gap: 11px; margin: 4px 0 18px; }
.benefits li { display: flex; align-items: flex-start; gap: 11px; font-size: 14.5px; color: var(--ink); }
.benefits li .ic { color: var(--primary); flex: none; width: 1.4em; height: 1.4em; margin-top: 1px; }
.benefits li strong { color: var(--secondary); }

/* Section commande dédiée (ligne pleine largeur, formulaire centré) */
.order-section .order-form { max-width: 660px; margin: 0 auto; margin-top: 0; }
.order-recap { font-size: 14.5px; color: var(--muted); margin: -6px 0 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.order-recap strong { color: var(--primary); font-family: var(--font-display); font-size: 17px; }
.order-recap .price-old { margin-left: 8px; }
.order-section .form-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.order-section .form-group-full { grid-column: 1 / -1; }

/* Décalage d'ancrage sous l'en-tête collant */
.section[id], #avis, #description, #commander { scroll-margin-top: calc(var(--header-h) + 14px); }

@media (min-width: 620px) {
  .order-section .form-grid { grid-template-columns: 1fr 1fr; gap: 0 16px; }
}

/* Bandeau de confiance */
.trust-strip { background: var(--surface-2); border-block: 1px solid var(--line); padding: 26px 0; }
.trust-strip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; }
.ts-item { display: flex; align-items: center; gap: 12px; }
.ts-item .ts-ic { width: 46px; height: 46px; border-radius: 13px; background: var(--primary-tint); color: var(--primary); display: flex; align-items: center; justify-content: center; flex: none; }
.ts-item .ts-ic .ic { width: 1.5em; height: 1.5em; }
.ts-item div { display: flex; flex-direction: column; line-height: 1.3; }
.ts-item strong { font-size: 14px; color: var(--secondary); }
.ts-item span { font-size: 12.5px; color: var(--muted); }

/* Barre d'achat collante (mobile) */
.buy-bar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); box-shadow: 0 -6px 22px rgba(40,30,15,.1);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); align-items: center; gap: 14px; }
.buy-bar .bb-price { display: flex; flex-direction: column; line-height: 1.15; }
.buy-bar .bb-amt { font-family: var(--font-display); font-size: 21px; font-weight: 600; color: var(--secondary); }
.buy-bar .bb-old { font-size: 12.5px; color: var(--muted); text-decoration: line-through; }
.buy-bar .btn { margin-left: auto; flex: 1; max-width: 60%; }

/* Sur mobile, la page produit privilégie la barre d'achat à la nav globale */
.product-view .buy-bar { display: flex; }
.product-view .mobile-nav { display: none; }
.product-view { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--secondary); color: color-mix(in srgb, #fff 72%, var(--secondary)); padding: 48px 0 26px; margin-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.footer-grid h4 { font-family: var(--font-body); color: #fff; margin-bottom: 14px; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.footer-brand .logo { color: #fff; font-size: 24px; margin-bottom: 12px; }
.footer-grid a { display: inline-flex; align-items: center; gap: 9px; padding: 5px 0; color: color-mix(in srgb, #fff 70%, var(--secondary)); font-size: 14.5px; transition: color .15s; }
.footer-grid a:hover { color: #fff; }
.footer-grid p { font-size: 14px; margin-bottom: 8px; display: flex; align-items: flex-start; gap: 9px; }
.footer-grid p .ic { color: var(--primary); margin-top: 2px; }
.footer-links { display: flex; flex-direction: column; }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: #fff; transition: background .2s, transform .2s; }
.socials a:hover { background: var(--primary); transform: translateY(-3px); }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,.14); margin-top: 36px; padding-top: 22px; font-size: 12.5px; color: color-mix(in srgb, #fff 55%, var(--secondary)); }

/* ---------- Messages flash ---------- */
.flash-wrap { max-width: var(--container); margin: 16px auto 0; padding: 0 18px; }
.flash { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: var(--r-sm); margin-bottom: 10px; font-weight: 600; font-size: 14.5px; border: 1px solid; }
.flash .ic { flex: none; }
.flash-success { background: color-mix(in srgb, var(--success) 10%, #fff); color: var(--success); border-color: color-mix(in srgb, var(--success) 30%, #fff); }
.flash-error { background: color-mix(in srgb, var(--danger) 10%, #fff); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 30%, #fff); }
.flash-info { background: var(--primary-tint); color: var(--primary-ink); border-color: var(--primary-tint-2); }

/* ---------- FAQ accordéon ---------- */
.faq-item { border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 12px; overflow: hidden; background: var(--surface); transition: box-shadow .2s; }
.faq-item.open { box-shadow: var(--shadow); }
.faq-q { width: 100%; text-align: left; background: transparent; border: none; padding: 18px 20px; font-size: 16px; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 14px; color: var(--secondary); font-family: var(--font-body); }
.faq-q .ic { color: var(--primary); transition: transform .3s; flex: none; }
.faq-item.open .faq-q .ic { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 20px 18px; color: var(--muted); }
.faq-item.open .faq-a { max-height: 480px; }

/* ---------- Pages éditoriales / contenu ---------- */
.page-hero { background: var(--surface-2); padding: 44px 0 36px; border-bottom: 1px solid var(--line); text-align: center; }
.page-hero .crumb { font-size: 12.5px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.page-hero h1 { font-size: clamp(28px, 8vw, 44px); }
.content-prose { max-width: 760px; margin: 0 auto; font-size: 16.5px; }
.content-prose h2 { font-size: 24px; margin: 26px 0 12px; }
.content-prose p { margin-bottom: 14px; color: var(--ink); }
.content-prose ul, .content-prose ol { padding-left: 22px; margin-bottom: 16px; }
.content-prose li { margin-bottom: 8px; }
.content-prose a { color: var(--primary); font-weight: 700; }

.empty-state { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty-state .icon-wrap { width: 72px; height: 72px; border-radius: 50%; background: var(--primary-tint); color: var(--primary); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.empty-state .icon-wrap .ic { width: 34px; height: 34px; }
.empty-state h1, .empty-state h2, .empty-state h3 { color: var(--secondary); margin-bottom: 8px; }

/* ---------- Navigation mobile (barre inférieure type app) ---------- */
.mobile-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  display: flex; background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -4px 20px rgba(40,30,15,.07);
}
.mobile-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px 10px; font-size: 10.5px; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.mobile-nav a .ic { width: 1.5em; height: 1.5em; }
.mobile-nav a.active { color: var(--primary); }
.mobile-nav a:active { background: var(--primary-tint); }
body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }

/* Tiroir de recherche mobile */
.search-drawer { position: fixed; inset: 0 0 auto 0; z-index: 120; background: var(--surface); padding: 14px 16px; box-shadow: var(--shadow-lg); transform: translateY(-110%); transition: transform .28s cubic-bezier(.2,.8,.2,1); }
.search-drawer.open { transform: translateY(0); }
.search-drawer form { display: flex; gap: 10px; align-items: center; }
.search-drawer input { flex: 1; padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--r-pill); font: inherit; font-size: 16px; outline: none; background: var(--surface-2); }
.search-drawer input:focus { border-color: var(--primary); box-shadow: var(--ring); }
.scrim { position: fixed; inset: 0; background: rgba(20,16,10,.45); z-index: 110; opacity: 0; visibility: hidden; transition: opacity .25s; }
.scrim.show { opacity: 1; visibility: visible; }

/* =====================================================================
   Points de rupture (mobile-first → desktop)
   ===================================================================== */
@media (min-width: 560px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
  .section-head .link { display: inline-flex; }
}

@media (min-width: 860px) {
  .container { padding: 0 28px; }
  .section { padding: 64px 0; }
  /* Affiche le menu desktop, masque la nav mobile + tiroir */
  .main-nav { display: flex; gap: 6px; margin-left: 12px; }
  .main-nav a { font-weight: 600; font-size: 14.5px; color: var(--ink); padding: 9px 14px; border-radius: var(--r-pill); transition: background .15s, color .15s; }
  .main-nav a:hover { background: var(--surface-2); color: var(--primary); }
  .main-nav a.active { color: var(--primary); background: var(--primary-tint); }
  .search-form .field { max-width: 280px; opacity: 1; }
  .search-toggle { display: none; }
  .mobile-nav { display: none; }
  body { padding-bottom: 0; }
  /* La barre d'achat collante est réservée au mobile */
  .buy-bar, .product-view .buy-bar { display: none; }
  .product-view { padding-bottom: 0; }
  .trust-strip-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .product-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; }
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 38px; }
  .shop-layout { grid-template-columns: 280px 1fr; gap: 32px; }
  .filter-card { position: sticky; top: calc(var(--header-h) + 18px); }
  .product-detail { grid-template-columns: 1fr 1fr; gap: 44px; }
  .hero { padding: 92px 0 104px; }
}

@media (min-width: 1100px) {
  .product-detail { grid-template-columns: 1.05fr .95fr; gap: 56px; }
}

/* ---------- Révélation au défilement (progressive enhancement) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.2,.8,.2,1), transform .6s cubic-bezier(.2,.8,.2,1); }
.js [data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero-anim { opacity: 1 !important; transform: none !important; }
}
