
/* =========================================================
   ULKI - PERSONNALISATION GENERALE
   Harmonisation des titres et des espacements
========================================================= */

/* 1. Grands titres */
.probootstrap-section .section-heading h1,
.probootstrap-section .section-heading h2,
.probootstrap-section-colored .section-heading h1,
.probootstrap-section-colored .section-heading h2 {
    color: #c62828 !important;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 12px;
    line-height: 1.3;
}

/* 2. Espacement général des sections */
.probootstrap-section,
.probootstrap-section-colored {
    padding-top: 35px !important;
    padding-bottom: 35px !important;
}

    /* 3. Rapprocher les titres de leur contenu */
    .probootstrap-section .section-heading,
    .probootstrap-section-colored .section-heading {
        margin-top: 0;
        margin-bottom: 20px !important;
    }

    /* 4. Réduire les espaces entre les lignes */
    .probootstrap-section .row,
    .probootstrap-section-colored .row {
        margin-bottom: 10px;
    }

/* 5. Harmoniser les blocs de présentation */
.probootstrap-service-2 {
    margin-top: 0;
    margin-bottom: 15px !important;
}

    /* 6. Réduire les marges des titres secondaires */
    .probootstrap-service-2 h3,
    .probootstrap-service-2 h4 {
        margin-top: 8px;
        margin-bottom: 10px;
    }

    /* 7. Éviter les espaces excessifs dans les paragraphes */
    .probootstrap-service-2 p {
        margin-bottom: 10px;
    }

/* 8. Adapter les espacements sur les petits écrans */
@media screen and (max-width: 767px) {
    .probootstrap-section,
    .probootstrap-section-colored {
        padding-top: 25px !important;
        padding-bottom: 25px !important;
    }

        .probootstrap-section .section-heading,
        .probootstrap-section-colored .section-heading {
            margin-bottom: 15px !important;
        }

    .probootstrap-service-2 {
        margin-bottom: 15px !important;
    }
}
/* Séparation entre l'en-tête précédent et Nos cours et formations */
.probootstrap-section.probootstrap-section-colored {
    position: relative;
    clear: both;
    z-index: 1;
}

    /* Éviter que le titre soit masqué ou chevauche la partie précédente */
    .probootstrap-section.probootstrap-section-colored .section-heading {
        position: relative;
        z-index: 2;
        padding-top: 0;
        margin-top: 0;
    }

/* ULKI : espace entre le titre et la présentation */
.probootstrap-section.probootstrap-presentation {
    padding-top: 85px !important;
    padding-bottom: 35px !important;
}

    /* Annuler les anciens décalages du bloc */
    .probootstrap-section.probootstrap-presentation .probootstrap-flex-block {
        position: static !important;
        top: auto !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
/* ;ettre les titres a la meme ligne  */

.section-heading h2 {
    white-space: nowrap;
}

/* ULKI - Équilibrage description et image */
.probootstrap-flex-block {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 25px;
}

    /* Description à gauche : 50 % */
    .probootstrap-flex-block > .probootstrap-text {
        float: none !important;
        flex: 1 1 50% !important;
        width: 50% !important;
        max-width: 50% !important;
        min-width: 0;
    }

    /* Image à droite : 50 % */
    .probootstrap-flex-block > .probootstrap-image {
        float: none !important;
        flex: 1 1 50% !important;
        width: 50% !important;
        max-width: 50% !important;
        min-width: 0;
        height: 350px !important;
        min-height: 350px !important;
        background-size: cover !important;
        background-position: center !important;
    }

/* Téléphones */
@media (max-width: 767px) {
    .probootstrap-flex-block {
        flex-direction: column !important;
    }

        .probootstrap-flex-block > .probootstrap-text,
        .probootstrap-flex-block > .probootstrap-image {
            width: 100% !important;
            max-width: 100% !important;
            flex: 0 0 100% !important;
        }

        .probootstrap-flex-block > .probootstrap-image {
            height: 280px !important;
        }
}
/* ==========================================
   ULKI - REDUCTION DES ESPACEMENTS
   Page de présentation des formations
=========================================== */

/* Espacement général du contenu */
#probootstrap-content {
    padding-top: 10px;
}

    /* Titres */
    #probootstrap-content h2 {
        margin-top: 12px !important;
        margin-bottom: 8px !important;
        line-height: 1.3;
    }

#probootstrap-sidebar h3,
#probootstrap-sidebar h4 {
    margin-top: 10px !important;
    margin-bottom: 7px !important;
}

/* Paragraphes */
#probootstrap-content p {
    margin-bottom: 8px !important;
    line-height: 1.6;
}

/* Listes */
#probootstrap-content ul {
    margin-top: 5px;
    margin-bottom: 10px;
}

#probootstrap-content li {
    margin-bottom: 4px;
}

/* Séparateurs */
#probootstrap-content hr {
    margin-top: 12px !important;
    margin-bottom: 12px !important;
}

/* Menu latéral */
#probootstrap-sidebar .probootstrap-side-menu {
    margin-bottom: 12px;
}

    #probootstrap-sidebar .probootstrap-side-menu li {
        margin-bottom: 2px;
    }

/* ==========================================
   ULKI - DESIGN INSTITUTIONNEL
   Présentation des formations
=========================================== */

/* Fond général de la page */
body {
    background-color: #f4f6f9;
}

/* Bandeau du titre */
.probootstrap-section-colored {
    background: linear-gradient(120deg, #17365d, #244f7e) !important;
}

    .probootstrap-section-colored .section-heading h1 {
        color: #ffffff !important;
        font-weight: 800;
        letter-spacing: 0.3px;
        margin-bottom: 0;
    }

/* Zone principale */
#probootstrap-content {
    background: #ffffff;
    padding: 25px 30px !important;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(23, 54, 93, 0.07);
    border: 1px solid #e8edf3;
}

    /* Titres des formations */
    #probootstrap-content h2 {
        color: #17365d;
        font-size: 23px;
        font-weight: 700;
        padding-left: 12px;
        border-left: 4px solid #c62828;
        margin-top: 12px !important;
        margin-bottom: 12px !important;
        line-height: 1.35;
    }

    /* Texte descriptif */
    #probootstrap-content p {
        color: #505b68;
        font-size: 15px;
        line-height: 1.7;
        margin-bottom: 10px !important;
    }

    /* Petit intitulé du cycle */
    #probootstrap-content .probootstrap-uppercase {
        display: inline-block;
        color: #c62828;
        font-weight: 700;
        font-size: 12px;
        letter-spacing: 1px;
        margin-bottom: 8px;
    }

/* Menu latéral */
#probootstrap-sidebar .probootstrap-sidebar-inner {
    background: #17365d;
    padding: 22px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 18px rgba(23, 54, 93, 0.15);
}

/* Titres du menu */
#probootstrap-sidebar h3 {
    color: #ffffff;
    font-size: 21px;
    font-weight: 700;
    border-bottom: 2px solid #c62828;
    padding-bottom: 12px;
}

#probootstrap-sidebar h4 {
    color: #f3c96a;
    font-size: 14px;
    font-weight: 700;
    margin-top: 18px !important;
}

/* Liens du menu */
#probootstrap-sidebar .probootstrap-side-menu {
    margin-bottom: 10px;
}

    #probootstrap-sidebar .probootstrap-side-menu li {
        margin-bottom: 3px;
    }

        #probootstrap-sidebar .probootstrap-side-menu li a {
            display: block;
            color: #e5edf7;
            padding: 9px 11px;
            border-radius: 5px;
            font-size: 13px;
            transition: all 0.25s ease;
        }

            /* Survol du menu */
            #probootstrap-sidebar .probootstrap-side-menu li a:hover {
                background: #ffffff;
                color: #17365d;
                padding-left: 16px;
            }

        /* Élément actif */
        #probootstrap-sidebar .probootstrap-side-menu li.active a {
            background: #c62828;
            color: #ffffff;
            font-weight: 700;
        }

/* Séparateurs */
#probootstrap-content hr {
    border: 0;
    border-top: 1px solid #e5eaf0;
    margin: 18px 0 !important;
}

/* Bouton d'inscription */
#probootstrap-content .btn-primary {
    background: #c62828;
    border-color: #c62828;
    border-radius: 5px;
    padding: 11px 22px;
    font-weight: 600;
    transition: all 0.25s ease;
}

    #probootstrap-content .btn-primary:hover {
        background: #17365d;
        border-color: #17365d;
    }

/* Mention Licence et Master */
#probootstrap-content .enrolled-count {
    color: #17365d;
    font-weight: 600;
}

/* Adaptation aux téléphones */
@media (max-width: 767px) {
    #probootstrap-content {
        padding: 20px 16px !important;
        margin-top: 20px;
    }

        #probootstrap-content h2 {
            font-size: 20px;
        }

    #probootstrap-sidebar .probootstrap-sidebar-inner {
        padding: 18px 15px;
    }
}

/* ==========================================
   ULKI - AFFICHAGE INTERACTIF DES FORMATIONS
=========================================== */

/* Masquer les formations par défaut */
#probootstrap-content .formation-panel {
    display: none;
    animation: apparitionFormation 0.35s ease;
}

    /* Afficher uniquement la formation sélectionnée */
    #probootstrap-content .formation-panel.active {
        display: block;
    }

/* Animation d'apparition */
@keyframes apparitionFormation {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mise en valeur du menu sélectionné */
#probootstrap-sidebar .probootstrap-side-menu li a {
    cursor: pointer;
    text-decoration: none;
}

#probootstrap-sidebar .probootstrap-side-menu li.active a {
    background: #c62828;
    color: #ffffff;
    font-weight: 700;
    border-left: 4px solid #f3c96a;
}

/* ULKI - Affichage interactif des formations */

#probootstrap-content .formation-panel {
    display: none;
    animation: ulkiFormation 0.35s ease;
}

    #probootstrap-content .formation-panel.active {
        display: block;
    }

@keyframes ulkiFormation {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
#probootstrap-sidebar .probootstrap-sidebar-inner {
    margin-top: 5px !important;
}

/* ==========================================
   ULKI - JUSTIFICATION GENERALE DU TEXTE
   Application sur toutes les pages du site
=========================================== */

/* Paragraphes et textes descriptifs */
p,
.probootstrap-text,
.probootstrap-content,
.probootstrap-section p,
#probootstrap-content p {
    text-align: justify !important;
    text-justify: inter-word;
}

/* Listes descriptives */
.probootstrap-section li {
    text-align: justify;
    text-justify: inter-word;
}

/* Contenus des articles et présentations */
article p,
.content p,
.description p {
    text-align: justify !important;
}
/* =========================================
   CORRECTION ESPACEMENT BLOC 4 ET BLOC 5
   Page d'accueil ULKI
========================================= */

/* Section du grand titre */
.probootstrap-section.probootstrap-section-colored {
    position: relative;
    display: block;
    min-height: 150px;
    padding-top: 45px !important;
    padding-bottom: 45px !important;
    margin-bottom: 0 !important;
    overflow: visible;
}

/* Titre institutionnel */
.probootstrap-section.probootstrap-section-colored .section-heading {
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
}

.probootstrap-section.probootstrap-section-colored .section-heading h2 {
    position: relative;
    display: block;
    margin: 0 !important;
    padding: 10px 0 !important;
    line-height: 1.4 !important;
}

/* Présentation générale */
.probootstrap-section:not(.probootstrap-section-colored) {
    position: relative;
    display: block;
    clear: both;
    padding-top: 50px !important;
    margin-top: 0 !important;
}

/* Évite le chevauchement du contenu */
.probootstrap-flex-block {
    position: relative;
    clear: both;
}
body:has(#bloc-fiche-enseignant) #bloc-fiche-enseignant {
    margin-top: 80px !important;
}

/* =====================================================
   ULKI-GOMA : GALERIE PHOTOGRAPHIQUE HORIZONTALE
===================================================== */

#galerie-ulki .ulki-gallery-horizontal .grid-sizer,
#galerie-ulki .ulki-gallery-horizontal .gutter-sizer {
    width: 0;
}

#galerie-ulki .ulki-gallery-horizontal .grid-item {
    width: 100%;
    margin-bottom: 25px;
}

#galerie-ulki .ulki-gallery-item {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 18px;
    background: #fff;
    border: 1px solid #eeeeee;
    border-radius: 5px;
    box-sizing: border-box;
}

    #galerie-ulki .ulki-gallery-item > a {
        display: block;
        flex: 0 0 35%;
        max-width: 35%;
        overflow: hidden;
    }

        #galerie-ulki .ulki-gallery-item > a img {
            display: block;
            width: 100%;
            height: 190px;
            object-fit: cover;
            transition: transform 0.4s ease;
        }

        #galerie-ulki .ulki-gallery-item > a:hover img {
            transform: scale(1.05);
        }

    #galerie-ulki .ulki-gallery-item figcaption {
        flex: 1;
        padding: 10px 5px;
        color: #555;
        font-size: 14px;
        line-height: 1.7;
    }

        #galerie-ulki .ulki-gallery-item figcaption h3 {
            margin: 8px 0 12px;
            color: #333;
            font-size: 20px;
            font-weight: 600;
        }

        #galerie-ulki .ulki-gallery-item figcaption p {
            margin-bottom: 0;
        }

#galerie-ulki .ulki-gallery-category {
    display: inline-block;
    color: #d32f2f;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Adaptation aux téléphones */
@media (max-width: 767px) {
    #galerie-ulki .ulki-gallery-item {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

        #galerie-ulki .ulki-gallery-item > a {
            flex: 0 0 auto;
            max-width: 100%;
            width: 100%;
        }

            #galerie-ulki .ulki-gallery-item > a img {
                height: 220px;
            }

        #galerie-ulki .ulki-gallery-item figcaption {
            padding: 10px 0;
        }
}

/* CORRECTION : AFFICHAGE DES DESCRIPTIONS DE LA GALERIE ULKI-GOMA */

#galerie-ulki .ulki-gallery-item {
    display: flex !important;
    align-items: center;
    gap: 25px;
}

    #galerie-ulki .ulki-gallery-item figcaption {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: static !important;
        flex: 1 1 65%;
        width: auto !important;
        height: auto !important;
        overflow: visible !important;
        color: #555 !important;
        background: transparent !important;
        padding: 10px !important;
        z-index: 2;
    }

        #galerie-ulki .ulki-gallery-item figcaption h3,
        #galerie-ulki .ulki-gallery-item figcaption p,
        #galerie-ulki .ulki-gallery-item figcaption span {
            display: block !important;
            visibility: visible !important;
            opacity: 1 !important;
        }

        #galerie-ulki .ulki-gallery-item figcaption h3 {
            color: #333 !important;
            margin: 8px 0 12px !important;
        }

        #galerie-ulki .ulki-gallery-item figcaption p {
            color: #555 !important;
            line-height: 1.7 !important;
        }

@media (max-width: 767px) {
    #galerie-ulki .ulki-gallery-item {
        flex-direction: column !important;
    }

        #galerie-ulki .ulki-gallery-item figcaption {
            width: 100% !important;
        }
}
/* Descendre uniquement les photos et leurs descriptions */
#galerie-ulki .ulki-gallery-item {
    margin-top: 80px !important;
}