/* =========================================
   1. VARIABLES & UTILITAIRES DE BASE
========================================= */
:root {
    --clr-primary: #10B981;
    --clr-primary-hover: #059669;
}

.text-primary { color: var(--clr-primary); }
.text-white { color: #ffffff; }
.text-dark { color: #000000; }
.text-gray-300 { color: #d1d5db; }
.bg-white { background-color: #ffffff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-primary { background: linear-gradient(to bottom right, var(--clr-primary), var(--clr-primary-hover)); }
.bg-dark { background: linear-gradient(to bottom right, #4b5563, #1f2937); }
.bg-gradient-dark { background: linear-gradient(to bottom right, #000000, #111827); }

.font-bold { font-weight: 700; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-8 { margin-top: 2rem; }
.section-padding { padding: 5rem 0; }

.section-title { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; }
.section-subtitle { font-size: 1.125rem; color: #4b5563; max-width: 42rem; margin: 0 auto; }

/* Boutons et Icônes */
.btn-primary {
    background-color: var(--clr-primary);
    color: #ffffff;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: background-color 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
}
.btn-primary:hover { background-color: var(--clr-primary-hover); }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.125rem; }

.icon-lg { width: 2rem; height: 2rem; }
.icon-check { width: 1.5rem; height: 1.5rem; color: var(--clr-primary); flex-shrink: 0; margin-top: 0.125rem; }
.icon-huge { width: 4rem; height: 4rem; }

/* =========================================
   2. HERO SECTION
========================================= */
.page-hero {
    padding: 10rem 1rem 5rem 1rem;
    background-color: #000;
}
.page-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
}
.page-subtitle {
    font-size: 1.25rem;
    max-width: 48rem;
    margin: 0 auto;
    line-height: 1.6;
}

/* =========================================
   3. OUR STORY & OUR CEO (Grilles)
========================================= */
.story-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}
.story-text {
    font-size: 1.125rem;
    color: #4b5563;
    margin-bottom: 1rem;
    line-height: 1.6;
}
.rounded-shadow-img {
    width: 100%;
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    object-fit: cover;
}

/* Specificités Image CEO (Portrait) */
.ceo-img {
    aspect-ratio: 4 / 5; /* Format portrait élégant */
    object-position: top center;
}

/* Textes CEO */
.ceo-name {
    font-size: 2rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.25rem;
}
.ceo-title {
    font-size: 1.125rem;
    color: var(--clr-primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.ceo-quote {
    font-size: 1.25rem;
    font-style: italic;
    color: #374151;
    border-left: 4px solid var(--clr-primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 0 0.5rem 0.5rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Les petits avatars superposés (Our Story) */
.team-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}
.avatars-group { display: flex; }
.avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 2px solid #ffffff;
}
.avatar:not(:first-child) {
    margin-left: -0.75rem; /* Superposition */
}
.team-title { font-weight: 700; color: #000000; }
.team-subtitle { font-size: 0.875rem; color: #4b5563; }

/* =========================================
   4. STATS SECTION (Bandeau vert)
========================================= */
.stats-section {
    background: linear-gradient(to right, var(--clr-primary), var(--clr-primary-hover));
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: center;
}
.stat-number {
    font-size: clamp(2.5rem, 4vw, 3.75rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}
.stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 1.125rem;
}

/* =========================================
   5. OUR VALUES (Cartes)
========================================= */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.value-card {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}
.value-card:hover {
    border-color: var(--clr-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}
.value-icon-wrapper {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(to bottom right, var(--clr-primary), var(--clr-primary-hover));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
}
.value-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.value-desc { color: #4b5563; line-height: 1.5; }

/* =========================================
   6. WHY CHOOSE US
========================================= */
.why-choose-container { max-width: 56rem; margin: 0 auto; }
.why-choose-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.why-choose-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.why-choose-text { color: #374151; font-weight: 500; font-size: 1.05rem; }

/* =========================================
   7. MISSION SECTION
========================================= */
.mission-container { max-width: 56rem; margin: 0 auto; }
.mission-text {
    font-size: 1.25rem;
    line-height: 1.8;
}

/* =========================================
   8. ANIMATIONS AU SCROLL
========================================= */
.animate-on-scroll { opacity: 0; }
.fade-in { transition: opacity 0.8s ease-out; }
.fade-in-up { transform: translateY(30px); transition: all 0.8s ease-out; }
.fade-in-left { transform: translateX(-40px); transition: all 0.8s ease-out; }
.fade-in-right { transform: translateX(40px); transition: all 0.8s ease-out; }

.is-visible { opacity: 1 !important; transform: translate(0) !important; }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* =========================================
   9. MEDIA QUERIES (RESPONSIVE)
========================================= */
@media (min-width: 768px) {
    .why-choose-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    /* Sur grand écran, la grille se divise en 2 colonnes */
    .story-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
}