@import url("../fonts/fonts.css");

/* =====================================================================
   PikaRadar — feuille de style principale
   Principes : fond clair, aplats francs (bleu/jaune Pokémon), typographie
   forte, angles nets, pas de bordures colorées décoratives ni de pilules.
   ===================================================================== */

:root {
    --navy: #0d1f45;
    --navy-2: #13295a;
    --blue: #2a64c5;
    --blue-2: #1f4f9f;
    --blue-soft: #e8eefa;
    --yellow: #ffcb05;
    --yellow-2: #f0b900;
    --red: #e3350d;
    --ink: #121826;
    --ink-2: #2c3445;
    --muted: #5d6678;
    --line: #dfe3ea;
    --line-2: #eceff4;
    --bg: #f3f4f7;
    --white: #fff;
    --up: #0a8443;
    --up-bg: #e3f4ea;
    --down: #cf2a24;
    --down-bg: #fbe7e6;
    --flat: #6b7280;

    /* couleurs éditoriales (types Pokémon) */
    --t-fire: #e8571f;
    --t-water: #2a64c5;
    --t-grass: #2f8f46;
    --t-psy: #7d4fc4;
    --t-elec: #e9b400;
    --t-dark: #2b2f3a;

    --font-head: "Archivo", "Arial Narrow", Arial, sans-serif;
    --font-body: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif;
    --radius: 4px;
    --wrap: 1280px;
    --gutter: 24px;
    --shadow: 0 1px 2px rgba(13, 31, 69, .06), 0 4px 16px rgba(13, 31, 69, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--bg);
    font-variant-numeric: tabular-nums;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-2); text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-head); font-stretch: 88%; line-height: 1.12; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 4.2vw, 48px); font-weight: 850; }
h2 { font-size: clamp(23px, 2.6vw, 32px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 750; }
p { margin: 0 0 1em; }
small, .small { font-size: 14px; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 860px; }
.section { padding: 48px 0; }
.section-tight { padding: 28px 0; }
.bg-white { background: var(--white); }
.bg-navy { background: var(--navy); color: #fff; }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: #fff; }
.stack > * + * { margin-top: 16px; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.flex { display: flex; gap: 12px; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- Boutons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font-head); font-stretch: 92%; font-weight: 750; font-size: 16px;
    padding: 11px 20px; border-radius: var(--radius); border: 0; cursor: pointer;
    background: var(--navy); color: #fff; text-decoration: none; line-height: 1.2;
    transition: background .15s, transform .05s;
}
.btn:hover { background: var(--navy-2); color: #fff; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-yellow:hover { background: var(--yellow-2); color: var(--navy); }
.btn-blue { background: var(--blue); }
.btn-blue:hover { background: var(--blue-2); }
.btn-light { background: var(--white); color: var(--navy); box-shadow: inset 0 0 0 1px var(--line); }
.btn-light:hover { background: var(--bg); color: var(--navy); }
.btn-danger { background: var(--down); }
.btn-sm { padding: 7px 12px; font-size: 14px; }
.btn-lg { padding: 15px 28px; font-size: 18px; }
.btn-block { width: 100%; }
.link-arrow { font-family: var(--font-head); font-weight: 750; font-stretch: 92%; color: var(--blue); }
.link-arrow::after { content: " →"; }
.icon { width: 20px; height: 20px; flex: none; }

/* ---------------------------------------------------------------- En-tête */
.topbar { background: #081634; color: #c6cfe2; font-size: 14px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 34px; gap: 16px; }
.topbar a { color: #fff; }
.topbar .lang-switch a { padding: 2px 6px; color: #c6cfe2; font-weight: 600; }
.topbar .lang-switch a.active { color: var(--navy); background: var(--yellow); border-radius: 2px; }
.topbar .live { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .live strong { color: var(--yellow); font-weight: 600; }

.header { background: var(--navy); color: #fff; position: relative; z-index: 40; }
.header .wrap { display: flex; align-items: center; gap: 28px; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; flex: none; }
.logo:hover { text-decoration: none; color: #fff; }
.logo svg { height: 40px; width: auto; }
.logo-text { font-family: var(--font-head); font-weight: 900; font-stretch: 80%; font-size: 30px; letter-spacing: -.02em; line-height: 1; }
.logo-text span { color: var(--yellow); }
.header-search { flex: 1; max-width: 640px; position: relative; }
.searchbox { display: flex; background: #fff; border-radius: var(--radius); overflow: hidden; }
.searchbox input {
    flex: 1; min-width: 0; border: 0; padding: 12px 16px; font: inherit; font-size: 16px; color: var(--ink); background: transparent;
}
.searchbox input:focus { outline: none; }
.searchbox select { border: 0; background: var(--bg); font: inherit; font-size: 14px; padding: 0 10px; color: var(--ink-2); }
.searchbox button { border: 0; background: var(--yellow); color: var(--navy); padding: 0 18px; cursor: pointer; display: flex; align-items: center; }
.searchbox button:hover { background: var(--yellow-2); }
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.header-actions a, .header-actions button.hbtn {
    color: #fff; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: var(--radius);
    font-weight: 600; font-size: 15px; background: transparent; border: 0; cursor: pointer; font-family: inherit; position: relative;
}
.header-actions a:hover, .header-actions button.hbtn:hover { background: rgba(255, 255, 255, .1); text-decoration: none; }
.header-actions .badge-count { position: absolute; top: 3px; right: 3px; background: var(--red); color: #fff; font-size: 11px; line-height: 16px; min-width: 16px; text-align: center; border-radius: 8px; padding: 0 4px; }
.burger { display: none; }

.nav { background: var(--blue); position: relative; z-index: 30; }
.nav .wrap { display: flex; align-items: stretch; gap: 0; }
.nav > .wrap > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; flex-wrap: nowrap; }
.nav li { position: relative; }
.nav li > a, .nav li > button {
    display: flex; align-items: center; gap: 6px; height: 48px; padding: 0 15px; color: #fff; font-family: var(--font-head);
    font-stretch: 92%; font-weight: 700; font-size: 16px; background: none; border: 0; cursor: pointer; white-space: nowrap;
}
.nav li > a:hover, .nav li > button:hover, .nav li.open > button { background: var(--blue-2); text-decoration: none; color: #fff; }
.nav li.current > a { background: var(--blue-2); box-shadow: inset 0 -4px 0 var(--yellow); }
.nav li.nav-hot > a { background: var(--yellow); color: var(--navy); }
.nav li.nav-hot > a:hover { background: var(--yellow-2); color: var(--navy); }
.nav .caret { width: 10px; height: 10px; transition: transform .15s; }
.nav li.open .caret { transform: rotate(180deg); }
.mega {
    display: none; position: absolute; left: 0; top: 100%; background: #fff; color: var(--ink); box-shadow: 0 16px 40px rgba(13, 31, 69, .18);
    min-width: 680px; padding: 24px; border-radius: 0 0 var(--radius) var(--radius);
}
.nav li.open .mega, .nav li:focus-within .mega { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mega h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 10px; font-weight: 700; }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega li a { display: block; padding: 5px 0; color: var(--ink); font-weight: 600; }
.mega li a:hover { color: var(--blue); }
.mega .flagline { display: flex; align-items: center; gap: 8px; }

.lang-chip { display: inline-block; font-family: var(--font-head); font-weight: 800; font-size: 11px; letter-spacing: .04em; padding: 2px 5px; border-radius: 2px; color: #fff; background: var(--navy); line-height: 1.3; vertical-align: middle; }
.lang-chip.fr { background: #1f4fbf; }
.lang-chip.en { background: #b3261e; }
.lang-chip.ja { background: #2b2f3a; }

/* ---------------------------------------------------------------- Flash */
.flashes { position: fixed; top: 16px; right: 16px; z-index: 100; display: grid; gap: 8px; max-width: 420px; }
.flash { padding: 14px 18px; border-radius: var(--radius); background: var(--navy); color: #fff; box-shadow: var(--shadow); font-weight: 600; display: flex; gap: 12px; justify-content: space-between; }
.flash.success { background: #0d6b3a; }
.flash.error { background: #a3201b; }
.flash.info { background: var(--blue-2); }
.flash button { background: none; border: 0; color: inherit; font-size: 20px; line-height: 1; cursor: pointer; }

/* ---------------------------------------------------------------- Hero accueil */
.hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: -10% -5%; display: grid; grid-template-columns: repeat(9, 1fr); gap: 14px; transform: rotate(-9deg) scale(1.08); opacity: .5; pointer-events: none; }
.hero-bg img { border-radius: 4.5% / 3.2%; width: 100%; aspect-ratio: 63/88; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13, 31, 69, .96) 0%, rgba(13, 31, 69, .82) 42%, rgba(13, 31, 69, .45) 100%); }
@media (max-width: 900px) { .hero-bg { grid-template-columns: repeat(5, 1fr); } .hero::after { background: rgba(13, 31, 69, .86); } }
.hero .wrap { position: relative; z-index: 2; padding-top: 64px; padding-bottom: 56px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(34px, 5vw, 58px); margin-bottom: 14px; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero .lead { font-size: 19px; color: #d5ddef; max-width: 620px; margin-bottom: 26px; }
.hero .searchbox { max-width: 640px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.hero .searchbox input { padding: 17px 18px; font-size: 18px; }
.hero .searchbox button { padding: 0 24px; font-family: var(--font-head); font-weight: 800; font-size: 17px; gap: 8px; }
.hero .quick { margin-top: 14px; font-size: 15px; color: #b9c4dc; }
.hero .quick a { color: #fff; margin-right: 12px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .35); }
.hero-stats { display: flex; gap: 36px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats .num { font-family: var(--font-head); font-weight: 850; font-size: 34px; color: #fff; line-height: 1; font-stretch: 85%; }
.hero-stats .lbl { font-size: 14px; color: #b9c4dc; margin-top: 6px; }
.hero-feature { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 22px; display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: center; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); }
.hero-feature img { border-radius: 4.5% / 3.2%; }
.hero-feature .eyebrow { color: var(--blue); }
.hero-feature .price { font-family: var(--font-head); font-size: 34px; font-weight: 850; line-height: 1; margin: 6px 0 8px; }

.eyebrow { font-family: var(--font-head); font-weight: 750; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; display: block; font-stretch: 100%; }

/* ---------------------------------------------------------------- Titres de section */
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; }
.sec-head p { margin: 4px 0 0; color: var(--muted); }

/* ---------------------------------------------------------------- Variations */
.chg { display: inline-block; font-weight: 700; font-size: 14px; padding: 1px 6px; border-radius: 2px; white-space: nowrap; }
.chg.up { color: var(--up); background: var(--up-bg); }
.chg.down { color: var(--down); background: var(--down-bg); }
.chg.flat { color: var(--flat); background: var(--line-2); }
.txt-up { color: var(--up); }
.txt-down { color: var(--down); }

/* ---------------------------------------------------------------- Tuiles cartes */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 28px 20px; }
.ctile { position: relative; display: block; color: var(--ink); }
.ctile:hover { text-decoration: none; color: var(--ink); }
.ctile .img { position: relative; aspect-ratio: 63 / 88; background: #e4e7ee; border-radius: 4.5% / 3.2%; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.ctile .img img { width: 100%; height: 100%; object-fit: cover; }
.ctile:hover .img { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(13, 31, 69, .22); }
.ctile .rank { position: absolute; top: 8px; left: 8px; background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 850; font-size: 14px; padding: 3px 7px; border-radius: 2px; z-index: 2; }
.ctile .lang-chip { position: absolute; top: 8px; right: 8px; z-index: 2; }
.ctile .meta { padding-top: 10px; }
.ctile .name { font-weight: 700; font-size: 16px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ctile .sub { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctile .pricerow { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 4px; }
.ctile .price { font-family: var(--font-head); font-weight: 850; font-size: 20px; font-stretch: 88%; }
.ctile .price.none { color: var(--muted); font-size: 15px; font-weight: 600; font-family: var(--font-body); }
.noimg { display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px; color: var(--muted); font-size: 13px; height: 100%; }

/* Rangées défilantes */
.row-scroll { position: relative; }
.row-track { display: grid; grid-auto-flow: column; grid-auto-columns: 176px; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 18px; scrollbar-width: thin; }
.row-track > * { scroll-snap-align: start; }
.row-btn { position: absolute; top: 38%; transform: translateY(-50%); width: 44px; height: 64px; border: 0; background: rgba(13, 31, 69, .88); color: #fff; cursor: pointer; z-index: 5; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; }
.row-btn:hover { background: var(--navy); }
.row-btn.prev { left: -14px; }
.row-btn.next { right: -14px; }
.row-btn[hidden] { display: none; }

/* ---------------------------------------------------------------- Tableaux */
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
table.data { width: 100%; border-collapse: collapse; font-size: 16px; }
table.data th { text-align: left; font-family: var(--font-head); font-stretch: 92%; font-weight: 750; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 12px 14px; background: #f7f8fa; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover td { background: #f8faff; }
table.data .num { text-align: right; white-space: nowrap; }
table.data .strong { font-weight: 700; }
table.data th a { color: inherit; }
.tcard { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.tcard img { width: 42px; border-radius: 4.5% / 3.2%; flex: none; }
.tcard a { font-weight: 700; color: var(--ink); }
.tcard small { display: block; color: var(--muted); }

/* ---------------------------------------------------------------- Fil d'Ariane */
.crumbs { font-size: 14px; color: var(--muted); padding: 14px 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs li + li::before { content: "/"; margin: 0 6px; color: #b4bac6; }
.crumbs a { color: var(--ink-2); }

/* ---------------------------------------------------------------- En-têtes de page */
.page-head { background: #fff; border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-bottom: 28px; }
.page-head h1 { margin-bottom: 8px; }
.page-head .lead { color: var(--muted); font-size: 18px; max-width: 820px; margin: 0; }
.page-head.navy { background: var(--navy); border: 0; color: #fff; }
.page-head.navy h1 { color: #fff; }
.page-head.navy .lead, .page-head.navy .crumbs, .page-head.navy .crumbs a { color: #c6cfe2; }

/* ---------------------------------------------------------------- Onglets */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs a, .tabs button { padding: 12px 16px; font-family: var(--font-head); font-stretch: 92%; font-weight: 750; font-size: 16px; color: var(--muted); white-space: nowrap; border: 0; background: none; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a:hover, .tabs button:hover { color: var(--ink); text-decoration: none; }
.tabs .active { color: var(--navy); border-bottom-color: var(--navy); }

/* Langue des cartes (segmenté) */
.seg { display: inline-flex; background: #fff; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.seg a, .seg button { padding: 9px 16px; font-weight: 700; color: var(--ink-2); font-size: 15px; display: flex; gap: 8px; align-items: center; border: 0; background: none; cursor: pointer; font-family: inherit; }
.seg a + a, .seg button + button { box-shadow: -1px 0 0 var(--line); }
.seg a:hover { text-decoration: none; background: var(--bg); }
.seg .active { background: var(--navy); color: #fff; }
.seg .active:hover { background: var(--navy); }

/* ---------------------------------------------------------------- Formulaires */
.form { display: grid; gap: 18px; }
.field label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.field .hint { font-size: 14px; color: var(--muted); margin-top: 4px; }
.input, .field input[type=text], .field input[type=email], .field input[type=password], .field input[type=number], .field input[type=date], .field input[type=url], .field select, .field textarea {
    width: 100%; padding: 11px 13px; border: 1px solid #cfd5df; border-radius: var(--radius); font: inherit; font-size: 16px; background: #fff; color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(42, 100, 197, .18); }
.field.error input { border-color: var(--down); }
.field .err { color: var(--down); font-size: 14px; margin-top: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--navy); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.panel-flat { background: #fff; border-radius: var(--radius); padding: 24px; }
.auth-box { max-width: 480px; margin: 48px auto; }
.auth-box h1 { font-size: 34px; }

/* ---------------------------------------------------------------- Page carte */
.card-hero { background: #fff; }
.card-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 48px; padding: 8px 0 40px; align-items: start; }
.card-visual { position: sticky; top: 16px; }
.card-visual .big { aspect-ratio: 63 / 88; border-radius: 4.5% / 3.2%; overflow: hidden; background: #e4e7ee; box-shadow: 0 18px 40px rgba(13, 31, 69, .22); cursor: zoom-in; transition: transform .2s; }
.card-visual .big img { width: 100%; height: 100%; object-fit: cover; }
/* Survol : la carte pivote sur son axe vertical, à gauche puis à droite, comme tenue en main ; un reflet balaie
   la surface pour faire ressortir la brillance */
.card-visual { perspective: 1100px; }
.card-visual .big { position: relative; transform-style: preserve-3d; }
.card-visual .big::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; mix-blend-mode: soft-light;
    background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .85) 45%, rgba(255, 236, 170, .55) 50%, rgba(160, 210, 255, .5) 55%, transparent 70%);
    background-size: 250% 100%; background-position: 120% 0; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .card-visual .big:hover { animation: card-tilt 2.4s ease-in-out; }
    .card-visual .big:hover::after { animation: card-shine 2.4s ease-in-out; }
}
@keyframes card-tilt {
    0% { transform: rotateY(0); }
    25% { transform: rotateY(-22deg); }
    65% { transform: rotateY(22deg); }
    100% { transform: rotateY(0); }
}
@keyframes card-shine {
    0% { opacity: 0; background-position: 120% 0; }
    15% { opacity: 1; }
    25% { background-position: 85% 0; }
    65% { background-position: 15% 0; }
    85% { opacity: 1; }
    100% { opacity: 0; background-position: -20% 0; }
}
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.card-title h1 { margin-bottom: 6px; }
.card-title .sub { color: var(--muted); font-size: 17px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.quote { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 24px 0; background: var(--navy); color: #fff; border-radius: var(--radius); overflow: hidden; }
.quote > div { padding: 18px 20px; }
.quote > div + div { box-shadow: -1px 0 0 rgba(255, 255, 255, .12); }
.quote .lbl { font-size: 13px; color: #b9c4dc; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.quote .val { font-family: var(--font-head); font-weight: 850; font-size: 30px; font-stretch: 85%; line-height: 1.1; margin-top: 4px; }
.quote .val small { font-size: 15px; font-weight: 600; }
.quote .main { background: var(--yellow); color: var(--navy); }
.quote .main .lbl { color: var(--navy); }
.quote .chg { margin-top: 6px; }

/* Grille des cotes de cartes gradées (ventes réussies) */
.graded-grid { display: grid; grid-template-columns: 64px repeat(5, minmax(0, 1fr)); gap: 8px; align-items: stretch; }
.graded-grid .gh { font-size: 12px; color: var(--muted); font-weight: 700; text-align: center; }
.graded-grid .gl { display: flex; align-items: center; font-weight: 800; line-height: 1.15; }
.graded-grid .gc { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.graded-grid .gc strong { font-family: var(--font-head); font-size: 18px; font-weight: 850; font-stretch: 85%; white-space: nowrap; }
.graded-grid .gc span { font-size: 12px; color: var(--muted); }
.graded-grid .gc.empty strong { color: #a3aab8; }
.graded-grid .gc.wide { border-style: dashed; }
@media (max-width: 560px) {
        .graded-grid { grid-template-columns: 50px repeat(5, minmax(0, 1fr)); gap: 4px; }
    .graded-grid .gc { padding: 6px; }
    .graded-grid .gc strong { font-size: 14px; }
    .graded-grid .gc span { font-size: 11px; }
}
.chart-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 18px 10px; }
.chart-tools { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; align-items: center; }
.chart-tools .seg button { padding: 6px 12px; font-size: 14px; }
.chart-canvas { position: relative; height: 320px; }
.chart-empty { height: 320px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--muted); padding: 20px; background: repeating-linear-gradient(135deg, #fafbfc 0 12px, #f4f6f9 12px 24px); border-radius: var(--radius); }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; }
.specs div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; text-align: right; }
.versions { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.note { background: var(--blue-soft); padding: 14px 18px; border-radius: var(--radius); font-size: 15px; color: var(--ink-2); }
.note-warn { background: #fff6d6; }
.zoom-overlay { position: fixed; inset: 0; background: rgba(8, 16, 36, .92); display: flex; align-items: center; justify-content: center; z-index: 200; cursor: zoom-out; padding: 24px; }
.zoom-overlay img { max-height: 92vh; width: auto; border-radius: 4.5% / 3.2%; }

/* ---------------------------------------------------------------- Extensions */
.sets-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.set-tile { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; background: #fff; padding: 16px; border-radius: var(--radius); color: var(--ink); transition: box-shadow .15s, transform .15s; }
.set-tile:hover { text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transform: translateY(-2px); }
.set-tile .logo-box { height: 56px; display: flex; align-items: center; justify-content: center; }
.set-tile .logo-box img { max-height: 56px; width: auto; object-fit: contain; }
.set-tile .logo-fallback { font-family: var(--font-head); font-weight: 850; color: var(--navy); font-size: 15px; text-align: center; }
.set-tile .n { font-weight: 700; line-height: 1.25; }
.set-tile .d { font-size: 14px; color: var(--muted); }
.set-tile .v { font-family: var(--font-head); font-weight: 800; font-size: 15px; margin-top: 2px; }
.serie-block { margin-bottom: 40px; }
.serie-block h2 { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.serie-block h2 small { font-family: var(--font-body); font-weight: 600; font-size: 15px; color: var(--muted); }
.set-head { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center; }
.set-head .logo-big { background: #fff; padding: 18px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; min-height: 120px; }
.kpis { display: flex; flex-wrap: wrap; gap: 12px 36px; margin-top: 14px; }
.kpis .k { font-family: var(--font-head); font-weight: 850; font-size: 26px; font-stretch: 85%; line-height: 1.1; }
.kpis .l { font-size: 14px; color: var(--muted); }
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin: 20px 0; }
.toolbar .filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.toolbar select, .toolbar input[type=search] { padding: 9px 12px; border: 1px solid #cfd5df; border-radius: var(--radius); font: inherit; font-size: 15px; background: #fff; }
.view-toggle a { padding: 8px 10px; }

/* ---------------------------------------------------------------- Éditorial */
.edito { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; }
.edito .col { display: grid; gap: 18px; }
.etile { display: flex; flex-direction: column; color: #fff; border-radius: var(--radius); overflow: hidden; background: var(--t-water); min-height: 100%; }
.etile:hover { text-decoration: none; color: #fff; }
.etile .pic { aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy-2); }
.etile .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.etile:hover .pic img { transform: scale(1.04); }
.etile .txt { padding: 18px 22px 22px; flex: 1; }
.etile .txt h3 { color: #fff; font-size: 23px; margin: 0 0 8px; font-weight: 750; }
.etile.big .txt h3 { font-size: 30px; }
.etile .txt p { color: rgba(255, 255, 255, .86); margin: 0; font-size: 16px; }
.etile .kind { font-family: var(--font-head); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; opacity: .85; margin-bottom: 6px; display: block; }
.c-fire { background: var(--t-fire); } .c-water { background: var(--t-water); } .c-grass { background: var(--t-grass); }
.c-psy { background: var(--t-psy); } .c-elec { background: var(--t-elec); color: var(--navy) !important; } .c-dark { background: var(--t-dark); }
.c-elec .txt h3, .c-elec .txt p { color: var(--navy); }
.alist { display: grid; gap: 0; }
.aitem { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.aitem:hover { text-decoration: none; color: var(--ink); }
.aitem:hover h3 { color: var(--blue); }
.aitem img { aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius); width: 100%; }
.aitem h3 { margin: 4px 0 6px; font-size: 22px; }
.aitem p { color: var(--muted); margin: 0; }

.prose { font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.prose h2 { margin: 1.6em 0 .6em; font-size: 28px; }
.prose h3 { margin: 1.4em 0 .5em; font-size: 22px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: var(--radius); margin: 1.4em 0; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; font-size: 20px; font-style: italic; color: var(--ink); box-shadow: inset 4px 0 0 var(--line); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 16px; background: #fff; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { background: #f7f8fa; font-family: var(--font-head); font-weight: 750; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose .aff-box { background: #fff; padding: 18px 20px; border-radius: var(--radius); box-shadow: var(--shadow); display: flex; gap: 16px; align-items: center; justify-content: space-between; margin: 1.4em 0; flex-wrap: wrap; }
.prose .aff-box strong { font-family: var(--font-head); font-size: 19px; color: var(--ink); }
.prose .aff-box .btn { text-decoration: none; }
.prose .callout { background: var(--blue-soft); padding: 18px 22px; border-radius: var(--radius); margin: 1.4em 0; }
.article-head { padding: 12px 0 28px; }
.article-head .meta { color: var(--muted); font-size: 15px; display: flex; gap: 14px; flex-wrap: wrap; }
.article-cover { border-radius: var(--radius); margin-bottom: 32px; aspect-ratio: 16/8; object-fit: cover; width: 100%; }
.toc { background: #fff; padding: 20px 22px; border-radius: var(--radius); font-size: 15px; }
.toc ol { margin: 8px 0 0; padding-left: 1.2em; }
.toc a { color: var(--ink-2); }
.disclaimer { font-size: 14px; color: var(--muted); padding: 14px 18px; background: #fff; border-radius: var(--radius); }

/* ---------------------------------------------------------------- Bons plans */
.deal { display: grid; grid-template-columns: 150px minmax(0, 1fr) 190px; gap: 22px; background: #fff; border-radius: var(--radius); padding: 18px; align-items: center; }
.deal + .deal { margin-top: 14px; }
.deal .pic { aspect-ratio: 1; background: #f1f3f6; border-radius: var(--radius); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.deal .pic img { width: 100%; height: 100%; object-fit: contain; }
.deal h3 { font-size: 20px; margin: 4px 0 8px; }
.deal h3 a { color: var(--ink); }
.deal .info { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.deal .prices { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.deal .now { font-family: var(--font-head); font-weight: 850; font-size: 28px; color: var(--down); font-stretch: 85%; }
.deal .ref { color: var(--muted); }
.deal .ref s { color: var(--muted); }
.deal .disc { background: var(--up); color: #fff; font-weight: 800; padding: 2px 8px; border-radius: 2px; font-size: 15px; }
.deal .side { display: grid; gap: 10px; justify-items: stretch; }
.heat { display: inline-flex; align-items: center; gap: 0; background: var(--bg); border-radius: var(--radius); overflow: hidden; }
.heat button { border: 0; background: none; padding: 6px 10px; cursor: pointer; color: var(--muted); font-size: 16px; }
.heat button:hover { background: var(--line); }
.heat .deg { font-weight: 800; padding: 0 6px; color: var(--red); min-width: 44px; text-align: center; }
.src-tag { display: inline-block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 2px 6px; border-radius: 2px; background: var(--navy); color: #fff; }
.src-tag.vinted { background: #09838e; }
.src-tag.ebay { background: #2f5fd0; }
.src-tag.amazon { background: #232f3e; }
.src-tag.cardmarket { background: #0a3b6a; }

/* ---------------------------------------------------------------- Où acheter (fiches) */
.offers-lede { margin: -8px 0 20px; color: var(--muted); max-width: 760px; }
.offers-empty { margin: 0 0 16px; font-weight: 600; color: var(--ink-2); }
.offers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.offer { display: flex; flex-direction: column; background: var(--bg); border-radius: var(--radius); overflow: hidden; color: var(--ink); }
.offer:hover { text-decoration: none; color: var(--ink); background: #e9ecf2; }
.offer .pic { aspect-ratio: 1; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.offer .pic img { width: 100%; height: 100%; object-fit: contain; }
.offer .body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 4px; flex: 1; }
.offer .meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.offer .t { font-size: 14px; line-height: 1.35; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.offer .p { font-family: var(--font-head); font-weight: 850; font-stretch: 85%; font-size: 26px; line-height: 1.1; color: var(--navy); }
.offer .p small { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--muted); }
.offer .vs { font-size: 13px; font-weight: 700; color: var(--muted); }
.offer .vs.good { color: var(--up); }
.offer .when { font-size: 12px; color: var(--muted); }
.offer .go { display: block; margin: 8px 14px 14px; font-family: var(--font-head); font-weight: 750; font-stretch: 92%; color: var(--blue); }
.offer:hover .go { color: var(--blue-2); }
.offer-search { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; min-height: 180px; padding: 20px; border-radius: var(--radius); color: #fff; background: var(--navy); }
.offer-search:hover { color: #fff; text-decoration: none; filter: brightness(1.08); }
.offer-search.ebay { background: #2f5fd0; }
.offer-search.vinted { background: #09838e; }
.offer-search .brand { font-family: var(--font-head); font-weight: 850; font-stretch: 85%; font-size: 30px; line-height: 1; }
.offer-search .lbl { font-weight: 600; font-size: 16px; line-height: 1.3; }
.offer-search .arrow { font-size: 26px; font-weight: 700; line-height: 1; }
@media (max-width: 560px) {
    .offers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .offer .body { padding: 10px 10px 2px; }
    .offer .p { font-size: 21px; }
    .offer .go { margin: 6px 10px 12px; font-size: 14px; }
    .offer-search { min-height: 130px; padding: 14px; }
    .offer-search .brand { font-size: 24px; }
}

/* ---------------------------------------------------------------- InvestiDex */
.index-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2px; background: var(--line); border-radius: var(--radius); overflow: hidden; }
.index-cell { background: #fff; padding: 18px 20px; color: var(--ink); display: block; }
.index-cell:hover { text-decoration: none; color: var(--ink); background: #f8faff; }
.index-cell.active { background: var(--navy); color: #fff; }
.index-cell .nm { font-family: var(--font-head); font-weight: 750; font-size: 15px; }
.index-cell .vl { font-family: var(--font-head); font-weight: 850; font-size: 30px; font-stretch: 85%; line-height: 1.1; margin: 4px 0; }
.index-cell.active .chg.up { background: rgba(255, 255, 255, .14); color: #7ff0ae; }
.index-cell.active .chg.down { background: rgba(255, 255, 255, .14); color: #ffaaa6; }
.spark { height: 36px; width: 100%; }

/* ---------------------------------------------------------------- Collection */
.portfolio-top { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; background: var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; }
.portfolio-top > div { background: #fff; padding: 18px 20px; }
.portfolio-top .v { font-family: var(--font-head); font-weight: 850; font-size: 30px; font-stretch: 85%; }
.portfolio-top .l { font-size: 14px; color: var(--muted); }
.empty { text-align: center; padding: 56px 20px; background: #fff; border-radius: var(--radius); }
.empty h3 { font-size: 24px; }

/* Autocomplétion */
.ac { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: 0 18px 40px rgba(13, 31, 69, .25); z-index: 60; max-height: 70vh; overflow-y: auto; display: none; }
.ac.open { display: block; }
.ac a { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; padding: 8px 12px; color: var(--ink); }
.ac a:hover, .ac a.sel { background: var(--blue-soft); text-decoration: none; }
.ac img { width: 38px; border-radius: 3px; }
.ac .t { font-weight: 700; line-height: 1.2; }
.ac .s { font-size: 13px; color: var(--muted); }
.ac .p { font-family: var(--font-head); font-weight: 800; }
.ac .all { display: block; text-align: center; padding: 10px; font-weight: 700; color: var(--blue); background: #f7f8fa; }

/* ---------------------------------------------------------------- Pagination */
.pager { display: flex; gap: 6px; justify-content: center; margin: 32px 0 0; flex-wrap: wrap; }
.pager a, .pager span { min-width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; padding: 0 10px; background: #fff; border-radius: var(--radius); font-weight: 700; color: var(--ink); }
.pager a:hover { background: var(--blue-soft); text-decoration: none; }
.pager .cur { background: var(--navy); color: #fff; }

/* ---------------------------------------------------------------- Bandeau membre / CTA */
.cta-band { background: var(--yellow); color: var(--navy); }
.cta-band .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; padding-top: 44px; padding-bottom: 44px; }
.cta-band h2 { color: var(--navy); }
.cta-band ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-weight: 600; }
.cta-band li { display: flex; gap: 10px; }
.cta-band li::before { content: "✓"; font-weight: 900; }

/* ---------------------------------------------------------------- Pied de page */
.footer { background: var(--navy); color: #b9c4dc; font-size: 15px; margin-top: 0; }
.footer .wrap { padding-top: 48px; padding-bottom: 28px; }
.footer-cols { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.footer h4 { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.footer a { color: #dfe5f2; }
.footer .legal { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 36px; padding-top: 20px; font-size: 13px; color: #8e9ab6; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- Divers */
.tag { display: inline-block; font-size: 13px; font-weight: 700; padding: 2px 8px; border-radius: 2px; background: var(--line-2); color: var(--ink-2); }
.tag-blue { background: var(--blue-soft); color: var(--blue-2); }
.tag-yellow { background: #fff3c2; color: #6b5300; }
.tag-green { background: var(--up-bg); color: var(--up); }
.tag-red { background: var(--down-bg); color: var(--down); }
.inline-form { display: inline; }
.star-btn[aria-pressed=true] { background: var(--yellow); color: var(--navy); }
.cookie { position: fixed; left: 16px; bottom: 16px; max-width: 420px; background: var(--navy); color: #dfe5f2; padding: 18px 20px; border-radius: var(--radius); z-index: 150; font-size: 15px; box-shadow: 0 16px 40px rgba(0, 0, 0, .3); }
.cookie .flex { margin-top: 12px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--yellow); color: var(--navy); padding: 10px 14px; z-index: 300; }
.skip:focus { left: 8px; top: 8px; }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1100px) {
    .nav li > a, .nav li > button { padding: 0 11px; font-size: 15px; }
    .footer-cols { grid-template-columns: repeat(3, 1fr); }
    .split { grid-template-columns: 1fr; }
    .hero .wrap { grid-template-columns: 1fr; }
    .hero-feature { max-width: 560px; }
}
@media (max-width: 900px) {
    :root { --gutter: 16px; }
    body { font-size: 16px; }
    .topbar .live { display: none; }
    .header .wrap { height: 64px; gap: 12px; }
    .header-search { display: none; position: absolute; left: 0; right: 0; top: 100%; max-width: none; padding: 10px 16px; background: var(--navy); }
    .header.search-open .header-search { display: block; }
    .header-actions .lbl { display: none; }
    .burger { display: flex; }
    .logo-text { font-size: 25px; }
    .logo svg { height: 34px; }
    .nav { display: none; position: fixed; inset: 0 0 0 auto; width: min(88vw, 360px); overflow-y: auto; overflow-x: hidden; background: var(--navy); z-index: 120; padding-top: 12px; box-shadow: -10px 0 40px rgba(0, 0, 0, .3); }
    .nav.open { display: block; }
    .nav .wrap { padding: 0; }
    .nav > .wrap > ul { flex-direction: column; width: 100%; }
    .nav li > a, .nav li > button { height: auto; padding: 14px 20px; width: 100%; justify-content: space-between; font-size: 17px; }
    .nav li.current > a { box-shadow: inset 4px 0 0 var(--yellow); }
    .mega { position: static; min-width: 0; box-shadow: none; border-radius: 0; padding: 8px 20px 16px; background: var(--navy-2); color: #fff; }
    .nav li.open .mega { display: grid; grid-template-columns: 1fr; }
    .nav li:focus-within .mega { display: none; }
    .nav li.open:focus-within .mega { display: grid; }
    .mega h4 { color: #8e9ab6; }
    .mega li a { color: #fff; white-space: normal; }
    .nav li > a, .nav li > button { white-space: normal; text-align: left; }
    .nav-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 110; display: none; }
    .nav-backdrop.open { display: block; }
    .nav-close { display: flex !important; justify-content: flex-end; padding: 0 12px 6px; }
    .nav-close button { background: none; border: 0; color: #fff; font-size: 30px; cursor: pointer; padding: 4px 10px; }
    .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .card-layout { grid-template-columns: 1fr; gap: 24px; }
    .card-visual { position: static; max-width: 320px; margin: 0 auto; width: 100%; }
    .quote { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .quote > div:nth-child(3) { box-shadow: 0 -1px 0 rgba(255, 255, 255, .12); }
    .quote > div:nth-child(4) { box-shadow: -1px -1px 0 rgba(255, 255, 255, .12); }
    .edito { grid-template-columns: 1fr; }
    .deal { grid-template-columns: 96px minmax(0, 1fr); }
    .deal .side { grid-column: 1 / -1; grid-template-columns: auto 1fr; align-items: center; }
    .portfolio-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cta-band .wrap { grid-template-columns: 1fr; }
    .set-head { grid-template-columns: 1fr; }
    .set-head .logo-big { max-width: 260px; }
    .aitem { grid-template-columns: 120px 1fr; gap: 14px; }
    .aitem h3 { font-size: 18px; }
    .footer-cols { grid-template-columns: 1fr 1fr; }
    .specs { grid-template-columns: 1fr; }
    .row-btn { display: none; }
    .row-track { grid-auto-columns: 148px; gap: 14px; }
}
@media (min-width: 901px) {
    .nav-close, .nav-backdrop { display: none !important; }
}
@media (max-width: 560px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
    .form-row { grid-template-columns: 1fr; }
    .hero .wrap { padding-top: 40px; padding-bottom: 40px; }
    .hero .searchbox input { padding: 14px; font-size: 16px; }
    .hero .searchbox button span { display: none; }
    .hero-stats { gap: 22px; }
    .hero-stats .num { font-size: 26px; }
    .hero-feature { grid-template-columns: 100px 1fr; padding: 16px; }
    .hero-feature .price { font-size: 26px; }
    .quote .val { font-size: 24px; }
    .card-actions { grid-template-columns: 1fr; }
    .panel { padding: 20px; }
    .footer-cols { grid-template-columns: 1fr; }
    .sets-list { grid-template-columns: 1fr; }
    .chart-canvas, .chart-empty { height: 260px; }
    table.data { font-size: 15px; }
    table.data th, table.data td { padding: 10px; }
    .hide-sm { display: none; }
}

/* Ma collection → Ajouter par photo */
.photo-scan { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 22px 24px; margin-bottom: 28px; }
.photo-scan h2 { color: #fff; font-size: 22px; margin: 0 0 6px; }
.photo-scan p { margin: 0 0 6px; color: #d7deec; }
.photo-scan .muted { color: #a9b4cb; }
.photo-scan-head { display: flex; gap: 20px; align-items: center; justify-content: space-between; }
.photo-scan-actions { display: flex; gap: 10px; flex-shrink: 0; }
.photo-scan-actions .btn { cursor: pointer; }
.photo-scan form { margin-top: 18px; }
.photo-batch { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; }
.photo-batch-head { display: flex; gap: 14px; align-items: center; }
.photo-batch-head img { width: 72px; height: 72px; object-fit: cover; border-radius: 3px; background: var(--bg); }
.photo-status { font-weight: 700; }
.photo-status.is-error { color: var(--down); }
.photo-rows { margin-top: 12px; display: grid; gap: 2px; background: var(--line-2); }
.photo-row { display: grid; grid-template-columns: 28px 60px minmax(0, 1fr) auto; gap: 12px; align-items: center; background: #fff; padding: 8px 4px; }
.photo-row.is-check { background: #fff8db; }
.photo-row.is-missing { grid-template-columns: 28px minmax(0, 1fr); }
.photo-row.is-missing .photo-thumb { display: none; }
.photo-on input { width: 20px; height: 20px; }
.photo-thumb img { width: 60px; height: auto; border-radius: 3px; display: block; }
.photo-info select { width: 100%; max-width: 100%; font-weight: 700; }
.photo-info .small { margin-top: 4px; overflow-wrap: anywhere; }
.photo-flag { color: #8a6200; }
.photo-opts { display: flex; gap: 8px; }
.photo-opts input { width: 64px; }
[data-photo-submit] { margin-top: 6px; }
@media (max-width: 720px) {
    .photo-scan { padding: 18px 16px; }
    .photo-scan-head { flex-direction: column; align-items: stretch; }
    .photo-scan-actions { flex-direction: column; }
    .photo-scan-actions .btn { text-align: center; }
    .photo-row { grid-template-columns: 28px 52px minmax(0, 1fr); }
    .photo-opts { grid-column: 3; }
    [data-photo-submit] { width: 100%; }
}
