/* =====================================================================================================
   HD ELEC 2027 · système de design
   Une seule feuille de style (remplace le thème d'origine, proto.css, finitions.css et design.css).
   Charte conservée : orange #FF7F00 · orange foncé #E06F00 · orange texte #B05300 · bleu nuit #14212B · #1E3140
   gris texte #5F6478 · blanc · fond clair #F5F8FF. Aucun texte en capitales forcées.
   ===================================================================================================== */

/* ---------- 1. jetons ---------- */
:root {
  --orange: #ff7f00;
  --orange-fonce: #e06f00;
  --orange-texte: #b05300;
  --orange-pale: #fff4e8;
  --orange-voile: rgba(255, 127, 0, .14);
  --nuit: #14212b;
  --nuit-2: #1e3140;
  --nuit-3: #2a4153;
  --gris: #5f6478;
  --gris-doux: #8a90a2;
  --encre: #243240;
  --blanc: #fff;
  --fond: #f5f8ff;
  --fond-2: #eef2fa;
  --ligne: #e3e8f1;
  --ligne-forte: #cdd5e3;
  --vert: #0e6a37;
  --vert-pale: #e9f7ef;
  --vert-ligne: #c4e8d3;
  --wa: #179c4e;
  --rouge: #b42318;
  --rouge-pale: #fef3f2;
  --bleu-info: #1d4ed8;

  --police: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r-s: 8px; --r: 12px; --r-l: 16px; --r-xl: 24px;
  --ombre-1: 0 1px 2px rgba(20, 33, 43, .06), 0 1px 1px rgba(20, 33, 43, .03);
  --ombre-2: 0 6px 16px -6px rgba(20, 33, 43, .14), 0 2px 4px rgba(20, 33, 43, .04);
  --ombre-3: 0 24px 48px -16px rgba(20, 33, 43, .28), 0 4px 10px rgba(20, 33, 43, .06);
  --courbe: cubic-bezier(.2, .7, .2, 1);
  --largeur: 1240px;
  --gouttiere: clamp(16px, 4vw, 32px);
  --entete-h: 76px;
}

/* ---------- 2. base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--entete-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body { margin: 0; font-family: var(--police); font-size: 1rem; line-height: 1.6; color: var(--encre); background: var(--blanc);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; font-feature-settings: "cv11", "ss01"; }
body.sans-defilement { overflow: hidden; }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
.ico { display: inline-block; flex: none; vertical-align: middle; }
a { color: var(--orange-texte); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--nuit); }
h1, h2, h3, h4, .h1, .h2, .h3, .h4 { color: var(--nuit); font-weight: 700; line-height: 1.15; letter-spacing: -.022em; margin: 0 0 .5em; text-wrap: balance; }
h1, .h1 { font-size: clamp(1.9rem, 1.35rem + 2vw, 3rem); }
h2, .h2 { font-size: clamp(1.55rem, 1.2rem + 1.25vw, 2.3rem); }
h3, .h3 { font-size: 1.2rem; letter-spacing: -.015em; line-height: 1.3; }
h4, .h4 { font-size: 1.05rem; letter-spacing: -.01em; line-height: 1.35; }
p { margin: 0 0 1em; }
ul, ol { padding: 0; margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--orange); color: var(--nuit); }
.conteneur { width: 100%; max-width: calc(var(--largeur) + 2 * var(--gouttiere)); margin-inline: auto; padding-inline: var(--gouttiere); }
.conteneur-texte { max-width: calc(820px + 2 * var(--gouttiere)); }
.hd-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hd-piege { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.lien-evitement { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--nuit); color: #fff; padding: 10px 16px; border-radius: var(--r-s); font-weight: 600; text-decoration: none; transition: top .2s; }
.lien-evitement:focus { top: 12px; color: #fff; }
[tabindex="-1"]:focus { outline: none; }

/* ---------- 3. boutons et liens ---------- */
.btn, .hd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 10px;
  border: 1px solid transparent; font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s, transform .2s var(--courbe); }
.btn:active, .hd-btn:active { transform: translateY(1px); }
.btn-primaire, .hd-btn { background: var(--orange); color: var(--nuit); box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 6px 14px -6px rgba(224, 111, 0, .55); }
.btn-primaire:hover, .hd-btn:hover { background: var(--orange-fonce); color: var(--nuit); }
.btn-primaire:focus-visible, .hd-btn:focus-visible { outline-color: var(--nuit); }
.btn-sombre { background: var(--nuit); color: #fff; }
.btn-sombre:hover { background: var(--nuit-3); color: #fff; }
.btn-clair { background: #fff; color: var(--nuit); border-color: rgba(20, 33, 43, .08); }
.btn-clair:hover { background: var(--fond); color: var(--nuit); }
.btn-contour, .hd-btn.clair { background: #fff; color: var(--nuit); border-color: var(--ligne-forte); box-shadow: none; }
.btn-contour:hover, .hd-btn.clair:hover { border-color: var(--nuit); background: #fff; color: var(--nuit); }
.btn-transparent { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-transparent:hover { background: rgba(255, 255, 255, .08); color: #fff; border-color: #fff; }
.btn-wa { background: var(--vert-pale); color: var(--vert); border-color: var(--vert-ligne); }
.btn-wa:hover { background: #dcf2e5; color: var(--vert); border-color: #9fd9b8; }
.btn-grand { min-height: 54px; padding: 0 26px; font-size: 1rem; border-radius: 12px; }
.btn-petit, .hd-btn-petit { min-height: 38px; padding: 0 14px; font-size: .875rem; border-radius: 9px; }
.btn-plein { width: 100%; }
.btn[disabled], .hd-btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.hd-lien-fleche { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .95rem; color: var(--orange-texte); text-decoration: none; }
.hd-lien-fleche::after { content: "→"; transition: transform .25s var(--courbe); }
.hd-lien-fleche:hover { color: var(--nuit); }
.hd-lien-fleche:hover::after { transform: translateX(4px); }
.lien-clair { color: #ffc380; }
.lien-clair:hover { color: #fff; }
.hd-lien-bouton { background: none; border: 0; padding: 0; color: var(--orange-texte); text-decoration: underline; font-weight: 600; }

.surtitre { display: inline-flex; align-items: center; gap: 10px; font-size: .84rem; font-weight: 600; letter-spacing: .01em; color: var(--orange-texte); margin: 0 0 14px; }
.surtitre::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--orange); }
.surtitre-clair { color: #ffc380; }
.surtitre-lien { text-decoration: none; }
.surtitre-lien::before { display: none; }
.surtitre-lien .hd-picto { width: 20px; height: 20px; color: var(--orange-fonce); }
.surtitre-picto { display: inline-flex; color: var(--orange); }
.surtitre-picto .hd-picto { width: 22px; height: 22px; }
.point-orange { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255, 127, 0, .25); }
.surtitre:has(.point-orange)::before, .surtitre:has(.surtitre-picto)::before { display: none; }

/* ---------- 4. barre d'information et en-tête ---------- */
.barre-info { background: var(--nuit); color: rgba(255, 255, 255, .78); font-size: .82rem; }
.barre-info-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 38px; }
.barre-info-texte, .barre-info-liens, .barre-info-liens a { display: inline-flex; align-items: center; gap: 7px; }
.barre-info-liens { gap: 22px; }
.barre-info a { color: rgba(255, 255, 255, .86); text-decoration: none; }
.barre-info a:hover { color: #fff; }
.barre-info .ico { opacity: .8; }
.reseaux { display: inline-flex; gap: 4px; }
.reseaux a { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; }
.reseaux a:hover { background: rgba(255, 255, 255, .1); }

.entete { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s; }
.a-defile .entete { border-bottom-color: var(--ligne); box-shadow: 0 8px 24px -16px rgba(20, 33, 43, .35); }
.entete-in { display: flex; align-items: center; gap: 28px; height: var(--entete-h); transition: height .3s var(--courbe); }
.a-defile .entete-in { height: 64px; }
.logo { flex: none; display: block; }
.logo img { width: auto; height: 52px; transition: height .3s var(--courbe); }
.a-defile .logo img { height: 44px; }
.nav-principale { margin-left: auto; }
.nav-principale > ul { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-principale > ul > li { display: flex; align-items: center; }
.nav-principale > ul > li > a { position: relative; display: block; padding: 10px 12px; font-size: .94rem; font-weight: 500; color: var(--nuit); text-decoration: none; border-radius: 8px; }
.nav-principale > ul > li > a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--courbe); }
.nav-principale > ul > li > a:hover::after, .nav-principale > ul > li > a[aria-current="page"]::after { transform: scaleX(1); }
.nav-principale > ul > li > a[aria-current="page"] { font-weight: 600; }
.ouvrir-mega { display: grid; place-items: center; width: 26px; height: 26px; margin-left: -6px; border: 0; background: none; border-radius: 6px; color: var(--gris); transition: transform .25s; }
.a-mega.ouvert .ouvrir-mega, .a-mega:hover .ouvrir-mega { transform: rotate(180deg); color: var(--nuit); }
.entete-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.icone-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; color: var(--nuit); text-decoration: none; transition: background-color .2s; }
.icone-btn:hover { background: var(--fond); color: var(--nuit); }
.compteur { position: absolute; top: 5px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--orange); color: var(--nuit); font-size: .7rem; font-weight: 700; line-height: 18px; text-align: center; }
.btn-devis { min-height: 44px; margin-left: 6px; padding: 0 14px 0 16px; }
.hd-pastille { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--nuit); color: #fff; font-size: .75rem; font-weight: 700; }
.menu-btn { display: none; }

/* méga menu du catalogue */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--ligne); box-shadow: 0 30px 60px -30px rgba(20, 33, 43, .35);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .25s var(--courbe), visibility 0s linear .25s; }
.a-mega:hover .mega, .a-mega.ouvert .mega { opacity: 1; visibility: visible; transform: none; transition-delay: .06s, .06s, 0s; }
.mega-in { display: grid; grid-template-columns: 1fr 300px; gap: 40px; padding-top: 28px; padding-bottom: 32px; }
.mega-titre { font-size: .8rem; font-weight: 600; color: var(--gris); margin: 0 0 12px; }
.mega-familles ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 12px; list-style: none; }
.mega-familles a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--nuit); transition: background-color .2s; }
.mega-familles a:hover, .mega-familles a[aria-current="page"] { background: var(--fond); }
.mega-picto { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--orange-pale); color: var(--orange-fonce); flex: none; }
.mega-picto .hd-picto { width: 26px; height: 26px; }
.mega-nom { display: block; font-weight: 600; font-size: .92rem; line-height: 1.3; }
.mega-nb { display: block; font-size: .78rem; color: var(--gris); }
.mega-cote { border-left: 1px solid var(--ligne); padding-left: 32px; }
.mega-liens { list-style: none; margin-bottom: 18px; }
.mega-liens a { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: .92rem; color: var(--nuit); text-decoration: none; font-weight: 500; }
.mega-liens a .ico { color: var(--orange-fonce); }
.mega-liens a:hover { color: var(--orange-texte); }

/* menu mobile (tiroir) */
.tiroir { position: fixed; inset: 0; z-index: 120; }
.tiroir-fond, .recherche-globale-fond { position: absolute; inset: 0; background: rgba(20, 33, 43, .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity .22s; }
.tiroir-panneau { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: #fff; overflow-y: auto; overscroll-behavior: contain; padding: 16px 20px 28px;
  transform: translateX(100%); transition: transform .28s var(--courbe); display: flex; flex-direction: column; gap: 18px; }
.tiroir.ouvert .tiroir-fond, .recherche-globale.ouvert .recherche-globale-fond { opacity: 1; }
.tiroir.ouvert .tiroir-panneau { transform: none; }
.tiroir-tete { display: flex; align-items: center; justify-content: space-between; }
.tiroir-tete img { height: 44px; width: auto; }
.tiroir-recherche { position: relative; display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 50px; border: 1px solid var(--ligne-forte); border-radius: 12px; background: var(--fond); }
.tiroir-recherche input { flex: 1; min-width: 0; border: 0; background: none; height: 100%; outline: none; font-size: 1rem; }
.tiroir-recherche:focus-within { border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-voile); }
.tiroir-nav { list-style: none; }
.tiroir-nav a { display: block; padding: 13px 4px; font-size: 1.08rem; font-weight: 600; color: var(--nuit); text-decoration: none; border-bottom: 1px solid var(--ligne); }
.tiroir-nav a[aria-current="page"] { color: var(--orange-texte); }
.tiroir-familles summary { display: flex; align-items: center; justify-content: space-between; padding: 13px 4px; font-weight: 600; font-size: 1.08rem; color: var(--nuit); cursor: pointer; list-style: none; border-bottom: 1px solid var(--ligne); }
.tiroir-familles summary::-webkit-details-marker { display: none; }
.tiroir-familles[open] summary .ico { transform: rotate(180deg); }
.tiroir-familles ul { list-style: none; padding: 6px 0; }
.tiroir-familles a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 4px 9px 12px; color: var(--encre); text-decoration: none; font-size: .96rem; }
.tiroir-familles a span { color: var(--gris); font-size: .85rem; }
.tiroir-contact { display: grid; gap: 10px; margin-top: auto; }

/* recherche globale */
.recherche-globale { position: fixed; inset: 0; z-index: 130; }
.recherche-globale-panneau { position: relative; background: #fff; padding: 28px 0 22px; box-shadow: var(--ombre-3); transform: translateY(-16px); opacity: 0; transition: transform .25s var(--courbe), opacity .2s; }
.recherche-globale.ouvert .recherche-globale-panneau { transform: none; opacity: 1; }
.recherche-globale-form { display: flex; align-items: center; gap: 12px; max-width: 920px; margin: 0 auto; padding: 0 var(--gouttiere); }
.champ-recherche { position: relative; flex: 1; display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 18px; border: 1px solid var(--ligne-forte); border-radius: 14px; background: var(--fond); }
.champ-recherche:focus-within { border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-voile); background: #fff; }
.champ-recherche input { flex: 1; min-width: 0; border: 0; outline: none; background: none; height: 100%; font-size: 1.08rem; }
.champ-recherche .ico { color: var(--gris); }
.recherche-globale-raccourcis { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 920px; margin: 16px auto 0; padding: 0 var(--gouttiere); font-size: .85rem; color: var(--gris); }
.recherche-globale-raccourcis a { padding: 5px 11px; border-radius: 999px; background: var(--fond); color: var(--nuit); text-decoration: none; }
.recherche-globale-raccourcis a:hover { background: var(--orange-pale); }

/* suggestions pendant la saisie (proto.js) */
.hd-avec-suggestions { position: relative; }
.hd-suggestions { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 8px); list-style: none; background: #fff; border: 1px solid var(--ligne); border-radius: 14px; box-shadow: var(--ombre-3); padding: 6px; max-height: min(60vh, 460px); overflow-y: auto; text-align: left; }
.hd-suggestions li a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--nuit); }
.hd-suggestions li[aria-selected="true"] a, .hd-suggestions li a:hover { background: var(--fond); }
.hd-sugg-titre { display: block; font-weight: 600; font-size: .93rem; line-height: 1.35; }
.hd-sugg-sous { display: block; font-size: .8rem; color: var(--gris); }
.hd-sugg-tous a { border-top: 1px solid var(--ligne); border-radius: 0 0 10px 10px; }
.hd-sugg-tous .hd-sugg-titre { color: var(--orange-texte); }
.hd-recherche-accueil .hd-suggestions, .hero-recherche .hd-suggestions { color: var(--nuit); }
mark { background: #ffe1bd; color: inherit; border-radius: 3px; padding: 0 1px; }

/* ---------- 5. bandeau des pages intérieures ---------- */
.bandeau { position: relative; isolation: isolate; overflow: hidden; background: var(--nuit); color: rgba(255, 255, 255, .82); padding: clamp(32px, 5vw, 56px) 0 clamp(40px, 6vw, 72px); }
.bandeau::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url(../imgs/projets/illustration/bandeau-candelabres-1920.webp) right center / cover no-repeat; opacity: .9; }
@media (max-width: 760px) { .bandeau::before { background-image: url(../imgs/projets/illustration/bandeau-candelabres-960.webp); } }
.bandeau::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--nuit) 22%, rgba(20, 33, 43, .7) 55%, rgba(20, 33, 43, .15)); }
.bandeau h1 { color: #fff; max-width: 22ch; margin-bottom: .35em; }
.bandeau .chapo { font-size: clamp(1rem, .95rem + .3vw, 1.15rem); max-width: 64ch; color: rgba(255, 255, 255, .82); margin: 0; }
.bandeau .chapo a { color: #ffc380; }
.bandeau .surtitre { color: #ffc380; }
.bandeau-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.bandeau-stats span { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); font-size: .88rem; color: #fff; }
.bandeau-stats .ico { color: var(--orange); }
.bandeau-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.ariane ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; font-size: .84rem; margin-bottom: 18px; color: var(--gris); }
.ariane li { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.ariane li + li::before { content: "/"; opacity: .45; }
.ariane a { color: inherit; text-decoration: none; }
.ariane a:hover { color: var(--orange-texte); text-decoration: underline; }
.ariane li[aria-current] { color: var(--nuit); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }
.bandeau .ariane ol { color: rgba(255, 255, 255, .62); }
.bandeau .ariane a:hover { color: #fff; }
.bandeau .ariane li[aria-current] { color: rgba(255, 255, 255, .92); }
.devis-etapes { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin-top: 24px; font-size: .9rem; color: #fff; }
.devis-etapes li { display: inline-flex; align-items: center; gap: 9px; }
.devis-etapes span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .12); font-weight: 700; font-size: .8rem; }
.devis-etapes li:first-child span { background: var(--orange); color: var(--nuit); }

/* ---------- 6. sections et titres ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-serree { padding: clamp(36px, 5vw, 64px) 0 clamp(56px, 7vw, 88px); }
.section-claire { background: var(--fond); }
.section-sombre { background: var(--nuit); color: rgba(255, 255, 255, .78); }
.section-sombre h2, .section-sombre h3 { color: #fff; }
.titre-section { margin-bottom: clamp(28px, 4vw, 44px); }
.titre-section h2 { margin-bottom: .3em; }
.titre-section p { color: var(--gris); max-width: 62ch; margin: 0; }
.section-sombre .titre-section p { color: rgba(255, 255, 255, .7); }
.titre-ligne { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.titre-ligne h2 { margin-bottom: .2em; }
.chapo-sombre { font-size: 1.08rem; color: var(--encre); }

/* ---------- 7. accueil ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--nuit); color: #fff; min-height: clamp(560px, 86vh, 760px); display: flex; align-items: center; padding: 72px 0 128px; }
.hero-fond { position: absolute; inset: 0; z-index: -2; }
.hero-fond img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; animation: hero-zoom 2.2s var(--courbe) both; }
@keyframes hero-zoom { from { transform: scale(1.06); } to { transform: none; } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(20, 33, 43, .95) 0%, rgba(20, 33, 43, .82) 38%, rgba(20, 33, 43, .3) 75%, rgba(20, 33, 43, .1)), linear-gradient(0deg, rgba(20, 33, 43, .7), transparent 40%); }
.hero-in { position: relative; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4.2rem); letter-spacing: -.035em; line-height: 1.04; max-width: 15ch; margin-bottom: .4em; animation: monter .8s var(--courbe) .1s both; }
.hero-titre-suite { color: #ffb066; }
.hero-chapo { font-size: clamp(1.02rem, .95rem + .35vw, 1.2rem); color: rgba(255, 255, 255, .8); max-width: 58ch; margin-bottom: 30px; animation: monter .8s var(--courbe) .2s both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; animation: monter .8s var(--courbe) .3s both; }
@keyframes monter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-recherche { display: flex; gap: 10px; max-width: 640px; padding: 8px; border-radius: 16px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: monter .8s var(--courbe) .4s both; }
.hero-recherche .hd-recherche { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 11px; padding: 0 14px; height: 50px; color: var(--gris); }
.hero-recherche input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: none; color: var(--nuit); font-size: 1rem; }
.hero-recherche .btn { min-height: 50px; }
.hero-recherche-clair { background: var(--fond); border-color: var(--ligne); margin: 24px 0; animation: none; }
.hero-populaires { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 0; font-size: .85rem; color: rgba(255, 255, 255, .65); }
.hero-populaires a { color: #fff; text-decoration: none; padding: 4px 11px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); }
.hero-populaires a:hover { background: rgba(255, 255, 255, .1); color: #fff; }

.chiffres { position: relative; z-index: 2; margin-top: -72px; }
.chiffres-liste { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; background: #fff; border-radius: var(--r-xl); box-shadow: var(--ombre-3); border: 1px solid var(--ligne); overflow: hidden; }
.chiffres-liste li { padding: 26px 28px; border-left: 1px solid var(--ligne); }
.chiffres-liste li:first-child { border-left: 0; }
.chiffres-liste b { display: block; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.25rem); line-height: 1.1; letter-spacing: -.03em; color: var(--nuit); font-variant-numeric: tabular-nums; }
.chiffres-liste b::after { content: ""; display: block; width: 26px; height: 3px; border-radius: 2px; background: var(--orange); margin: 10px 0 8px; }
.chiffres-liste span { font-size: .9rem; color: var(--gris); line-height: 1.45; }

.familles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.famille { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px 22px 20px; border-radius: var(--r-l); background: #fff; border: 1px solid var(--ligne); text-decoration: none; color: var(--encre);
  transition: border-color .25s, box-shadow .3s var(--courbe), transform .3s var(--courbe); }
.famille:hover { border-color: #ffd2a3; box-shadow: var(--ombre-2); transform: translateY(-3px); color: var(--encre); }
.famille-picto { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--orange-pale); color: var(--orange-fonce); margin-bottom: 10px; transition: background-color .25s, color .25s; }
.famille:hover .famille-picto { background: var(--orange); color: var(--nuit); }
.famille-picto .hd-picto { width: 34px; height: 34px; }
.famille-nom { font-weight: 650; font-weight: 600; font-size: 1.04rem; color: var(--nuit); line-height: 1.3; letter-spacing: -.01em; }
.famille-desc { font-size: .87rem; color: var(--gris); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.famille-nb { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; font-weight: 600; color: var(--orange-texte); }
.famille-nb .ico { transition: transform .25s var(--courbe); }
.famille:hover .famille-nb .ico { transform: translateX(4px); }

.orientation { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 48px; align-items: start; }
.orientation-liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; }
.orientation-liste a { position: relative; display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--r-l);
  background: #fff; border: 1px solid var(--ligne); text-decoration: none; color: var(--nuit); transition: border-color .2s, box-shadow .25s, transform .25s var(--courbe); }
.orientation-liste a:hover { border-color: #ffd2a3; box-shadow: var(--ombre-2); transform: translateY(-2px); }
.orientation-picto { grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--fond); color: var(--orange-fonce); }
.orientation-picto .hd-picto { width: 30px; height: 30px; }
.orientation-liste b { font-size: .97rem; line-height: 1.3; }
.orientation-liste a > span:not(.orientation-picto) { grid-column: 2; font-size: .84rem; color: var(--gris); }
.orientation-liste a > .ico { grid-column: 3; grid-row: 1 / span 2; color: var(--orange-fonce); transition: transform .25s var(--courbe); }
.orientation-liste a:hover > .ico { transform: translateX(3px); }

.presentation { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.presentation-images { position: relative; }
.presentation-img-1 { width: 100%; aspect-ratio: 5 / 5.4; object-fit: cover; border-radius: var(--r-xl); box-shadow: var(--ombre-2); }
.presentation-badge { position: absolute; right: -18px; bottom: 28px; background: var(--orange); color: var(--nuit); border-radius: var(--r-l); padding: 18px 22px; box-shadow: var(--ombre-3); max-width: 200px; }
.presentation-badge b { display: block; font-size: 2.3rem; line-height: 1; letter-spacing: -.03em; }
.presentation-badge span { font-size: .86rem; font-weight: 500; line-height: 1.35; display: block; margin-top: 6px; }
.presentation-points { list-style: none; display: grid; gap: 14px; margin: 24px 0; }
.presentation-points li { display: flex; gap: 14px; }
.presentation-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--orange-pale); color: var(--orange-fonce); flex: none; }
.presentation-points h3 { font-size: 1rem; margin-bottom: 2px; }
.presentation-points p { margin: 0; font-size: .93rem; color: var(--gris); }
.expertises { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--ligne); margin: 8px 0 28px; }
.expertise { padding: 18px 16px 0 0; }
.expertise + .expertise { padding-left: 16px; border-left: 1px solid var(--ligne); }
.expertise-num { font-size: .78rem; font-weight: 700; color: var(--orange-texte); }
.expertise h3 { font-size: .98rem; margin: 4px 0 6px; }
.expertise h3 a { color: var(--nuit); text-decoration: none; }
.expertise h3 a:hover { color: var(--orange-texte); }
.expertise p { font-size: .86rem; color: var(--gris); margin: 0; }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; }
.service { padding: 28px; border-radius: var(--r-l); background: var(--nuit-2); border: 1px solid rgba(255, 255, 255, .07); transition: border-color .25s, transform .3s var(--courbe); }
.service:hover { border-color: rgba(255, 127, 0, .45); transform: translateY(-3px); }
.service-picto { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: rgba(255, 127, 0, .12); color: var(--orange); margin-bottom: 18px; }
.service-picto .hd-picto { width: 34px; height: 34px; }
.service h3, .service .h3 { font-size: 1.12rem; }
.service p { font-size: .94rem; margin: 0; }
.services-page .service { background: #fff; border-color: var(--ligne); display: flex; flex-direction: column; }
.services-page .service:hover { border-color: #ffd2a3; box-shadow: var(--ombre-2); }
.services-page .service-picto { background: var(--orange-pale); color: var(--orange-fonce); }
.services-page .service p { color: var(--gris); margin-bottom: 18px; }
.services-page .hd-lien-fleche { margin-top: auto; }
.etapes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; margin-top: 56px; counter-reset: etape; }
.etape { position: relative; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); }
.etape-num { position: absolute; top: -17px; left: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--orange); color: var(--nuit); font-weight: 700; font-size: .9rem; box-shadow: 0 0 0 6px var(--nuit); }
.etape h3 { font-size: 1.04rem; margin: 6px 0 8px; }
.etape p { font-size: .9rem; margin: 0 0 12px; }
.etape .hd-lien-fleche { color: #ffc380; font-size: .9rem; }
.etape .hd-lien-fleche:hover { color: #fff; }

.cartes-projets, .cartes-articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.carte-projet, .carte-article { display: flex; flex-direction: column; border-radius: var(--r-l); overflow: hidden; background: #fff; border: 1px solid var(--ligne); transition: box-shadow .3s var(--courbe), transform .3s var(--courbe); }
.carte-projet:hover, .carte-article:hover { box-shadow: var(--ombre-2); transform: translateY(-3px); }
.carte-projet-image, .carte-article-image { position: relative; display: block; overflow: hidden; background: var(--fond-2); }
.carte-projet-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s var(--courbe); }
.carte-article-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--courbe); }
.carte-projet:hover img, .carte-article:hover img { transform: scale(1.04); }
.projet-chiffre { position: absolute; left: 14px; bottom: 14px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; max-width: calc(100% - 28px); padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .94); color: var(--gris); font-size: .8rem; box-shadow: var(--ombre-1); }
.projet-chiffre b { font-size: 1.2rem; color: var(--nuit); letter-spacing: -.02em; }
.projet-chiffre-grand { left: 18px; bottom: 18px; padding: 12px 16px; font-size: .9rem; }
.projet-chiffre-grand b { font-size: 1.6rem; }
.carte-projet-corps, .carte-article-corps { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.carte-projet-cat, .carte-article-date { margin: 0; font-size: .8rem; font-weight: 600; color: var(--orange-texte); }
.carte-projet h3, .carte-projet h2, .carte-article h3, .carte-article h2 { font-size: 1.06rem; line-height: 1.35; margin: 0; }
.carte-projet h3 a, .carte-projet h2 a, .carte-article h3 a, .carte-article h2 a { color: var(--nuit); text-decoration: none; }
.carte-projet h3 a::after, .carte-projet h2 a::after, .carte-article h3 a::after, .carte-article h2 a::after { content: ""; position: absolute; inset: 0; }
.carte-projet, .carte-article { position: relative; }
.carte-projet-corps p, .carte-article-corps p { font-size: .9rem; color: var(--gris); margin: 0; }
.carte-projet-corps .hd-lien-fleche, .carte-article-corps .hd-lien-fleche { margin-top: auto; padding-top: 6px; font-size: .88rem; }

.engagements-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); }
.engagements { list-style: none; display: grid; gap: 0; margin-top: 28px; }
.engagements li { display: grid; grid-template-columns: 56px 1fr; column-gap: 12px; padding: 20px 0; border-top: 1px solid var(--ligne); }
.engagement-num { grid-row: span 2; font-size: 1.5rem; font-weight: 700; color: var(--orange); letter-spacing: -.03em; line-height: 1.2; }
.engagements h3 { font-size: 1.05rem; margin: 0 0 4px; }
.engagements p { margin: 0; color: var(--gris); font-size: .94rem; }
.avis-liste { display: grid; gap: 14px; margin: 20px 0 14px; }
.avis { position: relative; margin: 0; padding: 22px 24px 20px 64px; background: #fff; border-radius: var(--r-l); border: 1px solid var(--ligne); box-shadow: var(--ombre-1); }
.avis-guillemet { position: absolute; left: 20px; top: 8px; font-size: 3.4rem; line-height: 1; color: var(--orange); font-family: Georgia, serif; }
.avis blockquote { margin: 0 0 10px; font-size: 1.02rem; color: var(--nuit); line-height: 1.5; }
.avis figcaption { display: flex; gap: 8px; align-items: baseline; font-size: .86rem; color: var(--gris); }
.avis figcaption b { color: var(--nuit); }
.avis-appel { padding: 18px 22px; border-radius: var(--r-l); border: 1px dashed var(--ligne-forte); }
.avis-appel p { font-size: .9rem; color: var(--gris); margin: 4px 0 8px; }

.partenaires { padding: 36px 0; border-top: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne); }
.partenaires-in { display: flex; align-items: center; gap: 24px 48px; flex-wrap: wrap; }
.partenaires h2 { font-size: .9rem; font-weight: 600; color: var(--gris); letter-spacing: 0; margin: 0; }
.partenaires ul { display: flex; align-items: center; gap: 24px 56px; flex-wrap: wrap; list-style: none; }
.partenaires img { height: 46px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.partenaires li:hover img { filter: none; opacity: 1; }

.conversion { background: var(--nuit-2); color: rgba(255, 255, 255, .8); position: relative; overflow: hidden; isolation: isolate; }
.conversion::before { content: ""; position: absolute; z-index: -1; right: -10%; top: -60%; width: 60%; height: 220%; background: radial-gradient(closest-side, rgba(255, 127, 0, .22), transparent); }
.conversion-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; padding-top: clamp(44px, 6vw, 72px); padding-bottom: clamp(44px, 6vw, 72px); }
.conversion h2 { color: #fff; margin-bottom: .3em; }
.conversion p { margin: 0; max-width: 60ch; }
.conversion-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- 8. cartes produits ---------- */
.hd-produits-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 20px; }
.hd-produit { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ligne); border-radius: var(--r-l); overflow: hidden;
  transition: border-color .25s, box-shadow .3s var(--courbe), transform .3s var(--courbe); }
.hd-produit:hover { border-color: #d6deeb; box-shadow: var(--ombre-2); transform: translateY(-3px); }
.hd-produit-image { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; background: linear-gradient(180deg, #f8faff, #eef2fa); padding: 18px; overflow: hidden; }
.hd-produit-image img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .5s var(--courbe); }
.hd-produit-image.hd-photo { padding: 0; }
.hd-produit-image.hd-photo img { object-fit: cover; mix-blend-mode: normal; }
.hd-produit:hover .hd-produit-image img { transform: scale(1.04); }
.hd-produit-picto { color: var(--orange-fonce); opacity: .9; }
.hd-produit-picto .hd-picto { width: 72px; height: 72px; }
.hd-badge-illustration, .hd-badge-hdelec { position: absolute; left: 10px; bottom: 10px; padding: 3px 9px; border-radius: 999px; font-size: .72rem; font-weight: 600; background: rgba(20, 33, 43, .78); color: #fff; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.hd-badge-hdelec { background: var(--orange); color: var(--nuit); }
.hd-favori { position: absolute; top: 10px; right: 10px; z-index: 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .94); color: var(--nuit); box-shadow: var(--ombre-1); transition: transform .2s var(--courbe), color .2s; }
.hd-favori:hover { transform: scale(1.08); color: var(--orange-texte); }
.hd-favori.actif { color: var(--orange-fonce); }
.hd-favori.actif svg path, .hd-favori-fiche.actif svg path { fill: currentColor; }
.hd-produit-corps { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.hd-produit-cat { font-size: .76rem; font-weight: 600; color: var(--orange-texte); }
.hd-produit-nom { font-size: .98rem; line-height: 1.38; letter-spacing: -.01em; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hd-produit-nom a { color: var(--nuit); text-decoration: none; }
.hd-produit-nom a:hover { color: var(--orange-texte); }
.hd-produit-refs { font-size: .82rem; color: var(--gris); margin: 0; font-variant-numeric: tabular-nums; }
.hd-produit-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--ligne); }
.hd-produit-actions .hd-lien-fleche { font-size: .88rem; }
.hd-produit-actions .hd-btn-petit { min-height: 34px; padding: 0 12px; font-size: .82rem; }
.hd-credit { font-size: .78rem; color: var(--gris); line-height: 1.5; margin: 10px 0 0; }
.hd-credit a { color: inherit; }
.hd-credit-centre { text-align: center; margin-top: 22px; }

/* ---------- 9. catalogue et familles ---------- */
.catalogue { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 36px; padding-top: 36px; padding-bottom: 56px; }
.catalogue-cote { position: sticky; top: 88px; align-self: start; display: grid; gap: 18px; max-height: calc(100vh - 100px); overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
.catalogue-cote-titre { font-size: .8rem; font-weight: 600; color: var(--gris); margin: 0 0 -8px; }
.hd-familles-nav { display: grid; gap: 2px; }
.hd-famille-puce { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 9px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--encre); font-size: .9rem; text-align: left; text-decoration: none; transition: background-color .2s; }
.hd-famille-puce:hover { background: var(--fond); color: var(--nuit); }
.hd-famille-puce.actif { background: var(--nuit); color: #fff; font-weight: 600; }
.hd-nb { display: inline-grid; place-items: center; min-width: 30px; padding: 1px 7px; border-radius: 999px; background: var(--fond-2); color: var(--gris); font-size: .75rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.hd-famille-puce.actif .hd-nb { background: rgba(255, 255, 255, .16); color: #fff; }
.hd-filtres { display: grid; gap: 12px; padding: 16px; border-radius: var(--r-l); background: var(--fond); }
.hd-filtres-titre { font-size: .8rem; font-weight: 600; color: var(--gris); }
.hd-filtre { display: grid; gap: 4px; font-size: .84rem; font-weight: 600; color: var(--nuit); }
.aide-cote { padding: 18px; border-radius: var(--r-l); border: 1px solid var(--ligne); display: grid; gap: 8px; }
.aide-cote-titre { font-weight: 600; color: var(--nuit); margin: 0; }
.aide-cote p:not(.aide-cote-titre) { font-size: .86rem; color: var(--gris); margin: 0 0 4px; }
.hd-outils { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.hd-outils .hd-recherche { position: relative; flex: 1 1 320px; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border: 1px solid var(--ligne-forte); border-radius: 12px; background: #fff; color: var(--gris); }
.hd-outils .hd-recherche:focus-within { border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-voile); }
.hd-outils .hd-recherche input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: none; color: var(--nuit); }
select, .hd-select select, .hd-filtre select { appearance: none; -webkit-appearance: none; height: 48px; padding: 0 38px 0 14px; border: 1px solid var(--ligne-forte); border-radius: 12px; color: var(--nuit); font-size: .92rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2314212b' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center no-repeat; max-width: 100%; }
.hd-filtre select { height: 40px; font-size: .86rem; font-weight: 400; }
select:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 4px var(--orange-voile); }
.hd-select { display: block; }
.hd-bascule { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--fond-2); }
.hd-bascule button { min-height: 40px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; font-size: .88rem; font-weight: 600; color: var(--gris); }
.hd-bascule button.actif { background: #fff; color: var(--nuit); box-shadow: var(--ombre-1); }
.hd-actifs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.hd-actifs-titre { font-size: .84rem; color: var(--gris); }
.hd-actif { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--ligne-forte); background: #fff; font-size: .84rem; color: var(--nuit); }
.hd-actif:hover { border-color: var(--nuit); }
.hd-actif-tout { border-color: transparent; color: var(--orange-texte); font-weight: 600; text-decoration: underline; }
.hd-info { font-size: .88rem; color: var(--gris); margin-bottom: 16px; font-variant-numeric: tabular-nums; }
.hd-plus { display: flex; justify-content: center; margin-top: 24px; }
.hd-vide { padding: 32px; border-radius: var(--r-l); background: var(--fond); text-align: center; color: var(--gris); }
.hd-alerte { padding: 14px 16px; border-radius: var(--r); background: var(--orange-pale); border: 1px solid #ffd6a8; color: #7a3b00; font-size: .92rem; margin-bottom: 14px; }
.acces-fiches { padding-bottom: 56px; }
.acces-fiches h2 { font-size: 1.1rem; margin-bottom: 14px; }
.acces-fiches ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.acces-fiches a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--ligne); color: var(--nuit); text-decoration: none; font-size: .86rem; background: #fff; }
.acces-fiches a:hover { border-color: var(--orange); }
.acces-fiches a span { color: var(--gris); font-size: .78rem; }

/* tableaux de références */
.hd-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9rem; background: #fff; border: 1px solid var(--ligne); border-radius: var(--r); overflow: hidden; }
.hd-table th { background: var(--fond); color: var(--nuit); font-weight: 600; font-size: .8rem; text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--ligne); white-space: nowrap; }
.hd-table td { padding: 12px 14px; border-bottom: 1px solid var(--ligne); vertical-align: middle; }
.hd-table tbody tr:last-child td { border-bottom: 0; }
.hd-table tbody tr:hover td { background: #fbfcff; }
.hd-code { font-weight: 600; color: var(--nuit); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hd-des { overflow-wrap: anywhere; color: var(--encre); min-width: 220px; }
.hd-petit { font-size: .82rem; color: var(--gris); }
.hd-na { color: var(--gris-doux); }
.hd-a-attribuer { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--fond-2); color: var(--gris); font-size: .78rem; font-weight: 600; }
.hd-caracs { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: .78rem; color: var(--gris); }
.hd-caracs b { color: var(--encre); font-weight: 600; }
.hd-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.hd-actions .hd-btn { min-height: 38px; padding: 0 12px; font-size: .85rem; }
.hd-qte, .hd-precision, .hd-champ { height: 38px; padding: 0 10px; border: 1px solid var(--ligne-forte); border-radius: 9px; background: #fff; font-size: .9rem; color: var(--nuit); }
.hd-qte { width: 76px; text-align: center; font-variant-numeric: tabular-nums; }
.hd-qte:focus, .hd-precision:focus, .hd-champ:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 3px var(--orange-voile); }
.hd-comparer { min-height: 38px; padding: 0 10px; border-radius: 9px; border: 1px dashed var(--ligne-forte); background: transparent; color: var(--gris); font-size: .8rem; font-weight: 600; }
.hd-comparer:hover { border-color: var(--nuit); color: var(--nuit); }
.hd-comparer.actif { border-style: solid; border-color: var(--nuit); background: var(--nuit); color: #fff; }
.hd-table-technique { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r); margin-bottom: 28px; }
.hd-table-technique .hd-table { min-width: 720px; }
.hd-col-devis { text-align: right; }
.hd-groupe { font-size: 1.05rem; margin: 0 0 12px; }

/* ---------- 10. fiche produit ---------- */
.fiche-haut { background: linear-gradient(180deg, var(--fond), #fff 70%); padding: 22px 0 8px; }
.fiche { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; padding-bottom: 24px; }
.fiche-media { position: sticky; top: 92px; }
.fiche-photo { margin: 0; }
.fiche-photo-cadre { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; padding: clamp(18px, 4vw, 44px); border-radius: var(--r-xl); background: #fff; border: 1px solid var(--ligne); overflow: hidden; box-shadow: var(--ombre-1); }
.fiche-photo-cadre img { width: 100%; height: 100%; object-fit: contain; }
.fiche-photo-cadre.photo-couvre { padding: 0; }
.fiche-photo-cadre.photo-couvre img { object-fit: cover; }
.fiche-photo-cadre .hd-badge-illustration, .fiche-photo-cadre .hd-badge-hdelec { left: 16px; bottom: 16px; font-size: .78rem; padding: 5px 11px; }
.fiche-picto { color: var(--orange-fonce); background: linear-gradient(180deg, #fff, var(--fond)); }
.fiche-picto .hd-picto { width: 40%; height: auto; }
.fiche-galerie { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.fiche-vue { width: 84px; height: 66px; padding: 0; border-radius: 10px; border: 2px solid transparent; background: var(--fond); overflow: hidden; }
.fiche-vue img { width: 100%; height: 100%; object-fit: cover; }
.fiche-vue.actif { border-color: var(--orange); }
.fiche-info h1 { font-size: clamp(1.65rem, 1.25rem + 1.4vw, 2.4rem); margin: 6px 0 14px; overflow-wrap: anywhere; }
.fiche-h1-seul { margin: 0 0 20px; }
.fiche-puces { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.puce-info { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; background: var(--fond-2); color: var(--nuit); font-size: .84rem; font-weight: 500; }
.puce-info .ico { color: var(--orange-fonce); }
.puce-codes { font-variant-numeric: tabular-nums; color: var(--gris); }
.puce-nouveau { background: var(--orange); color: var(--nuit); font-weight: 600; }
.fiche-intro { color: var(--encre); font-size: 1.02rem; margin-bottom: 22px; }
.fiche-actions { display: grid; gap: 12px; padding: 20px; border-radius: var(--r-l); background: #fff; border: 1px solid var(--ligne); box-shadow: var(--ombre-1); margin-bottom: 14px; }
.fiche-actions .btn-grand { width: 100%; }
.fiche-actions-sec { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qte-ajout { display: flex; gap: 10px; }
.qte-ajout .hd-qte { height: 54px; width: 90px; border-radius: 12px; font-size: 1rem; }
.qte-ajout .btn { flex: 1; }
.hd-precision-technique { display: inline-flex; align-items: center; gap: 8px; justify-self: center; font-size: .88rem; font-weight: 600; color: var(--nuit); text-decoration: none; }
.hd-precision-technique:hover { color: var(--orange-texte); }
.hd-lien-assistant { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--r); background: var(--orange-pale); color: #7a3b00; font-weight: 600; font-size: .9rem; text-decoration: none; margin-bottom: 14px; }
.hd-lien-assistant:hover { background: #ffe9d1; color: var(--nuit); }
.fiche-garanties { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 14px; }
.fiche-garanties li { display: grid; gap: 6px; padding: 12px; border-radius: var(--r); background: var(--fond); font-size: .8rem; line-height: 1.4; color: var(--encre); }
.fiche-garanties .ico { color: var(--orange-fonce); }
.hd-docs { border-radius: var(--r); border: 1px solid var(--ligne); padding: 14px 16px; }
.hd-docs-titre { font-size: .8rem; font-weight: 600; color: var(--gris); margin: 0 0 6px; }
.hd-doc { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 6px 0; font-size: .92rem; color: var(--nuit); }
.hd-doc > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.hd-doc a { font-weight: 600; font-size: .88rem; }
.hd-a-venir { font-size: .8rem; color: var(--gris); }
.section-fiche { margin-top: clamp(40px, 6vw, 72px); }
.titre-gauche { max-width: 760px; }
.famille-rappel-in { display: flex; gap: 20px; padding: 24px; border-radius: var(--r-l); background: var(--fond); align-items: flex-start; }
.famille-rappel-picto { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; background: #fff; color: var(--orange-fonce); flex: none; box-shadow: var(--ombre-1); }
.famille-rappel h2 { font-size: 1.2rem; margin-bottom: 6px; }
.famille-rappel p { color: var(--gris); font-size: .94rem; margin-bottom: 10px; }
.page-fiche .conversion { margin-top: clamp(48px, 7vw, 88px); }
.hd-legende { margin-top: -12px; }

/* ---------- 11. assistant de choix ---------- */
.assistant-section { background: var(--fond); }
.assistant-carte { background: #fff; border-radius: var(--r-xl); border: 1px solid var(--ligne); box-shadow: var(--ombre-1); padding: clamp(20px, 4vw, 40px); }
.hd-assistant-intro { color: var(--gris); }
.hd-etapes-assistant { display: flex; gap: 6px; list-style: none; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; scrollbar-width: thin; }
.hd-etapes-assistant li { display: flex; align-items: center; gap: 8px; flex: none; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--fond); color: var(--gris); font-size: .82rem; }
.hd-etape-num { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 1px solid var(--ligne-forte); font-weight: 700; font-size: .75rem; }
.hd-etapes-assistant .fait { color: var(--nuit); }
.hd-etapes-assistant .fait .hd-etape-num { background: var(--nuit); color: #fff; border-color: var(--nuit); }
.hd-etapes-assistant .encours { background: var(--orange-pale); color: var(--nuit); font-weight: 600; }
.hd-etapes-assistant .encours .hd-etape-num { background: var(--orange); border-color: var(--orange); color: var(--nuit); }
.hd-etape-compteur { font-size: .82rem; color: var(--gris); margin: 4px 0 18px; }
.hd-assistant-q { font-size: 1.3rem; margin-bottom: 6px; }
.hd-aide { color: var(--gris); }
.hd-applications { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.hd-application { display: grid; gap: 4px; text-align: left; padding: 18px 20px; border-radius: var(--r-l); border: 1.5px solid var(--ligne-forte); background: #fff; transition: border-color .2s, box-shadow .2s; }
.hd-application strong { color: var(--nuit); font-size: 1.02rem; }
.hd-application span { color: var(--gris); font-size: .88rem; }
.hd-application:hover { border-color: var(--nuit); }
.hd-application.actif { border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-voile); }
.hd-puces { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.hd-puce { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--ligne-forte); background: #fff; color: var(--nuit); font-size: .9rem; }
.hd-puce:hover { border-color: var(--nuit); }
.hd-puce.actif { background: var(--nuit); border-color: var(--nuit); color: #fff; }
.hd-puce.actif .hd-nb { background: rgba(255, 255, 255, .16); color: #fff; }
.hd-puce[disabled] { opacity: .45; cursor: not-allowed; }
.hd-assistant-nav { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--ligne); }
.hd-criteres { display: grid; gap: 16px; }
.hd-critere-titre { display: block; font-weight: 600; color: var(--nuit); font-size: .92rem; margin-bottom: 6px; }
.hd-champ { width: 100%; max-width: 360px; height: 44px; }
.hd-recap-assistant { display: grid; gap: 0; margin: 14px 0; border: 1px solid var(--ligne); border-radius: var(--r); overflow: hidden; }
.hd-recap-assistant > div { display: grid; grid-template-columns: 220px 1fr; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--ligne); }
.hd-recap-assistant > div:last-child { border-bottom: 0; }
.hd-recap-assistant dt { font-weight: 600; color: var(--nuit); font-size: .9rem; }
.hd-recap-assistant dd { margin: 0; font-size: .92rem; }
.hd-lien-modifier { margin-left: 8px; border: 0; background: none; color: var(--orange-texte); font-weight: 600; text-decoration: underline; font-size: .85rem; }
.hd-niveau { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.hd-niveau-num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--nuit); color: #fff; font-weight: 700; font-size: .82rem; flex: none; }
.hd-justif { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; font-size: .78rem; }
.hd-ok { color: var(--vert); }
.hd-nv { color: #8a5300; }
.hd-details, .hd-verifs, .hd-recap-tech, .hd-import { border: 1px solid var(--ligne); border-radius: var(--r); padding: 12px 16px; margin: 14px 0; background: #fff; }
.hd-details summary, .hd-verifs summary, .hd-recap-tech summary, .hd-import summary { cursor: pointer; font-weight: 600; color: var(--nuit); font-size: .92rem; }
.hd-verifs summary { display: flex; gap: 12px; align-items: flex-start; list-style: none; }
.hd-verifs summary::-webkit-details-marker { display: none; }
.hd-details ul { padding-left: 18px; margin-top: 10px; font-size: .86rem; color: var(--encre); display: grid; gap: 6px; }
.hd-points { list-style: none; display: grid; gap: 10px; margin-top: 12px; }
.hd-point { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; padding: 10px 0; border-top: 1px solid var(--ligne); }
.hd-etat { flex: none; padding: 3px 9px; border-radius: 999px; font-size: .74rem; font-weight: 600; white-space: nowrap; }
.hd-etat.ok { background: var(--vert-pale); color: var(--vert); }
.hd-etat.info { background: #eef4ff; color: var(--bleu-info); }
.hd-etat.attente { background: #fff7e6; color: #8a5300; }
.hd-etat.alerte { background: var(--rouge-pale); color: var(--rouge); }
.hd-regle { font-size: .74rem; color: var(--gris); }
.hd-niveau3-note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); background: var(--fond); font-size: .9rem; }
.hd-sur-mesure { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 20px; border-radius: var(--r-l); background: var(--nuit); color: rgba(255, 255, 255, .8); margin-top: 18px; }
.hd-sur-mesure strong { color: #fff; }
.hd-sur-mesure .hd-petit { color: rgba(255, 255, 255, .7); }
.hd-trace { font-size: .76rem; color: var(--gris); margin-top: 18px; }

/* comparateur */
.hd-barre-cmp { position: fixed; z-index: 70; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; max-width: calc(100% - 24px);
  padding: 10px 12px 10px 18px; border-radius: 16px; background: var(--nuit); color: #fff; box-shadow: var(--ombre-3); font-size: .88rem; }
.hd-barre-cmp-titre { font-weight: 600; }
.hd-barre-cmp-liste { display: flex; gap: 6px; flex-wrap: wrap; }
.hd-barre-cmp .hd-actif { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); color: #fff; }
.hd-barre-cmp-actions { display: flex; gap: 6px; }
.hd-avec-barre-cmp .wa-flottant { bottom: 92px; }
.hd-dialogue { width: min(680px, calc(100% - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: var(--r-xl); box-shadow: var(--ombre-3); color: var(--encre); }
.hd-dialogue-large { width: min(1040px, calc(100% - 24px)); }
.hd-dialogue::backdrop { background: rgba(20, 33, 43, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.hd-dialogue-tete { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; background: #fff; border-bottom: 1px solid var(--ligne); }
.hd-dialogue-tete h2 { font-size: 1.15rem; margin: 0; }
.hd-dialogue-fermer { width: 40px; height: 40px; border-radius: 10px; border: 0; background: var(--fond); font-size: 1.4rem; line-height: 1; color: var(--nuit); }
.hd-dialogue-corps { padding: 20px 22px; }
.hd-dialogue-pied { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; padding: 14px 22px; background: #fff; border-top: 1px solid var(--ligne); }
.hd-cmp-defile { overflow-x: auto; }
.hd-table-cmp th[scope="row"] { background: var(--fond); white-space: normal; min-width: 140px; }
.hd-diff td { background: #fffaf2; }
.hd-diff-marque { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--orange-pale); color: var(--orange-texte); font-size: .7rem; }
.hd-cmp-retirer { margin-left: 6px; border: 0; background: none; color: var(--gris); font-size: 1.1rem; }
.hd-verif-contact { padding: 12px 14px; border-radius: var(--r); background: var(--fond); }
.hd-verif-suite { font-size: .88rem; color: var(--gris); }

/* ---------- 12. formulaires, devis et contact ---------- */
.carte-formulaire, .carte-panier { background: #fff; border-radius: var(--r-xl); border: 1px solid var(--ligne); box-shadow: var(--ombre-2); padding: clamp(20px, 3.5vw, 36px); }
.formulaire-intro { color: var(--gris); margin-top: -6px; }
.formulaire fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.formulaire legend { font-weight: 700; color: var(--nuit); font-size: 1.02rem; margin-bottom: 14px; padding: 0; }
.form-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.form-large { grid-column: 1 / -1; }
.form-group { display: grid; gap: 6px; align-content: start; }
.hd-label { font-size: .86rem; font-weight: 600; color: var(--nuit); }
.formulaire input[type="text"], .formulaire input[type="email"], .formulaire input[type="tel"], .formulaire textarea, .hd-import textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--ligne-forte); border-radius: 11px; background: #fff; color: var(--nuit); font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.formulaire textarea, .hd-import textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.formulaire input::placeholder, .formulaire textarea::placeholder { color: #9aa1b2; }
.formulaire input:focus, .formulaire textarea:focus, .hd-import textarea:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 4px var(--orange-voile); }
.hd-erreur input, .hd-erreur textarea { border-color: var(--rouge) !important; background: var(--rouge-pale); }
.hd-msg-erreur { color: var(--rouge); font-size: .84rem; font-weight: 500; }
.hd-champs-note { font-size: .82rem; color: var(--gris); margin: 4px 0 14px; }
.hd-accord label { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--encre); cursor: pointer; }
.hd-accord input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--orange-fonce); flex: none; }
.form-envoi { margin-top: 12px; }
.form-envoi .btn { width: 100%; }
.hd-etat-envoi { padding: 14px 16px; border-radius: var(--r); background: var(--rouge-pale); border: 1px solid #fecdca; color: var(--rouge); font-size: .92rem; margin: 10px 0; }
.hd-resume-envoi { padding: 12px 14px; border-radius: var(--r); background: var(--fond); font-size: .88rem; color: var(--encre); margin: 10px 0 0; }
.devis-grille { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
.devis-articles { display: grid; gap: 16px; }
.carte-panier { box-shadow: var(--ombre-1); }
.carte-panier-tete { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.carte-panier-tete h2 { display: inline-flex; align-items: center; gap: 10px; margin: 0; }
.carte-panier-tete h2 .ico { color: var(--orange-fonce); }
.hd-panier-titre { font-weight: 600; color: var(--nuit); margin-bottom: 10px; }
.hd-table-devis td { vertical-align: top; }
.hd-table-devis .hd-actions { flex-direction: column; align-items: flex-end; }
.hd-qte-unite { display: flex; align-items: center; gap: 6px; }
.hd-unite { font-size: .8rem; color: var(--gris); }
.hd-precision { width: 100%; margin-top: 8px; height: 36px; font-size: .85rem; }
#hd-vider { margin-top: 12px; }
.hd-import { background: var(--fond); }
.hd-import label { display: block; margin: 10px 0 6px; }
.hd-import .hd-btn { margin-top: 10px; }
.hd-import-res { font-size: .86rem; color: var(--gris); margin-top: 8px; }
.hd-historique { margin-top: 16px; padding: 16px; border-radius: var(--r); border: 1px solid var(--ligne); }
.hd-historique .hd-doc { border-top: 1px solid var(--ligne); padding: 10px 0; }
.hd-historique-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.hd-historique-actions .hd-btn { min-height: 34px; font-size: .8rem; padding: 0 10px; }
.devis-aide { padding: 18px 20px; border-radius: var(--r-l); background: var(--fond); font-size: .9rem; }
.devis-aide p { margin: 0 0 6px; }
.devis-aide a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.hd-confirmation { padding: clamp(20px, 3vw, 32px); border-radius: var(--r-xl); border: 1px solid var(--vert-ligne); background: #fff; box-shadow: var(--ombre-2); }
.hd-confirmation.hd-demo { border-color: #ffd6a8; }
.hd-conf-tete { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.hd-conf-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--vert-pale); color: var(--vert); flex: none; }
.hd-demo .hd-conf-ico { background: var(--orange-pale); color: var(--orange-texte); }
.hd-conf-num { font-size: .82rem; font-weight: 600; color: var(--gris); }
.hd-conf-tete h3 { margin: 2px 0 0; }
.hd-recap { white-space: pre-wrap; padding: 14px 16px; border-radius: var(--r); background: var(--fond); font-size: .86rem; margin: 14px 0; max-height: 280px; overflow-y: auto; }
.hd-conf-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hd-etapes { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 8px 0 14px; font-size: .88rem; }
.hd-etapes li { display: inline-flex; align-items: center; gap: 8px; color: var(--gris); }
.hd-etapes span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--fond-2); font-weight: 700; font-size: .75rem; }
.hd-etapes .fait { color: var(--vert); font-weight: 600; }
.hd-etapes .fait span { background: var(--vert); color: #fff; }

.contact-grille { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
.contact-infos { display: grid; gap: 10px; }
.contact-carte { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r-l); background: #fff; border: 1px solid var(--ligne); color: var(--encre); text-decoration: none; font-size: .94rem; transition: border-color .2s, box-shadow .2s; }
a.contact-carte:hover { border-color: #ffd2a3; box-shadow: var(--ombre-2); color: var(--encre); }
.contact-carte b { display: block; color: var(--nuit); font-size: .84rem; }
.contact-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--orange-pale); color: var(--orange-fonce); flex: none; }
.contact-ico-wa { background: var(--vert-pale); color: var(--vert); }
.contact-raccourcis { margin-top: 8px; padding: 18px; border-radius: var(--r-l); background: var(--fond); }
.contact-raccourcis p { font-size: .88rem; color: var(--gris); }

/* ---------- 13. textes, articles, projets, FAQ ---------- */
.prose { color: var(--encre); }
.prose p, .prose li { line-height: 1.7; }
.prose h2 { font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); margin: 1.8em 0 .5em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.5em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; display: grid; gap: 6px; }
.prose ul li::marker { color: var(--orange); }
.prose a { color: var(--orange-texte); text-decoration: underline; }
.prose-grande p { font-size: 1.05rem; }
.prose-article { font-size: 1.06rem; max-width: 70ch; }
.liste-coches { list-style: none; padding: 0 !important; display: grid; gap: 8px; }
.liste-coches li { position: relative; padding-left: 28px; }
.liste-coches li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%; background: var(--orange-pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23b05300' stroke-width='3' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 10px no-repeat; }
.liste-atouts { list-style: none; display: grid; gap: 10px; }
.liste-atouts li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); background: #fff; border: 1px solid var(--ligne); }
.liste-atouts .ico { color: var(--orange-fonce); margin-top: 2px; }
.deux-colonnes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 64px); align-items: center; }
.deux-colonnes-haut { align-items: start; }
.image-arrondie { margin: 0; }
.image-arrondie img { width: 100%; border-radius: var(--r-xl); box-shadow: var(--ombre-2); }
.image-projet { position: relative; margin-bottom: 24px; }
.image-projet img { aspect-ratio: 16 / 9; object-fit: cover; }
.image-article { margin-bottom: 28px; max-width: 520px; }
.article-grille { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 5vw, 64px); align-items: start; }
.article-cote { position: sticky; top: 92px; display: grid; gap: 16px; }
.carte-cote { padding: 22px; border-radius: var(--r-l); border: 1px solid var(--ligne); background: #fff; }
.carte-cote h2 { margin-bottom: 12px; }
.carte-cote-sombre { background: var(--nuit); border-color: var(--nuit); color: rgba(255, 255, 255, .78); display: grid; gap: 10px; }
.carte-cote-sombre h2 { color: #fff; margin: 0; }
.carte-cote-sombre p { font-size: .9rem; margin: 0 0 4px; }
.liste-liens { list-style: none; display: grid; }
.liste-liens a { display: block; padding: 10px 0; border-top: 1px solid var(--ligne); color: var(--nuit); text-decoration: none; font-size: .92rem; font-weight: 500; line-height: 1.4; }
.liste-liens li:first-child a { border-top: 0; padding-top: 0; }
.liste-liens a:hover { color: var(--orange-texte); }
.article-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--ligne); }
.projet-infos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0 0 24px; border: 1px solid var(--ligne); border-radius: var(--r); overflow: hidden; }
.projet-infos > div { padding: 14px 16px; border-left: 1px solid var(--ligne); }
.projet-infos > div:first-child { border-left: 0; }
.projet-infos dt { font-size: .78rem; font-weight: 600; color: var(--gris); }
.projet-infos dd { margin: 2px 0 0; font-weight: 600; color: var(--nuit); }
.puces-liens { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0 !important; margin: 10px 0 16px; }
.puce-lien { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--ligne); background: #fff; color: var(--nuit) !important; text-decoration: none !important; font-size: .88rem; }
.puce-lien:hover { border-color: var(--orange); }
.puce-lien .hd-picto { width: 18px; height: 18px; color: var(--orange-fonce); }
.galerie { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.galerie figure { margin: 0; background: #fff; border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--ligne); }
.galerie img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.galerie figcaption { padding: 12px 16px; font-size: .86rem; color: var(--gris); }
.galerie-note { margin-top: 20px; color: var(--gris); }
.faq { border-top: 1px solid var(--ligne); }
.hd-question { border-bottom: 1px solid var(--ligne); }
.hd-question summary { position: relative; display: block; padding: 20px 48px 20px 0; font-weight: 600; font-size: 1.05rem; color: var(--nuit); cursor: pointer; list-style: none; }
.hd-question summary::-webkit-details-marker { display: none; }
.hd-question summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--fond); color: var(--orange-texte); font-weight: 500; font-size: 1.2rem; transition: transform .25s; }
.hd-question[open] summary::after { content: "−"; background: var(--orange); color: var(--nuit); }
.hd-question summary:hover { color: var(--orange-texte); }
.hd-reponse { padding: 0 48px 22px 0; color: var(--encre); line-height: 1.7; }
.faq-aide { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 36px; padding: 22px 24px; border-radius: var(--r-l); background: var(--fond); }
.faq-aide h2 { margin: 0 0 4px; }
.faq-aide p { margin: 0; color: var(--gris); }
.faq-aide-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hd-note { padding: 14px 16px; border-radius: var(--r); background: var(--orange-pale); border: 1px solid #ffd6a8; color: #7a3b00; }
.hd-a-completer { padding: 1px 6px; border-radius: 5px; background: #ffe7cc; color: #7a3b00; font-weight: 600; }
.introuvable { text-align: left; }

/* ---------- 14. pied de page ---------- */
.pied { background: var(--nuit); color: rgba(255, 255, 255, .7); font-size: .92rem; }
.pied-grille { display: grid; grid-template-columns: 1.35fr 1fr .8fr 1.15fr; gap: 40px; padding-top: clamp(48px, 7vw, 80px); padding-bottom: 40px; }
.pied h2 { color: #fff; font-size: .95rem; font-weight: 600; letter-spacing: 0; margin: 0 0 16px; }
.pied ul { list-style: none; display: grid; gap: 9px; }
.pied a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.pied a:hover { color: #fff; text-decoration: underline; }
.pied-logo img { height: 64px; width: auto; margin-bottom: 18px; }
.pied-marque p { margin-bottom: 14px; max-width: 42ch; }
.pied-lien-fort { display: inline-flex; align-items: center; gap: 8px; color: #ffc380 !important; font-weight: 600; }
.pied-suivre { margin: 22px 0 8px; color: #fff; font-weight: 600; font-size: .88rem; }
.reseaux-pied a { width: 38px; height: 38px; background: rgba(255, 255, 255, .07); color: #fff; }
.reseaux-pied a:hover { background: var(--orange); color: var(--nuit); }
.pied-contact li { display: flex; gap: 10px; align-items: flex-start; }
.pied-contact .ico { color: var(--orange); margin-top: 2px; }
.pied-bas { display: flex; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .82rem; color: rgba(255, 255, 255, .55); }
.pied-bas p { margin: 0; }

/* ---------- 15. éléments flottants ---------- */
.wa-flottant { position: fixed; right: 20px; bottom: 20px; z-index: 65; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff;
  box-shadow: 0 10px 24px -8px rgba(23, 156, 78, .65); transition: transform .25s var(--courbe), bottom .25s; }
.wa-flottant:hover { transform: scale(1.06); color: #fff; }
.hd-toast { position: fixed; z-index: 140; left: 50%; bottom: 24px; transform: translate(-50%, 20px); max-width: min(560px, calc(100% - 24px)); padding: 14px 18px; border-radius: 14px; background: var(--nuit); color: #fff;
  box-shadow: var(--ombre-3); font-size: .92rem; opacity: 0; pointer-events: none; transition: opacity .25s, transform .3s var(--courbe); display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hd-toast.visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.hd-toast a { color: #ffc380; font-weight: 600; }
.hd-toast.alerte { background: #7a2e0e; }
.hd-consentement { position: fixed; z-index: 90; left: 16px; bottom: 16px; max-width: 420px; padding: 18px; border-radius: var(--r-l); background: #fff; border: 1px solid var(--ligne); box-shadow: var(--ombre-3); font-size: .88rem; }
.hd-consentement p { margin: 0 0 12px; color: var(--encre); }
.hd-consentement > div { display: flex; gap: 8px; justify-content: flex-end; }
.hd-consentement .hd-btn { min-height: 40px; }
.hd-barre-devis { display: none; }

/* apparitions (assets/interface.js ; jamais sur le contenu déjà visible au chargement) */
.apparition { opacity: 0; transform: translateY(16px); transition: opacity .6s ease var(--retard, 0ms), transform .7s var(--courbe) var(--retard, 0ms); }
.apparition.vu { opacity: 1; transform: none; }

/* ---------- 16. adaptatif ---------- */
@media (max-width: 1200px) {
  .nav-principale > ul > li > a { padding: 10px 9px; font-size: .9rem; }
  .entete-in { gap: 18px; }
  .familles { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1100px) {
  .nav-principale { display: none; }
  .menu-btn { display: inline-grid; }
  .entete-actions { margin-left: auto; }
  .pied-grille { grid-template-columns: 1fr 1fr; }
  .catalogue { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 24px; }
  .catalogue-cote { position: static; max-height: none; overflow: visible; padding: 0; }
  .catalogue-cote-titre, .aide-cote { display: none; }
  .hd-familles-nav { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
  .hd-famille-puce { width: auto; flex: none; white-space: nowrap; border: 1px solid var(--ligne); border-radius: 999px; padding: 7px 12px; }
  .hd-filtres { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); align-items: end; }
  .article-grille { grid-template-columns: minmax(0, 1fr); }
  .article-cote { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 980px) {
  .barre-info { display: none; }
  .chiffres-liste { grid-template-columns: repeat(2, 1fr); }
  .chiffres-liste li:nth-child(3) { border-left: 0; }
  .chiffres-liste li:nth-child(n + 3) { border-top: 1px solid var(--ligne); }
  .orientation, .presentation, .engagements-grille, .deux-colonnes, .fiche, .devis-grille, .contact-grille, .conversion-in { grid-template-columns: minmax(0, 1fr); }
  .presentation-images { max-width: 520px; }
  .presentation-badge { right: 12px; }
  .services, .cartes-projets, .cartes-articles { grid-template-columns: repeat(2, 1fr); }
  .etapes { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .fiche-media { position: static; }
  .fiche-photo-cadre { aspect-ratio: 4 / 3; }
  .mega { display: none; }
}
@media (max-width: 760px) {
  :root { --entete-h: 64px; }
  .logo img { height: 42px; }
  .a-defile .logo img { height: 38px; }
  .btn-devis-txt { display: none; }
  .btn-devis { padding: 0 12px; margin-left: 2px; }
  .entete-actions { gap: 2px; }
  .hero { min-height: 0; padding: 48px 0 112px; }
  .hero h1 { max-width: none; }
  .hero-fond img { object-position: 62% 50%; }
  .hero::after { background: linear-gradient(180deg, rgba(20, 33, 43, .75), rgba(20, 33, 43, .92) 70%); }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-recherche { flex-direction: column; }
  .hero-recherche .btn { width: 100%; }
  .chiffres-liste li { padding: 18px 16px; }
  .familles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .famille { padding: 16px; }
  .famille-desc { display: none; }
  .famille-picto { width: 46px; height: 46px; margin-bottom: 6px; }
  .orientation-liste, .services, .cartes-projets, .cartes-articles, .galerie, .form-grille { grid-template-columns: minmax(0, 1fr); }
  .expertises { grid-template-columns: minmax(0, 1fr); }
  .expertise + .expertise { padding-left: 0; border-left: 0; border-top: 1px solid var(--ligne); margin-top: 14px; }
  .etapes { grid-template-columns: minmax(0, 1fr); }
  .hd-produits-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .hd-produit-image { padding: 10px; }
  .hd-produit-corps { padding: 12px 12px 14px; }
  .hd-produit-nom { font-size: .9rem; }
  .hd-produit-actions { flex-direction: column; align-items: stretch; gap: 8px; }
  .hd-produit-actions .hd-btn-petit { width: 100%; }
  .hd-favori { width: 34px; height: 34px; top: 8px; right: 8px; }
  .pied-grille { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .fiche-garanties { grid-template-columns: minmax(0, 1fr); }
  .fiche-garanties li { grid-template-columns: auto 1fr; align-items: center; gap: 10px; }
  .fiche-actions-sec { grid-template-columns: minmax(0, 1fr); }
  .hd-outils .hd-recherche { flex-basis: 100%; }
  .hd-outils .hd-select { flex: 1 1 calc(50% - 5px); }
  .hd-outils .hd-select select { width: 100%; }
  .hd-bascule { width: 100%; }
  .hd-bascule button { flex: 1; }
  .hd-applications { grid-template-columns: minmax(0, 1fr); }
  .hd-recap-assistant > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .projet-infos { grid-template-columns: minmax(0, 1fr); }
  .projet-infos > div { border-left: 0; border-top: 1px solid var(--ligne); }
  .projet-infos > div:first-child { border-top: 0; }
  .ariane li[aria-current] { max-width: 26ch; }
  .famille-rappel-in { flex-direction: column; }
  /* tableaux en cartes sur téléphone */
  .hd-table-technique .hd-table { min-width: 0; }
  .hd-table-tech thead, .hd-table-devis thead { display: none; }
  .hd-table-tech, .hd-table-tech tbody, .hd-table-tech tr, .hd-table-tech td,
  .hd-table-devis, .hd-table-devis tbody, .hd-table-devis tr, .hd-table-devis td { display: block; width: 100%; }
  .hd-table-tech tr, .hd-table-devis tr { padding: 12px 14px; border-bottom: 1px solid var(--ligne); }
  .hd-table-tech td { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; padding: 4px 0; border: 0; font-size: .86rem; }
  .hd-table-tech td::before { content: attr(data-label); font-weight: 600; color: var(--gris); font-size: .78rem; }
  .hd-table-tech td.hd-des { min-width: 0; }
  .hd-table-tech td.hd-col-devis { grid-template-columns: minmax(0, 1fr); margin-top: 8px; }
  .hd-table-tech td.hd-col-devis::before { display: none; }
  .hd-table-tech .hd-actions, .hd-table-devis .hd-actions { justify-content: flex-start; flex-direction: row; align-items: center; }
  .hd-table-devis td { padding: 4px 0; border: 0; }
  .hd-col-cache { display: none; }
  .hd-table:not(.hd-table-tech):not(.hd-table-devis) th:last-child, .hd-table:not(.hd-table-tech):not(.hd-table-devis) td:last-child { width: 1%; }
  .catalogue .hd-table:not(.hd-table-tech) .hd-actions { flex-direction: column; align-items: stretch; }
  .catalogue .hd-table .hd-qte { width: 64px; }
  .hd-des { min-width: 0; }
  .hd-barre-devis { position: fixed; z-index: 64; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--nuit); color: #fff; text-decoration: none; font-size: .92rem; box-shadow: 0 -8px 24px -12px rgba(20, 33, 43, .5); }
  .hd-barre-devis strong { color: #ffc380; }
  .hd-barre-devis:hover { color: #fff; }
  body:has(.hd-barre-devis) .wa-flottant { bottom: 84px; }
  body:has(.hd-barre-devis) .pied { padding-bottom: 60px; }
  body:has(.hd-barre-devis) .hd-barre-cmp { bottom: 74px; }
  .wa-flottant { width: 52px; height: 52px; right: 14px; bottom: 14px; }
  .hd-consentement { left: 10px; right: 10px; bottom: 10px; max-width: none; }
  .recherche-globale-form { flex-wrap: wrap; }
  .recherche-globale-form .champ-recherche { flex-basis: calc(100% - 56px); order: 1; }
  .recherche-globale-form [data-fermer-recherche] { order: 2; }
  .recherche-globale-form .btn { order: 3; width: 100%; }
  .conversion-actions .btn { flex: 1 1 100%; }
  .bandeau-actions .btn { flex: 1 1 auto; }
  .hd-barre-cmp { left: 12px; right: 12px; transform: none; justify-content: space-between; }
}
@media (max-width: 420px) {
  .hd-produits-grille { grid-template-columns: minmax(0, 1fr); }
  .hd-produit { flex-direction: row; }
  .hd-produit-image { width: 38%; aspect-ratio: auto; min-height: 140px; flex: none; }
  .hd-produit-corps { padding-right: 46px; }
  .hd-produit-image img { position: absolute; inset: 0; padding: inherit; }
  .hd-produit-image.hd-photo img { padding: 0; }
  .familles { grid-template-columns: minmax(0, 1fr); }
  .famille { flex-direction: row; align-items: center; gap: 12px; }
  .famille-picto { margin: 0; }
  .famille-nb { margin: 0 0 0 auto; padding: 0; font-size: .8rem; white-space: nowrap; }
  .famille-nom { font-size: .96rem; }
  .chiffres-liste b { font-size: 1.45rem; }
}
@media print {
  .barre-info, .entete, .tiroir, .recherche-globale, .wa-flottant, .hd-consentement, .conversion, .pied, .hd-barre-devis, .hd-barre-cmp { display: none !important; }
  .bandeau { background: none; color: #000; padding: 0; }
  .bandeau::before, .bandeau::after { display: none; }
  .bandeau h1 { color: #000; }
}

/* colonne « Devis » des tableaux : quantité, ajout et comparaison sur une ligne (ordinateur) */
@media (min-width: 761px) {
  .hd-table-tech .hd-actions, .catalogue .hd-table .hd-actions { flex-wrap: nowrap; }
  .hd-table-tech td.hd-col-devis { white-space: nowrap; width: 1%; }
}
/* catalogue et familles : bandeau plus compact, les produits remontent dans le premier écran */
.bandeau-categorie { padding: 22px 0 30px; }
.bandeau-categorie h1 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.5rem); max-width: none; }
.bandeau-categorie .chapo { font-size: 1rem; }
.bandeau-categorie .bandeau-stats { margin-top: 16px; }
.bandeau-categorie .bandeau-actions { margin-top: 16px; }
.bandeau-categorie .ariane ol { margin-bottom: 12px; }
.bandeau-categorie .surtitre { margin-bottom: 8px; }

/* boutons longs (fiche, conversion) : retour à la ligne plutôt que débordement sur petit écran */
.fiche-actions .btn, .conversion-actions .btn, .hd-conf-actions .btn, .tiroir-contact .btn { white-space: normal; text-align: center; }
.fiche-info, .fiche-actions, .fiche-actions-sec > * { min-width: 0; }
@media (max-width: 760px) {
  .ariane li[aria-current] { display: block; }
  .ariane li[aria-current]::before { margin-right: 6px; }
}

/* critique accueil (passe 1) */
.code-court { white-space: nowrap; }
.page-accueil .hd-produits-grille, .section-fiche .hd-produits-grille { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.presentation > .expertises { grid-column: 1 / -1; margin: 8px 0 0; }
@media (max-width: 980px) {
  .page-accueil .hd-produits-grille, .section-fiche .hd-produits-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .orientation { gap: 8px; }
}
@media (max-width: 760px) { .hero-recherche .hd-recherche { flex: none; } }
@media (max-width: 420px) { .page-accueil .hd-produits-grille, .section-fiche .hd-produits-grille { grid-template-columns: minmax(0, 1fr); } }

/* critique catalogue (passe 1) : un seul orange par carte au plus, l'ajout devient un bouton secondaire */
.hd-produit-actions .hd-btn { background: #fff; color: var(--nuit); border-color: var(--ligne-forte); box-shadow: none; }
.hd-produit-actions .hd-btn:hover { background: var(--orange); border-color: var(--orange); color: var(--nuit); }

/* critique familles sur téléphone (passe 1) : produits plus haut, moins de répétitions */
body[data-cat] .hd-produit-cat { display: none; }
@media (max-width: 1100px) {
  .hd-filtres { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; padding: 12px; }
  .hd-filtres-titre, #hd-effacer-filtres { grid-column: 1 / -1; }
  .hd-filtre select { height: 40px; width: 100%; }
}
@media (max-width: 760px) {
  .bandeau-categorie .bandeau-actions .btn-transparent, .bandeau-categorie .bandeau-stats span:nth-child(3) { display: none; }
  .bandeau-categorie .bandeau-actions .btn { flex: 1 1 40%; min-height: 44px; padding: 0 12px; }
  .bandeau-categorie .chapo { font-size: .95rem; }
}
@media (max-width: 420px) {
  .hd-produit-image .hd-badge-illustration, .hd-produit-image .hd-badge-hdelec { left: 6px; bottom: 6px; font-size: .64rem; padding: 2px 7px; white-space: nowrap; max-width: calc(100% - 12px); overflow: hidden; text-overflow: ellipsis; }
}

/* très petits écrans (320 px) : l'en-tête tient sur une ligne ; les favoris restent dans le menu */
@media (max-width: 360px) {
  .entete-actions a.icone-btn[href*="favoris"] { display: none; }
  .logo img, .a-defile .logo img { height: 36px; }
  .icone-btn { width: 40px; height: 40px; }
}
.hd-select select, .hd-filtre select { min-width: 0; text-overflow: ellipsis; }

/* critique fiches (passe 1) : sur téléphone, les caractéristiques non renseignées ne prennent plus une ligne chacune */
@media (max-width: 760px) {
  .hd-table-tech td:has(> .hd-na) { display: none; }
  .hd-table-tech tr { padding: 14px 14px 12px; }
  .hd-table-tech td.hd-code { font-size: .95rem; }
}

/* critique pages secondaires (passe 1) : pied de page et contact plus courts sur téléphone */
@media (max-width: 760px) {
  .pied-catalogue ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; font-size: .86rem; }
  .pied-grille > nav:not(.pied-catalogue) ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
  .contact-carte { padding: 12px 14px; gap: 12px; font-size: .9rem; }
  .contact-ico { width: 38px; height: 38px; }
  .contact-infos { gap: 8px; }
}

/* 320 px : mots longs des articles (adresses, références) et boutons d'action qui passent à la ligne */
.prose, .article-contenu { overflow-wrap: anywhere; }
.article-actions .btn, .carte-cote .btn, .faq-aide .btn, .bandeau-actions .btn { white-space: normal; text-align: center; }

/* ===== passe 2 (relecture indépendante) ===== */
/* accueil : petites familles en liens compacts sous les 8 grandes */
.familles-petites { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 16px; margin-top: 16px; }
.famille-petite { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 14px; border-radius: 12px; border: 1px dashed var(--ligne-forte); color: var(--nuit); text-decoration: none; transition: border-color .2s, background-color .2s; }
.famille-petite:hover { border-color: var(--orange); border-style: solid; background: var(--orange-pale); color: var(--nuit); }
.famille-petite-picto { display: grid; place-items: center; color: var(--orange-fonce); flex: none; }
.famille-petite-picto .hd-picto { width: 24px; height: 24px; }
.famille-petite .famille-nom { font-size: .92rem; font-weight: 600; }
.famille-petite .famille-nb { margin: 0 0 0 auto; padding: 0; font-size: .78rem; font-weight: 500; color: var(--gris); white-space: nowrap; }
/* accueil et à propos : photos HD ELEC */
.presentation-img-1 { aspect-ratio: 4 / 4.6; object-position: 50% 30%; }
.presentation-img-2 { position: absolute; left: -18px; bottom: -22px; width: 58%; height: auto; padding: 10px; background: #fff; border-radius: var(--r-l); box-shadow: var(--ombre-3); }
.presentation-badge { top: 24px; bottom: auto; }
.presentation-mention { left: 14px; top: 14px; bottom: auto; }
.presentation-images { margin-bottom: 22px; }
.image-hdelec { position: relative; }
.image-hdelec img { max-height: 520px; object-fit: cover; }
.image-hdelec figcaption { margin-top: 10px; font-size: .82rem; color: var(--gris); }
.image-fond-blanc img { background: #fff; padding: 18px; object-fit: contain; border: 1px solid var(--ligne); }
@media (max-width: 1200px) { .familles-petites { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 980px) { .presentation-img-2 { left: 8px; } }
@media (max-width: 420px) { .familles-petites { grid-template-columns: minmax(0, 1fr); gap: 8px; } .famille-petite .famille-nb { font-size: .78rem; } }

/* fiche produit sur téléphone : lignes de références compactes (code + désignation, caractéristiques en petit, quantité + Ajouter + Comparer sur une ligne) */
@media (max-width: 760px) {
  .hd-table-tech tr { display: block; padding: 10px 12px 8px; }
  .hd-table-tech td { display: inline; padding: 0; font-size: .8rem; color: var(--gris); border: 0; }
  .hd-table-tech td::before { content: attr(data-label) " "; font-weight: 500; font-size: .8rem; color: var(--gris-doux); }
  .hd-table-tech td:not(.hd-code):not(.hd-des):not(.hd-col-devis)::after { content: " · "; color: var(--ligne-forte); }
  .hd-table-tech td:has(> .hd-na), .hd-table-tech td[data-label="Unité"] { display: none; }
  .hd-table-tech td.hd-code, .hd-table-tech td.hd-des { display: inline; font-size: .9rem; color: var(--encre); line-height: 1.35; }
  .hd-table-tech td.hd-code { font-size: .9rem; color: var(--nuit); margin-right: 6px; }
  .hd-table-tech td.hd-code::before, .hd-table-tech td.hd-des::before { content: none; }
  .hd-table-tech td.hd-des::after { content: ""; display: block; height: 2px; }
  .hd-table-tech td.hd-col-devis { display: block; margin-top: 6px; }
  .hd-table-tech td.hd-col-devis::before { content: none; display: none; }
  .hd-table-tech .hd-actions { flex-wrap: nowrap; gap: 8px; }
  .hd-table-tech .hd-qte { width: 68px; height: 44px; }
  .hd-table-tech .hd-actions .hd-btn { min-height: 44px; flex: 1; max-width: 150px; }
  .hd-table-tech .hd-comparer { min-height: 44px; margin-left: auto; padding: 0 6px; border: 0; background: none; text-decoration: underline; text-underline-offset: 3px; color: var(--gris); }
  .hd-table-tech .hd-comparer.actif { background: none; color: var(--orange-texte); }
  .hd-fiche-refs .hd-groupe { margin-top: 18px; }
}

/* ===== lot 2 ===== */
/* police : pile système, aucun appel à un service tiers */
:root { --police: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif; }
body { font-feature-settings: normal; }
/* chiffres clés : 5 valeurs */
.chiffres-liste { grid-template-columns: repeat(5, 1fr); }
.chiffres-liste li { padding: 24px 22px; }
@media (max-width: 1100px) { .chiffres-liste { grid-template-columns: repeat(3, 1fr); } .chiffres-liste li:nth-child(n + 4) { border-top: 1px solid var(--ligne); } .chiffres-liste li:nth-child(4) { border-left: 0; } }
@media (max-width: 980px) { .chiffres-liste { grid-template-columns: repeat(2, 1fr); } .chiffres-liste li { border-left: 1px solid var(--ligne); border-top: 1px solid var(--ligne); } .chiffres-liste li:nth-child(odd) { border-left: 0; } .chiffres-liste li:nth-child(-n + 2) { border-top: 0; } .chiffres-liste li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
/* caractéristique absente */
.hd-na { color: var(--gris-doux); font-size: .78rem; font-style: italic; white-space: nowrap; }
@media (max-width: 760px) { .hd-table-tech td:has(> .hd-na) { display: inline; } .hd-table-tech td[data-label="Unité"] { display: none; } }
/* fiche : documents et contact technique */
.fiche-documents-in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fiche-documents .hd-docs h2 { margin: 0 0 8px; }
.fiche-documents .hd-petit { margin: 6px 0 0; }
@media (max-width: 760px) { .fiche-documents-in { grid-template-columns: minmax(0, 1fr); } }
/* guide de famille */
.guide-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.guide-bloc { background: #fff; border: 1px solid var(--ligne); border-radius: var(--r-l); padding: 24px; }
.guide-bloc h3 { font-size: 1.1rem; margin-bottom: 12px; }
.guide-bloc p { color: var(--encre); font-size: .95rem; }
.guide-types { list-style: none; display: grid; gap: 0; }
.guide-types li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--ligne); font-size: .92rem; }
.guide-types li:first-child { border-top: 0; padding-top: 0; }
.guide-types a { color: var(--nuit); text-decoration: none; font-weight: 500; }
.guide-types a:hover { color: var(--orange-texte); }
.guide-types span { color: var(--gris); font-size: .8rem; white-space: nowrap; }
.guide-criteres { display: grid; gap: 0; margin: 0 0 10px; }
.guide-criteres > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-top: 1px solid var(--ligne); font-size: .92rem; }
.guide-criteres > div:first-child { border-top: 0; padding-top: 0; }
.guide-criteres dt { font-weight: 600; color: var(--nuit); }
.guide-criteres dd { margin: 0; overflow-wrap: anywhere; }
.guide-aides { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 14px; }
.guide-devis-titre { margin-top: 22px; }
@media (max-width: 980px) { .guide-grille { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .guide-criteres > div { grid-template-columns: minmax(0, 1fr); gap: 2px; } .guide-bloc { padding: 18px; } }
/* projets : étude de cas et statut des images */
.etude-cas .cas-bloc { margin-bottom: 28px; }
.etude-cas .cas-bloc > h2 { padding-bottom: 8px; border-bottom: 1px solid var(--ligne); margin-bottom: 14px; }
.etude-cas .projet-infos { margin-bottom: 8px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.statut-image { position: absolute; left: 12px; top: 12px; padding: 3px 9px; border-radius: 999px; background: rgba(20, 33, 43, .78); color: #fff; font-size: .72rem; font-weight: 600; }
.image-projet figcaption { margin-top: 8px; font-size: .82rem; color: var(--gris); }
.image-projet { margin-bottom: 8px; }
/* page interne de démonstration */
.ds > h2 { margin: 48px 0 16px; padding-top: 24px; border-top: 1px solid var(--ligne); }
.ds > h2:first-child { margin-top: 0; border: 0; padding: 0; }
.ds > h3 { margin: 24px 0 12px; }
.ds-nuancier { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.ds-nuancier li { display: grid; gap: 2px; padding: 12px; border: 1px solid var(--ligne); border-radius: var(--r); font-size: .84rem; }
.ds-couleur { height: 56px; border-radius: 8px; border: 1px solid var(--ligne); margin-bottom: 6px; }
.ds-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 12px 0; }
.ds-sombre { background: var(--nuit); padding: 20px; border-radius: var(--r-l); }
.ds-carre { display: grid; place-items: center; width: 96px; height: 72px; background: #fff; border: 1px solid var(--ligne); font-size: .8rem; color: var(--gris); border-radius: 12px; }
.ds-bloc { padding: 20px; border: 1px solid var(--ligne); border-radius: var(--r-l); }
.ds-statique { position: static; }
.ds-auto { width: auto; border: 1px solid var(--ligne); }
.ds .hd-alerte, .ds .hd-etat-envoi, .ds .hd-note, .ds .hd-vide { margin: 10px 0; }
.ds .familles { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ds .hd-produits-grille { grid-template-columns: repeat(auto-fill, minmax(232px, 280px)); }
.etapes-titre { margin: 56px 0 0; font-size: 1.3rem; }
.etapes-titre + .etapes { margin-top: 36px; }

/* ===== mission photos : « photo à venir », statuts des images, blocs sans photo ===== */
.hd-badge-avenir { position: absolute; left: 10px; bottom: 10px; padding: 3px 9px; border-radius: 999px; font-size: .72rem; font-weight: 600; background: #fff; color: var(--gris); border: 1px solid var(--ligne-forte); }
.hd-produit-image:has(.hd-badge-avenir) { background: repeating-linear-gradient(135deg, #f8faff, #f8faff 14px, #f1f5fc 14px, #f1f5fc 28px); }
.fiche-photo-cadre .hd-badge-avenir { left: 16px; bottom: 16px; font-size: .8rem; padding: 5px 12px; }
.fiche-picto { background: repeating-linear-gradient(135deg, #fbfcff, #fbfcff 18px, #f3f6fc 18px, #f3f6fc 36px); aspect-ratio: 4 / 3; }
.fiche-picto .hd-picto { width: 28%; opacity: .85; }
.statut-hdelec { background: var(--orange); color: var(--nuit); }
.projet-sans-photo { display: grid; place-items: center; align-content: center; gap: 10px; width: 100%; aspect-ratio: 16 / 10; background: repeating-linear-gradient(135deg, #f8faff, #f8faff 14px, #f1f5fc 14px, #f1f5fc 28px); color: var(--orange-fonce); }
.projet-sans-photo span { font-size: .8rem; font-weight: 600; color: var(--gris); }
.projet-sans-photo .hd-picto { width: 64px; height: 64px; }
.article-sans-photo { aspect-ratio: 4 / 3; color: var(--nuit-3); }
@media (max-width: 420px) { .hd-produit-image .hd-badge-avenir { left: 6px; bottom: 6px; font-size: .64rem; padding: 2px 7px; } }
.ds .btn { white-space: normal; }

/* ===================== V2 professionnelle (16/11/2026) ===================== */
/* sélection multiple de références : case par ligne, barre d'ajout groupé */
.hd-choix { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--ligne-forte); border-radius: 9px; background: #fff; cursor: pointer; flex: none; }
.hd-choix:hover { border-color: var(--nuit); }
.hd-choix input { width: 18px; height: 18px; margin: 0; accent-color: var(--orange-fonce); cursor: pointer; }
.hd-choix:has(input:checked) { border-color: var(--orange-fonce); background: var(--orange-pale); }
.hd-choix:has(input:focus-visible) { outline: 3px solid var(--orange); outline-offset: 2px; }
.hd-barre-choix { position: fixed; z-index: 71; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; justify-content: center; max-width: calc(100% - 24px);
  padding: 10px 12px 10px 18px; border-radius: 16px; background: #fff; color: var(--nuit); border: 1.5px solid var(--orange); box-shadow: var(--ombre-3); font-size: .9rem; }
.hd-barre-choix-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.hd-barre-choix .hd-btn .ico { margin-right: 6px; vertical-align: -3px; }
.hd-avec-barre-cmp .hd-barre-choix { bottom: 92px; }
.hd-avec-barre-choix .wa-flottant { bottom: 96px; }
@media (max-width: 760px) {
  .hd-barre-choix { left: 10px; right: 10px; transform: none; justify-content: space-between; padding: 10px 12px; }
  body:has(.hd-barre-devis) .hd-barre-choix { bottom: 74px; }
  body:has(.hd-barre-devis).hd-avec-barre-cmp .hd-barre-choix { bottom: 150px; }
  .hd-barre-choix-actions { width: 100%; }
  .hd-barre-choix-actions .hd-btn { flex: 1 1 auto; }
}
@media print { .hd-barre-choix, .hd-choix { display: none !important; } }
/* fiche : identification de l'article (code, marque, famille, unité, références) */
.fiche-identite { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 4px 0 18px; border: 1px solid var(--ligne); border-radius: var(--r); background: #fff; overflow: hidden; }
.fiche-identite > div { padding: 10px 14px; border-top: 1px solid var(--ligne); min-width: 0; }
.fiche-identite > div:first-child { grid-column: 1 / -1; border-top: 0; background: var(--fond); }
.fiche-identite > div:nth-child(odd):not(:first-child) { border-left: 1px solid var(--ligne); }
.fiche-identite > div:last-child:nth-child(even) { grid-column: 1 / -1; }
.fiche-identite dt { font-size: .78rem; color: var(--gris); margin: 0 0 2px; }
.fiche-identite dd { margin: 0; font-size: .95rem; color: var(--nuit); overflow-wrap: anywhere; }
.fiche-identite a { color: var(--orange-texte); }
.code-fort { font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: .01em; color: var(--nuit); white-space: nowrap; }
@media (max-width: 420px) { .fiche-identite { grid-template-columns: 1fr; } .fiche-identite > div { border-left: 0 !important; border-top: 1px solid var(--ligne) !important; } .fiche-identite > div:first-child { border-top: 0 !important; } }
/* devis : pièces jointes */
.hd-pieces input[type="file"] { width: 100%; padding: 12px; border: 1.5px dashed var(--ligne-forte); border-radius: var(--r); background: var(--fond); font: inherit; font-size: .9rem; color: var(--encre); cursor: pointer; }
.hd-pieces input[type="file"]:hover { border-color: var(--orange); }
.hd-pieces input[type="file"]:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.hd-pieces .hd-petit { margin: 6px 0 0; }
.hd-pieces-liste { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.hd-pieces-liste li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--ligne); border-radius: var(--r-s); background: #fff; font-size: .88rem; min-width: 0; }
.hd-pieces-liste li span:first-of-type { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-pieces-liste:empty { display: none; }
.code-insecable { white-space: nowrap; }
/* alignement des cartes (retour du gérant) : actions poussées en bas et sur la même ligne dans chaque rangée */
.etapes { align-items: stretch; }
.etape { display: flex; flex-direction: column; }
.etape .hd-lien-fleche { margin-top: auto; padding-top: 8px; align-self: flex-start; }
.hd-produit-actions { min-height: 45px; }
.guide-bloc { display: flex; flex-direction: column; }
.guide-bloc > .guide-aides:last-child { margin-top: auto; padding-top: 14px; }
p, li, dd { text-wrap: pretty; }
/* cartes produit étroites (4 par rangée vers 1024 px) : lien et bouton empilés, barre de même hauteur avec ou sans bouton */
.hd-produit { container-type: inline-size; }
@container (max-width: 250px) {
  .hd-produit-actions { flex-direction: column; align-items: flex-start; justify-content: flex-start; min-height: 86px; }
}
.guide-lien { margin: 12px 0 0; font-size: .92rem; }
/* lot 13 : pastille « Photo d'illustration » cliquable vers les crédits de la fiche (aucun nom affiché sur la photo) */
a.hd-badge-illustration { text-decoration: none; color: #fff; }
a.hd-badge-illustration:hover { background: var(--nuit); text-decoration: underline; text-underline-offset: 2px; }
a.hd-badge-illustration:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.credits-type li:target, #credits li:target { background: var(--orange-pale); border-radius: 6px; }
