/* * QC Élection Forecast — Plateforme de prévision électorale du Québec 2026 * Auteur : Simon-Pierre Boucher * Contact : contact@spboucher.ai * https://www.qc-election.com */ /* ============================================================================ QC SIGNAL — design system v4 « editorial intelligence · election command center · scientific forecasting » - Palettes light/dark dédiées (le dark n'est pas une inversion) - Couleurs des partis RÉSERVÉES aux données (validées CVD/contraste) - Bleu institutionnel neutre (jamais celui d'un parti) - Surfaces > bordures ; ombres discrètes ; chiffres tabulaires partout ========================================================================== */ @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap'); /* ---------------------------------------------------------------- tokens */ :root, [data-theme="dark"] { /* fonds : bleu-noir profond → surfaces graphite */ --bg: #0a0d14; --surface: #0f131c; --card: #131824; --card-2: #1a2030; --line: rgba(160, 178, 210, .10); /* bordure discrète par défaut */ --border: rgba(160, 178, 210, .11); --border-strong: rgba(170, 188, 218, .22); --ink: #edeff5; /* blanc cassé */ --ink-2: #aab2c5; --muted: #7d8699; --accent: #94a9d3; /* bleu institutionnel neutre */ --accent-strong: #5c7ec2; --accent-ink: #0a0d14; --good: #40a869; --warn: #cc9526; --danger: #e5484d; --shadow-sm: 0 1px 2px rgba(2, 4, 10, .35); --shadow-md: 0 1px 2px rgba(2, 4, 10, .35), 0 14px 34px -22px rgba(2, 4, 10, .8); --shadow: var(--shadow-sm); --shadow-lift: var(--shadow-md); --hero-grad: radial-gradient(1100px 420px at 12% -12%, rgba(78, 112, 178, .13), transparent 62%), radial-gradient(900px 400px at 88% -18%, rgba(112, 105, 214, .07), transparent 60%); --header-bg: rgba(10, 13, 20, .8); --strip-bg: rgba(15, 19, 28, .86); --drawer-bg: rgba(14, 18, 27, .97); color-scheme: dark; } [data-theme="light"] { --bg: #eef0f4; --surface: #f5f6fa; --card: #ffffff; --card-2: #edeff5; --line: rgba(38, 54, 92, .10); --border: rgba(38, 54, 92, .11); --border-strong: rgba(38, 54, 92, .22); --ink: #161b26; --ink-2: #414d68; --muted: #67718a; --accent: #3d5a94; --accent-strong: #35507e; --accent-ink: #ffffff; --good: #257347; --warn: #94690f; --danger: #c93540; --shadow-sm: 0 1px 2px rgba(23, 32, 64, .06); --shadow-md: 0 1px 2px rgba(23, 32, 64, .05), 0 14px 34px -24px rgba(23, 32, 64, .3); --shadow: var(--shadow-sm); --shadow-lift: var(--shadow-md); --hero-grad: radial-gradient(1100px 420px at 12% -12%, rgba(70, 100, 160, .09), transparent 62%), radial-gradient(900px 400px at 88% -18%, rgba(112, 105, 214, .05), transparent 60%); --header-bg: rgba(245, 246, 250, .85); --strip-bg: rgba(255, 255, 255, .82); --drawer-bg: rgba(250, 251, 253, .98); color-scheme: light; } :root { /* radius / espace / motion */ --r-8: 8px; --r-12: 12px; --r-16: 16px; --r-20: 20px; --r-24: 24px; --r-full: 999px; --radius: var(--r-16); --radius-sm: var(--r-8); --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px; --ease: cubic-bezier(.25, .6, .3, 1); --t-fast: 130ms; --t-med: 200ms; /* couleurs des partis — DONNÉES SEULEMENT, jamais pour le chrome du site */ --caq: #0097cf; --plq: #e5484d; --pq: #3f7ad6; --qs: #e06c1f; --pcq: #7069d6; --aut: #ad8226; font-size: 15px; } /* ---------------------------------------------------------------- base */ * { box-sizing: border-box; } html { scroll-behavior: smooth; } html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); font-family: "Inter", -apple-system, "SF Pro Text", "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: "cv02", "cv11"; } html, body { overflow-x: clip; } /* le tiroir hors-écran ne doit jamais créer de défilement */ body { background-image: var(--hero-grad); background-repeat: no-repeat; min-height: 100dvh; } body.nav-open { overflow: hidden; } a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; text-underline-offset: 3px; } :focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; border-radius: 4px; } ::selection { background: color-mix(in srgb, var(--accent-strong) 30%, transparent); } code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .84em; } b, strong { font-weight: 650; } .wrap { max-width: 1280px; margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-left)) 60px max(20px, env(safe-area-inset-right)); } /* -------------------------------------------------- échelle typographique */ .t-display { font-size: clamp(1.7rem, 1.1rem + 2.4vw, 2.5rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.12; } .metric-xl { font-size: clamp(2.6rem, 1.6rem + 3.4vw, 4.27rem); /* ~64px */ font-weight: 800; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; } .caption { font-size: .76rem; color: var(--muted); line-height: 1.5; } .label-up { font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; } .num, .tabular { font-variant-numeric: tabular-nums; } /* ---------------------------------------------------------------- header */ header.site { position: sticky; top: 0; z-index: 80; background: var(--header-bg); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); border-bottom: 1px solid var(--line); } header.site .inner { max-width: 1280px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left)); display: flex; align-items: center; gap: 16px; height: 56px; } .brand { font-weight: 800; letter-spacing: -.025em; font-size: 1.02rem; white-space: nowrap; display: flex; align-items: center; gap: 8px; color: var(--ink); } .brand .fleur { display: inline-flex; align-items: center; color: var(--accent-strong); flex: none; } .brand .fleur svg { width: 19px; height: 19px; display: block; } .brand .b-sub { color: var(--muted); font-weight: 500; } nav.main { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; } nav.main::-webkit-scrollbar { display: none; } nav.main a { color: var(--ink-2); padding: 6px 10px; border-radius: var(--r-full); font-size: .88rem; font-weight: 500; white-space: nowrap; transition: background var(--t-fast), color var(--t-fast); } nav.main a:hover { color: var(--ink); background: var(--card-2); text-decoration: none; } nav.main a.active { color: var(--ink); background: var(--card-2); font-weight: 650; } .updated { margin-left: auto; color: var(--muted); font-size: .76rem; white-space: nowrap; font-variant-numeric: tabular-nums; } /* --------------------------------------------------------- forecast strip */ .fstrip { border-top: 1px solid var(--line); background: var(--strip-bg); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; } .fstrip::-webkit-scrollbar { display: none; } .fstrip .fs-inner { max-width: 1280px; margin: 0 auto; height: 34px; display: flex; align-items: center; gap: 18px; padding: 0 max(16px, env(safe-area-inset-left)); white-space: nowrap; } .fstrip .fs-label { font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); flex: none; } .fstrip .fs-item { display: inline-flex; align-items: baseline; gap: 5px; font-size: .8rem; font-variant-numeric: tabular-nums; color: var(--ink-2); text-decoration: none; flex: none; } .fstrip .fs-item:hover { text-decoration: none; color: var(--ink); } .fstrip .fs-item .p { font-weight: 800; letter-spacing: .01em; } .fstrip .fs-item .v { font-weight: 650; color: var(--ink); } .fstrip .fs-item .dlt { font-size: .7rem; font-weight: 600; color: var(--muted); } .fstrip .fs-right { margin-left: auto; color: var(--muted); font-size: .72rem; font-variant-numeric: tabular-nums; flex: none; padding-left: 14px; } /* ------------------------------------------------ hamburger + drawer */ .nav-burger { display: none; margin-left: auto; width: 40px; height: 40px; flex: none; background: transparent; border: 1px solid var(--border); border-radius: var(--r-12); cursor: pointer; position: relative; padding: 0; } .nav-burger span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .22s var(--ease), opacity .18s, top .22s var(--ease); } .nav-burger span:nth-child(1) { top: 13px; } .nav-burger span:nth-child(2) { top: 19px; } .nav-burger span:nth-child(3) { top: 25px; } body.nav-open .nav-burger span:nth-child(1) { top: 19px; transform: rotate(45deg); } body.nav-open .nav-burger span:nth-child(2) { opacity: 0; } body.nav-open .nav-burger span:nth-child(3) { top: 19px; transform: rotate(-45deg); } .nav-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(4, 6, 10, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .22s var(--ease); } body.nav-open .nav-backdrop { opacity: 1; pointer-events: auto; } .drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 95; width: min(320px, 86vw); background: var(--drawer-bg); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); border-left: 1px solid var(--line); transform: translateX(105%); transition: transform .22s var(--ease); display: flex; flex-direction: column; padding: max(14px, env(safe-area-inset-top)) 14px max(20px, env(safe-area-inset-bottom)); box-shadow: -24px 0 60px -30px rgba(0, 0, 0, .55); } body.nav-open .drawer { transform: translateX(0); } .drawer .drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 14px; border-bottom: 1px solid var(--line); margin-bottom: 10px; } .drawer .drawer-head .brand { font-size: 1rem; } .drawer nav { display: flex; flex-direction: column; gap: 3px; overflow-y: auto; } .drawer nav a { display: flex; align-items: center; justify-content: space-between; color: var(--ink-2); font-size: 1.02rem; font-weight: 500; padding: 12px 14px; border-radius: var(--r-12); } .drawer nav a:hover { text-decoration: none; background: var(--card-2); color: var(--ink); } .drawer nav a.active { background: var(--card-2); color: var(--ink); font-weight: 700; } .drawer nav a.active::after { content: "●"; font-size: 8px; color: var(--accent-strong); } .drawer .drawer-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; display: flex; align-items: center; justify-content: space-between; gap: 10px; } /* ---------------------------------------------------------------- hero */ .hero { padding: 40px 0 8px; } .hero h1 { font-size: clamp(1.55rem, 1.1rem + 2vw, 2.15rem); font-weight: 800; letter-spacing: -.035em; margin: 0 0 7px; line-height: 1.15; color: var(--ink); } .hero .sub { color: var(--ink-2); margin: 0; font-size: .98rem; line-height: 1.6; max-width: 880px; } .hero .countdown { color: var(--accent); font-variant-numeric: tabular-nums; font-weight: 650; } .disclaimer { color: var(--muted); font-size: .8rem; margin-top: 8px; max-width: 780px; line-height: 1.55; } .hero .kicker { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-variant-numeric: tabular-nums; } .hero .kicker .sep { color: var(--border-strong); } /* ---------------------------------------------------------------- cards */ .grid { display: grid; gap: 14px; margin: 22px 0; } .grid > * { min-width: 0; } /* les items de grille doivent pouvoir rétrécir (canvas ECharts) */ .grid.parties { grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); } .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: repeat(3, 1fr); } @media (max-width: 900px) { .grid.two, .grid.three { grid-template-columns: 1fr; } } .card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); transition: border-color var(--t-med), box-shadow var(--t-med), transform var(--t-med); } .card:hover { border-color: var(--border-strong); } .party-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); } .card h3 { margin: 0 0 5px; font-size: .76rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .09em; } .card .note, .note { color: var(--muted); font-size: .78rem; margin-top: 8px; line-height: 1.55; } .party-card { position: relative; overflow: hidden; } .party-card .bar { position: absolute; top: 0; left: 0; right: 0; height: 3px; mask-image: linear-gradient(90deg, #000 55%, transparent); } .party-card .pname { font-weight: 700; font-size: .93rem; margin-bottom: 2px; letter-spacing: -.01em; } .party-card .leader { color: var(--muted); font-size: .76rem; margin-bottom: 10px; } .bignum { font-size: 2.25rem; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1.06; } .bignum small { font-size: .9rem; color: var(--ink-2); font-weight: 500; letter-spacing: 0; } .kv { display: flex; justify-content: space-between; gap: 10px; font-size: .84rem; color: var(--ink-2); padding: 4px 0; font-variant-numeric: tabular-nums; } .kv b { color: var(--ink); font-weight: 650; text-align: right; } /* ---------- indicateur de variation (neutre — jamais vert/rouge) ---------- */ .delta { display: inline-flex; align-items: baseline; gap: 3px; font-size: .74rem; font-weight: 650; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; } .delta .arr { font-size: .68em; transform: translateY(-1px); } /* ---------- barre d'intervalle visuelle a ───●─── b ---------- */ .range { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; } .range .rtrack { position: relative; height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 9%, transparent); min-width: 40px; } .range .rfill { position: absolute; top: 0; bottom: 0; border-radius: 4px; opacity: .45; } .range .rdot { position: absolute; top: 50%; width: 9px; height: 9px; border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 2px var(--card); } .range .rmark { position: absolute; top: -4px; bottom: -4px; width: 1.5px; background: var(--border-strong); } /* ---------------------------------------------- hémicycle + outcome bar */ .hemi { position: relative; } .hemi svg { display: block; width: 100%; height: auto; } .hemi .seat { transition: opacity var(--t-fast); cursor: default; } .hemi .seat.dim { opacity: .25; } .hemi-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; margin-top: 6px; font-size: .78rem; color: var(--ink-2); font-variant-numeric: tabular-nums; } .hemi-legend .hl-item { display: inline-flex; align-items: baseline; gap: 6px; cursor: default; } .hemi-legend .hl-item .sw { width: 10px; height: 10px; border-radius: 3px; align-self: center; margin: 0; } .hemi-legend .hl-item b { color: var(--ink); } .hemi-legend .hl-item .ci { color: var(--muted); font-size: .72rem; } .hemi-tip { position: absolute; pointer-events: none; z-index: 5; display: none; background: var(--card-2); border: 1px solid var(--border-strong); border-radius: var(--r-8); padding: 6px 10px; font-size: .76rem; color: var(--ink); box-shadow: var(--shadow-md); white-space: nowrap; font-variant-numeric: tabular-nums; } .outcome-bar { display: flex; height: 40px; border-radius: var(--r-12); overflow: hidden; background: var(--card-2); } .outcome-bar > div { display: flex; flex-direction: column; justify-content: center; padding: 0 12px; min-width: 0; overflow: hidden; white-space: nowrap; } .outcome-bar .ob-t { font-size: .68rem; font-weight: 650; opacity: .85; text-overflow: ellipsis; overflow: hidden; } .outcome-bar .ob-v { font-size: .92rem; font-weight: 800; font-variant-numeric: tabular-nums; } /* --------------------------------------------------------------- charts */ .chart { width: 100%; height: 360px; } .chart.tall { height: 440px; } .chart.short { height: 240px; } .chart-note { color: var(--muted); font-size: .78rem; margin-top: 6px; line-height: 1.55; } /* --------------------------------------------------------- majority meter */ .meter { display: flex; height: 34px; border-radius: var(--r-12); overflow: hidden; gap: 2px; background: var(--surface); } .meter div { display: flex; align-items: center; justify-content: center; font-size: .74rem; font-weight: 700; color: #fff; letter-spacing: .02em; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); min-width: 0; overflow: hidden; transition: flex .4s var(--ease); font-variant-numeric: tabular-nums; } .meter-axis { position: relative; height: 18px; color: var(--muted); font-size: .72rem; } .meter-axis .maj { position: absolute; left: 50%; transform: translateX(-50%); } /* --------------------------------------------------------------- tables */ table.data { width: 100%; border-collapse: collapse; font-size: .86rem; font-variant-numeric: tabular-nums; } table.data th { text-align: left; color: var(--muted); font-weight: 650; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; padding: 9px 10px; border-bottom: 1px solid var(--border-strong); white-space: nowrap; position: sticky; top: 0; background: var(--card); z-index: 2; } table.data td { padding: 9px 10px; border-bottom: 1px solid var(--line); } table.data tr:last-child td { border-bottom: 0; } table.data tr:hover td { background: color-mix(in srgb, var(--accent) 6%, transparent); } .table-scroll { overflow: auto; max-height: 70vh; border-radius: var(--r-8); } .chip { display: inline-block; padding: 2.5px 10px; border-radius: var(--r-full); font-size: .72rem; font-weight: 650; letter-spacing: .01em; } .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: baseline; } /* ------------------------------------------------------ filtres & champs */ .filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0; } .filters label { color: var(--muted); font-size: .8rem; } select, input[type="text"], input[type="date"], input[type="number"], input[type="password"], textarea { background: var(--card-2); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-8); padding: 8px 12px; font-size: .88rem; font-family: inherit; transition: border-color var(--t-fast); } select:hover, input:hover, textarea:hover { border-color: var(--border-strong); } select:focus, input:focus, textarea:focus { outline: none; border-color: var(--accent-strong); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-strong) 20%, transparent); } button, .btn { background: var(--card-2); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-8); padding: 9px 15px; font-size: .88rem; cursor: pointer; font-family: inherit; font-weight: 600; transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast); } button:hover, .btn:hover { border-color: var(--accent-strong); } button:active { transform: scale(.985); } button.primary { background: var(--accent-strong); color: #fff; border-color: transparent; } button.primary:hover { background: color-mix(in srgb, var(--accent-strong) 88%, #fff); } button:disabled { opacity: .5; cursor: default; } /* ------------------------------------------------------ sliders (simulateur) */ .slider-row { display: grid; grid-template-columns: 130px 1fr 64px; gap: 12px; align-items: center; padding: 7px 0; } .slider-row .val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 650; font-size: .9rem; } input[type="range"] { width: 100%; accent-color: var(--accent-strong); } /* ------------------------------------------------------ carte / cartogramme */ .carto { display: flex; flex-wrap: wrap; gap: 18px; } .carto .region { min-width: 150px; } .carto .region h4 { margin: 0 0 6px; font-size: .76rem; color: var(--muted); font-weight: 650; } .carto .cells { display: grid; grid-template-columns: repeat(4, 26px); gap: 3px; } .cell { width: 26px; height: 26px; border-radius: 6px; cursor: pointer; border: 1px solid transparent; transition: transform var(--t-fast); } .cell:hover { transform: scale(1.2); border-color: var(--ink); z-index: 2; position: relative; } .cell.tossup { border: 1px dashed color-mix(in srgb, var(--ink) 55%, transparent); } .side-panel { position: sticky; top: 106px; max-height: calc(100vh - 130px); overflow: auto; } .legend-row { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; color: var(--ink-2); font-size: .8rem; margin: 10px 0; } .sw { display: inline-block; width: 13px; height: 13px; border-radius: 4px; vertical-align: -2px; margin-right: 5px; } .map-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(300px, 1fr); gap: 14px; margin: 14px 0; align-items: start; } @media (max-width: 980px) { .map-layout { grid-template-columns: 1fr; } } /* ------------------------------------------------------ timeline événements */ .events { display: flex; flex-direction: column; gap: 9px; } .event { display: flex; gap: 12px; font-size: .85rem; line-height: 1.45; } .event .d { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; } /* ---------------------------------------------------------------- divers */ h2.section { font-size: 1.16rem; font-weight: 750; letter-spacing: -.025em; margin: 38px 0 4px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } p.section-sub { color: var(--muted); font-size: .84rem; margin: 0 0 12px; line-height: 1.55; max-width: 880px; } .prose { max-width: 860px; line-height: 1.7; color: var(--ink-2); } .prose h2 { color: var(--ink); font-size: 1.2rem; margin-top: 36px; letter-spacing: -.02em; } .prose h3 { color: var(--ink); font-size: 1rem; margin-top: 24px; } .prose code { background: var(--card-2); padding: 1px 6px; border-radius: 5px; } .prose table.data { margin: 12px 0; } .badge-aux { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); } .ask-box { display: flex; gap: 10px; } .ask-box input { flex: 1; } .answer { background: var(--card-2); border-radius: var(--r-12); padding: 14px 16px; line-height: 1.6; font-size: .92rem; margin-top: 12px; display: none; } footer.site { margin-top: 64px; padding: 26px 0 max(26px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; line-height: 1.65; } .credits { color: var(--muted); font-size: .72rem; } /* ------------------------------------------------- états : chargement / vide */ .loading { color: var(--muted); padding: 34px; text-align: center; position: relative; font-size: .85rem; } .loading::after { content: ""; display: block; margin: 14px auto 0; width: 130px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--card-2), var(--border-strong), var(--card-2)); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; } @keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } } .skel { border-radius: var(--r-8); background: linear-gradient(100deg, var(--card-2) 40%, color-mix(in srgb, var(--ink) 7%, var(--card-2)) 50%, var(--card-2) 60%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; min-height: 14px; } .empty-note { color: var(--muted); font-size: .84rem; padding: 22px 10px; text-align: center; line-height: 1.55; } /* ------------------------------------------------------- bascule de thème */ .theme-toggle { background: transparent; border: 1px solid var(--border); border-radius: var(--r-full); width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; flex: none; color: var(--ink-2); } .theme-toggle:hover { border-color: var(--accent-strong); color: var(--ink); } .theme-toggle svg { width: 16px; height: 16px; display: block; } /* -------------------------------------------------------- carte géographique */ .geo-map { width: 100%; height: min(72vh, 700px); min-height: 420px; } .map-tabs { display: flex; gap: 6px; margin: 0 0 12px; flex-wrap: wrap; } .map-tabs button.on { background: var(--accent-strong); color: #fff; border-color: var(--accent-strong); } /* -------------------------------------------------------- avatars & logos */ .avatar { border-radius: 50%; object-fit: cover; border: 2px solid var(--border); vertical-align: middle; background: var(--card-2); } .avatar-init { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; border: 2px solid; border-radius: 50%; } .party-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; } .party-head .who { min-width: 0; } .plogo { height: 20px; max-width: 88px; object-fit: contain; display: block; margin-top: 6px; opacity: .92; } [data-theme="dark"] .plogo { filter: drop-shadow(0 0 1px rgba(255,255,255,.25)); background: rgba(255, 255, 255, .9); border-radius: 5px; padding: 2px 6px; } .avatars-stack { display: flex; } .avatars-stack .avatar + .avatar { margin-left: -12px; } /* ------------------------------------------- accueil : main outcome ----- */ .outcome { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 36px; align-items: center; padding: 26px 28px; margin: 20px 0; } .outcome .o-left .o-verdict { margin: 2px 0 6px; } .outcome .o-left .o-verdict .metric-xl { display: inline; } .outcome .o-facts { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; max-width: 460px; } .outcome .o-fact { display: grid; grid-template-columns: 118px 1fr; gap: 12px; align-items: center; font-size: .84rem; } .outcome .o-fact .f-l { color: var(--muted); } .outcome .o-fact .f-v { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; } @media (max-width: 980px) { .outcome { grid-template-columns: 1fr; padding: 20px 18px; gap: 18px; } } /* cartes partis compactes data-first */ .pcard .p-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; } .pcard .p-id { display: flex; align-items: center; gap: 8px; min-width: 0; } .pcard .p-abbr { font-weight: 800; font-size: .92rem; letter-spacing: .01em; } .pcard .p-leader { color: var(--muted); font-size: .7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pcard .p-main { display: flex; align-items: baseline; gap: 8px; } .pcard .p-main .v { font-size: 2.4rem; font-weight: 800; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; } .pcard .p-main .u { color: var(--muted); font-size: .74rem; line-height: 1.25; } .pcard .p-spark { height: 26px; margin: 8px 0 2px; } .pcard .p-rows { margin-top: 8px; display: flex; flex-direction: column; gap: 5px; } .pcard .p-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; font-size: .78rem; } .pcard .p-row .l { color: var(--muted); } .pcard .p-row .r { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; } /* ------------------------------------------- « le point du jour » éditorial */ .day-date { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 650; font-variant-numeric: tabular-nums; } .headline { font-size: clamp(1.6rem, 1rem + 2.6vw, 2.5rem); font-weight: 800; line-height: 1.18; letter-spacing: -.03em; margin: 10px 0 8px; max-width: 980px; } /* ---------------------------------------------------------------- responsive */ @media (max-width: 1560px) { header.site .inner { gap: 12px; } nav.main a { padding: 6px 8px; font-size: .85rem; } .updated { font-size: .72rem; } } @media (max-width: 1250px) { .updated { display: none; } } @media (max-width: 1120px) { nav.main a { padding: 6px 7px; font-size: .84rem; } .brand .b-sub { display: none; } } @media (max-width: 980px) { nav.main, .updated { display: none; } .nav-burger { display: block; } header.site .inner { gap: 12px; } .side-panel { position: static; max-height: none; } .grid[style*="grid-template-columns"] { grid-template-columns: 1fr !important; } } @media (max-width: 900px) { .geo-map { height: 480px; min-height: 0; } } @media (max-width: 640px) { :root { font-size: 14px; } header.site .inner { height: 52px; padding: 0 12px; } .fstrip .fs-inner { height: 32px; gap: 14px; padding: 0 12px; } .fstrip .fs-right { display: none; } .hero { padding: 22px 0 4px; } .hero .sub { font-size: .92rem; } .wrap { padding: 0 max(13px, env(safe-area-inset-left)) 44px max(13px, env(safe-area-inset-right)); } .grid { gap: 11px; margin: 18px 0; } .grid.parties { grid-template-columns: repeat(2, 1fr); } .card { padding: 14px 14px; border-radius: 14px; } .bignum { font-size: 1.78rem; } .pcard .p-main .v { font-size: 2rem; } .chart { height: 290px; } .chart.tall { height: 340px; } .chart.short { height: 210px; } .geo-map { height: 400px; } .meter { height: 27px; } .meter div { font-size: .66rem; } .slider-row { grid-template-columns: 92px 1fr 52px; gap: 8px; } table.data { font-size: .8rem; } table.data th, table.data td { padding: 7px 6px; } .carto .cells { grid-template-columns: repeat(6, 24px); } .cell { width: 24px; height: 24px; } .ask-box { flex-direction: column; } .filters { gap: 8px; } .filters select, .filters input { max-width: 100%; } h2.section { margin: 26px 0 4px; } .party-card .leader { margin-bottom: 8px; } .avatars-stack .avatar { width: 34px !important; height: 34px !important; } .outcome .o-fact { grid-template-columns: 104px 1fr; } /* anti-zoom iOS : tout champ de saisie à 16px minimum */ select, input[type="text"], input[type="date"], input[type="number"], input[type="password"], textarea { font-size: 16px; } } @media (max-width: 400px) { .grid.parties { grid-template-columns: 1fr; } } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } html { scroll-behavior: auto; } }