/* Style des header de formation */


header {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
}


/* thème général des posts */
.entry-header.post {
    border-top: 24px solid var(--systemoun-strong-color);
    background: unset;
    background: var(--systemoun-strong-color-transparent);
    background-size: cover;
    background-position: center;

    padding: 40px !important;
    margin-bottom: 20px !important;

    align-items: flex-start;

    h1 {
        /* margin-bottom: 0; */
        text-align: left;
    }


    .post-meta {
        border-left: solid 10px var(--systemoun-strong-color);
        padding: 0;
        padding-left: 10px;

        display: flex;
        flex-direction: column;
        align-items: flex-start;

        gap: 8px;

        margin-top: 60px;


        >p {
            padding: 0;
            margin: 0;
            color: #FFF;

            font-size: 20px;
            font-weight: 400;



        }

        p.post-meta-data {
            color: #FFF;
            font-size: 16px;
            font-weight: 800;

            a {
                color: #ffffff;
            }
        }

    }
}

/* style du listing des catégories */
.post-categories {
    text-align: left;

    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex-direction: row;
    padding-top: 8px;

    >a {
        display: inline-block;
        text-decoration: none;
        color: white;
        background-color: var(--systemoun-secondary-color);
        border: 3px solid var(--systemoun-secondary-color);
        border-radius: 8px;
        padding: 4px 8px;

        font-family: var(--wp--preset--font-family--lexend);
        font-weight: 600;

        transition: all 0.2s ease-in-out;

        &:hover {
            transform: scale(1.02);
            background-color: var(--systemoun-strong-color);
        }
    }

    >span {
        color: white;
        border-radius: 8px;
        padding: 4px 8px;

        font-family: var(--wp--preset--font-family--lexend);
        font-weight: 600;
        font-size: 18px;

        box-shadow: none;

    }

    >.private-badge {
        margin-top: 0px !important;
    }


}






/* formations */
#formation-header,
#ressources-et-contenus-header {
    /* margin-top: 40px; */
    transform: translateY(60px);

    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0px;

    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: black;
    border-radius: 12px;
    padding: 10px;

    max-width: 900px;

    >img {
        max-width: min(400px, 100%);
        max-height: 50vh;
        object-fit: contain;



    }

    h1 {
        text-align: left;
        color: black;
        margin: 0;
        padding: 0;

        font-size: 36px;
        font-weight: 800;
        font-family: var(--wp--preset--font-family--lexend);
    }

    #entry-header-content {
        margin: 0 40px;

    }

    p.description {
        margin-top: 0;
    }
}

/* ressources et contenus */
#ressources-et-contenus-header {
    .private-badge {
        width: fit-content;
        margin-top: 8px;
    }



    >img {
        max-width: min(300px, 100%);
    }
}


/* affichage des tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    flex-direction: row;
    padding: 4px 0;

    >a {
        /* en majuscules */
        text-transform: uppercase;

        color: var(--systemoun-strong-color-transparent);
        text-decoration: none;
        font-weight: 800;
        font-size: 14px;
        font-family: var(--wp--preset--font-family--lexend);

        transition: all 0.2s ease-in-out;


        &::before {
            content: "#";
        }

        &:hover {
            color: var(--systemoun-strong-color);
        }
    }
}


/* tags pour les articles classiques et les ressources */
.tag-separator {
    font-weight: 100;
}




/* mobile */
@media (max-width:1000px) {
    #formation-header {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
    }

    #formation-header>img,
    #ressources-et-contenus-header>img {
        max-width: 100%;
        max-height: 300px;
    }

    #formation-header h1,
    #ressources-et-contenus-header h1 {
        font-size: 28px;
    }

    #formation-header #entry-header-content,
    #ressources-et-contenus-header #entry-header-content {
        margin: 0;
    }



    /* ressources et contenus */
    #ressources-et-contenus-header {
        flex-direction: column;
        align-items: center;
        text-align: center;


        h1 {
            padding-top: 16px;
        }
    }

}


@media (max-width:800px) {
    .entry-header.post {
        padding: 20px !important;

        h1 {
            font-size: 28px;
        }

        .post-meta {
            margin-top: 20px;

            >p {
                font-size: 16px;
            }

            p.post-meta-data {
                font-size: 14px;
            }
        }
    }
}