/*
 Theme Name: Divi Child
 Theme URI: https://www.elegantthemes.com/gallery/divi/
 Description: Divi Child Theme
 Author: EcloLINK
 Author URI: https://eclolink.com
 Template: Divi
 Version: 1.0.0
*/

/* =Theme customization starts here
------------------------------------------------------- */
/*some default rules for art du trait*/

:focus-visible {
    outline: 2px solid #FFD166;
    outline-offset: 2px;
}
.section-flex-bottom{
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.ligne-hrzntl-align {
    display: flex;
    flex-direction: row;
    align-items:center;
}
.ligne-vrtcl-align {
    display: flex;
    flex-direction: column;
    align-items:center;
}
.ligne-flex {
    display: flex;
}
.full-height-img,
.full-height-img .et_pb_image_wrap,
.full-height-img .et_pb_image_wrap img{
    height:100%
}
.full-height-img .et_pb_image_wrap img{
    object-fit: cover;
}

.gap-15{
    gap: 15px;
}
.gap-10{
    gap: 10px;
}

.xxl {
    /* 70px @ 320px  →  95px @ 1920px */
    font-size: clamp(4.375rem, 4.0625rem + 1.5625vw, 5.9375rem)!important;
}

.xl {
    /* 56px @ 320px  →  76px @ 1920px */
    font-size: clamp(3.5rem, 3.25rem + 1.25vw, 4.75rem)!important;
}
.small {
    font-size: 13px;
}
.h1 {
    /* 46px @ 320px  →  61px @ 1920px */
    font-size: clamp(2.875rem, 2.6875rem + 0.9375vw, 3.8125rem)!important;
}

.h2 {
    /* 38px @ 320px  →  49px @ 1920px */
    font-size: clamp(2.375rem, 2.2375rem + 0.6875vw, 3.0625rem)!important;
}

.h3 {
    /* 32px @ 320px  →  39px @ 1920px */
    font-size: clamp(2rem, 1.9125rem + 0.4375vw, 2.4375rem)!important;
}

.h4 {
    /* 26px @ 320px  →  31px @ 1920px */
    font-size: clamp(1.625rem, 1.5625rem + 0.3125vw, 1.9375rem)!important;
}

.h5 {
    /* 22px @ 320px  →  25px @ 1920px */
    font-size: clamp(1.375rem, 1.3375rem + 0.1875vw, 1.5625rem)!important;
}

.h6 {
    /* 18px @ 320px  →  20px @ 1920px */
    font-size: clamp(1.125rem, 1.1rem + 0.125vw, 1.25rem)!important;
}

h2,h3,h4,h5,h6{
    line-height: 1.3em !important;
    padding: 0!important;
}
.mb-15{
    margin-bottom: 15px;
}

body #page-container .et_pb_section .et_pb_button.wave_btn, body #page-container .et_pb_section .et_pb_module.wave_btn .et_pb_button{
    padding: .7em 1.5em;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
body #page-container .et_pb_section .et_pb_button.wave_btn::before, body #page-container .et_pb_section .et_pb_module.wave_btn .et_pb_button::before{
    content: "" !important;
    display: block !important;
    position: absolute !important;
    left: 0;
    right: 0;
    top: auto !important;
    bottom: 0 !important;
    width: auto !important;
    height: 120%;
    background: var(--liquid-fill, currentColor) !important;
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 50' preserveAspectRatio='none'><path d='M0 6 Q 10 2 20 6 T 40 6 L40 50 L0 50 Z' fill='black'/></svg>");
            mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 50' preserveAspectRatio='none'><path d='M0 6 Q 10 2 20 6 T 40 6 L40 50 L0 50 Z' fill='black'/></svg>");
    -webkit-mask-repeat: repeat-x;
            mask-repeat: repeat-x;
    -webkit-mask-size: 4rem 100%;
            mask-size: 4rem 100%;
    -webkit-mask-position: 0 0;
            mask-position: 0 0;
    -webkit-mask-mode: alpha;
            mask-mode: alpha;
    border-radius: 0 !important;
    transform: translateY(101%);
    opacity: 1 !important;
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
    animation: flip-wave-flow 3s linear infinite paused;
    z-index: -1;
    margin: 0 !important;
    padding: 0 !important;
}
@keyframes flip-wave-flow {
    from { -webkit-mask-position-x: 0;    mask-position-x: 0; }
    to   { -webkit-mask-position-x: 2rem; mask-position-x: 2rem; }
}
body #page-container .et_pb_section .et_pb_button.wave_btn:hover::before, body #page-container .et_pb_section .et_pb_module .et_pb_button.wave_btn:hover::before{
    transform: translateY(0);
    animation-play-state: running;
}

body #page-container .et_pb_section .et_pb_button:not(.default)::after, body #page-container .et_pb_section .et_pb_module .et_pb_button:not(.default)::after{
    content: "";
    width: 10px;
    height: 10px;
    background: currentColor;
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none'><path d='M0.6 4.667H8.733M4.667 8.733L8.733 4.667L4.667 0.6' stroke='black' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
            mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none'><path d='M0.6 4.667H8.733M4.667 8.733L8.733 4.667L4.667 0.6' stroke='black' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    -webkit-mask-size: contain;
            mask-size: contain;
    -webkit-mask-position: center;
            mask-position: center;
    -webkit-mask-mode: alpha;
            mask-mode: alpha;
    opacity: 1;
    margin-left: 0.3em !important;
}



span.textline{
    position: relative;
}
span.textline::before {
    content: "";
    display: block;
    position: absolute;
    width: 104%;
    left: -2%;
    height: 13%;
    background: rgb(255 209 102 / 40%);
    bottom: 19%;
    z-index: -1;
    border-radius: 999px;
}

.hero-deco {
    position: relative;
    overflow: hidden;
}
.flip-deco {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 10%;
    pointer-events: none;
    z-index: 1;
}
.flip-deco--left  { left: 0; }
.flip-deco--right { right: 0; }
.flip-deco__item {
    position: absolute;
    display: block;
    rotate: var(--rotate, 0deg);
    animation: flip-deco-float var(--duration, 6s) ease-in-out infinite alternate;
    animation-delay: var(--delay, 0s);
}
.flip-deco__item svg {
    width: 100%;
    height: 100%;
    display: block;
}
@keyframes flip-deco-float {
    from { translate: 0 0; }
    to   { translate: 0 calc(var(--float, 15px) * -1); }
}

.textwave {
    position: relative;
    display: inline-block;
}
.textwave::before {
    content: "";
    position: absolute;
    left: -2%;
    right: -2%;
    bottom: -0.15em;
    height: 0.35em;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 471 35' preserveAspectRatio='none'><path d='M5 18 Q 66 -8 128 18 T 251 18 T 374 18 T 466 8' stroke='%23FFD166' stroke-width='7' fill='none' stroke-linecap='round'/></svg>");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    pointer-events: none;
    z-index: -1;
}


@media screen and (max-width:980px){
    .ligne-flex {
        display: flex;
        flex-direction: column;
    }
}

.fadeSwiper{
    .swiper-slide {
        width: fit-content !important;
        color: #9BA0AB;
        font-weight: 400;
    }
    &::before,
    &::after{
        content: "";
        display: block;
        width: 10%;
        height: 100%;
        position: absolute;
        top: 0;
        z-index: 2;
    }
    &::before{
        background: linear-gradient(to left, rgba(0,0,0,0) 0%, #fafaf8 100%);
        left: 0;
        border-radius: 0 10px 10px 0;
    }
    &::after{
        background: linear-gradient(to right, rgba(0,0,0,0) 0%, #fafaf8 100%);
        right: 0;
        border-radius: 10px 0 0 10px;
    }

}

.fadeSwiperCarousel{
    .swiper-slide {
        background: #F7F7F7;
        border-radius: 4px;
        color: #9BA0AB;
        font-weight: 400;
        display: flex   ;
        overflow: hidden;
        img{
            aspect-ratio: 1 / 1;
            object-fit: contain;
        }
    }
    &::before,
    &::after{
        content: "";
        display: block;
        width: 10%;
        height: 100%;
        position: absolute;
        top: 0;
        z-index: 2;
    }
    &::before{
        background: linear-gradient(to left, rgba(0,0,0,0) 0%, #e0e7f0  100%);
        left: 0;
        border-radius: 0 10px 10px 0;
    }
    &::after{
        background: linear-gradient(to right, rgba(0,0,0,0) 0%, #e0e7f0  100%);
        right: 0;
        border-radius: 10px 0 0 10px;
    }

}

.fadeSwiperTemoignage{
    .swiper-slide {
        background: #FAFAF8;
        border-radius: 16px;
        font-weight: 400;
        display: flex;
        overflow: hidden;
        border: 1px solid rgb(0 118 255 / 0.1);
        flex-direction: column;
        gap: 20px;
        padding: 30px;
        .titre {
            display: flex;
            flex-direction: row;
            gap: 10px;
        }
    }

    .temoignage-nav {
        display: flex;
        justify-content: flex-end;
        margin-top: 10px;
        gap: 10px;
    }

    .temoignage-nav button {
        width: 44px;
        height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        border: 1px solid rgb(0 118 255 / 0.1);
        background: transparent;
        color: #0076FF;
        cursor: pointer;
        transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
    }

    .temoignage-nav button.is-disabled {
        opacity: 0.35;
        cursor: not-allowed;
        pointer-events: none;
    }

    .temoignage-nav button.is-locked {
        display: none;
    }

}


/*Accueil*/

.home-header-video.et-pb-has-background-video:not(.et_pb_section--with-menu){
    overflow: visible;
}
.home-header-video .et-pb-background-video{
    opacity: 0.6;
    border-radius: 8px;
}

.home-header-video::before {
    content: '';
    width: 100%;
    max-width: 100vw;
    height: 200px;
    position: absolute;
    background: #34B4A3;
    filter: blur(100px);
    bottom: -70px;
    z-index: -1;
    border-radius: 90%;
}
.home.page #page-container:before {
    content: none;
}
.page #page-container:before {
    content: '';
    width: 100%;
    max-width: 100vw;
    height: 200px;
    position: absolute;
    background: #34B4A3;
    filter: blur(100px);
    top: -70px;
    z-index: -1;
    border-radius: 90%;
}
.error404  #page-container:before {
    content: '';
    width: 100%;
    max-width: 100vw;
    height: 200px;
    position: absolute;
    background: #34B4A3;
    filter: blur(100px);
    top: -70px;
    z-index: -1;
    border-radius: 90%;
}
.error404  #main-content{
    background:transparent
}

/*page ashésion*/
.join-card {
    border-bottom: 1px solid rgb(0 118 255 / 0.2);
    padding-bottom: 20px;
}
.join-card:nth-of-type(even):last-of-type, .join-card:nth-of-type(odd):nth-last-child(2) {
    border-bottom: none;
}

.join-card:nth-of-type(odd):last-of-type {
    border-bottom: none;
}


/*--------------- Formulaire de contact --------------*/
.wpcf7-form hr {
    border: none;
    border-bottom: 1px solid rgb(0 118 255 / 0.2);
    margin-bottom : 30px;
}
.form-title {
    margin: 0 0 12px;
}

.flex-form {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;

    label:has(.w-100) { width: 100%; }
    label:has(.w-40)  { width: 40%; }
    label:has(.w-25)  { width: 25%; }

    label {
        display: flex;
        flex-direction: column;
        gap: 6px;
        font-weight: 600;
        color: #161618;

        &:has(textarea){
            width: 100%;
        }
        &.w60{
            width: 60%;
        }
        &.w30{
            width: 30%;
        }

        .optional {
            font-weight: 400;
            color: #6B7280;
            margin-left: 4px;
        }

        input, textarea, select {
            width: 100%;
            padding: 10px 12px;
            border-radius: 8px;
            border: 1px solid #9BA0AB;
            background: #F4F5F5;
            color: #161618;
            font-size: 16px;
            font-weight: 400;

            option {
                background: #fff;
                color: #161618;
            }

            &::placeholder {
                color: #9CA3AF;
            }

            &:focus {
                outline: none;
                border-color: #0076FF;
                box-shadow: 0 0 0 3px rgb(0 118 255 / 0.15);
            }
        }

        select:has(option:first-child:checked) {
            color: #9CA3AF;
        }
    }
}

.flex-form-send {
    display: flex;
    justify-content: flex-start;
    margin-top: 30px;

    .wpcf7-submit {
        background: #0076FF;
        color: #fff;
        padding: 12px 28px;
        border-radius: 999px;
        font-weight: 700;
        font-size: 16px;
        cursor: pointer;
        transition: background-color 0.3s ease, color 0.3s ease;
        border: 1px solid #0076FF;
        width: fit-content;

        &:hover {
            background: #fff;
            color: #0076FF;
        }

        &:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
    }
}

p.infos-supp.form {
    font-size: 13px;
}

/* Acceptance : checkbox custom */
.wpcf7-acceptance label {
    display: flex;
}

.wpcf7-acceptance input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 1px solid #E0E7F0;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    position: relative;
    vertical-align: middle;
    margin-right: 10px;
}

.wpcf7-acceptance input[type="checkbox"]:checked {
    background: #0076FF;
    border-color: #0076FF;
}

.wpcf7-acceptance input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}

@media screen and (max-width: 900px) {
    .flex-form {
        flex-direction: column;

        label:has(.w-100),
        label:has(.w-40),
        label:has(.w-25) {
            width: 100%;
        }
    }
}




