: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 */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(157, 200, 141, 0.25) 0%, rgba(236, 231, 223, 0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.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;
}

/* === 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 */
.cart-modal {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: rgba(60, 60, 60, 0.85);
    backdrop-filter: blur(15px);
    color: #FFF066;
    z-index: 1000;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

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

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

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 240, 102, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    background: none;
    border: none;
    color: #FFF066;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    align-items: center;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    object-fit: cover;
}

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

.cart-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #FFF066;
}

.cart-item-price {
    color: #FFF066;
    font-size: 0.9rem;
    font-weight: 800;
}

.remove-item {
    background: none;
    border: none;
    color: #ff4757;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 240, 102, 0.2);
}

.cart-total {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    color: #FFF066;
}

.empty-cart {
    text-align: center;
    color: rgba(255, 240, 102, 0.7);
    margin-top: 2rem;
}

/* 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: 1rem; }
    .cart-items { padding: 1rem; gap: 0.7rem; }
    .cart-footer { padding: 1rem; }
    .cart-item-img { width: 50px; height: 50px; }
    .cart-item-title { font-size: 0.85rem; }

    /* 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 */
}

