/**
 * Styles de la page d'accueil - Rebranding "Neuro-Tech Corporate"
 */

.hero-section,
.section-light,
#contact-me {
    position: relative;
    overflow: hidden;
}

.hero-section .container,
.section-light .container,
#contact-me .container {
    position: relative;
    z-index: 1;
}

/* ======================================
   HERO SECTION
====================================== */
.hero-section {
    /* Fond délégué à .ambient-surface / ambiance unique du body. */
    padding: 8rem 0 4rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/*
 * Hero background glows.
 * Kept as real elements (not ::before/::after) so anime.js can animate them.
 */
.hero-glow {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    will-change: transform, opacity;
}

.hero-glow--a {
    top: -10%;
    right: -4%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.2) 0%, transparent 72%);
}

.hero-glow--b {
    bottom: -24%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.16) 0%, transparent 75%);
}

.hero-section h1 {
    color: var(--text-light) !important;
    text-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    font-weight: var(--font-weight-extrabold);
    line-height: 1.05;
    background: none !important;
    -webkit-text-fill-color: var(--text-light) !important;
}

.hero-section .text-blue {
    color: var(--secondary-color) !important;
    text-shadow: 0 0 22px rgba(var(--secondary-rgb), 0.42);
}

.hero-title {
    font-size: clamp(2.35rem, 4.4vw, 3.9rem);
    margin-bottom: 1.25rem;
    max-width: 20ch;
}

.hero-subtitle {
    color: rgba(247, 251, 255, 0.84);
    max-width: 44rem;
    margin: 0 0 1rem;
    font-size: 1.06rem;
    line-height: 1.65;
}

.hero-kicker {
    font-family: var(--font-display);
    letter-spacing: 0.16em;
    background: rgba(var(--secondary-rgb), 0.1);
    border-color: rgba(var(--secondary-rgb), 0.32);
    color: var(--secondary-color);
    margin-bottom: 1.25rem;
}

.hero-byline {
    color: var(--secondary-soft);
    font-weight: var(--font-weight-semibold);
    margin: 0 0 1.25rem;
}

.hero-pillars > p {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: var(--font-weight-bold);
    margin: 0 0 0.65rem;
}

.hero-pillars ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
}

.hero-pillars li {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(247, 251, 255, 0.9);
    font-size: 0.78rem;
    font-weight: var(--font-weight-semibold);
    backdrop-filter: blur(10px);
}

.hero-pillars a {
    color: inherit;
    text-decoration: none;
}

.hero-pillars a:hover,
.hero-pillars a:focus-visible {
    color: var(--secondary-color);
    text-decoration: underline;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-bottom: 1.4rem;
}

.hero-media {
    position: relative;
    max-width: 580px;
    margin-left: auto;
}

.hero-proof-cards {
    display: grid;
    gap: 1rem;
    width: 100%;
}

.hero-assistant-card {
    --hero-card-rgb: var(--secondary-rgb);
    --hero-card-color: var(--secondary-soft);
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.1rem;
    border: 1px solid rgba(var(--hero-card-rgb), 0.26);
    border-radius: 1.25rem;
    background: radial-gradient(ellipse at top right, rgba(var(--hero-card-rgb), 0.12), transparent 70%),
        var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-md);
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.hero-neuroam-card {
    --hero-card-rgb: var(--primary-rgb);
    --hero-card-color: var(--primary-soft);
}

/* Vector is the primary entry point: larger, stronger frame and a full-width action. */
.hero-vector-chat {
    border-width: 1.5px;
    border-color: rgba(var(--hero-card-rgb), 0.55);
    box-shadow: var(--shadow-lg), 0 0 36px rgba(var(--hero-card-rgb), 0.18);
}

.hero-vector-chat .hero-assistant-avatar {
    width: 80px;
    height: 80px;
}

.hero-vector-chat .hero-assistant-id strong {
    font-size: 1.4rem;
}

.hero-vector-chat .hero-assistant-description {
    font-size: 0.92rem;
}

.hero-vector-chat .hero-assistant-actions .btn {
    width: 100%;
    min-height: 46px;
    font-size: 0.9rem;
}

.hero-assistant-card:hover,
.hero-assistant-card:focus-within {
    border-color: rgba(var(--hero-card-rgb), 0.6);
    box-shadow: var(--shadow-md), 0 0 28px rgba(var(--hero-card-rgb), 0.12);
}

.hero-assistant-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}

.hero-assistant-avatar {
    position: relative;
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    padding: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(var(--hero-card-rgb), 0.65);
    border-radius: 1.2rem;
    background: linear-gradient(145deg, rgba(var(--hero-card-rgb), 0.24), rgba(var(--hero-card-rgb), 0.06));
    color: var(--hero-card-color);
    box-shadow: 0 0 0 4px rgba(var(--hero-card-rgb), 0.06),
        0 8px 24px rgba(var(--hero-card-rgb), 0.18);
    font-size: 1.8rem;
}

.hero-assistant-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.8rem;
    display: block;
}

.hero-assistant-id {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    line-height: 1.4;
    min-width: 0;
    overflow-wrap: anywhere;
}

.hero-assistant-id strong {
    color: var(--text-light);
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.hero-assistant-id small {
    color: var(--hero-card-color);
    font-size: 0.72rem;
}

.hero-assistant-description {
    margin: 0 0 0.75rem;
    color: var(--text-color);
    font-size: 0.82rem;
    line-height: 1.6;
}

.hero-assistant-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.hero-assistant-actions .btn {
    justify-content: center;
    min-height: 40px;
    padding: 0.55rem 0.75rem;
    font-size: 0.75rem;
    line-height: 1.35;
}

/* ======================================
   TRUST SECTION ("They trusted me")
====================================== */
.section-light {
    /* Fond délégué à .ambient-surface / ambiance unique du body. */
    padding: 6rem 0;
}

.home-trust {
    padding: 4rem 0;
}

.home-trust__grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 1.25rem;
    margin: 0 0 2rem;
    padding: 0;
}

.home-trust__card {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 1.25rem;
    text-align: center;
    text-decoration: none;
    background: var(--card-bg);
    border: 1px solid rgba(var(--primary-rgb), 0.14);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.home-trust__card:hover,
.home-trust__card:focus-visible {
    border-color: rgba(var(--secondary-rgb), 0.5);
    box-shadow: var(--shadow-lg), 0 0 24px rgba(var(--secondary-rgb), 0.12);
}

.home-trust__logo {
    width: 100%;
    height: 96px;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.97);
}

.home-trust__logo img {
    max-width: 72%;
    max-height: 64px;
    object-fit: contain;
}

.home-trust__card strong {
    color: var(--text-emphasis);
    font-size: 1.1rem;
}

.home-trust__full-name {
    color: var(--text-color);
    font-size: 0.82rem;
    line-height: 1.4;
}

.home-trust__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem;
}

/* ======================================
   VALUE SECTION ("What I bring")
====================================== */
.home-value {
    padding: 4rem 0;
}

.home-value__cards {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 1.25rem;
    margin: 0 0 1.25rem;
    padding: 0;
}

.home-value__card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid rgba(var(--primary-rgb), 0.14);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.home-value__card h3 {
    margin: 0.25rem 0 0;
    color: var(--text-emphasis);
    font-size: 1.15rem;
    text-transform: none;
    letter-spacing: 0.01em;
}

.home-value__card p {
    margin: 0;
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.55;
}

.home-value__services {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: auto 0 0;
    padding: 0.5rem 0 0;
}

.home-value__services li {
    padding: 0.2rem 0.65rem;
    border: 1px solid rgba(var(--secondary-rgb), 0.3);
    border-radius: 999px;
    background: rgba(var(--secondary-rgb), 0.08);
    color: var(--secondary-soft);
    font-size: 0.72rem;
    font-weight: var(--font-weight-semibold);
}

/* ======================================
   FINAL CTA SECTION
====================================== */
#contact-me {
    /* Fond délégué à .ambient-surface / ambiance unique du body. */
    padding: 4rem 0 5rem;
}

/* ======================================
   HERO FITS THE VIEWPORT (desktop)
   The hero is a landing view: heading, credentials, CTAs and the assistant
   cards must be visible without scrolling on a laptop screen.
   ====================================== */
@media (min-width: 992px) {
    .hero-section {
        padding-top: 7rem;
        padding-bottom: 3.5rem;
    }

    .hero-title {
        font-size: clamp(2.2rem, 3.6vw, 3.2rem);
        margin-bottom: 0.85rem;
    }

    .hero-subtitle {
        margin-bottom: 1rem;
        font-size: 1rem;
        line-height: 1.55;
    }

    .hero-kicker {
        margin-bottom: 0.9rem;
    }

    .hero-actions {
        margin-bottom: 1.25rem;
    }

    .hero-media {
        max-width: 560px;
    }

    .hero-proof-cards {
        gap: 0.85rem;
    }

    .hero-assistant-card {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: 1rem;
        padding: 1.1rem 1.25rem;
    }

    .hero-assistant-head {
        grid-column: 1;
        margin-bottom: 0.5rem;
    }

    .hero-assistant-actions {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
    }

    .hero-assistant-description {
        grid-column: 1 / -1;
        margin-bottom: 0;
    }

    .hero-vector-chat {
        display: flex;
        padding: 1.5rem;
    }

    .hero-vector-chat .hero-assistant-head {
        margin-bottom: 0.85rem;
    }

    .hero-vector-chat .hero-assistant-description {
        margin-bottom: 1rem;
    }
}

/* Responsive */
@media (max-width: 991px) {
    .hero-section {
        text-align: center;
        padding-top: 6.5rem;
    }

    .hero-actions {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-title,
    .hero-subtitle,
    .hero-pillars {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-media {
        margin: 1.5rem auto 0;
    }

    .hero-proof-cards {
        max-width: 620px;
        margin: 0 auto;
        text-align: start;
    }

    .hero-section h1 {
        font-size: 2.45rem;
    }

    .hero-pillars ul {
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .home-trust__links .btn {
        width: 100%;
    }
}

/* ======================================
   MOTION INITIAL STATES (anime.js)
   Only applied once JS confirms motion is allowed via `html.mq-ready`.
   Without JS or with prefers-reduced-motion, elements keep their visible state.
====================================== */
html.mq-ready .hero-title,
html.mq-ready .hero-subtitle,
html.mq-ready .hero-byline,
html.mq-ready .hero-pillars li,
html.mq-ready .hero-actions,
html.mq-ready .hero-media {
    opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
    .hero-glow {
        will-change: auto;
    }
}
