/*!
 * RaccordCuve — feuille de style unique, direction « atelier de plomberie ».
 * Organisation : @layer reset → tokens → base → layout → components → utilities.
 * Une couche plus tardive l'emporte toujours, quelle que soit la spécificité : une règle de composant ne peut
 * plus être écrasée par accident par une règle de mise en page écrite plus loin (cause du bug des marges mobiles).
 * Règles : mobile d'abord ; 3 points d'arrêt (600 / 900 / 1200 px) ; espacements multiples de 4 px ;
 * tailles fluides clamp() ; orange réservé aux achats ; IBM Plex Mono uniquement pour les cotes.
 */
@layer reset, tokens, base, layout, components, utilities;

/* ============================================================== polices (hébergées sur notre serveur) */
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-var.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-italic-var.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

/* ============================================================== reset */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
  ul[class], ol[class] { list-style: none; padding: 0; }
  img, svg, picture { display: block; max-width: 100%; }
  img { height: auto; }
  input, button, select, textarea { font: inherit; color: inherit; }
  button { cursor: pointer; }
  table { border-collapse: collapse; }
  [hidden] { display: none !important; }
}

/* ============================================================== tokens */
@layer tokens {
  :root {
    color-scheme: light;
    /* couleurs : papier, kraft, encre bleu nuit ; orange uniquement pour acheter */
    --papier: #f4efe6;
    --kraft: #e9e1d2;
    --kraft-fonce: #ddd2be;
    --carte: #fbf8f2;
    --fond-photo: #eee7da; /* identique au fond des photos produits retraitées */
    --encre: #14233a;
    --encre-douce: #4a5568;
    --trait: #d5cab6;
    --trait-fort: #b3a68f;
    --acier: #7d8893;
    --lien: #1f4f8a;
    --achat: #b5420a;        /* texte blanc : 5,6:1 */
    --achat-fonce: #8f350b;  /* survol : 7,8:1 */
    --vert: #1e6b3b;
    --vert-fond: #e3eedf;
    --rouge: #a3261f;
    --rouge-fond: #f7e7e3;
    --info-fond: #e4eaf1;
    --sur-encre: #e9e1d2;
    --eau: #cfe0ec;          /* dessins : eau de la cuve */
    --bois: #b98f5e;         /* dessins : palette */

    /* polices */
    --f-titre: "Archivo", "Arial Narrow", system-ui, sans-serif;
    --f-texte: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
    --f-cote: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
    --etroit: 82%;

    /* échelle de texte fluide (360 px → 1200 px) */
    --t-xs: 0.8125rem;
    --t-s: 0.9375rem;
    --t-m: 1.0625rem;
    --t-l: clamp(1.1875rem, 1.1rem + 0.35vw, 1.375rem);
    --t-xl: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
    --t-2xl: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
    --t-3xl: clamp(2.125rem, 1.5rem + 3vw, 3.75rem);

    /* espacements : multiples de 4 px */
    --s-1: 0.25rem;  /* 4 */
    --s-2: 0.5rem;   /* 8 */
    --s-3: 0.75rem;  /* 12 */
    --s-4: 1rem;     /* 16 */
    --s-5: 1.5rem;   /* 24 */
    --s-6: 2rem;     /* 32 */
    --s-7: 3rem;     /* 48 */
    --s-8: 4rem;     /* 64 */
    --s-9: 6rem;     /* 96 */
    --section: clamp(3rem, 2rem + 4vw, 5rem);
    --gouttiere: 1rem;
    --largeur: 75rem;
    --largeur-texte: 42rem;

    --r-1: 3px;
    --r-2: 6px;
    --r-3: 10px;
    --ombre: 0 1px 2px rgb(20 35 58 / 0.06), 0 6px 18px rgb(20 35 58 / 0.08);
    --ombre-forte: 0 12px 40px rgb(20 35 58 / 0.22);
    --entete: 4rem;
    --vite: 160ms;
  }
  @media (min-width: 600px) { :root { --gouttiere: 1.5rem; } }
  @media (min-width: 1200px) { :root { --gouttiere: 2rem; } }
}

/* ============================================================== base */
@layer base {
  html { scroll-behavior: smooth; scroll-padding-top: calc(var(--entete) + var(--s-4)); }
  body {
    background: var(--papier);
    color: var(--encre);
    font-family: var(--f-texte);
    font-size: var(--t-m);
    line-height: 1.6;
    font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
  }
  body.no-scroll { overflow: hidden; }
  h1, h2, h3, h4, .h3 {
    font-family: var(--f-titre);
    font-stretch: var(--etroit);
    font-weight: 760;
    line-height: 1.08;
    letter-spacing: -0.012em;
    text-wrap: balance;
  }
  h1 { font-size: var(--t-3xl); font-weight: 800; }
  h2 { font-size: var(--t-2xl); }
  h3, .h3 { font-size: var(--t-l); line-height: 1.2; }
  h4 { font-size: var(--t-m); }
  p, li { text-wrap: pretty; }
  a { color: var(--lien); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
  a:hover { text-decoration-thickness: 2px; }
  strong, b { font-weight: 650; }
  small { font-size: var(--t-xs); }
  hr { border: 0; border-top: 1px solid var(--trait); margin: var(--s-6) 0; }
  :focus-visible { outline: 3px solid var(--lien); outline-offset: 2px; border-radius: var(--r-1); }
  ::selection { background: var(--encre); color: var(--papier); }
  summary { cursor: pointer; }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
  }
}

/* ============================================================== layout : briques réutilisables */
@layer layout {
  .wrap { width: 100%; max-width: calc(var(--largeur) + 2 * var(--gouttiere)); margin-inline: auto; padding-inline: var(--gouttiere); }
  /* .section ne gère QUE l'espacement vertical (les marges latérales appartiennent à .wrap) */
  .section { padding-block: var(--section) 0; }
  .section:last-child { padding-bottom: var(--section); }
  main > .section:last-child, main > .wrap:last-child > .section:last-child { padding-bottom: var(--section); }
  .band { background: var(--kraft); padding-block: var(--section); margin-top: var(--section); }
  .band + .band { margin-top: 0; }
  .band.section { padding-block: var(--section); }
  .stack > * + * { margin-top: var(--s-4); }
  .prose > * + * { margin-top: var(--s-4); }
  .prose { max-width: var(--largeur-texte); }
  .prose h2 { margin-top: var(--s-7); }
  .prose h3 { margin-top: var(--s-6); }
  .prose ul:not([class]), .prose ol:not([class]) { padding-left: 1.25em; }
  .prose li + li { margin-top: var(--s-2); }
  .grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
  @media (min-width: 900px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); } }
  @media (min-width: 1200px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
  .cluster { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
  .split { display: grid; gap: var(--s-6); align-items: center; }
  @media (min-width: 900px) {
    .split { grid-template-columns: 1fr 1fr; gap: var(--s-8); }
    .split-reverse > :first-child { order: 2; }
  }
  .cards-3 { display: grid; gap: var(--s-5); }
  @media (min-width: 900px) { .cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); } }
}

/* ============================================================== components */
@layer components {
  /* ---------- accès rapide */
  .skip-link { position: absolute; left: var(--s-2); top: -100px; z-index: 100; background: var(--encre); color: var(--papier); padding: var(--s-2) var(--s-4); border-radius: var(--r-2); }
  .skip-link:focus { top: var(--s-2); }

  /* ---------- bandeau d'annonce */
  .announce { background: var(--encre); color: var(--sur-encre); font-size: var(--t-xs); }
  .announce p { padding-block: var(--s-2); text-align: center; }
  .announce a { color: #fff; }

  /* ---------- en-tête : logo · menu (4 entrées) · Ma cuve · panier · bouton menu (mobile) */
  .site-header { position: sticky; top: 0; z-index: 40; background: rgb(244 239 230 / 0.97); border-bottom: 1px solid var(--trait); }
  .header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); min-height: var(--entete); }
  .logo { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--encre); text-decoration: none; font-family: var(--f-titre); font-stretch: 80%; font-weight: 820; font-size: 1.3125rem; letter-spacing: -0.02em; }
  .logo img { width: 32px; height: 32px; }
  .header-tools { order: 1; margin-left: auto; display: flex; align-items: center; gap: var(--s-1); }
  .icone { flex: none; }
  .ma-cuve { display: inline-flex; align-items: center; gap: var(--s-1); min-height: 40px; padding: 0 var(--s-2); border: 1.5px solid var(--trait-fort); border-radius: var(--r-2); color: var(--encre); text-decoration: none; font-size: var(--t-xs); line-height: 1.1; }
  .ma-cuve:hover { border-color: var(--encre); }
  .ma-cuve-label { color: var(--encre-douce); }
  .ma-cuve > .icone { display: none; }
  /* mobile : libellé au-dessus de la valeur, pour tenir sur une seule ligne avec le logo */
  .ma-cuve-txt { display: grid; line-height: 1.05; }
  .ma-cuve-label { font-size: 0.6875rem; }
  @media (min-width: 600px) { .ma-cuve-txt { display: inline; } .ma-cuve-label { font-size: inherit; } }
  .nav-toggle-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav-toggle { width: 44px; justify-content: center; padding: 0; }
  .ma-cuve-val { font-family: var(--f-titre); font-stretch: 80%; font-weight: 760; font-size: var(--t-s); }
  .ma-cuve[data-etat="ok"] { border-color: var(--vert); background: var(--vert-fond); }
  .ma-cuve[data-etat="ok"] .ma-cuve-val { color: var(--vert); }
  .cart-link { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-2); color: var(--encre); }
  .cart-link:hover { background: var(--kraft); }
  .cart-count { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--achat); color: #fff; font-size: 0.75rem; font-weight: 700; line-height: 20px; text-align: center; }
  .cart-count.is-bump { animation: bump 0.35s ease; }
  @keyframes bump { 50% { transform: scale(1.3); } }
  .nav-toggle { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 40px; padding: 0 var(--s-3); border: 1.5px solid var(--encre); border-radius: var(--r-2); background: transparent; font-family: var(--f-titre); font-stretch: var(--etroit); font-weight: 700; font-size: var(--t-s); }
  .burger, .burger::before, .burger::after { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 1px; }
  .burger { position: relative; }
  .burger::before, .burger::after { content: ""; position: absolute; left: 0; }
  .burger::before { top: -5px; }
  .burger::after { top: 5px; }
  .nav-toggle[aria-expanded="true"] { background: var(--encre); color: var(--papier); }
  .nav-toggle[aria-expanded="true"] .burger { background: transparent; }
  .nav-toggle[aria-expanded="true"] .burger::before { top: 0; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .burger::after { top: 0; transform: rotate(-45deg); }
  .site-nav { order: 2; flex-basis: 100%; display: none; }
  .site-nav.is-open { display: block; }
  .site-nav ul { list-style: none; padding: 0; }
  .nav-list { display: grid; padding-block: var(--s-2) var(--s-4); border-top: 1px solid var(--trait); }
  .nav-list > li > a { display: flex; align-items: center; gap: var(--s-1); padding: var(--s-3) var(--s-1); color: var(--encre); text-decoration: none; font-family: var(--f-titre); font-stretch: var(--etroit); font-weight: 720; font-size: var(--t-l); }
  .nav-list > li > a:hover, .nav-list > li > a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
  .chevron { display: none; }
  .sous-menu-titre { display: none; }
  .sous-menu ul { display: grid; gap: var(--s-1); padding-left: var(--s-2); }
  .sous-menu li a { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2); border-radius: var(--r-2); color: var(--encre); text-decoration: none; }
  .sous-menu li a:hover, .sous-menu li a[aria-current] { background: var(--kraft); }
  .sous-menu .repere { width: 2rem; height: 2rem; font-size: 0.9375rem; }
  .sous-menu strong { display: block; font-family: var(--f-titre); font-stretch: var(--etroit); font-weight: 720; line-height: 1.2; }
  .sous-menu small { display: block; color: var(--encre-douce); line-height: 1.3; }
  .sous-menu-tout { display: inline-flex; align-items: center; gap: var(--s-1); margin: var(--s-2) 0 0 var(--s-4); font-weight: 600; font-size: var(--t-s); }
  @media (min-width: 600px) {
    .ma-cuve > .icone { display: block; }
    .nav-toggle-txt { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
    .nav-toggle { width: auto; padding: 0 var(--s-3); }
  }
  @media (min-width: 900px) {
    .nav-toggle { display: none; }
    .site-nav { display: block; order: 1; flex-basis: auto; margin-left: var(--s-5); }
    .header-tools { order: 2; }
    .nav-list { display: flex; gap: var(--s-1); padding: 0; border: 0; }
    .nav-list > li > a { padding: var(--s-2); font-size: var(--t-m); }
    .chevron { display: block; transition: transform var(--vite); }
    .has-sub { position: relative; }
    .sous-menu { position: absolute; top: 100%; left: calc(-1 * var(--s-4)); z-index: 45; width: 22rem; padding: var(--s-3); background: var(--carte); border: 1px solid var(--trait); border-radius: var(--r-2); box-shadow: var(--ombre-forte); visibility: hidden; opacity: 0; transform: translateY(-4px); transition: opacity var(--vite), transform var(--vite), visibility var(--vite); }
    .has-sub:hover .sous-menu, .has-sub:focus-within .sous-menu { visibility: visible; opacity: 1; transform: none; }
    .has-sub:hover .chevron, .has-sub:focus-within .chevron { transform: rotate(180deg); }
    .sous-menu-titre { display: block; padding: var(--s-1) var(--s-2) var(--s-2); font-size: var(--t-xs); color: var(--encre-douce); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
    .sous-menu ul { padding-left: 0; }
    .sous-menu-tout { margin-left: var(--s-2); }
  }

  /* ---------- fil d'Ariane */
  .breadcrumb { padding-top: var(--s-4); font-size: var(--t-xs); color: var(--encre-douce); }
  .breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-2); list-style: none; padding: 0; }
  .breadcrumb li + li::before { content: "/"; margin-right: var(--s-2); color: var(--trait-fort); }
  .breadcrumb a { color: var(--encre-douce); }

  /* ---------- boutons : achat (orange plein), plein (encre), contour */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
    min-height: 48px; padding: var(--s-2) var(--s-5);
    border: 2px solid var(--encre); border-radius: var(--r-2);
    background: transparent; color: var(--encre);
    font-family: var(--f-titre); font-stretch: 88%; font-weight: 700; font-size: var(--t-m); line-height: 1.15;
    text-align: center; text-decoration: none;
    transition: background var(--vite), color var(--vite), border-color var(--vite), transform var(--vite);
  }
  .btn:hover { background: var(--encre); color: var(--papier); text-decoration: none; }
  .btn:active { transform: translateY(1px); }
  .btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
  .btn-primary, .btn-plein { background: var(--encre); color: var(--papier); }
  .btn-primary:hover, .btn-plein:hover { background: #22385a; border-color: #22385a; }
  .btn-ghost, .btn-contour { background: transparent; color: var(--encre); }
  .btn-achat, .btn-add { background: var(--achat); border-color: var(--achat); color: #fff; }
  .btn-achat:hover, .btn-add:hover { background: var(--achat-fonce); border-color: var(--achat-fonce); color: #fff; }
  .btn-petit { min-height: 40px; padding: var(--s-1) var(--s-3); font-size: var(--t-s); }
  .btn-block { width: 100%; }
  .icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1.5px solid var(--trait-fort); border-radius: var(--r-2); background: var(--carte); color: var(--encre); font-size: 1.125rem; line-height: 1; }
  .icon-btn:hover:not(:disabled) { border-color: var(--encre); }
  .icon-btn:disabled { opacity: 0.4; }
  .link-btn { padding: 0; border: 0; background: none; color: var(--lien); text-decoration: underline; font-size: var(--t-s); }

  /* ---------- pastilles filetage */
  .chips { display: flex; flex-wrap: wrap; gap: var(--s-1); }
  .chip {
    display: inline-flex; align-items: center; gap: var(--s-1);
    padding: 1px var(--s-2); border: 1.5px solid var(--encre); border-radius: var(--r-1);
    font-family: var(--f-titre); font-stretch: 78%; font-weight: 720; font-size: var(--t-xs); letter-spacing: 0.02em; line-height: 1.5;
    color: var(--encre); background: var(--carte); white-space: nowrap;
  }
  .chip-thread::before { content: ""; width: 10px; height: 8px; background: currentColor; -webkit-mask: url("../img/filetage.svg") 0 0 / 5px 8px repeat-x; mask: url("../img/filetage.svg") 0 0 / 5px 8px repeat-x; }
  .chip-ok { border-color: var(--vert); color: var(--vert); background: var(--vert-fond); }
  .chip-no { border-color: var(--rouge); color: var(--rouge); background: var(--rouge-fond); }

  /* ---------- cote technique (lignes de cote) : IBM Plex Mono uniquement ici */
  .cote-txt, .mono { font-family: var(--f-cote); font-weight: 500; font-size: 0.92em; letter-spacing: -0.01em; white-space: nowrap; }
  .cote { display: flex; align-items: center; gap: var(--s-2); color: var(--encre-douce); font-family: var(--f-cote); font-weight: 500; font-size: var(--t-xs); }
  .cote::before, .cote::after { content: ""; flex: 1; height: 10px; background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat; }
  .cote::before { border-left: 1px solid currentColor; }
  .cote::after { border-right: 1px solid currentColor; }

  /* ---------- séparateur en profil de filetage */
  .sep-filetage { display: block; height: 12px; color: var(--kraft); background: currentColor; -webkit-mask: url("../img/filetage.svg") 0 100% / 24px 12px repeat-x; mask: url("../img/filetage.svg") 0 100% / 24px 12px repeat-x; }
  .sep-filetage.is-encre { color: var(--encre); }
  .sep-filetage.is-papier { color: var(--papier); }

  /* ---------- repère de plan (numéro de chapitre) */
  .repere {
    display: inline-grid; place-items: center; flex: none;
    width: 2.5rem; height: 2.5rem; border: 2px solid currentColor; border-radius: 50%;
    font-family: var(--f-titre); font-stretch: 75%; font-weight: 800; font-size: 1.125rem; line-height: 1;
  }
  .repere-plein { background: var(--encre); border-color: var(--encre); color: var(--papier); }

  /* ---------- surtitres, intros */
  .eyebrow { font-family: var(--f-titre); font-stretch: 80%; font-weight: 700; font-size: var(--t-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--encre-douce); }
  .lead { font-size: var(--t-l); line-height: 1.5; color: var(--encre); max-width: 40em; }
  .section-intro { max-width: var(--largeur-texte); margin-top: var(--s-3); color: var(--encre-douce); }
  .section > h2 + *, .wrap > h2 + * { margin-top: var(--s-4); }

  /* ---------- carte produit */
  .card { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--carte); border: 1px solid var(--trait); border-radius: var(--r-2); overflow: hidden; transition: box-shadow var(--vite), border-color var(--vite); }
  .card:hover { border-color: var(--trait-fort); box-shadow: var(--ombre); }
  .card-media { display: block; aspect-ratio: 1; background: var(--fond-photo); }
  .card-media img { width: 100%; height: 100%; object-fit: contain; }
  .card-body { display: flex; flex-direction: column; gap: var(--s-2); flex: 1; padding: var(--s-3); }
  @media (min-width: 600px) { .card-body { padding: var(--s-4); } }
  .card-title { font-size: var(--t-m); line-height: 1.2; }
  .card-title a { color: var(--encre); text-decoration: none; }
  .card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
  .card-title a:hover { text-decoration: underline; }
  .card-sub { font-size: var(--t-s); line-height: 1.4; color: var(--encre-douce); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .card-price { margin-top: auto; font-family: var(--f-titre); font-stretch: 85%; font-weight: 780; font-size: var(--t-l); }
  .card-price .from { font-family: var(--f-texte); font-weight: 400; font-size: var(--t-s); color: var(--encre-douce); }
  .card-saving { font-size: var(--t-xs); font-weight: 650; color: var(--vert); }
  .card-meta { font-size: var(--t-xs); color: var(--encre-douce); }
  .card .btn { position: relative; z-index: 2; min-height: 44px; padding-inline: var(--s-3); font-size: var(--t-s); }
  .card .chips { position: relative; z-index: 2; }

  /* ---------- produit mis en avant dans un texte */
  .inline-product { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--s-3); align-items: center; margin-block: var(--s-5); padding: var(--s-3); background: var(--carte); border: 1px solid var(--trait); border-left: 4px solid var(--encre); border-radius: var(--r-2); }
  .inline-product img { width: 72px; height: 72px; object-fit: contain; background: var(--fond-photo); border-radius: var(--r-1); }
  .inline-product > .btn { grid-column: 1 / -1; }
  @media (min-width: 600px) { .inline-product { grid-template-columns: 88px minmax(0, 1fr) auto; } .inline-product img { width: 88px; height: 88px; } .inline-product > .btn { grid-column: auto; } }
  .inline-product p { margin: 0; }
  .inline-product-kicker { font-size: var(--t-xs); font-weight: 650; text-transform: uppercase; letter-spacing: 0.08em; color: var(--encre-douce); }
  .inline-product-title { font-family: var(--f-titre); font-stretch: var(--etroit); font-weight: 720; }
  .inline-product-sub { font-size: var(--t-s); color: var(--encre-douce); }

  /* ---------- tableaux techniques */
  .table-wrap { overflow-x: auto; margin-block: var(--s-5); border: 1px solid var(--trait); border-radius: var(--r-2); background: var(--carte); -webkit-overflow-scrolling: touch; }
  .compare, .specs { width: 100%; font-size: var(--t-s); }
  .compare caption, .specs caption { caption-side: top; padding: var(--s-3) var(--s-4); text-align: left; font-size: var(--t-xs); color: var(--encre-douce); border-bottom: 1px solid var(--trait); }
  .compare th, .compare td, .specs th, .specs td { padding: var(--s-3) var(--s-4); text-align: left; vertical-align: top; border-bottom: 1px solid var(--trait); }
  .compare tr:last-child > *, .specs tr:last-child > * { border-bottom: 0; }
  .compare thead th { background: var(--kraft); font-family: var(--f-titre); font-stretch: 82%; font-weight: 720; font-size: var(--t-xs); letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
  .compare tbody th { font-weight: 650; }
  .compare { min-width: 34rem; }
  .specs th { width: 38%; font-weight: 600; color: var(--encre-douce); }

  /* ---------- FAQ et accordéons */
  .faq h2 { margin-bottom: var(--s-4); }
  .faq details, .accordeon details { border-top: 1px solid var(--trait); }
  .faq details:last-child, .accordeon details:last-child { border-bottom: 1px solid var(--trait); }
  .faq summary, .accordeon summary { list-style: none; display: flex; justify-content: space-between; gap: var(--s-4); padding: var(--s-4) 0; font-family: var(--f-titre); font-stretch: 88%; font-weight: 680; font-size: var(--t-m); line-height: 1.3; }
  .faq summary::-webkit-details-marker, .accordeon summary::-webkit-details-marker { display: none; }
  .faq summary::after, .accordeon summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border: 1.5px solid var(--encre); border-radius: 50%; font-family: var(--f-texte); font-weight: 600; line-height: 1; transition: transform var(--vite); }
  .faq details[open] summary::after, .accordeon details[open] > summary::after { content: "−"; }
  .faq details > p { padding-bottom: var(--s-4); max-width: var(--largeur-texte); color: var(--encre-douce); }

  /* ---------- listes à coches */
  .ticks { display: grid; gap: var(--s-2); }
  .ticks li { position: relative; padding-left: 1.75em; }
  .ticks li::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 1.05em; height: 1.05em; border-radius: 50%; background: var(--vert) url("../img/coche.svg") center / 70% no-repeat; }

  /* ---------- blocs d'information */
  .info-card { padding-top: var(--s-4); border-top: 3px solid var(--encre); }
  .info-card h3 { margin-bottom: var(--s-2); }
  .info-card p { color: var(--encre-douce); }
  .info-card a { display: inline-block; margin-top: var(--s-3); font-weight: 600; }
  .notice { padding: var(--s-3) var(--s-4); border-left: 4px solid var(--encre); background: var(--info-fond); border-radius: 0 var(--r-2) var(--r-2) 0; font-size: var(--t-s); }
  .notice-box { margin-block: var(--s-4); padding: var(--s-4); border-radius: var(--r-2); background: var(--vert-fond); border-left: 4px solid var(--vert); }
  .notice-box[data-tone="info"] { background: var(--info-fond); border-left-color: var(--lien); }
  .answer-box { margin-block: var(--s-6); padding: var(--s-5); background: var(--carte); border: 1px solid var(--trait); border-top: 4px solid var(--encre); border-radius: var(--r-2); }
  .answer-box h2 { margin: 0 0 var(--s-3); font-size: var(--t-xl); }
  .answer-box ul { padding-left: 1.2em; }

  /* ---------- liens ciblés */
  .link-cards { display: grid; gap: 0; border-top: 1px solid var(--trait); }
  @media (min-width: 900px) { .link-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--s-6); } }
  .link-cards a { display: grid; gap: var(--s-1); padding: var(--s-4) var(--s-6) var(--s-4) 0; border-bottom: 1px solid var(--trait); color: var(--encre); text-decoration: none; position: relative; height: 100%; }
  .link-cards a::after { content: "→"; position: absolute; right: var(--s-2); top: var(--s-4); font-weight: 700; transition: transform var(--vite); }
  .link-cards a:hover::after { transform: translateX(4px); }
  .link-cards strong { font-family: var(--f-titre); font-stretch: var(--etroit); font-weight: 720; }
  .link-cards span { font-size: var(--t-s); color: var(--encre-douce); }

  /* ---------- formulaires */
  .field { display: grid; gap: var(--s-1); }
  .field label, .field-inline { font-weight: 600; font-size: var(--t-s); }
  input[type="number"], input[type="text"], input[type="email"], select {
    min-height: 48px; width: 100%; padding: var(--s-2) var(--s-3);
    border: 1.5px solid var(--trait-fort); border-radius: var(--r-2); background: var(--carte); color: var(--encre);
  }
  input:focus-visible, select:focus-visible { border-color: var(--encre); }
  .field-inline { display: inline-flex; align-items: center; gap: var(--s-2); }
  .field-inline select { width: auto; min-height: 40px; }
  .check { display: inline-flex; align-items: flex-start; gap: var(--s-2); font-size: var(--t-s); }
  .check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--encre); }
  .check-block { display: block; position: relative; padding-left: 30px; }
  .check-block input { position: absolute; left: 0; top: 2px; margin: 0; }
  .form-msg { padding: var(--s-3); border-radius: var(--r-2); background: var(--rouge-fond); color: var(--rouge); font-size: var(--t-s); }
  .form-msg[data-tone="info"] { background: var(--info-fond); color: var(--encre); }

  /* ---------- photos libres et crédits */
  .photo { position: relative; margin: 0; }
  .photo img { width: 100%; border-radius: var(--r-2); }
  .credit { margin-top: var(--s-1); font-size: 0.75rem; color: var(--encre-douce); }
  .credit a { color: inherit; }

  /* ---------- dessins faits main (SVG inline, couleurs par classe) */
  .dessin { width: 100%; height: auto; }
  .d-tuyau-gris { stroke: #8b949c; }
  .d-eau { fill: var(--eau); }
  .d-cuve { fill: rgb(255 255 255 / 0.42); stroke: #bfb49c; }
  .d-bouchon { fill: var(--encre-douce); stroke: var(--encre); }
  .d-cage { stroke: #98a1a9; }
  .d-noeud { fill: #6f7981; }
  .d-palette { fill: var(--bois); }
  .d-vanne { fill: #2c3a4f; }
  .d-filets { stroke: #8b949c; }
  .d-robinet { fill: #3d5675; }
  .d-tuyau-vert { stroke: #4e7d46; }
  .d-sol { stroke: var(--trait-fort); }
  .d-piece { fill: #dcd3c2; }
  .d-trait { stroke: var(--encre); }
  .d-outil { fill: var(--acier); }
  .d-cote { stroke: var(--encre); }
  .d-cote-txt { fill: var(--encre); font-family: var(--f-cote); font-weight: 500; font-size: 15px; }
  .d-crete circle { fill: var(--encre); }
  .d-crete text { fill: #fff; font-family: var(--f-titre); font-weight: 800; font-size: 11px; }
  .d-regle { fill: #efe3c4; stroke: var(--trait-fort); }
  .d-graduation { stroke: var(--encre); }
  .d-zone { fill: rgb(31 79 138 / 0.45); }
  .d-legende { fill: var(--encre-douce); font-family: var(--f-texte); font-size: 14px; }
  /* schémas des guides */
  .schema-guide { margin-block: var(--s-6); padding: var(--s-4); background: var(--carte); border: 1px solid var(--trait); border-radius: var(--r-3); }
  .schema-guide svg { display: block; width: 100%; height: auto; }
  .schema-guide figcaption { margin-top: var(--s-3); font-size: var(--t-s); color: var(--encre-douce); }
  .schema-defile { overflow-x: auto; overscroll-behavior-x: contain; }
  @media (max-width: 599px) { .schema-defile > .dessin-guide { min-width: 540px; } }
  .schema-duo { display: grid; gap: var(--s-4); }
  @media (min-width: 600px) { .schema-duo:has(> svg + svg) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  .schema-duo > svg:only-child { max-width: 26rem; margin-inline: auto; }
  .d-filet-cercle { stroke: #8b949c; stroke-dasharray: 6 5; }
  .d-trou { fill: var(--fond-photo); }
  .d-titre-schema { fill: var(--encre); font-family: var(--f-titre); font-weight: 750; font-size: 16px; }
  .d-joint { fill: #111; stroke: #c9d1d9; stroke-width: 1.5; }
  .d-fleche { stroke: var(--encre); }
  .d-fleche-bout { fill: var(--encre); }
  .d-sep { stroke: var(--trait-fort); stroke-dasharray: 4 4; }
  .d-ptfe { fill: rgb(255 255 255 / 0.72); stroke: #b9c2ca; stroke-width: 1.5; }
  .d-ptfe-tour { stroke: #c9d1d9; }
  .d-niveau { stroke: #1f4f8a; stroke-dasharray: 8 6; }
  .d-fond-texte { paint-order: stroke; stroke: var(--carte); stroke-width: 6px; }
  .d-raccord-jaune { fill: #e8b400; stroke: #8a6a00; stroke-width: 1.5; }
  .d-flux-bleu { stroke: #1f4f8a; }
  .d-mur { fill: #d8cdb8; }
  .d-descente { fill: #a7afb6; }
  .d-collecteur { fill: #6f7981; }
  .d-filtre { stroke: var(--encre); stroke-dasharray: 3 3; }
  .d-housse { fill: #2f5a3a; }
  .d-housse-pli { stroke: #24472d; }
  .d-algue { fill: #5f8f3a; opacity: 0.85; }
  .d-soleil { fill: #e8b400; }
  .d-rayon { stroke: #e8b400; opacity: 0.75; }
  /* points cliquables de la cuve */
  .point { cursor: pointer; }
  .point-halo { fill: rgb(20 35 58 / 0.18); transform-box: fill-box; transform-origin: center; animation: pouls 2.4s ease-in-out infinite; }
  .point-fond { fill: var(--encre); stroke: #fff; stroke-width: 3; transition: fill var(--vite); }
  .point-num { fill: #fff; font-family: var(--f-titre); font-stretch: 80%; font-weight: 800; font-size: 20px; pointer-events: none; }
  .point:hover .point-fond, .point:focus-visible .point-fond { fill: var(--lien); }
  .point:hover .point-halo, .point:focus-visible .point-halo { fill: rgb(31 79 138 / 0.3); animation: none; transform: scale(1.2); }
  @keyframes pouls { 50% { transform: scale(1.18); opacity: 0.55; } }

  /* ---------- accueil : héros */
  .hero { position: relative; background: var(--kraft); padding-block: var(--s-6) var(--s-8); }
  .hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 12px; background: var(--papier); -webkit-mask: url("../img/filetage.svg") 0 100% / 24px 12px repeat-x; mask: url("../img/filetage.svg") 0 100% / 24px 12px repeat-x; }
  .hero-grille { display: grid; gap: var(--s-6); align-items: center; }
  @media (min-width: 900px) { .hero-grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-7); } .hero { padding-block: var(--s-7) var(--s-8); } }
  .hero-texte { min-width: 0; }
  .hero-texte > * + * { margin-top: var(--s-4); }
  .hero-texte .btn { margin-top: var(--s-2); }
  .btn-grand { min-height: 56px; padding-inline: var(--s-6); font-size: var(--t-l); }
  .hero-preuves { display: grid; gap: var(--s-2); padding-top: var(--s-2); font-size: var(--t-s); color: var(--encre-douce); }
  .hero-preuves li { display: flex; align-items: center; gap: var(--s-2); }
  .hero-preuves .icone { color: var(--encre); }
  .hero-dessin { min-width: 0; margin: 0; }
  .dessin-cuve { width: 100%; max-width: 34rem; height: auto; margin-inline: auto; }
  .hero-dessin figcaption { margin-top: var(--s-2); font-size: var(--t-xs); color: var(--encre-douce); text-align: center; }

  /* ---------- outil « Trouver mon raccord » en 2 étapes (accueil + /trouver-mon-raccord/) */
  .outil-bloc { display: grid; gap: var(--s-5); margin-top: var(--s-5); }
  .outil-page .outil-bloc { margin-top: 0; }
  .outil { display: grid; gap: var(--s-4); }
  @media (min-width: 900px) { .outil { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-5); } .outil-actions { grid-column: 1 / -1; } }
  .outil-etape { min-width: 0; margin: 0; padding: var(--s-4); background: var(--carte); border: 1px solid var(--trait); border-radius: var(--r-3); }
  @media (min-width: 600px) { .outil-etape { padding: var(--s-5); } }
  .outil-etape legend { float: left; width: 100%; display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-4); padding: 0; font-family: var(--f-titre); font-stretch: var(--etroit); font-weight: 720; font-size: var(--t-l); line-height: 1.2; }
  .outil-etape legend + * { clear: both; }
  .outil-etape-corps { display: grid; gap: var(--s-4); }
  .outil-dessin { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: var(--s-3); align-items: center; margin: 0; font-size: var(--t-xs); color: var(--encre-douce); }
  .outil-choix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
  .pastille { position: relative; display: flex; flex-direction: column; gap: var(--s-1); min-width: 0; padding: var(--s-3) var(--s-6) var(--s-3) var(--s-3); background: var(--papier); border: 2px solid var(--trait-fort); border-radius: var(--r-2); cursor: pointer; transition: border-color var(--vite), background var(--vite); }
  .pastille input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
  .pastille::after { content: ""; position: absolute; top: var(--s-2); right: var(--s-2); width: 20px; height: 20px; border: 2px solid var(--trait-fort); border-radius: 50%; background: var(--carte); }
  .pastille:hover { border-color: var(--encre); }
  .pastille:has(input:checked) { background: var(--carte); border-color: var(--encre); box-shadow: inset 0 0 0 1px var(--encre); }
  .pastille:has(input:checked)::after { border-color: var(--encre); background: var(--encre) url("../img/coche.svg") center / 70% no-repeat; }
  .pastille:has(input:focus-visible) { outline: 3px solid var(--lien); outline-offset: 2px; }
  .pastille-cote { font-family: var(--f-cote); font-weight: 500; font-size: var(--t-m); line-height: 1.2; }
  @media (min-width: 600px) { .pastille-cote { font-size: var(--t-l); } }
  .pastille-txt { font-size: var(--t-s); line-height: 1.3; color: var(--encre-douce); }
  .outil-choix-dessins .pastille { padding-right: var(--s-3); }
  .outil-choix-dessins .dessin-regle { max-width: 15rem; margin-bottom: var(--s-1); }
  .outil-choix-dessins .d-legende { display: none; }
  .outil-actions { font-size: var(--t-s); }
  .outil-raccourci { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); padding-block: var(--s-3); border-block: 1px dashed var(--trait-fort); font-size: var(--t-s); }
  .outil-raccourci > p:first-child { font-weight: 650; }
  .outil-raccourci .cluster { gap: var(--s-2); }
  .resultat-attente { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-4); border: 1px dashed var(--trait-fort); border-radius: var(--r-2); font-size: var(--t-s); color: var(--encre-douce); }
  .resultat { display: none; padding: var(--s-4); background: var(--carte); border: 1px solid var(--trait); border-top: 4px solid var(--vert); border-radius: var(--r-2); }
  @media (min-width: 600px) { .resultat { padding: var(--s-5); } }
  .resultat:focus { outline: none; }
  .resultat > * + * { margin-top: var(--s-3); }
  .resultat-kicker { display: flex; align-items: center; gap: var(--s-2); color: var(--vert); font-family: var(--f-titre); font-stretch: 80%; font-weight: 760; font-size: var(--t-xs); letter-spacing: 0.1em; text-transform: uppercase; }
  .resultat[data-resultat="FIN"], .resultat[data-resultat="INCONNU"] { border-top-color: var(--lien); }
  .resultat[data-resultat="FIN"] .resultat-kicker, .resultat[data-resultat="INCONNU"] .resultat-kicker { color: var(--lien); }
  .resultat-titre { font-size: var(--t-xl); }
  .resultat-texte { max-width: var(--largeur-texte); color: var(--encre-douce); }
  .resultat .grid-resultat { margin-top: var(--s-4); }
  .resultat-liens { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); padding-top: var(--s-2); font-weight: 600; }
  .resultat-liens a:not(.btn) { display: inline-flex; align-items: center; gap: var(--s-1); }
  /* affichage sans JavaScript : pastilles cochées (:has) ou raccourci (:target) */
  .outil-bloc:has([name="diametre"]:checked):has([name="pas"]:checked) .resultat:target { display: none; }
  .resultat:target,
  .outil-bloc:has([name="diametre"][value="60"]:checked):has([name="pas"][value="gros"]:checked) .resultat[data-resultat="S60x6"],
  .outil-bloc:has([name="diametre"][value="100"]:checked):has([name="pas"][value="gros"]:checked) .resultat[data-resultat="S100x8"],
  .outil-bloc:has([name="diametre"][value="60"]:checked):has([name="pas"][value="fin"]:checked) .resultat[data-resultat="FIN"],
  .outil-bloc:has([name="diametre"][value="100"]:checked):has([name="pas"][value="fin"]:checked) .resultat[data-resultat="INCONNU"] { display: block; }
  .outil-bloc:has([name="diametre"]:checked):has([name="pas"]:checked) .resultat-attente,
  .outil-bloc:has(.resultat:target) .resultat-attente { display: none; }

  /* ---------- accueil : les 5 chapitres reliés par un tuyau */
  .chapitres { position: relative; display: grid; gap: var(--s-7); margin-top: var(--s-6); }
  .chapitres::before { content: ""; position: absolute; left: calc(1.5rem - 4px); top: 1.5rem; bottom: 1.5rem; width: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--acier) 0 2px, #aab3bb 2px 5px, var(--acier) 5px); }
  .ch { position: relative; display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: var(--s-4); }
  .ch-repere { position: relative; z-index: 1; grid-row: span 2; width: 3rem; height: 3rem; font-size: 1.25rem; box-shadow: 0 0 0 6px var(--papier); }
  .ch-texte { min-width: 0; }
  .ch-texte > * + * { margin-top: var(--s-2); }
  .ch-titre { font-size: var(--t-xl); }
  .ch-titre a { color: var(--encre); text-decoration: none; }
  .ch-titre a:hover { text-decoration: underline; }
  .ch-accroche { max-width: 36em; color: var(--encre-douce); }
  .ch-erreur { display: flex; align-items: flex-start; gap: var(--s-2); font-size: var(--t-s); }
  .ch-erreur .icone { margin-top: 3px; color: var(--rouge); }
  .ch-erreur-kicker { font-weight: 650; color: var(--rouge); }
  .ch-lien { display: inline-flex; align-items: center; gap: var(--s-1); font-weight: 650; }
  .ch-vignettes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); min-width: 0; }
  .ch-vignettes a { display: grid; gap: var(--s-1); color: var(--encre); text-decoration: none; font-size: var(--t-xs); line-height: 1.25; }
  .ch-vignettes img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--fond-photo); border: 1px solid var(--trait); border-radius: var(--r-2); }
  .ch-vignettes a:hover span { text-decoration: underline; }
  @media (min-width: 900px) {
    .ch { grid-template-columns: 3rem minmax(0, 1fr) minmax(0, 27rem); gap: var(--s-6); align-items: start; }
    .ch-repere { grid-row: auto; }
    .ch-vignettes { gap: var(--s-3); }
  }

  /* ---------- accueil : packs */
  .packs-grille { display: grid; gap: var(--s-6); }
  @media (min-width: 900px) { .packs-grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: center; gap: var(--s-8); } }
  .packs-texte { min-width: 0; }
  .packs-texte > * + * { margin-top: var(--s-4); }
  .packs-texte a { display: inline-flex; align-items: center; gap: var(--s-1); font-weight: 650; }
  .packs-cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* ---------- service photo (une vraie personne, pas de fausse photo) */
  .service-carte { display: grid; gap: var(--s-5); padding: var(--s-5); background: var(--carte); border: 1px solid var(--trait); border-radius: var(--r-3); }
  @media (min-width: 600px) { .service-carte { grid-template-columns: auto minmax(0, 1fr); gap: var(--s-6); padding: var(--s-6); } }
  .service-monogramme, .service-portrait { width: 7rem; height: 7rem; border-radius: 50%; }
  .service-monogramme { display: grid; place-items: center; background: var(--encre); color: var(--papier); font-family: var(--f-titre); font-stretch: 75%; font-weight: 800; font-size: 3.5rem; line-height: 1; }
  .service-portrait { object-fit: cover; }
  .service-texte { min-width: 0; max-width: 46rem; }
  .service-texte > * + * { margin-top: var(--s-4); }
  .service-etapes { display: grid; gap: var(--s-3); }
  .service-etapes li { display: flex; align-items: flex-start; gap: var(--s-3); }
  .service-etapes .icone { margin-top: 3px; }
  .steps { display: grid; gap: var(--s-4); counter-reset: etape; margin-block: var(--s-5); }
  .steps li { display: grid; grid-template-columns: auto 1fr; gap: 0 var(--s-3); counter-increment: etape; }
  .steps li::before { content: counter(etape); grid-row: span 2; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border: 2px solid var(--encre); border-radius: 50%; font-family: var(--f-titre); font-weight: 800; }
  .steps span { color: var(--encre-douce); }

  /* ---------- rayon */
  .collection-head { display: grid; gap: var(--s-5); padding-top: var(--s-5); }
  @media (min-width: 900px) { .collection-head.has-photo { grid-template-columns: 1fr 360px; align-items: start; } }
  .collection-copy > * + * { margin-top: var(--s-4); }
  .intent { font-weight: 600; }
  .intent span { color: var(--encre-douce); font-weight: 400; }
  .measure-hint { font-size: var(--t-s); }
  .toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); margin-bottom: var(--s-5); padding: var(--s-3) 0; border-block: 1px solid var(--trait); font-size: var(--t-s); }
  .filter-group { display: flex; flex-wrap: wrap; gap: var(--s-3); border: 0; padding: 0; margin: 0; }
  .filter-group legend { float: left; margin-right: var(--s-2); font-weight: 600; }
  .result-count { margin-left: auto; color: var(--encre-douce); }
  .empty { padding: var(--s-6); text-align: center; background: var(--carte); border-radius: var(--r-2); }
  .empty > * + * { margin-top: var(--s-3); }
  .tips .ticks { max-width: var(--largeur-texte); }

  /* ---------- fiche produit */
  .product { display: grid; gap: var(--s-6); padding-top: var(--s-5); }
  @media (min-width: 900px) {
    .product { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: var(--s-7); align-items: start; }
    .product-media { position: sticky; top: calc(var(--entete) + var(--s-4)); }
  }
  .product-media { display: grid; gap: var(--s-3); min-width: 0; }
  .gallery-main { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--fond-photo); border-radius: var(--r-2); }
  .thumbs { display: flex; gap: var(--s-2); overflow-x: auto; padding-bottom: var(--s-1); }
  .thumb { flex: none; width: 72px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: var(--r-2); background: var(--fond-photo); overflow: hidden; }
  .thumb img { width: 100%; height: 100%; object-fit: contain; }
  .thumb.is-active, .thumb:hover { border-color: var(--encre); }
  .product-info { min-width: 0; }
  .product-info > * + * { margin-top: var(--s-4); }
  .product-info h1 { font-size: var(--t-2xl); }
  .buybox { display: grid; gap: var(--s-4); padding: var(--s-5); background: var(--carte); border: 1px solid var(--trait); border-radius: var(--r-2); }
  .price { font-family: var(--f-titre); font-stretch: 85%; font-weight: 800; font-size: var(--t-2xl); line-height: 1; }
  .price-note { display: block; margin-top: var(--s-1); font-family: var(--f-texte); font-weight: 400; font-size: var(--t-xs); color: var(--encre-douce); }
  .avail { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 600; font-size: var(--t-s); color: var(--vert); }
  .avail::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
  .avail[data-state="out_of_stock"] { color: var(--rouge); }
  .avail[data-state="unknown"] { color: var(--encre-douce); }
  .buy-row { display: grid; grid-template-columns: auto 1fr; gap: var(--s-3); }
  .qty { display: inline-flex; align-items: center; gap: var(--s-1); }
  .qty input, .qty output { width: 44px; min-height: 40px; padding: 0; text-align: center; border: 0; background: transparent; font-weight: 700; -moz-appearance: textfield; appearance: textfield; }
  .qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
  .buybox .btn[type="submit"] { background: var(--achat); border-color: var(--achat); color: #fff; }
  .buybox .btn[type="submit"]:hover { background: var(--achat-fonce); border-color: var(--achat-fonce); }
  .reassure { display: grid; gap: var(--s-2); font-size: var(--t-s); color: var(--encre-douce); }
  .reassure li { padding-left: var(--s-4); position: relative; }
  .reassure li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 6px; height: 6px; background: var(--trait-fort); border-radius: 1px; }
  .pay-line { display: flex; gap: var(--s-2); align-items: flex-start; font-size: var(--t-xs); color: var(--encre-douce); }
  .pay-line svg { flex: none; margin-top: 2px; }
  .pack-box { padding: var(--s-4) var(--s-5); border: 1px dashed var(--trait-fort); border-radius: var(--r-2); }
  .pack-box ul { padding-left: 1.2em; margin-top: var(--s-2); }
  .saving { margin-top: var(--s-3); font-weight: 650; color: var(--vert); }
  .compat { display: grid; gap: var(--s-4); }
  @media (min-width: 600px) { .compat { grid-template-columns: 1fr 1fr; } }
  .compat-ok, .compat-no { padding: var(--s-4); border-radius: var(--r-2); }
  .compat-ok { background: var(--vert-fond); }
  .compat-no { background: var(--rouge-fond); }
  .compat h2 { font-size: var(--t-m); margin-bottom: var(--s-2); }
  .compat-ok h2 { color: var(--vert); }
  .compat-no h2 { color: var(--rouge); }
  .compat ul { padding-left: 1.1em; font-size: var(--t-s); }
  .before-order { padding: var(--s-4) var(--s-5); border-left: 4px solid var(--encre); background: var(--info-fond); border-radius: 0 var(--r-2) var(--r-2) 0; }
  .before-order h2 { font-size: var(--t-m); margin-bottom: var(--s-2); }
  .before-order ol { padding-left: 1.2em; font-size: var(--t-s); }
  .before-order p { margin-top: var(--s-2); font-size: var(--t-s); }
  .etapes-montage { counter-reset: etape; list-style: none; padding: 0 !important; display: grid; gap: var(--s-3); }
  .etapes-montage li { counter-increment: etape; position: relative; padding-left: 2.5em; }
  .etapes-montage li::before { content: counter(etape); position: absolute; left: 0; top: 0; width: 1.75em; height: 1.75em; display: grid; place-items: center; border-radius: 50%; background: var(--encre); color: var(--papier); font-weight: 700; font-size: var(--t-s); }
  .bon-a-savoir { list-style: none; padding: 0 !important; display: grid; gap: var(--s-3); }
  .bon-a-savoir li { padding: var(--s-3) var(--s-4); border-left: 4px solid var(--encre); background: var(--info-fond); border-radius: 0 var(--r-2) var(--r-2) 0; }

  /* ---------- fiche : variantes en pastilles */
  .variantes { display: grid; gap: var(--s-2); min-width: 0; margin: 0; padding: 0; border: 0; }
  .variantes legend { margin-bottom: var(--s-2); padding: 0; font-weight: 600; font-size: var(--t-s); }
  .variante { position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 48px; padding: var(--s-2) var(--s-3) var(--s-2) 2.75rem; background: var(--papier); border: 2px solid var(--trait-fort); border-radius: var(--r-2); font-size: var(--t-s); cursor: pointer; transition: border-color var(--vite); }
  .variante input { position: absolute; left: var(--s-3); top: 50%; width: 20px; height: 20px; margin: -10px 0 0; accent-color: var(--encre); cursor: pointer; }
  .variante:hover { border-color: var(--encre); }
  .variante:has(input:checked) { background: var(--carte); border-color: var(--encre); box-shadow: inset 0 0 0 1px var(--encre); }
  .variante:has(input:disabled) { opacity: 0.5; cursor: not-allowed; }
  .variante-nom { font-weight: 600; line-height: 1.3; }
  .variante-prix { font-family: var(--f-titre); font-stretch: 85%; font-weight: 760; white-space: nowrap; }

  /* ---------- fiche : schéma côté cuve → côté sortie */
  .schema { margin: 0; padding: var(--s-4); background: var(--carte); border: 1px solid var(--trait); border-radius: var(--r-2); }
  .schema-legende-titre { margin-bottom: var(--s-2); font-family: var(--f-titre); font-stretch: 80%; font-weight: 720; font-size: var(--t-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--encre-douce); }
  .dessin-schema { max-width: 30rem; margin-inline: auto; }
  .schema-legendes { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: var(--s-3); align-items: start; margin-top: var(--s-3); font-size: var(--t-s); line-height: 1.35; }
  .schema-de, .schema-vers { display: grid; gap: 2px; min-width: 0; }
  .schema-vers { text-align: right; }
  .schema-titre { font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--encre-douce); }
  .schema-legendes .cote-txt { white-space: normal; font-size: var(--t-xs); color: var(--encre-douce); }
  .schema-fleche { padding-top: var(--s-3); font-weight: 700; color: var(--acier); }
  .d-corps { fill: #34404f; }
  .d-nervure { stroke: #56657a; }
  .d-filet-int { stroke: #c9d1d9; }
  .d-clair { fill: #c9ced3; stroke: #56657a; stroke-width: 1.5; }
  .d-tube { fill: #d9e4ec; stroke: #8fa3b3; stroke-width: 2; }
  .d-tube-bout { fill: #b9cad6; stroke: #8fa3b3; stroke-width: 2; }
  .d-paroi { fill: #d8cdb8; stroke: var(--trait-fort); stroke-width: 2; }
  .d-flux { stroke: #fff; }

  /* ---------- fiche : accordéons */
  .product-info > .accordeon { margin-top: var(--s-6); }
  .accordeon summary h2 { margin: 0; font-size: var(--t-l); }
  .accordeon-corps { padding-bottom: var(--s-5); }
  .accordeon-corps > * + * { margin-top: var(--s-3); }
  .accordeon-corps > h3 { margin-top: var(--s-5); font-size: var(--t-m); }
  .accordeon-corps .table-wrap { margin-block: 0 var(--s-3); }
  .faq-liste > h3 { font-size: var(--t-m); }
  .faq-liste > h3:not(:first-child) { margin-top: var(--s-5); }
  .faq-liste > p { color: var(--encre-douce); }

  /* ---------- fiche : « complétez votre installation » en images, avec + et total */
  .bundle-corps { display: grid; gap: var(--s-5); margin-top: var(--s-5); }
  @media (min-width: 900px) { .bundle-corps { grid-template-columns: minmax(0, 1fr) 16rem; align-items: center; gap: var(--s-7); } }
  /* mobile : bande qui défile, le « + » reste toujours entre deux pièces */
  .bundle-list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(8.5rem, 42%); gap: var(--s-5); overflow-x: auto; padding: var(--s-1) var(--s-1) var(--s-3); scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  .bundle-list > li { scroll-snap-align: start; }
  @media (min-width: 600px) { .bundle-list { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-columns: auto; gap: var(--s-6); overflow: visible; padding: 0; } }
  .bundle-item { position: relative; display: grid; align-content: start; gap: var(--s-1); min-width: 0; font-size: var(--t-s); line-height: 1.3; }
  .bundle-item:not([hidden]) ~ .bundle-item::before { content: "+"; position: absolute; left: calc(-0.5 * var(--s-5)); top: 30%; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; margin-left: -16px; border-radius: 50%; background: var(--encre); color: var(--papier); font-weight: 700; font-size: 1.25rem; line-height: 1; }
  @media (min-width: 600px) { .bundle-item:not([hidden]) ~ .bundle-item::before { left: calc(-0.5 * var(--s-6)); } }
  .bundle-item img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--fond-photo); border: 2px solid var(--trait); border-radius: var(--r-2); transition: opacity var(--vite); }
  .bundle-item.is-main img { border-color: var(--encre); }
  .bundle-choix { position: relative; display: grid; gap: var(--s-1); cursor: pointer; }
  .bundle-choix input { position: absolute; top: var(--s-2); left: var(--s-2); z-index: 1; width: 22px; height: 22px; margin: 0; accent-color: var(--encre); }
  .bundle-item:has(input:not(:checked)) img { opacity: 0.45; }
  .bundle-item:has(input:checked) img { border-color: var(--encre); }
  .bundle-nom { font-weight: 600; }
  .bundle-ce { display: block; font-size: var(--t-xs); font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--encre-douce); }
  .bundle-price { font-family: var(--f-titre); font-stretch: 85%; font-weight: 760; }
  .bundle-voir { font-size: var(--t-xs); }
  .bundle-foot { display: grid; gap: var(--s-3); padding: var(--s-4); background: var(--carte); border: 1px solid var(--trait); border-radius: var(--r-2); }
  .bundle-foot p { display: grid; font-size: var(--t-s); color: var(--encre-douce); }
  .bundle-foot strong { font-family: var(--f-titre); font-stretch: 85%; font-weight: 800; font-size: var(--t-2xl); color: var(--encre); }

  /* ---------- barre d'achat collante */
  .sticky-buy { position: fixed; inset: auto 0 0; z-index: 50; padding: var(--s-2) 0 calc(var(--s-2) + env(safe-area-inset-bottom)); background: rgb(251 248 242 / 0.98); border-top: 1px solid var(--trait); box-shadow: 0 -6px 20px rgb(20 35 58 / 0.1); animation: monte 0.2s ease-out; }
  @keyframes monte { from { transform: translateY(100%); } }
  .sticky-buy-inner { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: var(--s-3); align-items: center; }
  .sticky-buy img { width: 44px; height: 44px; object-fit: contain; background: var(--fond-photo); border-radius: var(--r-1); }
  .sticky-buy-title { font-weight: 650; font-size: var(--t-s); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sticky-buy-price { font-size: var(--t-s); font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sticky-buy-price .muted { font-weight: 400; }
  .sticky-buy .btn { min-height: 44px; padding-inline: var(--s-4); background: var(--achat); border-color: var(--achat); color: #fff; }
  body.has-sticky-buy .site-footer { padding-bottom: 80px; }

  /* ---------- panier (tiroir + page) */
  .drawer { position: fixed; inset: 0; z-index: 80; }
  .drawer-backdrop { position: absolute; inset: 0; background: rgb(20 35 58 / 0.5); }
  .drawer-panel { position: absolute; inset: 0 0 0 auto; width: min(440px, 100%); display: flex; flex-direction: column; background: var(--papier); box-shadow: var(--ombre-forte); animation: glisse 0.2s ease-out; }
  @keyframes glisse { from { transform: translateX(100%); } }
  .drawer-head { display: flex; align-items: center; justify-content: space-between; padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--trait); }
  .drawer-head h2 { font-size: var(--t-xl); }
  .drawer-body { flex: 1; overflow-y: auto; padding: var(--s-4) var(--s-4) var(--s-6); }
  .drawer-body > * + * { margin-top: var(--s-4); }
  .ship-progress { padding: var(--s-3); background: var(--kraft); border-radius: var(--r-2); }
  .ship-progress p { margin-bottom: var(--s-2); font-size: var(--t-s); font-weight: 650; }
  .ship-progress.is-free p { color: var(--vert); }
  .bar { height: 8px; border-radius: 4px; background: var(--carte); overflow: hidden; }
  .bar > span { display: block; height: 100%; width: 0; background: var(--vert); border-radius: inherit; transition: width 0.3s; }
  .cart-lines { display: grid; border-top: 1px solid var(--trait); }
  .cart-line { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--s-3); padding: var(--s-3) 0; border-bottom: 1px solid var(--trait); }
  .cart-line img { width: 64px; height: 64px; object-fit: contain; background: var(--fond-photo); border-radius: var(--r-1); }
  .cart-line > div { min-width: 0; }
  .cart-line-title { font-weight: 650; line-height: 1.3; }
  .cart-line-title a { color: var(--encre); }
  .cart-line-variant { font-size: var(--t-xs); color: var(--encre-douce); }
  .cart-line-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2); margin-block: var(--s-2); }
  .cart-line .icon-btn { width: 36px; height: 36px; }
  .cart-compat { padding: var(--s-3); border-left: 4px solid var(--encre); background: var(--info-fond); font-size: var(--t-s); border-radius: 0 var(--r-2) var(--r-2) 0; }
  .cart-compat > * + * { margin-top: var(--s-1); }
  .cart-compat[data-etat="non"] { border-left-color: var(--rouge); background: var(--rouge-fond); }
  .cart-compat[data-etat="non"] strong { color: var(--rouge); }
  .upsells h3 { font-size: var(--t-m); margin-bottom: var(--s-2); }
  .upsell-list { display: grid; gap: var(--s-2); }
  .upsell { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: var(--s-3); align-items: center; padding: var(--s-2); background: var(--carte); border: 1px solid var(--trait); border-radius: var(--r-2); }
  .upsell img { width: 48px; height: 48px; object-fit: contain; background: var(--fond-photo); border-radius: var(--r-1); }
  .upsell > div { min-width: 0; }
  .upsell p { font-size: var(--t-s); line-height: 1.3; }
  .upsell .why { font-size: var(--t-xs); color: var(--encre-douce); }
  .upsell .btn { min-height: 40px; padding-inline: var(--s-3); font-size: var(--t-s); background: var(--achat); border-color: var(--achat); color: #fff; white-space: nowrap; }
  .totals { display: grid; gap: var(--s-2); }
  .totals > div { display: flex; justify-content: space-between; gap: var(--s-3); }
  .totals dt { color: var(--encre-douce); }
  .totals .grand { padding-top: var(--s-2); border-top: 1px solid var(--trait); font-family: var(--f-titre); font-stretch: 85%; font-weight: 800; font-size: var(--t-l); }
  .totals .grand dt { color: var(--encre); }
  .cart-actions { display: grid; gap: var(--s-2); }
  .cart-actions .btn-primary { background: var(--achat); border-color: var(--achat); color: #fff; }
  .cart-actions .btn-primary:hover { background: var(--achat-fonce); border-color: var(--achat-fonce); }
  .cart-empty > * + * { margin-top: var(--s-3); }
  [data-cart-root="page"] > * + * { margin-top: var(--s-5); }
  main.wrap > h1:first-child { padding-top: var(--s-5); }
  .cart-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); margin-top: var(--s-5); }
  .cart-main { min-width: 0; }
  @media (min-width: 900px) { .cart-layout { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; } .checkout { position: sticky; top: calc(var(--entete) + var(--s-4)); } }
  .checkout { display: grid; gap: var(--s-4); padding: var(--s-5); background: var(--carte); border: 1px solid var(--trait); border-radius: var(--r-2); }
  .checkout h2 { font-size: var(--t-xl); }
  .checkout form { display: grid; gap: var(--s-4); }
  .checkout-steps { counter-reset: e; display: grid; gap: var(--s-2); font-size: var(--t-s); }
  .checkout-steps li { counter-increment: e; display: flex; gap: var(--s-2); }
  .checkout-steps li::before { content: counter(e); flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--encre); font-size: 0.75rem; font-weight: 700; }
  .checkout .btn[type="submit"] { background: var(--achat); border-color: var(--achat); color: #fff; }
  .checkout .btn[type="submit"]:hover { background: var(--achat-fonce); border-color: var(--achat-fonce); }
  .toast { position: fixed; left: 50%; bottom: var(--s-5); z-index: 90; transform: translateX(-50%); padding: var(--s-3) var(--s-5); background: var(--encre); color: var(--papier); border-radius: var(--r-2); box-shadow: var(--ombre-forte); font-size: var(--t-s); }

  /* ---------- guide (version actuelle) */
  .article { padding-bottom: var(--section); }
  .article-head { padding-top: var(--s-5); }
  .article-head > * + * { margin-top: var(--s-4); }
  .toc { margin-block: var(--s-6); padding: var(--s-4) var(--s-5); border: 1px solid var(--trait); border-radius: var(--r-2); }
  .toc-title { font-family: var(--f-titre); font-stretch: var(--etroit); font-weight: 720; margin-bottom: var(--s-2); }
  .toc ol { padding-left: 1.3em; font-size: var(--t-s); }
  .legal h2 { font-size: var(--t-xl); }
  .credits-list { display: grid; gap: var(--s-3); }
  .credits-list li { display: grid; grid-template-columns: 96px 1fr; gap: var(--s-3); align-items: center; font-size: var(--t-s); }
  .credits-list img { width: 96px; height: 64px; object-fit: cover; border-radius: var(--r-1); }

  /* ---------- le trajet de l'eau : 5 étapes reliées par un tuyau */
  .trajet { margin-block: var(--s-4); }
  .trajet ol { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none; padding: 0; }
  .trajet ol::before { content: ""; position: absolute; left: 10%; right: 10%; top: 1rem; height: 6px; margin-top: -3px; border-radius: 3px; background: linear-gradient(var(--carte), var(--carte)) center / 100% 2px no-repeat, var(--acier); }
  .trajet a { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--s-1); padding: 0 var(--s-1); color: var(--encre); text-decoration: none; text-align: center; }
  .trajet .repere { width: 2rem; height: 2rem; font-size: 0.9375rem; background: var(--papier); }
  .trajet-nom { font-family: var(--f-titre); font-stretch: 80%; font-weight: 680; font-size: var(--t-xs); line-height: 1.15; }
  .trajet a:hover .repere, .trajet .is-courant .repere { background: var(--encre); border-color: var(--encre); color: var(--papier); }
  .trajet a:hover .trajet-nom { text-decoration: underline; }
  .trajet .is-courant .trajet-nom { font-weight: 800; }
  .trajet:not(.trajet-compact) { margin-block: var(--s-6); }
  .trajet:not(.trajet-compact) ol::before { top: 1.5rem; }
  .trajet:not(.trajet-compact) .repere { width: 3rem; height: 3rem; font-size: 1.25rem; }
  .trajet:not(.trajet-compact) .trajet-nom { font-size: var(--t-s); }
  @media (min-width: 600px) { .trajet-nom { font-size: var(--t-s); } .trajet:not(.trajet-compact) .trajet-nom { font-size: var(--t-m); } }

  /* ---------- en-tête de rayon : produits visibles dès le premier écran */
  .rayon-head { padding-top: var(--s-4); }
  .rayon-head > * + * { margin-top: var(--s-3); }
  .rayon-head .trajet { margin-block: var(--s-2) var(--s-5); max-width: 40rem; }
  .rayon-titre { display: flex; align-items: center; gap: var(--s-3); }
  .rayon-titre h1, .rayon-head h1 { font-size: var(--t-2xl); }
  .rayon-icone { width: 40px; height: 40px; color: var(--encre); }
  .intro-repliee { max-width: var(--largeur-texte); }
  .intro-repliee summary { display: inline-flex; align-items: center; gap: var(--s-1); color: var(--lien); font-weight: 600; font-size: var(--t-s); text-decoration: underline; text-underline-offset: 0.18em; }
  .intro-repliee summary::-webkit-details-marker { display: none; }
  .intro-repliee summary::after { content: "+"; }
  .intro-repliee[open] summary::after { content: "−"; }
  .intro-repliee .prose { margin-top: var(--s-3); color: var(--encre-douce); }
  .rayon-produits { padding-top: var(--s-5); }
  .rayon-produits .toolbar .field-inline { margin-left: auto; }
  .rayon-produits .result-count { margin-left: 0; font-weight: 600; color: var(--encre); }
  .filtre-cuve { align-items: center; }
  .rayon-conseils { display: grid; gap: var(--s-6); }
  @media (min-width: 900px) { .rayon-conseils { grid-template-columns: 1fr 1fr; align-items: start; gap: var(--s-8); } .rayon-conseils .link-cards { grid-template-columns: 1fr; } }
  .rayon-liens h2 { margin-bottom: var(--s-3); }
  .chapitres-voisins { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); padding-top: var(--s-6); }
  .voisin { display: grid; gap: var(--s-1); padding: var(--s-4); border: 1.5px solid var(--encre); border-radius: var(--r-2); color: var(--encre); text-decoration: none; }
  .voisin:hover { background: var(--encre); color: var(--papier); }
  .voisin-suiv { text-align: right; }
  .voisin-sens { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.08em; }
  .voisin strong { font-family: var(--f-titre); font-stretch: var(--etroit); font-size: var(--t-l); line-height: 1.15; }

  /* ---------- page « toutes les pièces » */
  .hub-tete { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-3) var(--s-4); align-items: start; margin-bottom: var(--s-5); }
  .hub-tete h2 { font-size: var(--t-xl); }
  .hub-sous { display: block; margin-top: var(--s-1); font-family: var(--f-texte); font-stretch: 100%; font-weight: 400; font-size: var(--t-m); color: var(--encre-douce); letter-spacing: 0; }
  .hub-lien { grid-column: 2; display: inline-flex; align-items: center; gap: var(--s-1); font-weight: 600; }
  @media (min-width: 900px) { .hub-tete { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; } .hub-lien { grid-column: auto; } }

  /* ---------- l'erreur à éviter */
  .erreur { padding: var(--s-5); background: var(--carte); border: 1px solid var(--trait); border-top: 4px solid var(--rouge); border-radius: var(--r-2); }
  .erreur > * + * { margin-top: var(--s-2); }
  .erreur-kicker { display: flex; align-items: center; gap: var(--s-2); color: var(--rouge); font-family: var(--f-titre); font-stretch: 80%; font-weight: 760; font-size: var(--t-xs); letter-spacing: 0.1em; text-transform: uppercase; }
  .erreur-titre { font-size: var(--t-xl); }
  .erreur p:last-child { color: var(--encre-douce); }

  /* ---------- carte produit : compatibilité « ma cuve » et pied de carte */
  .card-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--s-2); }
  .card-foot .card-price { margin-top: 0; }
  .card-compat { display: inline-flex; align-items: flex-start; gap: var(--s-1); font-size: var(--t-xs); font-weight: 650; line-height: 1.3; }
  .card-compat::before { content: ""; flex: none; width: 14px; height: 14px; margin-top: 1px; border-radius: 50%; background: currentColor; }
  [data-etat="ok"] > .card-compat, .card-compat[data-etat="ok"] { color: var(--vert); }
  .card-compat[data-etat="avec"] { color: var(--lien); }
  .card-compat[data-etat="non"] { color: var(--rouge); }
  /* encart « ma cuve » de la fiche produit */
  .compat-cuve { padding: var(--s-3) var(--s-4); border-left: 4px solid var(--trait-fort); background: var(--papier); border-radius: 0 var(--r-2) var(--r-2) 0; font-size: var(--t-s); line-height: 1.45; }
  .compat-cuve[data-etat="ok"] { border-left-color: var(--vert); background: var(--vert-fond); }
  .compat-cuve[data-etat="ok"] strong { color: var(--vert); }
  .compat-cuve[data-etat="avec"] { border-left-color: var(--lien); background: var(--info-fond); }
  .compat-cuve[data-etat="non"] { border-left-color: var(--rouge); background: var(--rouge-fond); }
  .compat-cuve[data-etat="non"] strong { color: var(--rouge); }
  .filtre-cuve .chip { margin-left: var(--s-1); }

  /* ---------- crédit photo discret : « © » sur l'image, auteur et licence au clic */
  .photo .credit { position: absolute; right: var(--s-2); bottom: var(--s-2); margin: 0; font-size: var(--t-xs); }
  .credit summary { list-style: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgb(20 35 58 / 0.72); color: #fff; font-weight: 700; font-size: 0.875rem; }
  .credit summary::-webkit-details-marker { display: none; }
  .credit details[open] summary { background: var(--encre); }
  .credit details > p { position: absolute; right: 0; bottom: calc(100% + var(--s-1)); width: max-content; max-width: min(18rem, 80vw); padding: var(--s-2) var(--s-3); background: var(--encre); color: var(--sur-encre); border-radius: var(--r-2); line-height: 1.4; }
  .credit details > p a { color: #fff; }

  /* ---------- page 404 */
  .page-404 > * + * { margin-top: var(--s-4); }

  /* ---------- pied de page */
  .site-footer > .sep-filetage { position: absolute; top: -11px; left: 0; right: 0; }
  .site-footer { position: relative; margin-top: var(--section); background: var(--encre); color: var(--sur-encre); font-size: var(--t-s); }
  .site-footer a { color: #fff; text-decoration-color: rgb(255 255 255 / 0.35); }
  .site-footer a:hover { text-decoration-color: #fff; }
  .footer-grid { display: grid; gap: var(--s-6); padding-block: var(--s-7); }
  @media (min-width: 600px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); } }
  .footer-grid > div > * + * { margin-top: var(--s-3); }
  .footer-brand { font-family: var(--f-titre); font-stretch: 80%; font-weight: 820; font-size: var(--t-xl); color: #fff; }
  .footer-title { margin-bottom: var(--s-3); font-family: var(--f-titre); font-stretch: 80%; font-weight: 720; font-size: var(--t-xs); letter-spacing: 0.12em; text-transform: uppercase; color: #fff; }
  .site-footer nav ul { list-style: none; padding: 0; display: grid; gap: var(--s-2); }
  .footer-legal { padding-block: var(--s-4) var(--s-6); border-top: 1px solid rgb(233 225 210 / 0.2); font-size: var(--t-xs); color: rgb(233 225 210 / 0.8); }
  .footer-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3) var(--s-6); }
  .footer-legal > p { flex: 1 1 28rem; min-width: 0; }
  .footer-contact { list-style: none; padding: 0; display: grid; gap: var(--s-2); }
  .footer-contact li { display: flex; align-items: center; gap: var(--s-2); }

  /* ---------- confiance : cartes acceptées, contact, À propos */
  .paiements { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
  .paiements svg { display: block; width: 48px; height: 30px; }
  .buybox-paiement { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--trait); font-size: var(--t-xs); color: var(--encre-douce); }
  .checkout .paiements { margin-block: var(--s-3) var(--s-2); }
  .service-boutons { display: flex; flex-wrap: wrap; gap: var(--s-3); }
  .a-propos { display: grid; gap: var(--s-7); max-width: 46rem; }
  .a-propos-non { display: grid; gap: var(--s-3); }
  .a-propos-non li { position: relative; padding-left: 1.75em; }
  .a-propos-non li::before { content: "✕"; position: absolute; left: 0; top: 0; font-weight: 800; color: var(--rouge); }
  /* coordonnée pas encore fournie (identite-legale.json) : visible, jamais un lien cassé */
  .a-renseigner { outline: 2px dashed var(--rouge); outline-offset: 2px; border-radius: 2px; cursor: help; }
  .a-renseigner small { font-size: 0.85em; font-weight: 600; }
  .site-footer .a-renseigner { outline-color: #f2b8b0; }
  /* mode vitrine (commandes fermées) : état « Ouverture prochaine » à la place des boutons d'achat */
  .ouverture { display: flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 44px; margin: 0; padding: var(--s-2) var(--s-3); background: var(--kraft); border: 1.5px dashed var(--trait-fort); border-radius: var(--r-2); color: var(--encre); font-size: var(--t-s); font-weight: 650; text-align: center; }
  .card .ouverture { position: relative; z-index: 2; }
  .inline-product > .ouverture { grid-column: 1 / -1; }
  @media (min-width: 600px) { .inline-product > .ouverture { grid-column: auto; } }
  .ouverture-fiche { display: grid; justify-items: start; gap: var(--s-1); padding: var(--s-4); text-align: left; font-weight: 400; }
  .ouverture-fiche strong { font-size: var(--t-m); }
  .bundle-corps.is-vitrine { grid-template-columns: minmax(0, 1fr); }
  .panier-vitrine { display: grid; gap: var(--s-4); max-width: 40rem; }
}

/* ============================================================== utilities */
@layer utilities {
  .visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .muted { color: var(--encre-douce); }
  .small { font-size: var(--t-xs); }
  .center { text-align: center; }
  .mt-0 { margin-top: 0 !important; }
}
