*{
    margin: 0;
    padding: 0;
}

.parallax {
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    width: 100%;
    height: 80vh;
    background-image: url("../img/fond1.jpg");
    position: relative;
    z-index: 1;
}

.parallax::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

/* Accueil + title + slogan */
.slogan {
    height: auto;
    padding: 30px 10px;
    background-color: rgba(0, 56, 130, 0.8);
    color: #FFFFFF;
    font-size: 2em;
    text-align: center;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 600;
    box-shadow: inset 0 -4px 0 rgba(255, 255, 255, 0.2);
}

.acceuil {
    width: 80%;
    max-width: 1000px;
    margin: 30px auto;
    padding: 40px;
    background-color: #f9f9f9;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.acceuil h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
    color: rgb(0, 56, 130);
}

.acceuil p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333;
    text-align: justify;
}

/* Vidéo */

.video {
    width: 80%;
    max-width: 800px;
    margin: 100px auto;
    border: solid rgba(0, 56, 130, 0.2) 2px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Section article */

.articles-container {
    width: 90%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.article {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
}

.article:hover {
    transform: translateY(-5px);
}

.resume h2 {
    color: rgb(0, 56, 130);
    font-weight: bold;
    font-size: 1.6rem;
}

.resume h3 {
    font-size: 1.2rem;
    color: rgba(0, 56, 130, 0.6);
}

/* Titre section */

.title {
    display: flex;
    align-items: center;
    margin: 80px auto 40px auto;
    width: 100%;
    justify-content: space-around;
}

.titlebarre {
    height: 2px;
    width: 20%;
    background: rgb(0, 56, 130);
    opacity: 0.3;
    margin: 0 15px;
}

.title-page h2 {
    font-size: 2.2rem;
    font-weight: 500;
    color: rgb(0, 56, 130);
    text-align: center;
    margin: 0;
}

.carousel-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    overflow: hidden;
    padding: 40px 40px;
    margin: 0 auto;
}

.carousel {
    display: flex;
    gap: 24px;
    will-change: transform;
    flex-wrap: nowrap;
    align-items: stretch;
}

.carousel-card {
    flex: 0 0 30%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    text-align: center;
    padding: 12px;
    opacity: 0.6;
    transform: scale(0.95);
    transition: transform 0.35s ease, opacity 0.35s ease, box-shadow 0.35s ease;
    cursor: pointer;
}

.carousel-card.active {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 6px 24px rgba(0, 56, 130, 0.15);
}

.carousel-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 28px rgba(0, 56, 130, 0.2);
}

.carousel-card img {
    width: 100%;
    border-radius: 8px;
    height: 220px;
    object-fit: cover;
    margin-bottom: 12px;
}

.carousel-card h3 {
    font-size: 1.05rem;
    color: #003882;
    font-weight: 600;
    margin: 0;
    padding: 4px 8px;
    line-height: 1.4;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 56, 130, 0.85);
    color: white;
    border: none;
    font-size: 1.4rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, opacity 0.3s;
    line-height: 1;
}

.carousel-nav:hover {
    background-color: rgba(0, 56, 130, 1);
}

.carousel-nav.left { left: 0; }
.carousel-nav.right { right: 0; }

.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center; align-items: center;
    z-index: 999;
}

.modal-content {
    background: white;
    padding: 20px;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 10px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-content {
    padding: 35px;
}

#modalTitle {
    text-align: center;
}

/* Media Queries */

@media (max-width: 992px) {
    .parallax {
        height: 60vh;
    }

    .acceuil {
        width: 90%;
        padding: 30px;
    }

    .video {
        width: 90%;
    }

    .contenu {
        flex-direction: column;
    }

    .resume {
        width: 100%;
        padding: 20px;
    }

    .imagecarou {
        width: 100%;
        height: auto;
    }

    .text {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .slogan {
        font-size: 1.4em;
        padding: 20px;
    }

    .titlebarre {
        display: none;
    }

    .title-page {
        width: 100%;
    }

    .title-page h2 {
        font-size: 1.7em;
    }

    .video {
        width: 100%;
        height: auto;
    }

    .resume h2 {
        font-size: 1.3rem;
    }

    .resume h3 {
        font-size: 1rem;
    }

    .suite {
        width: 100%;
        margin: 30px auto;
    }
}

@media (max-width: 480px) {
    .slogan h1 {
        font-size: 1.2rem;
    }

    .acceuil p {
        font-size: 1rem;
    }

    .resume h2 {
        font-size: 1.1rem;
    }

    .resume h3 {
        display: none;
    }

    .text {
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 768px) {
    .carousel-container {
        width: 95%;
        padding: 20px 30px;
    }
    .carousel-nav {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }
}