/* ========================================================================
* Mayela Hub - Hero "GenoTrace"
* Hero plein écran, fond noir, hélice d'ADN en obsidienne veinée de lave.
* Registre volontairement épuré : pas de gradient, pas de forme décorative,
* le texte est ancré en bas à gauche face à la molécule.
* ======================================================================== */

.geno-hero {
    position: relative;
    display: flex;
    min-height: 100vh;
    padding: 200px 0 90px;
    background: #000000;
    overflow: hidden;
    z-index: 1;
}

#geno-trace-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    display: block;
}

/* Assise sombre sous le texte, comme sur la référence */
.geno-hero-fade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(70% 55% at 12% 88%, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0.7) 100%);
}

.geno-hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
}

.geno-hero-content {
    max-width: 640px;
    text-align: left;
}

/* --- Typographie ----------------------------------------------------- */

.geno-hero-content h1 {
    margin: 0;
    font-size: clamp(34px, 4.6vw, 64px);
    font-weight: 400;
    line-height: 1.06em;
    letter-spacing: -0.025em;
    color: #FFFFFF;
    cursor: none;
}

/* Le hero GenoTrace est monochrome : pas de dégradé sur les mots accentués */
.geno-hero-content h1 span {
    font-weight: 600;
    color: #FFFFFF;
    background: none;
    -webkit-text-fill-color: #FFFFFF;
}

.geno-lead {
    max-width: 480px;
    margin: 24px 0 0;
    font-size: 17px;
    line-height: 1.5em;
    color: rgba(255, 255, 255, 0.62);
}

.geno-lead strong {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
}

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

.geno-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 38px;
}

/* Forme rectangulaire propre à ce hero, couleurs reprises de .btn-default
   (css/custom.css) pour rester dans la charte du site. */
.geno-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: linear-gradient(to right,
            var(--accent-color) 0%,
            var(--accent-secondary-color) 50%,
            var(--accent-color) 100%);
    background-size: 200% auto;
    font-size: 15px;
    font-weight: 700;
    line-height: 1em;
    color: var(--primary-color);
    text-decoration: none;
    transition: background-position 0.4s ease-in-out, background 0.3s ease,
                border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.geno-btn:hover,
.geno-btn:focus-visible {
    background-position: right center;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.geno-btn-ghost {
    background: rgba(6, 6, 6, 0.55);
    border-color: var(--accent-color);
    color: var(--primary-color);
}

.geno-btn-ghost:hover,
.geno-btn-ghost:focus-visible {
    background: linear-gradient(to right,
            var(--accent-color) 0%,
            var(--accent-secondary-color) 100%);
    border-color: var(--accent-secondary-color);
    color: var(--primary-color);
}

/* --- Entrées --------------------------------------------------------- */

@keyframes genoRise {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: translateY(0); }
}

.geno-hero-content h1,
.geno-lead,
.geno-actions {
    animation: genoRise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.geno-hero-content h1 { animation-delay: 0.15s; }
.geno-lead            { animation-delay: 0.30s; }
.geno-actions         { animation-delay: 0.45s; }

/* --- Responsive ------------------------------------------------------ */

@media only screen and (max-width: 991px) {
    .geno-hero {
        min-height: 92vh;
        padding: 170px 0 70px;
    }

    .geno-lead { font-size: 16px; }
}

@media only screen and (max-width: 767px) {
    .geno-hero {
        min-height: 88vh;
        padding: 150px 0 60px;
    }

    /* Contenu recentré : ancré en bas, les CTA finissent sous le bandeau
       cookies sur les petits écrans. */
    .geno-hero-inner {
        align-items: center;
    }

    .geno-hero-content { max-width: 100%; }

    .geno-actions { margin-top: 30px; }

    .geno-btn {
        flex: 1 1 100%;
        padding: 14px 24px;
    }
}

/* --- Accessibilité : mouvement réduit -------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .geno-hero-content h1,
    .geno-lead,
    .geno-actions {
        animation-duration: 0.01ms;
        animation-delay: 0ms;
    }
}
