@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.dh-hero {
    background: linear-gradient(140deg, rgba(112, 46, 123, 1) 0%, rgba(89, 56, 191, 1) 50%) !important;
    width: 100%;
    min-height: 640px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 20px 160px;
    box-sizing: border-box;
    position: relative;
    overflow: visible;
}

/* Vague en bas */
.dh-hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: -5%;
    width: 110%;
    height: 80px;
    background: #ffffff;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.dh-inner {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

/* Animations au chargement */
@keyframes dh-fade-up {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes dh-fade-left {
    from { opacity: 0; transform: translateX(calc(-50% - 24px)); }
    to   { opacity: 1; transform: translateX(-50%); }
}

/* Titre */
.dh-title {
    font-size: clamp(22px, 3.2vw, 26px);
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
    margin: 0 0 36px;
    letter-spacing: -0.3px;
    animation: dh-fade-up 0.7s ease both;
}

/* Mot rotatif — largeur fixe pour éviter le layout shift */
.change {
    display: inline;
    text-align: center;
}

.dh-accent {
    color: #f7e694 !important;
}

.dh-titre-main {
    display: block;
    font-size: clamp(30px, 4.2vw, 36px);
    font-weight: 700;
}

/* Boutons */
.dh-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

/* Base commune aux deux boutons */
a.dh-btn-primary,
a.dh-btn-ghost,
button.dh-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px !important;
    font-weight: 500 !important;
    font-family: 'Poppins', sans-serif !important;
    padding: 0;
    height: 50px;
    border-radius: 100px;
    text-decoration: none;
    white-space: nowrap;
    min-width: 193px;
    box-sizing: border-box;
    border: none;
    color: #ffffff !important;
    transition: transform .15s, box-shadow .3s;
    cursor: pointer;
}

/* BOUTON PRINCIPAL — Gradient Rotate */
a.dh-btn-primary {
    position: relative;
    background: linear-gradient(135deg, #4f13c8, #f97316, #7c3aed, #ea580c, #4f13c8);
    background-size: 300% 300%;
    animation: dh-grad-shift 3s ease infinite;
    text-shadow: 0 1px 4px rgba(0,0,0,.3);
    overflow: hidden;
}

/* Reflet interne */
a.dh-btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 100px;
    background: linear-gradient(to bottom, rgba(255,255,255,.13) 0%, transparent 60%);
    pointer-events: none;
}

@keyframes dh-grad-shift {
    0%   { background-position: 0%   60%; }
    50%  { background-position: 100% 40%; }
    100% { background-position: 0%   60%; }
}

a.dh-btn-primary:hover {
    animation-duration: 1.2s;
    box-shadow: none;
    transform: translateY(-2px);
    color: #ffffff !important;
    text-decoration: none;
}

a.dh-btn-primary:active {
    transform: translateY(0) scale(.97);
}

/* BOUTON SECONDAIRE — Border Scan */
a.dh-btn-ghost,
button.dh-btn-ghost {
    position: relative;
    background: transparent !important;
    isolation: isolate;
    color: white !important;
}

a.dh-btn-ghost::before,
button.dh-btn-ghost::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 100px;
    padding: 2px;
    background: conic-gradient(
        from var(--angle),
        #f97316 0%,
        #ffffff 25%,
        #f97316 50%,
        #ffffff 75%,
        #f97316 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: dh-spin-border 2.8s linear infinite;
}

a.dh-btn-ghost::after,
button.dh-btn-ghost::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 100px;
    background: transparent;
    z-index: -1;
}

@keyframes dh-spin-border {
    to { --angle: 360deg; }
}

a.dh-btn-ghost:hover,
button.dh-btn-ghost:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
    text-decoration: none;
}

a.dh-btn-ghost:hover::before,
button.dh-btn-ghost:hover::before {
    animation-duration: 1.4s;
}

a.dh-btn-ghost:active,
button.dh-btn-ghost:active {
    transform: translateY(0) scale(.97);
}

/* Réassurance */
.dh-trust {
    display: none !important;
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.dh-trust-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 15px;
    color: rgba(255,255,255,0.75);
    font-weight: 400;
}

.dh-trust-dot {
    display: inline-block;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    position: relative;
}

.dh-trust-dot::before {
    content: '';
    display: block;
    width: 7px;
    height: 11px;
    border-right: 2.5px solid #89f542;
    border-bottom: 2.5px solid #89f542;
    transform: rotate(45deg) translate(-1px, -2px);
    position: absolute;
    top: 4px;
    left: 4px;
}

/* Mascotte — centrée sur le séparateur arrondi */
.dh-mascot {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: none;
    animation: dh-fade-left 0.8s 0.3s ease both;
}

.dh-mascot img {
    width: 320px;
    height: auto;
    display: block;
}

/* Mobile */
@media (max-width: 600px) {
    .dh-hero {
        min-height: auto !important;
        padding: 110px 24px 120px !important;
    }
    .dh-title {
        font-size: 18px !important;
    }
    .dh-titre-main {
        font-size: 21px !important;
    }
    .dh-hero::after {
        height: 30px;
    }
    .dh-btns {
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
    }
    a.dh-btn-primary,
    a.dh-btn-ghost {
        width: 100% !important;
        max-width: 230px !important;
        min-width: unset !important;
        height: 50px !important;
        font-size: 14px !important;
    }
    .dh-trust {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
        display: inline-flex !important;
    }
    .dh-trust-item {
        font-size: 14px !important;
    }
    .dh-mascot img {
        width: 200px !important;
    }
    .dh-mascot {
        bottom: 45px !important;
    }
}

/* Mobile — ghost button */
@media (max-width: 600px) {
    button.dh-btn-ghost {
        width: 100% !important;
        max-width: 230px !important;
        min-width: unset !important;
        height: 50px !important;
        font-size: 14px !important;
    }
}

