/*
   Reference: https://gitrepos.cetim.fr/cetim-cr-web/cetim-website/-/blob/develop/assets/header/index.scss?ref_type=heads
   CHANGES MUST BE SYNCED between projects
   Todo improvements: create a common component packaged in a Symfony bundle (must be compatible with sf 3.4 & 6.4)
*/

@tailwind base;
@tailwind components;
@tailwind utilities;


@font-face {
    font-family: 'Source Sans Pro';
    font-weight: 900; /* Poids de la police Black */
    font-style: italic;
    src: url("../fonts/source-sans-pro/SourceSansPro-BlackIt-u4aJcFs.otf") format('opentype');
}

@font-face {
    font-family: 'Source Sans Pro';
    font-weight: bold;
    font-style: normal;
    src: url("../fonts/source-sans-pro/SourceSansPro-Bold-Fj4i25Y.otf") format('opentype');
}

@font-face {
    font-family: 'Source Sans Pro';
    font-weight: bold;
    font-style: italic;
    src: url("../fonts/source-sans-pro/SourceSansPro-BoldIt-qHonTcU.otf") format('opentype');
}

@font-face {
    font-family: 'Source Sans Pro';
    font-weight: 200; /* Poids de la police ExtraLight */
    font-style: normal;
    src: url("../fonts/source-sans-pro/SourceSansPro-ExtraLight-ejANQLJ.otf") format('opentype');
}

@font-face {
    font-family: 'Source Sans Pro';
    font-weight: 200; /* Poids de la police ExtraLight */
    font-style: italic;
    src: url("../fonts/source-sans-pro/SourceSansPro-ExtraLightIt-IKIyTsM.otf") format('opentype');
}

@font-face {
    font-family: 'Source Sans Pro';
    font-weight: normal;
    font-style: italic;
    src: url("../fonts/source-sans-pro/SourceSansPro-It-Z8q03YG.otf") format('opentype');
}

@font-face {
    font-family: 'Source Sans Pro';
    font-weight: 300; /* Poids de la police Light */
    font-style: normal;
    src: url("../fonts/source-sans-pro/SourceSansPro-Light-rukHYdm.otf") format('opentype');
}

@font-face {
    font-family: 'Source Sans Pro';
    font-weight: 300; /* Poids de la police Light */
    font-style: italic;
    src: url("../fonts/source-sans-pro/SourceSansPro-LightIt-cw2wLtU.otf") format('opentype');
}

@font-face {
    font-family: 'Source Sans Pro';
    font-weight: normal;
    font-style: normal;
    src: url("../fonts/source-sans-pro/SourceSansPro-Regular-QQYI_i3.otf") format('opentype');
}

@font-face {
    font-family: 'Source Sans Pro';
    font-weight: 600; /* Poids de la police Semibold */
    font-style: normal;
    src: url("../fonts/source-sans-pro/SourceSansPro-Semibold--63gc5n.otf") format('opentype');
}

@font-face {
    font-family: 'Source Sans Pro';
    font-weight: 600; /* Poids de la police Semibold */
    font-style: italic;
    src: url("../fonts/source-sans-pro/SourceSansPro-SemiboldIt-jhAFqMO.otf") format('opentype');
}

.leading-2 {
    line-height: 0.5rem;
}


.focus\:ring-offset-gray-800:focus{
    --tw-ring-offset-color:inital !important;
}

a:hover svg.svg-ellipse-blue ellipse {
    fill:var(--cetim-blue-800);
}

/*
body {
    background-color: #F5F7F9;
}
*/

header.menu-cetim {
    a, p, span, div {
        font-family: "Source Sans Pro";
    }

    .banner-section {
        background-color: #001E50;
        width: 100%;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        a {
            font-size: 14px;
            font-weight: 700;
            line-height: 17.6px;
            letter-spacing: 0.75px;
            color: #fff;
        }
        p {
            font-size: 14px;
            font-weight: 400;
            line-height: 17.6px;
            letter-spacing: 0.75px;
            color: #fff;
        }
    }
    .link-res-wrap {
        background-color: #F7F7F7;
        padding: 25px 20px;
        border-top: 1px solid #939393;
    }
    #dropdownButton, #dropdownButton-res, #dropdownButton-lang {
        img {
            width: 20px;
        }
        p {
            font-family: Source Sans Pro;
            font-size: 12px;
            font-weight: 600;
            line-height: 16px;
            letter-spacing: 0.75px;
        }
    }
    .profil-dropdown-menu, .profil-dropdown-menu-res, #profil-dropdown-menu-lang {
        display: none;
        width: 200px;
        padding: 16px 19px;
        border: 1px solid #1D1D1D;
        a {
            font-family: Source Sans Pro;
            font-size: 12px;
            font-weight: 600;
            line-height: 20px;
            letter-spacing: 1.20px;
        }
        img {
            width: 16px;
        }
        .dropdown-wrapper {
            gap: 16px;
            flex-direction: column;
        }
        .text-red {
            color: #EF3346;
        }
        .profil-dropdown-divider {
            width: 100%;
            height: 1px;
            background-color: #F7F7F7;
        }
    }


    .menu-cetim-section {
        position: relative;
        z-index: 999;
        width: 100%;
        padding: 0px 32px;
        box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
        height: 80px;
        display: flex;
        @media screen and (max-width: 1024px) {
            height: 60px;
        }
    }
    .menu-cetim {
        padding-left: 0;
        padding-right: 0;
    }
    .menu-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        @media screen and (max-width: 500px) {
            width: 126px;
        }
    }

    .menu-logo-60ans {
        margin-top: 12px;
        width: 260px;
        @media screen and (max-width: 1024px) {
            margin-left: 5px;
            margin-right: 18px;
            margin-top: 19px;
            width: 160px;
        }

        @media screen and (max-width: 500px) {
            margin-left: 5px;
            margin-right: 18px;
            margin-top: 19px;
            width: 130px;
        }
    }

    .mega-menu-desktop {
        width: 90%;
        max-width: 1440px;
        margin: auto;
    }
    .megamenu-col {
        width: 326px;
    }
    .lang-res {
        padding: 25px 0;
        a {
            font-size: 12px;
            font-weight: 400;
            line-height: 16px;
            letter-spacing: 0.75px;
            color: #939393;
        }
        a.selected-lang {
            color: #1D1D1D;
        }
        .divider-lang-res {
            width: 1px;
            height: 14px;
            background-color: #1D1D1D;
        }
    }
    @media screen and (max-width: 1024px) {
        .menu-megamenu {
            width: 100% !important;
        }
        .mega-menu-desktop {
            display: none;
        }
    }
    .menu-megamenu {
        background-color: white;
        padding:50px 20px;
        justify-content: center;
        position: absolute;
        top: 130px;
        width: 100%;
        z-index: 99;
        box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
        @media screen and (max-width: 1024px) {
            padding:0;
            top: 60px;
        }
    }

    .menu-megamenu a, .menu-megamenu-res a {
        letter-spacing: .8px;
    }

    .menu-megamenu .title-col-megamenu, .menu-megamenu-res .title-col-megamenu{
        font-size: 16px;
        font-weight: 900;
        line-height: 28px;
        text-align: left;
        width: 100%;
        display: flex;
        margin-bottom: 16px;
        @media screen and (max-width: 1024px) {
            font-size: 14px;
            line-height: 24px;
        }
    }
    .menu-item-wrapper {
        a:hover {
            color: #6788B8 !important;
        }
        .menu-item {
            color: #131313;
            font-size: 14px;
            font-weight: 400;
            line-height: 17.6px;
            letter-spacing: 0.75px;
            margin-bottom: 20px;
            a:hover {
                color:#6A6A6A !important;
            }
        }
    }
    .link-megamenu {
        font-size: 16px;
        font-weight: 700;
        line-height: 20.11px;
        letter-spacing: 1px;
        color: #001E50;
        &:hover {
            color: #6788B8 !important;
        }
    }

    .title-col-megamenu::after {
        content: "";
        position: absolute;
        top: -15px;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: #d2d2d3;
    }
    .menu-megamenu a.link-megamenu, .menu-megamenu-res a.link-megamenu {
        color:#001e50 ;
        font-weight: 800 !important;
    }
    .menu-megamenu-res li {
        list-style: none;
        font-size: 16px;
    }
    .sub-menu-container {
        padding: 30px 20px;
        border-top: 1px solid #1d1d1d;
    }
    .menu-megamenu-res .title-col-megamenu::after {
        display: none;
    }
    .menu-megamenu-res .title-col-megamenu {
        text-transform: uppercase;
    }
    .sub-menu-container .menu-item {
        margin:15px 0;
    }
    .chevron-square {
        border: 1px solid #d2d2d3;
        border-radius: 4px;
        height: 36px;
        width: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .chevron-menu {
        border-radius: 1px;
        border-style: solid;
        border-width: 2px 2px 0 0;
        content: "";
        border-color: #1d1d1d;
        display: inline-block;
        position: relative;
        top: -3px;
        transform: rotate(134deg);
        width: 14px;
        align-content: center;
        height: 14px;
    }
    .burger-megamenu {
        cursor: pointer;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 42px;
        height: 14px;
    }

    .burger-line {
        width: 24px;
        height: 2px;
        background-color: #001E50; /* Couleur des lignes du menu */
        transition: transform 0.3s;

    }

    /* Style pour la transition du menu burger en croix */
    .burger-megamenu.open .line1 {
        transform: translateY(8px) rotate(45deg);
        background-color: #ef3346;
    }

    .burger-megamenu.open .line2 {
        opacity: 0;
    }

    .burger-megamenu.open .line3 {
        transform: translateY(-4px) rotate(-45deg);
        background-color: #ef3346;

    }
    .searchbar-menu {
        border: none   ;
        height: 80px;
        padding-left: 60px;
        background: #f7f7f7 url("../images/search-icon-7TVob9b.svg") no-repeat left 24px center;
    }
    .searchbar-menu::placeholder {
        font-family:'Source Sans Pro';
        font-size: 16px;
        font-weight: 400;
        line-height: 28px;
        color: #939393;
    }

    .megamenu-cetim {
        margin:0 auto;
        padding-bottom: 0;
        width: 100%;

        p, ul {
            margin-bottom: 0;
        }
    }
    .rs-text {
        font-size: 14px;
        font-weight: 700;
        line-height: 17.6px;
        letter-spacing: 0.75px;
        color: #131313;
        margin-bottom: 16px;
    }
    .list-rs-wrapper {
        @media screen and (max-width: 1024px) {
            border-top: 1px solid #131313;
        }
        ul{
            padding: 24px 0;
        }
        svg {
            ellipse:hover {
                fill: #6788B8;
            }
        }
    }
    .search-menu-wrapper {
        display: flex;
        @media screen and (max-width: 1024px) {
            display: none
        }

        form {
            margin-bottom: 0;
        }
    }
    .searchbar-res {
        display: none;
        @media screen and (max-width: 1024px) {
            display: flex;
        }
    }
    /* Style pour le menu principal */
    .menu-formation {
        background-color: #001E50;
        height: 50px;
        display: flex;
        justify-content: space-between;
        position: relative;
        width: 100%;
        @media screen and (max-width: 1023px) {
            display: none;
        }
        > ul {
            list-style-type: none;
            margin: 0;
            padding: 0;
            display: flex;
            width: 100%;
            .menu-title-formation {
                font-size: 14px;
                font-weight: 600;
                line-height: 16px;
                letter-spacing: 0.75px;
                padding: 0 25px;
            }
            > li {
                &:hover {
                    background-color:#6788B8 ;
                    .dropdown-menu-formation  {
                        display: flex;
                        z-index: 999;
                    }
                }
                a {
                    color: white;
                    display: block;
                    text-align: center;
                    text-decoration: none;
                }

                /* Sous-menu (dropdown) */
                .col-formation-wrapper {
                    width: 224px !important;
                }
                .dropdown-menu-formation {
                    display: none;
                    position: absolute;
                    top: 100%;
                    left: 0;
                    width: 100%;
                    background-color: #fff;
                    box-shadow: 0px 4px 24px 0px #0000001A;
                    padding: 25px;
                    justify-content: space-between;
                    .title-formation-dd {
                        font-size: 14px;
                        font-weight: 700;
                        line-height: 16px;
                        letter-spacing: 0.75px;
                        text-align: left;
                        color: #01112C;
                    }
                    .link-formation-dd {
                        font-size: 14px;
                        font-weight: 400;
                        line-height: 16px;
                        letter-spacing: 0.75px;
                        text-align: left;
                    }
                    .col-formation-img {
                        margin-right: 100px;
                    }
                    li {
                        width: fit-content;
                        a {
                            color: #001E50;
                            display: block;
                            width: fit-content;
                        }
                    }
                }
            }
        }
    }
    .menu-formation-res {
        background-color: #001E50;
        display: none;
        padding: 24px 20px;
        @media screen and (max-width: 1224px) {
            display: flex
        }
        a {
            color: white;
            margin: 0 !important;
        }
    }
    .world-menu {
        height: 20px;
    }
    .user-connect {
        background-color: #EF3346;
        border-radius: 50%;
        width: 22px;
        height: 22px;
        p {
            font-size: 8px;
            font-weight: 700;
            line-height: 20px;
            text-align: center;
            color: white;
        }
    }
    .menu-formation-res {
        gap: 20px;
        .menu-title-formation {
            padding-bottom: 20px;
            border-bottom: 1px solid white;
            color: white !important;
            font-family: Source Sans Pro;
            font-size: 14px;
            font-weight: 400;
            line-height: 16px;
            letter-spacing: 0.75px;
            text-align: left;
        }
        .btn-red-form {
            background-color: #ef3346;
            color: #fff;
            font-family: Source Sans Pro, sans-serif;
            font-size: 14px;
            font-weight: 700;
            letter-spacing: .8px;
            padding: 11px 20px;
            width: fit-content;
        }
    }
    .dropdown-form-res {
        padding: 0;
        border: 0 !important;
        .chevron-square {
            height: 15px;
            border: none;
            padding-bottom: 5px;
            .chevron-menu {
                border-color: white;
            }
        }

        a.title-col-megamenu {
            color: white !important;
            font-family: Source Sans Pro;
            font-size: 14px;
            font-weight: 400;
            line-height: 16px;
            letter-spacing: 0.75px;
            text-align: left;
        }
    }
    .dropdown-form-res.world-menu-res {
        background-color: white;
        padding:20px 0;
        div {
            padding: 0 20px;
        }
        a{
            color: #1D1D1D;
            margin: 0 ;
        }
        .chevron-menu {
            border-color: #131313;
        }
        .dropdown-megamenu a {
            font-family: Source Sans Pro;
            font-size: 12px;
            font-weight: 600;
            line-height: 20px;
            letter-spacing: 1.2px;
        }
    }
    #dropdownButton-search-input {
        position: absolute;
        bottom: -80px;
        right: 0px;
        z-index: 9999999;
        display: none;
        input {
            width: 100vw !important;
        }
    }
}


