/* docs\assets\css\style.css */
/* ==========================================================================
   HEVRA — Design System
   Mobile-first. Palette lavande/indigo héritée de la maquette produit.
   Polices : "Sora" (display) + "Inter" (texte/UI).
   ========================================================================== */

:root {
    /* --- Couleurs de marque --- */
    --hv-bg: #FAFAFF;
    --hv-bg-soft: #F2F0FC;
    --hv-surface: #FFFFFF;
    --hv-line: #E7E4F7;

    --hv-ink: #16152B;
    --hv-ink-soft: #514F6B;
    --hv-ink-faint: #8B89A3;

    --hv-primary: #5B4CE0;
    /* violet-indigo signature */
    --hv-primary-600: #4C3ED0;
    --hv-primary-100: #ECE9FC;
    --hv-primary-50: #F4F2FE;

    --hv-navy: #14132A;
    /* bandes sombres */
    --hv-navy-soft: #211F3D;

    --hv-amber: #F2A93B;
    /* crédits */
    --hv-green: #21B37C;
    /* certification / succès */
    --hv-pink: #EA5FA0;
    /* accent réseau */

    --hv-focus: #8B7CFF;

    /* --- Typo --- */
    --font-display: "Sora", "Inter", system-ui, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, sans-serif;

    /* --- Rayons / ombres --- */
    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-xl: 32px;
    --r-pill: 999px;

    --shadow-card: 0 1px 2px rgba(22, 21, 43, .04), 0 12px 30px -12px rgba(22, 21, 43, .12);
    --shadow-float: 0 20px 60px -20px rgba(91, 76, 224, .35);

    --container: 1180px;
    --gutter: 20px;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

body {
    margin: 0;
    background: var(--hv-bg);
    color: var(--hv-ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img,
video {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

h1,
h2,
h3,
h4,
p {
    margin: 0;
}

:focus-visible {
    outline: 2.5px solid var(--hv-focus);
    outline-offset: 3px;
    border-radius: 4px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    letter-spacing: -0.01em;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--hv-primary);
    background: var(--hv-primary-100);
    padding: 7px 14px;
    border-radius: var(--r-pill);
}

.eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--hv-primary);
    flex: none;
}

.eyebrow.on-dark {
    color: #C9C1FF;
    background: rgba(139, 124, 255, .14);
}

.eyebrow.on-dark::before {
    background: #C9C1FF;
}

.section-head {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 40px;
}

.section-head h2 {
    font-size: clamp(1.6rem, 1.25rem + 1.6vw, 2.3rem);
    font-weight: 700;
    margin-top: 14px;
    color: var(--hv-ink);
}

.section-head p {
    margin-top: 12px;
    color: var(--hv-ink-soft);
    font-size: 1.02rem;
}

section {
    padding: 64px 0;
}

@media (min-width: 860px) {
    section {
        padding: 96px 0;
    }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .97rem;
    padding: 13px 22px;
    border-radius: var(--r-pill);
    white-space: nowrap;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
}

.btn:active {
    transform: translateY(1px) scale(.99);
}

.btn-primary {
    background: var(--hv-primary);
    color: #fff;
    box-shadow: 0 10px 24px -8px rgba(91, 76, 224, .55);
}

.btn-primary:hover {
    background: var(--hv-primary-600);
}

.btn-ghost {
    background: var(--hv-surface);
    color: var(--hv-ink);
    border: 1.5px solid var(--hv-line);
}

.btn-ghost:hover {
    border-color: var(--hv-primary);
    color: var(--hv-primary);
}

.btn-ghost.on-dark {
    background: transparent;
    border-color: rgba(255, 255, 255, .22);
    color: #fff;
}

.btn-ghost.on-dark:hover {
    border-color: #fff;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 9px 16px;
    font-size: .87rem;
}

.btn-icon {
    width: 15px;
    height: 15px;
    flex: none;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 250, 255, .82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--hv-line);
}

.site-header .container {
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* 🛡️ FIX LOGO MOBILE STRICT & UNBREAKABLE */
.logo {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 1.15rem !important;
    line-height: 1 !important;
    max-height: 40px !important;
}

.logo-img {
    width: 32px !important;
    height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    object-fit: contain !important;
    display: inline-block !important;
    flex: 0 0 32px !important;
}

/* Fix spécifique pour le tiroir mobile */
.mobile-nav-header .logo-img {
    width: 30px !important;
    height: 30px !important;
    max-width: 30px !important;
}

.cert-email-btn,
.cert-email-btn:visited,
.cert-email-btn:hover {
    color: #fff !important;
}

.logo .mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--hv-primary);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1rem;
    font-weight: 800;
    box-shadow: var(--shadow-float);
}

.nav-desktop {
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-actions .link-connect {
    display: none;
    font-weight: 600;
    font-size: .92rem;
    color: var(--hv-ink-soft);
}

.nav-toggle {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: var(--r-sm);
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
    content: "";
    display: block;
    width: 19px;
    height: 2px;
    background: var(--hv-ink);
    border-radius: 2px;
    position: relative;
}

.nav-toggle {
    position: relative;
}

.nav-toggle svg {
    width: 22px;
    height: 22px;
}

/* Mini-figure générée dans le chat du Hero */
.hero-generated-fig {
    margin-top: 8px;
    background: #ffffff;
    border: 1px solid var(--hv-line);
    border-radius: 8px;
    padding: 8px;
    display: flex;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.hero-generated-fig svg {
    max-width: 140px;
    height: auto;
}

/* 📱 Style propre pour les captures/mockups des 5 espaces */
.space-img {
    width: 100%;
    height: auto;
    max-height: 240px;
    object-fit: contain;
    border-radius: var(--r-md);
    margin-top: 14px;
    display: block;
    background: var(--hv-bg-soft);
    border: 1px solid var(--hv-line);
    box-shadow: 0 4px 14px rgba(22, 21, 43, 0.05);
    transition: transform 0.2s ease;
}

.space-card:hover .space-img {
    transform: translateY(-2px);
}


/* ==========================================================================
   Nouveau Volet Mobile Coulissant (Drawer Latéral)
   ========================================================================== */
.mobile-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(20, 19, 42, .55);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s;
}

.mobile-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 86%;
    max-width: 360px;
    height: 100vh;
    height: 100dvh;
    /* 👈 Support des barres d'adresse dynamiques sur iOS / Android */
    background: var(--hv-surface);
    z-index: 999;
    padding: 20px 20px calc(24px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 35px rgba(22, 21, 43, .22);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .3s cubic-bezier(0.16, 1, 0.3, 1), visibility .3s;
    overflow-y: auto;
}

.mobile-nav.is-open {
    transform: translateX(0);
    /* 👈 Glisse en douceur vers la gauche */
    visibility: visible;
}

/* En-tête du volet */
.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--hv-line);
}

.mobile-nav-close {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--hv-bg-soft);
    color: var(--hv-ink);
    display: grid;
    place-items: center;
    transition: background .15s ease;
}

.mobile-nav-close:active {
    background: var(--hv-line);
}

.mobile-nav-close svg {
    width: 20px;
    height: 20px;
}

/* Liens tactiles et aérés */
.mobile-nav-links {
    flex: 1;
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 10px;
    border-radius: var(--r-md);
    font-size: .95rem;
    font-weight: 700;
    color: var(--hv-ink);
    border-bottom: none;
    transition: background .15s ease;
}

.mobile-nav .nav-item:active {
    background: var(--hv-bg-soft);
}

.mobile-nav .nav-icon {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    border-radius: 12px;
    display: grid;
    place-items: center;
    flex: none !important;
}

.mobile-nav .nav-icon svg {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    flex: none !important;
}

.mobile-nav .nav-text {
    flex: 1;
}

.mobile-nav .nav-arrow {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    color: var(--hv-ink-faint);
    flex: none !important;
    margin-left: auto;
}

/* Bas du volet */
.mobile-nav-footer {
    padding-top: 16px;
    border-top: 1px solid var(--hv-line);
    margin-top: auto;
}

/* 🛡️ Désactivation totale sur ordinateur */
/* @media (min-width: 900px) {

    .mobile-backdrop,
    .mobile-nav {
        display: none !important;
    }
} */

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative;
    overflow: clip;
    padding-top: 44px;
    padding-bottom: 20px;
}

.hero::before {
    content: "";
    position: absolute;
    top: -180px;
    right: -160px;
    width: 480px;
    height: 480px;
    background: radial-gradient(closest-side, rgba(91, 76, 224, .24), transparent 72%);
    filter: blur(10px);
    pointer-events: none;
}

.hero .container {
    position: relative;
}

.hero-copy {
    max-width: 640px;
}

.hero-copy .eyebrow {
    margin-bottom: 18px;
}

.hero-title {
    font-size: clamp(2.1rem, 1.5rem + 3.4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.06;
    color: var(--hv-ink);
}

.hero-title .accent {
    color: var(--hv-primary);
}

.hero-lede {
    margin-top: 18px;
    font-size: clamp(1rem, .93rem + .4vw, 1.15rem);
    color: var(--hv-ink-soft);
    max-width: 54ch;
}

.hero-points {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.hero-points li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .87rem;
    font-weight: 600;
    color: var(--hv-ink-soft);
}

.hero-points svg {
    width: 16px;
    height: 16px;
    color: var(--hv-primary);
    flex: none;
}

.hero-cta {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-cta .btn {
    flex: 1 1 auto;
    min-width: 168px;
}

.hero-gift {
    margin-top: 18px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: .87rem;
    font-weight: 600;
    color: var(--hv-ink-soft);
}

.hero-gift b {
    color: var(--hv-ink);
    white-space: nowrap;
}

/* --- Mockup produit (Studio) --- */
.hero-visual {
    margin-top: 44px;
}

.device {
    background: var(--hv-surface);
    border: 1px solid var(--hv-line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.device-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--hv-line);
}

.device-dots {
    display: flex;
    gap: 6px;
}

.device-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--hv-line);
}

.device-bar .device-title {
    font-size: .78rem;
    font-weight: 700;
    color: var(--hv-ink-soft);
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

.device-bar .device-title svg {
    width: 13px;
    height: 13px;
    color: var(--hv-primary);
}

.studio-mock {
    display: flex;
    flex-direction: column;
}

.studio-tabs {
    display: flex;
    gap: 6px;
    padding: 10px 14px 0;
    font-size: .77rem;
    font-weight: 700;
    color: var(--hv-ink-faint);
}

.studio-tabs span {
    padding: 8px 12px;
    border-radius: var(--r-sm) var(--r-sm) 0 0;
}

.studio-tabs span.active {
    background: var(--hv-bg-soft);
    color: var(--hv-primary);
}

.studio-chat {
    padding: 16px 16px 18px;
    min-height: 210px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: linear-gradient(180deg, #fff, var(--hv-bg-soft) 130%);
}

.bubble {
    max-width: 84%;
    padding: 10px 13px;
    border-radius: 14px;
    font-size: .82rem;
    line-height: 1.4;
}

.bubble.assistant {
    background: var(--hv-bg-soft);
    color: var(--hv-ink);
    border-bottom-left-radius: 4px;
}

.bubble.user {
    background: var(--hv-primary);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.bubble.typing {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    padding: 12px 14px;
}

.bubble.typing span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--hv-ink-faint);
    animation: typingDot 1.1s infinite ease-in-out;
}

.bubble.typing span:nth-child(2) {
    animation-delay: .15s;
}

.bubble.typing span:nth-child(3) {
    animation-delay: .3s;
}

@keyframes typingDot {

    0%,
    60%,
    100% {
        opacity: .25;
        transform: translateY(0);
    }

    30% {
        opacity: 1;
        transform: translateY(-2px);
    }
}

.studio-doc {
    margin: 4px 16px 16px;
    background: #fff;
    border: 1px solid var(--hv-line);
    border-radius: var(--r-sm);
    padding: 12px 14px;
    font-size: .72rem;
    color: var(--hv-ink-soft);
}

.studio-doc .doc-school {
    font-weight: 800;
    letter-spacing: .04em;
    color: var(--hv-ink);
    font-size: .68rem;
    text-transform: uppercase;
}

.studio-doc .doc-title {
    font-weight: 700;
    color: var(--hv-primary);
    margin-top: 4px;
}

.studio-doc .doc-line {
    height: 6px;
    border-radius: 3px;
    background: var(--hv-bg-soft);
    margin-top: 8px;
}

.studio-doc .doc-line.w60 {
    width: 60%;
}

.studio-doc .doc-line.w80 {
    width: 80%;
}

.hero-badge {
    display: none;
}

@media (min-width: 640px) {
    .hero-badge {
        display: flex;
        align-items: center;
        gap: 10px;
        position: absolute;
        right: 26px;
        bottom: -18px;
        background: var(--hv-navy);
        color: #fff;
        padding: 12px 16px;
        border-radius: var(--r-md);
        box-shadow: var(--shadow-float);
        font-size: .78rem;
        font-weight: 700;
    }

    .hero-badge svg {
        width: 16px;
        height: 16px;
        color: var(--hv-amber);
    }
}

@media (min-width: 980px) {
    .hero .container {
        display: grid;
        grid-template-columns: 1.05fr .95fr;
        gap: 50px;
        align-items: center;
    }

    .hero-visual {
        margin-top: 0;
    }

    .hero-cta .btn {
        flex: 0 0 auto;
    }
}


/* ==========================================================================
   🎯 NOUVELLE PRÉSENTATION VERTICALE & ANIMATIONS DES 5 ESPACES
   ========================================================================== */

/* Conteneur vertical fluide sur mobile */
.spaces-vertical-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 780px;
    margin: 0 auto;
}

/* Carte interactive avec effet de profondeur */
.space-card-vertical {
    background: var(--hv-surface);
    border: 1.5px solid var(--hv-line);
    border-radius: var(--r-xl);
    padding: 24px;
    box-shadow: var(--shadow-card);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.25s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* 🚀 ANIMATION QUAND ON PASSE DESSUS (ZOOM & LIFT) */
.space-card-vertical:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--hv-primary);
    box-shadow: 0 24px 50px -15px rgba(91, 76, 224, 0.28);
}

.space-card-vertical .card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.space-card-vertical .space-icon {
    margin-bottom: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #fff;
    flex: none;
}

.space-card-vertical h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--hv-ink);
}

.space-card-vertical p {
    font-size: 0.95rem;
    color: var(--hv-ink-soft);
    line-height: 1.6;
    margin-bottom: 16px;
}

/* 🖼️ Grande image agrandie et zoomable */
.space-card-vertical .img-wrap {
    width: 100%;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--hv-bg-soft);
    border: 1px solid var(--hv-line);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.02);
}

.space-card-vertical .img-wrap img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Effet de zoom intérieur sur l'image */
.space-card-vertical:hover .img-wrap img {
    transform: scale(1.04);
}

/* ==========================================================================
   ⭐ SECTION TÉMOIGNAGES (DESIGN MODERNE ET PROFESSIONNEL)
   ========================================================================== */
.testimonials-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.testimonial-card {
    background: var(--hv-surface);
    border: 1px solid var(--hv-line);
    border-radius: var(--r-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: var(--hv-primary);
}

.testimonial-stars {
    color: #F2A93B;
    /* Jaune ambre */
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.testimonial-quote {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--hv-ink);
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--hv-line);
}

.testimonial-author img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    flex: none;
    border: 2px solid var(--hv-primary-100);
}

.testimonial-author strong {
    font-size: 0.9rem;
    color: var(--hv-ink);
    display: block;
}

.testimonial-author span {
    font-size: 0.76rem;
    color: var(--hv-ink-soft);
    display: block;
    margin-top: 2px;
}

.cert-check {
    color: #21B37C;
    font-size: 0.85rem;
}

/* Style pour la pile des vrais avatars */
.demo-avatars .stack {
    display: flex;
    align-items: center;
}

.demo-avatars .stack img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--hv-navy);
    /* Bordure sombre de séparation */
    margin-left: -10px;
    object-fit: cover;
    background: var(--hv-surface);
    transition: transform 0.2s ease, z-index 0.2s;
}

.demo-avatars .stack img:first-child {
    margin-left: 0;
}

.demo-avatars .stack img:hover {
    transform: scale(1.18) translateY(-2px);
    z-index: 10;
}


/* ==========================================================================
   Bande logos / preuve sociale rapide
   ========================================================================== */
.trust-strip {
    padding: 22px 0;
    border-top: 1px solid var(--hv-line);
    border-bottom: 1px solid var(--hv-line);
}

.trust-strip .container {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 28px;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.trust-strip .stat {
    font-size: .82rem;
    color: var(--hv-ink-soft);
    font-weight: 600;
}

.trust-strip .stat b {
    color: var(--hv-ink);
    font-family: var(--font-display);
    font-size: 1rem;
}

/* ==========================================================================
   Les 5 espaces — carrousel mobile / grille desktop
   ========================================================================== */
.spaces-scroller {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 20px 14px;
    margin: 0 calc(var(--gutter) * -1);
    scrollbar-width: none;
}

.spaces-scroller::-webkit-scrollbar {
    display: none;
}

.space-card {
    scroll-snap-align: center;
    flex: 0 0 78%;
    max-width: 300px;
    background: var(--hv-surface);
    border: 1.5px solid var(--hv-line);
    border-radius: var(--r-lg);
    padding: 22px 20px 26px;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.space-card.is-active {
    border-color: var(--hv-primary);
    box-shadow: var(--shadow-card);
}

.space-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    color: #fff;
}

.space-icon svg {
    width: 20px;
    height: 20px;
}

.space-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
}

.space-card p {
    margin-top: 6px;
    font-size: .87rem;
    color: var(--hv-ink-soft);
}

.space-visual {
    margin-top: 16px;
    border-radius: var(--r-sm);
    border: 1px solid var(--hv-line);
    background: var(--hv-bg-soft);
    padding: 10px 12px;
    font-size: .68rem;
    color: var(--hv-ink-faint);
}

.space-visual .row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.space-visual .row:first-child {
    margin-top: 0;
}

.space-visual .avatar-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    flex: none;
}

.space-visual .line {
    height: 6px;
    border-radius: 3px;
    background: var(--hv-line);
    flex: 1;
}

.space-visual .line.short {
    flex: .5;
}

.spaces-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 6px;
}

.spaces-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--hv-line);
    transition: background .2s, width .2s;
}

.spaces-dots span.is-active {
    background: var(--hv-primary);
    width: 18px;
    border-radius: 3px;
}

@media (min-width: 860px) {
    .spaces-scroller {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        overflow: visible;
        margin: 0;
        padding: 4px 0 0;
    }

    .space-card {
        flex: initial;
        max-width: none;
    }

    .spaces-dots {
        display: none;
    }
}

/* ==========================================================================
   Studio deep-dive
   ========================================================================== */
.studio-feature {
    display: grid;
    gap: 34px;
    align-items: center;
}

.studio-feature-list {
    margin-top: 20px;
    display: grid;
    gap: 12px;
}

.studio-feature-list li {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    font-size: .93rem;
    color: var(--hv-ink-soft);
}

.studio-feature-list svg {
    width: 19px;
    height: 19px;
    color: var(--hv-primary);
    flex: none;
    margin-top: 1px;
}

.studio-feature-list b {
    color: var(--hv-ink);
}

.studio-feature .btn {
    margin-top: 24px;
}

.video-frame {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--hv-navy);
    aspect-ratio: 16/10;
    box-shadow: var(--shadow-card);
}

.video-frame img.poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .55;
}

.video-frame .placeholder-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, var(--hv-navy-soft), var(--hv-navy));
}

.video-frame .placeholder-fallback .mock-ui {
    width: 78%;
    border-radius: var(--r-md);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    padding: 16px;
}

.video-frame .placeholder-fallback .mock-ui .doc-line {
    height: 7px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .14);
    margin-top: 9px;
}

.video-frame .placeholder-fallback .mock-ui .doc-line:first-child {
    margin-top: 0;
    width: 40%;
    background: rgba(139, 124, 255, .5);
}

.play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.play-btn .circle {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--hv-primary);
    display: grid;
    place-items: center;
    box-shadow: 0 12px 30px -6px rgba(91, 76, 224, .7);
    transition: transform .2s ease;
}

.play-btn:hover .circle {
    transform: scale(1.06);
}

.play-btn svg {
    width: 20px;
    height: 20px;
    margin-left: 3px;
}

.video-caption {
    position: absolute;
    left: 16px;
    bottom: 14px;
    font-size: .74rem;
    color: rgba(255, 255, 255, .75);
    background: rgba(0, 0, 0, .35);
    padding: 5px 10px;
    border-radius: var(--r-pill);
}

@media (min-width: 940px) {
    .studio-feature {
        grid-template-columns: .95fr 1.05fr;
    }
}

/* ==========================================================================
   Duo cartes : Réseau + Profil
   ========================================================================== */
.duo-grid {
    display: grid;
    gap: 18px;
}

.info-card {
    background: var(--hv-surface);
    border: 1px solid var(--hv-line);
    border-radius: var(--r-lg);
    padding: 26px 22px;
}

.info-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.info-card p {
    margin-top: 8px;
    color: var(--hv-ink-soft);
    font-size: .93rem;
}

.info-card .btn {
    margin-top: 18px;
}

.opportunity-chip {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--hv-bg-soft);
    border-radius: var(--r-md);
    padding: 14px;
}

.opportunity-chip .avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--hv-pink);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: .85rem;
    flex: none;
}

.opportunity-chip .meta strong {
    display: block;
    font-size: .86rem;
}

.opportunity-chip .meta span {
    font-size: .76rem;
    color: var(--hv-ink-faint);
}

.opportunity-chip .badge {
    margin-left: auto;
    font-size: .68rem;
    font-weight: 700;
    color: var(--hv-green);
    background: rgba(33, 179, 124, .12);
    padding: 4px 9px;
    border-radius: var(--r-pill);
    flex: none;
}

.profile-preview {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.profile-preview .avatar-lg {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--hv-primary), var(--hv-pink));
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    flex: none;
    box-shadow: var(--shadow-card);
}

.profile-preview strong {
    display: block;
    font-size: .98rem;
}

.profile-preview span {
    font-size: .82rem;
    color: var(--hv-ink-faint);
}

.certified-pill {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .72rem;
    font-weight: 700;
    color: var(--hv-green);
    background: rgba(33, 179, 124, .12);
    padding: 4px 10px;
    border-radius: var(--r-pill);
}

.profile-stats {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--hv-line);
    padding-top: 16px;
}

.profile-stats div {
    text-align: center;
}

.profile-stats b {
    display: block;
    font-family: var(--font-display);
    font-size: 1.05rem;
}

.profile-stats span {
    font-size: .72rem;
    color: var(--hv-ink-faint);
}

@media (min-width: 860px) {
    .duo-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ==========================================================================
   Crédits
   ========================================================================== */
.credits-grid {
    display: grid;
    gap: 16px;
}

.credit-card {
    background: var(--hv-surface);
    border: 1px solid var(--hv-line);
    border-radius: var(--r-lg);
    padding: 24px 22px;
}

.credit-card.gift {
    background: linear-gradient(135deg, var(--hv-primary-50), var(--hv-surface));
}

.credit-amount {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 10px;
}

.credit-amount b {
    font-family: var(--font-display);
    font-size: 2.4rem;
    color: var(--hv-primary);
}

.credit-amount span {
    font-size: .85rem;
    color: var(--hv-ink-soft);
    font-weight: 600;
}

.credit-steps {
    margin-top: 6px;
    display: grid;
    gap: 14px;
}

.credit-step {
    display: flex;
    align-items: center;
    gap: 12px;
}

.credit-step .num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--hv-bg-soft);
    color: var(--hv-primary);
    font-weight: 800;
    font-size: .82rem;
    display: grid;
    place-items: center;
    flex: none;
}

.credit-step p {
    font-size: .87rem;
    color: var(--hv-ink-soft);
}

.credit-bonus {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--hv-amber);
    font-family: var(--font-display);
    font-size: 1.3rem;
}

.credit-bonus svg {
    width: 22px;
    height: 22px;
}

@media (min-width: 860px) {
    .credits-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ==========================================================================
   Démo 60 secondes (bande sombre)
   ========================================================================== */
.demo-band {
    background: var(--hv-navy);
    border-radius: var(--r-xl);
    overflow: hidden;
    display: grid;
}

.demo-copy {
    padding: 30px 24px;
    color: #fff;
}

.demo-copy p {
    margin-top: 10px;
    color: rgba(255, 255, 255, .65);
    font-size: .92rem;
}

.demo-avatars {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

.demo-avatars .stack {
    display: flex;
}

.demo-avatars .stack span {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--hv-navy);
    margin-left: -9px;
    background: var(--hv-primary);
}

.demo-avatars .stack span:first-child {
    margin-left: 0;
}

.demo-avatars small {
    font-size: .78rem;
    color: rgba(255, 255, 255, .6);
    font-weight: 600;
}

.demo-video {
    position: relative;
    min-height: 220px;
}

@media (min-width: 860px) {
    .demo-band {
        grid-template-columns: .8fr 1.2fr;
        align-items: stretch;
    }

    .demo-copy {
        padding: 40px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: grid;
    gap: 10px;
}

.faq-item {
    background: var(--hv-surface);
    border: 1px solid var(--hv-line);
    border-radius: var(--r-md);
    overflow: hidden;
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 17px 18px;
    font-weight: 600;
    font-size: .95rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary .chev {
    width: 20px;
    height: 20px;
    flex: none;
    color: var(--hv-primary);
    transition: transform .2s ease;
}

.faq-item[open] summary .chev {
    transform: rotate(180deg);
}

.faq-item .faq-a {
    padding: 0 18px 18px;
    color: var(--hv-ink-soft);
    font-size: .89rem;
}

.faq-more {
    text-align: center;
    margin-top: 22px;
}

.faq-more a {
    font-weight: 700;
    color: var(--hv-primary);
    font-size: .92rem;
}

/* ==========================================================================
   CTA finale
   ========================================================================== */
.final-cta {
    background: var(--hv-navy);
    border-radius: var(--r-xl);
    padding: 40px 26px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.final-cta::after {
    content: "";
    position: absolute;
    inset: -40% -10% auto auto;
    width: 320px;
    height: 320px;
    background: radial-gradient(closest-side, rgba(91, 76, 224, .5), transparent 70%);
}

.final-cta h2 {
    font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem);
    font-weight: 700;
    position: relative;
}

.final-cta p {
    margin-top: 10px;
    color: rgba(255, 255, 255, .65);
    position: relative;
}

.final-cta .cta-row {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    position: relative;
}

.final-cta .cta-row .btn {
    min-width: 190px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--hv-navy);
    /* #14132A */
    color: #fff;
    padding: 60px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.footer-top {
    display: grid;
    gap: 34px;
}

.footer-brand .logo {
    color: #fff;
}

.footer-brand p {
    color: rgba(255, 255, 255, .65);
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.footer-social a {
    border-color: rgba(255, 255, 255, .15);
    color: rgba(255, 255, 255, .7);
}

.footer-social a:hover {
    border-color: var(--hv-primary);
    color: #fff;
    background: var(--hv-primary);
}

.footer-social svg {
    width: 15px;
    height: 15px;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
}

.footer-col h4 {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #C9C1FF;
    font-weight: 700;
    /* Lavande lumineuse */
}

.footer-col ul {
    margin-top: 14px;
    display: grid;
    gap: 11px;
}

.footer-col a {
    color: rgba(255, 255, 255, .7);
    transition: color .15s ease;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .5);
}

.footer-bottom a {
    color: rgba(255, 255, 255, .7);
}

@media (min-width: 700px) {
    .footer-top {
        grid-template-columns: 1fr 2fr;
    }

    .footer-cols {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==========================================================================
   Utilitaires
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
