:root {
  --ink: #0d2230;
  --ink-soft: #4b6272;
  --deep: #0a3042;
  --deep-2: #0f4a5e;
  --teal: #0b7a80;
  --teal-dark: #086066;
  --aqua: #38c6c0;
  --mist: #e6f4f4;
  --paper: #f3f8f8;
  --panel: #ffffff;
  --rule: #cfe0e1;
  --rule-soft: #e1eded;
  --hazard: #f2b705;
  --hazard-bg: #fff8dc;
  --hazard-ink: #3d2f00;
  --shadow: 0 1px 2px rgba(10, 48, 66, .07), 0 6px 18px rgba(10, 48, 66, .06);
  --shadow-up: 0 2px 4px rgba(10, 48, 66, .08), 0 16px 32px rgba(10, 48, 66, .14);
  --radius: 14px;
  --font-head: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.65 var(--font-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 2px; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: 22px; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.15rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 99; border-radius: 8px; }

/* En-tête */
.top { background: var(--deep); color: #fff; position: sticky; top: 0; z-index: 30; box-shadow: 0 2px 12px rgba(5, 25, 36, .25); }
.top .wrap { display: flex; align-items: center; gap: 0 30px; min-height: 66px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; padding: 12px 0; }
.logo:hover { color: #fff; }
.logo svg { width: 36px; height: 36px; flex: none; }
.logo b { display: block; font: 700 1.3rem/1 var(--font-head); letter-spacing: .005em; }
.logo small { display: block; font: 400 .72rem/1.2 var(--font-body); color: #9fc4cc; margin-top: 3px; }
.nav { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.nav a { color: #d5e8ec; text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 14px; border-radius: 999px; }
.nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.nav a[aria-current] { background: var(--aqua); color: var(--deep); }

/* Accueil : héros */
.hero { position: relative; background: radial-gradient(900px 480px at 85% 10%, rgba(56, 198, 192, .28), transparent 60%), radial-gradient(700px 500px at 0% 100%, rgba(15, 74, 94, .9), transparent 70%), linear-gradient(160deg, #0a3042 0%, #0b3d52 55%, #0d5a68 100%); color: #fff; overflow: hidden; padding: 70px 0 120px; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .09); pointer-events: none; }
.hero::before { width: 420px; height: 420px; right: -110px; top: -140px; }
.hero::after { width: 240px; height: 240px; left: 42%; bottom: 40px; background: radial-gradient(circle at 30% 30%, rgba(56, 198, 192, .22), transparent 70%); border-color: rgba(255, 255, 255, .06); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.hero h1 { max-width: 14ch; }
.hero .lead { max-width: 52ch; color: #bfdbe1; font-size: 1.12rem; margin: 20px 0 30px; }
.search { display: flex; max-width: 620px; background: #fff; border-radius: 14px; box-shadow: 0 10px 30px rgba(3, 20, 30, .35); overflow: hidden; }
.search input { flex: 1; min-width: 0; border: 0; font: inherit; font-size: 1.05rem; padding: 17px 20px; background: transparent; color: var(--ink); }
.search input:focus-visible { outline: none; }
.search:focus-within { outline: 3px solid var(--aqua); outline-offset: 2px; }
.search button { border: 0; background: var(--teal); color: #fff; font: 700 1rem var(--font-head); padding: 0 28px; cursor: pointer; }
.search button:hover { background: var(--teal-dark); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; max-width: 620px; }
.chips a { color: #e3f4f6; text-decoration: none; font-size: .88rem; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); }
.chips a:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 70px; display: block; }
.wave path { fill: var(--paper); }

/* Collage produits du héros */
.collage { display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(2, 150px); gap: 14px; }
.collage a { background: #fff; border-radius: 16px; position: relative; box-shadow: 0 14px 30px rgba(3, 20, 30, .35); border-bottom: 5px solid var(--c); overflow: hidden; }
.collage a:nth-child(1) { grid-column: 1 / 4; grid-row: 1 / 3; transform: translateY(-14px); }
.collage a:nth-child(2) { grid-column: 4 / 7; grid-row: 1 / 2; }
.collage a:nth-child(3) { grid-column: 4 / 5; grid-row: 2 / 3; }
.collage a:nth-child(4) { grid-column: 5 / 7; grid-row: 2 / 3; transform: translateY(14px); }
.collage img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: contain; }
.collage a { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.collage a:nth-child(2) { animation-delay: .08s; } .collage a:nth-child(3) { animation-delay: .16s; } .collage a:nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }

/* Marques */
.section { padding: 64px 0; }
.section.tint { background: var(--mist); }
.section.dark { background: linear-gradient(160deg, #0a3042, #0d4a5c); color: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.section-head p { color: var(--ink-soft); margin: 8px 0 0; max-width: 60ch; }
.brands { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 18px; margin-top: -78px; position: relative; z-index: 2; }
.brand-tile { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.brand-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-up); color: var(--ink); }
.brand-tile .thumbs { display: flex; gap: 8px; padding: 16px 16px 0; height: 118px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 16%, #fff), #fff); }
.brand-tile .thumbs span { flex: 1; position: relative; }
.brand-tile .thumbs img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.brand-tile .meta { padding: 14px 18px 18px; border-top: 4px solid var(--c); }
.brand-tile strong { display: block; font: 700 1.3rem/1.15 var(--font-head); margin-bottom: 4px; }
.brand-tile span.d { display: block; color: var(--ink-soft); font-size: .92rem; line-height: 1.4; }
.brand-tile em { display: inline-block; margin-top: 10px; font-style: normal; font-weight: 600; font-size: .85rem; background: var(--mist); color: var(--deep); padding: 3px 10px; border-radius: 999px; }

/* Besoins */
.needs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.need { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 12px; padding: 14px 16px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.need:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); color: var(--ink); }
.need .ico { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--mist); display: grid; place-items: center; color: var(--teal); }
.need .ico svg { width: 24px; height: 24px; }
.need b { display: block; font: 600 1rem/1.2 var(--font-head); }
.need i { font-style: normal; font-size: .82rem; color: var(--ink-soft); }
.group-title { font: 600 1.05rem var(--font-head); color: var(--teal-dark); margin: 30px 0 12px; display: flex; align-items: center; gap: 12px; }
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--rule); }

/* Sécurité */
.safety { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.safety .sign { width: 84px; height: 84px; border-radius: 18px; background: var(--hazard); color: var(--hazard-ink); display: grid; place-items: center; transform: rotate(45deg) scale(.82); box-shadow: 0 8px 20px rgba(0, 0, 0, .3); }
.safety .sign svg { width: 44px; height: 44px; transform: rotate(-45deg); }
.safety h2 { color: #fff; margin-bottom: 8px; }
.safety p { color: #bfdbe1; margin: 0; max-width: 62ch; }
.btn { display: inline-block; background: var(--teal); color: #fff; text-decoration: none; font: 700 1rem var(--font-head); padding: 14px 26px; border-radius: 12px; border: 0; cursor: pointer; box-shadow: 0 6px 16px rgba(11, 122, 128, .3); transition: background .15s, transform .15s; }
.btn:hover { background: var(--teal-dark); color: #fff; transform: translateY(-1px); }
.btn.light { background: #fff; color: var(--deep); box-shadow: none; }
.btn.light:hover { background: var(--mist); color: var(--deep); }
.cta { display: inline-block; background: var(--teal); color: #fff; text-decoration: none; font: 700 1rem var(--font-head); padding: 14px 28px; border-radius: 12px; box-shadow: 0 6px 16px rgba(11, 122, 128, .3); }
.cta:hover { background: var(--teal-dark); color: #fff; }
.notice { border-radius: 12px; border-left: 8px solid var(--hazard); background: var(--hazard-bg); padding: 18px 22px; max-width: 78ch; }
.notice h3 { margin-bottom: 4px; }
.notice p:last-child { margin-bottom: 0; }

/* En-têtes de page */
.page-head { position: relative; background: radial-gradient(600px 260px at 90% 0%, rgba(56, 198, 192, .3), transparent 70%), linear-gradient(160deg, #0a3042, #0d4f61); color: #fff; padding: 38px 0 44px; overflow: hidden; }
.page-head::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .08); right: 6%; top: -90px; }
.page-head .wrap { position: relative; z-index: 1; }
.page-head p { color: #bfdbe1; max-width: 62ch; margin: 12px 0 0; }
.page-head.brandhead { border-bottom: 8px solid var(--c); }
.crumbs { font-size: .88rem; color: #9fc4cc; margin-bottom: 14px; }
.crumbs a { color: #cfe8ec; }
.crumbs.dark { color: var(--ink-soft); }
.crumbs.dark a { color: var(--ink-soft); }

/* Catalogue */
.layout { display: grid; grid-template-columns: 280px 1fr; gap: 34px; padding: 34px 0 70px; align-items: start; }
.filters { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; overscroll-behavior: contain; background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.filters fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.filters legend { font: 600 .98rem var(--font-head); padding: 0; margin-bottom: 6px; color: var(--teal-dark); }
.filters label { display: flex; align-items: center; gap: 9px; font-size: .92rem; padding: 4px 0; cursor: pointer; }
.filters label i { font-style: normal; color: var(--ink-soft); margin-left: auto; font-size: .8rem; background: var(--mist); border-radius: 999px; padding: 0 8px; }
.filters .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.filters input[type=checkbox] { accent-color: var(--teal); width: 17px; height: 17px; }
.filters .search { max-width: none; margin-bottom: 14px; box-shadow: none; border: 1px solid var(--rule); border-radius: 10px; }
.filters .search input { padding: 11px 14px; font-size: .95rem; }
.filters summary { font: 700 1.1rem var(--font-head); cursor: pointer; margin-bottom: 10px; }
.apply-bar { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; padding-bottom: 16px; border-bottom: 1px solid var(--rule-soft); }
.apply { flex: 1; background: var(--teal); color: #fff; border: 0; font: 700 1rem var(--font-head); padding: 12px 14px; border-radius: 10px; cursor: pointer; }
.apply:hover { background: var(--teal-dark); }
.reset { background: none; border: 0; color: var(--teal); font: inherit; font-size: .9rem; cursor: pointer; text-decoration: underline; padding: 0; }
.count { color: var(--ink-soft); margin: 0 0 16px; font-weight: 500; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.card { position: relative; background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; text-decoration: none; color: var(--ink); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-up); color: var(--ink); }
.card .pic { aspect-ratio: 1 / 1; position: relative; display: block; background: radial-gradient(circle at 50% 40%, #fff 40%, color-mix(in srgb, var(--c) 12%, #fff) 100%); }
.card .pic img { position: absolute; inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px); object-fit: contain; transition: transform .3s; }
.card:hover .pic img { transform: scale(1.05); }
.card .body { padding: 12px 16px 16px; border-top: 4px solid var(--c); flex: 1; display: flex; flex-direction: column; gap: 4px; }
.card .brandline { font-size: .76rem; font-weight: 600; color: var(--c); }
.card h3 { font-size: 1.05rem; }
.card .sub { font-size: .86rem; color: var(--ink-soft); line-height: 1.4; }
.card dl { margin: 10px 0 0; font-size: .82rem; }
.card dl div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-top: 1px solid var(--rule-soft); }
.card dt { color: var(--ink-soft); }
.card dd { margin: 0; text-align: right; font-weight: 600; }
.badge-fds { position: absolute; top: 12px; right: 12px; z-index: 1; background: var(--hazard); color: var(--hazard-ink); font: 700 .72rem/1 var(--font-body); padding: 5px 8px; border-radius: 6px; }
.empty { padding: 40px; border: 2px dashed var(--rule); border-radius: var(--radius); text-align: center; color: var(--ink-soft); }

/* Marque */
.cat-block { margin-top: 40px; }
.cat-block h2 { padding-bottom: 10px; margin-bottom: 18px; border-bottom: 3px solid var(--c); display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cat-block h2 span { font: 500 .9rem var(--font-body); color: var(--ink-soft); }
.cat-block h3.sub { margin: 22px 0 12px; font-size: 1rem; color: var(--ink-soft); }

/* Produit */
.product { display: grid; grid-template-columns: minmax(0, 440px) 1fr; gap: 48px; padding: 8px 0 44px; align-items: start; }
.product .pic { position: sticky; top: 90px; background: radial-gradient(circle at 50% 42%, #fff 45%, color-mix(in srgb, var(--c) 14%, #fff) 100%); border-radius: 20px; box-shadow: var(--shadow); border-bottom: 8px solid var(--c); aspect-ratio: 1 / 1; }
.product .pic img { position: absolute; inset: 28px; width: calc(100% - 56px); height: calc(100% - 56px); object-fit: contain; }
.product .brandline { color: var(--c); font-weight: 600; margin: 0 0 6px; }
.product h1 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); }
.product .sub { font: 500 1.2rem/1.35 var(--font-head); color: var(--ink-soft); margin: 10px 0 20px; }
.product .desc { max-width: 68ch; }
.product .desc ul { padding-left: 1.2em; margin: 0 0 1em; }
.product.nopic { grid-template-columns: 1fr; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 20px; padding: 0; list-style: none; }
.tags li { background: var(--mist); color: var(--deep); font-size: .82rem; font-weight: 500; padding: 4px 12px; border-radius: 999px; }
.fiche { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--panel); border-radius: 12px; box-shadow: var(--shadow); margin: 10px 0 30px; max-width: 780px; overflow: hidden; }
.fiche caption { text-align: left; font: 700 1.2rem var(--font-head); padding: 0 0 10px; }
.fiche th, .fiche td { text-align: left; padding: 10px 16px; vertical-align: top; font-size: .95rem; }
.fiche tr:nth-child(even) th, .fiche tr:nth-child(even) td { background: #f6fbfb; }
.fiche th { width: 42%; font-weight: 500; color: var(--ink-soft); }
.fiche td { font-weight: 600; }
.block { margin: 0 0 32px; max-width: 780px; }
.block h2 { font-size: 1.3rem; margin-bottom: 12px; }
.docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.docs a { display: flex; align-items: center; gap: 10px; background: var(--panel); border-radius: 12px; box-shadow: var(--shadow); padding: 12px 16px; text-decoration: none; color: var(--ink); font-weight: 500; }
.docs a:hover { box-shadow: var(--shadow-up); }
.docs a::after { content: "PDF"; margin-left: auto; font: 700 .7rem var(--font-body); color: var(--teal-dark); background: var(--mist); padding: 3px 8px; border-radius: 6px; }
.docs a.ext::after { content: "Lien externe"; }
.docs .fds { background: var(--hazard-bg); border-left: 8px solid var(--hazard); }
.related { background: var(--mist); padding: 48px 0 64px; }

/* Pied de page */
.foot { position: relative; background: var(--deep); color: #b4d0d6; padding: 56px 0 28px; font-size: .92rem; margin-top: 0; }
.foot a { color: #fff; }
.foot .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; }
.foot h2 { color: #fff; font-size: 1.05rem; margin-bottom: 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { padding: 3px 0; }
.legal { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 30px; padding-top: 18px; color: #8bb0b8; font-size: .82rem; max-width: 95ch; }

@media (max-width: 900px) {
  .hero { padding: 44px 0 96px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .collage { grid-template-rows: repeat(2, 120px); }
  .safety { grid-template-columns: 1fr; }
  .safety .sign { margin: 10px 0 0 10px; }
}
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .filters { position: static; max-height: none; overflow: visible; }
  .product { grid-template-columns: 1fr; gap: 26px; }
  .product .pic { position: relative; top: auto; }
  .nav { margin-left: 0; padding-bottom: 10px; }
  .logo { padding: 12px 0 6px; }
  .brands { margin-top: -60px; }
}
@media (min-width: 861px) { .filters summary { pointer-events: none; list-style: none; } .filters summary::-webkit-details-marker { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .collage a { animation: none; } * { transition: none !important; } }

.card .pic img, .product .pic img, .brand-tile .thumbs img { mix-blend-mode: multiply; }
.chips { max-width: 720px; }

/* En-tête clair : le logo est foncé sur fond blanc */
.top { background: #fff; color: var(--ink); box-shadow: 0 1px 0 var(--rule), 0 6px 20px rgba(10, 48, 66, .08); }
.top .wrap { min-height: 118px; }
.logo { padding: 8px 0; }
.logo img { height: 102px; width: auto; }
.nav a { color: var(--deep); }
.nav a:hover { background: var(--mist); color: var(--deep); }
.nav a[aria-current] { background: var(--teal); color: #fff; }
.foot-logo { background: #fff; border-radius: 12px; padding: 10px 16px; width: 280px; height: auto; margin-bottom: 14px; }
@media (max-width: 860px) { .logo img { height: 80px; } .logo { padding: 8px 0 2px; } }
