/*
 * Pages publiques de cotes (/cote) — DA Vitrine, autonome.
 *
 * Un seul fichier, polices comprises, pour un premier affichage rapide sur
 * mobile (LCP < 2,5 s) : ces pages sont d'abord lues par des visiteurs qui
 * arrivent de Google. Suit le thème de l'appareil, clair ou sombre.
 */

@font-face {
  font-family: "Bodoni Moda"; font-style: normal; font-display: swap; font-weight: 400 900;
  src: url(/fonts/bodoni-moda-latin-standard-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/fonts/manrope-latin-wght-normal.woff2) format("woff2");
}

:root {
  --bg: #f5f2ec; --surface: #ffffff; --surface-active: #eae4d9; --line: #e2dcd1;
  --ink: #1c1a17; --muted: #6a645a; --on-ink: #f5f2ec;
  --deal: #ffd23f; --on-deal: #1c1a17;
  --up: #1d7448; --up-soft: #e1f0e7; --down: #b3261e; --down-soft: #f7e3df;
  --platform: #6a645a;
  --display: "Bodoni Moda", Didot, "Bodoni 72", "Times New Roman", serif;
  --sans: Manrope, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
/* Clair par défaut, comme le reste du site (voir vitrine.css) : le sombre
   reste disponible avec <html data-theme="dark">. */
:root[data-theme="dark"] {
  --bg: #14120f; --surface: #1f1c18; --surface-active: #2a2620; --line: #38332b;
  --ink: #f3eee6; --muted: #aba393; --on-ink: #14120f;
  --up: #6bd69a; --up-soft: rgba(107,214,154,.14); --down: #f08a7e; --down-soft: rgba(240,138,126,.14);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans);
  font-size: 15px; line-height: 1.5; font-weight: 500; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.serif { font-family: var(--display); font-weight: 500; font-optical-sizing: none;
  font-variation-settings: "opsz" 11; font-variant-numeric: lining-nums; }
.wrap { max-width: 1040px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
@media (min-width: 720px) { .wrap { padding-left: 24px; padding-right: 24px; } }

/* En-tête, pied */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 12px; }
.wordmark { font-family: var(--display); font-size: 22px; text-decoration: none; font-weight: 700;
  font-optical-sizing: none; font-variation-settings: "opsz" 11; }
.wordmark em { font-style: italic; font-weight: 500; }
.top nav { display: flex; gap: 16px; align-items: center; font-weight: 700; font-size: 14px; }
.top nav a { text-decoration: none; }
.cta-mini { background: var(--ink); color: var(--on-ink); padding: 7px 12px; border-radius: 999px; }
.foot { border-top: 1px solid var(--line); margin-top: 0; padding: 28px 0 40px; color: var(--muted); font-size: 13px; }
.foot .wordmark { color: var(--ink); }
.foot .links { display: flex; flex-wrap: wrap; gap: 6px 16px; }

/* Fil d'Ariane */
.crumbs ol { list-style: none; margin: 0; padding: 14px 0 0; display: flex; flex-wrap: wrap; gap: 4px;
  font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 4px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Commun */
.eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); display: flex; align-items: center; gap: 8px; }
.eyebrow .dot { width: 10px; height: 10px; border-radius: 3px; background: var(--platform);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
h1.serif { font-size: clamp(30px, 6vw, 46px); line-height: 1.08; margin: 0 0 10px; }
.facts { margin: 0; color: var(--muted); }
.block { margin-top: 36px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 16px; }
.block-head h2 { font-size: 24px; margin: 0; }
.tag { display: inline-block; background: var(--deal); color: var(--on-deal); font-weight: 800;
  border-radius: 4px; padding: 1px 7px; }
.notice { margin: 20px 0 0; padding: 10px 14px; border: 1px solid var(--line); border-left: 4px solid var(--deal);
  background: var(--surface); border-radius: 6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--ink); font: inherit; font-weight: 700; text-decoration: none;
  cursor: pointer; background: transparent; color: var(--ink); }
.btn.primary { background: var(--ink); color: var(--on-ink); }
.link { font-weight: 700; }
.pill { font-size: 11px; font-weight: 700; border: 1px solid var(--line); border-radius: 999px; padding: 0 6px; color: var(--muted); }
.delta { font-weight: 800; font-size: 14px; padding: 2px 8px; border-radius: 999px; background: var(--surface-active); }
.delta.up { color: var(--up); background: var(--up-soft); }
.delta.down { color: var(--down); background: var(--down-soft); }

/* Fiche : en-tête */
.hero { display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: end; margin-top: 18px; }
@media (min-width: 720px) { .hero { grid-template-columns: 200px 1fr; gap: 32px; } }
.cover { width: 100%; height: auto; display: block; border-radius: 4px; box-shadow: 0 22px 34px -14px rgba(0,0,0,.55);
  border-top: 6px solid var(--platform); background: var(--surface-active); }
.cover.ph { aspect-ratio: 5 / 7; display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 8px; font-family: var(--display); color: var(--muted); }

/* Cotes par état */
.grades { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .grades.n2, .grades.n3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .grades.n3 { grid-template-columns: repeat(3, 1fr); } }
.grade { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.grade h3 { margin: 0; font-size: 15px; }
.grade h3 span { font-weight: 500; color: var(--muted); font-size: 13px; margin-left: 4px; }
.grade .price { margin: 10px 0 2px; }
.grade .price .tag { font-size: 34px; line-height: 1.15; padding: 2px 10px; border-radius: 6px; }
.grade .range { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.grade .meta { margin: 0; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }
.conf-high { color: var(--up); } .conf-mid { color: var(--ink); } .conf-low { color: var(--down); }

/* Courbe */
.chart svg { width: 100%; height: 200px; display: block; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .ax { fill: var(--muted); font-size: 11px; font-family: var(--sans); }
.chart .line { fill: none; stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.chart .area { fill: var(--deal); opacity: .28; }
.chart .dot { fill: var(--deal); stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; }
.note { font-size: 13px; color: var(--muted); margin: 6px 0 0; }

/* Appel à l'action */
.cta { margin-top: 32px; padding: 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-msg:empty { display: none; }
.cta-msg { margin: 0; font-weight: 700; }

.prose p { font-size: 17px; line-height: 1.6; margin: 0; max-width: 68ch; }

/* Tableaux */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
  font-weight: 700; padding: 6px 8px; border-bottom: 1px solid var(--line); }
td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.r { text-align: right; white-space: nowrap; }
tr.main td { background: var(--surface); }
table.all a { font-weight: 700; text-decoration: none; }
table.all a:hover { text-decoration: underline; }

/* Jeux liés */
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.cards a { display: flex; flex-direction: column; gap: 6px; text-decoration: none; font-size: 13px; }
.cards .t { font-weight: 700; line-height: 1.25; }
.cards .tag { align-self: flex-start; font-size: 13px; }
.thumb { display: block; border-radius: 3px; background: var(--surface-active); object-fit: cover; height: auto; }
.cards .thumb { width: 100%; }
.thumb.ph { display: inline-block; }
.also { margin: 18px 0 0; }

.method { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
.method p { margin: 0 0 6px; max-width: 80ch; }

/* Hub */
.hub-head { margin-top: 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.hub-head .btn { margin-top: 12px; }
.ranks { display: grid; gap: 24px; margin-top: 32px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .ranks { grid-template-columns: repeat(3, 1fr); } }
.rank h2 { font-size: 20px; margin: 0 0 10px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.rank ol { list-style: none; padding: 0; margin: 0; counter-reset: r; }
.rank li a { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding: 6px 0;
  text-decoration: none; border-bottom: 1px solid var(--line); }
.rank .t { font-weight: 700; font-size: 14px; line-height: 1.25; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.pager a, .pager span { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 8px; text-decoration: none; font-weight: 700; }
.pager span { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.back { margin: 24px 0 0; }

/* Index */
.consoles { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.consoles a { display: flex; flex-direction: column; gap: 4px; padding: 0 16px 16px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.consoles .band { height: 10px; margin: 0 -16px 10px; background: var(--platform); }
.consoles b { font-size: 21px; }
.consoles a:hover { border-color: var(--ink); }

/* Bandeau secondaire */
.banner { margin-top: 48px; background: var(--ink); color: var(--on-ink); }
.banner .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 22px; padding-bottom: 22px; }
.banner p { margin: 0; font-size: 16px; }
.banner .btn { border-color: var(--on-ink); color: var(--on-ink); }

/* Modale d'inscription */
.modal { border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px 24px; max-width: 420px; width: calc(100% - 32px);
  background: var(--bg); color: var(--ink); }
.modal::backdrop { background: rgba(20,18,15,.55); }
.modal h2 { font-size: 24px; line-height: 1.15; margin: 0 0 8px; }
.close-row { display: flex; justify-content: flex-end; margin: -8px -8px 0 0; }
.close-row button { font-size: 26px; background: none; border: 0; color: var(--muted); cursor: pointer; width: 36px; height: 36px; }
.signup-form { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.signup-form label { font-size: 13px; font-weight: 700; }
.signup-form input { font: inherit; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); }
.signup-msg { margin: 4px 0 0; font-weight: 700; }
.signup-msg:empty { display: none; }
