/* Styles pour les badges de progression de section */
.progression-badge {
    background-color: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

.progression-badge input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.progression-badge label {
    font-weight: bold;
    margin-right: 10px;
}

.date-completed {
    display: flex;
    align-items: center;
    gap: 8px;
}

.progression-badge button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.progression-badge button:hover {
    background-color: #2980b9;
}

/* Styles pour les barres de progression */
.progress-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.progress-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.progress-module h3, .global-progress h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.progress-bar-container {
    background-color: #e9ecef;
    border-radius: 5px;
    height: 24px;
    position: relative;
    overflow: hidden;
}

.progress-bar {
    background-color: #3498db;
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #333;
    font-weight: bold;
    mix-blend-mode: difference;
}

.global-progress {
    margin-bottom: 30px;
}

.global-progress .progress-bar-container {
    height: 30px;
}

.global-progress .progress-bar {
    background-color: #27ae60;
}

.progress-actions {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.progress-button {
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
    font-size: 14px;
}

.progress-button:hover {
    background-color: #2980b9;
}

/* Styles pour les badges */
.badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
    min-height: 100px;
}

.badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    width: 120px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.badge-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.badge-name {
    font-weight: bold;
    margin-bottom: 5px;
    text-align: center;
}

.badge-description {
    font-size: 0.8rem;
    text-align: center;
    color: #666;
}

.badge-placeholder {
    width: 100%;
    padding: 20px;
    text-align: center;
    color: #888;
    font-style: italic;
}

.badge-locked {
    filter: grayscale(1);
    opacity: 0.5;
}

.badge-new {
    position: relative;
}

.badge-new::after {
    content: 'NOUVEAU!';
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #e74c3c;
    color: white;
    padding: 3px 6px;
    font-size: 0.7rem;
    border-radius: 3px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}