/*
Theme Name: Etude Delta
Description: ThÃ¨me enfant de Etude Delta
Author: by the way studio SÃ rl
Template: Divi
Version: 1.12
*/



/* SETTINGS */

::-moz-selection {
    background: #ed6e8f;
    color: #fff;
}
::selection {
    background: #ed6e8f;
    color: #fff;
}
.et_pb_row, .et_pb_pagebuilder_layout.single.et_full_width_page:not(.et-tb-has-body) #main-content .et_pb_row {
    width: 100%;
}

/* Fonts */


/* Texts */


/* Buttons */


@media only screen and (max-width: 980px) {


}
@media only screen and (max-width: 767px) {


}

/* Footer */

nav.et-menu-nav > .et-menu > li:not(.pink-link):hover > a,
nav.et-menu-nav > .et-menu > li:not(.pink-link):focus-within > a,
nav.et-menu-nav > .et-menu > li:not(.pink-link).current-menu-item > a,
nav.et-menu-nav > .et-menu > li:not(.pink-link).current-menu-ancestor > a,
nav.et-menu-nav > .et-menu > li:not(.pink-link) .sub-menu li.current-menu-item > a,
nav.et-menu-nav > .et-menu > li:not(.pink-link):hover .det-menu-expand::after,
nav.et-menu-nav > .et-menu > li:not(.pink-link):focus-within .det-menu-expand::after,
nav.et-menu-nav > .et-menu > li:not(.pink-link).current-menu-item .det-menu-expand::after,
nav.et-menu-nav > .et-menu > li:not(.pink-link).current-menu-ancestor .det-menu-expand::after {
    color: #6EBE97 !important;
    border-color: #6EBE97;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
}


nav.et-menu-nav > .et-menu > li.pink-link:hover > a,
nav.et-menu-nav > .et-menu > li.pink-link:focus-within > a,
nav.et-menu-nav > .et-menu > li.pink-link.current-menu-item > a,
nav.et-menu-nav > .et-menu > li.pink-link.current-menu-ancestor > a,
nav.et-menu-nav > .et-menu > li.pink-link .sub-menu li.current-menu-item > a,
nav.et-menu-nav > .et-menu > li.pink-link:hover .det-menu-expand::after,
nav.et-menu-nav > .et-menu > li.pink-link:focus-within .det-menu-expand::after,
nav.et-menu-nav > .et-menu > li.pink-link.current-menu-ancestor .det-menu-expand::after,
nav.et-menu-nav > .et-menu > li.pink-link.current-menu-item .det-menu-expand::after {
    color: #ED6E8F !important;
    border-color: #ED6E8F;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
}

li:hover .det-menu-expand::after {
    border-color: #6EBE97;
}

li.pink-link:hover .det-menu-expand::after {
    border-color: #ED6E8F;
}

nav.et-menu-nav > .et-menu {
    row-gap: 20px;
}

nav.et-menu-nav li.menu-item-has-children .sub-menu li a {
    font-weight: 400 !important;
}

nav.et-menu-nav li.menu-item-has-children .sub-menu li a:hover {
    color: #6EBE97 !important;
    opacity: 1 !important;
    background: none !important;
}

nav.et-menu-nav > .et-menu > li.pink-link .sub-menu li > a:hover {
    color: #ED6E8F !important;
}

/* Mobile footer menu */

body.single-avocate .et-l--body .et_builder_inner_content {
    z-index: 10 !important;
}

body.single-avocate .footer-section {
    position: fixed;
    bottom: 0;
    left: 0;
    padding-top: 40px;
    padding-bottom: 30px;
    width: 100%;
    z-index: 9999999;
}

.footer-section {
    z-index: 999999;
}

.det-menu-expand {
    display: none;
}

.det-menu-expand::after {
    transition: all 0.3s ease;
}

/* Hamburger */
body.single-avocate .footer-section .et_pb_row:has(.det-hamburger) {
    display: none;
}
.det-hamburger {
    display: inline-block;
    cursor: pointer;
    background: none;
    border: none;
    padding: 12px;
    width: auto;
    height: auto;
    position: relative;
    z-index: 1001;
}

.det-hamburger-box {
    width: 24px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.det-hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -2px;
    position: absolute;
    width: 24px;
    height: 3px;
    background-color: #222;
    transition: background 0.3s 0.2s;
}

.det-hamburger-inner::before,
.det-hamburger-inner::after {
    content: '';
    display: block;
    position: absolute;
    width: 24px;
    height: 3px;
    background-color: #222;
    transition: transform 0.3s, top 0.3s, bottom 0.3s;
}

.det-hamburger-inner::before {
    top: -8px;
}

.det-hamburger-inner::after {
    bottom: -8px;
}

/* Animation to X */
.det-hamburger.is-active .det-hamburger-inner {
    background-color: transparent;
    transition-delay: 0s;
}

.det-hamburger.is-active .det-hamburger-inner::before {
    transform: translateY(8px) rotate(45deg);
}

.det-hamburger.is-active .det-hamburger-inner::after {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 767px) {
    .footer-section .et-menu {
        gap: 0 !important;
    }
    .et_pb_row:has(.det-hamburger) {
        position: absolute;
        top: 10px;
    }
    .et_pb_row.et_pb_row:has(.det-hamburger) .et_pb_column {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;

    }
    body.single-avocate .footer-section .et_pb_menu {
        max-height: 0;
        margin: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, height 0.3s ease;
    }
    body.single-avocate .footer-section {
        max-height: 100px;
        min-height: 100px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        overflow: auto;
        padding-top: 20px;
        padding-bottom: 20px;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }
    body.single-avocate .footer-section:has(.active) {
        padding-top: 60px;
        padding-bottom: 40px;
    }
    body.single-avocate .footer-section:has(.active) .et_pb_text:not(:has(.det-hamburger)) {
        position: absolute;
        bottom: -20px;
        left: 50%;
        transform: translateX(-50%);
    }
    body.single-avocate .footer-section .et_pb_row:has(.det-hamburger) {
        display: flex;
    }
    body.single-avocate .footer-section .et_pb_row--with-menu {
        max-height: 100%;
        overflow: auto;
    }
    body.single-avocate .footer-section .et_pb_text {
        margin: 0;
        line-height: 1;
        padding: 0;
    }
    nav.et-menu-nav > .et-menu > .menu-item-has-children {
        display: grid;
        grid-template-areas: "title expand" "submenu submenu";
        grid-template-columns: auto 40px;
        flex-direction: column;
        align-items: center;
    }

    nav.et-menu-nav > .et-menu > .menu-item-has-children > a {
        grid-area: title;
    }
    
    .det-menu-expand {
        grid-area: expand;
        display: block;
        padding: 0;
        margin: 0;
        width: 20px;
        height: 20px;
        background: none;
        border: none;
        font: inherit;
        color: inherit;
        cursor: pointer;
    }
    .det-menu-expand::after {
        content: '';
        margin: auto;
        display: inline-block;
        vertical-align: middle;
        width: 8px;
        height: 8px;
        margin-top: -10px;
        border-right: 2px solid #333;
        border-bottom: 2px solid #333;
        border-left: none;
        border-top: none;
        transform: rotate(45deg);
        background: none;
    }
    nav.et-menu-nav > .et-menu > .menu-item-has-children.active > .det-menu-expand::after {
        margin-top: 0;
        transform: rotate(-135deg);
    }
    nav.et-menu-nav > .et-menu > .menu-item-has-children > .sub-menu {
        /* display: none; */
        grid-area: submenu;
        position: relative;
        display: block;
        top: 2px;
        max-height: 0;
        padding: 0;
        border: 0;
        overflow: hidden;
        text-align: center;
        transition: max-height 0.3s ease;
    }
    nav.et-menu-nav > .et-menu > .menu-item-has-children.active > .sub-menu {
        opacity: 1 !important;
        visibility: visible;
    }
    nav.et-menu-nav > .et-menu > .menu-item-has-children > .sub-menu > li:first-child {
        margin-top: 20px;
    }
}

/* Header */

.det-header {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: auto 1fr;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 0 40px 0 10px ;
    width: 100%;
}

.det-header::before,
.det-header::after {
    pointer-events: none;
}

.det-header.alternative::before,
.det-header.alternative::after {
    display: none !important;
}

header:has(.det-header.alternative) {
    position: relative;
    z-index: 11;
}

header:has(.det-header.alternative) + #et-main-area:has(.et_pb_menu.active) {
    z-index: 12;
    position: relative;
}

.det-header::after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    height: 60px;
    width: 100%;
    z-index: -1;
    pointer-events: none;
    background: #E4E2E2;
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.det-header.home {
    position: absolute;
}

.det-header.home::after {
    display: none;
    /* background: #ED6E8F;
    width: calc(min(863px, 55%));
    left: auto;
    top: 0;
    height: 336px;
    clip-path: polygon(0 0, 100% 100%, 100% 0); */
}

@media (max-width: 767px) {
    .det-header.home {
        /* position: relative; */
    }

    .det-header.home::before {
        /* clip-path: polygon(0 0, 100% 0, 100% 41%, 0% 100%) !important; */
    }
}

/* @media (min-width: 768px) and (max-width: 1640px) {
    header:has(.home) + #et-main-area {
        margin-top: 100px;
    }
} */

#et-main-area {
    overflow: hidden;
}

.det-header.home::before {
    /* position: absolute;
    content: "";
    background: #FFFFFF;
    width: 100%;
    right: auto;
    top: 0;
    height: 336px;
    clip-path: polygon(0 0, 100% 0, 0 100%);
    z-index: -2; */
}

.det-header.home span {
    color: #fff;
}

.det-header.home .det-lang-options span {
    color: #000;
}

.det-header.home .det-lang svg {
    filter: brightness(0) invert(1);
}

.det-header.home a.det-logo {
    visibility: hidden;
}

.et_pb_column:has(.det-header.home) {
    margin-top: -1px;
    top: 1px;
}

.det-menu-bar {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 40px;
}

.det-menu-controls {
    display: flex;
    align-items: center;
    gap: 70px;
}

a.det-logo {
    display: flex;
    padding-bottom: calc(min(2vw, 20px));
    max-height: 240px;
}

@media (max-width: 767px) {

    .det-header.home::before,
    .det-header.home::after {
        display: none;
    }

    .det-header {
        gap: 30px;
        padding: 0 20px 0 0;
        padding-left: calc(min(1vw, 5px));
    }

    .det-header::after {
        height: 20%;
    }
}

@media (max-width: 1000px) {
    .det-menu-controls {
        gap: 30px;
    }

}

/* Header lang */

.det-header .det-lang,
.det-header .det-lang-active {
    font-size: 17px;
    font-weight: 400 !important;
    opacity: 0.7;
    line-height: 35px;
    color: #000000;
    transition: opacity 0.4s;
}


.det-lang:hover {
    opacity: 1;
}

.det-lang-active {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 10px 0;
    appearance: none;
    background-color: unset;
    border: none;
    opacity: 1 !important;
    cursor: pointer;
}

.det-lang-active-desktop {
    opacity: 1 !important;
}

.det-lang-switcher__desktop {
    position: relative;
    display: flex;
    gap: 12px;
}

.det-lang-switcher__mobile {
    display: none;
    gap: 12px;
    position: relative;
}

@media (max-width: 767px) {

    .det-lang-switcher__mobile {
        display: flex;
    }

    .det-lang-switcher__desktop {
        display: none;
    }

}
.det-lang-options {
    position: absolute;
    display: flex;
    padding: 12px 25px;
    top: 100%;
    left: 50%;
    gap: 12px;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    background-color: #fff;
    transition: opacity 0.4s;
    border-radius: 3px;
    transform: translateX(-50%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.det-lang-options.visible,
.det-lang-options:focus-within {
    opacity: 1;
    pointer-events: all;
}

.det-header-button__link {
    text-transform: uppercase;
    font-size: 20px;
    line-height: 100%;
    font-weight: 700;
    color: #000000;
}

.det-header-button__link:hover {
    opacity: 0.7;
}