/* ============================================================
   TEMPLATE MLM — STYLES PARTAGÉS (v4.4.3)
   ============================================================
   Corrige bugs :
   - #5 : DRY (CSS partagé au lieu de dupliquer ~440 lignes par page)
   - #1 : Fallbacks CSS via var(--x, default) au cas où :root est invalide
   - #3 : Menu hamburger fonctionnel (.nav__menu--open)
   - #11 : Hero aligné à gauche (cohérent)
   - #12 : Body padding mobile cohérent (80px)
   ============================================================ */

/* --- RESET & BASE --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--police-corps, 'Roboto', sans-serif);
    color: var(--texte, #333333);
    background: var(--fond-clair, #F8F9FA);
    line-height: 1.6;
    padding-top: var(--header-h, 64px);
    padding-bottom: 80px; /* v4.4.3 : 80px sur tous les pages (mobile-nav = 60px + marge) */
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
h1, h2, h3, h4, .nav__brand { font-family: var(--police-titres, 'Roboto', sans-serif); }

.skip-link {
    position: absolute; left: -999px; top: 0;
    background: var(--primaire, #2C3E50); color: white;
    padding: 0.5rem 1rem; z-index: 10000;
}
.skip-link:focus { left: 0; }

/* --- HEADER & NAV --- */
.trust-banner {
    background: var(--fond-fonce, #1A1A1A);
    color: rgba(255,255,255,0.8); font-size: 0.8rem;
    text-align: center; padding: 0.4rem 1rem;
}
.trust-banner span { margin: 0 1rem; white-space: nowrap; }
.trust-banner a { color: var(--or, #D4AF37); font-weight: 700; }

.header {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--header-h, 64px);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border, #EEEEEE);
    display: flex; align-items: center;
}
.nav {
    display: flex; justify-content: space-between; align-items: center;
    width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1.5rem;
}
.nav__brand {
    font-size: 1.5rem; font-weight: 800;
    color: var(--primaire, #2C3E50);
    display: flex; align-items: center; gap: 0.5rem;
    text-decoration: none;
}
.nav__brand span { color: var(--accent, var(--primaire, #2C3E50)); }
.nav__logo {
    max-height: 40px; width: auto;
    border-radius: 4px; object-fit: contain;
}
.nav__menu { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav__menu a {
    font-weight: 600; color: var(--texte, #333333);
    transition: color var(--transition, 0.3s);
    position: relative; padding: 0.5rem 0;
}
.nav__menu a:hover { color: var(--accent, var(--primaire, #2C3E50)); }
.nav__menu a::after {
    content: ''; position: absolute; bottom: -5px; left: 0;
    width: 0; height: 2px;
    background: var(--accent, var(--primaire, #2C3E50));
    transition: width var(--transition, 0.3s);
}
.nav__menu a:hover::after, .nav__menu a.active::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: 1.5rem; }
.icon-wrap { position: relative; display: inline-flex; }
.cart-link { font-size: 1.2rem; color: var(--primaire, #2C3E50); }
.cart-badge {
    position: absolute; top: -8px; right: -8px;
    background: var(--accent, var(--primaire, #2C3E50));
    color: white; font-size: 0.7rem;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold;
    min-width: 18px; padding: 0 4px;
}
.nav__toggle {
    display: none; background: none; border: none;
    font-size: 1.5rem; cursor: pointer;
    color: var(--primaire, #2C3E50);
}

/* --- BOUTONS --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 0.5rem; padding: 1rem 1.5rem;
    border-radius: var(--radius-btn, 50px);
    font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px; cursor: pointer;
    transition: all var(--transition, 0.3s);
    border: none; font-size: 0.9rem;
    text-decoration: none;
}
.btn--primaire {
    background: var(--primaire, #2C3E50); color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.btn--primaire:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    background: var(--accent, var(--primaire, #2C3E50));
}
.btn--or {
    background: var(--or, #D4AF37);
    color: var(--fond-fonce, #1A1A1A);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}
.btn--or:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}
.btn--whatsapp {
    background: var(--whatsapp, #25D366); color: white;
}
.btn--whatsapp:hover {
    background: #1da851; transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}
.btn--outline-white {
    background: transparent; color: white; border: 2px solid white;
}
.btn--outline-white:hover { background: white; color: var(--fond-fonce, #1A1A1A); }
.btn--ghost-gold {
    background: transparent;
    color: var(--primaire, #2C3E50);
    border: 2px solid var(--or, #D4AF37);
    padding: 0.8rem 1.5rem;
}
.btn--ghost-gold:hover {
    background: var(--or, #D4AF37);
    color: var(--fond-fonce, #1A1A1A);
}
.btn--outline {
    background: transparent;
    color: var(--primaire, #2C3E50);
    border: 2px solid var(--primaire, #2C3E50);
}
.btn--outline:hover { background: var(--primaire, #2C3E50); color: white; }
.btn--add {
    background: var(--primaire, #2C3E50); color: white;
    border: none; padding: 0.6rem 1rem;
    border-radius: var(--radius-btn, 50px);
    font-weight: 600; font-size: 0.8rem;
    cursor: pointer;
    transition: background var(--transition, 0.3s);
    display: inline-flex; align-items: center; gap: 0.3rem;
}
.btn--add:hover { background: var(--accent, var(--primaire, #2C3E50)); }

/* --- HERO --- */
.hero {
    position: relative; height: 70vh; min-height: 500px;
    display: flex; align-items: center; justify-content: center;
    color: white; overflow: hidden;
    text-align: center; /* BUGFIX : incohérent avec .hero-business (centré) — corrigé */
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.4));
    z-index: 1;
}
.hero__bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; z-index: 0;
}
.hero__content {
    position: relative; z-index: 2;
    max-width: 800px; padding: 0 2rem;
    margin-left: auto; margin-right: auto;
    animation: fadeInUp 1s ease;
}
.hero__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800; margin-bottom: 1rem; line-height: 1.1;
}
.hero__text {
    font-size: 1.2rem; margin-bottom: 2rem;
    opacity: 0.9; text-align: center;
}

/* Hero business (page opportunite) */
.hero-business {
    position: relative; min-height: 600px; height: 80vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: white; overflow: hidden;
    background: var(--fond-fonce, #1A1A1A);
}
.hero-business::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.6));
    z-index: 1;
}
.hero-business__bg {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 0; opacity: 0.5;
}
.hero-business__content {
    position: relative; z-index: 2; max-width: 900px;
    padding: 0 2rem; animation: fadeInUp 1s ease;
}
.hero-business__badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--or, #D4AF37), #F1C40F);
    color: var(--fond-fonce, #1A1A1A);
    padding: 0.5rem 1.5rem; border-radius: 50px;
    font-weight: 700; text-transform: uppercase;
    font-size: 0.8rem; letter-spacing: 1px; margin-bottom: 1.5rem;
}
.hero-business__title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800; line-height: 1.1; margin-bottom: 1.5rem;
    color: var(--or, #D4AF37);
}
.hero-business__text {
    font-size: 1.3rem; margin-bottom: 2.5rem; opacity: 0.9;
    max-width: 700px; margin-left: auto; margin-right: auto;
}

/* --- TRUST STRIP --- */
.trust-strip { background: white; padding: 1.5rem 0; border-bottom: 1px solid var(--border, #EEEEEE); }
.trust-strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.trust-strip-item {
    display: flex; flex-direction: column; align-items: center;
    gap: 0.5rem; font-size: 0.9rem; font-weight: 600;
    color: var(--texte, #333333);
}
.trust-strip-item i { font-size: 1.5rem; color: var(--primaire, #2C3E50); }

/* --- TOOLBAR (Filtres & Recherche) --- */
.catalogue-header { padding: 3rem 0 1rem; }
.toolbar {
    position: sticky; top: var(--header-h, 64px);
    background: rgba(248, 249, 250, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 90; padding: 1rem 0; margin-bottom: 2rem;
    border-top: 1px solid var(--border, #EEEEEE);
    border-bottom: 1px solid var(--border, #EEEEEE);
    display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
}
.search-box { position: relative; flex: 1; min-width: 200px; }
.search-box input {
    width: 100%; padding: 0.8rem 1rem 0.8rem 2.8rem;
    border: 1px solid var(--border, #EEEEEE);
    border-radius: var(--radius-btn, 50px);
    font-size: 1rem; outline: none; background: white;
}
.search-box i {
    position: absolute; left: 1.2rem; top: 50%;
    transform: translateY(-50%); color: var(--gris, #777777);
}
.filters-wrapper { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.filter-btn {
    padding: 0.6rem 1.2rem; border: 1px solid var(--border, #EEEEEE);
    background: white; border-radius: var(--radius-btn, 50px);
    cursor: pointer; font-weight: 600; font-size: 0.85rem;
    transition: all 0.3s;
}
.filter-btn:hover { border-color: var(--primaire, #2C3E50); }
.filter-btn.active {
    background: var(--primaire, #2C3E50); color: white;
    border-color: var(--primaire, #2C3E50);
}

/* --- GRILLE PRODUITS --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}
.product-card {
    background: white;
    border-radius: var(--radius-card, 12px);
    overflow: hidden;
    box-shadow: var(--shadow, 0 10px 30px rgba(0,0,0,0.08));
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex; flex-direction: column;
    position: relative;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover, 0 15px 40px rgba(0,0,0,0.12));
}
.product-card.hidden { display: none; }
.product-card__img-wrap {
    position: relative; aspect-ratio: 1/1; overflow: hidden;
    background: var(--fond-clair, #F8F9FA);
    display: block;
}
.product-card__img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card:hover .product-card__img { transform: scale(1.05); }
.product-card__badge {
    position: absolute; top: 10px; left: 10px;
    background: var(--danger, #E74C3C); color: white;
    padding: 0.2rem 0.5rem; border-radius: 4px;
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
}
.product-card__body {
    padding: 1rem; flex: 1;
    display: flex; flex-direction: column;
}
.product-card__cat {
    font-size: 0.7rem;
    color: var(--accent, var(--primaire, #2C3E50));
    text-transform: uppercase; font-weight: 700;
    margin-bottom: 0.3rem;
}
.product-card__title {
    font-size: 1rem; font-weight: 600; margin-bottom: 0.3rem;
    color: var(--texte, #333333);
}
.product-card__rating {
    font-size: 0.8rem; color: #ffc107; margin-bottom: 0.5rem;
}
.product-card__desc {
    font-size: 0.85rem; color: var(--gris, #777777);
    margin-bottom: 1rem; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.product-card__footer {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: auto; padding-top: 0.5rem;
    border-top: 1px solid var(--border, #EEEEEE);
}
.product-card__price {
    font-size: 1.2rem; font-weight: 800;
    color: var(--primaire, #2C3E50);
}
.product-card__btn {
    background: var(--primaire, #2C3E50); color: white;
    border: none; width: 35px; height: 35px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background var(--transition, 0.3s);
}
.product-card__btn:hover { background: var(--accent, var(--primaire, #2C3E50)); }

/* --- UPSELL INTERSTITIAL (v4.4.3 : HORS grille produits) --- */
.upsell-section { margin: 3rem 0; }
.upsell-interstitial {
    background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.5));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid var(--or, #D4AF37);
    border-radius: var(--radius-card, 12px);
    padding: 2.5rem; text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 1rem;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
}
.upsell-interstitial h3 {
    font-size: 1.8rem;
    color: var(--primaire, #2C3E50);
    margin-bottom: 0.5rem;
}
.upsell-interstitial p {
    color: var(--texte, #333333);
    max-width: 500px; margin-bottom: 1rem;
}

/* --- EMPTY STATE --- */
.empty-state {
    text-align: center; padding: 4rem 1rem;
    background: white;
    border-radius: var(--radius-card, 12px);
    box-shadow: var(--shadow, 0 10px 30px rgba(0,0,0,0.08));
    display: none;
}
.empty-state i { font-size: 4rem; color: var(--border, #EEEEEE); margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.empty-state p { color: var(--gris, #777777); margin-bottom: 2rem; }

/* --- FOOTER & MOBILE NAV --- */
.footer {
    background: var(--fond-fonce, #1A1A1A);
    color: rgba(255,255,255,0.7);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem; margin-bottom: 3rem;
}
.footer h4 {
    color: white; margin-bottom: 1.5rem;
    font-size: 1.1rem;
}
.footer ul { list-style: none; padding: 0; }
.footer ul li { margin-bottom: 0.8rem; }
.footer ul li a { transition: color var(--transition, 0.3s); }
.footer ul li a:hover { color: var(--or, #D4AF37); }
.footer-bottom {
    text-align: center; padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
}
.mobile-nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    display: flex; justify-content: space-around;
    padding: 0.5rem 0; z-index: 1000;
    border-top: 1px solid var(--border, #EEEEEE);
}
.mobile-nav-item {
    display: flex; flex-direction: column; align-items: center;
    gap: 0.2rem; font-size: 0.7rem;
    color: var(--gris, #777777); cursor: pointer;
    padding: 0.5rem; flex: 1; text-decoration: none;
    transition: color var(--transition, 0.3s);
}
.mobile-nav-item.active { color: var(--primaire, #2C3E50); }
.mobile-nav-item i { font-size: 1.2rem; }
.wa-float {
    position: fixed; bottom: 80px; right: 20px;
    width: 55px; height: 55px;
    background: var(--whatsapp, #25D366); color: white;
    border-radius: 50%; display: flex;
    align-items: center; justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
    z-index: 999; animation: pulse 2s infinite;
    text-decoration: none;
}
.toast {
    position: fixed; bottom: 100px; left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--fond-fonce, #1A1A1A); color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-btn, 50px);
    font-size: 0.9rem; z-index: 2000;
    opacity: 0; transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.toast.show {
    transform: translateX(-50%) translateY(0); opacity: 1;
}

/* --- SECTIONS (opportunite) --- */
.section { padding: 5rem 0; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-title {
    font-size: 2.5rem; font-weight: 700;
    color: var(--primaire, #2C3E50);
    margin-bottom: 1rem;
}
.section-title span { color: var(--or, #D4AF37); }
.section-subtitle {
    color: var(--gris, #777777);
    max-width: 600px; margin: 0 auto;
    font-size: 1.1rem;
}
.page-hero {
    background: white; padding: 3rem 0 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border, #EEEEEE);
}
.page-hero h1 {
    font-size: 2.5rem;
    color: var(--primaire, #2C3E50);
    margin-bottom: 0.5rem;
}
.page-hero p { color: var(--gris, #777777); max-width: 600px; margin: 0 auto; }
.breadcrumb { padding: 1.5rem 0; font-size: 0.9rem; color: var(--gris, #777777); }
.breadcrumb a { color: var(--accent, var(--primaire, #2C3E50)); }

/* Stats bar */
.stats-bar {
    background: var(--primaire, #2C3E50); color: white;
    padding: 3rem 0; transform: translateY(-50px);
    z-index: 10; position: relative;
    box-shadow: var(--shadow, 0 10px 30px rgba(0,0,0,0.08));
    margin-bottom: -50px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem; text-align: center;
}
.stat-item .number {
    font-size: 3rem; font-weight: 800;
    color: var(--or, #D4AF37);
    font-family: var(--police-titres, 'Roboto', sans-serif);
}
.stat-item .label {
    font-size: 0.9rem; text-transform: uppercase;
    letter-spacing: 1px; margin-top: 0.5rem;
}

/* Avantages */
.avantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.avantage-card {
    background: white; padding: 2.5rem;
    border-radius: var(--radius-card, 12px);
    box-shadow: var(--shadow, 0 10px 30px rgba(0,0,0,0.08));
    text-align: center;
    transition: transform var(--transition, 0.3s);
    border-top: 4px solid var(--or, #D4AF37);
}
.avantage-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover, 0 15px 40px rgba(0,0,0,0.12));
}
.avantage-icon {
    width: 80px; height: 80px; margin: 0 auto 1.5rem;
    background: rgba(212, 175, 55, 0.1);
    color: var(--or, #D4AF37);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
}
.avantage-title {
    font-size: 1.3rem; font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--primaire, #2C3E50);
}
.avantage-desc { color: var(--gris, #777777); }

/* Étapes */
.etapes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem; position: relative;
}
.etape-card { text-align: center; position: relative; }
.etape-number {
    width: 60px; height: 60px;
    background: var(--primaire, #2C3E50);
    color: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: 800;
    margin: 0 auto 1.5rem;
    border: 4px solid white;
    box-shadow: var(--shadow, 0 10px 30px rgba(0,0,0,0.08));
    position: relative; z-index: 2;
}
.etape-title {
    font-size: 1.2rem; font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primaire, #2C3E50);
}
.etape-desc { color: var(--gris, #777777); }

/* Témoignages */
.testimonials { background: white; }
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.testimonial-card {
    background: var(--fond-clair, #F8F9FA);
    padding: 2rem;
    border-radius: var(--radius-card, 12px);
    box-shadow: var(--shadow, 0 10px 30px rgba(0,0,0,0.08));
    position: relative;
    border-left: 4px solid var(--or, #D4AF37);
}
.testimonial-card::before {
    content: '\201C'; font-size: 5rem;
    color: var(--border, #EEEEEE);
    position: absolute; top: 10px; left: 20px;
    font-family: serif; z-index: 0;
}
.testimonial-stars {
    color: #ffc107; margin-bottom: 1rem;
    position: relative; z-index: 1; font-weight: bold;
}
.testimonial-text {
    margin-bottom: 1.5rem; font-style: italic;
    position: relative; z-index: 1;
}
.testimonial-author {
    display: flex; align-items: center; gap: 1rem;
    position: relative; z-index: 1;
}
.author-avatar {
    width: 45px; height: 45px; border-radius: 50%;
    background: var(--primaire, #2C3E50); color: white;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
}
.author-name { font-weight: 600; }

/* CTA Section */
.cta-section {
    background: var(--fond-fonce, #1A1A1A);
    color: white; text-align: center;
    padding: 6rem 0; position: relative; overflow: hidden;
}
.cta-section::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
}
.cta-content {
    position: relative; z-index: 1;
    max-width: 700px; margin: 0 auto;
}
.cta-section h2 {
    font-size: 2.5rem; margin-bottom: 1rem;
    color: var(--or, #D4AF37);
}
.cta-section p {
    font-size: 1.2rem; margin-bottom: 2rem; opacity: 0.9;
}

/* --- PRODUCT DETAIL (produit-nom.html) --- */
.product-layout {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 3rem; margin-bottom: 4rem;
}
.product__gallery {
    position: sticky; top: calc(var(--header-h, 64px) + 20px);
    height: fit-content;
}
.gallery__main {
    background: white;
    border-radius: var(--radius-card, 12px);
    overflow: hidden;
    box-shadow: var(--shadow, 0 10px 30px rgba(0,0,0,0.08));
    aspect-ratio: 1/1; margin-bottom: 1rem;
    position: relative; cursor: zoom-in;
}
.gallery__main-img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.2s ease-out;
    transform-origin: center center;
}
.gallery__thumbs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.gallery__thumb {
    width: 70px; height: 70px;
    border-radius: 8px; overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--border, #EEEEEE);
    transition: border-color 0.3s;
}
.gallery__thumb.active, .gallery__thumb:hover { border-color: var(--primaire, #2C3E50); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }

.product__info { display: flex; flex-direction: column; }
.product__cat {
    font-size: 0.8rem;
    color: var(--accent, var(--primaire, #2C3E50));
    text-transform: uppercase; font-weight: 700;
    margin-bottom: 0.5rem;
}
.product__title {
    font-size: 2.2rem; font-weight: 800;
    color: var(--primaire, #2C3E50);
    margin-bottom: 0.5rem; line-height: 1.2;
}
.product__rating {
    display: flex; align-items: center;
    gap: 0.5rem; margin-bottom: 1rem;
}
.stars { color: #ffc107; font-size: 1.1rem; }
.rating-text { font-size: 0.9rem; color: var(--gris, #777777); }
.product__price {
    font-size: 2.2rem; font-weight: 800;
    color: var(--texte, #333333);
    margin-bottom: 1.5rem;
    display: flex; align-items: baseline; gap: 1rem;
}
.product__price span {
    font-size: 1rem; color: var(--gris, #777777); font-weight: 400;
}
.urgency-box {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger, #E74C3C);
    padding: 0.5rem 1rem; border-radius: 8px;
    font-weight: 700; font-size: 0.9rem;
    display: inline-block; margin-bottom: 1rem;
}
.delivery-box {
    display: flex; align-items: center; gap: 0.5rem;
    color: var(--whatsapp, #25D366);
    font-weight: 600; font-size: 0.95rem;
    margin-bottom: 1.5rem;
}
.trust-badges {
    display: flex; flex-direction: column;
    gap: 0.8rem; margin-bottom: 2rem;
    padding: 1.5rem; background: white;
    border-radius: var(--radius-card, 12px);
    border: 1px solid var(--border, #EEEEEE);
}
.trust-item {
    display: flex; align-items: center; gap: 1rem; font-size: 0.9rem;
}
.trust-item i {
    width: 20px; color: var(--whatsapp, #25D366); font-size: 1.1rem;
}
.purchase-row {
    display: flex; gap: 1rem; align-items: center;
    margin-bottom: 2rem;
}
.qty-selector {
    display: flex; align-items: center;
    border: 2px solid var(--border, #EEEEEE);
    border-radius: var(--radius-btn, 50px);
    overflow: hidden; height: 54px;
}
.qty-btn {
    background: var(--fond-clair, #F8F9FA); border: none;
    width: 45px; height: 100%; cursor: pointer;
    font-size: 1.2rem; font-weight: bold;
    transition: background 0.2s;
}
.qty-btn:hover { background: var(--border, #EEEEEE); }
.qty-val {
    width: 45px; text-align: center;
    font-weight: 700; font-size: 1.1rem;
    border: none; outline: none;
}

/* Onglets */
.product__tabs { margin-bottom: 2rem; clear: both; }
.tabs__nav {
    display: flex;
    border-bottom: 2px solid var(--border, #EEEEEE);
    margin-bottom: 1.5rem;
}
.tabs__btn {
    padding: 0.8rem 1.5rem; background: none; border: none;
    font-family: var(--police-titres, 'Roboto', sans-serif);
    font-size: 1rem; font-weight: 600;
    color: var(--gris, #777777); cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px; transition: all 0.3s;
}
.tabs__btn.active {
    color: var(--primaire, #2C3E50);
    border-bottom-color: var(--accent, var(--primaire, #2C3E50));
}
.tabs__content {
    display: none; line-height: 1.8;
    color: var(--texte, #333333); padding-top: 1rem;
}
.tabs__content.active { display: block; animation: fadeIn 0.5s ease; }
.tabs__content h2, .tabs__content h3 {
    color: var(--primaire, #2C3E50);
    margin: 1.5rem 0 0.5rem;
}
.tabs__content ul { padding-left: 2rem; margin-bottom: 1rem; }

/* Sticky Bar */
.sticky-bar {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: white; padding: 0.8rem 1rem;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.1);
    display: none;
    justify-content: space-between; align-items: center;
    z-index: 999;
    border-top: 1px solid var(--border, #EEEEEE);
}
.sticky-bar__info { display: flex; flex-direction: column; }
.sticky-bar__name {
    font-weight: 600; font-size: 0.95rem;
    white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis; max-width: 200px;
}
.sticky-bar__price {
    font-weight: 800;
    color: var(--accent, var(--primaire, #2C3E50));
    font-size: 1.1rem;
}
.sticky-bar .btn {
    padding: 0.8rem 1.5rem; flex: none; height: 44px;
}

.related-section { margin-top: 4rem; }
.related-section .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* --- PANIER --- */
.checkout-layout {
    display: grid; grid-template-columns: 1.5fr 1fr;
    gap: 2rem; align-items: start;
}
.cart-items-section {
    background: white; padding: 1.5rem;
    border-radius: var(--radius-card, 12px);
    box-shadow: var(--shadow, 0 10px 30px rgba(0,0,0,0.08));
}
.cart-item {
    display: flex; gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border, #EEEEEE);
    position: relative;
}
.cart-item:last-child { border-bottom: none; }
.cart-item__img {
    width: 80px; height: 80px; object-fit: cover;
    border-radius: 8px; background: var(--fond-clair, #F8F9FA);
}
.cart-item__details { flex: 1; }
.cart-item__name { font-weight: 600; margin-bottom: 0.5rem; }
.cart-item__price {
    color: var(--accent, var(--primaire, #2C3E50));
    font-weight: 700; font-size: 0.9rem;
}
.cart-item__actions {
    display: flex; align-items: center; gap: 1rem;
    margin-top: 0.5rem;
}
.cart-qty-selector {
    display: flex; align-items: center;
    border: 1px solid var(--border, #EEEEEE);
    border-radius: 20px; overflow: hidden;
}
.cart-qty-btn {
    background: var(--fond-clair, #F8F9FA); border: none;
    width: 25px; height: 25px; cursor: pointer;
    font-weight: bold; transition: background var(--transition, 0.3s);
}
.cart-qty-btn:hover { background: var(--border, #EEEEEE); }
.cart-qty-val {
    padding: 0 10px; font-weight: 600; font-size: 0.9rem;
}
.remove-btn {
    color: var(--gris, #777777); background: none; border: none;
    cursor: pointer; font-size: 0.85rem;
    transition: color var(--transition, 0.3s);
}
.remove-btn:hover { color: var(--danger, #E74C3C); }

/* Form */
.form-group { margin-bottom: 1rem; }
.form-group label {
    display: block; margin-bottom: 0.5rem;
    font-weight: 600; font-size: 0.9rem;
}
.form-control {
    width: 100%; padding: 0.8rem 1rem;
    border: 1px solid var(--border, #EEEEEE);
    border-radius: 8px;
    font-family: inherit; font-size: 1rem;
    transition: border var(--transition, 0.3s);
    outline: none;
}
.form-control:focus { border-color: var(--primaire, #2C3E50); }

/* Summary */
.checkout-summary-section {
    position: sticky; top: 80px;
    background: white; padding: 1.5rem;
    border-radius: var(--radius-card, 12px);
    box-shadow: var(--shadow, 0 10px 30px rgba(0,0,0,0.08));
}
.summary-title {
    font-size: 1.2rem; font-weight: 700;
    margin-bottom: 1rem; padding-bottom: 1rem;
    border-bottom: 1px solid var(--border, #EEEEEE);
}
.summary-row {
    display: flex; justify-content: space-between;
    margin-bottom: 0.8rem; font-size: 0.95rem;
}
.summary-total {
    display: flex; justify-content: space-between;
    font-size: 1.3rem; font-weight: 800;
    color: var(--primaire, #2C3E50);
    margin-top: 1rem; padding-top: 1rem;
    border-top: 2px solid var(--fond-clair, #F8F9FA);
}
.checkout-summary-section .btn {
    width: 100%; margin-top: 1.5rem;
}

/* --- CONTACT / PROFIL --- */
.profil { max-width: 680px; margin: 3rem auto; padding: 0 1.5rem; }
.profil__carte {
    background: white;
    border-radius: var(--radius-card, 12px);
    padding: 3rem 2rem; text-align: center;
    box-shadow: var(--shadow, 0 10px 30px rgba(0,0,0,0.08));
    border: 1px solid var(--border, #EEEEEE);
}
.profil__photo-wrapper {
    position: relative; display: inline-block;
    margin-bottom: 1.5rem;
}
.profil__photo-wrapper::before {
    content: ''; position: absolute; inset: -12px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212,175,55,.1) 0%, transparent 70%);
    z-index: -1;
}
.profil__photo-placeholder {
    width: 140px; height: 140px; border-radius: 50%;
    background: var(--fond-moyen, #E9ECEF);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--police-titres, 'Roboto', sans-serif);
    font-size: 3rem; font-weight: 700;
    color: var(--primaire, #2C3E50);
    border: 4px solid white;
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
}
.profil__pastille {
    position: absolute; bottom: 6px; right: 6px;
    width: 36px; height: 36px;
    background: var(--whatsapp, #25D366);
    border-radius: 50%;
    border: 3px solid white;
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 900; font-size: .9rem;
}
.profil__nom {
    font-family: var(--police-titres, 'Roboto', sans-serif);
    font-size: 1.6rem; font-weight: 700;
    margin-bottom: .3rem;
}
.profil__localisation {
    font-size: .9rem; color: var(--gris, #777777);
    margin-bottom: .5rem;
}
.profil__badge {
    display: inline-flex; align-items: center; gap: .4rem;
    background: linear-gradient(135deg, rgba(212,175,55,.12), rgba(212,175,55,.06));
    color: var(--primaire, #2C3E50);
    padding: .35rem 1rem;
    border-radius: 50px;
    font-size: .8rem; font-weight: 600;
    border: 1px solid rgba(212,175,55,.25);
    margin-bottom: 1.5rem;
}
.profil__separateur {
    width: 60px; height: 3px;
    background: var(--accent, var(--primaire, #2C3E50));
    margin: 0 auto 1.5rem;
    border-radius: 3px; opacity: .5;
}
.profil__histoire {
    text-align: left; line-height: 1.8;
    color: var(--texte, #333333);
    max-width: 520px;
    margin: 0 auto 1.5rem; font-size: .95rem;
}
.profil__citation {
    font-family: var(--police-titres, 'Roboto', sans-serif);
    font-size: 1.1rem; font-style: italic;
    color: var(--primaire, #2C3E50);
    max-width: 450px; margin: 0 auto 1.5rem;
    position: relative; padding: 0 1rem;
}
.profil__citation::before {
    content: '"'; font-size: 4rem;
    color: var(--accent, var(--primaire, #2C3E50));
    opacity: .3; position: absolute;
    top: -1.5rem; left: -.5rem;
}
.profil__actions {
    display: flex; gap: 1rem;
    justify-content: center; flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.profil__double-cta {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1rem; max-width: 500px;
    margin: 1.5rem auto 0;
}
.double-cta-card {
    background: var(--fond-clair, #F8F9FA);
    padding: 1.2rem;
    border-radius: var(--radius-card, 12px);
    text-align: center; text-decoration: none;
    color: inherit;
    transition: all var(--transition, 0.3s);
}
.double-cta-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow, 0 10px 30px rgba(0,0,0,0.08));
}
.double-cta-card__icone { font-size: 1.8rem; margin-bottom: .5rem; }
.double-cta-card__titre { font-weight: 600; font-size: .9rem; }

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --- MENU HAMBURGER MOBILE (v4.4.3 : bugfix #3) --- */
.nav__menu-overlay {
    display: none;
    position: fixed;
    top: var(--header-h, 64px);
    left: 0; right: 0;
    background: white;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    z-index: 999;
    padding: 1rem 1.5rem;
}
.nav__menu-overlay.open { display: block; }
.nav__menu-overlay ul {
    list-style: none;
    padding: 0; margin: 0;
}
.nav__menu-overlay li { margin: 0; }
.nav__menu-overlay a {
    display: block;
    padding: 0.8rem 0;
    font-weight: 600;
    color: var(--texte, #333333);
    border-bottom: 1px solid var(--border, #EEEEEE);
    transition: color var(--transition, 0.3s);
}
.nav__menu-overlay a:hover { color: var(--accent, var(--primaire, #2C3E50)); }
.nav__menu-overlay a:last-child { border-bottom: none; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .nav__menu { display: none; } /* caché, le toggle ouvre l'overlay */
    .nav__toggle { display: block; }
    .trust-banner { display: none; }
    .hero { height: 60vh; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .trust-strip-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .toolbar { flex-direction: column; align-items: stretch; }
    .product-layout { grid-template-columns: 1fr; gap: 1.5rem; }
    .product__gallery { position: static; }
    .sticky-bar { display: flex; bottom: 60px; }
    body { padding-bottom: 120px; }
    .tabs__btn { padding: 0.8rem 1rem; font-size: 0.9rem; }
    .product__title { font-size: 1.8rem; }
    .product__price { font-size: 1.8rem; }
    .checkout-layout { grid-template-columns: 1fr; }
    .checkout-summary-section { position: static; }
    .stats-bar { transform: none; margin-bottom: 0; }
    .stat-item .number { font-size: 2.5rem; }
    .hero-business { height: 70vh; }
    .profil__carte { padding: 2rem 1.2rem; }
    .profil__double-cta { grid-template-columns: 1fr; }
}

/* ============================================
   CORRECTION MOBILE : Hero non recouvert
   ============================================ */

/* Ajuster le padding-top du main pour compenser le header fixe */
@media (max-width: 768px) {
    /* Le header fixe fait 64px, mais il y a aussi la trust-banner (40px) 
       et la mobile-nav (60px en bas) */
    body {
        padding-top: 104px; /* 64px header + 40px trust-banner */
        padding-bottom: 70px; /* espace pour la mobile-nav */
    }
    
    /* Hero : supprimer le margin-top négatif qui le fait passer sous le header */
    .hero {
        margin-top: 0 !important;
        min-height: 60vh !important;
        display: flex;
        align-items: center;
    }
    
    /* Ajuster le contenu du hero pour ne pas toucher les bords */
    .hero__content {
        padding: 2rem 1.5rem !important;
        text-align: center;
    }
    
    /* Réduire la taille du titre sur mobile */
    .hero__title {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
    }
    
    /* Texte plus petit */
    .hero__text h2 {
        font-size: 1.1rem !important;
    }
    
    .hero__text p {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
    }
    
    /* Boutons plus compacts */
    .hero .btn {
        padding: 0.6rem 1.2rem !important;
        font-size: 0.85rem !important;
    }
}

/* Ajustement pour les très petits écrans */
@media (max-width: 480px) {
    .hero {
        min-height: 50vh !important;
    }
    
    .hero__title {
        font-size: 1.5rem !important;
    }
    
    .hero__content {
        padding: 1.5rem 1rem !important;
    }
}
