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

body {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    background-color: #000;
    color: #fff;
    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 {
    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;
}

/* =========================================
   INTRO
========================================= */
.intro {
    text-align: center;
    padding: 60px 20px 40px;
}

.intro h1 {
    font-size: 3.2rem;
    color: #90EE90;
    font-family: 'Montserrat', sans-serif;
}

.intro p {
    max-width: 750px;
    margin: 15px auto 0;
    font-size: 1.2rem;
}

/* =========================================
   PLATFORM SECTION
========================================= */
.platform-section {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.platform-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.platform-header img {
    height: 100px;
}

.platform-header h2 {
    font-size: 2.2rem;
    color: #1DB954;
}

/* =========================================
   GALLERY
========================================= */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.photo-grid img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.photo-grid img:hover {
    transform: scale(1.06);
    box-shadow: 0 12px 35px rgba(144, 238, 144, 0.35);
}

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

#lightbox img {
    max-width: 85%;
    max-height: 85%;
    border-radius: 16px;
    box-shadow: 0 0 30px rgba(144, 238, 144, 0.4);
}

/* Boutons */
#lightbox button,
#close {
    position: absolute;
    background: none;
    border: none;
    color: #90EE90;
    font-size: 3rem;
    cursor: pointer;
    user-select: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

#lightbox button:hover,
#close:hover {
    color: #2E8B57;
}

#prev {
    left: 35px;
    top: 50%;
    transform: translateY(-50%);
}

#next {
    right: 35px;
    top: 50%;
    transform: translateY(-50%);
}

#close {
    top: 20px;
    right: 30px;
}

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

.footer-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-icons img {
    width: 40px;
    transition: transform 0.3s ease;
}

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

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

    to {
        opacity: 1;
    }
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 768px) {
    .intro h1 {
        font-size: 2.4rem;
    }

    .photo-grid img {
        height: auto;
    }

    #prev,
    #next {
        font-size: 2.4rem;
        left: 20px;
        right: 20px;
    }

    #close {
        font-size: 2.2rem;
        top: 15px;
        right: 20px;
    }
}
