:root {
    --font-sans: 'Outfit', system-ui, sans-serif;
    --font-serif: 'Outfit', system-ui, sans-serif;
    /* --font-serif: 'Fraunces', Georgia, serif; */
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); background-color: #fafaf9; overflow-x: hidden; }
.font-serif { font-family: var(--font-serif); }

/* .hero-section { position: relative; min-height: 100vh; display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; background-image: url('/themes/frontend/img/banner_1.webp'); background-size: cover; background-position: center; background-attachment: fixed; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(6,95,70,0.85) 0%, rgba(6,78,59,0.75) 50%, rgba(0,0,0,0.6) 100%); } */

/* === HERO IMMERSIF NATURE === */
.hero-section { 
    position: relative; 
    min-height: 100vh; 
    display: flex; 
    align-items: center; 
    overflow: hidden;
}

/* Image de fond avec respiration lente */
.hero-bg {
    position: absolute;
    inset: -50px;
    background-image: url('/themes/frontend/img/banner_1.webp');
    background-size: cover;
    background-position: center;
    animation: heroBreathe 30s ease-in-out infinite;
    will-change: transform;
}

@keyframes heroBreathe {
    0%, 100% { transform: scale(1) translate(0, 0); }
    33% { transform: scale(1.08) translate(-15px, -10px); }
    66% { transform: scale(1.05) translate(10px, -5px); }
}

/* Overlay VERT FONCÉ très présent */
/* Overlay VERT plus clair et lumineux */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(6, 95, 70, 0.5) 0%,
        rgba(6, 78, 59, 0.4) 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
    z-index: 1;
}

/* Brume verte organique - plusieurs couches */
.hero-mist {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.hero-mist::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: 
        radial-gradient(ellipse at 20% 60%, rgba(6,95,70,0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 40%, rgba(6,78,59,0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(6,95,70,0.2) 0%, transparent 50%);
    animation: mistFlow 25s ease-in-out infinite;
    filter: blur(40px);
}

.hero-mist::after {
    content: '';
    position: absolute;
    width: 180%;
    height: 180%;
    top: -40%;
    left: -40%;
    background: 
        radial-gradient(ellipse at 70% 30%, rgba(6,95,70,0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 30% 70%, rgba(6,78,59,0.15) 0%, transparent 50%);
    animation: mistFlow 30s ease-in-out infinite reverse;
    filter: blur(50px);
}

@keyframes mistFlow {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(3%, -2%) rotate(1deg); }
    50% { transform: translate(-2%, 3%) rotate(-1deg); }
    75% { transform: translate(2%, 1%) rotate(0.5deg); }
}

/* Feuilles flottantes organiques */
/* Feuilles flottantes organiques (plus visibles et nettes) */
.hero-leaves {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

.leaf {
    position: absolute;
    width: 12px;
    height: 12px;
    /* Vert plus lumineux et plus opaque */
    background: radial-gradient(ellipse at 30% 30%, rgba(130, 200, 130, 0.7) 0%, rgba(6, 95, 70, 0.4) 100%);
    border-radius: 0% 100% 0% 100%;
    animation: leafFall linear infinite;
    /* Suppression du flou pour plus de netteté */
    filter: blur(0px); 
}

/* Opacités augmentées pour chaque feuille */
.leaf:nth-child(1) { left: 10%; width: 10px; height: 10px; animation-duration: 18s; animation-delay: 0s; opacity: 0.8; }
.leaf:nth-child(2) { left: 20%; width: 14px; height: 14px; animation-duration: 22s; animation-delay: 3s; opacity: 0.6; }
.leaf:nth-child(3) { left: 35%; width: 8px; height: 8px; animation-duration: 16s; animation-delay: 6s; opacity: 0.9; }
.leaf:nth-child(4) { left: 50%; width: 12px; height: 12px; animation-duration: 20s; animation-delay: 2s; opacity: 0.7; }
.leaf:nth-child(5) { left: 65%; width: 16px; height: 16px; animation-duration: 24s; animation-delay: 5s; opacity: 0.6; }
.leaf:nth-child(6) { left: 80%; width: 10px; height: 10px; animation-duration: 17s; animation-delay: 8s; opacity: 0.8; }
.leaf:nth-child(7) { left: 90%; width: 13px; height: 13px; animation-duration: 21s; animation-delay: 1s; opacity: 0.7; }
.leaf:nth-child(8) { left: 5%; width: 9px; height: 9px; animation-duration: 19s; animation-delay: 7s; opacity: 0.8; }


/* Gouttes d'eau / Neige (plus blanches et intenses) */
.hero-drops {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

.drop {
    position: absolute;
    width: 2px;
    height: 15px;
    /* Blanc plus intense au centre de la goutte */
    background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.7) 50%, transparent 100%);
    animation: dropFall linear infinite;
}

.drop:nth-child(1) { left: 15%; animation-duration: 3s; animation-delay: 0s; }
.drop:nth-child(2) { left: 30%; animation-duration: 2.5s; animation-delay: 1s; }
.drop:nth-child(3) { left: 45%; animation-duration: 3.5s; animation-delay: 2s; }
.drop:nth-child(4) { left: 60%; animation-duration: 2.8s; animation-delay: 0.5s; }
.drop:nth-child(5) { left: 75%; animation-duration: 3.2s; animation-delay: 1.5s; }
.drop:nth-child(6) { left: 88%; animation-duration: 2.6s; animation-delay: 2.5s; }

@keyframes dropFall {
    0% { 
        transform: translateY(-20vh); 
        opacity: 0;
    }
    10% { 
        opacity: 0.9; /* Augmenté de 0.6 à 0.9 */
    }
    90% {
        opacity: 0.9; /* Augmenté de 0.6 à 0.9 */
    }
    100% { 
        transform: translateY(120vh); 
        opacity: 0;
    }
}

@keyframes leafFall {
    0% { 
        transform: translateY(-10vh) translateX(0) rotate(0deg); 
        opacity: 0;
    }
    10% { 
        opacity: 1;
    }
    50% {
        transform: translateY(50vh) translateX(100px) rotate(180deg);
    }
    90% {
        opacity: 1;
    }
    100% { 
        transform: translateY(110vh) translateX(-50px) rotate(360deg); 
        opacity: 0;
    }
}

/* Gouttes d'eau subtiles */
/* .hero-drops {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

.drop {
    position: absolute;
    width: 2px;
    height: 15px;
    background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
    animation: dropFall linear infinite;
} */

/* .drop:nth-child(1) { left: 15%; animation-duration: 3s; animation-delay: 0s; }
.drop:nth-child(2) { left: 30%; animation-duration: 2.5s; animation-delay: 1s; }
.drop:nth-child(3) { left: 45%; animation-duration: 3.5s; animation-delay: 2s; }
.drop:nth-child(4) { left: 60%; animation-duration: 2.8s; animation-delay: 0.5s; }
.drop:nth-child(5) { left: 75%; animation-duration: 3.2s; animation-delay: 1.5s; }
.drop:nth-child(6) { left: 88%; animation-duration: 2.6s; animation-delay: 2.5s; } */

/* @keyframes dropFall {
    0% { 
        transform: translateY(-20vh); 
        opacity: 0;
    }
    10% { 
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% { 
        transform: translateY(120vh); 
        opacity: 0;
    }
} */

/* Grain subtil pour texture naturelle */
.hero-grain {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    opacity: 0.08;
    /* background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E"); */
}

/* Vignette profonde */
.hero-vignette {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.5) 100%);
}

/* Contenu avec parallaxe au scroll */
.hero-content {
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

/* Animation subtile du titre */
.hero-title {
    animation: titleFloat 6s ease-in-out infinite;
}

@keyframes titleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.reveal { opacity: 0; transform: translateY(40px); transition: all 1s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: all 1s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-left.active { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: all 1s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-right.active { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.9); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-scale.active { opacity: 1; transform: scale(1); }
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

.card-hover { transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.card-hover:hover { transform: translateY(-8px); box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15); }
.card-image { transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.card-hover:hover .card-image { transform: scale(1.05); }

.btn-primary { background: #065f46; transition: all 0.3s ease; position: relative; overflow: hidden; }
.btn-primary::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent); transition: left 0.5s; }
.btn-primary:hover::before { left: 100%; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(6,95,70,0.3); }

.btn-secondary { background: #fbbf24; color: #064e3b; transition: all 0.3s ease; }
.btn-secondary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(251,191,36,0.3); }

@keyframes pulse-cta {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(251, 191, 36, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
}
.btn-pulse { animation: pulse-cta 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.btn-pulse:hover { animation: none; transform: translateY(-3px) scale(1.05); box-shadow: 0 15px 40px rgba(251,191,36,0.5); }

.nav-scrolled { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(20px); box-shadow: 0 4px 20px rgba(0,0,0,0.08); padding-top: 1rem !important; padding-bottom: 1rem !important; }
.nav-scrolled .nav-text { color: #065f46 !important; }
.nav-scrolled .nav-link { color: #374151 !important; }

@keyframes bounce-in { 0% { transform: scale(0); } 50% { transform: scale(1.3); } 100% { transform: scale(1); } }
.cart-badge { animation: bounce-in 0.4s cubic-bezier(0.16, 1, 0.3, 1); }

.floating-cart { position: fixed; bottom: 2rem; right: 2rem; z-index: 40; transition: all 0.3s ease; }
.floating-cart:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 15px 40px rgba(6,95,70,0.3); }

.section-padding { padding-top: 6rem; padding-bottom: 6rem; }
@media (max-width: 768px) { .section-padding { padding-top: 4rem; padding-bottom: 4rem; } }

.section-tag { display: inline-block; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: #065f46; font-weight: 600; margin-bottom: 1rem; }

.carousel-container { overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.carousel-container::-webkit-scrollbar { display: none; }
.carousel-item { scroll-snap-align: start; flex-shrink: 0; width: 280px; }
@media (min-width: 768px) { .carousel-item { width: 320px; } }
.carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(6, 95, 70, 0.3); transition: all 0.3s ease; cursor: pointer; }
.carousel-dot.active { background: #065f46; width: 24px; border-radius: 4px; }

.blog-card { transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.blog-card:hover { transform: translateY(-8px); box-shadow: 0 25px 50px rgba(0,0,0,0.1); }
.blog-card:hover .blog-image { transform: scale(1.05); }
.blog-image { transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }

.faq-item { border-bottom: 1px solid rgba(0,0,0,0.08); transition: all 0.3s ease; }
.faq-content { max-height: 0; overflow: hidden; transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.faq-item.active .faq-content { max-height: 300px; }
.faq-item.active .faq-icon { transform: rotate(180deg); }

.upcoming-banner { background: linear-gradient(135deg, #065f46 0%, #064e3b 100%); position: relative; overflow: hidden; }
.upcoming-banner::before { content: ''; position: absolute; top: -50%; right: -10%; width: 600px; height: 600px; background: rgba(255,255,255,0.05); border-radius: 50%; }

.partner-item { filter: grayscale(100%) opacity(0.4); transition: all 0.3s ease; }
.partner-item:hover { filter: grayscale(0%) opacity(1); }

.modal-enter { animation: modalEnter 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes modalEnter { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

.counter-value { font-variant-numeric: tabular-nums; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #065f46; border-radius: 4px; }