/* ========================================
   CUSTOM CSS - STRASBERRY V2 (MODERNE)
======================================== */

body {
    background-color: #F7FDEF;
}

/* === VARIABLES &amp; UTILITAIRES === */
:root {
    --vert-terre: #234020;
    --vert-action: #047857;
    --creme: #F7FDEF;
    --vert-clair: #D0E1C1;
    --vert-foret: #064E3B;
    --jaune-gelee: #FFDB4C;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === SLIDER &amp; HERO IMMERSIF === */
#homeCarousel { 
    background: linear-gradient(135deg, #F7FDEF 0%, #D0E1C1 50%, #A8C090 100%);
    position: relative;
    overflow: hidden;
}

#homeCarousel::before {
    content: &#039;&#039;;
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 219, 76, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

.bg-caption { 
    background: linear-gradient(135deg, rgba(35, 64, 32, 0.95) 0%, rgba(4, 120, 87, 0.98) 50%);
    padding: 3em; 
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(35, 64, 32, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 219, 76, 0.2);
    transition: var(--transition-smooth);
}

.bg-caption:hover {
    border-color: rgba(255, 219, 76, 0.4);
    box-shadow: 0 20px 60px rgba(35, 64, 32, 0.4), 0 0 30px rgba(255, 219, 76, 0.1);
}

.carousel-inner div.caption h1 { 
    color: #FFFFFF !important; 
    font-weight: 800;
    font-size: 3.5em !important;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.bg-caption p { 
    color: #F7FDEF !important; 
    font-size: 1.3em;
    font-weight: 300;
}

/* === NAVIGATION MODERNE === */
nav#haut { 
    background: linear-gradient(90deg, #234020 0%, #1A3018 100%) !important;
    box-shadow: 0 4px 30px rgba(35, 64, 32, 0.3);
}

/* === SECTION 1 : HERO AVEC FORMES ORGANIQUES === */
#section-1 { 
    background: linear-gradient(180deg, #F7FDEF 0%, #FFFFFF 100%);
    padding: 5em 0;
    position: relative;
    overflow: hidden;
}

#section-1::before {
    content: &#039;&#039;;
    position: absolute;
    top: 10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(208, 225, 193, 0.5) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
}

#section-1::after {
    content: &#039;&#039;;
    position: absolute;
    bottom: -20%;
    right: -15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(168, 192, 144, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
}

#section-1 .row {
    position: relative;
    z-index: 2;
}

#section-1 h2 { 
    color: #234020;
    font-weight: 800;
    font-size: 3em;
    margin-bottom: 0.8em;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

#section-1 img {
    border-radius: 30px;
    box-shadow: 0 30px 80px rgba(35, 64, 32, 0.25);
    transition: var(--transition-smooth);
}

#section-1 img:hover {
    transform: scale(1.02) translateY(-10px);
    box-shadow: 0 40px 100px rgba(35, 64, 32, 0.35);
}

#section-1 ul li {
    margin-bottom: 1em;
    font-size: 1.1em;
    position: relative;
    padding-left: 0.5em;
}

#section-1 ul li i {
    font-size: 1.3em;
    margin-right: 0.5em;
    animation: pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 3px rgba(255, 219, 76, 0.3));
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* === SECTION 2 : CARDS GRADIENT MODERNES === */
#section-2 { 
    background: #FFFFFF;
    padding: 5em 0;
    position: relative;
}

#section-2 h2 { 
    color: #234020;
    font-weight: 800;
    font-size: 2.8em;
    margin-bottom: 1.5em;
    text-align: center;
    letter-spacing: -0.01em;
}

#section-2 .card { 
    background: linear-gradient(135deg, #234020 0%, #047857 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 25px;
    padding: 2.5em 2em;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    height: 100%;
}

#section-2 .card::before {
    content: &#039;&#039;;
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 219, 76, 0.15) 0%, rgba(255, 255, 255, 0.1) 30%, transparent 70%);
    transition: var(--transition-smooth);
    transform: scale(0);
}

#section-2 .card:hover::before {
    transform: scale(1);
}

#section-2 .card:hover { 
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 80px rgba(35, 64, 32, 0.4);
}

#section-2 .card h3 { 
    color: #FFFFFF !important;
    font-weight: 700;
    font-size: 1.6em;
    margin-top: 0.8em;
    margin-bottom: 0.5em;
}

#section-2 .card p { 
    color: #F7FDEF !important;
    font-size: 1.05em;
    line-height: 1.6;
}

#section-2 .fa-3x {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.6em;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition-smooth);
}

#section-2 .card:hover .fa-3x {
    transform: rotateY(360deg) scale(1.1);
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 219, 76, 0.5);
    box-shadow: 0 0 20px rgba(255, 219, 76, 0.2);
}

/* === SECTION 3 : CTA IMMERSIF === */
#section-3 { 
    background: linear-gradient(135deg, #234020 0%, #047857 100%);
    padding: 0;
    position: relative;
    overflow: hidden;
}

#section-3::before {
    content: &#039;&#039;;
    position: absolute;
    top: -30%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 219, 76, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    animation: float 15s ease-in-out infinite;
}

#section-3::after {
    content: &#039;&#039;;
    position: absolute;
    bottom: -30%;
    right: -20%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(208, 225, 193, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(100px);
    animation: float 20s ease-in-out infinite reverse;
}

.cta-immersif {
    position: relative;
    z-index: 2;
}

#section-3 h2 { 
    color: #FFFFFF;
    font-weight: 800;
    font-size: 2.8em;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

#section-3 .lead {
    font-size: 1.3em;
    color: #F7FDEF;
    font-weight: 300;
    font-family: &quot;Raleway&quot;, sans-serif;
}

/* Statistiques */
.stat-item {
    padding: 2em 1em;
    transition: var(--transition-smooth);
}

.stat-item:hover {
    transform: translateY(-10px);
}

.stat-icon {
    background: rgba(255, 255, 255, 0.1);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 219, 76, 0.2);
    transition: var(--transition-smooth);
}

.stat-item:hover .stat-icon {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 219, 76, 0.5);
    box-shadow: 0 0 30px rgba(255, 219, 76, 0.2);
    transform: rotateY(360deg);
}

.stat-icon i {
    color: #FFDB4C;
}

.stat-number {
    color: #FFFFFF;
    font-weight: 800;
    font-family: &quot;Oregano&quot;, sans-serif;
    margin-bottom: 0.3em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.stat-label {
    color: #D0E1C1;
    font-size: 1.1em;
    font-weight: 400;
    font-family: &quot;Raleway&quot;, sans-serif;
    margin: 0;
}

/* ✅ BOUTONS CTA SECTION 3 - CONTRASTE CORRIGÉ */
#section-3 .btn-primary {
    background: linear-gradient(135deg, #FFDB4C 0%, #F5C842 100%);
    color: #234020 !important;  /* Texte foncé sur fond clair */
    font-weight: 700;
    box-shadow: 0 10px 40px rgba(255, 219, 76, 0.4);
    border: none;
    padding: 10px 20px;
}

#section-3 .btn-primary:hover {
    background: linear-gradient(135deg, #FFF176 0%, #FFDB4C 100%);  /* Fond encore plus clair */
    color: #1A3018 !important;  /* ✅ Texte encore plus foncé pour contraste optimal */
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(255, 219, 76, 0.5);
    padding: 10px 20px;
}

#section-1 .btn-outline-light, #section-3 .btn-outline-light {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #FFFFFF !important;  /* Texte clair sur fond transparent (section foncée) */
    font-weight: 600;
    backdrop-filter: blur(10px);
    padding: 10px 20px;
}

#section-1 .btn-outline-light:hover, #section-3 .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.95);  /* ✅ Fond blanc opaque au lieu de semi-transparent */
    border-color: rgba(255, 219, 76, 0.7);
    color: #234020 !important;  /* ✅ Texte foncé sur fond clair */
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
}

#section-3 h3 {
font-size: 2rem;
}

/* Témoignage */
.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-smooth);
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 219, 76, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.testimonial-avatar {
    opacity: 0.9;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Responsive Section 3 */
@media (max-width: 992px) {
    #section-3 h2 {
        font-size: 2.2em;
    }
    
    .stat-item {
        padding: 1.5em 1em;
    }
}

@media (max-width: 768px) {
    #section-3 h2 {
        font-size: 1.8em;
    }
    
    #section-3 .lead {
        font-size: 1.1em;
    }
    
    .stat-icon {
        width: 80px;
        height: 80px;
    }
    
    .stat-icon i {
        font-size: 2em !important;
    }
    
    .stat-number {
        font-size: 2em;
    }
    
    .cta-buttons .btn {
        display: block;
        width: 100%;
        margin: 0 0 1em 0 !important;
    }
}

/* ✅ BOUTONS GÉNÉRAUX - CONTRASTE OPTIMAL */
.btn-primary, .btn {
    background: linear-gradient(135deg, #047857 0%, #234020 100%);  /* Fond vert foncé */
    border: none;
    border-radius: 50px;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 1.05em;
    letter-spacing: 0.3px;
    color: #FFFFFF !important;  /* ✅ Texte clair sur fond foncé */
    box-shadow: 0 5px 10px rgba(4, 120, 87, 0.3);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary::before, .btn::before {
    content: &#039;&#039;;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before, .btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover, .btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);  /* Fond vert légèrement plus clair */
    color: #FFFFFF !important;  /* ✅ Texte reste clair sur fond foncé */
    transform: translateY(-3px);
    box-shadow: 0 10px 15px rgba(4, 120, 87, 0.4), 0 0 30px rgba(255, 219, 76, 0.15);
    padding: 14px 32px;
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid #047857;  /* Bordure verte */
    color: #047857 !important;  /* ✅ Texte vert sur fond transparent (clair) */
    border-radius: 50px;
    padding: 14px 32px;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-outline-primary:hover {
    background: #047857;  /* Fond vert foncé */
    color: #F7FDEF !important;  /* ✅ Texte clair sur fond foncé */
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(4, 120, 87, 0.3), 0 0 25px rgba(255, 219, 76, 0.1);
    border-color: rgba(255, 219, 76, 0.3);
    padding: 14px 32px;
}

/* === ICÔNES FONT AWESOME === */
main .fa-4x { 
    color: #234020;
    background: linear-gradient(135deg, #F7FDEF 0%, #D0E1C1 100%);
    padding: 0.6em;
    border-radius: 25px;
    width: 120px;
    height: 120px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1em;
    box-shadow: 0 10px 30px rgba(35, 64, 32, 0.15);
    transition: var(--transition-smooth);
}

main .fa-4x:hover {
    transform: rotateY(360deg) scale(1.1);
    box-shadow: 0 15px 40px rgba(35, 64, 32, 0.25), 0 0 20px rgba(255, 219, 76, 0.15);
}

/* === FOOTER MODERNE === */
footer { 
    background: linear-gradient(135deg, #234020 0%, #1A3018 100%);
    color: #FFFFFF;
    padding: 3em 0;
    position: relative;
}

footer a { 
    color: #D0E1C1 !important;
    transition: var(--transition-smooth);
}

footer a:hover { 
    color: #FFFFFF !important;
    transform: translateX(5px);
}

/* === RESPONSIVE MODERNE === */
@media (max-width: 992px) {
    .bg-caption h1 { 
        font-size: 2.5em;
    }
    
    #section-1 h2,
    #section-2 h2,
    #section-3 h2 {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .bg-caption { 
        padding: 2em;
    }
    
    .bg-caption h1 { 
        font-size: 2em;
    }
    
    .bg-caption p {
        font-size: 1.1em;
    }
    
    #section-1 h2,
    #section-2 h2,
    #section-3 h2 {
        font-size: 1.8em;
    }
    
    #section-1 .card, 
    #section-2 .card { 
        margin-bottom: 2em;
    }
    
    main .fa-4x { 
        width: 90px;
        height: 90px;
    }
}

@media (max-width: 576px) {
    .bg-caption h1 { 
        font-size: 1.6em;
    }
    
    .bg-caption p { 
        font-size: 1em;
    }
    
    .btn-primary, .btn, .btn-outline-primary {
        padding: 12px 24px;
        font-size: 0.95em;
    }
}

/* === ANIMATIONS SUBTILES === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.row {
    animation: fadeInUp 0.8s ease-out;
}