:root {
    --primary-color: #2e7d32; /* Deep natural green */
    --secondary-color: #81c784; /* Light fresh green */
    --accent-color: #f57f17; /* Earthy yellow/orange */
    --text-dark: #2e3b32;
    --text-light: #f4f8f4;
    --bg-color: #fdfdf9; /* Very light warm off-white */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --font-main: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 20px;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 0 5%; /* Pas de padding tout le tour */
}

.header-glass {
    background: rgba(253, 253, 249, 0); /* Transparent par défaut */
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
    box-shadow: none;
}

/* État lors du scroll */
.header-scrolled {
    background: rgba(253, 253, 249, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(46, 125, 50, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo img {
    height: 240px; /* 2x plus gros (original était 120px) */
    display: block; /* Supprime l'espace sous l'image */
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links li a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links li a:hover::after, .nav-links li a.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 120px; /* Remonté pour supprimer l'espace blanc */
    background: linear-gradient(135deg, rgba(253, 253, 249, 0.9) 0%, rgba(200, 230, 201, 0.8) 100%);
    overflow: hidden;
}

/* Hero Slider */
.slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Behind everything */
    background-color: var(--primary-color);
}

.slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 8s ease-out;
    transform: scale(1.05); /* Slight zoom-out effect */
}

.slider-slide::after {
    /* Overlay for text readability */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(253, 253, 249, 0.6) 0%, rgba(200, 230, 201, 0.5) 100%);
}

.slider-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 40px;
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero h1 {
    font-size: 4.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 40px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1b5e20 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.5);
    color: white;
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Sections */
.section-padding {
    padding: 100px 5%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 50px;
    font-weight: 700;
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    padding: 30px;
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--glass-bg);
    padding: 60px 5% 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 40px;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 180px; /* Grossi x3 (était 60px) */
    filter: brightness(0) invert(1);
    opacity: 0.9;
    margin-bottom: 20px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
.menu-burger {
    display: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
    order: 2;
    padding: 10px;
    z-index: 3000; /* Assure d'être au dessus de tout */
    position: relative;
}

.checkout-container {
    margin-top: 100px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
}

@media (max-width: 992px) {
    .checkout-grid {
        display: block !important; /* Force l'empilement vertical */
    }
    
    .checkout-grid > div {
        width: 100% !important;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .logo {
        max-width: 65%; /* Limite pour ne pas couvrir le menu */
        z-index: 1000;
        position: relative;
    }

    .logo img {
        height: auto;
        max-height: 80px; /* Moins haut pour mobile */
        width: 100%;
        object-fit: contain;
    }
    
    header {
        padding: 0 10px;
    }

    .nav-container {
        padding: 10px 0;
        position: relative;
    }

    .menu-burger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.15);
        z-index: 4000;
        display: flex;
    }

    .nav-links.mobile-active {
        right: 0;
    }

    .nav-links li {
        margin: 20px 0;
    }

    .nav-links li a {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 1.8rem !important; /* Plus petit pour mobile */
        margin-bottom: 30px;
    }

    .checkout-container {
        margin-top: 140px; /* Plus d'espace car le header est plus haut avec le logo */
    }

    .hero h1 {
        font-size: 2rem;
    }

    /* Mais on veut garder l'accès au panier sur mobile */
    .mobile-cart-toggle {
        display: block !important;
        font-size: 1.3rem;
        z-index: 3000;
        position: relative;
    }

    #card-container {
        min-height: 120px; /* Force la visibilité du conteneur Square */
    }
}

