/* ========== HERO SECTION ========== 

.hero {
    height: 80vh;
    background: url("../images/IMG-20250919-WA0017.jpg") no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
    position: relative;
}*/

.hero {
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    position: relative;
    text-align: center;
    background-size: cover;
    background-position: center;
    animation: bgChange 20s infinite;
}

@keyframes bgChange {
    0% {
        background-image: url("../Images/hero/hero.jpg");
    }
    25% {
        background-image: url("../Images/hero/hero1.jpg");
    }
    50% {
        background-image: url("../Images/hero/hero2.jpg");
    }
    75% {
        background-image: url("../Images/hero/hero3.jpg");
    }
    100% {
        background-image: url("../Images/hero/hero4.jpg");
    }
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 58, 138, 0.6);
    /* overlay bleu */
}

.hero-text {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero-text h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.btn1 {
    background: url("../images/IMG-20250919-WA0033.jpg") no-repeat center center/cover;
    /* vert */
    color: #fff;
    padding: 12px 100px;
    /* transition: all 0.3s;*/
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
    position: relative;
    text-decoration: solid;
}

.btn1::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 58, 138, 0.6);
}

.btn1::after:hover {
    color: #16A34A;
}


/* ========== ACTUALITES ========== */

.actualites {
    padding: 50px 10%;
    background: #ffffff;
    text-align: center;
}

.actualites h2 {
    font-size: 2rem;
    color: #1E3A8A;
    margin-bottom: 30px;
}

.cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    width: 250px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, border 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border: 2px solid #16A34A;
}

.card h3 {
    margin-bottom: 10px;
    color: #1E3A8A;
}


/* GALERIE */

.galerie {
    padding: 40px 10%;
    text-align: center;
}

.galerie-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.galerie-scroll {
    display: flex;
    overflow-x: auto;
    /* on cache la scrollbar */
    gap: 10px;
    scroll-behavior: smooth;
    width: 100%;
    max-width: 900px;
}

.galerie-scroll img {
    height: 200px;
    border-radius: 10px;
    flex: 0 0 auto;
    transition: transform 0.3s, border 0.3s;
}

.galerie-scroll img:hover {
    transform: scale(1.1);
    border: 2px solid #16A34A;
}


/* BOUTONS GAUCHE/DROITE */

.galerie-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30, 58, 138, 0.7);
    /* bleu semi-transparent */
    color: white;
    border: none;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 100;
}

.galerie-btn:hover {
    background: #16A34A;
}

.galerie-btn.left {
    left: -50px;
}

.galerie-btn.right {
    right: -50px;
}