/* ===================================
   CARTES PROGRAMMES GERIP
   =================================== */

/* Structure de la carte */

.carte-programme > .vc_column-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.carte-programme > .vc_column-inner > .wpb_wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Catégorie du programme */

.carte-programme .programme-categorie {
    font-size: 12px;
    font-weight: 600;
    color: #5276A8;
    letter-spacing: 0.4px;
    line-height: 1.4;
    min-height: 34px;
    margin: 0 0 12px !important;
    padding: 0 !important;
}

/* Titre du programme */

.carte-programme .programme-titre {
    font-size: 24px;
    font-weight: 600;
    color: #263344;
    line-height: 1.25;
    min-height: 60px;
    margin: 0 0 15px !important;
    padding: 0 !important;
}

/* Description du programme */

.carte-programme .programme-description {
    font-size: 16px;
    line-height: 1.6;
    color: #59636D;
    margin: 0 !important;
    padding: 0 !important;
}

/* Alignement du bouton en bas */

.carte-programme > .vc_column-inner > .wpb_wrapper > :last-child {
    margin-top: auto !important;
}

/* Adaptation sur mobile */

@media screen and (max-width: 767px) {

    .carte-programme .programme-categorie,
    .carte-programme .programme-titre {
        min-height: 0;
    }

    .carte-programme .programme-titre {
        font-size: 22px;
    }
}


/* ==========================================
   GERIP - NAVIGATION PAR ANCRES
   ========================================== */

/* Défilement fluide */

html {
    scroll-behavior: smooth;
}

/* Décalage des ancres sur ordinateur */

#fondamentales,
#transversales,
#certifications {
    scroll-margin-top: 210px;
}

#tous-les-programmes {
    scroll-margin-top: 100px;
}

/* Adaptation sur mobile */

@media screen and (max-width: 767px) {

    #compétences-fondamentales,
    #compétences-transversales,
    #certifications,
    #tous-les-programmes {
        scroll-margin-top: 90px;
    }
}

/* Accessibilité : respect des préférences
   de réduction des animations */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}