
/* Bouton de lancement SCORM */
.scorm-launch-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.scorm-launch-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.scorm-launch-button:active {
    transform: translateY(0);
}

.scorm-launch-button .scorm-icon {
    width: 24px;
    height: 24px;
}

/* Modale SCORM */
.scorm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.scorm-modal.active {
    opacity: 1;
    pointer-events: all;
}

/* Overlay sombre */
.scorm-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

/* Contenu de la modale */
.scorm-modal-content {
    position: relative;
    width: 90vw;
    height: 90vh;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.scorm-modal.active .scorm-modal-content {
    transform: scale(1);
}

/* En-tête de la modale */
.scorm-modal-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 12px 16px;
    background: #e0e0e0;
    border-bottom: 1px solid #ccc;
}

.scorm-modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

/* Bouton de fermeture */
.scorm-close-button {
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.scorm-close-button:hover {
    transform: scale(1.1);
}

.scorm-close-button svg {
    width: 24px;
    height: 24px;
    stroke: #333;
    stroke-width: 2.5;
}

/* Corps de la modale */
.scorm-modal-body {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.scorm-modal-body iframe {
    width: 100%;
    height: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .scorm-modal-content {
        width: 95vw;
        height: 95vh;
        border-radius: 8px;
    }
    
    .scorm-modal-header {
        padding: 15px 20px;
    }
    
    .scorm-modal-title {
        font-size: 16px;
    }
    
    .scorm-launch-button {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* Style de la carte SCORM */
.scorm-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.scorm-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* En-tête avec icône, titre et badge */
.scorm-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.scorm-icon {
    font-size: 24px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5f5f5;
}

.scorm-status-completed .scorm-icon {
    background: #4caf50;
    color: #fff;
}

.scorm-status-in-progress .scorm-icon {
    background: #ff9800;
    color: #fff;
}

.scorm-status-started .scorm-icon {
    background: #2196f3;
    color: #fff;
}

.scorm-status-not-started .scorm-icon {
    background: #e0e0e0;
    color: #757575;
}

.scorm-title {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
}

.scorm-title:hover {
    color: #2196f3;
}

/* Badges de statut */
.scorm-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.scorm-badge-completed {
    background: #e8f5e9;
    color: #2e7d32;
}

.scorm-badge-in-progress {
    background: #fff3e0;
    color: #e65100;
}

.scorm-badge-started {
    background: #e3f2fd;
    color: #1565c0;
}

.scorm-badge-not-started {
    background: #f5f5f5;
    color: #757575;
}

/* Statistiques */
.scorm-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.scorm-stat {
    display: flex;
    gap: 6px;
    align-items: center;
}

.stat-label {
    font-size: 13px;
    color: #666;
}

.stat-value {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.stat-value-empty {
    font-size: 13px;
    color: #999;
    font-style: italic;
}

/* Barre de progression */
.scorm-progress-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.scorm-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50 0%, #8bc34a 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
    position: relative;
}

.scorm-status-in-progress .scorm-progress-fill {
    background: linear-gradient(90deg, #ff9800 0%, #ffc107 100%);
}

.scorm-status-started .scorm-progress-fill {
    background: linear-gradient(90deg, #2196f3 0%, #64b5f6 100%);
}

.scorm-status-not-started .scorm-progress-fill {
    background: #e0e0e0;
}

/* Animation de la barre de progression */
.scorm-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Responsive */
@media (max-width: 768px) {
    .scorm-header {
        flex-wrap: wrap;
    }
    
    .scorm-stats {
        flex-direction: column;
        gap: 8px;
    }
    
    .scorm-item {
        padding: 15px;
    }
}

/* Legacy - conservé pour compatibilité */
.dashscore {
    background-color: aquamarine;
    margin-right: 10px;
    margin-left: 6px;
    display: block;
    position: relative;
    width: 100%;
    height: 6px;
}