/* ----------------------------------------------------------------------------- Auto-Ka — Agrégateur de voitures usagées à vendre (province de Québec) Auteur : Simon-Pierre Boucher — contact@spboucher.ai styles.css : système de design « éditorial sharp » — thème clair · Typo display Space Grotesk / texte Inter / micro-étiquettes JetBrains Mono · Signature : bordures encre + ombres décalées (néo-brutalisme raffiné) · Accent orange racing #ff5a2a sur encre charbon ----------------------------------------------------------------------------- */ :root { --paper: #f4f2ec; --surface: #ffffff; --surface-2: #faf8f4; --ink: #17181c; --ink-2: #4c4f57; --ink-3: #8b8e96; --line: rgba(23, 24, 28, 0.14); --line-strong: rgba(23, 24, 28, 0.85); --accent: #ff5a2a; --accent-deep: #cc3f16; --accent-soft: #ffe8de; --good: #1c7a4d; --good-soft: #e2f4e9; --amber: #e8a33d; --amber-soft: #fdf3e2; --danger: #b3423a; --r-card: 10px; --r-ctl: 6px; --shadow-flat: 0 1px 2px rgba(23, 24, 28, 0.05); --shadow-off: 6px 6px 0 var(--ink); --shadow-off-soft: 8px 8px 0 rgba(23, 24, 28, 0.08); --font-display: "Space Grotesk", system-ui, sans-serif; --font-body: "Inter", system-ui, sans-serif; --font-mono: "JetBrains Mono", ui-monospace, monospace; } * { box-sizing: border-box; } html { scroll-behavior: smooth; } body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; padding-bottom: env(safe-area-inset-bottom); } /* grain subtil — texture signature */ body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.35; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.02 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E"); } #root { position: relative; z-index: 1; } h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.03em; margin: 0; } a { color: inherit; text-decoration: none; } button { font-family: inherit; } img { display: block; } ::selection { background: var(--accent); color: #fff; } .mono { font-family: var(--font-mono); } .kicker { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent-deep); display: inline-flex; align-items: center; gap: 8px; } .kicker::before { content: ""; width: 22px; height: 2px; background: var(--accent); } .container { max-width: 1280px; margin: 0 auto; padding: 0 24px; } @media (max-width: 640px) { .container { padding: 0 16px; } } /* ================= Header ================= */ .header { position: sticky; top: 0; z-index: 50; background: rgba(244, 242, 236, 0.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 2px solid var(--ink); } .header-inner { display: flex; align-items: center; gap: 20px; height: 64px; } .brand { font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -0.04em; display: flex; align-items: center; line-height: 1; } .brand .ka { background: var(--ink); color: var(--accent); padding: 2px 7px 4px; border-radius: 6px; margin-left: 3px; transform: rotate(-2deg); transition: transform 0.2s ease; } .brand:hover .ka { transform: rotate(0deg); } .brand-tag { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase; margin-left: 12px; } @media (max-width: 860px) { .brand-tag { display: none; } } .nav { margin-left: auto; display: flex; gap: 4px; } .nav a { padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink-2); border: 1.5px solid transparent; transition: all 0.15s ease; min-height: 40px; display: inline-flex; align-items: center; } .nav a:hover { border-color: var(--ink); color: var(--ink); } .nav a.active { background: var(--ink); color: var(--accent); } @media (max-width: 640px) { .nav a { padding: 8px 11px; font-size: 13px; } } /* ================= Ticker ================= */ .ticker { background: var(--ink); color: var(--accent); overflow: hidden; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; padding: 7px 0; white-space: nowrap; border-bottom: 1px solid rgba(255, 90, 42, 0.25); } .ticker-track { display: inline-flex; gap: 0; animation: ticker 40s linear infinite; will-change: transform; } .ticker span { padding: 0 26px; position: relative; } .ticker span::after { content: "◆"; position: absolute; right: -6px; opacity: 0.5; font-size: 8px; top: 3px; } @keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } } @media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } * { transition-duration: 0.01ms !important; } } /* ================= Hero ================= */ .hero { padding: 46px 0 8px; } .hero h1 { font-size: clamp(30px, 5vw, 52px); font-weight: 700; line-height: 1.04; max-width: 820px; } .hero h1 em { font-style: normal; color: var(--accent-deep); position: relative; } .hero p.sub { margin: 14px 0 0; color: var(--ink-2); font-size: 16.5px; max-width: 640px; } .hero-stats { display: flex; gap: 28px; margin-top: 22px; flex-wrap: wrap; } .hstat { font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); } .hstat b { display: block; font-family: var(--font-display); font-size: 26px; color: var(--ink); letter-spacing: -0.02em; } /* ================= Filtres ================= */ .filters { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--r-card); box-shadow: var(--shadow-off); padding: 16px; margin: 26px 0 8px; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } .filters .full { grid-column: 1 / -1; } .f-field { display: flex; flex-direction: column; gap: 4px; } .f-field label { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-3); font-weight: 600; } .f-field select, .f-field input { border: 1.5px solid var(--line-strong); border-radius: var(--r-ctl); background: var(--surface); font: inherit; font-size: 14px; padding: 9px 10px; min-height: 40px; color: var(--ink); } .f-field select:focus, .f-field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; } .f-actions { display: flex; align-items: flex-end; gap: 8px; } .btn { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; border: 2px solid var(--ink); border-radius: var(--r-ctl); background: var(--ink); color: #fff; cursor: pointer; padding: 9px 18px; min-height: 40px; transition: transform 0.12s ease, box-shadow 0.12s ease; } .btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--accent); } .btn.ghost { background: transparent; color: var(--ink); } .btn.ghost:hover { box-shadow: 4px 4px 0 var(--ink); } .result-bar { display: flex; align-items: center; gap: 14px; margin: 22px 0 14px; flex-wrap: wrap; } .result-bar h2 { font-size: 20px; } .result-bar .count { color: var(--accent-deep); } .sort-box { margin-left: auto; display: flex; align-items: center; gap: 8px; } .sort-box label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; color: var(--ink-3); } .sort-box select { border: 1.5px solid var(--line-strong); border-radius: var(--r-ctl); background: var(--surface); font: inherit; font-size: 13.5px; padding: 7px 9px; } /* ================= Grille véhicules ================= */ .vgrid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); padding-bottom: 30px; } .vcard { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--r-card); overflow: hidden; position: relative; display: flex; flex-direction: column; transition: transform 0.15s ease, box-shadow 0.15s ease; box-shadow: var(--shadow-flat); } .vcard:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-off); } .vcard .photo { aspect-ratio: 4 / 3; background: var(--surface-2); position: relative; overflow: hidden; } .vcard .photo img { width: 100%; height: 100%; object-fit: cover; } .vcard .photo .nopic { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-3); font-size: 40px; } .vcard .year-chip { position: absolute; top: 10px; left: 10px; background: var(--ink); color: #fff; font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; } .vcard .drop-chip { position: absolute; top: 10px; right: 10px; background: var(--good); color: #fff; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; } .vcard .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; } .vcard h3 { font-size: 16.5px; line-height: 1.25; } .vcard .price { font-family: var(--font-display); font-weight: 700; font-size: 21px; color: var(--accent-deep); letter-spacing: -0.02em; } .vcard .price small { font-size: 12px; color: var(--ink-3); font-weight: 500; } .vcard .specs { display: flex; flex-wrap: wrap; gap: 6px; } .spec-chip { font-family: var(--font-mono); font-size: 10.5px; background: var(--surface-2); border: 1px solid var(--line); padding: 3px 8px; border-radius: 999px; color: var(--ink-2); } .vcard .foot { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--ink-3); display: flex; justify-content: space-between; gap: 8px; } /* ================= Pagination ================= */ .pager { display: flex; justify-content: center; gap: 10px; padding: 8px 0 46px; align-items: center; } .pager .mono { font-size: 12px; color: var(--ink-2); } /* ================= Fiche véhicule ================= */ .vdetail { padding: 34px 0 60px; } .vd-head { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; } .vd-head h1 { font-size: clamp(24px, 3.6vw, 38px); line-height: 1.1; max-width: 760px; } .vd-price { margin-left: auto; text-align: right; } .vd-price .p { font-family: var(--font-display); font-weight: 700; font-size: 34px; color: var(--accent-deep); letter-spacing: -0.02em; } .vd-price .was { font-size: 14px; color: var(--ink-3); text-decoration: line-through; } .vd-cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 28px; } @media (max-width: 900px) { .vd-cols { grid-template-columns: 1fr; } } .gallery { border: 2px solid var(--ink); border-radius: var(--r-card); overflow: hidden; background: var(--surface); } .gallery .main { aspect-ratio: 4 / 3; background: var(--surface-2); } .gallery .main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; } .gallery .thumbs { display: flex; gap: 6px; padding: 8px; overflow-x: auto; border-top: 2px solid var(--ink); background: var(--surface-2); } .gallery .thumbs img { width: 84px; height: 60px; object-fit: cover; border-radius: 4px; cursor: pointer; border: 2px solid transparent; flex: 0 0 auto; } .gallery .thumbs img.sel { border-color: var(--accent); } .panel { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--r-card); box-shadow: var(--shadow-off-soft); padding: 18px 20px; margin-bottom: 18px; } .panel h3 { font-size: 15px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; } .spec-table { width: 100%; border-collapse: collapse; font-size: 14px; } .spec-table td { padding: 7px 0; border-bottom: 1px dashed var(--line); } .spec-table td:first-child { color: var(--ink-3); font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; } .spec-table td:last-child { text-align: right; font-weight: 600; } .spec-table tr:last-child td { border-bottom: none; } .cta-source { display: block; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 16px; background: var(--accent); color: #fff; border: 2px solid var(--ink); border-radius: var(--r-ctl); padding: 13px 18px; margin-top: 4px; transition: transform 0.12s ease, box-shadow 0.12s ease; } .cta-source:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); } .cta-note { font-size: 11.5px; color: var(--ink-3); text-align: center; margin-top: 8px; font-family: var(--font-mono); } .desc { white-space: pre-line; color: var(--ink-2); font-size: 14.5px; } .feat-list { display: flex; flex-wrap: wrap; gap: 6px; max-height: 340px; overflow-y: auto; } .price-history { font-size: 13px; } .price-history .row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); } .price-history .down { color: var(--good); font-weight: 700; } .price-history .up { color: var(--danger); font-weight: 700; } /* ================= Sections / pages annexes ================= */ .page { padding: 40px 0 70px; } .page h1 { font-size: clamp(26px, 4vw, 40px); margin-bottom: 8px; } .page .lead { color: var(--ink-2); max-width: 640px; margin-bottom: 28px; } .src-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); } .src-card { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--r-card); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; transition: transform 0.14s ease, box-shadow 0.14s ease; box-shadow: var(--shadow-flat); } .src-card:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-off); } .src-card h3 { font-size: 16px; } .src-card .meta { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); } .src-card .n { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--accent-deep); } .stat-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 30px; } .stat-tile { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--r-card); padding: 18px; box-shadow: var(--shadow-off-soft); } .stat-tile b { display: block; font-family: var(--font-display); font-size: 30px; letter-spacing: -0.02em; } .stat-tile span { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); } .bar-row { display: flex; align-items: center; gap: 10px; margin: 7px 0; font-size: 13.5px; } .bar-row .lbl { width: 170px; flex: 0 0 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .bar-row .bar { height: 16px; background: var(--accent); border: 1.5px solid var(--ink); border-radius: 3px; min-width: 2px; } .bar-row .val { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-2); } /* ================= Graphiques (Charts.tsx) ================= */ .stats-head { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; } .pdf-btn { margin-left: auto; background: var(--accent); border-color: var(--ink); font-size: 15px; } .pdf-btn:hover { box-shadow: 4px 4px 0 var(--ink); } .stat-tile.hero-tile b { color: var(--accent-deep); } .chart-wrap { position: relative; } .chart { width: 100%; height: auto; display: block; } .chart .mark { transition: opacity 0.12s ease; cursor: default; } .chart .mark:hover { opacity: 0.75; } .c-val { font-family: var(--font-mono); font-size: 11px; font-weight: 600; fill: var(--ink); } .c-lbl { font-family: var(--font-mono); font-size: 10px; fill: var(--ink-3); } .c-cat { font-size: 12px; font-weight: 600; fill: var(--ink-2); } .donut-total { font-family: var(--font-display); font-size: 22px; font-weight: 700; fill: var(--ink); } .chart-tip { position: absolute; transform: translate(-50%, -100%); pointer-events: none; background: var(--ink); color: #fff; font-size: 12.5px; line-height: 1.35; padding: 6px 10px; border-radius: 6px; white-space: nowrap; z-index: 5; box-shadow: 0 4px 14px rgba(23,24,28,0.25); } .chart-tip b { color: var(--accent); } .donut-wrap { display: grid; grid-template-columns: 220px 1fr; gap: 14px; align-items: center; } .donut-wrap .chart-data { grid-column: 1 / -1; } @media (max-width: 560px) { .donut-wrap { grid-template-columns: 1fr; } } .donut-legend { display: flex; flex-direction: column; gap: 6px; } .dl-row { display: flex; align-items: center; gap: 8px; font-size: 13.5px; } .dl-swatch { width: 13px; height: 13px; border-radius: 3px; border: 1px solid rgba(23,24,28,0.3); flex: 0 0 auto; } .dl-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .dl-val { font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); } .chart-data { margin-top: 10px; font-size: 12.5px; } .chart-data summary { cursor: pointer; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); } .chart-data table { width: 100%; border-collapse: collapse; margin-top: 8px; } .chart-data th, .chart-data td { text-align: left; padding: 4px 8px; border-bottom: 1px dashed var(--line); } .chart-data th { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; color: var(--ink-3); } /* ================= Cartes véhicules — raffinements ================= */ .vcard .photo img { transition: transform 0.35s ease; } .vcard:hover .photo img { transform: scale(1.04); } /* ================= Adaptatif téléphone ================= */ @media (max-width: 640px) { .hero { padding: 30px 0 4px; } .hero p.sub { font-size: 15px; } .hero-stats { gap: 18px; margin-top: 16px; } .hstat b { font-size: 21px; } /* filtres : 2 colonnes compactes, recherche et actions pleine largeur */ .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; gap: 8px; box-shadow: 4px 4px 0 var(--ink); } .f-actions { grid-column: 1 / -1; } .f-actions .btn { width: 100%; } .f-field select, .f-field input { font-size: 16px; } /* évite le zoom iOS */ .result-bar { gap: 8px; margin: 16px 0 12px; } .result-bar h2 { font-size: 17px; } .sort-box { margin-left: 0; width: 100%; } .sort-box select { flex: 1; } .vgrid { gap: 14px; grid-template-columns: 1fr; } .vcard:hover { transform: none; box-shadow: var(--shadow-flat); } /* fiche véhicule : entête et prix empilés */ .vdetail { padding: 20px 0 40px; } .vd-head { flex-direction: column; gap: 8px; } .vd-head h1 { font-size: 23px; } .vd-price { margin-left: 0; text-align: left; } .vd-price .p { font-size: 28px; } .gallery .thumbs img { width: 68px; height: 50px; } .panel { padding: 14px 14px; } .spec-table td:last-child { word-break: break-all; } /* VIN longs */ .desc { font-size: 14px; } .feat-list { max-height: 260px; } /* stats : bouton PDF pleine largeur, tuiles 2 colonnes */ .stats-head { flex-direction: column; align-items: stretch; } .pdf-btn { margin-left: 0; text-align: center; } .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .stat-tile { padding: 13px; } .stat-tile b { font-size: 22px; } /* graphiques : défilement horizontal plutôt que texte illisible */ .chart-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; } .chart.vbars { min-width: 540px; } .chart.hbars { min-width: 460px; } .donut-wrap { overflow-x: visible; } .src-grid { grid-template-columns: 1fr; } .page { padding: 26px 0 50px; } } @media (max-width: 400px) { .brand { font-size: 22px; } .nav a { padding: 7px 9px; font-size: 12.5px; } .header-inner { gap: 8px; } } .notice { text-align: center; padding: 90px 20px; } .notice .big { font-size: 52px; margin-bottom: 12px; } .notice p { color: var(--ink-2); } .skeleton { background: linear-gradient(100deg, var(--surface-2) 40%, #fff 50%, var(--surface-2) 60%); background-size: 200% 100%; animation: sk 1.4s infinite; border-radius: var(--r-card); border: 2px solid var(--line); } @keyframes sk { from { background-position: 130% 0; } to { background-position: -30% 0; } } /* ================= Footer ================= */ .footer { background: var(--ink); color: #c9cbd1; margin-top: 30px; padding: 42px 0 30px; border-top: 3px solid var(--accent); } .fbrand { font-family: var(--font-display); font-weight: 700; font-size: 24px; color: #fff; margin-bottom: 14px; } .fbrand .ka { background: var(--accent); color: var(--ink); padding: 1px 6px 3px; border-radius: 5px; margin-left: 2px; display: inline-block; transform: rotate(-2deg); } .frow { font-size: 13.5px; max-width: 560px; line-height: 1.6; } .fmono { font-family: var(--font-mono); font-size: 11px; color: #82858d; margin-top: 22px; } .fmono a { text-decoration: underline; }