/* ============================================================
   Alphasud — Espace Distribution — Catalogue 2026-2027 — v2
   Style unique : couleurs en variables CSS ci-dessous.
   ============================================================ */

:root {
  --navy: #0d2140;
  --navy-2: #16345e;
  --accent: #e30613;
  --ink: #1d2733;
  --muted: #5b6675;
  --bg: #f4f6f9;
  --card: #ffffff;
  --line: #dde3ea;
  --radius: 12px;
  --head-h: 64px;
  --wrap-max: 1160px;   /* largeur maximale du contenu — modifier ici (ex. 1280px, 1440px) */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff; padding: 10px 16px; z-index: 60;
}
.skip:focus { left: 8px; top: 8px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ================= En-tête + navigation ================= */

.site-head {
  background: var(--navy);
  color: #fff;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 10px rgba(13, 33, 64, .25);
}
.bar {
  display: flex; align-items: center; gap: 24px;
  min-height: var(--head-h);
}
.brand {
  color: #fff; text-decoration: none; font-weight: 700; font-size: 1.15rem;
  letter-spacing: .02em; white-space: nowrap; line-height: 1.2;
}
.brand span {
  display: block; font-weight: 400; font-size: .68rem; color: #b9c6da;
  text-transform: uppercase; letter-spacing: .08em;
}

/* bouton hamburger (masqué sur grand écran) */
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none; border: 0; cursor: pointer;
  padding: 10px;
}
.nav-toggle-box { display: block; width: 26px; height: 20px; position: relative; }
.nav-toggle-box span {
  position: absolute; left: 0; right: 0; height: 3px; border-radius: 2px;
  background: #fff; transition: transform .2s, opacity .2s, top .2s;
}
.nav-toggle-box span:nth-child(1) { top: 0; }
.nav-toggle-box span:nth-child(2) { top: 8.5px; }
.nav-toggle-box span:nth-child(3) { top: 17px; }
.nav-open .nav-toggle-box span:nth-child(1) { top: 8.5px; transform: rotate(45deg); }
.nav-open .nav-toggle-box span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle-box span:nth-child(3) { top: 8.5px; transform: rotate(-45deg); }

/* nav desktop : une ligne */
.mainnav {
  display: flex; align-items: center; gap: 4px;
  margin-left: auto;
}
.mainnav > a, .nav-drop {
  color: #dce4f0; text-decoration: none; font-size: .95rem; font-weight: 500;
  padding: 9px 13px; border-radius: 8px; border: 0; background: none;
  font-family: inherit; cursor: pointer;
}
.mainnav > a:hover, .nav-drop:hover { color: #fff; background: var(--navy-2); }
.mainnav a[aria-current="page"] { color: #fff; background: var(--accent); }

.nav-group { position: relative; }
.nav-drop::after {
  content: "▾"; margin-left: 6px; font-size: .8em; opacity: .8;
}
.nav-menu {
  display: none;
  position: absolute; top: calc(100% + 6px); left: 0;
  background: var(--navy-2);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(5, 15, 32, .45);
  padding: 8px; min-width: 250px; z-index: 55;
}
.nav-group:hover .nav-menu, .nav-group:focus-within .nav-menu { display: block; }
.nav-menu a {
  display: block; color: #dce4f0; text-decoration: none;
  padding: 8px 14px; border-radius: 8px; font-size: .92rem;
}
.nav-menu a:hover { color: #fff; background: var(--navy); }
.nav-menu a[aria-current="page"] { color: #fff; background: var(--accent); }

/* ================= Titres ================= */
h1 {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  margin: 0 0 .3em; color: var(--navy); line-height: 1.2;
}
h2 {
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  margin: 1.6em 0 .5em; color: var(--navy);
}
h3 { font-size: 1.1rem; margin: 1.4em 0 .3em; color: var(--navy-2); }
h4 {
  font-size: .85rem; margin: 1.2em 0 .2em; color: var(--muted);
  text-transform: uppercase; letter-spacing: .07em;
}
p { margin: .5em 0; }
.lead { font-size: 1.05rem; color: #33404f; }

.page-head { max-width: 1160px; margin: 0 auto; padding: 34px 20px 6px; }
.page-head h1 { margin-top: 0; }

.cat-title {
  font-size: 1.18rem; color: var(--navy);
  padding-bottom: 6px; border-bottom: 3px solid var(--accent);
  display: inline-block; margin: 1.8em 0 .8em;
}

/* ================= Accueil ================= */
.hero { background: var(--navy); color: #fff; padding: 40px 0 46px; }
.hero .kicker {
  font-size: 1.15rem; font-weight: 300; max-width: 44rem;
  color: #e8edf5; margin: 0 0 26px;
}
.hero-art { margin: 0 0 22px; border-radius: var(--radius); overflow: hidden; }
.hero-art img { width: 100%; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.badges span {
  border: 1px solid #4a5f85; border-radius: 999px; padding: 5px 14px;
  font-size: .85rem; color: #dce4f0;
}

/* v2.13.2 : cadence verticale portée par la marge des sections
   (60px haut/bas, paddings internes neutralisés — .section.alt
   garde son padding pour sa bande grise) */
.section { margin: 60px 0; padding: 0; }
.section.alt { background: var(--bg); padding: 40px 0 30px; }
.section h2:first-child { margin-top: 0; }

.grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.side .pic { margin: 0 0 18px; }

.mission {
  margin: 1.4em 0; padding: 16px 20px;
  background: var(--bg); border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.tagline { font-weight: 600; color: var(--navy); }

.domains {
  list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px; padding: 0; margin: 0 0 22px;
}
.domains li {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 16px; font-weight: 600; color: var(--navy);
}
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 18px 0; }
.chips li {
  background: #eef2f8; border-radius: 999px; padding: 5px 14px; font-size: .85rem;
  color: var(--navy-2);
}

.tiles {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px; margin-top: 18px;
}
.tiles a {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: var(--ink);
  transition: box-shadow .15s, transform .15s;
}
.tiles a:hover { box-shadow: 0 6px 18px rgba(13, 33, 64, .12); transform: translateY(-2px); }
.tiles b { display: block; color: var(--navy); margin-bottom: 4px; }
.tiles span { font-size: .85rem; color: var(--muted); }

/* ================= Secteurs (cartes) ================= */
.secteurs {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px; padding: 20px;
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; padding: 0 0 14px;
}
.card figure { margin: 0; }
.card h3 { margin: 12px 18px 2px; font-size: 1.05rem; }
.card p { margin: 0 18px; font-size: .92rem; color: var(--muted); }

/* ================= Images ================= */
figure.pic {
  margin: 18px auto; max-width: 100%;
  border-radius: var(--radius); overflow: hidden;
  padding: 0;
  display: flex; justify-content: center;
}
main > figure.pic { max-width: 640px; }
figure.pic.wide { max-width: 940px; }
figure.pic.wide img { margin: 0 auto; }

.gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px; margin: 18px 0;
}
.gallery figure {
  margin: 0; background: var(--bg); border-radius: var(--radius); overflow: hidden;
}

/* ================= Encarts pédagogiques ================= */
.callout {
  background: #eef2f8;
  border-left: 4px solid var(--navy);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 20px;
  margin: 16px auto;
  font-size: .95rem;
  color: #33404f;
  max-width: 1160px;
}

/* ================= Listes de caractéristiques ================= */
ul.specs {
  list-style: none; margin: 8px 0 18px; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 4px 22px;
}
ul.specs li {
  padding-left: 1.1em; position: relative; font-size: .92rem; color: #33404f;
}
ul.specs li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

/* ================= Grilles produits (3 / 2 / 1) ================= */
.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 22px 0;
}

.product-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.product-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: var(--accent);
  transform: scaleY(0); transform-origin: top; transition: transform .22s ease;
}
.product-card:hover, .product-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(13, 33, 64, .16);
  border-color: #c4cedb;
}
.product-card:hover::before, .product-card:focus-within::before { transform: scaleY(1); }

.card-media {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 6px; padding: 10px; background: var(--bg);
}
.card-media figure.pic { margin: 0; }

.card-body { padding: 6px 16px 4px; flex: 1; }
.card-body h3 { margin: .4em 0 .2em; font-size: 1.02rem; color: var(--navy); }
.card-desc { font-size: .88rem; color: var(--muted); margin: .2em 0 .4em; }
.card-body ul.specs { margin: 6px 0 10px; grid-template-columns: 1fr; }

.doc-btn {
  display: block; width: calc(100% - 24px);
  margin: 0 12px 12px;
  padding: 10px 12px;
  border: 1.5px solid var(--navy); border-radius: 9px;
  background: #fff; color: var(--navy);
  font-family: inherit; font-size: .88rem; font-weight: 600;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
}
.product-card:hover .doc-btn, .doc-btn:focus {
  background: var(--accent); border-color: var(--accent); color: #fff;
}

/* ================= Off-canvas documentation ================= */
.drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(13, 33, 64, .55);
  z-index: 90;
  opacity: 0; transition: opacity .2s;
}
.drawer-backdrop.show { opacity: 1; }

.doc-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(420px, 100%);
  background: #fff; z-index: 95;
  padding: 30px 26px;
  transform: translateX(105%);
  visibility: hidden;
  transition: transform .25s ease, visibility 0s .25s;
  overflow-y: auto;
}
.doc-drawer.open {
  transform: translateX(0);
  visibility: visible;
  box-shadow: -18px 0 44px rgba(5, 15, 32, .35);
  transition: transform .25s ease;
}

.drawer-close {
  position: absolute; top: 14px; right: 14px;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg);
  font-size: 1rem; cursor: pointer; color: var(--navy);
}
.drawer-close:hover { background: var(--navy); color: #fff; }
.drawer-kicker {
  margin: 0 0 4px; font-size: .75rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); font-weight: 700;
}
.doc-drawer h2 { margin: 0 0 .4em; font-size: 1.3rem; }
.drawer-product {
  background: var(--bg); border-radius: 9px; padding: 10px 14px;
  font-size: .92rem;
}
.drawer-note { font-size: .88rem; color: var(--muted); }

#doc-form label { display: block; font-weight: 600; font-size: .88rem; margin: 16px 0 6px; }
#doc-form input[type="email"] {
  width: 100%; padding: 12px 14px; font-size: 1rem; font-family: inherit;
  border: 1.5px solid var(--line); border-radius: 9px;
}
#doc-form input[type="email"]:focus { outline: 2px solid var(--navy-2); border-color: var(--navy-2); }
.drawer-consent {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: .82rem; color: var(--muted); font-weight: 400; margin: 14px 0 !important;
}
.drawer-consent input { margin-top: 3px; }
.btn-accent {
  display: block; width: 100%;
  background: var(--accent); color: #fff; border: 0; border-radius: 9px;
  padding: 13px; font-size: 1rem; font-weight: 700; font-family: inherit;
  cursor: pointer; transition: background .18s;
}
.btn-accent:hover { background: #c00510; }
.form-status { font-size: .85rem; min-height: 1.2em; margin: 10px 0 0; }
.form-status.ok { color: #0d7a3e; font-weight: 600; }
.form-status.err { color: var(--accent); font-weight: 600; }

/* ================= Pied de page ================= */
.site-foot {
  margin-top: 0; background: var(--navy); color: #c7d2e2; font-size: .92rem;
}
.foot-grid {
  display: grid; grid-template-columns: 1.2fr 1fr .8fr .8fr;
  gap: 30px; padding-top: 34px; padding-bottom: 20px;
}
.foot-brand { font-weight: 700; color: #fff; font-size: 1.05rem; margin: 0 0 6px; }
.foot-brand span { font-weight: 400; color: #b9c6da; font-size: .8rem; }
.site-foot a { color: #fff; text-decoration: underline; text-decoration-color: #5a739c; }
.site-foot a:hover { text-decoration-color: var(--accent); }
.foot-links { list-style: none; margin: 4px 0; padding: 0; }
.foot-links li { margin: 3px 0; }
.foot-note {
  border-top: 1px solid #274469; padding-top: 14px; padding-bottom: 22px;
  color: #8fa1ba; font-size: .82rem;
}

/* ================= Responsive ================= */

/* Tablette : nav hamburger + grilles 2 colonnes */
@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav-scrim {
    display: none; position: fixed; inset: 0;
    background: rgba(13, 33, 64, .55); z-index: 56;
  }
  body.nav-open .nav-scrim { display: block; }
  .mainnav {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(340px, 85vw);
    background: var(--navy);
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: calc(var(--head-h) + 16px) 14px 24px;
    margin: 0;
    transform: translateX(105%);
    visibility: hidden;
    transition: transform .25s ease, visibility 0s .25s;
    overflow-y: auto;
    z-index: 58;
  }
  body.nav-open .mainnav {
    transform: translateX(0);
    visibility: visible;
    box-shadow: -14px 0 34px rgba(5, 15, 32, .45);
    transition: transform .25s ease;
  }
  .mainnav > a, .nav-drop {
    font-size: 1.02rem; padding: 12px 14px; text-align: left;
    border-bottom: 1px solid #1c3a66; border-radius: 0;
  }
  .nav-menu {
    display: none; position: static;
    background: none; box-shadow: none; padding: 0 0 4px 14px;
    min-width: 0;
  }
  .nav-menu a { font-size: .92rem; padding: 7px 12px; }
  .nav-group.open > .nav-menu { display: block; }
  .products { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

/* Mobile : 1 colonne */
@media (max-width: 640px) {
  .products { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; gap: 20px; }
  .side { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .side .pic { margin: 0; }
  ul.specs { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .page-head { padding-top: 24px; }
  .brand { font-size: 1rem; }
  .brand span { font-size: .6rem; }
  .foot-grid { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 420px) {
  .side { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
}

/* Impression */
@media print {
  .site-head, .doc-drawer, .drawer-backdrop, .doc-btn, .site-foot { display: none; }
}

/* ============================================================
   Section Accessoires — pages générées par build/accessoires.py
   ============================================================ */
.acc-card .card-body { padding: 14px 16px 6px; }
.acc-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: .2em 0 .6em; font-size: .78rem; color: var(--muted); align-items: center; }
.acc-tag { background: var(--navy); color: #fff; border-radius: 20px; padding: 2px 10px; font-weight: 600; font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.acc-brand { color: var(--navy); font-weight: 700; text-transform: uppercase; }
.acc-ref { color: var(--muted); font-weight: 600; }
.acc-note { color: var(--muted); font-weight: 400; font-size: .82em; }
.acc-count { color: var(--muted); }
.acc-card .doc-btn { margin: 0 16px 16px; }
.backlink { margin: 8px 0 0; }
.backlink a { color: var(--navy); font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 1px; }
.acc-family { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.acc-family::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform .22s ease; }
.acc-family:hover, .acc-family:focus-within { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(13, 33, 64, .16); border-color: #c4cedb; }
.acc-family:hover::before, .acc-family:focus-within::before { transform: scaleY(1); }
.acc-family h3 a { color: var(--navy); text-decoration: none; }
.acc-family:hover h3 a, .acc-family:focus-within h3 a { color: var(--accent); }
.acc-help { margin-top: 20px; }

/* ============================================================
   Recherche — champ dans la navigation + résultats (build/search.py)
   ============================================================ */
.search-box { position: relative; margin-right: 14px; }
.search-input {
  width: 210px; padding: 8px 12px;
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .25); border-radius: 8px;
  color: #fff; font-family: inherit; font-size: .9rem;
  outline: none; transition: background .18s, border-color .18s, width .18s;
}
.search-input::placeholder { color: #b9c6da; }
.search-input:focus { background: rgba(255, 255, 255, .2); border-color: var(--accent); width: 260px; }
.search-results {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: min(430px, 92vw); max-height: 62vh; overflow-y: auto;
  background: #fff; border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(5, 15, 32, .35);
  padding: 6px; z-index: 90;
}
.search-results[hidden] { display: none; }
.search-head { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 8px 10px 4px; }
.search-item {
  display: flex; align-items: baseline; gap: 10px;
  padding: 8px 10px; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-size: .92rem; line-height: 1.35;
}
.search-item:hover, .search-item.active { background: var(--bg); color: var(--navy); }
.search-item.active { box-shadow: inset 0 0 0 2px var(--accent); }
.si-kind {
  flex: none; font-size: .62rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted);
  border: 1px solid var(--line); border-radius: 20px; padding: 1px 7px;
}
.si-page .si-kind { color: #fff; background: var(--navy); border-color: var(--navy); }
.search-empty { padding: 12px 10px; color: var(--muted); font-size: .9rem; }
.search-empty a { color: var(--navy); font-weight: 600; }
.search-hint { padding: 8px 10px 6px; font-size: .75rem; color: var(--muted); }
@media (max-width: 1100px) {
  .search-box { margin: 0 0 14px; }
  .search-input, .search-input:focus { width: 100%; }
  .search-results { right: auto; left: 0; }
}
@media print { .search-box { display: none; } }

/* ============================================================
   Structure v2.3 (build/structure.py) — ancres, fil d'Ariane,
   bouton Contact, dropdown Accessoires, CTA Allo PoC, page Contact
   ============================================================ */
/* Ancres : réserver la hauteur du header sticky + marge */
main [id] { scroll-margin-top: calc(var(--head-h) + 24px); }
/* Fil d'Ariane */
.crumbs { padding-top: 14px; }
.crumbs ol {
  list-style: none; display: flex; flex-wrap: wrap; margin: 0; padding: 0;
  font-size: .82rem; color: var(--muted);
}
.crumbs li { display: flex; align-items: center; white-space: nowrap; }
.crumbs li + li::before { content: "\203A"; margin: 0 8px; color: var(--line); font-weight: 700; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--navy); text-decoration: underline; }
.crumbs li[aria-current="page"] { color: var(--navy); font-weight: 600; }
/* Bouton Contact dans la navigation */
a.nav-contact {
  background: var(--accent); color: #fff; border-radius: 999px;
  padding: 8px 16px; font-weight: 700; transition: background .18s;
}
a.nav-contact:hover, a.nav-contact[aria-current="page"] { background: #c00510; color: #fff; }
/* Première entrée du dropdown Accessoires */
.nav-menu a.acc-all { font-weight: 700; border-bottom: 1px solid var(--line); }
.nav-menu a.acc-all::after { content: " \203A"; }
/* CTA Allo PoC */
.allopoc-band { text-align: center; padding: 36px 0 46px; }
.allopoc-band h2 { margin-bottom: 8px; }
.allopoc-band p { max-width: 660px; margin: 0 auto 18px; }
.btn-cta {
  display: inline-block; background: var(--accent); color: #fff;
  border: 0; border-radius: 9px; padding: 13px 26px;
  font-size: 1rem; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background .18s, transform .18s;
}
.btn-cta:hover { background: #c00510; color: #fff; transform: translateY(-1px); }
/* Page contact */
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px; margin: 8px 0 30px;
}
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.contact-card h2 { font-size: 1.02rem; margin: 0 0 8px; color: var(--navy); }
.contact-card a { color: var(--navy); font-weight: 600; }
.hubspot-slot {
  border: 2px dashed var(--line); border-radius: var(--radius);
  padding: 26px 22px; text-align: center; background: var(--bg);
  margin-top: 10px;
}
.hubspot-slot .hs-wait { color: var(--muted); margin: 0 0 14px; }
@media print { .crumbs { display: none; } }

/* ============================================================
   Associations produits-accessoires (build/assoc.py) — v2.4
   Barre de filtre par univers sur les pages familles
   ============================================================ */
.acc-filter { margin: 0 0 18px; }
.acc-filter-label {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted); margin: 0 0 8px;
}
.acc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: baseline; gap: 7px;
  background: #fff; color: var(--navy);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; font-family: inherit; font-size: .86rem;
  font-weight: 600; cursor: pointer; transition: background .15s, color .15s;
}
.chip span {
  font-size: .72rem; font-weight: 700; color: var(--muted);
  background: var(--bg); border-radius: 999px; padding: 1px 7px;
}
.chip:hover { background: var(--bg); }
.chip.is-active, .chip.is-active:hover {
  background: var(--navy); color: #fff; border-color: var(--navy);
}
.chip.is-active span { background: var(--accent); color: #fff; }
.acc-filter-count { font-size: .84rem; color: var(--muted); margin: 10px 0 0; }
/* Hub : univers */
.acc-by-univers { margin-top: 34px; }
.univers-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px; margin-top: 14px;
}
.univers-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px;
}
.univers-card h3 { margin: 0 0 4px; font-size: 1.02rem; color: var(--navy); }
.univers-count { font-size: .8rem; color: var(--muted); margin: 0 0 6px; }
.univers-desc { font-size: .86rem; margin: 0 0 10px; }
.univers-links { font-size: .84rem; line-height: 1.7; margin: 0; }
.univers-links a { color: var(--navy); font-weight: 600; text-decoration: none; }
.univers-links a:hover { text-decoration: underline; }
/* Bloc « Accessoires associés » sur les pages produits */
.acc-related { border-top: 4px solid var(--accent); background: var(--bg); }
.acc-related h2 { margin-bottom: 6px; }
.acc-related > .wrap > p { max-width: 720px; }
.acc-related-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px; margin: 18px 0 6px;
}
.acc-related-card {
  display: flex; flex-direction: column; gap: 3px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.acc-related-card:hover {
  border-color: var(--accent); box-shadow: 0 8px 22px rgba(5, 15, 32, .12);
  transform: translateY(-2px);
}
.acc-related-card strong { color: var(--navy); font-size: .95rem; }
.acc-related-card span { font-size: .8rem; color: var(--muted); }
.acc-related-more { margin-top: 10px; }
.acc-related-more a { color: var(--navy); font-weight: 700; }
@media print { .acc-filter { display: none; } }

/* ============================================================
   Pages produits — sommaire + cartes (build/produits.py) — v2.5
   ============================================================ */
/* Mise en page : sommaire sticky à gauche */
.toc-layout {
  max-width: 1160px; margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: 248px minmax(0, 1fr);
  gap: 30px; align-items: start;
}
.toc-layout .wrap { max-width: none; margin: 0; padding: 0; }
.toc-layout > .wrap { max-width: none; }
.toc {
  position: sticky; top: calc(var(--head-h) + 18px);
  max-height: calc(100vh - var(--head-h) - 36px);
  overflow-y: auto; font-size: .88rem;
}
.toc-title {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin: 0 0 8px;
}
.toc-nav ol, .toc-nav ul { list-style: none; margin: 0; padding: 0; }
.toc-nav ol { border-left: 2px solid var(--line); }
.toc-nav li { margin: 0; }
.toc-nav > ol > li > a, .toc-acc {
  display: block; padding: 6px 4px 6px 14px;
  color: var(--ink); text-decoration: none; font-weight: 600;
  border-left: 2px solid transparent; margin-left: -2px;
  line-height: 1.3;
}
.toc-nav > ol > li > a span, .toc-nav ul a span {
  font-size: .72rem; font-weight: 700; color: var(--muted);
}
.toc-nav > ol > li > a:hover, .toc-nav ul a:hover { color: var(--navy); }
.toc-nav > ol > li > a.is-active {
  color: var(--accent); border-left-color: var(--accent);
}
.toc-nav ul { margin: 0 0 4px; }
.toc-nav ul a {
  display: block; padding: 4px 4px 4px 26px; color: var(--muted);
  text-decoration: none; font-weight: 500; font-size: .84rem;
  border-left: 2px solid transparent; margin-left: -2px;
}
.toc-nav ul a.is-active { color: var(--accent); border-left-color: var(--accent); }
.toc-acc a {
  display: block; color: var(--navy); font-weight: 700; text-decoration: none;
  padding: 8px 4px 6px 14px; margin-left: -2px;
  border-left: 2px solid var(--accent);
}
.toc-acc a:hover { color: var(--accent); }
.toc-toggle { display: none; }
@media (max-width: 1100px) {
  .toc-layout { display: block; padding: 0; }
  .toc {
    position: sticky; top: var(--head-h); z-index: 40;
    max-height: none; overflow: visible;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 18px rgba(5, 15, 32, .08);
    margin: 0 -20px 18px; padding: 0 20px;
  }
  .toc-toggle {
    display: block; width: 100%; text-align: left;
    background: none; border: 0; padding: 12px 0;
    font-family: inherit; font-size: .95rem; font-weight: 700;
    color: var(--navy); cursor: pointer;
  }
  .toc-toggle::after { content: " \25BE"; float: right; color: var(--muted); }
  .toc.open .toc-toggle::after { content: " \25B4"; }
  .toc-nav { display: none; padding: 4px 0 14px; }
  .toc.open .toc-nav { display: block; }
  .toc-title { margin-top: 4px; }
}
@media print { .toc { display: none; } .toc-layout { display: block; } }

/* Cartes : pills catégorie / sous-catégorie (même style que accessoires) */
.prod-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: .2em 0 .6em;
  font-size: .78rem; color: var(--muted); align-items: center; }
.prod-cat { background: var(--navy); color: #fff; border-radius: 20px;
  padding: 2px 10px; font-weight: 600; font-size: .7rem; text-transform: uppercase;
  letter-spacing: .04em; white-space: nowrap; }
.prod-sub { background: #ffffff; color: var(--ink); border: 1px solid var(--line);
  border-radius: 20px; padding: 1px 10px; font-weight: 600; font-size: .7rem;
  text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }

/* Cartes : une image + badges NEW / PTI par-dessus */
.card-media { position: relative; }
.card-badges { position: absolute; top: 8px; right: 8px; display: flex; gap: 5px; }
.badge {
  background: var(--accent); color: #fff; font-size: .66rem; font-weight: 800;
  letter-spacing: .06em; padding: 3px 9px; border-radius: 6px;
  box-shadow: 0 3px 10px rgba(5, 15, 32, .3); z-index: 2;
}
.badge.b-pti { background: var(--navy); }
.badge.b-apex { background: #6d28d9; }
/* Hub « Tous les produits » */
.prod-page .card-desc { min-height: 2.6em; }

/* ==================== Pages produits v2.6 : filtre (build/produits.py) ====================
   « Sur cette page » filtrant : boutons familles + select sous-catégories,
   image mise en avant, compléments déplacés sous le listing.
   ================================================================================== */
.page-feat { margin: 0 0 26px; }
.page-feat .pic img { border-radius: 14px; box-shadow: 0 12px 32px rgba(5, 15, 32, .14); }

.toc-filters { display: flex; flex-direction: column; gap: 2px; margin: 10px 0 4px; }
.toc-f {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  width: 100%; text-align: left; background: none; border: 0;
  border-left: 2px solid transparent; border-radius: 0 8px 8px 0;
  padding: 7px 8px 6px 12px; margin: 0;
  font-family: inherit; font-size: .88rem; font-weight: 600; color: var(--ink);
  cursor: pointer;
}
.toc-f span { color: var(--muted); font-weight: 700; font-size: .78rem; }
.toc-f:hover { color: var(--accent); }
.toc-f.is-active { color: var(--navy); border-left-color: var(--accent); background: var(--bg); }
.toc-sub { margin: 10px 0 4px; padding: 10px 10px 10px 12px; border-left: 2px solid var(--line); }
.toc-sub-label {
  display: block; margin: 0 0 6px; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; color: var(--muted);
}
.toc-sub-select {
  width: 100%; padding: 7px 8px; font-family: inherit; font-size: .85rem;
  color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 8px;
}
.toc-empty { margin: 8px 0 2px 12px; font-size: .85rem; font-style: italic; color: var(--muted); }
.toc-acc { margin: 12px 0 2px; }

/* Cartes filtrées (« Sur cette page ») : l'attribut hidden doit gagner
   sur le display:flex de .product-card, sinon le filtre est inopérant. */
.product-card[hidden] { display: none; }

/* ==================== Pages produits v2.6.1 : ajustements design (build/produits.py) ==================== */

/* Image mise en avant : centrage conservé (margin-bottom UNIQUEMENT —
   margin: 0 0 26px écrasait le margin:auto du .wrap -> section à gauche),
   hauteur plafonnée à 70svh. */
.wrap.page-feat { margin: 0 auto 26px; }
.page-feat .pic { margin: 0; }
.page-feat .pic img {
  display: block; margin-inline: auto;
  width: auto; max-width: 100%;
  max-height: 70vh; max-height: 70svh;
}

/* Cartes produits : bloc image à fond blanc (images du catalogue sans fond
   ou fond blanc -> rendu uni), ratio constant, image contain centrée. */
.card-media { display: block; background: #fff; padding: 12px; }
.card-media figure.pic { aspect-ratio: 4 / 3; margin: 0; }
.card-media figure.pic img {
  width: 100%; height: 100%;
  object-fit: contain; object-position: center;
}

/* Bouton rouge unifié sur tout le site : border-radius léger (le pill
   999px du header ne suivait pas la même charte que .btn-accent/.btn-cta). */
a.nav-contact { border-radius: 9px; }

/* « Accessoires associés » du panneau : bouton rouge, même charte. */
.toc-acc a {
  display: block; text-align: center; text-decoration: none;
  background: var(--accent); color: #fff;
  border-left: 0; margin-left: 0; border-radius: 9px;
  padding: 10px 12px; font-weight: 700;
}
.toc-acc a:hover { background: #c00510; color: #fff; }

/* Panneau sticky : ne jamais coller à la section suivante (Accessoires). */
.toc-layout { margin-bottom: 46px; }

/* Section « Accessoires associés » : plus aérée, et plus de bande blanche
   avant le footer (le margin-top:50px du footer est annulé sur les pages
   qui terminent sur ce bloc). */
.acc-related { padding: 52px 0 64px; }
main:has(> .acc-related) ~ .site-foot { margin-top: 0; }

/* Responsive : marges latérales restaurées sous 1100px. Le v2.5 remettait
   le padding de .toc-layout à 0 (contenu collé aux bords + barre
   « Sur cette page » débordante via son margin:-20px). */
@media (max-width: 1100px) {
  .toc-layout { padding: 0 20px; }
}

/* ============================================================
   Chrome v2.8 (build/chrome.py) — header/footer composants :
   soulignement rouge SOUS LE TEXTE de la page active (1er niveau
   et entrées de dropdown, le border-radius des boîtes reste
   intact pour le survol), pont de survol du dropdown, loupe
   desktop (recherche dans le hero de l'accueil), recherche
   visible uniquement dans le hamburger, liens cookies / mentions
   légales + crédits dans le footer.
   ============================================================ */
/* Page active : soulignement rouge du TEXTE (fond rouge retiré) —
   travaillé sur le texte, pas sur la boîte, pour ne pas entrer en
   conflit avec le border-radius utile au survol.
   Les boutons à menu : seul le LIBELLÉ (.nav-label) est souligné,
   jamais la flèche ▾ (pseudo-élément du bouton, hors du span) */
.mainnav > a[aria-current="page"],
.nav-menu a[aria-current="page"] {
  color: #fff;
  background: none;
  box-shadow: none;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}
button.nav-drop.is-current {
  color: #fff;
  background: none;
  box-shadow: none;
  text-decoration: none;
}
button.nav-drop.is-current .nav-label {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}
/* Le bouton Contact reste un CTA plein accent, y compris actif */
a.nav-contact[aria-current="page"] {
  background: #c00510; box-shadow: none; text-decoration: none;
}

/* Pont invisible au-dessus du menu déroulant : comble le gap de 6px
   pour que le survol ne s'interrompe pas (desktop uniquement —
   l'esthétique du gap est conservée, la navigation est prioritaire) */
@media (min-width: 1101px) {
  .nav-menu::before {
    content: "";
    position: absolute; top: -10px; left: 0; right: 0; height: 10px;
  }
}

/* « Tous les accessoires » : identique à « Tous les produits ».
   La classe acc-all n'est plus émise par le composant header v2.8 ;
   les anciennes règles .nav-menu a.acc-all sont donc inertes. */

/* Recherche : visible uniquement dans le menu hamburger (< 1100px) */
.search-box:not(.hero-search) { display: none; }
/* Loupe desktop : renvoie au champ de recherche du hero de l'accueil */
.nav-search {
  display: inline-flex; align-items: center; justify-content: center;
  margin-left: 4px; padding: 9px 12px; border-radius: 8px;
}
.nav-search svg {
  width: 17px; height: 17px; fill: none;
  stroke: currentColor; stroke-width: 2; stroke-linecap: round;
}
.nav-search:hover { color: #fff; background: var(--navy-2); }
.nav-search:focus-visible {
  outline: 2px solid var(--accent); outline-offset: -2px;
}
@media (max-width: 1100px) {
  .search-box:not(.hero-search) { display: block; margin: 0 0 14px; }
  .nav-search { display: none; }
}

/* Recherche du hero de l'accueil (#recherche — cible de la loupe) */
.hero-search { position: relative; max-width: 600px; margin: 0 0 26px; }
.hero-search .search-input {
  width: 100%; padding: 13px 16px;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px;
  font-size: 1rem;
}
.hero-search .search-input::placeholder { color: var(--muted); }
.hero-search .search-input:focus {
  background: #fff; border-color: var(--accent); width: 100%;
  box-shadow: 0 6px 18px rgba(5, 15, 32, .25);
}
.hero-search .search-results { left: 0; right: auto; }

/* Footer v2.8 : crédit THM Web / Adèle Delattre */
.foot-credit { margin: 4px 0 0; }
.foot-credit strong { color: #c7d2e2; }

/* Page mentions légales : blocs « à compléter » */
.legal-todo {
  color: var(--muted); font-style: italic;
  background: #fff8e6; border: 1px dashed #d9c48a; border-radius: 8px;
  padding: 10px 14px;
}

/* ============================================================
   Pages v2.11 (build/pages.py) : largeur racine, secteurs flex, marges hub
   — --wrap-max : largeur maximale du contenu, définie dans le :root
   de assets/css/style.css (à modifier directement là-bas) ; les
   règles ci-dessous ne font que l'appliquer (.wrap, .page-head,
   .callout) ;
   — .secteurs : largeur bornée + flex wrap (le nombre de tuiles
   s'ajuste à la largeur d'écran) + margin-bottom 60px (cadence
   verticale générale v2.13.2) ;
   — .page-head + section : marge haute identique à la page secteurs
   (le padding 40px de .section créait un trou sous le titre des hubs
   produits/accessoires et des pages familles) — depuis v2.13.2 les
   .section portent margin: 60px 0 (règle de base style.css), le
   padding-top spécifique est donc à 0 ;
   — .acc-family : cartes des hubs entièrement cliquables ;
   — cartes (secteurs/partenaires) ET cartes produits : zone image à
   fond BLANC, zone contenu+bouton au fond gris-bleu (--bg) ;
   — .part-list : cartes partenaires — hauteur d'image uniforme (ratio
   4/3 comme les cartes produits), logo en object-fit: contain.
   ============================================================ */
.wrap { max-width: var(--wrap-max); }
.page-head { max-width: var(--wrap-max); }
.callout { max-width: var(--wrap-max); }

.secteurs {
  max-width: var(--wrap-max);
  margin-left: auto; margin-right: auto; margin-bottom: 60px;
  display: flex; flex-wrap: wrap; gap: 18px;
  padding: 20px;
}
.secteurs .card { flex: 1 1 250px; }
/* Hubs produits.html / accessoires.html (v0 alpha) : les cartes familles
   vivent directement dans la section .secteurs (plus de .section :
   la marge blanche entre titre+description et le contenu est limitée
   au padding 20px) ; le <p> final passe en pleine largeur. */
.secteurs .acc-family { flex: 1 1 250px; }
.secteurs > p { flex: 1 1 100%; }
/* Pages famille accessoires (v0 alpha) : plus de .wrap dans .secteurs
   (padding gauche/droite en double) — la grille .products prend la
   pleine largeur et ses marges 22px sont neutralisées, le padding
   20px de .secteurs suffit. */
.secteurs > .products { flex: 1 1 100%; margin: 0; }

/* Cartes secteurs/partenaires : image sur fond blanc, contenu sur le
   fond gris-bleu (le fond de la carte devient --bg, la figure blanc) */
.card { background: var(--bg); }
.card figure { background: #fff; }

/* Cartes produits et familles : même logique — image (.card-media,
   déjà blanche) sur blanc, contenu + bouton sur fond gris-bleu */
.product-card { background: var(--bg); }
.acc-family { background: var(--bg); }

/* Marge sous le bloc titre+description : la cadence verticale vient
   désormais de .section { margin: 60px 0 } (v2.13.2) */
.page-head + section.section { padding-top: 0; }

/* Cartes familles des hubs (produits.html, accessoires.html) :
   la carte entière est cliquable, pas seulement le titre */
.acc-family .card-body h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

/* Cartes partenaires : hauteur d'image uniforme (même ratio 4/3 que
   les cartes produits), logo centré et borné par object-fit: contain */
.secteurs.part-list .card figure {
  aspect-ratio: 4 / 3; background: #fff;
  display: flex; align-items: center; justify-content: center;
  padding: 14px;
}
.secteurs.part-list .card figure img {
  width: 100%; height: 100%; object-fit: contain;
}
/* ============================================================
   Pages v2.12 (build/pages.py) : accueil (hero, stats, nouveautés)
   — .hero.hero-cover : hauteur 100svh − header — le min-height
   est sur la SECTION (pas sur .wrap : les paddings du wrap ne
   doivent jamais s'ajouter à la hauteur) ; le section est en
   display:flex et le wrap s'y étire (width:100%, flex column,
   contenu centré) ; image de couverture en background-image CSS
   (dossier assets/image/ — l'URL est relative au fichier CSS :
   ../image/…, percent-encodée) + dégradé navy par-dessus (texte
   lisible à gauche, logo de couverture à droite) ;
   — v0 alpha : le contenu du hero (hors étiquettes) est plafonné à
   600px DANS l'enceinte standard 1160px (le wrap redevient un .wrap
   normal, centré ; seuls les enfants sont limités via
   .hero-cover .wrap > *), aligné à GAUCHE en desktop ; centré en
   tablette/mobile (max-width: 1100px → align-items + text-align
   center). Le wrap n'est plus position:relative : les étiquettes
   .hero-badges (absolute bottom center) s'ancrent à la SECTION hero,
   pas au wrap — elles restent centrées sur l'écran ;
   — .hero-annonce : « Votre partenaire depuis 1993 » — en BLANC
   (v2.13.3 : le rouge accent ne fonctionnait pas sur l'image) ;
   — .hero-hint : accroche sous la barre de recherche (petit
   texte discret) ;
   — .hero-badges : étiquettes en bas du hero, ancres internes vers
   #equipements / #solutions / #services / #accessoires — fond BLANC
   translucide (v2.13.2 : contraste sur l'image de couverture) ;
   — #solutions : vignettes .domains cliquables, TOUTES au même
   format titre + phrase (v2.13.2 : équilibre visuel ; v2.13.3 :
   plus de gras — <b> retirés, le a est en display:grid gap:10px
   pour l'espacement titre/phrase, tuiles à 24.3% = 4 par ligne) ;
   le conteneur est en flex centré (justify-content: center) pour
   que les cartes ne s'alignent pas à gauche quand la largeur
   grandit ;
   — .stats : chiffres clés ;
   — .home-new : cartes nouveautés au CODE DU LISTING PRODUITS
   (card-media + badge NEW en haut à droite + card-body, v2.13.2) ;
   flex: 1 1 0 = les 5 produits tiennent sur une même ligne en
   desktop ; v2.13.3 : .home-new annule le padding gauche/droit
   hérité de .secteurs (padding: 20px 0 — haut/bas conservés) et
   .home-new .card p annule le margin 0 18px de .card p (l'étiquette
   famille revient alignée sur le titre ; le listing product-card
   n'est pas concerné — il n'a pas la classe .card) ;
   — .cta-row : rangée de boutons (présentation, CTA catalogue).
   ============================================================ */
.hero.hero-cover {
  position: relative; overflow: hidden;
  color: #fff; padding: 0;
  background-color: var(--navy);
  background-image:
    linear-gradient(92deg, rgba(6, 16, 34, .94) 0%, rgba(6, 16, 34, .58) 46%, rgba(6, 16, 34, .04) 100%),
    url("../image/1ere_de_couverture-vf.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  min-height: calc(100svh - var(--head-h));
}
/* v0 alpha : le wrap redevient l'enceinte standard (1160px centrée,
   comme tous les .wrap) et le CONTENU seul est plafonné à 600px,
   aligné à gauche dans cette enceinte. Toujours pas de
   position:relative ici : les .hero-badges (absolute) s'ancrent à la
   section hero pour rester centrées sur tout l'écran. */
.hero-cover .wrap {
  max-width: var(--wrap-max); margin: 0 auto; width: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 40px; padding-bottom: 88px;
}
.hero-cover .wrap > * { max-width: 600px; }
.hero-annonce {
  margin: 0 0 12px; font-size: .88rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: #fff;
}
.hero-hint { margin: 8px 0 0; font-size: .8rem; color: #b9c6dd; max-width: 46rem; }
.hero-badges { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); }
.hero-badges a {
  border: 1px solid rgba(13, 33, 64, .15); border-radius: 999px; padding: 5px 14px;
  font-size: .85rem; color: var(--navy); text-decoration: none;
  background: rgba(255, 255, 255, .9);
  transition: background .16s, border-color .16s, color .16s;
}
.hero-badges a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
/* v0 alpha : hero centré en tablette et mobile (desktop = aligné à
   gauche dans l'enceinte 1160px, contenu plafonné à 600px) */
@media (max-width: 1100px) {
  .hero-cover .wrap { text-align: center; align-items: center; }
  .hero-cover .wrap > .search-box { width: 100%; }
}
@media (max-width: 700px) {
  .hero-cover .wrap { padding-top: 34px; padding-bottom: 104px; }
  /* v2.14 : sur mobile, les étiquettes restent ancrées EN BAS de l'écran
     (section hero), centrées, avec une marge basse — comme en desktop.
     Le wrap garde un padding-bottom suffisant pour que le contenu ne
     les recouvre jamais. */
  .hero-badges {
    position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
    width: calc(100% - 36px); justify-content: center; margin: 0;
  }
}
/* Domaines d'expertise : vignettes cliquables, contenu centré.
   v2.13.2 : flex centré (justify-content: center) — les cartes ne
   s'alignent jamais à gauche, quelle que soit la largeur ; toutes
   au même format (b titre + span phrase). */
.domains {
  display: flex; flex-wrap: wrap; justify-content: center;
}
.domains a { color: inherit; text-decoration: none; display: grid; gap: 10px; }
.domains a:hover { color: var(--accent); }
.domains li { text-align: center; flex: 0 1 24.3%; }
.dom-more { font-weight: 400; }
.dom-more b { display: block; font-size: .98rem; }
.dom-more span { font-size: .85rem; color: var(--muted); }

/* Chiffres clés */
.stats {
  list-style: none; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px; padding: 0; margin: 26px 0 0;
}
.stats li {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 12px 14px; text-align: center;
}
.stats b { display: block; font-size: 1.9rem; line-height: 1.05; color: var(--navy); }
.stats span { font-size: .85rem; color: var(--muted); }

/* Rangées de boutons (présentation + CTA catalogue) */
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 0; }

/* Cartes nouveautés : code du listing produits (card-media + badge
   NEW en haut à droite + card-body) ; flex: 1 1 0 = une seule
   ligne en desktop (les 5 produits alignés).
   v2.13.3 : padding gauche/droit annulé (hérité de .secteurs — le
   haut/bas reste) ; l'étiquette famille retrouve margin: 0 (la
   règle .card p { margin: 0 18px } la décalait par rapport au
   titre une fois repliée). */
.home-new { padding: 20px 0; }
.home-new .card {
  flex: 1 1 0; min-width: 150px;
  text-decoration: none;
  transition: box-shadow .16s, transform .16s;
}
.home-new .card p { margin: 0; }
.home-new .card:hover { box-shadow: 0 6px 18px rgba(13, 33, 64, .12); transform: translateY(-2px); }

/* v2.14.1 : retours utilisateur mobile.
   ⚠️ Ordre source : ce media query doit rester APRÈS la règle de base
   `.domains li { flex: 0 1 24.3% }` ci-dessus — à spécificité égale,
   c'est le DERNIER qui gagne ; écrit avant, il ne s'appliquait jamais.
   — cartes « Nos solutions pour vos environnements critiques » :
     1 par ligne, PLEINE LARGEUR ;
   — section Alphasud : les logos (colonne .side) empilés, CENTRÉS,
     avec une marge haute (ils suivaient le texte sans respiration). */
@media (max-width: 640px) {
  .domains li { flex: 1 1 100%; }
  .grid-2 .side { grid-template-columns: 1fr; justify-items: center; margin-top: 22px; }
  .grid-2 .side .pic { margin: 0; }
}

/* ============================================================
   Pages produits v2.6.2 (build/produits.py) : accessoires associés
   collés au footer. Retour utilisateur 2026-11-09 : le margin-bottom
   60px de .section et le padding-bottom 64px du v2.6.1 laissaient une
   bande entre la section et le footer.
   v2.6.2.1 : le p final (.acc-related-more) garde son margin-bottom
   de la règle p de base (.5em) — avec le padding-bottom 0 de la
   section, il sortait SOUS la bande (trait blanc). margin 10px 0 0
   sur le p, l'air de respiration vient du padding (interne à la
   bande).
   ============================================================ */
.section.acc-related { margin-bottom: 0; padding-bottom: 0; }
.acc-related .acc-related-more { margin: 10px 0 0; padding: 0 0 30px; }

/* ==================== Compat accessoires v0.4 (build/compat.py) : items nom + réf + famille ==================== */
.doc-drawer .drawer-acc-list a { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; font-weight: 600; color: var(--ink); }
.doc-drawer .drawer-acc-list a:hover, .doc-drawer .drawer-acc-list a:focus { border-color: var(--accent); color: var(--accent); }
.doc-drawer .drawer-acc-list .acc-nom { font-size: 0.93rem; line-height: 1.25; }
.doc-drawer .drawer-acc-list .acc-ref { font-size: 0.78rem; font-weight: 500; color: var(--muted, #5b6472); }
.doc-drawer .drawer-note { margin: 0 0 14px; }
.doc-drawer .drawer-contact { display: block; width: 100%; margin-top: 4px;
  text-align: center; text-decoration: none; }
.doc-drawer .drawer-contact:hover, .doc-drawer .drawer-contact:focus { text-decoration: none; }

/* ==================== Prix cartes produits v0.5 (build/sheet-update-v05.py) ==================== */
.product-card .card-price { margin: 4px 0 0; font-weight: 700; font-size: 0.95rem; color: var(--ink, #1d2733); letter-spacing: 0.01em; }
.product-card .card-price .price-vat { font-weight: 500; font-size: 0.78em; color: var(--muted, #5b6472); margin-left: 2px; }

/* ==================== Bouton « Accessoires » des cartes v0.8 (build/sheet-update-v05.py) ==================== */
/* Second bouton (doc-btn acc-btn) : variante discrète sous « Documentation technique ». */
.product-card:hover .doc-btn.acc-btn,
.product-card .doc-btn.acc-btn {
  background: var(--bg, #f4f6f9);
  border-color: var(--line, #d8dde5);
  color: var(--navy, #1d2733);
}
.product-card .doc-btn.acc-btn {
  background: var(--bg, #f4f6f9);
  border-color: var(--line, #d8dde5);
  color: var(--navy, #1d2733);
}
.product-card .doc-btn.acc-btn:hover,
.product-card .doc-btn.acc-btn:focus {
  background: var(--navy, #1d2733);
  border-color: var(--navy, #1d2733);
  color: #fff;
}

/* ==================== Espacement liste accessoires drawer v0.9 (build/sheet-update-v05.py) ==================== */
/* Les items du drawer (Réf. ERP compatibles) se suivaient sans espace ;
   display grid + gap pour un rythme régulier, reprise sur repère nav. */
.doc-drawer .drawer-acc-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 8px;
}

/* ==================== Cartes produits façon acc-card + lien doc drawer v0.10 (build/sheet-update-v05.py) ==================== */
/* Harmonisation visuelle des cartes produits (hors acc-cards) avec les
   cartes accessoires : padding aéré du corps, bouton aligné. */
.product-card:not(.acc-card) .card-body { padding: 14px 16px 6px; }
.product-card:not(.acc-card) .doc-btn { margin: 0 16px 16px; }
/* Lien « Consulter la documentation technique » dans le drawer. */
.doc-drawer .drawer-doc { margin: 0 0 10px; }
.doc-drawer .drawer-doc.is-disabled,
.doc-drawer .drawer-doc.is-disabled:hover,
.doc-drawer .drawer-doc.is-disabled:focus {
  background: #e6eaf1;
  color: #97a3b5;
  cursor: default;
}

/* ==================== Structure drawer v0.11 (build/drawer-structure-v11.py) ==================== */
/* Le drawer se structure en 2 sections h4 : « Documentation technique » puis
   « Accessoires compatibles » ; l'encart produit suit directement le titre. */
.doc-drawer .drawer-section-title {
  margin: 22px 0 10px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy, #1d2733);
  letter-spacing: .01em;
}
/* Lien « Consulter la documentation technique » : rouge, centré, non souligné. */
.doc-drawer .drawer-doc {
  display: block; width: 100%;
  background: var(--accent, #e30613); color: #fff;
  border: 0; border-radius: 9px; padding: 13px;
  font-size: 1rem; font-weight: 700; font-family: inherit;
  text-align: center; text-decoration: none;
  cursor: pointer; transition: background .18s;
}
.doc-drawer .drawer-doc:hover,
.doc-drawer .drawer-doc:focus { background: #c00510; text-decoration: none; }
/* État grisé (pas de fiche pour le produit) : neutre, sans pointer. */
.doc-drawer .drawer-doc.is-disabled,
.doc-drawer .drawer-doc.is-disabled:hover,
.doc-drawer .drawer-doc.is-disabled:focus {
  background: #e6eaf1; color: #97a3b5;
  cursor: default; text-decoration: none;
}

/* ==================== Fiches produit & accessoires v0.12 (build/site-fiches-v012.py) ==================== */
/* Une page unique par carte : mise en page 2 colonnes, sections h4
   (Documentation technique / Caractéristiques / Compatibilité). */
a.doc-btn { display: block; text-decoration: none; text-align: center; }
.fiche-breadcrumb { font-size: .85rem; color: var(--muted); margin: 18px 0 4px; }
.fiche-breadcrumb a { color: var(--muted); text-decoration: none; }
.fiche-breadcrumb a:hover { color: var(--accent); text-decoration: underline; }
.fiche-grid { display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: 34px; align-items: start; padding: 14px 0 8px; }
.fiche-media {
  margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 14px;
  display: flex; align-items: center; justify-content: center; padding: 26px; min-height: 240px;
}
.fiche-media img { max-width: 100%; max-height: 320px; object-fit: contain; }
.fiche-kicker {
  margin: 0 0 6px; font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); font-weight: 700;
}
.fiche-title { font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.2; margin: 0 0 10px; }
.fiche-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; color: var(--ink); font-size: .95rem; }
.fiche-meta span { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-weight: 600; }
.fiche-meta .fiche-tag { background: var(--navy); border-color: var(--navy); color: #fff; }
.fiche-price { font-size: 1.35rem; font-weight: 700; color: var(--ink); margin: 0 0 18px; }
.fiche-price .price-vat { font-size: .7em; font-weight: 500; color: var(--muted); }
.fiche-price-onrequest { font-size: 1rem; font-weight: 600; color: var(--muted); }
.fiche-section-title {
  margin: 22px 0 10px; font-size: 1.02rem; font-weight: 700;
  color: var(--navy); letter-spacing: .01em;
}
.fiche-doc {
  display: block; width: 100%;
  background: var(--accent, #e30613); color: #fff;
  border: 0; border-radius: 9px; padding: 13px;
  font-size: 1rem; font-weight: 700; font-family: inherit;
  text-align: center; text-decoration: none;
  cursor: pointer; transition: background .18s;
}
.fiche-doc:hover, .fiche-doc:focus { background: #c00510; text-decoration: none; }
.fiche-doc.is-disabled,
.fiche-doc.is-disabled:hover,
.fiche-doc.is-disabled:focus {
  background: #e6eaf1; color: #97a3b5; cursor: default; text-decoration: none;
}
.fiche-doc-missing { font-size: .85rem; color: var(--muted); margin: 8px 0 0; }
.fiche-note { font-size: .88rem; color: var(--muted); margin: 14px 0 10px; }
.fiche-contact { display: block; width: 100%; text-align: center; text-decoration: none; }
.fiche-contact:hover, .fiche-contact:focus { text-decoration: none; }
.fiche-specs {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px;
}
.fiche-specs li { background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; font-size: .92rem; }
.fiche-compat {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px;
}
.fiche-compat a {
  display: block; background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font-weight: 600; color: var(--ink); text-decoration: none; font-size: .93rem;
}
.fiche-compat a:hover, .fiche-compat a:focus { border-color: var(--accent); color: var(--accent); }
@media (max-width: 720px) {
  .fiche-grid { grid-template-columns: 1fr; gap: 18px; }
  .fiche-media { min-height: 180px; }
}

/* ==================== UX fiches v0.13 (build/ux-fiche-v013.py) ==================== */
/* Retours client : visuel sur fond blanc, marge basse avant le footer,
   documentation en largeur auto (entre Caractéristiques et Accessoires),
   lien « Voir tous les accessoires », prix € sur cartes et fiches. */
.fiche { padding-bottom: 54px; }
.fiche-media { background: #fff; }
.fiche-doc,
.fiche-doc.is-disabled { display: inline-block; width: auto; padding: 12px 24px; }
.fiche-all-acc {
  display: inline-block; margin: 2px 0 12px; font-weight: 700;
  color: var(--accent); text-decoration: none; font-size: .95rem;
}
.fiche-all-acc:hover, .fiche-all-acc:focus { text-decoration: underline; }
.fiche-note { margin: 30px 0 10px; }

/* ==================== Fiches v0.14 (build/site) ==================== */
/* Contact remonte dans la colonne info (droite de l'image) : note resserree. */
.fiche-info .fiche-note { margin: 18px 0 10px; font-size: .85rem; }
.fiche-info .fiche-contact { width: 100%; }

/* ==================== Fiches v0.15 (build/site) ==================== */
/* Produits sans accessoires lies : phrase incitative (parallele doc manquante)
   + lien « Voir tous les accessoires » a l'identique du .doc-btn des cartes. */
.fiche-acc-missing { font-size: .85rem; color: var(--muted); margin: 8px 0 12px; }
.doc-btn.fiche-all-acc {
  display: block; width: auto; max-width: 420px;
  margin: 0 0 20px; padding: 10px 12px;
  text-align: center; text-decoration: none;
}
.doc-btn.fiche-all-acc:hover,
.doc-btn.fiche-all-acc:focus {
  background: var(--accent); border-color: var(--accent); color: #fff;
}

/* ---- Fiches v0.16 : texte hors liste ---- */
.fiche-desc {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: var(--ink, #1d2733);
  max-width: 72ch;
  line-height: 1.55;
}

/* ==================== Fiches v0.17 (build/site) ==================== */
/* Documentation technique moins dominante : reprend le style des vignettes
   accessoires (.fiche-compat a) avec le meme comportement au survol. */
.btn-accent.fiche-doc,
a.btn-accent.fiche-doc {
  display: inline-block; width: auto;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.93rem; font-weight: 600;
  color: var(--ink);
  text-align: center; text-decoration: none;
}
.btn-accent.fiche-doc:hover,
.btn-accent.fiche-doc:focus,
a.btn-accent.fiche-doc:hover,
a.btn-accent.fiche-doc:focus {
  background: var(--bg);
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}
.btn-accent.fiche-doc.is-disabled,
a.btn-accent.fiche-doc.is-disabled,
.btn-accent.fiche-doc.is-disabled:hover,
.btn-accent.fiche-doc.is-disabled:focus {
  background: var(--bg);
  border: 1px solid var(--line);
  color: #97a3b5;
  cursor: default; text-decoration: none;
}

/* ==================== Fiches v0.19 (build/site) ==================== */
/* Fiches produit : tuiles « pages accessoires » de la page famille,
   dans la section Accessoires compatibles — mêmes tuiles .acc-related-card
   que les pages produits (fond blanc, hover accent + ombre). */
.fiche-acc-related {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
  margin: 16px 0 6px;
}

/* ==================== Fiches v0.20 (build/site) ==================== */
/* Lien « → Voir tous les accessoires » : reprend le style .acc-related-more
   des pages familles ; simple ajustement de marge dans la section fiche. */
.fiche .acc-related-more { margin: 12px 0 4px; }

/* ==================== Fiches v0.21 (build/site) ==================== */
/* Sous-titre « Familles d'accessoires » dans la section Accessoires
   compatibles : distingue les familles de la liste des accessoires liés. */
.fiche-sub-title {
  margin: 22px 0 4px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .01em;
}

/* ==================== Fiches v0.22 (build/site) ==================== */
/* Icône document dans le bouton « Consulter la documentation technique » :
   inline à gauche du texte, à l'échelle du texte, suit la couleur du bouton
   (encre normalement, rouge au survol, gris si désactivé). */
.fiche-doc-icon {
  vertical-align: -2px;
  margin-right: 7px;
}

/* ==================== Fiches v0.23 (build/site) ==================== */
/* RESTAURATION du bloc v0.18 perdu : le append d'époque avait été interrompu
   par l'échec de la commande de patch (SyntaxError fiches.py) et la règle
   `.fiche-meta .fiche-cat` n'a jamais été livrée — le HTML portait bien la
   classe depuis la v0.18 mais le chip restait gris. */
.fiche-meta .fiche-cat {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* ==================== Cartes v0.25 (build/site) ==================== */
/* Pastilles catégorie/sous-catégorie longues (ex. « Appareils d'alarme
   personnels avec communication intégrée ») : le texte revient à la ligne
   au lieu de déborder des cartes produits. */
.prod-cat,
.prod-sub {
  white-space: normal;
  line-height: 1.35;
  overflow-wrap: break-word;
}
