/* Styles spécifiques à la galerie de presse */

.press-subtitle {
    font-size: 1.1rem;
    color: var(--gray-dark);
    margin-top: 15px;
    font-weight: normal;
}

.press-gallery-section {
    padding: 60px 20px;
    background-color: var(--white);
    min-height: 70vh;
}

.press-info {
    max-width: 1200px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--blue-primary);
    font-weight: 600;
    font-size: 1.1rem;
}

.press-info i {
    font-size: 1.3rem;
}

/* Grille en colonnes (masonry layout) */
.press-grid {
    column-count: 4;
    column-gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.press-item {
    position: relative;
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--white);
}

.press-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.press-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.press-item:hover img {
    transform: scale(1.05);
}

/* Style pour les aperçus PDF */
.press-pdf-preview {
    width: 100%;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    position: relative;
}

.press-pdf-preview i {
    font-size: 4rem;
    margin-bottom: 15px;
}

.pdf-label {
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 2px;
}

/* Overlay au survol */
.press-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(32, 141, 204, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.press-item:hover .press-item-overlay {
    opacity: 1;
}

.press-item-overlay i {
    font-size: 3rem;
    color: var(--white);
}

/* Modal Lightbox - identique à galerie-photo */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 10px;
}

.lightbox-controls {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.lightbox-btn {
    background-color: var(--blue-primary);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lightbox-btn:hover {
    background-color: #1a7aad;
    transform: translateY(-2px);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--red-primary);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background-color: #cc0000;
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.lightbox-nav:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 20px;
}

/* Message si pas d'articles */
.no-articles {
    text-align: center;
    padding: 80px 20px;
    color: var(--gray-dark);
}

.no-articles i {
    font-size: 5rem;
    color: var(--blue-primary);
    margin-bottom: 25px;
}

.no-articles h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.no-articles p {
    font-size: 1.1rem;
    color: #666;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .press-grid {
        column-count: 3;
        column-gap: 15px;
    }

    .press-item {
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .press-grid {
        column-count: 2;
        column-gap: 15px;
    }

    .press-subtitle {
        font-size: 1rem;
    }

    .press-info {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .press-item-overlay i {
        font-size: 2rem;
    }

    .press-pdf-preview {
        aspect-ratio: 2/3;
    }

    .press-pdf-preview i {
        font-size: 3rem;
    }

    .pdf-label {
        font-size: 1rem;
    }

    .lightbox-controls {
        flex-direction: column;
        width: 100%;
    }

    .lightbox-btn {
        width: 100%;
        justify-content: center;
    }

    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .lightbox-nav.prev {
        left: 10px;
    }

    .lightbox-nav.next {
        right: 10px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .press-grid {
        column-count: 1;
        column-gap: 0;
    }

    .press-item {
        margin-bottom: 15px;
    }

    .press-gallery-section {
        padding: 40px 15px;
    }

    .press-subtitle {
        font-size: 0.95rem;
    }

    .press-info {
        font-size: 0.95rem;
    }

    .press-pdf-preview {
        aspect-ratio: 3/4;
    }

    .press-pdf-preview i {
        font-size: 2.5rem;
    }

    .pdf-label {
        font-size: 0.9rem;
    }

    .no-articles {
        padding: 60px 20px;
    }

    .no-articles i {
        font-size: 4rem;
    }

    .no-articles h2 {
        font-size: 1.5rem;
    }

    .no-articles p {
        font-size: 1rem;
    }
}

/* Amélioration de la transition d'opacité */
.press-grid {
    transition: opacity 0.3s ease;
}