/* Home Page - Ultra Dynamic & Professional */
:root {
    --primary-blue: #1e3a8a;
    --secondary-blue: #3b82f6;
    --accent-gold: #d97706;
    --light-gold: #f59e0b;
    --warm-gray: #6b7280;
    --light-gray: #f8fafc;
}

/* Hero Section Ultra-Dynamic */
.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 15% 25%, rgba(255,255,255,0.15) 2px, transparent 2px),
        radial-gradient(circle at 85% 75%, rgba(217,119,6,0.2) 3px, transparent 3px),
        radial-gradient(circle at 45% 85%, rgba(255,255,255,0.1) 1px, transparent 1px),
        radial-gradient(circle at 75% 15%, rgba(59,130,246,0.15) 2px, transparent 2px);
    background-size: 400px 400px, 350px 350px, 250px 250px, 300px 300px;
    animation: particlesDance 25s ease-in-out infinite;
    z-index: 1;
}

.hero-carousel {
    position: relative;
    min-height: 100vh;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
}

.hero-carousel .carousel-inner,
.hero-carousel .carousel-item,
.hero-carousel .hero-slide {
    min-height: 100vh;
}

.hero-slide {
    position: relative;
    width: 100%;
    height: 100vh;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.05);
    transform-origin: center;
    transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(30, 58, 138, 0.85) 0%, 
        rgba(59, 130, 246, 0.7) 40%, 
        rgba(217, 119, 6, 0.6) 100%);
    z-index: 2;
}

.hero-content-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    z-index: 3;
}

.carousel-item.active .hero-content-wrapper {
    animation: heroMagicIn 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.carousel-item:not(.active) .hero-content-wrapper {
    opacity: 0;
    transform: translate(-50%, -30%);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 2rem;
    text-shadow: 0 8px 32px rgba(0,0,0,0.4);
    line-height: 1.1;
    background: linear-gradient(45deg, #ffffff, #fbbf24, #ffffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShimmer 4s ease-in-out infinite;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 1.5rem;
    font-weight: 400;
    font-style: italic;
    text-shadow: 0 4px 16px rgba(0,0,0,0.3);
    animation: subtitleGlow 3s ease-in-out infinite;
}

.hero-description {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 3rem;
    font-weight: 300;
    text-shadow: 0 2px 12px rgba(0,0,0,0.2);
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    background: linear-gradient(135deg, rgba(217,119,6,0.9), rgba(245,158,11,0.9));
    border: 2px solid rgba(255,255,255,0.3);
    color: #ffffff;
    padding: 20px 50px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(20px);
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 15px 40px rgba(217,119,6,0.4);
    position: relative;
    overflow: hidden;
}

.hero-cta::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.6s ease;
}

.hero-cta:hover::before {
    left: 100%;
}

.hero-cta:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 25px 60px rgba(217,119,6,0.5);
    color: #ffffff;
    border-color: rgba(255,255,255,0.6);
}

.carousel-control-prev,
.carousel-control-next {
    width: 8%;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    transform: scale(1.1);
}

.carousel-indicators {
    bottom: 40px;
}

.carousel-indicators button {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin: 0 8px;
    background-color: rgba(255,255,255,0.6);
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(217,119,6,0.6);
}

.carousel-item.active .hero-slide-bg {
    animation: heroZoomMagic 12s ease-in-out infinite;
}

/* Sections Ultra-Modernes */
.section-modern {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.section-kicker {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-gold), var(--light-gold));
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    box-shadow: 0 8px 25px rgba(217,119,6,0.3);
    animation: kickerFloat 3s ease-in-out infinite;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--primary-blue);
    position: relative;
    line-height: 1.2;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100px;
    height: 6px;
    background: linear-gradient(45deg, var(--primary-blue), var(--accent-gold));
    border-radius: 3px;
    animation: underlineGrow 2s ease-out;
}

.section-subtitle {
    font-size: 1.4rem;
    color: var(--warm-gray);
    margin-bottom: 2.5rem;
    font-weight: 300;
    line-height: 1.7;
}

.section-soft-blue {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}

.section-soft-blue::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(30,58,138,0.05) 2px, transparent 2px),
        radial-gradient(circle at 80% 80%, rgba(217,119,6,0.05) 2px, transparent 2px);
    background-size: 300px 300px, 400px 400px;
    animation: sectionParticles 20s ease-in-out infinite;
}

/* Cards Ultra-Dynamiques */
.feature-card {
    background: white;
    border-radius: 25px;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 60px rgba(30, 58, 138, 0.08);
    border: 1px solid rgba(30, 58, 138, 0.05);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(45deg, var(--primary-blue), var(--accent-gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-20px) scale(1.02);
    box-shadow: 0 40px 100px rgba(30, 58, 138, 0.15);
}

.feature-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: white;
    font-size: 2.2rem;
    transition: all 0.4s ease;
    box-shadow: 0 15px 40px rgba(30, 58, 138, 0.3);
}

.feature-card:hover .feature-icon {
    transform: scale(1.15) rotate(360deg);
    background: linear-gradient(135deg, var(--accent-gold), var(--light-gold));
    box-shadow: 0 20px 50px rgba(217, 119, 6, 0.4);
}

.resource-card {
    background: white;
    border-radius: 25px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(30, 58, 138, 0.08);
    border: 1px solid rgba(30, 58, 138, 0.05);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.resource-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 35px 80px rgba(30, 58, 138, 0.12);
}

.resource-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-gold), var(--light-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: white;
    font-size: 2rem;
    transition: all 0.4s ease;
    box-shadow: 0 12px 35px rgba(217, 119, 6, 0.3);
}

.resource-card:hover .resource-icon {
    transform: scale(1.1) rotate(-10deg);
    box-shadow: 0 18px 45px rgba(217, 119, 6, 0.4);
}

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 15px 50px rgba(30, 58, 138, 0.08);
    border: 1px solid rgba(30, 58, 138, 0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, var(--primary-blue), var(--accent-gold));
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 70px rgba(30, 58, 138, 0.12);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(30, 58, 138, 0.2);
}

.stat-label {
    font-size: 1rem;
    color: var(--warm-gray);
    font-weight: 500;
}

.insight-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 12px 40px rgba(30, 58, 138, 0.08);
    border: 1px solid rgba(30, 58, 138, 0.05);
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.insight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(217,119,6,0.1), transparent);
    transition: left 0.6s ease;
}

.insight-card:hover::before {
    left: 100%;
}

.insight-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(30, 58, 138, 0.12);
}

.insight-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.insight-card:hover .insight-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--accent-gold), var(--light-gold));
}

/* Newsletter Ultra-Stylée */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 50%, var(--accent-gold) 100%);
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.1) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(255,255,255,0.08) 3px, transparent 3px);
    background-size: 200px 200px, 300px 300px;
    animation: newsletterParticles 15s ease-in-out infinite;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.newsletter-input {
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    padding: 18px 30px;
    font-size: 1.1rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    color: white;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.newsletter-input::placeholder {
    color: rgba(255,255,255,0.7);
}

.newsletter-input:focus {
    border-color: rgba(255,255,255,0.6);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.15);
}

.newsletter-btn {
    background: linear-gradient(135deg, var(--accent-gold), var(--light-gold));
    border: none;
    border-radius: 50px;
    padding: 18px 40px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    box-shadow: 0 15px 40px rgba(217, 119, 6, 0.4);
    color: white;
}

.newsletter-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 25px 60px rgba(217, 119, 6, 0.5);
    color: white;
}

/* Animations Ultra-Dynamiques */
@keyframes particlesDance {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 1;
    }
    25% { 
        transform: translateY(-30px) rotate(90deg); 
        opacity: 0.8;
    }
    50% { 
        transform: translateY(15px) rotate(180deg); 
        opacity: 1;
    }
    75% { 
        transform: translateY(-20px) rotate(270deg); 
        opacity: 0.9;
    }
}

@keyframes heroMagicIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -30%) scale(0.8);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -55%) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

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

@keyframes subtitleGlow {
    0%, 100% { 
        text-shadow: 0 4px 16px rgba(0,0,0,0.3);
        transform: scale(1);
    }
    50% { 
        text-shadow: 0 4px 20px rgba(251,191,36,0.4);
        transform: scale(1.02);
    }
}

@keyframes heroZoomMagic {
    0%, 100% { transform: scale(1.05); }
    25% { transform: scale(1.08) rotate(0.5deg); }
    50% { transform: scale(1.12); }
    75% { transform: scale(1.08) rotate(-0.5deg); }
}

@keyframes kickerFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

@keyframes underlineGrow {
    0% { width: 0; }
    100% { width: 100px; }
}

@keyframes sectionParticles {
    0%, 100% { transform: translateX(0px) translateY(0px); }
    33% { transform: translateX(20px) translateY(-10px); }
    66% { transform: translateX(-15px) translateY(15px); }
}

@keyframes newsletterParticles {
    0%, 100% { transform: translateX(0px) rotate(0deg); }
    50% { transform: translateX(30px) rotate(180deg); }
}

/* Animations d'apparition */
.animate-fade-up {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeUpIn 0.8s ease-out forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeUpIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Ultra-Optimisé */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .section-modern {
        padding: 80px 0;
    }
    
    .feature-card,
    .resource-card,
    .stat-card,
    .insight-card {
        margin-bottom: 2rem;
    }
    
    .hero-cta {
        padding: 15px 35px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
}