/* =========================================================
   Le Conseiller Auto : feuille de style (style « portail »)
   ========================================================= */
:root {
  /* Charte LCA : noir, blanc, rouge */
  --bg: #f4f4f5;
  --surface: #ffffff;
  --surface-2: #f7f7f8;
  --ink: #111113;
  --muted: #5c5c66;
  --line: #e4e4e7;
  --brand: #000000;        /* noir du logo : en-tête, pied de page */
  --brand-2: #141416;
  --brand-ink: #ffffff;
  --primary: #c99a2e;      /* or LCA : boutons, accents, sélection */
  --primary-ink: #111113;  /* texte sur fond or */
  --primary-text: #8a6512; /* or foncé, lisible sur fond clair */
  --gold-grad: linear-gradient(135deg, #f3d27a 0%, #d4a637 48%, #a8741a 100%);
  --primary-soft: #f8f0dc;
  --accent: #d4a637;
  --price: #111113;
  --good: #12805c;
  --good-soft: #dcf3ea;
  --bad: #b42318;
  --warn-bg: #fff4d6;
  --warn-ink: #7a5600;
  --sil: #a1a1aa;          /* silhouettes */
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 2px 8px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.14);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Montserrat", var(--font);
  --font-ar: "Cairo", "Inter", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0b; --surface: #151517; --surface-2: #1c1c1f; --ink: #ededef; --muted: #a1a1aa;
    --line: #2a2a2e; --brand: #000000; --brand-2: #121214; --primary: #d9ae45; --primary-soft: #3a2f12; --accent: #e3bb55; --primary-text: #e8c267;
    --price: #ffffff; --good: #4fd1a1; --good-soft: #12352a; --warn-bg: #3a2f12; --warn-ink: #f2cf74;
    --sil: #52525b; --shadow: none; --shadow-lg: 0 10px 30px rgba(0,0,0,.5);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15.5px/1.55 var(--font); }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- En-tête ---------- */
.site-header { background: var(--brand); color: var(--brand-ink); position: sticky; top: 0; z-index: 20; box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.hdr-top { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo svg { width: 36px; height: 36px; flex-shrink: 0; }
.logo .txt { display: flex; flex-direction: column; line-height: 1.1; }
.logo .txt b { font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; }
.logo .txt span { font-size: .78rem; opacity: .7; }
.logo .txt span[lang="ar"], .lang-switch[lang="ar"] { font-family: var(--font-ar); }
.hdr-search { flex: 1; max-width: 520px; margin-inline-start: auto; position: relative; }
.hdr-search input { width: 100%; padding: 10px 14px 10px 38px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.08); color: #fff; font: inherit; }
[dir="rtl"] .hdr-search input { padding: 10px 38px 10px 14px; }
.hdr-search input::placeholder { color: rgba(255,255,255,.6); }
.hdr-search input:focus { outline: 2px solid var(--primary); background: rgba(255,255,255,.12); }
.hdr-search svg { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; opacity: .7; pointer-events: none; }
.suggest { position: absolute; top: calc(100% + 6px); inset-inline: 0; background: var(--surface); color: var(--ink); border-radius: 10px; box-shadow: var(--shadow-lg); overflow: hidden; z-index: 30; border: 1px solid var(--line); }
.suggest a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; text-decoration: none; border-bottom: 1px solid var(--line); font-size: .93rem; }
.suggest a:last-child { border-bottom: 0; }
.suggest a:hover, .suggest a.on { background: var(--primary-soft); }
.suggest small { color: var(--muted); white-space: nowrap; }
.hdr-actions { display: flex; align-items: center; gap: 8px; }
.lang-switch { padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.25); background: transparent; color: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.lang-switch:hover { background: rgba(255,255,255,.1); }
.burger { display: none; padding: 8px; border-radius: 10px; border: 1px solid rgba(255,255,255,.25); background: transparent; color: inherit; cursor: pointer; }
.burger svg { width: 20px; height: 20px; display: block; }
.hdr-nav { background: var(--brand-2); }
.hdr-nav .wrap { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.hdr-nav .wrap::-webkit-scrollbar { display: none; }
.hdr-nav a { text-decoration: none; padding: 12px 14px; font-size: .92rem; font-weight: 600; opacity: .82; white-space: nowrap; border-bottom: 3px solid transparent; }
.hdr-nav a:hover { opacity: 1; }
.hdr-nav a.active { opacity: 1; border-bottom-color: var(--primary-text); }
@media (max-width: 760px) {
  .hdr-top { flex-wrap: wrap; gap: 10px; padding: 10px 0; }
  .hdr-search { order: 3; flex-basis: 100%; max-width: none; }
  .hdr-actions { margin-inline-start: auto; }
  .burger { display: block; }
  .hdr-nav { display: none; }
  .hdr-nav.open { display: block; }
  .hdr-nav .wrap { flex-direction: column; padding-bottom: 8px; }
  .hdr-nav a { border-bottom: 0; border-inline-start: 3px solid transparent; padding: 11px 12px; }
  .hdr-nav a.active { border-inline-start-color: var(--primary-text); }
}

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 18px; border-radius: 10px; border: 1px solid transparent; font-weight: 600; cursor: pointer; text-decoration: none; background: var(--primary); color: var(--primary-ink); line-height: 1.2; }
.btn:hover { filter: brightness(1.07); }
.btn.secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.secondary:hover { border-color: var(--primary-text); color: var(--primary-text); filter: none; }
.btn.small { padding: 7px 12px; font-size: .88rem; }
.btn.block { width: 100%; }
.link { color: var(--primary-text); text-decoration: none; font-weight: 600; }
.link:hover { text-decoration: underline; }

/* ---------- Titres et sections ---------- */
section { padding: 28px 0; }
h1, h2, h3 { letter-spacing: -.01em; }
h2 { font-size: 1.35rem; margin: 0 0 4px; }
.lead { color: var(--muted); margin: 0 0 18px; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; }
.sec-head p { margin: 2px 0 0; color: var(--muted); font-size: .93rem; }
.page-title { padding: 24px 0 8px; }
.page-title h1 { margin: 0 0 6px; font-size: clamp(1.5rem, 3.5vw, 2rem); }
.crumbs { font-size: .85rem; color: var(--muted); padding-top: 18px; }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--primary-text); }
.crumbs span { margin: 0 6px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Accueil : bloc de recherche ---------- */
.hero { background: radial-gradient(900px 380px at 85% -20%, rgba(227,27,35,.28) 0%, transparent 60%), var(--brand); color: var(--brand-ink); padding: 34px 0 92px; }
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.5rem); line-height: 1.15; margin: 0 0 8px; max-width: 760px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { margin: 0; opacity: .8; max-width: 640px; }
.finder { padding: 18px; position: relative; z-index: 2; }
.entry { margin-top: -66px; position: relative; z-index: 2; }
.finder-label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 10px; }
[dir="rtl"] .finder-label { letter-spacing: 0; }
.bodies { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-bottom: 16px; }
.body-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); cursor: pointer; font-size: .82rem; font-weight: 600; min-width: 84px; }
.body-btn svg { width: 64px; height: 27px; color: var(--sil); }
.body-btn:hover { border-color: var(--primary-text); }
.body-btn.on { border-color: var(--primary-text); background: var(--primary-soft); color: var(--primary-text); }
.body-btn.on svg { color: var(--primary-text); }
.finder-row { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 10px; align-items: end; }
@media (max-width: 900px) { .finder-row { grid-template-columns: 1fr 1fr; } .finder-row .btn { grid-column: 1 / -1; } }
@media (max-width: 520px) { .finder-row { grid-template-columns: 1fr; } }
.fld { display: flex; flex-direction: column; gap: 5px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.fld select, .fld input, select.ctl, input.ctl { width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 400; font-size: .95rem; }
.fld select:focus, .fld input:focus, .ctl:focus { outline: 2px solid var(--primary); outline-offset: -1px; }
.finder .btn { padding: 12px 22px; white-space: nowrap; }

/* ---------- Cartes ---------- */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid.g4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card:hover { border-color: var(--primary-text); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card .brand { color: var(--muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
[dir="rtl"] .card .brand { letter-spacing: 0; }
.card h3 { margin: 0; font-size: 1.08rem; line-height: 1.3; }
.card .meta { color: var(--muted); font-size: .84rem; }
.card .price { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.card .price small { color: var(--muted); font-size: .8rem; }
.card .price b { color: var(--price); font-size: 1.08rem; font-weight: 800; white-space: nowrap; }

/* Visuel : photo ou silhouette */
.ph { aspect-ratio: 16/9; position: relative; background: linear-gradient(180deg, var(--surface-2), var(--line)); display: grid; place-items: center; overflow: hidden; }
.ph svg { width: 62%; max-width: 260px; height: auto; color: var(--sil); }
.ph .ph-name { position: absolute; bottom: 8px; inset-inline-start: 12px; font-size: .75rem; font-weight: 700; color: var(--muted); opacity: .8; }
.ph.has-img { background: var(--line); }
.ph.has-img img { width: 100%; height: 100%; object-fit: cover; }
.ph .badge { position: absolute; top: 10px; inset-inline-start: 10px; }

.tag { display: inline-block; font-size: .74rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); white-space: nowrap; }
.tag.warn { background: var(--warn-bg); color: var(--warn-ink); border-color: transparent; }
.tag.energy { background: var(--good-soft); color: var(--good); border-color: transparent; }
.tag.dark { background: var(--brand); color: #fff; border-color: transparent; }
.tag.blue { background: var(--primary); color: var(--primary-ink); border-color: transparent; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }

/* Marques */
.brands { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.brand-tile { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
.brand-tile:hover { border-color: var(--primary-text); }
.brand-tile .mono { width: 34px; height: 34px; border-radius: 8px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .8rem; flex-shrink: 0; }
.brand-tile b { display: block; font-size: .92rem; line-height: 1.2; }
.brand-tile small { color: var(--muted); font-size: .78rem; }

/* Essai à la une */
.feature { display: grid; grid-template-columns: 1.2fr 1fr; overflow: hidden; text-decoration: none; }
.feature .ph { aspect-ratio: auto; min-height: 260px; background: linear-gradient(135deg, var(--brand-2), var(--brand)); }
.feature .ph svg { color: #3a4a66; }
.feature .play { position: absolute; width: 64px; height: 64px; border-radius: 50%; background: var(--primary); display: grid; place-items: center; box-shadow: var(--shadow-lg); }
.feature .play svg { width: 26px; color: #fff; margin-inline-start: 4px; }
.feature .body { padding: 22px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.feature h3 { margin: 0; font-size: 1.4rem; line-height: 1.25; }
.feature p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .feature { grid-template-columns: 1fr; } .feature .ph { min-height: 190px; } }

/* Outils (accueil) */
.tools-strip { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.tool-card { display: flex; gap: 12px; align-items: center; padding: 16px; text-decoration: none; }
.tool-card .ico { width: 42px; height: 42px; border-radius: 10px; background: var(--primary-soft); color: var(--primary-text); display: grid; place-items: center; flex-shrink: 0; font-weight: 800; }
.tool-card b { display: block; }
.tool-card small { color: var(--muted); }

/* Piliers */
.pillars { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.pillar { padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.pillar b { display: block; margin-bottom: 4px; }
.pillar p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ---------- Catalogue ---------- */
.cat-layout { display: grid; grid-template-columns: 270px 1fr; gap: 20px; align-items: start; padding-bottom: 20px; }
.side { padding: 16px; position: sticky; top: 124px; max-height: calc(100vh - 140px); overflow: auto; }
.side h2 { font-size: 1rem; margin: 0; }
.side-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.side .grp { border-top: 1px solid var(--line); padding: 12px 0; }
.side .grp:first-of-type { border-top: 0; padding-top: 0; }
.side .grp > b { display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 8px; }
[dir="rtl"] .side .grp > b { letter-spacing: 0; }
.checks { display: flex; flex-direction: column; gap: 6px; }
.check { display: flex; align-items: center; gap: 8px; font-size: .93rem; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--primary-text); }
.check small { color: var(--muted); margin-inline-start: auto; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar .count { font-weight: 700; }
.toolbar select { width: auto; }
.filters-btn { display: none; }
.active-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.active-filters button { border: 1px solid var(--primary); background: var(--primary-soft); color: var(--primary-text); border-radius: 999px; padding: 4px 10px; font-size: .82rem; font-weight: 600; cursor: pointer; }
@media (max-width: 900px) {
  .cat-layout { grid-template-columns: 1fr; }
  .side { display: none; position: static; max-height: none; }
  .side.open { display: block; }
  .filters-btn { display: inline-flex; }
}
.more-wrap { text-align: center; margin-top: 20px; }

/* ---------- Fiche modèle ---------- */
.m-head { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; padding: 14px 0 8px; align-items: stretch; }
@media (max-width: 860px) { .m-head { grid-template-columns: 1fr; } }
.m-head .ph { border-radius: var(--radius); border: 1px solid var(--line); height: 100%; min-height: 240px; aspect-ratio: auto; }
.m-info { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.m-info h1 { margin: 0; font-size: clamp(1.5rem, 3.5vw, 2.1rem); line-height: 1.15; }
.m-info .brandline { color: var(--muted); font-weight: 700; text-transform: uppercase; font-size: .8rem; letter-spacing: .06em; }
[dir="rtl"] .m-info .brandline { letter-spacing: 0; }
.price-box { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.price-box small { color: var(--muted); display: block; font-size: .82rem; }
.big-price { font-size: 1.7rem; font-weight: 800; color: var(--price); letter-spacing: -.02em; }
[dir="rtl"] .big-price { letter-spacing: 0; }
.strike { text-decoration: line-through; color: var(--muted); font-weight: 400; font-size: 1rem; margin-inline-start: 8px; }
.keyfacts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 520px) { .keyfacts { grid-template-columns: repeat(2, 1fr); } }
.kf { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; }
.kf small { display: block; color: var(--muted); font-size: .75rem; }
.kf b { font-size: .95rem; }
.m-head > *, .cat-layout > *, .keyfacts > *, .finder-row > * { min-width: 0; }
.m-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.vlist td, .vlist th { vertical-align: middle; }
.vlist td.price-cell { font-weight: 800; color: var(--price); white-space: nowrap; }
.vlist .vname { font-weight: 600; }
.vlist .vsub { color: var(--muted); font-size: .82rem; }
@media (max-width: 640px) { .vlist .hide-sm { display: none; } }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 8px 0 16px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 12px 16px; font-weight: 700; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--primary-text); }
.tab-panel[hidden] { display: none; }

/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
thead th { background: var(--surface-2); color: var(--ink); font-weight: 700; }
tr:last-child td, tr:last-child th { border-bottom: 0; }
tbody th { color: var(--muted); font-weight: 500; white-space: nowrap; }
td.num { font-variant-numeric: tabular-nums; }
tr.group td { background: var(--surface-2); font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); }
[dir="rtl"] tr.group td { letter-spacing: 0; }
td.best { color: var(--good); font-weight: 700; }
tbody tr:hover td, tbody tr:hover th { background: var(--surface-2); }
tr.group:hover td { background: var(--surface-2); }

/* ---------- Divers ---------- */
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.note { font-size: .85rem; color: var(--muted); }
.notice { background: var(--warn-bg); color: var(--warn-ink); border-radius: 10px; padding: 10px 14px; font-size: .9rem; margin: 12px 0; }
.notice.ok { background: var(--good-soft); color: var(--good); }
.empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 22px; color: var(--muted); text-align: center; background: var(--surface); }

/* Points forts / défauts */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 680px) { .proscons { grid-template-columns: 1fr; } }
.proscons h3 { margin: 0 0 8px; font-size: 1rem; }
.pros h3 { color: var(--good); }
.cons h3 { color: var(--bad); }
.proscons ul { margin: 0; padding-inline-start: 18px; }

/* Notes */
.scores { display: grid; gap: 8px; }
.score-row { display: grid; grid-template-columns: 160px 1fr 44px; align-items: center; gap: 10px; font-size: .92rem; }
.bar { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--primary); }

/* Comparateur */
.picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
@media (max-width: 900px) { .picker { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .picker { grid-template-columns: 1fr; } }
.picker .slot { display: flex; flex-direction: column; gap: 6px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.picker .slot b { font-size: .8rem; color: var(--muted); }
.picker select { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: .92rem; }

.video { aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--brand); color: rgba(255,255,255,.75); padding: 32px 0 36px; margin-top: 40px; font-size: .9rem; }
.site-footer .wrap { display: grid; gap: 20px; grid-template-columns: 1.4fr 1fr 1fr; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }
.site-footer b { color: #fff; display: block; margin-bottom: 8px; }
.site-footer p { margin: 0 0 6px; }
.foot-nav { display: flex; flex-direction: column; gap: 6px; }
.foot-nav a { text-decoration: none; }
.foot-nav a:hover { color: #fff; text-decoration: underline; }

/* ---------- Arabe (RTL) ---------- */
[dir="rtl"] body { font-family: var(--font-ar); line-height: 1.7; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; }
[dir="rtl"] .hero h1 { line-height: 1.35; }
[dir="rtl"] td.num { direction: rtl; unicode-bidi: plaintext; }

/* Pastilles (actus) */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.chip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: .92rem; cursor: pointer; }
.chip.on { background: var(--primary); border-color: var(--primary-text); color: var(--primary-ink); }

/* Articles et pages de texte */
.article-img { border-radius: var(--radius); overflow: hidden; margin: 16px 0; }
.prose { font-size: 1.04rem; }
.prose h2 { margin: 28px 0 8px; font-size: 1.3rem; }
.prose p, .prose ul { margin: 0 0 14px; }
.prose ul { padding-inline-start: 20px; }

/* Formulaires (outils, contact) */
.tool { margin-bottom: 20px; }
.tool h2 { margin-bottom: 4px; }
.form-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin: 14px 0; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: .88rem; color: var(--muted); font-weight: 600; }
.field input, .field select, .field textarea { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 400; font-size: 1rem; }
.field textarea { min-height: 140px; resize: vertical; }
.fieldset-title { grid-column: 1 / -1; font-weight: 700; color: var(--ink); margin-top: 4px; }
.result { padding: 12px 14px; border-radius: 10px; background: var(--primary-soft); border: 1px solid var(--line); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Équipements détaillés */
.eq-pick { display: inline-flex; gap: 8px; align-items: center; font-size: .92rem; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.eq-pick select { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; max-width: 100%; }
.eq-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
.eq-cat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.eq-cat h3 { margin: 0 0 8px; font-size: 1rem; }
.eq-cat ul { margin: 0; padding-inline-start: 18px; font-size: .92rem; }
.eq-cat li { margin: 3px 0; }
[dir="rtl"] .eq-cat h3 { text-align: right; }
.sub-h { font-size: 1.05rem; margin: 22px 0 10px; }

/* ---------- Accueil : sections façon portail ---------- */
.band { background: var(--surface); border-block: 1px solid var(--line); }
section.band, main > section { padding: 44px 0; }
.sec-c { text-align: center; margin-bottom: 28px; }
.sec-c h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); letter-spacing: -.01em; margin: 0; font-weight: 800; }
.sec-c p { margin: 4px 0 0; color: var(--muted); font-size: 1rem; }
[dir="rtl"] .sec-c h2, [dir="rtl"] .sec-c p { letter-spacing: 0; }
.divider { display: block; width: 220px; height: 1px; background: var(--line); margin: 14px auto 0; position: relative; }
.divider::after { content: ""; position: absolute; left: 50%; top: -3px; width: 7px; height: 7px; margin-left: -3.5px; background: var(--primary); }
.center { text-align: center; margin: 26px 0 0; }

/* Vitrine des modèles : carte sans cadre, photo détourée */
.showcase { display: grid; gap: 28px 20px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .showcase { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .showcase { grid-template-columns: 1fr 1fr; gap: 20px 12px; } }
.show { text-decoration: none; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.show .pic { position: relative; width: 100%; aspect-ratio: 16/10; display: grid; place-items: center; border-radius: 12px; transition: transform .2s; }
.show:hover .pic { transform: translateY(-3px) scale(1.02); }
.show .pic img { width: 100%; height: 100%; object-fit: contain; }
.show .pic svg.sil { width: 82%; color: var(--sil); }
.band .show .pic { background: radial-gradient(70% 55% at 50% 60%, var(--surface-2), transparent 70%); }
.show .new { position: absolute; top: 4px; inset-inline-end: 4px; background: var(--brand); color: #fff; font-size: .72rem; font-weight: 800; font-style: italic; text-transform: uppercase; padding: 3px 9px; border-radius: 6px; letter-spacing: .03em; }
.show .plug { position: absolute; top: 2px; inset-inline-start: 2px; width: 46px; height: 46px; color: var(--good); display: grid; place-items: center; background: radial-gradient(circle at 46% 46%, var(--surface) 0 19px, transparent 20px); }
.show .plug svg { width: 46px; height: 46px; }
.show h3 { margin: 10px 0 0; font-size: 1.04rem; line-height: 1.3; }
[dir="rtl"] .show h3 { letter-spacing: 0; }
.show .from { color: var(--muted); font-size: .95rem; }
.show .from b { color: var(--price); font-weight: 800; }
.show .offer { font-style: italic; font-size: .84rem; color: var(--muted); }
@media (max-width: 480px) { .show h3 { font-size: .9rem; } .show .from { font-size: .85rem; } }

/* Auto Mag */
.mag { display: grid; gap: 28px 24px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .mag { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .mag { grid-template-columns: 1fr; } }
.mag-card { text-decoration: none; display: flex; flex-direction: column; }
.mag-card .img { aspect-ratio: 5/3; overflow: hidden; border-radius: 10px; background: linear-gradient(135deg, var(--brand-2), var(--brand)); display: grid; place-items: center; }
.mag-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.mag-card:hover .img img { transform: scale(1.04); }
.mag-card .img svg { width: 55%; color: #3a4a66; }
.mag-card .cat { margin-top: 14px; font-size: .75rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.mag-card h3 { margin: 4px 0 12px; font-size: 1.12rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
[dir="rtl"] .mag-card h3, [dir="rtl"] .mag-card .cat { letter-spacing: 0; text-transform: none; }
.mag-card:hover h3 { color: var(--primary-text); }
.mag-card .date { margin-top: auto; border-top: 1px solid var(--line); padding-top: 10px; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .88rem; }
.mag-card .date svg { width: 18px; height: 18px; color: var(--primary-text); }

/* Showroom : logos des marques */
.logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
@media (max-width: 900px) { .logos { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 520px) { .logos { grid-template-columns: repeat(3, 1fr); } }
.logo-tile { height: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-decoration: none; border-radius: 10px; padding: 8px; transition: background .15s; }
.logo-tile:hover { background: var(--surface); box-shadow: var(--shadow); }
.logo-tile img { max-width: 82%; height: 46px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .72; transition: opacity .15s, filter .15s; }
.logo-tile:hover img { opacity: 1; filter: none; }
.logo-tile .word { font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .95rem; color: var(--muted); text-align: center; line-height: 1.15; }
.logo-tile:hover .word { color: var(--ink); }
.logo-tile small { font-size: .72rem; color: var(--muted); opacity: 0; transition: opacity .15s; }
.logo-tile:hover small { opacity: 1; }
@media (prefers-color-scheme: dark) { .logo-tile img { filter: grayscale(1) invert(1); } .logo-tile:hover img { filter: invert(1); } }

/* Photos réelles et crédits */
.m-fig { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.m-fig .ph { flex: 1; }
.credit { font-size: .75rem; color: var(--muted); line-height: 1.4; }
.credit a { color: inherit; }
.show .pic.photo { overflow: hidden; background: var(--surface-2); }
.show .pic.photo img { object-fit: cover; }
.ph.has-img img { object-fit: cover; }

/* =========================================================
   Charte LCA : logo, titres, intro vidéo
   ========================================================= */
h1, h2, h3, .sec-head h2, .logo .txt b, .btn, .hdr-nav a, .finder-label { font-family: var(--font-display); }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] .btn, [dir="rtl"] .hdr-nav a, [dir="rtl"] .finder-label { font-family: var(--font-ar); }
h1, h2 { letter-spacing: -.01em; }
.site-header { border-bottom: 2px solid var(--primary); }
.logo img.mark { height: 40px; width: auto; flex-shrink: 0; }
.logo .txt b { text-transform: uppercase; font-size: .92rem; letter-spacing: .02em; }
[dir="rtl"] .logo .txt b { text-transform: none; font-family: var(--font-ar); font-size: 1.05rem; }
.logo .txt span[lang="fr"] { text-transform: uppercase; font-family: var(--font-display); font-size: .68rem; letter-spacing: .04em; }
@media (max-width: 560px) { .logo .txt { display: none; } .logo img.mark { height: 34px; } }
.hdr-nav a.active, .hdr-nav a:hover { border-bottom-color: var(--primary-text); }
.hero h1 em { color: var(--primary-text); }
.hero .tagline { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 12px; font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: .95rem; opacity: .9; }
.hero .tagline::before { content: ""; width: 28px; height: 2px; background: var(--primary); }
.hero .tagline .sep { width: 2px; height: 16px; background: var(--primary); transform: skewX(-15deg); }
.hero .tagline [lang="ar"] { font-family: var(--font-ar); font-style: normal; font-weight: 700; }
.hero .intro-btn { margin-top: 16px; background: transparent; border: 1px solid rgba(255,255,255,.35); color: #fff; }
.hero .intro-btn:hover { border-color: var(--primary-text); background: rgba(227,27,35,.15); }
.foot-logo { width: 190px; height: auto; margin: 0 0 12px; }
.mag .img.brand-ph, .ph-brand { background: #000; display: grid; place-items: center; }
.mag .img.brand-ph img { width: 46%; height: auto; object-fit: contain; }
/* Intro vidéo plein écran */
.intro { position: fixed; inset: 0; z-index: 100; background: #000; display: grid; place-items: center; transition: opacity .5s ease; }
.intro.out { opacity: 0; pointer-events: none; }
.intro video { width: min(100%, 177.78vh); height: auto; max-height: 100%; }
.intro .intro-ctl { position: absolute; bottom: max(20px, env(safe-area-inset-bottom)); inset-inline-end: 20px; display: flex; gap: 8px; }
.intro button { padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.5); color: #fff; font: 600 .88rem var(--font-display); cursor: pointer; }
.intro button:hover { border-color: var(--primary-text); }
.about-video { width: 100%; max-width: 760px; border-radius: var(--radius); background: #000; display: block; margin: 8px 0 20px; }

/* ---------- Promotions ---------- */
.promo-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 14px; margin: 8px 0 18px; }
.promo-bar .fld { min-width: 200px; flex: 0 1 260px; }
.promo-count { margin-inline-start: auto; color: var(--muted); font-weight: 600; font-size: .9rem; padding-bottom: 10px; }
.promo-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.promo-card { display: flex; flex-direction: column; text-decoration: none; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.promo-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.pc-pic { position: relative; }
.pc-pic .ph { border-radius: 0; }
.promo-badge { display: inline-block; background: var(--primary); color: var(--primary-ink); font: 700 .82rem var(--font-display); padding: 4px 9px; border-radius: 6px; white-space: nowrap; }
.pc-pic .promo-badge { position: absolute; top: 10px; inset-inline-start: 10px; }
.pc-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pc-body h3 { margin: 0; font-size: 1.05rem; }
.pc-ver { color: var(--muted); }
.pc-price b { font-size: 1.2rem; font-weight: 800; color: var(--primary-text); }
.pc-offre { margin: 4px 0 0; font-size: .9rem; }
.pc-meta { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: .8rem; }
.offer-box { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 12px; border-radius: 10px; background: var(--primary-soft); border-inline-start: 4px solid var(--primary); text-decoration: none; color: var(--ink); font-size: .92rem; }
.offer-box b { color: var(--primary-text); }
.offer-box small { color: var(--muted); width: 100%; }
.offer-box a { color: var(--primary-text); font-weight: 600; }

/* ---------- Nouveautés ---------- */
.launch-date { display: inline-block; margin-top: 6px; font: 600 .78rem var(--font-display); color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
[dir="rtl"] .launch-date { font-family: var(--font-ar); text-transform: none; }
.world-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.world-card { display: flex; flex-direction: column; overflow: hidden; }
.wc-top { position: relative; background: linear-gradient(135deg, var(--brand-2), var(--brand)); padding: 18px 24px 10px; color: #fff; }
.wc-top svg { width: 100%; height: 64px; opacity: .85; }
.wc-top svg path { fill: rgba(255,255,255,.18); stroke: rgba(255,255,255,.8); }
.wc-status { position: absolute; top: 10px; inset-inline-start: 10px; background: #fff; color: #111; font: 700 .72rem var(--font-display); padding: 3px 8px; border-radius: 6px; text-transform: uppercase; }
.wc-status.soon { background: var(--primary); color: var(--primary-ink); }
.wc-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.wc-body h3 { margin: 0; font-size: 1.05rem; }
.wc-date { color: var(--primary-text); font-weight: 600; }
.wc-body p { margin: 4px 0 8px; font-size: .9rem; color: var(--muted); }
.wc-src { margin-top: auto; font-size: .8rem; color: var(--muted); text-decoration: none; }
.wc-src:hover { color: var(--primary-text); }
.wc-top svg circle { fill: var(--brand-2); stroke: rgba(255,255,255,.8); }

/* ---------- Marché en chiffres (AIVAM) ---------- */
.market { padding: 20px; margin: 8px 0 22px; }
.mk-head h2 { margin: 0; }
.mk-head p { margin: 2px 0 14px; color: var(--muted); font-size: .92rem; }
.mk-tiles { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 18px; }
.mk-tile { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; background: var(--surface-2); }
.mk-tile small { color: var(--muted); font-size: .8rem; }
.mk-tile b { font: 800 1.5rem var(--font-display); color: var(--ink); }
.mk-tile span { font-size: .82rem; color: var(--muted); }
.mk-tile span.up { color: var(--good); font-weight: 600; }
.mk-tile span.down { color: var(--bad); font-weight: 600; }
.mk-grid { display: grid; gap: 20px; grid-template-columns: 1.4fr 1fr; }
@media (max-width: 760px) { .mk-grid { grid-template-columns: 1fr; } }
.mk-chart { margin: 0; }
.mk-chart figcaption, .mk-brands h3 { font: 700 .95rem var(--font-display); margin: 0 0 10px; }
[dir="rtl"] .mk-chart figcaption, [dir="rtl"] .mk-brands h3 { font-family: var(--font-ar); }
.mk-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; height: 220px; align-items: end; border-bottom: 1px solid var(--line); padding-bottom: 0; }
.mk-col { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; position: relative; outline: none; }
.mk-col .mk-val { font-weight: 700; font-size: .85rem; margin-bottom: 4px; }
.mk-bar { width: min(56px, 70%); background: var(--primary); border-radius: 4px 4px 0 0; transition: filter .15s; }
.mk-bar.partiel { background: repeating-linear-gradient(135deg, var(--primary) 0 6px, color-mix(in srgb, var(--primary) 55%, var(--surface)) 6px 10px); }
.mk-col:hover .mk-bar, .mk-col:focus .mk-bar { filter: brightness(1.12); }
.mk-year, .mk-var { position: absolute; top: 100%; font-size: .82rem; }
.mk-year { margin-top: 6px; font-weight: 700; }
.mk-var { margin-top: 24px; color: var(--muted); font-size: .76rem; }
.mk-note { margin: 52px 0 6px; color: var(--muted); font-size: .8rem; }
.mk-table summary { cursor: pointer; color: var(--primary-text); font-weight: 600; font-size: .88rem; }
.mk-brand { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; margin-bottom: 12px; font-size: .92rem; }
.mk-brand b { font-weight: 700; }
.mk-track { grid-column: 1 / -1; height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.mk-track div { height: 100%; background: var(--primary); border-radius: 4px; }
.mk-cn { font-size: .85rem; color: var(--muted); margin: 8px 0 0; }
.mk-src { margin: 16px 0 0; font-size: .78rem; color: var(--muted); }
.mk-src a { color: inherit; }
@media (max-width: 420px) { .mk-tile b { font-size: 1.2rem; } }
.wc-top.has-img { padding: 0; aspect-ratio: 16/9; overflow: hidden; }
.wc-top.has-img img { width: 100%; height: 100%; object-fit: cover; }
.wc-top:not(.has-img) { aspect-ratio: 16/9; display: grid; place-items: center; }
.wc-credit { font-size: .72rem; color: var(--muted); text-decoration: none; opacity: .85; }
.wc-credit:hover { text-decoration: underline; }

/* ---------- Application installable ---------- */
.site-header { padding-top: env(safe-area-inset-top); }
.site-footer { padding-bottom: calc(36px + env(safe-area-inset-bottom)); }
.install-bar { position: fixed; inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #000; color: #fff; border: 1px solid rgba(255,255,255,.15); border-top: 2px solid var(--primary); border-radius: 14px; box-shadow: var(--shadow-lg); max-width: 560px; margin-inline: auto; }
.install-bar[hidden] { display: none; }
.install-bar img { border-radius: 10px; flex-shrink: 0; }
.install-bar div { flex: 1; display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.install-bar b { font-family: var(--font-display); font-size: .92rem; }
[dir="rtl"] .install-bar b { font-family: var(--font-ar); }
.install-bar small { opacity: .75; font-size: .8rem; }
.install-x { background: none; border: 0; color: #fff; opacity: .7; font-size: 1rem; cursor: pointer; padding: 6px; }

/* ---------- Carte des bornes ---------- */
.bo-bar { align-items: center; }
.bo-check { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; cursor: pointer; }
.bo-check input { width: 18px; height: 18px; accent-color: var(--primary-text); }
.bo-map { height: min(70vh, 560px); overflow: hidden; z-index: 0; }
.bo-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 2px 0; font-size: .85rem; color: var(--muted); }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: #111113; border: 2px solid #fff; box-shadow: 0 0 0 1px #999; vertical-align: -1px; flex-shrink: 0; }
.dot.fast { background: var(--primary); }
.bo-list { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.bo-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; text-align: start; cursor: pointer; font: inherit; color: inherit; }
.bo-item:hover { border-color: var(--primary-text); }
.bo-item > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.bo-item small { color: var(--muted); font-size: .8rem; }
.bo-kw { font-weight: 700; white-space: nowrap; display: flex; flex-direction: column; align-items: flex-end; }
.bo-pop { display: flex; flex-direction: column; gap: 3px; font: 14px/1.4 var(--font); min-width: 190px; }
.bo-pop ul { margin: 4px 0; padding-inline-start: 18px; }
.bo-pop p { margin: 0; }
.bo-pop .btn { margin-top: 6px; color: #fff; }
.bo-pop small { color: #666; }
.bo-s { margin-top: 4px; font-size: .72rem; }
.leaflet-container { font-family: var(--font); }
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large { background: rgba(227,27,35,.25); }
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div { background: #c99a2e; color: #111113; font-weight: 700; }

/* ---------- Articles Auto Mag ---------- */
.article-img { margin: 16px 0; }
.article-img img { width: 100%; max-height: 460px; object-fit: cover; }
.article-img .credit { padding: 6px 2px 0; font-size: .78rem; color: var(--muted); }
.art-sources { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .9rem; }
.art-sources ul { margin: 6px 0 0; padding-inline-start: 18px; }
.art-ia { margin-top: 16px; font-style: italic; }

/* =========================================================
   Marketplace d'occasion
   ========================================================= */
.btn.danger { background: transparent; color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
.btn.danger:hover { background: color-mix(in srgb, var(--bad) 10%, transparent); }
.oc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.oc-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.oc-filters { padding: 16px; display: flex; flex-direction: column; gap: 10px; align-self: start; }
@media (min-width: 901px) { .oc-filters { position: sticky; top: 130px; z-index: 1; } }
.oc-filters h2 { cursor: default; }
@media (max-width: 900px) { .oc-filters h2 { cursor: pointer; display: flex; justify-content: space-between; } .oc-filters h2::after { content: "▾"; } .oc-filters.collapsed > :not(h2) { display: none; } .oc-filters.collapsed h2 { margin: 0; } }
.oc-filters h2 { margin: 0 0 4px; font-size: 1.05rem; }
.oc-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.oc-sort { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); }
.oc-sort select { padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; }
.oc-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.oc-card { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.oc-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.oc-pic { position: relative; aspect-ratio: 4/3; background: var(--surface-2); overflow: hidden; }
.oc-pic img { width: 100%; height: 100%; object-fit: cover; }
.oc-nophoto { width: 100%; height: 100%; display: grid; place-items: center; color: var(--sil); }
.oc-nophoto svg { width: 60%; }
.oc-nophoto.big { aspect-ratio: 4/3; }
.oc-badge { display: inline-flex; align-items: center; gap: 4px; font: 700 .72rem var(--font-display); padding: 3px 8px; border-radius: 6px; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
.oc-badge.ok { background: var(--good-soft); color: var(--good); border-color: transparent; }
.oc-pic .oc-badge { position: absolute; top: 8px; inset-inline-start: 8px; }
.oc-count { position: absolute; bottom: 8px; inset-inline-end: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: .75rem; padding: 2px 7px; border-radius: 6px; }
.oc-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.oc-body h3 { margin: 0; font-size: 1rem; line-height: 1.3; }
.oc-ver { color: var(--muted); font-size: .82rem; margin: 0; }
.oc-facts { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .82rem; color: var(--muted); }
.oc-facts span + span::before { content: "·"; margin-inline-end: 10px; opacity: .6; }
.oc-price { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
.oc-price b { font: 800 1.15rem var(--font-display); color: var(--primary-text); }
.oc-price small, .oc-bigprice small { color: var(--muted); font-size: .78rem; }
.oc-meta { margin-top: auto; padding-top: 6px; display: flex; justify-content: space-between; gap: 8px; font-size: .78rem; color: var(--muted); }
.oc-pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 20px 0; }
.oc-loading { height: 120px; margin: 24px 0; border-radius: var(--radius); background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2)); background-size: 200% 100%; animation: oc-shine 1.2s linear infinite; }
@keyframes oc-shine { to { background-position: -200% 0; } }
.oc-toast { position: fixed; bottom: calc(20px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 90; background: #111113; color: #fff; padding: 11px 16px; border-radius: 10px; box-shadow: var(--shadow-lg); font-size: .92rem; max-width: 92vw; }
.oc-toast.err { background: var(--bad); }
/* Fiche annonce */
.oc-detail { display: grid; gap: 18px; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); margin-top: 12px; }
@media (max-width: 900px) { .oc-detail { grid-template-columns: 1fr; } }
.oc-gallery { overflow: hidden; aspect-ratio: 4/3; background: #000; }
.oc-gallery img { width: 100%; height: 100%; object-fit: contain; }
.oc-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0; }
.oc-thumbs button { flex: 0 0 84px; height: 62px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; }
.oc-thumbs button.on { border-color: var(--primary-text); }
.oc-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.oc-box { padding: 16px; margin-bottom: 14px; }
.oc-box h2 { margin: 0 0 10px; font-size: 1.05rem; }
.oc-specs { display: grid; gap: 10px 16px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.oc-specs small { display: block; color: var(--muted); font-size: .78rem; }
.oc-desc { white-space: pre-line; margin: 0; }
.oc-sum h1 { margin: 0; font-size: clamp(1.3rem, 3vw, 1.6rem); }
.oc-bigprice { font: 800 1.8rem var(--font-display); color: var(--primary-text); margin: 8px 0 6px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.oc-seller { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.oc-seller small { color: var(--muted); }
#oc-phone { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
#oc-phone .btn { flex: 1; }
.btn.oc-wa { background: #1fa855; border-color: #1fa855; color: #fff; }
.oc-form { display: flex; flex-direction: column; gap: 10px; }
.oc-form textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; resize: vertical; }
.oc-form .fld small { font-weight: 400; color: var(--muted); }
.oc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.oc-tips ul { margin: 0; padding-inline-start: 18px; font-size: .88rem; display: flex; flex-direction: column; gap: 6px; }
.oc-report { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.oc-report summary { cursor: pointer; }
.oc-report form { margin-top: 10px; }
.oc-mk { margin: 0 0 4px; padding: 8px 12px; border-radius: 8px; display: inline-block; }
.oc-mk.bas { background: var(--good-soft); color: var(--good); }
.oc-mk.moy { background: var(--surface-2); }
.oc-mk.haut { background: var(--warn-bg); color: var(--warn-ink); }
.oc-neuf p { margin: 4px 0; }
/* Compte */
.oc-auth { max-width: 460px; margin: 32px auto; padding: 22px; }
.oc-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.oc-tabs button { flex: 1; padding: 10px 8px; border: 0; background: none; font: 600 .95rem var(--font-display); color: var(--muted); border-bottom: 3px solid transparent; cursor: pointer; }
[dir="rtl"] .oc-tabs button { font-family: var(--font-ar); }
.oc-tabs button.on { color: var(--ink); border-bottom-color: var(--primary-text); }
.oc-tabs.wide { margin-top: 8px; }
.oc-tabs.wide button { flex: 0 0 auto; padding: 10px 14px; }
.linkbtn { background: none; border: 0; color: var(--primary-text); font: inherit; font-size: .88rem; cursor: pointer; padding: 4px 0; align-self: flex-start; }
.oc-auth h1 { font-size: 1.45rem; margin: 0 0 4px; }
.oc-auth .lead { margin: 0 0 16px; font-size: .95rem; }
.oc-auth .oc-form { display: flex; flex-direction: column; gap: 12px; }
.oc-switch { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); text-align: center; font-size: .92rem; color: var(--muted); }
.oc-pw { position: relative; display: block; }
.oc-pw input { width: 100%; padding-inline-end: 84px; }
.oc-eye { position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%); border: 0; background: var(--surface-2); color: var(--ink); font-family: inherit; font-weight: 600; font-size: .78rem; padding: 5px 9px; border-radius: 6px; cursor: pointer; }
.oc-msg:empty { display: none; }
.oc-msg .notice { margin: 0; }
.notice.err { background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); }
.btn.loading { opacity: .6; pointer-events: none; }
.oc-done { text-align: center; }
.oc-done-ico { font-size: 2.4rem; line-height: 1; margin-bottom: 8px; }
.oc-done .oc-form { align-items: center; margin-top: 12px; }
.oc-acct { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 0; font-size: .9rem; color: var(--muted); }
.oc-acct b { color: var(--ink); }
.oc-acct-act { display: flex; align-items: center; gap: 12px; }
.oc-secu { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.oc-secu h3 { margin: 0; }
.oc-secu .note { margin: 0; }
.oc-type { border: 0; padding: 0; margin: 0; display: flex; gap: 16px; flex-wrap: wrap; }
.oc-type legend { font-size: .82rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.oc-type label, .oc-check { display: flex; align-items: center; gap: 8px; font-size: .92rem; cursor: pointer; }
.oc-type input, .oc-check input { width: 18px; height: 18px; accent-color: var(--primary-text); flex-shrink: 0; }
.oc-pro { display: flex; flex-direction: column; gap: 10px; }
/* Espace vendeur */
.oc-mine { display: flex; flex-direction: column; gap: 10px; }
.oc-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 14px; align-items: center; padding: 10px; }
@media (max-width: 700px) { .oc-row { grid-template-columns: 90px 1fr; } .oc-row-act { grid-column: 1 / -1; } }
.oc-row-pic { aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; background: var(--surface-2); color: var(--sil); display: grid; place-items: center; }
.oc-row-pic img { width: 100%; height: 100%; object-fit: cover; }
.oc-row-body { display: flex; flex-direction: column; gap: 3px; font-size: .9rem; }
.oc-row-act { display: flex; gap: 6px; flex-wrap: wrap; }
.oc-st { font: 700 .74rem var(--font-display); padding: 2px 8px; border-radius: 6px; background: var(--surface-2); }
.oc-st.publiee { background: var(--good-soft); color: var(--good); }
.oc-st.en_attente { background: var(--warn-bg); color: var(--warn-ink); }
.oc-st.refusee { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }
.oc-refus { color: var(--bad); }
.oc-msgrow { padding: 12px 14px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 4px; }
.oc-msgrow.new { border-inline-start: 4px solid var(--primary); }
.oc-msgrow p { margin: 4px 0; white-space: pre-line; }
.oc-profile { max-width: 560px; }
/* Dépôt */
.oc-dep { max-width: 900px; }
.oc-cols { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin-bottom: 10px; align-items: end; }
.oc-up { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); margin: 10px 0; }
.oc-ph { position: relative; aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.oc-ph img { width: 100%; height: 100%; object-fit: cover; }
.oc-ph .oc-badge { position: absolute; top: 6px; inset-inline-start: 6px; }
.oc-ph button { position: absolute; bottom: 6px; inset-inline-start: 6px; font-size: .72rem; padding: 3px 7px; border-radius: 6px; border: 0; background: rgba(0,0,0,.65); color: #fff; cursor: pointer; }
.oc-ph button[data-a="del"] { top: 6px; bottom: auto; inset-inline-start: auto; inset-inline-end: 6px; }
.oc-addph { cursor: pointer; }
.oc-submit { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 6px 0 30px; }
.oc-grid > .empty { grid-column: 1 / -1; }
.home-occ-cta { margin-top: 18px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.home-occ-empty b { display: block; font-size: 1.05rem; color: var(--ink); margin-bottom: 4px; }
.home-occ-empty p { margin: 0 auto; max-width: 520px; }


/* =========================================================
   Améliorations novembre 2026
   ========================================================= */
/* Navigation courte + menu « Plus » */
.hdr-nav .wrap { overflow: visible; align-items: stretch; }
.nav-more { position: relative; display: flex; }
.nav-more > button { background: none; border: 0; color: inherit; font: 600 .92rem var(--font-display); padding: 12px 14px; opacity: .82; cursor: pointer; border-bottom: 3px solid transparent; }
[dir="rtl"] .nav-more > button { font-family: var(--font-ar); }
.nav-more > button:hover, .nav-more.active > button { opacity: 1; }
.nav-more.active > button { border-bottom-color: var(--primary-text); }
.nav-more-menu { display: none; position: absolute; top: 100%; inset-inline-start: 0; min-width: 210px; background: var(--brand-2); border-radius: 0 0 10px 10px; box-shadow: var(--shadow-lg); padding: 6px 0; z-index: 30; }
.nav-more.open .nav-more-menu { display: block; }
.nav-more-menu a { display: block; border-bottom: 0 !important; padding: 10px 16px !important; }
.hdr-cmp { position: relative; display: none; padding: 8px; border-radius: 10px; border: 1px solid rgba(255,255,255,.25); color: inherit; }
.hdr-cmp svg { width: 20px; height: 20px; display: block; }
.hdr-cmp .n { position: absolute; top: -6px; inset-inline-end: -6px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--primary); color: var(--primary-ink); font-size: .7rem; font-weight: 800; display: grid; place-items: center; padding: 0 4px; }
@media (max-width: 760px) {
  .hdr-cmp { display: block; }
  .hdr-nav .wrap { overflow: visible; }
  .nav-more { flex-direction: column; }
  .nav-more > button { display: none; }
  .nav-more-menu { display: block; position: static; background: none; box-shadow: none; padding: 0; min-width: 0; }
  .nav-more-menu a { padding: 11px 12px !important; border-inline-start: 3px solid transparent; }
}

/* Cartes : catégorie, conditions de prix, bouton Comparer */
.card-w { position: relative; display: flex; }
.card-w > .card { flex: 1; min-width: 0; }
.cmp-add { position: absolute; top: 8px; inset-inline-end: 8px; z-index: 2; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 700 .78rem var(--font); padding: 6px 10px; border-radius: 999px; cursor: pointer; box-shadow: var(--shadow); }
.cmp-add:hover { border-color: var(--ink); }
.cmp-add.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.card .ph .badge { inset-inline-end: auto; inset-inline-start: 8px; }
.tag.cat { background: var(--surface); border-color: var(--ink); color: var(--ink); font-weight: 700; }
.tag.cond { background: var(--warn-bg); color: var(--warn-ink); border-color: transparent; font-weight: 700; }
.tag.soon { background: var(--surface-2); color: var(--ink); border: 1px dashed var(--muted); }
.cond-price { font-size: .8rem; color: var(--muted); margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; justify-content: center; }
.card .cond-price { justify-content: flex-start; }
.price-box .cond-price { justify-content: flex-start; margin-top: 6px; }
.cond-price b { color: var(--ink); }
.show-cat { margin-top: 2px; }
.pc-pic { position: relative; }
.pc-cond { position: absolute; bottom: 8px; inset-inline-start: 8px; }

/* Bandeau de comparaison */
.cmp-tray { position: fixed; inset-inline: 0; bottom: 0; z-index: 60; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(0,0,0,.12); padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); }
.cmp-tray-in { display: flex; align-items: center; gap: 12px; justify-content: space-between; flex-wrap: wrap; }
.cmp-list { display: flex; gap: 6px; flex-wrap: wrap; }
.cmp-chip { display: inline-flex; align-items: center; gap: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 4px 4px 10px; font-size: .84rem; font-weight: 600; }
[dir="rtl"] .cmp-chip { padding: 4px 10px 4px 4px; }
.cmp-chip button { border: 0; background: none; cursor: pointer; font-size: 1rem; line-height: 1; padding: 2px 6px; color: var(--muted); }
.cmp-act { display: flex; align-items: center; gap: 12px; }
.cmp-msg { font-size: .82rem; color: var(--warn-ink); background: var(--warn-bg); padding: 4px 8px; border-radius: 6px; }
.btn.disabled { opacity: .5; pointer-events: none; }
body.has-tray { padding-bottom: 76px; }
body.has-tray .install-bar { bottom: 80px; }

/* Lexique des motorisations */
details.lex { margin-top: 12px; font-size: .9rem; }
details.lex summary { cursor: pointer; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.lex-list { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 10px 0 0; }
.lex-list dt { font-weight: 700; }
.lex-list dd { margin: 0; color: var(--muted); }
@media (max-width: 560px) { .lex-list { grid-template-columns: 1fr; } .lex-list dd { margin-bottom: 6px; } }
.side details.lex { margin-top: 8px; font-size: .84rem; }

/* Trouver selon votre usage */
.guide { padding: 20px; display: grid; gap: 18px; }
.guide fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.guide legend { font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.guide .step { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--surface); display: inline-grid; place-items: center; font-size: .8rem; font-weight: 800; }
.use-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
@media (max-width: 900px) { .use-tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .use-tiles { grid-template-columns: 1fr 1fr; } }
.use-tile input, .seg input { position: absolute; opacity: 0; pointer-events: none; }
.use-tile span { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 12px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--surface); }
.use-tile small { color: var(--muted); font-size: .8rem; }
.use-tile input:checked + span, .seg input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--surface-2); }
.use-tile input:focus-visible + span, .seg input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.guide-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
@media (max-width: 860px) { .guide-row { grid-template-columns: 1fr; } }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { position: relative; }
.seg span { display: inline-block; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; font-size: .88rem; font-weight: 600; background: var(--surface); }
.guide .hint { display: block; color: var(--muted); font-size: .82rem; margin-top: 8px; }
.guide .btn { justify-self: start; }
.guide .btn:disabled { opacity: .5; cursor: not-allowed; }
.usage-note { background: var(--surface); border: 1px solid var(--line); border-inline-start: 4px solid var(--ink); border-radius: 10px; padding: 10px 14px; margin: 0 0 12px; font-size: .92rem; }

/* Comparatifs express */
.xp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .xp-grid { grid-template-columns: 1fr; } }
.xp-card { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.xp-card h3 { margin: 0; font-size: 1.1rem; line-height: 1.3; }
.xp-card ol { margin: 0; padding: 0; list-style: none; counter-reset: xp; display: grid; gap: 8px; }
.xp-card li { counter-increment: xp; display: flex; align-items: center; gap: 10px; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 8px; }
.xp-card li::before { content: counter(xp); width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-size: .78rem; font-weight: 800; }
.xp-card li a { flex: 1; min-width: 0; text-decoration: none; display: flex; flex-direction: column; }
.xp-card li a span { font-weight: 700; }
.xp-card li small { color: var(--muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xp-card li b { white-space: nowrap; font-size: .92rem; }
.xp-act { margin-top: auto; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* Essai annoncé (pas encore publié) */
.feature.upcoming .ph img { filter: grayscale(.4); opacity: .85; }

/* Encart occasion discret */
.occ-encart { margin-top: 16px; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.occ-encart p { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }
.occ-encart-act { display: flex; gap: 8px; flex-wrap: wrap; }
.occ-encart .oc-grid { flex-basis: 100%; }

/* Origine des informations : constructeur, mesure, avis */
.kind { display: inline-block; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 2px 7px; border-radius: 4px; vertical-align: middle; }
[dir="rtl"] .kind { letter-spacing: 0; }
.kind.maker { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.kind.measured { background: var(--good-soft); color: var(--good); }
.kind.opinion { background: var(--ink); color: var(--surface); }
.pillar .kind { margin-bottom: 8px; }
.src-kind { font-size: .86rem; color: var(--muted); margin: 0 0 10px; }
.m-resume { margin: 0; color: var(--muted); }
.box h3 .kind { margin-inline-start: 6px; }

/* Indices de défilement horizontal */
.swipe-hint { display: none; font-size: .78rem; color: var(--muted); margin: 0 0 6px; text-align: end; }
@media (max-width: 900px) { .swipe-hint { display: block; } }
.tabs.overflows, .table-wrap.overflows { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); }
[dir="rtl"] .tabs.overflows, [dir="rtl"] .table-wrap.overflows { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 36px), transparent); }

/* Catalogue : parcourir par marque */
.brands-dd { padding: 12px 16px; margin-bottom: 16px; }
.brands-dd summary { cursor: pointer; font-weight: 700; }
.brands-dd .logos { margin-top: 14px; }
.wc-date { color: var(--muted); }
.hdr-cmp .n[hidden] { display: none; }

/* Sélection par version : version retenue, raisons, encadré sur la fiche */
.picked-v { font-size: .84rem; margin-top: 2px; }
.picked-v small { color: var(--muted); }
.picked-v span { font-weight: 600; }
ul.why { list-style: none; margin: 4px 0 0; padding: 0; font-size: .8rem; color: var(--muted); display: grid; gap: 2px; }
ul.why li::before { content: "✓ "; color: var(--good); font-weight: 800; }
.usage-note p { margin: 0 0 4px; }
.usage-note p:last-child { margin: 0; }
.picked-box { padding: 16px 18px; margin: 18px 0 0; border-inline-start: 4px solid var(--ink); }
.picked-box h2 { margin: 0 0 8px; font-size: 1.15rem; }
.picked-box p { margin: 0 0 6px; }
.picked-box ul.why { font-size: .9rem; margin-bottom: 8px; }
tr.picked td, tr.picked th { background: var(--surface-2); }
tr.picked .vname::after { content: " ✓"; color: var(--good); font-weight: 800; }
.use-crit { margin: 8px 0 0; }
.xp-card li { flex-direction: column; align-items: stretch; }
.xp-card li::before { position: absolute; }
.xp-card li { position: relative; padding-inline-start: 30px; }
.xp-card li::before { inset-inline-start: 0; top: 10px; }
.xp-row { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.xp-why { display: grid; grid-template-columns: max-content 1fr; gap: 2px 8px; margin: 6px 0 0; font-size: .78rem; }
.xp-why dt { color: var(--muted); font-weight: 700; }
.xp-why dd { margin: 0; }

/* Deux entrées : je connais le modèle / aidez-moi à choisir */
.entry-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.entry-tabs button { text-align: start; display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: var(--radius); border: 1.5px solid transparent; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; font: inherit; }
.entry-tabs button b { font-family: var(--font-display); font-size: 1rem; }
[dir="rtl"] .entry-tabs button b { font-family: var(--font-ar); }
.entry-tabs button small { opacity: .8; font-size: .82rem; }
.entry-tabs button.on { background: var(--surface); color: var(--ink); border-color: var(--surface); box-shadow: var(--shadow); }
.entry-tabs button.on small { color: var(--muted); opacity: 1; }
.entry-tabs button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
@media (max-width: 520px) { .entry-tabs button small { display: none; } .entry-tabs button { padding: 10px 12px; } }
/* Guide progressif */
.guide { padding: 18px; }
.g-summary { display: flex; flex-wrap: wrap; gap: 6px; }
.g-summary:empty { display: none; }
.g-chip { border: 1px solid var(--line); background: var(--surface-2); border-radius: 999px; padding: 5px 10px; font: 600 .84rem var(--font); cursor: pointer; color: var(--ink); }
.g-chip small { color: var(--muted); font-weight: 600; margin-inline-end: 2px; }
.g-chip:hover { border-color: var(--ink); }
.g-q { border: 0; margin: 0; padding: 0; min-width: 0; }
.g-q legend { font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.g-count { color: var(--muted); font-weight: 600; font-size: .8rem; }
button.use-tile { display: flex; flex-direction: column; gap: 2px; text-align: start; padding: 12px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--surface); font: inherit; color: var(--ink); }
button.use-tile small { color: var(--muted); font-size: .8rem; }
button.opt { padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; font: 600 .88rem var(--font); background: var(--surface); color: var(--ink); }
button.use-tile.on, button.opt.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--surface-2); }
button.use-tile:hover, button.opt:hover { border-color: var(--muted); }
.g-back { margin-top: 10px; display: inline-block; }
.g-done { margin: 0; color: var(--muted); }
.g-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 14px; }
.g-foot .use-crit { margin: 0; flex: 1; min-width: 220px; }
.guide .btn:disabled { opacity: .5; cursor: not-allowed; }
/* Fiche résultat */
.res-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; margin-top: 6px; }
@media (max-width: 760px) { .res-grid { grid-template-columns: 1fr; } }
.res-block h3 { margin: 0 0 6px; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
[dir="rtl"] .res-block h3 { letter-spacing: 0; }
.res-block p { margin: 0 0 4px; }
.res-prix b { font-size: 1.2rem; }
.res-prix small, .res-offre small { color: var(--muted); }
.res-offre { font-size: .9rem; }
ul.miss, ul.chk { margin: 0; padding: 0; list-style: none; display: grid; gap: 3px; font-size: .9rem; }
ul.miss li::before { content: "? "; color: var(--warn-ink); font-weight: 800; }
ul.chk li::before { content: "→ "; color: var(--muted); font-weight: 800; }
[dir="rtl"] ul.chk li::before { content: "← "; }
.res-rech { margin-top: 10px; font-size: .9rem; }
.res-rech p { margin: 0; }
.picked-box { margin: 0 0 18px; }

/* Aucun résultat : assouplir un critère */
.relax { text-align: start; }
.relax p { margin: 0 0 8px; }
.relax-act { display: flex; flex-wrap: wrap; gap: 8px; }
.relax-act small { color: var(--muted); font-weight: 600; }
#g-relax:not(:empty) { margin-top: 12px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 10px; background: var(--surface-2); }

/* Comparatifs express : design affiné avec photos */
.xp-grid { gap: 20px; align-items: stretch; }
.xp-card { padding: 0; gap: 0; overflow: hidden; border-radius: 16px; }
.xp-head { padding: 18px 18px 14px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border-bottom: 1px solid var(--line); }
.xp-kicker { display: inline-block; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }
[dir="rtl"] .xp-kicker { letter-spacing: 0; }
.xp-head h3 { margin: 0; font-size: 1.15rem; line-height: 1.25; }
.xp-crit { margin: 6px 0 0; font-size: .82rem; color: var(--muted); line-height: 1.4; }
.xp-card ol.xp-list { list-style: none; margin: 0; padding: 6px 0; display: block; counter-reset: none; }
.xp-card li.xp-item { display: block; padding: 12px 18px; border-top: 0; position: static; padding-inline-start: 18px; counter-increment: none; }
.xp-card li.xp-item::before { content: none; }
.xp-card li.xp-item + li.xp-item { border-top: 1px solid var(--line); }
.xp-link { display: grid; grid-template-columns: 92px 1fr auto; gap: 12px; align-items: center; text-decoration: none; color: inherit; }
.xp-link:hover .xp-id b { color: var(--primary-text); }
.xp-link:hover .xp-pic img { transform: scale(1.04); }
.xp-pic { position: relative; display: block; width: 92px; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.xp-pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.xp-pic svg { width: 80%; height: 100%; margin: 0 auto; display: block; color: var(--sil); }
.xp-rank { position: absolute; top: 5px; inset-inline-start: 5px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: var(--surface); font-size: .7rem; font-weight: 800; display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.xp-id { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.xp-brand { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
[dir="rtl"] .xp-brand { letter-spacing: 0; }
.xp-id b { font-size: .98rem; line-height: 1.2; transition: color .15s; }
.xp-id small { font-size: .76rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xp-price { display: flex; flex-direction: column; align-items: flex-end; text-align: end; gap: 2px; }
.xp-price b { font-size: .98rem; white-space: nowrap; }
.xp-price small { font-size: .72rem; color: var(--muted); max-width: 110px; line-height: 1.25; }
.xp-notes { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; padding-inline-start: 104px; }
.xp-notes li { font-size: .76rem; line-height: 1.35; padding: 4px 8px; border-radius: 6px; }
.xp-notes li.good { background: var(--good-soft); color: var(--good); }
.xp-notes li.warn { background: var(--warn-bg); color: var(--warn-ink); }
.xp-notes li.good::before { content: "▲ "; font-size: .6rem; }
.xp-notes li.warn::before { content: "! "; font-weight: 800; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.xp-commun { margin: 0; padding: 10px 18px 0; font-size: .76rem; color: var(--muted); border-top: 1px solid var(--line); }
.xp-card .xp-act { padding: 12px 18px 18px; margin-top: auto; }
@media (max-width: 1100px) and (min-width: 901px) { .xp-link { grid-template-columns: 72px 1fr; } .xp-pic { width: 72px; } .xp-price { grid-column: 2; flex-direction: row; align-items: baseline; gap: 8px; } .xp-notes { padding-inline-start: 0; } }
@media (max-width: 420px) { .xp-link { grid-template-columns: 76px 1fr auto; gap: 10px; } .xp-pic { width: 76px; } .xp-notes { padding-inline-start: 0; } }
/* Priorité sur les anciennes règles .xp-card li … */
.xp-card li.xp-item { flex-direction: initial; align-items: initial; justify-content: initial; gap: 0; }
.xp-card li.xp-item a.xp-link { display: grid; flex: none; flex-direction: initial; text-align: start; }
.xp-card li.xp-item .xp-id small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xp-card li.xp-item .xp-price small { white-space: normal; overflow: visible; text-overflow: clip; }
.xp-card li.xp-item b { white-space: normal; }
.xp-card li.xp-item .xp-price b { white-space: nowrap; }
.xp-notes li { display: flex; gap: 6px; align-items: baseline; }
.xp-notes li::before { flex: none; }
.xp-notes li.good::before { content: "✓"; font-size: .76rem; font-weight: 800; }
/* Notes : neutraliser les anciennes règles .xp-card li / li::before */
.xp-card .xp-notes li { position: static; display: flex; flex-direction: row; gap: 6px; padding: 5px 8px; border-top: 0; counter-increment: none; align-items: baseline; justify-content: flex-start; }
.xp-card .xp-notes li::before { position: static; width: auto; height: auto; background: none; display: inline; border-radius: 0; inset: auto; }
/* Grand écran : un comparatif par ligne, trois voitures côte à côte, grandes photos */
@media (min-width: 900px) {
  .xp-grid { grid-template-columns: 1fr; gap: 22px; }
  .xp-card { display: grid; grid-template-columns: 260px 1fr; grid-template-rows: 1fr auto auto; }
  .xp-head { grid-row: 1 / span 3; border-bottom: 0; border-inline-end: 1px solid var(--line); padding: 22px; display: flex; flex-direction: column; }
  .xp-head h3 { font-size: 1.3rem; }
  .xp-card ol.xp-list { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0; }
  .xp-card li.xp-item { padding: 18px; }
  .xp-card li.xp-item + li.xp-item { border-top: 0; border-inline-start: 1px solid var(--line); }
  .xp-card li.xp-item a.xp-link { grid-template-columns: 1fr auto; grid-template-areas: "pic pic" "id price"; gap: 10px 8px; align-items: start; }
  .xp-link .xp-pic { grid-area: pic; width: 100%; aspect-ratio: 16 / 10; border-radius: 12px; }
  .xp-link .xp-id { grid-area: id; }
  .xp-link .xp-price { grid-area: price; }
  .xp-rank { width: 24px; height: 24px; font-size: .78rem; top: 8px; inset-inline-start: 8px; }
  .xp-id b { font-size: 1.05rem; }
  .xp-notes { padding-inline-start: 0; }
  .xp-commun { grid-column: 2; border-top: 1px solid var(--line); padding: 10px 18px 0; }
  .xp-card .xp-act { grid-column: 2; padding: 10px 18px 16px; }
}

/* =========== Comparateur : design affiné =========== */
.picker { gap: 14px; }
.picker .slot { padding: 0 0 12px; gap: 8px; overflow: hidden; border-radius: 14px; transition: border-color .15s, box-shadow .15s; }
.picker .slot select { margin: 0 12px; width: calc(100% - 24px); }
.picker .slot:not(.filled) { border-style: dashed; background: var(--surface-2); }
.picker .slot.filled { box-shadow: var(--shadow); }
.slot-pic { position: relative; aspect-ratio: 16 / 9; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.slot-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slot-img.sil { display: grid; place-items: center; color: var(--sil); }
.slot-img.sil svg { width: 70%; }
.slot-plus { width: 44px; height: 44px; border-radius: 50%; border: 2px dashed var(--muted); color: var(--muted); display: grid; place-items: center; font-size: 1.5rem; font-weight: 300; }
.slot-x { position: absolute; top: 8px; inset-inline-end: 8px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.slot-x:hover { background: var(--ink); }
.slot-name { padding: 0 12px; display: flex; flex-direction: column; gap: 1px; min-height: 52px; }
.slot-name b { font-size: 1rem; line-height: 1.2; }
.slot-name.empty { color: var(--muted); font-weight: 700; justify-content: center; }
.slot-price { font-weight: 800; font-size: .92rem; }
.cmp-empty { padding: 22px; text-align: center; display: grid; gap: 8px; justify-items: center; }
.cmp-empty p { margin: 0; color: var(--muted); max-width: 560px; }
.cmp-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.cmp-toggle { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.cmp-toggle input { width: 18px; height: 18px; accent-color: var(--ink); }
.cmp-legend { font-size: .82rem; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.cmp-legend .dot { width: 12px; height: 12px; border-radius: 3px; background: var(--good-soft); border: 1px solid var(--good); }
.cmp-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; min-width: calc(140px + var(--n) * 170px); }
.cmp-table th, .cmp-table td { border-bottom: 1px solid var(--line); }
.cmp-table thead th { vertical-align: top; background: var(--surface); padding: 14px 12px; }
.cmp-corner { width: 160px; text-align: start; font-size: .78rem; color: var(--muted); font-weight: 700; vertical-align: bottom !important; }
.cmp-col { text-align: start; }
.cmp-head { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: inherit; }
.cmp-head:hover b { color: var(--primary-text); }
.cmp-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; background: var(--surface-2); margin-bottom: 8px; display: block; }
.cmp-img.sil { display: grid; place-items: center; color: var(--sil); }
.cmp-img.sil svg { width: 70%; }
.cmp-head b { font-size: 1rem; line-height: 1.2; }
.cmp-head small { color: var(--muted); font-weight: 500; font-size: .8rem; }
.cmp-head-price { display: block; font-weight: 800; font-size: 1.05rem; margin: 6px 0 4px; }
.cmp-rm { font-size: .8rem; margin-top: 4px; }
.cmp-table tbody th { font-weight: 600; color: var(--muted); text-align: start; font-size: .88rem; padding: 10px 12px; }
.cmp-table tbody td { padding: 10px 12px; font-size: .92rem; }
.cmp-table tbody tr:not(.group):hover td, .cmp-table tbody tr:not(.group):hover th { background: var(--surface-2); }
.cmp-table tr.same td { color: var(--muted); }
.cmp-table td.best { background: var(--good-soft) !important; color: var(--good); font-weight: 800; }
.cmp-table tr.group td { padding: 14px 12px 8px; background: var(--surface); font-size: .74rem; letter-spacing: .06em; border-bottom: 2px solid var(--ink); }
/* Première colonne fixe pendant le défilement horizontal */
.cmp-table tbody th, .cmp-corner { position: sticky; inset-inline-start: 0; z-index: 1; background: var(--surface); box-shadow: 1px 0 0 var(--line); }
.cmp-table tr.group td { position: sticky; inset-inline-start: 0; }
@media (max-width: 640px) {
  .cmp-table { min-width: calc(110px + var(--n) * 150px); }
  .cmp-corner { width: 110px; }
  .cmp-table tbody th { font-size: .8rem; padding: 8px; }
  .cmp-table tbody td { font-size: .86rem; padding: 8px; }
  .picker { grid-template-columns: 1fr 1fr; gap: 10px; }
  .slot-name b { font-size: .9rem; }
}
.cmp-corner { width: 190px; }
.cmp-table { min-width: calc(190px + var(--n) * 170px); }
.cmp-table tbody th { white-space: normal; word-break: normal; overflow-wrap: anywhere; line-height: 1.3; }
.cmp-img { aspect-ratio: 16 / 9; max-height: 120px; }
@media (max-width: 640px) { .cmp-corner { width: 112px; } .cmp-table { min-width: calc(112px + var(--n) * 150px); } .cmp-img { max-height: 80px; } }

/* Pages légales */
.legal-maj { color: var(--muted); font-size: .88rem; }
.legal-toc:not(:empty) { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin: 0 0 8px; }
.legal-toc b { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
[dir="rtl"] .legal-toc b { letter-spacing: 0; }
.legal-toc ol { margin: 8px 0 0; padding-inline-start: 22px; columns: 2; column-gap: 28px; font-size: .92rem; }
.legal-toc li { margin-bottom: 4px; break-inside: avoid; }
@media (max-width: 560px) { .legal-toc ol { columns: 1; } }
.prose.legal h2 { scroll-margin-top: 130px; }
.prose.legal li { margin-bottom: 6px; }
.legal-table { font-size: .88rem; }
.legal-table th { text-align: start; white-space: nowrap; }
.legal-table td { vertical-align: top; }
.legal-table code { font-size: .8rem; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
.todo { background: var(--warn-bg); color: var(--warn-ink); padding: 0 4px; border-radius: 4px; font-weight: 600; }

/* Catalogue : logo de la marque et intertitres par carrosserie */
.cat-title { display: flex; align-items: center; gap: 16px; }
.cat-logo { flex: none; width: 72px; height: 72px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; padding: 10px; box-shadow: var(--shadow); }
.cat-logo[hidden] { display: none; }
.cat-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
@media (prefers-color-scheme: dark) { .cat-logo img { filter: grayscale(1) invert(1); } }
@media (max-width: 560px) { .cat-logo { width: 54px; height: 54px; padding: 8px; } }
.grid > .cat-group { grid-column: 1 / -1; margin: 14px 0 -4px; font-size: 1.15rem; display: flex; align-items: baseline; gap: 10px; padding-bottom: 6px; border-bottom: 2px solid var(--ink); }
.grid > .cat-group:first-child { margin-top: 0; }
.cat-group small { font-size: .8rem; font-weight: 600; color: var(--muted); }

/* Compte dans l'en-tête */
.acct { position: relative; display: flex; }
.acct-login { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.25); color: inherit; text-decoration: none; font: 600 .88rem var(--font-display); white-space: nowrap; }
[dir="rtl"] .acct-login { font-family: var(--font-ar); }
.acct-login:hover { background: rgba(255,255,255,.08); }
.acct-login svg { width: 18px; height: 18px; }
@media (max-width: 760px) { .acct-login span { display: none; } .acct-login { padding: 8px; } }
.acct-btn { border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; }
.acct-av { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); display: grid; place-items: center; font: 800 .82rem var(--font-display); border: 2px solid rgba(255,255,255,.35); }
.acct-av.big { width: 48px; height: 48px; font-size: 1rem; border-color: var(--line); flex: none; }
.acct-menu { position: absolute; top: calc(100% + 10px); inset-inline-end: 0; width: 280px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; z-index: 50; }
.acct-menu[hidden] { display: none; }
.acct-head { display: flex; gap: 12px; align-items: center; padding: 8px 8px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.acct-head b { display: block; font-size: .98rem; }
.acct-head small { display: block; color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.acct-tag { display: inline-block; margin-top: 4px; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--primary-text); background: var(--primary-soft); padding: 2px 7px; border-radius: 6px; }
.acct-menu a, .acct-menu button { display: block; width: 100%; text-align: start; padding: 10px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font: 500 .92rem var(--font); background: none; border: 0; cursor: pointer; }
.acct-menu a:hover, .acct-menu button:hover { background: var(--surface-2); }
.acct-menu .acct-out { color: var(--bad); border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; margin-top: 4px; }

/* Fenêtre de connexion */
html.am-open { overflow: hidden; }
.am-back { position: fixed; inset: 0; z-index: 200; background: rgba(8,8,10,.62); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.am-back[hidden] { display: none; }
.am { position: relative; width: 100%; max-width: 440px; background: var(--surface); color: var(--ink); border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.35); overflow: hidden; animation: am-in .18s ease-out; margin: auto; }
@keyframes am-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .am { animation: none; } }
.am-x { position: absolute; top: 12px; inset-inline-end: 12px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; font-size: 1rem; cursor: pointer; z-index: 1; }
.am-x:hover { background: rgba(255,255,255,.18); }
.am-top { background: var(--brand); color: #fff; text-align: center; padding: 24px 24px 18px; border-bottom: 3px solid var(--primary); }
.am-top img { height: 34px; width: auto; }
.am-top h2 { margin: 10px 0 4px; font-size: 1.25rem; }
.am-top p { margin: 0; font-size: .86rem; opacity: .75; }
.am-body { padding: 18px 22px 20px; }
.am-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 16px; }
.am-tabs[hidden] { display: none; }
.am-tabs button { border: 0; background: none; padding: 9px 8px; border-radius: 9px; font: 700 .9rem var(--font-display); color: var(--muted); cursor: pointer; }
[dir="rtl"] .am-tabs button { font-family: var(--font-ar); }
.am-tabs button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.am-form { display: grid; gap: 12px; }
.am-form[hidden], .am-done[hidden] { display: none; }
.am-form h3 { margin: 0; font-size: 1.1rem; }
.am-note { margin: -4px 0 0; color: var(--muted); font-size: .88rem; }
.am-fld { display: grid; gap: 5px; }
.am-lbl { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
[dir="rtl"] .am-lbl { letter-spacing: 0; }
.am-fld small { color: var(--muted); font-size: .76rem; }
.am-in { position: relative; display: flex; align-items: center; }
.am-in > svg { position: absolute; inset-inline-start: 12px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.am-in input { width: 100%; padding: 12px 12px; padding-inline-start: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font: inherit; font-size: .95rem; }
.am-in input[type=password], .am-in input[name=password] { padding-inline-end: 84px; }
.am-in input:focus { outline: 2px solid var(--primary); outline-offset: -1px; background: var(--surface); }
.am-eye { position: absolute; inset-inline-end: 6px; border: 0; background: var(--surface); color: var(--ink); font: 600 .76rem var(--font); padding: 5px 9px; border-radius: 6px; cursor: pointer; }
.am-row { display: flex; justify-content: space-between; margin: -6px 0 -10px; position: relative; z-index: 1; order: 0; }
.am-form[data-v="in"] .am-row { order: 2; margin: -8px 0 0; justify-content: flex-end; }
.am-form[data-v="in"] .am-fld:nth-of-type(1) { order: 1; }
.am-form[data-v="in"] .am-fld:nth-of-type(2) { order: 3; }
.am-form[data-v="in"] .am-msg { order: 4; }
.am-form[data-v="in"] .am-btn { order: 5; }
.am-form[data-v="in"] .am-sep { order: 6; }
.am-form[data-v="in"] .am-google { order: 7; }
.am-form[data-v="in"] .am-foot { order: 8; }
.am-link { border: 0; background: none; padding: 0; color: var(--muted); font: 600 .84rem var(--font); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.am-link:hover { color: var(--ink); }
.am-link.red { color: var(--primary-text); text-decoration: none; font-weight: 700; }
.am-btn { width: 100%; border: 0; border-radius: 11px; padding: 13px; background: var(--primary); color: var(--primary-ink); font: 800 .95rem var(--font-display); letter-spacing: .02em; cursor: pointer; box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 35%, transparent); }
[dir="rtl"] .am-btn { font-family: var(--font-ar); letter-spacing: 0; }
.am-btn:hover { filter: brightness(1.06); }
.am-btn:disabled { opacity: .6; cursor: wait; }
.am-btn.ghost { background: var(--surface-2); color: var(--ink); box-shadow: none; border: 1px solid var(--line); }
.am-sep { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.am-sep::before, .am-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.am-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 11px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 .92rem var(--font); cursor: pointer; }
.am-google svg { width: 20px; height: 20px; }
.am-google:hover { background: var(--surface-2); }
.am-foot { margin: 2px 0 0; text-align: center; color: var(--muted); font-size: .88rem; }
.am-type { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.am-type label { position: relative; }
.am-type input { position: absolute; opacity: 0; }
.am-type span { display: block; text-align: center; padding: 9px; border: 1.5px solid var(--line); border-radius: 10px; font-weight: 600; font-size: .9rem; cursor: pointer; }
.am-type input:checked + span { border-color: var(--ink); background: var(--surface-2); }
.am-type input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.am-pro { display: grid; gap: 12px; }
.am-pro[hidden] { display: none; }
.am-check { display: flex; gap: 8px; align-items: flex-start; font-size: .84rem; color: var(--muted); }
.am-check input { margin-top: 3px; accent-color: var(--primary-text); }
.am-check a { color: var(--ink); }
.am-alert { padding: 9px 12px; border-radius: 9px; font-size: .86rem; }
.am-alert.err { background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); }
.am-alert.ok { background: var(--good-soft); color: var(--good); }
.am-msg:empty { display: none; }
.am-done { text-align: center; display: grid; gap: 10px; justify-items: center; padding: 8px 0; }
.am-done h3 { margin: 0; }
.am-done p { margin: 0; color: var(--muted); }
.am-done-ico { width: 56px; height: 56px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-text); display: grid; place-items: center; font-size: 1.6rem; }
@media (max-width: 480px) { .am-back { padding: 0; place-items: end center; } .am { max-width: none; border-radius: 18px 18px 0 0; } .am-body { padding: 16px; } }

.am-g[hidden] { display: none !important; }

/* Fiche modèle : versions en cartes épurées */
.vcards { display: grid; gap: 10px; margin-top: 14px; }
.vgroup { margin: 14px 0 2px; display: flex; align-items: center; gap: 8px; font-size: .95rem; }
.vgroup:first-child { margin-top: 0; }
.vgroup small { color: var(--muted); font-weight: 600; font-size: .8rem; }
.vcard { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; transition: border-color .15s, box-shadow .15s; }
.vcard:hover { border-color: var(--muted); box-shadow: var(--shadow); }
.vcard.picked { border-color: var(--good); box-shadow: inset 4px 0 0 var(--good); }
[dir="rtl"] .vcard.picked { box-shadow: inset -4px 0 0 var(--good); }
.vc-main { min-width: 0; }
.vc-main h4 { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.vc-ok { color: var(--good); }
.vc-moto { margin: 2px 0 0; color: var(--muted); font-size: .84rem; }
.vc-facts { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.vc-facts span { font-size: .78rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink); }
.vc-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: end; }
.vc-price { display: flex; flex-direction: column; align-items: flex-end; }
.vc-price b { font-size: 1.2rem; font-weight: 800; color: var(--price); white-space: nowrap; }
.vc-price b.na { font-size: .9rem; color: var(--muted); font-weight: 600; }
.vc-price s { color: var(--muted); font-size: .82rem; }
.vc-price small { color: var(--muted); font-size: .74rem; }
.vc-cmp { font-size: .84rem; font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 1.5px solid var(--primary); }
.vc-cmp:hover { color: var(--primary-text); }
@media (max-width: 560px) {
  .vcard { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px; }
  .vc-side { flex-direction: row; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 10px; }
  .vc-price { align-items: flex-start; }
}

/* Fiche modèle : sélecteur de version + fiches par thème */
.vpick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 26px 0 4px; }
.vpick-l { font-size: .82rem; font-weight: 700; color: var(--muted); margin-inline-end: 4px; }
.vchip { border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 6px 12px; font: 600 .84rem var(--font); cursor: pointer; }
.vchip:hover { border-color: var(--muted); }
.vchip.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; align-items: start; }
.spec-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px 8px; }
.spec-card h3 { margin: 0 0 6px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
[dir="rtl"] .spec-card h3 { letter-spacing: 0; }
.spec-card dl { margin: 0; }
.spec-card dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 9px 0; border-top: 1px solid var(--line); }
.spec-card dl > div:first-child { border-top: 0; }
.spec-card dt { color: var(--muted); font-size: .9rem; }
.spec-card dd { margin: 0; font-weight: 700; text-align: end; font-size: .94rem; }
.spec-cmp { margin: 14px 0 0; font-size: .9rem; }
.eq-check { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.eq-check li { display: flex; gap: 10px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; }
.eq-check .ck { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--good-soft); color: var(--good); display: grid; place-items: center; font-size: .78rem; font-weight: 800; }
.eq-check b { display: block; font-size: .92rem; font-weight: 600; }
.eq-check small { display: block; color: var(--muted); font-size: .82rem; margin-top: 1px; }
.eq-cat { border-radius: 14px; }
.eq-cat ul { list-style: none; padding: 0; }
.eq-cat li { position: relative; padding-inline-start: 20px; }
.eq-cat li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--good); font-weight: 800; }
.mes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.mes-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.mes-tile small { color: var(--muted); font-size: .84rem; }
.mes-tile b { font-size: 1.4rem; font-weight: 800; }
.mes-tile.na b { font-size: .95rem; font-weight: 600; color: var(--muted); }
@media (max-width: 560px) { .spec-grid { grid-template-columns: 1fr; } .vpick { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; } .vchip { flex: none; } }

/* =========== Comparateur v3 : moderne et épuré =========== */
/* Cases de sélection compactes */
.picker { gap: 12px; }
.picker .slot { padding: 0 0 12px; border-radius: 16px; border: 1px solid var(--line); box-shadow: none; }
.picker .slot.filled { box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.picker .slot:not(.filled) { background: transparent; border: 1.5px dashed var(--line); }
.slot-pic { aspect-ratio: 16 / 8; }
.slot-name { min-height: 0; padding-top: 2px; }
.slot-name.empty { padding: 4px 12px; font-size: .9rem; }
.picker select { border-radius: 10px; font-size: .86rem; padding: 8px 10px; background: var(--surface-2); border-color: transparent; }
.picker .slot:not(.filled) select { background: var(--surface); border-color: var(--line); }
/* Grille de comparaison */
.cx-scroll { margin: 0 -2px; }
.cx { --lab: 200px; display: grid; gap: 14px; }
.cx-head, .cx-row { display: grid; grid-template-columns: var(--lab) repeat(var(--n), minmax(0, 1fr)); }
.cx-head { position: sticky; top: 108px; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); padding: 10px 0; gap: 12px; border-bottom: 1px solid var(--line); }
.cx-corner { align-self: end; font-size: .78rem; font-weight: 700; color: var(--muted); padding-bottom: 6px; }
.cx-car { position: relative; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cx-car-link { display: flex; flex-direction: column; gap: 1px; text-decoration: none; color: inherit; min-width: 0; }
.cx-car-link:hover b { color: var(--primary-text); }
.cx-img { width: 100%; aspect-ratio: 16 / 9; max-height: 96px; object-fit: cover; border-radius: 10px; margin-bottom: 6px; background: var(--surface-2); display: block; }
.cx-img.sil { display: grid; place-items: center; color: var(--sil); }
.cx-img.sil svg { width: 70%; }
.cx-car b { font-size: .98rem; line-height: 1.2; }
.cx-car small { color: var(--muted); font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-price { font-weight: 800; font-size: 1.05rem; margin-top: 2px; }
.cx-x { position: absolute; top: 6px; inset-inline-end: 6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; font-size: .9rem; line-height: 1; z-index: 1; }
.cx-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.cx-badges span { font-size: .68rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--good-soft); color: var(--good); }
.cx-sec { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 6px 0; overflow: hidden; }
.cx-sec > h3 { margin: 0; padding: 12px 16px 8px; font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
[dir="rtl"] .cx-sec > h3 { letter-spacing: 0; }
.cx-row { gap: 12px; padding: 0 16px; }
.cx-row > div { padding: 10px 0; border-top: 1px solid var(--line); font-size: .92rem; min-width: 0; }
.cx-sec > h3 + .cx-row > div { border-top: 0; }
.cx-lab { color: var(--muted); font-size: .86rem !important; }
.cx-val { font-weight: 600; overflow-wrap: anywhere; }
.cx-val.best { color: var(--good); font-weight: 800; }
.cx-val.best::after { content: " ●"; font-size: .6rem; vertical-align: middle; }
.cx-row.same .cx-val { color: var(--muted); font-weight: 500; }
.cx-row:hover > div { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.cx-ck { color: var(--good); font-weight: 800; margin-inline-end: 5px; }
.cx-na { color: var(--muted); font-weight: 400; font-size: .82rem; }
.cx-opts { border-color: var(--ink); }
.cx-opts-note { margin: -2px 16px 6px; color: var(--muted); font-size: .82rem; }
.cx-optrow > div { border-top: 0 !important; }
.cx-optcol ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.cx-optcol li { position: relative; padding-inline-start: 16px; font-size: .84rem; font-weight: 500; line-height: 1.35; }
.cx-optcol li::before { content: "+"; position: absolute; inset-inline-start: 0; color: var(--primary-text); font-weight: 800; }
.cx-plus { display: inline-block; font-size: .8rem; background: var(--primary-soft); color: var(--primary-text); padding: 3px 9px; border-radius: 999px; }
.cx-optcol details { margin-top: 8px; font-size: .82rem; }
.cx-optcol summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.cx-full ul li::before { content: "·"; color: var(--muted); }
@media (max-width: 900px) {
  .cx-scroll { overflow-x: auto; padding-bottom: 6px; }
  .cx { --lab: 112px; min-width: calc(112px + var(--n) * 160px); }
  .cx-head { position: static; backdrop-filter: none; }
  .cx-lab, .cx-corner { position: sticky; inset-inline-start: 0; background: var(--surface); z-index: 1; }
  .cx-corner { background: var(--bg); }
}

.cx-yes { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--good-soft); color: var(--good); font-weight: 800; font-size: .8rem; }
.cx-no { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-size: .72rem; }
.cx-commun { display: flex; flex-wrap: wrap; gap: 6px; }
.cx-commun span { font-size: .78rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.cx-img { height: 72px; max-height: none; aspect-ratio: auto; }
@media (max-width: 900px) { .cx-img { height: 64px; } }

/* =========== Promotions : design épuré =========== */
.pr-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 6px 0 18px; }
.pr-stats > div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.pr-stats b { font: 800 1.35rem var(--font-display); }
.pr-stats span { color: var(--muted); font-size: .82rem; }
.pr-filters { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.pr-types { display: flex; flex-wrap: wrap; gap: 6px; }
.pr-chip { border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 7px 13px; font: 600 .86rem var(--font); cursor: pointer; }
.pr-chip small { color: var(--muted); font-weight: 600; margin-inline-start: 2px; }
.pr-chip:hover:not(:disabled) { border-color: var(--muted); }
.pr-chip.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.pr-chip.on small { color: inherit; opacity: .7; }
.pr-chip:disabled { opacity: .4; cursor: default; }
.pr-ctrls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.pr-sel { display: flex; flex-direction: column; gap: 4px; font-size: .74rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
[dir="rtl"] .pr-sel { letter-spacing: 0; }
.pr-sel select { padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 500 .9rem var(--font); text-transform: none; letter-spacing: 0; min-width: 190px; }
.pr-ctrls .promo-count { padding-bottom: 9px; margin-inline-start: 4px; }
.promo-grid { gap: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.pk { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; }
.pk:hover { box-shadow: 0 12px 30px rgba(0,0,0,.10); transform: translateY(-3px); border-color: transparent; }
.pk-pic { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.pk-pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.pk:hover .pk-pic img { transform: scale(1.04); }
.pk-sil { display: grid; place-items: center; height: 100%; color: var(--sil); }
.pk-sil svg { width: 70%; }
.pk-badge { position: absolute; top: 12px; inset-inline-start: 12px; display: inline-flex; align-items: baseline; gap: 6px; background: var(--primary); color: var(--primary-ink); padding: 6px 11px; border-radius: 10px; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.pk-badge b { font: 800 .95rem var(--font-display); }
.pk-badge small { font-weight: 700; font-size: .76rem; opacity: .85; }
.pk-badge.soft { background: rgba(17,17,19,.78); backdrop-filter: blur(6px); font: 700 .8rem var(--font-display); }
.pk-cond { position: absolute; top: 12px; inset-inline-end: 12px; }
.pk-body { padding: 14px 16px 14px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.pk-brand { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
[dir="rtl"] .pk-brand { letter-spacing: 0; }
.pk-body h3 { margin: 0; font-size: 1.12rem; line-height: 1.25; }
.pk-link { color: inherit; text-decoration: none; }
.pk-link::after { content: ""; position: absolute; inset: 0; }
.pk-ver { color: var(--muted); font-size: .82rem; }
.pk-price { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.pk-price b { font: 800 1.3rem var(--font-display); color: var(--ink); }
.pk-price s { color: var(--muted); font-size: .86rem; }
.pk-txt { margin: 8px 0 0; font-size: .88rem; color: var(--ink); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pk-types { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.pk-types:empty { display: none; }
.pk-types span { font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--good-soft); color: var(--good); }
.pk-foot { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: .78rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 12px; }
.pk-end.soon { color: var(--warn-ink); background: var(--warn-bg); padding: 2px 8px; border-radius: 999px; font-weight: 700; }
.pk-off { position: relative; z-index: 1; margin-inline-start: auto; color: var(--ink); font-weight: 700; text-decoration: none; border-bottom: 1.5px solid var(--primary); }
.pk-off:hover { color: var(--primary-text); }
.pk .tag.cat { position: relative; z-index: 1; }
@media (max-width: 640px) {
  .pr-filters { flex-direction: column; align-items: stretch; }
  .pr-types { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .pr-chip { flex: none; }
  .pr-ctrls { display: grid; grid-template-columns: 1fr 1fr; }
  .pr-sel select { min-width: 0; width: 100%; }
  .pr-ctrls .promo-count { grid-column: 1 / -1; padding: 0; }
  .pr-stats { grid-template-columns: 1fr 1fr; }
}

/* =========== Charte noir, blanc et or =========== */
.btn:not(.secondary):not(.ghost):not(.danger) { background-image: var(--gold-grad); color: var(--primary-ink); border-color: transparent; box-shadow: 0 2px 10px rgba(201,154,46,.25); }
.btn:not(.secondary):not(.ghost):not(.danger):hover { filter: brightness(1.05); }
.am-btn { background-image: var(--gold-grad); color: var(--primary-ink); box-shadow: 0 6px 18px rgba(201,154,46,.3); }
.am-btn.ghost { background-image: none; }
.acct-av { background-image: var(--gold-grad); color: var(--primary-ink); }
.pk-badge:not(.soft), .promo-badge { background-image: var(--gold-grad); color: var(--primary-ink); }
.hero h1 em { color: transparent; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; }
.tagline .sep { background: var(--gold-grad) !important; }
.am-top { border-bottom-color: #d4a637; }
.cx-plus, .acct-tag { color: var(--primary-text); }
.am-link.red, .link { color: var(--primary-text); }
.am-alert.err { background: color-mix(in srgb, var(--bad) 12%, transparent); }
.logo img.mark { height: 40px; width: auto; }
.foot-logo { width: 190px; height: auto; }

/* Intro animée (remplace la vidéo) : emblème, reflet doré, nom et signature */
.intro2 { position: fixed; inset: 0; z-index: 300; background: radial-gradient(60% 50% at 50% 45%, #15130e 0%, #000 70%); display: grid; place-items: center; overflow: hidden; transition: opacity .5s; }
.intro2.out { opacity: 0; pointer-events: none; }
.intro2-in { width: min(78vw, 640px); display: grid; justify-items: center; gap: 4vh; }
.intro2-emb { position: relative; width: 100%; }
.intro2-emb img { width: 100%; display: block; opacity: 0; transform: scale(.92); filter: blur(6px); animation: i2-in 1.1s .15s cubic-bezier(.2,.8,.2,1) forwards; }
.intro2-shine { position: absolute; inset: 0; -webkit-mask: url(brand/intro-emblem.png) center / contain no-repeat; mask: url(brand/intro-emblem.png) center / contain no-repeat; background: linear-gradient(105deg, transparent 35%, rgba(255,240,190,.95) 50%, transparent 65%); background-size: 250% 100%; background-position: 120% 0; animation: i2-shine 1.3s 1.1s ease-in-out forwards; }
.intro2-txt { width: 88%; opacity: 0; transform: translateY(14px); animation: i2-up .8s 1.5s ease-out forwards; }
.intro2-txt img { width: 100%; display: block; }
.intro2-line { height: 2px; width: 0; background: var(--gold-grad); animation: i2-line 1s 1.2s ease-out forwards; margin-top: -2vh; }
.intro2-ctl { position: absolute; bottom: 24px; inset-inline-end: 24px; }
.intro2-ctl button { border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: #fff; font: 600 .86rem var(--font); padding: 8px 14px; border-radius: 999px; cursor: pointer; }
@keyframes i2-in { to { opacity: 1; transform: none; filter: none; } }
@keyframes i2-shine { to { background-position: -120% 0; } }
@keyframes i2-up { to { opacity: 1; transform: none; } }
@keyframes i2-line { to { width: 60%; } }
@media (prefers-reduced-motion: reduce) { .intro2 * { animation-duration: .01s !important; animation-delay: 0s !important; } }

/* Onglets de l'accueil : un seul panneau visible (corrige l'affichage simultané) */
#finder[hidden], #guide[hidden] { display: none !important; }

/* =========== Guide « Aidez-moi à choisir » : design épuré =========== */
.guide { padding: 22px 24px; gap: 16px; border-radius: 18px; }
.g-prog { height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin-bottom: 16px; }
.g-prog span { display: block; height: 100%; background: var(--gold-grad); border-radius: 4px; transition: width .35s ease; }
.g-q legend { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: 16px; }
.g-count { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--primary-text); }
[dir="rtl"] .g-count { letter-spacing: 0; }
.g-qt { font: 700 1.25rem var(--font-display); color: var(--ink); line-height: 1.25; }
[dir="rtl"] .g-qt { font-family: var(--font-ar); }
.use-tiles { grid-template-columns: repeat(5, 1fr); gap: 12px; }
@media (max-width: 980px) { .use-tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .use-tiles { grid-template-columns: 1fr 1fr; gap: 10px; } }
button.use-tile { position: relative; gap: 4px; padding: 16px 14px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color .15s, box-shadow .15s, transform .15s; }
button.use-tile:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.06); }
button.use-tile b { font-size: 1rem; margin-top: 8px; }
button.use-tile small { line-height: 1.35; }
.ut-ico { width: 42px; height: 42px; border-radius: 12px; background: var(--surface-2); color: var(--ink); display: grid; place-items: center; transition: background .15s, color .15s; }
.ut-ico svg { width: 24px; height: 24px; }
.ut-ok { position: absolute; top: 10px; inset-inline-end: 10px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 800; background: var(--gold-grad); color: var(--primary-ink); opacity: 0; transform: scale(.6); transition: opacity .15s, transform .15s; }
button.use-tile.on { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), 0 8px 20px rgba(201,154,46,.15); background: var(--surface); }
button.use-tile.on .ut-ico { background: var(--gold-grad); color: var(--primary-ink); }
button.use-tile.on .ut-ok, .ut-ok.on { opacity: 1; transform: none; }
.ut-ok.on { position: static; display: inline-grid; margin-inline-end: 6px; }
.seg { gap: 8px; }
button.opt { padding: 10px 16px; border-radius: 12px; font-size: .9rem; transition: border-color .15s, background .15s; }
button.opt:hover { border-color: var(--primary); }
button.opt.on { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); color: var(--ink); }
.g-summary { gap: 8px; }
.g-chip { border-radius: 10px; padding: 6px 10px; background: var(--surface-2); border-color: transparent; }
.g-chip:hover { border-color: var(--primary); }
.g-back { margin-top: 14px; font-size: .86rem; }
.g-done { display: flex; align-items: center; font-weight: 600; color: var(--ink); }
.g-foot { border-top: 1px solid var(--line); padding-top: 16px; }
.g-foot .use-crit { color: var(--muted); }
.g-foot .btn { padding: 12px 22px; border-radius: 12px; font-weight: 700; }
/* Neutralise l'ancienne règle « .use-tile span { height: 100% } » */
button.use-tile .ut-ico { height: 42px; flex: none; padding: 0; border: 0; }
button.use-tile .ut-ok { height: 22px; padding: 0; border: 0; }
@media (max-width: 560px) {
  .use-tiles { grid-template-columns: 1fr; gap: 8px; }
  button.use-tile { display: grid; grid-template-columns: 42px 1fr; column-gap: 12px; align-items: center; padding: 12px 14px; }
  button.use-tile .ut-ico { grid-row: span 2; }
  button.use-tile b { margin-top: 0; }
  button.use-tile:hover { transform: none; }
}
button.use-tile .ut-ico { background: var(--surface-2); border-radius: 12px; }
button.use-tile.on .ut-ico { background: var(--gold-grad); }
button.use-tile .ut-ok { background: var(--gold-grad); border-radius: 50%; }

/* =========== Recherche « Rechercher une voiture » : design épuré =========== */
.finder { padding: 22px 24px; border-radius: 18px; }
.finder-label { font-size: .74rem; letter-spacing: .07em; color: var(--primary-text); margin-bottom: 12px; }
/* Carrosseries : une seule ligne, défilement doux si l'écran est étroit */
.bodies { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(96px, 1fr); grid-template-columns: none; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px 2px 8px; margin: 0 -2px 18px; scrollbar-width: thin; }
.body-btn { position: relative; scroll-snap-align: start; gap: 6px; padding: 14px 8px 12px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); font-size: .84rem; transition: border-color .15s, box-shadow .15s, transform .15s; }
.body-btn svg { width: 70px; height: 30px; color: var(--muted); transition: color .15s; }
.body-btn:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.06); }
.body-btn.on { border-color: var(--primary); background: var(--primary-soft); color: var(--ink); box-shadow: 0 0 0 1px var(--primary); }
.body-btn.on svg { color: var(--primary-text); }
.body-btn.on::after { content: "✓"; position: absolute; top: 6px; inset-inline-end: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--gold-grad); color: var(--primary-ink); font-size: .62rem; font-weight: 800; display: grid; place-items: center; }
/* Champs : sobres, sans bordure marquée */
.finder-row { gap: 12px; align-items: end; padding-top: 16px; border-top: 1px solid var(--line); }
.finder .fld span { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
[dir="rtl"] .finder .fld span { letter-spacing: 0; }
.finder .fld select { appearance: none; -webkit-appearance: none; height: 48px; padding: 0 40px 0 14px; border-radius: 12px; border: 1.5px solid transparent; background-color: var(--surface-2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6b75' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; font-weight: 500; cursor: pointer; transition: border-color .15s, background-color .15s; }
[dir="rtl"] .finder .fld select { padding: 0 14px 0 40px; background-position: left 14px center; }
.finder .fld select:hover { border-color: var(--line); background-color: var(--surface); }
.finder .fld select:focus { outline: none; border-color: var(--primary); background-color: var(--surface); }
.finder .fld select:disabled { opacity: .55; cursor: not-allowed; }
.finder .btn { height: 48px; padding: 0 26px; border-radius: 12px; font-weight: 700; }
.finder details.lex { margin-top: 14px; }
.finder details.lex summary { text-decoration: none; color: var(--primary-text); font-size: .86rem; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.finder details.lex summary::-webkit-details-marker { display: none; }
.finder details.lex summary::before { content: "i"; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid currentColor; display: inline-grid; place-items: center; font: 700 .7rem var(--font); }
.finder details.lex[open] .lex-list { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; }
@media (min-width: 1000px) { .bodies { overflow: visible; grid-auto-flow: row; grid-template-columns: repeat(9, 1fr); } }
@media (max-width: 560px) { .finder { padding: 18px 16px; } .bodies { grid-auto-columns: 88px; } .body-btn svg { width: 60px; } }

/* =========== Bornes de recharge : design épuré =========== */
.bo-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 18px; }
.bo-filters .pr-sel select { appearance: none; -webkit-appearance: none; height: 46px; padding: 0 40px 0 14px; background-color: var(--surface); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6b75' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; border-radius: 12px; }
[dir="rtl"] .bo-filters .pr-sel select { padding: 0 14px 0 40px; background-position: left 14px center; }
.bo-switch { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-weight: 600; font-size: .88rem; cursor: pointer; }
.bo-switch input { position: absolute; opacity: 0; pointer-events: none; }
.bo-switch .sw { position: relative; width: 36px; height: 20px; border-radius: 20px; background: var(--line); transition: background .2s; flex: none; }
.bo-switch .sw::after { content: ""; position: absolute; top: 2px; inset-inline-start: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.bo-switch input:checked + .sw { background: var(--gold-grad); }
.bo-switch input:checked + .sw::after { transform: translateX(16px); }
[dir="rtl"] .bo-switch input:checked + .sw::after { transform: translateX(-16px); }
.bo-switch input:focus-visible + .sw { outline: 2px solid var(--primary); outline-offset: 2px; }
.bo-moi { height: 46px; border-radius: 12px; gap: 8px; font-weight: 700; }
.bo-moi svg { width: 18px; height: 18px; }
.bo-moi.on { border-color: var(--primary); color: var(--primary-text); }
.bo-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.bo-mapwrap { position: relative; }
.bo-map { height: min(72vh, 620px); border-radius: 18px; overflow: hidden; z-index: 0; border: 1px solid var(--line); box-shadow: var(--shadow); }
.bo-legend { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; margin: 0; padding: 7px 12px; gap: 4px 14px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(6px); border-radius: 10px; box-shadow: var(--shadow); font-size: .78rem; color: var(--ink); }
.bo-legend .dot.fast { background: #c99a2e; }
.bo-side { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; display: flex; flex-direction: column; height: min(72vh, 620px); overflow: hidden; }
.bo-side-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.bo-side-head h2 { margin: 0 !important; font-size: 1rem; }
.bo-side-head .promo-count { padding: 0; font-size: .82rem; }
.bo-side .bo-list { display: flex; flex-direction: column; gap: 0; overflow-y: auto; padding: 6px; }
.bo-item { border: 0 !important; border-radius: 12px; background: transparent; box-shadow: none; padding: 11px 10px; transition: background .15s; }
.bo-item:hover { background: var(--surface-2); }
.bo-item.on { background: var(--primary-soft); }
.bo-item b[dir] { font-size: .92rem; }
.bo-kw b { font-size: .82rem; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink); }
.bo-kw b.fast { background: var(--gold-grad); color: var(--primary-ink); }
.bo-kw small { margin-top: 3px; }
.bo-pop .btn { color: var(--primary-ink); }
.leaflet-popup-content-wrapper { border-radius: 14px; }
@media (max-width: 900px) {
  .bo-layout { grid-template-columns: 1fr; }
  .bo-side { height: auto; max-height: 520px; }
  .bo-map { height: 60vh; }
}
@media (max-width: 560px) {
  .bo-filters { display: grid; grid-template-columns: 1fr 1fr; }
  .bo-filters .pr-sel select { min-width: 0; width: 100%; }
  .bo-switch, .bo-moi { grid-column: 1 / -1; justify-content: center; }
  .bo-legend { position: static; margin-bottom: 8px; }
}
@media (max-width: 560px) { .bo-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; } .bo-stats > div { padding: 10px 12px; } .bo-stats b { font-size: 1.15rem; } .bo-stats span { font-size: .74rem; } .bo-legend { display: flex; justify-content: center; background: none; box-shadow: none; padding: 0; } }

/* =========== Outils : design épuré =========== */
.tl-page { max-width: 1120px; }
.tl-hub { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 8px 0 28px; }
@media (max-width: 860px) { .tl-hub { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .tl-hub { grid-template-columns: 1fr; } }
.tl-tile { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s, box-shadow .15s; }
.tl-tile:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.06); }
.tl-tile b { display: block; font-size: .95rem; line-height: 1.25; }
.tl-tile small { color: var(--muted); font-size: .8rem; }
.tl-tile em { position: absolute; top: 8px; inset-inline-end: 8px; font-style: normal; font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 2px 7px; border-radius: 999px; background: var(--gold-grad); color: var(--primary-ink); }
.tl-ico { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--surface-2); color: var(--primary-text); display: grid; place-items: center; }
.tl-ico svg { width: 22px; height: 22px; }
.tl-ico.big { width: 48px; height: 48px; background: var(--gold-grad); color: var(--primary-ink); }
.tl { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; margin-bottom: 18px; scroll-margin-top: 120px; }
.tl-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.tl-head h2 { margin: 0; font-size: 1.3rem; }
.tl-head p { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }
.tl-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 860px) { .tl-body { grid-template-columns: 1fr; } }
.tl-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
@media (max-width: 520px) { .tl-form { grid-template-columns: 1fr; } }
.tl-f { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.tl-f > span:first-child { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
[dir="rtl"] .tl-f > span:first-child { letter-spacing: 0; }
.tl-in { position: relative; display: flex; align-items: center; }
.tl-in input, .tl-f select { width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; border: 1.5px solid transparent; background: var(--surface-2); color: var(--ink); font: 500 .98rem var(--font); }
.tl-in input { padding-inline-end: 64px; }
.tl-in i { position: absolute; inset-inline-end: 12px; font-style: normal; font-size: .8rem; font-weight: 600; color: var(--muted); pointer-events: none; }
.tl-in input:focus, .tl-f select:focus { outline: none; border-color: var(--primary); background: var(--surface); }
.tl-pick { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
@media (max-width: 520px) { .tl-pick { grid-template-columns: 1fr; } }
.tl-sub { grid-column: 1 / -1; margin: 6px 0 -4px; font-weight: 700; font-size: .88rem; }
.tl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tl-f:has(.tl-chips) { grid-column: 1 / -1; }
.tl-chips button { border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 12px; font: 600 .84rem var(--font); cursor: pointer; color: var(--ink); }
.tl-chips button.on { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }
.tl-res { position: sticky; top: 120px; background: var(--brand); color: #fff; border-radius: 16px; padding: 20px; min-height: 140px; display: flex; flex-direction: column; gap: 6px; }
.tl-res-l { color: rgba(255,255,255,.65); font-size: .8rem; font-weight: 600; }
.tl-big { font: 800 2rem var(--font-display); line-height: 1.1; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tl-big small { font-size: .9rem; color: rgba(255,255,255,.65); -webkit-text-fill-color: rgba(255,255,255,.65); margin-inline-start: 4px; }
.tl-rows { margin: 10px 0 0; }
.tl-rows > div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; }
.tl-rows dt { color: rgba(255,255,255,.7); }
.tl-rows dd { margin: 0; font-weight: 700; text-align: end; }
.tl-empty { margin: auto 0; color: rgba(255,255,255,.65); font-size: .9rem; }
.tl-cta { margin-top: 12px; width: 100%; }
.tl-bars { display: grid; gap: 8px; margin-top: 12px; }
.tl-bar { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 8px; font-size: .8rem; }
.tl-bar span { color: rgba(255,255,255,.75); }
.tl-bar i { height: 8px; border-radius: 4px; background: var(--gold-grad); }
.tl-bar b { white-space: nowrap; }
.tl-split { height: 10px; border-radius: 6px; background: rgba(255,255,255,.18); overflow: hidden; margin-top: 12px; }
.tl-split i { display: block; height: 100%; background: var(--gold-grad); }
.tl-legend { display: flex; gap: 14px; margin: 6px 0 0; font-size: .76rem; color: rgba(255,255,255,.7); }
.tl-legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-inline-end: 5px; vertical-align: middle; }
.tl-legend .a::before { background: #d4a637; }
.tl-legend .b::before { background: rgba(255,255,255,.3); }
.tl-warn { margin: 10px 0 0; font-size: .8rem; color: #f2cf74; }
.tl-ok { margin: 6px 0 0; font-size: .86rem; color: #9fe0c2; }
.tl-note { margin: 14px 0 0; font-size: .82rem; color: var(--muted); }

.tl-tile:has(em) { padding-inline-end: 78px; }

/* Corrections : attribut hidden toujours respecté, portée des chiffres clés, compteurs */
[hidden] { display: none !important; }
.kf-scope { margin: 6px 0 0; font-size: .78rem; color: var(--muted); }
.kf-scope:empty { display: none; }
.kf-all { font-size: .8rem; margin-top: 4px; }
#side .check.zero { opacity: .45; }
/* Bouton « Voir l'intro » discret : la recherche reste l'action principale */
.intro-btn { background: transparent !important; background-image: none !important; color: rgba(255,255,255,.75) !important; border: 1px solid rgba(255,255,255,.25) !important; box-shadow: none !important; font-weight: 600; padding: 6px 12px; font-size: .8rem; }
.intro-btn:hover { color: #fff !important; border-color: rgba(255,255,255,.5) !important; }
/* Comparateur : pas de seconde rangée de photos dans l'en-tête */
.cx-head .cx-img { display: none; }
.cx-head { padding: 12px 0; }
/* Accueil mobile plus court */
@media (max-width: 640px) {
  #home-brands .logo-tile:nth-child(n+13) { display: none; }
  .xp-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 6px; }
  .xp-card { flex: 0 0 88%; scroll-snap-align: start; }
}

.xp-method { display: inline-block; margin-top: 8px; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px dashed var(--line); }
.tl-search { width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; border: 1.5px solid transparent; background: var(--surface-2); color: var(--ink); font: 500 .98rem var(--font); }
.tl-search:focus { outline: none; border-color: var(--primary); background: var(--surface); }
