/* 
Theme Name: Hello Elementor Child
*/

/* ==========================================================================
   FOOTER — CTA, typographie mobile
   ========================================================================== */
   @media screen and (max-width: 767px) {
    footer #ctaFooter {
        .elementor-heading-title {
            font-size: 2rem !important;
            line-height: normal !important;

            .fs-50 {
                font-size: 2.5rem !important;
                line-height: 2rem !important;
            }
        }

        .elementor-widget-container p {
            font-size: 1rem !important;
            line-height: normal !important;
        }
    }
}

/* ==========================================================================
   FOOTER — copyright (liste séparée par des tirets)
   ========================================================================== */
.underline ul {
    > li > span {
        position: relative;
        padding-right: 10px !important;
        text-decoration: underline !important;
    }

    > li:last-child > span {
        padding-right: 0 !important;
        text-decoration: none !important;
    }

    /* séparateur "-" entre les items (sauf le dernier) */
    > li:not(:last-child) > span::after {
        position: absolute;
        right: -2px;
        content: "-";
    }

    > li:hover > span::after {
        color: #fff !important;
    }
}

/* ==========================================================================
   FOOTER — menu de navigation
   ========================================================================== */
footer nav ul.elementor-nav-menu {

    > li.menu-item > a.elementor-item {
        padding: 6px 0 !important;

        &:hover {
            color: var(--e-global-color-primary) !important;
        }

        /* masque le soulignement (::after) sur l'item actif / au survol */
        &.elementor-item-active::after,
        &.elementor-item-active:hover::after,
        &:hover::after {
            display: none !important;
        }
    }

    > li.menu-item:first-child > a.elementor-item {
        padding-top: 0 !important;
    }
}

/* ==========================================================================
   FOOTER — liens copyright
   ========================================================================== */
footer .copyright a {
    color: #FFF !important;
    font-family: var(--e-global-typography-f1eb97d-font-family) !important;
    font-size: var(--e-global-typography-f1eb97d-font-size) !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: normal !important;

    &:hover {
        color: var(--color-primary) !important;
    }
}

/* ==========================================================================
   CTA FOOTER — affichage conditionnel par page
   ========================================================================== */
/* masqué partout hors éditeur... */
#ctaFooter {
    position: relative;
    z-index: 3;
}

body:not(.elementor-editor-active) #ctaFooter:is(.onHome, .onQuiSommesNous, .onServices, .onFairmove, .onArticle) {
    display: none !important;
}

/* ...puis affiché sur la bonne page */
body.home #ctaFooter.onHome { display: flex !important; }
body.page-qui-sommes-nous #ctaFooter.onQuiSommesNous { display: flex !important; } /* peut-être remplacer par page-id */
body.page-services #ctaFooter.onServices { display: flex !important; } /* peut-être remplacer par page-id */
body.page-fairmove #ctaFooter.onFairmove { display: flex !important; } /* peut-être remplacer par page-id */
body.single-post #ctaFooter.onArticle { display: flex !important; } /* peut-être remplacer par page-id */



:lang(en),
:lang(en-CA) {
    & footer #horaire {
        max-width: 210px!important;
    }
}