/* ========================================= RESET GLOBAL & BODY ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    background-color: #000000;
    color: #ffffff;
    line-height: 1.6;
}

/* ========================================= LIENS ========================================= */
a {
    color: #000000;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* ========================================= HEADER & NAV ========================================= */
header {
    background: linear-gradient(to right, #2E8B57, #90EE90);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

nav.nav-droite {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

nav a {
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* ========================================= TITRES ========================================= */
h1 {
    font-size: 3.5rem;
    color: #90EE90;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    margin: 40px 0 20px 0;
}

h2 {
    font-size: 2rem;
    color: #90EE90;
    text-align: center;
    margin: 30px 0 20px 0;
}

/* ========================================= GRILLE ÉVÉNEMENTS ========================================= */
.grid-évenements {
    display: grid;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto 50px auto;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-évenements img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.grid-évenements img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
}

.grid-évenements .programme {
    object-fit: contain;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ========================================= GALERIE ========================================= */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 50px;
}

.gallery img {
    width: 600px;
    height: 900px;
    object-fit: cover;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 30px rgba(0,0,0,0.6);
}

/* ========================================= LIGHTBOX ========================================= */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.lightbox img {
    max-width: 85%;
    max-height: 85%;
    border-radius: 15px;
    box-shadow: 0 0 35px rgba(144,238,144,0.5);
    transition: transform 0.3s ease;
}

.lightbox img:hover {
    transform: scale(1.02);
}

.lightbox .close,
.lightbox .prev,
.lightbox .next {
    position: absolute;
    color: #90EE90;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    text-shadow: 0 0 10px rgba(0,0,0,0.6);
    transition: color 0.3s ease, transform 0.3s ease;
}

.lightbox .close {
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
}

.lightbox .close:hover {
    color: #2E8B57;
    transform: scale(1.2);
}

.lightbox .prev {
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
}

.lightbox .prev:hover {
    color: #2E8B57;
    transform: translateY(-50%) scale(1.2);
}

.lightbox .next {
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
}

.lightbox .next:hover {
    color: #2E8B57;
    transform: translateY(-50%) scale(1.2);
}

/* ========================================= ANIMATIONS ========================================= */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ========================================= FOOTER ========================================= */
footer {
    background: linear-gradient(to right, #2E8B57, #90EE90);
    padding: 30px 0;
}

footer div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

footer img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

footer img:hover {
    transform: scale(1.2);
}

/* ========================================= RESPONSIVE ========================================= */
@media (max-width: 1024px) {
    .gallery {
        gap: 15px;
    }
    .grid-évenements {
        grid-auto-rows: auto;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
        margin: 20px 0;
    }
    h2 {
        font-size: 1.8rem;
    }
    .gallery {
        flex-direction: column;
        gap: 20px;
    }
    .gallery img {
        width: 90%;
        height: auto;
        margin: 0 auto;
    }
    .grid-évenements img {
        height: auto;
    }
    .lightbox .close {
        font-size: 2rem;
        top: 15px;
        right: 20px;
    }
    .lightbox .prev, .lightbox .next {
        font-size: 2.5rem;
        left: 20px;
        right: 20px;
    }
    .lightbox img {
        max-width: 95%;
        max-height: 70%;
    }
    footer img {
        width: 35px;
        height: 35px;
    }
}
