/* ----------------------------------------------------------------------------- Food-Ka — Agrégateur de produits d'épicerie (province de Québec) Auteur : Simon-Pierre Boucher — contact@spboucher.ai styles.css : système de design « éditorial sharp » — thème clair « marché frais » · Typo display Space Grotesk / texte Inter / micro-étiquettes JetBrains Mono · Signature : bordures encre + ombres décalées (néo-brutalisme raffiné) · Palette épicerie : papier crème, encre vert-noir, vert marché #1f7a4d, lime #d9f26b en surlignage ponctuel, tomate #e8542f réservée aux soldes · Packshots produits : object-fit contain sur fond blanc · 100 % adaptatif mobile (PWA installable, safe-areas iOS) ----------------------------------------------------------------------------- */ :root { --paper: #faf6ee; --surface: #ffffff; --surface-2: #f7f2e7; --ink: #14231a; --ink-2: #47564c; --ink-3: #839187; --line: rgba(20, 35, 26, 0.14); --line-strong: rgba(20, 35, 26, 0.85); --green: #1f7a4d; --green-bright: #2e9e63; --green-deep: #14523a; --lime: #d9f26b; --lime-soft: #eef6d4; --tomato: #e8542f; --tomato-deep: #b83c1c; --tomato-soft: #fcebe3; --amber: #e8a33d; --amber-soft: #fdf3e2; --danger: #b3423a; --r-card: 10px; --r-ctl: 6px; --shadow-flat: 0 1px 2px rgba(20, 35, 26, 0.05); --shadow-off: 6px 6px 0 var(--ink); --shadow-off-soft: 8px 8px 0 rgba(20, 35, 26, 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(--lime); color: var(--ink); } .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(--green); display: inline-flex; align-items: center; gap: 8px; } .kicker::before { content: ""; width: 22px; height: 2px; background: var(--green); } .container { max-width: 1240px; 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(250, 246, 238, 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(--green-deep); color: var(--lime); padding: 2px 7px 4px; border-radius: 6px; margin-left: 3px; transform: rotate(-2deg); transition: transform 0.2s ease; } .brand:hover .ka { transform: rotate(0deg); } /* marque panier — pictogramme épicerie à côté du nom */ .brand-mark { width: 30px; height: 30px; margin-right: 10px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--lime); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 8px; transform: rotate(-5deg); transition: transform 0.2s ease; box-shadow: 2px 2px 0 rgba(20, 35, 26, 0.2); } .brand:hover .brand-mark { transform: rotate(0deg); } .brand-mark svg { width: 17px; height: 17px; } @media (max-width: 640px) { .brand-mark { width: 26px; height: 26px; margin-right: 8px; } .brand-mark svg { width: 15px; height: 15px; } } .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: 760px) { .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(--green-deep); color: var(--lime); } /* ================= Ticker — bande « ruban de caisse » ================= */ .ticker { background: var(--surface); color: var(--ink-2); 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: 2px dashed var(--line-strong); box-shadow: inset 0 -6px 12px -10px rgba(20, 35, 26, 0.35); } .ticker-track { display: inline-flex; gap: 0; animation: ticker 40s linear infinite; will-change: transform; } .ticker span { padding: 0 26px; position: relative; font-variant-numeric: tabular-nums; } .ticker span::after { content: "◆"; position: absolute; right: -6px; opacity: 0.6; font-size: 8px; top: 3px; color: var(--green); } @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: 58px 0 22px; } @media (max-width: 640px) { .hero { padding: 34px 0 14px; } } .hero h1 { font-size: clamp(38px, 6.4vw, 78px); font-weight: 700; line-height: 0.98; text-transform: uppercase; letter-spacing: -0.035em; max-width: 900px; margin-top: 14px; } .hero h1 .outline { color: transparent; -webkit-text-stroke: 2px var(--ink); } .hero h1 .hl { background: var(--lime); padding: 0 10px; border-radius: 8px; display: inline-block; transform: rotate(-1deg); } /* variante « aubaines » : surlignage tomate (rabais) */ .hero h1 .hl-tomato { background: var(--tomato); color: #fff; } .kicker-sale { color: var(--tomato-deep); } .kicker-sale::before { background: var(--tomato); } .hero p.lede { color: var(--ink-2); font-size: 16.5px; max-width: 640px; margin: 20px 0 0; } .stat-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; } .stat-chip { background: var(--surface); border: 1.5px solid var(--ink); border-radius: 999px; padding: 8px 16px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); display: flex; gap: 8px; align-items: center; box-shadow: 3px 3px 0 rgba(20, 35, 26, 0.12); } .stat-chip b { color: var(--ink); font-weight: 700; } .stat-chip .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--lime-soft); animation: pulse 2.4s ease infinite; } @keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(217, 242, 107, 0.4); } } /* ================= Filter bar ================= */ .filterbar { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--r-card); box-shadow: var(--shadow-off-soft); padding: 14px; margin: 30px 0 6px; display: flex; flex-direction: column; gap: 0; min-width: 0; } /* — rangée principale — */ .f-primary { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; min-width: 0; } .f-search { flex: 1 1 240px; min-width: 0; display: flex; align-items: center; gap: 9px; border: 1.5px solid var(--ink); border-radius: 9px; background: var(--surface-2); padding: 0 13px; min-height: 52px; color: var(--ink-2); transition: box-shadow 0.15s ease; } .f-search:focus-within { box-shadow: 3px 3px 0 var(--lime); background: var(--surface); } .f-search input { border: none; background: none; outline: none; flex: 1; min-width: 0; font-size: 15px; color: var(--ink); font-family: inherit; } .f-clear { border: none; background: var(--line); color: var(--ink-2); border-radius: 50%; width: 20px; height: 20px; font-size: 10px; cursor: pointer; flex: none; display: grid; place-items: center; } .f-ctl { flex: 0 1 auto; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 2px; border: 1.5px solid var(--ink); border-radius: 9px; background: var(--surface); padding: 7px 12px 6px; min-height: 52px; cursor: pointer; transition: box-shadow 0.15s ease; } .f-ctl:focus-within { box-shadow: 3px 3px 0 var(--lime); } .f-ctl > span { font-family: var(--font-mono); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-3); } .f-ctl select { border: none; background: transparent; outline: none; font-family: var(--font-display); font-weight: 700; font-size: 14.5px; color: var(--ink); cursor: pointer; appearance: none; -webkit-appearance: none; padding-right: 16px; min-width: 0; max-width: 170px; text-overflow: ellipsis; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='5'%3E%3Cpath d='M0 0l4.5 5L9 0z' fill='%23141814'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right center; } .range-pair { display: flex; align-items: center; gap: 4px; } .range-pair select { max-width: 86px; } .range-sep { color: var(--ink-3); font-family: var(--font-mono); font-size: 11px; } .f-more { flex: none; align-self: stretch; border: 1.5px solid var(--ink); border-radius: 9px; background: var(--surface); color: var(--ink); padding: 0 18px; cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 14px; min-height: 52px; transition: all 0.13s ease; } .f-more:hover { background: var(--lime-soft); } .f-more.on { background: var(--green-deep); color: var(--lime); box-shadow: 3px 3px 0 rgba(20,35,26,0.22); } /* — panneau avancé — */ .f-adv { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px 22px; border-top: 1.5px dashed var(--line); margin-top: 14px; padding-top: 14px; min-width: 0; animation: adv-in 0.18s ease; } @keyframes adv-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } } .f-group { display: flex; flex-direction: column; gap: 7px; min-width: 0; } .f-group > label { font-family: var(--font-mono); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-3); } .f-group-end { justify-content: flex-end; } .f-group .btn:disabled { opacity: 0.4; cursor: default; } .f-native { border: 1.5px solid var(--line); background: var(--surface-2); border-radius: var(--r-ctl); padding: 10px 30px 10px 12px; font-size: 14px; color: var(--ink); outline: none; font-family: inherit; min-height: 42px; width: 100%; min-width: 0; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23141814'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; } .f-native:focus { border-color: var(--ink); box-shadow: 3px 3px 0 var(--lime); } /* segments (pilules soudées) */ .seg { display: inline-flex; flex-wrap: wrap; row-gap: 6px; } .seg button { border: 1.5px solid var(--ink); background: var(--surface); color: var(--ink-2); padding: 8px 13px; font-family: var(--font-display); font-weight: 600; font-size: 13px; cursor: pointer; margin-left: -1.5px; white-space: nowrap; min-height: 38px; transition: all 0.12s ease; } .seg button:first-child { border-radius: 8px 0 0 8px; margin-left: 0; } .seg button:last-child { border-radius: 0 8px 8px 0; } .seg button:hover { background: var(--lime-soft); color: var(--ink); } .seg button.on { background: var(--green-deep); color: var(--lime); position: relative; z-index: 1; } /* pastilles de filtres actifs */ .pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 2px; } .pill { display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid var(--ink); background: var(--lime-soft); color: var(--ink); border-radius: 999px; padding: 6px 13px; font-size: 12.5px; font-weight: 600; font-family: var(--font-mono); cursor: pointer; transition: all 0.13s ease; } .pill:hover { background: var(--lime); } .pill-x { font-size: 10px; opacity: 0.65; } .pill-clear { background: var(--surface); border-color: var(--danger); color: var(--danger); } .pill-clear:hover { background: var(--danger); color: #fff; } .chip-sep { width: 1.5px; align-self: stretch; background: var(--line); margin: 4px 4px; flex: none; } .link-btn { background: none; border: none; padding: 0; color: var(--green); font: inherit; text-decoration: underline; cursor: pointer; } .field { display: flex; flex-direction: column; gap: 5px; } .field label { font-family: var(--font-mono); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-3); padding-left: 2px; } .field input, .field select { border: 1.5px solid var(--line); background: var(--surface-2); border-radius: var(--r-ctl); padding: 11px 12px; font-size: 15px; color: var(--ink); outline: none; font-family: inherit; transition: border-color 0.15s ease, box-shadow 0.15s ease; min-height: 44px; appearance: none; -webkit-appearance: none; } .field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23141814'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 30px; } .field input:focus, .field select:focus { border-color: var(--ink); box-shadow: 3px 3px 0 var(--lime); } .btn { border: 1.5px solid var(--ink); border-radius: var(--r-ctl); padding: 11px 20px; font-weight: 700; font-size: 14px; cursor: pointer; min-height: 44px; transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease; font-family: var(--font-display); letter-spacing: 0.01em; } .btn:active { transform: translate(2px, 2px); box-shadow: none !important; } .btn-primary { background: var(--green-deep); color: var(--lime); box-shadow: 4px 4px 0 rgba(20,35,26,0.25); } .btn-primary:hover { background: var(--ink); } .btn-ghost { background: transparent; color: var(--ink); } .btn-ghost:hover { background: var(--lime); box-shadow: 4px 4px 0 rgba(20,35,26,0.2); } /* ================= Chips ================= */ .chips { display: flex; gap: 8px; margin: 16px 0 4px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; } .chips::-webkit-scrollbar { display: none; } .chip { border: 1.5px solid var(--ink); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 8px 18px; font-size: 13.5px; font-weight: 600; cursor: pointer; font-family: var(--font-display); white-space: nowrap; min-height: 40px; transition: all 0.13s ease; } .chip:hover { background: var(--lime-soft); transform: translateY(-1px); } .chip.on { background: var(--green-deep); color: var(--lime); box-shadow: 3px 3px 0 rgba(20,35,26,0.2); } /* ================= Results ================= */ .results-head { display: flex; align-items: baseline; gap: 14px; margin: 28px 0 18px; } .results-head h2 { font-size: 22px; text-transform: uppercase; letter-spacing: -0.02em; } .results-head span { font-family: var(--font-mono); color: var(--ink-3); font-size: 12px; letter-spacing: 0.06em; } .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; padding-bottom: 26px; } @media (max-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; padding-bottom: 24px; } } .card { background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-flat); transition: transform 0.16s ease, box-shadow 0.16s ease; } .card:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-off); } .card:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; } .card-img { position: relative; aspect-ratio: 1/1; background: #fff; overflow: hidden; } .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; } /* packshot produit : image entière sur fond blanc, jamais recadrée */ .card-img.packshot { border-bottom: 1.5px dashed var(--line); } .card-img.packshot img { object-fit: contain; padding: 14px; } .card:hover .card-img img { transform: scale(1.05); } .card-img .noimg { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--ink-3); font-size: 34px; } .badge { position: absolute; top: 12px; left: 12px; border-radius: 6px; padding: 4px 10px; font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; background: rgba(255, 255, 255, 0.95); color: var(--ink); border: 1px solid var(--ink); } .badge.sale { background: var(--tomato); color: #fff; border-color: var(--tomato-deep); } .badge.right { left: auto; right: 12px; background: var(--amber-soft); border-color: var(--amber); color: #8a5a12; } .card-body { padding: 14px 16px 14px; display: flex; flex-direction: column; gap: 5px; flex: 1; } .card-price { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; } .price-old { font-family: var(--font-mono); font-weight: 500; color: var(--ink-3); font-size: 12.5px; letter-spacing: 0.02em; text-decoration: line-through; text-decoration-color: var(--tomato); } .price-old.big { font-size: 16px; margin-left: 10px; } .card-unit { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.04em; } .card-title { font-weight: 600; font-size: 14px; color: var(--ink); } .card-meta { color: var(--ink-3); font-size: 12.5px; display: flex; gap: 7px; flex-wrap: wrap; align-items: center; font-family: var(--font-mono); } .card-meta .sep { width: 4px; height: 4px; background: var(--lime); border: 1px solid var(--ink); border-radius: 1px; transform: rotate(45deg); } .card-foot { margin-top: auto; padding-top: 11px; border-top: 1.5px dashed var(--line); display: flex; justify-content: space-between; align-items: center; gap: 8px; } .source-tag { font-family: var(--font-mono); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--green-deep); background: var(--lime-soft); border: 1px solid var(--green); border-radius: 4px; padding: 3px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; } .avail { font-size: 11.5px; color: var(--ink-2); font-weight: 500; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* pagination « Charger plus » */ .load-more { display: flex; justify-content: center; padding: 4px 0 70px; } @media (max-width: 640px) { .load-more { padding-bottom: 90px; } } /* ================= Skeletons ================= */ @keyframes shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } } .skel { border-radius: var(--r-card); border: 1.5px solid var(--line); overflow: hidden; background: var(--surface); } .skel .sk-img, .skel .sk-line { background: linear-gradient(90deg, #efe9db 25%, #f9f5eb 50%, #efe9db 75%); background-size: 800px 100%; animation: shimmer 1.4s infinite linear; } .skel .sk-img { aspect-ratio: 1/1; } .skel .sk-line { height: 14px; border-radius: 4px; margin: 12px 16px; } .skel .sk-line.short { width: 45%; } /* ================= Empty / error ================= */ .notice { text-align: center; padding: 72px 24px; color: var(--ink-2); } .notice .big { font-size: 44px; margin-bottom: 10px; } .notice h2 { text-transform: uppercase; } /* ================= Fiche produit ================= */ .detail { padding: 30px 0 90px; } .crumbs { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 20px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .crumbs a { border-bottom: 1.5px solid transparent; } .crumbs a:hover { color: var(--green); border-color: var(--green); } /* mobile : flux unique ordonné ; desktop : 2 colonnes (produit | synthèse) */ .fiche { display: flex; flex-direction: column; gap: 22px; } .f-col { display: contents; } .f-galerie { order: 1; } .f-hero { order: 2; } .f-compare { order: 3; } .f-desc { order: 4; } .f-pratique { order: 5; } @media (min-width: 900px) { .fiche { display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; align-items: start; } .f-col { display: flex; flex-direction: column; gap: 26px; min-width: 0; } } .f-bloc { min-width: 0; } .f-bloc h2 { font-size: 21px; letter-spacing: -0.02em; margin-bottom: 10px; } .f-bloc:empty { display: none; } /* galerie à balayage natif — packshots entiers, fond blanc */ .carousel { position: relative; border-radius: var(--r-card); overflow: hidden; border: 1.5px solid var(--line-strong); background: #fff; } .carousel-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; aspect-ratio: 1/1; } .carousel-track::-webkit-scrollbar { display: none; } .carousel-track img { flex: 0 0 100%; width: 100%; object-fit: cover; scroll-snap-align: center; cursor: zoom-in; } .carousel.packshot .carousel-track { aspect-ratio: 4/3; } .carousel.packshot .carousel-track img { object-fit: contain; padding: 24px; } .carousel-empty { display: flex; align-items: center; justify-content: center; aspect-ratio: 4/3; font-size: 48px; } .carousel-count { position: absolute; right: 12px; bottom: 12px; z-index: 2; background: rgba(20, 35, 26, 0.82); color: var(--lime); font-family: var(--font-mono); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; } .carousel-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink); background: rgba(255, 255, 255, 0.92); font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center; line-height: 1; } .carousel-nav.prev { left: 10px; } .carousel-nav.next { right: 10px; } @media (max-width: 640px) { .carousel-nav { display: none; } } /* balayage natif */ .thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 10px; } .thumbs button { border: 2px solid var(--line); border-radius: 8px; overflow: hidden; padding: 6px; cursor: pointer; aspect-ratio: 1/1; background: #fff; transition: border-color 0.12s ease, transform 0.12s ease; } .thumbs button:hover { transform: translateY(-2px); } .thumbs button.on { border-color: var(--ink); box-shadow: 3px 3px 0 var(--lime); } .thumbs img { width: 100%; height: 100%; object-fit: contain; } /* bandeau prix */ .f-hero .price { font-family: var(--font-display); font-size: clamp(34px, 8vw, 44px); font-weight: 700; letter-spacing: -0.03em; display: flex; align-items: baseline; flex-wrap: wrap; } .unit-price { font-family: var(--font-mono); font-size: 13px; color: var(--ink-2); letter-spacing: 0.04em; margin-top: 4px; } .deal-badge { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 4px; border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600; border: 1.5px solid var(--line-strong); } .deal-good { background: var(--tomato-soft); border-color: var(--tomato); color: var(--tomato-deep); } .deal-ok { background: var(--surface); color: var(--ink-2); } .deal-high { background: var(--amber-soft); border-color: var(--amber); color: #8a5a12; } .f-hero h1 { font-size: clamp(20px, 4.5vw, 26px); margin-top: 8px; } .f-hero .loc { color: var(--ink-2); font-size: 14px; } /* chips clés à défilement horizontal */ .chips-scroll { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; } .chips-scroll::-webkit-scrollbar { display: none; } .chip-key { flex: 0 0 auto; background: var(--green-deep); color: var(--lime); border-radius: 999px; padding: 8px 14px; font-family: var(--font-mono); font-size: 12px; font-weight: 700; white-space: nowrap; min-height: 34px; display: inline-flex; align-items: center; } .kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0; } @media (max-width: 380px) { .kv { grid-template-columns: 1fr; } } .kv .cell { background: var(--surface-2); border: 1.5px solid var(--line); border-radius: var(--r-ctl); padding: 10px 13px; } .kv .cell .k { font-family: var(--font-mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); font-weight: 700; } .kv .cell .v { font-weight: 700; font-size: 14.5px; margin-top: 2px; font-family: var(--font-display); } .amenity-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 20px; } .amenity { background: var(--lime-soft); color: var(--green-deep); font-size: 12px; font-weight: 600; border: 1px solid var(--green); border-radius: 999px; padding: 5px 12px; } .amenity.confirmed { background: var(--lime-soft); border-color: var(--green); color: var(--green-deep); font-weight: 600; } .cta { display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center; background: var(--green-deep); color: var(--lime); font-weight: 700; font-family: var(--font-display); border-radius: var(--r-ctl); padding: 12px 15px; border: 1.5px solid var(--ink); min-height: 48px; box-shadow: 4px 4px 0 rgba(20,35,26,0.25); transition: all 0.14s ease; margin-top: 14px; } .cta:hover { background: var(--lime); color: var(--ink); } .cta:active { transform: translate(2px, 2px); box-shadow: none; } .fine { font-size: 11.5px; color: var(--ink-3); margin-top: 14px; font-family: var(--font-mono); letter-spacing: 0.02em; } /* historique de prix */ .prix-histo { margin-top: 12px; padding: 10px 14px; border-radius: var(--r-card); border: 1.5px solid var(--line-strong); font-size: 13.5px; background: var(--surface); } .prix-histo.down { background: var(--lime-soft); border-color: var(--green); color: var(--green-deep); } .texte-original { margin-top: 12px; } .texte-original summary { cursor: pointer; font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); min-height: 44px; display: flex; align-items: center; } .histo-prix-liste { list-style: none; margin: 0; padding: 0; } .histo-prix-liste li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 2px; border-bottom: 1px dashed var(--line); font-size: 13px; } .histo-prix-liste li:last-child { border-bottom: 0; } .hp-date { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3); } .hp-prix { font-family: var(--font-display); } /* ================= Comparer les prix ================= */ .q-sub { color: var(--ink-3); font-size: 13px; margin: 4px 0 16px; } .cmp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; } .cmp-list li { background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-flat); transition: transform 0.14s ease, box-shadow 0.14s ease; } .cmp-list li:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); } .cmp-list li.best { border-color: var(--green); background: var(--lime-soft); } .cmp-link { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; } .cmp-img { flex: 0 0 56px; width: 56px; height: 56px; border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; display: flex; align-items: center; justify-content: center; } .cmp-img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; } .cmp-img .noimg { font-size: 22px; color: var(--ink-3); } .cmp-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; } .cmp-name { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .cmp-meta { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); } .cmp-main .source-tag { align-self: flex-start; max-width: 100%; } .cmp-price { flex: 0 0 auto; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; } .cmp-price b { font-family: var(--font-display); font-size: 17px; letter-spacing: -0.02em; } .cmp-unit { font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); } .cmp-best { font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; background: var(--green); color: var(--lime); border-radius: 4px; padding: 2px 7px; } .baisse-pct { font-style: normal; font-family: var(--font-mono); font-weight: 700; background: var(--tomato-soft); border: 1px solid var(--tomato); color: var(--tomato-deep); border-radius: 999px; padding: 2px 8px; font-size: 11px; } /* ================= Lightbox ================= */ .lightbox { position: fixed; inset: 0; background: rgba(16, 18, 16, 0.94); z-index: 100; display: flex; align-items: center; justify-content: center; cursor: zoom-out; padding: max(16px, env(safe-area-inset-top)) 16px; } .lightbox img { max-width: 94vw; max-height: 90vh; border-radius: 6px; border: 2px solid var(--lime); background: #fff; } /* ================= Sources page ================= */ .sources { padding: 44px 0 90px; } .sources h1 { font-size: clamp(28px, 4vw, 40px); text-transform: uppercase; margin: 10px 0 6px; } .sources .sub { color: var(--ink-2); margin-bottom: 30px; max-width: 700px; } .src-wrap { overflow-x: auto; border: 1.5px solid var(--ink); border-radius: var(--r-card); box-shadow: var(--shadow-off-soft); background: var(--surface); } .src-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 720px; } .src-table th { text-align: left; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-3); padding: 14px 18px; border-bottom: 1.5px solid var(--ink); background: var(--surface-2); } .src-table td { padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; } .src-table tr:last-child td { border-bottom: none; } .src-table tr:hover td { background: var(--surface-2); } .src-table a { color: var(--green-deep); font-weight: 600; border-bottom: 1.5px solid var(--lime); } .pill.ok { background: var(--lime); color: var(--ink); border: 1px solid var(--ink); border-radius: 4px; padding: 3px 10px; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; } .pill.todo { background: var(--amber-soft); color: #8a5a12; border: 1px solid var(--amber); border-radius: 4px; padding: 3px 10px; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; } .count-pill { font-weight: 700; font-family: var(--font-display); font-size: 16px; } /* ================= Page Statistiques ================= */ .stats-page { padding: 44px 0 90px; } .stats-title { font-size: clamp(30px, 4.6vw, 46px); text-transform: uppercase; margin: 10px 0 6px; } .stats-page .sub { color: var(--ink-2); max-width: 640px; margin-bottom: 30px; } .tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 30px; } .tile { background: var(--surface); border: 1.5px solid var(--ink); border-radius: var(--r-card); padding: 18px 20px; box-shadow: 3px 3px 0 rgba(20, 35, 26, 0.1); } .tile-v { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.03em; line-height: 1.05; } .tile-k { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); margin-top: 6px; } .hero-tile { background: var(--green-deep); color: var(--lime); border-color: var(--green-deep); } .hero-tile .tile-k { color: rgba(217, 242, 107, 0.7); } .viz-card { background: var(--surface); border: 1.5px solid var(--ink); border-radius: var(--r-card); box-shadow: var(--shadow-off-soft); padding: 26px 28px 20px; margin-bottom: 22px; } .viz-card h2 { font-size: 19px; text-transform: uppercase; letter-spacing: -0.01em; } .viz-sub { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin: 4px 0 20px; } .viz-card .deals-grid { padding-bottom: 8px; } /* Barres horizontales (mono-série) */ .hbars { display: flex; flex-direction: column; gap: 7px; } .hbar-row { display: grid; grid-template-columns: minmax(96px, 170px) 1fr auto; gap: 12px; align-items: center; min-height: 26px; cursor: default; } .hbar-label { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .hbar-label a { border-bottom: 1.5px solid var(--lime); } .hbar-label a:hover { color: var(--green-deep); } .hbar-track { background: var(--surface-2); border-radius: 0 4px 4px 0; height: 18px; overflow: hidden; } .hbar-fill { display: block; height: 100%; background: var(--green); border-radius: 0 4px 4px 0; min-width: 2px; transition: background 0.12s ease; } .hbar-row:hover .hbar-fill { background: var(--ink); box-shadow: inset 0 0 0 2px var(--lime); } .hbar-value { font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; white-space: nowrap; } .hbar-value em { font-style: normal; font-weight: 500; color: var(--ink-3); } @media (max-width: 640px) { .hbar-row { grid-template-columns: minmax(80px, 110px) 1fr auto; gap: 8px; } .hbar-value em { display: none; } .viz-card { padding: 20px 16px 14px; } } /* Infobulle */ .viz-tip { position: fixed; z-index: 120; pointer-events: none; max-width: 180px; background: var(--ink); color: var(--paper); border-radius: 8px; border: 1px solid var(--lime); padding: 9px 12px; font-size: 12px; line-height: 1.5; box-shadow: 0 8px 24px rgba(16, 18, 16, 0.35); } .viz-tip-title { font-family: var(--font-display); font-weight: 700; color: var(--lime); margin-bottom: 2px; } /* Vue tableau repliable (accessibilité / relief) */ .viz-table { margin-top: 16px; border-top: 1.5px dashed var(--line); padding-top: 10px; } .viz-table summary { cursor: pointer; font-family: var(--font-mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--green-deep); } .viz-table table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 13px; } .viz-table th { text-align: left; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); padding: 6px 10px; border-bottom: 1.5px solid var(--ink); } .viz-table td { padding: 6px 10px; border-bottom: 1px solid var(--line); } .stats-foot { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.04em; margin-top: 6px; } .alertes { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-2); } /* ================= Mobile : feuille de filtres + FAB ================= */ .sheet-head { display: none; } .sheet-apply { display: none; } .sheet-backdrop { display: none; } .fab { display: none; } @media (max-width: 640px) { /* En-tête compact */ .header-inner { height: 56px; } .brand { font-size: 21px; } .nav a { padding: 8px 13px; font-size: 13.5px; } .ticker { font-size: 10.5px; padding: 6px 0; } /* Héro resserré + stats en rangée défilante */ .hero h1 { font-size: clamp(30px, 9.4vw, 44px); } .hero p.lede { font-size: 15px; } .stat-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; margin-right: -16px; padding-right: 16px; } .stat-row::-webkit-scrollbar { display: none; } .stat-chip { flex: 0 0 auto; white-space: nowrap; } /* La barre de filtres devient une feuille coulissante (bottom sheet) */ .filterbar { display: none; } .filterbar.open .f-primary { flex-direction: column; } .filterbar.open .f-ctl select { max-width: none; width: 100%; } .filterbar.open .f-more { display: none; } .filterbar.open .f-adv { margin-top: 4px; } .filterbar.open { display: flex; flex-direction: column; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; margin: 0; border-radius: 20px 20px 0 0; border-width: 2px 0 0 0; max-height: 82dvh; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 16px 18px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -16px 48px rgba(16, 18, 16, 0.35); animation: sheet-up 0.22s ease; } @keyframes sheet-up { from { transform: translateY(30%); opacity: 0.4; } to { transform: none; opacity: 1; } } .filterbar.open .sheet-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-display); font-weight: 700; font-size: 17px; text-transform: uppercase; letter-spacing: -0.01em; position: sticky; top: -16px; background: var(--surface); padding: 6px 0 8px; border-bottom: 1.5px solid var(--line); margin-bottom: 2px; z-index: 1; } .sheet-close { border: 1.5px solid var(--ink); background: var(--surface); border-radius: 50%; width: 36px; height: 36px; font-size: 15px; cursor: pointer; line-height: 1; } .filterbar.open .sheet-apply { display: block; width: 100%; } .sheet-backdrop { display: block; position: fixed; inset: 0; z-index: 90; background: rgba(16, 18, 16, 0.45); backdrop-filter: blur(2px); } /* Bouton flottant */ .fab { display: flex; align-items: center; gap: 6px; position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 80; background: var(--green-deep); color: var(--lime); border: 1.5px solid var(--ink); border-radius: 999px; padding: 13px 24px; font-family: var(--font-display); font-weight: 700; font-size: 15px; cursor: pointer; box-shadow: 0 8px 24px rgba(16, 18, 16, 0.35), 4px 4px 0 rgba(20, 35, 26, 0.25); } .fab:active { transform: translateX(-50%) scale(0.97); } /* Fiche produit : vignettes en bande défilante */ .thumbs { display: flex; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; } .thumbs::-webkit-scrollbar { display: none; } .thumbs button { flex: 0 0 96px; } .detail { padding-top: 20px; } .results-head { margin-top: 20px; } .chips { margin-right: -16px; padding-right: 16px; } .notice { padding: 48px 16px; } .cmp-link { padding: 8px 10px; gap: 10px; } .cmp-img { flex-basis: 48px; width: 48px; height: 48px; } } /* Anti-zoom iOS : les champs doivent faire >= 16px */ @media (max-width: 900px) { .field input, .field select { font-size: 16px; } } /* ================= Footer ================= */ .footer { background: var(--ink); color: rgba(250, 246, 238, 0.75); margin-top: 20px; padding: 44px 0 max(40px, env(safe-area-inset-bottom)); font-size: 13px; } .footer .fbrand { font-family: var(--font-display); font-weight: 700; font-size: 34px; color: var(--paper); letter-spacing: -0.04em; margin-bottom: 12px; } .footer .fbrand .ka { color: var(--lime); } .footer b { color: var(--paper); } .footer .frow { display: flex; flex-direction: column; gap: 5px; max-width: 720px; } .footer .fmono { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(250,246,238,0.45); margin-top: 18px; } .footer .fmono a { text-decoration: underline; text-underline-offset: 2px; } /* --- Menu déroulant mobile ------------------------------------------------- */ .menu-btn { display: none; position: relative; z-index: 60; width: 44px; height: 44px; margin-left: auto; border: 1.5px solid var(--ink); border-radius: var(--r-ctl); background: var(--surface); cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; box-shadow: 3px 3px 0 rgba(20, 35, 26, 0.15); transition: box-shadow 0.15s ease, transform 0.15s ease; } .menu-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(20,35,26,0.15); } .menu-btn span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease; } .menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); } .menu-btn.open span:nth-child(2) { opacity: 0; } .menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); } .mobile-menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 2px solid var(--ink); box-shadow: 0 18px 30px rgba(20, 35, 26, 0.18); padding: 8px 16px calc(16px + env(safe-area-inset-bottom)); max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.3s ease, opacity 0.22s ease; } .mobile-menu.open { max-height: 480px; opacity: 1; } .mm-link { display: flex; align-items: center; gap: 12px; padding: 15px 10px; min-height: 52px; font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; border-bottom: 1.5px dashed var(--line); opacity: 0; transform: translateY(-8px); transition: opacity 0.25s ease, transform 0.25s ease; } .mobile-menu.open .mm-link { opacity: 1; transform: translateY(0); } .mm-link.active { color: var(--green); } .mm-link.active .mm-arrow { opacity: 1; } .mm-ico { width: 26px; text-align: center; font-size: 17px; } .mm-arrow { margin-left: auto; opacity: 0.25; transition: opacity 0.15s ease; } .mm-link:active { background: var(--lime-soft); border-radius: var(--r-ctl); } .mm-foot { padding: 12px 10px 4px; font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); letter-spacing: 0.04em; } .mm-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(20, 35, 26, 0.35); backdrop-filter: blur(2px); } @media (max-width: 760px) { .menu-btn { display: flex; } .nav { display: none; } .mobile-menu { display: block; } } /* --- Bandeau de consentement (témoins) ------------------------------------- */ .cookie-banner { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 80; animation: cookie-in 0.35s ease; } @keyframes cookie-in { from { transform: translateY(24px); opacity: 0; } } .cookie-inner { max-width: 720px; margin: 0 auto; background: var(--surface); border: 2px solid var(--ink); border-radius: var(--r-card); box-shadow: var(--shadow-off); padding: 16px 18px; } .cookie-text { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; } .cookie-text b { color: var(--ink); } .cookie-text a { text-decoration: underline; text-underline-offset: 2px; } .cookie-options { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; } .cookie-opt { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--ink-2); cursor: pointer; } .cookie-opt input { margin-top: 2px; accent-color: var(--green); width: 16px; height: 16px; } .cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; justify-content: flex-end; } @media (max-width: 640px) { .cookie-actions { justify-content: stretch; } .cookie-actions .btn { flex: 1; text-align: center; justify-content: center; } } /* --- Page confidentialité + lien pied de page ------------------------------- */ .legal { padding: 48px 0 70px; max-width: 760px; } .legal h1 { font-size: clamp(30px, 5vw, 46px); margin: 12px 0 8px; letter-spacing: -0.03em; } .legal section { margin-top: 26px; } .legal h3 { font-size: 18px; margin-bottom: 8px; } .legal p, .legal li { color: var(--ink-2); font-size: 14.5px; } .legal ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; } .flink { border: 0; background: none; padding: 0; cursor: pointer; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 2px; } /* --- CTA sticky mobile (fiche produit) -------------------------------------- */ .cta-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; align-items: center; gap: 12px; background: rgba(250, 246, 238, 0.94); backdrop-filter: blur(12px); border-top: 2px solid var(--ink); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); } .cta-sticky .cta { flex: 1; margin: 0; text-align: center; } .cta-sticky-prix { font-family: var(--font-display); font-weight: 700; font-size: 19px; white-space: nowrap; } .cta-sticky-prix small { font-family: var(--font-mono); font-weight: 500; font-size: 10px; color: var(--ink-3); } @media (min-width: 900px) { .cta-sticky { display: none; } } @media (max-width: 899px) { .cta-desktop { display: none; } .detail { padding-bottom: 84px; } /* place pour le CTA sticky */ } .f-foot { margin-top: 26px; } /* ================= Logos de bannières ================= */ .src-logo { display: inline-flex; align-items: center; gap: 8px; min-width: 0; vertical-align: middle; } .src-logo img { border-radius: 6px; background: #fff; border: 1px solid var(--line); object-fit: contain; padding: 2px; flex: none; } .src-logo-name { font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--green-deep); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .card-foot .src-logo { max-width: 60%; } .cta .src-logo img { border-color: rgba(255, 255, 255, 0.6); } .cta:hover .src-logo img { border-color: var(--ink); } .src-cell { display: flex; align-items: flex-start; gap: 12px; min-width: 0; } .src-cell .src-logo img { padding: 3px; } /* ================= Stats — panier comparatif ================= */ .basket-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; } .basket-table { width: 100%; border-collapse: collapse; min-width: 680px; font-size: 13px; } .basket-table thead th { padding: 10px 8px; border-bottom: 2px solid var(--ink); vertical-align: bottom; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); text-align: center; } .basket-table thead th:first-child { text-align: left; } .basket-th { display: flex; flex-direction: column; align-items: center; gap: 6px; } .basket-th .src-logo img { padding: 3px; } .basket-table tbody th { text-align: left; padding: 8px 10px; font-weight: 600; font-size: 13.5px; border-bottom: 1px solid var(--line); white-space: nowrap; } .basket-table td { padding: 8px; border-bottom: 1px solid var(--line); text-align: center; font-family: var(--font-mono); font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; } .basket-table td.cell-best { color: var(--green-deep); font-weight: 700; } .basket-table .best-col { background: rgba(46, 158, 99, 0.13); } .basket-table tfoot th, .basket-table tfoot td { border-top: 2px solid var(--ink); border-bottom: none; font-family: var(--font-display); font-weight: 700; font-size: 14.5px; padding: 10px 8px; } .basket-table tfoot th { text-align: left; font-size: 12px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; } .basket-table tfoot small { display: block; font-family: var(--font-mono); font-weight: 500; font-size: 9.5px; color: var(--ink-3); margin-top: 2px; } .basket-callout { display: inline-flex; align-items: center; gap: 9px; margin: 16px 0 2px; border: 1.5px solid var(--green); background: var(--lime-soft); color: var(--green-deep); border-radius: 999px; padding: 9px 18px; font-weight: 600; font-size: 13.5px; box-shadow: 3px 3px 0 rgba(20, 35, 26, 0.12); } /* ================= Stats — tableau bannières & matrice ================= */ .stat-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; } .stat-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 13px; } .stat-table th { padding: 9px 10px; border-bottom: 2px solid var(--ink); text-align: right; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); white-space: nowrap; } .stat-table th:first-child { text-align: left; } .stat-table th.sortable { cursor: pointer; user-select: none; } .stat-table th.sortable:hover { color: var(--ink); } .stat-table th.sorted { color: var(--green-deep); } .stat-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: right; font-family: var(--font-mono); font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; } .stat-table td:first-child { text-align: left; } .stat-table tr:hover td { background: var(--surface-2); } .stat-table a { display: inline-flex; } .stat-table .pct-sale { color: var(--tomato-deep); font-weight: 700; } .mini-track { display: inline-block; width: 74px; height: 8px; margin-left: 10px; background: var(--surface-2); border-radius: 4px; overflow: hidden; vertical-align: middle; } .mini-fill { display: block; height: 100%; background: var(--green); border-radius: 4px; min-width: 2px; } .matrix-table td { min-width: 74px; text-align: center; } .matrix-table td:first-child { text-align: left; font-family: var(--font-body); font-weight: 600; font-size: 13px; white-space: nowrap; } .matrix-table th { text-align: center; } .matrix-table th:first-child { text-align: left; } .matrix-table td.cell-best { color: var(--green-deep); font-weight: 700; } .matrix-table tr:hover td { background: inherit; } .matrix-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.05em; } .matrix-legend .sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--line); vertical-align: -2px; margin-right: 6px; } /* ================= Stats — baisses de prix ================= */ .drops-list { list-style: none; margin: 0; padding: 0; } .drops-list li { border-bottom: 1px dashed var(--line); } .drops-list li:last-child { border-bottom: none; } .drops-list a { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-radius: var(--r-ctl); transition: background 0.12s ease; } .drops-list a:hover { background: var(--surface-2); } .drop-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 13.5px; } .drop-prices { font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); white-space: nowrap; } .drop-prices s { text-decoration-color: var(--tomato); color: var(--ink-3); } .drop-prices b { color: var(--ink); } .drop-pct { font-family: var(--font-mono); font-weight: 700; font-size: 11px; white-space: nowrap; background: var(--tomato-soft); border: 1px solid var(--tomato); color: var(--tomato-deep); border-radius: 999px; padding: 2px 8px; flex: none; } @media (max-width: 640px) { .drop-prices s { display: none; } .drops-list a { gap: 9px; } } /* ancres de navigation rapide */ html { scroll-padding-top: 76px; } /* header sticky au-dessus des ancres */ /* ---- bouton rapport PDF (page Stats) ---- */ .stats-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; } .btn-pdf { text-decoration: none; white-space: nowrap; }