/*********************** Sommaire ****************************
    - Base html
    - Text & Heading
    - Menus
    - Buttons
    - Forms
*****************************************************************/

/* Base html */
.hidden {
    display: none;
}

h1,
h2,
h3,
.title {
    color: var(--text-heading);
}

.surtitre {
    color: var(--text-surtitre)
}

body {
    background-color: var(--white);
    color: var(--text-regular);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.constrain {
    min-width: var(--constrain);
    max-width: var(--constrain);
    width: 100%;
    margin: auto;
}

.constrain_small {
    min-width: var(--constrain_small);
    max-width: var(--constrain_small);
    width: 100%;
    margin: auto;
}

.constrain_large {
    min-width: var(--constrain_large);
    max-width: var(--constrain_large);
    width: 100%;
    margin: auto;
    padding: 0 32px;
}

.constrain_medium {
    min-width: var(--constrain_medium);
    max-width: 80%;
    width: 100%;
    margin: auto;
}

@media screen and (min-width: 1200px) and (max-width: 1280px) {
    .constrain_large {
        min-width: var(--constrain_large);
        max-width: var(--constrain_large);
        width: 100%;
        margin: auto;
        padding: 0;
    }
}

img.logo,
.logo img {
    border-radius: 0;
}

.bold {
    font-weight: 700;
}

.Mobile-Only {
    display: none;
}

@media screen and (max-width: 1200px) {
    .Mobile-Only {
        display: block;
    }

    .Desktop-Only {
        display: none !important;
    }
}

/* Text & Heading */

.icon_eba {
    /* use !important to prevent issues with browser extensions that change fonts */
    display: inline-block;
    font-family: 'IcoEba' !important;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    font-size: 2.4rem;
    line-height: 1;
    vertical-align: middle;
    transition: margin 0.15s ease-in-out;
    /* Enable Ligatures ================ */
    letter-spacing: 0;
    font-feature-settings: "liga";
    font-variant-ligatures: discretionary-ligatures;
    /* Better Font Rendering =========== */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    &[data-icon]::before {
        /* Pour utilisation avec data-icon */
        content: attr(data-icon);
    }
}

[class^="ico_EBA2"],
[class*=" ico_EBA2"] {
    /* use !important to prevent issues with browser extensions that change fonts */
    font-family: 'icoEBA2' !important;
    speak: never;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    font-size: 1.8rem;
    vertical-align: middle;
    display: inline-block;
}

.ico_EBA2[data-icon]::before {
    content: attr(data-icon);
}

h1 {
    font-size: var(--f-4xl);
    font-weight: 700;
    letter-spacing: -1.41px;
}

h2 {
    font-size: var(--f-3xl);
    font-weight: 700;
    margin-bottom: 18px; 
}

h3 {
    font-size: var(--f-xl);
    font-weight: 700;
}

h4 {
    font-size: var(--f-xl);
    font-weight: 700;
    letter-spacing: -0.02px;
}

h5 {
    font-size: var(--f-l);
    font-weight: 700;

}

h6 {
    font-size: var(--f-m);
    font-weight: 700;
}

p,
a {
    font-size: var(--f-m);
    font-weight: 400;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;

    &:hover {
        text-decoration: underline;
    }
}

a.underline {
    &:hover {
        text-decoration: none;
    }
}
.hidden {display: none;}
/* Buttons */

.btn,
a.btn {
    position: relative;
    padding: 8px 12px;
    color: var(--white);
    border-radius: 8px;
    width: fit-content;
    /* background: linear-gradient(in oklch to right, var(--rouge-ebra), var(--bleu-ebra)); */
    background-color: var(--bleu-ebra);
    border: 1px solid var(--bleu-ebra);
    transition: all .2s 0s ease-out;
    cursor: pointer;
    display: inline-block;
    font-size: var(--f-s);

    &:hover {
        background-color: transparent;
        color: var(--bleu-ebra);
        text-decoration: none;

    }

    a {
        text-decoration: none;

        &::after {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
        }
    }

    &.dark {
        border-color: var(--white);

        &:hover {
            background-color: var(--white);
        }
    }

    &.red {
        background-color: var(--rouge-ebra);
        border-color: var(--rouge-ebra);

        span {
            color: inherit;
        }
    }

    &.blue {
        background-color: var(--bleu-ebra);
        border-color: var(--bleu-ebra);

        &:hover {
            background-color: var(--bleu-ebra);
            color: var(--rouge-ebra);
        }
    }

    &.white {
        background-color: var(--white);
        border-color: var(--white);
        color: inherit;

        &:hover {
            background-color: inherit;
            color: var(--white);
        }

    }

    &.light {
        margin-top: auto;
        background: none;
        color: var(--bleu-ebra);
        border: none;
        border-bottom: 1px solid var(--bleu-ebra);
        border-radius: 0;
        padding: 0;

        &:hover {
            border-color: transparent !important;
        }
    }

    &.line {
        background-color: transparent;
        border-color: var(--white);

        &:hover {
            background-color: var(--white);
            color: inherit;
        }
    }

    &.toBeCalled {
        background-color: var(--bleu-ebra);
        outline: 1px solid var(--white);
        color: var(--white);
        border: none;

        &:hover {
            background-color: var(--white);
            color: var(--bleu-ebra);
            outline-color: var(--bleu-ebra);
        }
    }

    &.contactUs {
        background-color: var(--white);
        outline: 1px solid var(--white);
        color: var(--bleu-ebra);
        border: none;

        &:hover {
            background-color: var(--bleu-ebra);
            outline-color: var(--bleu-ebra);
            color: var(--white);
        }
    }

}

a:hover .ico_EBA2[data-icon="arrow-right"] {
    transform: rotate(-45deg);
    color: var(--rouge-ebra);
}


/* =============================================================================
    Menus
   ========================================================================== */
header {
    width: 100%;
    background-color: var(--bleu-ebra);
    position: fixed;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    z-index: 1000;

    transition: all 0.2s ease-in-out;

    .neilsenbar {
        display: flex;
        justify-content: flex-end;

        .connexion {
            display: flex;
            align-items: flex-end;
            line-height: 1;
            gap: 8px;
            padding: 6px;
            color: var(--white);

            .ico_EBA2 {
                font-size: 1.8rem;
            }

            &:hover {
                text-decoration: none;
                background-color: var(--background-transparent);
            }
        }
    }

    .navMain {
        /* box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, .1); */
        display: flex;
        gap: 20px;


        .headerLeft {
            padding: 20px 0 ;
            margin-right: auto;
            .logo {
                display: block;
                width: 140px;
                height: 40px;
                background-size: contain;
                background-repeat: no-repeat;
                background-image: url("../images/logos/EBRA_MEDIAS-white.png");
            }
        }

        .wrapMenu {
            display: flex;
            justify-content: space-between;

            .nav_model03 {
                height: 100%;

                ul[aria-label="menubar"] {
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    gap: 20px;
                    width: 100%;
                    height: 100%;

                    .nav_niv1-link {
                        height: 100%;
                        display: flex;
                        padding: 0 12px;
                        position: relative;
                        border-top: 5px solid transparent;

                        &.selected {
                            border-width: 4px;
                            border-color: var(--rouge-ebra);

                        }

                        &:hover {
                            border-color: var(--rouge-ebra);

                            >a {
                                .icon_eba {
                                    transform: rotate(180deg);
                                }
                            }
                        }

                        a {
                            align-self: center;
                            color: var(--white);

                            span {
                                color: var(--white);
                            }

                            &:hover {
                                text-decoration: none;
                            }

                            &::after {
                                content: "";
                                position: absolute;
                                top: 0;
                                left: 0;
                                right: 0;
                                bottom: 0;
                            }
                        }

                        .menu_wrapper {
                            position: absolute;
                            top: 100%;
                            left: 0;
                            background-color: var(--background);
                            display: none;
                            border-radius: 0 0 20px 20px;
                            transition: all 0.5s ease-in-out;
                            border-top: 2px solid var(--bleu-ebra);

                            ul {
                                display: flex;
                                flex: 2;
                                flex-direction: column;
                                align-items: flex-start;
                                justify-content: flex-start;

                                .nav_niv2-link {
                                    position: relative;
                                    width: 100%;
                                    text-align: right;
                                    margin-left: auto;
                                    padding: 12px 0;
                                    cursor: pointer;

                                    &:hover>a {
                                        text-decoration: underline;
                                    }

                                    &::after {
                                        content: "";
                                        position: absolute;
                                        top: 0;
                                        left: 0;
                                        right: 0;
                                        bottom: 0;
                                    }
                                }
                            }

                            &::after {
                                content: "";
                                display: block;
                                background-repeat: no-repeat;
                                background-size: cover;
                                height: 100%;
                                border-radius: 0 0 0 calc(infinity * 1px);
                                flex: 3;
                            }

                        }

                        &.bgSolutions .menu_wrapper::after {
                            background-image: url('../images/corgi.jpg');
                        }

                        &.open {
                            .menu_wrapper {
                                display: flex;
                                height: 100%;
                                gap: 30px;
                                width: 100%;
                                height: 100%;
                                min-height: 420px;
                            }
                        }
                    }
                }
            }
        }

        .headerRight.Desktop-Only {
            display: flex;
            align-items: center;
            gap: 18px;
            li {
                position: relative;

                a {
                    display: flex;
                    align-items: center;
                    gap: 8px;

                    &::after {
                        content: "";
                        position: absolute;
                        top: 0;
                        left: 0;
                        right: 0;
                        bottom: 0;
                    }
                }
            }
        }
    }

    &.scrolly {
        top: -30px;

        .navMain {
            

            .nav_model03 {
                .nav_niv1-link {
                    .menu_wrapper {
                        background-color: var(--bleu-ebra);
                    }
                }

                .myM a {
                    &::before {
                        background-image: none !important;
                        background-color: #FFF;
                        mask-size: contain;
                        mask-repeat: no-repeat;
                        -webkit-mask-image: url(../images/myM.png);
                        mask-image: url(../images/myM.png);
                    }
                }
            }

            .menu_wrapper {
                background-color: var(--bleu-ebra) !important;
                border-color: var(--white) !important;
            }
        }
    }

    .show-menu {
        background: none;
        border: none;
        color: var(--white);

        span {
            font-size: var(--f-l);
        }
    }
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background-color: var(--grey-light);
    z-index: 999;
    display: none;
}

@media screen and (max-width: 1200px) {

    header {
        .navMain {
            justify-content: space-between;

            .wrapMenu {
                position: absolute;
                width: 100%;
                left: 0;
                background-color: var(--bleu-ebra);
                top: 110px;
                padding: 16px;
                justify-content: center;
                display: none;

                .nav_model03 {
                    ul {
                        flex-direction: column;
                    }
                }

                .headerRight.Mobile-Only {
                    margin-top: 16px;
                    display: flex;
                    align-items: center;
                    gap: 16px;
                    justify-content: space-around;

                    .btn {
                        a {

                            display: flex;
                            align-items: center;
                            gap: 8px;
                        }

                        .contactUs {
                            a {
                                color: var(--bleu-ebra);
                            }
                        }
                    }
                }
            }

            .headerRight {
                margin-left: auto;
            }
        }
    }

    .showMenu {
        overflow: hidden;

        header {
            .navMain {
                .wrapMenu {
                    display: block;
                }
            }
        }

        .overlay {
            display: block;
        }
    }
}

/* Styles particuliers pour le Header de la page d'Authentification */
.AuthenticationComponent {
    header {
        background-color: transparent !important;
        position: absolute !important;
        width: 60% !important;
        left: 0 !important;
        transform: unset !important;

        &.scrolly {
            top: unset;
        }

        .constrain_large {
            min-width: 60% !important;
        }

        .neilsenbar,
        .headerRight {
            display: none;
            visibility: hidden;
        }
    }
}

.FormComponent,
.DefineKeywordComponent,
.ContentDetailComponent .light,
header.bg {
    .navMain {
        background-color: var(--bleu-ebra);
    }
}


footer {
    display: flex;
    flex-direction: column;
    position: relative;

    #scrollToTopBtn {
        position: absolute;
        cursor: pointer;
        z-index: 1;
        transform: rotate(90deg);
        border: none;
        background: none;
        right: -30px;
        top: 100px;

        p {
            border: 1px solid transparent;
            border-radius: 8px;
            padding: 4px 6px;
            display: inline;
            transition: all 0.2s ease-in-out;
        }

        span,
        p {
            color: var(--white);

        }

        &:hover {
            p {
                border-color: var(--white);
            }
        }
    }

    .footer-wrap-top {
        background-color: var(--text-black);
        position: relative;
        padding-top: 32px;

        .footer-contains {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            padding: 0 32px 16px;
            gap: 24px;

            .footer-id {
                flex: 1;
                display: flex;
                gap: 30px;
            }

            .logo-wrap {
                flex: 1;

                .description-eba {
                    color: var(--white);
                    margin-top: 16px;
                    font-size: var(--f-s);
                }

                .logo {
                    margin-bottom: 24px;

                }
            }

            .nav_model04 {
                flex: 3;


                a,
                span,
                h3 {
                    color: var(--white);
                }

                h3 {
                    font-size: 1.6rem;
                    padding-bottom: 8px;
                }

                .nav_niv1 {
                    display: flex;
                    justify-content: flex-end;
                    gap: 32px;

                    .nav_niv1-link {
                        display: flex;
                        flex-direction: column;
                        gap: 12px;
                        flex: 1;
                    }
                }

                .nav_niv2 {
                    display: flex;
                    flex-direction: column;
                    gap: 6px;

                    li {

                        a {
                            font-size: 1.4rem;
                        }
                    }
                }

            }

            .goAccount {
                color: var(--white);
                padding: 20px 20px 20px 0;
                position: relative;

                h3 {
                    color: var(--bleu);
                    text-transform: uppercase;
                    font-size: var(--f-l);
                }

                p {
                    color: inherit;
                }

                a::after {
                    content: "";
                    position: absolute;
                    top: 0;
                    left: 0;
                    right: 0;
                    bottom: 0;
                }
            }

            .all-links {
                flex: 3;
                display: flex;
                gap: 36px;
                border-top: 1px solid var(--background-transparent);


            }

            .all-contact {
                display: flex;
                flex-direction: column;
                gap: 12px;
                align-items: center;
                width: fit-content;
                width: 100%;
                padding: 20px;

                h2 {
                    font-size: 2.4rem;
                    text-transform: uppercase;
                    letter-spacing: 0.5px;
                    color: var(--white);
                }

                .all-contact-links {
                    display: flex;
                    gap: 24px;
                    width: 100%;
                    justify-content: space-around;

                    >div {
                        display: flex;
                        flex-direction: column;
                        gap: 8px;
                        justify-content: flex-start;
                        align-items: center;

                        h3 {
                            color: var(--white);
                            font-size: 1.6rem;
                            font-weight: 500;
                        }

                        >div {
                            display: flex;
                            gap: 12px;

                            &.contact-sl {
                                a {
                                    align-self: flex-end;
                                }
                            }
                        }

                        a:not(.btn) {
                            background-color: var(--background-transparent);
                            border: 1px solid transparent;
                            width: 30px;
                            aspect-ratio: 1 / 1;
                            border-radius: 8px;
                            padding: 6px;
                            display: flex;
                            align-items: center;
                            justify-content: center;

                            span {
                                color: var(--white);
                                font-size: 1.6rem;
                            }

                            &:hover {
                                background-color: transparent;
                                text-decoration: none;

                            }
                        }

                        .btn {
                            border: 1px solid transparent;
                            background-color: var(--background-transparent);
                            color: var(--white);

                            &:hover {
                                border: 1px solid #FFF;
                            }
                        }
                    }
                }
            }
        }
    }
}

@media screen and (min-width: 800px) {
    footer {
        .footer-wrap-top {
            .footer-contains {
                .logo {
                    img {
                        width: 80%;
                    }
                }
            }
        }
    }
}

@media screen and (max-width: 800px) {
    footer {
        .footer-wrap-top {
            .footer-contains {
                .logo {
                    img {
                        width: 250px;
                        margin: auto;
                    }
                }
                .description-eba {
                    text-align: center;
                }

                .nav_model04 .nav_niv1 {
                    flex-direction: column;
                    text-align: center;
                }

                .footer-id {
                    flex-direction: column;
                }

                .all-links {
                    flex-direction: column;
                    gap: 0;
                    .goAccount {
                        text-align: center;
                    }
                }

                .all-contact {
                    padding: 0;

                    .all-contact-links {
                        justify-content: space-between;
                        flex-direction: column;
                    }
                }
            }
        }

        #scrollToTopBtn {
            right: 0;
            top: -10px;

            p {
                display: none;
            }

            span {
                background-color: var(--rouge-ebra);
                width: 40px;
                aspect-ratio: 1 / 1;
                border-radius: 8px;
                display: flex;
                justify-content: center;
                align-items: center;
            }
        }
    }
}

/* =============================================================================
    Formulaire
   ========================================================================== */
.pagination {
    .pagination-list {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 18px;

        a {
            width: 20px;
            aspect-ratio: 1 / 1;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .pagination-item_selected {
            border-bottom: 1px solid var(--rouge-ebra);
        }
    }
}

/* =============================================================================
    Formulaire
   ========================================================================== */

form .double_field {
    display: flex;
    gap: 24px;

    >* {
        flex: 1;
    }
}

form .field {
    margin: 24px 0;
}

form .field label {
    min-width: 200px;
    font-weight: bold;
    color: var(--text-heading);
    display: block;
}

form .field label .oblig {
    min-width: 200px;
}

form input[type=text],
form input[type=password],
form input[type=email],
form input[type=tel],
select {
    min-height: 32px;
    padding: 5px 5px;
    width: 100%;

    &.error {
        border-color: var(--rouge-ebra);
    }
}

form textarea {
    min-height: 260px;
    padding: 5px 5px;
    width: 100%;
}