/* ===== SECTION INTRO ===== */
.detail-intro {
    text-align: center;
    padding: 50px 20px 40px;
    max-width: 700px;
    margin: 0 auto;
}

.detail-intro h1 {
    font-family: 'Optima', 'Mukta Mahee', sans-serif;
    color: var(--vert-fonce);
    font-size: 2.2rem;
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.detail-intro p {
    font-family: 'Mukta Mahee', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    color: var(--vert-fonce);
    line-height: 1.6;
}

.reportages-cta {
    display: inline-block;
    padding: 12px 35px;
    border: 1.5px solid var(--noir);
    color: var(--vert-fonce);
    font-family: 'Mukta Mahee', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    letter-spacing: 1px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.reportages-cta:hover {
    background-color: var(--vert-fonce);
    color: var(--blanc);
    border-color: var(--vert-fonce);
}

/* ===== GRILLE PHOTOS ===== */
.detail-grid {
    max-width: 85%;
    margin: 0 auto;
    padding: 0 0 60px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.detail-photo {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
}

.detail-photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.detail-photo:hover img {
    transform: scale(1.05);
}

/* ===== LIGHTBOX ===== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 75%;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background-color: var(--vert-fonce);
    color: var(--blanc);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    z-index: 1001;
}

.lightbox-close:hover {
    opacity: 0.8;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: var(--vert-fonce);
    color: var(--blanc);
    border: none;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    z-index: 1001;
}

.lightbox-arrow:hover {
    opacity: 0.8;
}

.lightbox-prev {
    left: 25px;
}

.lightbox-next {
    right: 25px;
}

/* ===== RESPONSIVE ===== */

/* 3 colonnes */
@media (max-width: 1000px) {
    .detail-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 90%;
    }
}

/* 2 colonnes */
@media (max-width: 650px) {
    .detail-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 90%;
        gap: 15px;
    }

    .detail-intro h1 {
        font-size: 1.6rem;
    }

    .detail-intro {
        padding: 35px 20px 25px;
    }

    .lightbox-content {
        max-width: 90%;
    }

    .lightbox-arrow {
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 38px;
        height: 38px;
    }
}

/* 1 colonne */
@media (max-width: 400px) {
    .detail-grid {
        grid-template-columns: 1fr;
        max-width: 80%;
    }
}
