/* ============================================
   DATES FORMATIONS - CSS Partagé
   (Stage Code, Post-Permis, Admin)
   ============================================ */

/* Titre */
.stages_titre {
    font-size: 16px;
    font-weight: 500;
    color: #666;
    margin: 25px 0 0 0;
}

/* Liste des dates */
.stages_liste {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 20px 0 20px;
}

.stage_date {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 10px 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

/* Border-left selon statut */
.stage_disponible {
    border-left-color: #28a745;
}

.stage_complet {
    border-left-color: #dc3545;
}

.stage_termine {
    border-left-color: #999;
    opacity: 0.6;
}

.stage_en_cours {
    border-left-color: #ffc107;
}

/* Partie gauche : icône + texte */
.stage_gauche {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.stage_icone {
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
}

.stage_texte {
    font-size: 15px;
    color: var(--texte-principal, #333);
    font-weight: 500;
}

/* Partie droite : badges */
.stage_droite {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 950px) {
    .stages_liste {
        margin: 20px 0 0 0;
    }

    .stage_date {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 15px;
    }

    .stage_gauche {
        width: 100%;
    }

    .stage_texte {
        font-size: 14px;
    }

    .stage_icone {
        font-size: 20px;
    }

    .stage_droite {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}
