/* =========================================================
   Orkestral — Feuille de style principale
   Design system : SaaS premium, indigo + ambre, généreux
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
    /* Couleurs de marque */
    --brand-50:  #EEF2FF;
    --brand-100: #E0E7FF;
    --brand-200: #C7D2FE;
    --brand-300: #A5B4FC;
    --brand-400: #818CF8;
    --brand-500: #6366F1;
    --brand-600: #4F46E5;
    --brand-700: #4338CA;
    --brand-800: #312E81;
    --brand-900: #1E1B4B;
    --brand-950: #0B1437;

    /* Accent ambre (premium / orchestration) */
    --accent-400: #FBBF24;
    --accent-500: #F59E0B;
    --accent-600: #D97706;

    /* Neutres */
    --slate-50:  #F8FAFC;
    --slate-100: #F1F5F9;
    --slate-200: #E2E8F0;
    --slate-300: #CBD5E1;
    --slate-400: #94A3B8;
    --slate-500: #64748B;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1E293B;
    --slate-900: #0F172A;

    /* Sémantique */
    --bg:           #FFFFFF;
    --bg-soft:      var(--slate-50);
    --bg-dark:      var(--brand-950);
    --surface:      #FFFFFF;
    --text:         var(--slate-900);
    --text-muted:   var(--slate-600);
    --text-soft:    var(--slate-500);
    --border:       var(--slate-200);
    --border-strong:var(--slate-300);

    /* Typographie */
    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    /* Rayons */
    --r-sm:  8px;
    --r-md:  14px;
    --r-lg:  20px;
    --r-xl:  28px;
    --r-pill: 999px;

    /* Ombres */
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
    --shadow-md: 0 6px 18px -6px rgba(15, 23, 42, .12), 0 2px 4px rgba(15, 23, 42, .04);
    --shadow-lg: 0 20px 40px -12px rgba(30, 27, 75, .25), 0 8px 16px -8px rgba(15, 23, 42, .08);
    --shadow-glow: 0 0 0 6px rgba(99, 102, 241, .12);

    /* Containers */
    --container: 1200px;
    --container-narrow: 880px;

    /* Transitions */
    --t-fast: 120ms ease;
    --t-base: 220ms ease;
    --t-slow: 420ms cubic-bezier(.2, .8, .2, 1);

    /* Espaces */
    --section-y: clamp(64px, 8vw, 120px);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
a { color: var(--brand-700); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--brand-900); }

h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--slate-900);
    margin: 0 0 .5em;
}

h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); }
h4 { font-size: 1.0625rem; }

p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }

::selection { background: var(--brand-200); color: var(--brand-950); }

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--brand-900); color: #fff; padding: 10px 16px;
    border-radius: 0 0 var(--r-sm) 0; z-index: 1000;
}
.skip-link:focus { left: 0; }

/* ---------- Container ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
}
.container--narrow { max-width: var(--container-narrow); }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    padding: 12px 22px;
    border-radius: var(--r-pill);
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
    transition: transform var(--t-fast), background var(--t-base), box-shadow var(--t-base), color var(--t-base), border-color var(--t-base);
    white-space: nowrap;
    text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--brand-300); outline-offset: 2px; }

.btn--primary {
    background: linear-gradient(135deg, var(--brand-600), var(--brand-800));
    color: #fff;
    box-shadow: 0 6px 18px -6px rgba(79, 70, 229, .55);
}
.btn--primary:hover {
    background: linear-gradient(135deg, var(--brand-700), var(--brand-900));
    color: #fff;
    box-shadow: 0 10px 26px -8px rgba(79, 70, 229, .65);
}

.btn--secondary {
    background: var(--brand-950);
    color: #fff;
}
.btn--secondary:hover { background: #000; color: #fff; }

.btn--ghost {
    background: transparent;
    color: var(--slate-800);
    border-color: var(--border);
}
.btn--ghost:hover {
    background: var(--slate-50);
    color: var(--brand-900);
    border-color: var(--border-strong);
}

.btn--accent {
    background: var(--accent-500);
    color: var(--brand-950);
    box-shadow: 0 6px 16px -6px rgba(245, 158, 11, .55);
}
.btn--accent:hover { background: var(--accent-400); color: var(--brand-950); }

.btn--lg { padding: 14px 28px; font-size: 1rem; }
.btn--block { width: 100%; }

/* ---------- Header / nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--t-base), box-shadow var(--t-base), background var(--t-base);
}
.site-header.is-scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 80px;
}

.brand { display: inline-flex; align-items: center; }
.brand__logo { height: 56px; width: auto; display: block; }

.nav { flex: 1; display: flex; justify-content: center; }
.nav__list {
    display: flex;
    gap: 6px;
    margin: 0; padding: 0; list-style: none;
}
.nav__list a {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: var(--r-pill);
    color: var(--slate-700);
    font-weight: 500;
    font-size: .95rem;
    transition: background var(--t-fast), color var(--t-fast);
}
.nav__list a:hover { color: var(--brand-900); background: var(--slate-100); }
.nav__list .nav__link--active { color: var(--brand-900); background: var(--brand-50); }

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-toggle {
    display: none;
    background: transparent; border: 0; padding: 8px;
    flex-direction: column; gap: 4px;
}
.nav-toggle span {
    width: 22px; height: 2px; background: var(--slate-900); border-radius: 2px;
    transition: transform var(--t-base), opacity var(--t-base);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
    display: none;
    border-top: 1px solid var(--border);
    background: #fff;
}
.mobile-nav ul {
    list-style: none; margin: 0; padding: 16px 24px 24px;
    display: flex; flex-direction: column; gap: 4px;
}
.mobile-nav a {
    display: block;
    padding: 12px 14px;
    border-radius: var(--r-md);
    color: var(--slate-800);
    font-weight: 500;
}
.mobile-nav a:hover { background: var(--slate-100); }

@media (max-width: 960px) {
    .nav, .site-header__actions { display: none; }
    .nav-toggle { display: inline-flex; }
    .mobile-nav.is-open { display: block; }
}

/* ---------- Sections ---------- */
section { padding: var(--section-y) 0; }
.section--soft { background: var(--bg-soft); }
.section--dark {
    background: radial-gradient(circle at 20% 0%, #1E1B4B 0%, #0B1437 60%, #060B26 100%);
    color: #E2E8F0;
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark p { color: rgba(226, 232, 240, .8); }

.section__head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 56px;
}
.section__head p { color: var(--text-muted); font-size: 1.0625rem; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--r-pill);
    background: var(--brand-50);
    color: var(--brand-700);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.section--dark .eyebrow { background: rgba(255, 255, 255, .08); color: var(--brand-200); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding-top: clamp(72px, 8vw, 110px);
    padding-bottom: clamp(72px, 8vw, 110px);
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(99, 102, 241, .12), transparent 70%),
        linear-gradient(180deg, #fff 0%, var(--slate-50) 100%);
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(to right, rgba(15, 23, 42, .04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 23, 42, .04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 60% 60% at 50% 30%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 30%, #000 30%, transparent 80%);
    pointer-events: none;
}
.hero__inner { position: relative; text-align: center; }
.hero h1 { margin-bottom: 20px; }
.hero h1 .accent {
    background: linear-gradient(135deg, var(--brand-600), var(--accent-500));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero__sub {
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto 32px;
}
.hero__actions {
    display: flex; flex-wrap: wrap; gap: 14px;
    justify-content: center; margin-bottom: 56px;
}
.hero__trust {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--text-soft); font-size: .9rem;
    margin-bottom: 24px;
}
.hero__trust::before, .hero__trust::after {
    content: ''; width: 40px; height: 1px; background: var(--border-strong);
}

/* ---------- App frame (fenêtre navigateur premium pour captures d'écran) ---------- */
.app-frame {
    position: relative;
    border-radius: var(--r-xl);
    background: #fff;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform var(--t-slow), box-shadow var(--t-slow);
}
.app-frame--hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px -20px rgba(30, 27, 75, .35), 0 12px 24px -10px rgba(15, 23, 42, .12);
}
.app-frame__top {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 18px;
    background: var(--slate-50);
    border-bottom: 1px solid var(--border);
}
.app-frame__top .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--slate-300); }
.app-frame__top .dot:nth-child(1) { background: #FCA5A5; }
.app-frame__top .dot:nth-child(2) { background: #FCD34D; }
.app-frame__top .dot:nth-child(3) { background: #86EFAC; }
.app-frame__top .url {
    margin-left: 14px; padding: 4px 14px;
    background: #fff; border: 1px solid var(--border); border-radius: var(--r-pill);
    font-size: .78rem; color: var(--text-soft); font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    max-width: 60%;
}
.app-frame__body img {
    display: block;
    width: 100%;
    height: auto;
}
.app-frame--mobile {
    max-width: 320px;
    margin: 0 auto;
    border-radius: 36px;
    border: 8px solid #0F172A;
    background: #0F172A;
    box-shadow: var(--shadow-lg);
}
.app-frame--mobile .app-frame__top {
    display: none;
}
.app-frame--mobile .app-frame__body img {
    border-radius: 24px;
}

/* Hero : la capture flotte avec un léger effet 3D */
.hero .app-frame {
    max-width: 1080px;
    margin: 0 auto;
}

/* Empilement de plusieurs cadres dans une même colonne */
.frames-stack {
    display: grid;
    gap: 22px;
}
.frames-stack .app-frame { box-shadow: var(--shadow-md); }
.frames-stack .app-frame:first-child { transform: translateX(-12px); }
.frames-stack .app-frame:last-child  { transform: translateX(12px); }
@media (max-width: 880px) {
    .frames-stack .app-frame { transform: none !important; }
}

/* Carte fiche-membre flottante par-dessus le trombinoscope */
.frame-with-overlay {
    position: relative;
}
.floating-card {
    position: absolute;
    right: -22px;
    bottom: -32px;
    width: 38%;
    max-width: 260px;
    border-radius: var(--r-lg);
    box-shadow: 0 24px 50px -16px rgba(15, 23, 42, .35), 0 6px 14px -6px rgba(15, 23, 42, .15);
    border: 1px solid rgba(255, 255, 255, .9);
    background: #fff;
    overflow: hidden;
    transform: rotate(2deg);
    transition: transform var(--t-slow);
}
.floating-card img { display: block; width: 100%; height: auto; }
.frame-with-overlay:hover .floating-card { transform: rotate(0deg) translateY(-4px); }

/* Variante horizontale (zoom large) */
.floating-card--wide {
    right: auto;
    left: -28px;
    bottom: -36px;
    width: 62%;
    max-width: 440px;
    transform: rotate(-1.5deg);
}

@media (max-width: 880px) {
    .floating-card { position: static; width: 200px; margin: -32px auto 0; transform: none; display: block; }
    .floating-card--wide { width: 80%; max-width: 400px; }
}

/* ---------- Dashboard preview (kept for fallback / autres pages) ---------- */
.dashboard {
    position: relative;
    max-width: 1080px;
    margin: 0 auto;
    border-radius: var(--r-xl);
    background: #fff;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    overflow: hidden;
}
.dashboard__top {
    display: flex; align-items: center; gap: 8px;
    padding: 14px 20px;
    background: var(--slate-50);
    border-bottom: 1px solid var(--border);
}
.dashboard__top .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--slate-300); }
.dashboard__top .dot:nth-child(1) { background: #FCA5A5; }
.dashboard__top .dot:nth-child(2) { background: #FCD34D; }
.dashboard__top .dot:nth-child(3) { background: #86EFAC; }
.dashboard__top .url {
    margin-left: 14px; padding: 4px 14px;
    background: #fff; border: 1px solid var(--border); border-radius: var(--r-pill);
    font-size: .78rem; color: var(--text-soft); font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.dashboard__body {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: 460px;
}
.dashboard__sidebar {
    background: linear-gradient(180deg, #0B1437 0%, #1E1B4B 100%);
    color: #fff;
    padding: 22px 16px;
}
.dashboard__sidebar .logo-line {
    display: flex; align-items: center; gap: 8px;
    font-weight: 700; font-size: .95rem; margin-bottom: 24px; color: #fff;
}
.dashboard__sidebar .logo-line .square {
    width: 22px; height: 22px; border-radius: 6px;
    background: linear-gradient(135deg, var(--brand-500), var(--accent-500));
}
.dashboard__sidebar ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.dashboard__sidebar li {
    padding: 9px 12px; border-radius: var(--r-sm);
    color: rgba(226, 232, 240, .8); font-size: .85rem;
    display: flex; align-items: center; gap: 10px;
}
.dashboard__sidebar li.is-active { background: rgba(99, 102, 241, .25); color: #fff; }
.dashboard__sidebar li::before {
    content: ''; width: 14px; height: 14px; border-radius: 4px;
    background: currentColor; opacity: .35;
}

.dashboard__main { padding: 22px 24px; background: #FAFBFE; }
.dashboard__main h5 { font-size: 1rem; margin: 0 0 4px; }
.dashboard__main .subtitle { color: var(--text-soft); font-size: .82rem; margin-bottom: 16px; }

.kpi-row {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px;
}
.kpi {
    padding: 14px; background: #fff; border: 1px solid var(--border);
    border-radius: var(--r-md);
}
.kpi__label { font-size: .72rem; color: var(--text-soft); text-transform: uppercase; letter-spacing: .05em; }
.kpi__value { font-size: 1.35rem; font-weight: 700; color: var(--slate-900); margin-top: 4px; }
.kpi__trend { font-size: .75rem; font-weight: 600; margin-top: 2px; }
.kpi__trend.up { color: #059669; }
.kpi__trend.down { color: #DC2626; }

.dash-grid {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px;
}
.dash-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--r-md);
    padding: 16px;
}
.dash-card h6 { margin: 0 0 12px; font-size: .85rem; color: var(--slate-700); }

.chart {
    height: 120px;
    background:
        linear-gradient(180deg, rgba(99, 102, 241, .18) 0%, rgba(99, 102, 241, 0) 100%);
    border-radius: var(--r-sm);
    position: relative;
    overflow: hidden;
}
.chart svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.list-line {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 0; border-bottom: 1px dashed var(--border);
    font-size: .82rem;
}
.list-line:last-child { border-bottom: 0; }
.list-line .avatar {
    width: 26px; height: 26px; border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-300), var(--brand-600));
    color: #fff; display: inline-flex; align-items: center; justify-content: center;
    font-size: .7rem; font-weight: 700; margin-right: 8px;
}
.list-line .meta { color: var(--text-soft); font-size: .72rem; }
.pill {
    padding: 2px 8px; border-radius: var(--r-pill); font-size: .68rem; font-weight: 600;
}
.pill.green { background: #ECFDF5; color: #047857; }
.pill.amber { background: #FFFBEB; color: #B45309; }
.pill.indigo { background: var(--brand-50); color: var(--brand-700); }

@media (max-width: 760px) {
    .dashboard__body { grid-template-columns: 1fr; }
    .dashboard__sidebar { display: none; }
    .kpi-row { grid-template-columns: repeat(2, 1fr); }
    .dash-grid { grid-template-columns: 1fr; }
}

/* ---------- Problèmes (cards) ---------- */
.problems {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}
.problem-card {
    padding: 22px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.problem-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}
.problem-card .icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--slate-100); display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 14px; color: var(--slate-700);
}
.problem-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.problem-card p { color: var(--text-muted); font-size: .95rem; margin: 0; }

/* ---------- Solution / cockpit ---------- */
.solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.solution-grid h2 { margin-bottom: 12px; }
.solution-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.solution-list li {
    display: flex; gap: 12px; align-items: flex-start;
}
.solution-list .check {
    flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
    color: #fff; display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px -4px rgba(79, 70, 229, .5);
}
.solution-list strong { display: block; color: var(--slate-900); }
.solution-list span { color: var(--text-muted); font-size: .95rem; }

@media (max-width: 880px) {
    .solution-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Fonctionnalités cards ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}
.feature-card {
    position: relative;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-200);
}
.feature-card .feature-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--brand-700);
    background: linear-gradient(135deg, var(--brand-50), #fff);
    border: 1px solid var(--brand-100);
    margin-bottom: 18px;
}
.feature-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: .95rem; margin: 0; }

/* ---------- Bénéfices ---------- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}
.benefit {
    padding: 24px;
    border-radius: var(--r-lg);
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(8px);
}
.benefit .benefit-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-500), var(--accent-600));
    color: var(--brand-950); font-weight: 800;
    margin-bottom: 14px;
}
.benefit h3 { color: #fff; font-size: 1.05rem; margin-bottom: 6px; }
.benefit p { color: rgba(226, 232, 240, .75); font-size: .95rem; margin: 0; }

/* ---------- Timeline / workflow ---------- */
.timeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    position: relative;
}
.timeline::before {
    content: ''; position: absolute; left: 5%; right: 5%; top: 28px;
    border-top: 2px dashed var(--border-strong);
    z-index: 0;
}
.timeline-step { position: relative; text-align: center; z-index: 1; }
.timeline-step .step-num {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--brand-200);
    color: var(--brand-700);
    font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 14px;
    transition: all var(--t-base);
}
.timeline-step:hover .step-num {
    background: linear-gradient(135deg, var(--brand-600), var(--brand-800));
    color: #fff;
    border-color: transparent;
    transform: scale(1.05);
    box-shadow: 0 8px 20px -6px rgba(79, 70, 229, .5);
}
.timeline-step h4 { font-size: 1rem; margin-bottom: 4px; }
.timeline-step p { font-size: .88rem; color: var(--text-muted); margin: 0; }

@media (max-width: 860px) {
    .timeline { grid-template-columns: 1fr; gap: 22px; }
    .timeline::before { display: none; }
}

/* ---------- CTA section ---------- */
.cta-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--r-xl);
    padding: clamp(40px, 6vw, 72px);
    background:
        radial-gradient(circle at 100% 0%, rgba(245, 158, 11, .25), transparent 50%),
        linear-gradient(135deg, var(--brand-800) 0%, var(--brand-950) 100%);
    color: #fff;
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.cta-card::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, .06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 20%, transparent 70%);
    pointer-events: none;
}
.cta-card > * { position: relative; }
.cta-card h2 { color: #fff; margin-bottom: 12px; }
.cta-card p {
    color: rgba(226, 232, 240, .85);
    max-width: 640px; margin: 0 auto 28px;
    font-size: 1.05rem;
}
.cta-card .btn--ghost { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: #fff; }
.cta-card .btn--ghost:hover { background: rgba(255, 255, 255, .14); }

/* ---------- Page "Fonctionnalités" — sections détaillées ---------- */
.feature-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    padding: 64px 0;
    border-bottom: 1px solid var(--border);
}
.feature-section:last-child { border-bottom: 0; }
.feature-section.alt { direction: rtl; }
.feature-section.alt > * { direction: ltr; }
.feature-section h2 { font-size: 2rem; margin-bottom: 12px; }
.feature-section ul { list-style: none; padding: 0; margin: 16px 0 0; }
.feature-section ul li {
    position: relative; padding-left: 28px; margin-bottom: 10px;
    color: var(--text-muted);
}
.feature-section ul li::before {
    content: ''; position: absolute; left: 0; top: 9px;
    width: 16px; height: 16px; border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
    box-shadow: 0 0 0 4px var(--brand-50);
}

.feature-visual {
    border-radius: var(--r-lg);
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    padding: 24px;
    min-height: 280px;
    position: relative;
}

@media (max-width: 880px) {
    .feature-section, .feature-section.alt { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Page "Pour qui" — cas d'usage ---------- */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.audience-card {
    padding: 28px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
    height: 100%;
}
.audience-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-200);
    box-shadow: var(--shadow-lg);
}
.audience-card .badge {
    display: inline-block; padding: 4px 12px;
    border-radius: var(--r-pill); background: var(--accent-500); color: var(--brand-950);
    font-size: .75rem; font-weight: 700; letter-spacing: .03em; margin-bottom: 14px;
    text-transform: uppercase;
}
.audience-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.audience-card p { color: var(--text-muted); margin: 0; font-size: .95rem; }

/* ---------- Formulaire de démo ---------- */
.demo-wrap {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 56px;
    align-items: start;
}
.demo-side h2 { margin-bottom: 12px; }
.demo-side ul { list-style: none; padding: 0; margin: 28px 0 0; }
.demo-side ul li {
    display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px;
    color: var(--text-muted);
}
.demo-side ul li svg { flex: 0 0 22px; color: var(--brand-600); margin-top: 2px; }
.demo-side ul li strong { color: var(--slate-900); display: block; }

.form-card {
    background: #fff;
    padding: 36px;
    border-radius: var(--r-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}
.form-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row--full { grid-column: 1 / -1; }
.form-row label { font-weight: 500; font-size: .9rem; color: var(--slate-800); }
.form-row .required { color: #DC2626; }

.form-row input,
.form-row select,
.form-row textarea {
    font: inherit;
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--r-md);
    border: 1px solid var(--border-strong);
    background: #fff;
    color: var(--slate-900);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: var(--shadow-glow);
}
.form-row textarea { min-height: 120px; resize: vertical; }

.checkbox-row {
    display: flex; gap: 10px; align-items: flex-start;
    font-size: .9rem; color: var(--text-muted);
    margin-top: 8px;
}
.checkbox-row input { margin-top: 4px; accent-color: var(--brand-600); }

.form-actions {
    margin-top: 22px;
    display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}
.form-note { color: var(--text-soft); font-size: .85rem; }

.error-list, .success-banner, .error-banner {
    border-radius: var(--r-md);
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: .95rem;
}
.error-list { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.error-list ul { margin: 6px 0 0 20px; padding: 0; }
.success-banner { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.error-banner { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }

@media (max-width: 880px) {
    .demo-wrap { grid-template-columns: 1fr; gap: 32px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-card { padding: 24px; }
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--brand-950);
    color: rgba(226, 232, 240, .75);
    padding: 72px 0 32px;
    margin-top: 0;
}
.site-footer h4 {
    color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em;
    margin-bottom: 16px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 8px; font-size: .92rem; }
.site-footer a { color: rgba(226, 232, 240, .8); }
.site-footer a:hover { color: #fff; }
.site-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-footer__brand img { margin-bottom: 16px; }
.site-footer__logo {
    height: 80px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: .92;
}
.site-footer__brand p { color: rgba(226, 232, 240, .65); font-size: .95rem; max-width: 360px; }
.site-footer__bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 24px; font-size: .85rem; color: rgba(226, 232, 240, .55);
    flex-wrap: wrap; gap: 12px;
}
.site-footer__tagline {
    font-weight: 600; letter-spacing: .04em; color: rgba(226, 232, 240, .55);
    text-transform: uppercase; font-size: .8rem;
}
.muted { color: rgba(226, 232, 240, .5); font-size: .9rem; }

@media (max-width: 880px) {
    .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .site-footer__bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 540px) {
    .site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Page header (sous-pages) ---------- */
.page-header {
    padding: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 64px);
    background:
        radial-gradient(ellipse 60% 60% at 50% 0%, rgba(99, 102, 241, .12), transparent 70%),
        linear-gradient(180deg, #fff 0%, var(--slate-50) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-header h1 { margin-bottom: 14px; }
.page-header p {
    font-size: 1.0625rem;
    color: var(--text-muted);
    max-width: 680px; margin: 0 auto;
}

/* ---------- Pages légales — contenu prose ---------- */
.prose {
    max-width: 800px;
    margin: 0 auto;
    color: var(--slate-800);
}
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.6em; font-size: 1.15rem; }
.prose ul { padding-left: 1.4em; }
.prose li { margin-bottom: 6px; }
.prose code { background: var(--slate-100); padding: 2px 6px; border-radius: 4px; font-size: .9em; }

/* ---------- 404 ---------- */
.errpage { text-align: center; padding: 120px 0; }
.errpage .big { font-size: clamp(5rem, 12vw, 9rem); font-weight: 800; color: var(--brand-900); line-height: 1; margin-bottom: 18px; letter-spacing: -.04em; }

/* ---------- Animations subtiles ---------- */
@media (prefers-reduced-motion: no-preference) {
    .fade-in {
        opacity: 0;
        transform: translateY(16px);
        transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1);
    }
    .fade-in.is-visible { opacity: 1; transform: none; }
}
