/* Variables CSS */
:root {
    --couleur-principale: #1a6b2e;
    --couleur-secondaire: #145224;
    --couleur-accent: #f5c542;
    --couleur-texte: #1a1a1a;
    --couleur-texte-clair: #ffffff;
    --couleur-fond: #f4f4f4;
    --couleur-carte: #ffffff;
    --police-titre: Georgia, serif;
    --police-corps: Arial, sans-serif;
}

/* Reset de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--police-corps);
    color: var(--couleur-texte);
    background-color: var(--couleur-fond);
}

/* Header */
header {
    background-color: var(--couleur-principale);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 40px;
}

.header-logo img {
    width: 60px;
    height: auto;
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

nav ul li a {
    color: var(--couleur-texte-clair);
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
}

nav ul li a:hover {
    color: var(--couleur-accent);
}

/* Section héro */
.hero {
    position: relative;
    text-align: center;
}

.hero-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

.hero-texte {
    background-color: var(--couleur-principale);
    color: var(--couleur-texte-clair);
    padding: 30px 40px;
    border: 3px solid var(--couleur-texte-clair);
    margin: 20px auto;
    max-width: 700px;
    border-radius: 8px;
    transition: transform 0.3s;
    cursor: pointer;
}
.hero-texte:hover {
    transform: scale(1.1);
}
.hero-texte h1 {
    font-family: var(--police-titre);
    font-size: 24px;
    margin-bottom: 12px;
}

.hero-texte p {
    font-size: 15px;
    line-height: 1.7;
}

/* Section stats */
.stats {
    background-color: var(--couleur-principale);
    color: var(--couleur-texte-clair);
    padding: 40px;
    text-align: center;
}

.stats h2 {
    font-size: 22px;
    margin-bottom: 25px;
}

.stats-grille {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.stat-carte {
    background-color: rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 20px 30px;
    min-width: 150px;
    transition: transform 0.3s;
    cursor: pointer;
}
.stat-carte:hover {
    transform: scale(1.1);
}

.stat-carte strong {
    font-size: 30px;
    display: block;
    margin-bottom: 6px;
    color: var(--couleur-accent);
}

.stat-carte p {
    font-size: 13px;
}

/* Section actualités */
.actualites {
    padding: 40px;
    background-color: var(--couleur-fond);
}

.actualites h2 {
    font-size: 22px;
    color: var(--couleur-principale);
    margin-bottom: 25px;
    text-align: center;
}

.articles-grille {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}


.articles-grille article {
    background-color: var(--couleur-carte);
    border-left: 5px solid var(--couleur-principale);
    border-radius: 6px;
    padding: 20px;
    max-width: 300px;
    flex: 1;
    transition: transform 0.3s;
    cursor: pointer;
}
.articles-grille article:hover {
    transform: scale(1.1);
}

.articles-grille article h3 {
    font-size: 16px;
    color: var(--couleur-principale);
    margin-bottom: 10px;
}

.articles-grille article p {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}

/* Footer */
footer {
    background-color: var(--couleur-secondaire);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 18px 40px;
    font-size: 12px;
}

footer a {
    color: var(--couleur-accent);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {

    header {
        flex-direction: column;
        gap: 10px;
        padding: 12px 15px;
        text-align: center;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 14px;
    }

    nav ul li a {
        font-size: 13px;
    }

    .hero-img {
        max-height: 250px;
    }

    .hero-texte {
        margin: 15px;
        padding: 20px;
    }

    .hero-texte h1 {
        font-size: 20px;
    }

    .stats {
        padding: 25px 15px;
    }

    .stats-grille {
        flex-direction: column;
        align-items: center;
    }

    .stat-carte {
        width: 100%;
        min-width: unset;
    }

    .actualites {
        padding: 25px 15px;
    }

    .articles-grille {
        flex-direction: column;
        align-items: center;
    }

    .articles-grille article {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 480px) {

    nav ul li a {
        font-size: 11px;
    }

    .hero-img {
        max-height: 180px;
    }

    .hero-texte h1 {
        font-size: 17px;
    }

    .hero-texte p {
        font-size: 13px;
    }

    .stat-carte strong {
        font-size: 24px;
    }

    footer {
        padding: 15px 20px;
        font-size: 11px;
    }
}