/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

.site-title {
    font-weight: bold;
    font-size: 20px;
}

.nav-links a {
    margin-left: 18px;
    text-decoration: none;
    color: #333;
    font-size: 15px;
}

.nav-links a:hover {
    color: #0f6fd6;
}

/* HERO COMMUN */
.hero-banner,
.hero-actions,
.hero-association,
.hero-don {
    position: relative;
    height: 460px;
    display: flex;
    align-items: center;
    padding-left: 60px;
    color: white;
    overflow: hidden;

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* DÉGRADÉ COMMUN */
.hero-banner::before,
.hero-actions::before,
.hero-association::before,
.hero-don::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(20, 40, 80, 0.75) 0%,
        rgba(20, 40, 80, 0.55) 35%,
        rgba(20, 40, 80, 0.20) 70%,
        rgba(20, 40, 80, 0.05) 100%
    );
}

/* TITRE HERO */
.hero-banner h1,
.hero-actions h1,
.hero-association h1,
.hero-don h1 {
    position: relative;
    z-index: 2;
    font-size: 38px;
    font-weight: 800;
}

/* TEXT HERO */
.hero-banner p,
.hero-don p {
    position: relative;
    z-index: 2;
    font-size: 18px;
    margin-top: 10px;
}

/* IMAGES PAR PAGE */
.hero-banner {
    background-image: url("images/bandeau-accueil.png");
}

.hero-actions {
    background-image: url("images/bandeau-actions.png");
    /* background-position: center 30%; */
}

.hero-association {
    background-image: url("images/bandeau-association.png");
}

.hero-don {
    background-image: url("images/bandeau-don.png");
}

/* CONTENU GENERAL */
.container {
    max-width: 1100px;
    margin: auto;
    padding: 50px 20px;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #1f2f43;
}

/* TEXT CENTRÉ */
.text-center {
    text-align: center;
    max-width: 800px;
    margin: auto;
    margin-bottom: 40px;
}

/* CARTES (missions, valeurs, etc.) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.card {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* SECTION DON */
.don-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.don-card {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.don-button {
    display: inline-block;
    background: #0f6fd6;
    color: #fff;
    padding: 12px 20px;
    margin-top: 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

.don-button:hover {
    background: #0c5ec0;
}

/* QR CODE */
.qr-box {
    width: 130px;
    margin: 15px auto;
}

/* FOOTER */
footer {
    background: #1f2f43;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

footer a {
    color: #fff;
    text-decoration: none;
    margin: 0 8px;
}

footer a:hover {
    text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 900px) {

    .card-grid,
    .don-grid {
        grid-template-columns: 1fr;
    }

    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        margin-top: 10px;
    }

    .hero-banner,
    .hero-actions,
    .hero-association,
    .hero-don {
        height: 520px;
        padding-left: 20px;
    }

    .hero-banner h1,
    .hero-actions h1,
    .hero-association h1,
    .hero-don h1 {
        font-size: 26px;
    }
}