/* ===== Reset & base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:          #0a0a0a;
    --surface:     #141414;
    --surface-2:   #1c1c1c;
    --border:      #222;
    --red:         #e50914;
    --red-hover:   #f40612;
    --text:        #fff;
    --text-muted:  #aaa;
    --text-dim:    #555;
    --header-h:    54px;
    --r:           6px;
    --r-xl:        12px;
    --r-pill:      999px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; }

/* ================================================================
   HEADER / NAVBAR  (identique Movix)
   ================================================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10,10,10,.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid #1a1a1a;
    user-select: none;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    padding: 0 1.5rem;
    gap: 1.5rem;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

.navbar--search-center {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 520px) 1fr;
    align-items: center;
    gap: 1rem;
}

.navbar--search-center .navbar__brand { justify-self: center; }
.navbar--search-center .navbar__search { justify-self: center; width: 100%; margin: 0; }

.navbar__brand {
    display: inline-flex;
    align-items: center;
    font-size: 1.55rem;
    font-weight: 900;
    letter-spacing: .06em;
    flex-shrink: 0;
    line-height: 1;
    transition: opacity .15s;
}
.navbar__brand:hover { opacity: .9; }
.navbar__brand-stalk {
    color: #fff;
}
.navbar__brand-business {
    color: var(--red);
}
.navbar__brand:hover .navbar__brand-business {
    color: var(--red-hover);
}

/* Search */
.navbar__search {
    display: flex;
    align-items: center;
    gap: .45rem;
    background: #191919;
    border: 1px solid #2a2a2a;
    border-radius: var(--r-pill);
    padding: .3rem 1rem;
    transition: border-color .15s;
}

.navbar__search:focus-within { border-color: #444; }

.navbar__search--lg {
    width: 100%;
    max-width: 520px;
    padding: .55rem 1.25rem;
    background: #151515;
    border-color: #2e2e2e;
}
.navbar__search--lg:focus-within {
    border-color: #555;
    box-shadow: 0 0 0 3px rgba(255,255,255,.04);
}
.navbar__search--lg .navbar__search-icon { font-size: .95rem; }
.navbar__search--lg .navbar__search-input { font-size: .95rem; }
.navbar__search-icon { color: var(--text-dim); font-size: .78rem; flex-shrink: 0; }

.navbar__search-input {
    background: none; border: none; outline: none;
    color: var(--text); font-size: .8rem; width: 100%;
}
.navbar__search-input::placeholder { color: var(--text-dim); }

/* ================================================================
   RESPONSIVE NAV
   ================================================================ */
@media (max-width: 900px) {
    .navbar--search-center {
        grid-template-columns: auto 1fr 1fr;
        gap: .75rem;
    }
}
@media (max-width: 700px) {
    .navbar { gap: 0; padding: 0 1rem; }
    .navbar--search-center {
        grid-template-columns: auto 1fr;
    }
    .navbar__brand { font-size: 1.15rem; }
    .navbar__search--lg { padding: .45rem 1rem; }
    .navbar__search--lg .navbar__search-input { font-size: .85rem; }
}

/* ================================================================
   IMPORT CAROUSEL (Import / Logs / Accès) — style Import Facile
   ================================================================ */
.import-carousel {
    position: relative;
    margin: 1.5rem 0 0;
    border-radius: 16px;
    overflow: hidden;
}

.import-carousel__track {
    position: relative;
    height: 260px;
}

.import-carousel__slide {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0 !important;
    width: 100%;
    height: 100%;
    min-height: 260px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .55s ease, visibility .55s ease;
    border-radius: 16px;
    z-index: 1;
}
.import-carousel__slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}

/* Variantes Logs / Accès */
.import-banner--logs,
.occasions-banner.import-banner--logs {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a0a0a 55%, #120000 100%) !important;
    border-color: #3a1515 !important;
}
.import-banner--logs .community-banner__desc span,
.occasions-banner.import-banner--logs .community-banner__desc span {
    color: #ef9a9a !important;
}
.import-banner--logs .community-banner__btn,
.occasions-banner.import-banner--logs .community-banner__btn {
    background: rgba(229,9,20,.18) !important;
    border-color: rgba(229,9,20,.4) !important;
    color: #ef9a9a !important;
}
.import-banner--logs .community-banner__btn:hover,
.occasions-banner.import-banner--logs .community-banner__btn:hover {
    background: rgba(229,9,20,.32) !important;
}
.import-banner--logs .import-banner__photo {
    object-position: 42% 30%;
    filter: brightness(.9) saturate(1.05) contrast(1.02);
}
/* Brume gauche : rouge */
.import-banner--logs .import-banner__right::before {
    background: linear-gradient(
        to right,
        #1a0a0a 0%,
        rgba(26,10,10,.97) 14%,
        rgba(50,12,12,.88) 28%,
        rgba(90,18,18,.48) 48%,
        rgba(140,30,30,.18) 65%,
        transparent 82%
    ) !important;
}
.import-banner--logs .import-banner__right::after {
    background: linear-gradient(
        to right,
        rgba(180,30,40,.40) 0%,
        rgba(180,30,40,.15) 35%,
        transparent 58%
    ) !important;
}

.import-banner--acces,
.occasions-banner.import-banner--acces {
    background: linear-gradient(135deg, #1a1a1a 0%, #121a14 55%, #0a140c 100%) !important;
    border-color: #1a2a1c !important;
}
.import-banner--acces .community-banner__desc span,
.occasions-banner.import-banner--acces .community-banner__desc span {
    color: #a8c69f !important;
}
.import-banner--acces .community-banner__btn,
.occasions-banner.import-banner--acces .community-banner__btn {
    background: rgba(168,198,159,.18) !important;
    border-color: rgba(168,198,159,.38) !important;
    color: #a8c69f !important;
}
.import-banner--acces .community-banner__btn:hover,
.occasions-banner.import-banner--acces .community-banner__btn:hover {
    background: rgba(168,198,159,.30) !important;
}
.import-banner--acces .import-banner__photo {
    filter: brightness(.9) saturate(1.05) contrast(1.02);
}
/* Brume gauche : bleu → vert casiers */
.import-banner--acces .import-banner__right::before {
    background: linear-gradient(
        to right,
        #0c140e 0%,
        rgba(12,22,14,.97) 14%,
        rgba(18,32,20,.88) 28%,
        rgba(40,60,42,.48) 48%,
        rgba(80,110,75,.18) 65%,
        transparent 82%
    ) !important;
}
.import-banner--acces .import-banner__right::after {
    background: linear-gradient(
        to right,
        rgba(90,130,80,.38) 0%,
        rgba(90,130,80,.14) 35%,
        transparent 58%
    ) !important;
}

.import-banner--quiz,
.occasions-banner.import-banner--quiz {
    background: linear-gradient(135deg, #14121a 0%, #1a1528 55%, #0e0c16 100%) !important;
    border-color: #2a2438 !important;
}
.import-banner--quiz .community-banner__desc span,
.occasions-banner.import-banner--quiz .community-banner__desc span {
    color: #c4b5fd !important;
}
.import-banner--quiz .community-banner__btn,
.occasions-banner.import-banner--quiz .community-banner__btn {
    background: rgba(167,139,250,.18) !important;
    border-color: rgba(167,139,250,.4) !important;
}
.import-banner--quiz .community-banner__btn:hover,
.occasions-banner.import-banner--quiz .community-banner__btn:hover {
    background: rgba(167,139,250,.28) !important;
}
.import-banner--quiz .import-banner__photo {
    object-position: 42% 28%;
    filter: brightness(.9) saturate(1.05);
}
.import-banner--quiz .import-banner__right::before {
    background: linear-gradient(
        to right,
        #14121a 0%,
        rgba(20,18,26,.97) 14%,
        rgba(40,30,60,.88) 28%,
        rgba(70,50,110,.48) 48%,
        rgba(100,70,160,.18) 65%,
        transparent 82%
    ) !important;
}
.import-banner--quiz .import-banner__right::after {
    background: linear-gradient(
        to right,
        rgba(140,100,220,.35) 0%,
        rgba(140,100,220,.12) 35%,
        transparent 58%
    ) !important;
}

/* Pill navigation — discrète */
.feat-pill {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: .4rem .7rem;
    background: rgba(0,0,0,.55);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

.feat-pill__dots {
    display: flex;
    align-items: center;
    gap: .35rem;
}

.feat-pill__dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    border: none;
    padding: 0;
    background: rgba(255,255,255,.28);
    cursor: pointer;
    transition: width .25s, background .25s;
}
.feat-pill__dot.is-active {
    width: 18px;
    background: rgba(255,255,255,.85);
}

/* ================================================================
   STATS BAR — inventaire + 72h (centré, sans fond)
   ================================================================ */
.stalk-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem 3.5rem;
    width: 100%;
    max-width: 100%;
    margin: 1.5rem 0 0;
    padding: .85rem 1.75rem;
    background: rgba(255,255,255,.02);
    border: 1px solid #1e1e1e;
    border-radius: 12px;
    box-sizing: border-box;
}
.stalk-stats__block {
    flex: 1 1 0;
    text-align: center;
    min-width: 0;
}
.stalk-stats__block--recent {
    padding-left: 0;
    flex: 0 1 auto;
}
.stalk-stats__heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    margin: 0 0 .55rem;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.78);
}
.stalk-stats__heading i {
    font-size: .75rem;
    color: rgba(255,255,255,.45);
}
.stalk-stats__row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: .85rem 1.75rem;
}
.stalk-stats__item {
    display: inline-flex;
    align-items: baseline;
    gap: .45rem;
}
.stalk-stats__ico {
    font-size: .9rem;
    color: rgba(232, 180, 184, .75);
}
.stalk-stats__num {
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1;
    color: #e8b4b8;
    letter-spacing: .01em;
    font-variant-numeric: tabular-nums;
}
.stalk-stats__label {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #666;
}
.stalk-stats__sep {
    color: #3a3a3a;
    font-size: 1.2rem;
    line-height: 1;
}
.stalk-stats__divider {
    width: 1px;
    height: 3rem;
    margin: 0 .5rem;
    background: #333;
    flex-shrink: 0;
    align-self: center;
}
.stalk-stats__recent {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .85rem;
}
.stalk-stats__delta {
    font-size: 1.9rem;
    font-weight: 900;
    line-height: 1;
    color: #7dcea0;
    font-variant-numeric: tabular-nums;
}
.stalk-stats__recent-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .12rem;
}
.stalk-stats__recent-title {
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #fff;
}
.stalk-stats__recent-sub {
    font-size: .78rem;
    color: #777;
}

@media (max-width: 800px) {
    .stalk-stats {
        flex-direction: column;
        gap: 1.1rem;
        padding: 1rem 1.15rem;
    }
    .stalk-stats__divider {
        width: 5rem;
        height: 1px;
        margin: 0;
    }
    .stalk-stats__num { font-size: 1.45rem; }
    .stalk-stats__delta { font-size: 1.55rem; }
    .stalk-stats__recent-meta { align-items: center; }
}

/* ── Ventes 48h (accueil) ── */
.sales24 {
    margin: 1.4rem 0 0;
    padding: 1rem 1.1rem 1.05rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .08);
    background:
        radial-gradient(120% 80% at 0% 0%, rgba(211, 47, 47, .08), transparent 55%),
        linear-gradient(180deg, rgba(22, 22, 24, .95), rgba(12, 12, 14, .98));
    box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
}
.sales24__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .75rem;
}
.sales24__title {
    margin: 0;
    font-family: "Rajdhani", "Segoe UI", system-ui, sans-serif;
    font-size: clamp(1.15rem, 2.2vw, 1.45rem);
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: #fff;
    display: flex;
    align-items: center;
    gap: .45rem;
}
.sales24__title i { color: var(--stalk-red, #d32f2f); }
.sales24__sub {
    margin: .2rem 0 0;
    color: rgba(255, 255, 255, .45);
    font-size: .85rem;
}
.sales24__total-wrap {
    text-align: right;
    flex-shrink: 0;
}
.sales24__total-label {
    display: block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .4);
}
.sales24__total {
    font-family: "Rajdhani", "Segoe UI", system-ui, sans-serif;
    font-size: 1.75rem;
    font-weight: 900;
    color: #69f0ae;
    line-height: 1;
    text-decoration: none;
    display: inline-block;
    transition: color .15s, transform .15s;
}
a.sales24__total:hover {
    color: #9cffc8;
    transform: scale(1.04);
}
a.sales24__total:focus-visible {
    outline: 2px solid rgba(105, 240, 174, .65);
    outline-offset: 3px;
    border-radius: 4px;
}
.sales24__stage {
    position: relative;
    min-height: 200px;
}
.sales24__chart {
    width: 100%;
    min-height: 200px;
}
.sales24__svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}
.sales24__grid {
    stroke: rgba(255, 255, 255, .07);
    stroke-width: 1;
}
.sales24__grid--v {
    stroke: rgba(255, 255, 255, .04);
}
.sales24__axis {
    fill: rgba(255, 255, 255, .35);
    font-size: 10px;
    font-family: "Rajdhani", "Segoe UI", system-ui, sans-serif;
}
.sales24__curve {
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: .95;
}
.sales24__logo {
    pointer-events: none;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, .25));
}
.sales24__logo-dot {
    filter: drop-shadow(0 0 8px currentColor);
}
.sales24__logo-ini {
    fill: #111;
    font-size: 12px;
    font-weight: 900;
    font-family: "Rajdhani", "Segoe UI", system-ui, sans-serif;
    pointer-events: none;
}
.sales24__hit { cursor: pointer; }
.sales24__empty {
    margin: 0;
    padding: 2.5rem 1rem;
    text-align: center;
    color: rgba(255, 255, 255, .4);
    font-size: .95rem;
}
.sales24__tip {
    position: absolute;
    z-index: 5;
    pointer-events: none;
    min-width: 120px;
    max-width: 220px;
    padding: .45rem .6rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(10, 10, 12, .92);
    color: #eee;
    font-size: .8rem;
    line-height: 1.35;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .45);
}
.sales24__tip strong {
    color: #fff;
    font-weight: 800;
}
.sales24__legend {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: .75rem;
}
.sales24__chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .28rem .55rem .28rem .35rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .04);
    color: #ddd;
    cursor: default;
    font-family: "Rajdhani", "Segoe UI", system-ui, sans-serif;
}
.sales24__chip img,
.sales24__swatch {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: contain;
    background: rgba(0, 0, 0, .35);
    flex-shrink: 0;
}
.sales24__chip-name {
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .02em;
}
.sales24__chip-n {
    font-size: .82rem;
    font-weight: 900;
    color: #69f0ae;
}
@media (max-width: 700px) {
    .sales24 { padding: .85rem .8rem .9rem; }
    .sales24__head { flex-direction: column; gap: .55rem; }
    .sales24__total-wrap { text-align: left; }
    .sales24__total { font-size: 1.45rem; }
}

.ventes-page__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}
.ventes-page__title {
    margin: .35rem 0 .25rem;
    font-family: "Rajdhani", "Segoe UI", system-ui, sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 900;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: #fff;
}
.ventes-page__sub {
    margin: 0;
    color: rgba(255, 255, 255, .5);
    font-size: .95rem;
}
.ventes-page__filters {
    flex-shrink: 0;
}

/* ================================================================
   PAGE WRAPPER
   ================================================================ */
.page-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}

/* ================================================================
   SECTION TITLE  (Movix style exact)
   ================================================================ */
.section { padding: 2.5rem 0 0; }

.section--quick-search {
    margin-bottom: .25rem;
    text-align: center;
}
.section--quick-search .section-title {
    display: inline-block;
}
.section--quick-search .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.quick-search {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .55rem;
    max-width: 720px;
    margin: 0 auto;
}
.quick-search__label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-dim, #888);
}
.quick-search__bar {
    display: flex;
    align-items: center;
    gap: .65rem;
    width: 100%;
    padding: .7rem 1.1rem;
    background: #141414;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    transition: border-color .15s, box-shadow .15s;
}
.quick-search__bar:focus-within {
    border-color: color-mix(in srgb, var(--red, #d32f2f) 65%, #444);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, .14);
}
.quick-search__input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    border: none;
    background: transparent;
    color: #fff;
    font-family: "Rajdhani", "Segoe UI", system-ui, sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: .02em;
    outline: none;
    text-align: center;
}
.quick-search__input::-webkit-search-decoration,
.quick-search__input::-webkit-search-cancel-button,
.quick-search__input::-webkit-search-results-button,
.quick-search__input::-webkit-search-results-decoration {
    -webkit-appearance: none;
}
.quick-search__meta {
    margin: .65rem 0 0;
    font-size: .82rem;
    color: #888;
    text-align: center;
}
.quick-search__results {
    margin-top: 1.1rem;
    text-align: left;
}

.section-title {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 1.25rem;
    width: fit-content;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 44px; height: 3px;
    background: var(--red);
    border-radius: 2px;
}

/* ================================================================
   PLATFORM CARDS  (250×150, fond blanc, logo, count badge)
   ================================================================ */
.platform-grid {
    display: flex;
    gap: .75rem;
    overflow-x: auto;
    padding-bottom: .5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.platform-grid::-webkit-scrollbar { display: none; }

/* ================================================================
   CARDS ROW (scroll horizontal)
   ================================================================ */
.cards-row {
    display: flex;
    gap: .65rem;
    overflow-x: auto;
    padding-bottom: .75rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.cards-row::-webkit-scrollbar { display: none; }

/* ================================================================
   POSTER CARD (film / série standard)
   ================================================================ */
.poster-card {
    flex: 0 0 auto;
    width: 130px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: transform .2s, box-shadow .2s;
    background: #1a1a1a;
}
.poster-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 14px 32px rgba(0,0,0,.7);
}

.poster-card__img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
}

.poster-card__img--placeholder {
    width: 100%;
    aspect-ratio: 2/3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: rgba(255,255,255,.15);
}

.poster-card__badge {
    position: absolute;
    top: 6px; left: 6px;
    background: rgba(0,0,0,.72);
    color: #fff;
    font-size: .58rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: .04em;
    border: 1px solid rgba(255,255,255,.1);
}

.poster-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.92) 0%, transparent 55%);
    opacity: 0;
    transition: opacity .2s;
    display: flex;
    align-items: flex-end;
    padding: .55rem;
}
.poster-card:hover .poster-card__overlay { opacity: 1; }

.poster-card__title {
    font-size: .68rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ================================================================
   COMMUNITY / TELEGRAM BANNER  (fond bleu dégradé)
   ================================================================ */
.community-banner {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 55%, #01579b 100%);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    margin: 2.5rem 0 0;
    display: flex;
    align-items: center;
    gap: 2rem;
    overflow: hidden;
    position: relative;
}
.community-banner::before {
    content: '';
    position: absolute; right: -50px; top: -50px;
    width: 240px; height: 240px;
    background: rgba(255,255,255,.05);
    border-radius: 50%;
}
.community-banner__content { flex: 1; }
.community-banner__title {
    font-size: 1.35rem; font-weight: 800; color: #fff; margin-bottom: .3rem;
}
.community-banner__desc {
    font-size: .88rem; color: rgba(255,255,255,.82); line-height: 1.55; margin-bottom: .25rem;
}
.community-banner__desc span { color: #90caf9; font-weight: 600; }
.community-banner__tip { font-size: .82rem; color: rgba(255,255,255,.7); margin-bottom: 1.1rem; font-weight: 600; }
.community-banner__btn {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(255,255,255,.18); color: #fff;
    padding: .55rem 1.2rem; border-radius: 8px;
    font-weight: 700; font-size: .875rem;
    border: 1px solid rgba(255,255,255,.28);
    transition: background .15s;
}
.community-banner__btn:hover { background: rgba(255,255,255,.3); }
.community-banner__btn--locked {
    cursor: default;
    pointer-events: none;
    user-select: none;
    opacity: .55;
}
.community-banner__btn--locked:hover,
.import-banner--logs .community-banner__btn--locked:hover,
.occasions-banner.import-banner--logs .community-banner__btn--locked:hover,
.import-banner--acces .community-banner__btn--locked:hover,
.occasions-banner.import-banner--acces .community-banner__btn--locked:hover {
    background: rgba(255,255,255,.18);
}
.community-banner__icon {
    flex-shrink: 0; width: 90px; height: 90px;
    background: rgba(255,255,255,.15); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.8rem; color: #fff;
    margin-left: auto; position: relative; z-index: 1;
}
@media (max-width: 600px) {
    .community-banner { padding: 1.5rem; }
    .community-banner__icon { display: none; }
}

.tunnershop-banner {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a1a0a 55%, #1a0a00 100%);
    border: 1px solid #3a2010;
    /* Hauteur pour tête → bras croisés, sans dézoom moche */
    min-height: 260px;
    align-items: center;
}
.tunnershop-banner::before { display: none; }
.tunnershop-banner .community-banner__desc span { color: #f5a623; }
.tunnershop-banner .community-banner__content {
    position: relative;
    z-index: 3;
    max-width: 48%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .85rem;
    padding: .5rem 0;
}
.tunnershop-banner .community-banner__title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0;
    letter-spacing: .01em;
}
.tunnershop-banner .community-banner__desc {
    font-size: 1rem;
    line-height: 1.55;
    margin-bottom: 0;
    max-width: 22rem;
}
.tunnershop-banner .community-banner__btn {
    background: rgba(245,166,35,.18);
    border-color: rgba(245,166,35,.35);
    color: #f5a623;
    margin-top: .35rem;
    padding: .7rem 1.45rem;
    font-size: .95rem;
    align-self: flex-start;
}
.tunnershop-banner .community-banner__btn:hover { background: rgba(245,166,35,.32); }

/* Slide Nouveautés — navy showroom + bouton verre orange */
.import-banner--nouveautes,
.occasions-banner.import-banner--nouveautes {
    background: linear-gradient(135deg, #0e1524 0%, #1b2b4b 48%, #121820 100%) !important;
    border-color: #2a3a55 !important;
}
.import-banner--nouveautes .community-banner__desc span,
.occasions-banner.import-banner--nouveautes .community-banner__desc span {
    color: #f27521 !important;
}
.import-banner--nouveautes .community-banner__btn,
.occasions-banner.import-banner--nouveautes .community-banner__btn {
    background: rgba(242, 117, 33, 0.18) !important;
    border-color: rgba(242, 117, 33, 0.55) !important;
    color: #fff !important;
    backdrop-filter: blur(6px);
    box-shadow: none;
}
.import-banner--nouveautes .community-banner__btn:hover,
.occasions-banner.import-banner--nouveautes .community-banner__btn:hover {
    background: rgba(242, 117, 33, 0.32) !important;
    border-color: rgba(242, 117, 33, 0.75) !important;
    box-shadow: 0 0 16px rgba(242, 117, 33, 0.22);
}
.import-banner--nouveautes .import-banner__photo {
    object-position: 42% 48%;
    filter: saturate(1.05) contrast(1.04);
}

#tunnershopBanner,
#nouveautesBanner {
    margin: 1.5rem 0 0;
}

/* Filtres garages — page nouveautés */
.nouv-garage-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin: 0 0 1.35rem;
}
.nouv-garage-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .38rem .7rem .38rem .5rem;
    border-radius: 8px;
    border: 1px solid color-mix(in srgb, var(--gc, #888) 35%, #2a2a2a);
    background: rgba(255,255,255,.03);
    color: rgba(255,255,255,.72);
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    transition: background .15s, border-color .15s, color .15s, opacity .15s;
}
.nouv-garage-chip.is-on {
    color: #fff;
    background: color-mix(in srgb, var(--gc, #888) 18%, transparent);
    border-color: color-mix(in srgb, var(--gc, #888) 55%, #333);
}
.nouv-garage-chip:not(.is-on) {
    opacity: .55;
}
.nouv-garage-chip__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.nouv-garage-chip__box {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    border: 1.5px solid color-mix(in srgb, var(--gc, #888) 70%, #666);
    background: transparent;
    flex-shrink: 0;
    position: relative;
}
.nouv-garage-chip.is-on .nouv-garage-chip__box {
    background: var(--gc, #888);
    border-color: var(--gc, #888);
}
.nouv-garage-chip.is-on .nouv-garage-chip__box::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 0;
    width: 4px;
    height: 8px;
    border: solid #0a0a0a;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.nouv-garage-chip__name {
    letter-spacing: .02em;
}
.nouv-card[hidden] {
    display: none !important;
}
.nouv-infinite {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .65rem;
    padding: 1.25rem 0 2rem;
}
.nouv-infinite__sentinel {
    width: 100%;
    height: 1px;
}
.nouv-infinite__status {
    margin: 0;
    font-size: .82rem;
    color: var(--text-dim, #888);
    letter-spacing: .04em;
}

/* Photo sur toute la bannière */
.tunnershop-banner__right {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    width: 100%;
    z-index: 1;
    pointer-events: none;
}

.tunnershop-banner__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 55% 40%;
    filter: brightness(.92) saturate(1.05) contrast(1.02);
}

/* Incrustation douce depuis la gauche */
.tunnershop-banner__right::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to right,
        #1a1a1a 0%,
        rgba(26,26,26,.97) 14%,
        rgba(26,20,12,.85) 28%,
        rgba(26,18,8,.45) 48%,
        rgba(26,18,8,.15) 65%,
        transparent 82%
    );
    pointer-events: none;
}
.tunnershop-banner__right::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to right,
        rgba(42,26,10,.4) 0%,
        rgba(42,26,10,.15) 35%,
        transparent 58%
    );
    pointer-events: none;
}

/* Logo Tunershop — PNG libre, taille catalogues (~100px) */
.tunnershop-banner__logo-bubble {
    position: absolute;
    right: 1.4rem;
    top: 50%;
    transform: translateY(-50%);
    width: 100px;
    height: 100px;
    z-index: 4;
    pointer-events: auto;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.tunnershop-banner__logo-bubble img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,.65));
}

@media (max-width: 700px) {
    .tunnershop-banner .community-banner__content { max-width: 55%; }
    .tunnershop-banner__logo-bubble { width: 80px; height: 80px; right: 1rem; }
}
@media (max-width: 600px) {
    .tunnershop-banner__logo-bubble { width: 64px; height: 64px; }
    .tunnershop-banner .community-banner__content { max-width: 100%; }
    .tunnershop-banner__right::before {
        background: linear-gradient(
            to right,
            #1a1a1a 0%,
            rgba(26,26,26,.95) 35%,
            rgba(26,18,8,.5) 70%,
            transparent 100%
        );
    }
}

.occasions-banner {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a1a2a 55%, #001020 100%);
    border: 1px solid #102030;
}
.occasions-banner .community-banner__desc span { color: #64b5f6; }
.occasions-banner .community-banner__btn {
    background: rgba(100,181,246,.18);
    border-color: rgba(100,181,246,.35);
    color: #64b5f6;
}
.occasions-banner .community-banner__btn:hover { background: rgba(100,181,246,.3); }
.occasions-banner .community-banner__icon { background: rgba(100,181,246,.1); color: #64b5f6; }

/* Import banner — mêmes dimensions que Tunnershop */
.import-banner {
    min-height: 260px;
    align-items: center;
}
.import-banner::before { display: none; }
.import-banner .community-banner__content {
    position: relative;
    z-index: 3;
    max-width: 48%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .85rem;
    padding: .5rem 0;
}
.import-banner .community-banner__title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0;
    letter-spacing: .01em;
}
.import-banner .community-banner__desc {
    font-size: 1rem;
    line-height: 1.55;
    margin-bottom: 0;
    max-width: 24rem;
}
.import-banner .community-banner__btn {
    margin-top: .35rem;
    padding: .7rem 1.45rem;
    font-size: .95rem;
    align-self: flex-start;
}

.import-banner__right {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    width: 100%;
    z-index: 1;
    pointer-events: none;
}

.import-banner__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 55% 45%;
    filter: brightness(.9) saturate(1.05) contrast(1.02);
}

.import-banner__right::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to right,
        #0a121c 0%,
        rgba(10,18,28,.97) 14%,
        rgba(10,22,36,.85) 28%,
        rgba(8,20,40,.45) 48%,
        rgba(8,20,40,.15) 65%,
        transparent 82%
    );
    pointer-events: none;
}
.import-banner__right::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to right,
        rgba(10,40,70,.4) 0%,
        rgba(10,40,70,.15) 35%,
        transparent 58%
    );
    pointer-events: none;
}

@media (max-width: 700px) {
    .import-banner .community-banner__content { max-width: 55%; }
}
@media (max-width: 600px) {
    .import-banner .community-banner__content { max-width: 100%; }
}

/* ================================================================
   FOOTER  (3 colonnes + barre de bas — style Movix exact)
   ================================================================ */
.site-footer {
    background: var(--bg);
    border-top: 1px solid #1a1a1a;
    padding: 3.5rem 1.5rem 0;
    margin-top: 4rem;
}

.site-footer__grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.site-footer__heading {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.25rem;
}

.site-footer__body {
    font-size: .82rem;
    color: #9ca3af;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.site-footer__body a { color: #e50914; }
.site-footer__body a:hover { text-decoration: underline; }

.site-footer__link-row {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .83rem;
    color: rgba(249,250,251,.75);
    font-weight: 500;
    margin-bottom: 1.1rem;
    transition: opacity .15s;
}
.site-footer__link-row:hover { opacity: 1; color: #fff; }
.site-footer__link-row i { width: 18px; text-align: center; font-size: .9rem; }

.site-footer__tech {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .83rem;
    color: rgba(249,250,251,.75);
    font-weight: 500;
    margin-bottom: .9rem;
}
.site-footer__tech i { font-size: 1rem; }

.site-footer__bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid #1e1e1e;
    padding: 1.5rem 0 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.site-footer__copy { font-size: .78rem; color: #6b7280; }
.site-footer__by   { font-size: .78rem; color: #6b7280; }
.site-footer__by a { color: var(--red); transition: color .15s; }
.site-footer__by a:hover { color: var(--red-hover); }
.site-footer__vibe { font-size: .78rem; color: #6b7280; }

@media (max-width: 768px) {
    .site-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ================================================================
   LOGIN PAGE (style StalkServices backup)
   ================================================================ */
.login-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px 16px;
    background-color: #0e0e0e;
    background-image:
        linear-gradient(180deg, rgba(8, 8, 12, 0.55) 0%, rgba(8, 8, 12, 0.72) 100%),
        url("../img/login-bg.png?v=2");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
.login-card {
    width: 100%;
    max-width: 400px;
    background: rgba(10, 10, 10, 0.88);
    border: 1px solid #1e1e1e;
    border-radius: 2px;
    overflow: hidden;
    backdrop-filter: blur(8px);
    box-shadow:
        0 0 0 1px rgba(211, 47, 47, 0.07),
        0 20px 50px rgba(0, 0, 0, 0.7);
    padding: 0;
}
.login-header {
    padding: 2rem 2rem 1.5rem;
    border-bottom: 1px solid #181818;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    background: #060606;
    position: relative;
}
.login-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d32f2f 30%, #d32f2f 70%, transparent);
    opacity: 0.7;
}
.login-logo-link {
    display: inline-block;
    line-height: 1;
    text-decoration: none;
}
.login-logo-link:focus-visible {
    outline: 2px solid #d32f2f;
    outline-offset: 6px;
    border-radius: 4px;
}
.login-brand {
    font-family: 'Rajdhani', system-ui, sans-serif;
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
}
.login-brand__stalk { color: #fff; }
.login-brand__business { color: #d32f2f; }
.login-clearance {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.2rem 0.65rem;
    border: 1px solid rgba(211, 47, 47, 0.28);
    border-radius: 2px;
    background: rgba(211, 47, 47, 0.05);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(255, 160, 160, 0.7);
}
.login-clearance i {
    font-size: 0.62rem;
    opacity: 0.8;
}
.login-body {
    padding: 1.75rem 2rem 2rem;
}
.login-error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    border-radius: 6px;
    border: 1px solid rgba(211, 47, 47, 0.35);
    background: rgba(211, 47, 47, 0.08);
    font-size: 0.82rem;
    color: #ffb3b3;
    margin-bottom: 1.25rem;
}
.login-error i {
    font-size: 0.82rem;
    flex-shrink: 0;
    color: #d32f2f;
}
.login-field {
    display: flex;
    flex-direction: column;
    gap: 0.38rem;
    margin-bottom: 1.1rem;
}
.login-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}
.login-label i {
    font-size: 0.68rem;
    opacity: 0.8;
}
.login-input-wrap {
    position: relative;
}
.login-input-wrap > i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.82rem;
    pointer-events: none;
    transition: color 0.15s;
}
.login-input {
    width: 100%;
    background: #111111;
    border: 1px solid #232323;
    border-radius: 2px;
    padding: 0.6rem 0.75rem 0.6rem 2.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.login-input:focus {
    border-color: rgba(211, 47, 47, 0.55);
    box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.14);
}
.login-input-wrap:focus-within > i {
    color: rgba(211, 47, 47, 0.7);
}
.login-divider {
    height: 1px;
    background: #232323;
    margin: 1.5rem 0;
}
.login-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.login-version {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.22);
}
.login-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.55rem 1.45rem;
    border-radius: 2px;
    border: 1px solid #b71c1c;
    background: #d32f2f;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.login-submit:hover {
    background: #e53935;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 14px rgba(211, 47, 47, 0.22);
}
.login-submit:active {
    background: #b71c1c;
}
.login-submit:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.7);
    outline-offset: 2px;
}

/* Navbar session chip */
.navbar__actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-left: auto;
    flex-shrink: 0;
}
.stalk-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    padding: 0.26rem 0.65rem 0.26rem 0.52rem;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.78rem;
    font-weight: 600;
    max-width: 160px;
    flex-shrink: 0;
    text-transform: uppercase;
}
.stalk-user-chip i {
    font-size: 0.7rem;
    opacity: 0.65;
    flex-shrink: 0;
}
.stalk-user-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ================================================================
   UTILITIES
   ================================================================ */
.flash { padding: .65rem 1rem; border-radius: var(--r); font-size: .875rem; margin-bottom: 1rem; }
.flash--success { background: rgba(76,175,80,.12); border: 1px solid #4caf50; color: #81c784; }
.flash--error   { background: rgba(229,9,20,.12); border: 1px solid var(--red); color: #ff8a80; }

/* ================================================================
   STALK BUTTONS (shared)
   ================================================================ */
.stalk-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem 1.1rem;
    border-radius: var(--r);
    font-size: .83rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    font-family: inherit;
    text-decoration: none;
    transition: background .15s, opacity .15s;
    white-space: nowrap;
}
.stalk-btn--red   { background: var(--red); color: #fff; }
.stalk-btn--red:hover { background: var(--red-hover); }
.stalk-btn--sm {
    padding: 0.34rem 0.75rem;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 5px;
}
.stalk-btn--sm i { font-size: 0.72rem; }
.stalk-btn--ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.55);
}
.stalk-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.9);
}

/* ================================================================
   STALK SEARCH FIELD (shared)
   ================================================================ */
.stalk-search-field {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: #191919;
    border: 1px solid #2a2a2a;
    border-radius: var(--r-pill);
    padding: .38rem 1rem;
    transition: border-color .15s;
}
.stalk-search-field:focus-within { border-color: #444; }
.stalk-search-field i { color: var(--text-dim); font-size: .78rem; flex-shrink: 0; }
.stalk-search-field input {
    background: none; border: none; outline: none;
    color: var(--text); font-size: .82rem; width: 160px;
}
.stalk-search-field input::placeholder { color: var(--text-dim); }

/* ================================================================
   SCROLL WRAP + FLÈCHES  (grille horizontale scrollable)
   ================================================================ */
.scroll-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.scroll-arrow {
    position: absolute;
    z-index: 10;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(10,10,10,.88);
    border: 1px solid #2a2a2a;
    color: #fff;
    font-size: .85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity .2s, background .15s, transform .15s;
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(4px);
}
.scroll-wrap:hover .scroll-arrow { opacity: 1; pointer-events: auto; }
.scroll-arrow:hover { background: var(--red); border-color: var(--red); transform: translateY(-50%) scale(1.08); }

.scroll-arrow--left  { left:  -14px; }
.scroll-arrow--right { right: -14px; }

/* ================================================================
   HISTORIQUE
   ================================================================ */
.history-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 1.25rem;
    flex-wrap: wrap;
    margin-bottom: .15rem;
}
.history-section__head .section-title {
    margin-bottom: 0;
}
.history-clear-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border: 1px solid #2a2a2a;
    background: rgba(255,255,255,.06);
    color: var(--text-muted);
    border-radius: var(--r-pill);
    padding: .4rem .85rem;
    font: inherit;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.history-clear-btn:hover {
    background: rgba(229,9,20,.14);
    border-color: rgba(229,9,20,.4);
    color: #ff6b6b;
}
.history-clear-btn[hidden] { display: none !important; }

.history-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    padding: 2.5rem 1rem;
    color: var(--text-dim);
    font-size: .85rem;
    text-align: center;
    border: 1px dashed #222;
    border-radius: 10px;
}
.history-empty[hidden] {
    display: none !important;
}
.history-empty i { font-size: 1.8rem; opacity: .4; }

.history-card {
    position: relative;
    flex: 0 0 auto;
    width: 240px;
    aspect-ratio: 16 / 10;
    border-radius: 10px;
    overflow: hidden;
    background: #141414;
    border: 1px solid color-mix(in srgb, var(--gc, #333) 30%, #222);
    text-decoration: none;
    transition: transform .18s, box-shadow .18s, border-color .18s;
}
.history-card:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 24px rgba(0,0,0,.55);
    border-color: var(--gc, #444);
}
.history-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.history-card__img--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: rgba(255,255,255,.15);
    background: #181818;
}
.history-card__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.2) 42%, transparent 62%),
        linear-gradient(to bottom, rgba(0,0,0,.35) 0%, transparent 28%);
    pointer-events: none;
}
.history-card__price {
    position: absolute;
    top: .5rem;
    left: .5rem;
    z-index: 2;
    padding: .22rem .55rem;
    border-radius: 7px;
    background: rgba(0,0,0,.72);
    border: 1px solid rgba(255,255,255,.12);
    font-family: "Rajdhani", "Segoe UI", system-ui, sans-serif;
    font-size: .95rem;
    font-weight: 800;
    letter-spacing: .03em;
    color: #fff;
    line-height: 1.15;
}
.history-card__logo {
    position: absolute;
    top: .4rem;
    right: .4rem;
    z-index: 2;
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    filter: drop-shadow(0 1px 5px rgba(0,0,0,.95));
    pointer-events: none;
}
.history-card__name {
    position: absolute;
    left: .55rem;
    right: .55rem;
    bottom: .5rem;
    z-index: 2;
    font-family: "Rajdhani", "Segoe UI", system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: .02em;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 3px rgba(0,0,0,.9);
}

/* ================================================================
   GARAGE CARDS  (accueil — Catalogues des véhicules)
   Couleurs = marques / logos
   ================================================================ */
.garage-card {
    flex: 0 0 auto;
    width: 220px;
    min-width: 220px;
    height: 130px;
    border-radius: 14px;
    overflow: hidden;
    background: #121212;
    border: 1px solid color-mix(in srgb, var(--garage-color, #444) 35%, #222);
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.garage-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--garage-color, #444) 55%, transparent) 0%, transparent 62%),
        radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--garage-color, #444) 28%, transparent), transparent 55%);
    opacity: .55;
    transition: opacity .2s;
}
.garage-card:hover {
    transform: translateY(-4px) scale(1.025);
    box-shadow:
        0 14px 36px rgba(0,0,0,.65),
        0 0 0 1px color-mix(in srgb, var(--garage-color, #444) 55%, transparent),
        0 8px 28px color-mix(in srgb, var(--garage-color, #444) 25%, transparent);
    border-color: var(--garage-color, #444);
}
.garage-card:hover::before { opacity: .78; }

/* Bande de couleur à gauche */
.garage-card::after {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--garage-color, #444);
    box-shadow: 0 0 12px color-mix(in srgb, var(--garage-color, #444) 60%, transparent);
    border-radius: 14px 0 0 14px;
    z-index: 3;
}

.garage-card__body {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.garage-card__logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    object-fit: contain;
    opacity: .28;
    transition: opacity .2s, transform .2s;
    pointer-events: none;
    z-index: 0;
    filter: none;
}
.garage-card:hover .garage-card__logo {
    opacity: .4;
    transform: translate(-50%, -50%) scale(1.06);
}

.garage-card__footer {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .22rem;
    padding: .5rem .75rem;
    z-index: 2;
}

.garage-card__name {
    font-size: .82rem;
    font-weight: 800;
    text-align: center;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .05em;
    line-height: 1.2;
    text-shadow: 0 1px 8px rgba(0,0,0,.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.garage-card__count {
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255,255,255,.55);
    text-shadow: 0 1px 4px rgba(0,0,0,.8);
}
.garage-card__count-num {
    color: var(--garage-color, #fff);
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

/* Nuances marque (fallback si color-mix non supporté — le style inline reste prioritaire) */
.garage-card--brand-legendary  { --garage-color: #ff5a1f; }
.garage-card--brand-benefactor { --garage-color: #c5c8ce; }
.garage-card--brand-pdm        { --garage-color: #4285f4; }
.garage-card--brand-larrys     { --garage-color: #c62828; }
.garage-card--brand-mosley     { --garage-color: #3d5a73; }
.garage-card--brand-luxury     { --garage-color: #c9a227; }
.garage-card--brand-helmuts    { --garage-color: #ff8c42; }
.garage-card--brand-flywheel   { --garage-color: #e53935; }
.garage-card--brand-heaven     { --garage-color: #00cfff; }
.garage-card--brand-north-marina { --garage-color: #00bcd4; }
.garage-card--brand-docktease  { --garage-color: #2196f3; }
.garage-card--brand-sanders    { --garage-color: #ef5350; }
.garage-card--brand-all,
.garage-card--all {
    --garage-color: #e50914;
}
.garage-card__logo--all {
    width: 140px;
    height: 70px;
    opacity: .34;
}
.garage-card:hover .garage-card__logo--all {
    opacity: .48;
}
.garage-card--all .garage-card__name {
    white-space: normal;
    font-size: .74rem;
    line-height: 1.15;
    max-width: 11.5rem;
}

/* ================================================================
   NOUVEAUTÉS — typo + dimensions = StalkServices large view
   ================================================================ */
.nouveautes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: .85rem;
}

.nouv-card {
    display: block;
    position: relative;
    text-decoration: none;
    color: inherit;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: #0a0a0a;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.nouv-card__hit {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
    text-indent: -9999px;
    overflow: hidden;
    color: transparent;
}
.nouv-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
    border-color: rgba(211, 47, 47, 0.35);
}

.nouv-card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #111;
    overflow: hidden;
    font-family: "Rajdhani", "Segoe UI", system-ui, sans-serif;
}
.nouv-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.nouv-card:hover .nouv-card__img { transform: scale(1.03); }

.nouv-card__no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: rgba(255,255,255,.12);
}

.nouv-card__shade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(0, 0, 0, 0.45) 38%,
        transparent 68%
    );
}

.nouv-card__price-row {
    position: absolute;
    top: 0.45rem;
    left: 0.45rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    max-width: calc(100% - 4rem);
    pointer-events: none;
}
.nouv-card__price-badge {
    position: relative;
    top: auto;
    left: auto;
    z-index: 3;
    padding: 0.22rem 0.72rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-family: "Rajdhani", "Segoe UI", system-ui, sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
    line-height: 1.15;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    /* Compense le letter-spacing (espace fantôme à droite) */
    padding-right: calc(0.72rem - 0.03em);
}

.nouv-card__logo {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    z-index: 3;
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    filter: none;
    pointer-events: none;
    user-select: none;
}

.nouv-card__resale {
    position: relative;
    top: auto;
    right: auto;
    z-index: 5;
    box-sizing: border-box;
    width: 1.85rem;
    height: 1.85rem;
    min-width: 1.85rem;
    min-height: 1.85rem;
    max-width: 1.85rem;
    max-height: 1.85rem;
    flex: 0 0 1.85rem;
    align-self: center;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(18, 18, 20, .94);
    border: 1.5px solid rgba(255, 255, 255, .38);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .45);
    pointer-events: auto;
    cursor: pointer;
    overflow: hidden;
    transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.nouv-card__resale:hover {
    transform: scale(1.08);
    border-color: rgba(255, 255, 255, .7);
    background: rgba(28, 28, 32, .96);
}
.nouv-card__resale:focus-visible {
    outline: 2px solid rgba(255, 255, 255, .65);
    outline-offset: 2px;
}
.nouv-card__resale .stalk-resale-icon {
    width: 0.85rem;
    height: 0.85rem;
    min-width: 0.85rem;
    min-height: 0.85rem;
    flex: 0 0 auto;
    display: block;
    background: rgba(255, 255, 255, .88);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    pointer-events: none;
}
.nouv-card--resale .nouv-card__logo,
.nouv-card--resale .nouv-card__garage-pill {
    right: 0.4rem;
}
.nouv-card__sold-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    background: rgba(183, 28, 28, .85);
    border: 1px solid rgba(255, 255, 255, .15);
    font-family: "Rajdhani", "Segoe UI", system-ui, sans-serif;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #fff;
}
.nouv-card--sold {
    opacity: .88;
}
.nouv-card--sold .nouv-card__img {
    filter: grayscale(.35) brightness(.85);
}

.nouv-card__garage-pill {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    z-index: 3;
    max-width: 42%;
    padding: 0.2rem 0.55rem;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--gc, #fff);
    font-family: "Rajdhani", "Segoe UI", system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nouv-card__bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    padding: 0.45rem 0.55rem 0.5rem;
}
.nouv-card__copy {
    flex: 1 1 0;
    min-width: 0;
    font-family: "Rajdhani", "Segoe UI", system-ui, sans-serif;
}
.nouv-card__name {
    margin: 0 0 0.06rem;
    font-family: "Rajdhani", "Segoe UI", system-ui, sans-serif;
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
    line-height: 1.1;
    text-transform: none;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.9),
        0 0 1px rgba(0, 0, 0, 1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    outline: none;
    border-radius: 3px;
    position: relative;
    z-index: 2;
}
.nouv-card__name[data-editable-name] {
    cursor: text;
    pointer-events: auto;
    position: relative;
    z-index: 6;
}
.nouv-card__name[data-editable-name]:hover { background: rgba(255,255,255,.06); }
.nouv-card__name.is-editing {
    white-space: normal;
    background: rgba(0,0,0,.7);
    border: 1px solid rgba(255,255,255,.25);
}
.nouv-card__plate-tag {
    display: block;
    margin: 0;
    opacity: 0.55;
    font-family: "Rajdhani", "Segoe UI", system-ui, sans-serif;
    font-size: 0.78em;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #fff;
    line-height: 1.15;
}
.nouv-card__upgrades {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.12rem;
    flex-shrink: 0;
    padding: 0.2rem 0.15rem;
    pointer-events: none;
}
.nouv-card__upg--arm   { grid-column: 1; grid-row: 1; }
.nouv-card__upg--eng   { grid-column: 1; grid-row: 2; }
.nouv-card__upg--tr    { grid-column: 2; grid-row: 1; }
.nouv-card__upg--radio { grid-column: 3; grid-row: 1; }
.nouv-card__upg--gps   { grid-column: 4; grid-row: 1; }
.nouv-card__upg--sus   { grid-column: 2; grid-row: 2; }
.nouv-card__upg--br    { grid-column: 3; grid-row: 2; }
.nouv-card__upg--turbo { grid-column: 4; grid-row: 2; }
.nouv-card__upg {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 0.1rem;
    padding: 0.14rem 0.18rem;
    background: #171717;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    min-width: 0;
}
.nouv-card__upg-label {
    font-family: "Rajdhani", "Segoe UI", system-ui, sans-serif;
    font-size: 0.52rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    white-space: nowrap;
}
.nouv-card__upg-val {
    font-family: "Rajdhani", "Segoe UI", system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    line-height: 1;
}
.nouv-card__upg-val.is-on { color: rgba(255, 255, 255, 0.9); }
.nouv-card__upg-val i { font-size: 0.8rem; }
.nouv-card__upg-val.is-on i { color: #69f0ae; }
.nouv-card__upg-turbo { font-size: 0.75rem; color: rgba(255, 255, 255, 0.25); }
.nouv-card__upg-turbo.is-on { color: #69f0af; }

@media (max-width: 1100px) {
    .nouveautes-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
    .nouv-card__price-badge { font-size: 1rem; }
}
@media (max-width: 700px) {
    .nouveautes-grid { grid-template-columns: 1fr; }
    .nouv-card__price-badge { font-size: .95rem; padding: 0.18rem 0.45rem; }
    .nouv-card__logo { width: 2.6rem; height: 2.6rem; }
    .nouv-card__name { font-size: 1rem; }
    .nouv-card__bottom { padding: 0.4rem 0.5rem 0.45rem; gap: 0.35rem; }
}

/* Page Nouveautés — grand format, 3 par ligne */
.nouveautes-grid--large {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
}
.nouveautes-grid--large .nouv-card__media {
    aspect-ratio: 16 / 10;
}
.nouveautes-grid--large .nouv-card__price-badge {
    top: 0.55rem;
    left: 0.55rem;
    padding: 0.32rem 0.95rem;
    border-radius: 10px;
    font-size: 1.55rem;
    justify-content: center;
    text-align: center;
}
.nouveautes-grid--large .nouv-card__logo {
    top: 0.55rem;
    right: 0.55rem;
    width: 4.4rem;
    height: 4.4rem;
}
.nouveautes-grid--large .nouv-card__bottom {
    gap: 0.75rem;
    padding: 0.65rem 0.85rem 0.75rem;
}
.nouveautes-grid--large .nouv-card__name {
    font-size: clamp(1.15rem, 2.2vw, 1.45rem);
    margin-bottom: 0.1rem;
}
.nouveautes-grid--large .nouv-card__plate-tag {
    font-size: 0.82em;
}
.nouveautes-grid--large .nouv-card__upgrades {
    gap: 0.18rem;
    padding: 0.45rem 0.5rem;
}
.nouveautes-grid--large .nouv-card__upg {
    gap: 0.15rem;
    padding: 0.22rem 0.3rem;
    border-radius: 5px;
}
.nouveautes-grid--large .nouv-card__upg-label {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
}
.nouveautes-grid--large .nouv-card__upg-val {
    font-size: 1.2rem;
}
.nouveautes-grid--large .nouv-card__upg-val i { font-size: 0.95rem; }
.nouveautes-grid--large .nouv-card__upg-turbo { font-size: 0.85rem; }

@media (max-width: 1100px) {
    .nouveautes-grid--large { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nouveautes-grid--large .nouv-card__price-badge { font-size: 1.35rem; }
}
@media (max-width: 700px) {
    .nouveautes-grid--large { grid-template-columns: 1fr; }
    .nouveautes-grid--large .nouv-card__price-badge { font-size: 1.15rem; padding: 0.22rem 0.6rem; }
    .nouveautes-grid--large .nouv-card__logo { width: 3.4rem; height: 3.4rem; }
    .nouveautes-grid--large .nouv-card__name { font-size: 1.1rem; }
    .nouveautes-grid--large .nouv-card__bottom { padding: 0.5rem 0.65rem 0.55rem; gap: 0.5rem; }
}

.nouveautes-more {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.nouv-more__btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem 1.5rem;
    border-radius: 8px;
    border: 1px solid #2a2a2a;
    background: #161616;
    color: #eee;
    text-decoration: none;
    font-family: "Rajdhani", "Segoe UI", system-ui, sans-serif;
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
}
.nouv-more__btn:hover {
    border-color: var(--red, #d32f2f);
    background: #1c1c1c;
    color: #fff;
}
.nouv-more__btn i {
    font-size: .75rem;
}

.nouveautes-page__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.nouveautes-page__sub {
    margin: 0;
    color: var(--text-dim, #888);
    font-size: .9rem;
}

/* ================================================================
   CATALOGUE DRAWER (panneau latéral — tous les catalogues)
   ================================================================ */
.cat-drawer {
    position: fixed;
    inset: 0;
    z-index: 2000;
    pointer-events: none;
}
.cat-drawer.is-open { pointer-events: auto; }

.cat-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.65);
    opacity: 0;
    transition: opacity .3s ease;
    backdrop-filter: blur(3px);
}
.cat-drawer.is-open .cat-drawer__backdrop { opacity: 1; }

.cat-drawer__panel {
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 310px;
    max-width: 90vw;
    background: #111;
    border-left: 1px solid #1e1e1e;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(.4,0,.2,1);
    overflow: hidden;
}
.cat-drawer.is-open .cat-drawer__panel { transform: translateX(0); }

.cat-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid #1e1e1e;
    flex-shrink: 0;
}
.cat-drawer__heading {
    font-size: .88rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .06em;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.cat-drawer__heading i { color: var(--red); }

.cat-drawer__close {
    background: rgba(255,255,255,.07);
    border: 1px solid #2a2a2a;
    color: var(--text-muted);
    width: 30px; height: 30px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: .85rem;
    transition: background .15s, color .15s;
}
.cat-drawer__close:hover { background: rgba(255,255,255,.14); color: #fff; }

.cat-drawer__list {
    flex: 1;
    overflow-y: auto;
    padding: .5rem 0;
    scrollbar-width: thin;
    scrollbar-color: #2a2a2a transparent;
}
.cat-drawer__list::-webkit-scrollbar { width: 4px; }
.cat-drawer__list::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 4px; }

.cat-drawer__item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .7rem 1.25rem;
    text-decoration: none;
    color: var(--text-muted);
    font-size: .875rem;
    font-weight: 500;
    transition: background .15s, color .15s;
    border-left: 3px solid transparent;
    position: relative;
}
.cat-drawer__item:hover {
    background: rgba(255,255,255,.05);
    color: #fff;
    border-left-color: var(--gc, #555);
}
.cat-drawer__item.is-active {
    background: rgba(255,255,255,.07);
    color: #fff;
    font-weight: 700;
    border-left-color: var(--gc, #555);
}

.cat-drawer__dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--gc, #555);
    flex-shrink: 0;
    opacity: .85;
}
.cat-drawer__item.is-active .cat-drawer__dot { opacity: 1; box-shadow: 0 0 6px var(--gc,#555); }

.cat-drawer__item-name { flex: 1; line-height: 1.25; }

.cat-drawer__item-count {
    font-size: .72rem;
    color: var(--text-dim);
    white-space: nowrap;
    font-weight: 600;
}
.cat-drawer__item-count small { font-size: .65rem; opacity: .7; }
.cat-drawer__item.is-active .cat-drawer__item-count { color: var(--gc, #aaa); }

/* ================================================================
   CATALOGUE PAGE — EN-TÊTE
   ================================================================ */
.catalogue-hero {
    background:
        linear-gradient(135deg, var(--garage-color, #333) 0%, transparent 60%),
        #0e0e0e;
    padding: 3rem 1.5rem 2.2rem;
    position: relative;
    overflow: hidden;
}
.catalogue-hero::after {
    content: '';
    position: absolute;
    right: -80px; top: -80px;
    width: 360px; height: 360px;
    border-radius: 50%;
    background: var(--garage-color, #444);
    opacity: .06;
}
.catalogue-hero__inner {
    max-width: 1800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.catalogue-hero__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: .5rem;
}

.catalogue-hero__back {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .8rem;
    font-weight: 600;
    color: rgba(255,255,255,.55);
    transition: color .15s;
    text-decoration: none;
}
.catalogue-hero__back:hover { color: #fff; }

.catalogue-hero__all-btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .38rem .9rem;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: var(--r-pill);
    color: rgba(255,255,255,.8);
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s, color .15s;
    letter-spacing: .02em;
}
.catalogue-hero__all-btn:hover {
    background: rgba(255,255,255,.18);
    color: #fff;
}
.cat-btn-chevron {
    font-size: .65rem;
    opacity: .7;
}

.catalogue-hero__title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #fff;
    margin-bottom: .45rem;
}
.catalogue-hero__meta {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-size: .88rem;
    color: rgba(255,255,255,.6);
    flex-wrap: wrap;
}
.catalogue-hero__meta i { color: #fff; }

.catalogue-hero__type-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .2rem .7rem;
    border-radius: var(--r-pill);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.catalogue-hero__type-badge--occasion {
    background: rgba(211,47,47,.2);
    border: 1px solid rgba(211,47,47,.4);
    color: #ef9a9a;
}
.catalogue-hero__type-badge--neuf {
    background: rgba(46,125,50,.2);
    border: 1px solid rgba(46,125,50,.4);
    color: #a5d6a7;
}

/* ================================================================
   CATALOGUE PAGE — FILTRES
   ================================================================ */
.catalogue-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem;
    padding: 1.5rem 0 1rem;
}
.catalogue-filters__group { display: flex; align-items: center; }

/* Pagination */
.catalogue-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 .6rem;
    border-radius: var(--r);
    background: var(--surface);
    border: 1px solid #222;
    color: var(--text-muted);
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s, border-color .15s, color .15s;
}
.pagination-btn:hover { background: #222; color: #fff; border-color: #333; }
.pagination-btn.is-active {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}
.pagination-ellipsis {
    color: var(--text-dim);
    font-size: .82rem;
    padding: 0 .2rem;
}

.catalogue-filters__select {
    appearance: none;
    background: #191919 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E") no-repeat right .75rem center;
    border: 1px solid #2a2a2a;
    border-radius: var(--r);
    color: var(--text-muted);
    font-size: .82rem;
    padding: .42rem 2.2rem .42rem .85rem;
    cursor: pointer;
    transition: border-color .15s;
    font-family: inherit;
}
.catalogue-filters__select:focus { outline: none; border-color: #444; color: var(--text); }

.catalogue-results {
    font-size: .8rem;
    color: var(--text-dim);
    margin-bottom: 1.25rem;
}

/* ================================================================
   VEHICLE GRID — annonces style StalkServices (trait pour trait)
   ================================================================ */
.page-wrap--catalogue {
    max-width: 1800px;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
    gap: 1.1rem;
}

.vehicle-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #141414;
    border: none;
    aspect-ratio: 16 / 9;
    min-height: 250px;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
    font-family: "Rajdhani", "Segoe UI", system-ui, sans-serif;
}
.vehicle-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(0,0,0,.7);
}
.vehicle-card.is-deep-linked {
    outline: 2px solid rgba(211, 47, 47, .85);
    box-shadow: 0 0 0 4px rgba(211, 47, 47, .25), 0 16px 36px rgba(0,0,0,.7);
}

.vehicle-card__img-wrap {
    position: absolute;
    inset: 0;
    background: #141414;
}
.vehicle-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.vehicle-card__no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    color: rgba(255,255,255,.1);
    background: #141414;
}

.vehicle-card__shade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.25) 32%, transparent 52%),
        linear-gradient(to bottom, rgba(0,0,0,.35) 0%, transparent 22%);
}

/* Prix + pastille fraîcheur + circulation */
.vehicle-card__price-row {
    position: absolute;
    top: .55rem;
    left: .55rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    max-width: calc(100% - 5.5rem);
    pointer-events: none;
    user-select: none;
    overflow: visible;
}
.vehicle-card__price-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: .3rem .9rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, .72);
    border: 1px solid rgba(255, 255, 255, .13);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-family: "Rajdhani", "Segoe UI", system-ui, sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: .03em;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .9);
    line-height: 1.15;
    box-sizing: border-box;
    padding-right: calc(.9rem - .03em);
}

/* Pastille : vert <48h · jaune <72h · rouge sinon */
.vehicle-card__maj-dot {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    z-index: 11;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 0 0 2.5px rgba(0,0,0,.7);
    flex-shrink: 0;
}
.vehicle-card__maj-dot--today  { background: #4caf50; }
.vehicle-card__maj-dot--yesterday { background: #66bb6a; }
.vehicle-card__maj-dot--recent { background: #ffd54f; }
.vehicle-card__maj-dot--old    { background: #ef5350; }

.vehicle-card__maj-dot::before {
    content: attr(data-tooltip);
    position: absolute;
    left: 0;
    top: calc(100% + 7px);
    background: rgba(12,12,12,.93);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 5px;
    padding: .3rem .6rem;
    font-family: "Rajdhani", "Segoe UI", system-ui, sans-serif;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .07em;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s ease;
    z-index: 20;
}
.vehicle-card__maj-dot--today::before  { color: #4caf50; }
.vehicle-card__maj-dot--yesterday::before { color: #66bb6a; }
.vehicle-card__maj-dot--recent::before { color: #ffd54f; }
.vehicle-card__maj-dot--old::before    { color: #ef5350; }
.vehicle-card__maj-dot:hover::before { opacity: 1; }

/* Logo garage — coin haut-droit, teinte marque */
.vehicle-card__logo {
    position: absolute;
    top: .55rem;
    right: .55rem;
    z-index: 3;
    width: 4.5rem;
    height: 4.5rem;
    object-fit: contain;
    filter: none;
    pointer-events: none;
    user-select: none;
}

/* Pastille circulation — taille fixe, entre nom et performances */
.vehicle-card__resale {
    position: relative;
    top: auto;
    right: auto;
    z-index: 5;
    box-sizing: border-box;
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    min-height: 2rem;
    max-width: 2rem;
    max-height: 2rem;
    flex: 0 0 2rem;
    align-self: center;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(18, 18, 20, .94);
    border: 1.5px solid rgba(255, 255, 255, .38);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .5);
    pointer-events: auto;
    cursor: pointer;
    overflow: hidden;
    transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.vehicle-card__resale:hover {
    transform: scale(1.08);
    border-color: rgba(255, 255, 255, .7);
    background: rgba(28, 28, 32, .96);
}
.vehicle-card__resale:focus-visible {
    outline: 2px solid rgba(255, 255, 255, .65);
    outline-offset: 2px;
}
.vehicle-card__resale .stalk-resale-icon {
    width: 0.9rem;
    height: 0.9rem;
    min-width: 0.9rem;
    min-height: 0.9rem;
    flex: 0 0 auto;
    display: block;
    background: rgba(255, 255, 255, .88);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    pointer-events: none;
}
.vehicle-card--resale .vehicle-card__logo {
    right: .55rem;
}
.vehicle-card__sold-tag {
    display: inline-flex;
    align-items: center;
    padding: .3rem .7rem;
    border-radius: 10px;
    background: rgba(183, 28, 28, .88);
    border: 1px solid rgba(255, 255, 255, .14);
    font-family: "Rajdhani", "Segoe UI", system-ui, sans-serif;
    font-size: .95rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #fff;
}
.vehicle-card--sold {
    opacity: .9;
}
.vehicle-card--sold .vehicle-card__img {
    filter: grayscale(.4) brightness(.82);
}

.catalogue-filters__check {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .35rem .7rem;
    border-radius: 8px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.1);
    color: rgba(255,255,255,.82);
    font-family: "Rajdhani", "Segoe UI", system-ui, sans-serif;
    font-size: .92rem;
    font-weight: 700;
    letter-spacing: .03em;
    cursor: pointer;
    user-select: none;
}
.catalogue-filters__check input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--stalk-red, #d32f2f);
    cursor: pointer;
}

/* Modal historique des ventes */
body.sales-hist-open { overflow: hidden; }
.sales-hist-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}
.sales-hist-modal[hidden] { display: none !important; }
.sales-hist-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.72);
    backdrop-filter: blur(4px);
}
.sales-hist-modal__panel {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    max-height: min(78vh, 640px);
    display: flex;
    flex-direction: column;
    background: #121212;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0,0,0,.65);
    overflow: hidden;
}
.sales-hist-modal__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem .85rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.sales-hist-modal__title {
    margin: 0;
    font-family: "Bebas Neue", "Rajdhani", sans-serif;
    font-size: 1.55rem;
    letter-spacing: .04em;
    color: #fff;
}
.sales-hist-modal__plate {
    margin: .15rem 0 0;
    font-family: "Rajdhani", sans-serif;
    font-weight: 700;
    color: rgba(255,255,255,.55);
    letter-spacing: .06em;
}
.sales-hist-modal__close {
    width: 2.2rem;
    height: 2.2rem;
    border: none;
    border-radius: 8px;
    background: rgba(255,255,255,.06);
    color: #fff;
    cursor: pointer;
}
.sales-hist-modal__close:hover { background: rgba(255,255,255,.12); }
.sales-hist-modal__body {
    padding: .75rem;
    overflow: auto;
}
.sales-hist-modal__empty {
    margin: 1.2rem .5rem;
    text-align: center;
    color: rgba(255,255,255,.5);
    font-family: "Rajdhani", sans-serif;
}
.sales-hist-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .45rem;
}
.sales-hist-list__link {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .7rem .8rem;
    border-radius: 10px;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.08);
    text-decoration: none;
    color: inherit;
    transition: background .15s, border-color .15s;
}
.sales-hist-list__link:hover {
    background: rgba(255,255,255,.07);
    border-color: color-mix(in srgb, var(--gc, #888) 45%, transparent);
}
.sales-hist-list__dot {
    width: .7rem;
    height: .7rem;
    border-radius: 50%;
    background: var(--gc, #888);
    box-shadow: 0 0 10px color-mix(in srgb, var(--gc, #888) 55%, transparent);
    flex-shrink: 0;
}
.sales-hist-list__main {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    min-width: 0;
    flex: 1;
}
.sales-hist-list__garage {
    font-family: "Rajdhani", sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    color: #fff;
}
.sales-hist-list__meta {
    font-size: .82rem;
    color: rgba(255,255,255,.5);
}
.sales-hist-list__price {
    font-family: "Rajdhani", sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    color: #fff;
    flex-shrink: 0;
}
.sales-hist-list__chev {
    color: rgba(255,255,255,.35);
    font-size: .8rem;
}

/* Bas de carte : titre + grille upgrades */
.vehicle-card__bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .38rem .55rem .48rem .75rem;
    pointer-events: none;
}
.vehicle-card__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .06rem;
    flex: 1 1 0;
    min-width: 0;
    pointer-events: auto;
}
.vehicle-card__title-line {
    min-width: 0;
    max-width: 100%;
}
.vehicle-card__name {
    display: block;
    margin: 0;
    font-family: "Rajdhani", "Segoe UI", system-ui, sans-serif;
    font-size: clamp(1.15rem, 2.8vw, 1.45rem);
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
    letter-spacing: .02em;
    text-transform: none;
    text-shadow: 0 1px 2px rgba(0,0,0,.9), 0 0 1px rgba(0,0,0,1);
    outline: none;
    border-radius: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}
.vehicle-card__name[data-editable-name] { cursor: text; }
.vehicle-card__name[data-editable-name]:hover { background: rgba(255,255,255,.06); }
.vehicle-card__name.is-editing {
    white-space: normal;
    background: rgba(0,0,0,.7);
    border: 1px solid rgba(255,255,255,.25);
    padding: .12rem .3rem;
}
.vehicle-card__plate-tag {
    display: block;
    opacity: .55;
    font-family: "Rajdhani", "Segoe UI", system-ui, sans-serif;
    font-size: .82em;
    font-weight: 600;
    letter-spacing: .04em;
    color: #fff;
    line-height: 1.15;
    margin-top: .08rem;
}

/* Grille perfs — layout StalkServices (moteur tall + radio/gps) */
.vehicle-card__upg-strip {
    flex-shrink: 0;
    padding: .2rem 0 .1rem .2rem;
    pointer-events: none;
}
.vehicle-card__upgrades {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .18rem;
}
.vehicle-card__upg--arm   { grid-column: 1; grid-row: 1; }
.vehicle-card__upg--eng   { grid-column: 1; grid-row: 2; }
.vehicle-card__upg--tr    { grid-column: 2; grid-row: 1; }
.vehicle-card__upg--radio { grid-column: 3; grid-row: 1; }
.vehicle-card__upg--gps   { grid-column: 4; grid-row: 1; }
.vehicle-card__upg--sus   { grid-column: 2; grid-row: 2; }
.vehicle-card__upg--br    { grid-column: 3; grid-row: 2; }
.vehicle-card__upg--turbo { grid-column: 4; grid-row: 2; }

.vehicle-card__upg {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: .15rem;
    padding: .22rem .3rem;
    background: #171717;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 5px;
    min-width: 0;
}
.vehicle-card__upg-label {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: rgba(255,255,255,.35);
    text-transform: uppercase;
    white-space: nowrap;
}
.vehicle-card__upg-val {
    font-size: 1.2rem;
    font-weight: 700;
    color: rgba(255,255,255,.3);
    line-height: 1;
}
.vehicle-card__upg-val.is-on {
    color: rgba(255,255,255,.9);
}
.vehicle-card__upg-val i {
    font-size: .95rem;
}
.vehicle-card__upg-val.is-on i {
    color: #69f0ae;
}
.vehicle-card__upg-turbo {
    font-size: .85rem;
    color: rgba(255,255,255,.25);
}
.vehicle-card__upg-turbo.is-on {
    color: #69f0af;
}

@media (max-width: 1400px) {
    .vehicle-grid { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
    .vehicle-card__price-badge { font-size: 1.35rem; }
}
@media (max-width: 900px) {
    .vehicle-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
    .vehicle-card { min-height: 210px; }
    .vehicle-card__logo { width: 3.4rem; height: 3.4rem; }
    .vehicle-card__price-badge { font-size: 1.15rem; padding: .22rem .6rem; }
    .vehicle-card__name { font-size: 1.1rem; }
}
@media (max-width: 600px) {
    .vehicle-grid { grid-template-columns: 1fr; }
    .vehicle-card { min-height: 210px; }
    .vehicle-card__bottom { flex-wrap: wrap; }
    .vehicle-card__copy { max-width: 100%; }
}

/* ================================================================
   CATALOGUE EMPTY STATE
   ================================================================ */
.catalogue-empty {
    text-align: center;
    padding: 5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.catalogue-empty p { color: var(--text-muted); font-size: .95rem; }

@media (max-width: 600px) {
    .catalogue-filters { gap: .5rem; }
}

/* ================================================================
   IMPORT MODAL
   ================================================================ */
body.import-open {
    overflow: hidden;
}
body.import-open .header,
body.import-open main {
    filter: blur(10px);
    transition: filter .2s ease;
}

.import-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}
.import-overlay[hidden] { display: none !important; }

.import-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.import-panel {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    background: #161616;
    border: 1px solid #2a2a2a;
    border-radius: 14px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .65);
    display: flex;
    flex-direction: column;
    max-height: min(90vh, 720px);
    overflow: hidden;
}

.import-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid #242424;
}
.import-panel__title {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: .95rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.import-panel__title i { color: var(--red); }
.import-panel__close {
    width: 34px;
    height: 34px;
    border: 1px solid #333;
    border-radius: 8px;
    background: #1c1c1c;
    color: var(--text-muted);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background .15s, color .15s;
}
.import-panel__close:hover { background: #252525; color: #fff; }

.import-panel__body {
    padding: 1.1rem 1.15rem 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.import-field { display: flex; flex-direction: column; gap: .4rem; }
.import-field__label {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.import-type {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
}
.import-type__opt {
    position: relative;
    cursor: pointer;
}
.import-type__opt input { position: absolute; opacity: 0; pointer-events: none; }
.import-type__opt span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border-radius: 8px;
    border: 1px solid #2e2e2e;
    background: #1a1a1a;
    color: var(--text-muted);
    font-size: .85rem;
    font-weight: 700;
    transition: border-color .15s, background .15s, color .15s;
}
.import-type__opt input:checked + span {
    border-color: var(--red);
    background: rgba(229, 9, 20, .14);
    color: #fff;
}
.import-type__opt:hover span { border-color: #444; color: #ddd; }

.import-select {
    width: 100%;
    appearance: none;
    background: #1a1a1a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23888' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 1rem center;
    border: 1px solid #2e2e2e;
    border-radius: 8px;
    color: #fff;
    font: inherit;
    font-size: .9rem;
    font-weight: 600;
    padding: .7rem 2.4rem .7rem 1rem;
    outline: none;
}
.import-select:focus { border-color: #555; }

.import-drop {
    border: 1.5px dashed #3a3a3a;
    border-radius: 12px;
    background: #121212;
    padding: 1.6rem 1rem 1.2rem;
    text-align: center;
    transition: border-color .15s, background .15s;
}
.import-drop.is-drag {
    border-color: var(--red);
    background: rgba(229, 9, 20, .06);
}
.import-drop__icon {
    font-size: 1.8rem;
    color: #e6b422;
    margin-bottom: .55rem;
}
.import-drop__title {
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: .25rem;
}
.import-drop__hint {
    font-size: .78rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
}
.import-drop__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    justify-content: center;
}
.import-drop__btn {
    border: 1px solid #333;
    background: #1c1c1c;
    color: #ddd;
    border-radius: 7px;
    padding: .45rem .85rem;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.import-drop__btn:hover:not(:disabled) {
    background: #252525;
    border-color: #555;
}
.import-drop__btn:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.import-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
}
.import-stat {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    padding: .7rem .5rem;
    text-align: center;
}
.import-stat__label {
    display: block;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: .25rem;
}
.import-stat__value {
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1;
}
.import-stat--new .import-stat__value { color: #81c784; }
.import-stat--dup .import-stat__value { color: #ffb74d; }

.import-msg {
    font-size: .82rem;
    color: var(--text-muted);
    padding: .55rem .75rem;
    border-radius: 8px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
}
.import-msg--ok { border-color: #2e7d32; color: #a5d6a7; }
.import-msg--warn { border-color: #ef6c00; color: #ffcc80; }
.import-msg--error { border-color: var(--red); color: #ff8a80; }

.import-panel__foot {
    display: flex;
    gap: .55rem;
    padding: .9rem 1.15rem 1.1rem;
    border-top: 1px solid #242424;
}
.import-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    border-radius: 8px;
    border: 1px solid transparent;
    padding: .65rem 1.15rem;
    font: inherit;
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, opacity .15s;
}
.import-btn--primary {
    background: #8b1218;
    color: #fff;
}
.import-btn--primary:hover:not(:disabled) { background: var(--red); }
.import-btn--primary:disabled { opacity: .4; cursor: not-allowed; }
.import-btn--ghost {
    background: #222;
    border-color: #333;
    color: #ddd;
}
.import-btn--ghost:hover { background: #2a2a2a; }

@media (max-width: 480px) {
    .import-stats { grid-template-columns: 1fr; }
    .import-panel__foot { flex-direction: column; }
    .import-btn { width: 100%; }
}

/* ================================================================
   FICHE VÉHICULE — détail StalkServices (trait pour trait)
   ================================================================ */
body.vhc-detail-open { overflow: hidden; }
body.vhc-detail-open .header,
body.vhc-detail-open main {
    filter: blur(8px);
}

.vhc-overlay {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}
.vhc-overlay[hidden] { display: none !important; }

.vhc-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.62);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.vhc-sheet {
    position: relative;
    z-index: 1;
    width: min(1120px, 100%);
    max-height: min(94vh, 920px);
    overflow: auto;
    background: #0e0e0e;
    border: 1px solid #252525;
    border-radius: 10px;
    box-shadow: 0 30px 90px rgba(0,0,0,.75);
    padding: 1.1rem 1.15rem .95rem;
}

.vhc-sheet__top {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.35rem;
    align-items: start;
}

.vhc-sheet__media {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #0a0a0a;
    min-height: 360px;
    aspect-ratio: 4 / 3;
}
.vhc-sheet__img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    display: block;
}
.vhc-sheet__no-img {
    min-height: 360px;
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 4rem;
    color: rgba(255,255,255,.12);
}
.vhc-sheet__expand {
    position: absolute;
    right: .55rem;
    bottom: .55rem;
    width: 32px;
    height: 32px;
    border-radius: 5px;
    border: 1px solid rgba(255,255,255,.15);
    background: rgba(0,0,0,.55);
    color: #ddd;
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: .75rem;
}
.vhc-sheet__expand:hover { background: rgba(0,0,0,.8); color: #fff; }

.vhc-sheet__info { min-width: 0; }
.vhc-sheet__info-head {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .75rem;
    margin-bottom: .35rem;
}
.vhc-sheet__garage-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
    border-radius: 3px;
    flex-shrink: 0;
}
.vhc-sheet__garage {
    font-size: .92rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vhc-sheet__row-value--garage {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    justify-content: flex-end;
    min-width: 0;
}
.vhc-sheet__x {
    width: 30px;
    height: 30px;
    border-radius: 5px;
    border: 1px solid #3a3a3a;
    background: transparent;
    color: #ccc;
    cursor: pointer;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.vhc-sheet__x:hover { color: #fff; border-color: #666; }

.vhc-sheet__head-actions {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-shrink: 0;
}
.vhc-sheet__pepite {
    min-width: 30px;
    height: 30px;
    padding: 0 .45rem;
    border-radius: 5px;
    border: 1px solid #3a3a3a;
    background: transparent;
    color: #888;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .28rem;
    flex-shrink: 0;
    transition: color .15s, border-color .15s, background .15s;
}
.vhc-sheet__pepite:hover {
    color: #f5c542;
    border-color: #666;
}
.vhc-sheet__pepite.is-on {
    color: #f5c542;
    border-color: #c9a227;
    background: rgba(245, 197, 66, .12);
}
.vhc-sheet__pepite:disabled {
    opacity: .55;
    cursor: not-allowed;
}
.vhc-sheet__pepite-count {
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .02em;
    color: inherit;
}
.pepites-sub {
    margin: -.35rem 0 1.1rem;
    color: var(--text-dim, #9a9a9a);
    font-size: .92rem;
}
.nouv-card--detail {
    cursor: pointer;
}

.vhc-sheet__model {
    margin: 0 0 .7rem;
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--red);
    outline: none;
    border-radius: 4px;
    max-width: 100%;
    line-height: 1.1;
    text-align: center;
}
.vhc-sheet__model[data-editable-name] {
    cursor: text;
    display: block;
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: .1rem .35rem;
}
.vhc-sheet__model[data-editable-name]:hover {
    background: rgba(255, 255, 255, .06);
}
.vhc-sheet__model.is-editing {
    background: rgba(0, 0, 0, .55);
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff;
}

.vhc-sheet__plate-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1.1rem;
}
.sa-plate {
    width: 148px;
    background: linear-gradient(180deg, #f7f7f7 0%, #dedede 100%);
    border-radius: 5px;
    border: 2px solid #2a2a2a;
    padding: .16rem .35rem .22rem;
    text-align: center;
}
.sa-plate__state {
    display: block;
    font-size: .48rem;
    font-weight: 800;
    letter-spacing: .18em;
    color: #1b3f9c;
}
.sa-plate__num {
    display: block;
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: .1em;
    color: #111;
    line-height: 1.05;
    text-transform: uppercase;
    font-family: "Rajdhani", "Segoe UI", system-ui, sans-serif;
}
.vhc-sheet__no-plate {
    margin: 0;
    font-size: .95rem;
    font-weight: 800;
    letter-spacing: .04em;
    color: rgba(255, 255, 255, .45);
    text-transform: uppercase;
    text-align: center;
}

.vhc-sheet__rows {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    margin-bottom: 1.15rem;
}
.vhc-sheet__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}
.vhc-sheet__row-label {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #777;
}
.vhc-sheet__row-value {
    font-size: 1.2rem;
    font-weight: 900;
    color: #fff;
    text-align: right;
}
.vhc-sheet__row-value--buy { color: #d4a574; }
.vhc-sheet__row-value--gain { color: #2ecc71; font-weight: 800; }
.vhc-sheet__row-value--gain.is-loss { color: #e74c3c; }
.vhc-sheet__row-value--owner {
    font-size: .95rem;
    font-weight: 700;
    color: #bdbdbd;
}

.vhc-sheet__upgrades-title {
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin: 0 0 .55rem;
    color: #ddd;
}
.vhc-sheet__upgrades-title i {
    color: var(--red);
    margin-right: .35rem;
}

.vhc-upgrades {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-areas:
        "arm eng tr sus"
        "radio gps turbo br";
    gap: .4rem;
}
.vhc-upgrade {
    background: #161616;
    border: 1px solid #2c2c2c;
    border-radius: 6px;
    padding: .55rem .2rem;
    text-align: center;
}
.vhc-upgrade--arm   { grid-area: arm; }
.vhc-upgrade--eng   { grid-area: eng; }
.vhc-upgrade--tr    { grid-area: tr; }
.vhc-upgrade--sus   { grid-area: sus; }
.vhc-upgrade--br    { grid-area: br; }
.vhc-upgrade--radio { grid-area: radio; }
.vhc-upgrade--gps   { grid-area: gps; }
.vhc-upgrade--turbo { grid-area: turbo; }
.vhc-upgrade__label {
    display: block;
    font-size: .52rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #666;
    margin-bottom: .25rem;
}
.vhc-upgrade__value {
    display: block;
    font-size: 1.2rem;
    font-weight: 900;
    color: #888;
    line-height: 1;
}
.vhc-upgrade.is-high .vhc-upgrade__value { color: var(--red); }
.vhc-upgrade.is-mid .vhc-upgrade__value { color: #e8913a; }
.vhc-upgrade.is-low .vhc-upgrade__value { color: #ddd; }
.vhc-upgrade.is-zero .vhc-upgrade__value { color: #666; }
.vhc-upgrade.is-ok .vhc-upgrade__value { color: #2ecc71; }
.vhc-upgrade.is-off .vhc-upgrade__value { color: #666; }

.vhc-sheet__same {
    margin-top: 1.15rem;
    padding-top: 1rem;
    border-top: 1px solid #222;
}
.vhc-sheet__same-head {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: .75rem;
}
.vhc-sheet__same-title {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin: 0;
    color: #fff;
}
.vhc-sheet__same-title i { color: var(--red); }
.vhc-sheet__same-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.45rem;
    height: 1.3rem;
    padding: 0 .4rem;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
}

.vhc-same-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: .65rem;
}
.vhc-same-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .55rem;
    text-align: left;
    background: #151515;
    border: 1px solid #262626;
    border-left: 3px solid var(--gc, var(--red));
    border-radius: 8px;
    padding: .75rem .85rem;
    padding-right: 3.6rem;
    color: inherit;
    font: inherit;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.vhc-same-card:hover {
    background: #1a1a1a;
    border-color: #333;
    border-left-color: var(--gc, var(--red));
}
.vhc-same-card__logo {
    position: absolute;
    top: .55rem;
    right: .55rem;
    width: 2.6rem;
    height: 2.6rem;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    filter: none;
}
.vhc-same-card__garage-pill {
    position: absolute;
    top: .55rem;
    right: .55rem;
    max-width: 42%;
    padding: .15rem .45rem;
    border-radius: 5px;
    background: rgba(0, 0, 0, .72);
    border: 1px solid rgba(255, 255, 255, .1);
    color: var(--gc, #fff);
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}
.vhc-same-card__plate {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: .03em;
    color: #fff;
    text-transform: uppercase;
}
.vhc-same-card__plate-sub {
    margin: -.15rem 0 0;
    font-size: .72rem;
    color: #777;
    letter-spacing: .03em;
}
.vhc-same-card__upgrades {
    margin-top: .1rem;
}
.vhc-same-card .vhc-upgrades {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-areas:
        "arm eng tr sus"
        "radio gps turbo br";
    gap: .22rem;
}
.vhc-same-card .vhc-upgrade { padding: .28rem .08rem; }
.vhc-same-card .vhc-upgrade--arm   { grid-area: arm; }
.vhc-same-card .vhc-upgrade--eng   { grid-area: eng; }
.vhc-same-card .vhc-upgrade--tr    { grid-area: tr; }
.vhc-same-card .vhc-upgrade--sus   { grid-area: sus; }
.vhc-same-card .vhc-upgrade--br    { grid-area: br; }
.vhc-same-card .vhc-upgrade--radio { grid-area: radio; }
.vhc-same-card .vhc-upgrade--gps   { grid-area: gps; }
.vhc-same-card .vhc-upgrade--turbo { grid-area: turbo; }
.vhc-same-card .vhc-upgrade__label {
    font-size: .42rem;
    margin-bottom: .1rem;
}
.vhc-same-card .vhc-upgrade__value {
    font-size: .78rem;
}
.vhc-same-card .vhc-upgrade__value i {
    font-size: .7rem;
}
.vhc-same-card__prices {
    margin: 0;
    font-size: .82rem;
}
.vhc-same-card__prices strong {
    color: #fff;
    font-size: .95rem;
    font-weight: 900;
}
.vhc-same-card__buy { color: #d4a574; font-weight: 700; }
.vhc-same-card__owner {
    margin: 0;
    font-size: .72rem;
    color: #777;
}

.vhc-sheet__foot {
    display: flex;
    justify-content: flex-end;
    margin-top: .95rem;
    padding-top: .8rem;
    border-top: 1px solid #222;
}
.vhc-sheet__close-btn {
    border: 1px solid #3a3a3a;
    background: #161616;
    color: #eee;
    border-radius: 6px;
    padding: .5rem 1.15rem;
    font: inherit;
    font-size: .85rem;
    font-weight: 700;
    cursor: pointer;
}
.vhc-sheet__close-btn:hover { background: #222; color: #fff; }

@media (max-width: 900px) {
    .vhc-sheet__top { grid-template-columns: 1fr; }
    .vhc-sheet__media { aspect-ratio: 16 / 10; min-height: 220px; }
    .vhc-sheet__img,
    .vhc-sheet__no-img { min-height: 220px; }
    .sa-plate { width: 132px; }
    .sa-plate__num { font-size: 1.05rem; }
    .vhc-upgrades {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-template-areas:
            "arm eng tr sus"
            "radio gps turbo br";
    }
}

/* ================================================================
   CATALOGUE — fond garage (Legendary, style Tunnershop)
   ================================================================ */
.catalogue-page {
    position: relative;
    background: #0a0a0a;
    isolation: isolate;
}
.catalogue-page__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 0;
    pointer-events: none;
    height: min(52vh, 520px);
    overflow: hidden;
}
.catalogue-page__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% 40%;
    filter: brightness(.72) saturate(1.08);
}
.catalogue-page__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10,10,10,.22) 0%,
        rgba(10,10,10,.38) 40%,
        rgba(10,10,10,.78) 78%,
        #0a0a0a 100%
    );
    pointer-events: none;
}
.catalogue-page .catalogue-hero,
.catalogue-page .page-wrap--catalogue {
    position: relative;
    z-index: 1;
}
.catalogue-hero--bg {
    background: transparent;
}
.catalogue-hero--bg::after {
    display: none;
}
.catalogue-page--legendary .catalogue-hero__title,
.catalogue-page--pdm .catalogue-hero__title,
.catalogue-page--mosley .catalogue-hero__title,
.catalogue-page--luxury .catalogue-hero__title,
.catalogue-page--benefactor .catalogue-hero__title {
    text-shadow: 0 2px 18px rgba(0,0,0,.65);
}
.catalogue-page--pdm .catalogue-page__photo {
    object-position: 50% 32%;
    filter: brightness(.68) saturate(1.05);
}
.catalogue-page--mosley .catalogue-page__photo {
    object-position: 45% 40%;
    filter: brightness(.72) saturate(1.05);
}
.catalogue-page--luxury .catalogue-page__photo {
    object-position: 55% 38%;
    filter: brightness(.7) saturate(1.08);
}
.catalogue-page--benefactor .catalogue-page__bg {
    height: min(34vh, 340px);
}
.catalogue-page--benefactor .catalogue-page__photo {
    object-fit: cover;
    object-position: 50% 20%;
    filter: brightness(.7) saturate(1.08);
}

/* ================================================================
   TUNNERSHOP — bannières transformations (style backup adapté)
   ================================================================ */
.tuner-page {
    position: relative;
    background: #0a0a0a;
    isolation: isolate;
}
/* Image jusqu’à ~3e annonce, puis fondu noir */
.tuner-page__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 0;
    pointer-events: none;
    height: calc(
        10.5rem
        + 3 * (min(1100px, calc(100vw - 3rem)) * 270 / 1024 + 3.35rem)
        + 1.5rem
    );
    overflow: hidden;
}
.tuner-page__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 18%;
    filter: brightness(.68) saturate(1.05);
}
.tuner-page__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10,10,10,.18) 0%,
        rgba(10,10,10,.32) 35%,
        rgba(10,10,10,.58) 68%,
        rgba(10,10,10,.9) 88%,
        #0a0a0a 100%
    );
    pointer-events: none;
}
.tuner-hero {
    position: relative;
    z-index: 1;
    min-height: 0;
    padding: 1.75rem 0 1.25rem;
    overflow: visible;
    border-bottom: none;
    background: transparent;
}
.tuner-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.page-wrap--tuner {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    background: transparent;
}
.tuner-hero__brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.tuner-hero__logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,.45));
}
.tuner-hero__title {
    font-size: clamp(1.55rem, 3vw, 2.1rem);
    font-weight: 900;
    letter-spacing: .04em;
    color: #fff;
    line-height: 1.1;
}
.tuner-hero__sub {
    margin-top: .3rem;
    color: #c9a36a;
    font-size: .92rem;
}

.tuner-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem 1rem;
    margin: 1.25rem 0 .85rem;
}
.tuner-toolbar__search {
    flex: 1 1 220px;
    min-width: 180px;
}
.tuner-toolbar__sort {
    margin-left: auto;
}

.tuner-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}
.tuner-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border: 1px solid #2a2a2a;
    background: #151515;
    color: var(--text-muted);
    border-radius: var(--r-pill);
    padding: .38rem .75rem;
    font: inherit;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.tuner-chip i { font-size: .78em; opacity: .85; }
.tuner-chip__num {
    font-size: .72em;
    opacity: .65;
    margin-left: .1rem;
}
.tuner-chip:hover {
    border-color: #3a3a3a;
    color: #ddd;
}
.tuner-chip.is-active {
    background: rgba(245,166,35,.16);
    border-color: rgba(245,166,35,.4);
    color: #f5a623;
}
.tuner-chip--drift.is-active {
    background: rgba(255,165,0,.16);
    border-color: rgba(255,165,0,.45);
    color: #ffd54f;
}
.tuner-chip--widebody.is-active {
    background: rgba(100,180,255,.12);
    border-color: rgba(100,180,255,.4);
    color: #90caf9;
}

.tuner-grid {
    display: flex;
    flex-direction: column;
    gap: .85rem;
    padding-bottom: 2rem;
}

.tuner-card {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #2a1a08;
    background: #120c06;
    transition: border-color .15s, transform .15s, box-shadow .15s;
}
.tuner-card:hover {
    border-color: rgba(245,166,35,.45);
    box-shadow: 0 8px 28px rgba(0,0,0,.35);
    transform: translateY(-1px);
}
.tuner-card__media {
    width: 100%;
    aspect-ratio: 1024 / 270;
    background: #0a0806;
}
.tuner-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.tuner-card__fallback {
    width: 100%;
    height: 100%;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .35rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #1a120a, #0d0800);
}
.tuner-card__fallback-name {
    font-family: Rajdhani, system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: .04em;
    color: #fff;
}
.tuner-card__fallback-price {
    font-family: Rajdhani, system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #f5a623;
}
.tuner-card__fallback-origin {
    font-size: .85rem;
    color: #e53935;
    font-style: italic;
    text-transform: uppercase;
}
.tuner-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .4rem .75rem;
    padding: .45rem .75rem .55rem;
    background: #0e0b08;
    border-top: 1px solid #1f160c;
}
.tuner-card__badge {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .18rem .5rem;
    border-radius: 999px;
}
.tuner-card__badge--drift {
    color: #ffd54f;
    background: rgba(255,165,0,.14);
}
.tuner-card__badge--widebody {
    color: #90caf9;
    background: rgba(100,180,255,.12);
}
.tuner-card__split {
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.35;
}

@media (max-width: 700px) {
    .tuner-hero__logo { width: 56px; height: 56px; }
    .tuner-toolbar__sort { margin-left: 0; width: 100%; }
    .tuner-card__meta { flex-direction: column; align-items: flex-start; }
}

/* ================================================================
   LOGS — historique actions annulables
   ================================================================ */
.page-wrap--logs { max-width: 1200px; }
.logs-page__head { margin: 1.5rem 0 1.25rem; }
.logs-page__title {
    margin-top: .65rem;
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    font-weight: 900;
    letter-spacing: .06em;
    color: #fff;
}
.logs-page__sub {
    margin-top: .35rem;
    color: var(--text-muted);
    font-size: .92rem;
}
.logs-table-wrap {
    border: 1px solid #222;
    border-radius: 10px;
    background: #121212;
    overflow: auto;
    margin-bottom: 3rem;
}
.logs-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 780px;
}
.logs-table th,
.logs-table td {
    padding: .75rem .9rem;
    text-align: left;
    border-bottom: 1px solid #1e1e1e;
    vertical-align: middle;
    font-size: .88rem;
}
.logs-table th {
    color: #888;
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: #0e0e0e;
    position: sticky;
    top: 0;
    z-index: 1;
}
.logs-table tbody tr:hover { background: rgba(255,255,255,.025); }
.logs-row--undone {
    opacity: .45;
}
.logs-row--undone .logs-action { text-decoration: line-through; }
.logs-cell--annonce { font-weight: 700; color: #eee; }
.logs-cell--user { font-weight: 700; color: #c4b5fd; white-space: nowrap; }
.logs-cell--detail { color: #9a9a9a; max-width: 280px; }
.logs-date--fresh { color: #81c784; font-weight: 700; }
.logs-date--stale { color: #888; }
.logs-action {
    display: inline-block;
    padding: .18rem .5rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.logs-action--import {
    color: #f5a623;
    background: rgba(245,166,35,.14);
}
.logs-action--rename {
    color: #90caf9;
    background: rgba(100,180,255,.12);
}
.logs-cell--undo,
.logs-cell--dl { width: 52px; text-align: center; }
.logs-undo-btn,
.logs-dl-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #333;
    background: #1a1a1a;
    color: #ccc;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, border-color .15s, color .15s;
    text-decoration: none;
}
.logs-undo-btn:hover {
    background: rgba(229,9,20,.16);
    border-color: rgba(229,9,20,.45);
    color: #ff6b6b;
}
.logs-dl-btn:hover {
    background: rgba(245,166,35,.16);
    border-color: rgba(245,166,35,.45);
    color: #f5a623;
}
.logs-undo-btn:disabled { opacity: .5; cursor: wait; }
.logs-undone-mark { color: #555; }
.logs-table__empty-row td {
    text-align: center;
    color: #777;
    padding: 2rem 1rem;
}

/* ================================================================
   GESTION DES ACCÈS — modal accueil
   ================================================================ */
body.access-open { overflow: hidden; }
.access-overlay {
    position: fixed;
    inset: 0;
    z-index: 1250;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}
.access-overlay[hidden] { display: none !important; }
.access-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.72);
    backdrop-filter: blur(4px);
}
.access-panel {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    max-height: min(86vh, 760px);
    display: flex;
    flex-direction: column;
    background: #121212;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0,0,0,.65);
    overflow: hidden;
}
.access-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.access-panel__title {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-family: "Bebas Neue", "Rajdhani", sans-serif;
    font-size: 1.55rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #fff;
}
.access-panel__title i { color: var(--stalk-red, #d32f2f); font-size: 1rem; }
.access-panel__close {
    width: 2.2rem;
    height: 2.2rem;
    border: none;
    border-radius: 8px;
    background: rgba(255,255,255,.06);
    color: #fff;
    cursor: pointer;
}
.access-panel__close:hover { background: rgba(255,255,255,.12); }
.access-panel__body {
    padding: 1rem 1.15rem 1.2rem;
    overflow: auto;
}
.access-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    background: #161616;
}
.access-table {
    width: 100%;
    border-collapse: collapse;
    font-family: "Rajdhani", "Segoe UI", system-ui, sans-serif;
}
.access-table th,
.access-table td {
    padding: .75rem .9rem;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,.06);
    vertical-align: middle;
}
.access-table th {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.45);
    background: rgba(0,0,0,.25);
}
.access-table td { color: rgba(255,255,255,.82); font-size: .95rem; font-weight: 600; }
.access-table tr:last-child td { border-bottom: none; }
.access-table__empty {
    text-align: center !important;
    color: rgba(255,255,255,.45) !important;
    padding: 1.5rem !important;
}
.access-user {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.access-user i { color: rgba(255,255,255,.4); font-size: .85rem; }
.access-you {
    display: inline-flex;
    align-items: center;
    padding: .1rem .4rem;
    border-radius: 4px;
    background: rgba(211,47,47,.2);
    border: 1px solid rgba(211,47,47,.45);
    color: #ff6b6b;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .06em;
}
.access-perm {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    cursor: pointer;
    user-select: none;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-size: .78rem;
    color: rgba(255,255,255,.75);
}
.access-perm--locked {
    cursor: default;
    opacity: .85;
}
.access-perm__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
.access-perm__box {
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 4px;
    border: 1.5px solid rgba(255,255,255,.35);
    background: #1a1a1a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color .15s, background .15s;
}
.access-perm__box::after {
    content: '';
    width: .45rem;
    height: .7rem;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    margin-top: -2px;
    transition: transform .12s ease;
}
.access-perm__input:checked + .access-perm__box {
    background: var(--stalk-red, #d32f2f);
    border-color: var(--stalk-red, #d32f2f);
}
.access-perm__input:checked + .access-perm__box::after {
    transform: rotate(45deg) scale(1);
}
.access-perm__input:disabled + .access-perm__box {
    opacity: .7;
}
.access-perm__label { white-space: nowrap; }
.access-table__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}
.access-act {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .65rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid #333;
    background: #1f1f1f;
    color: #eee;
}
.access-act--pwd:hover {
    border-color: #555;
    background: #2a2a2a;
}
.access-act--del {
    color: #ff6b6b;
    border-color: rgba(211,47,47,.45);
    background: rgba(211,47,47,.08);
}
.access-act--del:hover {
    background: rgba(211,47,47,.18);
}
.access-create {
    margin-top: 1.15rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,.08);
}
.access-create__title {
    margin: 0 0 .75rem;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .95rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #fff;
}
.access-create__title i { color: var(--stalk-red, #d32f2f); }
.access-create__form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: .65rem;
    align-items: end;
}
.access-field {
    display: flex;
    flex-direction: column;
    gap: .28rem;
    min-width: 0;
}
.access-field__label {
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255,255,255,.45);
}
.access-field input {
    width: 100%;
    padding: .55rem .7rem;
    border-radius: 8px;
    border: 1px solid #333;
    background: #1a1a1a;
    color: #fff;
    font-family: inherit;
    font-size: .95rem;
}
.access-field input:focus {
    outline: none;
    border-color: #555;
}
.access-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: .58rem 1rem;
    border-radius: 8px;
    border: none;
    font-family: inherit;
    font-size: .95rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}
.access-btn--create,
.access-btn--primary {
    background: var(--stalk-red, #d32f2f);
    color: #fff;
}
.access-btn--create:hover,
.access-btn--primary:hover { background: var(--stalk-red-hover, #e53935); }
.access-btn--ghost {
    background: transparent;
    border: 1px solid #333;
    color: #ccc;
}
.access-msg {
    margin: .65rem 0 0;
    font-size: .88rem;
    font-weight: 700;
}
.access-msg--ok { color: #69f0ae; }
.access-msg--error { color: #ff6b6b; }

.access-pwd-overlay {
    position: fixed;
    inset: 0;
    z-index: 1260;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}
.access-pwd-overlay[hidden] { display: none !important; }
.access-pwd-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
}
.access-pwd-panel {
    position: relative;
    z-index: 1;
    width: min(400px, 100%);
    background: #161616;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 18px 40px rgba(0,0,0,.55);
}
.access-pwd-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .75rem;
}
.access-pwd-panel__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
}
.access-pwd-panel__user {
    margin: 0 0 .75rem;
    color: rgba(255,255,255,.55);
    font-weight: 700;
    text-transform: uppercase;
}
.access-pwd-panel__form {
    display: flex;
    flex-direction: column;
    gap: .55rem;
}
.access-pwd-panel__actions {
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
    margin-top: .35rem;
}

@media (max-width: 820px) {
    .access-create__form {
        grid-template-columns: 1fr;
    }
    .access-table__actions { flex-direction: column; align-items: flex-start; }
}

/* ================================================================
   QUIZ IDENTIFICATION DES MODÈLES
   ================================================================ */
body.quiz-open { overflow: hidden; }
.quiz-overlay {
    position: fixed;
    inset: 0;
    z-index: 1250;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}
.quiz-overlay[hidden] { display: none !important; }
.quiz-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.72);
    backdrop-filter: blur(4px);
}
.quiz-panel {
    position: relative;
    z-index: 1;
    width: min(980px, 100%);
    max-height: min(88vh, 820px);
    display: flex;
    flex-direction: column;
    background: #121212;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0,0,0,.65);
    overflow: hidden;
}
.quiz-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.quiz-panel__title {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-family: "Bebas Neue", "Rajdhani", sans-serif;
    font-size: 1.55rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #fff;
}
.quiz-panel__title i { color: #a78bfa; font-size: 1rem; }
.quiz-panel__sub {
    margin: .25rem 0 0;
    color: rgba(255,255,255,.5);
    font-size: .88rem;
    font-weight: 600;
}
.quiz-panel__close {
    width: 2.2rem;
    height: 2.2rem;
    border: none;
    border-radius: 8px;
    background: rgba(255,255,255,.06);
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
}
.quiz-panel__close:hover { background: rgba(255,255,255,.12); }
.quiz-panel__body {
    padding: 1rem 1.15rem 1.2rem;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.quiz-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}
.quiz-empty {
    grid-column: 1 / -1;
    margin: 1.5rem 0;
    text-align: center;
    color: rgba(255,255,255,.5);
    font-weight: 700;
}
.quiz-card {
    display: flex;
    flex-direction: column;
    text-align: left;
    background: #171717;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    font: inherit;
    color: inherit;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.quiz-card:hover {
    border-color: #3a3a3a;
    transform: translateY(-2px);
}
.quiz-card.is-selected {
    border-color: #a78bfa;
    box-shadow: 0 0 0 1px rgba(167,139,250,.45), 0 10px 24px rgba(0,0,0,.4);
}
.quiz-card__media {
    aspect-ratio: 16 / 9;
    background: #0e0e0e;
    overflow: hidden;
}
.quiz-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.quiz-card__no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.15);
    font-size: 2rem;
}
.quiz-card__meta {
    padding: .65rem .75rem .75rem;
}
.quiz-card__hash {
    margin: 0;
    font-family: "Rajdhani", sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: .02em;
}
.quiz-card__count,
.quiz-card__plate {
    margin: .15rem 0 0;
    font-size: .82rem;
    color: rgba(255,255,255,.5);
    font-weight: 600;
}
.quiz-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .65rem;
    align-items: end;
    padding-top: .25rem;
    border-top: 1px solid rgba(255,255,255,.08);
}
.quiz-form__field {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    min-width: 0;
}
.quiz-form__label {
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255,255,255,.45);
}
.quiz-form__field input {
    width: 100%;
    padding: .65rem .8rem;
    border-radius: 8px;
    border: 1px solid #333;
    background: #1a1a1a;
    color: #fff;
    font-family: "Rajdhani", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
}
.quiz-form__field input:focus {
    outline: none;
    border-color: #a78bfa;
}
.quiz-form__field input:disabled {
    opacity: .5;
}
.quiz-form__btn {
    padding: .65rem 1.2rem;
    border: none;
    border-radius: 8px;
    background: #7c3aed;
    color: #fff;
    font-family: "Rajdhani", sans-serif;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}
.quiz-form__btn:hover:not(:disabled) { background: #8b5cf6; }
.quiz-form__btn:disabled { opacity: .45; cursor: not-allowed; }
.quiz-skip-btn {
    display: block;
    width: 100%;
    margin: 0 0 .85rem;
    padding: .55rem 1rem;
    border-radius: 8px;
    border: 1px dashed rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .04);
    color: rgba(255, 255, 255, .78);
    font-family: "Rajdhani", sans-serif;
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .02em;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.quiz-skip-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .45);
    color: #fff;
}
.quiz-skip-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}
.quiz-msg {
    margin: 0;
    font-size: .9rem;
    font-weight: 700;
}
.quiz-msg--ok { color: #69f0ae; }
.quiz-msg--error { color: #ff6b6b; }

@media (max-width: 820px) {
    .quiz-grid { grid-template-columns: 1fr; }
    .quiz-form { grid-template-columns: 1fr; }
}


