/* Héros de l'accueil, pile à la hauteur de l'écran sous l'en-tête (dvh : la barre d'adresse mobile
   ne le fait pas sauter) : le mot-marque géant, la machine détourée devant, qui se fond dans le champ
   par le bas ; titre à gauche et prix à droite par-dessus le pied de la machine. Mobile : machine plus
   large que l'écran, coupée par le bas, texte dessous. */
.home-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: calc(100dvh - var(--header-height));
    overflow: hidden;
    padding-bottom: var(--space-8);
    background-color: var(--color-night);
}

.home-hero__stage {
    position: relative;
    flex: 1 1 auto;
    min-height: 20rem;
    overflow: hidden;
}

/* Halo champagne très léger derrière la machine. */
.home-hero__stage::before {
    content: '';
    position: absolute;
    inset: -20% 5% 10%;
    border-radius: 50%;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--color-champagne) 12%, transparent), transparent);
}

.home-hero__wordmark {
    position: absolute;
    top: 26%;
    left: 50%;
    width: min(94%, 76rem);
    height: auto;
    translate: -50% 0;
    color: var(--color-night-high);
}

.home-hero__machine {
    position: absolute;
    top: 6%;
    left: 50%;
    width: min(113%, 51rem, 90dvh);
    max-width: none;
    translate: -50% 0;
}

.home-hero__stage::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 55%;
    background: linear-gradient(transparent, var(--color-night) 70%);
}

.home-hero__content {
    position: relative;
    z-index: 1;
    display: grid;
    gap: var(--space-6);
    margin-top: -7rem;
}

.home-hero h1 {
    max-width: 30rem;
}

.home-hero__title {
    display: block;
    font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem);
}

.home-hero__offer {
    display: grid;
    gap: var(--space-4);
    justify-items: start;
}

.home-hero__price {
    color: var(--text-secondary);
    font-size: var(--text-md);
}

.home-hero__price strong {
    color: var(--text-primary);
    font-size: var(--text-xl);
    font-weight: var(--fw-medium);
}

@media (min-width: 56rem) {
    .home-hero {
        padding-bottom: var(--space-9);
    }

    .home-hero__machine {
        width: min(57vw, 51rem, 95dvh);
    }

    .home-hero__content {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
        margin-top: -13rem;
    }

    .home-hero__offer {
        justify-items: end;
        text-align: right;
    }
}

/* Mobile et tablette (texte sous la machine) : titre, prix et bouton centrés (utilisateur, 25/09/2026). */
@media (max-width: 55.99rem) {
    .home-hero__content {
        justify-items: center;
        text-align: center;
    }

    .home-hero h1 {
        margin-inline: auto;
    }

    .home-hero__offer {
        justify-items: center;
    }
}
