/* ============================================================
   certifications.css
   Styles spécifiques aux cartouches de certifications.
   Dépend de : common.css, common-cartouche.css
   ============================================================ */


/* ============================================================
   CARTOUCHE CERTIFICATIONS — BASE
   Valeurs qui diffèrent de common-cartouche.css
   ============================================================ */

/* Hauteur auto (les cartouches certifications n'ont pas de hauteur fixe) */
.cartouche__container {
    height: fit-content;
}

/* Dégradé bleu-gris propre aux certifications */
.cartouche__body {
    background: transparent linear-gradient(264deg, #e2eaff 0, #bbc7e5 100%) 0 0 no-repeat padding-box;
}

.cartouche__body .wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Titre : layout avec div interne flex */
.cartouche__body__title > div {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cartouche__body__title p {
    padding: 0;
    white-space: nowrap;
}

.cartouche__body__headLike p {
    font-size: 14px;
    color: #2f2933;
}

/* Footer en colonne, hauteur auto, notes en font-weight normal */
.cartouche__footer {
    height: fit-content;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 6px;
}

.cartouche__footer * {
    font-weight: 400;
}

.cartouche__footer__info {
    flex-wrap: wrap;
    row-gap: 2px;
}

.cartouche__footer__info p:first-child {
    display: block;
}


/* ============================================================
   MEDIA QUERIES
   ============================================================ */

/* ---- min-width: 977px ---- */

@media (min-width: 977px) {
    .cartouche__body {
        min-height: auto;
        padding-bottom: 0;
    }

    /* Logo plus étroit que les formations */
    .cartouche__logo__right__wrapper {
        width: 72px;
        height: 88px;
    }

    /* Titre limité à la largeur disponible hors logo (72+marge) et badges */
    .cartouche__body__title {
        height: 72px;
        width: calc(100% - 110px - 170px);
    }

    /* Badge wrapper : pas de grow ni de largeur fixe */
    .cartouche__badge__wrapper {
        flex-grow: 0;
        justify-content: flex-end;
        margin-bottom: 0;
    }

    /* Footer reste en colonne malgré la règle desktop */
    .cartouche__footer {
        height: fit-content;
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 14px;
        gap: 6px;
    }
}

/* ---- min-width: 1281px ---- */

@media (min-width: 1281px) {
    .cartouche__body {
        padding: 16px 20px 0 26px;
    }

    .cartouche__body__title {
        height: 68px;
        padding-right: 20px;
    }

    .cartouche__footer {
        padding: 10px 20px 10px 26px;
        gap: 6px;
    }

    .niveau {
        font-size: 13px;
    }
}

/* ---- min-width: 1537px ---- */

@media (min-width: 1537px) {
    .cartouche__body {
        padding: 20px 26px 0 32px;
    }

    .cartouche__logo__right__wrapper {
        width: 90px;
        height: 110px;
    }

    .cartouche__body__title {
        height: 90px;
    }

    .cartouche__footer {
        padding: 10px 26px 10px 32px;
    }

    .niveau {
        font-size: 16px;
    }
}
