@import "tailwindcss"; @custom-variant dark (&:where([data-theme="dark"], [data-theme="dark"] *)); /* ==================================================================== tokens QC26 « Editorial Data Intelligence » — papier chaud, encre, un seul accent (sarcelle, jamais une couleur de parti). Les couleurs de partis vivent ici en variables, adaptées au thème sombre (le marine du PQ et le violet du PCQ sont éclaircis pour rester lisibles). */ :root { --background: #f6f5f1; --surface: #ffffff; --surface-2: #f0eee8; --surface-3: #e6e3db; --surface-4: #d9d5cb; --border: rgba(20, 22, 28, 0.1); --border-strong: rgba(20, 22, 28, 0.22); --text: #15171c; --text-2: #5c6270; --text-3: #8b909b; --text-inverse: #f6f5f1; --qc26: #15171c; --qc26-accent: #0f766e; --qc26-accent-strong: #0b5d57; --qc26-accent-soft: rgba(15, 118, 110, 0.1); --qc26-accent-ink: #ffffff; --live: #d12f2f; --live-soft: rgba(209, 47, 47, 0.1); --ok: #1f7a3a; --ok-soft: rgba(31, 122, 58, 0.1); --warn: #b45309; --warn-soft: rgba(180, 83, 9, 0.12); --grid: rgba(20, 22, 28, 0.07); --p-caq: #20a8e0; --p-plq: #ed1b2d; --p-pq: #1e295c; --p-qs: #ff5505; --p-pcq: #6e4c9f; --p-aut: #9aa0a6; --p-none: #c9c5bb; --radius: 12px; --radius-lg: 18px; --radius-sm: 8px; --shadow-sm: 0 1px 2px rgba(21, 23, 28, 0.05), 0 1px 1px rgba(21, 23, 28, 0.03); --shadow-md: 0 10px 30px -18px rgba(21, 23, 28, 0.35), 0 2px 8px -4px rgba(21, 23, 28, 0.08); --shadow-lg: 0 30px 60px -30px rgba(21, 23, 28, 0.4); --font-sans: var(--font-inter), ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --font-display: var(--font-fraunces), "Iowan Old Style", "Palatino Linotype", Georgia, serif; --font-mono: var(--font-jetbrains), ui-monospace, "SF Mono", Menlo, Consolas, monospace; --header-h: 60px; --bottom-nav-h: 62px; --header-bg: rgba(246, 245, 241, 0.82); --nav-bg: rgba(255, 255, 255, 0.9); --hero-glow: radial-gradient(1200px 500px at 15% -10%, rgba(15, 118, 110, 0.14), transparent 60%), radial-gradient(900px 400px at 95% 0%, rgba(21, 23, 28, 0.06), transparent 60%); color-scheme: light; } :root[data-theme="dark"] { --background: #0e1013; --surface: #15181d; --surface-2: #1c2027; --surface-3: #252a33; --surface-4: #313743; --border: rgba(255, 255, 255, 0.09); --border-strong: rgba(255, 255, 255, 0.2); --text: #edeff3; --text-2: #a5abb8; --text-3: #737a88; --text-inverse: #0e1013; --qc26: #edeff3; --qc26-accent: #2fb8aa; --qc26-accent-strong: #5fd3c7; --qc26-accent-soft: rgba(47, 184, 170, 0.14); --qc26-accent-ink: #0e1013; --live: #f0554f; --live-soft: rgba(240, 85, 79, 0.14); --ok: #3fbf6b; --ok-soft: rgba(63, 191, 107, 0.14); --warn: #e0a23a; --warn-soft: rgba(224, 162, 58, 0.14); --grid: rgba(255, 255, 255, 0.07); --p-caq: #3db8ea; --p-plq: #f24c5a; --p-pq: #7385dc; --p-qs: #ff7a3d; --p-pcq: #ab8ee3; --p-aut: #8b919c; --p-none: #3a404b; --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4); --shadow-md: 0 12px 30px -18px rgba(0, 0, 0, 0.8), 0 2px 8px -4px rgba(0, 0, 0, 0.5); --shadow-lg: 0 30px 60px -30px rgba(0, 0, 0, 0.9); --header-bg: rgba(14, 16, 19, 0.78); --nav-bg: rgba(21, 24, 29, 0.92); --hero-glow: radial-gradient(1200px 500px at 15% -10%, rgba(47, 184, 170, 0.16), transparent 60%), radial-gradient(900px 400px at 95% 0%, rgba(115, 133, 220, 0.1), transparent 60%); color-scheme: dark; } @theme inline { --color-background: var(--background); --color-surface: var(--surface); --color-surface-2: var(--surface-2); --color-surface-3: var(--surface-3); --color-surface-4: var(--surface-4); --color-border: var(--border); --color-border-strong: var(--border-strong); --color-ink: var(--text); --color-ink-2: var(--text-2); --color-ink-3: var(--text-3); --color-ink-inverse: var(--text-inverse); --color-brand: var(--qc26); --color-accent: var(--qc26-accent); --color-accent-strong: var(--qc26-accent-strong); --color-accent-soft: var(--qc26-accent-soft); --color-accent-ink: var(--qc26-accent-ink); --color-live: var(--live); --color-live-soft: var(--live-soft); --color-ok: var(--ok); --color-ok-soft: var(--ok-soft); --color-warn: var(--warn); --color-warn-soft: var(--warn-soft); --font-sans: var(--font-sans); --font-display: var(--font-display); --font-mono: var(--font-mono); --radius-card: var(--radius); --radius-card-lg: var(--radius-lg); } /* ====================================================================== base */ html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; } @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; } } body { background: var(--background); color: var(--text); font-family: var(--font-sans); font-feature-settings: "cv11", "ss01", "ss03"; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; min-height: 100dvh; transition: background-color 0.25s ease, color 0.25s ease; } @layer base { a { color: inherit; text-decoration: none; } a:hover { text-decoration: none; } ::selection { background: var(--qc26-accent-soft); } :focus-visible { outline: 2px solid var(--qc26-accent); outline-offset: 2px; border-radius: 4px; } } /* ================================================================ typography */ .display { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 0.98; font-variation-settings: "opsz" 144, "SOFT" 30; } .display-tight { letter-spacing: -0.035em; } .figure { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.03em; line-height: 0.9; font-variant-numeric: tabular-nums lining-nums; font-variation-settings: "opsz" 144, "SOFT" 0; } .serif { font-family: var(--font-display); } .num { font-variant-numeric: tabular-nums lining-nums; letter-spacing: -0.01em; } .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; } .eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--text-2); } .eyebrow-accent { color: var(--qc26-accent); } .lede { font-size: 16px; line-height: 1.6; color: var(--text-2); } .prose-qc26 p { line-height: 1.7; } .prose-qc26 b { color: var(--text); } /* ================================================================ surfaces */ .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); } .card-lg { border-radius: var(--radius-lg); } .card-flat { box-shadow: none; } .card-hover { transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; } .card-hover:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); transform: translateY(-1px); } .hairline { border-color: var(--border); } .surface-2 { background: var(--surface-2); } .surface-3 { background: var(--surface-3); } .inset { background: var(--surface-2); border-radius: var(--radius-sm); } .ink-panel { background: var(--qc26); color: var(--text-inverse); } .hero-glow { background-image: var(--hero-glow); } .glass { background: var(--header-bg); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); } .divider { height: 1px; background: var(--border); } .rule-top { border-top: 2px solid var(--text); } .section-num { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); letter-spacing: 0.08em; } /* ================================================================ buttons */ .btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 10px; padding: 10px 16px; font-size: 14px; font-weight: 600; border: 1px solid transparent; transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.1s; white-space: nowrap; } .btn:active { transform: translateY(1px); } .btn-primary { background: var(--text); color: var(--text-inverse); } .btn-primary:hover { background: var(--qc26-accent-strong); color: #fff; } .btn-accent { background: var(--qc26-accent); color: var(--qc26-accent-ink); } .btn-accent:hover { background: var(--qc26-accent-strong); } .btn-ghost { background: var(--surface); border-color: var(--border-strong); color: var(--text); } .btn-ghost:hover { background: var(--surface-2); } .btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: 8px; } .link { color: var(--qc26-accent); font-weight: 500; } .link:hover { text-decoration: underline; text-underline-offset: 3px; } .chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 500; border: 1px solid var(--border); background: var(--surface); transition: background-color 0.15s, border-color 0.15s, color 0.15s; } .chip:hover { background: var(--surface-2); } .chip-active { background: var(--text); color: var(--text-inverse); border-color: var(--text); } .chip-active:hover { background: var(--text); } /* ================================================================ tables */ .data-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; } .data-table th { text-align: left; font-family: var(--font-mono); font-weight: 600; color: var(--text-2); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; position: sticky; top: 0; background: var(--surface); z-index: 1; } .data-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; } .data-table tr:last-child td { border-bottom: 0; } .data-table tbody tr:hover { background: var(--surface-2); } .data-table .r { text-align: right; } select, input[type="text"], input[type="search"] { color: var(--text); background: var(--surface); } input[type="range"] { accent-color: var(--qc26-accent); } input[type="checkbox"] { accent-color: var(--qc26-accent); } /* ================================================================ utilities */ .scrollbar-none { scrollbar-width: none; } .scrollbar-none::-webkit-scrollbar { display: none; } .safe-bottom { padding-bottom: max(env(safe-area-inset-bottom), 0px); } .tabular { font-variant-numeric: tabular-nums; } .pcolor { color: var(--pc); } .pbg { background: var(--pc); } @keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } } .live-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--live); display: inline-block; animation: pulse-dot 1.6s ease-in-out infinite; } @keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } } .fade-up { animation: fade-up 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; } .fade-up-2 { animation-delay: 0.08s; } .fade-up-3 { animation-delay: 0.16s; } @keyframes ticker-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } } .ticker-in { animation: ticker-in 0.3s ease-out both; } @keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } } .grow-x { transform-origin: left; animation: grow-x 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; } /* mobile : rails horizontaux à défilement magnétique */ .rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 6px; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; } .rail::-webkit-scrollbar { display: none; } .rail > * { scroll-snap-align: start; flex: 0 0 78%; max-width: 320px; } @media (min-width: 640px) { .rail { display: grid; overflow: visible; margin-inline: 0; padding-inline: 0; } .rail > * { flex: initial; max-width: none; } } /* mobile : rangée de sondage compacte */ .poll-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 10px 14px; border-bottom: 1px solid var(--border); } .poll-row:last-child { border-bottom: 0; } .poll-vals { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; grid-column: 1 / -1; margin-top: 4px; } .poll-vals > div { text-align: center; border-radius: 6px; padding: 4px 0 3px; background: var(--surface-2); } .poll-vals .lbl { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; } .poll-vals .val { font-family: var(--font-mono); font-size: 14px; font-weight: 600; line-height: 1.1; } @media (max-width: 767px) { .data-table { font-size: 13px; } .data-table th, .data-table td { padding: 8px 10px; } .figure-hero { font-size: 92px !important; } .card { border-radius: 12px; } .section-gap > * + * { margin-top: 44px; } } /* charts */ .chart-grid line { stroke: var(--grid); } .chart-tip { position: absolute; pointer-events: none; z-index: 20; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px; box-shadow: var(--shadow-md); padding: 8px 10px; font-size: 12px; line-height: 1.35; min-width: 150px; } /* waffle */ .waffle-dot { transition: fill 0.3s ease, opacity 0.3s ease; } /* print */ @media print { header, nav, footer, .no-print { display: none !important; } body { background: #fff; } }