.hdp {
    transition: all 1s;
    width: 100%;
    margin: auto;

    &.scrolled {
        transition: all 1s;
        width: 970px;
        margin: 10px auto;
        border-radius: 20px;

        @media (min-width: 1200px) {
            width: 1180px;
        }

        @media (min-width: 1400px) {
            width: 1380px;
        }

        @media (min-width: 1600px) {
            width: 1580px;
        }
    }

    &.home {
        color: #fff;
        padding: 150px 0;
        position: relative;
        align-items: center;
        display: flex;
        background: var(--dark-blue);
        height: 80vh;

        @media (max-width: 991px) {
            height: fit-content;
        }

        &.scrolled {
            height: 70vh;

            #canva_home {
                border-radius: 20px;
            }
        }

        .hdp__background#wordpress_logo {
            .wordpress__logo_anim {
                position: absolute;
                left: 50%;
                transform: translate(-50%, -50%);
                top: 50%;
                width: 150%;
                opacity: 0.5;

                @media (max-width: 991px) {
                    width: 300px !important;
                    height: 300px !important;
                }
            }
        }

        canvas {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
            transition: all 1s;
        }
    }

    &.hdp--head {
        position: relative;

        .container {
            height: 100%;
            display: flex;

            .hdp__img {
                height: 100%;
                left: 0;
                -o-object-fit: cover;
                object-fit: cover;
                position: absolute;
                top: 0;
                width: 100%;
                z-index: 1;
            }

            .hdp__content {
                display: flex;
                flex-direction: column;
                justify-content: center;
                text-align: center;
                position: relative;
                z-index: 2;
                height: fit-content;
                margin: auto;
                gap: 10px;

                .section__btn {
                    margin: auto;
                }

                @media (max-width: 767px) {
                    padding-top: 80px;
                }

                .cta {
                    margin: auto;
                }

                .hdp__title {
                    display: flex;
                    flex-direction: column;
                    gap: 16px;
                }

                .hdp__intro {
                    max-width: 960px;
                    margin: 0 auto;
                    color: var(--dark-grey);

                    p {
                        margin: 0;
                    }
                }

                .avis_google {
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    gap: 8px;
                    flex-direction: column;

                    @media (min-width: 992px) {
                        flex-direction: row;
                        gap: 0;

                        .content_goo {
                            margin: 0 !important;
                        }
                    }

                    .stars_google {
                        display: flex;
                        justify-content: center;
                        align-items: center;

                        @media (max-width: 991px) {
                            margin-bottom: 20px;
                        }

                        .star_google {
                            width: 20px;
                            height: 20px;
                        }

                        video {
                            background: transparent !important;

                            @media (max-width: 991px) {
                                display: none;
                            }
                        }
                    }

                    .responsive_stars {
                        margin-right: 20px;

                        @media (min-width: 992px) {
                            display: none;
                        }

                        img {
                            width: 25px;
                            filter: brightness(0) saturate(100%) invert(85%) sepia(5%) saturate(4701%) hue-rotate(79deg) brightness(95%) contrast(92%);
                        }
                    }

                    .content_goo {
                        margin: -15px 0 15px 0;
                        display: flex;
                        gap: 8px;
                        align-items: center;
                        padding-left: 15px;
                    }

                    .score {
                        font-family: var(--title-font);
                        font-size: 24px;
                        line-height: 24px;
                        font-weight: var(--extrabold);
                        font-style: italic;
                        /* color: var(--light-blue); */
                        color: #42eb84;
                    }

                    p {
                        margin: 0;
                        font-size: 16px;
                        line-height: 24px;
                    }
                }

                .hdp__elements_bas {
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    gap: 16px;
                    margin-bottom: 32px;
                    flex-wrap: wrap;
                }

                #calcom-embed-link {
                    margin: auto;
                }
            }
        }
    }

    &.hdp--section {
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        min-height: 55vh;
        display: flex;
        align-items: center;
        padding: 100px 0 20px 0;

        @media (min-width: 992px) {
            padding: 150px 0 20px 0;
        }

        &:not(.single) {
            background-image: url('../../img/bg_hdp.jpg');

            .container {
                .hdp__intro {
                    max-width: 960px;
                    margin: 0 auto;

                    .cta {
                        &:has(.bouton+.bouton, .bouton+.bouton--alt, .bouton--alt+.bouton, .bouton--alt+.bouton--alt) {
                            display: flex;
                            justify-content: center;
                            gap: 16px;
                        }
                    }
                }

                .hdp__elements_bas {
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    gap: 16px;
                    margin-bottom: 32px;
                }
            }
        }

        &.single {
            background-image: url('../../img/bg_single.webp');
            position: relative;

            &:after {
                content: '';
                position: absolute;
                bottom: -50%;
                left: 50%;
                transform: translateX(-50%);
                width: 1200px;
                height: 1200px;
                border-radius: 100%;
                z-index: 0;
                overflow: visible;
                pointer-events: none;
            }

            .container {
                h1 {
                    color: var(--light-blue);
                    margin: 20px auto 0 auto !important;
                }

                h2 {
                    color: var(--white);
                    font-size: 24px;
                    line-height: 28px;
                    font-weight: var(--regular);
                    font-style: italic;
                }

                .hdp__intro {
                    max-width: 720px;
                    margin: auto;
                }
            }
        }

        .container {
            color: var(--dark);
            position: relative;
            z-index: 2;

            .hdp__content {
                text-align: center;

                h1 {
                    max-width: 800px;
                    margin: 10px auto;
                    color: var(--dark-blue);
                }

                .hdp__elements_surtitre {
                    display: flex;
                    justify-content: center;

                    .cta.surtitre {
                        &:has(img) {
                            width: 41px !important;
                            height: 41px !important;
                            padding: 0px 2px !important;

                            &:not(:first-child) {
                                margin-left: -10px;
                            }
                        }
                    }
                }
            }
        }
    }
}

@keyframes highlight {
    to {
        background-position: calc(0% - var(--word-progress) * 2) 80%;
    }
}

/* @keyframes gradientAnim {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}

.hdp.home {
     background:
        radial-gradient(ellipse 80% 70% at 30% 20%,
            rgba(138, 43, 226, 0.6) 0%,
            rgba(75, 0, 130, 0.4) 30%,
            rgba(66, 25, 112, 0.3) 60%,
            rgba(8, 8, 40, 0.8) 100%
        ),
        radial-gradient(circle at 70% 80%,
            rgba(0, 191, 255, 0.2) 0%,
            transparent 50%),
        linear-gradient(135deg,
            #331e79 0%,
            #302b63 50%,
            #543cab 100%); */
/* background: radial-gradient(ellipse 80% 70% at 30% 20%, #48299b, #00143c, #4766ff, #ff3c3c);
    background-blend-mode: overlay, normal, normal;
    background-size: 400% 400%;
    animation: gradientAnim 15s ease infinite; 
} */

/* @keyframes bubble1 {

    0%,
    100% {
        transform: translate(80%, 0);
    }

    16% {
        transform: translate(40%, -25%);
    }

    33% {
        transform: translate(-15%, 30%);
    }

    50% {
        transform: translate(60%, 45%);
    }

    66% {
        transform: translate(25%, -10%);
    }

    83% {
        transform: translate(-20%, 20%);
    }
}

@keyframes bubble2 {

    0%,
    100% {
        transform: translate(-35%, 60%);
    }

    20% {
        transform: translate(-30%, 35%);
    }

    40% {
        transform: translate(50%, -20%);
    }

    60% {
        transform: translate(-10%, -30%);
    }

    80% {
        transform: translate(35%, 40%);
    }
}

@keyframes bubble3 {

    0%,
    100% {
        transform: translate(20%, -20%);
    }

    25% {
        transform: translate(45%, 30%);
    }

    50% {
        transform: translate(-25%, -25%);
    }

    75% {
        transform: translate(20%, 50%);
    }
} */

/* 
.hdp.home {
    position: relative;
    overflow: hidden;
    background: #00143c;
}

.hdp.home::before,
.hdp.home::after {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    filter: blur(200px);
    opacity: 0.6;

    @media (max-width: 991px) {
        width: 500px;
        height: 500px;
    }
}

.hdp.home::before {
    background: #683ecd;
    top: 20%;
    left: -10%;
    animation: bubble1 60s ease-in-out infinite;
}

.hdp.home::after {
    background: #004baf;
    top: -10%;
    right: 15%;
    animation: bubble2 60s ease-in-out infinite;
}

.hdp.home .bubble3 {
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: var(--gradient-purple);
    top: 20%;
    left: 20%;
    filter: blur(250px);
    opacity: 0.6;
    animation: bubble3 60s ease-in-out infinite;
    pointer-events: none;

    @media (max-width: 991px) {
        width: 500px;
        height: 500px;
    }
} */

.single-reference {
    h1 {
        color: var(--white) !important;
    }
}

.container.reference {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;

    &:has(.infos_ref) {
        margin-top: -80px;
    }

    .infos_ref {
        .infos_reference__screen {
            position: relative;

            @media (min-width: 992px) {
                width: 800px;
            }

            &:after {
                content: '';
                position: absolute;
                top: -10px;
                left: -8px;
                background: linear-gradient(180deg, rgba(154, 92, 255, 0.24) 0%, rgba(255, 255, 255, 0) 100%);
                width: calc(100% + 16px);
                height: 50%;
                z-index: -1;
                border-radius: var(--border-radius);
            }

            img {
                position: relative;
                mask: linear-gradient(to top, transparent 0%, black 50%);
                border-radius: var(--border-radius);
            }
        }

        .infos_reference__petit-screen {
            outline: 4px solid var(--white);
            overflow: hidden;
            border-radius: var(--border-radius);
            width: 250px;
            height: 150px;
            margin: auto;

            @media (min-width: 992px) {
                position: absolute;
                bottom: 100px;
                left: 0;
                height: 240px;
                width: 320px;
                margin: unset;
            }

            img {
                width: 100%;
            }
        }

        .infos_reference__chiffres-cles {
            gap: 15px;
            display: grid;
            grid-template-columns: 1fr 1fr;
            margin-top: 25px;

            @media (min-width: 992px) {
                display: flex;
                flex-direction: column;
                position: absolute;
                top: 200px;
                right: 50px;
                max-width: 240px;
                margin-top: 0;
                gap: 25px;
            }

            .chiffre_cle {
                background: var(--white);
                padding: 15px;
                border-radius: var(--border-radius);
                display: flex;
                flex-direction: column;
                box-shadow: 0 4px 24px rgba(0, 0, 0, 0.16);

                @media (min-width: 992px) {
                    padding: 30px;
                }

                .chiffre_cle__number {
                    font-family: var(--title-font);
                    font-size: 40px;
                    padding-bottom: 10px;
                    margin-bottom: 20px;
                    border-bottom: 1px solid var(--dark-grey);
                }

                .chiffre_cle__content {
                    line-height: 20px;
                }
            }
        }
    }
}

.wave-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 4;
    pointer-events: none;
    opacity: 0.045;
}

.core-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20%;
    height: 0;
    padding-bottom: 20%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: url('../../img/wordpress.svg') no-repeat center #FFF;
    animation: heartbeat-core var(--beat-duration) ease-in-out infinite;
    z-index: 9999;
    background-size: cover;
    opacity: 0.3;
}

@keyframes heartbeat-core {
    0% {
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0.5;
    }

    7% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0.5;
    }

    14% {
        transform: translate(-50%, -50%) scale(0.98);
        opacity: 0.5;
    }

    21% {
        transform: translate(-50%, -50%) scale(1.02);
        opacity: 0.5;
    }

    30% {
        transform: translate(-50%, -50%) scale(0.98);
        opacity: 0.5;
    }

    100% {
        transform: translate(-50%, -50%) scale(0.96);
        opacity: 0.5;
    }
}

.wave-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 160%;
    height: 0;
    padding-bottom: 160%;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.05);
    opacity: 0;
    animation: heartbeat-wave var(--beat-duration) ease-out infinite;
}

/* LUB – sharp edges */
.wave-ring:nth-child(1) {
    background: radial-gradient(circle, var(--wp-violet) 0%, var(--wp-blue) 45%, transparent 2%);
    animation-delay: 0s;
}

.wave-ring:nth-child(2) {
    background: radial-gradient(circle, var(--wp-blue) 0%, var(--wp-violet) 45%, transparent 2%);
    animation-delay: 0.06s;
}

/* DUB – sharp edges */
.wave-ring:nth-child(3) {
    background: radial-gradient(circle, var(--wp-periwinkle) 0%, var(--wp-purple) 45%, transparent 2%);
    animation-name: heartbeat-wave-dub;
    animation-delay: 0s;
}

.wave-ring:nth-child(4) {
    background: radial-gradient(circle, var(--wp-purple) 0%, var(--wp-periwinkle) 45%, transparent 2%);
    animation-name: heartbeat-wave-dub;
    animation-delay: 0.06s;
}

/* Trailing */
.wave-ring:nth-child(5) {
    background: radial-gradient(circle, rgba(168, 85, 247, 0.35) 0%, rgba(129, 140, 248, 0.18) 45%, transparent 2%);
    animation-delay: 0.12s;
}

.wave-ring:nth-child(6) {
    background: radial-gradient(circle, rgba(147, 163, 255, 0.3) 0%, rgba(155, 89, 182, 0.15) 45%, transparent 2%);
    animation-name: heartbeat-wave-dub;
    animation-delay: 0.12s;
}

/* LUB */
@keyframes heartbeat-wave {
    0% {
        transform: translate(-50%, -50%) scale(0.05);
        opacity: 0;
    }

    4% {
        opacity: 0.9;
    }

    10% {
        transform: translate(-50%, -50%) scale(0.4);
        opacity: 0.8;
    }

    25% {
        transform: translate(-50%, -50%) scale(0.6);
        opacity: 0.55;
    }

    45% {
        transform: translate(-50%, -50%) scale(0.78);
        opacity: 0.3;
    }

    65% {
        transform: translate(-50%, -50%) scale(0.88);
        opacity: 0.1;
    }

    82% {
        transform: translate(-50%, -50%) scale(0.92);
        opacity: 0;
    }

    100% {
        transform: translate(-50%, -50%) scale(0.92);
        opacity: 0;
    }
}

/* DUB */
@keyframes heartbeat-wave-dub {
    0% {
        transform: translate(-50%, -50%) scale(0.05);
        opacity: 0;
    }

    14% {
        transform: translate(-50%, -50%) scale(0.05);
        opacity: 0;
    }

    18% {
        opacity: 0.75;
    }

    24% {
        transform: translate(-50%, -50%) scale(0.35);
        opacity: 0.6;
    }

    38% {
        transform: translate(-50%, -50%) scale(0.55);
        opacity: 0.4;
    }

    55% {
        transform: translate(-50%, -50%) scale(0.72);
        opacity: 0.2;
    }

    72% {
        transform: translate(-50%, -50%) scale(0.82);
        opacity: 0.06;
    }

    88% {
        transform: translate(-50%, -50%) scale(0.85);
        opacity: 0;
    }

    100% {
        transform: translate(-50%, -50%) scale(0.85);
        opacity: 0;
    }
}