.hero {
    --mx: 0;
    --my: 0;

    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1.25rem 4rem;
    background: var(--bg);
    overflow: hidden;
}

/* ---------- Fond : parallaxe + Ken Burns ---------- */

.hero__bg {
    position: absolute;
    inset: -4%;
    transform: translate3d(calc(var(--mx) * -14px), calc(var(--my) * -14px), 0);
    transition: transform 0.35s ease-out;
    will-change: transform;
}

.hero__bg-img {
    position: absolute;
    inset: 0;
    background-image: url('/hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: kenburns 26s ease-in-out infinite alternate;
    will-change: transform;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 14, 28, 0.22);
}

/* ---------- Pins flottants ---------- */

.hero__float {
    position: absolute;
    z-index: 1;
    color: var(--brand);
    opacity: 0;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5));
    pointer-events: none;
    animation:
        floatIn 1s var(--ease-out) both,
        floatY 6s ease-in-out infinite;
}

.hero__float.f1 { top: 14%;    left: 8%;   font-size: 1.6rem; animation-delay: 1.2s, 1.2s; }
.hero__float.f2 { top: 22%;    right: 9%;  font-size: 2.1rem; animation-delay: 1.5s, 2.5s; color: #ffffff; }
.hero__float.f3 { bottom: 20%; left: 12%;  font-size: 2.3rem; animation-delay: 1.8s, 0.5s; color: #ffffff; }
.hero__float.f4 { bottom: 16%; right: 11%; font-size: 1.5rem; animation-delay: 2.1s, 3s; }

/* ---------- Contenu ---------- */

.hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 820px;
    transform: translate3d(calc(var(--mx) * 7px), calc(var(--my) * 7px), 0);
    transition: transform 0.35s ease-out;
}

.hero__content::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: -12% -18%;
    background: radial-gradient(
        ellipse at center,
        rgba(8, 14, 28, 0.72) 0%,
        rgba(8, 14, 28, 0.45) 45%,
        rgba(8, 14, 28, 0) 72%
    );
    pointer-events: none;
    animation: glowIn 1.2s ease both;
}

/* ---------- Pin + ondes radar ---------- */

.hero__pin {
    position: relative;
    display: inline-block;
    font-size: 2.6rem;
    color: var(--brand);
    margin-bottom: 0.6rem;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
    animation:
        pinDrop 1s var(--ease-back) 0.1s both,
        pinFloat 3s ease-in-out 1.2s infinite;
}

.hero__pin::before,
.hero__pin::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 14px;
    height: 14px;
    margin-left: -7px;
    border-radius: 50%;
    border: 2px solid var(--brand);
    opacity: 0;
    animation: radar 2.4s ease-out 1.1s infinite;
}

.hero__pin::after {
    animation-delay: 2.3s;
}

/* ---------- Titre ---------- */

.hero__title {
    display: flex;
    justify-content: center;
    gap: 0.04em;
    font-size: clamp(3.5rem, 14vw, 7.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.6),
        0 8px 30px rgba(0, 0, 0, 0.7);
}

.hero__tagline {
    display: inline-block;
    margin-top: 1.1rem;
    padding: 0.55rem 1.3rem;
    border-radius: 999px;
    font-size: clamp(1rem, 2.8vw, 1.35rem);
    font-weight: 600;
    color: #ffffff;
    background: rgba(8, 14, 28, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: reveal 1s var(--ease-out) 1s both;
}

/* ---------- Cartes ---------- */

.hero__features {
    list-style: none;
    margin: 2rem auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 720px;
}

.hero__features li {
    background: rgba(8, 14, 28, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1rem 0.9rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: riseIn 0.8s var(--ease-out) both;
    animation-delay: calc(1.25s + var(--i) * 0.14s);
    transition: transform 0.35s var(--ease-out), border-color 0.35s ease, background 0.35s ease;
}

.hero__features li:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 107, 94, 0.8);
    background: rgba(8, 14, 28, 0.75);
}

.hero__features i {
    display: block;
    font-size: 1.4rem;
    color: #ff6b5e;
    margin-bottom: 0.45rem;
    transition: transform 0.45s var(--ease-back);
}

.hero__features li:hover i {
    transform: scale(1.25) rotate(-8deg);
}

.hero__features strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.hero__features span {
    display: block;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #e2e8f0;
}

/* ---------- Boutons ---------- */

.hero__actions {
    margin-top: 2.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    justify-content: center;
    animation: riseIn 0.9s var(--ease-out) 1.8s both;
}

/* ---------- Pied ---------- */

.hero__footer {
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
    z-index: 2;
    font-size: 0.8rem;
    color: #e2e8f0;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
    animation: glowIn 1s ease 2.4s both;
}

/* ---------- Keyframes ---------- */

@keyframes kenburns {
    from { transform: scale(1) translate(0, 0); }
    to   { transform: scale(1.09) translate(-1.2%, -1%); }
}

@keyframes pinDrop {
    0%   { opacity: 0; transform: translateY(-90px) scale(0.5); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pinFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

@keyframes radar {
    0%   { opacity: 0.9; transform: scale(1) scaleY(0.45); }
    100% { opacity: 0;   transform: scale(7) scaleY(0.45); }
}

@keyframes reveal {
    from { opacity: 0; clip-path: inset(0 100% 0 0 round 999px); transform: translateY(10px); }
    to   { opacity: 1; clip-path: inset(0 0 0 0 round 999px); transform: translateY(0); }
}

@keyframes floatIn {
    from { opacity: 0; transform: translateY(30px) scale(0.6); }
    to   { opacity: 0.55; transform: translateY(0) scale(1); }
}

@keyframes floatY {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 -18px; }
}

/* ---------- Mobile ---------- */

@media (max-width: 640px) {
    .hero__content::before {
        inset: -6% -8%;
    }

    .hero__features {
        grid-template-columns: 1fr;
    }

    .hero__float {
        display: none;
    }

    .hero__actions .btn {
        width: 100%;
        max-width: 320px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero__float {
        opacity: 0.5;
    }
}