*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --primary: #3B4970;
    --accent: #FFAF23;
    --bg-light: #f9f9f9;
    --white: #ffffff;
}

body {
    margin: 0;
    font-family: "aaux-next", "Segoe UI", Roboto, sans-serif;
    font-size: 18px;
    color: var(--primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

/* --- STICKY LOGO --- */
.sticky-logo-container {
    position: sticky;
    top: 30px;
    z-index: 1000;
    padding-left: 10%;
    height: 0;
    overflow: visible;
}

.sticky-logo-container svg {
    height: 100px;
    width: 100px;
    fill: var(--white);
    transition: fill 0.3s ease;
    cursor: pointer;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.sticky-logo-container.logo-blue svg {
    fill: var(--primary);
}

.sticky-logo-container svg:hover {
    fill: var(--accent);
}

/* --- HERO SECTION --- */
.header {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 4rem;
    height: 100vh;
    background-image: linear-gradient(rgba(59, 73, 112, 0.4), rgba(59, 73, 112, 0.4)),
        url("../images/lac.avif");
    background-size: cover;
    background-position: center;
    padding: 0 10%;
}

.header>h1 {
    width: 45%;
    align-self: flex-end;
    color: var(--white);
    font-size: 1.5rem;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
    font-weight: 300;
}

.begin-support-button {
    text-transform: uppercase;
    color: var(--primary);
    background-color: var(--accent);
    font-size: 28px;
    letter-spacing: 0.1em;
    padding: 20px 40px;
    transition: all 0.25s ease;
    text-decoration: none;
    align-self: center;
    margin-bottom: 50px;
    border: 4px solid transparent;
    font-weight: bold;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.begin-support-button:hover {
    border: 4px solid var(--primary);
    background-color: var(--white);
    transform: translateY(-2px);
}

/* --- SECTIONS --- */
section {
    padding: 6rem 10%;
}

h2 {
    font-size: 2.2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    margin-bottom: 3.5rem;
}

/* --- STATS & VALEURS (Unified) --- */
.stats-values {
    background-color: var(--accent);
    padding: 4rem 10%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    /* Force les rangées à avoir la même hauteur */
    gap: 2rem;
    text-align: center;
}

.stat-item,
.value-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Centre le contenu verticalement */
}

.stat-item .number {
    font-size: 3rem;
    font-weight: 800;
    display: block;
    color: var(--primary);
}

.stat-item .label {
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: bold;
    color: var(--primary);
}

.value-item h3 {
    text-transform: uppercase;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: bold;
}

.value-item p {
    color: var(--primary);
    margin: 0;
}

/* --- SAVOIR-FAIRE --- */
.savoir-faire {
    background-color: var(--bg-light);
    color: var(--primary);
}

.savoir-faire h2 {
    color: var(--primary);
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    flex: 1 1 300px;
    max-width: 400px;
}

.service-card:hover {
    background: var(--white);
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    display: block;
}

.service-card h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 1.1rem;
    font-weight: bold;
}

.service-card p {
    font-size: 0.95rem;
    opacity: 0.9;
    color: var(--primary);
}

/* --- RÉALISATIONS --- */
.realisations {
    background-color: var(--primary);
    color: var(--white);
}

.realisations h2 {
    color: var(--white);
}

.realisations-intro {
    text-align: center;
    max-width: 800px;
    margin: -2rem auto 3rem;
    font-style: italic;
    color: var(--white);
}

.realisations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

@media screen and (min-width: 600px) and (max-width: 1200px) {
    .realisations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 1201px) {
    .realisations-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.realisation-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-top: 6px solid var(--accent);
    color: var(--primary);
}

.realisation-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}

.realisation-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: bold;
}

/* --- TEAM & PARTNERS --- */
.team {
    background-color: var(--bg-light);
    text-align: center;
}

.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.member-card {
    background: var(--white);
    padding: 2.5rem;
    border-top: 4px solid var(--primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.member-initials {
    width: 70px;
    height: 70px;
    background: var(--accent);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-weight: bold;
    font-size: 1.5rem;
}

.partners {
    background-color: var(--white);
    padding: 5rem 0;
    text-align: center;
    overflow: hidden;
}

.partners-slider {
    height: 100px;
    margin: auto;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.slide-track {
    animation: scroll 40s linear infinite;
    display: flex;
    width: calc(250px * 20);
}

.slide {
    width: 250px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 30px;
}

.slide img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    transition: 0.3s;
}


@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-250px * 10));
    }
}

/* --- FOOTER --- */
footer {
    padding: 4rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary);
    color: var(--white);
}

footer img {
    height: 45px;
    filter: brightness(0) invert(1);
}

footer a {
    color: var(--white);
    text-decoration: none;
}

@media screen and (max-width: 768px) {
    .header {
        justify-content: center;
    }

    .header>h1 {
        width: 90%;
        text-align: center;
        font-size: 1.2rem;
    }

    .begin-support-button {
        display: none;
    }

    footer {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    section {
        padding: 4rem 5%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        /* Une seule colonne sur mobile */
    }

    /* Mobile Sticky Header */
    .sticky-logo-container {
        padding-left: 20px;
        top: 0;
    }

    .sticky-logo-container svg {
        transition: all 0.3s ease;
    }

    .sticky-logo-container.mobile-scrolled {
        position: fixed;
        top: 0;
        left: 0;
        background-color: var(--white);
        width: 100%;
        height: 70px;
        padding: 10px 20px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        display: flex;
        align-items: center;
    }

    .sticky-logo-container.mobile-scrolled svg {
        height: 50px;
        width: 50px;
        fill: var(--primary) !important;
    }
}