
/* Carte lycée */
.lycee-card {
    border: 1px solid #e5eaf2;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(30, 50, 80, 0.04);
    transition: box-shadow 0.25s ease,
                border-color 0.25s ease,
                transform 0.25s ease;
}

/* Petit effet au survol */
.lycee-card:hover {
    border-color: #b8d0f5;
    box-shadow: 0 6px 18px rgba(30, 50, 80, 0.09);
    transform: translateY(-2px);
}

/* Icône du lycée */
.lycee-icon {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #edf4ff;
    color: #2459a9;
    font-size: 25px;
}

/* Nom et informations */
.lycee-info h5 {
    color: #26364a;
    font-weight: 600;
    line-height: 1.4;
}

.lycee-info small {
    font-size: 0.82rem;
}

/* Bouton */
.lycee-btn {
    border-radius: 8px;
    padding: 10px 14px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

/* Mobile */
@media (max-width: 767.98px) {
    .lycee-btn {
        display: block;
        width: 100%;
    }
}



/* ========================================
   CARTES DES FORMATIONS
   ======================================== */

.formation-card {
    border: 1px solid #e5eaf2;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(30, 50, 80, 0.04);
    transition: box-shadow 0.25s ease,
                border-color 0.25s ease,
                transform 0.25s ease;
}

/* Effet au survol */
.formation-card:hover {
    border-color: #b8d0f5;
    box-shadow: 0 6px 18px rgba(30, 50, 80, 0.09);
    transform: translateY(-2px);
}

/* Bloc titre et icône */
.formation-info {
    display: block;
}

/* Icône de formation */
.formation-icon {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #edf4ff;
    color: #2459a9;
    font-size: 23px;
}

/* Sigle et nom de la formation */
.formation-titre {
    display: block;
    width: fit-content;
    max-width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    background: #edf4ff;
    color: #2459a9;
    overflow-wrap: anywhere;
}

/* Texte du titre */
.formation-titre h5 {
    margin: 0;
    color: #2459a9;
    font-weight: 600;
    line-height: 1.5;
    font-size: 1.05rem;
}

.formation-titre small {
    font-size: 0.82rem;
}

/* Nombre de places */
.formation-places {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #f5f7fb;
    color: #455468;
    font-size: 0.9rem;
}

.formation-places > i {
    color: #2459a9;
}

.formation-badge {
    font-size: 0.85rem;
    padding: 6px 10px;
    border-radius: 6px;
}

/* Boutons d'action */
.formation-btn {
    border-radius: 8px;
    padding: 10px 14px;
    font-weight: 500;
    font-size: 0.9rem;
    white-space: normal;
    transition: all 0.2s ease;
}

/* Affichage mobile */
@media (max-width: 767.98px) {
    .formation-titre {
        width: 100%;
        padding: 12px 14px;
    }
}

/* Aligner les boutons en haut de la carte */
.formation-card .col-md-3.text-md-end {
    padding-top: 0;
}

.formation-card .formation-btn {
    margin-top: 0;
}



/* Alignement des actions avec le titre */
.formation-card .formation-actions {
    align-self: flex-start;
    margin-top: 0 !important;
    padding-top: 0 !important;
    text-align: right;
}

.formation-card .formation-lien {
    margin-top: 0 !important;
    margin-bottom: 8px;
}

.formation-card .formation-actions .btn {
    margin-top: 0 !important;
    vertical-align: top;
}

/* Mobile */
@media (max-width: 767.98px) {
    .formation-card .formation-actions {
        text-align: left;
    }

    .formation-card .formation-actions .btn {
        display: block;
        width: 100%;
        margin-bottom: 8px;
    }
}
