:root {
    /* Couleurs */
    --bg-color: #ECE7DF; /* Soft Sand */
    --surface-color: #ffffff;
    --surface-hover: #f1f3f5;
    --text-primary: #2f4f4f; /* Dark Slate Gray */
    --text-secondary: #708090; /* Slate Gray */
    --accent-color: #4d774e; /* Medium Green */
    --accent-hover: #164a41; /* Dark Green */
    --accent-light: #9dc88d; /* Light Sage Green */
    
    /* Espacements et Dimensions */
    --container-max: 1200px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(236, 231, 223, 0.9);
    backdrop-filter: blur(12px);
    z-index: 100;
    border-bottom: 1px solid rgba(112, 128, 144, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.nav {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 60px;
    backdrop-filter: blur(15px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 0.5px solid rgba(255, 255, 255, 0.5);
}

.nav-link {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    position: relative;
    padding: 8px 16px;
    z-index: 2;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-indicator {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 38px;
    background: #66f2ff;
    border-radius: 30px;
    transition: all 0.2s ease-out; /* Transition beaucoup plus rapide et sans rebond */
    z-index: 1;
    pointer-events: none;
    box-shadow: 0 0 15px rgba(102, 242, 255, 0.5);
    opacity: 0;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    color: #111111;
    background-color: #66f2ff; /* Bleu Néon Clair */
    padding: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.cart-icon:hover {
    background-color: #00ccff; /* Bleu Néon moins foncé au survol */
    color: #111111;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #FFF066; /* Jaune Clair */
    color: #111111;
    font-size: 0.75rem;
    font-weight: 800;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    font-family: inherit;
    font-size: 1rem;
}

.btn-primary {
    background-color: #66f2ff;
    color: #111111; /* Contraste fort pour un cyan fluo clair */
}

.btn-primary:hover {
    background-color: #00ccff;
    transform: translateY(-2px);
    color: #111111;
}

.btn-block {
    width: 100%;
}

/* Hero Section — Bannière CHEF & CO en fond */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
    background-image:
        linear-gradient(90deg, rgba(20,24,27,0.85) 0%, rgba(20,24,27,0.65) 35%, rgba(20,24,27,0.25) 60%, rgba(20,24,27,0.15) 100%),
        url('../images/chefco-banner.webp?v=3');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #f7f5f2;
}

.hero-bg { display: none; }

/* On masque le collage 4-produits car la bannière les montre déjà */
.hero-collage,
.hero-image { display: none; }

.hero-container {
    grid-template-columns: 1fr !important;
}

/* Texte hero adapté au fond sombre */
.hero .hero-content { max-width: 620px; }
.hero .badge {
    background: rgba(201, 169, 97, 0.18);
    color: #c9a961;
    border: 1px solid rgba(201, 169, 97, 0.4);
}
.hero .hero-title {
    color: #ffffff;
    text-shadow: 0 2px 14px rgba(0,0,0,0.45);
}
.hero .hero-desc {
    color: rgba(255,255,255,0.92);
    text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}
.hero .hero-desc strong[style] { color: #c9a961 !important; }
.hero .btn-primary {
    background: #c9a961;
    color: #1d2327;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.hero .btn-primary:hover {
    background: #d6b878;
    transform: translateY(-1px);
}
@media (max-width: 768px) {
    .hero {
        background-image:
            linear-gradient(180deg, rgba(20,24,27,0.55) 0%, rgba(20,24,27,0.85) 100%),
            url('../images/chefco-banner.webp?v=3');
        background-position: center top;
        min-height: auto;
        padding: 120px 0 4rem;
    }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(112, 128, 144, 0.1);
    color: var(--text-secondary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-image img {
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* === Hero collage : mosaïque 2×2 d'appareils représentatifs === */
.hero-collage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1.2rem;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 540px;
    margin: 0 auto;
}
.hc-item {
    position: relative;
    background: linear-gradient(145deg, var(--surface-color), #f4f6f9);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow:
        0 18px 40px rgba(22, 74, 65, 0.08),
        0 4px 12px rgba(0,0,0,0.04);
    border: 1px solid rgba(112, 128, 144, 0.08);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s ease;
}
.hc-item:hover {
    transform: translateY(-6px);
    box-shadow:
        0 30px 60px rgba(22, 74, 65, 0.18),
        0 8px 20px rgba(0,0,0,0.08);
}
.hc-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 14%;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    animation: float 6s ease-in-out infinite;
}
/* Décalage de l'animation pour un mouvement organique */
.hc-1 img { animation-delay: 0s;    }
.hc-2 img { animation-delay: 1.5s;  }
.hc-3 img { animation-delay: 3s;    }
.hc-4 img { animation-delay: 4.5s;  }

/* La 2e tuile (Air Fryer) sert de pièce maîtresse : fond accentué */
.hc-2 {
    background: linear-gradient(145deg, #ffffff, var(--accent-light));
}
.hc-2 img {
    padding: 10%;
}

/* Mobile : reste en grille 2×2 mais plus compacte */
@media (max-width: 600px) {
    .hero-collage {
        max-width: 380px;
        gap: 0.8rem;
    }
    .hc-item img { padding: 12%; }
    .hc-2 img { padding: 6%; }
}

/* Products Section */
.products-section {
    padding: 8rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 4rem;
    text-align: center;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background: var(--surface-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: var(--transition-smooth);
    border: 1px solid rgba(112, 128, 144, 0.1);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    background: var(--surface-hover);
    border-color: var(--accent-light);
    box-shadow: 0 20px 40px rgba(22, 74, 65, 0.1);
}

.product-img-wrap {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: #f8f9fa;
}

.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.product-card:hover .product-img-wrap img {
    transform: scale(1.05);
}

.product-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.product-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.add-to-cart {
    background: #66f2ff;
    border: none;
    color: #111111;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-fast);
}

.add-to-cart:hover {
    background: #00ccff;
    color: #111111;
}

/* Footer */
.footer {
    background: var(--surface-color);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(112, 128, 144, 0.1);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--text-secondary);
}

.footer-links h4 {
    margin-bottom: 1rem;
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-hover);
}

.footer-bottom {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid rgba(112, 128, 144, 0.1);
    padding-top: 2rem;
}

/* === Bande défilante des marques distribuées === */
.brands-marquee {
    background: var(--surface-color);
    padding: 2.5rem 0 3rem;
    border-top: 1px solid rgba(112, 128, 144, 0.08);
    border-bottom: 1px solid rgba(112, 128, 144, 0.08);
    overflow: hidden;
}
.brands-marquee-title {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 1.5rem;
}
.brands-track-wrap {
    overflow: hidden;
    /* Fade left/right pour effet pro */
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
}
.brands-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: brandsScroll 20s linear infinite;
    /* Force l'animation même si le navigateur a prefers-reduced-motion mais
       l'utilisateur veut explicitement voir le défilement publicitaire. */
    will-change: transform;
}
.brands-track:hover {
    animation-play-state: paused;
}
.brands-group {
    display: flex;
    align-items: center;
    gap: 4rem;
    /* Crucial : padding-right = gap → la transition entre les 2 groupes est
       parfaitement identique à l'espacement entre items, pas de "trou". */
    padding: 0 4rem 0 0;
    margin: 0;
    list-style: none;
}
.brand-item {
    flex: 0 0 auto;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.brand-item img {
    max-height: 60px;
    width: auto;
    max-width: 160px;
    opacity: 0.75;
    filter: grayscale(20%);
    transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}
.brand-item img:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.08);
}

/* Défilement infini (translateX -50% car on duplique la liste) */
@keyframes brandsScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 600px) {
    .brands-track { animation-duration: 15s; }
    .brands-group { gap: 2.5rem; padding-right: 2.5rem; }
    .brand-item { height: 44px; }
    .brand-item img { max-height: 44px; max-width: 110px; }
    .brands-marquee { padding: 1.8rem 0 2rem; }
    .brands-marquee-title { font-size: 0.75rem; letter-spacing: 1.5px; }
}

@media (prefers-reduced-motion: reduce) {
    .brands-track { animation: none; transform: none; }
    .brands-track-wrap { mask-image: none; -webkit-mask-image: none; overflow-x: auto; }
}

/* === Sélecteur de langue : cercles drapeaux === */
.lang-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 1rem;
}
.lang-flag {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: var(--surface-color);
    cursor: pointer;
    font-size: 1.05rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, opacity 0.18s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    -webkit-tap-highlight-color: transparent;
}
.lang-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    display: block;
    pointer-events: none;
}
.lang-flag:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.lang-flag.active {
    border-color: var(--accent-color);
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(77, 119, 78, 0.35);
}
.lang-flag:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* === Desktop (≥ 881px) : sélecteur flottant en bas à droite ===
   Sortí du header pour avoir son propre espace sans gêner ni déborder.
   Ouverture VERS LE HAUT (puisqu'il est en bas de l'écran).
   ============================================================ */
@media (min-width: 881px) {
    .lang-switcher {
        position: fixed;
        right: 24px;
        bottom: 100px;     /* au-dessus du widget WhatsApp (bottom 24px + 58px + marge) */
        margin: 0;
        gap: 0;
        padding: 0;
        z-index: 9985;     /* sous WhatsApp (9990) mais au-dessus du contenu */
    }
    /* Drapeau actif : seul visible par défaut, en position relative */
    .lang-switcher .lang-flag.active {
        position: relative;
        bottom: 0;
        z-index: 2;
    }
    /* Autres drapeaux masqués empilés verticalement AU-DESSUS de l'actif */
    .lang-switcher .lang-flag:not(.active) {
        position: absolute;
        right: 0;
        bottom: 0;
        opacity: 0;
        transform: translateY(8px) scale(0.85);
        pointer-events: none;
        z-index: 1;
        transition: opacity 0.18s ease, transform 0.18s ease, bottom 0.2s ease;
    }
    /* Au hover/focus : on déploie les non-actifs VERS LE HAUT */
    .lang-switcher:hover .lang-flag:not(.active),
    .lang-switcher:focus-within .lang-flag:not(.active) {
        opacity: 1;
        pointer-events: auto;
        transform: scale(1);
    }
    .lang-switcher:hover .lang-flag:not(.active):nth-of-type(1),
    .lang-switcher:focus-within .lang-flag:not(.active):nth-of-type(1) { bottom: 42px; }
    .lang-switcher:hover .lang-flag:not(.active):nth-of-type(2),
    .lang-switcher:focus-within .lang-flag:not(.active):nth-of-type(2) { bottom: 84px; }
    .lang-switcher:hover .lang-flag:not(.active):nth-of-type(3),
    .lang-switcher:focus-within .lang-flag:not(.active):nth-of-type(3) { bottom: 126px; }
    .lang-switcher:hover .lang-flag:not(.active):nth-of-type(4),
    .lang-switcher:focus-within .lang-flag:not(.active):nth-of-type(4) { bottom: 168px; }
    .lang-switcher:hover .lang-flag:not(.active):nth-of-type(5),
    .lang-switcher:focus-within .lang-flag:not(.active):nth-of-type(5) { bottom: 210px; }

    /* Petit caret au-dessus du drapeau actif (signale "ça s'ouvre vers le haut") */
    .lang-switcher::before {
        content: '▴';
        position: absolute;
        left: 50%;
        top: -14px;
        transform: translateX(-50%);
        color: var(--text-secondary);
        font-size: 0.75rem;
        opacity: 0.6;
        transition: opacity 0.2s ease;
        pointer-events: none;
    }
    .lang-switcher:hover::before,
    .lang-switcher:focus-within::before { opacity: 0; }

    /* Renforce un peu la visibilité du drapeau actif flottant */
    .lang-switcher .lang-flag.active {
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    }
}

@media (max-width: 600px) {
    .lang-switcher { gap: 0.3rem; margin-left: 0.5rem; }
    .lang-flag { width: 28px; height: 28px; font-size: 0.95rem; }
}

/* === Logos moyens de paiement === */
.payment-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}
.payment-logos img {
    width: 60px;
    height: 38px;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
}
.payment-logos img:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}
@media (max-width: 600px) {
    .payment-logos {
        gap: 0.5rem;
    }
    .payment-logos img {
        width: 48px;
        height: 30px;
    }
}

/* Cart Modal */
/* ============================================
   PANIER — Style CHEF & CO (anthracite + or + ivoire)
   ============================================ */
.cart-modal {
    /* Palette scopée au panier */
    --cc-dark: #1d2327;
    --cc-dark-soft: #2d3338;
    --cc-accent: #c9a961;
    --cc-red: #c8102e;
    --cc-bg: #f7f5f2;
    --cc-card: #ffffff;
    --cc-border: #e8e4dd;
    --cc-text: #1d2327;
    --cc-text-light: #6b6b6b;
    --cc-shadow: 0 1px 3px rgba(29,35,39,0.08), 0 1px 2px rgba(29,35,39,0.04);

    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 460px;
    height: 100vh;
    background: var(--cc-bg);
    color: var(--cc-text);
    z-index: 9999;
    box-shadow: -8px 0 24px rgba(20,24,27,0.18);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.cart-modal.open {
    right: 0;
}

/* Quand le panier est ouvert, on cache la bottom-nav, le widget WhatsApp
   et le sélecteur de langue pour libérer toute la zone d'action en bas. */
body.cart-open .bn-bar,
body.cart-open .wa-fab,
body.cart-open .lang-switcher {
    display: none !important;
}
body.cart-open { padding-bottom: 0 !important; }

.cart-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cart-header {
    background: var(--cc-dark);
    color: white;
    padding: 18px 20px;
    border-bottom: 2px solid var(--cc-accent);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}
.cart-header h3 {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
    letter-spacing: 0.3px;
    color: white;
}

.close-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.75rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.15s;
}
.close-btn:hover {
    background: rgba(255,255,255,0.12);
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--cc-bg);
}

.cart-item {
    display: flex;
    gap: 12px;
    background: var(--cc-card);
    padding: 14px;
    border-radius: 12px;
    align-items: center;
    box-shadow: var(--cc-shadow);
    border: 1px solid var(--cc-border);
}

.cart-item-img {
    width: 90px;
    height: 90px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f3f0eb;
}

.cart-item-info {
    flex-grow: 1;
    min-width: 0;
}

.cart-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--cc-text);
    line-height: 1.35;
}

.cart-item-price {
    color: var(--cc-red);
    font-size: 1.05rem;
    font-weight: 800;
}

.remove-item {
    background: none;
    border: none;
    color: var(--cc-text-light);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: color 0.15s;
}
.remove-item:hover {
    color: var(--cc-red);
}

.cart-footer {
    background: white;
    border-top: 1px solid var(--cc-border);
    padding: 14px 16px;
    flex-shrink: 0;
    box-shadow: 0 -4px 12px rgba(20,24,27,0.06);
}

.cart-total {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    color: var(--cc-text);
}
.cart-total #cart-total-price {
    color: var(--cc-red);
    font-size: 1.25rem;
}

/* CTA paiement — pill anthracite */
.cart-footer .btn-primary {
    width: 100%;
    background: var(--cc-dark);
    color: white;
    border: none;
    border-radius: 999px;
    padding: 15px;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.2s;
}
.cart-footer .btn-primary:hover {
    background: var(--cc-dark-soft);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(29,35,39,0.25);
}

.empty-cart {
    text-align: center;
    color: var(--cc-text-light);
    margin-top: 2rem;
}

/* === Bouton "Besoin d'aide ?" — appel téléphonique service client === */
.cart-help-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
    padding: 11px 16px;
    border: 1.5px solid var(--cc-border);
    background: transparent;
    color: var(--cc-text);
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    box-sizing: border-box;
    transition: all 0.15s;
    font-family: inherit;
    cursor: pointer;
}
.cart-help-call:hover {
    border-color: var(--cc-dark);
    background: rgba(29,35,39,0.04);
    transform: translateY(-1px);
}
.cart-help-call svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Product Detail Page */
.product-detail-section {
    padding: 120px 0 8rem;
}

.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.product-detail-img img {
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
    width: 100%;
}

.product-detail-info h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.product-detail-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-hover);
    margin-bottom: 2rem;
}

.product-detail-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.back-link:hover {
    color: var(--text-primary);
}

/* ============================================================
   RESPONSIVE — Mobile-first refinements
   ============================================================ */

/* === Tablette portrait + Mobile === */
@media (max-width: 880px) {
    /* La nav desktop est masquée par mobile-menu.js (qui injecte le burger) */

    /* Hero adaptatif — pas de min-height: 100vh sur mobile (URL bar iOS) */
    .hero {
        min-height: auto;
        padding: 110px 0 4rem;
    }
    .hero-container, .product-detail-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-title {
        font-size: 2.4rem;
        line-height: 1.1;
    }
    .hero-desc {
        margin: 0 auto 1.8rem;
        font-size: 1rem;
    }
    .hero-image img {
        max-width: 75%;
    }

    /* Container : padding réduit */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Section title plus tassé */
    .section-title {
        font-size: 1.6rem;
    }

    /* Footer : flex column, contenu centré */
    .footer {
        padding: 2.5rem 0 1.2rem;
    }
    .footer-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    .footer-brand p, .footer-brand h3 {
        text-align: center;
    }
    .footer-links {
        text-align: center;
    }
    .footer-links a {
        display: block;
        padding: 0.4rem 0;
    }
    .footer-newsletter {
        max-width: 320px;
        margin: 0 auto;
    }

    /* Cart-modal : full-screen sur mobile */
    .cart-modal {
        width: 100%;
        right: -100%;
    }
    .cart-modal .cart-content {
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
    .cart-modal.open {
        right: 0;
    }

    /* Boutons et inputs touch-friendly (min 44px) */
    button, .btn, input[type="submit"], input[type="button"] {
        min-height: 44px;
    }
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="search"],
    input[type="tel"],
    select,
    textarea {
        font-size: 16px; /* Évite le zoom auto sur iOS */
    }
}

/* === Mobile portrait (375px–600px) === */
@media (max-width: 600px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero {
        min-height: auto;
        padding: 100px 0 3rem;
    }
    .hero-desc {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    .hero-image img {
        max-width: 85%;
        margin: 0 auto;
    }

    /* Header plus compact */
    .header-container {
        height: 64px;
    }
    .logo {
        font-size: 1.05rem;
        letter-spacing: -0.3px;
    }
    .cart-icon {
        padding: 8px;
    }
    .cart-icon svg {
        width: 20px; height: 20px;
    }
    .cart-count {
        width: 18px; height: 18px;
        font-size: 0.7rem;
        top: -4px; right: -4px;
    }

    /* Section title plus tassée */
    .section-title {
        font-size: 1.4rem;
        margin-bottom: 2rem;
    }
    .products-section {
        padding: 4rem 0;
    }

    /* Grille produits : adapt auto-fill (jusqu'à 1 col) */
    .products-grid {
        gap: 1.2rem !important;
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
    .product-card { padding: 1rem; }
    .product-name { font-size: 1.1rem; }
    .product-price { font-size: 1.25rem; }

    /* Product detail : titre/prix + visuel adaptés */
    .product-detail-section {
        padding: 90px 0 4rem;
    }
    .product-detail-container {
        gap: 2rem;
    }
    .product-detail-info h1 {
        font-size: 1.8rem;
    }
    .product-detail-price {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    .product-detail-desc {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    /* Cart modal : header/items plus serrés */
    .cart-header { padding: 14px 16px; }
    .cart-header h3 { font-size: 16px; }
    .cart-items { padding: 12px; gap: 10px; }
    .cart-footer { padding: 12px; }
    .cart-item { padding: 10px; }
    .cart-item-img { width: 70px; height: 70px; }
    .cart-item-title { font-size: 0.85rem; }
    .cart-item-price { font-size: 0.95rem; }
    .cart-total { font-size: 1rem; }
    .cart-total #cart-total-price { font-size: 1.15rem; }

    /* Titres légaux plus petits */
    .legal-content {
        padding: 1.5rem !important;
    }
    .legal-content h1 {
        font-size: 1.5rem;
    }
    .legal-content h2 {
        font-size: 1.2rem !important;
    }

    /* Compte : sidebar passe au-dessus, plus de flex-row */
    .account-layout {
        flex-direction: column;
        gap: 1rem !important;
        padding: 0 1rem !important;
        margin: 20px auto !important;
    }
    .account-sidebar {
        width: 100% !important;
    }
    .account-content {
        padding: 1.5rem !important;
    }

    /* Forms profil : 1 colonne */
    .profile-form .form-row {
        flex-direction: column !important;
        gap: 0.8rem !important;
    }

    /* Boutons CTA pleine largeur sur petit écran */
    .hero-cta, .product-detail-info .btn {
        width: 100%;
    }
}

/* === Très petit mobile (≤ 380px) === */
@media (max-width: 380px) {
    .hero-title {
        font-size: 1.7rem;
    }
    .section-title {
        font-size: 1.25rem;
    }
    .products-grid {
        grid-template-columns: 1fr;
    }
    .container {
        padding: 0 0.8rem;
    }
    .logo {
        font-size: 0.95rem;
    }
}

/* === Mobile landscape (orientation paysage, hauteur réduite) === */
@media (max-width: 900px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 90px 0 2rem;
    }
    .hero-title {
        font-size: 2.2rem;
    }
}

/* === Sécurité : safe-area iOS (notch) === */
@supports (padding: max(0px)) {
    .header-container {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
    .footer-bottom {
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
}

/* === Accessibilité : reduced-motion === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .hero-image img { animation: none !important; }
}

/* Dropdown Menu Catégories */
.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--surface-color);
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: var(--radius-sm);
    padding: 0.5rem 0;
    max-height: 400px;
    overflow-y: auto;
}
.dropdown-indicator {
    position: absolute;
    left: 8px;
    width: calc(100% - 16px);
    height: 0;
    background: rgba(102, 242, 255, 0.15);
    border-radius: 6px;
    transition: all 0.2s ease-out;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
}
.dropdown-content a {
    color: var(--text-primary);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
    position: relative;
    z-index: 1;
    transition: color 0.2s;
}
.dropdown-content a:hover {
    color: #00ccff; /* Lisibilité sur fond clair */
    background-color: transparent !important;
}
.dropdown:hover .dropdown-content {
    display: block;
}

/* Badge Nouveau */
.badge-new {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, var(--accent-hover), var(--accent-color), var(--accent-light), var(--accent-color), var(--accent-hover));
    background-size: 200% 200%;
    color: #ffffff;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    overflow: hidden;
    animation: gradientShift 4s ease infinite, pulseBadge 2s infinite;
}

.badge-new::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shineBadge 2.5s infinite;
}

@keyframes shineBadge {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulseBadge {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(77, 119, 78, 0.7); }
    50% { transform: scale(1.05); box-shadow: 0 0 15px 5px rgba(77, 119, 78, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(77, 119, 78, 0); }
}

.product-img-wrap {
    position: relative; /* Pour que le badge absolute se place bien */
}

