/* ==========================================================================
   HorizonMP — feuille de style principale
   Asphalte, signalisation routière, plaques et tableaux de départ.
   ========================================================================== */

:root {
    --bg: #0b0d10;
    --bg-2: #0e1115;
    --surface: #13171c;
    --surface-2: #181d23;
    --surface-3: #1e242b;
    --line: #22282f;
    --line-2: #2d343c;
    --line-3: #3a424c;
    --text: #ece8e1;
    --text-2: #b7bbc0;
    --muted: #868c94;
    --faint: #5d636b;
    --accent: #f5a524;
    --accent-2: #ffc35c;
    --accent-ink: #1c1405;
    --accent-soft: rgba(245, 165, 36, 0.12);
    --accent-line: rgba(245, 165, 36, 0.35);
    --sign-blue: #1c4ea8;
    --sign-green: #0e6b3d;
    --plate: #f1f1ec;
    --ok: #3fb27f;
    --warn: #e3b341;
    --bad: #e5534b;
    --info: #5b9dff;
    --radius: 6px;
    --radius-lg: 10px;
    --font: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Barlow Condensed', 'Barlow', 'Arial Narrow', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
    --wrap: 1240px;
    --header: 64px;
    color-scheme: dark;
}

/* --------------------------------------------------------------- Base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 16px/1.55 var(--font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}
main { flex: 1 0 auto; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-2); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.1; letter-spacing: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.i { flex: none; }
svg.i { display: inline-block; vertical-align: -0.18em; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 860px; }
.wrap-text { max-width: 760px; }

/* --------------------------------------------------------------- Typographie */

.display {
    font-family: var(--font-display);
    font-weight: 800;
    text-transform: uppercase;
    font-size: clamp(52px, 8vw, 112px);
    line-height: 0.88;
    letter-spacing: -0.005em;
}
.display-md { font-size: clamp(44px, 6vw, 76px); }
.block { display: block; }
.ml-1 { margin-left: 8px; }
.hide-desktop { display: none; }
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
.h1 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(36px, 5vw, 56px); line-height: 0.95; }
.h2 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(28px, 3.4vw, 40px); line-height: 1; }
.h3 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 22px; line-height: 1.05; letter-spacing: 0.01em; }
.h4 { font-weight: 600; font-size: 17px; }
.kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 14px;
}
.kicker::before { content: ''; width: 22px; height: 2px; background: currentColor; }
.kicker.plain::before { display: none; }
.lead { font-size: 19px; color: var(--text-2); line-height: 1.55; max-width: 620px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.text-2 { color: var(--text-2); }
.accent { color: var(--accent); }
.ok { color: var(--ok); }
.bad { color: var(--bad); }
.warn { color: var(--warn); }
.mono { font-family: var(--font-mono); font-size: 0.86em; letter-spacing: 0; }
.num { font-variant-numeric: tabular-nums; }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.upper { text-transform: uppercase; letter-spacing: 0.08em; }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.center { text-align: center; }
.right { text-align: right; }
.label {
    font-family: var(--font-display);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

/* Contenu Markdown */
.prose { color: var(--text-2); font-size: 16.5px; line-height: 1.7; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-family: var(--font-display); text-transform: uppercase; font-size: 23px; color: var(--text); margin: 1.6em 0 0.6em; letter-spacing: 0.01em; }
.prose h3 { font-size: 19px; color: var(--text); margin: 1.4em 0 0.5em; font-weight: 600; }
.prose h4 { font-size: 16px; color: var(--text); margin: 1.2em 0 0.4em; }
.prose p { margin: 0 0 1em; }
.prose a { color: var(--accent-2); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin: 0.3em 0; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--text); font-weight: 600; }
.prose blockquote { margin: 1em 0; padding: 12px 18px; border-left: 3px solid var(--accent); background: var(--surface); color: var(--text-2); border-radius: 0 var(--radius) var(--radius) 0; }
.prose blockquote p:last-child { margin: 0; }
.prose code { font-family: var(--font-mono); font-size: 0.86em; background: var(--surface-3); padding: 2px 6px; border-radius: 4px; color: var(--text); }
.prose pre { background: #07090b; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose img { border-radius: var(--radius); border: 1px solid var(--line); margin: 1em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 15px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose th { color: var(--text); font-weight: 600; }
.prose hr { border-top-style: dashed; }
.prose-tight { font-size: 15.5px; line-height: 1.6; }

/* --------------------------------------------------------------- Boutons */

.btn {
    --h: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: var(--h);
    padding: 0 16px;
    border-radius: var(--radius);
    border: 1px solid var(--line-2);
    background: var(--surface-2);
    color: var(--text);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.05s;
    user-select: none;
}
.btn:hover { background: var(--surface-3); border-color: var(--line-3); color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-disabled { opacity: 0.45; pointer-events: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--accent-ink); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.04); }
.btn-quiet { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-quiet:hover { background: var(--surface-2); border-color: transparent; }
.btn-danger { background: transparent; border-color: rgba(229, 83, 75, 0.5); color: #ff8b84; }
.btn-danger:hover { background: rgba(229, 83, 75, 0.12); border-color: var(--bad); color: #ffa39d; }
.btn-ok { background: rgba(63, 178, 127, 0.14); border-color: rgba(63, 178, 127, 0.5); color: #6fd6a6; }
.btn-ok:hover { background: rgba(63, 178, 127, 0.22); color: #8ce5bb; border-color: var(--ok); }
.btn-sm { --h: 32px; padding: 0 11px; font-size: 13.5px; gap: 6px; }
.btn-xs { --h: 26px; padding: 0 8px; font-size: 12.5px; gap: 5px; letter-spacing: 0.04em; }
.btn-lg { --h: 50px; padding: 0 24px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-icon { width: var(--h); padding: 0; }
.btn-group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.link { color: var(--accent-2); }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-muted { color: var(--muted); }
.link-muted:hover { color: var(--text); }
.inline-form { display: inline; margin: 0; }

/* --------------------------------------------------------------- Formulaires */

.form { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.form-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.field { display: grid; gap: 7px; min-width: 0; }
.field > label, .field > .label-text {
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
}
.field .hint { font-size: 13px; color: var(--muted); }
.input, .select, .textarea {
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    background: var(--bg-2);
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    color: var(--text);
    font: 400 15px/1.4 var(--font);
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--line-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: #0c0f12; }
.textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.textarea.code { font-family: var(--font-mono); font-size: 13.5px; min-height: 340px; }
.select {
    appearance: none;
    padding-right: 34px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23868c94' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}
.input-sm, .select-sm { min-height: 34px; padding: 5px 10px; font-size: 14px; }
.select-sm { padding-right: 30px; }
input[type='color'].input { padding: 4px; height: 42px; width: 64px; cursor: pointer; }
input[type='file'].input { padding: 8px; font-size: 14px; }
input[type='file'].input::file-selector-button {
    margin-right: 12px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--surface-3); color: var(--text);
    font: 600 13px var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer;
}
input[type='range'] { accent-color: var(--accent); width: 100%; }
.input-group { display: flex; align-items: stretch; }
.input-group > .input { border-radius: var(--radius) 0 0 var(--radius); }
.input-group > .btn { border-radius: 0 var(--radius) var(--radius) 0; height: auto; }
.input-prefix { display: flex; align-items: center; padding: 0 12px; background: var(--surface-3); border: 1px solid var(--line-2); border-right: 0; border-radius: var(--radius) 0 0 var(--radius); color: var(--muted); font-size: 14px; }
.input-prefix + .input { border-radius: 0 var(--radius) var(--radius) 0; }

.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 15px; color: var(--text-2); }
.check input { appearance: none; flex: none; width: 18px; height: 18px; margin: 2px 0 0; border: 1.5px solid var(--line-3); border-radius: 4px; background: var(--bg-2); display: grid; place-content: center; cursor: pointer; }
.check input[type='radio'] { border-radius: 50%; }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { content: ''; width: 9px; height: 5px; border: 2px solid var(--accent-ink); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.check input[type='radio']:checked::after { width: 6px; height: 6px; border: 0; border-radius: 50%; background: var(--accent-ink); transform: none; }
.check strong { color: var(--text); font-weight: 600; display: block; }
.check small { display: block; color: var(--muted); font-size: 13px; }

.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.switch:last-child { border-bottom: 0; }
.switch-text strong { display: block; font-weight: 600; font-size: 15px; }
.switch-text small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.switch input { appearance: none; flex: none; width: 40px; height: 22px; border-radius: 11px; background: var(--line-2); position: relative; cursor: pointer; transition: background 0.15s; margin: 0; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #cfd3d8; transition: transform 0.15s, background 0.15s; }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(18px); background: var(--accent-ink); }

.choice-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.choice { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-2); cursor: pointer; font-size: 14.5px; color: var(--text-2); }
.choice:hover { border-color: var(--line-3); }
.choice input { accent-color: var(--accent); margin: 0; }
.choice:has(input:checked) { border-color: var(--accent-line); background: var(--accent-soft); color: var(--text); }

.errors { border: 1px solid rgba(229, 83, 75, 0.45); background: rgba(229, 83, 75, 0.08); color: #ffb1ab; border-radius: var(--radius); padding: 12px 16px; font-size: 14.5px; }
.errors ul { padding-left: 18px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-top: 6px; }
.fieldset { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; margin: 0; display: grid; gap: 16px; background: var(--surface); }
.fieldset legend { float: left; width: 100%; padding: 0 0 12px; margin: 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); }
.fieldset .fieldset-desc { margin: -6px 0 0; color: var(--muted); font-size: 14px; }

/* --------------------------------------------------------------- En-tête */

.announce { position: relative; z-index: 51; font-size: 14px; text-align: center; padding: 8px 16px; background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.announce a { text-decoration: underline; text-underline-offset: 2px; }
.announce a:hover { color: inherit; }
.announce-warn { background: repeating-linear-gradient(-45deg, #f5a524 0 14px, #e19514 14px 28px); }
.announce-event { background: #2a1f45; color: #e4d8ff; }
.impersonate-bar { position: relative; z-index: 51; display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; padding: 8px 16px; background: repeating-linear-gradient(-45deg, #2a1414 0 12px, #331717 12px 24px); color: #ffc9c4; font-size: 14px; border-bottom: 1px solid #5a2421; }

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header);
    background: rgba(11, 13, 16, 0.86);
    backdrop-filter: saturate(140%) blur(12px);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.is-home .header { background: linear-gradient(180deg, rgba(8, 10, 12, 0.85), rgba(8, 10, 12, 0.55)); border-bottom-color: rgba(255, 255, 255, 0.05); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); flex: none; }
.brand:hover { color: var(--text); }
.brand-mark { width: 30px; height: 30px; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1; }
.brand-name b { color: var(--accent); font-weight: 800; }

.nav { display: flex; align-items: center; gap: 2px; height: 100%; }
.nav-item { position: relative; height: 100%; display: flex; align-items: center; }
.nav-link {
    display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: var(--radius);
    font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2);
    background: none; border: 0; cursor: pointer;
}
.nav-link:hover, .nav-item:focus-within > .nav-link, .nav-item.open > .nav-link { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav-link.is-active { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav-link .chev { opacity: 0.5; transition: transform 0.15s; }
.nav-item:hover .chev, .nav-item.open .chev { transform: rotate(180deg); }
.menu {
    position: absolute; top: calc(100% - 6px); left: -8px; min-width: 320px; padding: 8px;
    background: #12161b; border: 1px solid var(--line-2); border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}
.menu::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-item:hover > .menu, .nav-item:focus-within > .menu, .nav-item.open > .menu { opacity: 1; visibility: visible; transform: none; }
.menu-link { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius); color: var(--text); }
.menu-link:hover { background: var(--surface-3); color: var(--text); }
.menu-link .i { margin-top: 2px; color: var(--accent); }
.menu-link strong { display: block; font-weight: 600; font-size: 15px; }
.menu-link small { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; margin-top: 1px; }
.menu-btn { width: 100%; background: none; border: 0; cursor: pointer; text-align: left; font: inherit; }
.menu-sep { height: 1px; background: var(--line); margin: 6px 4px; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--radius); color: var(--text-2); background: none; border: 0; cursor: pointer; }
.icon-btn:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.bubble { position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font: 700 10.5px/17px var(--font); text-align: center; box-shadow: 0 0 0 2px var(--bg); }
.bubble:empty, .bubble[data-count='0'] { display: none; }
.user-menu .menu { left: auto; right: -4px; min-width: 260px; }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 3px 8px 3px 3px; border-radius: var(--radius); background: none; border: 1px solid transparent; cursor: pointer; color: var(--text); }
.user-chip:hover, .user-menu.open .user-chip { background: var(--surface-2); border-color: var(--line); }
.user-chip-name { font-weight: 600; font-size: 14.5px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; display: flex; gap: 10px; align-items: center; }
.menu-head strong { display: block; font-size: 15px; }
.nav-toggle { display: none; }
.mobile-nav { display: none; }

/* --------------------------------------------------------------- Composants */

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.panel-pad { padding: 22px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel-head h2, .panel-head h3 { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: 0.08em; text-transform: uppercase; }
.panel-body { padding: 20px; }
.panel-foot { padding: 12px 20px; border-top: 1px solid var(--line); }
.panel + .panel { margin-top: 20px; }
.panel-accent { border-top: 2px solid var(--accent); }

.pill {
    display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 4px;
    font: 600 12px/1 var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
    background: var(--surface-3); color: var(--text-2); border: 1px solid var(--line-2);
}
.pill-ok { background: rgba(63, 178, 127, 0.12); color: #6fd6a6; border-color: rgba(63, 178, 127, 0.3); }
.pill-warn { background: rgba(227, 179, 65, 0.12); color: #f0cb6c; border-color: rgba(227, 179, 65, 0.3); }
.pill-bad { background: rgba(229, 83, 75, 0.12); color: #ff8f88; border-color: rgba(229, 83, 75, 0.32); }
.pill-info { background: rgba(91, 157, 255, 0.12); color: #8dbbff; border-color: rgba(91, 157, 255, 0.3); }
.pill-mute { background: transparent; color: var(--muted); }
.pill-accent { background: var(--accent-soft); color: var(--accent-2); border-color: var(--accent-line); }
.pill-solid { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.dot-online, .dot-ok { background: var(--ok); box-shadow: 0 0 0 3px rgba(63, 178, 127, 0.18); }
.dot-maintenance, .dot-warn { background: var(--warn); }
.dot-offline { background: var(--faint); }
.dot-bad { background: var(--bad); }
.tag {
    display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 3px;
    font: 700 11.5px/1 var(--font-mono); letter-spacing: 0.04em; color: var(--accent-ink); background: var(--accent);
}
.tag-outline { background: transparent; color: var(--tag-color, var(--accent)); box-shadow: inset 0 0 0 1px currentColor; }

/* Plaque d'immatriculation européenne : ID joueur */
.plate {
    display: inline-flex; align-items: stretch; height: 22px; border-radius: 3px; overflow: hidden;
    background: var(--plate); color: #111; box-shadow: inset 0 0 0 1px #0d0d0d, 0 1px 0 rgba(0, 0, 0, 0.4);
    font: 600 12.5px/22px var(--font-mono); letter-spacing: 0.06em; white-space: nowrap; vertical-align: middle;
}
.plate-band { display: flex; align-items: center; justify-content: center; padding: 0 4px; background: var(--sign-blue); color: #fff; font-size: 8.5px; letter-spacing: 0.04em; font-weight: 600; }
.plate-num { padding: 0 7px 0 6px; }
.plate-lg { height: 30px; font-size: 16px; line-height: 30px; }
.plate-lg .plate-band { font-size: 10px; padding: 0 6px; }
.plate-lg .plate-num { padding: 0 10px; }

/* Avatars */
.avatar { position: relative; flex: none; width: var(--s, 40px); height: var(--s, 40px); border-radius: calc(var(--s, 40px) * 0.18); overflow: hidden; background: var(--surface-3); display: grid; place-items: center; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-initials { font: 700 calc(var(--s, 40px) * 0.42) / 1 var(--font-display); color: #fff; text-transform: uppercase; letter-spacing: 0.02em; }
.avatar-round { border-radius: 50%; }
.avatar-ring { box-shadow: 0 0 0 3px var(--bg); }
.presence { position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 2.5px var(--surface); }
.avatar-stack { display: flex; }
.avatar-stack .avatar { box-shadow: 0 0 0 2px var(--surface); margin-left: -8px; }
.avatar-stack .avatar:first-child { margin-left: 0; }
.monogram { width: var(--s, 56px); height: var(--s, 56px); border-radius: calc(var(--s, 56px) * 0.16); flex: none; display: grid; place-items: center; overflow: hidden; background: var(--mono-bg, #2b2f35); color: #fff; font: 800 calc(var(--s, 56px) * 0.34) / 1 var(--font-display); letter-spacing: 0.02em; position: relative; }
.monogram img { width: 100%; height: 100%; object-fit: cover; }
.monogram::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); pointer-events: none; }

.user-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--name-color, var(--text)); min-width: 0; }
.user-link:hover { color: var(--accent-2); }
.staff-mark { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 3px; background: var(--mark-color, var(--accent)); color: #111; flex: none; }
.staff-mark .i { width: 11px; height: 11px; stroke-width: 2.5; }
.role-label { display: inline-flex; align-items: center; gap: 6px; font: 600 12.5px/1 var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--role-color, var(--muted)); }
.role-label::before { content: ''; width: 7px; height: 7px; border-radius: 2px; background: currentColor; }

/* Itinéraire A -> B */
.route { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; }
.route-end { min-width: 0; }
.route-end strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 20px; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.05; }
.route-end small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.route-end.to { text-align: right; }
.route-line { position: relative; height: 2px; background: repeating-linear-gradient(90deg, var(--line-3) 0 10px, transparent 10px 18px); min-width: 40px; }
.route-line::before, .route-line::after { content: ''; position: absolute; top: 50%; width: 10px; height: 10px; border-radius: 50%; transform: translateY(-50%); }
.route-line::before { left: -4px; background: var(--bg); box-shadow: inset 0 0 0 2px var(--accent); }
.route-line::after { right: -4px; background: var(--accent); }
.route-km { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 2px 8px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 3px; font: 500 11.5px/1.4 var(--font-mono); color: var(--text-2); white-space: nowrap; }
.route-sm .route-end strong { font-size: 16px; }

/* Tableau des départs (événements) */
.board { background: #07090b; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; border-bottom: 1px solid #1a1e23; background: linear-gradient(180deg, #0d1013, #07090b); }
.board-title { display: flex; align-items: center; gap: 12px; font: 700 15px var(--font-display); letter-spacing: 0.16em; text-transform: uppercase; }
.board-clock { font: 500 13px var(--font-mono); color: var(--accent); letter-spacing: 0.08em; }
.board-row {
    display: grid; grid-template-columns: 88px minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) 110px 130px; align-items: center; gap: 16px;
    padding: 13px 20px; border-bottom: 1px solid #14181c; color: var(--text); font-family: var(--font-mono); font-size: 13.5px;
}
.board-row:last-child { border-bottom: 0; }
a.board-row:hover { background: #0d1014; color: var(--text); }
.board-row.board-labels { padding-top: 10px; padding-bottom: 10px; font: 600 11px var(--font-display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.board-time { color: var(--accent); font-weight: 600; font-size: 15px; }
.board-time small { display: block; color: var(--faint); font-size: 11px; font-weight: 400; letter-spacing: 0.04em; }
.board-name { font-family: var(--font); font-size: 15px; font-weight: 600; color: var(--text); }
.board-name small { display: block; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.board-city { text-transform: uppercase; letter-spacing: 0.04em; color: #e6dcc6; }
.board-status { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.board-status.st-boarding { color: var(--ok); }
.board-status.st-live { color: var(--accent); }
.board-status.st-live .dot { background: var(--accent); animation: blink 1.2s steps(2) infinite; }
.board-status.st-cancelled { color: var(--bad); }
.board-status.st-full { color: var(--warn); }
.board-status.st-scheduled { color: var(--text-2); }
@keyframes blink { 50% { opacity: 0.2; } }

/* Panneaux autoroutiers */
.signs { display: grid; gap: 14px; grid-template-columns: repeat(4, 1fr); }
.sign {
    position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 150px; padding: 18px 18px 16px;
    border-radius: 8px; background: var(--sign-blue); color: #fff;
    box-shadow: inset 0 0 0 3px var(--sign-blue), inset 0 0 0 5px rgba(255, 255, 255, 0.92);
    transition: transform 0.18s;
}
.sign:hover { color: #fff; transform: translateY(-3px); }
.sign-green { background: var(--sign-green); box-shadow: inset 0 0 0 3px var(--sign-green), inset 0 0 0 5px rgba(255, 255, 255, 0.92); }
.sign-exit { position: absolute; top: 14px; right: 14px; display: flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 3px; background: #fff; color: var(--sign-blue); font: 700 12px/1.2 var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; }
.sign-green .sign-exit { color: var(--sign-green); }
.sign-title { font: 700 28px/1 var(--font-display); text-transform: uppercase; letter-spacing: 0.02em; }
.sign-sub { font-size: 14px; opacity: 0.85; margin-top: 6px; }
.sign-arrow { width: 34px; height: 34px; }

/* Statistiques */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.stat { background: var(--surface); padding: 18px 20px; min-width: 0; }
.stat-value { font: 600 30px/1 var(--font-mono); letter-spacing: -0.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.stat-value small { font-size: 14px; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.stat-label { margin-top: 8px; font: 600 12px var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.stat-sub { margin-top: 4px; font-size: 13px; color: var(--faint); }
.stat-value .row { font: 700 22px/30px var(--font-display); text-transform: uppercase; letter-spacing: 0.04em; }

/* Onglets */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
    position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 12px 14px; white-space: nowrap;
    font: 600 15px var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--text); }
.tab.is-active::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--accent); }
.tab .count { font: 500 11.5px var(--font-mono); color: var(--faint); letter-spacing: 0; }
.tab.is-active .count { color: var(--accent); }
.segmented { display: inline-flex; padding: 3px; gap: 2px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius); }
.segmented a, .segmented button { padding: 6px 12px; border-radius: 4px; font: 600 13.5px var(--font-display); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); background: none; border: 0; cursor: pointer; }
.segmented a:hover { color: var(--text); }
.segmented .is-active { background: var(--surface-3); color: var(--text); }

/* Tableaux */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: left; padding: 11px 14px; font: 600 12px var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); background: var(--bg-2); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: rgba(255, 255, 255, 0.015); }
.table .rank { font: 600 15px var(--font-mono); color: var(--faint); width: 48px; }
.table tr:nth-child(1) .rank { color: var(--accent); }
.table tr:nth-child(2) .rank, .table tr:nth-child(3) .rank { color: var(--text-2); }
.table-compact td { padding: 8px 12px; }
.cell-user { display: flex; align-items: center; gap: 10px; min-width: 0; }

/* Pagination */
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 28px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 36px; height: 36px; padding: 0 10px; display: grid; place-items: center; border-radius: var(--radius); border: 1px solid var(--line-2); font: 500 13.5px var(--font-mono); color: var(--text-2); }
.pager a:hover { border-color: var(--line-3); color: var(--text); background: var(--surface-2); }
.pager .is-current { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.pager .gap { border: 0; }

/* État vide */
.empty { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 48px 24px; border: 1px dashed var(--line-2); border-radius: var(--radius-lg); color: var(--muted); }
.empty .i { color: var(--faint); width: 34px; height: 34px; }
.empty strong { color: var(--text); font-size: 17px; font-weight: 600; }
.empty p { margin: 0; max-width: 440px; font-size: 15px; }
.empty .btn { margin-top: 8px; }
.empty-sm { padding: 24px 16px; }

/* Messages flash */
.flashes { position: fixed; z-index: 100; top: calc(var(--header) + 14px); right: 20px; display: grid; gap: 10px; width: min(420px, calc(100vw - 40px)); }
.flash { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border-radius: var(--radius); background: #141a1f; border: 1px solid var(--line-2); border-left: 3px solid var(--info); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); font-size: 14.5px; animation: flash-in 0.25s ease-out; }
.flash-success { border-left-color: var(--ok); }
.flash-error { border-left-color: var(--bad); }
.flash-info { border-left-color: var(--accent); }
.flash .i { margin-top: 1px; }
.flash-success .i { color: var(--ok); }
.flash-error .i { color: var(--bad); }
.flash-info .i { color: var(--accent); }
.flash-text { flex: 1; }
.flash-close { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; }
.flash.is-leaving { opacity: 0; transform: translateX(16px); transition: 0.25s; }
@keyframes flash-in { from { opacity: 0; transform: translateY(-8px); } }

.callout { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line-2); font-size: 14.5px; color: var(--text-2); }
.callout .i { color: var(--accent); margin-top: 2px; }
.callout strong { color: var(--text); }
.callout-warn { background: rgba(227, 179, 65, 0.07); border-color: rgba(227, 179, 65, 0.3); }
.callout-warn .i { color: var(--warn); }
.callout-bad { background: rgba(229, 83, 75, 0.07); border-color: rgba(229, 83, 75, 0.35); }
.callout-bad .i { color: var(--bad); }
.callout-ok { background: rgba(63, 178, 127, 0.07); border-color: rgba(63, 178, 127, 0.3); }
.callout-ok .i { color: var(--ok); }
.hazard { height: 6px; background: repeating-linear-gradient(-45deg, var(--accent) 0 10px, #111 10px 20px); border-radius: 2px; }

.dropdown { position: relative; display: inline-block; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 200px; padding: 6px; background: #12161b; border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); display: none; }
.dropdown.open .dropdown-menu { display: block; }
.dropdown-item { display: flex; width: 100%; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 4px; font-size: 14.5px; color: var(--text-2); background: none; border: 0; text-align: left; cursor: pointer; }
.dropdown-item:hover { background: var(--surface-3); color: var(--text); }
.dropdown-item.danger { color: #ff8f88; }

.copy-field { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; background: #07090b; border: 1px solid var(--line-2); border-radius: var(--radius); font: 500 14px var(--font-mono); }
.copy-field code { flex: 1; overflow-x: auto; white-space: nowrap; color: var(--accent-2); }
.connect-code { padding: 10px 10px 10px 18px; }
.connect-code code { font-size: 26px; letter-spacing: 0.14em; color: var(--text); }
.checklist { list-style: none; padding: 0; margin-top: 0; display: grid; gap: 8px; font-size: 14.5px; color: var(--text-2); }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist li .i { margin-top: 2px; flex: none; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

.meter { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.meter-ok > span { background: var(--ok); }

.divider-road { height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 26px, transparent 26px 46px); opacity: 0.55; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; font-size: 14.5px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--text); min-width: 0; overflow-wrap: anywhere; }

/* --------------------------------------------------------------- Mise en page */

.section { padding: 88px 0; position: relative; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head p { margin: 10px 0 0; color: var(--text-2); max-width: 560px; }

.page-head { position: relative; padding: 52px 0 36px; border-bottom: 1px solid var(--line); background: radial-gradient(1200px 300px at 20% -40%, rgba(245, 165, 36, 0.08), transparent 70%), var(--bg); }
.page-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 30px, transparent 30px 54px); opacity: 0.45; }
.page-head-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.page-head p.lead { margin: 14px 0 0; }
.page-head .crumbs { margin-bottom: 14px; }
.page { padding-top: 40px; padding-bottom: 88px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.crumbs .i { opacity: 0.5; }

.layout-side { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.layout-side-left { grid-template-columns: 260px minmax(0, 1fr); }
.layout-feed { display: grid; grid-template-columns: 240px minmax(0, 620px) 320px; gap: 28px; justify-content: center; align-items: start; }
.sticky { position: sticky; top: calc(var(--header) + 20px); }
.stack { display: grid; gap: 20px; align-content: start; grid-template-columns: minmax(0, 1fr); }
.stack-sm { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.stack-lg { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
.row { display: flex; align-items: center; gap: 12px; }
.row-wrap { flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.grid-2 { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { display: grid; gap: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.gap-sm { gap: 8px; }

.side-nav { display: grid; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius); color: var(--text-2); font-weight: 500; font-size: 15px; }
.side-nav a:hover { background: var(--surface-2); color: var(--text); }
.side-nav a.is-active { background: var(--surface-2); color: var(--text); box-shadow: inset 2px 0 0 var(--accent); }
.side-nav a .i { color: var(--muted); }
.side-nav a.is-active .i { color: var(--accent); }
.side-nav .count { margin-left: auto; font: 500 12px var(--font-mono); color: var(--muted); }
.side-title { padding: 18px 12px 6px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 24px; }
.filters .input, .filters .select { width: auto; min-width: 150px; min-height: 38px; padding-top: 6px; padding-bottom: 6px; font-size: 14.5px; }
.filters .search { flex: 1; min-width: 220px; position: relative; }
.filters .search .input { width: 100%; padding-left: 38px; }
.filters .search .i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }

/* --------------------------------------------------------------- Accueil */

.hero { position: relative; min-height: min(860px, 100vh); margin-top: calc(var(--header) * -1); padding: calc(var(--header) + 72px) 0 72px; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-photo { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 10, 12, 0.92) 0%, rgba(8, 10, 12, 0.7) 45%, rgba(8, 10, 12, 0.35) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 35%); }

/* Scène par défaut : autoroute au crépuscule */
.scene { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(180deg, #06070a 0%, #0a0c11 30%, #15151b 48%, #2b2019 58%, #4a2e17 62.6%, #101215 62.7%, var(--bg) 100%); }
.scene-glow { position: absolute; left: 0; right: 0; top: 0; height: 63%; background: radial-gradient(60% 55% at 62% 100%, rgba(255, 170, 60, 0.42), rgba(255, 140, 30, 0.12) 45%, transparent 70%); }
.scene-sun { position: absolute; left: 62%; top: 63%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; background: radial-gradient(circle, #ffd690 0%, #ffb44d 35%, rgba(255, 150, 40, 0) 70%); filter: blur(2px); clip-path: inset(0 0 50% 0); }
.scene-stars { position: absolute; inset: 0 0 50% 0; background-image: radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, 0.5), transparent), radial-gradient(1px 1px at 28% 8%, rgba(255, 255, 255, 0.35), transparent), radial-gradient(1px 1px at 44% 22%, rgba(255, 255, 255, 0.3), transparent), radial-gradient(1px 1px at 71% 12%, rgba(255, 255, 255, 0.4), transparent), radial-gradient(1px 1px at 86% 26%, rgba(255, 255, 255, 0.3), transparent), radial-gradient(1px 1px at 93% 6%, rgba(255, 255, 255, 0.45), transparent), radial-gradient(1px 1px at 6% 34%, rgba(255, 255, 255, 0.25), transparent), radial-gradient(1px 1px at 55% 4%, rgba(255, 255, 255, 0.35), transparent); }
.scene-hills { position: absolute; left: 0; right: 0; top: calc(63% - 140px); height: 141px; width: 100%; }
.scene-road { position: absolute; left: 0; right: 0; top: 62.7%; bottom: 0; perspective: 260px; perspective-origin: 62% 0; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%); mask-image: linear-gradient(180deg, transparent 0%, #000 14%); }
/* Plan incliné en 3D : étroit à l'horizon, large au premier plan. */
.road-plane {
    position: absolute; left: 62%; top: 0; width: 200px; margin-left: -100px; height: 250px; transform-origin: 50% 0; transform: rotateX(78deg);
    background:
        linear-gradient(90deg, transparent 0 40px, #ddd5c2 40px 42px, transparent 42px 158px, #ddd5c2 158px 160px, transparent 160px),
        linear-gradient(90deg, #0b0c0e 0 36px, #1b1d21 36px 164px, #0b0c0e 164px);
}
.road-plane::before, .road-plane::after { content: ''; position: absolute; top: 0; bottom: 0; width: 2px; background: repeating-linear-gradient(180deg, #ddd5c2 0 9px, transparent 9px 24px); animation: lanes 0.9s linear infinite; }
.road-plane::before { left: 79px; }
.road-plane::after { left: 119px; }
@keyframes lanes { from { background-position: 0 0; } to { background-position: 0 24px; } }
.scene-haze { position: absolute; left: 0; right: 0; top: 52%; height: 22%; background: linear-gradient(180deg, transparent, rgba(160, 100, 50, 0.08) 50%, transparent); pointer-events: none; }
.scene-fade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 10, 12, 0.9) 0%, rgba(8, 10, 12, 0.55) 40%, rgba(8, 10, 12, 0) 70%), linear-gradient(0deg, var(--bg) 0%, rgba(11, 13, 16, 0) 30%); }
.grain { position: absolute; inset: 0; opacity: 0.08; mix-blend-mode: overlay; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.hero-inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr); gap: 56px; align-items: end; }
.hero-copy .lead { margin: 26px 0 32px; font-size: 20px; color: #c9c5bd; }
.hero-copy .display { text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35); }
.hero-copy .display em { font-style: normal; color: var(--accent); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 0; margin: 48px 0 0; padding: 0; }
.hero-stat { padding: 0 28px; border-left: 1px solid rgba(255, 255, 255, 0.12); }
.hero-stat:first-child { padding-left: 0; border-left: 0; }
.hero-stat dt { font: 600 12px var(--font-display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.hero-stat dd { margin: 0; font: 600 28px/1 var(--font-mono); letter-spacing: -0.02em; color: var(--text); order: -1; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat .live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 6px; vertical-align: 3px; box-shadow: 0 0 0 3px rgba(63, 178, 127, 0.2); }

/* Panneau "menu Tab" du héros */
.tabmenu { background: rgba(9, 11, 14, 0.82); border: 1px solid rgba(255, 255, 255, 0.09); border-radius: var(--radius-lg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); overflow: hidden; }
.tabmenu-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.tabmenu-head span { font: 600 12px var(--font-display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2); }
.tabmenu-key { display: inline-grid; place-items: center; min-width: 30px; height: 20px; padding: 0 6px; border-radius: 3px; border: 1px solid var(--line-3); border-bottom-width: 2px; font: 600 10.5px var(--font-mono); color: var(--text-2); }
.tabmenu-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); font-size: 14px; }
.tabmenu-row:last-child { border-bottom: 0; }
a.tabmenu-row:hover { background: rgba(255, 255, 255, 0.03); color: var(--text); }
.tabmenu-code { font: 600 11.5px var(--font-mono); color: var(--accent); letter-spacing: 0.04em; }
.tabmenu-name { font-weight: 600; }
.tabmenu-name small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; margin-top: 1px; }
.tabmenu-count { text-align: right; font: 500 13px var(--font-mono); white-space: nowrap; }
.tabmenu-count small { display: block; color: var(--faint); font-size: 11px; }
.tabmenu-bar { grid-column: 1 / -1; margin-top: -4px; }
.tabmenu-foot { display: flex; justify-content: space-between; align-items: center; padding: 11px 16px; font-size: 13px; color: var(--muted); background: rgba(255, 255, 255, 0.02); }

/* Fonctionnalités */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.feature { background: var(--surface); padding: 34px; display: grid; gap: 24px; grid-template-rows: auto 1fr; }
.feature-num { font: 500 13px var(--font-mono); color: var(--accent); letter-spacing: 0.1em; }
.feature h3 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 28px; line-height: 1; margin: 10px 0 12px; }
.feature p { color: var(--text-2); margin: 0; max-width: 460px; }
.feature-demo { align-self: end; background: #090b0e; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; min-height: 150px; display: grid; align-content: center; }

.demo-tag { display: grid; justify-items: center; gap: 10px; }
.demo-tag-label { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 4px; background: rgba(0, 0, 0, 0.55); border: 1px solid rgba(255, 255, 255, 0.1); font-weight: 600; font-size: 14px; }
.demo-tag-label .id { font: 500 12px var(--font-mono); color: var(--muted); }
.demo-truck { width: 220px; height: 64px; }
.demo-tab { width: 100%; font: 500 12.5px var(--font-mono); border-collapse: collapse; }
.demo-tab th { text-align: left; color: var(--faint); font-weight: 500; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; padding: 0 8px 8px; }
.demo-tab td { padding: 6px 8px; border-top: 1px solid #15191d; color: var(--text-2); }
.demo-tab td:nth-child(2) { color: var(--text); font-family: var(--font); font-weight: 600; font-size: 13.5px; }
.demo-tab tr.me td { background: rgba(245, 165, 36, 0.07); }
.demo-ai { display: grid; gap: 12px; }
.demo-ai-row { display: grid; grid-template-columns: 110px 1fr 44px; gap: 12px; align-items: center; font-size: 13.5px; color: var(--text-2); }
.demo-ai-row b { font: 500 12.5px var(--font-mono); color: var(--text); text-align: right; }
.demo-convoy { display: grid; gap: 14px; }
.demo-convoy-track { position: relative; height: 34px; }
.demo-convoy-track::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: repeating-linear-gradient(90deg, var(--line-3) 0 8px, transparent 8px 14px); }
.demo-convoy-track span { position: absolute; top: 50%; width: 22px; height: 12px; margin-top: -6px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 12px rgba(245, 165, 36, 0.5); }
.demo-convoy-track span:nth-child(2) { opacity: 0.8; }
.demo-convoy-track span:nth-child(3) { opacity: 0.6; }
.demo-convoy-track span:nth-child(4) { opacity: 0.45; }

/* Cartes VTC */
.vtc-card { display: grid; gap: 16px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: border-color 0.15s, transform 0.15s; position: relative; overflow: hidden; }
.vtc-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--vtc-color, var(--accent)); opacity: 0.85; }
.vtc-card:hover { border-color: var(--line-3); color: var(--text); transform: translateY(-2px); }
.vtc-card-head { display: flex; gap: 14px; align-items: center; min-width: 0; }
.vtc-card-name { font-family: var(--font-display); font-weight: 700; font-size: 21px; text-transform: uppercase; line-height: 1.05; letter-spacing: 0.01em; display: flex; align-items: center; gap: 8px; min-width: 0; }
.vtc-card-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vtc-card-slogan { color: var(--muted); font-size: 14px; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.vtc-card-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--text-2); }
.vtc-card-meta span { display: inline-flex; gap: 6px; align-items: center; }
.vtc-card-meta .i { color: var(--muted); }
.verified { color: var(--info); display: inline-flex; }

/* Cartes actualités */
.news-card { display: grid; grid-template-rows: auto 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: border-color 0.15s; }
.news-card:hover { border-color: var(--line-3); color: var(--text); }
.news-cover { aspect-ratio: 16 / 9; background: var(--surface-3); position: relative; overflow: hidden; }
.news-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.news-card:hover .news-cover img { transform: scale(1.03); }
.cover-pattern { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(245, 165, 36, 0.18), transparent 60%), repeating-linear-gradient(-55deg, #171b20 0 18px, #13171b 18px 36px); display: grid; place-items: center; }
.cover-pattern .i { width: 40px; height: 40px; color: rgba(255, 255, 255, 0.18); }
.news-body { padding: 20px; display: grid; gap: 10px; align-content: start; }
.news-body h3 { font-size: 20px; line-height: 1.25; font-weight: 600; }
.news-body p { margin: 0; color: var(--muted); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-meta { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); }
.news-feature { grid-column: 1 / -1; grid-template-columns: 1.4fr 1fr; grid-template-rows: none; }
.news-feature .news-cover { aspect-ratio: auto; min-height: 320px; }
.news-feature .news-body { padding: 32px; align-content: center; }
.news-feature h3 { font-size: 30px; font-family: var(--font-display); text-transform: uppercase; font-weight: 700; line-height: 1.02; }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery a { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--surface-3); }
.gallery a:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s, filter 0.3s; filter: saturate(0.92); }
.gallery a:hover img { transform: scale(1.04); filter: none; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; font-size: 13px; background: linear-gradient(0deg, rgba(0, 0, 0, 0.75), transparent); color: #ddd; }

/* Bandeau final */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--line); background: radial-gradient(700px 300px at 85% 120%, rgba(245, 165, 36, 0.22), transparent 70%), var(--surface); padding: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.steps { display: grid; gap: 0; counter-reset: step; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 16px 0; border-top: 1px dashed var(--line-2); }
.step:first-child { border-top: 0; }
.step-num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--accent-line); color: var(--accent); font: 600 15px var(--font-mono); }
.step strong { display: block; font-size: 17px; font-weight: 600; }
.step span { color: var(--muted); font-size: 14.5px; }

/* --------------------------------------------------------------- Serveurs */

.server-row { display: grid; grid-template-columns: 70px minmax(0, 1.4fr) minmax(0, 1fr) 220px 120px; gap: 20px; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.server-row:last-child { border-bottom: 0; }
.server-row:hover { background: rgba(255, 255, 255, 0.015); }
.server-code { font: 700 14px var(--font-mono); color: var(--accent); letter-spacing: 0.04em; padding: 6px 0; border: 1px solid var(--accent-line); border-radius: 4px; text-align: center; background: var(--accent-soft); }
.server-name { font-family: var(--font-display); font-weight: 700; font-size: 21px; text-transform: uppercase; line-height: 1.05; }
.server-desc { color: var(--muted); font-size: 14px; margin-top: 4px; }
.server-flags { display: flex; flex-wrap: wrap; gap: 6px; }
.server-load { display: grid; gap: 7px; }
.server-load-top { display: flex; justify-content: space-between; font: 500 13px var(--font-mono); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: 13px; color: var(--text-2); white-space: nowrap; }
.chip .i { color: var(--muted); width: 14px; height: 14px; }
.chip.on { color: var(--text); }
.chip.on .i { color: var(--ok); }
.chip.off { color: var(--faint); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, 0.2); }
.config-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.config-card { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.config-card h3 { display: flex; align-items: center; gap: 10px; font: 700 15px var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
.config-card h3 .i { color: var(--accent); }
.config-list { list-style: none; display: grid; gap: 8px; font-size: 14.5px; }
.config-list li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.config-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.config-list span { color: var(--muted); }
.config-list b { font-weight: 500; text-align: right; }
.spark { width: 100%; height: 120px; }
.spark polyline { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.spark .area { fill: url(#sparkfill); stroke: none; }

/* --------------------------------------------------------------- Mods */

.mod-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: border-color 0.15s; }
.mod-card:hover { border-color: var(--line-3); color: var(--text); }
.mod-thumb { width: 96px; height: 96px; border-radius: var(--radius); overflow: hidden; background: var(--surface-3); display: grid; place-items: center; position: relative; }
.mod-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mod-thumb .i { color: var(--faint); width: 30px; height: 30px; }
.mod-title { font-weight: 600; font-size: 16.5px; line-height: 1.25; }
.mod-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; color: var(--muted); margin-top: 4px; }
.mod-summary { font-size: 14px; color: var(--text-2); margin: 8px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mod-flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.load-order { font: 600 12px var(--font-mono); color: var(--faint); }

/* --------------------------------------------------------------- Événements */

.event-card { display: grid; grid-template-rows: auto 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: border-color 0.15s, transform 0.15s; }
.event-card:hover { border-color: var(--line-3); color: var(--text); transform: translateY(-2px); }
.event-cover { position: relative; aspect-ratio: 16 / 7; background: var(--surface-3); overflow: hidden; }
.event-cover img { width: 100%; height: 100%; object-fit: cover; }
.event-date { position: absolute; left: 14px; top: 14px; display: grid; justify-items: center; min-width: 54px; padding: 6px 8px 7px; border-radius: 5px; background: rgba(8, 10, 12, 0.88); border: 1px solid rgba(255, 255, 255, 0.1); line-height: 1; }
.event-date b { font: 700 24px/1 var(--font-display); }
.event-date span { font: 600 11px var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-top: 3px; }
.event-badges { position: absolute; right: 12px; top: 12px; display: flex; gap: 6px; }
.event-body { padding: 18px 20px 20px; display: grid; gap: 14px; align-content: start; }
.event-title { font-size: 18px; font-weight: 600; line-height: 1.25; }
.event-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); padding-top: 12px; border-top: 1px solid var(--line); }
.event-hero { position: relative; min-height: 360px; display: flex; align-items: flex-end; overflow: hidden; border-bottom: 1px solid var(--line); }
.event-hero-bg { position: absolute; inset: 0; z-index: 0; }
.event-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.event-hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 2%, rgba(11, 13, 16, 0.75) 45%, rgba(11, 13, 16, 0.35)); }
.event-hero-inner { position: relative; z-index: 1; width: 100%; padding-top: 80px; padding-bottom: 34px; }
.timeline { display: grid; gap: 0; }
.timeline-item { display: grid; grid-template-columns: 74px 18px 1fr; gap: 12px; align-items: start; }
.timeline-time { font: 600 15px var(--font-mono); color: var(--accent); text-align: right; padding-top: 1px; }
.timeline-mark { position: relative; height: 100%; min-height: 48px; }
.timeline-mark::before { content: ''; position: absolute; left: 50%; top: 6px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--accent); background: var(--bg); }
.timeline-mark::after { content: ''; position: absolute; left: 50%; top: 20px; bottom: 0; width: 2px; margin-left: -1px; background: repeating-linear-gradient(180deg, var(--line-3) 0 4px, transparent 4px 8px); }
.timeline-item:last-child .timeline-mark::after { display: none; }
.timeline-item:last-child .timeline-mark::before { background: var(--accent); }
.timeline-body strong { display: block; font-weight: 600; }
.timeline-body small { color: var(--muted); font-size: 13.5px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.slot { display: grid; gap: 8px; padding: 14px; border: 1px dashed var(--line-3); border-radius: var(--radius); background: var(--bg-2); min-height: 112px; align-content: start; }
.slot.is-booked { border-style: solid; border-color: var(--line-2); background: var(--surface); }
.slot.is-mine { border-color: var(--accent-line); background: var(--accent-soft); }
.slot-label { font: 600 13px var(--font-mono); color: var(--accent); letter-spacing: 0.04em; }
.slot-vtc { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14.5px; min-width: 0; }
.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--line); gap: 1px; }
.cal-head { background: var(--bg-2); padding: 10px; text-align: center; font: 600 12px var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.cal-cell { background: var(--surface); min-height: 118px; padding: 8px; display: grid; gap: 4px; align-content: start; }
.cal-cell.is-empty { background: var(--bg-2); }
.cal-cell.is-today { box-shadow: inset 0 0 0 1px var(--accent-line); }
.cal-day { font: 500 12.5px var(--font-mono); color: var(--muted); }
.cal-cell.is-today .cal-day { color: var(--accent); font-weight: 600; }
.cal-event { display: block; padding: 4px 6px; border-radius: 3px; background: var(--surface-3); border-left: 2px solid var(--accent); font-size: 12.5px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-event:hover { background: var(--line-2); color: var(--text); }
.cal-event b { font-family: var(--font-mono); font-weight: 500; color: var(--accent-2); margin-right: 4px; font-size: 11.5px; }
.cal-event.is-cancelled { opacity: 0.5; text-decoration: line-through; }

/* --------------------------------------------------------------- VTC (page) */

.cover { position: relative; height: 300px; background: var(--surface-2); overflow: hidden; border-bottom: 1px solid var(--line); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11, 13, 16, 0.92) 0%, rgba(11, 13, 16, 0.2) 60%, rgba(11, 13, 16, 0.35) 100%); }
.cover-fallback { position: absolute; inset: 0; background: radial-gradient(700px 260px at 70% 100%, color-mix(in srgb, var(--cover-color, #f5a524) 30%, transparent), transparent 70%), repeating-linear-gradient(-55deg, #15191e 0 22px, #111418 22px 44px); }
.identity { position: relative; margin-top: -84px; z-index: 2; display: flex; gap: 24px; align-items: flex-end; padding-bottom: 24px; }
.identity .monogram, .identity .avatar { box-shadow: 0 0 0 4px var(--bg), 0 16px 40px rgba(0, 0, 0, 0.5); }
.identity-main { flex: 1; min-width: 0; padding-bottom: 4px; }
.identity-name { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 4.5vw, 52px); text-transform: uppercase; line-height: 0.95; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.identity-sub { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; color: var(--text-2); font-size: 14.5px; align-items: center; }
.identity-sub > span { display: inline-flex; align-items: center; gap: 6px; }
.identity-sub .i { color: var(--muted); }
.identity-actions { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 6px; }
.member-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.member-row:last-child { border-bottom: 0; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.socials a { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: var(--radius); border: 1px solid var(--line-2); font-size: 14px; color: var(--text-2); }
.socials a:hover { border-color: var(--line-3); color: var(--text); }
.job-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) 90px 110px; gap: 16px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.job-row:last-child { border-bottom: 0; }
.job-cargo { font-weight: 600; }
.job-cargo small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }

/* --------------------------------------------------------------- Réseau social */

.composer { padding: 16px; }
.composer textarea { min-height: 84px; border: 0; background: transparent; padding: 4px 0; resize: none; font-size: 16px; }
.composer textarea:focus { box-shadow: none; background: transparent; }
.composer-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.composer-preview { margin-top: 10px; position: relative; display: inline-block; }
.composer-preview img { max-height: 220px; border-radius: var(--radius); border: 1px solid var(--line-2); }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.post { padding: 18px 20px; display: grid; gap: 12px; }
.post + .post { border-top: 1px solid var(--line); }
.post-head { display: flex; gap: 12px; align-items: center; min-width: 0; }
.post-meta { min-width: 0; flex: 1; }
.post-meta .row { gap: 8px; flex-wrap: wrap; }
.post-time { font-size: 13px; color: var(--muted); }
.post-body { font-size: 15.5px; line-height: 1.6; overflow-wrap: anywhere; color: #ddd9d1; }
.post-body a { color: var(--accent-2); }
.post-body a.mention, .post-body a.hashtag { font-weight: 600; }
.post-image { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; }
.post-image img { width: 100%; max-height: 560px; object-fit: contain; margin: 0 auto; }
.post-actions { display: flex; gap: 4px; margin: 0 -8px -6px; align-items: center; }
.post-action { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 10px; border-radius: var(--radius); border: 0; background: none; color: var(--muted); font: 500 14px var(--font); cursor: pointer; }
.post-action:hover { background: var(--surface-2); color: var(--text); }
.post-action.is-liked { color: #ff6b6b; }
.post-action.is-liked .i { fill: currentColor; }
.post-pinned { font: 600 12px var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); display: flex; align-items: center; gap: 6px; }
.comment { display: flex; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.comment-body { flex: 1; min-width: 0; }
.comment-bubble { font-size: 15px; line-height: 1.55; color: #ddd9d1; overflow-wrap: anywhere; margin-top: 2px; }
.trend { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.trend:last-child { border-bottom: 0; }
.trend b { font-weight: 600; }
.trend span { font: 500 12px var(--font-mono); color: var(--muted); }
.mini-user { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.mini-user-name { flex: 1; min-width: 0; }
.mini-user-name small { display: block; color: var(--muted); font-size: 12.5px; }

/* Profil */
.profile-stats { display: flex; gap: 24px; flex-wrap: wrap; font-size: 14.5px; color: var(--muted); }
.profile-stats b { color: var(--text); font: 600 16px var(--font-mono); margin-right: 4px; }
.badge-list { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px 0 9px; border-radius: 15px; border: 1px solid color-mix(in srgb, var(--badge-color, #f5a524) 40%, transparent); background: color-mix(in srgb, var(--badge-color, #f5a524) 12%, transparent); color: var(--badge-color, #f5a524); font-size: 13.5px; font-weight: 600; }
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.media-grid a { aspect-ratio: 1; border-radius: 4px; overflow: hidden; background: var(--surface-3); }
.media-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.media-grid a:hover img { transform: scale(1.04); }
.user-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.user-card { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.user-card:hover { border-color: var(--line-3); color: var(--text); }

/* Messages */
.inbox { display: grid; grid-template-columns: 320px minmax(0, 1fr); height: calc(100vh - var(--header) - 120px); min-height: 520px; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.inbox-list { border-right: 1px solid var(--line); overflow-y: auto; }
.inbox-item { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.inbox-item:hover { background: var(--surface-2); color: var(--text); }
.inbox-item.is-active { background: var(--surface-2); box-shadow: inset 2px 0 0 var(--accent); }
.inbox-item-main { flex: 1; min-width: 0; }
.inbox-item-main strong { display: block; font-size: 15px; }
.inbox-item-main small { display: block; color: var(--muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-item.unread .inbox-item-main small { color: var(--text); font-weight: 500; }
.inbox-thread { display: grid; grid-template-rows: auto 1fr auto; min-height: 0; }
.thread-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.thread-body { overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 6px; background: var(--bg-2); }
.bubble-msg { max-width: 72%; padding: 9px 13px; border-radius: 14px 14px 14px 4px; background: var(--surface-3); font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; align-self: flex-start; }
.bubble-msg.mine { align-self: flex-end; background: #3a2c12; color: #fbe7c2; border-radius: 14px 14px 4px 14px; }
.bubble-msg a { color: var(--accent-2); text-decoration: underline; }
.bubble-time { font: 500 11px var(--font-mono); color: var(--faint); margin: 2px 4px 8px; align-self: flex-start; }
.bubble-time.mine { align-self: flex-end; }
.thread-form { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line); }
.thread-form .textarea { min-height: 44px; height: 44px; resize: none; }

/* Fils de discussion (tickets, signalements, recours) */
.thread { display: grid; gap: 14px; }
.reply { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
.reply-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.reply-card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); font-size: 14px; }
.reply-card-body { padding: 14px 16px; font-size: 15px; line-height: 1.6; color: #ddd9d1; overflow-wrap: anywhere; }
.reply.is-staff .reply-card { border-color: rgba(245, 165, 36, 0.28); }
.reply.is-staff .reply-card-head { background: rgba(245, 165, 36, 0.06); }
.reply.is-internal .reply-card { border-color: rgba(178, 140, 255, 0.35); border-style: dashed; }
.reply.is-internal .reply-card-head { background: rgba(178, 140, 255, 0.07); }
.reply-system { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13.5px; padding: 2px 0 2px 54px; }
.reply-system::before { content: ''; flex: 0 0 18px; height: 1px; background: var(--line-3); }

/* --------------------------------------------------------------- Pied de page */

.footer { margin-top: auto; border-top: 1px solid var(--line); background: #080a0c; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; padding: 56px 0 40px; }
.footer-brand p { color: var(--muted); font-size: 14.5px; margin: 16px 0 20px; max-width: 320px; }
.footer h4 { font: 700 13px var(--font-display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text); margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer li a { color: var(--muted); font-size: 14.5px; }
.footer li a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 20px 0 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }
.footer-socials { display: flex; gap: 6px; }
.footer-socials a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius); border: 1px solid var(--line-2); color: var(--text-2); }
.footer-socials a:hover { color: var(--text); border-color: var(--line-3); }

/* --------------------------------------------------------------- Pages simples */

.auth { min-height: calc(100vh - var(--header)); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { position: relative; overflow: hidden; border-right: 1px solid var(--line); display: flex; align-items: flex-end; padding: 56px; isolation: isolate; }
.auth-side .scene { z-index: -1; }
.auth-side blockquote { margin: 0; max-width: 460px; }
.auth-side blockquote p { font: 700 clamp(30px, 3.4vw, 46px)/1 var(--font-display); text-transform: uppercase; margin-bottom: 18px; }
.auth-main { display: grid; place-items: center; padding: 48px 24px; }
.auth-box { width: 100%; max-width: 420px; }
.auth-box h1 { margin-bottom: 8px; }
.auth-alt { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); text-align: center; }
.or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.btn-steam { background: #171a21; border-color: #2a475e; color: #c7d5e0; }
.btn-steam:hover { background: #1b2838; color: #fff; border-color: #66c0f4; }
.btn-discord { background: #5865f2; border-color: #5865f2; color: #fff; }
.btn-discord:hover { background: #4752c4; border-color: #4752c4; color: #fff; }
.auth-buttons { display: grid; gap: 10px; }

.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px 24px; }
.error-code { font: 800 clamp(96px, 18vw, 200px)/0.85 var(--font-display); color: transparent; -webkit-text-stroke: 2px var(--line-3); letter-spacing: 0.02em; }
.error-page h1 { margin: 18px 0 12px; }
.error-page pre { text-align: left; max-width: 900px; overflow: auto; font-size: 12px; color: var(--muted); background: #07090b; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); }

.kb-group h2 { margin-bottom: 12px; }
.kb-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.kb-link:hover { color: var(--accent-2); }
.kb-link .i { color: var(--faint); }
.help-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.help-card { display: grid; gap: 10px; padding: 20px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); align-content: start; }
.help-card:hover { border-color: var(--line-3); color: var(--text); }
.help-card .i { color: var(--accent); width: 26px; height: 26px; }
.help-card strong { font: 700 19px var(--font-display); text-transform: uppercase; letter-spacing: 0.02em; }
.help-card span { color: var(--muted); font-size: 14px; }
.list-row { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
a.list-row:hover { background: var(--surface-2); color: var(--text); }
.list-row-main { min-width: 0; flex: 1; }
.list-row-main strong { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row-main small { color: var(--muted); font-size: 13px; }
.team-group { padding: 28px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 280px 1fr; gap: 28px; }
.team-group:first-child { border-top: 0; }
.team-member { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.team-member:hover { border-color: var(--line-3); color: var(--text); }

.notif { display: flex; gap: 14px; align-items: flex-start; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.notif:last-child { border-bottom: 0; }
.notif.unread { background: rgba(245, 165, 36, 0.04); box-shadow: inset 2px 0 0 var(--accent); }
.notif-icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--accent); flex: none; }
.notif-body { flex: 1; min-width: 0; font-size: 15px; }
.notif-body small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 3px; }

.maintenance { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 24px; position: relative; isolation: isolate; overflow: hidden; }
.maintenance .scene { z-index: -1; }

/* --------------------------------------------------------------- Animations */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------- Responsive */

@media (max-width: 1180px) {
    .layout-feed { grid-template-columns: minmax(0, 1fr) 300px; }
    .layout-feed > .feed-left { display: none; }
    .board-row { grid-template-columns: 76px minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) 120px; }
    .board-row > :nth-child(5) { display: none; }
}

@media (max-width: 1080px) {
    .nav, .header-cta { display: none; }
    .nav-toggle { display: grid; }
    .mobile-nav { position: fixed; inset: var(--header) 0 0 0; z-index: 49; background: var(--bg); overflow-y: auto; padding: 16px 24px 48px; border-top: 1px solid var(--line); }
    .mobile-nav.open { display: block; }
    .mobile-nav h4 { margin: 20px 0 8px; }
    .mobile-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 500; }
    .mobile-nav a .i { color: var(--accent); }
    .hero-inner { grid-template-columns: 1fr; }
    .hero { min-height: auto; }
    .layout-side { grid-template-columns: 1fr; }
    .layout-side-left { grid-template-columns: 1fr; }
    .layout-feed { grid-template-columns: minmax(0, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .signs { grid-template-columns: repeat(2, 1fr); }
    .help-cards { grid-template-columns: repeat(2, 1fr); }
    .cta-band { grid-template-columns: 1fr; padding: 36px; }
    .server-row { grid-template-columns: 60px minmax(0, 1fr) 160px; }
    .server-row > :nth-child(3), .server-row > :nth-child(5) { display: none; }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .team-group { grid-template-columns: 1fr; gap: 16px; }
    .sticky { position: static; }
}

@media (max-width: 760px) {
    :root { --header: 58px; }
    .wrap { padding: 0 16px; }
    .section { padding: 64px 0; }
    .page { padding-top: 28px; padding-bottom: 64px; }
    .page-head { padding: 36px 0 28px; }
    .brand-name { font-size: 20px; }
    .user-chip-name { display: none; }
    .header-actions .hide-sm { display: none; }
    .hero { padding: calc(var(--header) + 40px) 0 48px; }
    .hero-stats { gap: 18px 0; }
    .hero-stat { padding: 0 18px; }
    .hero-stat dd { font-size: 22px; }
    .features { grid-template-columns: 1fr; }
    .feature { padding: 24px; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
    .layout-feed > *, .layout-side > *, .dossier > * { min-width: 0; }
    .news-feature { grid-column: auto; grid-template-columns: 1fr; }
    .news-feature .news-cover { min-height: 200px; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .board-row { grid-template-columns: 64px minmax(0, 1fr) 96px; gap: 12px; padding: 12px 14px; }
    .board-row > :nth-child(3), .board-row > :nth-child(4), .board-row > :nth-child(5) { display: none; }
    .board-labels { display: none !important; }
    .signs { grid-template-columns: 1fr 1fr; gap: 10px; }
    .sign { min-height: 120px; padding: 14px; }
    .sign-title { font-size: 22px; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
    .auth { grid-template-columns: 1fr; }
    .auth-side { display: none; }
    .identity { flex-direction: column; align-items: flex-start; margin-top: -60px; gap: 14px; }
    .cover { height: 200px; }
    .inbox { grid-template-columns: 1fr; height: auto; min-height: 0; }
    .inbox-list { max-height: 260px; border-right: 0; border-bottom: 1px solid var(--line); }
    .inbox.has-thread .inbox-list { display: none; }
    .hide-desktop { display: inline-flex; }
    .thread-body { min-height: 360px; max-height: 60vh; }
    .help-cards { grid-template-columns: 1fr; }
    .job-row { grid-template-columns: 1fr 90px; }
    .job-row > :nth-child(2), .job-row > :nth-child(4) { display: none; }
    .server-row { grid-template-columns: 1fr; gap: 12px; }
    .server-row > :nth-child(1) { display: none; }
    .calendar { font-size: 12px; }
    .cal-cell { min-height: 72px; padding: 4px; }
    .cal-event { font-size: 0; padding: 0; height: 6px; border-left: 0; background: var(--accent); }
    .cal-event b { display: none; }
    .flashes { right: 12px; left: 12px; width: auto; }
    .route-end strong { font-size: 17px; }
    .bubble-msg { max-width: 86%; }
    .panel-pad, .panel-body { padding: 16px; }
    .reply { grid-template-columns: 1fr; }
    .reply > .avatar { display: none; }
    .reply-system { padding-left: 0; }
    .table th, .table td { padding: 10px; }
    .media-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Joueurs en jeu sur la page d'un serveur */
.online-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.online-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface-2); font-size: 14px; color: var(--text-2); }
.online-chip:hover { border-color: var(--line-3); color: var(--text); }
.online-chip b { color: var(--accent); font-size: 12.5px; }
