/* =========================================================
   PAGE DE CONTENU - FORMATIONS
   ========================================================= */


/* =========================================================
   FOND GÉNÉRAL
   ========================================================= */

body {
    background: #050505;
}

.site-content {
    background: #050505;
}


/* =========================================================
   CONTENEUR PRINCIPAL
   ========================================================= */

.formation-content {
    max-width: 1100px;
    margin: 0 auto;

    padding: 55px 25px 80px;

    color: #d8d8d8;
}


/* Titres généraux */
.formation-content h1,
.formation-content h2,
.formation-content h3 {
    color: #ffffff;
}


/* Titre principal de la formation */
.formation-content > h1,
.formation-content > h2:first-child {
    margin-top: 0;
    margin-bottom: 28px;
}


/* Texte général */
.formation-content p {
    color: #d8d8d8;
    line-height: 1.75;
}


/* Liens généraux */
.formation-content a {
    color: #ed168c;
}

.formation-content a:hover {
    color: #ffffff;
}


/* =========================================================
   SOMMAIRE
   ========================================================= */

.formation-sommaire {
    margin: 30px 0 55px;

    padding: 28px 32px;

    /**background: #111111;

    border: 1px solid #292929;*/
    border-top: 3px solid #ed168c;

    border-radius: 5px;

    scroll-margin-top: 120px;
}


/* Titre du sommaire */
.formation-sommaire h2 {
    margin-top: 0;
    margin-bottom: 22px;

    color: #ffffff;

    font-size: 28px;
    line-height: 1.25;

    text-align: center;
}


/* =========================================================
   LISTE DU SOMMAIRE
   ========================================================= */

.formation-sommaire ul {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    column-gap: 50px;

    max-width: 760px;

    margin: 0 auto;
    padding: 0;

    list-style: none;
}


/* Chaque ligne */
.formation-sommaire li {
    margin: 0;

    border-bottom: 1px solid #292929;
}


/* Liens du sommaire */
.formation-sommaire a {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 13px 4px;

    color: #d8d8d8;

    font-size: 15px;
    font-weight: 500;

    text-decoration: none;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}


/* Flèche rapprochée du texte */
.formation-sommaire a::after {
    content: "→";

    margin-left: 0;

    color: #ed168c;

    font-weight: 700;
}


/* Hover */
.formation-sommaire a:hover {
    color: #ed168c;

    transform: translateX(4px);
}


/* =========================================================
   CAPSULES
   ========================================================= */

.formation-capsule {
    margin: 0 0 55px;

    padding: 32px 36px 38px;

    background: #111111;

    border: 1px solid #292929;
    border-top: 3px solid #ed168c;

    border-radius: 5px;

    scroll-margin-top: 120px;
}


/* CAPSULE 01, CAPSULE 02, etc. */
.formation-capsule-number {
    margin: 0 0 7px !important;

    color: #ed168c !important;

    font-size: 13px !important;
    font-weight: 700;

    letter-spacing: 1.8px;

    text-transform: uppercase;
}


/* Titre de capsule */
.formation-capsule h2 {
    margin-top: 0;
    margin-bottom: 25px;

    color: #ffffff;

    font-size: 32px;
    line-height: 1.2;
}


/* =========================================================
   VIDÉOS
   ========================================================= */

.formation-capsule .wp-block-embed {
    margin-top: 0;
    margin-bottom: 20px;
}


/* YouTube responsive */
.formation-capsule .wp-block-embed iframe {
    width: 100%;
}


/* =========================================================
   TEXTE DES CAPSULES
   ========================================================= */

.formation-capsule p:not(.formation-capsule-number) {
    color: #d8d8d8;

    font-size: 16px;
    line-height: 1.75;
}


/* Listes éventuelles */
.formation-capsule ul,
.formation-capsule ol {
    color: #d8d8d8;

    line-height: 1.75;
}


/* Liens */
.formation-capsule a {
    color: #ed168c;

    font-weight: 600;
}

.formation-capsule a:hover {
    color: #ffffff;
}


/* =========================================================
   RETOUR AU SOMMAIRE
   ========================================================= */

.formation-retour-sommaire {
    margin-top: 16px !important;
    margin-bottom: 0 !important;

    padding-top: 14px;

    border-top: 1px solid #292929;

    text-align: right;
}


/* Lien */
.formation-retour-sommaire a {
    color: #ed168c;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.4px;

    text-transform: uppercase;

    text-decoration: none;

    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}


/* Flèche vers le haut */
.formation-retour-sommaire a::after {
    content: " ↑";
}


/* Hover */
.formation-retour-sommaire a:hover {
    color: #ffffff;
}


/* =========================================================
   ANCRES / DÉFILEMENT
   ========================================================= */

html {
    scroll-behavior: smooth;
}


/* =========================================================
   TABLETTE
   ========================================================= */

@media (max-width: 921px) {

    .formation-content {
        padding: 40px 22px 60px;
    }


    .formation-sommaire {
        margin-bottom: 45px;

        padding: 25px;

        scroll-margin-top: 100px;
    }


    .formation-sommaire h2 {
        font-size: 26px;
    }


    .formation-sommaire ul {
        max-width: 680px;

        column-gap: 35px;
    }


    .formation-capsule {
        margin-bottom: 45px;

        padding: 28px;

        scroll-margin-top: 100px;
    }


    .formation-capsule h2 {
        font-size: 30px;
    }
}

/* =========================================================
   BOUTON PDF - VERSION PLUS LISIBLE
   ========================================================= */

.formation-pdf-download .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    padding: 12px 20px;

    background: #111111;
    color: #ffffff !important;

    border: 2px solid #ed168c;
    border-radius: 4px;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 0.5px;
    text-transform: uppercase;

    text-decoration: none;

    box-shadow: 0 0 0 1px rgba(255,255,255,0.03) inset;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


/* Badge PDF */
.formation-pdf-download .wp-block-button__link::before {
    content: "PDF";

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 38px;
    height: 24px;

    padding: 0 8px;

    background: #c62828;
    color: #ffffff;

    border: 1px solid #ffffff22;
    border-radius: 4px;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1;

    box-shadow: 0 1px 3px rgba(0,0,0,0.35);
}


/* Icône téléchargement */
.formation-pdf-download .wp-block-button__link::after {
    content: "↓";

    font-size: 18px;
    font-weight: 700;
    line-height: 1;

    color: #ed168c;
}


/* Hover */
.formation-pdf-download .wp-block-button__link:hover {
    background: #ed168c;
    color: #ffffff !important;

    border-color: #ed168c;

    transform: translateY(-2px);

    box-shadow: 0 8px 18px rgba(237, 22, 140, 0.22);
}


/* Garder le badge bien visible au hover */
.formation-pdf-download .wp-block-button__link:hover::before {
    background: #b71c1c;
    color: #ffffff;
}


/* Icône blanche au hover */
.formation-pdf-download .wp-block-button__link:hover::after {
    color: #ffffff;
}

.formation-pdf-download {
    margin-top: 5px !important;
    margin-bottom: 25px !important;
}


/* Mobile */
@media (max-width: 544px) {

    .formation-pdf-download {
        width: 100%;
    }

    .formation-pdf-download .wp-block-button__link {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
        font-size: 12px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 544px) {

    .formation-content {
        padding: 30px 15px 45px;
    }


    /* Sommaire */
    .formation-sommaire {
        margin-top: 22px;
        margin-bottom: 35px;

        padding: 20px 18px;

        scroll-margin-top: 90px;
    }


    .formation-sommaire h2 {
        font-size: 24px;

        margin-bottom: 15px;
    }


    /* Retour à une seule colonne */
    .formation-sommaire ul {
        grid-template-columns: 1fr;

        max-width: 100%;

        column-gap: 0;
    }


    .formation-sommaire a {
        padding: 11px 4px;

        font-size: 14px;
    }


    /* Capsules */
    .formation-capsule {
        margin-bottom: 35px;

        padding: 22px 18px 25px;

        scroll-margin-top: 90px;
    }


    .formation-capsule-number {
        font-size: 12px !important;
    }


    .formation-capsule h2 {
        margin-bottom: 20px;

        font-size: 27px;
    }


    .formation-capsule p:not(.formation-capsule-number) {
        font-size: 15px;

        line-height: 1.65;
    }


    /* Retour au sommaire */
    .formation-retour-sommaire {
        margin-top: 14px !important;

        padding-top: 12px;

        text-align: right;
    }


    .formation-retour-sommaire a {
        font-size: 11px;
    }
}