/* =========================================================
   Aïcha Market — boutique en ligne
   Couleurs et typographie conformes au brand book v1.0
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --vert-foret: #063a14;
  --vert-marche: #167c1d;
  --vert-pousse: #5fa30a;
  --vert-clair: #e8f3e1;
  --orange: #f8850a;
  --orange-texte: #b45309;
  --orange-clair: #fff1df;
  --jaune: #fdb813;
  --creme: #fcf7e8;
  --blanc: #ffffff;
  --gris: #4f5e52;
  --bordure: #e6dfcb;
  --bordure-champ: #7d8a80;
  --erreur: #b42318;
  --erreur-clair: #fdecea;
  --ombre: 0 2px 8px rgba(6, 58, 20, .08);
  --ombre-survol: 0 10px 28px rgba(6, 58, 20, .14);
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-pill: 999px;
  --wrap: 1440px;
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.6; color: var(--vert-foret); background: var(--creme); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--vert-marche); text-decoration: none; }
a:hover { color: var(--vert-foret); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; color: var(--vert-foret); }
h1 { font-size: clamp(26px, 4vw, 36px); }
h2 { font-size: clamp(21px, 3vw, 28px); }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--vert-foret); outline-offset: 2px; border-radius: 4px; }
.ic { flex-shrink: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--gris); }
.small { font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kicker { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; color: var(--vert-marche); margin-bottom: 6px; display: block; }
.accroche { font-style: italic; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: var(--r-md); border: 2px solid transparent; font-weight: 600; font-size: 15px; cursor: pointer; text-align: center; transition: background .15s, color .15s, border-color .15s, transform .1s; background: var(--blanc); color: var(--vert-marche); border-color: var(--vert-marche); line-height: 1.2; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--vert-marche); color: #fff; border-color: var(--vert-marche); }
.btn-primary:hover { background: var(--vert-foret); border-color: var(--vert-foret); color: #fff; }
.btn-promo { background: var(--orange); color: var(--vert-foret); border-color: var(--orange); }
.btn-promo:hover { background: var(--jaune); border-color: var(--jaune); color: var(--vert-foret); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--vert-foret); }
.btn-ghost:hover { background: var(--vert-clair); }
.btn-light { background: #fff; color: var(--vert-foret); border-color: #fff; }
.btn-block { width: 100%; }
.btn-lg { min-height: 52px; font-size: 16px; padding: 12px 26px; }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.btn[disabled], .btn.disabled { background: var(--bordure); border-color: var(--bordure); color: var(--gris); cursor: not-allowed; }
.btn-wa { background: var(--vert-marche); color: #fff; border-radius: var(--r-pill); border-color: var(--vert-marche); }
.btn-wa:hover { background: var(--vert-foret); color: #fff; }
.link { color: var(--vert-marche); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: var(--r-sm); font-size: 12px; font-weight: 700; line-height: 1.5; }
.badge-promo { background: var(--orange); color: var(--vert-foret); }
.badge-new { background: var(--jaune); color: var(--vert-foret); }
.badge-ok { background: var(--vert-clair); color: var(--vert-marche); }
.badge-bas { background: var(--orange-clair); color: var(--orange-texte); }
.badge-rupture { background: #fff; color: var(--erreur); border: 1px solid var(--erreur); }

/* ---------- En-tête ---------- */
.topbar { background: var(--vert-foret); color: #fff; font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 36px; }
.topbar a { color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--jaune); }
.topbar .tb-msg { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.topbar .tb-links { display: flex; gap: 18px; flex-shrink: 0; }

.header { background: #fff; position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--bordure); }
.header.scrolled { box-shadow: var(--ombre); }
.header-main { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.logo img { height: 52px; width: auto; }
.search { flex: 1; position: relative; max-width: 640px; }
.search form { display: flex; align-items: center; background: var(--creme); border: 1.5px solid var(--bordure); border-radius: var(--r-pill); padding: 0 6px 0 18px; transition: border-color .15s, background .15s; }
.search form:focus-within { border-color: var(--vert-marche); background: #fff; }
.search input[type=search] { flex: 1; border: 0; background: transparent; height: 46px; min-height: 0; padding: 0; outline: none; min-width: 0; box-shadow: none; }
.search input::-webkit-search-cancel-button { display: none; }
.search button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--vert-marche); color: #fff; display: grid; place-items: center; cursor: pointer; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border-radius: var(--r-lg); box-shadow: var(--ombre-survol); border: 1px solid var(--bordure); overflow: hidden; display: none; z-index: 60; }
.suggest.open { display: block; }
.suggest a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; color: var(--vert-foret); border-bottom: 1px solid var(--creme); }
.suggest a:hover, .suggest a.active { background: var(--vert-clair); }
.suggest img, .suggest .ph { width: 44px; height: 44px; border-radius: var(--r-sm); background: var(--creme); object-fit: contain; flex-shrink: 0; }
.suggest .s-name { flex: 1; font-size: 14px; font-weight: 500; line-height: 1.3; }
.suggest .s-price { font-weight: 700; color: var(--vert-marche); font-size: 14px; white-space: nowrap; }
.suggest .s-all { justify-content: center; font-weight: 600; color: var(--vert-marche); }
.suggest .s-empty { padding: 16px; color: var(--gris); font-size: 14px; }
.actions { display: flex; align-items: center; gap: 6px; }
.act { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 10px; border-radius: var(--r-md); color: var(--vert-foret); font-size: 12px; font-weight: 500; background: none; border: 0; cursor: pointer; }
.act:hover { background: var(--vert-clair); color: var(--vert-foret); }
.act .count { position: absolute; top: 0; right: 4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: var(--r-pill); background: var(--orange); color: var(--vert-foret); font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.act .count:empty, .act .count[data-n="0"] { display: none; }
.act-cart { background: var(--vert-marche); color: #fff; flex-direction: row; gap: 8px; padding: 10px 16px; font-size: 14px; font-weight: 600; }
.act-cart:hover { background: var(--vert-foret); color: #fff; }
.act-cart .count { top: -6px; right: -6px; }
.menu-btn { display: none; }

.catnav { background: #fff; border-top: 1px solid var(--creme); }
.catnav .wrap { position: relative; }
.catnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
.catnav ul::-webkit-scrollbar { display: none; }
.catnav li { flex-shrink: 0; }
.catnav a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 9px; white-space: nowrap; color: var(--vert-foret); font-weight: 500; font-size: 13.5px; border-bottom: 3px solid transparent; }
.catnav a:hover, .catnav a.active { color: var(--vert-marche); border-bottom-color: var(--vert-marche); }
.catnav a.promo { color: var(--orange-texte); }
.catnav a.promo:hover, .catnav a.promo.active { border-bottom-color: var(--orange); }
.catnav.fits ul { justify-content: space-between; }
.catnav-arrow { position: absolute; top: 0; bottom: 3px; width: 56px; border: 0; cursor: pointer; display: none; align-items: center; color: var(--vert-foret); z-index: 2; padding: 0 6px; }
.catnav-arrow.prev { left: 0; justify-content: flex-start; background: linear-gradient(90deg, #fff 55%, rgba(255,255,255,0)); }
.catnav-arrow.next { right: 0; justify-content: flex-end; background: linear-gradient(270deg, #fff 55%, rgba(255,255,255,0)); }
.catnav-arrow.prev svg { transform: rotate(180deg); }
.catnav-arrow:hover { color: var(--vert-marche); }
.catnav.can-prev .catnav-arrow.prev, .catnav.can-next .catnav-arrow.next { display: flex; }

/* ---------- Bandeaux et sections ---------- */
.section { padding: 40px 0; }
.section-sm { padding: 24px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.flash-wrap { padding-top: 16px; }
.alert { padding: 12px 16px; border-radius: var(--r-md); margin-bottom: 12px; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.alert-success { background: var(--vert-clair); color: var(--vert-foret); }
.alert-error { background: var(--erreur-clair); color: var(--erreur); }
.alert-info { background: #fff; border: 1px solid var(--bordure); color: var(--vert-foret); }
.alert-warning { background: var(--orange-clair); color: var(--orange-texte); }

.hero { padding: 24px 0 8px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; }
.hero-main { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--vert-marche); color: #fff; padding: 48px 44px; min-height: 340px; display: flex; flex-direction: column; justify-content: center; }
.hero-main h1 { color: #fff; font-size: clamp(30px, 4.6vw, 50px); max-width: 520px; margin-bottom: 12px; }
.hero-main p { max-width: 440px; font-size: 16px; opacity: .95; }
.hero-main .kicker { color: var(--jaune); }
.hero-main .btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; position: relative; z-index: 2; }
.hero-main > * { position: relative; z-index: 2; }
.leaf { position: absolute; border-radius: 0 100% 0 100%; z-index: 1 !important; }
.hero-art { position: absolute !important; right: 3%; bottom: 0; width: 42%; max-width: 360px; z-index: 1 !important; }
.hero-side { display: grid; gap: 16px; }
.hero-card { border-radius: var(--r-lg); padding: 24px; position: relative; overflow: hidden; min-height: 162px; display: flex; flex-direction: column; justify-content: center; }
.hero-card h3 { font-size: 20px; margin-bottom: 4px; max-width: 70%; }
.hero-card p { font-size: 14px; max-width: 65%; margin-bottom: 10px; }
.hero-card img { position: absolute; right: 8px; bottom: 8px; width: 34%; }
.hc-orange { background: var(--orange-clair); }
.hc-vert { background: var(--vert-clair); }

.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.trust div { background: #fff; border: 1px solid var(--bordure); border-radius: var(--r-lg); padding: 16px; display: flex; gap: 12px; align-items: center; }
.trust .ic-wrap { width: 44px; height: 44px; border-radius: 12px; background: var(--vert-clair); color: var(--vert-marche); display: grid; place-items: center; flex-shrink: 0; }
.trust b { display: block; font-size: 14px; line-height: 1.3; }
.trust span { font-size: 13px; color: var(--gris); line-height: 1.35; display: block; }

.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.cat-tile { background: #fff; border: 1px solid var(--bordure); border-radius: var(--r-lg); padding: 18px 10px 14px; text-align: center; color: var(--vert-foret); transition: box-shadow .15s, transform .15s, border-color .15s; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cat-tile:hover { box-shadow: var(--ombre-survol); transform: translateY(-2px); border-color: transparent; color: var(--vert-foret); }
.cat-tile .ct-img { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--creme); overflow: hidden; }
.cat-tile .ct-img img { width: 78%; }
.cat-tile b { font-size: 14px; font-weight: 600; line-height: 1.25; }
.cat-tile span { font-size: 12px; color: var(--gris); }

/* ---------- Cartes produit ---------- */
.grid-products { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.grid-products.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { min-width: 0; }
.card { position: relative; background: #fff; border: 1px solid var(--bordure); border-radius: var(--r-lg); padding: 12px; display: flex; flex-direction: column; transition: box-shadow .18s, border-color .18s; }
.card:hover { box-shadow: var(--ombre-survol); border-color: transparent; }
.card-media { position: relative; display: block; aspect-ratio: 1 / 1.08; border-radius: var(--r-md); background: var(--creme); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 8px; transition: transform .3s; }
.card:hover .card-media img { transform: scale(1.05); }
.card-media .ph, .ph { width: 100%; height: 100%; display: grid; place-items: center; }
.ph img { width: 42% !important; height: auto !important; opacity: .22; }
.card-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; z-index: 2; }
.fav { position: absolute; top: 8px; right: 8px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #fff; color: var(--gris); display: grid; place-items: center; cursor: pointer; box-shadow: var(--ombre); transition: color .15s, transform .15s; }
.fav:hover { color: var(--erreur); transform: scale(1.08); }
.fav.on { color: var(--erreur); }
.fav.on svg { fill: currentColor; }
.card-body { padding: 10px 2px 0; display: flex; flex-direction: column; flex: 1; }
.card-cat { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--gris); font-weight: 600; }
.card-name { font-size: 14px; font-weight: 600; line-height: 1.35; margin: 2px 0; color: var(--vert-foret); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; }
.card-name:hover { color: var(--vert-marche); }
.card-unit { font-size: 13px; color: var(--gris); }
.card-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { display: flex; flex-direction: column; line-height: 1.2; }
.price b { font-size: 17px; font-weight: 700; color: var(--vert-marche); white-space: nowrap; }
.price.promo b { color: var(--orange-texte); }
.price s { font-size: 12px; color: var(--gris); white-space: nowrap; }
.add { width: 42px; height: 42px; border-radius: var(--r-md); border: 0; background: var(--vert-marche); color: #fff; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; transition: background .15s, transform .1s; }
.add:hover { background: var(--vert-foret); }
.add:active { transform: scale(.94); }
.add[disabled] { background: var(--bordure); color: var(--gris); cursor: not-allowed; }
.add.done { background: var(--vert-foret); }


.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--bordure-champ); border-radius: var(--r-md); background: #fff; height: 42px; }
.qty button { width: 38px; height: 100%; border: 0; background: none; color: var(--vert-foret); display: grid; place-items: center; cursor: pointer; border-radius: var(--r-md); }
.qty button:hover { background: var(--vert-clair); }
.qty input, .qty span { width: 38px; text-align: center; border: 0; font-weight: 600; background: transparent; -moz-appearance: textfield; }
.qty input[type=number] { border: 0; min-height: 0; padding: 0; box-shadow: none; height: 100%; width: 44px; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-sm { height: 36px; }
.qty-sm button { width: 32px; }
.qty-sm input, .qty-sm span { width: 28px; font-size: 14px; }
.card .card-qty { display: none; }
.card.in-cart .add { display: none; }
.card.in-cart .card-qty { display: inline-flex; }

/* ---------- Bannières ---------- */
.promo-band { border-radius: var(--r-lg); background: var(--vert-foret); color: #fff; padding: 36px 40px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; position: relative; overflow: hidden; }
.promo-band h2 { color: #fff; }
.promo-band .kicker { color: var(--jaune); }
.promo-band .code { display: inline-flex; align-items: center; gap: 10px; background: var(--jaune); color: var(--vert-foret); border-radius: var(--r-md); padding: 8px 16px; font-weight: 700; letter-spacing: 1px; border: 2px dashed var(--vert-foret); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { background: #fff; border-radius: var(--r-lg); padding: 24px; border: 1px solid var(--bordure); position: relative; }
.step::before { counter-increment: s; content: counter(s); width: 40px; height: 40px; border-radius: 50%; background: var(--jaune); color: var(--vert-foret); font-weight: 700; display: grid; place-items: center; margin-bottom: 12px; font-size: 18px; }
.step h3 { margin-bottom: 4px; }
.step p { margin: 0; color: var(--gris); font-size: 14px; }
.pay-logos { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--bordure); font-size: 13px; font-weight: 600; }
.pay-chip i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* ---------- Boutique : filtres ---------- */
.page-head { padding-top: 24px; padding-bottom: 8px; }
.crumbs { font-size: 13px; color: var(--gris); margin-bottom: 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crumbs a { color: var(--gris); }
.crumbs a:hover { color: var(--vert-marche); }
.shop { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; padding-bottom: 40px; }
.filters { background: #fff; border: 1px solid var(--bordure); border-radius: var(--r-lg); padding: 18px; position: sticky; top: 140px; }
.filters h3 { font-size: 15px; margin: 0 0 10px; }
.filters .fgroup { padding: 14px 0; border-bottom: 1px solid var(--creme); }
.filters .fgroup:first-child { padding-top: 0; }
.filters .fgroup:last-child { border-bottom: 0; padding-bottom: 0; }
.filters ul { list-style: none; margin: 0; padding: 0; }
.filters li a { display: flex; justify-content: space-between; padding: 6px 10px; border-radius: var(--r-sm); color: var(--vert-foret); font-size: 14px; }
.filters li a:hover { background: var(--creme); }
.filters li a.active { background: var(--vert-clair); color: var(--vert-marche); font-weight: 600; }
.filters li a span { color: var(--gris); font-size: 12px; }
.price-inputs { display: flex; gap: 8px; align-items: center; }
.price-inputs input { width: 100%; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar .count { color: var(--gris); font-size: 14px; }
.toolbar select { width: auto; min-width: 190px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill); background: var(--vert-clair); color: var(--vert-marche); font-size: 13px; font-weight: 600; }
.chip:hover { background: var(--vert-marche); color: #fff; }
.filter-toggle { display: none; }
.empty { text-align: center; padding: 48px 16px; background: #fff; border-radius: var(--r-lg); border: 1px solid var(--bordure); }
.empty img { width: 90px; margin: 0 auto 16px; opacity: .3; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 42px; height: 42px; padding: 0 10px; border-radius: var(--r-md); display: grid; place-items: center; background: #fff; border: 1px solid var(--bordure); color: var(--vert-foret); font-weight: 600; }
.pagination a:hover { border-color: var(--vert-marche); color: var(--vert-marche); }
.pagination .current { background: var(--vert-marche); color: #fff; border-color: var(--vert-marche); }
.pagination .dots { border: 0; background: none; }

/* ---------- Fiche produit ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; background: #fff; border-radius: var(--r-lg); padding: 28px; border: 1px solid var(--bordure); }
.product-media { position: relative; aspect-ratio: 1; background: var(--creme); border-radius: var(--r-lg); overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: contain; }
.product-info h1 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 4px; }
.product-info .unit { color: var(--gris); margin-bottom: 14px; }
.product-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 14px 0; }
.product-price b { font-size: 32px; color: var(--vert-marche); font-weight: 700; }
.product-price.promo b { color: var(--orange-texte); }
.product-price s { color: var(--gris); font-size: 17px; }
.buy-row { display: flex; gap: 12px; align-items: center; margin: 18px 0; flex-wrap: wrap; }
.buy-row .qty { height: 52px; }
.buy-row .qty button { width: 46px; }
.buy-row .btn { flex: 1; min-width: 200px; }
.perks { list-style: none; padding: 16px; margin: 18px 0 0; background: var(--creme); border-radius: var(--r-md); display: grid; gap: 10px; font-size: 14px; }
.perks li { display: flex; gap: 10px; align-items: center; }
.perks .ic { color: var(--vert-marche); }
.desc { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--bordure); }
.meta { font-size: 13px; color: var(--gris); margin-top: 14px; }

/* ---------- Panier, commande ---------- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; padding-bottom: 48px; }
.panel { background: #fff; border: 1px solid var(--bordure); border-radius: var(--r-lg); padding: 20px; }
.panel + .panel { margin-top: 16px; }
.panel h2, .panel h3 { font-size: 18px; margin-bottom: 14px; }
.cart-line { display: grid; grid-template-columns: 76px 1fr auto auto 32px; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--creme); }
.cart-line:last-child { border-bottom: 0; }
.cart-line .thumb { width: 76px; height: 76px; border-radius: var(--r-md); background: var(--creme); overflow: hidden; }
.cart-line .thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-line .nm { font-weight: 600; font-size: 14px; line-height: 1.35; color: var(--vert-foret); }
.cart-line .nm small { display: block; font-weight: 400; color: var(--gris); font-size: 13px; }
.cart-line .lt { font-weight: 700; min-width: 100px; text-align: right; }
.cart-line .rm { width: 32px; height: 32px; border-radius: 50%; border: 0; background: none; color: var(--gris); cursor: pointer; display: grid; place-items: center; }
.cart-line .rm:hover { background: var(--erreur-clair); color: var(--erreur); }
.cart-line .warn { color: var(--orange-texte); font-size: 12px; display: block; }
.summary { position: sticky; top: 140px; }
.summary .row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14px; }
.summary .row.total { border-top: 1px solid var(--bordure); margin-top: 8px; padding-top: 14px; font-size: 18px; font-weight: 700; }
.summary .row.total span:last-child { color: var(--vert-marche); }
.summary .remise span:last-child { color: var(--orange-texte); font-weight: 600; }
.free-ship { background: var(--vert-clair); border-radius: var(--r-md); padding: 12px; font-size: 13px; margin-bottom: 14px; }
.free-ship .bar { height: 8px; background: #fff; border-radius: var(--r-pill); margin-top: 8px; overflow: hidden; }
.free-ship .bar i { display: block; height: 100%; background: var(--vert-marche); border-radius: var(--r-pill); }
.coupon { display: flex; gap: 8px; margin: 12px 0; }
.coupon input { flex: 1; min-width: 0; text-transform: uppercase; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: 14px; font-weight: 500; }
label > input, label > select, label > textarea { margin-top: 6px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=search], input[type=date], select, textarea { width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--bordure-champ); border-radius: var(--r-sm); background: #fff; color: var(--vert-foret); }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--vert-marche); box-shadow: 0 0 0 3px rgba(22, 124, 29, .15); }
.hint { font-size: 12px; color: var(--gris); font-weight: 400; margin-top: 4px; display: block; }
.req { color: var(--erreur); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--vert-marche); margin: 2px 0 0; flex-shrink: 0; }
.options { display: grid; gap: 10px; }
.option { display: flex; gap: 12px; align-items: center; padding: 14px; border: 1.5px solid var(--bordure); border-radius: var(--r-md); cursor: pointer; background: #fff; transition: border-color .15s, background .15s; }
.option:hover { border-color: var(--bordure-champ); }
.option input { width: 20px; height: 20px; accent-color: var(--vert-marche); margin: 0; flex-shrink: 0; }
.option:has(input:checked) { border-color: var(--vert-marche); background: var(--vert-clair); }
.option .o-txt { flex: 1; }
.option b { display: block; font-size: 15px; font-weight: 600; }
.option small { color: var(--gris); font-size: 13px; }
.option .o-price { font-weight: 700; color: var(--vert-marche); white-space: nowrap; }
.option .dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }
.checkout-steps { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.checkout-steps span { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--gris); }
.checkout-steps span i { width: 26px; height: 26px; border-radius: 50%; background: var(--bordure); display: grid; place-items: center; font-style: normal; color: var(--vert-foret); }
.checkout-steps span.on i { background: var(--vert-marche); color: #fff; }
.checkout-steps span + span::before { content: ''; width: 24px; height: 2px; background: var(--bordure); }
.mini-line { display: flex; gap: 10px; align-items: center; padding: 8px 0; font-size: 13px; }
.mini-line .thumb { width: 46px; height: 46px; border-radius: var(--r-sm); background: var(--creme); overflow: hidden; flex-shrink: 0; position: relative; }
.mini-line .thumb img { width: 100%; height: 100%; object-fit: contain; }
.mini-line .thumb em { position: absolute; top: -2px; right: -2px; background: var(--vert-foret); color: #fff; font-style: normal; font-size: 10px; font-weight: 700; border-radius: var(--r-pill); min-width: 18px; height: 18px; display: grid; place-items: center; }
.mini-line .n { flex: 1; line-height: 1.3; }
.mini-line b { white-space: nowrap; }

/* Confirmation, suivi */
.success-hero { text-align: center; padding: 36px 20px; }
.success-hero .ok { width: 76px; height: 76px; border-radius: 50%; background: var(--vert-marche); color: #fff; display: grid; place-items: center; margin: 0 auto 16px; }
.pay-box { background: var(--orange-clair); border-radius: var(--r-lg); padding: 20px; margin: 16px 0; }
.pay-box .num { font-size: 26px; font-weight: 700; letter-spacing: 1px; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 22px 40px; }
.timeline li::before { content: ''; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--bordure); }
.timeline li:last-child::before { display: none; }
.timeline .tdot { position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--bordure); color: var(--gris); display: grid; place-items: center; }
.timeline li.done .tdot { background: var(--vert-marche); color: #fff; }
.timeline li.done::before { background: var(--vert-marche); }
.timeline li.current .tdot { background: var(--jaune); color: var(--vert-foret); box-shadow: 0 0 0 6px rgba(253, 184, 19, .25); }
.timeline b { display: block; font-size: 15px; }
.timeline small { color: var(--gris); }
.statut { display: inline-flex; padding: 3px 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 700; }
.st-nouvelle { background: var(--jaune); color: var(--vert-foret); }
.st-confirmee, .st-preparation { background: var(--orange-clair); color: var(--orange-texte); }
.st-en_livraison { background: #e3f0fb; color: #124f82; }
.st-livree { background: var(--vert-clair); color: var(--vert-marche); }
.st-annulee { background: var(--erreur-clair); color: var(--erreur); }

/* Compte client */
.account { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; padding-bottom: 48px; }
.account-nav { background: #fff; border: 1px solid var(--bordure); border-radius: var(--r-lg); padding: 10px; }
.account-nav .who { padding: 12px; border-bottom: 1px solid var(--creme); margin-bottom: 6px; }
.account-nav .who b { display: block; }
.account-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-md); color: var(--vert-foret); font-weight: 500; font-size: 14px; }
.account-nav a:hover { background: var(--creme); }
.account-nav a.active { background: var(--vert-clair); color: var(--vert-marche); font-weight: 600; }
.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.stat-cards div { background: #fff; border: 1px solid var(--bordure); border-radius: var(--r-lg); padding: 16px; }
.stat-cards b { font-size: 22px; display: block; }
.stat-cards span { color: var(--gris); font-size: 13px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--gris); font-weight: 600; padding: 10px 12px; border-bottom: 1.5px solid var(--bordure); }
.table td { padding: 12px; border-bottom: 1px solid var(--creme); vertical-align: middle; }
.table-wrap { overflow-x: auto; }
.auth-box { max-width: 460px; margin: 32px auto 56px; }
.auth-box .panel { padding: 28px; }
.auth-switch { text-align: center; margin-top: 16px; font-size: 14px; }

/* Pages de contenu */
.content { background: #fff; border: 1px solid var(--bordure); border-radius: var(--r-lg); padding: 32px; margin-bottom: 48px; }
.content h2 { margin-top: 1.2em; }
.content h2:first-child { margin-top: 0; }
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.values div { background: #fff; border: 1px solid var(--bordure); border-radius: var(--r-lg); padding: 20px; }
.values .ic-wrap { width: 44px; height: 44px; border-radius: 12px; background: var(--vert-clair); color: var(--vert-marche); display: grid; place-items: center; margin-bottom: 12px; }
.faq details { background: #fff; border: 1px solid var(--bordure); border-radius: var(--r-md); margin-bottom: 10px; }
.faq summary { padding: 16px 20px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--vert-marche); }
.faq details[open] summary::after { content: '–'; }
.faq details > div { padding: 0 20px 16px; color: var(--gris); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; padding-bottom: 48px; }
.contact-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--creme); }
.contact-item .ic-wrap { width: 44px; height: 44px; border-radius: 12px; background: var(--vert-clair); color: var(--vert-marche); display: grid; place-items: center; flex-shrink: 0; }
.zones-table td:last-child { text-align: right; font-weight: 600; white-space: nowrap; }

/* ---------- Pied de page ---------- */
.footer { background: var(--vert-foret); color: #dfe9df; margin-top: 24px; position: relative; overflow: hidden; }
.footer a { color: #dfe9df; }
.footer a:hover { color: var(--jaune); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding: 48px 16px 32px; position: relative; z-index: 2; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; }
.footer .flogo { width: 190px; margin-bottom: 14px; }
.footer p { font-size: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 16px; font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; position: relative; z-index: 2; }
.footer .pay-chip { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: #fff; }

/* ---------- Mini-panier (tiroir) ---------- */
.overlay { position: fixed; inset: 0; background: rgba(6, 58, 20, .4); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 90; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: #fff; z-index: 100; transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer-left { left: 0; right: auto; transform: translateX(-100%); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--bordure); }
.drawer-head h3 { margin: 0; }
.drawer-close { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--creme); cursor: pointer; display: grid; place-items: center; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer-foot { padding: 16px 20px; border-top: 1px solid var(--bordure); background: var(--creme); }
.drawer-foot .row { display: flex; justify-content: space-between; font-weight: 700; font-size: 17px; margin-bottom: 12px; }
.drawer-foot .btns { display: grid; gap: 8px; }
.dline { display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--creme); }
.dline .thumb { width: 60px; height: 60px; border-radius: var(--r-md); background: var(--creme); overflow: hidden; }
.dline .thumb img { width: 100%; height: 100%; object-fit: contain; }
.dline .nm { font-size: 13px; font-weight: 600; line-height: 1.3; }
.dline .pr { font-size: 13px; color: var(--vert-marche); font-weight: 700; margin-top: 4px; }
.drawer-empty { text-align: center; padding: 48px 12px; color: var(--gris); }
.drawer-empty img { width: 80px; margin: 0 auto 16px; opacity: .3; }
.mnav a { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--creme); color: var(--vert-foret); font-weight: 500; }

/* Barre du bas (mobile) */
.bottom-nav { display: none; }
.wa-float { position: fixed; right: 18px; bottom: 22px; width: 58px; height: 58px; border-radius: 50%; background: var(--vert-marche); color: #fff; display: grid; place-items: center; box-shadow: var(--ombre-survol); z-index: 70; transition: transform .15s, background .15s; }
.wa-float:hover { transform: scale(1.06); background: var(--vert-foret); color: #fff; }

/* Notifications */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 120; display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); }
.toast { background: var(--vert-foret); color: #fff; padding: 12px 16px; border-radius: var(--r-md); box-shadow: var(--ombre-survol); display: flex; align-items: center; gap: 10px; font-size: 14px; animation: tin .25s ease; }
.toast.err { background: var(--erreur); }
.toast a { color: var(--jaune); font-weight: 600; margin-left: auto; white-space: nowrap; }
@keyframes tin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes bump { 50% { transform: scale(1.25); } }
.bump { animation: bump .35s ease; }

/* Carrousel horizontal */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 80px) / 5); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
.rail-nav { display: flex; gap: 8px; }
.rail-nav button { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--bordure); background: #fff; cursor: pointer; display: grid; place-items: center; color: var(--vert-foret); }
.rail-nav button:hover { border-color: var(--vert-marche); color: var(--vert-marche); }
.rail-nav button:first-child svg { transform: rotate(180deg); }

/* Maintenance */
.page-maintenance { display: grid; place-items: center; min-height: 100vh; padding: 24px; }
.maintenance { text-align: center; max-width: 520px; }
.maintenance img { margin: 0 auto 24px; }


/* ---------- Pages construites (constructeur) ---------- */
.b-section { position: relative; color: var(--b-text, inherit); padding-top: var(--pt, 32px); padding-bottom: var(--pb, 32px); }
.b-inner { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.b-w-large { max-width: 1440px; }
.b-w-full { max-width: none; padding: 0; }
.b-card { border-radius: var(--r-lg); padding: 32px; max-width: calc(var(--wrap) - 32px); }
.b-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.b-col { grid-column: span var(--w, 12); min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.b-col > .hero-card, .b-col > .b-w > .hero-card { flex: 1; }
.b-col > .hero-main, .b-col > .b-w > .hero-main { flex: 1; }
.b-border { border: 1px solid var(--bordure); }
.b-section h1, .b-section h2, .b-section h3 { color: inherit; }
.b-section[style*="--b-text"] .kicker { color: inherit; opacity: .85; }
.b-al-left { text-align: left; }
.b-al-center { text-align: center; }
.b-al-right { text-align: right; }
.bw-titre h1, .bw-titre h2, .bw-titre h3, .bw-titre h4 { margin: 0; }
.bw-titre { margin-bottom: 4px; }
.bw-texte p:last-child { margin-bottom: 0; }
.bw-texte ul, .bw-texte ol { padding-left: 1.3em; }
.bw-image img { display: inline-block; height: auto; }
.bw-image.b-al-center img { margin: 0 auto; display: block; }
.bw-image.b-al-right img { margin-left: auto; display: block; }
.bw-image-ph { background: var(--creme); border: 2px dashed var(--bordure); border-radius: var(--r-lg); padding: 40px; text-align: center; color: var(--gris); font-size: 14px; }
.bw-espace { height: var(--h); }
.bw-sep hr { display: inline-block; margin: 6px 0; }
.bw-sep.b-al-center hr, .bw-sep.b-al-center svg { margin-left: auto; margin-right: auto; display: block; }
.bw-banniere.b-al-center { align-items: center; text-align: center; }
.bw-banniere.b-al-center p { margin-left: auto; margin-right: auto; }
.bw-banniere.b-al-center .btns { justify-content: center; }
.bw-banniere .kicker { color: var(--jaune); }
.bw-banniere p { opacity: .95; max-width: 460px; }
.bw-grid { grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)) !important; }
.bw-rail { grid-auto-columns: calc((100% - (var(--cols, 5) - 1) * 16px) / var(--cols, 5)) !important; }
.bw-rayons { grid-template-columns: repeat(var(--cols, 7), minmax(0, 1fr)); }
.bw-atouts { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }
.bw-carte { min-height: 0; }
.bw-video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.bw-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bw-wa { border-radius: var(--r-lg); padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.bw-wa h3 { margin-bottom: 4px; }
.bw-wa p { margin: 0; color: var(--gris); }
.bw-empty-note { padding: 24px; text-align: center; color: var(--gris); background: #fff; border: 1px dashed var(--bordure); border-radius: var(--r-lg); }
.bw-promo { grid-template-columns: 1fr; }
@media (min-width: 761px) { .b-hide-desktop { display: none !important; } }
@media (max-width: 1100px) {
  .bw-grid { grid-template-columns: repeat(min(var(--cols, 5), 4), minmax(0, 1fr)) !important; }
}
@media (max-width: 900px) {
  .b-t-two .b-col { grid-column: span 6; }
  .b-t-stack .b-col { grid-column: span 12; }
  .bw-grid { grid-template-columns: repeat(var(--cols-t, 3), minmax(0, 1fr)) !important; }
  .bw-rail { grid-auto-columns: calc((100% - (var(--cols-t, 3) - 1) * 16px) / var(--cols-t, 3)) !important; }
  .bw-rayons { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bw-atouts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-card { padding: 22px; }
}
@media (max-width: 760px) {
  .b-hide-mobile { display: none !important; }
  .b-m-stack .b-col { grid-column: span 12; }
  .b-m-two .b-col { grid-column: span 6; }
  .b-section { padding-top: calc(var(--pt, 32px) * .7); padding-bottom: calc(var(--pb, 32px) * .7); }
  .bw-espace { height: var(--hm); }
  .bw-grid { grid-template-columns: repeat(var(--cols-m, 2), minmax(0, 1fr)) !important; gap: 10px; }
  .bw-rail { grid-auto-columns: calc((100% - (var(--cols-m, 2) - 1) * 10px) / var(--cols-m, 2) - 12px) !important; gap: 10px; }
  .bw-rayons { grid-template-columns: repeat(var(--cols-m, 4), minmax(0, 1fr)); }
  .bw-atouts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-card { padding: 18px; }
  .bw-wa { padding: 20px; }
}


/* =========================================================
   Design moderne : verre, profondeur, mouvement
   ========================================================= */
.header { background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); transition: box-shadow .2s, background .2s; }
.header.scrolled { background: rgba(255, 255, 255, .94); box-shadow: 0 8px 30px rgba(6, 58, 20, .08); }
.catnav { background: transparent; }
.search form { box-shadow: inset 0 1px 2px rgba(6, 58, 20, .05); }
.btn-primary, .btn-promo { box-shadow: 0 6px 18px -6px rgba(22, 124, 29, .45); }
.btn-promo { box-shadow: 0 6px 18px -6px rgba(248, 133, 10, .55); }
.btn:hover { transform: translateY(-1px); }
.section-head h2 { position: relative; padding-bottom: 10px; }
.section-head h2::after { content: ''; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--jaune), var(--orange)); }
.card { border-radius: 18px; border-color: rgba(230, 223, 203, .8); transition: box-shadow .25s, transform .25s, border-color .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -14px rgba(6, 58, 20, .22); }
.card-media { border-radius: 14px; background: radial-gradient(circle at 50% 40%, #fff 0%, var(--creme) 70%); }
.add { border-radius: 12px; box-shadow: 0 6px 14px -6px rgba(22, 124, 29, .6); }
.cat-tile { border-radius: 20px; }
.cat-tile .ct-img { background: radial-gradient(circle at 50% 35%, #fff, var(--creme) 75%); transition: transform .25s; }
.cat-tile:hover .ct-img { transform: scale(1.06) rotate(-2deg); }
.trust div { border-radius: 18px; transition: transform .2s, box-shadow .2s; }
.trust div:hover { transform: translateY(-2px); box-shadow: var(--ombre); }
.hero-main, .hero-card, .promo-band { border-radius: 24px; }
.hero-main { background: linear-gradient(135deg, #1a8a22 0%, var(--vert-marche) 45%, #0f5f17 100%); }
.footer { border-radius: 32px 32px 0 0; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Barre d'annonce qui défile */
.tb-msg { position: relative; min-height: 20px; flex: 1; }
.tb-rotate .ad-bar-item { display: none; }
.tb-rotate .ad-bar-item.on { display: inline; }
.tb-rotate .ad-bar-item.anim { animation: tbIn .45s ease; }
.tb-msg:not(.tb-rotate) .ad-bar-item + .ad-bar-item { display: none; }
.ad-bar-item a { color: #fff; }
.ad-bar-item b { color: var(--jaune); }
@keyframes tbIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Annonces */
.ad { position: relative; overflow: hidden; border-radius: 20px; }
.ad-link { display: block; color: inherit; height: 100%; }
.ad-link:hover { color: inherit; }
.ad picture, .ad picture img { display: block; width: 100%; height: auto; }
.ad-f-image { background: var(--creme); }
.ad-f-image .ad-link:hover img { transform: scale(1.02); }
.ad-f-image img { transition: transform .4s ease; }
.ad-f-texte .ad-link { display: flex; align-items: center; gap: 20px; padding: 28px 32px; position: relative; min-height: 120px; }
.ad-leaf { width: 220px; height: 220px; right: -60px; top: -80px; background: rgba(255, 255, 255, .1); }
.ad-body { position: relative; z-index: 1; display: grid; gap: 6px; flex: 1; }
.ad-title { font-size: clamp(18px, 2.4vw, 26px); line-height: 1.2; font-weight: 700; }
.ad-text { opacity: .92; }
.ad-btn { justify-self: start; display: inline-flex; align-items: center; gap: 4px; background: rgba(255, 255, 255, .18); border: 1.5px solid rgba(255, 255, 255, .35); padding: 8px 16px; border-radius: 99px; font-weight: 600; font-size: 14px; margin-top: 4px; transition: background .2s; }
.ad-link:hover .ad-btn { background: rgba(255, 255, 255, .3); }
.ad-side { position: relative; z-index: 1; max-height: 140px; width: auto; max-width: 34%; object-fit: contain; }
.ad-f-section { border-radius: 0; overflow: visible; }
.am-slot { margin: 0; }
.am-panier { margin-bottom: 16px; }
.ad-small { border-radius: 14px; margin: 14px 0; }
.ad-small.ad-f-texte .ad-link { padding: 16px 18px; min-height: 0; }
.ad-small .ad-title { font-size: 16px; }

/* Carrousel */
.am-slider { position: relative; overflow: hidden; border-radius: 24px; background: var(--vert-foret); }
.am-slide { display: none; }
.am-track, .am-slide.on, .am-slide.on > .ad { height: 100%; }
.am-slide.on { display: block; animation: slideIn .6s ease; }
.am-slide .ad-f-image picture, .am-slide .ad-f-image img { height: 100%; object-fit: cover; }
.am-slide .ad { border-radius: 0; }
.am-slide .ad-f-texte .ad-link { min-height: 340px; height: 100%; padding: 48px 84px; }
.am-slide .ad-title { font-size: clamp(26px, 4vw, 46px); max-width: 620px; }
.am-slide .ad-side { max-height: 300px; }
@keyframes slideIn { from { opacity: .3; transform: scale(1.015); } to { opacity: 1; transform: none; } }
.am-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--vert-foret); cursor: pointer; z-index: 3; box-shadow: 0 6px 18px rgba(0, 0, 0, .15); transition: background .2s, transform .2s; }
.am-nav:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.am-nav.prev { left: 14px; }
.am-nav.prev svg { transform: rotate(180deg); }
.am-nav.next { right: 14px; }
.am-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 6px; z-index: 3; }
.am-dots button { width: 9px; height: 9px; border-radius: 99px; border: 0; background: rgba(255, 255, 255, .55); cursor: pointer; padding: 0; transition: width .25s, background .25s; }
.am-dots button.on { width: 28px; background: #fff; }
.hero-slider { min-width: 0; }
.hero-slider .am-slider { height: 100%; }
.bw-slider .bw-slide { height: var(--h, 380px); display: flex; align-items: center; padding: 40px 84px; position: relative; overflow: hidden; }
.bw-slide-in { position: relative; z-index: 2; max-width: 560px; }
.bw-slide-in h2 { color: inherit; font-size: clamp(26px, 4vw, 46px); margin-bottom: 10px; }
.bw-slide-in p { font-size: 17px; opacity: .95; }

/* Grilles de bannières */
.am-promos { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.am-promos.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.am-promos.cols-1 { grid-template-columns: 1fr; }
.am-promos .ad { height: 100%; transition: transform .25s, box-shadow .25s; }
.am-promos .ad:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -14px rgba(6, 58, 20, .25); }
.am-promos .ad-f-texte .ad-link { min-height: 180px; }
.bw-banners { display: grid; gap: 16px; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.bw-banner { position: relative; overflow: hidden; border-radius: 20px; min-height: var(--h, 200px); display: flex; align-items: flex-end; padding: 22px; transition: transform .25s, box-shadow .25s; }
.bw-banner:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -14px rgba(6, 58, 20, .25); color: inherit; }
.bw-banner img { position: absolute; right: 0; bottom: 0; height: 88%; width: auto; max-width: 55%; object-fit: contain; transition: transform .35s; }
.bw-banner:hover img { transform: scale(1.06) rotate(-2deg); }
.bw-banner-txt { position: relative; z-index: 1; display: grid; gap: 4px; max-width: 62%; }
.bw-banner-txt strong { font-size: 20px; line-height: 1.2; }
.bw-banner-go { width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .7); display: grid; place-items: center; margin-top: 8px; }
.am-grid-card { padding: 0; overflow: hidden; }
.am-grid-card .ad { height: 100%; border-radius: 18px; }
.am-grid-card .ad picture, .am-grid-card .ad img { height: 100%; object-fit: cover; }
.am-grid-card .ad-f-texte .ad-link { flex-direction: column; align-items: flex-start; justify-content: center; padding: 22px; }

/* Vente flash */
.bw-flash { border-radius: 24px; padding: 28px; color: #fff; position: relative; overflow: hidden; }
.bw-flash::before { content: ''; position: absolute; width: 380px; height: 380px; right: -120px; top: -160px; border-radius: 0 100% 0 100%; background: rgba(253, 184, 19, .14); }
.bw-flash-head { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.bw-flash-head .kicker { color: var(--jaune); }
.bw-flash-head h2 { color: #fff; margin: 0; }
.bw-flash .card { border: 0; }
.countdown { display: flex; gap: 8px; }
.countdown span { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); border-radius: 14px; padding: 8px 10px; min-width: 64px; text-align: center; display: grid; }
.countdown b { font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown small { font-size: 11px; opacity: .8; text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }
.countdown .cd-over { min-width: 0; padding: 10px 16px; font-weight: 600; }

/* Fenêtre promotionnelle */
.am-popup { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px; background: rgba(6, 58, 20, .5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fadeIn .3s ease; }
.am-popup[hidden] { display: none; }
.am-popup-box { position: relative; width: min(480px, 100%); border-radius: 24px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); animation: popIn .35s cubic-bezier(.2, .9, .3, 1.2); background: #fff; }
.am-popup-box .ad { border-radius: 0; }
.am-popup-box .ad-f-texte .ad-link { flex-direction: column; align-items: flex-start; padding: 36px 28px; min-height: 260px; }
.am-popup-x { position: absolute; top: 12px; right: 12px; z-index: 5; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); cursor: pointer; display: grid; place-items: center; color: var(--vert-foret); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: scale(.92) translateY(10px); } to { opacity: 1; transform: none; } }

/* Retour en haut, barre d'achat mobile */
.to-top { position: fixed; right: 22px; bottom: 92px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--vert-foret); box-shadow: var(--ombre-survol); cursor: pointer; display: grid; place-items: center; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .25s, transform .25s; z-index: 69; }
.to-top svg { transform: rotate(-90deg); }
.to-top.on { opacity: 1; pointer-events: auto; transform: none; }
.buy-sticky { display: none; }

@media (max-width: 900px) {
  .am-promos { grid-template-columns: 1fr 1fr; }
  .bw-banners { grid-template-columns: repeat(min(var(--cols, 3), 2), minmax(0, 1fr)); }
  .hero-slider .am-slider { height: auto; }
}
@media (max-width: 760px) {
  .am-promos, .am-promos.cols-2 { grid-template-columns: 1fr; }
  .bw-banners { grid-template-columns: 1fr; }
  .am-slide .ad-f-texte .ad-link { min-height: 260px; padding: 28px 22px 44px; }
  .bw-slider .bw-slide { height: var(--hm, 300px); padding: 28px 22px 44px; }
  .am-nav { display: none; }
  .ad-f-texte .ad-link { padding: 22px; }
  .ad-side { max-width: 30%; }
  .bw-flash { padding: 20px 16px; border-radius: 20px; }
  .countdown span { min-width: 54px; padding: 6px; }
  .countdown b { font-size: 21px; }
  .to-top { bottom: 150px; right: 22px; width: 40px; height: 40px; }
  .footer { border-radius: 24px 24px 0 0; }
  .buy-sticky { display: flex; position: fixed; left: 0; right: 0; bottom: calc(60px + env(safe-area-inset-bottom)); z-index: 79; background: rgba(255, 255, 255, .95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--bordure); padding: 10px 14px; gap: 12px; align-items: center; transform: translateY(120%); transition: transform .25s; }
  .buy-sticky.on { transform: none; }
  .buy-sticky .bs-name { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; line-height: 1.3; }
  .buy-sticky .bs-name b { display: block; color: var(--vert-marche); font-size: 16px; }
  .buy-sticky .btn { min-height: 44px; padding: 8px 16px; }
}
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .card:hover, .btn:hover { transform: none; } }

/* ---------- Format boutique élargi ---------- */
@media (min-width: 1500px) {
  :root { --wrap: 1500px; }
  .grid-products { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .grid-products.cols-4 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .rail { grid-auto-columns: calc((100% - 100px) / 6); }
}
.card { border-radius: 16px; }
.card-media { background: #fff; }
.card-media img { object-fit: contain; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid-products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rail { grid-auto-columns: calc((100% - 48px) / 4); }
  .cats { grid-template-columns: repeat(4, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-side { grid-template-columns: 1fr 1fr; }
  .trust { grid-template-columns: 1fr 1fr; }
  .shop { grid-template-columns: minmax(0, 1fr); }
  .filters { position: fixed; top: 0; bottom: 0; left: 0; width: min(320px, 88%); z-index: 100; border-radius: 0; overflow-y: auto; transform: translateX(-100%); transition: transform .25s; }
  .filters.open { transform: none; }
  .filter-toggle { display: inline-flex; }
  .product { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 16px; }
  .cart-layout { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
  .account { grid-template-columns: minmax(0, 1fr); }
  .account-nav { display: flex; overflow-x: auto; gap: 4px; }
  .account-nav .who { display: none; }
  .account-nav a { white-space: nowrap; }
  .about-grid, .contact-grid, .promo-band { grid-template-columns: minmax(0, 1fr); }
  .values { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { padding-bottom: 68px; font-size: 15px; }
  .topbar .tb-links { display: none; }
  .header-main { flex-wrap: wrap; gap: 10px; min-height: 0; padding-top: 10px; padding-bottom: 10px; }
  .logo img { height: 42px; }
  .menu-btn { display: inline-flex; order: -1; }
  .search { order: 5; flex-basis: 100%; max-width: none; }
  .search input[type=search] { height: 42px; }
  .actions { margin-left: auto; }
  .actions .act-label, .act-account, .act-fav { display: none; }
  .act-cart { padding: 10px 12px; }
  .act-cart .act-label { display: none; }
  .catnav { display: none; }
  .grid-products, .grid-products.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rail { grid-auto-columns: 46%; gap: 10px; }
  .cats { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .cat-tile { padding: 10px 4px; border: 0; background: transparent; }
  .cat-tile:hover { box-shadow: none; transform: none; }
  .cat-tile .ct-img { width: 64px; height: 64px; background: #fff; }
  .cat-tile b { font-size: 12px; }
  .cat-tile span { display: none; }
  .hero-main { padding: 28px 22px; min-height: 260px; }
  .hero-art { display: none; }
  .rail-nav { display: none; }
  .hero-main p { font-size: 14px; }
  .hero-side { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr 1fr; gap: 8px; }
  .trust div { padding: 12px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .card { padding: 8px; }
  .card-name { font-size: 13px; }
  .price b { font-size: 15px; }
  .add { width: 38px; height: 38px; }
  .section { padding: 28px 0; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .page-head h1 { font-size: 24px; }
  .product-price b { font-size: 26px; }
  .panel { padding: 16px; }
  .checkout-steps span + span::before { width: 10px; }
  .cart-line { grid-template-columns: 64px 1fr auto; grid-template-areas: "t n rm" "t q lt"; row-gap: 8px; }
  .cart-line .thumb { grid-area: t; width: 64px; height: 64px; }
  .cart-line .nm { grid-area: n; }
  .cart-line .qty { grid-area: q; justify-self: start; }
  .cart-line .lt { grid-area: lt; min-width: 0; }
  .cart-line .rm { grid-area: rm; }
  .stat-cards { grid-template-columns: 1fr; }
  .content { padding: 20px; }
  .promo-band { padding: 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--bordure); z-index: 80; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bottom-nav a, .bottom-nav button { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 500; color: var(--gris); background: none; border: 0; padding: 4px; position: relative; cursor: pointer; }
  .bottom-nav a.active { color: var(--vert-marche); }
  .bottom-nav .count { position: absolute; top: 0; left: 52%; min-width: 18px; height: 18px; border-radius: var(--r-pill); background: var(--orange); color: var(--vert-foret); font-size: 10px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
  .bottom-nav .count[data-n="0"] { display: none; }
  .wa-float { bottom: 84px; width: 52px; height: 52px; }
  .toasts { bottom: 84px; }
  .buy-row .btn { min-width: 0; }
  .table-stack thead { display: none; }
  .table-stack tr { display: block; border-bottom: 1px solid var(--bordure); padding: 8px 0; }
  .table-stack td { display: flex; justify-content: space-between; border: 0; padding: 4px 0; }
  .table-stack td::before { content: attr(data-l); color: var(--gris); font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.ad-body { align-content: start; }
.am-grid-card .ad-f-texte .ad-body { flex: 0 0 auto; }
[hidden] { display: none !important; }

.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 84px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: var(--creme); color: var(--vert-foret); font: inherit; font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 8px; cursor: pointer; }

.stock-alert { margin-top: 12px; padding: 16px; border: 1px dashed var(--bordure); border-radius: 14px; background: var(--creme); display: grid; gap: 10px; }
.stock-alert b { display: flex; align-items: center; gap: 6px; color: var(--vert-foret); }
.stock-alert-row { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 8px; }
.stock-alert-row input { min-height: 44px; border: 1px solid var(--bordure); border-radius: 10px; padding: 0 12px; font: inherit; background: #fff; }
@media (max-width: 560px) { .stock-alert-row { grid-template-columns: 1fr; } }

/* Univers thématiques */
.univers { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.univ { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 170px; padding: 16px; border-radius: 20px; overflow: hidden; background: color-mix(in srgb, var(--u) 14%, #fff); border: 1px solid color-mix(in srgb, var(--u) 22%, #fff); color: var(--vert-foret); transition: transform .25s, box-shadow .25s; }
.univ:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -14px rgba(6, 58, 20, .22); color: var(--vert-foret); }
.univ-txt { display: grid; gap: 2px; position: relative; z-index: 1; }
.univ-txt b { font-size: 15px; line-height: 1.25; }
.univ-txt span { font-size: 12.5px; opacity: .75; }
.univ img { align-self: flex-end; width: 92px; height: 92px; object-fit: contain; margin: -6px -6px -8px 0; transition: transform .3s; }
.univ:hover img { transform: scale(1.08) rotate(-3deg); }
/* Bandeaux de rayon */
.rail-band { border-radius: 24px; padding: 22px 22px 8px; background: linear-gradient(180deg, color-mix(in srgb, var(--rb) 10%, #fff), #fff 70%); border: 1px solid color-mix(in srgb, var(--rb) 16%, #fff); }
.rail-band .kicker { color: var(--rb); }
/* Méga-menu des rayons */
.catnav .has-mega > a[aria-expanded="true"] { color: var(--vert-marche); }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--creme); box-shadow: 0 24px 50px -20px rgba(6, 58, 20, .25); z-index: 90; animation: megaIn .2s ease; }
@keyframes megaIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.catnav { position: relative; }
.mega-in { display: grid; grid-template-columns: 1fr 260px; gap: 24px; padding-top: 20px; padding-bottom: 24px; }
.mega-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.mega-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; color: var(--vert-foret); }
.mega-item:hover { background: var(--creme); color: var(--vert-foret); }
.mega-img { width: 52px; height: 52px; border-radius: 12px; background: var(--creme); display: grid; place-items: center; flex-shrink: 0; overflow: hidden; }
.mega-img img { width: 46px; height: 46px; object-fit: contain; }
.mega-item b, .mega-side b { display: block; font-size: 14px; }
.mega-item small, .mega-side small { color: var(--gris); font-size: 12px; }
.mega-side { display: grid; gap: 8px; align-content: start; border-left: 1px solid var(--creme); padding-left: 20px; }
.mega-side a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; color: var(--vert-foret); }
.mega-side a:hover { background: var(--creme); color: var(--vert-foret); }
.mega-side svg { color: var(--vert-marche); flex-shrink: 0; }
.mega-side .mega-promo { background: color-mix(in srgb, var(--orange) 12%, #fff); }
.mega-side .mega-promo svg { color: var(--orange); }
@media (max-width: 1100px) { .univers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .univers { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding-bottom: 6px; scrollbar-width: none; }
  .univers::-webkit-scrollbar { display: none; }
  .univ { flex: 0 0 150px; min-height: 150px; scroll-snap-align: start; }
  .univ img { width: 72px; height: 72px; }
  .rail-band { padding: 16px 12px 4px; border-radius: 18px; }
  .mega-in { grid-template-columns: 1fr; }
  .mega-side { border-left: 0; padding-left: 0; grid-template-columns: 1fr 1fr; }
  .mega-grid { grid-template-columns: 1fr 1fr; }
  .mega { max-height: 70vh; overflow-y: auto; }
}


/* =========================================================
   AÏCHA MARKET — Refonte marketplace (inspiration grandes
   places de marché, identité Aïcha Market conservée)
   ========================================================= */
:root {
  --wrap: 1500px;
  --orange: #f59e0b;
  --orange-texte: #a94d00;
  --orange-clair: #fff4d8;
  --jaune: #ffd34e;
  --creme: #f5f6f8;
  --vert-foret: #18212f;
  --vert-marche: #16803c;
  --vert-pousse: #29a35a;
  --vert-clair: #e9f7ee;
  --gris: #667085;
  --bordure: #e7e9ee;
  --ombre: 0 3px 14px rgba(18, 29, 45, .06);
  --ombre-survol: 0 12px 30px rgba(18, 29, 45, .13);
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px;
}
body { background:#f4f5f7; color:#202938; }
.wrap { max-width:1500px; padding-left:22px; padding-right:22px; }
.topbar { background:#202938; color:#fff; }
.topbar .wrap { min-height:34px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.topbar a, .topbar .tb-msg { color:#fff; font-size:12px; }
.header { background:#fff; border-bottom:1px solid #e9ebef; box-shadow:0 2px 10px rgba(20,30,45,.04); }
.header-main { min-height:86px; gap:26px; }
.logo img { height:58px; max-width:150px; object-fit:contain; }
.search { max-width:none; }
.search form { background:#f4f5f7; border:1px solid #dfe3e8; border-radius:8px; padding:0 6px 0 16px; }
.search form:focus-within { border-color:#f0a400; box-shadow:0 0 0 3px rgba(245,158,11,.12); }
.search input[type=search] { height:48px; }
.search button { width:44px; height:40px; border-radius:7px; background:#f5a900; color:#1f2937; }
.actions { gap:8px; }
.act { border-radius:10px; padding:8px 10px; }
.act:hover { background:#fff7e6; }
.act-label { font-size:12px; font-weight:600; }
.count { background:#e97800; color:#fff; }
.catnav { background:#fff; border-top:1px solid #f0f1f3; }
.catnav a { padding:13px 12px; font-size:13px; color:#394354; border-bottom-width:3px; }
.catnav a:hover, .catnav a.active { color:#b85d00; border-bottom-color:#f5a900; }
.catnav a.promo { color:#d66b00; font-weight:700; }
.hero { padding:22px 0 12px; }
.hero-grid { grid-template-columns:minmax(0, 2.15fr) minmax(280px, .85fr); gap:18px; }
.hero-main { min-height:370px; border-radius:14px; padding:48px 52px; background:linear-gradient(115deg,#163f2a 0%,#147b43 58%,#1a9b55 100%); }
.hero-main h1 { font-size:clamp(32px,4vw,54px); max-width:560px; letter-spacing:-1.4px; }
.hero-main p { font-size:16px; max-width:460px; }
.hero-main .btn-promo { background:#ffc328; color:#212936; border-color:#ffc328; }
.hero-main .btn-light { background:#fff; color:#202938; border-color:#fff; }
.hero-card { border-radius:14px; min-height:176px; padding:24px; box-shadow:var(--ombre); }
.hc-orange { background:linear-gradient(125deg,#fff1d4,#ffe1a1); }
.hc-vert { background:linear-gradient(125deg,#e5f6eb,#c8ecd5); }
.trust { gap:14px; }
.trust div { border:1px solid #e8eaee; border-radius:12px; box-shadow:0 2px 8px rgba(20,30,45,.025); padding:17px; }
.trust .ic-wrap { background:#fff3d6; color:#c36a00; border-radius:11px; }
.section { padding:34px 0; }
.section-sm { padding:18px 0; }
.section-head { margin-bottom:17px; }
.section-head h2 { font-size:clamp(21px,2.4vw,27px); letter-spacing:-.45px; color:#202938; }
.kicker { color:#b85d00; letter-spacing:1.25px; font-size:11px; }
.grid-products { grid-template-columns:repeat(5,minmax(0,1fr)); gap:14px; }
.grid-products.cols-4 { grid-template-columns:repeat(4,minmax(0,1fr)); }
.card { border:1px solid #e8eaee; border-radius:12px; padding:12px; box-shadow:0 1px 4px rgba(20,30,45,.025); transition:transform .2s,box-shadow .2s,border-color .2s; }
.card:hover { transform:translateY(-3px); box-shadow:0 12px 26px rgba(20,30,45,.10); border-color:#f2c56b; }
.card-media { background:#fff; border-radius:9px; aspect-ratio:1/1; }
.card-media img { padding:10px; }
.card-body { padding:11px 2px 2px; }
.card-cat { color:#8992a0; font-size:10px; letter-spacing:.8px; }
.card-name { color:#283344; font-size:13.5px; font-weight:600; min-height:38px; }
.card-name:hover { color:#b85d00; }
.card-unit { font-size:12px; color:#8a93a1; }
.card-foot { padding-top:12px; }
.price b { color:#202938; font-size:16px; }
.price s { color:#9aa2ad; font-size:11px; }
.add { background:#fff3d6; color:#a95700; border:1px solid #f4d28b; border-radius:8px; }
.add:hover { background:#f5a900; color:#202938; }
.badge-promo { background:#e65e32; color:#fff; }
.badge-new { background:#16803c; color:#fff; }
.fav { background:rgba(255,255,255,.94); box-shadow:0 1px 5px rgba(0,0,0,.08); }
.cats { gap:14px; }
.cat-tile { border-radius:12px; border:1px solid #e8eaee; background:#fff; box-shadow:0 2px 8px rgba(20,30,45,.03); }
.cat-tile:hover { border-color:#f2c56b; transform:translateY(-2px); }
.univ { border-radius:13px; min-height:165px; box-shadow:0 2px 8px rgba(20,30,45,.025); }
.rail-band { border:1px solid #e8eaee; background:#fff; border-radius:14px; padding:20px 20px 10px; }
.promo-band { border-radius:14px; }
.page-head { padding-top:26px; padding-bottom:18px; }
.page-head h1 { color:#202938; }
.shop { grid-template-columns:250px minmax(0,1fr); gap:20px; }
.filters { border:1px solid #e8eaee; border-radius:12px; box-shadow:var(--ombre); }
.footer { background:#202938; margin-top:34px; }
.footer-top { padding-top:42px; }
.btn-primary, .btn-promo { background:#f5a900; color:#202938; border-color:#f5a900; }
.btn-primary:hover, .btn-promo:hover { background:#e89400; border-color:#e89400; color:#202938; }
.btn { border-radius:8px; }
input, select, textarea { border-radius:8px; }
@media (min-width:1500px) {
  .grid-products { grid-template-columns:repeat(6,minmax(0,1fr)); }
}
@media (max-width:1100px) {
  .wrap { padding-left:18px; padding-right:18px; }
  .grid-products { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .hero-main { padding:38px; }
}
@media (max-width:760px) {
  .wrap { padding-left:14px; padding-right:14px; }
  .topbar .wrap { min-height:30px; justify-content:center; }
  .tb-links { display:none; }
  .header-main { min-height:68px; gap:10px; flex-wrap:wrap; padding-top:8px; padding-bottom:10px; }
  .logo img { height:44px; max-width:116px; }
  .search { order:3; flex:1 0 100%; max-width:none; }
  .search input[type=search] { height:43px; }
  .actions { margin-left:auto; gap:2px; }
  .act { padding:6px; }
  .act-label { display:none; }
  .catnav { display:none; }
  .hero { padding-top:14px; }
  .hero-grid { grid-template-columns:1fr; gap:12px; }
  .hero-main { min-height:300px; padding:30px 24px; }
  .hero-main h1 { font-size:34px; max-width:80%; }
  .hero-main p { max-width:75%; font-size:14px; }
  .hero-main .hero-art { max-width:42%; right:-2px; bottom:8px; }
  .hero-side { grid-template-columns:1fr 1fr; gap:10px; }
  .hero-card { min-height:150px; padding:15px; }
  .hero-card h3 { font-size:16px; max-width:80%; }
  .hero-card p { font-size:12px; max-width:85%; }
  .hero-card img { width:32%; opacity:.92; }
  .trust { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .trust div { padding:11px; gap:8px; }
  .trust .ic-wrap { width:36px; height:36px; }
  .trust b { font-size:12px; }
  .trust span { font-size:11px; }
  .section { padding:25px 0; }
  .section-sm { padding:13px 0; }
  .grid-products, .grid-products.cols-4 { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
  .card { padding:8px; border-radius:10px; }
  .card-media { aspect-ratio:1/1; }
  .card-name { font-size:12px; min-height:34px; }
  .price b { font-size:14px; }
  .card-foot { gap:5px; }
  .add { width:34px; height:34px; }
  .shop { grid-template-columns:1fr; }
  .filters { position:static; }
  .page-head { padding-top:18px; }
}
@media (max-width:390px) {
  .hero-main h1 { font-size:29px; }
  .hero-side { grid-template-columns:1fr; }
  .hero-card { min-height:130px; }
}


/* --- Accueil vitrine commerciale : campagnes, raccourcis, rayons --- */
.market-campaigns { padding:10px 0 4px; }
.market-campaign-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.market-campaign { min-height:190px; position:relative; overflow:hidden; display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:7px; padding:24px 26px; border-radius:15px; color:#202938; isolation:isolate; }
.market-campaign:hover { color:#202938; transform:translateY(-3px); box-shadow:0 12px 26px rgba(20,30,45,.12); }
.market-campaign strong { font-size:clamp(20px,2vw,27px); line-height:1.12; letter-spacing:-.7px; position:relative; z-index:2; }
.campaign-label { font-size:10px; font-weight:800; letter-spacing:1.5px; position:relative; z-index:2; }
.campaign-cta { font-size:12px; font-weight:700; margin-top:6px; display:flex; align-items:center; gap:6px; position:relative; z-index:2; }
.campaign-gold { background:linear-gradient(120deg,#fff0c7,#ffd36a); }
.campaign-gold .campaign-label { color:#985300; }
.campaign-green { background:linear-gradient(120deg,#e0f4e7,#b9e5c9); }
.campaign-green .campaign-label { color:#126536; }
.campaign-coral { background:linear-gradient(120deg,#ffe7df,#ffc9b5); }
.campaign-coral .campaign-label { color:#a33e24; }
.campaign-deco { position:absolute; z-index:1; pointer-events:none; }
.campaign-circle { width:180px;height:180px;border-radius:50%;background:rgba(255,255,255,.38);right:-24px;bottom:-78px; }
.campaign-spark { right:34px;top:16px;font-size:100px;line-height:1;font-weight:900;color:rgba(255,255,255,.58);transform:rotate(-12deg); }
.campaign-basket { right:26px;bottom:12px;font-size:76px;filter:drop-shadow(0 7px 7px rgba(0,0,0,.08)); }
.campaign-fruit { right:22px;bottom:10px;font-size:78px;filter:drop-shadow(0 7px 7px rgba(0,0,0,.08)); }
.market-shortcuts { padding-top:18px; padding-bottom:10px; }
.market-shortcut-grid { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px; }
.market-shortcut-grid > div { display:flex;align-items:center;gap:12px;padding:15px 16px;background:#fff;border:1px solid #e8eaee;border-radius:12px; }
.shortcut-icon { width:42px;height:42px;display:grid;place-items:center;background:#fff4d8;border-radius:11px;font-size:21px;flex-shrink:0; }
.market-shortcut-grid b { display:block;font-size:13px;color:#283344;line-height:1.35; }
.market-shortcut-grid small { display:block;font-size:11px;color:#818b99;margin-top:2px; }
.market-campaign, .market-campaign:hover { transition:transform .2s,box-shadow .2s; }
@media(max-width:900px) {
 .market-campaign-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .market-campaign:last-child { display:none; }
 .market-shortcut-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:600px) {
 .market-campaigns { padding-top:4px; }
 .market-campaign-grid { display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:10px;padding-bottom:5px;scrollbar-width:none; }
 .market-campaign-grid::-webkit-scrollbar { display:none; }
 .market-campaign { flex:0 0 82%;min-height:158px;padding:18px 20px;scroll-snap-align:start; }
 .market-campaign strong { font-size:22px; }
 .campaign-spark { font-size:82px;right:22px; }
 .campaign-basket,.campaign-fruit { font-size:62px;right:14px; }
 .market-shortcut-grid { gap:8px; }
 .market-shortcut-grid > div { padding:10px;gap:8px; }
 .shortcut-icon { width:34px;height:34px;font-size:17px; }
 .market-shortcut-grid b { font-size:11px; }
 .market-shortcut-grid small { font-size:10px; }
}


/* Avis clients vérifiés — Aïcha Market */
#avis .panel { border: 1px solid var(--line, #e8ece8); border-radius: 16px; background: var(--surface, #fff); }
#avis select, #avis textarea { box-sizing: border-box; border: 1px solid var(--line, #dce4dc); border-radius: 10px; padding: 11px 12px; font: inherit; background: #fff; color: var(--text, #18351f); }
#avis textarea { resize: vertical; min-height: 100px; }
#avis .section-head { align-items: center; }
@media (max-width: 760px) { #avis .grid { grid-template-columns: 1fr !important; } #avis .panel { padding: 15px !important; } }

/* Aïcha Market — logo principal agrandi et bien visible */
.header-main { min-height: 200px !important; gap: 24px !important; }
.header .logo { display: inline-flex; align-items: center; flex: 0 0 auto; min-width: 0; }
.header .logo img { display: block; height: 176px !important; width: auto !important; max-width: 360px !important; object-fit: contain; }
@media (max-width: 1100px) {
  .header-main { min-height: 170px !important; }
  .header .logo img { height: 148px !important; max-width: 300px !important; }
}
@media (max-width: 760px) {
  .header-main { min-height: 0 !important; padding-top: 10px !important; padding-bottom: 10px !important; gap: 8px !important; }
  .header .logo img { height: 122px !important; max-width: 250px !important; }
}
@media (max-width: 380px) {
  .header .logo img { height: 104px !important; max-width: 212px !important; }
}
