/*
 * ============================================================================
 * FILE: style.css
 * PROJECT: Abondance by EBMS (ebm-abondance.com)
 * TIME ZONE: GMT+0 (Burkina Faso)
 * CREATION DATE: 22-09-2026 20:55
 * MODIFICATION DATE: 02-10-2026 10:00
 * Mobile-first : styles de base pour téléphone, puis élargissements.
 * ============================================================================
 */

:root {
    --green: #14532d;
    --green-dark: #0d3b20;
    --green-soft: #eef5ef;
    --gold: #d9a521;
    --gold-dark: #b8871a;
    --ink: #1c2a22;
    --muted: #5f6b64;
    --line: #e7ece8;
    --card-line: #d9e2dc;
    --bg-soft: #f7f8f4;
    --whatsapp: #25d366;
    --radius: 14px;
    --shadow: 0 6px 20px rgba(20, 40, 28, 0.08);
    --gutter: clamp(16px, 4vw, 24px);
    --section: clamp(3rem, 9vw, 5.5rem);
    --header-h: 64px;
    --bar-h: 68px;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
    line-height: 1.6;
    color: var(--ink);
    background: #fff;
    overflow-x: hidden;
    overflow-wrap: break-word;
}

/* Réserve la place de la barre du bas uniquement quand elle est affichée */
body.has-cart {
    padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
}

body.no-scroll {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding-left: max(var(--gutter), env(safe-area-inset-left));
    padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.section {
    margin-top: var(--section);
}

.section-title {
    text-align: center;
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

h1,
h2,
h3 {
    line-height: 1.15;
    color: var(--ink);
}

h2 {
    font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.2rem);
}

.section-title p {
    color: var(--muted);
    margin-top: 0.4rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--green);
    background: var(--green-soft);
    padding: 4px 12px;
    border-radius: 99px;
    margin-bottom: 1rem;
}

.eyebrow.light {
    color: var(--gold);
    background: rgba(255, 255, 255, 0.1);
}

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.75rem 1.3rem;
    border: none;
    border-radius: 10px;
    font: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:disabled {
    background: #c9d0cb;
    cursor: not-allowed;
    transform: none;
}

.btn-primary {
    background: var(--green);
    color: #fff;
}

.btn-primary:hover {
    background: var(--green-dark);
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: #fff;
}

.btn-whatsapp:hover {
    background: #1ebe5b;
}

.btn-gold {
    background: var(--gold);
    color: var(--ink);
}

.btn-gold:hover {
    background: #e6b536;
}

.btn-ghost {
    background: var(--bg-soft);
    color: var(--ink);
}

.btn-lg {
    min-height: 54px;
    font-size: 1.05rem;
}

.btn-full {
    width: 100%;
}

.btn-link {
    display: block;
    margin: 0.8rem auto 0;
    background: none;
    border: none;
    color: var(--muted);
    font: inherit;
    font-size: 0.85rem;
    text-decoration: underline;
    cursor: pointer;
}

.btn-row {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.icon-btn {
    position: relative;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--green);
    cursor: pointer;
}

.badge {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 99px;
    background: var(--gold);
    color: var(--ink);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.badge.bump {
    animation: bump 0.4s ease;
}

@keyframes bump {
    50% { transform: scale(1.4); }
}

/* ---------- Header ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.nav {
    position: relative;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.brand img {
    width: 36px;
    height: 36px;
}

.brand-name {
    display: flex;
    flex-direction: column;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--green);
    line-height: 1;
}

.brand-name small {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-top: 3px;
}

.brand-name.light {
    color: #fff;
    font-size: 1.5rem;
}

.brand-name.light small {
    color: var(--gold);
}

.nav-icons {
    display: flex;
    align-items: center;
}

/* Menu mobile par défaut */
.nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 0.3rem var(--gutter) 1rem;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: 0.2s ease;
}

.nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.nav-links a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
    font-weight: 600;
    text-decoration: none;
}

.nav-links a:last-child {
    border-bottom: none;
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(160deg, #fbf7ea 0%, var(--green-soft) 100%);
    padding: clamp(2rem, 7vw, 5rem) 0 clamp(2.5rem, 7vw, 5rem);
    border-radius: 0 0 clamp(24px, 6vw, 48px) clamp(24px, 6vw, 48px);
}

.hero-grid {
    display: grid;
    gap: 1.5rem;
    align-items: center;
}

.hero-content {
    text-align: center;
}

.hero h1 {
    font-size: clamp(2rem, 1.2rem + 4vw, 3.4rem);
    margin-bottom: 1rem;
}

.hero h1 span {
    color: var(--green);
    display: block;
}

.h1-kicker {
    display: block;
    font-size: clamp(0.72rem, 0.68rem + 0.2vw, 0.8rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.4;
    color: var(--gold-dark);
    margin-bottom: 0.8rem;
}

.hero-content > p {
    color: var(--muted);
    max-width: 34rem;
    margin: 0 auto 1.6rem;
    font-size: clamp(1rem, 0.95rem + 0.4vw, 1.15rem);
}

.hero-note {
    margin-top: 1.2rem;
    font-size: 0.9rem;
    color: var(--green);
    font-weight: 600;
}

.hero-visual {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    aspect-ratio: 5 / 3.4;
}

.hv {
    position: absolute;
    width: 56%;
    filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.16));
    animation: float 6s ease-in-out infinite;
}

.hv-1 { top: 4%; left: 0; }
.hv-2 { top: 0; right: 0; animation-delay: -2s; }
.hv-3 { bottom: 0; left: 22%; animation-delay: -4s; }

@keyframes float {
    50% { transform: translateY(-8px); }
}

/* ---------- Chiffres ---------- */
.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem;
    margin-top: -1.5rem;
    position: relative;
}

.stat {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 0.9rem 0.6rem;
    text-align: center;
    min-width: 0;
}

.stat strong {
    display: block;
    font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem);
    color: var(--green);
    line-height: 1.2;
}

.stat span {
    font-size: 0.82rem;
    color: var(--muted);
}

/* ---------- Filtres ---------- */
.goal-chips {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    margin: 0 calc(-1 * var(--gutter)) 1.5rem;
    padding: 0.2rem var(--gutter) 0.4rem;
}

.goal-chips::-webkit-scrollbar {
    display: none;
}

.chip {
    flex-shrink: 0;
    scroll-snap-align: start;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 42px;
    padding: 0 1rem;
    border: 1.5px solid var(--line);
    border-radius: 99px;
    background: #fff;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    transition: 0.2s;
}

.chip i {
    color: var(--gold-dark);
}

.chip.active {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}

.chip.active i {
    color: var(--gold);
}

/* ---------- Produits ---------- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
    gap: clamp(1rem, 2.5vw, 1.6rem);
}

.card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 2px solid var(--card-line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.25s, opacity 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.card.dimmed {
    display: none;
}

.card.highlight {
    border-color: var(--gold);
}

.card-img {
    position: relative;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: linear-gradient(160deg, #fbf7ea, var(--green-soft));
    cursor: pointer;
}

.card-img img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.14));
}

.code-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--green);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 3px 9px;
    border-radius: 6px;
}

.card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem 1.1rem 1.1rem;
}

.card-body h3 {
    font-size: 1.1rem;
}

.tagline {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0.3rem 0 0.9rem;
}

.prices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: auto;
    margin-bottom: 0.9rem;
}

.price {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.45rem 0.6rem;
    background: var(--bg-soft);
}

.price span {
    display: block;
    font-size: 0.72rem;
    color: var(--muted);
}

.price b {
    font-size: clamp(0.92rem, 0.85rem + 0.3vw, 1.02rem);
    white-space: nowrap;
}

.price.best {
    border-color: var(--gold);
    background: #fdf8ea;
}

.price em {
    position: absolute;
    top: -9px;
    right: 6px;
    font-style: normal;
    font-size: 0.64rem;
    font-weight: 700;
    background: var(--gold);
    color: var(--ink);
    padding: 1px 6px;
    border-radius: 99px;
    white-space: nowrap;
}

.card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.card-actions .btn {
    padding: 0.6rem;
    font-size: 0.88rem;
}

.card-more {
    margin-top: 0.6rem;
    background: none;
    border: none;
    font: inherit;
    font-size: 0.85rem;
    color: var(--green);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    min-height: 32px;
}

.legal-note {
    margin-top: 1.5rem;
    font-size: 0.82rem;
    color: var(--muted);
    text-align: center;
}

/* ---------- Bienfaits ---------- */
.ox-intro {
    display: grid;
    gap: 1rem;
    margin-bottom: clamp(1.2rem, 3vw, 1.8rem);
}

.ox-why,
.ox-sod {
    border-radius: var(--radius);
    padding: clamp(1.3rem, 4vw, 2rem);
}

.ox-why {
    background: var(--bg-soft);
    border: 2px solid var(--card-line);
}

.ox-why h3,
.ox-sod h3 {
    font-size: clamp(1.1rem, 1rem + 0.6vw, 1.35rem);
    margin-bottom: 0.6rem;
}

.ox-why h3 i {
    color: var(--gold-dark);
    margin-right: 0.3rem;
}

.ox-why p {
    color: var(--muted);
}

.ox-why b {
    color: var(--ink);
}

.ox-sod {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, var(--green) 0%, var(--green-dark) 100%);
    color: #e4eee7;
}

.ox-sod::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -70px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(217, 165, 33, 0.35), transparent 70%);
    pointer-events: none;
}

.ox-sod > * {
    position: relative;
    z-index: 1;
}

.ox-sod h3 {
    color: #fff;
}

.ox-sod b {
    color: #fff;
}

.ox-sod p {
    margin-bottom: 1.1rem;
}

.ox-sod-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--gold);
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 99px;
    margin-bottom: 0.8rem;
}

.ox-sod .btn {
    width: 100%;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 205px), 1fr));
    gap: clamp(0.8rem, 2vw, 1.2rem);
}

.benefit {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 2px solid var(--card-line);
    border-radius: var(--radius);
    padding: 1.1rem 1.1rem 0.8rem;
}

.benefit-head {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.benefit-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--green-soft);
    color: var(--green);
    font-size: 1.15rem;
}

.benefit h3 {
    font-size: 1.05rem;
}

.benefit-code {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gold-dark);
}

.benefit-list,
.mini-benefits {
    list-style: none;
}

.benefit-list li,
.mini-benefits li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.4rem;
    font-size: 0.92rem;
}

.benefit-list li::before,
.mini-benefits li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.1em;
    font-size: 0.8rem;
    color: var(--green);
}

.benefit .card-more {
    margin-top: auto;
    align-self: flex-start;
}

/* Cartes produits : badge + mini bienfaits */
.ox-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--gold);
    color: var(--ink);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 99px;
}

.mini-benefits {
    margin: -0.3rem 0 0.9rem;
}

.mini-benefits li {
    font-size: 0.86rem;
    color: var(--muted);
}

/* Fiche produit : bloc bienfaits */
.benefits-block {
    background: var(--green-soft);
    border-radius: 12px;
    padding: 1rem 1.1rem 0.7rem;
}

.benefits-block h4 i {
    margin-right: 0.3rem;
}

.ox-inline {
    color: var(--gold-dark);
    font-weight: 600;
}

@media (min-width: 480px) {
    .ox-sod .btn {
        width: auto;
    }
}

@media (min-width: 860px) {
    .ox-intro {
        grid-template-columns: 1fr 1.25fr;
        align-items: stretch;
    }

    .ox-why {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* ---------- Commander ---------- */
.how-to {
    background: var(--bg-soft);
    border-radius: clamp(18px, 4vw, 28px);
    padding: clamp(2rem, 6vw, 3.5rem) clamp(1.2rem, 5vw, 3rem);
    text-align: center;
}

.steps {
    list-style: none;
    display: grid;
    gap: 1rem;
    margin-bottom: 1.8rem;
    text-align: left;
}

.steps li {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.steps span {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--green);
    color: #fff;
    font-weight: 700;
}

.how-to .btn {
    width: 100%;
}

/* ---------- Communauté ---------- */
.community {
    background: linear-gradient(145deg, var(--green) 0%, var(--green-dark) 100%);
    color: #e4eee7;
    border-radius: clamp(18px, 4vw, 28px);
    padding: clamp(1.8rem, 6vw, 3.5rem);
    position: relative;
    overflow: hidden;
}

.community::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(217, 165, 33, 0.35), transparent 70%);
    pointer-events: none;
}

.community > div {
    position: relative;
    z-index: 1;
    max-width: 640px;
}

.community h2 {
    color: #fff;
    margin-bottom: 0.9rem;
}

.community p {
    margin-bottom: 1rem;
}

.check-list {
    list-style: none;
    margin-bottom: 1rem;
}

.check-list li {
    position: relative;
    padding-left: 1.7rem;
    margin-bottom: 0.45rem;
}

.check-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--gold);
}

.fine {
    font-size: 0.8rem;
    opacity: 0.75;
}

.community .btn {
    width: 100%;
}

/* ---------- FAQ ---------- */
.faq {
    max-width: 780px;
    margin-bottom: var(--section);
}

.faq details {
    border-bottom: 1px solid var(--line);
}

.faq summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    min-height: 56px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    color: var(--gold-dark);
    font-size: 1.4rem;
}

.faq details[open] summary::after {
    content: "−";
}

.faq details p {
    color: var(--muted);
    padding-bottom: 1rem;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--ink);
    color: #b9c4bd;
    padding: clamp(2.5rem, 7vw, 3.5rem) 0 1.5rem;
    text-align: center;
}

.footer-grid {
    display: grid;
    gap: 1.5rem;
    justify-items: center;
}

.footer-grid p {
    margin-top: 0.5rem;
}

.footer a {
    color: #fff;
    text-decoration: none;
}

.footer i {
    color: var(--gold);
    margin-right: 0.3rem;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid #334139;
    font-size: 0.8rem;
    color: #8a978f;
}

.footer-bottom a {
    text-decoration: underline;
}

/* ---------- Overlays ---------- */
.overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    justify-content: flex-end;
    background: rgba(10, 20, 14, 0.55);
}

.overlay.open {
    display: flex;
}

.close-btn {
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
}

/* Fiche produit : « bottom sheet » sur mobile */
.overlay-center {
    align-items: flex-end;
}

.sheet {
    position: relative;
    width: 100%;
    max-height: 92vh;
    max-height: 92dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 0.5rem var(--gutter) 0;
    animation: sheetUp 0.28s ease-out;
}

.sheet > .close-btn {
    position: sticky;
    top: 0;
    float: right;
    z-index: 2;
    background: #fff;
    border-radius: 50%;
}

@keyframes sheetUp {
    from { transform: translateY(100%); }
}

.detail-head {
    text-align: center;
    padding-top: 0.5rem;
    margin-bottom: 1.2rem;
}

.detail-head img {
    max-width: 190px;
    margin: 0 auto 1rem;
}

.detail-head h3 {
    font-size: clamp(1.3rem, 1.1rem + 1vw, 1.6rem);
}

.detail-block {
    margin-bottom: 1.2rem;
}

.detail-block h4 {
    font-size: 0.95rem;
    color: var(--green);
    margin-bottom: 0.3rem;
}

.detail-block p {
    color: var(--muted);
    font-size: 0.93rem;
}

.tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tags li {
    background: var(--bg-soft);
    border-radius: 99px;
    padding: 3px 10px;
    font-size: 0.82rem;
}

.official summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--green);
    margin-bottom: 0.8rem;
}

.official img {
    border-radius: 10px;
    border: 1px solid var(--line);
}

.detail-actions {
    position: sticky;
    bottom: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin: 1.2rem calc(-1 * var(--gutter)) 0;
    padding: 0.8rem var(--gutter) calc(0.8rem + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--line);
}

/* Panier */
.cart {
    width: min(420px, 100%);
    height: 100%;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    background: #fff;
    animation: slideIn 0.28s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem var(--gutter);
    border-bottom: 1px solid var(--line);
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem var(--gutter);
}

.empty-msg {
    text-align: center;
    color: var(--muted);
    margin-top: 3rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 0.8rem;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line);
}

.cart-item img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    background: var(--bg-soft);
    border-radius: 8px;
    padding: 4px;
}

.cart-item h4 {
    font-size: 0.92rem;
}

.cart-item p {
    font-size: 0.85rem;
    color: var(--muted);
}

.qty {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 4px;
    font-size: 0.85rem;
}

.qty button {
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

.remove-item {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: #c0392b;
    cursor: pointer;
}

.cart-footer {
    padding: 1rem var(--gutter) calc(1rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: var(--bg-soft);
}

.cart-saving {
    text-align: right;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gold-dark);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 1rem;
}

/* ---------- Barre mobile ---------- */
.mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    display: flex;
    gap: 0.6rem;
    align-items: center;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 0.55rem max(var(--gutter), env(safe-area-inset-right)) calc(0.55rem + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
    /* Masquée tant que le panier est vide */
    transform: translateY(100%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s;
}

body.has-cart .mobile-bar {
    transform: none;
    visibility: visible;
}

.mobile-bar-cart {
    position: relative;
    flex: 1;
    min-width: 0;
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0 0.9rem;
    border: none;
    border-radius: 10px;
    background: var(--bg-soft);
    font: inherit;
    color: var(--green);
    cursor: pointer;
}

.mobile-bar-cart i {
    font-size: 1.2rem;
}

.mobile-bar-cart .badge {
    top: 4px;
    left: 24px;
    right: auto;
}

.mobile-bar-cart b {
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.whatsapp-float {
    display: none;
}

/* Confirmation (vider le panier) */
.overlay-confirm {
    align-items: center;
    justify-content: center;
    padding: var(--gutter);
}

.confirm {
    width: min(380px, 100%);
    background: #fff;
    border-radius: var(--radius);
    padding: 1.8rem 1.4rem 1.4rem;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    animation: pop 0.2s ease-out;
}

.confirm-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fdecea;
    color: #c0392b;
    font-size: 1.4rem;
}

.confirm h3 {
    font-size: 1.25rem;
    margin-bottom: 0.4rem;
}

.confirm p {
    color: var(--muted);
    font-size: 0.93rem;
    margin-bottom: 1.4rem;
}

.confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.btn-danger {
    background: #c0392b;
    color: #fff;
}

.btn-danger:hover {
    background: #a93226;
}

/* Validation « ajouté » */
.validation-check {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 5001;
    font-size: 4rem;
    color: var(--green);
    pointer-events: none;
    animation: pop-check 0.9s forwards;
}

@keyframes pop-check {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
    30% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0; }
}

/* ============================================================================
 * ÉLARGISSEMENTS
 * ============================================================================ */

/* Petits téléphones */
@media (max-width: 359px) {
    .prices,
    .card-actions,
    .detail-actions {
        grid-template-columns: 1fr;
    }

    .brand-name {
        font-size: 1.15rem;
    }
}

/* Grands téléphones */
@media (min-width: 480px) {
    .btn-row {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .how-to .btn,
    .community .btn {
        width: auto;
    }
}

/* Tablettes */
@media (min-width: 700px) {
    .stats {
        grid-template-columns: repeat(4, 1fr);
    }

    .steps {
        grid-template-columns: repeat(3, 1fr);
        text-align: center;
    }

    .steps li {
        flex-direction: column;
    }

    .goal-chips {
        flex-wrap: wrap;
        justify-content: center;
        overflow: visible;
        margin-left: 0;
        margin-right: 0;
        padding: 0;
    }

    .footer {
        text-align: left;
    }

    .footer-grid {
        grid-template-columns: 1fr auto;
        justify-items: start;
        align-items: center;
    }

    /* Fiche produit : fenêtre centrée */
    .overlay-center {
        align-items: center;
        justify-content: center;
        padding: 24px;
    }

    .sheet {
        max-width: 760px;
        max-height: 88vh;
        border-radius: var(--radius);
        padding: 1rem 2rem 0;
        animation: pop 0.2s ease-out;
    }

    .detail-head {
        display: grid;
        grid-template-columns: 200px 1fr;
        gap: 1.5rem;
        align-items: center;
        text-align: left;
    }

    .detail-head img {
        margin: 0;
    }

    .detail-actions {
        margin: 1.2rem -2rem 0;
        padding: 1rem 2rem;
    }
}

@keyframes pop {
    from { transform: scale(0.96); opacity: 0; }
}

/* Desktop */
@media (min-width: 960px) {
    :root {
        --header-h: 72px;
        --bar-h: 0px;
    }

    .menu-btn,
    .mobile-bar {
        display: none;
    }

    .nav-links {
        position: static;
        flex-direction: row;
        gap: 2rem;
        padding: 0;
        background: none;
        border: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-links a {
        padding: 0;
        border: none;
        font-size: 0.95rem;
        transition: color 0.2s;
    }

    .nav-links a:hover {
        color: var(--green);
    }

    .hero-grid {
        grid-template-columns: 1.05fr 1fr;
        gap: 3rem;
    }

    .hero-content {
        text-align: left;
    }

    .hero-content > p {
        margin-left: 0;
    }

    .btn-row {
        justify-content: flex-start;
    }

    .hero-visual {
        max-width: 520px;
    }

    .stats {
        margin-top: -2rem;
        max-width: 900px;
    }

    .whatsapp-float {
        position: fixed;
        right: 28px;
        bottom: 28px;
        z-index: 900;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--whatsapp);
        color: #fff;
        font-size: 1.7rem;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
        transition: transform 0.2s;
    }

    .whatsapp-float:hover {
        transform: scale(1.08);
    }
}

/* Téléphones à l'horizontale */
@media (max-height: 480px) and (orientation: landscape) {
    .hero-visual {
        display: none;
    }

    .sheet {
        max-height: 96vh;
    }
}

@media (hover: hover) {
    .card:hover {
        transform: translateY(-4px);
    }
}

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