/* MobGarage — UI inspirée FM2025 / atelier mécanique */

:root {
    --fm-bg-deep: #0a0e12;
    --fm-bg: #0f1419;
    --fm-bg-panel: #151c24;
    --fm-bg-panel-hover: #1a232e;
    --fm-bg-elevated: #1e2732;
    --fm-border: #2a3544;
    --fm-border-light: #3d4f63;
    --fm-text: #e8edf2;
    --fm-text-muted: #8b9aab;
    --fm-text-dim: #5c6b7a;
    --fm-accent: #3d9be8;
    --fm-accent-dim: #2a6fa8;
    --fm-accent-glow: rgba(61, 155, 232, 0.25);
    --fm-success: #3ecf8e;
    --fm-warning: #e8a838;
    --fm-danger: #e85d5d;
    --fm-orange: #e87a3d;
    --fm-mono: 'IBM Plex Mono', monospace;
    --fm-sans: 'IBM Plex Sans', system-ui, sans-serif;
    --fm-sidebar-w: 240px;
    --fm-radius: 4px;
    --fm-radius-lg: 6px;
    --fm-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

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

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

.fm-body {
    font-family: var(--fm-sans);
    font-size: 13px;
    line-height: 1.45;
    color: var(--fm-text);
    background: var(--fm-bg-deep);
    -webkit-font-smoothing: antialiased;
}

.fm-mono { font-family: var(--fm-mono); font-variant-numeric: tabular-nums; }

/* Layout */
.fm-app {
    display: flex;
    min-height: 100vh;
}

.fm-sidebar {
    width: var(--fm-sidebar-w);
    flex-shrink: 0;
    background: linear-gradient(180deg, #0c1016 0%, #0a0e12 100%);
    border-right: 1px solid var(--fm-border);
    display: flex;
    flex-direction: column;
    transition: width 0.2s ease;
}

.fm-sidebar--collapsed {
    width: 64px;
}

.fm-sidebar--collapsed .fm-sidebar__titles,
.fm-sidebar--collapsed .fm-nav__item span:not(.fm-nav__icon),
.fm-sidebar--collapsed .fm-nav__section,
.fm-sidebar--collapsed .fm-badge {
    display: none;
}

.fm-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(61, 155, 232, 0.06), transparent),
        var(--fm-bg);
}

.fm-content {
    flex: 1;
    padding: 16px 20px 24px;
    overflow-x: auto;
}

/* Sidebar brand */
.fm-sidebar__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 16px;
    border-bottom: 1px solid var(--fm-border);
}

.fm-logo {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--fm-accent) 0%, var(--fm-accent-dim) 100%);
    border-radius: var(--fm-radius);
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    box-shadow: 0 0 12px var(--fm-accent-glow);
}

.fm-sidebar__titles strong {
    display: block;
    font-size: 14px;
    letter-spacing: 0.02em;
}

.fm-sidebar__titles small {
    color: var(--fm-text-dim);
    font-size: 11px;
}

/* Nav */
.fm-nav {
    flex: 1;
    padding: 12px 8px;
    overflow-y: auto;
}

.fm-nav__section {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--fm-text-dim);
    padding: 14px 12px 6px;
    font-weight: 600;
}

.fm-nav__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 2px;
    border-radius: var(--fm-radius);
    color: var(--fm-text-muted);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    cursor: default;
}

a.fm-nav__item { cursor: pointer; }

.fm-nav__item:hover:not(.fm-nav__item--disabled) {
    background: var(--fm-bg-panel-hover);
    color: var(--fm-text);
}

.fm-nav__item.is-active {
    background: rgba(61, 155, 232, 0.12);
    color: var(--fm-accent);
    border-left: 2px solid var(--fm-accent);
    padding-left: 10px;
}

.fm-nav__item--disabled { opacity: 0.45; }

.fm-nav__icon {
    width: 20px;
    text-align: center;
    font-size: 14px;
}

.fm-badge {
    margin-left: auto;
    font-size: 9px;
    font-style: normal;
    background: var(--fm-bg-elevated);
    padding: 2px 6px;
    border-radius: 3px;
    color: var(--fm-text-dim);
}

.fm-sidebar__footer {
    padding: 12px;
    border-top: 1px solid var(--fm-border);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Header */
.fm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--fm-bg-panel);
    border-bottom: 1px solid var(--fm-border);
    flex-wrap: wrap;
    gap: 12px;
}

.fm-header__title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.fm-header__sub {
    display: block;
    font-size: 12px;
    color: var(--fm-text-muted);
    margin-top: 2px;
}

.fm-header__stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.fm-stat-pill {
    background: var(--fm-bg-elevated);
    border: 1px solid var(--fm-border);
    border-radius: var(--fm-radius);
    padding: 6px 12px;
    min-width: 100px;
}

.fm-stat-pill--accent {
    border-color: var(--fm-accent-dim);
    box-shadow: inset 0 0 0 1px rgba(61, 155, 232, 0.1);
}

.fm-stat-pill__label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--fm-text-dim);
}

.fm-stat-pill__value {
    font-size: 15px;
    font-weight: 600;
}

/* Alerts */
.fm-alert {
    margin: 0 20px;
    padding: 10px 14px;
    border-radius: var(--fm-radius);
    font-size: 13px;
}

.fm-alert--success {
    background: rgba(62, 207, 142, 0.12);
    border: 1px solid rgba(62, 207, 142, 0.35);
    color: var(--fm-success);
}

.fm-alert--danger {
    background: rgba(232, 93, 93, 0.12);
    border: 1px solid rgba(232, 93, 93, 0.35);
    color: var(--fm-danger);
}

/* Grid & panels */
.fm-grid {
    display: grid;
    gap: 14px;
}

.fm-grid--2 { grid-template-columns: repeat(2, 1fr); }
.fm-grid--3 { grid-template-columns: repeat(3, 1fr); }
.fm-grid--2-1 { grid-template-columns: 2fr 1fr; }
.fm-grid--1-2 { grid-template-columns: 1fr 2fr; }

@media (max-width: 1100px) {
    .fm-grid--2, .fm-grid--3, .fm-grid--2-1, .fm-grid--1-2 {
        grid-template-columns: 1fr;
    }
}

.fm-panel {
    background: var(--fm-bg-panel);
    border: 1px solid var(--fm-border);
    border-radius: var(--fm-radius-lg);
    box-shadow: var(--fm-shadow);
    overflow: hidden;
}

.fm-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: linear-gradient(180deg, var(--fm-bg-elevated) 0%, var(--fm-bg-panel) 100%);
    border-bottom: 1px solid var(--fm-border);
}

.fm-panel__title {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--fm-text-muted);
}

.fm-panel__body {
    padding: 14px;
}

.fm-panel__body--flush { padding: 0; }

/* Tables FM */
.fm-table-wrap { overflow-x: auto; }

.fm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.fm-table th {
    text-align: left;
    padding: 8px 12px;
    background: var(--fm-bg-elevated);
    color: var(--fm-text-dim);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    border-bottom: 1px solid var(--fm-border);
}

.fm-table td {
    padding: 9px 12px;
    border-bottom: 1px solid rgba(42, 53, 68, 0.6);
    vertical-align: middle;
}

.fm-table tbody tr:hover td {
    background: var(--fm-bg-panel-hover);
}

.fm-table tbody tr.is-highlight td {
    background: rgba(61, 155, 232, 0.1);
    border-left: 2px solid var(--fm-accent);
}

.fm-table .fm-mono { font-size: 11px; }

/* Stat bars */
.fm-stat-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.fm-stat-row__label {
    width: 90px;
    font-size: 11px;
    color: var(--fm-text-muted);
    text-transform: uppercase;
}

.fm-stat-bar {
    flex: 1;
    height: 8px;
    background: var(--fm-bg-deep);
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid var(--fm-border);
}

.fm-stat-bar__fill {
    height: 100%;
    border-radius: 1px;
    transition: width 0.4s ease;
}

.fm-stat-bar__fill--power { background: linear-gradient(90deg, #2a6fa8, var(--fm-accent)); }
.fm-stat-bar__fill--torque { background: linear-gradient(90deg, #6b4a9e, #9b6fd4); }
.fm-stat-bar__fill--reliability { background: linear-gradient(90deg, #2a6b4a, var(--fm-success)); }
.fm-stat-bar__fill--heat { background: linear-gradient(90deg, #8b5a2a, var(--fm-warning)); }
.fm-stat-bar__fill--risk { background: linear-gradient(90deg, #8b2a2a, var(--fm-danger)); }

.fm-stat-row__value {
    width: 42px;
    text-align: right;
    font-family: var(--fm-mono);
    font-size: 12px;
    font-weight: 600;
}

/* Mob card */
.fm-mob-card {
    display: flex;
    gap: 16px;
    padding: 14px;
    border-left: 3px solid var(--mob-accent, var(--fm-accent));
    background: var(--fm-bg-elevated);
    border-radius: var(--fm-radius);
    margin-bottom: 10px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s, box-shadow 0.15s;
}

.fm-mob-card:hover,
.fm-mob-card.is-selected {
    transform: translateX(2px);
    box-shadow: 0 0 0 1px var(--fm-border-light);
}

.fm-mob-card.is-selected {
    background: rgba(61, 155, 232, 0.08);
}

.fm-mob-card__visual {
    width: 80px;
    height: 64px;
    background:
        linear-gradient(135deg, rgba(0,0,0,0.3), transparent),
        repeating-linear-gradient(-45deg, transparent, transparent 4px, rgba(255,255,255,0.03) 4px, rgba(255,255,255,0.03) 8px);
    border: 1px solid var(--fm-border);
    border-radius: var(--fm-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.fm-mob-card__name {
    font-weight: 600;
    font-size: 14px;
    margin: 0 0 4px;
}

.fm-mob-card__meta {
    font-size: 11px;
    color: var(--fm-text-muted);
}

/* Tuning sliders */
.fm-tuning-grid {
    display: grid;
    gap: 16px;
}

.fm-slider-group label {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--fm-text-muted);
    margin-bottom: 6px;
}

.fm-slider-group input[type="range"] {
    width: 100%;
    accent-color: var(--fm-accent);
    height: 6px;
}

.fm-slider-value {
    font-family: var(--fm-mono);
    color: var(--fm-accent);
    font-weight: 600;
}

/* Warnings */
.fm-warnings {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fm-warnings li {
    padding: 8px 10px;
    margin-bottom: 6px;
    background: rgba(232, 168, 56, 0.1);
    border-left: 3px solid var(--fm-warning);
    font-size: 12px;
    border-radius: 0 var(--fm-radius) var(--fm-radius) 0;
}

.fm-health {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.fm-health--optimal { background: rgba(62, 207, 142, 0.15); color: var(--fm-success); }
.fm-health--correct { background: rgba(61, 155, 232, 0.15); color: var(--fm-accent); }
.fm-health--watch { background: rgba(232, 168, 56, 0.15); color: var(--fm-warning); }
.fm-health--critical { background: rgba(232, 93, 93, 0.15); color: var(--fm-danger); }

/* Buttons & forms */
.fm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 16px;
    font-family: var(--fm-sans);
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--fm-border-light);
    border-radius: var(--fm-radius);
    background: var(--fm-bg-elevated);
    color: var(--fm-text);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}

.fm-btn:hover {
    background: var(--fm-bg-panel-hover);
    border-color: var(--fm-accent-dim);
}

.fm-btn--primary {
    background: linear-gradient(180deg, var(--fm-accent) 0%, var(--fm-accent-dim) 100%);
    border-color: var(--fm-accent);
    color: #fff;
}

.fm-btn--primary:hover {
    filter: brightness(1.08);
}

.fm-btn--ghost {
    background: transparent;
    border-color: transparent;
    color: var(--fm-text-muted);
}

.fm-btn--sm { padding: 6px 10px; font-size: 11px; }

.fm-form-group {
    margin-bottom: 14px;
}

.fm-form-group label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--fm-text-muted);
    margin-bottom: 6px;
}

.fm-input {
    width: 100%;
    padding: 10px 12px;
    background: var(--fm-bg-deep);
    border: 1px solid var(--fm-border);
    border-radius: var(--fm-radius);
    color: var(--fm-text);
    font-family: var(--fm-sans);
    font-size: 13px;
}

.fm-input:focus {
    outline: none;
    border-color: var(--fm-accent);
    box-shadow: 0 0 0 2px var(--fm-accent-glow);
}

/* Auth */
.fm-auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(ellipse 60% 40% at 70% 10%, rgba(61, 155, 232, 0.12), transparent),
        var(--fm-bg-deep);
}

.fm-auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--fm-bg-panel);
    border: 1px solid var(--fm-border);
    border-radius: var(--fm-radius-lg);
    padding: 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.fm-auth-card--wide { max-width: 720px; }

.fm-auth-card h1 {
    margin: 0 0 6px;
    font-size: 22px;
}

.fm-auth-card .fm-subtitle {
    color: var(--fm-text-muted);
    margin: 0 0 24px;
    font-size: 13px;
}

/* Starter mob choice */
.fm-starter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

@media (max-width: 640px) {
    .fm-starter-grid { grid-template-columns: 1fr; }
}

.fm-starter-option {
    position: relative;
}

.fm-starter-option input {
    position: absolute;
    opacity: 0;
}

.fm-starter-option label {
    display: block;
    padding: 14px;
    border: 2px solid var(--fm-border);
    border-radius: var(--fm-radius);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    background: var(--fm-bg-elevated);
}

.fm-starter-option input:checked + label {
    border-color: var(--fm-accent);
    background: rgba(61, 155, 232, 0.08);
}

.fm-starter-option strong {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
}

.fm-starter-option small {
    color: var(--fm-text-muted);
    font-size: 11px;
}

.fm-starter-stats {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    font-family: var(--fm-mono);
    font-size: 10px;
    color: var(--fm-text-dim);
}

/* Race timeline */
.fm-race-item {
    display: flex;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--fm-border);
    align-items: center;
}

.fm-race-item:last-child { border-bottom: none; }

.fm-race-date {
    font-family: var(--fm-mono);
    font-size: 11px;
    color: var(--fm-accent);
    min-width: 88px;
}

.fm-race-status {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    font-weight: 600;
}

.fm-race-status--scheduled { background: rgba(61, 155, 232, 0.15); color: var(--fm-accent); }
.fm-race-status--finished { background: rgba(62, 207, 142, 0.15); color: var(--fm-success); }

/* Chart container */
.fm-chart-box {
    position: relative;
    height: 200px;
}

.fm-chart-box--sm { height: 140px; }

/* Empty state */
.fm-empty {
    text-align: center;
    padding: 32px;
    color: var(--fm-text-dim);
}

.fm-link {
    color: var(--fm-accent);
    text-decoration: none;
}

.fm-link:hover { text-decoration: underline; }

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

.fm-kpi-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

@media (max-width: 900px) {
    .fm-kpi-row { grid-template-columns: repeat(2, 1fr); }
}

.fm-kpi {
    background: var(--fm-bg-elevated);
    border: 1px solid var(--fm-border);
    border-radius: var(--fm-radius);
    padding: 12px;
    text-align: center;
}

.fm-kpi__val {
    font-family: var(--fm-mono);
    font-size: 20px;
    font-weight: 600;
    color: var(--fm-accent);
}

.fm-wear {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 3px;
}
.fm-wear--bon { background: rgba(62, 207, 142, 0.15); color: var(--fm-success); }
.fm-wear--usé { background: rgba(232, 168, 56, 0.15); color: var(--fm-warning); }
.fm-wear--fatigué { background: rgba(232, 122, 56, 0.15); color: var(--fm-orange); }
.fm-wear--critique { background: rgba(232, 93, 93, 0.15); color: var(--fm-danger); }

.fm-kpi__lbl {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--fm-text-dim);
    margin-top: 4px;
}

/* ============================================================
   LANDING PAGE — intro course moto (racing)
   ============================================================ */
@property --val {
    syntax: '<number>';
    inherits: false;
    initial-value: 0;
}
.lp {
    --race-red: #ff3b30;
    --race-orange: #ff7a18;
    --race-yellow: #ffd23f;
    --race-blue: #3d9be8;
    --race-glow: rgba(255, 122, 24, 0.45);
}

/* --- Nav --- */
.lp-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(8, 10, 14, 0.82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--fm-border);
}
.lp-nav__inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.lp-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fm-text); }
.lp-brand .fm-logo {
    background: linear-gradient(135deg, var(--race-orange), var(--race-red));
    box-shadow: 0 0 16px var(--race-glow);
}
.lp-brand__name { font-weight: 700; font-size: 18px; letter-spacing: 0.04em; text-transform: uppercase; }
.lp-nav__links { display: flex; align-items: center; gap: 18px; }
.lp-nav__links a:not(.fm-btn) { color: var(--fm-text-muted); text-decoration: none; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.lp-nav__links a:not(.fm-btn):hover { color: var(--race-orange); }
.lp-nav .fm-btn--primary {
    background: linear-gradient(135deg, var(--race-orange), var(--race-red));
    border-color: var(--race-red);
    box-shadow: 0 0 14px var(--race-glow);
}

/* --- Boutons racing --- */
.lp-btn-lg { padding: 15px 30px; font-size: 15px; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700; }
.lp-btn-race {
    background: linear-gradient(135deg, var(--race-orange), var(--race-red));
    border: none;
    color: #fff;
    box-shadow: 0 6px 22px rgba(255, 59, 48, 0.35);
    animation: lp-pulse 2.4s ease-in-out infinite;
}
.lp-btn-race:hover { filter: brightness(1.1); transform: translateY(-2px); }
@keyframes lp-pulse {
    0%, 100% { box-shadow: 0 6px 22px rgba(255, 59, 48, 0.3); }
    50% { box-shadow: 0 6px 34px rgba(255, 122, 24, 0.6); }
}

/* --- HERO --- */
.lp-hero {
    position: relative;
    overflow: hidden;
    min-height: 92vh;
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--race-red);
    background: #07090d;
}
.lp-hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 75% 15%, rgba(255, 122, 24, 0.22), transparent 60%),
        radial-gradient(ellipse 55% 55% at 12% 85%, rgba(61, 155, 232, 0.16), transparent 55%);
}
/* grille perspective qui défile */
.lp-hero__grid {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 200%;
    height: 55%;
    transform: translateX(-50%) perspective(420px) rotateX(62deg);
    transform-origin: bottom center;
    background-image:
        linear-gradient(rgba(255, 122, 24, 0.25) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 122, 24, 0.18) 1px, transparent 1px);
    background-size: 48px 48px;
    animation: lp-grid 1.1s linear infinite;
    mask-image: linear-gradient(to top, #000 10%, transparent 85%);
    -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%);
}
@keyframes lp-grid {
    from { background-position: 0 0; }
    to { background-position: 0 48px; }
}
/* lignes de vitesse */
.lp-speedlines { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.lp-speedlines span {
    position: absolute;
    height: 2px;
    width: 180px;
    background: linear-gradient(90deg, transparent, rgba(255, 210, 63, 0.55));
    border-radius: 2px;
    animation: lp-speed linear infinite;
}
.lp-speedlines span:nth-child(1) { top: 22%; animation-duration: 1.6s; }
.lp-speedlines span:nth-child(2) { top: 38%; width: 120px; animation-duration: 1.1s; animation-delay: .3s; }
.lp-speedlines span:nth-child(3) { top: 55%; width: 220px; animation-duration: 2s; animation-delay: .1s; }
.lp-speedlines span:nth-child(4) { top: 68%; width: 90px; animation-duration: .9s; animation-delay: .5s; }
.lp-speedlines span:nth-child(5) { top: 80%; width: 160px; animation-duration: 1.4s; }
@keyframes lp-speed {
    from { left: -240px; opacity: 0; }
    20% { opacity: 1; }
    to { left: 110%; opacity: 0; }
}

.lp-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    margin: 0 auto;
    padding: 60px 20px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}
@media (max-width: 920px) {
    .lp-hero__inner { grid-template-columns: 1fr; text-align: center; }
}
.lp-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid var(--race-red);
    border-radius: 30px;
    font-size: 12px;
    color: var(--race-yellow);
    background: rgba(255, 59, 48, 0.1);
    margin-bottom: 22px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}
.lp-badge::before {
    content: '';
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--race-red);
    box-shadow: 0 0 8px var(--race-red);
    animation: lp-blink 1s steps(2) infinite;
}
@keyframes lp-blink { 50% { opacity: 0.2; } }

.lp-hero__title {
    font-size: clamp(38px, 6.5vw, 68px);
    line-height: 0.98;
    margin: 0 0 18px;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    font-weight: 700;
}
.lp-accent {
    background: linear-gradient(100deg, var(--race-yellow), var(--race-orange) 45%, var(--race-red));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 40px var(--race-glow);
}
.lp-hero__lead {
    font-size: clamp(15px, 2.2vw, 18px);
    color: var(--fm-text-muted);
    max-width: 560px;
    margin: 0 0 30px;
    line-height: 1.6;
}
@media (max-width: 920px) { .lp-hero__lead { margin-inline: auto; } }
.lp-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 920px) { .lp-hero__cta { justify-content: center; } }

/* compteurs sous le hero */
.lp-hero__counters {
    display: flex;
    gap: 34px;
    margin-top: 40px;
    flex-wrap: wrap;
}
@media (max-width: 920px) { .lp-hero__counters { justify-content: center; } }
.lp-counter strong {
    display: block;
    font-family: var(--fm-mono);
    font-size: 34px;
    font-weight: 600;
    color: #fff;
    line-height: 1;
}
.lp-counter span {
    font-size: 11px;
    color: var(--fm-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* --- Tableau de bord télémétrie (mock) --- */
.lp-dash {
    position: relative;
    background: linear-gradient(160deg, #11161d, #0a0d12);
    border: 1px solid var(--fm-border);
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.02);
}
.lp-dash__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.lp-dash__title { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--fm-text-dim); }
.lp-dash__live { font-size: 10px; color: var(--race-red); font-weight: 700; letter-spacing: 0.1em; }
.lp-dash__gauges { display: flex; gap: 18px; align-items: center; }

/* jauge circulaire régime */
.lp-gauge {
    --val: 0;
    position: relative;
    width: 130px; height: 130px;
    border-radius: 50%;
    background:
        conic-gradient(from -135deg,
            var(--race-yellow) 0deg,
            var(--race-orange) calc(var(--val) * 2.7deg * 0.6),
            var(--race-red) calc(var(--val) * 2.7deg),
            rgba(255,255,255,0.06) calc(var(--val) * 2.7deg));
    -webkit-mask: radial-gradient(farthest-side, transparent 62%, #000 64%);
    mask: radial-gradient(farthest-side, transparent 62%, #000 64%);
    transition: --val 1.6s cubic-bezier(.2,.8,.2,1);
}
.lp-gauge__wrap { position: relative; width: 130px; height: 130px; flex-shrink: 0; }
.lp-gauge__center {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center;
}
.lp-gauge__val { font-family: var(--fm-mono); font-size: 26px; font-weight: 600; color: #fff; }
.lp-gauge__unit { font-size: 9px; color: var(--fm-text-dim); text-transform: uppercase; letter-spacing: 0.1em; }

.lp-dash__bars { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.lp-tbar__head { display: flex; justify-content: space-between; font-size: 10px; text-transform: uppercase; color: var(--fm-text-dim); margin-bottom: 4px; letter-spacing: 0.05em; }
.lp-tbar__track { height: 7px; background: rgba(255,255,255,0.05); border-radius: 4px; overflow: hidden; }
.lp-tbar__fill { height: 100%; width: 0; border-radius: 4px; transition: width 1.4s cubic-bezier(.2,.8,.2,1); }
.lp-tbar__fill--pwr { background: linear-gradient(90deg, var(--race-orange), var(--race-red)); }
.lp-tbar__fill--spd { background: linear-gradient(90deg, var(--race-blue), #6fd0ff); }
.lp-tbar__fill--rel { background: linear-gradient(90deg, #2a6b4a, var(--fm-success)); }

/* courbe de puissance SVG */
.lp-curve { margin-top: 18px; border-top: 1px solid var(--fm-border); padding-top: 14px; }
.lp-curve__label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fm-text-dim); margin-bottom: 6px; }
.lp-curve svg { width: 100%; height: 90px; display: block; }
.lp-curve__path {
    fill: none;
    stroke: url(#lpGrad);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: lp-draw 2s ease forwards .4s;
    filter: drop-shadow(0 0 6px rgba(255,122,24,0.5));
}
.lp-curve__area { fill: url(#lpArea); opacity: 0; animation: lp-fade 1.2s ease forwards 1.6s; }
@keyframes lp-draw { to { stroke-dashoffset: 0; } }
@keyframes lp-fade { to { opacity: 1; } }

/* --- Sections --- */
.lp-section { max-width: 1180px; margin: 0 auto; padding: 80px 20px; }
.lp-section--alt {
    max-width: none;
    background:
        repeating-linear-gradient(-45deg, transparent, transparent 14px, rgba(255,255,255,0.012) 14px, rgba(255,255,255,0.012) 15px),
        var(--fm-bg-panel);
    border-top: 1px solid var(--fm-border);
    border-bottom: 1px solid var(--fm-border);
}
.lp-section--alt > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.lp-section__head { text-align: center; margin-bottom: 46px; }
.lp-kicker {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--race-orange);
    margin-bottom: 10px;
}
.lp-section__head h2 {
    font-size: clamp(26px, 4.4vw, 40px);
    margin: 0 0 10px;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}
.lp-section__head p { color: var(--fm-text-muted); margin: 0; font-size: 15px; }

.lp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lp-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) {
    .lp-grid, .lp-grid--3 { grid-template-columns: 1fr; }
    .lp-nav__links a:not(.fm-btn) { display: none; }
}

.lp-card {
    position: relative;
    background: var(--fm-bg-elevated);
    border: 1px solid var(--fm-border);
    border-radius: var(--fm-radius-lg);
    padding: 26px 24px;
    overflow: hidden;
    transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.lp-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--race-orange), var(--race-red));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.lp-card:hover {
    transform: translateY(-4px);
    border-color: var(--race-orange);
    box-shadow: 0 14px 40px rgba(255, 90, 30, 0.12);
}
.lp-card:hover::before { transform: scaleX(1); }
.lp-card__icon {
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    background: linear-gradient(135deg, rgba(255,122,24,0.18), rgba(255,59,48,0.12));
    border-radius: var(--fm-radius);
    margin-bottom: 14px;
}
.lp-card h3 { margin: 0 0 8px; font-size: 17px; }
.lp-card p { margin: 0; color: var(--fm-text-muted); font-size: 13px; line-height: 1.55; }

.lp-mob {
    position: relative;
    background: var(--fm-bg-elevated);
    border: 1px solid var(--fm-border);
    border-top: 3px solid var(--mob-accent, var(--race-orange));
    border-radius: var(--fm-radius-lg);
    padding: 26px 24px;
    text-align: center;
    transition: transform 0.18s, box-shadow 0.18s;
}
.lp-mob:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(0,0,0,0.4); }
.lp-mob__visual { font-size: 50px; margin-bottom: 8px; filter: drop-shadow(0 6px 10px rgba(0,0,0,0.5)); }
.lp-mob h3 { margin: 0 0 4px; font-size: 19px; color: var(--mob-accent, var(--race-orange)); }
.lp-mob__brand { font-size: 12px; color: var(--fm-text-dim); text-transform: uppercase; letter-spacing: 0.06em; }
.lp-mob p { color: var(--fm-text-muted); font-size: 13px; margin: 12px 0; line-height: 1.5; }
.lp-mob__stats { display: flex; gap: 12px; justify-content: center; font-size: 11px; color: var(--fm-text-dim); border-top: 1px solid var(--fm-border); padding-top: 12px; }
.lp-mob__stats b { color: var(--mob-accent, var(--race-orange)); }

/* steps avec piste */
.lp-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
@media (max-width: 860px) { .lp-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .lp-steps { grid-template-columns: 1fr; } }
.lp-step { text-align: center; padding: 10px; }
.lp-step__num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 50px; height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--race-orange), var(--race-red));
    color: #fff;
    font-family: var(--fm-mono);
    font-size: 20px; font-weight: 700;
    margin-bottom: 14px;
    box-shadow: 0 0 18px var(--race-glow);
}
.lp-step h3 { margin: 0 0 6px; font-size: 16px; }
.lp-step p { margin: 0; color: var(--fm-text-muted); font-size: 13px; line-height: 1.5; }

/* damier */
.lp-checker {
    height: 14px;
    background-image:
        linear-gradient(45deg, #fff 25%, transparent 25%),
        linear-gradient(-45deg, #fff 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #fff 75%),
        linear-gradient(-45deg, transparent 75%, #fff 75%);
    background-size: 14px 14px;
    background-position: 0 0, 0 7px, 7px -7px, -7px 0;
    background-color: #0a0d12;
    opacity: 0.85;
}

.lp-final {
    position: relative;
    text-align: center;
    padding: 90px 20px;
    overflow: hidden;
    background:
        radial-gradient(ellipse 60% 90% at 50% 0%, rgba(255, 122, 24, 0.16), transparent 60%),
        #07090d;
    border-top: 1px solid var(--fm-border);
}
.lp-final h2 { font-size: clamp(28px, 5.4vw, 44px); margin: 0 0 10px; text-transform: uppercase; }
.lp-final > p { color: var(--fm-text-muted); margin: 0 0 28px; font-size: 16px; }
.lp-final__login { font-size: 13px; margin-top: 18px !important; color: var(--fm-text-dim); }
.lp-final__login a { color: var(--race-orange); text-decoration: none; font-weight: 600; }

.lp-footer { text-align: center; padding: 28px 20px; border-top: 1px solid var(--fm-border); color: var(--fm-text-dim); font-size: 12px; }
.lp-footer p { margin: 4px 0; }

@media (prefers-reduced-motion: reduce) {
    .lp-hero__grid, .lp-speedlines span, .lp-btn-race, .lp-badge::before,
    .lp-curve__path, .lp-curve__area { animation: none; }
    .lp-curve__path { stroke-dashoffset: 0; }
    .lp-curve__area { opacity: 1; }
}
