/* Sessions Eureka Popup - Styles */

/* Police Quicksand pour tout le popup */
.popup-overlay,
.popup-overlay * {
    font-family: 'Quicksand', sans-serif;
}

/* Overlay du popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

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

/* Carte du popup */
.popup-card {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* Bouton fermer */
.close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.close-button:hover {
    background: #f0f0f0;
    color: #333;
}

/* Contenu du popup */
.popup-content {
    padding: 40px 30px 30px;
}

.popup-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.3;
    text-align: center;
}



/* Actions du popup */
.popup-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

/* Boutons du popup */
.popup-link {
    display: block;
    background: linear-gradient(135deg, #CC9922 0%, #B8860B 100%);
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(204, 153, 34, 0.3);
    text-align: center;
    margin: 0 auto;
    width: fit-content;
}

.popup-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(204, 153, 34, 0.4);
    color: white;
    text-decoration: none;
}

/* Bouton replay (doré) */
.popup-link.replay-link {
    background: linear-gradient(135deg, #CC9922 0%, #B8860B 100%);
    box-shadow: 0 5px 15px rgba(204, 153, 34, 0.3);
}

.popup-link.replay-link:hover {
    box-shadow: 0 8px 25px rgba(204, 153, 34, 0.4);
}

/* Bouton session (bleu) */
.popup-link.session-link {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.popup-link.session-link:hover {
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

.link-text {
    display: inline-block;
}

/* Informations détaillées du popup */
.popup-details {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 20px;
}

.popup-formateur,
.popup-theme,
.popup-objectif {
    margin-bottom: 15px;
    line-height: 1.5;
    color: #555;
}

.popup-formateur strong,
.popup-theme strong,
.popup-objectif strong {
    color: #333;
    font-weight: 600;
}

/* Style spécial pour l'intervenant formateur - fond vert */
.popup-formateur {
    background: rgba(40, 167, 69, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 4px solid #28a745;
}

.popup-formateur strong {
    color: #28a745;
}

/* Style spécial pour le thème - fond bleu */
.popup-theme {
    background: rgba(0, 123, 255, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 4px solid #007bff;
}

.popup-theme strong {
    color: #007bff;
}

/* Style spécial pour l'objectif - avec émoticône */
.popup-objectif {
    font-style: italic;
}

.popup-objectif strong {
    color: #333;
}

/* Responsive pour le popup */
@media (max-width: 768px) {
    .sessions-eureka-popup-card {
        max-width: 95%;
        margin: 10px;
    }
    
    .sessions-eureka-popup-content {
        padding: 30px 20px 20px;
    }
    
    .sessions-eureka-popup-title {
        font-size: 1.5rem;
    }
    
    .sessions-eureka-popup-actions {
        flex-direction: column;
    }
    
    .sessions-eureka-popup-link {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}

/* Animation d'entrée pour le popup */
@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.sessions-eureka-popup-overlay.active .sessions-eureka-popup-card {
    animation: popupFadeIn 0.3s ease-out;
}

/* Empêcher le scroll du body quand le popup est ouvert */
body.popup-open {
    overflow: hidden;
}

/* ===== OVERLAY PLEIN ÉCRAN POUR LES VIDÉOS ===== */

/* Overlay plein écran */
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Iframe dans l'overlay */
.fullscreen-overlay iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
}

/* Bouton fermer */
.fullscreen-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: all 0.3s ease;
}

.fullscreen-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* Responsive pour l'overlay */
@media (max-width: 768px) {
    .fullscreen-overlay {
        height: auto;
        aspect-ratio: 16/9;
        position: relative;
    }
    
    .fullscreen-overlay iframe {
        position: absolute;
        inset: 0;
    }
    
    .fullscreen-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}
