/* =============================================
   PAGE MÉDIAS - Vizille en Mouvement
   Navigation simplifiée : page scrollable
   ============================================= */

.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

/* ===== BARRE DE NAVIGATION ANCRES ===== */
.media-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 3rem;
    position: sticky;
    top: 80px;
    z-index: 100;
    flex-wrap: wrap;
}

.media-nav-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    text-decoration: none;
    color: #666;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.media-nav-link:hover {
    background: #f0f4f8;
    color: #1a3a5c;
}

.media-nav-link.active {
    background: #1a3a5c;
    color: white;
}

.media-nav-icon {
    font-size: 1.2rem;
}

.media-nav-label {
    font-size: 0.95rem;
}

.media-nav-count {
    font-size: 0.8rem;
    opacity: 0.7;
}

.media-nav-link.active .media-nav-count {
    opacity: 0.9;
}

/* ===== SECTIONS (BLOCS) ===== */
.media-bloc {
    margin-bottom: 4rem;
    scroll-margin-top: 160px;
}

.bloc-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #f0f4f8;
}

.bloc-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #1a3a5c;
    margin: 0;
}

/* ===== GRILLE ALBUMS ===== */
.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.album-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.album-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.15);
}

.album-cover {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.album-card:hover .album-cover img {
    transform: scale(1.08);
}

.album-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    display: flex;
    justify-content: flex-end;
}

.photo-count {
    background: rgba(255,255,255,0.95);
    color: #333;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.album-info {
    padding: 1rem 1.25rem 1.25rem;
}

.album-title {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a3a5c;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.album-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #888;
}

/* ===== VUE DÉTAIL ALBUM ===== */
.album-detail {
    animation: fadeIn 0.3s ease;
}

.back-to-albums {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #f0f4f8;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a3a5c;
    margin-bottom: 1.5rem;
    transition: all 0.2s;
}

.back-to-albums:hover {
    background: #e0e8f0;
}

.album-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.album-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #1a3a5c;
    margin: 0 0 0.5rem 0;
}

.album-description {
    color: #666;
    font-size: 1.05rem;
    margin: 0 0 1rem 0;
    line-height: 1.6;
}

.album-meta-detail {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: #888;
}

.album-meta-detail span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ===== GRILLE PHOTOS/MÉDIAS ===== */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.media-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.media-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.media-item {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    cursor: pointer;
}

.media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.media-card:hover .media-item img {
    transform: scale(1.05);
}

.photo-zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.media-item:hover .photo-zoom-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.media-info {
    padding: 0.85rem 1.1rem 1rem;
}

.media-info .media-title {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #1a3a5c;
    margin: 0 0 0.3rem 0;
    line-height: 1.3;
}

.media-info .media-date {
    font-size: 0.82rem;
    color: #888;
}

/* ===== VIDÉOS ===== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.video-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s, transform 0.3s;
}

.video-item:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    cursor: pointer;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.video-item:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(233, 30, 99, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s, background 0.3s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.video-thumbnail:hover .video-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    background: #E91E63;
}

.video-info {
    padding: 1rem 1.25rem 1.25rem;
}

.video-title {
    margin: 0 0 0.3rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a3a5c;
}

.video-date {
    font-size: 0.85rem;
    color: #888;
}

.video-description {
    margin: 0.5rem 0 0 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Modal vidéo */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.92);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.video-modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16/9;
}

.video-modal-content iframe {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.video-modal-close {
    position: absolute;
    top: -45px;
    right: 0;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.2s;
}

.video-modal-close:hover {
    background: rgba(255,255,255,0.4);
}

/* ===== REVUE DE PRESSE ===== */
.presse-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.presse-item {
    display: flex;
    gap: 1.5rem;
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s, transform 0.3s;
}

.presse-item:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.presse-image {
    width: 160px;
    height: 110px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

.presse-content {
    flex: 1;
}

.presse-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.presse-source {
    color: #E91E63;
    font-weight: 600;
}

.presse-date {
    color: #888;
}

.presse-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    color: #1a3a5c;
    font-weight: 700;
}

.presse-excerpt {
    color: #555;
    margin: 0 0 0.75rem 0;
    line-height: 1.6;
}

.presse-link {
    color: #00BCD4;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.presse-link:hover {
    color: #E91E63;
    text-decoration: underline;
}

/* ===== DOCUMENTS ===== */
.documents-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s, transform 0.3s;
}

.document-item:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateX(4px);
}

.document-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.document-info {
    flex: 1;
}

.document-title {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    color: #1a3a5c;
    font-weight: 700;
}

.document-description {
    margin: 0 0 0.25rem 0;
    color: #666;
    font-size: 0.9rem;
}

.document-meta {
    font-size: 0.8rem;
    color: #888;
}

.document-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.doc-btn {
    padding: 0.6rem 1.1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
}

.doc-btn-view {
    background: #1a3a5c;
    color: white;
}

.doc-btn-view:hover {
    background: #2c5282;
}

.doc-btn-download {
    background: #f0f4f8;
    color: #333;
}

.doc-btn-download:hover {
    background: #e0e8f0;
}

/* ===== VISIONNEUSE DE DOCUMENTS ===== */
.doc-viewer-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.92);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.doc-viewer-overlay.active {
    display: flex;
}

.doc-viewer-container {
    background: white;
    border-radius: 16px;
    width: 95vw;
    max-width: 1000px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.doc-viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #1a3a5c;
    color: white;
}

.doc-viewer-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.doc-viewer-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.2s;
}

.doc-viewer-close:hover {
    background: rgba(255,255,255,0.3);
}

.doc-viewer-content {
    flex: 1;
    overflow: auto;
    background: #f5f5f5;
}

.doc-viewer-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.doc-viewer-image {
    max-width: 100%;
    max-height: 100%;
    display: block;
    margin: auto;
    padding: 1rem;
}

/* ===== LIGHTBOX ===== */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: -45px;
    right: 0;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    transition: background 0.2s;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.4);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: background 0.2s;
}

.lightbox-prev { left: -70px; }
.lightbox-next { right: -70px; }

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,0.4);
}

.lightbox-caption {
    color: white;
    text-align: center;
    margin-top: 1rem;
    font-size: 1rem;
}

.lightbox-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: #f8f9fa;
    border-radius: 16px;
}

.empty-state .icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: #1a3a5c;
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.empty-state p {
    color: #666;
    margin: 0;
}

.loading {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.loading span {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.media-bloc {
    animation: fadeIn 0.4s ease;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .content {
        padding: 1.5rem 1rem 2rem;
    }

    .media-nav {
        gap: 0.3rem;
        padding: 0.5rem;
        top: 60px;
        border-radius: 12px;
        margin-bottom: 2rem;
    }

    .media-nav-link {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
        gap: 0.3rem;
        flex: 1;
        justify-content: center;
    }

    .media-nav-label {
        font-size: 0.85rem;
    }

    .media-nav-count {
        display: none;
    }

    .bloc-header h2 {
        font-size: 1.4rem;
    }

    .media-bloc {
        margin-bottom: 3rem;
    }

    .albums-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .album-info {
        padding: 0.75rem;
    }

    .album-title {
        font-size: 0.95rem;
    }

    .album-meta {
        font-size: 0.75rem;
    }

    .album-header h2 {
        font-size: 1.5rem;
    }

    .album-meta-detail {
        gap: 0.75rem;
        font-size: 0.85rem;
    }

    .media-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .media-info {
        padding: 0.6rem 0.8rem 0.75rem;
    }

    .media-info .media-title {
        font-size: 0.85rem;
    }

    .media-info .media-date {
        font-size: 0.75rem;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .presse-item {
        flex-direction: column;
    }

    .presse-image {
        width: 100%;
        height: 150px;
    }

    .document-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .document-actions {
        width: 100%;
        justify-content: center;
    }

    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
}

@media (max-width: 480px) {
    .media-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .media-nav-link {
        flex: 1 1 45%;
        min-width: 0;
    }

    .media-nav-icon {
        font-size: 1rem;
    }

    .albums-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .media-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .bloc-header h2 {
        font-size: 1.25rem;
    }
}
