﻿.hero-root {
    position: relative; /* ou rien du tout */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    padding: 7.5rem var(--layout-padding-mobile) 4rem var(--layout-padding-mobile);
    min-height: 100vh;
    height: auto;

    /* variables dynamiques */
    --hero-opacity: 1;
    --mint-opacity: 0.16;
    --bg-shift: 0px;
}

.hero-content {
    position: relative; /* important */
    width: 100%; /* force le remplissage de .hero-root au lieu du fit-content (align-items: stretch ne suffit pas ici) */
    max-width: var(--layout_container-maxwidth);
    margin: 0 auto; /* centré horizontalement */
    padding-top: 7rem;
    /* Fade-out du Hero-content */
    opacity: var(--hero-opacity);
    transition: opacity 0.1s linear;
}

@media (min-width: 1024px) {
    .hero-root {
        /* lg:px-10 */
        padding-left: var(--layout-padding-desktop);
        padding-right: var(--layout-padding-desktop);
    }
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -10;
    overflow: hidden;
    /* Parallax background */
    transform: translateY(var(--bg-shift));
    transition: transform 0.1s linear;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.25; 
}

.hero-bg-gradient {
    position: absolute;
    inset: 0;
    /*
    background: linear-gradient(to bottom, rgba(5, 5, 7, 0.85), rgba(5, 5, 7, 0.92), #050507);
    */
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.8));
}

.hero-glow {
    position: absolute;
    top: 33%;
    left: -160px;
    height: 600px;
    width: 600px;
    border-radius: 999px;
    z-index: -10;
    background: radial-gradient(circle, rgba(0, 229, 153, 0.16), transparent 60%);
}

.hero-kicker {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.75rem;
    font-weight: 250;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: #00E599;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hero-line {
    display: block;
    white-space: nowrap;
}

.hero-kicker-line {
    display: inline-block;
    height: 1px;
    width: 38px;
    background-color: #00E599;
}

.hero-title {
    font-family: "Outfit", sans-serif;
    font-weight: 900;
    line-height: 1.0;
    font-size: 2.75rem;
    letter-spacing: -0.03em;
    color: #ffffff;
    max-width: 48rem;
}

.hero-subtitle {
    margin-top: 2.5rem;
    max-width: 32.5rem;
    font-weight: 400;
    font-size: 1.0rem;
    font-family: "Plus Jakarta Sans", sans-serif;
    color: #A0A4AF;
    line-height: 1.625;
}

@media (min-width: 640px) {
    /* Tailwind sm:text-7xl = 4.5rem */
    .hero-title {
        font-size: 4.5rem;
    }

    .hero-kicker {
        font-size: 0.95rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
        max-width: 42rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 5.7rem;
    }

    .hero-kicker {
        font-size: 0.82rem;
    }

    .hero-subtitle {
        font-size: 1.10rem;
        max-width: 40rem;
    }
}

.hero-title-mint {
    color: #00E599;
    text-shadow: 0 0 24px rgba(0, 229, 153, 0.45);
    /* Mint glow foncé */
    background: radial-gradient( circle, rgba(0,229,153,var(--mint-opacity)), transparent 60% );
}

.hero-subtitle-strong {
    color: #ffffff;
}

.hero-actions {
    margin-top: 3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #00E599;
    color: #050507;
    font-family: "Outfit", system-ui, sans-serif;
    font-weight: 600;
    padding: 1rem 1.75rem;
    border-radius: 0.25rem;
    text-decoration: none;
}

.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-family: "Outfit", system-ui, sans-serif;
    font-weight: 500;
    padding: 1rem 1.75rem;
    border-radius: 0.25rem;
    text-decoration: none;
}

.hero-btn-primary:hover {
    background-color: white;
}

.hero-btn-secondary:hover {
    color: #00E599; /* texte vert fluo */
    border-color: #00E599; /* contour vert fluo */
    box-shadow: 0 0 12px rgba(0, 229, 153, 0.45); /* glow premium */
}