/* ==========================================================================
 * A Cosmé Z - Main CSS
 * Source : maquette HTML validée
 * @package acomeze
 * ========================================================================== */

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { font-family: 'Inter', sans-serif; }
body { margin: 0; background: #fff; color: #1c1917; font-size: 15px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; height: auto; display: block; }

:root {
    --green: #0fd374;
    --green-dark: #0bb863;
    --green-darker: #047857;
    --red: #dc2626;
    --orange: #d97706;
    --pink: #db2777;
    --purple: #7c3aed;
    --lime: #65a30d;
    --orange-2: #ea580c;
    --slate: #475569;
    --gray-100: #f5f5f4;
    --gray-200: #e7e5e4;
    --gray-300: #d6d3d1;
    --gray-400: #a8a29e;
    --gray-500: #78716c;
    --gray-600: #57534e;
    --gray-900: #1c1917;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 1024px) { .wrap { padding: 0 32px; } }

/* ==========================================================================
   COMPOSANTS
   ========================================================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; padding: 10px 20px; border-radius: 8px;
    font-weight: 600; font-size: 14px; line-height: 1;
    transition: all .2s; cursor: pointer; border: none;
}
.btn-secondary { background: var(--green); color: white; }
.btn-secondary:hover { background: var(--green-dark); }
.btn-default { background: white; color: #1c1917; border: 1px solid var(--gray-200); }

.badge {
    display: inline-flex; align-items: center; padding: 4px 8px;
    border-radius: 6px; font-size: 12px; font-weight: 600; line-height: 1;
}
.badge-blue { background: #3b82f6; color: white; }
.badge-red { background: var(--red); color: white; }

.h1 { font-size: 24px; font-weight: 700; line-height: 1.2; margin: 0; }
.h1 > span:first-child {
    display: block; font-size: 14px; font-weight: 600; color: var(--green);
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px;
}
@media (min-width: 768px) { .h1 { font-size: 30px; } }

.star { color: #fbbf24; font-size: 14px; }

/* Logo */
.logo-text {
    display: flex; align-items: baseline; gap: 2px;
    font-weight: 800; font-size: 24px; line-height: 1;
}
.logo-a, .logo-z { color: var(--green); font-size: 32px; font-weight: 900; }
.logo-cosme { color: var(--gray-900); font-style: italic; font-weight: 700; margin: 0 4px; }
.logo-baseline {
    font-size: 9px; color: var(--gray-500); text-transform: uppercase;
    letter-spacing: 1.5px; margin-top: 2px; font-weight: 500;
}
@media (min-width: 768px) {
    .logo-text { font-size: 28px; }
    .logo-a, .logo-z { font-size: 38px; }
}

/* Drapeau France */
.flag-fr {
    width: 24px; height: 24px; border-radius: 50%; overflow: hidden;
    display: inline-flex; border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
}
.flag-fr > div { width: 33.33%; height: 100%; }
.flag-fr .b { background: #0055a4; }
.flag-fr .w { background: white; }
.flag-fr .r { background: #ef4135; }

/* Drapeau Algérie */
.flag-dz {
    width: 32px; height: 24px; border-radius: 4px; overflow: hidden;
    display: flex; border: 1px solid var(--gray-200); flex-shrink: 0;
}
.flag-dz .green { width: 50%; background: #006233; }
.flag-dz .white {
    width: 50%; background: white; display: flex;
    align-items: center; justify-content: center;
    color: #d21034; font-size: 16px; line-height: 1;
}

/* ==========================================================================
   1. TOP BAR
   ========================================================================== */
.topbar {
    background: var(--green-darker); color: white; font-size: 13px;
    padding: 6px 0; display: none;
}
@media (min-width: 1280px) { .topbar { display: block; } }
.topbar-inner { display: flex; justify-content: flex-end; align-items: center; }
.topbar-inner > * {
    padding: 0 20px; border-left: 1px solid rgba(255,255,255,.2);
    display: flex; align-items: center; gap: 6px;
    color: rgba(255,255,255,.95); transition: color .2s;
}
.topbar-inner > *:first-child { border-left: none; padding-left: 0; }
.topbar-inner > *:hover { color: white; }
.topbar-inner strong { color: white; text-decoration: underline; }

/* ==========================================================================
   2. HEADER
   ========================================================================== */
.header {
    position: sticky; top: 0; z-index: 100; background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.header-top { padding: 12px 0; }
.header-top-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px;
}

/* Burger mobile */
.burger {
    display: flex; flex-direction: column; gap: 4px;
    width: 40px; height: 40px; align-items: center; justify-content: center;
    background: var(--gray-100); border-radius: 8px;
}
.burger span { width: 22px; height: 2px; background: var(--gray-900); border-radius: 2px; transition: .2s; }
@media (min-width: 1024px) { .burger { display: none; } }

/* Header utilities (desktop only) */
.header-utilities {
    display: none; flex: 1; align-items: center; justify-content: flex-end;
    gap: 16px; font-size: 13px;
}
@media (min-width: 1024px) { .header-utilities { display: flex; gap: 20px; } }
.header-utilities > a {
    padding-right: 16px; border-right: 1px solid var(--gray-200);
    transition: color .2s;
}
.header-utilities > a:last-of-type { padding-right: 0; border-right: none; }
.header-utilities > a:hover { color: var(--green); }
.header-utilities .bold { font-weight: 700; }

.trustpilot-mini {
    display: flex; flex-direction: column; align-items: flex-end;
    padding-left: 16px; border-left: 1px solid var(--gray-200);
}
.trustpilot-mini .stars { display: flex; align-items: center; gap: 4px; }
.trustpilot-mini .star-box {
    width: 14px; height: 14px; background: #00b67a;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 9px;
}
.trustpilot-mini .rating { font-weight: 700; font-size: 12px; }
.trustpilot-mini .based { font-size: 10px; color: var(--gray-500); margin-top: 2px; }
.trustpilot-mini .based strong { color: var(--green-darker); }

.flag-dz-block {
    display: flex; align-items: center; gap: 8px;
    padding-left: 16px; border-left: 1px solid var(--gray-200);
}
.flag-dz-text { line-height: 1.2; }
.flag-dz-text .title { font-weight: 700; font-size: 12px; text-transform: uppercase; }
.flag-dz-text .subtitle { font-size: 11px; color: var(--gray-500); }
.flag-dz-text .subtitle strong { color: var(--gray-900); }

/* Search bar */
.header-bottom {
    padding: 0 0 12px;
    display: flex; align-items: center; gap: 16px;
}
@media (min-width: 1024px) { .header-bottom { gap: 24px; } }
.search-bar {
    flex: 1; display: flex; align-items: center; background: var(--gray-100);
    border-radius: 8px; padding: 6px 6px 6px 16px;
    cursor: text; transition: background .2s; border: none;
}
.search-bar:hover { background: var(--gray-200); }
.search-bar-text { flex: 1; text-align: left; color: var(--gray-500); font-size: 14px; }
.search-btn {
    background: var(--green); color: white; padding: 8px;
    border-radius: 6px; transition: background .2s;
    display: flex; align-items: center;
}
.search-btn:hover { background: var(--green-dark); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 12px; }
@media (min-width: 1024px) { .header-actions { gap: 24px; } }
.header-action {
    display: flex; align-items: center; gap: 6px;
    transition: color .2s; position: relative;
}
.header-action:hover { color: var(--green); }
.header-action svg { color: var(--green); }
.header-action-label { font-weight: 700; font-size: 13px; display: none; }
@media (min-width: 768px) { .header-action-label { display: inline; } }
.cart-badge {
    position: absolute; top: -8px; left: 16px; background: var(--green);
    color: white; font-size: 10px; font-weight: 700; border-radius: 999px;
    width: 20px; height: 20px; display: flex; align-items: center;
    justify-content: center; border: 2px solid white;
}

/* ==========================================================================
   3. MÉGA MENU - VERSION CORRIGÉE
   ========================================================================== */
.megamenu {
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    background: white; position: relative;
}
@media (max-width: 1023px) { .megamenu { display: none; } /* hidden on mobile, replaced by drawer */ }

.megamenu-list {
    display: flex; align-items: stretch;
    padding: 0; margin: 0;
}

.megamenu-item {
    position: relative; --color: var(--green);
}
.megamenu-item[data-cat="visage"]    { --color: #0fd374; }
.megamenu-item[data-cat="corps"]     { --color: #047857; }
.megamenu-item[data-cat="cheveux"]   { --color: #d97706; }
.megamenu-item[data-cat="maquillage"]{ --color: #db2777; }
.megamenu-item[data-cat="parfums"]   { --color: #7c3aed; }
.megamenu-item[data-cat="bio"]       { --color: #65a30d; }
.megamenu-item[data-cat="solaire"]   { --color: #ea580c; }
.megamenu-item[data-cat="homme"]     { --color: #475569; }
.megamenu-item[data-cat="promos"]    { --color: #dc2626; }

.megamenu-link {
    display: flex; align-items: center; gap: 6px;
    padding: 14px 16px; margin: 4px;
    color: var(--color); font-size: 14px; font-weight: 700;
    text-transform: uppercase; border-radius: 8px;
    transition: all .25s ease; white-space: nowrap; position: relative;
}
@media (min-width: 1280px) { .megamenu-link { font-size: 15px; padding: 14px 18px; } }
.megamenu-item:hover .megamenu-link {
    background: var(--color); color: white;
}

/* Flèche pointue */
.megamenu-arrow {
    position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 8px solid transparent; border-right: 8px solid transparent;
    border-bottom: 8px solid var(--color);
    opacity: 0; transition: opacity .2s;
    z-index: 51;
}
.megamenu-item:hover .megamenu-arrow { opacity: 1; }

/* Séparateur */
.megamenu-sep {
    display: flex; align-items: center; color: var(--gray-300);
    padding: 0 4px; user-select: none;
}

/* Promo aligné à droite */
.megamenu-item.right { margin-left: auto; }

/* ===== PANEL MÉGA MENU ===== */
.megamenu-panel {
    position: fixed;
    top: auto;
    left: 0; right: 0;
    background: white;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,.25);
    border-top: 4px solid var(--color);
    z-index: 50;
    opacity: 0; visibility: hidden;
    transition: opacity .2s, visibility .2s;
    max-height: calc(100vh - 250px);
    overflow: hidden;
}
.megamenu-item:hover .megamenu-panel {
    opacity: 1; visibility: visible;
}

.megamenu-panel-inner {
    max-width: 1440px; margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    max-height: calc(100vh - 254px);
}

/* Sidebar gauche */
.megamenu-sidebar {
    background: #fafaf9; border-right: 1px solid var(--gray-200);
    padding: 16px 0; overflow-y: auto;
}
.megamenu-sidebar-item a {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 24px; color: var(--gray-900);
    font-size: 13px; font-weight: 700; text-transform: uppercase;
    transition: all .2s; border-left: 3px solid transparent;
}
.megamenu-sidebar-item a:hover,
.megamenu-sidebar-item.active a {
    background: white; color: var(--color);
    border-left-color: var(--color);
}
.megamenu-sidebar-icon {
    width: 44px; height: 44px; border-radius: 8px; background: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; flex-shrink: 0; border: 1px solid var(--gray-200);
}

/* Contenu droit : grille de cartes */
.megamenu-content { padding: 24px; overflow-y: auto; }
.megamenu-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
@media (max-width: 1280px) { .megamenu-grid { grid-template-columns: repeat(3, 1fr); } }

.megamenu-card {
    border: 1px solid var(--gray-100);
    border-radius: 8px; padding: 8px;
}
.megamenu-card-header {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 10px; border-radius: 6px;
    background: rgba(0,0,0,.02); border: 1px solid rgba(0,0,0,.05);
    color: var(--color); font-size: 13px; font-weight: 700;
    text-transform: uppercase; margin-bottom: 6px; transition: background .2s;
}
.megamenu-card-header:hover { background: rgba(0,0,0,.04); }
.megamenu-card-icon {
    width: 36px; height: 36px; border-radius: 6px; background: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
}
.megamenu-card ul { padding-left: 8px; }
.megamenu-card li { padding: 3px 0; }
.megamenu-card a { color: var(--gray-600); font-size: 13px; transition: color .2s; }
.megamenu-card a:hover { color: var(--color); }

/* Overlay derrière le mega menu */
.megamenu-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.3);
    z-index: 49; opacity: 0; visibility: hidden;
    pointer-events: none; transition: opacity .2s;
}
.megamenu-list:hover ~ .megamenu-overlay { opacity: 1; visibility: visible; }

/* ==========================================================================
   4. MOBILE DRAWER (méga menu mobile)
   ========================================================================== */
.mobile-drawer {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: 85%; max-width: 360px;
    background: white; z-index: 200;
    transform: translateX(-100%); transition: transform .3s ease;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,.25);
    overflow-y: auto;
    display: flex; flex-direction: column;
}
.mobile-drawer.open { transform: translateX(0); }

.mobile-drawer-header {
    padding: 16px; border-bottom: 1px solid var(--gray-200);
    background: var(--gray-100); display: flex; align-items: center;
    justify-content: space-between;
}
.mobile-drawer-close {
    width: 40px; height: 40px; background: white;
    border: 1px solid var(--gray-200); border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
}

.mobile-menu-list { padding: 0; }
.mobile-menu-item {
    border-bottom: 1px solid var(--gray-200);
}
.mobile-menu-link {
    display: flex; align-items: center; gap: 16px;
    padding: 16px 20px; color: var(--color, var(--green));
    font-weight: 700; font-size: 14px; text-transform: uppercase;
    width: 100%; text-align: left;
}
.mobile-menu-icon {
    width: 48px; height: 48px; border-radius: 10px;
    background: var(--gray-100); display: flex;
    align-items: center; justify-content: center;
    font-size: 24px; flex-shrink: 0;
}
.mobile-menu-arrow {
    margin-left: auto; transition: transform .3s;
}
.mobile-menu-item.open .mobile-menu-arrow { transform: rotate(90deg); }
.mobile-menu-sub {
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
    background: var(--gray-100);
}
.mobile-menu-item.open .mobile-menu-sub { max-height: 1500px; }
.mobile-menu-sub a {
    display: block; padding: 12px 20px 12px 84px;
    color: var(--gray-600); font-size: 14px;
    border-top: 1px solid var(--gray-200);
}
.mobile-menu-sub a:hover { color: var(--color, var(--green)); }

.mobile-drawer-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.5);
    z-index: 150; opacity: 0; visibility: hidden;
    transition: opacity .3s;
}
.mobile-drawer-overlay.active { opacity: 1; visibility: visible; }

/* ==========================================================================
   5. PRODUCT CARD
   ========================================================================== */
.product-card {
    display: flex; flex-direction: column;
    background: white; border: 1px solid var(--gray-200);
    border-radius: 12px; padding: 16px;
    transition: all .3s ease; position: relative;
}
.product-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0,0,0,.15);
    transform: translateY(-4px);
}
.product-card-image { position: relative; padding: 16px 8px; }
.product-card-badges {
    position: absolute; top: 0; left: 0; z-index: 10;
    display: flex; gap: 4px; flex-wrap: wrap;
}
.product-card-flag { position: absolute; top: 0; right: 0; z-index: 10; }
.product-card-img {
    aspect-ratio: 1; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 4rem;
}
.product-card-brand { font-size: 14px; color: var(--gray-500); text-align: center; margin: 4px 0 0; }
.product-card-title {
    font-size: 16px; font-weight: 500; color: var(--gray-900);
    text-align: center; line-height: 1.3; margin: 4px 0;
}
.product-card-variant { font-size: 12px; color: var(--gray-500); text-align: center; margin: 0; }
.product-card-rating {
    display: flex; align-items: center; justify-content: center; margin-top: 4px;
}
.product-card-rating .count { margin-left: 4px; font-size: 12px; color: var(--gray-500); }
.product-card-footer {
    margin-top: 12px; display: flex; justify-content: space-between;
    align-items: center; gap: 8px;
}
.product-card-price { font-size: 18px; font-weight: 700; color: var(--gray-900); }
.product-card-price-old { font-size: 12px; color: var(--gray-400); text-decoration: line-through; margin-left: 4px; }
.product-card-price-new { font-size: 18px; font-weight: 700; color: var(--red); }
.product-card-price-from { font-size: 12px; color: var(--gray-500); margin-right: 4px; }
.product-card-cart-btn {
    background: var(--green); color: white; padding: 8px;
    border-radius: 6px; transition: background .2s;
    display: flex; align-items: center; justify-content: center;
}
.product-card-cart-btn:hover { background: var(--green-dark); }

/* ==========================================================================
   6. SECTIONS HOMEPAGE
   ========================================================================== */
.hero {
    margin: 24px 0;
}
.hero-slider {
    border-radius: 12px; overflow: hidden;
    border: 1px solid var(--gray-200);
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
    height: 280px; position: relative;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 50%, #6ee7b7 100%);
}
@media (min-width: 768px) { .hero-slider { height: 322px; } }
.hero-content {
    position: absolute; inset: 0; padding: 32px;
    display: flex; align-items: center; justify-content: space-between;
}
@media (min-width: 768px) { .hero-content { padding: 48px; } }
.hero-text { max-width: 480px; }
.hero-tag {
    display: inline-block; background: rgba(255,255,255,.85);
    backdrop-filter: blur(8px);
    color: var(--green-darker); font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px;
    padding: 6px 14px; border-radius: 999px; margin-bottom: 12px;
}
.hero-title {
    font-size: 28px; font-weight: 800; line-height: 1.1;
    margin: 0 0 12px; color: var(--gray-900);
}
@media (min-width: 768px) { .hero-title { font-size: 38px; } }
.hero-subtitle { color: var(--gray-600); margin: 0 0 16px; }
.hero-images { display: none; align-items: center; gap: 16px; }
@media (min-width: 1024px) { .hero-images { display: flex; } }
.hero-img-card {
    width: 120px; height: 160px;
    background: rgba(255,255,255,.6); backdrop-filter: blur(8px);
    border-radius: 16px; box-shadow: 0 10px 25px rgba(0,0,0,.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 56px;
}

/* Section produits */
.section-products {
    margin: 32px 0;
}
.section-products-inner {
    padding: 0;
}
@media (min-width: 640px) {
    .section-products-inner {
        padding: 24px; border: 1px solid var(--gray-200);
        border-radius: 12px;
    }
}
.section-head {
    display: flex; justify-content: space-between; align-items: center;
    gap: 16px; margin-bottom: 24px;
}
.section-products .grid-products {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
@media (min-width: 768px) {
    .section-products .grid-products { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}

/* Section verte (À propos + garanties) */
.section-green {
    background: var(--green);
    background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,.1) 1px, transparent 1px),
                      radial-gradient(circle at 80% 80%, rgba(255,255,255,.1) 1px, transparent 1px);
    background-size: 20px 20px;
    padding: 48px 0; margin: 32px 0;
}
.section-green-grid {
    display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center;
}
@media (min-width: 1024px) { .section-green-grid { grid-template-columns: 1fr 2fr; } }
.about-card {
    background: white; border-radius: 12px; overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,.15);
}
.about-card-img {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, #6ee7b7 0%, #34d399 100%);
    display: flex; align-items: center; justify-content: center;
    font-size: 96px;
}
.about-card-body {
    background: var(--green-darker); color: white; padding: 16px;
}
.about-card-eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; opacity: .9; }
.about-card-title { font-size: 20px; font-weight: 800; margin: 4px 0 8px; }
.about-card-divider { border: none; border-top: 1px solid #34d399; margin: 8px 0; }
.about-card p { font-size: 14px; opacity: .95; margin: 0; }
.about-card-link { display: inline-block; margin-top: 8px; font-weight: 700; text-transform: uppercase; color: #a7f3d0; }
.about-card-link:hover { color: white; }

.guarantees-grid {
    display: grid; grid-template-columns: 1fr; gap: 12px;
}
@media (min-width: 768px) { .guarantees-grid { grid-template-columns: repeat(2, 1fr); } }
.guarantee-card {
    display: flex; align-items: center; gap: 12px;
    padding: 16px; border-radius: 12px; background: white;
    box-shadow: 0 10px 20px rgba(0,0,0,.1); transition: transform .2s;
}
.guarantee-card:hover { transform: scale(1.03); }
.guarantee-icon {
    padding: 8px; border-radius: 50%; background: var(--green);
    width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.guarantee-card strong { display: block; font-size: 14px; font-weight: 800; color: var(--gray-900); text-transform: uppercase; }
.guarantee-card span { font-size: 13px; color: var(--gray-600); }

/* Section marques */
.section-brands { margin: 48px 0; }
.brands-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
@media (min-width: 640px) { .brands-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .brands-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .brands-grid { grid-template-columns: repeat(6, 1fr); } }
.brand-card {
    padding: 16px; background: white; border-radius: 12px;
    border: 1px solid var(--gray-200); text-align: center;
    transition: all .2s;
    box-shadow: 0 4px 6px rgba(0,0,0,.04);
}
.brand-card:hover {
    box-shadow: 0 0 0 2px var(--green), 0 0 0 4px white;
}
.brand-card-name {
    height: 48px; display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: var(--gray-600); font-size: 16px;
}

/* Section guides (fond gris) */
.section-guides {
    background: var(--gray-100); padding: 48px 0; margin: 48px 0;
}
.guides-grid {
    display: grid; grid-template-columns: 1fr; gap: 16px;
}
@media (min-width: 640px) { .guides-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .guides-grid { grid-template-columns: repeat(4, 1fr); } }
.guide-card {
    background: white; border-radius: 12px; padding: 16px;
    border: 1px solid var(--gray-200);
    box-shadow: 0 4px 6px rgba(0,0,0,.04);
}
.guide-img {
    aspect-ratio: 16/9; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 48px; margin-bottom: 16px;
}
.guide-meta {
    display: flex; align-items: center; gap: 12px; font-size: 12px;
    margin-bottom: 8px;
}
.guide-date { color: var(--gray-500); }
.guide-cat { background: var(--gray-100); padding: 4px 12px; border-radius: 999px; font-weight: 600; color: var(--gray-600); }
.guide-title {
    font-size: 16px; font-weight: 600; line-height: 1.3;
    margin: 8px 0; color: var(--gray-900); transition: color .2s;
}
.guide-card:hover .guide-title { color: var(--green); }
.guide-excerpt { font-size: 14px; color: var(--gray-600); margin: 0; line-height: 1.5; }

/* Newsletter */
.section-newsletter {
    background: var(--green); padding: 48px 0;
}
.newsletter-inner {
    display: flex; flex-direction: column; align-items: center; gap: 24px;
}
@media (min-width: 768px) { .newsletter-inner { flex-direction: row; } }
.newsletter-text { flex: 1; color: white; }
.newsletter-text h3 {
    font-size: 18px; font-weight: 600; line-height: 1.4; margin: 0;
}
@media (min-width: 768px) { .newsletter-text h3 { font-size: 22px; } }
.newsletter-text strong { color: var(--green-darker); }
.newsletter-form { width: 100%; }
@media (min-width: 768px) { .newsletter-form { width: auto; } }
.newsletter-form-row { display: flex; gap: 8px; }
.newsletter-form input {
    padding: 12px 16px; border-radius: 8px; border: none;
    flex: 1; font-size: 14px;
}
@media (min-width: 768px) { .newsletter-form input { width: 320px; flex: none; } }
.newsletter-form button {
    background: var(--green-darker); color: white; padding: 12px 24px;
    border-radius: 8px; font-weight: 600; transition: background .2s;
}
.newsletter-form button:hover { background: #065f46; }
.newsletter-form .privacy {
    margin-top: 8px; font-size: 12px; color: rgba(255,255,255,.85);
}
.newsletter-form .privacy a { color: white; text-decoration: underline; font-weight: 700; }

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
footer { background: white; padding: 48px 0 24px; border-top: 1px solid var(--gray-200); }
.footer-grid {
    display: grid; grid-template-columns: 1fr; gap: 24px; margin-bottom: 24px;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 3fr 2fr; } }

.footer-links {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; font-size: 14px;
}
@media (min-width: 1024px) { .footer-links { grid-template-columns: repeat(3, 1fr); } }
.footer-links a { color: var(--gray-500); transition: color .2s; }
.footer-links a:hover { color: var(--green); }

.footer-social { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 16px; border-top: 1px solid var(--gray-200); }
.footer-social-bold { font-weight: 700; color: var(--gray-900); }
.footer-social-link { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.footer-social-icon {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 14px; font-weight: 700;
}

.footer-contact-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.footer-info-block {
    background: var(--gray-100); padding: 16px; border-radius: 12px;
}
.footer-info-block h4 { font-weight: 700; font-size: 14px; text-transform: uppercase; margin: 0 0 8px; }
.footer-info-block p { font-size: 14px; color: var(--gray-600); margin: 0; line-height: 1.5; }

.footer-divider { border: none; border-top: 1px solid var(--gray-200); margin: 24px 0; }
.footer-copy { font-size: 12px; color: var(--gray-500); text-align: center; }
.footer-copy a { color: var(--green); text-decoration: underline; }
@media (min-width: 768px) { .footer-copy { text-align: left; } }
/* ==========================================================
   HEADER V2 + MÉGA MENU CARDS - Style Drakkars
   À AJOUTER au main.css après les styles header existants
   ========================================================== */

/* ============= HEADER 1 SEULE BARRE ============= */
.header-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
}
@media (min-width: 1024px) {
    .header-row { gap: 24px; padding: 16px 32px; }
}

/* La barre de recherche prend la place */
.header-search-main {
    flex: 1;
    max-width: 720px;
}
@media (min-width: 1024px) {
    .header-search-main { max-width: none; }
}

/* Cacher l'ancienne ligne header-bottom */
.header-bottom { display: none !important; }
.header-top { display: none !important; }

/* Header utilities (À propos / Guides / Marques / Sélections) déplacées dans la topbar */
.header-utilities { display: none !important; }

/* Logo plus compact */
.header-logo {
    flex-shrink: 0;
}
.header-logo .logo-text {
    font-size: 22px;
}
.header-logo .logo-a,
.header-logo .logo-z {
    font-size: 30px;
}
@media (min-width: 1024px) {
    .header-logo .logo-text { font-size: 26px; }
    .header-logo .logo-a, .header-logo .logo-z { font-size: 36px; }
}

/* Search bar refait */
.header-search-main {
    display: flex;
    align-items: center;
    background: #f5f5f4;
    border-radius: 10px;
    padding: 4px 4px 4px 16px;
    transition: all .2s;
    border: 1px solid transparent;
}
.header-search-main:focus-within {
    background: white;
    border-color: #0fd374;
    box-shadow: 0 0 0 3px rgba(15,211,116,0.1);
}
.header-search-main input.search-bar-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 10px 0;
    font-size: 14px;
    color: #1c1917;
    font-family: inherit;
    min-width: 0;
}
.header-search-main input.search-bar-input::placeholder {
    color: #78716c;
}
.header-search-main .search-btn {
    background: #1c1917;
    color: white;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .2s;
}
.header-search-main .search-btn:hover { background: #0fd374; }

/* Actions header */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}
@media (min-width: 1024px) {
    .header-actions { gap: 28px; }
}
.header-action {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1c1917;
    text-decoration: none;
    transition: color .2s;
    position: relative;
}
.header-action:hover { color: #0fd374; }
.header-action svg { color: #0fd374; flex-shrink: 0; }
.header-action-label {
    font-weight: 600;
    font-size: 14px;
    display: none;
    white-space: nowrap;
}
@media (min-width: 1280px) {
    .header-action-label { display: inline; }
}
.cart-icon-wrap {
    position: relative;
    display: inline-flex;
}
.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #0fd374;
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: 999px;
    min-width: 20px;
    height: 20px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* Burger mobile */
.burger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: #f5f5f4;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}
.burger span { width: 22px; height: 2px; background: #1c1917; border-radius: 2px; }
@media (min-width: 1024px) { .burger { display: none; } }

/* ============= MÉGA MENU CARDS (style Drakkars) ============= */

/* Panel pleine largeur avec sidebar */
.megamenu-panel {
    position: fixed;
    top: auto;
    left: 0; right: 0;
    background: white;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    border-top: 4px solid var(--color, #0fd374);
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, visibility .2s;
    max-height: calc(100vh - 220px);
    overflow: hidden;
}
.megamenu-item:hover .megamenu-panel {
    opacity: 1;
    visibility: visible;
}

.megamenu-panel-inner {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 240px 1fr;
    max-height: calc(100vh - 224px);
}

/* Sidebar gauche */
.megamenu-sidebar {
    background: #fafaf9;
    border-right: 1px solid #f5f5f4;
    padding: 16px 0;
    overflow-y: auto;
}
.megamenu-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.megamenu-sidebar-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    color: #1c1917;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all .2s;
    border-left: 3px solid transparent;
}
.megamenu-sidebar-list li a:hover,
.megamenu-sidebar-list li.active a {
    background: white;
    color: var(--color, #0fd374);
    border-left-color: var(--color, #0fd374);
}
.megamenu-sidebar-thumb {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    border: 1px solid #e7e5e4;
    overflow: hidden;
}
.megamenu-sidebar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contenu droit : grille de cards */
.megamenu-content {
    padding: 24px 32px;
    overflow-y: auto;
}

.megamenu-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (max-width: 1280px) {
    .megamenu-cards-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Card catégorie individuelle */
.megamenu-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.megamenu-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(15,211,116,0.06) 0%, rgba(15,211,116,0.02) 100%);
    border-radius: 12px;
    margin-bottom: 8px;
    text-decoration: none;
    transition: all .2s;
    border: 1px solid rgba(15,211,116,0.1);
}
.megamenu-card-header:hover {
    background: linear-gradient(135deg, rgba(15,211,116,0.12) 0%, rgba(15,211,116,0.04) 100%);
    border-color: rgba(15,211,116,0.25);
    transform: translateY(-1px);
}

.megamenu-card-image {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.megamenu-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.megamenu-card-emoji {
    font-size: 28px;
    line-height: 1;
}

.megamenu-card-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--color, #0fd374);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Liste des sous-catégories */
.megamenu-card-list {
    list-style: none;
    padding: 0 0 0 12px;
    margin: 0;
}
.megamenu-card-list li {
    padding: 4px 0;
}
.megamenu-card-list li a {
    display: block;
    color: #57534e;
    text-decoration: none;
    font-size: 13px;
    transition: color .2s;
    padding: 4px 8px;
    border-radius: 6px;
}
.megamenu-card-list li a:hover {
    color: var(--color, #0fd374);
    background: rgba(15,211,116,0.05);
}

/* Couleurs par catégorie */
.megamenu-item[data-cat="visage"]    { --color: #0fd374; }
.megamenu-item[data-cat="corps"]     { --color: #047857; }
.megamenu-item[data-cat="cheveux"]   { --color: #d97706; }
.megamenu-item[data-cat="maquillage"]{ --color: #db2777; }
.megamenu-item[data-cat="parfums"]   { --color: #7c3aed; }
.megamenu-item[data-cat="bio"]       { --color: #65a30d; }
.megamenu-item[data-cat="solaire"]   { --color: #ea580c; }
.megamenu-item[data-cat="homme"]     { --color: #475569; }
.megamenu-item[data-cat="promos"]    { --color: #dc2626; }
