/* =====================================================================
   SRB ELEC v2 — Stylesheet principal
   Palette : violet / bleu / cyan vibrant
   ALTER PERCEPTION framework
   ===================================================================== */

/* ===== 1. DESIGN TOKENS ============================================== */
:root {
    /* === Palette vibrant tech === */
    --primary: #1E3A8A;          /* Bleu royal */
    --primary-dark: #0F1F5C;     /* Bleu nuit pour hover */
    --primary-deep: #0A0E2C;     /* Bleu nuit profond pour bg */

    --violet: #6D28D9;           /* Violet profond */
    --violet-light: #8B5CF6;     /* Violet clair */
    --violet-soft: #A78BFA;      /* Violet pâle */

    --cyan: #0EA5E9;             /* Cyan électrique */
    --cyan-light: #22D3EE;       /* Cyan clair */
    --cyan-glow: #67E8F9;        /* Cyan glow */

    /* Gradients signature */
    --gradient-main: linear-gradient(135deg, #1E3A8A 0%, #6D28D9 50%, #0EA5E9 100%);
    --gradient-soft: linear-gradient(135deg, #3B4F8A 0%, #6D28D9 50%, #22D3EE 100%);
    --gradient-text: linear-gradient(135deg, #0EA5E9 0%, #6D28D9 100%);
    --gradient-cta: linear-gradient(135deg, #6D28D9 0%, #1E3A8A 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);

    /* Neutres warm */
    --white: #FFFFFF;
    --paper: #FAFAFC;            /* Background principal */
    --off-white: #F1F0F7;        /* Fonds alternés */
    --ink: #0F1024;              /* Texte courant */
    --gray-700: #3A3D5A;
    --gray-500: #6B7290;
    --gray-300: #C5C8DC;
    --gray-200: #E8E9F3;
    --gray-100: #F0F1F8;

    /* Typographie */
    --font-display: 'Inter', system-ui, -apple-system, sans-serif;
    --font-editorial: 'Instrument Serif', Georgia, serif;

    /* Layout */
    --container: 1320px;
    --container-narrow: 960px;
    --radius-sm: 8px;
    --radius: 16px;
    --radius-lg: 28px;
    --radius-xl: 36px;
    --radius-full: 999px;

    /* Espacement */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-8: 3rem;
    --space-10: 4rem;
    --space-12: 6rem;
    --space-16: 8rem;

    /* Motion */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Navbar */
    --nav-h: 80px;
    --nav-h-scrolled: 64px;

    /* Shadows colorées */
    --shadow-soft: 0 10px 40px -10px rgba(30, 58, 138, 0.14);
    --shadow-card: 0 20px 60px -20px rgba(30, 58, 138, 0.25);
    --shadow-violet: 0 20px 60px -15px rgba(109, 40, 217, 0.4);
    --shadow-cyan: 0 20px 60px -15px rgba(14, 165, 233, 0.4);
    --shadow-glow: 0 0 40px rgba(109, 40, 217, 0.3), 0 0 80px rgba(14, 165, 233, 0.2);
}

/* ===== 2. RESET & BASE =============================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-display);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
::selection { background: var(--violet); color: var(--white); }

/* ===== 3. TYPOGRAPHIE ================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--primary);
}

h1 {
    font-size: clamp(2.5rem, 5.8vw, 4.8rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

h2 {
    font-size: clamp(2rem, 4.2vw, 3.2rem);
    margin-bottom: var(--space-5);
    letter-spacing: -0.03em;
}

h3 {
    font-size: clamp(1.35rem, 2.2vw, 1.7rem);
    margin-bottom: var(--space-3);
    font-weight: 600;
}

h4 { font-size: 1.15rem; font-weight: 600; }

/* Accents éditoriaux Instrument Serif italique + gradient */
.editorial,
em.editorial,
.editorial em,
h1 em, h2 em, h3 em {
    font-family: var(--font-editorial);
    font-style: italic;
    font-weight: 400;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.01em;
}

p { margin-bottom: var(--space-4); }
p:last-child { margin-bottom: 0; }

.lead {
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    line-height: 1.6;
    color: var(--gray-700);
}

/* ===== 4. LAYOUT ===================================================== */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.container-narrow {
    width: 100%;
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

section {
    min-height: 100vh;
    min-height: 100dvh;
    padding: var(--space-16) 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

section.compact { min-height: auto; padding: var(--space-10) 0; display: block; }
section.flow { min-height: auto; display: block; padding: var(--space-12) 0; }
section.section-fit {
    min-height: 0;
    height: 100vh;
    height: 100dvh;
    padding: var(--space-10) 0;
}

.section-intro {
    max-width: 760px;
    margin-bottom: var(--space-10);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--violet);
    margin-bottom: var(--space-4);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.eyebrow::before {
    content: '';
    width: 32px;
    height: 2px;
    background: var(--gradient-main);
    -webkit-text-fill-color: initial;
}

/* ===== 5. DECORATIVE GRID PATTERN (background) ======================= */
.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(109, 40, 217, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(109, 40, 217, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.bg-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1.5px, transparent 1.5px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: 0;
}

.bg-mesh {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-mesh::before,
.bg-mesh::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: mesh-drift 20s ease-in-out infinite alternate;
}

.bg-mesh::before {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--violet) 0%, transparent 70%);
    top: -200px;
    left: -100px;
}

.bg-mesh::after {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--cyan) 0%, transparent 70%);
    bottom: -300px;
    right: -200px;
    animation-delay: -10s;
}

@keyframes mesh-drift {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(60px, -40px) scale(1.1); }
    100% { transform: translate(-40px, 60px) scale(0.95); }
}

/* Container above background */
section > .container,
section > .container-narrow { position: relative; z-index: 1; }

/* ===== 6. CASCADE .section-dark ====================================== */
.section-dark {
    background: var(--primary-deep);
    color: var(--off-white);
    overflow: hidden;
}

.section-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(109, 40, 217, 0.35) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 20% 80%, rgba(14, 165, 233, 0.25) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6 { color: var(--white); }

.section-dark .lead,
.section-dark p { color: rgba(255, 255, 255, 0.82); }

.section-dark .eyebrow {
    background: linear-gradient(135deg, var(--cyan-light) 0%, var(--violet-soft) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-dark .eyebrow::before {
    background: linear-gradient(90deg, var(--cyan-light), var(--violet-soft));
}

.section-dark .editorial,
.section-dark em.editorial,
.section-dark .editorial em,
.section-dark h1 em, .section-dark h2 em, .section-dark h3 em {
    background: linear-gradient(135deg, var(--cyan-glow) 0%, var(--violet-soft) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-dark a:not(.btn) {
    color: var(--cyan-light);
    border-bottom: 1px solid rgba(34, 211, 238, 0.4);
}

.section-dark a:not(.btn):hover { border-bottom-color: var(--cyan-light); }

.section-dark .card {
    background: var(--gradient-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-color: rgba(255, 255, 255, 0.1);
}

.section-dark .card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(167, 139, 250, 0.5);
    box-shadow: var(--shadow-violet);
}

.section-dark .card h3 { color: var(--white); }
.section-dark .divider { background: rgba(255, 255, 255, 0.12); }

.section-dark .btn-secondary {
    background: transparent;
    color: var(--off-white);
    border-color: rgba(255, 255, 255, 0.3);
}

.section-dark .btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

/* ===== 7. NAVBAR ===================================================== */
.navbar {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--nav-h);
    background: rgba(250, 250, 252, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid transparent;
    z-index: 100;
    transition: height var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
    height: var(--nav-h-scrolled);
    border-bottom-color: rgba(232, 233, 243, 0.6);
    background: rgba(250, 250, 252, 0.92);
    box-shadow: 0 10px 30px -20px rgba(15, 16, 36, 0.15);
}

.navbar .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    height: 100%;
}

.nav-logo img {
    height: 44px;
    width: auto;
    transition: height var(--transition);
}

.navbar.scrolled .nav-logo img { height: 36px; }

.nav-links ul {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    list-style: none;
}

.nav-links a {
    font-size: 0.93rem;
    font-weight: 500;
    color: var(--ink);
    position: relative;
    padding: var(--space-2) 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 2px;
    background: var(--gradient-main);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.nav-links a[aria-current="page"] {
    color: var(--primary);
    font-weight: 600;
}

/* Burger */
.nav-burger {
    display: none;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    z-index: 102;
    position: relative;
}

.nav-burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
    transform-origin: center;
}

.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Overlay sibling */
.nav-overlay {
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: var(--paper);
    z-index: 99;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1),
                opacity 0.3s ease,
                visibility 0s linear 0.45s;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: var(--space-8) var(--space-6);
}

.nav-overlay[data-open="true"] {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1),
                opacity 0.3s ease,
                visibility 0s linear 0s;
}

.nav-overlay ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-bottom: auto;
}

.nav-overlay li a {
    font-size: clamp(1.8rem, 6vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--primary);
    display: inline-block;
    padding: var(--space-2) 0;
}

.nav-overlay-footer {
    padding-top: var(--space-8);
    border-top: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    font-size: 0.92rem;
    color: var(--gray-700);
}

.nav-overlay-footer a { color: var(--primary); font-weight: 600; }
.nav-overlay-footer strong {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

body[data-menu-open="true"] { overflow: hidden; }

/* ===== 8. BUTTONS ==================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: 1rem 1.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    transition: transform var(--transition), background var(--transition), box-shadow var(--transition), color var(--transition);
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition);
}

.btn:hover svg { transform: translateX(4px); }

.btn-primary {
    background: var(--gradient-cta);
    color: var(--white);
    box-shadow: 0 10px 30px -10px rgba(109, 40, 217, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--cyan) 0%, var(--violet) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-violet), 0 0 30px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover::before { opacity: 1; }

.btn-primary > * { position: relative; z-index: 1; }

.btn-accent {
    background: var(--gradient-main);
    color: var(--white);
    box-shadow: 0 10px 30px -10px rgba(14, 165, 233, 0.4);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-cyan);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border-color: var(--gray-300);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-glow {
    background: var(--gradient-cta);
    color: var(--white);
    position: relative;
}

.btn-glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-main);
    border-radius: var(--radius-full);
    z-index: -1;
    filter: blur(12px);
    opacity: 0.6;
    transition: opacity var(--transition);
}

.btn-glow:hover::after { opacity: 1; }

/* ===== 9. HERO ======================================================= */
.hero {
    position: relative;
    min-height: 0;
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-h) + var(--space-6)) 0 var(--space-6);
    overflow: hidden;
    background: var(--paper);
}

.hero-bg-mesh {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.hero-bg-mesh::before,
.hero-bg-mesh::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.hero-bg-mesh::before {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(109, 40, 217, 0.35) 0%, transparent 70%);
    top: -150px;
    right: -100px;
    animation: float-slow 25s ease-in-out infinite alternate;
}

.hero-bg-mesh::after {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.3) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation: float-slow 25s ease-in-out infinite alternate-reverse;
}

@keyframes float-slow {
    0%   { transform: translate(0,0) scale(1); }
    100% { transform: translate(80px, -60px) scale(1.15); }
}

.hero > .container {
    position: relative;
    z-index: 2;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-12);
    align-items: center;
}

.hero-content { max-width: 660px; }
.hero h1 { margin-bottom: var(--space-5); }

.hero-lead {
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    color: var(--gray-700);
    margin-bottom: var(--space-8);
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-bottom: var(--space-10);
}

.hero-meta {
    display: flex;
    gap: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--gray-200);
}

.hero-meta-item .num {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    display: block;
    margin-bottom: var(--space-2);
    letter-spacing: -0.04em;
}

.hero-meta-item .lbl {
    font-size: 0.82rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

/* Hero visuel : image avec overlay gradient + glow */
.hero-visual {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card), 0 0 80px rgba(109, 40, 217, 0.25);
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s ease;
}

.hero-visual:hover img { transform: scale(1.04); }

.hero-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.35) 0%, rgba(109, 40, 217, 0.2) 50%, rgba(14, 165, 233, 0.25) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-visual::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: var(--gradient-main);
    z-index: -1;
    filter: blur(20px);
    opacity: 0.4;
}

.hero-badge {
    position: absolute;
    bottom: var(--space-6);
    left: var(--space-6);
    right: var(--space-6);
    background: rgba(15, 16, 36, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    padding: var(--space-5);
    color: var(--white);
    z-index: 2;
}

.hero-badge-title {
    font-family: var(--font-editorial);
    font-style: italic;
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    line-height: 1.3;
    margin-bottom: var(--space-4);
    color: var(--white);
}

.hero-badge-title em {
    background: linear-gradient(135deg, var(--cyan-glow) 0%, var(--violet-soft) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: italic;
}

.hero-badge-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
    padding-top: var(--space-4);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-badge-item {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 500;
}

.hero-badge-item strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--white);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: none;
    margin-top: 4px;
}

/* ===== 10. CARDS (glass + gradient border on hover) ================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

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

.card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

a.card { color: inherit; }

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: var(--gradient-main);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-violet);
    border-color: transparent;
}

.card:hover::before { opacity: 1; }

.card-icon {
    padding: var(--space-6) var(--space-6) 0;
    color: var(--violet);
    position: relative;
}

.card-icon svg { width: 40px; height: 40px; }

.card-icon::after {
    content: '';
    position: absolute;
    top: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: var(--gradient-main);
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0.2;
    z-index: -1;
}

.card-body {
    padding: var(--space-5) var(--space-6) var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    flex: 1;
}

.card-tag {
    display: inline-block;
    align-self: flex-start;
    padding: 0.3rem 0.8rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.12) 0%, rgba(14, 165, 233, 0.12) 100%);
    color: var(--violet);
    border-radius: var(--radius-full);
}

.card h3 { color: var(--primary); }

.card-body p {
    color: var(--gray-700);
    font-size: 0.95rem;
    line-height: 1.6;
}

.card-link {
    margin-top: auto;
    padding-top: var(--space-4);
    font-size: 0.88rem;
    font-weight: 600;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.card-link::after {
    content: '→';
    transition: transform var(--transition);
    -webkit-text-fill-color: var(--violet);
}

.card:hover .card-link::after { transform: translateX(6px); }

/* Card with media (image) */
.card.with-media .card-media {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.card.with-media .card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.card.with-media:hover .card-media img { transform: scale(1.08); }

.card.with-media .card-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(15, 16, 36, 0.6) 100%);
}

/* ===== 11. SPLIT SECTION ============================================ */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

.split.reverse .split-text { order: 2; }
.split.airy { gap: var(--space-16); }
.split.airy .split-text > * + * { margin-top: var(--space-5); }
.split.airy .split-text h2 { margin-bottom: var(--space-2); line-height: 1.15; }
.split.airy .split-text .lead { margin-bottom: var(--space-4); }

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin: 0;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    font-size: 0.96rem;
    color: var(--gray-700);
    line-height: 1.55;
}

.feature-list li::before {
    content: '';
    width: 22px;
    height: 2px;
    background: var(--gradient-main);
    flex-shrink: 0;
    margin-top: 0.7rem;
    border-radius: 2px;
}

.feature-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--space-4);
}

.split-visual {
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    position: relative;
}

.split-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s ease;
}

.split-visual:hover img { transform: scale(1.05); }

.split-visual.wide { aspect-ratio: 5 / 4; }

.split-visual::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: var(--gradient-main);
    z-index: -1;
    filter: blur(24px);
    opacity: 0.3;
}

/* Split-visual figure-block (sans photo, décoratif) */
.split-visual.figure-block {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: var(--space-10);
    aspect-ratio: 4 / 5;
    background: var(--gradient-cta);
    color: var(--white);
    overflow: hidden;
}

.split-visual.figure-block::before {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -30%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--cyan) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0.5;
}

.split-visual.figure-block .figure-number {
    position: relative;
    z-index: 2;
    font-size: clamp(4rem, 12vw, 8.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--white);
}

.split-visual.figure-block .figure-number em {
    color: var(--cyan-glow);
    font-style: italic;
    font-family: var(--font-editorial);
    font-weight: 400;
    -webkit-text-fill-color: var(--cyan-glow);
    background: none;
}

.split-visual.figure-block .figure-label {
    position: relative;
    z-index: 2;
    font-family: var(--font-editorial);
    font-style: italic;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.9);
}

/* Split text overlay tag */
.split-text-tag {
    display: inline-block;
    margin-bottom: var(--space-4);
}

/* ===== 12. APPROACH LIST (numérotée) ================================ */
.approach-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

.approach-item {
    padding: var(--space-6);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    position: relative;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
    background: var(--white);
    overflow: hidden;
}

.approach-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-main);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.approach-item:hover {
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: var(--shadow-violet);
}

.approach-item:hover::before { transform: scaleX(1); }

.approach-item .num {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    display: block;
    margin-bottom: var(--space-4);
    letter-spacing: -0.03em;
    font-family: var(--font-editorial);
    font-style: italic;
    font-weight: 400;
}

.section-dark .approach-item {
    background: var(--gradient-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-color: rgba(255, 255, 255, 0.1);
}

.section-dark .approach-item:hover {
    border-color: rgba(167, 139, 250, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.section-dark .approach-item .num {
    background: linear-gradient(135deg, var(--cyan-glow) 0%, var(--violet-soft) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== 13. QUOTE ==================================================== */
.quote {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: var(--space-12) var(--space-6);
    position: relative;
}

.quote-mark {
    font-size: 6rem;
    line-height: 0.5;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    margin-bottom: var(--space-6);
    font-weight: 700;
    font-family: var(--font-editorial);
}

.quote-text {
    font-family: var(--font-editorial);
    font-size: clamp(1.6rem, 3vw, 2.6rem);
    line-height: 1.35;
    color: var(--primary);
    margin-bottom: var(--space-6);
    font-weight: 400;
    letter-spacing: -0.015em;
    font-style: italic;
}

.section-dark .quote-text { color: var(--white); }

.quote-author {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 500;
    font-style: normal;
}

/* ===== 14. CTA BLOCK ================================================ */
.cta-block {
    background: var(--primary-deep);
    color: var(--white);
    padding: var(--space-12) var(--space-8);
    border-radius: var(--radius-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-block::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(109, 40, 217, 0.5) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 20% 80%, rgba(14, 165, 233, 0.35) 0%, transparent 50%);
    pointer-events: none;
}

.cta-block::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.04) 1.5px, transparent 1.5px);
    background-size: 30px 30px;
    pointer-events: none;
}

.cta-block > * { position: relative; z-index: 2; }
.cta-block h2 { color: var(--white); margin-bottom: var(--space-4); }

.cta-block p {
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto var(--space-8);
}

/* ===== 15. DIVIDER ================================================== */
.divider {
    height: 1px;
    background: var(--gray-200);
    margin: var(--space-12) 0;
    width: 100%;
}

.divider-gradient {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--violet), transparent);
    margin: var(--space-12) 0;
    width: 100%;
}

/* ===== 16. ZONES GRID (pour pages SEO locales) ====================== */
.zones-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
}

.zone-pill {
    padding: var(--space-5);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.zone-pill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--gradient-main);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s ease;
}

.zone-pill:hover {
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: var(--shadow-violet);
}

.zone-pill:hover::before { transform: scaleY(1); }

.zone-pill h3 {
    font-size: 1rem;
    margin: 0 0 var(--space-2);
    color: var(--primary);
}

.zone-pill p {
    font-size: 0.86rem;
    color: var(--gray-700);
    line-height: 1.5;
    margin: 0;
}

.zone-pill a { color: var(--violet); border-bottom: 1px solid currentColor; }

/* ===== 17. FOOTER =================================================== */
.footer {
    background: var(--primary-deep);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--space-12) 0 var(--space-8);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 100%, rgba(109, 40, 217, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 10% 0%, rgba(14, 165, 233, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.footer > .container { position: relative; z-index: 1; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: var(--space-8);
    margin-bottom: var(--space-10);
}

.footer-brand img {
    height: 56px;
    width: auto;
    margin-bottom: var(--space-4);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.5;
    max-width: 320px;
    font-family: var(--font-editorial);
    font-style: italic;
}

.footer-col h4 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    background: linear-gradient(135deg, var(--cyan-glow) 0%, var(--violet-soft) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--space-5);
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.92rem;
    transition: color var(--transition);
}

.footer-col a:hover { color: var(--cyan-light); }

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact strong { color: var(--white); font-weight: 600; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
    padding-top: var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links {
    display: flex;
    gap: var(--space-5);
    list-style: none;
    flex-wrap: wrap;
}

/* ===== 18. SOUS-FOOTER AGENCE (DOFOLLOW) =========================== */
.agency-credit {
    padding: 1rem 0;
    background: var(--primary-deep);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
}

.agency-credit p { margin: 0; line-height: 1.5; }

.agency-credit a {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.25s ease;
}

.agency-credit a:hover {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--violet-soft);
}

/* ===== 19. BACK TO TOP ============================================== */
.back-to-top {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-cta);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px -5px rgba(109, 40, 217, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity var(--transition), transform var(--transition), visibility 0s linear var(--transition), box-shadow var(--transition);
    z-index: 50;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity var(--transition), transform var(--transition), visibility 0s linear 0s, box-shadow var(--transition);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px -5px rgba(109, 40, 217, 0.7), 0 0 30px rgba(14, 165, 233, 0.4);
}

.back-to-top svg { width: 18px; height: 18px; }

/* ===== 20. REVEAL ANIMATIONS ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

.reveal.fade-left { transform: translateX(-40px); }
.reveal.fade-left.in-view { transform: translateX(0); }
.reveal.fade-right { transform: translateX(40px); }
.reveal.fade-right.in-view { transform: translateX(0); }
.reveal.scale { transform: scale(0.95); opacity: 0; }
.reveal.scale.in-view { transform: scale(1); opacity: 1; }

.reveal.stagger > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.stagger.in-view > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.reveal.stagger.in-view > *:nth-child(2) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.reveal.stagger.in-view > *:nth-child(3) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.reveal.stagger.in-view > *:nth-child(4) { transition-delay: 0.35s; opacity: 1; transform: translateY(0); }
.reveal.stagger.in-view > *:nth-child(5) { transition-delay: 0.45s; opacity: 1; transform: translateY(0); }
.reveal.stagger.in-view > *:nth-child(6) { transition-delay: 0.55s; opacity: 1; transform: translateY(0); }
.reveal.stagger.in-view > *:nth-child(7) { transition-delay: 0.65s; opacity: 1; transform: translateY(0); }
.reveal.stagger.in-view > *:nth-child(8) { transition-delay: 0.75s; opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    .reveal, .reveal.stagger > * { opacity: 1; transform: none; }
    .bg-mesh::before, .bg-mesh::after,
    .hero-bg-mesh::before, .hero-bg-mesh::after { animation: none; }
}

/* ===== 21. ACCESSIBILITY =========================================== */
:focus-visible {
    outline: 2px solid var(--violet);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

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

/* ===== 22. SCROLL INDICATOR (hero) ================================= */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-6);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    color: var(--gray-500);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 600;
    z-index: 3;
}

.scroll-indicator::after {
    content: '';
    width: 1px;
    height: 32px;
    background: linear-gradient(180deg, var(--violet), transparent);
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 0.4; transform: scaleY(0.8); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ===== 23. RESPONSIVE ============================================= */
@media (max-width: 1024px) {
    section { padding: var(--space-12) 0; }
    .cards-grid,
    .cards-grid.cols-4 { grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
    .zones-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
    .hero-grid { gap: var(--space-8); }
}

@media (max-width: 960px) {
    section,
    section.section-fit,
    .hero {
        min-height: auto;
        height: auto;
        padding-top: var(--space-12);
        padding-bottom: var(--space-12);
    }

    .nav-links { display: none; }
    .nav-burger { display: flex; }

    .hero { padding-top: calc(var(--nav-h) + var(--space-8)); }
    .hero-grid { grid-template-columns: 1fr; gap: var(--space-8); }
    .hero-visual { max-width: 540px; margin: 0 auto; }

    .split { grid-template-columns: 1fr; gap: var(--space-8); }
    .split.reverse .split-text { order: 0; }
    .split-visual { max-width: 580px; margin: 0 auto; }

    .approach-list { grid-template-columns: 1fr; gap: var(--space-4); }
    .scroll-indicator { display: none; }
}

@media (max-width: 768px) {
    h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
    h2 { font-size: clamp(1.6rem, 6vw, 2.3rem); }

    .container, .container-narrow { padding: 0 var(--space-5); }
    section { padding: var(--space-10) 0; }

    .cards-grid,
    .cards-grid.cols-2,
    .cards-grid.cols-4 { grid-template-columns: 1fr; }

    .zones-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
    :root { --nav-h: 70px; }
    .container, .container-narrow { padding: 0 1.25rem; }

    .hero-actions .btn { width: 100%; justify-content: center; }
    .hero-meta { gap: var(--space-5); flex-wrap: wrap; }
    .hero-meta-item .num { font-size: 1.8rem; }
    .hero-badge { padding: var(--space-4); }
    .hero-badge-grid { grid-template-columns: 1fr; gap: var(--space-3); }

    .cta-block { padding: var(--space-8) var(--space-5); }

    .back-to-top {
        bottom: var(--space-4);
        right: var(--space-4);
        width: 46px;
        height: 46px;
    }
}
