/* Configuration de la police Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

:root {
    --primary-color: #0055FF;
    --secondary-color: #009933;
    --text-color: #222222;
    --bg-color: #FFFFFF;
}

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

body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    overflow-x: hidden;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
}

/* --- Thème de Couleur Basé sur le Logo --- */
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.bg-primary { background-color: var(--primary-color); }
.bg-secondary { background-color: var(--secondary-color); }
.border-primary { border-color: var(--primary-color); }

/* --- Layout Responsive --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* --- Animations de Scroll --- */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* --- Navigation --- */
.nav-scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

/* --- Section HERO --- */
#hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

#hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: url('img/bg.jpg') center center / cover no-repeat;
    filter: blur(6px);
    opacity: 0.7;
}

#hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(120deg, rgba(0,85,255,0.35) 0%, rgba(0,85,255,0.25) 100%);
    pointer-events: none;
}

#hero > .container {
    position: relative;
    z-index: 3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* --- Cartes de témoignage --- */
.testimonial-card {
    min-height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.testimonial-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
    position: absolute;
    inset: 0;
    transition: all 0.4s ease;
}

.testimonial-card:hover .testimonial-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
}

/* --- Statistiques --- */
.stat-count {
    transition: all 0.5s ease;
}

/* --- Responsive Design --- */
@media (max-width: 1200px) {
    .container {
        max-width: 992px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 768px;
    }
    
    #hero {
        min-height: 80vh;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 576px;
        padding: 0 1.5rem;
    }
    
    body {
        font-size: 0.95rem;
    }
    
    .py-20, .py-16 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    #hero {
        min-height: 70vh;
        text-align: center;
    }
    
    #hero::before {
        filter: blur(3px);
        transform: scale(1.1);
    }
    
    .testimonial-card {
        min-height: 300px;
        margin: 0.5rem 0;
    }
    
    .scroll-animate {
        transform: translateY(20px);
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }
    
    body {
        font-size: 0.9rem;
    }
    
    #hero {
        min-height: 60vh;
    }
    
    .testimonial-card {
        min-height: 250px;
        border-radius: 0.5rem;
    }
    
    .nav-scrolled {
        backdrop-filter: blur(5px);
    }
}

/* --- Accessibilité et Performances --- */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-animate {
        transition: none;
        opacity: 1;
        transform: none;
    }
}

/* --- Support des écrans haute résolution --- */
@media (min-resolution: 192dpi) {
    #hero::before {
        filter: blur(3px);
    }
}

/* --- Mode paysage sur mobile --- */
@media (max-height: 500px) and (orientation: landscape) {
    #hero {
        min-height: 120vh;
    }
}