/*************************

Theme Name: CALYPSO AVOCATS
Description: Theme enfant de GeneratePress. Vous pouvez maintenant effectuer vos modifications en toute sécurité.
Author: Florian | Progressio Web
Author URI: https://progressio-web.fr
Template: generatepress
Version: 1.0

*************************/


html,
body {
    overflow-x: clip;
}

body::-webkit-scrollbar {
    width: 10px;
    background-color: #ffffff;
}

body::-webkit-scrollbar-thumb {
    background-color: var(--e-global-color-primary);
    border-radius: 0px;
}

.swiper-wrapper {
    transition-timing-function: linear !important;
}

.swiper-container {
    overflow: hidden;
}

.cover {
    background-size: cover !important;
}

.fixed {
    background-attachment: fixed;
}

.one-container.archive .post:not(:last-child):not(.is-loop-template-item),
.one-container.blog .post:not(:last-child):not(.is-loop-template-item) {
    padding-bottom: 0px;
}

a.elementor-button:hover span.elementor-button-icon svg path {
    fill: inherit;
}

div.wpforms-container-full input[type=checkbox]:before,
div.wpforms-container-full input[type=radio]:before {
    border-radius: 999px !important;
    width: 20px;
    height: 20px;
}

/*********************************************/
/************** CUSTOM CONTENT ***************/
/*********************************************/

.content_custom *,
.elementor-widget-text-editor * {
    margin-bottom: 30px !important;
}

.content_custom *:first-child,
.elementor-widget-text-editor *:first-child {
    margin-top: 0px !important;
}

.content_custom h2,
.elementor-widget-text-editor h2 {
    margin-top: 50px;
}

.content_custom *:last-child,
.elementor-widget-text-editor *:last-child {
    margin-bottom: 0px !important;
}

.content_custom li,
.elementor-widget-text-editor li {
    margin-bottom: 10px !important;
}

.content_custom ul,
.elementor-widget-text-editor ul {
    margin-left: 30px;
}

.strong {
    color: var(--e-global-color-accent);
}

.content_custom a {
    text-decoration: underline !important;
    font-weight: 600 !important;
}

/*********************************************/
/***************** GENERAL *******************/
/*********************************************/

.page-numbers.prev,
.page-numbers.next {
    background: var(--e-global-color-primary);
    color: white !important;
    padding: 15px;
    border-radius: 9999px;
    transition: all 0.3s ease-out;
}

.page-numbers.prev:hover,
.page-numbers.next:hover {
    background: var(--e-global-color-secondary);
    transition: all 0.3s ease-out;
}

.page-numbers.prev {
    margin-right: 20px !important;
}

.page-numbers.next {
    margin-left: 20px !important;
}

a.page-numbers {
    background: white !important;
    color: var(--e-global-color-primary) !important;
    width: 35px;
    height: 35px;
    border-radius: 999px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: solid 2px var(--e-global-color-primary) !important;
}

span.page-numbers.current {
    background: var(--e-global-color-secondary) !important;
    color: white !important;
    width: 35px;
    height: 35px;
    border-radius: 999px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: solid 2px var(--e-global-color-primary) !important;
}

.scroll-indicator {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    color: #ffffff;
}

.scroll-text {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    line-height: 1;
}

.scroll-arrow {
    display: block;
    overflow: visible;
}

.scroll-line,
.scroll-head {
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: square;
    stroke-linejoin: miter;
    fill: none;
}

/* Ligne verticale */
.scroll-line {
    stroke-dasharray: 86;
    stroke-dashoffset: 86;
    animation: draw-line-down 1.8s ease-in-out infinite;
}

/* Pointe de flèche */
.scroll-head {
    stroke-dasharray: 34;
    stroke-dashoffset: 34;
    animation: draw-arrow-head 1.8s ease-in-out infinite;
}

@keyframes draw-line-down {
    0% {
        stroke-dashoffset: 86;
        opacity: 0;
    }

    12% {
        opacity: 1;
    }

    55% {
        stroke-dashoffset: 0;
        opacity: 1;
    }

    80% {
        stroke-dashoffset: 0;
        opacity: 1;
    }

    100% {
        stroke-dashoffset: 0;
        opacity: 0;
    }
}

@keyframes draw-arrow-head {

    0%,
    48% {
        stroke-dashoffset: 34;
        opacity: 0;
    }

    55% {
        opacity: 1;
    }

    75% {
        stroke-dashoffset: 0;
        opacity: 1;
    }

    100% {
        stroke-dashoffset: 0;
        opacity: 0;
    }
}

#header_master.scrolled {
    background: #183253bd;
    backdrop-filter: blur(4px);
}

#header_master .e-con-inner {
    transition: all 0.3s ease-in-out;
}

#header_master.scrolled .e-con-inner {
    padding-top: 30px;
    transition: all 0.3s ease-in-out;
}

.btn-arrow-grow .elementor-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    overflow: visible;
    padding-right: 80px !important;
}

/* Ligne de la flèche */
.btn-arrow-grow .elementor-button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(100% - 62px);
    width: 30px;
    height: 1px;
    background-color: currentColor;
    transform: translateY(-50%);
    transition: width 0.35s ease;
}

/* Pointe de la flèche */
.btn-arrow-grow .elementor-button::after {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(100% - 40px);
    width: 9px;
    height: 9px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: translateY(-50%) rotate(45deg);
    transition: transform 0.35s ease;
}

/* Animation au survol */
.btn-arrow-grow .elementor-button:hover::before {
    width: 50px;
}

.btn-arrow-grow .elementor-button:hover::after {
    transform: translateY(-50%) translateX(20px) rotate(45deg);
}

#mobile_menu ul li ul a {
    font-size: 1.2em;
    background: #102a4b;
}

#faq_custom details {
    border-top: 2px solid black;
}

#faq_custom details:last-child {
    border-bottom: 2px solid black;
}

.expertises_item_grow {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.expertises_item_grow .elementor-widget-image,
.expertises_item_grow .elementor-widget-image picture,
.expertises_item_grow .elementor-widget-image img {
    display: block;
    width: 100%;
}

.expertises_item_grow .elementor-widget-image img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.expertises_item_grow:hover .elementor-widget-image img {
    transform: scale(1.05);
}

.expertises_overlay {
    position: absolute !important;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto !important;
    z-index: 2;

    width: 100%;
    height: auto !important;
    min-height: 0 !important;

    overflow: hidden;

    display: flex;
    flex-direction: column;
    gap: 0 !important;

    padding: 30px;
}

.expertises_overlay .elementor-heading-title {
    margin: 0;
}

.expertises_reveal {
    display: grid !important;
    grid-template-rows: 0fr;

    width: 100%;
    height: auto !important;
    min-height: 0 !important;

    padding: 0 !important;
    margin: 0 !important;

    overflow: hidden !important;
    opacity: 0;

    transition:
        grid-template-rows 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.3s ease,
        margin-top 0.45s ease;
}

.expertises_reveal_inner {
    min-height: 0 !important;
    height: auto !important;

    overflow: hidden !important;

    display: flex;
    flex-direction: column;
    gap: 30px !important;

    padding: 0 !important;
    margin: 0 !important;

    transform: translateY(16px);
    opacity: 0;

    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.35s ease;
}

.expertises_reveal_inner .elementor-widget {
    margin-bottom: 0 !important;
}

.expertises_item_grow:hover .expertises_reveal {
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: 30px !important;
}

.expertises_item_grow:hover .expertises_reveal_inner {
    transform: translateY(0);
    opacity: 1;
}

.equipe_list img {
    opacity: 1;
    transition: all 0.3s ease-in-out;
}

.equipe_list:hover img {
    opacity: 0.3;
    transition: all 0.3s ease-in-out;
}


/* =========================
   RESPONSIVE
========================= */
@media (max-width: 767px) {
    .expertises_overlay {
        padding: 20px;
    }

    .expertises_reveal_inner {
        gap: 20px !important;
    }

    .expertises_item_grow:hover .expertises_reveal {
        margin-top: 20px !important;
    }
}










/*********************************************/
/**************** RESPONSIVE *****************/
/*********************************************/

@media screen and (min-width:1201px) {
    .no_desk {
        display: none !important;
    }
}


/*********************************************/
/***************** TABLETTE ******************/
/*********************************************/

@media screen and (max-width:1024px) {
    .no_mob {
        display: none !important;
    }
}


/*********************************************/
/****************** MOBILE *******************/
/*********************************************/

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