/* === Polices élégantes === */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;600&display=swap');

body, .fancy-text {
    font-family: 'Raleway', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #ff99cc, #9966cc, #003366);
    color: #ffffff;
}

/* === Header === */
header {
    background-color: #f1a7dc;
    padding: 30px;
    text-align: center;
    margin-bottom: 80px;
}

/* === Navigation === */
.top-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    background-color: rgba(255, 255, 255, 0.2);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.site-logo {
    font-size: 28px;
    font-weight: bold;
    color: #c564d8;
    margin-left: 20px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
    padding-right: 10%;
}

nav a {
    text-decoration: none;
    color: #c564d8;
    font-size: 20px;
    font-weight: bold;
    transition: color 0.3s;
}

nav a:hover {
    color: #d599f1;
}

.menu-toggle {
    display: none;
    font-size: 30px;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.8);
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

    nav ul.active {
        display: flex;
    }

    nav li {
        margin: 10px 0;
    }
}

/* === Intro section === */
.intro-section {
    background-color: rgb(244, 192, 230);
    border-radius: 15px;
    padding: 20px;
    margin: 20px auto;
    width: 80%;
    text-align: center;
}

/* === Engagement - Bulles stylées === */
.engagement-section {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin: 60px 0;
}

.engagement-bubble-wrapper {
    width: 70%;
}

.engagement-bubble {
    background: rgba(244, 192, 230);
    color: #ffffff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
    transition: transform 0.3s;
}

.engagement-bubble:hover {
    transform: scale(1.01);
}

.centered-list {
    list-style: disc inside;
    padding: 0;
    text-align: center;
    margin: 20px 0;
}

.centered-list li {
    margin-bottom: 8px;
}

.final-line {
    margin-top: 20px;
    font-weight: 500;
    font-style: italic;
}

/* === Carrousel sans flèches === */
.photo-section {
    text-align: center;
    margin: 60px 0;
}

.photo-carousel-wrapper {
    display: flex;
    justify-content: center;
}

.photo-carousel {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 20px;
}

.photo-carousel img {
    height: 200px;
    border-radius: 10px;
    cursor: pointer;
    scroll-snap-align: center;
    transition: transform 0.3s;
}

.photo-carousel img:hover {
    transform: scale(1.05);
}

/* === Zoom Image (Modale) === */
.photo-modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.photo-modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.photo-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

/* === Article section === */
.school-article {
    text-align: center;
    margin: 60px 0;
}

.article-preview img {
    max-width: 80%;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: transform 0.3s;
}

.article-preview img:hover {
    transform: scale(1.03);
}

.article-preview a {
    color: #fff;
    text-decoration: underline;
    font-weight: bold;
}

/* === Responsive === */
@media (max-width: 768px) {
    .engagement-bubble-wrapper {
        width: 90%;
    }

    .engagement-bubble {
        padding: 20px;
    }

    .photo-carousel img {
        height: 150px;
    }
}
