:root {
  --red: #d90912;
  --red-deep: #b5060e;
  --red-soft: #fdecec;
  --steel: #a7b9c6;
  --ink: #16181b;
  --ink-2: #3d4248;
  --muted: #6c737b;
  --line: #d5dae0;
  --bg: #f1f3f5;
  --card: #ffffff;
  --hero: #ffffff;
  --hero-ink: #16181b;
  --hero-muted: #5d646b;
  --hero-line: rgba(16,18,22,.09);
  --top-bg: rgba(255,255,255,.94);
  --top-line: #cfd6dd;
  --top-shadow: 0 2px 12px -4px rgba(16,24,40,.12);
  --top-ink: #3d4248;
  --pill-bg: #eef2f5;
  --pill-line: #c3ccd5;
  --pill-ink: #3d4248;
  --fx-dot: 22, 24, 27;
  --steel-ink: #8ea2b1;
  --band: #e2e8ed;
  --band-line: #c9d2da;
  --card-shadow: 0 1px 2px rgba(16,24,40,.06), 0 6px 16px -8px rgba(16,24,40,.16);
  --foot-bg: #16181b;
  --search-border: #9eabb7;
  --search-shadow: 0 18px 40px -22px rgba(16,24,40,.45), 0 2px 6px rgba(16,24,40,.08);
  --foot-ink: #b9c0c7;
  --ok: #1d8a4e;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(10, 12, 16, .05), 0 12px 32px -16px rgba(10, 12, 16, .18);
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --red: #ff2a33; --red-deep: #d90912; --red-soft: #3a1214;
    --ink: #eef0f2; --ink-2: #c4c9ce; --muted: #8d959d; --line: #2b2f34;
    --bg: #0d0f11; --card: #171a1d;
    --hero: #07080a; --hero-ink: #f4f5f6; --hero-muted: #b0b8c0; --hero-line: rgba(255,255,255,.1); --top-bg: rgba(21,24,28,.94); --top-line: #2f343a; --top-shadow: 0 2px 14px -4px rgba(0,0,0,.6); --top-ink: #d3d8dd; --pill-bg: #171a1e; --pill-line: #353b42; --pill-ink: #c9ced3; --fx-dot: 230, 235, 240; --steel-ink: #a7b9c6; --band: #131619; --band-line: #2b2f34; --card-shadow: none; --foot-bg: #131619; --foot-ink: #8d959d; --search-border: transparent; --search-shadow: 0 24px 60px -24px rgba(0,0,0,.45);
        --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -16px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --red: #ff2a33; --red-deep: #d90912; --red-soft: #3a1214;
  --ink: #eef0f2; --ink-2: #c4c9ce; --muted: #8d959d; --line: #2b2f34;
  --bg: #0d0f11; --card: #171a1d;
    --hero: #07080a; --hero-ink: #f4f5f6; --hero-muted: #b0b8c0; --hero-line: rgba(255,255,255,.1); --top-bg: rgba(21,24,28,.94); --top-line: #2f343a; --top-shadow: 0 2px 14px -4px rgba(0,0,0,.6); --top-ink: #d3d8dd; --pill-bg: #171a1e; --pill-line: #353b42; --pill-ink: #c9ced3; --fx-dot: 230, 235, 240; --steel-ink: #a7b9c6; --band: #131619; --band-line: #2b2f34; --card-shadow: none; --foot-bg: #131619; --foot-ink: #8d959d; --search-border: transparent; --search-shadow: 0 24px 60px -24px rgba(0,0,0,.45);
      --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -16px rgba(0,0,0,.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ── Top bar ── */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; background: var(--top-bg); box-shadow: var(--top-shadow);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--top-line);
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-ph { width: 40px; height: 40px; }
.brand-word { height: 26px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--top-ink); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 14px; border-radius: 99px; }
.nav a:hover { background: var(--hero-line); color: var(--hero-ink); }
.theme { background: none; border: 1px solid var(--top-line); color: var(--top-ink); width: 38px; height: 38px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; margin-left: 6px; transition: color .2s, border-color .2s; }
.theme:hover { color: var(--red); border-color: var(--red); }
.theme .sun { display: none; }
:root[data-theme="dark"] .theme .sun { display: block; }
:root[data-theme="dark"] .theme .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme .sun { display: block; }
  :root:not([data-theme="light"]) .theme .moon { display: none; }
}

/* ── Hero ── */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--hero-line); background: var(--hero); color: var(--hero-ink); padding: 96px 24px 72px; }
.fx { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 70% at 22% 50%, color-mix(in srgb, var(--hero) 85%, transparent), transparent 75%); z-index: 1; pointer-events: none; }
.hero-inner { position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; letter-spacing: .02em; color: var(--pill-ink); font-weight: 500; margin: 0 0 22px; padding: 7px 15px 7px 11px; border: 1px solid var(--pill-line); background: var(--pill-bg); border-radius: 99px; }
.kicker b { color: var(--hero-ink); font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #2fd27a; box-shadow: 0 0 0 4px rgba(47,210,122,.18); }
h1 { font-size: clamp(26px, 7.2vw, 104px); line-height: .92; letter-spacing: -.035em; font-weight: 800; font-stretch: 110%; margin: 0 0 40px; text-transform: uppercase; }
h1 em { font-style: normal; font-weight: 300; font-stretch: 100%; color: var(--steel-ink); }

.search {
  display: flex; align-items: center; gap: 14px; max-width: 760px; padding: 0 18px 0 24px; height: 74px;
  background: #fff; color: #16181b; border-radius: 20px; border: 2px solid var(--search-border); box-shadow: var(--search-shadow);
  transition: box-shadow .2s;
}
.search:focus-within { border-color: var(--red); box-shadow: var(--search-shadow), 0 0 0 4px rgba(217,9,18,.25); }
.search svg { color: #d90912; flex: none; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 20px; font-weight: 500; color: #16181b; }
.search input::placeholder { color: #7d858d; font-weight: 400; }
.search kbd { font-family: var(--mono); font-size: 13px; color: #8a9097; border: 1px solid #dfe2e5; border-bottom-width: 2px; border-radius: 6px; padding: 2px 8px; }

.stats { display: flex; flex-wrap: wrap; gap: 12px 44px; margin-top: 44px; }
.stat b { display: block; font-size: 38px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.stat span { font-size: 13px; color: var(--hero-muted); text-transform: uppercase; letter-spacing: .08em; }
.stat:first-child b { color: var(--red); }

/* ── Gammes ── */
.gammes { padding: 64px 0 72px; background: var(--band); border-top: 1px solid var(--band-line); border-bottom: 1px solid var(--band-line); }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--red); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; }
.sec-head h2 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.03em; margin: 0; font-weight: 800; font-stretch: 105%; }
.sec-head > p { margin: 0; color: var(--muted); max-width: 420px; }
.gamme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gamme {
  --c: var(--red); --ct: #fff; display: flex; flex-direction: column; padding: 0; overflow: hidden; cursor: pointer; text-align: left;
  border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); box-shadow: var(--card-shadow); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.gamme .logo { height: 128px; display: grid; place-items: center; padding: 22px 30px; background: #fff; border-bottom: 1px solid var(--line); }
.gamme .logo img { max-width: 100%; max-height: 72px; object-fit: contain; transition: transform .3s; }
.gamme-pied { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 18px; font-weight: 600; font-size: 15px; transition: background .2s, color .2s; }
.gamme-pied small { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--muted); }
.gamme:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--c); }
.gamme:hover .logo img { transform: scale(1.05); }
.gamme.on { border-color: var(--c); box-shadow: 0 0 0 3px var(--c); }
.gamme.on .gamme-pied { background: var(--c); color: var(--ct); }
.gamme.on .gamme-pied small { color: var(--ct); opacity: .8; }

/* ── Résultats ── */
.results { padding-top: 64px; padding-bottom: 48px; scroll-margin-top: 70px; }
.filters { position: sticky; top: 64px; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 0; background: var(--bg); border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); margin-bottom: 24px; }
.count { font-weight: 600; margin-right: auto; font-variant-numeric: tabular-nums; }
.count span { color: var(--muted); font-weight: 400; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button {
  border: 1px solid var(--line); background: var(--card); border-radius: 99px; padding: 8px 15px; font-size: 14px; font-weight: 500; cursor: pointer;
}
.chips button:hover { border-color: var(--ink-2); }
.chips button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 16px; }
.card {
  position: relative; display: flex; flex-direction: column; text-align: left; cursor: pointer; padding: 0; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--card-shadow); transition: transform .18s, box-shadow .18s;
  animation: rise .35s both;
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.thumb { aspect-ratio: 1; width: 100%; overflow: hidden; background: #fff; display: grid; place-items: center; border-bottom: 1px solid var(--line); position: relative; }
.thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.thumb.vide { background: repeating-linear-gradient(-45deg, var(--bg), var(--bg) 10px, var(--card) 10px, var(--card) 20px); color: var(--muted); }
.thumb.vide svg { width: 44px; opacity: .45; }
.gtag { position: absolute; left: 10px; top: 10px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ct, #fff); background: var(--c, var(--red)); padding: 4px 9px; border-radius: 99px; }
.card-b { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ref { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.card-b h3 { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.badges { display: flex; gap: 6px; margin-top: auto; padding-top: 4px; }
.b { font-size: 11px; font-weight: 700; letter-spacing: .05em; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); }
.b.ft { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.b.fds { background: var(--red); color: #fff; border-color: var(--red); }
.b.off { text-decoration: line-through; opacity: .5; }
.more { display: grid; place-items: center; padding: 36px 0 8px; }
.more-btn { border: 1px solid var(--ink); background: none; border-radius: 99px; padding: 13px 28px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.more-btn:hover { background: var(--ink); color: var(--bg); }
.vide-msg { grid-column: 1/-1; text-align: center; padding: 64px 0; color: var(--muted); }
.vide-msg b { display: block; font-size: 22px; color: var(--ink); margin-bottom: 6px; }

.foot { border-top: 1px solid var(--band-line); background: var(--foot-bg); padding: 32px 0; }
.foot-in { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: space-between; }
.foot-logo { height: 28px; }
.foot p { margin: 0; color: var(--foot-ink); font-size: 14px; }

/* ── Fiche produit ── */
.sheet { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; }
.sheet[hidden] { display: none; }
.sheet-bg { position: absolute; inset: 0; background: rgba(8, 9, 11, .62); backdrop-filter: blur(6px); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet-card {
  position: relative; width: min(980px, 100%); max-height: calc(100vh - 48px); overflow: auto; background: var(--card); border-radius: 26px;
  display: grid; grid-template-columns: 1fr 1.1fr; box-shadow: 0 40px 100px -30px rgba(0,0,0,.6); animation: pop .28s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.close { position: absolute; right: 14px; top: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); font-size: 24px; line-height: 1; cursor: pointer; }
.p-photo { background: #fff; display: grid; place-items: center; aspect-ratio: 1; align-self: start; border-right: 1px solid var(--line); position: relative; }
.p-photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.p-photo.vide { background: repeating-linear-gradient(-45deg, var(--bg), var(--bg) 14px, var(--card) 14px, var(--card) 28px); color: var(--muted); }
.p-body { padding: 44px 40px 36px; display: flex; flex-direction: column; gap: 6px; }
.p-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 99px; background: var(--bg); color: var(--ink-2); }
.tag.g { background: var(--c); color: var(--ct, #fff); }
.tag.bio { background: #fff4d6; color: #7a5300; }
:root[data-theme="dark"] .tag.bio { background: #3a2e0e; color: #f3d48a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tag.bio { background: #3a2e0e; color: #f3d48a; } }
#p-nom { font-size: 30px; line-height: 1.12; letter-spacing: -.02em; margin: 12px 0 4px; font-weight: 750; }
.p-ref { font-family: var(--mono); color: var(--muted); margin: 0 0 22px; font-size: 14px; }
.p-docs { display: flex; flex-direction: column; gap: 10px; }
.doc {
  display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 14px; text-decoration: none;
  border: 1px solid var(--line); transition: border-color .15s, transform .15s, background .15s;
}
.doc:hover { border-color: var(--ink); transform: translateX(3px); }
.doc i { font-style: normal; font-weight: 800; font-size: 13px; letter-spacing: .04em; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: var(--bg); flex: none; }
.doc.fds i { background: var(--red); color: #fff; }
.doc div { flex: 1; }
.doc strong { display: block; font-size: 16px; }
.doc span { font-size: 13px; color: var(--muted); }
.doc svg { color: var(--muted); }
.doc.manque { border-style: dashed; color: var(--muted); pointer-events: none; }
.doc.manque i { background: var(--bg); color: var(--muted); }

@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .top { padding: 10px 16px; }
  .nav a { display: none; }
  .brand-word { height: 20px; }
  .hero { padding: 56px 16px 48px; }
  .hero::before { background: color-mix(in srgb, var(--hero) 55%, transparent); }
  .search { height: 60px; padding: 0 14px 0 16px; }
  .search input { font-size: 16px; }
  .search kbd { display: none; }
  .stat b { font-size: 28px; }
  .filters { top: 58px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-b { padding: 10px 12px 12px; }
  .card-b h3 { font-size: 13px; }
  .sheet { padding: 0; align-items: end; }
  .sheet-card { grid-template-columns: 1fr; border-radius: 24px 24px 0 0; max-height: 92vh; }
  .p-photo { width: min(100%, 320px); justify-self: center; border-right: 0; }
  .p-body { padding: 24px 20px 28px; }
  #p-nom { font-size: 23px; }
}


h1 .l1 { white-space: nowrap; }
.p-aucun { margin: 14px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--bg); color: var(--muted); font-size: 14px; line-height: 1.5; }
