/* Styles pour le pop-up des intervenants */
.modal-speakers {
    padding-right: 0 !important;
}
.modal-speakers .modal-dialog {
    max-width: 95%;
    width: 95%;
    height: 95vh;
    margin: 2.5vh auto;
    transition: all 0.3s ease;
    position: relative;
}
.modal-speakers .modal-dialog.reduced {
    max-width: 70%;
    width: 70%;
    height: 80vh;
}
.modal-speakers .modal-content {
    height: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
}
.modal-speakers .modal-header {
    background-color: #f8f8f8;
    border-bottom: 1px solid #e7e7e7;
    padding: 15px 20px;
    position: relative;
}
.modal-speakers .modal-title {
    color: #333;
    font-weight: bold;
    font-size: 24px;
    margin: 0;
}

/* Contrôles latéraux */
.modal-side-controls {
    position: absolute;
    top: 50%;
    right: -60px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1060;
}

.modal-side-controls .btn {
    padding: 12px 15px;
    font-size: 14px;
    border-radius: 8px 0 0 8px;
    border: none;
    box-shadow: -2px 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-side-controls .btn:hover {
    right: 0;
    transform: translateX(5px);
}

.modal-side-controls .btn-close-modal {
    background-color: #dc3545;
    color: white;
}

.modal-side-controls .btn-close-modal:hover {
    background-color: #c82333;
}

.modal-side-controls .btn-resize-modal {
    background-color: #6c757d;
    color: white;
}

.modal-side-controls .btn-resize-modal:hover {
    background-color: #5a6268;
}

.modal-side-controls .btn-minimize-modal {
    background-color: #17a2b8;
    color: white;
}

.modal-side-controls .btn-minimize-modal:hover {
    background-color: #138496;
}

/* Bouton de fermeture en haut à droite */
.modal-speakers .close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    opacity: 0.7;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1051;
}
.modal-speakers .close:hover {
    opacity: 1;
    color: #dc3545;
}

.modal-speakers .modal-body {
    overflow-y: auto;
    max-height: calc(95vh - 120px);
    padding: 20px;
}
.modal-speakers .modal-dialog.reduced .modal-body {
    max-height: calc(80vh - 120px);
}

/* Indicateur de taille */
.modal-size-indicator {
    position: absolute;
    top: 15px;
    left: 20px;
    background: #6c757d;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

/* État minimisé */
.modal-speakers .modal-dialog.minimized {
    max-width: 400px;
    width: 400px;
    height: auto;
    bottom: 20px;
    right: 20px;
    top: auto;
    left: auto;
    margin: 0;
}

.modal-speakers .modal-dialog.minimized .modal-body {
    display: none;
}

.modal-speakers .modal-dialog.minimized .modal-header {
    padding: 10px 15px;
}

.modal-speakers .modal-dialog.minimized .modal-title {
    font-size: 16px;
}

.speakers-row {
    margin-bottom: 30px;
}
.speaker-item {
    margin-bottom: 25px;
}
.speaker-thumbnail {
    margin-bottom: 15px;
}
.speaker-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}
.speaker-role {
    color: #777;
    font-style: italic;
    margin-bottom: 10px;
}
.speaker-organization {
    color: #555;
    margin-bottom: 10px;
}
.speaker-social {
    margin-top: 10px;
}


/* Styles pour les médiathèques */
.modal-mediatheque .modal-dialog {
    max-width: 95%;
    height: 90vh;
    transition: all 0.3s ease;
}

.modal-mediatheque .modal-dialog.reduced {
    max-width: 70%;
    height: 70vh;
}

.modal-mediatheque .modal-dialog.minimized {
    max-width: 40%;
    height: 40vh;
    position: fixed;
    bottom: 20px;
    right: 20px;
    margin: 0;
}

.modal-mediatheque .modal-content {
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.modal-mediatheque .modal-header {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border-bottom: none;
    padding: 15px 20px;
    position: relative;
}

.modal-mediatheque .modal-title {
    font-weight: 600;
    font-size: 1.5rem;
}

.modal-mediatheque .modal-body {
    padding: 20px;
    overflow-y: auto;
    height: calc(100% - 60px);
}

.modal-side-controls {
    position: absolute;
    right: 15px;
    top: 15px;
    z-index: 1000;
    display: flex;
    gap: 5px;
}

.modal-side-controls .btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 0.8rem;
    color: #333;
    transition: all 0.3s ease;
}

.modal-side-controls .btn:hover {
    background: white;
    transform: translateY(-1px);
}

.modal-size-indicator {
    position: absolute;
    right: 150px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* Galerie photos */
.photo-item {
    margin-bottom: 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.photo-item:hover {
    transform: scale(1.05);
}

.photo-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.photo-caption {
    margin-top: 8px;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

/* Galerie vidéos */
.video-item {
    margin-bottom: 30px;
}

.video-thumbnail {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.video-thumbnail:hover {
    transform: scale(1.03);
}

.video-caption {
    margin-top: 8px;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

.video-player {
    width: 100%;
    height: 400px;
    border-radius: 8px;
}

/* Lightbox pour les photos */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
}

.lightbox-nav button {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.lightbox-nav button:hover {
    background: rgba(255,255,255,0.4);
}