:root {
  --ink: #0e1726;
  --ink-2: #3b4658;
  --muted: #6b7587;
  --line: #e4e8ee;
  --bg: #f5f7fa;
  --card: #ffffff;
  --accent: #ff5a1f;
  --accent-ink: #ffffff;
  --accent-soft: #fff1ea;
  --dark: #0b1220;
  --ok: #10894e;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(14, 23, 38, .06), 0 8px 24px rgba(14, 23, 38, .06);
  --wrap: 1200px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Barre info */
.topbar { background: var(--dark); color: #c9d2e0; font-size: .82rem; }
.topbar .wrap { display: flex; gap: 24px; justify-content: center; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar b { color: #fff; font-weight: 600; }

/* En-tête */
.header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -.03em; white-space: nowrap; }
.logo-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; }
.logo span em { font-style: normal; color: var(--accent); }
.logo span small { font-size: .62em; font-weight: 700; color: var(--muted); margin-left: 1px; }
.search { flex: 1; display: flex; max-width: 560px; }
.search input {
  flex: 1; min-width: 0; height: 42px; padding: 0 14px; font: inherit; font-size: .95rem;
  border: 1.5px solid var(--line); border-right: 0; border-radius: 10px 0 0 10px; background: var(--bg);
}
.search input:focus { outline: none; border-color: var(--accent); background: #fff; }
.search button { height: 42px; padding: 0 16px; border: 0; border-radius: 0 10px 10px 0; background: var(--ink); color: #fff; cursor: pointer; }
.header-actions { display: flex; gap: 6px; margin-left: auto; }
.icon-btn { position: relative; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: .9rem; }
.icon-btn:hover { background: var(--bg); }
.cart-count { position: absolute; top: 2px; left: 26px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: .7rem; display: grid; place-items: center; }
.cart-count:empty { display: none; }

.nav { background: #fff; border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav .wrap::-webkit-scrollbar { display: none; }
.nav a { padding: 11px 12px; font-size: .88rem; font-weight: 500; color: var(--ink-2); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.on { color: var(--ink); border-bottom-color: var(--accent); }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #2a3a5c 0%, transparent 60%), var(--dark); color: #fff; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero p { color: #b8c3d6; font-size: 1.1rem; max-width: 540px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.finder { background: #fff; color: var(--ink); border-radius: 18px; padding: 24px; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); display: grid; gap: 12px; }
.finder > b { font-size: 1.2rem; letter-spacing: -.02em; }
.finder-row { display: flex; gap: 8px; }
.finder-row input { flex: 1; min-width: 0; height: 50px; padding: 0 14px; font: inherit; border: 1.5px solid var(--line); border-radius: 11px; background: var(--bg); }
.finder-row input:focus { outline: none; border-color: var(--accent); background: #fff; }
.finder-row .btn { height: 50px; }
.finder-hint { font-size: .8rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { font-size: .84rem; padding: 6px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.chips a:hover { border-color: var(--accent); color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 11px; border: 0; cursor: pointer;
  font: inherit; font-weight: 600; text-decoration: none; transition: transform .1s, background .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #ec4a10; }
.btn-ghost { background: transparent; color: inherit; border: 1.5px solid currentColor; }
.btn-dark { background: var(--ink); color: #fff; }
.btn[disabled] { opacity: .55; cursor: wait; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Sections */
.section { padding: 48px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 20px; }
.section-head a { font-weight: 600; font-size: .92rem; color: var(--accent); text-decoration: none; }

.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.trust div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; gap: 12px; align-items: flex-start; }
.trust svg { flex: none; color: var(--accent); }
.trust b { display: block; font-size: .95rem; }
.trust span { font-size: .84rem; color: var(--muted); }

.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.cat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  text-decoration: none; display: flex; flex-direction: column; gap: 10px; transition: border-color .15s, box-shadow .15s;
}
.cat:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.cat .ico { width: 44px; height: 44px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.cat b { font-size: .95rem; }
.cat span { font-size: .8rem; color: var(--muted); }

.brands-section { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.brand-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.brand-tile {
  height: 92px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-decoration: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 10px; text-align: center;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.brand-tile:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.brand-logo { max-width: 78%; max-height: 50px; object-fit: contain; }
.brand-name { font-weight: 900; font-size: 1.02rem; letter-spacing: .01em; line-height: 1.1; font-style: italic; }
.brand-count { font-size: .74rem; color: var(--muted); }
.az { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 8px; position: sticky; top: 68px; background: var(--bg); padding: 10px 0; z-index: 5; }
.az a { min-width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: .88rem; text-decoration: none; }
.az a:hover { border-color: var(--accent); color: var(--accent); }
.az-group { padding-top: 18px; scroll-margin-top: 130px; }
.az-group h2 { font-size: 1.3rem; color: var(--accent); }

/* Grille produits */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card a.hit { text-decoration: none; display: flex; flex-direction: column; flex: 1; }
.thumb { aspect-ratio: 4 / 3; background: linear-gradient(135deg, #eef1f6, #f8f9fb); display: grid; place-items: center; position: relative; color: #9aa6ba; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 6%; }
.thumb .brand-tag { z-index: 1; position: absolute; left: 10px; top: 10px; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; font-size: .7rem; font-weight: 800; letter-spacing: .04em; color: var(--ink); }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-size: .88rem; font-weight: 500; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 14px 14px; }
.price { font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.stock { font-size: .76rem; color: var(--ok); font-weight: 600; }
.add { width: 40px; height: 40px; border-radius: 10px; border: 0; background: var(--ink); color: #fff; cursor: pointer; display: grid; place-items: center; }
.add:hover { background: var(--accent); }

/* Catalogue */
.catalog { display: grid; grid-template-columns: 250px 1fr; gap: 24px; padding-top: 28px; padding-bottom: 60px; }
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; align-self: start; position: sticky; top: 84px; }
.filters h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 16px 0 8px; }
.filters h3:first-child { margin-top: 0; }
.filters select, .filters input { width: 100%; height: 40px; border: 1.5px solid var(--line); border-radius: 9px; padding: 0 10px; font: inherit; font-size: .9rem; background: #fff; }
.filters .price-row { display: flex; gap: 8px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar select { height: 38px; border: 1.5px solid var(--line); border-radius: 9px; padding: 0 10px; font: inherit; font-size: .88rem; background: #fff; }
.more { display: flex; justify-content: center; margin-top: 24px; }
.empty { text-align: center; padding: 60px 20px; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }
.filter-toggle { display: none; }

/* Fiche produit */
.crumbs { font-size: .84rem; color: var(--muted); padding-top: 18px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.product { display: grid; grid-template-columns: 1.05fr 1fr; gap: 36px; padding-top: 20px; padding-bottom: 60px; }
.product .thumb { aspect-ratio: 1; border-radius: var(--radius); border: 1px solid var(--line); }
.product h1 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
.buybox { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 18px 0; }
.buybox .price { font-size: 2rem; }
.buybox .ttc { font-size: .82rem; color: var(--muted); margin-left: 6px; font-weight: 500; }
.qty { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 11px; height: 46px; }
.qty button { width: 40px; height: 100%; border: 0; background: none; font-size: 1.2rem; cursor: pointer; }
.qty input { width: 40px; border: 0; text-align: center; font: inherit; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.perks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; font-size: .9rem; }
.perks li { display: flex; gap: 10px; align-items: center; }
.perks svg { color: var(--ok); flex: none; }
.specs { width: 100%; border-collapse: collapse; font-size: .9rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.specs th, .specs td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.specs th { width: 40%; color: var(--muted); font-weight: 500; background: #fafbfc; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.fiche { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; padding: 32px 0 48px; border-top: 1px solid var(--line); }
.fiche h2 { font-size: 1.15rem; margin: 0 0 12px; }
.fiche h2:not(:first-child) { margin-top: 28px; }
.fiche .lead { color: var(--ink-2); margin: 0; }
.kit { margin: 0; padding-left: 20px; color: var(--ink-2); display: grid; gap: 4px; }
.fiche details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 10px; }
.fiche summary { cursor: pointer; font-weight: 600; font-size: .92rem; }
.refs { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 12px 0 0; font-size: .86rem; }
.refs dt { font-weight: 700; }
.refs dd { margin: 0; color: var(--ink-2); font-family: ui-monospace, Menlo, monospace; font-size: .82rem; }
.refs-eq { margin: 12px 0 0; font-size: .84rem; color: var(--ink-2); line-height: 1.8; }
.notice { background: var(--accent-soft); border-radius: 11px; padding: 14px 16px; font-size: .88rem; margin-top: 16px; }

/* Panier */
.cart { display: grid; grid-template-columns: 1fr 340px; gap: 24px; padding-top: 28px; padding-bottom: 60px; align-items: start; }
.cart-list { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.cart-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 16px; border-bottom: 1px solid var(--line); align-items: center; }
.cart-line:last-child { border-bottom: 0; }
.cart-line .thumb { aspect-ratio: 1; border-radius: 10px; }
.cart-line .thumb .brand-tag { display: none; }
.cart-line a { text-decoration: none; font-size: .92rem; font-weight: 500; }
.cart-line .ctrl { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.cart-line .qty { height: 36px; }
.cart-line .qty button { width: 32px; }
.link-btn { background: none; border: 0; color: var(--muted); font: inherit; font-size: .84rem; cursor: pointer; text-decoration: underline; padding: 0; }
.summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: sticky; top: 84px; }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 0 0 16px; }
.summary dd { margin: 0; text-align: right; font-weight: 600; }
.summary .total { font-size: 1.2rem; font-weight: 800; padding-top: 10px; border-top: 1px solid var(--line); }
.summary .btn { width: 100%; }
.pay-logos { display: flex; gap: 8px; justify-content: center; margin-top: 12px; font-size: .75rem; color: var(--muted); flex-wrap: wrap; }
.pay-logos span { border: 1px solid var(--line); border-radius: 5px; padding: 2px 7px; font-weight: 700; }
.error { color: #c0341d; font-size: .88rem; margin-top: 10px; }

/* Pages de contenu */
.page { max-width: 820px; padding: 36px 16px 60px; }
.page h2 { margin-top: 1.6em; font-size: 1.2rem; }
.page p, .page li { color: var(--ink-2); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; }
.form input, .form textarea, .form select { font: inherit; font-weight: 400; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--accent); }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0; }
.feature-grid .panel { padding: 18px; }
.feature-grid b { display: block; font-size: 1.5rem; letter-spacing: -.02em; }

/* Pied de page */
.footer { background: var(--dark); color: #a9b5c9; font-size: .9rem; padding: 48px 0 24px; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer h4 { color: #fff; margin: 0 0 12px; font-size: .95rem; }
.footer a { color: #a9b5c9; text-decoration: none; display: block; padding: 3px 0; }
.footer a:hover { color: #fff; }
.footer .logo { color: #fff; margin-bottom: 12px; }
.footer .legal { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 32px; padding-top: 18px; font-size: .8rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 120px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: .9rem; box-shadow: var(--shadow); transition: transform .25s; z-index: 50; display: flex; gap: 14px; align-items: center; max-width: calc(100% - 32px); }
.toast.show { transform: translate(-50%, 0); }
.toast a { color: var(--accent); font-weight: 600; white-space: nowrap; }

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 44px; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .catalog { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.open { display: block; }
  .filter-toggle { display: inline-flex; height: 38px; }
  .product, .cart, .fiche { grid-template-columns: 1fr; }
  .summary { position: static; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .header .wrap { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .icon-btn .lbl { display: none; }
  .finder-row { flex-direction: column; }
  .finder-row input { flex: none; }
  .brand-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .az { top: 0; }
  .trust { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-body { padding: 10px; }
  .card-foot { padding: 0 10px 10px; }
  .price { font-size: 1rem; }
  .footer .cols { grid-template-columns: 1fr; }
  .form .two { grid-template-columns: 1fr; }
  .topbar .wrap { gap: 12px; }
  .topbar .hide-sm { display: none; }
}
