/* ============================================================
   ANW Solutions – Compléments visuels pour la page d'accueil
   public/assets/css/home-extras.css
   ------------------------------------------------------------
   À inclure APRÈS style.css dans votre layout :
   <link rel="stylesheet" href="<?= APP_URL ?>/assets/css/style.css">
   <link rel="stylesheet" href="<?= APP_URL ?>/assets/css/home-extras.css">

   Ce fichier ne remplace AUCUNE règle existante :
   il ne fait qu'ajouter des classes spécifiques à la page d'accueil
   pour apporter dynamisme, animations et formes organiques tout en
   respectant la charte (palette --color-primary, --color-dark, etc.)
   ============================================================ */

/* ---- Variables locales (étendent celles de style.css) ---- */
.hero--enhanced,
.cta-banner--enhanced,
.marquee,
.process,
.pillars,
.value-prop {
    --accent-lime:   #C2F03A;
    --accent-amber:  #FFB547;
    --accent-pink:   #FF6B9D;
    --gradient-text: linear-gradient(120deg, #6EA8FE 0%, #C2F03A 100%);
}


/* ============================================================
   1. CADRAGE DU LAYOUT GLOBAL (UNIQUEMENT SUR HOME SANS BYPASS)
   ============================================================ */
/* On cible STRICTEMENT la navbar et le footer QUAND on est sur la home ET sans bypass */
html:not(.pipeline-bypass) .page-home .navbar,
html:not(.pipeline-bypass) .page-home .footer,
html:not(.pipeline-bypass) .page-home .cookie-banner {
    opacity: 0;
    transform: translateY(-15px);
    pointer-events: none;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Le blocage du scroll ne doit impacter QUE le body de la page d'accueil */
body.page-home:not(.pipeline-bypass) {
    animation: pipeline-scroll-lock 3.7s step-end forwards;
}
@keyframes pipeline-scroll-lock {
    from { overflow-y: hidden; height: 100vh; background: #0d0d11; }
    to   { overflow-y: auto; height: auto; }
}

html:not(.pipeline-bypass) .page-home .navbar,
html:not(.pipeline-bypass) .page-home .footer {
    animation: global-layout-release 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 3.5s;
}
@keyframes global-layout-release {
    to { opacity: 1; transform: translateY(0); pointer-events: auto; }
}

/* Sécurité pour le timer du body tout en bas de votre fichier */
body.page-home { 
    animation: body-lock-timer 4.6s step-end forwards; 
}
/* Si on n'est pas sur la home, on force le scroll normal immédiatement */
body:not(.page-home) {
    overflow-y: auto !important;
    height: auto !important;
}

/* ============================================================
   2. ÉCRAN DE CODE VS CODE FLOTTANT INTERACTIF
   ============================================================ */
.vsc-editor-fluid {
    position: fixed;
    inset: 0;
    z-index: 100; /* Priorité maximale absolue au-dessus des sections */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;
    pointer-events: none; /* Ne bloque pas l'écran */
    animation: vsc-window-fade 0.5s cubic-bezier(0.77, 0, 0.175, 1) forwards;
    animation-delay: 3.4s;
}

.vsc-window {
    width: 100%;
    max-width: 700px;
    font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
    font-size: clamp(0.85rem, 1.8vw, 1.05rem);
    background: #18181c;
    border-radius: var(--radius-lg);
    border: 1px solid #25252b;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.9);
}

.vsc-tab {
    background: #1e1e24; color: #858596; padding: 0.55rem 1.25rem; font-size: 0.75rem;
    border-bottom: 2px solid #007acc; width: fit-content; border-top-left-radius: var(--radius-lg);
}
.vsc-code-canvas { padding: 1.5rem 2rem; }

/* Saisie minutée des lignes */
.vsc-line {
    opacity: 0; white-space: nowrap; overflow: hidden; width: 0;
    animation: vsc-type-action 0.22s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.vsc-line[style*="--l-idx: 1"] { animation-delay: 0.1s; }
.vsc-line[style*="--l-idx: 2"] { animation-delay: 0.4s; }
.vsc-line[style*="--l-idx: 3"] { animation-delay: 0.7s; }
.vsc-line[style*="--l-idx: 4"] { animation-delay: 1.1s; } /* Déclenche Hero Fond/Texte */
.vsc-line[style*="--l-idx: 5"] { animation-delay: 1.6s; } /* Déclenche Galaxie module */
.vsc-line[style*="--l-idx: 6"] { animation-delay: 2.1s; } /* Déclenche Reste du site */
.vsc-line[style*="--l-idx: 7"] { animation-delay: 2.6s; }

@keyframes vsc-type-action { to { opacity: 1; width: 100%; } }

.vsc-cursor {
    display: inline-block; width: 2px; height: 1.2em; background: #528bff;
    vertical-align: middle; animation: vsc-blink 0.8s step-end infinite;
}
@keyframes vsc-blink { from, to { background: transparent } 50% { background: #528bff } }

/* Coloration (One Dark Pro) */
.vsc-t--php { color: #c678dd; } .vsc-t--keyword { color: #e06c75; font-weight: 600; }
.vsc-t--class { color: #e5c07b; } .vsc-t--variable { color: #ef596f; }
.vsc-t--function { color: #61afef; } .vsc-t--string { color: #98c379; }

@keyframes vsc-window-fade { to { opacity: 0; filter: blur(30px); transform: scale(1.05); visibility: hidden; } }

/* ============================================================
   3. CONFIGURATION DES MASQUES (UNIQUEMENT SUR HOME)
   ============================================================ */
/* On s'assure que les cibles ne passent au noir que si on est sur la home d'origine */
.page-home .layer-target--hero,
.page-home .layer-target--flow {
    position: relative;
    background: #0d0d11;
    transition: background 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-home .layer-target--hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-primary) 100%);
    z-index: 0;
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-home .layer-target--content {
    position: relative;
    z-index: 2;
}

.page-home .layer-target--content,
.page-home .layer-target--galaxy {
    opacity: 0;
    filter: blur(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), filter 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Animations de matérialisation déclenchées par le body de la home */
body.page-home:not(.pipeline-bypass) .layer-target--hero::before {
    animation: materialise-hero-gradient 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 1.3s;
}
body.page-home:not(.pipeline-bypass) .layer-target--content {
    animation: materialise-ui-sharp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 1.3s;
}

@keyframes materialise-hero-gradient {
    to { opacity: 1; }
}

body.page-home:not(.pipeline-bypass) .layer-target--galaxy {
    transform: perspective(1200px) rotateX(25deg) rotateY(-25deg) translateZ(-150px);
    animation: materialise-galaxy-3d 1.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    animation-delay: 1.8s;
}

@keyframes materialise-galaxy-3d {
    to { 
        opacity: 1; 
        filter: blur(0px); 
        transform: perspective(1200px) rotateX(10deg) rotateY(-10deg) translateZ(0); 
    }
}

body.page-home:not(.pipeline-bypass) .layer-target--flow {
    transform: translateY(30px);
    animation: materialise-flow-bg 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 2.3s;
}

@keyframes materialise-flow-bg {
    to { 
        background: transparent; 
        opacity: 1;
        filter: blur(0px);
        transform: translateY(0);
    }
}

@keyframes materialise-ui-sharp {
    to { opacity: 1; filter: blur(0px); transform: scale(1); }
}

/* ============================================================
   COURT-CIRCUIT DE SÉCURITÉ SESSION (BYPASS IMMÉDIAT)
   ============================================================ */
.pipeline-bypass .vsc-editor-fluid { display: none !important; }
.pipeline-bypass .navbar, .pipeline-bypass .footer { opacity: 1; transform: none; pointer-events: auto; }
.pipeline-bypass .layer-target--hero::before { opacity: 1; }
.pipeline-bypass .layer-target--flow { background: transparent; transform: none; }
.pipeline-bypass .layer-target--content, 
.pipeline-bypass .layer-target--galaxy, 
.pipeline-bypass .layer-target--flow { opacity: 1; filter: blur(0); transform: none; }
.pipeline-bypass .layer-target--galaxy { transform: perspective(1200px) rotateX(10deg) rotateY(-10deg); }

/* ============================================================
   1. HERO ENRICHI
   ============================================================ */
.hero--enhanced {
    position: relative;
    overflow: hidden;
    padding-block: clamp(4rem, 8vw, 7rem) clamp(3rem, 6vw, 5rem);
}

/* Section eyebrow (utilisée dans plusieurs sections) */
.section__eyebrow {
    display: inline-block;
    font-family: ui-monospace, "JetBrains Mono", "Courier New", monospace;
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--color-primary);
    margin-bottom: 1rem;
    padding: .3rem .75rem;
    background: var(--color-primary-lt);
    border-radius: var(--radius-full);
}

/* --- Formes organiques en arrière-plan --- */
.hero__blobs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.hero__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .55;
    animation: blob-float 20s ease-in-out infinite;
}
.hero__blob--1 {
    width: 480px; height: 480px;
    background: #4F8CFF;
    top: -150px; right: -100px;
    animation-delay: 0s;
}
.hero__blob--2 {
    width: 380px; height: 380px;
    background: #7B5AFF;
    bottom: -120px; left: -80px;
    animation-delay: -7s;
    opacity: .45;
}
.hero__blob--3 {
    width: 320px; height: 320px;
    background: #C2F03A;
    top: 35%; left: 40%;
    animation-delay: -14s;
    opacity: .25;
}
@keyframes blob-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(30px, -20px) scale(1.06); }
    66%      { transform: translate(-20px, 30px) scale(.95); }
}

/* --- Grille technique en filigrane --- */
.hero__grid-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.hero--enhanced .hero__inner,
.hero--enhanced .hero__content,
.hero--enhanced .hero__visual {
    position: relative;
    z-index: 1;
}

/* --- Eyebrow live --- */
.hero__badge--live {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-transform: none;
    letter-spacing: .02em;
    font-weight: 500;
    font-family: ui-monospace, "JetBrains Mono", monospace;
    padding: .45rem 1rem;
}
.hero__badge-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent-lime);
    box-shadow: 0 0 0 4px rgba(194, 240, 58, .25);
    animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.25); }
}

/* --- Titre amélioré --- */
.hero--enhanced .hero__title {
    font-size: clamp(2.2rem, 5.2vw, 4rem);
    line-height: 1.05;
    letter-spacing: -.025em;
    font-weight: 800;
    margin-bottom: 1.5rem;
}
.hero__title-accent {
    position: relative;
    display: inline-block;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding: 0 .1em;
}
.hero__title-accent::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    bottom: .08em;
    height: 6px;
    background: var(--accent-lime);
    opacity: .35;
    border-radius: 2px;
    animation: highlight-grow 1.4s cubic-bezier(.16,1,.3,1) .8s both;
    transform-origin: left;
}
@keyframes highlight-grow {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

/* --- CTAs avec flèche animée --- */
.btn-arrow {
    display: inline-block;
    transition: transform .25s ease;
}
.btn:hover .btn-arrow { transform: translateX(4px); }

/* --- Trust strip --- */
.hero__trust {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 3vw, 2rem);
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,.12);
}
.hero__trust-item {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}
.hero__trust-item strong {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    line-height: 1;
    color: var(--color-white);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero__trust-item span {
    font-size: .8125rem;
    color: rgba(255,255,255,.65);
    line-height: 1.3;
    max-width: 14ch;
}
.hero__trust-divider {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,.15);
}

/* --- Visuel hero amélioré --- */
.hero--enhanced .hero__visual { 
    min-height: 420px; 
    perspective: 1000px; /* Active le contexte 3D pour la zone */
}

.hero__visual-stack {
    position: relative;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1;
    margin: 0 auto;
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(.16, 1, .3, 1);
}

/* Effet inclinaison subtile de l'ensemble au survol du Hero */
.hero--enhanced:hover .hero__visual-stack {
    transform: rotateX(10deg) rotateY(-10deg);
}

.hero__visual-stack .hero__shape {
    border-radius: 50%;
}
.hero__shape--main {
    position: absolute;
    inset: 8%;
    background: radial-gradient(circle at 30% 30%, rgba(110,168,254,.35), rgba(123,90,255,.15) 60%, transparent 80%);
    border: 1px solid rgba(255,255,255,.12);
    animation: rotate-slow 40s linear infinite;
}
.hero__shape--ring {
    position: absolute;
    inset: 0;
    border: 2px dashed rgba(255,255,255,.15);
    background: transparent;
    animation: rotate-slow 60s linear infinite reverse;
}
@keyframes rotate-slow {
    from { transform: rotate(0); }
    to   { transform: rotate(360deg); }
}
.hero__shape--dot {
    position: absolute;
    width: 12px; height: 12px;
    background: var(--accent-lime);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(194, 240, 58, .8);
}
.hero__shape--dot-1 { top: 10%; left: 50%; transform: translateX(-50%); }
.hero__shape--dot-2 { top: 50%; right: 5%; background: #6EA8FE; box-shadow: 0 0 20px rgba(110,168,254,.8); }
.hero__shape--dot-3 { bottom: 15%; left: 12%; background: var(--accent-pink); box-shadow: 0 0 20px rgba(255,107,157,.8); }

/* Cartes flottantes – Éclatement sur l'axe Z au survol */
.hero__floating {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem .9rem;
    background: rgba(255, 255, 255, .96);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 36px rgba(10, 20, 60, .25);
    color: var(--color-primary);
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .04em;
    backdrop-filter: blur(8px);
    transition: transform 0.6s cubic-bezier(.16, 1, .3, 1), box-shadow 0.6s;
    transform-style: preserve-3d;
}
.hero__floating svg { width: 16px; height: 16px; }
.hero__floating-label { color: var(--color-dark); }
.hero__floating--code {
    top: 12%; left: -8%;
    transform: translateZ(20px);
}
.hero__floating--auto {
    top: 45%; right: -10%;
    transform: translateZ(40px);
}
.hero__floating--data {
    bottom: 8%; left: 8%;
    transform: translateZ(30px);
}

/* Accentuation de la profondeur au survol de la section */
.hero--enhanced:hover .hero__floating--code { 
    transform: translate3D(-20px, -10px, 70px) rotate(-4deg); 
    box-shadow: -15px 20px 40px rgba(10, 20, 60, 0.35);
}
.hero--enhanced:hover .hero__floating--auto { 
    transform: translate3D(25px, -15px, 100px) rotate(5deg); 
    box-shadow: 20px 25px 45px rgba(10, 20, 60, 0.35);
}
.hero--enhanced:hover .hero__floating--data { 
    transform: translate3D(-10px, 20px, 85px) rotate(2deg); 
    box-shadow: -10px 20px 40px rgba(10, 20, 60, 0.35);
}


@keyframes float-card {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

/* ============================================================
   2. MARQUEE
   ============================================================ */
.marquee {
    background: var(--color-dark);
    color: var(--color-white);
    padding-block: 1.25rem;
    overflow: hidden;
    border-block: 1px solid rgba(255, 255, 255, .08);
    position: relative;
}
.marquee::before,
.marquee::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}
.marquee::before {
    left: 0;
    background: linear-gradient(90deg, var(--color-dark), transparent);
}
.marquee::after {
    right: 0;
    background: linear-gradient(-90deg, var(--color-dark), transparent);
}
.marquee__track {
    display: inline-flex;
    align-items: center;
    gap: 2.5rem;
    white-space: nowrap;
    animation: marquee-scroll 38s linear infinite;
}
.marquee__item {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 600;
    letter-spacing: -.01em;
}
.marquee__sep {
    color: var(--accent-lime);
    font-size: 1rem;
}
@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ============================================================
   3. SECTION HEAD (groupe eyebrow + title + subtitle centré)
   ============================================================ */
.section-head {
    text-align: center;
    margin-bottom: 3rem;
}
.section-head .section__eyebrow { margin-bottom: 1rem; }
.section-head .section__title   { margin-bottom: .75rem; }
.section-head .section__subtitle{ margin-bottom: 0; }

/* ============================================================
   3b. PILIERS AMÉLIORÉS
   ============================================================ */
.pillars { position: relative; }
.section__title { line-height: 1.15; letter-spacing: -.02em; }

.pillars__grid { margin-top: 2rem; }

.card--pillar-enhanced {
    position: relative;
    padding: 2.5rem 2rem 2rem;
    text-align: left;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    z-index: 1;
    transition: transform .35s ease, box-shadow .35s ease;
}
.card--pillar-enhanced::before {
    content: "";
    position: absolute;
    inset: -1px; /* Dépasse de 1px pour faire la bordure */
    border-radius: var(--radius-lg);
    background: conic-gradient(from 0deg, transparent 40%, var(--color-primary), var(--accent-lime), transparent 60%);
    z-index: -2;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: laser-rotate 4s linear infinite;
}

/* Le cache intérieur blanc pour ne laisser voir que le bord de 1px */
.card--pillar-enhanced::after {
    content: "";
    position: absolute;
    inset: 1px; /* Crée l'épaisseur de la bordure */
    background: var(--color-white);
    border-radius: calc(var(--radius-lg) - 1px);
    z-index: -1;
    transition: background 0.3s;
}

@keyframes laser-rotate {
    to { transform: rotate(360deg); }
}

.card--pillar-enhanced:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

/* Révélation du laser au survol */
.card--pillar-enhanced:hover::before {
    opacity: 1;
}

.card__num {
    position: absolute;
    top: 1.5rem;
    right: 1.75rem;
    font-family: ui-monospace, "JetBrains Mono", monospace;
    font-size: .75rem;
    font-weight: 700;
    color: var(--color-gray-lt);
    letter-spacing: .08em;
    opacity: .6;
}

.card--pillar-enhanced .card__icon {
    margin: 0 0 1.5rem;
    background: var(--color-primary-lt);
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-md);
    transition: background .3s, color .3s;
}
.card--pillar-enhanced:hover .card__icon {
    background: var(--color-primary);
    color: var(--color-white);
}

.card--pillar-enhanced .card__title {
    font-size: 1.3rem;
    margin-bottom: .75rem;
    letter-spacing: -.01em;
}

.card--pillar-enhanced .card__text {
    margin-bottom: 1.25rem;
    line-height: 1.65;
}

.card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px dashed var(--color-border);
    padding-top: 1rem;
}
.card__features li {
    position: relative;
    padding: .4rem 0 .4rem 1.5rem;
    font-size: .875rem;
    color: var(--color-dark);
    font-weight: 500;
}
.card__features li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
}
.card--pillar-enhanced:hover .card__features li::before {
    animation: arrow-bounce .5s ease;
}
@keyframes arrow-bounce {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(4px); }
}

.card--pillar-enhanced .card__link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    transition: gap .25s ease;
}
.card--pillar-enhanced .card__link:hover { gap: .65rem; text-decoration: none; }

/* ============================================================
   4. PROCESS – Timeline Scroll-Driven
   ============================================================ */
.process { position: relative; }

.process__timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

/* Ligne de fond (éteinte) */
.process__line {
    position: absolute;
    top: 1.5rem; left: 12%; right: 12%;
    height: 2px;
    background: rgba(26, 78, 140, 0.15);
    z-index: 0;
}

/* Ligne active qui se remplit au scroll */
.process__line::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--color-primary), var(--accent-lime));
    transform-origin: left;
    transform: scaleX(0); /* Reste à 0 par défaut si non supporté */
    
    /* Magie CSS Scroll-Driven */
    animation: fill-process-line linear both;
    animation-timeline: view();
    animation-range: entry 10% exit 60%;
}

@keyframes fill-process-line {
    to { transform: scaleX(1); }
}

.process__step {
    position: relative;
    text-align: center;
    z-index: 1;
}

.process__num {
    width: 3rem; height: 3rem;
    margin: 0 auto 1rem;
    background: var(--color-white);
    border: 2px solid var(--color-border);
    color: var(--color-gray-lt);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: ui-monospace, "JetBrains Mono", monospace;
    font-weight: 700; font-size: .9rem;
    box-shadow: 0 0 0 6px var(--color-white);
    
    /* Animation du cercle au scroll */
    animation: activate-step linear both;
    animation-timeline: view();
    animation-range: entry 30% exit 70%;
}

@keyframes activate-step {
    50%, 100% {
        border-color: var(--color-primary);
        background: var(--color-primary);
        color: var(--color-white);
        transform: scale(1.1);
        box-shadow: 0 0 20px rgba(26, 78, 140, 0.2), 0 0 0 6px var(--color-white);
    }
}

.process__title, .process__text {
    animation: fade-step-text linear both;
    animation-timeline: view();
    animation-range: entry 25% exit 75%;
}

@keyframes fade-step-text {
    from { opacity: 0.4; transform: translateY(5px); }
    50%, 100% { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   5. VALUE PROP – Text Reveal Mot par Mot
   ============================================================ */
.value-prop__quote--enhanced {
    position: relative;
    font-size: clamp(1.4rem, 3vw, 2rem);
    line-height: 1.4;
    font-weight: 600;
    font-style: normal;
    color: var(--color-dark);
    max-width: 760px;
    margin-inline: auto;
    padding: 3rem 2.5rem;
    background: var(--color-light);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

/* Style de base des mots : éteints */
.reveal-word {
    color: rgba(26, 26, 46, 0.15); /* Presque invisible */
    display: inline-block;
    transition: color 0.2s ease;
    
    /* Configuration du reveal au scroll */
    animation: reveal-text-glow linear both;
    animation-timeline: view();
    /* L'effet se produit quand la citation passe au centre de l'écran */
    animation-range: entry 30% exit 65%;
}

/* Calcul du delay d'apparition mot par mot basé sur la variable PHP index */
@keyframes reveal-text-glow {
    to {
        color: var(--color-dark);
    }
}

/* Cas particulier pour l'élément en em (métier) et le surbrillant */
em.reveal-word {
    font-style: italic;
    background: none;
    -webkit-text-fill-color: initial;
}
em.reveal-word.reveal-text-glow {
    animation: reveal-text-gradient linear both;
    animation-timeline: view();
    animation-range: entry 30% exit 65%;
}
@keyframes reveal-text-gradient {
    to {
        background: var(--gradient-text);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
}

.value-prop__highlight.reveal-word {
    color: rgba(26, 78, 140, 0.15);
}
.value-prop__highlight.reveal-word::after {
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

/* Quand le scroll atteint le point culminant, on trace la ligne sous "fonctionnent vraiment" */
@keyframes reveal-highlight-line {
    to { transform: scaleX(1); }
}

/* ============================================================
   6. CTA BANNER AMÉLIORÉ
   ============================================================ */
.cta-banner--enhanced {
    position: relative;
    overflow: hidden;
}
.cta-banner__decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.cta-banner__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .35;
}
.cta-banner__blob--1 {
    width: 420px; height: 420px;
    background: #4F8CFF;
    top: -150px; left: -100px;
    animation: blob-float 22s ease-in-out infinite;
}
.cta-banner__blob--2 {
    width: 360px; height: 360px;
    background: var(--accent-lime);
    bottom: -150px; right: -80px;
    animation: blob-float 22s ease-in-out infinite reverse;
    animation-delay: -10s;
    opacity: .2;
}

.cta-banner--enhanced .cta-banner__inner {
    position: relative;
    z-index: 1;
}
.cta-banner__eyebrow {
    display: inline-block;
    font-family: ui-monospace, "JetBrains Mono", monospace;
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .08em;
    color: rgba(255,255,255,.85);
    background: rgba(255,255,255,.1);
    padding: .35rem .85rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,.15);
}
.cta-banner--enhanced .cta-banner__title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    letter-spacing: -.02em;
    line-height: 1.1;
}
.cta-banner__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}
.cta-banner__email {
    font-family: ui-monospace, "JetBrains Mono", monospace;
    font-size: .9rem;
    color: rgba(255,255,255,.75);
    border-bottom: 1px solid rgba(255,255,255,.4);
    padding-bottom: 2px;
    transition: color var(--transition);
}
.cta-banner__email:hover { color: var(--accent-lime); border-color: var(--accent-lime); }

/* ============================================================
   7. LATEST ARTICLES – petite touche
   ============================================================ */
.latest-articles { position: relative; }

/* ============================================================
   8. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .hero--enhanced .hero__visual { display: none; }
    .hero__trust {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
    .hero__trust-item { align-items: center; }
}

@media (max-width: 640px) {
    .hero__trust-divider { display: none; }
    .hero__trust {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    .hero__trust-item { flex-direction: row; align-items: baseline; gap: .75rem; }
    .hero__trust-item span { max-width: none; }

    .marquee { padding-block: 1rem; }
    .marquee__item { font-size: 1rem; }
}

/* ============================================================
   9. ACCESSIBILITÉ – reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .hero__blob,
    .cta-banner__blob,
    .hero__shape--main,
    .hero__shape--ring,
    .hero__floating,
    .marquee__track,
    .hero__badge-dot {
        animation: none !important;
    }
    .hero__title-accent::after {
        animation: none !important;
        transform: scaleX(1);
    }
}


/* Gestion dynamique du scroll natif */
html, body { overflow-x: hidden; }
body { animation: body-lock-timer 4.6s step-end forwards; }
.preload-skip body { animation: none; overflow-y: auto; height: auto; }

@keyframes body-lock-timer {
    from { overflow-y: hidden; height: 100vh; }
    to   { overflow-y: auto; height: auto; }
}