body:not(.single) {
    .hdp {
        .hdp__breadcrumb {
            .rank-math-breadcrumb {                
                &>img {
                    filter: brightness(0) saturate(100%) invert(14%) sepia(85%) saturate(4342%) hue-rotate(207deg) brightness(92%) contrast(101%);
                }
                
                * a {
                    color: var(--blue) !important;
                }
            }
        }
    }
}


.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;
                        height: 60px !important;
                        width: 235px;

                        .star_google {
                            width: 20px;
                            height: 20px;
                        }

                        video {
                            background: transparent !important;
                        }
                    }

                    .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;

                    .cta_element_bas.no-link {
                        background-color: var(--white) !important;
                        color: #7042cc !important;
                        border: 1px solid var(--white) !important;
                        cursor: default;
                    }
                }

                #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),
        &.single_post,
        &.single-api {
            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;
                    flex-wrap: wrap;

                    .cta_element_bas.no-link {
                        background-color: var(--white) !important;
                        color: #7042cc !important;
                        border: 1px solid var(--white) !important;
                        cursor: default;
                    }
                }
            }
        }

        &.single_post {
            .hdp__content {
                &:has(.post_thumbnail) {
                    display: flex;
                    align-items: center;
                    flex-direction: column;
                    text-align: center;
                    justify-content: center;
                    gap: 30px;

                    img {
                        max-height: 350px;
                        object-fit: cover;
                    }

                    @media (min-width: 992px) {
                        text-align: left;
                        flex-direction: row;

                        img {
                            max-height: none;
                        }
                    }

                    .post_thumbnail {
                        max-width: 500px;
                        margin: auto;

                        img {
                            border-radius: var(--border-radius);
                        }
                    }
                }
            }
        }

        &.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: 28px;
                    line-height: 30px;
                    font-family: var(--main-font);
                    font-style: italic;
                    font-weight: 600;
                    max-width: 960px;
                    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;
                            }
                        }
                    }
                }

                .hdp__breadcrumb {
                    margin: 20px 0 15px 0;
                    font-style: italic;
                    color: var(--blue);
                    display: flex;
                    gap: 4px;
                    align-items: start;
                    justify-content: center;

                    &>img {
                        height: 13px;
                        width: 13px;
                        object-fit: contain;
                        margin-top: 3px;
                        opacity: 0.7;
                        transition: var(--transition);
                    }

                    &:has(.rank-math-breadcrumb p>a:hover) {
                        &>img {
                            opacity: 1;
                        }
                    }

                    .rank-math-breadcrumb {
                        p {
                            * {
                                opacity: 0.7;
                                transition: var(--transition);
                                
                                &:hover {
                                    opacity: 1;
                                }

                                &.last {
                                    font-weight: var(--bold);
                                }
                            }
                        }
                    }
                }

                .secteurs_projet {
                    display: flex;
                    flex-wrap: wrap;
                    gap: 10px;
                    width: 100%;
                    justify-content: center;
                    align-items: center;
                    margin-top: 25px;

                    .secteur_item {
                        display: flex;
                        align-items: center;
                        border: 1px solid var(--white);
                        border-radius: 50px;
                        padding: 9px 20px;
                        gap: 10px;
                        color: var(--white);
                        transition: var(--transition);

                        &:hover {
                            background: rgba(255, 255, 255, 0.2);
                        }

                        span {
                            height: 13px;
                        }

                        img {
                            height: 25px;
                            width: 25px;
                            filter: brightness(0) saturate(100%) invert(100%) sepia(100%) saturate(20%) hue-rotate(289deg) brightness(104%) contrast(106%);
                        }
                    }
                }
            }
        }
    }

    .hdp__content {
        .cta {
            &>a {
                margin: auto;
            }
        }
    }
}

@keyframes highlight {
    to {
        background-position: calc(0% - var(--word-progress) * 2) 80%;
    }
}

.single-reference,
.single-api {
    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 {
        &:has(.infos_reference__chiffres-cles.expand) {
            @media (min-width: 992px) {
                min-height: 900px;
            }
        }

        .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;
            display: flex;
            background-color: var(--dark-blue);

            @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;
    }
}