*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* === DESIGN TOKENS (synchro avec l'app OPR) === */
:root {
    color-scheme: light;

    /* Couleurs sémantiques (même palette oklch que l'app) */
    --background: oklch(0.98 0 0);
    --foreground: oklch(0.2 0 0);
    --card: oklch(1 0 0);
    --card-foreground: oklch(0.22 0.002 260);
    --muted: oklch(0.96 0.005 255);
    --muted-foreground: oklch(0.45 0.02 250);
    --border: oklch(0.9 0.01 255);

    --primary: oklch(0.43 0.14 255);
    --primary-hover: oklch(0.37 0.14 255);
    --primary-foreground: oklch(0.98 0 0);
    --primary-soft: oklch(0.94 0.03 255);

    --success: oklch(0.7 0.18 145);
    --success-text: oklch(0.5 0.18 145);
    --destructive: oklch(0.55 0.25 25);
    --warning: oklch(0.75 0.16 75);

    /* Surfaces élevées */
    --surface-1: oklch(1 0 0);
    --surface-2: oklch(0.97 0.003 255);
    --surface-hero: linear-gradient(160deg, oklch(0.97 0.02 255) 0%, oklch(0.99 0.005 255) 100%);
    --surface-dark: linear-gradient(135deg, oklch(0.2 0.05 255) 0%, oklch(0.3 0.1 255) 100%);

    /* Ombres */
    --shadow-sm: 0 1px 2px oklch(0.2 0.02 255 / 0.04);
    --shadow-md: 0 4px 12px oklch(0.2 0.02 255 / 0.08);
    --shadow-lg: 0 12px 32px oklch(0.2 0.02 255 / 0.10);
    --shadow-xl: 0 32px 64px oklch(0.2 0.02 255 / 0.15), 0 8px 24px oklch(0.2 0.02 255 / 0.08);

    /* Radius (calé sur l'app, 0.625rem base) */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.625rem;
    --radius-xl: 0.875rem;
    --radius-2xl: 1rem;

    /* Typography */
    --font-heading: 'Montserrat', system-ui, sans-serif;
    --font-body: 'Roboto', system-ui, sans-serif;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    color-scheme: dark;

    --background: oklch(0.14 0.01 260);
    --foreground: oklch(0.92 0.01 260);
    --card: oklch(0.17 0.01 260);
    --card-foreground: oklch(0.92 0.01 260);
    --muted: oklch(0.24 0.015 260);
    --muted-foreground: oklch(0.72 0.01 260);
    --border: oklch(0.28 0.015 260);

    --primary: oklch(0.58 0.15 255);
    --primary-hover: oklch(0.65 0.15 255);
    --primary-foreground: oklch(0.98 0 0);
    --primary-soft: oklch(0.28 0.05 255);

    --success-text: oklch(0.78 0.17 145);
    --surface-1: oklch(0.17 0.01 260);
    --surface-2: oklch(0.20 0.015 260);
    --surface-hero: linear-gradient(160deg, oklch(0.17 0.03 260) 0%, oklch(0.14 0.01 260) 100%);

    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
    --shadow-md: 0 4px 12px oklch(0 0 0 / 0.4);
    --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.45);
    --shadow-xl: 0 32px 64px oklch(0 0 0 / 0.55), 0 8px 24px oklch(0 0 0 / 0.4);
}

/* === RESET & BASE === */
html { scroll-behavior: smooth; overflow-x: clip; }
body {
    font-family: var(--font-body);
    color: var(--foreground);
    background: var(--background);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--transition-base), color var(--transition-base);
    overflow-x: clip;
    width: 100%;
}
body.nav-open { overflow: hidden; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.3; color: var(--foreground); }
a { color: var(--primary); text-decoration: none; transition: color var(--transition-fast); }
img { max-width: 100%; height: auto; }

/* === LAYOUT === */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-alt { background: var(--surface-2); }
.section-dark { background: var(--surface-dark); color: oklch(0.98 0 0); }
.section-dark h2, .section-dark h3 { color: oklch(0.98 0 0); }
.text-center { text-align: center; }
.text-muted { color: var(--muted-foreground); }

/* === TYPOGRAPHY === */
.badge {
    display: inline-block;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 999px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.section-title { font-size: clamp(1.8rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 16px; }
.section-subtitle {
    font-size: 1.1rem;
    color: var(--muted-foreground);
    max-width: 600px;
    margin: 0 auto 48px;
}
.page-header {
    padding: 160px 0 64px;
    background: var(--surface-hero);
    text-align: center;
}
.page-header h1 { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 16px; }
.page-header p { font-size: 1.15rem; color: var(--muted-foreground); max-width: 600px; margin: 0 auto; }

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--primary-foreground); }
.btn-white { background: oklch(1 0 0); color: var(--primary); }
.btn-white:hover { background: var(--primary-soft); transform: translateY(-1px); }
.btn-outline-white {
    background: transparent;
    color: oklch(1 0 0);
    border: 2px solid oklch(1 0 0 / 0.4);
}
.btn-outline-white:hover {
    background: oklch(1 0 0 / 0.12);
    border-color: oklch(1 0 0 / 0.7);
}
.btn-lg { padding: 16px 40px; font-size: 1rem; }

/* === NAV === */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: oklch(from var(--background) l c h / 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: background-color var(--transition-base), border-color var(--transition-base);
}
body.nav-open .nav {
    background: var(--background);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.nav-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    height: 64px;
}
.nav-logo {
    grid-column: 1;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary);
    min-width: 0;
    white-space: nowrap;
}
.nav-links {
    grid-column: 2;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links a:not(.btn) {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted-foreground);
    transition: color var(--transition-fast);
}
.nav-links a:not(.btn):hover,
.nav-links a.active { color: var(--primary); }
.nav-links .btn-primary { color: var(--primary-foreground); padding: 9px 20px; font-size: 0.85rem; }
.nav-links .btn-primary:hover { color: var(--primary-foreground); }
.nav-close-wrapper, .nav-close { display: none; }

.nav-actions {
    grid-column: 3;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-self: end;
}

/* Theme toggle button */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--muted-foreground);
    transition: all var(--transition-fast);
    flex-shrink: 0;
}
.theme-toggle:hover { color: var(--primary); border-color: var(--primary); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Nav toggle (hamburger), hidden on desktop */
.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    width: 40px;
    height: 40px;
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
    color: var(--foreground);
    transition: border-color var(--transition-fast);
    flex-shrink: 0;
}
.nav-toggle:hover { border-color: var(--primary); }
.nav-toggle-box {
    position: relative;
    width: 18px;
    height: 14px;
    display: inline-block;
}
.nav-toggle-bar {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 220ms cubic-bezier(0.4, 0, 0.2, 1),
                opacity 160ms cubic-bezier(0.4, 0, 0.2, 1),
                top 220ms cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-toggle-bar:nth-child(1) { top: 0; }
.nav-toggle-bar:nth-child(2) { top: 6px; }
.nav-toggle-bar:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* Nav backdrop (mobile only, shown when drawer open) */
.nav-backdrop {
    position: fixed;
    inset: 0;
    background: oklch(0 0 0 / 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 220ms ease, visibility 0s linear 220ms;
    z-index: 90;
}
.nav-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 220ms ease, visibility 0s linear 0s;
}

/* === HERO === */
.hero {
    padding: 160px 0 96px;
    background: var(--surface-hero);
    position: relative;
    overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hero-badge {
    display: inline-block;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 24px;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 800; margin-bottom: 20px; }
.hero h1 span { color: var(--primary); }
.hero-desc {
    font-size: 1.15rem;
    color: var(--muted-foreground);
    margin-bottom: 32px;
    max-width: 480px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-proof {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--muted-foreground);
}
.hero-proof svg { flex-shrink: 0; color: var(--success-text); }
.hero-mockup {
    background: linear-gradient(145deg, oklch(0.15 0.02 255), oklch(0.22 0.05 255));
    border-radius: var(--radius-xl);
    padding: 10px;
    box-shadow: var(--shadow-xl);
}
.mockup-bar {
    background: oklch(0.22 0.02 255);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.mockup-dot { width: 12px; height: 12px; border-radius: 50%; }
.mockup-dot-r { background: #ff5f57; }
.mockup-dot-y { background: #febc2e; }
.mockup-dot-g { background: #28c840; }
.mockup-url {
    flex: 1;
    background: oklch(0.15 0.02 255);
    border-radius: var(--radius-sm);
    height: 20px;
    margin-left: 12px;
}
.mockup-bar + img { border-radius: 0 0 var(--radius-md) var(--radius-md); display: block; width: 100%; }
.mockup-url { color: oklch(0.7 0.02 255); font-size: 0.7rem; padding: 0 10px; display: flex; align-items: center; }

/* === MINI-PLANNING ANIMÉ (fidèle au layout de l'app : tableau de courses) === */
.mini-planning {
    background: oklch(0.99 0.003 255);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding: 16px;
    position: relative;
    min-height: 400px;
    font-family: var(--font-body);
    color: oklch(0.2 0.01 255);
    overflow: hidden;
}
[data-theme="dark"] .mini-planning {
    background: oklch(0.18 0.01 260);
    color: oklch(0.88 0.01 260);
}
.mini-planning-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid oklch(0.9 0.01 255);
}
[data-theme="dark"] .mini-planning-header { border-bottom-color: oklch(0.28 0.015 260); }
.mini-planning-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: oklch(0.25 0.02 255);
}
[data-theme="dark"] .mini-planning-title { color: oklch(0.92 0.01 260); }
.mini-planning-live {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    color: oklch(0.45 0.16 145);
    padding: 4px 10px;
    background: oklch(0.94 0.06 145);
    border-radius: 999px;
}
[data-theme="dark"] .mini-planning-live {
    background: oklch(0.28 0.07 145);
    color: oklch(0.78 0.17 145);
}
.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: oklch(0.55 0.2 145);
    box-shadow: 0 0 0 0 oklch(0.55 0.2 145 / 0.7);
    animation: live-pulse 2s ease-in-out infinite;
}
@keyframes live-pulse {
    0%, 100% { box-shadow: 0 0 0 0 oklch(0.55 0.2 145 / 0.7); }
    50% { box-shadow: 0 0 0 8px oklch(0.55 0.2 145 / 0); }
}

/* Header de colonnes (fidèle aux colonnes de l'app) */
.mini-planning-colhead,
.mini-row {
    display: grid;
    grid-template-columns: 46px minmax(0, 1.1fr) minmax(0, 1.3fr) 70px 72px;
    gap: 8px;
    align-items: center;
}
.mini-planning-colhead {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: oklch(0.55 0.02 255);
    padding: 6px 8px;
    margin-bottom: 6px;
}
[data-theme="dark"] .mini-planning-colhead { color: oklch(0.7 0.01 260); }
.mini-planning-colhead .col-status { text-align: center; }

.mini-planning-rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Une ligne de course, card avec border-bottom coloré chauffeur */
.mini-row {
    background: oklch(1 0 0);
    padding: 10px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    border-bottom: 3px solid var(--driver-color, oklch(0.5 0.1 255));
    box-shadow: 0 1px 2px oklch(0.2 0.02 255 / 0.04);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 350ms cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 350ms cubic-bezier(0.34, 1.56, 0.64, 1),
                background-color 300ms ease;
    min-height: 44px;
}
[data-theme="dark"] .mini-row {
    background: oklch(0.22 0.01 260);
    box-shadow: 0 1px 2px oklch(0 0 0 / 0.3);
}
.mini-row.is-visible { opacity: 1; transform: translateY(0); }
.mini-row.is-leaving { opacity: 0; transform: translateX(12px); }
.mini-row.is-highlight { animation: row-flash 900ms ease; }
@keyframes row-flash {
    0% { box-shadow: 0 0 0 0 oklch(0.55 0.2 255 / 0.35), 0 1px 2px oklch(0.2 0.02 255 / 0.04); }
    100% { box-shadow: 0 0 0 6px oklch(0.55 0.2 255 / 0), 0 1px 2px oklch(0.2 0.02 255 / 0.04); }
}

.mini-row .cell-time {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: oklch(0.3 0.02 255);
    font-size: 0.72rem;
}
[data-theme="dark"] .mini-row .cell-time { color: oklch(0.88 0.01 260); }
.mini-row .cell-client,
.mini-row .cell-dest {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: oklch(0.3 0.02 255);
}
[data-theme="dark"] .mini-row .cell-client,
[data-theme="dark"] .mini-row .cell-dest { color: oklch(0.88 0.01 260); }
.mini-row .cell-dest { color: oklch(0.5 0.02 255); }
[data-theme="dark"] .mini-row .cell-dest { color: oklch(0.72 0.01 260); }

.mini-row .cell-driver {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.68rem;
    font-weight: 600;
    color: oklch(0.3 0.02 255);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
[data-theme="dark"] .mini-row .cell-driver { color: oklch(0.88 0.01 260); }
.driver-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--driver-color, oklch(0.5 0.1 255));
    flex-shrink: 0;
}

.mini-row .cell-status {
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.6rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    transition: background-color 400ms ease, color 400ms ease;
}
.status-planned {
    background: oklch(0.92 0.05 255);
    color: oklch(0.4 0.14 255);
}
[data-theme="dark"] .status-planned {
    background: oklch(0.3 0.08 255);
    color: oklch(0.82 0.12 255);
}
.status-ongoing {
    background: oklch(0.92 0.08 75);
    color: oklch(0.45 0.15 75);
}
[data-theme="dark"] .status-ongoing {
    background: oklch(0.32 0.1 75);
    color: oklch(0.82 0.15 75);
}
.status-done {
    background: oklch(0.92 0.08 145);
    color: oklch(0.42 0.15 145);
}
[data-theme="dark"] .status-done {
    background: oklch(0.3 0.1 145);
    color: oklch(0.82 0.15 145);
}

.mini-toast {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translate(-50%, 20px);
    background: oklch(0.22 0.02 255);
    color: oklch(0.98 0 0);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 300ms ease, transform 300ms ease;
    pointer-events: none;
    box-shadow: var(--shadow-md);
    z-index: 2;
}
.mini-toast svg { color: oklch(0.75 0.18 145); }
.mini-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 520px) {
    .mini-planning { min-height: 360px; padding: 12px; }
    .mini-planning-colhead,
    .mini-row { grid-template-columns: 40px minmax(0, 1fr) 58px 62px; gap: 6px; }
    .mini-planning-colhead > :nth-child(3),
    .mini-row .cell-dest { display: none; }
    .mini-row { padding: 8px 6px; font-size: 0.7rem; }
    .mini-row .cell-time { font-size: 0.68rem; }
}

/* === SYNC DEMO (deux fenêtres synchronisées en temps réel) === */
.sync-demo {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: stretch;
    max-width: 1100px;
    margin: 48px auto 0;
}
.sync-window {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}
.sync-user {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    padding: 10px 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}
.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--avatar, oklch(0.5 0.12 255));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px color-mix(in oklch, var(--avatar, oklch(0.5 0.12 255)) 25%, transparent);
}
.sync-user-name {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--foreground);
}
.sync-user-role {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}
.sync-mockup {
    background: linear-gradient(145deg, oklch(0.15 0.02 255), oklch(0.22 0.05 255));
    border-radius: var(--radius-lg);
    padding: 8px;
    box-shadow: var(--shadow-lg);
}
.sync-mockup .mockup-bar {
    padding: 8px 12px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.sync-mockup .mockup-dot { width: 9px; height: 9px; }
.sync-mockup .mockup-url { height: 16px; font-size: 0.6rem; }

/* Variante compacte du mini-planning pour la démo sync */
.mini-planning-sm {
    min-height: 280px;
    padding: 12px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}
.mini-planning-sm .mini-planning-title { font-size: 0.78rem; }
.mini-planning-sm .mini-planning-live { font-size: 0.62rem; }
.mini-planning-sm .mini-row {
    grid-template-columns: 40px minmax(0, 1fr) 56px 62px;
    gap: 6px;
    padding: 7px 6px;
    font-size: 0.7rem;
}
.mini-planning-sm .mini-row .cell-dest { display: none; }
.mini-planning-sm .mini-row .cell-time { font-size: 0.68rem; }
.mini-planning-sm .mini-row .cell-status { font-size: 0.54rem; padding: 2px 6px; }
.mini-planning-sm .mini-row .cell-driver { gap: 4px; font-size: 0.68rem; }
.mini-planning-sm .driver-dot { width: 6px; height: 6px; }

/* Connecteur central animé (pipe de synchro) */
.sync-connector {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    padding: 20px 0;
}
.sync-pipe {
    position: relative;
    width: 3px;
    flex: 1;
    min-height: 160px;
    background: linear-gradient(180deg,
        transparent 0%,
        var(--primary) 15%,
        var(--primary) 85%,
        transparent 100%);
    border-radius: 999px;
    opacity: 0.45;
}
.sync-pulse {
    position: absolute;
    left: 50%;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 14px var(--primary), 0 0 28px color-mix(in oklch, var(--primary) 60%, transparent);
    transform: translate(-50%, -50%);
    opacity: 0;
}
.sync-pulse.is-active {
    animation: pulse-travel 850ms ease-in-out;
}
@keyframes pulse-travel {
    0%   { top: 5%;  opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
    15%  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    85%  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { top: 95%; opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
}
.sync-pulse.reverse.is-active {
    animation: pulse-travel-reverse 850ms ease-in-out;
}
@keyframes pulse-travel-reverse {
    0%   { top: 95%; opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
    15%  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    85%  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { top: 5%;  opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
}
.sync-label-tag {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    text-transform: uppercase;
}
.sync-caption {
    margin-top: 28px;
    font-size: 0.9rem;
    color: var(--muted-foreground);
    font-style: italic;
}

@media (max-width: 860px) {
    .sync-demo {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 16px;
    }
    .sync-connector {
        padding: 0;
        min-height: 64px;
    }
    .sync-pipe {
        width: 100%;
        height: 3px;
        min-height: 3px;
        flex: none;
        background: linear-gradient(90deg,
            transparent 0%,
            var(--primary) 15%,
            var(--primary) 85%,
            transparent 100%);
    }
    .sync-pulse.is-active {
        animation: pulse-travel-h 850ms ease-in-out;
    }
    .sync-pulse.reverse.is-active {
        animation: pulse-travel-h-reverse 850ms ease-in-out;
    }
    @keyframes pulse-travel-h {
        0%   { left: 5%;  top: 50%; opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
        15%  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
        85%  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
        100% { left: 95%; top: 50%; opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
    }
    @keyframes pulse-travel-h-reverse {
        0%   { left: 95%; top: 50%; opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
        15%  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
        85%  { opacity: 1; transform: translate(-50%, -50%) scale(1); }
        100% { left: 5%;  top: 50%; opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
    }
}

/* === CALCULATEUR ROI === */
.roi-calculator {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 960px;
    margin: 48px auto 0;
    text-align: left;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}
.roi-inputs {
    display: flex;
    flex-direction: column;
    gap: 36px;
    justify-content: center;
}
.roi-field { display: flex; flex-direction: column; gap: 12px; }
.roi-label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    flex-wrap: wrap;
}
.roi-label-row label {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--foreground);
    line-height: 1.4;
    flex: 1;
    min-width: 0;
}
.roi-value {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--primary);
    white-space: nowrap;
    flex-shrink: 0;
}
.roi-range-ticks {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--muted-foreground);
    margin-top: -4px;
}

/* Sliders modernes */
.roi-field input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: var(--muted);
    border-radius: 999px;
    outline: none;
    cursor: pointer;
    accent-color: var(--primary);
}
.roi-field input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--card);
    box-shadow: 0 2px 8px color-mix(in oklch, var(--primary) 40%, transparent);
    cursor: grab;
    transition: transform 150ms ease, box-shadow 150ms ease;
}
.roi-field input[type="range"]::-webkit-slider-thumb:hover,
.roi-field input[type="range"]::-webkit-slider-thumb:active {
    transform: scale(1.15);
    box-shadow: 0 4px 14px color-mix(in oklch, var(--primary) 55%, transparent);
}
.roi-field input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--card);
    box-shadow: 0 2px 8px color-mix(in oklch, var(--primary) 40%, transparent);
    cursor: grab;
    transition: transform 150ms ease, box-shadow 150ms ease;
}
.roi-field input[type="range"]::-moz-range-thumb:hover,
.roi-field input[type="range"]::-moz-range-thumb:active {
    transform: scale(1.15);
}

/* Bloc résultat */
.roi-result {
    background: color-mix(in oklch, var(--primary) 5%, var(--card));
    border: 1px solid color-mix(in oklch, var(--primary) 18%, transparent);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
[data-theme="dark"] .roi-result {
    background: color-mix(in oklch, var(--primary) 10%, var(--card));
}
.roi-result-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-size: 0.92rem;
}
.roi-result-label { color: var(--foreground); }
.roi-result-value {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--foreground);
    font-variant-numeric: tabular-nums;
}
.roi-result-muted .roi-result-label,
.roi-result-muted .roi-result-value {
    color: var(--muted-foreground);
    font-weight: 500;
    font-size: 0.85rem;
}
.roi-result-muted .roi-result-value { font-family: var(--font-body); }

.roi-gain { color: var(--success-text); }
.roi-gain-big {
    font-size: 1.35rem;
    color: var(--success-text);
}
.roi-result-highlight {
    padding: 6px 0;
}
.roi-result-highlight .roi-result-label {
    font-weight: 600;
}

.roi-divider {
    height: 1px;
    background: var(--border);
    margin: 6px 0;
}

.roi-result-final {
    padding-top: 4px;
}
.roi-result-final .roi-result-label {
    font-weight: 700;
    font-size: 1rem;
}
.roi-net {
    font-size: 1.7rem;
    color: var(--primary);
}
.roi-ratio {
    text-align: center;
    font-size: 0.88rem;
    color: var(--muted-foreground);
    padding: 14px 0 4px;
}
.roi-ratio strong {
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 1.05rem;
}
.roi-cta {
    margin-top: 8px;
    width: 100%;
    justify-content: center;
}
.roi-disclaimer {
    max-width: 720px;
    margin: 20px auto 0;
    font-size: 0.78rem;
    color: var(--muted-foreground);
    font-style: italic;
    line-height: 1.5;
}

/* Animation subtile à la mise à jour */
.roi-value span,
.roi-result-value span {
    display: inline-block;
    transition: transform 180ms ease, color 180ms ease;
}
.roi-bump {
    animation: roi-bump 280ms ease;
}
@keyframes roi-bump {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.12); }
    100% { transform: scale(1); }
}

@media (max-width: 820px) {
    .roi-calculator {
        grid-template-columns: 1fr;
        padding: 28px 22px;
        gap: 28px;
    }
    .roi-net { font-size: 1.5rem; }
    .roi-gain-big { font-size: 1.2rem; }
}
@media (max-width: 520px) {
    .roi-calculator {
        padding: 18px 12px;
        gap: 20px;
        border-radius: var(--radius-lg);
        min-width: 0;
    }
    .roi-inputs { gap: 24px; min-width: 0; }
    .roi-field { min-width: 0; }
    .roi-label-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .roi-label-row label {
        font-size: 0.85rem;
        flex: 1 1 auto;
        width: 100%;
        min-width: 0;
        overflow-wrap: break-word;
        word-break: break-word;
    }
    .roi-value { font-size: 1rem; }
    .roi-range-ticks { font-size: 0.68rem; }
    .roi-result {
        padding: 16px 12px;
        gap: 10px;
        min-width: 0;
    }
    .roi-result-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        font-size: 0.88rem;
        min-width: 0;
    }
    .roi-result-label,
    .roi-result-value {
        min-width: 0;
        max-width: 100%;
        overflow-wrap: break-word;
        word-break: break-word;
    }
    .roi-result-muted .roi-result-label,
    .roi-result-muted .roi-result-value { font-size: 0.8rem; }
    .roi-result-final { flex-direction: row; justify-content: space-between; align-items: baseline; }
    .roi-result-final .roi-result-label { font-size: 0.95rem; }
    .roi-net { font-size: 1.3rem; }
    .roi-gain-big { font-size: 1.05rem; }
    .roi-ratio { font-size: 0.82rem; padding: 12px 0 4px; }
    .roi-disclaimer { font-size: 0.74rem; }
    .roi-cta {
        white-space: normal;
        padding: 12px 16px;
        font-size: 0.9rem;
        line-height: 1.3;
        text-align: center;
    }
}

/* === COMPARATEUR AVANT / APRÈS === */
.compare-wrapper {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: stretch;
    max-width: 1100px;
    margin: 48px auto 0;
}
.compare-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
    text-align: left;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 600ms ease, transform 600ms ease;
}
.compare-wrapper.is-visible .compare-side {
    opacity: 1;
    transform: translateY(0);
}
.compare-wrapper.is-visible .compare-after { transition-delay: 180ms; }

.compare-side-head {
    display: flex;
    align-items: center;
    gap: 12px;
}
.compare-pill {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
}
.compare-pill-before {
    background: oklch(0.93 0.04 35);
    color: oklch(0.45 0.15 35);
}
[data-theme="dark"] .compare-pill-before {
    background: oklch(0.3 0.1 35);
    color: oklch(0.85 0.12 35);
}
.compare-pill-after {
    background: oklch(0.93 0.08 150);
    color: oklch(0.4 0.16 150);
}
[data-theme="dark"] .compare-pill-after {
    background: oklch(0.3 0.1 150);
    color: oklch(0.85 0.15 150);
}
.compare-side-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--foreground);
}

/* ====== AVANT : tableau de post-its dispersés ====== */
.compare-board {
    position: relative;
    min-height: 320px;
    background:
        linear-gradient(135deg, oklch(0.95 0.01 80) 0%, oklch(0.92 0.015 80) 100%);
    border-radius: var(--radius-md);
    border: 1px solid oklch(0.85 0.02 80);
    overflow: hidden;
    box-shadow: inset 0 0 0 6px oklch(0.88 0.025 80);
}
[data-theme="dark"] .compare-board {
    background: linear-gradient(135deg, oklch(0.22 0.01 70) 0%, oklch(0.18 0.01 70) 100%);
    border-color: oklch(0.3 0.015 70);
    box-shadow: inset 0 0 0 6px oklch(0.24 0.015 70);
}
.compare-postit {
    position: absolute;
    width: 42%;
    min-height: 72px;
    padding: 10px 12px;
    border-radius: 2px;
    font-size: 0.78rem;
    line-height: 1.35;
    color: oklch(0.22 0.02 80);
    transform: rotate(var(--r, 0deg));
    box-shadow: 0 3px 10px oklch(0 0 0 / 0.12), 0 1px 2px oklch(0 0 0 / 0.08);
    font-family: var(--font-body);
}
.compare-postit strong {
    display: block;
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
    color: oklch(0.3 0.1 25);
}
.compare-postit em {
    display: block;
    margin-top: 4px;
    font-style: italic;
    font-size: 0.72rem;
    color: oklch(0.45 0.02 80);
}
.compare-postit-y { background: oklch(0.93 0.1 95); }
.compare-postit-p { background: oklch(0.88 0.08 10);  }
.compare-postit-b { background: oklch(0.88 0.07 235); }
.compare-postit-g { background: oklch(0.9 0.1 135);  }

.compare-channels {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.channel-tag {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    background: oklch(0.95 0.005 255);
    color: oklch(0.4 0.02 255);
    border: 1px dashed oklch(0.8 0.02 255);
}
[data-theme="dark"] .channel-tag {
    background: oklch(0.24 0.01 260);
    color: oklch(0.75 0.01 260);
    border-color: oklch(0.35 0.01 260);
}

.compare-side-note {
    font-size: 0.82rem;
    color: var(--muted-foreground);
    font-style: italic;
    margin-top: auto;
    padding-top: 4px;
}

/* ====== DIVIDER animé ====== */
.compare-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 6px;
}
.compare-arrow-pill {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md), 0 0 0 6px color-mix(in oklch, var(--primary) 15%, transparent);
    position: relative;
    z-index: 2;
}
.compare-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        color-mix(in oklch, var(--primary) 40%, transparent),
        transparent);
    transform: translateY(-50%);
}

/* ====== APRÈS : planning clair ====== */
.compare-planning {
    background: oklch(0.99 0.003 255);
    border: 1px solid oklch(0.9 0.01 255);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 320px;
}
[data-theme="dark"] .compare-planning {
    background: oklch(0.18 0.01 260);
    border-color: oklch(0.28 0.015 260);
}
.compare-planhead {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    margin-bottom: 4px;
    border-bottom: 1px solid oklch(0.92 0.005 255);
}
[data-theme="dark"] .compare-planhead { border-bottom-color: oklch(0.28 0.015 260); }
.compare-planhead-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: oklch(0.2 0.01 255);
}
[data-theme="dark"] .compare-planhead-title { color: oklch(0.92 0.01 260); }
.compare-planhead-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    font-weight: 600;
    color: oklch(0.48 0.14 150);
    background: oklch(0.95 0.05 150);
    padding: 2px 8px;
    border-radius: 999px;
}
[data-theme="dark"] .compare-planhead-live {
    color: oklch(0.85 0.15 150);
    background: oklch(0.28 0.1 150);
}
.compare-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 60px 72px;
    gap: 8px;
    align-items: center;
    padding: 8px 6px;
    background: var(--card);
    border-radius: var(--radius-sm);
    border-bottom: 3px solid var(--c, var(--primary));
    font-size: 0.75rem;
    color: oklch(0.25 0.01 255);
}
[data-theme="dark"] .compare-row {
    background: oklch(0.22 0.01 260);
    color: oklch(0.88 0.01 260);
}
.compare-row .cr-time {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.72rem;
}
.compare-row .cr-client { font-size: 0.72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.compare-row .cr-driver {
    font-size: 0.72rem;
    font-weight: 600;
    color: color-mix(in oklch, var(--c, var(--primary)) 50%, var(--foreground));
}
.compare-row .cr-status {
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    text-align: center;
    padding: 3px 6px;
    border-radius: 999px;
}

@media (max-width: 860px) {
    .compare-wrapper {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .compare-divider {
        padding: 4px 0;
    }
    .compare-divider::before {
        top: 0;
        bottom: 0;
        left: 50%;
        right: auto;
        width: 2px;
        height: auto;
        background: linear-gradient(180deg,
            transparent,
            color-mix(in oklch, var(--primary) 40%, transparent),
            transparent);
        transform: translateX(-50%);
    }
    .compare-arrow-pill svg { transform: rotate(90deg); }
    .compare-postit { width: 46%; font-size: 0.72rem; }
    .compare-row { grid-template-columns: 40px minmax(0, 1fr) 52px 62px; font-size: 0.7rem; }
}

/* === DASHBOARD APERÇU (scroll-animated KPIs + chart) === */
.dashboard-mockup {
    max-width: 1080px;
    margin: 48px auto 0;
    background: linear-gradient(145deg, oklch(0.15 0.02 255), oklch(0.22 0.05 255));
    border-radius: var(--radius-xl);
    padding: 10px;
    box-shadow: var(--shadow-xl);
}
.dashboard-body {
    background: oklch(0.99 0.003 255);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
[data-theme="dark"] .dashboard-body {
    background: oklch(0.18 0.01 260);
}

.dashboard-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.kpi-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px 16px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    transition: transform 400ms ease, box-shadow 400ms ease;
    opacity: 0;
    transform: translateY(14px);
}
.dashboard-mockup.is-visible .kpi-card {
    opacity: 1;
    transform: translateY(0);
}
.dashboard-mockup.is-visible .kpi-card:nth-child(1) { transition-delay: 40ms; }
.dashboard-mockup.is-visible .kpi-card:nth-child(2) { transition-delay: 120ms; }
.dashboard-mockup.is-visible .kpi-card:nth-child(3) { transition-delay: 200ms; }
.dashboard-mockup.is-visible .kpi-card:nth-child(4) { transition-delay: 280ms; }
.kpi-label {
    font-size: 0.72rem;
    color: var(--muted-foreground);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.kpi-value {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--foreground);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.kpi-divisor {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--muted-foreground);
}
.kpi-range {
    font-size: 1.1rem;
    letter-spacing: 0.3px;
}
.kpi-arrow { color: var(--primary); margin: 0 4px; }
.kpi-sub {
    font-size: 0.74rem;
    color: var(--muted-foreground);
    font-weight: 500;
}
.kpi-sub-up { color: var(--success-text); font-weight: 600; }
.kpi-warning {
    border-color: color-mix(in oklch, oklch(0.6 0.18 50) 40%, var(--border));
    background: color-mix(in oklch, oklch(0.6 0.18 50) 8%, var(--card));
}
.kpi-warning .kpi-value { color: oklch(0.55 0.18 50); }
[data-theme="dark"] .kpi-warning .kpi-value { color: oklch(0.78 0.15 60); }

/* Row avec chart + weather */
.dashboard-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 14px;
}
.dashboard-chart-card,
.dashboard-weather-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: left;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 500ms ease 360ms, transform 500ms ease 360ms;
}
.dashboard-mockup.is-visible .dashboard-chart-card,
.dashboard-mockup.is-visible .dashboard-weather-card {
    opacity: 1;
    transform: translateY(0);
}

/* Chart */
.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
}
.chart-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--foreground);
}
.chart-sub {
    font-size: 0.72rem;
    color: var(--muted-foreground);
    margin-top: 2px;
}
.chart-legend-today {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: var(--muted-foreground);
    font-weight: 500;
}
.legend-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in oklch, var(--primary) 20%, transparent);
}

.chart-bars {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    height: 140px;
    align-items: end;
}
.bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    height: 100%;
}
.bar {
    width: 100%;
    height: 0;
    background: linear-gradient(180deg, color-mix(in oklch, var(--primary) 70%, transparent), color-mix(in oklch, var(--primary) 30%, transparent));
    border-radius: 6px 6px 2px 2px;
    transition: height 900ms cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--d, 0ms);
    position: relative;
    min-height: 4px;
}
.bar.is-today {
    background: linear-gradient(180deg, var(--primary), color-mix(in oklch, var(--primary) 70%, transparent));
    box-shadow: 0 4px 14px color-mix(in oklch, var(--primary) 35%, transparent);
}
.dashboard-mockup.is-visible .bar {
    height: var(--h);
}
.bar-label {
    font-size: 0.7rem;
    color: var(--muted-foreground);
    font-weight: 500;
}

/* Weather */
.dashboard-weather-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.weather-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.weather-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--foreground);
}
.weather-loc {
    font-size: 0.72rem;
    color: var(--muted-foreground);
}
.weather-today {
    display: flex;
    align-items: center;
    gap: 14px;
}
.weather-icon {
    width: 44px;
    height: 44px;
    color: oklch(0.7 0.15 80);
    flex-shrink: 0;
}
.weather-temp {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--foreground);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.weather-desc {
    font-size: 0.8rem;
    color: var(--muted-foreground);
    margin-top: 2px;
}
.weather-forecast {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.weather-day {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--muted-foreground);
}
.weather-day strong {
    font-family: var(--font-heading);
    color: var(--foreground);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 820px) {
    .dashboard-kpis { grid-template-columns: repeat(2, 1fr); }
    .dashboard-row { grid-template-columns: 1fr; }
    .kpi-value { font-size: 1.5rem; }
    .kpi-range { font-size: 0.95rem; }
    .chart-bars { height: 110px; }
}

/* === CARDS === */
.card {
    background: var(--card);
    color: var(--card-foreground);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 20px;
}
.card-icon-danger {
    background: oklch(from var(--destructive) l c h / 0.1);
    color: var(--destructive);
}
.card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.card p { font-size: 0.93rem; color: var(--muted-foreground); }

/* === PROBLEM CARDS === */
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.problem-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border);
    text-align: left;
}
.problem-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: oklch(from var(--destructive) l c h / 0.1);
    color: var(--destructive);
    font-size: 1.3rem;
    margin-bottom: 20px;
}
.problem-card h3 { font-size: 1.1rem; margin-bottom: 12px; }
.problem-card p { font-size: 0.95rem; color: var(--muted-foreground); }

/* === FEATURE CARDS === */
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.feature-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    text-align: left;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 20px;
}
.feature-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.feature-card p { font-size: 0.93rem; color: var(--muted-foreground); }

/* === STATS === */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 56px; }
.stat-card { text-align: center; padding: 24px; }
.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 1.4rem;
    margin: 0 auto 16px;
}
.stat-label { font-weight: 700; font-size: 1.05rem; margin-bottom: 4px; }
.stat-desc { font-size: 0.85rem; color: var(--muted-foreground); }

/* === STEPS === */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.step { text-align: center; }
.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--primary-foreground);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 10px; }
.step p { font-size: 0.93rem; color: var(--muted-foreground); max-width: 300px; margin: 0 auto; }

/* === TESTIMONIAL === */
.testimonial-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 48px;
    max-width: 720px;
    margin: 0 auto;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary);
}
.testimonial-card blockquote { font-size: 1.05rem; line-height: 1.8; margin-bottom: 12px; }
.testimonial-card blockquote strong { color: var(--primary); }
.testimonial-author {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--muted-foreground);
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* === GRIDS === */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* === CASE STUDY CARD === */
.case-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--border);
    margin-bottom: 32px;
}
.case-card h2 { font-size: 1.3rem; color: var(--primary); margin-bottom: 24px; }
.case-card h4 { font-size: 0.95rem; margin-bottom: 8px; margin-top: 20px; }
.case-card h4:first-of-type { margin-top: 0; }
.case-card p { font-size: 0.95rem; color: var(--muted-foreground); }

/* === PRICING === */
.pricing-card {
    background: var(--card);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    max-width: 480px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--primary);
    text-align: center;
}
.pricing-card h3 { font-size: 1.4rem; margin-bottom: 8px; }
.pricing-card .price-label { color: var(--muted-foreground); margin-bottom: 20px; font-size: 0.95rem; }
.price-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 28px;
}
.price-value {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 3rem;
    color: var(--primary);
    line-height: 1;
}
.price-period {
    font-size: 1rem;
    color: var(--muted-foreground);
    font-weight: 500;
}
.pricing-list { list-style: none; text-align: left; margin-bottom: 32px; }
.pricing-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
}
.pricing-list li::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background: var(--primary-soft);
    border-radius: 50%;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%232C5FAD'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
    background-size: 14px;
    background-repeat: no-repeat;
    background-position: center;
}
.pricing-trial { font-size: 0.85rem; color: var(--muted-foreground); margin-top: 16px; }

/* === FAQ === */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}
.faq-item {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--border);
    text-align: left;
}
.faq-item h3 { font-size: 0.95rem; margin-bottom: 10px; }
.faq-item p { font-size: 0.9rem; color: var(--muted-foreground); }

/* === CTA SECTION === */
.cta-section { text-align: center; }
.cta-section h2 { font-size: 2rem; margin-bottom: 16px; color: oklch(0.98 0 0); }
.cta-section p {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* === CALLOUT === */
.callout {
    background: var(--primary-soft);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    padding: 24px 32px;
    margin: 32px 0;
}
.callout h3 { font-size: 1rem; color: var(--primary); margin-bottom: 12px; }
.callout p { font-size: 0.93rem; color: var(--muted-foreground); }
.callout ul { font-size: 0.93rem; color: var(--muted-foreground); margin: 8px 0 0 20px; }
.callout li { margin-bottom: 4px; }

/* === FEATURE DETAIL === */
.feature-detail {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 24px;
    align-items: start;
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 36px;
    border: 1px solid var(--border);
    margin-bottom: 24px;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.feature-detail:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.feature-detail-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 1.5rem;
}
.feature-detail h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature-detail p { font-size: 0.95rem; color: var(--muted-foreground); }

/* === PROFILE CARDS === */
.profile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.profile-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border);
    text-align: center;
}
.profile-card h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--primary); }
.profile-card p { font-size: 0.9rem; color: var(--muted-foreground); }

/* === ICON === */
.icon { display: inline-flex; }

/* === JOB BLOCKS (fonctionnalites.html) === */
.job-section { padding: 80px 0; }
.job-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.job-block.reverse .job-text { order: 2; }
.job-block.reverse .job-visual { order: 1; }
.job-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.job-num {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--primary);
    background: var(--primary-soft);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: -0.02em;
}
.job-text h2 {
    font-size: 1.9rem;
    line-height: 1.15;
    margin-bottom: 16px;
    color: var(--foreground);
}
.job-quote {
    border-left: 3px solid color-mix(in oklch, var(--primary) 45%, transparent);
    padding: 4px 0 4px 16px;
    font-style: italic;
    color: var(--muted-foreground);
    margin-bottom: 16px;
    font-size: 0.98rem;
}
.job-text > p {
    color: var(--muted-foreground);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 24px;
}
.job-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}
.job-features li {
    position: relative;
    padding-left: 28px;
    font-size: 0.95rem;
    color: var(--foreground);
    line-height: 1.5;
}
.job-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: color-mix(in oklch, var(--primary) 14%, transparent);
}
.job-features li::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 7px;
    width: 8px;
    height: 5px;
    border-left: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(-45deg);
}
.job-visual {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Job 1 - Grid planning */
.job-visual-grid { gap: 14px; position: relative; }
.jvg-row {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 12px;
    align-items: center;
}
.jvg-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: oklch(0.62 0.16 var(--c));
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.jvg-track {
    position: relative;
    height: 24px;
    background: color-mix(in oklch, var(--foreground) 5%, transparent);
    border-radius: 6px;
}
.jvg-chip {
    position: absolute;
    top: 3px;
    height: 18px;
    left: var(--x);
    width: var(--w);
    background: oklch(0.62 0.16 var(--c));
    border-radius: 4px;
    box-shadow: 0 1px 2px oklch(0 0 0 / 0.08);
}
.jvg-row:nth-child(1) .jvg-chip { background: oklch(0.62 0.16 210); }
.jvg-row:nth-child(2) .jvg-chip { background: oklch(0.66 0.18 30); }
.jvg-row:nth-child(3) .jvg-chip { background: oklch(0.6 0.14 160); }
.jvg-live {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--muted-foreground);
    background: var(--background);
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
}
.jvg-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: oklch(0.62 0.2 145);
    box-shadow: 0 0 0 3px color-mix(in oklch, oklch(0.62 0.2 145) 25%, transparent);
    animation: jvg-pulse 1.8s ease-in-out infinite;
}
@keyframes jvg-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.75; }
}

/* Job 2 - Reassignment */
.job-visual-reassign {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    justify-content: center;
}
.jvr-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    flex: 1;
    max-width: 220px;
    box-shadow: var(--shadow-sm);
}
.jvr-label {
    font-size: 0.72rem;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    font-weight: 600;
}
.jvr-course {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--border);
}
.jvr-time {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--foreground);
}
.jvr-client {
    font-size: 0.85rem;
    color: var(--muted-foreground);
}
.jvr-driver {
    display: flex;
    align-items: center;
    gap: 10px;
}
.jvr-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: oklch(0.62 0.16 var(--c));
    color: #fff;
    font-weight: 700;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.jvr-driver-absent .jvr-avatar {
    filter: grayscale(0.7);
    opacity: 0.55;
}
.jvr-status {
    font-size: 0.8rem;
    padding: 3px 10px;
    border-radius: 999px;
    background: color-mix(in oklch, oklch(0.6 0.2 25) 18%, transparent);
    color: oklch(0.55 0.2 25);
    font-weight: 600;
}
.jvr-status-ok {
    background: color-mix(in oklch, oklch(0.62 0.2 145) 18%, transparent);
    color: oklch(0.48 0.2 145);
}
.jvr-arrow {
    color: var(--primary);
    display: inline-flex;
    animation: jvr-slide 2.2s ease-in-out infinite;
}
@keyframes jvr-slide {
    0%, 100% { transform: translateX(0); opacity: 0.6; }
    50% { transform: translateX(4px); opacity: 1; }
}

/* Job 3 - Calendar */
.job-visual-calendar { gap: 12px; }
.jvc-head, .jvc-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}
.jvc-head span {
    font-size: 0.72rem;
    color: var(--muted-foreground);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}
.jvc-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    color: var(--muted-foreground);
    background: color-mix(in oklch, var(--foreground) 3%, transparent);
    border-radius: 6px;
    font-weight: 500;
}
.jvc-active {
    background: color-mix(in oklch, var(--primary) 18%, transparent);
    color: var(--primary);
    font-weight: 700;
}
.jvc-excluded {
    background: color-mix(in oklch, oklch(0.6 0.2 25) 14%, transparent);
    color: oklch(0.55 0.2 25);
    font-weight: 700;
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
}
.jvc-legend {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 8px;
    font-size: 0.82rem;
    color: var(--muted-foreground);
}
.jvc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.jvc-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}
.jvc-dot-active { background: color-mix(in oklch, var(--primary) 18%, transparent); border: 1px solid var(--primary); }
.jvc-dot-excluded { background: color-mix(in oklch, oklch(0.6 0.2 25) 14%, transparent); border: 1px solid oklch(0.55 0.2 25); }

/* Job 4 - Phone */
.job-visual-phone {
    align-items: center;
    padding: 24px 16px;
}
.jvp-frame {
    width: 100%;
    max-width: 260px;
    background: var(--background);
    border: 8px solid oklch(0.14 0.02 260);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 40px oklch(0 0 0 / 0.15);
    position: relative;
}
.jvp-notch {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 18px;
    background: oklch(0.14 0.02 260);
    border-radius: 0 0 12px 12px;
    z-index: 2;
}
.jvp-header {
    padding: 28px 16px 12px;
    background: linear-gradient(135deg, var(--primary) 0%, color-mix(in oklch, var(--primary) 80%, oklch(0.42 0.18 270)) 100%);
    color: #fff;
}
.jvp-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 2px;
}
.jvp-date { font-size: 0.8rem; opacity: 0.85; }
.jvp-list { padding: 10px; }
.jvp-item {
    display: grid;
    grid-template-columns: 44px 1fr 12px;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 4px;
    border: 1px solid transparent;
}
.jvp-item.jvp-current {
    background: color-mix(in oklch, var(--primary) 10%, transparent);
    border-color: color-mix(in oklch, var(--primary) 25%, transparent);
}
.jvp-time {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary);
}
.jvp-body { display: flex; flex-direction: column; }
.jvp-body strong { font-size: 0.82rem; color: var(--foreground); font-weight: 600; }
.jvp-body span { font-size: 0.72rem; color: var(--muted-foreground); }
.jvp-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: color-mix(in oklch, var(--foreground) 12%, transparent);
    justify-self: center;
}
.jvp-dot.jvp-done { background: oklch(0.62 0.2 145); }
.jvp-dot.jvp-live {
    background: oklch(0.62 0.2 145);
    box-shadow: 0 0 0 3px color-mix(in oklch, oklch(0.62 0.2 145) 25%, transparent);
    animation: jvg-pulse 1.8s ease-in-out infinite;
}

/* Job 5 - KPIs */
.job-visual-kpis { padding: 24px; }
.jvk-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.jvk-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}
.jvk-label {
    font-size: 0.78rem;
    color: var(--muted-foreground);
    margin-bottom: 8px;
    font-weight: 500;
}
.jvk-value {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    color: var(--foreground);
    line-height: 1;
    margin-bottom: 6px;
}
.jvk-value-sm { font-size: 1.15rem; }
.jvk-sub { font-size: 1.05rem; color: var(--muted-foreground); font-weight: 600; }
.jvk-value.jvk-warn { color: oklch(0.58 0.2 55); }
.jvk-trend {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}
.jvk-trend.jvk-up { color: oklch(0.5 0.2 145); font-weight: 600; }
.jvk-trend.jvk-warn { color: oklch(0.55 0.2 55); font-weight: 600; }
[data-theme="dark"] .jvk-trend.jvk-up { color: oklch(0.78 0.17 145); }
[data-theme="dark"] .jvk-trend.jvk-warn { color: oklch(0.78 0.17 60); }

/* Responsive job blocks */
@media (max-width: 860px) {
    .job-block, .job-block.reverse {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .job-block.reverse .job-text,
    .job-block.reverse .job-visual { order: unset; }
    .job-visual { min-height: auto; padding: 24px; }
    .job-visual-grid .jvg-live {
        position: static;
        align-self: flex-end;
        order: -1;
        margin-bottom: 4px;
    }
    .job-text h2 { font-size: 1.55rem; }
    .job-section { padding: 56px 0; }
}
@media (max-width: 520px) {
    .job-visual-reassign { flex-direction: column; }
    .jvr-arrow { transform: rotate(90deg); }
    .jvr-card { max-width: 100%; width: 100%; }
}

/* === FOOTER === */
.footer {
    background: oklch(0.14 0.02 260);
    color: oklch(1 0 0 / 0.6);
    padding: 48px 0;
    font-size: 0.85rem;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { color: oklch(1 0 0 / 0.6); transition: color var(--transition-fast); }
.footer-links a:hover { color: oklch(1 0 0); }

/* === MOTION PREFERENCES === */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-mockup { max-width: 420px; margin: 0 auto; }
    .problem-grid, .features-grid, .stats-grid, .steps-grid, .faq-grid, .grid-2, .grid-3, .profile-grid { grid-template-columns: 1fr; }
    .section { padding: 64px 0; }
    .page-header { padding: 120px 0 48px; }
    .container { padding: 0 16px; }
    .nav-inner { gap: 8px; }
    .nav-logo {
        font-size: 1.1rem;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .nav-toggle { display: inline-flex; }
    .nav-actions { gap: 6px; }
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 85vw);
        height: 100vh;
        height: 100dvh;
        background: var(--background);
        border-left: 1px solid var(--border);
        box-shadow: -8px 0 24px oklch(0 0 0 / 0.12);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 72px 20px 32px;
        margin: 0;
        transform: translateX(100%);
        transition: transform 260ms cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 95;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
    }
    .nav-links.is-open {
        transform: translateX(0);
    }
    .nav-close-wrapper { display: block; list-style: none; }
    .nav-close {
        display: inline-flex;
        position: absolute;
        top: 16px;
        right: 16px;
        background: transparent;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        width: 40px;
        height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: var(--foreground);
        padding: 0;
        transition: border-color var(--transition-fast), color var(--transition-fast);
    }
    .nav-close:hover { color: var(--primary); border-color: var(--primary); }
    .nav-close svg { width: 18px; height: 18px; }
    .nav-links li { width: 100%; list-style: none; }
    .nav-links a:not(.btn) {
        display: block;
        padding: 14px 12px;
        font-size: 1rem;
        border-radius: var(--radius-md);
    }
    .nav-links a:not(.btn):hover { background: var(--muted); }
    .nav-links .btn-primary {
        display: flex;
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 0.95rem;
        margin-top: 12px;
    }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .btn-lg { text-align: center; justify-content: center; }
    .footer-inner { flex-direction: column; text-align: center; }
    .case-card { padding: 24px; }
    .feature-detail { grid-template-columns: 1fr; }
    .feature-detail-icon { margin: 0 auto; }
    .feature-detail > div { text-align: center; }
}
@media (min-width: 769px) {
    .nav-backdrop { display: none; }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .problem-grid { grid-template-columns: 1fr; }
    .steps-grid { gap: 32px; }
    .profile-grid { grid-template-columns: repeat(2, 1fr); }
}

/* === ULTRA-NARROW (phones 320-400px) === */
@media (max-width: 400px) {
    .container { padding: 0 12px; }
    .section { padding: 56px 0; }
    .page-header { padding: 104px 0 36px; }
    h1, h2, h3, .section-title, .hero h1, .page-header h1 {
        overflow-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
    }
    .hero { padding: 120px 0 64px; }
    .hero h1 { font-size: 1.7rem; }
    .hero-desc { font-size: 1rem; }
    .section-title { font-size: 1.5rem; }
    .section-subtitle { font-size: 0.98rem; }
    .btn {
        white-space: normal;
        text-align: center;
        line-height: 1.25;
        padding: 12px 18px;
        font-size: 0.9rem;
    }
    .btn-lg { padding: 14px 20px; font-size: 0.95rem; }
    .cta-buttons { flex-direction: column; align-items: stretch; gap: 12px; }
    .cta-section .btn, .hero-cta .btn { width: 100%; justify-content: center; }
    .card { padding: 20px; }
    .faq-item { padding: 20px; }
    .pricing-card { padding: 28px 20px; }
    .pricing-list { font-size: 0.9rem; }
    .footer-inner { padding: 0; }
}

/* =========================================================================
   BLOG
   ========================================================================= */

/* Breadcrumbs */
.blog-breadcrumbs {
    font-size: 0.82rem;
    color: var(--muted-foreground);
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.blog-breadcrumbs a {
    color: var(--muted-foreground);
    text-decoration: none;
}
.blog-breadcrumbs a:hover { color: var(--primary); }
.blog-breadcrumbs .bc-sep { color: color-mix(in oklch, var(--muted-foreground) 55%, transparent); }
.blog-breadcrumbs [aria-current="page"] { color: var(--foreground); font-weight: 500; }

/* Header de la page index blog */
.blog-header {
    padding: 140px 0 48px;
    text-align: center;
    background: linear-gradient(180deg, color-mix(in oklch, var(--primary) 6%, transparent), transparent);
}
.blog-header .blog-breadcrumbs {
    justify-content: center;
    margin-bottom: 16px;
}
.blog-header h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-family: var(--font-heading);
    font-weight: 800;
    margin-bottom: 12px;
}
.blog-header-sub {
    max-width: 640px;
    margin: 0 auto;
    color: var(--muted-foreground);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Grille de cards */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 1040px;
    margin: 0 auto;
}
.blog-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: color-mix(in oklch, var(--primary) 40%, var(--border));
}
.blog-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}
.blog-card-cover {
    height: 160px;
    position: relative;
    background: linear-gradient(135deg, oklch(0.55 0.14 255), oklch(0.45 0.16 275));
    display: flex;
    align-items: flex-end;
    padding: 16px;
}
.blog-card-cover[data-cover="2"] { background: linear-gradient(135deg, oklch(0.6 0.14 165), oklch(0.48 0.16 195)); }
.blog-card-cover[data-cover="3"] { background: linear-gradient(135deg, oklch(0.62 0.16 40), oklch(0.52 0.17 25)); }
.blog-card-cover[data-cover="4"] { background: linear-gradient(135deg, oklch(0.55 0.14 300), oklch(0.45 0.16 320)); }
.blog-card-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.15), transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.12), transparent 45%);
    pointer-events: none;
}
.blog-card-tag {
    display: inline-block;
    background: rgba(255,255,255,0.92);
    color: oklch(0.3 0.12 255);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    position: relative;
    z-index: 1;
}
.blog-card-body { padding: 24px; }
.blog-card-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 0.78rem;
    color: var(--muted-foreground);
    margin-bottom: 12px;
}
.blog-card h2 {
    font-size: 1.15rem;
    line-height: 1.35;
    margin-bottom: 10px;
    font-weight: 700;
}
.blog-card-body p {
    font-size: 0.92rem;
    color: var(--muted-foreground);
    line-height: 1.55;
    margin-bottom: 14px;
}
.blog-card-read {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary);
}

/* Article */
.blog-article {
    padding: 140px 0 80px;
}
.blog-container {
    max-width: 760px;
}
.blog-article-head {
    margin-bottom: 32px;
}
.blog-article-head .blog-card-tag {
    background: color-mix(in oklch, var(--primary) 12%, transparent);
    color: var(--primary);
    margin-bottom: 16px;
}
.blog-article-head h1 {
    font-size: clamp(1.8rem, 3.8vw, 2.6rem);
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}
.blog-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.86rem;
    color: var(--muted-foreground);
}

.blog-article-lead {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--foreground);
    padding: 24px 28px;
    border-left: 3px solid var(--primary);
    background: color-mix(in oklch, var(--primary) 4%, transparent);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin-bottom: 40px;
}
[data-theme="dark"] .blog-article-lead {
    background: color-mix(in oklch, var(--primary) 10%, var(--card));
}

/* Table des matières */
.blog-toc {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-bottom: 48px;
}
.blog-toc strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--foreground);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.blog-toc ol {
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.blog-toc li { font-size: 0.92rem; }
.blog-toc a {
    color: var(--foreground);
    text-decoration: none;
    border-bottom: 1px dashed transparent;
    transition: color 150ms ease, border-color 150ms ease;
}
.blog-toc a:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Corps d'article */
.blog-article-body {
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--foreground);
}
.blog-article-body h2 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.55rem;
    margin-top: 48px;
    margin-bottom: 16px;
    line-height: 1.3;
    scroll-margin-top: 100px;
}
.blog-article-body h2:first-child { margin-top: 0; }
.blog-article-body h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.18rem;
    margin-top: 32px;
    margin-bottom: 10px;
    color: var(--foreground);
}
.blog-article-body p {
    margin-bottom: 18px;
    color: var(--foreground);
}
.blog-article-body ul,
.blog-article-body ol {
    margin: 0 0 20px 0;
    padding-left: 24px;
}
.blog-article-body li {
    margin-bottom: 10px;
    line-height: 1.7;
}
.blog-article-body li::marker { color: var(--primary); }
.blog-article-body strong { color: var(--foreground); font-weight: 600; }
.blog-article-body em { font-style: italic; color: var(--foreground); }
.blog-article-body a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.blog-article-body a:hover {
    text-decoration-thickness: 2px;
}

/* Checklist spécifique */
.blog-checklist {
    list-style: none !important;
    padding-left: 0 !important;
}
.blog-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-left: 0;
}
.blog-checklist li::before {
    content: "\2713";
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    color: var(--success);
    border-radius: 4px;
    background: color-mix(in oklch, var(--success) 20%, transparent);
    border: 1.5px solid var(--success);
    margin-top: 0.2em;
}

/* CTA de fin d'article */
.blog-article-cta {
    margin: 56px 0 40px;
    padding: 32px;
    background: linear-gradient(135deg, color-mix(in oklch, var(--primary) 8%, var(--card)), var(--card));
    border: 1px solid color-mix(in oklch, var(--primary) 25%, var(--border));
    border-radius: var(--radius-lg);
    text-align: center;
}
.blog-article-cta h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 10px;
}
.blog-article-cta p {
    color: var(--muted-foreground);
    margin-bottom: 20px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
.blog-article-cta .cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Articles liés */
.blog-related {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}
.blog-related h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted-foreground);
    margin-bottom: 20px;
}
.blog-related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.blog-related-card {
    display: block;
    padding: 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: inherit;
    text-decoration: none;
    transition: transform 200ms ease, border-color 200ms ease;
}
.blog-related-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}
.blog-related-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 8px;
}
.blog-related-card strong {
    display: block;
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 600;
    color: var(--foreground);
}

/* Table comparative (article #4) */
.blog-table-wrap {
    overflow-x: auto;
    margin: 24px 0 32px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}
.blog-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    min-width: 560px;
}
.blog-table th,
.blog-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.blog-table th {
    background: color-mix(in oklch, var(--primary) 8%, var(--card));
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--foreground);
}
.blog-table tbody tr:last-child th,
.blog-table tbody tr:last-child td { border-bottom: none; }
.blog-table tbody tr:nth-child(even) td {
    background: color-mix(in oklch, var(--muted) 50%, transparent);
}
.blog-table td:first-child {
    font-weight: 600;
    color: var(--foreground);
}

@media (max-width: 720px) {
    .blog-grid { grid-template-columns: 1fr; gap: 20px; }
    .blog-related-grid { grid-template-columns: 1fr; }
    .blog-article { padding: 120px 0 64px; }
    .blog-article-lead { padding: 18px 20px; font-size: 1rem; }
    .blog-article-cta { padding: 24px 20px; }
}

/* Transformation de la table en cartes empilées sur mobile */
@media (max-width: 600px) {
    .blog-table-wrap {
        overflow-x: visible;
        border: none;
        border-radius: 0;
    }
    .blog-table {
        min-width: 0;
        display: block;
    }
    .blog-table thead { display: none; }
    .blog-table tbody { display: block; }
    .blog-table tbody tr {
        display: block;
        margin-bottom: 14px;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        overflow: hidden;
        background: var(--card);
    }
    .blog-table tbody tr:nth-child(even) td {
        background: transparent;
    }
    .blog-table td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 12px;
        padding: 10px 14px;
        border-bottom: 1px solid var(--border);
        font-size: 0.85rem;
        text-align: right;
        word-break: break-word;
        overflow-wrap: anywhere;
    }
    .blog-table td:last-child { border-bottom: none; }
    .blog-table td::before {
        content: attr(data-label);
        flex: 0 0 auto;
        max-width: 55%;
        font-weight: 600;
        color: var(--muted-foreground);
        text-align: left;
        font-size: 0.78rem;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }
    .blog-table td:first-child {
        background: color-mix(in oklch, var(--primary) 8%, var(--card));
        font-weight: 700;
        display: block;
        text-align: left;
        padding: 12px 14px;
    }
    .blog-table td:first-child::before { display: none; }
}
