/*
 Theme Name:   Hello Elementor Child
 Theme URI:    https://elementor.com/
 Description:  Thème enfant de Hello Elementor
 Author:       Enola Numidev
 Author URI:   https://com2pme.fr
 Template:     hello-elementor
 Version:      1.0.0
*/

/* Import du style du thème parent */
@import url("../hello-elementor/style.css");

/*Button*/
.elementor-button,
.wpcf7-submit,
#form-button {
    position: relative;
    padding: 12px 25px;
    transition: all 0.4s ease;
    border: none !important;
    background: none !important;
    cursor: pointer;
    z-index: 0;
}

#form-button {
    padding: 0 20px;
}

.elementor-button:before,
.wpcf7-submit:before,
#form-button:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    border-radius: 50px;
    background: #F9B016;
    width: 45px;
    height: 45px;
    transition: all 0.4s ease;
    z-index: -1;
}

.elementor-button.elementor-button-link:before {
    top: -10%;
}

.elementor-button span,
.wpcf7-submit span,
#form-button span {
    position: relative;
    font-size: 16px;
    font-family: 'Lexend';
    font-weight: 600;
    letter-spacing: 0.04em;
}


.elementor-button:hover:before,
.wpcf7-submit:hover:before,
#form-button:hover:before {
    width: 100%;
    background: #F9B016;
}

.white-button .elementor-button:before {
    background: #F6F5FB !important;
}

.white-button .elementor-button:hover:before {
    width: 100%;
    background: #F6F5FB !important;
}


.google-button .elementor-button:before {
    background: transparent !important;
}

/* --- bordure Google dynamique sur le :before --- */
.google-button .elementor-button:after {
    content: "";
    position: absolute;
    top: -3px;
    left: 0;
    width: 45px;
    height: 45px;
    border-radius: 50px;
    background: conic-gradient(#ea4335,
            /* rouge */
            #4285f4,
            /* bleu */
            #34a853,
            /* vert */
            #fbbc05,
            /* jaune */
            #ea4335
            /* retour rouge */
        );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 3px;
    /* épaisseur du contour */
    box-sizing: border-box;
    z-index: -2;
    transition: all 0.4s ease;
}

/* --- Animation sur hover --- */
.google-button .elementor-button:hover:before,
.google-button .elementor-button:hover:after {
    width: 100%;
}

.google-button .elementor-button:hover:after {
    filter: brightness(1.2);
}


.nav-contact-mobile {
    display: none !important;
}

/* Navbar */
li.menu-item a {
    font-weight: 500;
    opacity: 0.85;
    transition: opacity 0.3s ease, color 0.3s ease;
}

li.menu-item:hover a {
    opacity: 1;
    color: #000000 !important;
}


li.menu-item a.elementor-item-active {
    position: relative;
    opacity: 1;
    color: #000000 !important;
}

li.menu-item a.elementor-item-active::before {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    content: "";
    background-color: #F9B016 !important;
    display: block;
    position: absolute;
    z-index: -1;
    left: -.4em;
}


/* General */
body::selection {
    background: #F9B016;
    color: #ffffff;
}

body::-moz-selection {
    background: #F9B016;
    color: #ffffff;
}


.overflow-hidden-section {
    overflow: hidden !important;
}

.highlight-text {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.highlight-text::before {
    content: "";
    position: absolute;
    top: 0;
    left: -2%;
    width: 100%;
    height: 100%;
    background-color: #F9B016;
    z-index: -1;
    transform: skewX(-6deg);
    border-radius: 4px;
}

.highlight-text.highlight-text-without-coma::before {
    width: 105%;
}

.card-defis {
    position: relative;
    max-height: 170px;
    transition: max-height 2s cubic-bezier(0.25, 0.8, 0.25, 1);
    justify-content: space-between;
    will-change: height;
}

.card-defis-details {
    max-height: 0;
    opacity: 0;
    transform: translateY(20px);
    overflow: hidden;
    padding: 0 1rem;
    transition:
        max-height 1s cubic-bezier(0.25, 0.8, 0.25, 1),
        opacity 0.6s ease-in-out 0.2s,
        transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) 0.1s,
        padding 0.4s ease-in-out;
    will-change: max-height, opacity, transform;
}

.card-defis:hover:not(#commecial-defi) {
    max-height: 300px;
}

.card-defis:hover .card-defis-details {
    max-height: 220px;
    opacity: 1;
    transform: translateY(0);
    padding: 1rem;
}

.detail-realisation {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.6s ease, max-height 0.8s ease;
}

.container-realisation {
    cursor: pointer;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: auto !important;
}

.container-realisation:hover .detail-realisation {
    opacity: 1;
    max-height: 500px;
}


/* Sections services*/


#linkedin[aria-selected="true"] {
    background-color: #2867B2;
    font-weight: 500;
}

.linkedin-button .elementor-button:before {
    background: #2867B2 !important;
}

.linkedin-button .elementor-button:hover:before {
    width: 100%;
    background: #2867B2 !important;
}

#facebook[aria-selected="true"] {
    background-color: #0266FF;
    font-weight: 500;
}

#instagram[aria-selected="true"] {
    background-color: #e93088;
    font-weight: 500;
}

/* Tarifs */
.card-wrapper {
    display: flex !important;
    align-items: stretch !important;

}

.card-wrap {
    margin: 0.5rem;
    transform-style: preserve-3d;
    transform: perspective(100rem);
    cursor: pointer;
    max-width: 40rem;
    flex: 1 !important;
    display: flex !important;
}

.card-container {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    --rX: 0;
    --rY: 0;
    --bX: 50%;
    --bY: 80%;
    width: 100%;
    height: auto;
    border: 1px solid var(--background-color);
    border-radius: 8px;
    padding: 2rem;
    position: relative;
    transform: rotateX(calc(var(--rX) * 1deg)) rotateY(calc(var(--rY) * 1deg));
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tarif-price strong {
    color: #f6f5fb;
    font-size: 2rem;
}


@media (max-width: 1200px) {
    .nav-contact-mobile {
        display: block !important;
    }
}