/*
Theme Name: Divi Child
Description: Thème enfant Divi
Author: Easycorp
Template: Divi
Version: 1.0
*/

@media (min-width: 981px) {
    .home-container {
        justify-content: center;
        display: flex;
    }

    .home-container.et_pb_row .et_pb_column_1_2 {
        width: 29.6667%;
    }
}

@media (min-width: 808px) {
    #accueil .et_parallax_bg {
        background-repeat: no-repeat;
        background-position: top;
        background-size: cover;
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: block;
    }
}

#footer_credit::after {
    content: "";
    display: inline-block;
    height: 2em;
    width: 8em;
    aspect-ratio: 1 / 1;
    background-image: url('/wp-content/uploads/2025/12/easycorp_full_black-scaled.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

#footer_credit {
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
}

#footer-info {
    float: none;
    text-align: center;
}

/* Mobile menu */
.et_mobile_menu {
    border-color: #000;
    border-top: 3px solid #000;
    /* font-family: 'Arial', sans-serif; */
    font-size: 16px;
}

.mobile_menu_bar:before {
    color: #fff;
}

#contact .et_pb_text_14.et_pb_text a {
    color: #000 !important;
}

.es-widget-background-content>a {
    display: none;
}


.et-fixed-header #top-menu-nav #top-menu li.current-menu-ancestor>a,
.et-fixed-header #top-menu-nav #top-menu li.current-menu-item>a,
.et-fixed-header #top-menu-nav #top-menu li.current_page_item>a {
    color: #fff !important;
}


@media (max-width: 1115px) {
    #et_mobile_nav_menu {
        display: block;
    }

    #top-menu-nav {
        display: none;
    }
}

/* home video banner */
@media (min-width: 2100px) {
    .et_pb_section_video_bg .mejs-container {
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }

    .et_pb_section_video_bg video {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        margin: 0 !important;
    }

    /* Vidéo flouée en fond qui couvre tout */
    .et_pb_section_video_bg::before {
        content: '';
        position: absolute;
        inset: 0;
        background: inherit;
        filter: blur(20px);
        transform: scale(1.1);
    }
}

/* Blog - Articles */
.post-meta .author,
.post-meta .author+text {
    display: none;
}

/* plus simple : cacher tout le "par easycorp |" */
.post-meta .author {
    display: none;
}

.post-meta .author+* {
    display: none;
}

/* =========================
   FIX VIDEO BANNER
========================= */

/* hauteur = écran - header */
@media (max-width: 2099px) {
    /* Petits écrans (<768px) avec hauteur >= 715px */
    @media (max-width: 767px) and (min-height: 635px) {
        #accueil.home-hero {
            height: calc(100vh - 80px);
            position: relative;
            overflow: hidden;
        }
    }

    /* Grands écrans (>1100px) avec hauteur >= 715px */
    @media (min-width: 1101px) and (min-height: 715px) {
        #accueil.home-hero {
            height: calc(100vh - 80px);
            position: relative;
            overflow: hidden;
        }
    }

    /* Tablette (768–1100px) avec hauteur > 850px seulement */
    @media (min-width: 768px) and (max-width: 1100px) and (min-height: 851px) {
        #accueil.home-hero {
            height: calc(100vh - 80px);
            position: relative;
            overflow: hidden;
        }
    }

    /* container vidéo */
    #accueil .et_pb_section_video_bg {
        position: absolute;
        inset: 0;
    }

    /* IMPORTANT : on laisse Divi gérer sur grands écrans */
    /* @media (min-width: 2100px) {
        .et_pb_section_video_bg .mejs-container {
            left: 50% !important;
            top: 50% !important;
            transform: translate(-50%, -50%) !important;
            margin: 0 !important;
            width: 100% !important;
            height: 100% !important;
            }
            
            .et_pb_section_video_bg video {
                width: 100% !important;
                height: 100% !important;
                object-fit: contain !important;
                margin: 0 !important;
                }
                
                /* ton flou actuel (on garde tel quel) */
    /* .et_pb_section_video_bg::before {
                    content: '';
                    position: absolute;
                    inset: 0;
                    background: inherit;
                    filter: blur(20px);
                    transform: scale(1.1);
                    }
                    }  */

    /* =========================
                    PETITS & MOYENS ÉCRANS
                    ========================= */


    /* on force un vrai comportement responsive */
    #accueil .mejs-container {
        position: absolute !important;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) !important;

        height: 100% !important;
        width: auto !important;

        min-width: 100%;
    }

    #accueil video {
        position: absolute !important;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) !important;

        height: 100% !important;
        width: auto !important;

        min-width: 100%;
        object-fit: cover !important;
    }

    /* désactive le flou ici */
    #accueil .et_pb_section_video_bg::before {
        display: none;
    }
}


/* @media (max-width: 400px) {
    #home-banner {
        margin-top: 300px !important;
    }
}

@media (min-width: 2100px) {
    #home-banner {
        margin-top: 600px !important;
    }
} */

/* Petits écrans (<768px) avec hauteur >= 715px */
@media (max-width: 767px) and (min-height: 635px) {
    #accueil.home-hero {
        height: calc(100vh - 80px);
        position: relative;
        overflow: hidden;
    }
}

/* Grands écrans (>1100px) avec hauteur >= 715px */
@media (min-width: 1101px) and (min-height: 715px) {
    #accueil.home-hero {
        height: calc(100vh - 80px);
        position: relative;
        overflow: hidden;
    }
}

/* Tablette (768–1100px) avec hauteur > 850px seulement */
@media (min-width: 768px) and (max-width: 1100px) and (min-height: 851px) {
    #accueil.home-hero {
        height: calc(100vh - 80px);
        position: relative;
        overflow: hidden;
    }
}

/* zone vidéo */
#accueil .et_pb_section_video_bg {
    position: absolute;
    inset: 0;
}

/* =========================
   CONTENU HERO (HOME-BANNER)
========================= */

#home-banner {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 40px;
    /* espace bas propre */
    z-index: 10;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;

    text-align: center;

    padding: 0 20px;
}

@media (max-width: 768px) {

    #home-banner {
        bottom: 20px;
    }
}

@media (max-height: 715px) {

    /* évite que le texte passe sous les doigts / UI mobile */
    #home-banner h1 {
        font-size: 22px;
        line-height: 1.2;
    }

    #home-banner h2 {
        font-size: 16px;
        line-height: 1.3;
    }
}