:root {
  --bg: #03060d;
  --ink: #0e1320;
  --glass: rgba(255, 255, 255, 0.035);
  --glass-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f3f5fa;
  --text-2: #aab2c5;
  --text-3: #6b7489;
  --coral: #2f8bff;   /* bleu électrique Iris */
  --amber: #8fe3ff;   /* glace */
  --teal: #5cc8ff;    /* cyan */
  --gold: #ffd76a;
  --silver: #d6e2f0;
  --bronze: #e0a36b;
  --us: #5b9dff;
  --cn: #ff5d5d;
  --eu: #ffc53d;
  --good: #3ee6a8;
  --ok: #ffd84a;
  --warn: #ff9f43;
  --bad: #ff6b6b;
  --r: 22px;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  /* Surfaces secondaires (thème sombre) */
  --surface: #0d121e;      /* tiroir, bas des tuiles */
  --surface-2: #111726;    /* en-tête de tableau, haut des tuiles */
  --well: rgba(0, 0, 0, 0.25);   /* creux : segments, cartes région, actus */
  --dim: rgba(0, 0, 0, 0.35);    /* petits boutons sur les tuiles */
  --track: rgba(255, 255, 255, 0.05);
  --clock-bg: rgba(6, 12, 24, 0.6);
  --on-accent: #0b0e16;
  --accent-top: #fff;      /* début du dégradé du titre */
  --glow-a: rgba(47, 139, 255, 0.22);
  --glow-b: rgba(92, 200, 255, 0.08);
  --net-dot: 190, 236, 255;   /* particules du fond (triplets RVB) */
  --net-halo: 47, 139, 255;
  --net-line: 92, 200, 255;
  --net-alpha: 1;
  color-scheme: dark;
}

/* ── Thème clair ───────────────────────────────────────── */
:root[data-theme="light"] {
  --bg: #eef2f9;
  --ink: #ffffff;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-2: rgba(255, 255, 255, 0.98);
  --line: rgba(13, 30, 60, 0.10);
  --line-2: rgba(13, 30, 60, 0.20);
  --text: #0d1524;
  --text-2: #43506a;
  --text-3: #74809a;
  --coral: #1f6fe0;
  --amber: #2196d9;
  --teal: #1a7fc4;
  --gold: #d29b00;
  --silver: #8a9ab5;
  --bronze: #c07a3a;
  --good: #128f60;
  --ok: #a67c00;
  --warn: #d26a0a;
  --bad: #d13b3b;
  --surface: #ffffff;
  --surface-2: #f5f8fd;
  --well: rgba(13, 30, 60, 0.05);
  --dim: rgba(255, 255, 255, 0.85);
  --track: rgba(13, 30, 60, 0.08);
  --clock-bg: rgba(255, 255, 255, 0.75);
  --on-accent: #ffffff;
  --accent-top: #0d1524;
  --glow-a: rgba(47, 139, 255, 0.16);
  --glow-b: rgba(92, 200, 255, 0.10);
  --net-dot: 31, 111, 224;
  --net-halo: 31, 111, 224;
  --net-line: 31, 111, 224;
  --net-alpha: 0.55;
  color-scheme: light;
}
:root[data-theme="light"] .iris img {
  -webkit-mask-image: radial-gradient(52% 60% at 55% 40%, #000 30%, transparent 72%);
  mask-image: radial-gradient(52% 60% at 55% 40%, #000 30%, transparent 72%);
}
:root[data-theme="light"] .iris-glow { background: radial-gradient(circle, rgba(8, 20, 48, 0.9), rgba(31, 111, 224, 0.25) 45%, transparent 68%); filter: blur(30px); }
:root[data-theme="light"] .news-item .thumb .src { background: rgba(255, 255, 255, 0.85); }
:root[data-theme="light"] .app .iq { background: rgba(255, 255, 255, 0.9); color: var(--text-2); }
:root[data-theme="light"] .pill i { box-shadow: none; }
:root[data-theme="light"] .step .block { color: var(--text); text-shadow: none; }

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  isolation: isolate;
  color: var(--text);
  font: 14px/1.5 'Plus Jakarta Sans', system-ui, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body > * { max-width: 1680px; margin-left: auto; margin-right: auto; padding-left: 40px; padding-right: 40px; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; cursor: pointer; }

/* ── Réseau de particules ─────────────────────────────── */
.net { position: fixed; inset: 0; width: 100vw; height: 100vh; max-width: none; padding: 0; margin: 0; z-index: -1; pointer-events: none; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60% 50% at 78% 0%, var(--glow-a), transparent 70%),
    radial-gradient(40% 40% at 0% 30%, var(--glow-b), transparent 70%),
    var(--bg);
}

/* ── Hero ─────────────────────────────────────────────── */
.hero { position: relative; display: flex; align-items: center; min-height: 440px; padding-top: 36px; padding-bottom: 20px; }
.hero-left { position: relative; z-index: 2; flex: 1 1 auto; max-width: 760px; min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-2); }
.hero h1 { margin: 0; font-size: clamp(38px, 5vw, 72px); line-height: 1.05; font-weight: 800; letter-spacing: -0.035em; }
.hero h1 .accent { background: linear-gradient(100deg, var(--coral), var(--amber) 45%, var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.subline { margin: 12px 0 28px; color: var(--text-2); font-size: 17px; max-width: 560px; }


.clocks { display: flex; gap: 14px; flex-wrap: wrap; }
.clock {
  width: 250px; padding: 16px 18px 14px; border-radius: var(--r); background: rgba(14, 19, 32, 0.7);
  border: 1px solid var(--line); backdrop-filter: blur(14px); position: relative; overflow: hidden;
}
.clock::before { content: ''; position: absolute; inset: 0; opacity: 0.22; pointer-events: none; background: var(--sky-grad, none); }
.clock.day { --sky-grad: radial-gradient(120% 90% at 100% 0%, #ffb347, transparent 60%); }
.clock.night { --sky-grad: radial-gradient(120% 90% at 100% 0%, #5b6cff, transparent 60%); }
.clock-top { display: flex; justify-content: space-between; align-items: center; position: relative; }
.city { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2); }
.sky { font-size: 18px; line-height: 1; }
.clock .time { position: relative; font: 600 40px/1.1 var(--mono); letter-spacing: -0.04em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.clock .time small { font-size: 18px; color: var(--text-3); margin-left: 4px; letter-spacing: 0; }
.clock .date { position: relative; font-size: 13px; color: var(--text-2); }
.daybar { position: relative; height: 4px; border-radius: 4px; background: var(--glass-2); margin-top: 12px; overflow: hidden; }
.daybar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #5b6cff, var(--amber), var(--coral)); }

/* ── Navigation ───────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-top: 10px; padding-bottom: 10px; margin-bottom: 22px;
  background: linear-gradient(180deg, var(--bg) 70%, transparent);
}
.nav-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); }
.nav-tabs button { border: 0; background: none; padding: 8px 18px; border-radius: 10px; font-weight: 600; color: var(--text-2); transition: all 0.2s; }
.nav-tabs button:hover { color: var(--text); }
.nav-tabs button[aria-selected='true'] { background: var(--text); color: var(--on-accent); }
.nav-right { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sources { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.pill.live i { background: var(--good); box-shadow: 0 0 0 3px rgba(62, 230, 168, 0.2); animation: pulse 2.4s infinite; }
.pill.stale i { background: var(--ok); }
.pill.err i { background: var(--bad); }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(62, 230, 168, 0); } }
.seg.lang button { padding: 6px 9px; letter-spacing: 0.04em; }
#theme .sun { display: none; }
:root[data-theme="light"] #theme .sun { display: block; }
:root[data-theme="light"] #theme .moon { display: none; }
.icon-btn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--glass); transition: all 0.2s; }
.icon-btn:hover { border-color: var(--teal); color: var(--teal); }
.icon-btn.spin svg { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Lanceur ──────────────────────────────────────────── */
.launcher { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 26px 34px; }
.launcher .region-cn { grid-column: 1 / -1; }
.region-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-2); }
.region-title .bar { width: 22px; height: 4px; border-radius: 4px; }
.region-title span { color: var(--text-3); font-weight: 500; letter-spacing: 0.04em; text-transform: none; }
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); gap: 16px; }
.region-eu .apps { grid-template-columns: 170px; }

.app {
  --b: #888;
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  aspect-ratio: 1 / 1.08; padding: 18px 12px 14px; border-radius: 26px; color: var(--text); isolation: isolate; overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--b) 42%, transparent), transparent 62%),
    linear-gradient(180deg, color-mix(in srgb, var(--b) 12%, var(--surface-2)), var(--surface));
  border: 1px solid color-mix(in srgb, var(--b) 28%, transparent);
  transition: transform 0.25s cubic-bezier(.2, .8, .2, 1), box-shadow 0.25s, border-color 0.25s;
}
.app:hover, .app:focus-visible {
  text-decoration: none; transform: translateY(-6px) scale(1.03); outline: none;
  border-color: color-mix(in srgb, var(--b) 75%, white 5%);
  box-shadow: 0 22px 44px -18px color-mix(in srgb, var(--b) 80%, transparent), 0 0 0 1px color-mix(in srgb, var(--b) 40%, transparent);
}
.app .icon {
  width: 70px; height: 70px; border-radius: 20px; display: grid; place-items: center; background: #fff;
  box-shadow: 0 12px 26px -10px color-mix(in srgb, var(--b) 90%, black), inset 0 -2px 0 rgba(0, 0, 0, 0.06);
  transition: transform 0.3s;
}
.app:hover .icon { transform: scale(1.07) rotate(-3deg); }
.app .icon img { width: 42px; height: 42px; }
.app .name { margin-top: 14px; font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.app .lab { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.app .iq {
  position: absolute; top: 10px; right: 10px; font: 600 11px var(--mono); padding: 3px 7px; border-radius: 8px;
  background: var(--dim); color: var(--text-2); transition: opacity 0.2s;
}
.app .iq.top { color: #1a1206; background: linear-gradient(135deg, var(--amber), var(--coral)); }
.app .go {
  position: absolute; top: 9px; right: 9px; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center;
  background: var(--b); color: #fff; opacity: 0; transform: scale(0.6); transition: all 0.2s;
}
.app:hover .go { opacity: 1; transform: none; }
.app:hover .iq { opacity: 0; }
.fav {
  position: absolute; top: 8px; left: 8px; width: 28px; height: 28px; border-radius: 9px; border: 0; z-index: 2;
  display: grid; place-items: center; background: var(--dim); color: var(--text-3); opacity: 0; transition: all 0.2s;
}
.app:hover .fav, .fav.on { opacity: 1; }
.fav:hover { color: var(--amber); }
.fav.on { color: var(--amber); background: transparent; }
.app .info {
  position: absolute; bottom: 8px; right: 8px; width: 26px; height: 26px; border-radius: 8px; border: 0; z-index: 2;
  display: grid; place-items: center; background: var(--dim); color: var(--text-2); opacity: 0; transition: opacity 0.2s;
  font: 700 13px var(--mono);
}
.app:hover .info { opacity: 1; }
.app .info:hover { color: #fff; background: var(--b); }

#favorites:not(:empty) { margin-bottom: 30px; }
.hidden-app { display: none; }
.no-match { color: var(--text-3); padding: 20px 0; }

/* ── Marché ───────────────────────────────────────────── */
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.kpi { position: relative; padding: 18px 20px; border-radius: 20px; background: var(--glass); border: 1px solid var(--line); overflow: hidden; min-width: 0; }
.kpi::after { content: ''; position: absolute; right: -30px; top: -30px; width: 100px; height: 100px; border-radius: 50%; background: var(--k, var(--coral)); opacity: 0.16; filter: blur(20px); }
.kpi .k { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.kpi .v { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.kpi .s { font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dash { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.widget { grid-column: span 12; padding: 20px 22px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--line); min-width: 0; }
.w-7 { grid-column: span 7; } .w-5 { grid-column: span 5; } .w-4 { grid-column: span 4; }
.widget > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.widget h2 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.widget h2 em { font-style: normal; color: var(--text-3); font-weight: 500; }
.widget header p { margin: 3px 0 0; font-size: 12.5px; color: var(--text-3); }
.note { font-size: 12.5px; color: var(--text-3); margin: 12px 0 0; }

.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 11px; background: var(--well); border: 1px solid var(--line); flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--glass-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.rdot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.rdot.us { background: var(--us); } .rdot.cn { background: var(--cn); } .rdot.eu { background: var(--eu); }

.mini-icon { width: 26px; height: 26px; border-radius: 8px; background: #fff; display: grid; place-items: center; flex: none; }
.mini-icon img { width: 17px; height: 17px; }
.mini-icon.ghost { background: var(--glass-2); color: var(--text-3); font-size: 12px; font-weight: 700; }

.ranking { display: grid; gap: 3px; }
.rank-row {
  display: grid; grid-template-columns: 22px 26px minmax(0, 150px) minmax(0, 1fr) 58px; gap: 10px; align-items: center;
  padding: 5px 6px; border: 0; background: none; border-radius: 10px; text-align: left; width: 100%;
}
.rank-row:not(:disabled):hover { background: var(--glass-2); }
.rank-row:disabled { cursor: default; }
.rank-row .n { font: 600 12px var(--mono); color: var(--text-3); text-align: right; }
.rank-row .who { min-width: 0; line-height: 1.25; }
.rank-row .who b { display: block; font-weight: 700; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-row .who small { display: block; font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-row .track { height: 10px; border-radius: 6px; background: var(--track); overflow: hidden; }
.rank-row .track i { display: block; height: 100%; border-radius: 6px; transition: width 0.7s cubic-bezier(.2, .8, .2, 1); }
.rank-row .val { text-align: right; font: 600 13px var(--mono); }
.badge-add { font-size: 9.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); margin-left: 6px; }

.scatter svg { display: block; width: 100%; height: auto; overflow: visible; }
.scatter .grid-line { stroke: var(--line); }
.scatter .tick { fill: var(--text-3); font: 500 11px 'Plus Jakarta Sans', sans-serif; }
.scatter .frontier { fill: none; stroke: var(--amber); stroke-width: 1.5; stroke-dasharray: 5 5; opacity: 0.8; }
.scatter .bubble { cursor: pointer; }
.scatter .bubble circle.halo { transition: r 0.2s; }
.scatter .bubble:hover circle.halo { r: 24; }
.scatter .lbl { fill: var(--text-2); font: 600 11.5px 'Plus Jakarta Sans', sans-serif; pointer-events: none; }

.fresh { display: grid; }
.fresh-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.fresh-row:last-child { border-bottom: 0; }
.fresh-row a { display: block; color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fresh-row small { display: block; color: var(--text-3); font-size: 11.5px; }
.fresh-row .num { text-align: right; font: 600 12.5px var(--mono); }
.new-tag { color: var(--good); font-weight: 700; }

.regions { display: grid; gap: 10px; }
.region-card { position: relative; padding: 14px 16px; border-radius: 16px; background: var(--well); border: 1px solid var(--line); overflow: hidden; }
.region-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--rc); }
.region-card .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.region-card .head b { font-size: 15px; }
.region-card .logos { display: flex; }
.region-card .logos .mini-icon { width: 22px; height: 22px; border-radius: 7px; margin-left: -5px; box-shadow: 0 0 0 2px var(--ink); }
.region-card .logos .mini-icon img { width: 14px; height: 14px; }
.region-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.region-stats div { font-size: 10.5px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.1em; }
.region-stats b { display: block; font-size: 18px; color: var(--text); letter-spacing: -0.01em; text-transform: none; font-variant-numeric: tabular-nums; }

.sim-controls { display: grid; gap: 10px; margin-bottom: 14px; }
.sim-controls label { display: grid; grid-template-columns: 1fr auto; gap: 4px; font-size: 12.5px; color: var(--text-2); }
.sim-controls output { font: 600 13px var(--mono); color: var(--text); }
.sim-controls input { grid-column: 1 / -1; width: 100%; accent-color: var(--coral); }
.sim { display: grid; gap: 6px; }
.sim-row { display: grid; grid-template-columns: 22px 84px minmax(0, 1fr) 64px; gap: 8px; align-items: center; font-size: 12.5px; }
.sim-row .mini-icon { width: 22px; height: 22px; border-radius: 7px; }
.sim-row .mini-icon img { width: 14px; height: 14px; }
.sim-row .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); }
.sim-row .track { height: 8px; border-radius: 5px; background: var(--track); overflow: hidden; }
.sim-row .track i { display: block; height: 100%; border-radius: 5px; transition: width 0.3s; }
.sim-row .cost { text-align: right; font: 600 12.5px var(--mono); }

.p-good { color: var(--good); } .p-ok { color: var(--ok); } .p-warn { color: var(--warn); } .p-bad { color: var(--bad); }

/* ── Prix ─────────────────────────────────────────────── */
.toolbar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.toolbar-right { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.input { background: var(--glass); border: 1px solid var(--line-2); border-radius: 11px; color: var(--text); padding: 8px 12px; font: inherit; min-width: 0; }
.input:focus { outline: none; border-color: var(--teal); }
select.input option { background: var(--ink); }
#price-search { width: 240px; }
.check { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--text-2); }
.table-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); background: var(--glass); margin-top: 8px; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { position: sticky; top: 0; background: var(--surface-2); text-align: left; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); padding: 12px 14px; border-bottom: 1px solid var(--line); cursor: pointer; user-select: none; white-space: nowrap; }
.table th:hover { color: var(--text); }
.table th.sorted { color: var(--coral); }
.table th.sorted::after { content: ' ↓'; }
.table th.sorted.asc::after { content: ' ↑'; }
.table td { padding: 9px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--glass-2); }
.table .num { text-align: right; font-family: var(--mono); font-size: 12.5px; }
.table .model { display: flex; gap: 10px; align-items: center; }
.table .model a { color: var(--text); font-weight: 600; }
.table .id { color: var(--text-3); font: 11px var(--mono); }
.table .tag { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 1px 6px; border-radius: 6px; margin-left: 6px; }
.table .tag.new { color: var(--good); background: rgba(62, 230, 168, 0.12); }
.table .tag.flag { color: var(--amber); background: rgba(255, 179, 71, 0.12); }
.mods { display: inline-flex; gap: 4px; }
.mods span { font-size: 11px; color: var(--text-2); border: 1px solid var(--line-2); border-radius: 6px; padding: 0 5px; }

/* ── Fiche ────────────────────────────────────────────── */
.drawer { margin: 0 0 0 auto; height: 100vh; max-height: 100vh; width: min(520px, 100vw); max-width: 100vw; padding: 0; border: 0; border-left: 1px solid var(--line-2); background: var(--surface); color: var(--text); }
.drawer::backdrop { background: rgba(4, 6, 12, 0.6); backdrop-filter: blur(4px); }
.drawer[open] { animation: slide 0.28s cubic-bezier(.2, .8, .2, 1); }
@keyframes slide { from { transform: translateX(60px); opacity: 0; } }
#drawer-body { display: grid; gap: 18px; padding: 0 0 28px; }
.sheet-hero { --b: #888; position: relative; padding: 34px 28px 24px; background: radial-gradient(120% 100% at 0% 0%, color-mix(in srgb, var(--b) 45%, transparent), transparent 70%); display: flex; gap: 16px; align-items: center; }
.sheet-hero .icon { width: 72px; height: 72px; border-radius: 20px; background: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 14px 30px -12px var(--b); }
.sheet-hero .icon img { width: 44px; height: 44px; }
.sheet-hero h3 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.sheet-hero p { margin: 2px 0 0; color: var(--text-2); }
.drawer .close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--dim); font-size: 18px; line-height: 1; }
.sheet-body { padding: 0 28px; display: grid; gap: 18px; }
.cta { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 13px; border-radius: 14px; background: var(--b, var(--coral)); color: #fff; font-weight: 700; font-size: 15px; box-shadow: 0 12px 28px -12px var(--b); }
.cta:hover { text-decoration: none; filter: brightness(1.12); }
.sheet-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sheet-stats div { padding: 10px 12px; border-radius: 12px; background: var(--glass); border: 1px solid var(--line); font-size: 10.5px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.1em; }
.sheet-stats b { display: block; font: 600 16px var(--mono); color: var(--text); letter-spacing: 0; text-transform: none; margin-top: 2px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--glass-2); color: var(--text-2); }
.tags span.hl-tag { background: linear-gradient(135deg, var(--amber), var(--coral)); color: #1a1206; }
.tags span.open-tag { background: rgba(62, 230, 168, 0.14); color: var(--good); }
.sheet-body h4 { margin: 0 0 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.kv { width: 100%; border-collapse: collapse; font-size: 13px; }
.kv td, .kv th { padding: 7px 2px; border-bottom: 1px solid var(--line); text-align: left; }
.kv th { font-size: 10.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.kv .num { text-align: right; font-family: var(--mono); font-size: 12.5px; }
.kv a { color: var(--text); }
.desc { margin: 0; color: var(--text-2); font-size: 14.5px; }
.muted { color: var(--text-3); font-size: 12.5px; margin: 0; }

.foot { margin-top: 56px; padding-top: 18px; padding-bottom: 36px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 12.5px; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 1280px) {
  .w-7, .w-5 { grid-column: span 12; }
  .w-4 { grid-column: span 6; }
  .highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  body > * { padding-left: 16px; padding-right: 16px; }
  .launcher { grid-template-columns: 1fr; }
  .region-eu .apps { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .apps { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 12px; }
  .app .icon { width: 56px; height: 56px; border-radius: 16px; }
  .app .icon img { width: 34px; height: 34px; }
  .app .fav, .app .info { opacity: 1; }
  .clocks { width: 100%; }
  .clock { flex: 1; width: auto; min-width: 0; }
  .clock .time { font-size: 30px; }
  .w-4 { grid-column: span 12; }
  .highlights, .kpis { grid-template-columns: 1fr 1fr; }
  #price-search { width: 100%; }
  .rank-row { grid-template-columns: 18px 26px minmax(0, 110px) minmax(0, 1fr) 48px; gap: 8px; }
  .sources { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── Iris ─────────────────────────────────────────────── */
.eyebrow-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(92, 200, 255, 0.5), 0 0 18px rgba(47, 139, 255, 0.8); }
.iris {
  position: absolute; right: 20px; top: 0; bottom: -40px; width: min(46vw, 620px); z-index: 1; pointer-events: none;
  transform: translate3d(var(--px, 0), var(--py, 0), 0); transition: transform 0.5s ease-out;
}
.iris img {
  position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; object-position: 50% 18%;
  -webkit-mask-image: radial-gradient(60% 68% at 55% 40%, #000 42%, transparent 78%);
  mask-image: radial-gradient(60% 68% at 55% 40%, #000 42%, transparent 78%);
  animation: breathe 7s ease-in-out infinite;
}
.iris-glow { position: absolute; inset: 8% 5% 0 12%; border-radius: 50%; background: radial-gradient(circle, rgba(47, 139, 255, 0.5), transparent 65%); filter: blur(40px); animation: glow 7s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.018); } }
@keyframes glow { 50% { opacity: 0.55; transform: scale(1.08); } }
.hero h1 .accent { background: linear-gradient(100deg, var(--accent-top) 10%, var(--amber) 45%, var(--coral)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.clock { background: var(--clock-bg); border-color: rgba(92, 200, 255, 0.16); }
.clock.day { --sky-grad: radial-gradient(120% 90% at 100% 0%, #ffd76a, transparent 60%); }
.clock.night { --sky-grad: radial-gradient(120% 90% at 100% 0%, #2f8bff, transparent 60%); }
.daybar i { background: linear-gradient(90deg, #2f8bff, #8fe3ff, #ffd76a); }
.nav-tabs button[aria-selected="true"] { background: linear-gradient(135deg, #8fe3ff, #2f8bff); color: #031024; box-shadow: 0 6px 20px -6px rgba(47, 139, 255, 0.8); }
.app .iq.top { color: #031024; background: linear-gradient(135deg, var(--amber), var(--coral)); }

/* ── Podiums ──────────────────────────────────────────── */
.podiums { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 44px; }
.podium-card { padding: 22px 24px 0; border-radius: var(--r); background: linear-gradient(180deg, rgba(47, 139, 255, 0.08), var(--glass) 40%); border: 1px solid var(--line); overflow: hidden; }
.podium-card header h2 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.podium-card header p { margin: 3px 0 0; color: var(--text-3); font-size: 13px; }
.podium { display: grid; grid-template-columns: 1fr 1.12fr 1fr; align-items: end; gap: 12px; margin-top: 18px; }
.step { --m: var(--silver); display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--text); cursor: pointer; border: 0; background: none; padding: 0; min-width: 0; }
.step.p1 { --m: var(--gold); order: 2; } .step.p2 { order: 1; } .step.p3 { --m: var(--bronze); order: 3; }
.step .icon { width: 62px; height: 62px; border-radius: 18px; background: #fff; display: grid; place-items: center; transition: transform 0.25s; box-shadow: 0 0 0 3px color-mix(in srgb, var(--m) 70%, transparent), 0 14px 30px -10px var(--m); }
.step.p1 .icon { width: 76px; height: 76px; border-radius: 22px; }
.step .icon img { width: 60%; height: 60%; }
.step:hover .icon { transform: translateY(-4px) scale(1.05); }
.step .nm { margin-top: 10px; font-weight: 800; font-size: 15px; }
.step .md { font-size: 11.5px; color: var(--text-3); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step .sc { font: 600 13px var(--mono); margin-top: 4px; color: var(--m); }
.step .block {
  width: 100%; margin-top: 12px; border-radius: 14px 14px 0 0; display: grid; place-items: center;
  font: 800 34px "Plus Jakarta Sans", sans-serif; color: #fff; text-shadow: 0 2px 14px var(--m);
  background: linear-gradient(180deg, color-mix(in srgb, var(--m) 50%, transparent), color-mix(in srgb, var(--m) 6%, transparent));
  border: 1px solid color-mix(in srgb, var(--m) 45%, transparent); border-bottom: 0;
}
.step.p1 .block { height: 120px; } .step.p2 .block { height: 88px; } .step.p3 .block { height: 64px; }

/* ── Actus ────────────────────────────────────────────── */
.home-grid { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 18px; margin-top: 18px; align-items: start; }
.news { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.news-item {
  display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; color: var(--text); background: var(--well);
  border: 1px solid var(--line); transition: transform 0.2s, border-color 0.2s;
}
.news-item:hover { text-decoration: none; transform: translateY(-3px); border-color: rgba(92, 200, 255, 0.45); }
.news-item .thumb { aspect-ratio: 16 / 9; background: var(--thumb, linear-gradient(135deg, #0b2a55, #03060d)); background-size: cover; background-position: center; position: relative; }
.news-item .thumb .src { position: absolute; left: 10px; bottom: 10px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: rgba(3, 6, 13, 0.75); backdrop-filter: blur(6px); }
.news-item .thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; font: 800 24px "Plus Jakarta Sans", sans-serif; color: rgba(255, 255, 255, 0.22); letter-spacing: -0.02em; }
.news-item .body { padding: 12px 14px 14px; display: grid; gap: 6px; }
.news-item .t { font-weight: 700; font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-item .d { font-size: 11.5px; color: var(--text-3); }
.news-item.lead { grid-column: span 2; }
.news-item.lead .t { font-size: 19px; }
.news-more { grid-column: 1 / -1; justify-self: center; margin-top: 4px; }
.btn { border: 1px solid var(--line-2); background: var(--glass); border-radius: 11px; padding: 8px 16px; font-weight: 600; font-size: 13px; color: var(--text); }
.btn:hover { border-color: var(--teal); }

@media (max-width: 1280px) {
  .home-grid { grid-template-columns: 1fr; }
  .iris { width: 44vw; opacity: 0.8; }
}
@media (max-width: 860px) {
  .hero { min-height: 0; }
  .iris { right: -30px; width: 75vw; opacity: 0.35; }
  .podiums { grid-template-columns: 1fr; }
  .news-item.lead { grid-column: auto; }
}

/* ── Tuile = carte cliquable + boutons favori / fiche ─── */
.tile { position: relative; --b: #888; }
.tile .app { width: 100%; height: 100%; }
.tile:hover .fav, .tile .fav.on, .tile:hover .info, .tile:focus-within .fav, .tile:focus-within .info { opacity: 1; }
.tile .info {
  position: absolute; bottom: 8px; right: 8px; width: 26px; height: 26px; border-radius: 8px; border: 0; z-index: 2;
  display: grid; place-items: center; background: var(--dim); color: var(--text-2); opacity: 0; transition: opacity 0.2s;
  font: 700 13px var(--mono);
}
.tile .info:hover { color: #fff; background: var(--b); }
.tile:hover .app { transform: translateY(-6px) scale(1.03); border-color: color-mix(in srgb, var(--b) 75%, white 5%); box-shadow: 0 22px 44px -18px color-mix(in srgb, var(--b) 80%, transparent), 0 0 0 1px color-mix(in srgb, var(--b) 40%, transparent); }
.tile:hover .app .go { opacity: 1; transform: none; }
.tile:hover .app .iq { opacity: 0; }
.tile:hover .fav, .tile:hover .info { transform: translateY(-6px); }
.step:hover { text-decoration: none; }
.sheet-hero .close { top: 14px; right: 14px; }
.sheet-hero .icon { width: 72px; height: 72px; }
@media (max-width: 860px) { .tile .fav, .tile .info { opacity: 1; } }

/* ── Concepts fondamentaux ────────────────────────────── */
.concepts { max-width: 980px; }
.concepts-head h1 { margin: 0; font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.03em; }
.concepts-head .lead { margin: 10px 0 6px; color: var(--text-2); font-size: 16px; max-width: 720px; line-height: 1.6; }
.concepts-notice { color: var(--warn); }
.concept-group { margin-top: 30px; }
.concept-group .region-title .bar { background: linear-gradient(90deg, var(--coral), var(--teal)); }
.concept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.concept-card {
  display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border-radius: 18px; color: var(--text);
  background: var(--glass); border: 1px solid var(--line); transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.concept-card:hover { text-decoration: none; transform: translateY(-3px); border-color: color-mix(in srgb, var(--teal) 55%, transparent); box-shadow: 0 18px 40px -22px var(--coral); }
.concept-card .row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.concept-card .row b { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.concept-card .row small { font: 600 11px var(--mono); color: var(--text-3); white-space: nowrap; }
.concept-card .tg { color: var(--text-2); font-size: 13.5px; line-height: 1.5; }
.concept-card .more { margin-top: auto; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.concept-card:hover .more { color: var(--teal); }

.concept { max-width: 760px; }
.concept .back, .concepts .back { display: inline-block; color: var(--text-2); font-size: 13.5px; margin-bottom: 18px; }
.concept .back:hover { color: var(--teal); }
.concept .kicker { margin: 0; font-size: 11.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); }
.concept h1 { margin: 6px 0 0; font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.concept .tagline { margin: 10px 0 0; font-style: italic; color: var(--text-2); font-size: 16px; }
.concept-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }
.concept-nav a { color: var(--text-2); } .concept-nav a:hover { color: var(--teal); text-decoration: none; }
.concept-nav a:last-child { text-align: right; }

/* Rendu Markdown des fiches */
.prose { margin-top: 28px; font-size: 15.5px; line-height: 1.7; color: var(--text); }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 34px 0 10px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.prose h3 { margin: 26px 0 8px; font-size: 17px; font-weight: 700; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 24px; }
.prose li { margin: 4px 0; }
.prose li > p { margin: 0; }
.prose strong { color: var(--text); font-weight: 700; }
.prose code { font: 500 0.88em var(--mono); padding: 2px 6px; border-radius: 6px; background: var(--well); border: 1px solid var(--line); }
.prose pre { margin: 0 0 16px; padding: 14px 16px; border-radius: 12px; background: var(--well); border: 1px solid var(--line); overflow-x: auto; }
.prose pre code { padding: 0; border: 0; background: none; font-size: 13px; }
.prose blockquote { margin: 0 0 16px; padding: 12px 18px; border-left: 3px solid var(--teal); border-radius: 0 12px 12px 0; background: var(--well); color: var(--text-2); }
.prose blockquote p:last-child { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 14px; }
.prose th, .prose td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { color: var(--text-3); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.prose details { margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: var(--well); border: 1px solid var(--line-2); }
.prose details summary { cursor: pointer; font-weight: 700; color: var(--teal); }
.prose details[open] summary { margin-bottom: 8px; }
.prose img { max-width: 100%; border-radius: 12px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.md-raw { white-space: pre-wrap; font: inherit; }
