/* ==========================================================================
   SORA – Miels du Sénégal · Feuille de style publique (mobile-first)
   Les couleurs principales sont surchargées depuis l'administration
   (Paramètres → Apparence) via les variables CSS ci-dessous.
   ========================================================================== */

:root {
    --honey: #D9971E;
    --brown: #3A2311;
    --green: #4F6B3A;
    --cream: #FBF6EC;
    --honey-light: color-mix(in srgb, var(--honey) 16%, #fff);
    --honey-dark: color-mix(in srgb, var(--honey) 80%, #000);
    --ink: #2B2118;
    --muted: #7A6653;
    --line: #EADFCB;
    --white: #fff;
    --wa: #25D366;
    --red: #C0392B;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 10px 30px -12px rgba(58, 35, 17, .25);
    --shadow-sm: 0 4px 14px -6px rgba(58, 35, 17, .2);
    --font-title: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
}
img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--honey-dark); text-underline-offset: 3px; }
a:hover { color: var(--brown); }
h1, h2, h3 { font-family: var(--font-title); color: var(--brown); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 6vw, 3.2rem); }
h2 { font-size: clamp(1.45rem, 4.2vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--honey); outline-offset: 2px; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--brown); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.right { text-align: right; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.mt-3 { margin-top: 2rem; }
.pt-0 { padding-top: 0 !important; }
.grow { flex: 1; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
    font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
    transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s;
    white-space: nowrap; -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: .9rem; }
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; margin-top: 10px; }
.btn-primary { background: var(--honey); color: #fff; box-shadow: 0 6px 18px -8px var(--honey); }
.btn-primary:hover { background: var(--honey-dark); color: #fff; }
.btn-dark { background: var(--brown); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-outline { border-color: currentColor; color: var(--brown); background: transparent; }
.btn-outline:hover { background: var(--brown); color: #fff; border-color: var(--brown); }
.btn-whatsapp { background: var(--wa); color: #fff; }
.btn-whatsapp:hover { background: #1ebe5a; color: #fff; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: .9rem; }
.link-btn.danger { color: var(--red); }
.link-back { display: inline-block; margin-top: 14px; color: var(--muted); font-size: .95rem; }

/* ---------- Bandeau & en-tête ---------- */
.announce { background: var(--brown); color: #F6E6C4; text-align: center; font-size: .85rem; padding: 7px 16px; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 246, 236, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 8px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--brown); margin-right: auto; }
.logo img { max-height: 44px; width: auto; }
.logo-text { font-family: var(--font-title); font-weight: 700; font-size: 1.5rem; line-height: 1; letter-spacing: .04em; display: flex; flex-direction: column; }
.logo-text small { font-family: var(--font); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-top: 3px; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--brown); cursor: pointer; }
.icon-btn:hover { background: var(--honey-light); }
.header-actions { display: flex; gap: 2px; }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--honey); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; }
.cart-count.bump { animation: bump .4s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }
.main-nav { display: none; }
.burger { display: grid; gap: 5px; width: 22px; }
.burger span { height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .2s; }
.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { border-top: 1px solid var(--line); padding: 12px 16px 20px; background: var(--cream); }
.mobile-nav nav { display: grid; }
.mobile-nav nav a { padding: 14px 4px; font-size: 1.1rem; font-weight: 500; color: var(--brown); text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-nav nav a.active { color: var(--honey-dark); }

/* ---------- Alertes ---------- */
.flashes { padding-top: 16px; }
.alert { padding: 13px 16px; border-radius: var(--radius-sm); margin-bottom: 12px; border: 1px solid; font-weight: 500; }
.alert-success { background: #EEF6EA; border-color: #BFD8B2; color: #2F5A22; }
.alert-error { background: #FBECEA; border-color: #EFC2BC; color: #8E2A1F; }
.alert-warning { background: #FFF5E0; border-color: #F2D48E; color: #7A5406; }
.alert-info { background: #EEF3FA; border-color: #C5D5EC; color: #29466E; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 85% 10%, color-mix(in srgb, var(--honey) 35%, transparent), transparent 60%), linear-gradient(180deg, #FFF8EA 0%, var(--cream) 100%); }
.hero-inner { position: relative; z-index: 2; display: grid; gap: 24px; padding-top: 40px; padding-bottom: 48px; align-items: center; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-has-media::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(30, 17, 6, .35), rgba(30, 17, 6, .7)); }
.hero-has-media h1, .hero-has-media .lead, .hero-has-media .kicker, .hero-has-media .hero-trust { color: #fff; }
.hero-has-media .btn-outline { color: #fff; }
.hero-has-media .btn-outline:hover { background: #fff; color: var(--brown); border-color: #fff; }
.hero-has-media .hero-inner { min-height: min(78vh, 680px); }
.kicker { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green); background: rgba(255, 255, 255, .7); padding: 6px 12px; border-radius: 999px; margin-bottom: 14px; }
.hero-has-media .kicker { background: rgba(255, 255, 255, .15); }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-actions .btn { flex: 1 1 200px; }
.center-actions { justify-content: center; }
.hero-trust { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; font-weight: 500; color: var(--brown); }
.hero-visual img { margin: 0 auto; max-width: 300px; filter: drop-shadow(0 30px 40px rgba(58, 35, 17, .25)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px) rotate(-1deg); } }

/* ---------- Sections ---------- */
.section { padding: 48px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 28px; }
.section-head p { color: var(--muted); }
.section-honey { background: var(--brown); color: #F6E6C4; }
.section-honey h2, .section-honey h3 { color: #fff; }
.section-honey .section-head p { color: #E3CFA8; }
.section-cream { background: #F4EAD6; }
.page-hero { padding: 28px 0 24px; }
.page-hero-sm h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); }
.breadcrumb { font-size: .85rem; color: var(--muted); margin: 12px 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb span { margin: 0 4px; opacity: .5; }

/* ---------- Produits ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.product-card { background: var(--white); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-card-media { position: relative; aspect-ratio: 1; background: var(--honey-light); display: block; overflow: hidden; }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-card-media img { transform: scale(1.04); }
.product-card-media .pill { position: absolute; top: 10px; left: 10px; }
.product-card-media .pill-dark { left: auto; right: 10px; }
.product-card-body { padding: 12px; display: flex; flex-direction: column; flex: 1; }
.product-origin { font-size: .78rem; color: var(--green); margin: 0 0 4px; font-weight: 500; }
.product-card-title { font-size: 1rem; margin: 0 0 8px; }
.product-card-title a { color: var(--brown); text-decoration: none; }
.product-card-form { margin-top: auto; }
.product-weight { font-size: .85rem; color: var(--muted); margin: 0 0 6px; }
.product-card-foot { display: flex; flex-direction: column; gap: 8px; }
.product-card-foot .btn span { display: none; }
.product-card-foot .btn { width: 100%; }
.price { font-weight: 700; color: var(--brown); margin: 0; font-size: 1.05rem; }
.price s { color: var(--muted); font-weight: 400; font-size: .85em; margin-left: 6px; }
.price-lg { font-size: 1.9rem; font-family: var(--font-title); }
.eur, .eur-line { color: var(--muted); font-weight: 400; font-size: .85rem; }
.eur-line { margin: -4px 0 12px; }
.pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.pill-honey { background: var(--honey); color: #fff; }
.pill-dark { background: var(--brown); color: #fff; }

.variant-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.variant-chips input { position: absolute; opacity: 0; pointer-events: none; }
.variant-chips label { font-size: .75rem; padding: 4px 9px; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 500; }
.variant-chips input:checked + label { border-color: var(--brown); background: var(--brown); color: #fff; }
.variant-chips input:disabled + label { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.variant-chips input:focus-visible + label { outline: 3px solid var(--honey); }

.catalog-bar { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 9px 16px; border-radius: 999px; background: var(--white); border: 1.5px solid var(--line); color: var(--brown); text-decoration: none; font-weight: 500; font-size: .92rem; }
.chip.active, .chip:hover { background: var(--brown); border-color: var(--brown); color: #fff; }
.search input { width: 100%; min-height: 46px; padding: 10px 16px 10px 42px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%237A6653' stroke-width='2'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='m13 13 4 4'/%3E%3C/svg%3E") no-repeat 16px center; }
.empty { text-align: center; padding: 40px 16px; }
.empty img { margin: 0 auto 16px; opacity: .8; }

/* ---------- Fiche produit ---------- */
.product-page { display: grid; gap: 24px; padding-bottom: 32px; }
.gallery { min-width: 0; }
.gallery-main { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius); background: var(--honey-light); scrollbar-width: none; margin: 0 -16px; border-radius: 0; }
.gallery-main::-webkit-scrollbar { display: none; }
.gallery-main img { flex: 0 0 100%; aspect-ratio: 1; object-fit: cover; scroll-snap-align: center; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.gallery-thumbs button { flex: none; width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; background: none; opacity: .65; }
.gallery-thumbs button.active { border-color: var(--honey); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { margin-top: 6px; font-size: clamp(1.7rem, 5vw, 2.6rem); }
.rating-line { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.product-short { font-size: 1.05rem; color: var(--muted); }
.buy-box { background: var(--white); padding: 18px; border-radius: var(--radius); box-shadow: var(--shadow-sm); margin: 18px 0; }
.buy-box fieldset { border: 0; padding: 0; margin: 0 0 12px; }
.buy-box legend { font-weight: 700; margin-bottom: 10px; color: var(--brown); }
.variant-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.variant-option { position: relative; display: flex; flex-direction: column; align-items: center; padding: 12px 8px; border: 2px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; text-align: center; transition: border-color .2s, background .2s; }
.variant-option input { position: absolute; opacity: 0; }
.variant-option:has(input:checked) { border-color: var(--honey); background: var(--honey-light); }
.variant-option:has(input:focus-visible) { outline: 3px solid var(--honey); }
.variant-option.disabled { opacity: .45; cursor: not-allowed; }
.variant-label { font-weight: 700; color: var(--brown); }
.variant-price { font-size: .82rem; color: var(--muted); }
.stock-line { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 500; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot-green { background: #3DA35D; box-shadow: 0 0 0 4px rgba(61, 163, 93, .15); }
.dot-orange { background: #E69B1E; }
.dot-red { background: var(--red); }
.buy-row { display: flex; gap: 10px; align-items: stretch; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: 999px; background: #fff; overflow: hidden; }
.qty button { width: 42px; height: 50px; border: 0; background: none; font-size: 1.3rem; cursor: pointer; color: var(--brown); }
.qty input { width: 42px; text-align: center; border: 0; font-weight: 700; -moz-appearance: textfield; background: transparent; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-sm button { width: 34px; height: 36px; font-size: 1.1rem; }
.qty-sm input { width: 34px; }
.trust-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .95rem; }
.trust-list li { background: var(--white); padding: 10px 14px; border-radius: var(--radius-sm); }
.product-details { display: grid; gap: 12px; padding-bottom: 20px; }
.accordion { background: var(--white); border-radius: var(--radius); padding: 0 18px; }
.accordion summary { list-style: none; cursor: pointer; padding: 16px 0; display: flex; justify-content: space-between; align-items: center; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 1.5rem; color: var(--honey); transition: transform .2s; }
.accordion[open] summary::after { transform: rotate(45deg); }
.accordion summary h2 { font-size: 1.2rem; margin: 0; }
.accordion > :not(summary) { padding-bottom: 18px; }
.specs { width: 100%; border-collapse: collapse; }
.specs th, .specs td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 42%; color: var(--muted); font-weight: 500; padding-right: 12px; }
.product-reviews { margin-top: 12px; }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, .2); transform: translateY(110%); transition: transform .3s; }
.sticky-buy.show { transform: none; }
.sticky-buy div { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.sticky-buy strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .9rem; }
.sticky-buy span { font-weight: 700; color: var(--honey-dark); }

/* ---------- Pourquoi SORA ---------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.feature { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 18px 14px; text-align: center; }
.feature-icon { font-size: 2rem; display: block; margin-bottom: 8px; }
.feature h3 { font-size: 1rem; font-family: var(--font); font-weight: 700; margin-bottom: 4px; }
.feature p { font-size: .88rem; margin: 0; color: #E3CFA8; }

/* ---------- À propos ---------- */
.about { display: grid; gap: 28px; align-items: center; }
.about-media img { border-radius: 24px; width: 100%; aspect-ratio: 6 / 5; object-fit: cover; box-shadow: var(--shadow); }
.about-text p { color: var(--muted); }

/* ---------- Avis ---------- */
.reviews { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 10px; margin: 0 -16px; scrollbar-width: none; }
.reviews::-webkit-scrollbar { display: none; }
.review { flex: 0 0 85%; scroll-snap-align: center; background: var(--white); border-radius: var(--radius); padding: 22px; margin: 0; box-shadow: var(--shadow-sm); }
.review blockquote { margin: 10px 0 14px; font-size: 1rem; font-style: italic; color: var(--ink); }
.review figcaption { font-size: .9rem; color: var(--muted); }
.stars { color: #DCCDB5; letter-spacing: 2px; }
.stars .on { color: var(--honey); }

/* ---------- CTA ---------- */
.cta { position: relative; padding: 56px 0; background: var(--cta-bg, linear-gradient(135deg, var(--honey), var(--honey-dark))) center / cover; color: #fff; text-align: center; }
.cta::before { content: ""; position: absolute; inset: 0; background: rgba(40, 22, 8, .45); }
.cta-inner { position: relative; max-width: 720px; }
.cta h2 { color: #fff; }
.cta .hero-actions { justify-content: center; }

/* ---------- Panier ---------- */
.cart-layout, .checkout-layout, .confirm-grid, .contact-grid, .account-layout { display: grid; gap: 20px; align-items: start; }
.cart-lines { display: grid; gap: 10px; }
.cart-line { display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; align-items: center; background: var(--white); border-radius: var(--radius); padding: 10px; transition: opacity .2s; }
.cart-line.loading { opacity: .5; pointer-events: none; }
.cart-line-img img { width: 76px; height: 76px; object-fit: cover; border-radius: var(--radius-sm); background: var(--honey-light); }
.cart-line-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cart-line-name { font-weight: 700; color: var(--brown); text-decoration: none; line-height: 1.25; }
.cart-line-info .muted { font-size: .85rem; }
.cart-line-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.cart-line-total { font-size: .95rem; white-space: nowrap; align-self: start; }
.summary { background: var(--white); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.summary h2 { font-size: 1.3rem; }
.summary dl { margin: 0 0 8px; }
.summary dl > div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 700; text-align: right; }
.summary .total { border-bottom: 0; font-size: 1.2rem; }
.summary .total dt { color: var(--brown); font-weight: 700; }
.summary .hint { margin: 8px 0; }
.inline-select select { margin-top: 4px; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: .85rem; }
.secure-note { text-align: center; font-size: .82rem; color: var(--muted); margin: 12px 0 0; }
.hint { font-size: .85rem; color: var(--muted); background: var(--cream); padding: 8px 12px; border-radius: 8px; }

/* ---------- Formulaires ---------- */
.card { background: var(--white); border-radius: var(--radius); padding: 20px 16px; box-shadow: var(--shadow-sm); margin: 0 0 16px; border: 0; min-width: 0; }
fieldset.card { padding-top: 12px; }
.card legend { font-family: var(--font-title); font-size: 1.25rem; color: var(--brown); font-weight: 600; padding: 0; float: left; width: 100%; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.card legend + * { clear: both; }
.card h2 { font-size: 1.25rem; }
.card.highlight { background: var(--honey-light); box-shadow: none; text-align: left; }
.step-num { width: 30px; height: 30px; border-radius: 50%; background: var(--honey); color: #fff; font-family: var(--font); font-size: .95rem; display: inline-grid; place-items: center; font-weight: 700; }
.field { margin-bottom: 14px; }
.field label, .label { display: block; font-weight: 500; margin-bottom: 6px; font-size: .92rem; color: var(--brown); }
.field input, .field select, .field textarea {
    width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    background: #FFFDF9; font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 80px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--honey); box-shadow: 0 0 0 4px color-mix(in srgb, var(--honey) 18%, transparent); outline: none; }
.field-error { color: var(--red); font-size: .85rem; margin: 6px 0 0; font-weight: 500; }
.grid-2 { display: grid; gap: 0 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; margin: 12px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--honey); flex: none; }
.options { display: grid; gap: 10px; }
.option { display: flex; align-items: center; gap: 12px; padding: 14px; border: 2px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; background: #FFFDF9; transition: border-color .2s, background .2s; }
.option:has(input:checked) { border-color: var(--honey); background: var(--honey-light); }
.option input { width: 20px; height: 20px; accent-color: var(--honey); flex: none; }
.option-body { display: flex; flex-direction: column; flex: 1; line-height: 1.3; }
.option-body small { color: var(--muted); font-size: .82rem; margin-top: 2px; }
.option-price { font-weight: 700; white-space: nowrap; }
.option-icon { font-size: 1.5rem; }
.login-hint { font-size: .92rem; background: var(--white); padding: 12px 16px; border-radius: var(--radius-sm); }
.steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 14px; font-size: .75rem; font-weight: 700; color: var(--muted); counter-reset: s; overflow-x: auto; }
.steps li { flex: 1; text-align: center; padding-top: 10px; border-top: 4px solid var(--line); white-space: nowrap; }
.steps li.done { border-color: var(--green); color: var(--green); }
.steps li.current { border-color: var(--honey); color: var(--brown); }
.mini-lines { list-style: none; padding: 0; margin: 0 0 8px; }
.mini-lines li { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-size: .92rem; }
.mini-img { position: relative; flex: none; }
.mini-img img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--honey-light); }
.mini-img em { position: absolute; top: -6px; right: -6px; background: var(--brown); color: #fff; font-style: normal; font-size: .72rem; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; }
.mini-name { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.mini-name small { color: var(--muted); }

/* ---------- Confirmation & suivi ---------- */
.confirmation .narrow { margin-bottom: 24px; }
.confirm-icon { font-size: 3.5rem; margin-bottom: 10px; animation: float 4s ease-in-out infinite; }
.order-ref { font-size: 1.05rem; }
.order-meta { font-size: .92rem; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 8px; }
.tracker { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; font-size: .72rem; text-align: center; color: var(--muted); }
.tracker li span { display: block; height: 6px; border-radius: 3px; background: var(--line); margin-bottom: 6px; }
.tracker li.done { color: var(--brown); font-weight: 700; }
.tracker li.done span { background: var(--green); }
.tracker li.current span { background: var(--honey); }
.timeline { list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.timeline li { padding: 8px 0 8px 18px; border-left: 2px solid var(--line); position: relative; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--honey); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: #eee; color: #333; white-space: nowrap; }
.badge-blue { background: #E3EDFB; color: #1F4E8C; }
.badge-orange { background: #FFF0D6; color: #8A5300; }
.badge-green { background: #E2F3E4; color: #226C33; }
.badge-teal { background: #DDF3F0; color: #11675C; }
.badge-purple { background: #EFE6FA; color: #5B2E91; }
.badge-indigo { background: #E6E8FA; color: #33388F; }
.badge-red { background: #FBE3E0; color: #9B2B1F; }
.badge-gray { background: #EEE; color: #555; }

/* ---------- Compte ---------- */
.auth-box { max-width: 480px; }
.auth-box h1 { text-align: center; }
.auth-box > .muted { text-align: center; }
.account-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.account-nav a, .account-nav .link-btn { flex: none; padding: 10px 14px; border-radius: 999px; background: var(--white); text-decoration: none; color: var(--brown); font-weight: 500; font-size: .92rem; }
.account-nav a.active { background: var(--brown); color: #fff; }
.account-nav form { flex: none; display: flex; }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { text-align: center; }
.stat strong { display: block; font-size: 1.5rem; font-family: var(--font-title); color: var(--brown); }
.stat span { color: var(--muted); font-size: .88rem; }
.order-list { list-style: none; padding: 0; margin: 0; }
.order-list a { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); align-items: center; }
.order-list a > span:first-child { display: flex; flex-direction: column; }
.order-list a > strong { grid-column: 2; grid-row: 1; }
.address-grid { display: grid; gap: 12px; margin-bottom: 16px; }
.address p { margin: 8px 0; font-size: .92rem; }
.row-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: .9rem; }

/* ---------- Contact / pages ---------- */
.contact-cards { display: grid; gap: 10px; }
.contact-card { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--radius); background: var(--white); text-decoration: none; color: var(--ink); font-size: 1.4rem; box-shadow: var(--shadow-sm); }
.contact-card span { display: flex; flex-direction: column; font-size: .95rem; }
.contact-card.wa { background: var(--wa); color: #fff; }
.contact-card.wa .ico-wa { width: 30px; height: 30px; }
.prose { font-size: 1.02rem; }
.prose h2 { margin-top: 1.4em; font-size: 1.4rem; }
.prose h3 { margin-top: 1.2em; }
.prose ul { padding-left: 1.2em; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 500; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brown); color: #E3CFA8; padding: 44px 0 90px; margin-top: 20px; font-size: .95rem; }
.site-footer h3 { color: #fff; font-family: var(--font); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #F6E6C4; text-decoration: none; }
.site-footer a:hover { color: var(--honey); }
.footer-grid { display: grid; gap: 28px; }
.logo-light { color: #fff; margin-bottom: 12px; }
.logo-light .logo-text small { color: #CDB58C; }
.socials { display: flex; gap: 8px; margin-top: 14px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); font-weight: 700; font-size: .8rem; }
.socials a:hover { background: var(--honey); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 32px; padding-top: 18px; display: flex; flex-direction: column; gap: 10px; font-size: .85rem; }
.footer-bottom p { margin: 0; }
.pay-logos { display: flex; flex-wrap: wrap; gap: 6px; }
.pay-logos span { background: rgba(255, 255, 255, .1); padding: 4px 10px; border-radius: 6px; font-size: .75rem; }

/* ---------- WhatsApp flottant & toast ---------- */
.ico-wa { flex: none; }
.wa-float { position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 45; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -6px rgba(37, 211, 102, .6); transition: transform .2s, bottom .3s; }
.wa-float:hover { transform: scale(1.07); color: #fff; }
.wa-float .ico-wa { width: 32px; height: 32px; }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }
body.has-sticky-buy .wa-float { bottom: calc(84px + env(safe-area-inset-bottom)); }
.toast { position: fixed; left: 50%; top: calc(var(--header-h) + 14px); transform: translateX(-50%); z-index: 60; background: var(--brown); color: #fff; padding: 12px 18px; border-radius: 999px; box-shadow: var(--shadow); font-weight: 500; font-size: .92rem; max-width: calc(100% - 32px); display: flex; gap: 12px; align-items: center; animation: toastIn .3s ease; }
.toast a { color: var(--honey); font-weight: 700; white-space: nowrap; }
.toast.error { background: var(--red); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -10px); } }

/* ==========================================================================
   Tablette
   ========================================================================== */
@media (min-width: 640px) {
    .container { padding: 0 24px; }
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
    .product-card-body { padding: 16px; }
    .product-card-title { font-size: 1.1rem; }
    .product-card-foot { flex-direction: row; align-items: center; justify-content: space-between; }
    .product-card-foot .btn { width: auto; }
    .features { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .review { flex-basis: 46%; }
    .grid-2 { grid-template-columns: 1fr 1fr; }
    .card { padding: 24px; }
    .catalog-bar { flex-direction: row; align-items: center; justify-content: space-between; }
    .search { width: 280px; flex: none; }
    .gallery-main { margin: 0; border-radius: var(--radius); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
    .address-grid { grid-template-columns: 1fr 1fr; }
    .contact-cards { grid-template-columns: 1fr 1fr; }
    .tracker { font-size: .85rem; }
}

/* ==========================================================================
   Ordinateur
   ========================================================================== */
@media (min-width: 960px) {
    :root { --header-h: 76px; }
    .menu-toggle, .mobile-nav { display: none !important; }
    .main-nav { display: flex; gap: 4px; margin: 0 auto; }
    .main-nav a { padding: 10px 14px; border-radius: 999px; text-decoration: none; color: var(--brown); font-weight: 500; }
    .main-nav a:hover, .main-nav a.active { background: var(--honey-light); color: var(--honey-dark); }
    .logo { margin-right: 0; }
    .section { padding: 80px 0; }
    .hero-inner { grid-template-columns: 1.15fr .85fr; padding-top: 72px; padding-bottom: 88px; }
    .hero-has-media .hero-inner { grid-template-columns: minmax(0, 720px); }
    .hero-actions .btn { flex: 0 0 auto; }
    .hero-visual img { max-width: 420px; }
    .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
    .product-card-foot .btn span { display: inline; }
    .features { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
    .about { grid-template-columns: 1fr 1fr; gap: 56px; }
    .reviews { overflow: visible; display: grid; grid-template-columns: repeat(3, 1fr); padding: 0; margin: 0; }
    .product-page { grid-template-columns: 1.1fr 1fr; gap: 48px; padding-top: 8px; align-items: start; }
    .gallery { position: sticky; top: calc(var(--header-h) + 16px); }
    .product-details { max-width: 860px; }
    .sticky-buy { display: none; }
    body.has-sticky-buy .wa-float { bottom: 24px; }
    .cart-layout, .checkout-layout { grid-template-columns: 1fr 380px; gap: 32px; }
    .summary { position: sticky; top: calc(var(--header-h) + 16px); }
    .confirm-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .contact-grid { grid-template-columns: 1fr 1.2fr; gap: 32px; }
    .contact-cards { grid-template-columns: 1fr; }
    .account-layout { grid-template-columns: 220px 1fr; gap: 32px; }
    .account-nav { flex-direction: column; position: sticky; top: calc(var(--header-h) + 16px); }
    .account-nav a, .account-nav .link-btn { border-radius: var(--radius-sm); }
    .cart-line { grid-template-columns: 96px 1fr auto; padding: 14px; }
    .cart-line-img img { width: 96px; height: 96px; }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
    .site-footer { padding-bottom: 32px; }
    .wa-float { right: 24px; bottom: 24px; }
}

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