:root {
  --fond: #f5f6f8; --carte: #fff; --texte: #171a1f; --doux: #5f6672; --trait: #e2e5ea; --accent: #0b6e69;
  --rouge: #b42318; --rouge-fond: #fdecea; --vert: #1a7f47; --vert-fond: #e6f5ec; --gris-fond: #eef0f3;
  --ambre: #8a5a00; --ambre-fond: #fff4d9;
}
@media (prefers-color-scheme: dark) {
  :root { --fond: #101216; --carte: #191c22; --texte: #e8eaee; --doux: #9aa1ad; --trait: #2b3039; --accent: #4fc1bb;
    --rouge: #ff8f85; --rouge-fond: #3a1c1a; --vert: #6fd69a; --vert-fond: #15301f; --gris-fond: #23272f;
    --ambre: #f2c063; --ambre-fond: #33290f; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--fond); color: var(--texte); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; }
header { background: var(--carte); border-bottom: 1px solid var(--trait); position: sticky; top: 0; z-index: 5; }
header .barre { max-width: 1280px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 18px; overflow-x: auto; white-space: nowrap; }
header .marque { font-weight: 700; padding: 13px 0; color: var(--texte); }
header nav a { display: inline-block; padding: 13px 2px; margin-right: 14px; color: var(--doux); border-bottom: 2px solid transparent; }
header nav a.ici { color: var(--texte); border-color: var(--accent); }
header .fin { margin-left: auto; color: var(--doux); font-size: 13px; }
main { max-width: 1280px; margin: 0 auto; padding: 18px 16px 60px; }
h1 { font-size: 21px; margin: 4px 0 14px; } h2 { font-size: 16px; margin: 26px 0 10px; }
.note { color: var(--doux); font-size: 13.5px; margin: -6px 0 14px; max-width: 78ch; }
.carte { background: var(--carte); border: 1px solid var(--trait); border-radius: 10px; padding: 14px 16px; }
.grille { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.chiffre { font-size: 26px; font-weight: 700; line-height: 1.1; } .libelle { color: var(--doux); font-size: 13px; }
.rang { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pastille { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12.5px; background: var(--gris-fond); color: var(--doux); white-space: nowrap; }
.pastille.plus_cher { background: var(--rouge-fond); color: var(--rouge); } .pastille.moins_cher { background: var(--vert-fond); color: var(--vert); }
.pastille.attention { background: var(--ambre-fond); color: var(--ambre); }
form.filtres { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
input[type=text], input[type=search], input[type=password], input[type=url], select, input[type=file], textarea {
  font: inherit; padding: 7px 9px; border: 1px solid var(--trait); border-radius: 7px; background: var(--carte); color: var(--texte); max-width: 100%; }
button, .bouton { font: inherit; padding: 7px 12px; border-radius: 7px; border: 1px solid var(--trait); background: var(--carte); color: var(--texte); cursor: pointer; }
button.fort, .bouton.fort { background: var(--accent); border-color: var(--accent); color: #fff; }
button.oui { background: var(--vert-fond); color: var(--vert); border-color: transparent; } button.non { background: var(--rouge-fond); color: var(--rouge); border-color: transparent; }
button:hover, .bouton:hover { filter: brightness(0.96); text-decoration: none; }
.defile { overflow-x: auto; border: 1px solid var(--trait); border-radius: 10px; background: var(--carte); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--trait); vertical-align: top; }
th { font-size: 12.5px; color: var(--doux); font-weight: 600; white-space: nowrap; background: var(--carte); }
tr:last-child td { border-bottom: 0; } td.nb, th.nb { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vignette { width: 44px; height: 44px; object-fit: contain; border-radius: 6px; background: #fff; border: 1px solid var(--trait); flex: none; }
.produit { display: flex; gap: 10px; align-items: flex-start; min-width: 230px; } .produit .ref { color: var(--doux); font-size: 12.5px; }
.petit { font-size: 12.5px; color: var(--doux); } .rupture { color: var(--rouge); }
.paire { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } @media (max-width: 720px) { .paire { grid-template-columns: 1fr; } }
.paire .cote { display: flex; gap: 12px; } .paire img { width: 92px; height: 92px; object-fit: contain; background: #fff; border-radius: 8px; border: 1px solid var(--trait); flex: none; }
.paire .titre { font-weight: 600; } .paire .prix { font-size: 17px; font-weight: 700; margin-top: 3px; }
.proposition { margin-bottom: 12px; transition: opacity .25s; } .proposition.fait { opacity: .25; pointer-events: none; }
.proposition .pied { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--trait); }
.pages { display: flex; gap: 12px; align-items: center; margin-top: 14px; color: var(--doux); font-size: 13.5px; }
.message { background: var(--ambre-fond); color: var(--ambre); padding: 9px 12px; border-radius: 8px; margin-bottom: 14px; }
.barres { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--gris-fond); margin: 8px 0 6px; }
.barres span.plus_cher { background: var(--rouge); } .barres span.aligne { background: var(--doux); } .barres span.moins_cher { background: var(--vert); }
.connexion { max-width: 340px; margin: 14vh auto; } .connexion input { width: 100%; margin: 8px 0 12px; }
.pile { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); } .ligne-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
a.carte { color: inherit; } a.carte:hover { text-decoration: none; border-color: var(--accent); }
.mini { padding: 1px 7px; font-size: 12.5px; line-height: 1.5; } td .fait { opacity: .3; pointer-events: none; }
textarea { width: 100%; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
