/* START PAGE BLOG.PHP */
div.blog_actu_color {
    background-color: #151515;
}

.container_blog_actu {
    max-width: 2120px;
    width: 100%;
    display: block;
    margin: auto;
    /*padding: 0 50px;*/
    padding: 100px 50px;
}

div.position_blog_actu {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

div.blog_actu {
    width: 65%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-top: 100px;
    color: #fff;
    margin-right: 20px;
}

div.blog_actu .blog_actu_inside {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #1F1F1F;
    margin: 0 20px 20px 0;
}


div.blog_actu_inside .blog_actu_image,
div.blog_actu_inside .blog_actu_video {
    width: 50%; /* Conserve la largeur de 50% pour l'image */
    height: 350px; /* Permet à l'image de s'adapter à la hauteur */
}

div.blog_actu_inside .blog_actu_image img,
div.blog_actu_inside .blog_actu_video iframe {
    width: 100%; /* L'image prendra 100% de la largeur de son conteneur */
    height: 100%; /* L'image prendra 100% de la hauteur de son conteneur */
    object-fit: cover; /* Assure que l'image couvre toute la div sans déformer */
    display: block; /* Supprime l'espace blanc en bas de l'image */
}

div.blog_actu_video iframe {
    border-radius: 0 0 0 0;
}

div.blog_actu_inside .blog_actu_texte {
    width: 50%;
    height: 350px;
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

div.blog_actu_inside .blog_actu_texte p {
    margin: 15px 0;
}

div.blog_actu_categories p {
    color: #E60C80;
    font-weight: 900;
}

div.premier_texte_blog_actu p {
    line-height: 25px;
}

div.bouton_lire_plus_blog_actu a {
    position: relative;
    display: inline-block;
    border: 1px solid #fff;
    border-radius: 5px;
    padding: 10px 50px;
    margin: 10px 0 0 0;
    text-align: center;
    font-size: 16px;
    color: #fff;
    z-index: 3; /* Assure que le bouton est au-dessus de tout */
    overflow: hidden; /* Cache la partie de l'effet qui dépasse les bords */
    transition: transform .3s ease-out;
    pointer-events: auto; /* Réactive les interactions sur le bouton */
}

div.bouton_lire_plus_blog_actu a:hover {
    color: #151515;
}

div.bouton_lire_plus_blog_actu a::before {
    background: #fff;
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform .3s ease-out;
    z-index: -1; /* Met l'effet derrière le texte */
}

div.bouton_lire_plus_blog_actu a:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}


/************************************** */


/* START SIDEBAR BLOG & ACTU */

div.container_blog_actu .blog_actu_sidebar {
    /*width: 35%;*/
    height: auto;
    background-color: #1F1F1F;
    color: #fff;
    margin-top: 100px;
}


div.blog_actu_sidebar_inside {
    width: 90%;
    height: auto;
    margin: 40px auto;
}

div.search_blog_actu div {
    max-width: none !important;
    width: 100%;
    margin: 30px 0;
}

div.search_blog_actu input[type=search] {
    border: 1px solid #fff !important;
    color: #BCBCBC !important;
    background: #1F1F1F !important;
    border-radius: 5px !important;
}

div.search_blog_actu #searchsubmit {
    min-width: 60px !important;
    width: 60px !important;
    height: 100% !important;
    border-radius: 0 5px 5px 0 !important;
    background-color: #1F1F1F;
    border-top: 1px solid #fff;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
}

div.search_blog_actu.button, input[type=submit] {
    color: #fff;
    font-size: 20px !important;
}

div.recent_blog_post_item {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

div.recent_blog_post_item .blog_actu_image,
div.recent_blog_post_item .blog_actu_video {
    width: 40%;
    height: 200px;
}

div.recent_blog_post_item .recent_blog_post_content {
    width: 60%;
    height: 200px;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

div.recent_blog_post_item .blog_actu_video iframe,
div.recent_blog_post_item .blog_actu_image img {
    width: 100%; /* L'image prendra 100% de la largeur de son conteneur */
    height: 100%; /* L'image prendra 100% de la hauteur de son conteneur */
    object-fit: cover; /* Assure que l'image couvre toute la div sans déformer */
    display: block; /* Supprime l'espace blanc en bas de l'image */
}

div.recent_blog_post_categories {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

div.recent_blog_post_categories p.texte_categories {
    color: #E60C80;
    font-weight: bold;
    font-size: 14px;
}

div.recent_blog_post_categories p.recent_blog_post_date {
    color: #5F5F5F;
    font-weight: 300;
    font-size: 14px;
}

div.premier_texte_blog_actu_sidebar h5.title_recent_blog_post {
    font-weight: bold;
    font-size: 25px;
}

div.premier_texte_blog_actu_sidebar p {
    margin: 0;
    font-size: 16px;
    line-height: 25px;
}

div.bouton_lire_plus_recent_blog_actu a {
    color: #E60C80;
    font-weight: 300;
    font-size: 14px;
}

/* Bouton pour afficher la sidebar à l'extérieur */
#show_sidebar_blog_actu,
#hide_sidebar_blog_actu {
    display: none; /* Par défaut, caché */
}

/* END SIDEBAR BLOG & ACTU */


/************************************** */


@media only screen and (max-width: 1440px) {
    div.blog_actu_texte h1.title_categories {
        font-size: 30px;
    }

    div.premier_texte_blog_actu p {
        font-size: 16px;
        line-height: 22px;
    }

    div.bouton_lire_plus_blog_actu a {
        font-size: 14px;
        padding: 4px 50px;
    } 
}

@media only screen and (max-width: 1200px) {
    div.recent_blog_post_categories p.texte_categories {
        font-size: 12px;
    }

    div.recent_blog_post_categories p.recent_blog_post_date {
        font-size: 10px;
    }

    div.premier_texte_blog_actu_sidebar h5.title_recent_blog_post {
        font-size: 20px;
    }
    
    div.premier_texte_blog_actu_sidebar p {
        font-size: 14px;
    }
}

@media only screen and (max-width: 992px) {
    div.blog_actu {
        width: 100%;
        margin-right: 0;
        padding-top: 50px;
    }

    div.blog_actu .blog_actu_inside {
        margin: 0 0 20px 0;
    }

    div.show_toggle_sidebar {
        padding-top: 50px;
    }

    #show_sidebar_blog_actu {
        display: block;
        color: white;
        border: 1px solid #fff;
        background-color: #151515;
        border-radius: 5px;
        cursor: pointer;
        padding: 4px 50px;
    }

    /* Quand la sidebar est active, masquer le bouton "Afficher" et montrer "Masquer" */
    .blog_actu_sidebar.active #hide_sidebar_blog_actu {
        display: block;
        color: white;
        border: 1px solid #fff;
        background-color: #1F1F1F;
        border-radius: 5px;
        cursor: pointer;
        padding: 4px 50px;
        margin: 30px 0;
    }
    
    .blog_actu_sidebar.active #show_sidebar_blog_actu {
        display: none;
    }

    div.blog_actu_sidebar {
        position: fixed;
        right: -100%; /* Cache la sidebar hors de l'écran */
        top: 0;
        width: 300px; /* Largeur de la sidebar */
        height: 100%;
        background-color: #f9f9f9;
        z-index: 9999;
        transition: right 0.3s ease-in-out; /* Animation pour la translation */
    }

    /* Quand la sidebar est active */
    div.blog_actu_sidebar.active {
        width: 100%;
        right: 0; /* Fait apparaître la sidebar */
        position: fixed;
        min-height: 100%;
        height: 100%;
        overflow: scroll;
        margin: 0;
        padding-top: 0;
    }

    /* Pour une animation plus fluide de la sidebar*/
    div.container_blog_actu .blog_actu_sidebar {
        width: 100%;
        min-height: 100%;
        height: 100%;
        position: fixed;
        top: 0;
        margin: 0 auto;
    }
    
}

@media only screen and (max-width: 767px) {
    .container_blog_actu {
        width: 95%;
        padding: 0;
    }

    div.blog_actu .blog_actu_inside {
        flex-direction: column-reverse;
    }

    div.blog_actu_inside .blog_actu_image, div.blog_actu_inside .blog_actu_video {
        width: 100%;
        height: 350px;
    }

    div.blog_actu_inside .blog_actu_texte {
        width: 100%;
        height: auto;
    }
}

@media only screen and (max-width: 468px) {
    
}
/* END PAGE BLOG.PHP */


/************************************** */


/* START PAGE SINGLE-BLOG_ACTU.PHP */
div.single_position_blog_actu {
    padding-top: 100px;
}

div.single_blog_actu {
    background-color: #1F1F1F;
    padding: 40px;
}

div.single_blog_actu_inside {
    width: 100%;
    /*height: 100%;*/
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

div.single_blog_actu_texte {
    width: 45%;
    height: 500px;
    padding: 20px;
}

div.single_blog_actu_texte p {
    margin: 0;
}

.single_blog_actu_categories p {
    color: #E60C80;
    font-weight: 900;
}

.single_blog_actu_texte h1 {
    color: #fff;
    margin: 20px 0;
}

.single_premier_texte_blog_actu p {
    color: #fff;
}

div.single_blog_actu_inside div.blog_actu_video,
div.single_blog_actu_inside div.blog_actu_image {
    width: 55%;
    height: 500px;
}

div.single_blog_actu_inside .blog_actu_image img,
div.single_blog_actu_inside .blog_actu_video iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

div.others_texte_single_blog_actu {
    width: 80%;
    margin: auto;
    color: #fff;
}

div.others_texte_single_blog_actu p {
    margin: 30px 0;
}

/* START NAVIGATION ENTRE CHAQUE SINBGLE BLOG */
#top .avia-post-nav {
    background-color: #1F1F1F !important;
    background: #1F1F1F !important;
    padding: 18px;
}

.avia-post-nav .label {
    font-size: 50px;
}

.avia-post-nav .entry-info span {
    font-size: 20px;
}

div.single_blog_actu table {
    color: #fff;
}




/* END NAVIGATION ENTRE CHAQUE SINBGLE BLOG */

@media only screen and (max-width: 992px) {
    div.single_position_blog_actu {
        padding-top: 50px;
    }
}

@media only screen and (max-width: 767px) {
    div.single_position_blog_actu {
        padding-top: 50px;
    }

    div.single_blog_actu {
        padding: 20px;
    }

    div.single_blog_actu_inside {
        flex-direction: column;
    }

    div.single_blog_actu_texte {
        width: 100%;
        height: auto;
    }

    div.single_blog_actu_inside div.blog_actu_video,
    div.single_blog_actu_inside div.blog_actu_image {
        width: 100%;
        height: 350px;
    }

    div.others_texte_single_blog_actu {
        width: 100%;
        margin: auto;
        color: #fff;
    }
}
/* END PAGE SINGLE-BLOG_ACTU.PHP */