/* Boulons de l'Estrie — couleurs reprises du site actuel (bleu #0055A5,
   ardoise #2C333C), dans une mise en page moderne. */

:root {
  --bleu: #0055a5;
  --bleu-fonce: #0a3f70;
  --bleu-pale: #e8f0f9;
  --ardoise: #2c333c;
  --ardoise-2: #384149;
  --ardoise-3: #4a545e;
  --acier: #67717c;
  --texte: #1f252b;
  --texte-2: #4a535c;
  --fond: #ffffff;
  --surface: #ffffff;
  --survol: #fafbfc;
  --bleu-plein: #0055a5;
  --bleu-plein-survol: #0a3f70;
  --fond-pale: #f4f6f8;
  --ligne: #dde2e7;
  --ligne-forte: #c5ccd3;
  --vert: #1e7b4a;
  --vert-pale: #e3f3ea;
  --ambre: #9a5b00;
  --ambre-pale: #fdf0dc;
  --gris: #5b6470;
  --gris-pale: #eceff2;
  --rouge: #b42318;
  --rayon: 6px;
  --ombre: 0 1px 2px rgb(20 28 36 / .06), 0 4px 16px rgb(20 28 36 / .06);
  --police: 'Barlow', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --police-titre: 'Barlow Condensed', 'Barlow', 'Arial Narrow', sans-serif;
  --largeur: 1240px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font: 400 16px/1.55 var(--police);
  font-variant-numeric: tabular-nums;
}
img, svg { max-width: 100%; }
a { color: var(--bleu); text-underline-offset: 2px; }
a:hover { color: var(--bleu-fonce); }
h1, h2, h3 { font-family: var(--police-titre); font-weight: 700; line-height: 1.1; letter-spacing: .005em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid #4d9be6; outline-offset: 2px; border-radius: 2px; }

.conteneur { width: 100%; max-width: var(--largeur); margin-inline: auto; padding-inline: 24px; }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.evitement { position: absolute; left: 12px; top: -60px; background: var(--bleu-plein); color: #fff; padding: 8px 14px; z-index: 100; border-radius: var(--rayon); }
.evitement:focus { top: 12px; color: #fff; }
.centre { text-align: center; }
.petit { font-size: .85rem; color: var(--texte-2); }
.surtitre { font: 600 .82rem/1.3 var(--police); text-transform: uppercase; letter-spacing: .09em; color: var(--bleu); margin-bottom: .6em; }

/* --- Boutons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: 0 20px; border: 1px solid transparent; border-radius: var(--rayon);
  font: 600 1rem/1 var(--police); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primaire { background: var(--bleu-plein); color: #fff; }
.btn-primaire:hover { background: var(--bleu-plein-survol); color: #fff; }
.btn-secondaire { background: var(--surface); color: var(--bleu); border-color: var(--ligne-forte); }
.btn-secondaire:hover { border-color: var(--bleu); color: var(--bleu-fonce); }
.btn-bloc { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-lien { background: none; border: 0; padding: 0; color: var(--bleu); font: inherit; font-size: .9rem; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.lien-fleche { font-weight: 600; text-decoration: none; white-space: nowrap; }
.lien-fleche::after { content: ' →'; }

/* --- Bandeaux et en-tête -------------------------------------------------- */
.bandeau-haut { background: #1f252b; color: #c3cad1; font-size: .85rem; }
.bandeau-haut .conteneur { display: flex; justify-content: space-between; gap: 16px; padding-block: 6px; }
.bandeau-haut a { color: #fff; text-decoration: none; }
.bandeau-haut a:hover { text-decoration: underline; }
.bandeau-tels { display: flex; gap: 20px; }

.entete { background: var(--ardoise); color: #fff; position: sticky; top: 0; z-index: 30; border-bottom: 3px solid var(--bleu); }
.entete-ligne { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; flex-shrink: 0; }
.logo:hover { color: #fff; }
.logo-symbole { width: 42px; height: 42px; }
.logo-texte { display: flex; flex-direction: column; line-height: 1; }
.logo-nom { font: italic 700 1.85rem/0.9 var(--police-titre); letter-spacing: .01em; }
.logo-sous { font-size: .78rem; color: #c3cad1; margin-top: 3px; letter-spacing: .02em; }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 10px 14px; color: #e4e8ec; text-decoration: none; font: 600 1.05rem/1 var(--police-titre); text-transform: uppercase; letter-spacing: .05em; border-radius: var(--rayon); }
.nav a:hover { background: var(--ardoise-2); color: #fff; }
.nav a[aria-current="page"] { background: var(--bleu-plein); color: #fff; }
.entete-actions { display: flex; align-items: center; gap: 8px; }
.btn-soumission { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: var(--rayon); background: var(--ardoise-2); color: #fff; text-decoration: none; font-weight: 600; border: 1px solid #4f5a65; }
.btn-soumission:hover, .btn-soumission[aria-current="page"] { background: var(--bleu-plein); border-color: var(--bleu); color: #fff; }
.btn-soumission svg { width: 22px; height: 22px; }
.compteur { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: #fff; color: var(--ardoise); font-size: .85rem; display: inline-grid; place-items: center; }
.compteur.est-vide { background: #59636d; color: #d5dbe0; }
.compteur.pulse { animation: pulse .5s ease; }
@keyframes pulse { 50% { transform: scale(1.3); } }
.btn-menu { display: none; background: none; border: 1px solid #4f5a65; color: #fff; width: 44px; height: 44px; border-radius: var(--rayon); cursor: pointer; }
.btn-menu svg { width: 24px; height: 24px; }

.nav-outils { display: flex; align-items: center; gap: 6px; margin-left: 10px; padding-left: 14px; border-left: 1px solid #4f5a65; }
.btn-outil { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid #4f5a65; border-radius: var(--rayon); background: transparent; color: #e4e8ec; font: 700 .92rem/1 var(--police); letter-spacing: .04em; text-decoration: none; cursor: pointer; }
.nav .btn-outil { display: inline-flex; padding: 0 10px; text-transform: none; font: 700 .92rem/1 var(--police); }
.btn-outil:hover, .nav .btn-outil:hover { background: var(--ardoise-2); color: #fff; }
.btn-outil svg { width: 19px; height: 19px; }
.outil-long, .icone-soleil, .si-sombre { display: none; }

/* --- Héros ---------------------------------------------------------------- */
.chapeau { font-size: 1.15rem; color: #d5dbe0; max-width: 40em; }
.recherche { display: flex; gap: 8px; }
.recherche input { flex: 1; min-width: 0; width: 100%; height: 48px; padding: 0 16px; font: inherit; border: 1px solid var(--ligne-forte); border-radius: var(--rayon); background: var(--surface); color: var(--texte); }
.recherche input:focus { outline: 3px solid #4d9be6; outline-offset: 0; border-color: var(--bleu); }
.recherche .btn { height: 48px; }

/* --- Sections ------------------------------------------------------------- */
.section { padding: 64px 0; }
.section-pale { background: var(--fond-pale); }
.section-sombre { background: var(--ardoise); color: #e4e8ec; }
.section-sombre h2 { color: #fff; }
.section-sombre .surtitre { color: #8cc0f2; }
.section-sombre a { color: #8cc0f2; }
.section-entete { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-entete h2 { margin: 0; }
.section-entete p { margin: 0; color: var(--texte-2); }

.pastille { display: inline-block; flex-shrink: 0; width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgb(0 0 0 / .25); vertical-align: -2px; box-shadow: inset 0 1px 1px rgb(255 255 255 / .5); }
.pastille-grande { width: 38px; height: 38px; }

.gamme-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.liste-gamme { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.liste-gamme li { padding: 11px 14px; border-radius: var(--rayon); background: var(--ardoise-2); color: #d5dbe0; font-weight: 500; }
.liste-gamme li.actif { grid-column: 1 / -1; background: var(--bleu-plein); padding: 0; }
.liste-gamme li.actif a { display: flex; justify-content: space-between; align-items: center; padding: 13px 16px; color: #fff; text-decoration: none; font: 700 1.25rem/1 var(--police-titre); }
.liste-gamme li.actif span { font: 500 .85rem var(--police); background: rgb(255 255 255 / .18); padding: 4px 10px; border-radius: 99px; }

.apropos-grille { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.services { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.services li { padding: 14px 16px; border-left: 3px solid var(--bleu); background: var(--fond-pale); border-radius: 0 var(--rayon) var(--rayon) 0; }
.valeurs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.valeurs li { padding: 20px; border-radius: 10px; border: 1px solid var(--ligne); }
.valeurs h3 { color: var(--bleu); margin-bottom: .3em; }
.valeurs p { margin: 0; color: var(--texte-2); font-size: .95rem; }

.deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.liste-puces { padding-left: 1.2em; margin: 0; }
.liste-puces li { margin-bottom: 6px; }
.liste-puces li::marker { color: var(--bleu); }
.normes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.normes a { display: flex; gap: 14px; align-items: center; padding: 12px 16px; background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon); text-decoration: none; color: var(--texte); }
.normes a:hover { border-color: var(--bleu); }
.normes strong { min-width: 84px; font: 700 1.15rem var(--police-titre); color: var(--bleu); }
.normes span { color: var(--texte-2); }

.contact-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

/* --- Pied de page --------------------------------------------------------- */
.pied { background: #1f252b; color: #aeb7c0; padding-top: 48px; font-size: .95rem; }
.pied-grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 36px; }
.pied h2 { font: 600 .85rem/1 var(--police); color: #fff; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.pied a { color: #d5dbe0; text-decoration: none; }
.pied a:hover { color: #fff; text-decoration: underline; }
.pied-liste { list-style: none; padding: 0; margin: 0; font-style: normal; line-height: 1.9; }
.pied-slogan { margin-top: 16px; font: 600 1.15rem/1.25 var(--police-titre); color: #fff; }
.pied-petit { font-size: .88rem; }
.pied-bas { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 16px 22px; border-top: 1px solid #333b44; font-size: .85rem; }

/* --- Fil d'Ariane, en-têtes de page --------------------------------------- */
.fil { display: flex; flex-wrap: wrap; gap: 6px; padding: 18px 0 6px; font-size: .88rem; color: var(--texte-2); }
.fil a { color: var(--texte-2); }
.fil > * + *::before { content: '›'; margin-right: 6px; color: var(--ligne-forte); }
.cat-entete { padding: 6px 0 18px; }
.cat-entete h1 { margin-bottom: .15em; }
.cat-entete p { color: var(--texte-2); margin: 0; }

/* --- Catalogue ------------------------------------------------------------ */
.page-catalogue { padding-bottom: 64px; }
.cat-barre { display: flex; gap: 12px; align-items: center; padding: 14px; background: var(--fond-pale); border: 1px solid var(--ligne); border-radius: 10px; margin-bottom: 20px; }
.cat-barre .recherche { flex: 1; min-width: 0; }
.tri { display: flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--texte-2); white-space: nowrap; }
select { height: 48px; padding: 0 36px 0 12px; font: inherit; color: var(--texte); border: 1px solid var(--ligne-forte); border-radius: var(--rayon); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234a535c' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; }
.btn-filtres { display: none; height: 48px; }
.cat-corps { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 28px; align-items: start; }

.filtres { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow-y: auto; padding-right: 6px; scrollbar-width: thin; }
.filtres-tete { display: none; }
.filtres-pied { display: none; }
.facette { border-bottom: 1px solid var(--ligne); }
.facette summary { display: flex; align-items: center; gap: 8px; padding: 12px 2px; cursor: pointer; list-style: none; font: 700 1.08rem/1.2 var(--police-titre); text-transform: uppercase; letter-spacing: .04em; color: var(--ardoise); }
.facette summary::-webkit-details-marker { display: none; }
.facette summary::after { content: ''; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--acier); border-bottom: 2px solid var(--acier); transform: rotate(45deg) translateY(-3px); transition: transform .15s; }
.facette[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.facette-nb { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--bleu-plein); color: #fff; font: 600 .75rem/1 var(--police); letter-spacing: 0; }
.facette-valeurs { list-style: none; margin: 0; padding: 0 0 12px; }
.facette-valeurs.defilant { max-height: 280px; overflow-y: auto; scrollbar-width: thin; border-top: 1px solid transparent; }
.option { display: flex; align-items: center; gap: 9px; padding: 5px 6px; border-radius: 4px; cursor: pointer; font-size: .95rem; }
.option:hover { background: var(--fond-pale); }
.option input { width: 18px; height: 18px; margin: 0; accent-color: var(--bleu); flex-shrink: 0; }
.option-label { flex: 1; }
.option-compte { color: var(--acier); font-size: .82rem; }
.option-vide { opacity: .55; }
.option:has(input:checked) .option-label { font-weight: 600; color: var(--bleu-fonce); }

.resultats { min-width: 0; }
.catalogue.chargement .resultats { opacity: .55; transition: opacity .15s .1s; }
.resultats-entete { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.resultats-entete h2 { font: 500 1.05rem/1.3 var(--police); margin: 0; color: var(--texte-2); }
.resultats-entete h2 strong { color: var(--texte); font-weight: 700; }
.resultats-page { font-size: .88rem; color: var(--texte-2); }
.puces-actives { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.puces-actives a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; background: var(--bleu-pale); color: var(--bleu-fonce); text-decoration: none; font-size: .88rem; font-weight: 500; }
.puces-actives a:hover { background: #d5e4f4; }
.puces-actives a span[aria-hidden] { font-size: 1.1em; line-height: 1; }
.puces-actives .tout-effacer { background: none; text-decoration: underline; }

.produits { width: 100%; border-collapse: collapse; background: var(--surface); }
.produits thead th { text-align: left; font: 600 .75rem/1 var(--police); text-transform: uppercase; letter-spacing: .07em; color: var(--texte-2); padding: 10px 10px; border-bottom: 2px solid var(--ardoise); white-space: nowrap; }
.produits td { padding: 12px 10px; border-bottom: 1px solid var(--ligne); vertical-align: middle; }
.produits tbody tr:hover { background: var(--survol); }
.col-img { width: 92px; }
.col-img .dessin { width: 84px; height: 34px; display: block; }
.produit-lien { font-weight: 600; color: var(--texte); text-decoration: none; display: block; line-height: 1.3; }
.produit-lien:hover { color: var(--bleu); text-decoration: underline; }
.sku { display: inline-block; font-size: .82rem; color: var(--bleu-fonce); background: var(--fond-pale); border: 1px solid var(--ligne); padding: 1px 6px; border-radius: 4px; margin-top: 4px; letter-spacing: .02em; }
.specs { display: block; font-size: .82rem; color: var(--texte-2); margin-top: 3px; }
.col-fini { white-space: nowrap; font-size: .93rem; width: 1%; }
.col-fini .pastille { margin-right: 7px; }
.col-grade { font-size: .93rem; white-space: nowrap; width: 1%; }
.col-dispo { min-width: 160px; width: 1%; }
.col-ajout { width: 190px; }

.dispo { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; padding: 3px 9px 3px 8px; border-radius: 99px; white-space: nowrap; }
.dispo::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.dispo-ok { background: var(--vert-pale); color: var(--vert); }
.dispo-limite { background: var(--ambre-pale); color: var(--ambre); }
.dispo-commande { background: var(--gris-pale); color: var(--gris); }
.dispo-detail { display: block; font-size: .82rem; color: var(--texte-2); margin-top: 4px; }
.dispo-detail strong { color: var(--texte); }

.ajout-ligne { display: flex; gap: 6px; }
.ajout .qte { width: 78px; height: 40px; padding: 0 8px; font: inherit; text-align: right; border: 1px solid var(--ligne-forte); border-radius: var(--rayon); }
.btn-ajout { min-height: 40px; padding: 0 14px; background: var(--bleu-plein); color: #fff; font-size: .93rem; }
.btn-ajout:hover { background: var(--bleu-plein-survol); color: #fff; }
.ajout-etat { display: block; font-size: .8rem; color: var(--vert); margin-top: 4px; min-height: 0; }
.ajout-etat:empty { display: none; }
.ajout.est-ajoute .btn-ajout { background: var(--vert); }

.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 28px; flex-wrap: wrap; }
.pagination ol { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: var(--rayon); text-decoration: none; border: 1px solid var(--ligne); color: var(--texte); }
.pagination a:hover { border-color: var(--bleu); color: var(--bleu); }
.pagination span[aria-current] { background: var(--ardoise); color: #fff; border-color: var(--ardoise); font-weight: 600; }
.pagination .ellipse { display: grid; place-items: center; width: 24px; color: var(--acier); }
.vide { padding: 40px; text-align: center; border: 1px dashed var(--ligne-forte); border-radius: 10px; }
.vide p { color: var(--texte-2); }

/* --- Dessins techniques --------------------------------------------------- */
.dessin { --metal: #dfe5ec; --metal-2: #b9c3cd; --trait: #2c333c; --filet: #2c333c; overflow: visible; }
.dessin.fini-zingue { --metal: #e4eaf0; --metal-2: #b8c3ce; }
.dessin.fini-zingue-orange { --metal: #f3d37c; --metal-2: #d9963a; --filet: #6b4100; }
.dessin.fini-black-oxide { --metal: #474c53; --metal-2: #2d3136; --trait: #111316; --filet: #9aa3ad; }
.dessin.fini-stainless { --metal: #f1f3f5; --metal-2: #c9ced4; }
.dessin.fini-galvanise { --metal: #bcc4c8; --metal-2: #959fa5; }
.dessin.fini-normal { --metal: #9aa1a8; --metal-2: #737b83; }
.dessin .m { fill: var(--metal); stroke: var(--trait); stroke-width: 1.4; stroke-linejoin: round; }
.dessin .f { fill: var(--metal-2); stroke: none; }
.dessin .l { stroke: var(--filet); stroke-width: 1; opacity: .5; fill: none; }
.dessin .a { stroke: var(--trait); stroke-width: 1; opacity: .55; fill: none; }
.dessin .c { stroke: var(--trait); stroke-width: 1; stroke-dasharray: 3 2; fill: none; opacity: .7; }
.dessin .u-trait { fill: none; stroke: var(--trait); stroke-width: 16; }
.dessin .u-metal { fill: none; stroke: var(--metal); stroke-width: 12.6; }
.dessin .e { stroke: var(--acier); stroke-width: .8; fill: none; }
.dessin .k { stroke: var(--bleu); stroke-width: 1.2; fill: none; }
.dessin .kp { fill: var(--bleu); }
.dessin text { font: 600 11px var(--police); fill: var(--bleu-fonce); }

/* --- Fiche produit -------------------------------------------------------- */
.page-produit { padding-bottom: 64px; }
.produit { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; padding: 12px 0 36px; align-items: start; }
.produit-visuel { background: linear-gradient(180deg, #f7f9fb, #eef2f5); border: 1px solid var(--ligne); border-radius: 12px; padding: 34px 26px 16px; }
.produit-visuel .dessin { width: 100%; height: auto; display: block; }
.note-visuel { font-size: .82rem; color: var(--texte-2); margin: 16px 0 0; text-align: center; }
.produit-info h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: .3em; }
.produit-sku { color: var(--texte-2); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.produit-sku .sku { font-size: .95rem; margin: 0; }
.puces-specs { list-style: none; padding: 0; margin: 4px 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.puces-specs li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid var(--ligne); border-radius: 99px; font-size: .9rem; background: var(--surface); }
.carte-achat { border: 1px solid var(--ligne); border-radius: 12px; padding: 22px; box-shadow: var(--ombre); background: var(--surface); }
.carte-achat-dispo { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.carte-achat-dispo .dispo { font-size: .95rem; padding: 5px 12px 5px 10px; }
.carte-achat-dispo .dispo-detail { margin: 0; font-size: .95rem; }
.carte-achat-note { color: var(--texte-2); font-size: .92rem; }
.ajout-grand .ajout-label { display: block; font-weight: 600; margin-bottom: 6px; }
.ajout-grand .ajout-label small { font-weight: 400; color: var(--texte-2); }
.ajout-grand .qte { width: 120px; height: 50px; font-size: 1.1rem; }
.ajout-grand .btn-ajout { flex: 1; min-height: 50px; font-size: 1.05rem; }
.ajout-grand .ajout-etat { font-size: .9rem; margin-top: 8px; }
.carte-achat-prix { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--ligne); font-size: .92rem; color: var(--texte-2); }

.produit-details { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-top: 28px; border-top: 1px solid var(--ligne); }
.specs-liste { margin: 0; border: 1px solid var(--ligne); border-radius: 10px; overflow: hidden; }
.specs-liste div { display: grid; grid-template-columns: 42% 1fr; }
.specs-liste div:nth-child(odd) { background: var(--fond-pale); }
.specs-liste dt { padding: 9px 14px; color: var(--texte-2); font-size: .93rem; }
.specs-liste dd { margin: 0; padding: 9px 14px; font-weight: 500; }
.description { font-size: 1.02rem; }
.produit-details h3 { margin-top: 28px; font-size: 1.15rem; }
.puces-longueurs { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.puces-longueurs a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border: 1px solid var(--ligne); border-radius: var(--rayon); text-decoration: none; color: var(--texte); font-size: .92rem; }
.puces-longueurs a:hover { border-color: var(--bleu); color: var(--bleu); }
.puces-longueurs a.courant { background: var(--ardoise); border-color: var(--ardoise); color: #fff; }
.point { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.point-en-stock { background: var(--vert); }
.point-limite { background: #d08a12; }
.point-sur-commande { background: #a3abb3; }
.legende { font-size: .82rem; color: var(--texte-2); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.legende .point + * { margin-right: 8px; }
.section-variantes { padding-top: 40px; }
.encart-aide { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 48px; padding: 24px 28px; background: var(--bleu-pale); border-radius: 12px; }
.encart-aide h2 { font-size: 1.5rem; margin-bottom: .2em; }
.encart-aide p { margin: 0; color: var(--texte-2); }

/* --- Soumission ----------------------------------------------------------- */
.page-soumission { padding-bottom: 64px; }
.soumission-grille { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr); gap: 32px; align-items: start; }
.compteur-texte { font: 500 1rem var(--police); color: var(--texte-2); }
.chargement { color: var(--texte-2); }
.lignes-soumission { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ardoise); }
.ligne-soumission { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 8px 16px; padding: 16px 0; border-bottom: 1px solid var(--ligne); align-items: start; }
.ligne-soumission .dessin { width: 84px; height: 34px; margin-top: 4px; }
.ligne-libre-icone { width: 84px; height: 40px; display: grid; place-items: center; border: 1px dashed var(--ligne-forte); border-radius: var(--rayon); font-size: .7rem; color: var(--texte-2); text-align: center; line-height: 1.1; }
.ligne-info .dispo { margin-top: 6px; }
.ligne-info .dispo-detail { display: inline; margin-left: 6px; }
.ligne-note { margin-top: 8px; width: 100%; max-width: 420px; height: 34px; padding: 0 10px; font: inherit; font-size: .88rem; border: 1px solid var(--ligne); border-radius: var(--rayon); }
.ligne-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.ligne-actions label { font-size: .8rem; color: var(--texte-2); }
.ligne-actions .qte { width: 100px; height: 40px; padding: 0 8px; font: inherit; text-align: right; border: 1px solid var(--ligne-forte); border-radius: var(--rayon); }
.alerte-qte { font-size: .8rem; color: var(--ambre); max-width: 180px; text-align: right; }
.soumission-vide { padding: 36px; text-align: center; border: 1px dashed var(--ligne-forte); border-radius: 10px; }
.hors-catalogue { margin-top: 20px; border: 1px solid var(--ligne); border-radius: 10px; padding: 0 18px; }
.hors-catalogue summary { cursor: pointer; padding: 14px 0; font-weight: 600; color: var(--bleu); }
.hors-catalogue p { color: var(--texte-2); font-size: .93rem; }
.form-libre { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; padding-bottom: 18px; }
.form-libre .champ-large { flex: 1 1 260px; }
.form-libre .champ-qte { width: 110px; }
.carte-form { position: sticky; top: 92px; border: 1px solid var(--ligne); border-radius: 12px; padding: 24px; box-shadow: var(--ombre); background: var(--surface); }
.champs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; margin-bottom: 16px; }
.champ { display: flex; flex-direction: column; gap: 5px; font-size: .9rem; font-weight: 600; }
.champ small { font-weight: 400; color: var(--texte-2); }
.champ-large { grid-column: 1 / -1; }
.champ input, .champ textarea { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid var(--ligne-forte); border-radius: var(--rayon); width: 100%; background: var(--surface); color: var(--texte); }
.champ input { height: 44px; }
.champ textarea { resize: vertical; }
.champ [aria-invalid="true"] { border-color: var(--rouge); background: #fff6f5; }
.requis { color: var(--rouge); }
.champ-piege { position: absolute; left: -9999px; }
.form-erreur { color: var(--rouge); background: #fff1ef; border: 1px solid #f5c2bc; padding: 10px 12px; border-radius: var(--rayon); font-size: .92rem; }
.confirmation { max-width: 860px; margin: 8px auto 0; padding: 40px; border: 1px solid var(--ligne); border-radius: 12px; text-align: center; box-shadow: var(--ombre); }
.confirmation:focus { outline: none; }
.confirmation-icone { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--vert-pale); color: var(--vert); display: grid; place-items: center; font-size: 2rem; font-weight: 700; }
.confirmation-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.confirmation-resume { text-align: left; margin-top: 28px; }
.confirmation-resume table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.confirmation-resume th, .confirmation-resume td { padding: 8px 10px; border-bottom: 1px solid var(--ligne); text-align: left; }
.confirmation-resume td:last-child, .confirmation-resume th:last-child { text-align: right; }

.page-erreur { padding: 72px 24px 96px; max-width: 640px; }
.page-erreur .recherche { margin: 24px 0; }

/* --- Toast ---------------------------------------------------------------- */
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 60; max-width: min(420px, calc(100vw - 40px)); background: var(--ardoise); color: #fff; padding: 14px 18px; border-radius: 10px; box-shadow: 0 10px 30px rgb(0 0 0 / .25); display: flex; gap: 14px; align-items: center; border-left: 4px solid var(--vert); animation: entree .2s ease; }
.toast a { color: #8cc0f2; font-weight: 600; white-space: nowrap; }
@keyframes entree { from { transform: translateY(10px); opacity: 0; } }

/* --- Accueil -------------------------------------------------------------- */
.page-accueil .entete { border-bottom-color: transparent; }
.accueil-heros {
  position: relative;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(900px 600px at 78% 35%, rgb(0 85 165 / .38), transparent 65%),
    radial-gradient(700px 400px at 0% 100%, rgb(10 63 112 / .55), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='48' viewBox='0 0 56 48'%3E%3Cpath d='M14 1h28l13 23-13 23H14L1 24z' fill='none' stroke='%23ffffff' stroke-opacity='.045' stroke-width='1.5'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #2c333c 0%, #1d2228 100%);
}
.accueil-heros::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--bleu), #3d8fe0 50%, var(--bleu)); }
.accueil-heros-grille { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; min-height: min(78vh, 720px); padding-block: 72px 40px; }
.accueil-heros .surtitre { color: #8cc0f2; letter-spacing: .14em; }
.accueil-heros h1 { color: #fff; font-size: clamp(2.8rem, 6.4vw, 5.4rem); line-height: .98; letter-spacing: -.005em; margin-bottom: .32em; }
.accueil-heros h1 span { display: block; background: linear-gradient(90deg, #ffffff, #9fc8f2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.accueil-heros .chapeau { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: #c9d1d9; max-width: 34em; margin-bottom: 34px; }

.cta-inventaire {
  display: inline-flex; align-items: center; gap: 20px; max-width: 100%;
  padding: 22px 26px 22px 22px; border-radius: 14px; text-decoration: none; color: #fff;
  background: linear-gradient(135deg, #0a6ad0 0%, #0055a5 55%, #0a3f70 100%);
  box-shadow: 0 0 0 1px rgb(255 255 255 / .14) inset, 0 18px 40px -12px rgb(0 85 165 / .8), 0 4px 10px rgb(0 0 0 / .25);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cta-inventaire:hover, .cta-inventaire:focus-visible { color: #fff; transform: translateY(-3px); box-shadow: 0 0 0 1px rgb(255 255 255 / .2) inset, 0 26px 50px -12px rgb(0 106 208 / .9), 0 6px 14px rgb(0 0 0 / .3); }
.cta-icone { flex-shrink: 0; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 12px; background: rgb(255 255 255 / .14); }
.cta-icone svg { width: 34px; height: 34px; }
.cta-texte { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cta-texte strong { font: 700 clamp(1.5rem, 2.6vw, 2.05rem)/1 var(--police-titre); letter-spacing: .01em; }
.cta-texte small { font-size: .95rem; color: #cfe2f6; }
.cta-fleche { flex-shrink: 0; display: grid; place-items: center; width: 48px; height: 48px; margin-left: 8px; border-radius: 50%; background: #fff; color: var(--bleu); transition: transform .2s ease; }
.cta-fleche svg { width: 24px; height: 24px; }
.cta-inventaire:hover .cta-fleche { transform: translateX(4px); }
.heros-secondaire { margin: 22px 0 0; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; color: #7f8a95; }
.heros-secondaire a { color: #e4e8ec; font-weight: 600; text-decoration-color: rgb(255 255 255 / .35); }
.heros-secondaire a:hover { color: #fff; }


.confiance { list-style: none; margin: 0; padding: 26px 0 34px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgb(255 255 255 / .1); }
.confiance li { display: flex; flex-direction: column; gap: 4px; padding-inline: 24px; }
.confiance li:first-child { padding-left: 0; }
.confiance li + li { border-left: 1px solid rgb(255 255 255 / .1); }
.confiance strong { font: 700 2.1rem/1 var(--police-titre); color: #fff; }
.confiance span { color: #9aa5b0; font-size: .92rem; text-transform: uppercase; letter-spacing: .06em; }

.section-titre-centre { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-titre-centre p:last-child { color: var(--texte-2); font-size: 1.08rem; margin: 0; }
.accueil-familles { padding-block: 84px; }
.grille-familles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.carte-famille { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--ligne); border-radius: 14px; background: var(--surface); text-decoration: none; color: var(--texte); overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.carte-famille:hover { transform: translateY(-4px); border-color: var(--bleu); box-shadow: 0 18px 40px -18px rgb(20 28 36 / .35); color: var(--texte); }
.carte-famille-visuel { display: grid; place-items: center; height: 140px; padding: 20px 26px; background: linear-gradient(160deg, #f6f8fa, #e7ecf1); border-bottom: 1px solid var(--ligne); }
.carte-famille-visuel .dessin { width: 100%; height: 100%; }
.carte-famille-corps { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 10px; flex: 1; }
.carte-famille-corps strong { font: 700 1.45rem/1.1 var(--police-titre); }
.carte-famille-corps > span { color: var(--texte-2); font-size: .95rem; }
.carte-famille-types { font-size: .85rem !important; color: var(--bleu-fonce) !important; font-weight: 500; }
.carte-famille-pied { display: flex; justify-content: space-between; padding: 14px 22px 18px; font-weight: 600; color: var(--bleu); }
.carte-famille:hover .carte-famille-pied span { transform: translateX(3px); }
.carte-famille-pied span { transition: transform .2s; }

.atouts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.atout-icone { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--bleu-plein); color: #fff; margin-bottom: 16px; }
.atout-icone svg { width: 28px; height: 28px; }
.atouts h3 { font-size: 1.4rem; }
.atouts p { color: var(--texte-2); margin: 0; }

.accueil-appel { background: linear-gradient(120deg, var(--bleu-fonce), var(--bleu)); color: #fff; padding: 56px 0; }
.accueil-appel-ligne { display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.accueil-appel h2 { color: #fff; margin-bottom: .3em; }
.accueil-appel p { margin: 0; color: #d6e6f7; }
.accueil-appel a:not(.btn) { color: #fff; font-weight: 600; }
.btn-blanc { background: #fff; color: var(--bleu-fonce); }
.btn-blanc:hover { background: #eaf2fb; color: var(--bleu-fonce); }
.btn-grand { min-height: 58px; padding: 0 30px; font-size: 1.1rem; }

/* --- Assistant « Trouvez votre boulon » ------------------------------------ */
.assistant { display: flex; flex-direction: column; background: var(--surface); color: var(--texte); border-radius: 18px; overflow: hidden; text-align: left; }
.assistant-integre {
  height: 580px; width: 100%; max-width: 480px; justify-self: end;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .12), 0 30px 70px -20px rgb(0 0 0 / .65), 0 0 90px -10px rgb(0 106 208 / .45);
}
.assistant-flottant {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 410px; height: min(660px, calc(100vh - 40px));
  box-shadow: 0 0 0 1px rgb(20 28 36 / .08), 0 24px 60px -12px rgb(20 28 36 / .45); animation: entree .2s ease;
}
.as-tete { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; color: #fff; background: linear-gradient(120deg, var(--ardoise), #1f262d); border-bottom: 3px solid var(--bleu); }
.as-avatar { position: relative; flex-shrink: 0; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--bleu-plein); }
.as-avatar .logo-symbole { width: 26px; height: 26px; }
.as-avatar::after { content: ''; position: absolute; right: 0; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: #3ccf7e; border: 2px solid var(--ardoise); }
.as-titre { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.15; }
.as-titre strong { font: 700 1.3rem/1.1 var(--police-titre); letter-spacing: .01em; }
.as-titre span { font-size: .82rem; color: #b9c2cb; }
.as-bouton-tete { flex-shrink: 0; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .18); background: transparent; color: #e4e8ec; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.as-bouton-tete:hover { background: rgb(255 255 255 / .1); color: #fff; }
.as-bouton-tete svg { width: 18px; height: 18px; }

.as-fil { position: relative; flex: 1; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 10px; padding: 18px 16px; background: var(--fond-pale); }
.as-msg { max-width: 90%; padding: 10px 14px; border-radius: 4px 16px 16px 16px; font-size: .97rem; line-height: 1.45; animation: entree .18s ease; }
.as-msg p { margin: 0 0 .4em; }
.as-msg p:last-child { margin-bottom: 0; }
.as-as { align-self: flex-start; background: var(--surface); border: 1px solid var(--ligne); }
.as-moi { align-self: flex-end; background: var(--bleu-plein); color: #fff; border-radius: 16px 4px 16px 16px; }
.as-large { max-width: 100%; width: 100%; }
.as-erreur { border-color: #f1c4bf; background: #fdf2f1; }
.as-aide { font-size: .85rem; color: var(--texte-2); }
.as-attente { display: flex; gap: 5px; padding: 14px 16px; }
.as-attente span { width: 7px; height: 7px; border-radius: 50%; background: var(--acier); animation: points 1s infinite ease-in-out; }
.as-attente span:nth-child(2) { animation-delay: .15s; }
.as-attente span:nth-child(3) { animation-delay: .3s; }
@keyframes points { 0%, 80%, 100% { opacity: .25; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }

.as-choix { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 2px; }
.as-puce { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 1px solid #b7cfe8; border-radius: 99px; background: var(--surface); color: var(--bleu-fonce); font: 600 .9rem/1.2 var(--police); text-align: left; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.as-puce small { font-size: .78rem; font-weight: 500; color: var(--acier); }
.as-puce:hover { background: var(--bleu-plein); border-color: var(--bleu); color: #fff; }
.as-puce:hover small { color: #cfe2f6; }
.as-puce.discret { border-color: var(--ligne-forte); color: var(--texte-2); font-weight: 500; }
.as-puce.discret:hover { background: var(--ardoise); border-color: var(--ardoise); color: #fff; }

.as-produits { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.as-produit { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 10px; padding: 10px; border: 1px solid var(--ligne); border-radius: 10px; background: var(--surface); }
.as-produit-img { display: grid; place-items: center; background: var(--fond-pale); border-radius: 8px; padding: 4px; align-self: start; }
.as-produit-img .dessin { width: 100%; }
.as-produit-corps { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.as-produit-titre { font-weight: 600; color: var(--texte); text-decoration: none; line-height: 1.25; }
.as-produit-titre:hover { color: var(--bleu); text-decoration: underline; }
.as-produit-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; font-size: .8rem; color: var(--texte-2); }
.as-produit-dispo .dispo-detail { display: inline; margin-left: 6px; }
.as-produit .ajout { margin-top: 4px; }
.as-produit .qte { width: 72px; height: 36px; }
.as-produit .btn-ajout { min-height: 36px; flex: 1; }
.as-lien { display: inline-block; margin-top: 10px; font-weight: 600; text-decoration: none; }

.as-saisie { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--ligne); background: var(--surface); }
.as-saisie input { flex: 1; min-width: 0; height: 46px; padding: 0 18px; font: inherit; font-size: .95rem; border: 1px solid var(--ligne-forte); border-radius: 99px; background: var(--fond-pale); color: var(--texte); }
.as-saisie input:focus { outline: 3px solid #4d9be6; outline-offset: 0; border-color: var(--bleu); background: var(--surface); }
.as-saisie button { flex-shrink: 0; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--bleu-plein); color: #fff; cursor: pointer; }
.as-saisie button:hover { background: var(--bleu-plein-survol); }
.as-saisie svg { width: 22px; height: 22px; }
.as-noscript { margin: 0; padding: 12px 16px; font-size: .9rem; }

.as-lanceur {
  position: fixed; right: 20px; bottom: 20px; z-index: 85; display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px 14px 18px; border: 0; border-radius: 99px; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, #0a6ad0, var(--bleu) 60%, var(--bleu-fonce));
  font: 700 1.1rem/1 var(--police-titre); letter-spacing: .04em; text-transform: uppercase;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .15) inset, 0 12px 30px -8px rgb(0 85 165 / .75), 0 3px 8px rgb(0 0 0 / .2);
  transition: transform .2s ease;
}
.as-lanceur:hover { transform: translateY(-2px); }
.as-lanceur svg { width: 24px; height: 24px; }
body.assistant-ouvert .as-lanceur { display: none; }
body:has(.as-lanceur) .toast { bottom: 90px; }
.cat-aide { margin-top: 10px; padding: 8px 14px; border: 1px dashed #9fbfdf; border-radius: 99px; background: var(--bleu-pale); color: var(--texte-2); font: inherit; font-size: .92rem; cursor: pointer; }
.cat-aide strong { color: var(--bleu); }
.cat-aide:hover { border-style: solid; border-color: var(--bleu); }

/* --- Pages intérieures ---------------------------------------------------- */
.entete-page {
  color: #fff; padding: 64px 0 56px; border-bottom: 4px solid var(--bleu);
  background:
    radial-gradient(700px 300px at 85% 0%, rgb(0 85 165 / .35), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='48' viewBox='0 0 56 48'%3E%3Cpath d='M14 1h28l13 23-13 23H14L1 24z' fill='none' stroke='%23ffffff' stroke-opacity='.045' stroke-width='1.5'/%3E%3C/svg%3E"),
    var(--ardoise);
}
.entete-page .surtitre { color: #8cc0f2; }
.entete-page h1 { color: #fff; max-width: 18em; }
.entete-page .chapeau { color: #c9d1d9; font-size: 1.15rem; max-width: 40em; margin: 0; }
.texte-long p { font-size: 1.05rem; }
.cartes-contact { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cartes-contact li { display: flex; flex-direction: column; gap: 6px; padding: 20px; border: 1px solid var(--ligne); border-radius: 12px; }
.cartes-contact .cc-large { grid-column: 1 / -1; }
.cc-titre { font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; color: var(--texte-2); }
.cc-valeur { font: 700 1.35rem/1.2 var(--police-titre); color: var(--texte); text-decoration: none; overflow-wrap: anywhere; }
a.cc-valeur:hover { color: var(--bleu); }
.carte-appel { padding: 28px; border-radius: 14px; background: var(--fond-pale); border: 1px solid var(--ligne); display: flex; flex-direction: column; gap: 12px; }
.carte-appel p { color: var(--texte-2); }
.contact-grille { align-items: start; }

/* --- Sélecteur de types (inventaire) -------------------------------------- */
.types { margin-bottom: 20px; }
.types-entete { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.types-entete h2 { font-size: 1.3rem; margin: 0; }
.type-tous { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; flex-shrink: 0; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--ligne-forte); text-decoration: none; color: var(--texte); font-weight: 600; font-size: .92rem; }
.type-tous span { color: var(--texte-2); font-weight: 500; }
.type-tous:hover { border-color: var(--bleu); color: var(--bleu); }
.type-tous.actif { background: var(--ardoise); border-color: var(--ardoise); color: #fff; }
.type-tous.actif span { color: #c9d1d9; }
.types-groupes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.type-groupe { border: 1px solid var(--ligne); border-radius: 12px; padding: 10px; background: var(--surface); }
.type-groupe.actif { border-color: var(--bleu); box-shadow: 0 0 0 1px var(--bleu); }
.type-groupe-titre { display: block; padding: 2px 4px 8px; font: 700 .98rem/1.2 var(--police-titre); text-transform: uppercase; letter-spacing: .05em; color: var(--ardoise); text-decoration: none; }
a.type-groupe-titre:hover { color: var(--bleu); }
.type-groupe.actif .type-groupe-titre { color: var(--bleu); }
.type-groupe ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.type { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "img img" "nom compte"; gap: 2px 6px; padding: 8px; border-radius: 8px; text-decoration: none; color: var(--texte); background: var(--fond-pale); border: 1px solid transparent; transition: border-color .15s, background-color .15s; }
.type:hover { border-color: var(--bleu); background: var(--surface); color: var(--texte); }
.type .dessin { grid-area: img; width: 100%; height: 30px; margin-bottom: 4px; }
.type-nom { grid-area: nom; font-weight: 600; font-size: .88rem; line-height: 1.2; }
.type-compte { grid-area: compte; font-size: .78rem; color: var(--acier); align-self: end; }
.type.actif { background: var(--bleu-plein); border-color: var(--bleu); color: #fff; }
.type.actif .type-compte { color: #cfe2f6; }
.type.actif .dessin { --trait: #0a2a4a; }
.type-vide { opacity: .45; }

/* --- Application mobile ---------------------------------------------------- */
.nav .btn-app[aria-current="page"] { background: var(--bleu-plein); border-color: var(--bleu-plein); color: #fff; }
.bandeau-app { background: var(--bleu-pale); border-bottom: 1px solid var(--ligne); }
.bandeau-app .conteneur { display: flex; align-items: center; gap: 12px; padding-block: 10px; }
.bandeau-app img { width: 40px; height: 40px; border-radius: 9px; flex-shrink: 0; }
.bandeau-app p { flex: 1; min-width: 0; margin: 0; font-size: .9rem; line-height: 1.3; color: var(--texte-2); }
.bandeau-app p strong { display: block; color: var(--texte); font-size: .97rem; }
.bandeau-app .btn { min-height: 40px; padding: 0 16px; flex-shrink: 0; }
.bandeau-app-fermer { flex-shrink: 0; width: 36px; height: 36px; border: 0; background: none; color: var(--texte-2); font-size: 1.6rem; line-height: 1; cursor: pointer; border-radius: var(--rayon); }
.bandeau-app-fermer:hover { background: var(--gris-pale); color: var(--texte); }

.app-grille { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.app-installer { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 40px 28px; border-radius: 18px; background: var(--fond-pale); border: 1px solid var(--ligne); }
.app-installer img { width: 96px; height: 96px; border-radius: 22px; box-shadow: var(--ombre); margin-bottom: 10px; }
.app-installer h2 { margin: 0; }
.app-etat { color: var(--texte-2); margin: 0 0 14px; }
.app-installee { margin: 10px 0 0; color: var(--vert); font-weight: 600; }
.app-telechargements { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; width: min(100%, 380px); }
.btn-telecharger { width: 100%; min-height: 64px; padding: 10px 18px; justify-content: flex-start; gap: 14px; border-radius: 12px; text-align: left; }
.btn-telecharger svg { width: 28px; height: 28px; flex-shrink: 0; }
.btn-telecharger span { display: flex; flex-direction: column; line-height: 1.2; }
.btn-telecharger strong { font-size: 1.08rem; }
.btn-telecharger small { font-weight: 500; font-size: .85rem; opacity: .8; margin-top: 3px; }
.app-avertissement { width: min(100%, 380px); margin-top: 14px; text-align: left; font-size: .92rem; color: var(--texte-2); }
.app-avertissement summary { cursor: pointer; color: var(--bleu); font-weight: 600; text-align: center; }
.app-avertissement p { margin: 10px 0 6px; }
.app-avertissement ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }

.guide-install { width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 22px; border: 0; border-radius: 18px; background: var(--surface); color: var(--texte); box-shadow: 0 20px 60px rgb(0 0 0 / .35); }
.guide-install::backdrop { background: rgb(15 20 25 / .55); }
.gi-tete { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.gi-tete img { width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0; }
.gi-tete div { flex: 1; min-width: 0; }
.gi-tete h2 { margin: 0; font-size: 1.5rem; }
.gi-tete p { margin: 0; color: var(--texte-2); }
.gi-fermer { align-self: flex-start; width: 36px; height: 36px; border: 0; background: none; color: var(--texte-2); font-size: 1.6rem; line-height: 1; cursor: pointer; border-radius: var(--rayon); }
.gi-fermer:hover { background: var(--gris-pale); color: var(--texte); }
.gi-etapes { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; }
.gi-etapes li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 12px; background: var(--fond-pale); line-height: 1.45; }
.gi-etapes .gi-action { padding: 0; background: none; }
.gi-num { flex-shrink: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--bleu-plein); color: #fff; font-weight: 700; font-size: .95rem; }
.gi-picto, .gi-etapes li svg { width: 22px; height: 22px; vertical-align: -5px; color: var(--bleu); }
.app-atouts { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.app-atouts > li { display: flex; gap: 16px; align-items: flex-start; }
.app-atouts .atout-icone { flex-shrink: 0; margin: 0; }
.app-atouts .atout-icone svg { width: 26px; height: 26px; }
.app-atouts h3 { margin-bottom: .25em; }
.app-atouts p { margin: 0; color: var(--texte-2); }
.app-atouts .app-note { display: block; padding: 16px 18px; border-left: 4px solid var(--bleu); background: var(--bleu-pale); border-radius: 0 var(--rayon) var(--rayon) 0; color: var(--texte); }
.hors-ligne-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* Dans l'application installée, rien n'invite plus à l'installer. */
:root[data-plateforme="app"] .btn-app, :root[data-plateforme="app"] .lien-app, :root[data-plateforme="app"] .bandeau-app { display: none !important; }
@media (display-mode: standalone) {
  .btn-app, .lien-app, .bandeau-app { display: none !important; }
}

/* --- Thème sombre --------------------------------------------------------- */
:root[data-theme="dark"] {
  --bleu: #5aa3ec;
  --bleu-fonce: #9cc8f5;
  --bleu-pale: #1a2b3d;
  --bleu-plein: #1f6fc4;
  --bleu-plein-survol: #2a80da;
  --acier: #8d98a3;
  --texte: #e3e8ed;
  --texte-2: #a7b1bb;
  --fond: #121619;
  --fond-pale: #171c21;
  --surface: #1d2329;
  --survol: #222a31;
  --ligne: #2d353e;
  --ligne-forte: #3f4954;
  --vert: #5cc98a;
  --vert-pale: #16332a;
  --ambre: #f0b453;
  --ambre-pale: #3a2c13;
  --gris: #a9b2bb;
  --gris-pale: #262d34;
  --rouge: #ff8b7e;
  --ombre: 0 1px 2px rgb(0 0 0 / .35), 0 4px 16px rgb(0 0 0 / .3);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bleu: #5aa3ec;
    --bleu-fonce: #9cc8f5;
    --bleu-pale: #1a2b3d;
    --bleu-plein: #1f6fc4;
    --bleu-plein-survol: #2a80da;
    --acier: #8d98a3;
    --texte: #e3e8ed;
    --texte-2: #a7b1bb;
    --fond: #121619;
    --fond-pale: #171c21;
    --surface: #1d2329;
    --survol: #222a31;
    --ligne: #2d353e;
    --ligne-forte: #3f4954;
    --vert: #5cc98a;
    --vert-pale: #16332a;
    --ambre: #f0b453;
    --ambre-pale: #3a2c13;
    --gris: #a9b2bb;
    --gris-pale: #262d34;
    --rouge: #ff8b7e;
    --ombre: 0 1px 2px rgb(0 0 0 / .35), 0 4px 16px rgb(0 0 0 / .3);
    color-scheme: dark;
  }

  :root:not([data-theme="light"]) .btn-blanc, :root:not([data-theme="light"]) .btn-blanc:hover { color: #0a3f70; }
  :root:not([data-theme="light"]) .type-groupe-titre, :root:not([data-theme="light"]) .facette summary { color: var(--texte); }
  :root:not([data-theme="light"]) .type-tous.actif, :root:not([data-theme="light"]) .pagination span[aria-current], :root:not([data-theme="light"]) .puces-longueurs a.courant,
  :root:not([data-theme="light"]) .as-puce.discret:hover { background: #3d4752; border-color: #3d4752; }
  :root:not([data-theme="light"]) .puces-actives a:hover { background: #24384e; }
  :root:not([data-theme="light"]) .champ [aria-invalid="true"], :root:not([data-theme="light"]) .form-erreur, :root:not([data-theme="light"]) .as-erreur { background: #3a201d; border-color: #6b302a; }
  :root:not([data-theme="light"]) .as-puce { border-color: #2f4a66; }
  :root:not([data-theme="light"]) .cat-aide { border-color: #36597d; }
  :root:not([data-theme="light"]) .produit-visuel { background: linear-gradient(180deg, #1d2329, #171c21); }
  :root:not([data-theme="light"]) .carte-famille-visuel { background: linear-gradient(160deg, #20272e, #171c21); }
  :root:not([data-theme="light"]) .dessin.fini-black-oxide { --trait: #7d8893; }
  :root:not([data-theme="light"]) select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a7b1bb' stroke-width='1.6'/%3E%3C/svg%3E"); }
  :root:not([data-theme="light"]) .icone-lune, :root:not([data-theme="light"]) .si-clair { display: none; }
  :root:not([data-theme="light"]) .icone-soleil, :root:not([data-theme="light"]) .si-sombre { display: inline; }
}

:root[data-theme="dark"] .btn-blanc, :root[data-theme="dark"] .btn-blanc:hover { color: #0a3f70; }
:root[data-theme="dark"] .type-groupe-titre, :root[data-theme="dark"] .facette summary { color: var(--texte); }
:root[data-theme="dark"] .type-tous.actif, :root[data-theme="dark"] .pagination span[aria-current], :root[data-theme="dark"] .puces-longueurs a.courant,
:root[data-theme="dark"] .as-puce.discret:hover { background: #3d4752; border-color: #3d4752; }
:root[data-theme="dark"] .puces-actives a:hover { background: #24384e; }
:root[data-theme="dark"] .champ [aria-invalid="true"], :root[data-theme="dark"] .form-erreur, :root[data-theme="dark"] .as-erreur { background: #3a201d; border-color: #6b302a; }
:root[data-theme="dark"] .as-puce { border-color: #2f4a66; }
:root[data-theme="dark"] .cat-aide { border-color: #36597d; }
:root[data-theme="dark"] .produit-visuel { background: linear-gradient(180deg, #1d2329, #171c21); }
:root[data-theme="dark"] .carte-famille-visuel { background: linear-gradient(160deg, #20272e, #171c21); }
:root[data-theme="dark"] .dessin.fini-black-oxide { --trait: #7d8893; }
:root[data-theme="dark"] select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a7b1bb' stroke-width='1.6'/%3E%3C/svg%3E"); }
:root[data-theme="dark"] .icone-lune, :root[data-theme="dark"] .si-clair { display: none; }
:root[data-theme="dark"] .icone-soleil, :root[data-theme="dark"] .si-sombre { display: inline; }

/* --- Adaptatif ------------------------------------------------------------ */
@media (max-width: 1080px) {
  .nav a { padding: 10px 9px; font-size: .98rem; }
  .entete-ligne { gap: 16px; }
  .col-grade { display: none; }
}

@media (max-width: 900px) {
  .accueil-heros-grille, .gamme-grille, .apropos-grille, .deux-colonnes, .contact-grille, .produit, .produit-details, .soumission-grille { grid-template-columns: minmax(0, 1fr); }
  .accueil-heros-grille { min-height: 0; padding-block: 48px 32px; gap: 32px; }
  .assistant-integre { justify-self: stretch; max-width: none; height: 540px; }
  .confiance { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .confiance li:nth-child(3) { padding-left: 0; border-left: 0; }
  .grille-familles { grid-template-columns: 1fr 1fr; }
  .atouts { grid-template-columns: 1fr; gap: 24px; }
  .accueil-appel-ligne { flex-direction: column; align-items: flex-start; }
  .types-groupes { grid-template-columns: repeat(4, minmax(240px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .type-groupe { scroll-snap-align: start; }
  .btn-menu { display: inline-grid; place-items: center; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--ardoise); border-bottom: 3px solid var(--bleu); display: none; margin: 0; }
  .nav.ouvert { display: block; }
  .nav ul { flex-direction: column; padding: 8px 16px 16px; }
  .nav a { padding: 14px 10px; }
  .nav-outils { margin: 8px 0 0; padding: 12px 0 0; border-left: 0; border-top: 1px solid #4f5a65; gap: 8px; }
  .nav .btn-outil { flex: 1; height: 46px; }
  .nav-outils { flex-wrap: wrap; }
  .nav .btn-app { flex-basis: 100%; }
  .app-grille { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .outil-long { display: inline; }
  .outil-court { display: none; }
  .entete-actions { margin-left: auto; }
  .pied-grille { grid-template-columns: 1fr 1fr; }
  .carte-form { position: static; }

  .btn-filtres { display: inline-flex; }
  .cat-barre { flex-wrap: wrap; }
  .cat-barre .recherche { flex-basis: 100%; }
  .cat-corps { grid-template-columns: minmax(0, 1fr); }
  .filtres { position: fixed; inset: 0 auto 0 0; width: min(360px, 88vw); max-height: none; z-index: 80; background: var(--surface); padding: 0 18px 90px; transform: translateX(-105%); transition: transform .2s ease; box-shadow: 0 0 40px rgb(0 0 0 / .3); }
  body.filtres-ouverts .filtres { transform: none; }
  body.filtres-ouverts::after { content: ''; position: fixed; inset: 0; background: rgb(15 20 25 / .45); z-index: 70; }
  .filtres-tete { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: var(--surface); padding: 16px 0 10px; border-bottom: 2px solid var(--ardoise); z-index: 1; }
  .filtres-tete h2 { margin: 0; font-size: 1.5rem; }
  .btn-fermer { width: 40px; height: 40px; border: 1px solid var(--ligne); background: var(--surface); border-radius: var(--rayon); font-size: 1.5rem; line-height: 1; cursor: pointer; }
  .filtres-pied { display: block; position: fixed; bottom: 0; left: 0; width: min(360px, 88vw); padding: 12px 18px; background: var(--surface); border-top: 1px solid var(--ligne); }
  .filtres-pied .btn { width: 100%; }
}

@media (max-width: 720px) {
  .assistant-integre { height: 520px; border-radius: 14px; }
  .app-installer { padding: 32px 20px; }
  .app-installer .btn { width: 100%; }
  .bandeau-app .conteneur { gap: 10px; padding-block: 8px; }
  .bandeau-app p { font-size: .85rem; }
  .assistant-flottant { inset: 0; width: 100%; height: 100%; height: 100dvh; border-radius: 0; }
  body.assistant-ouvert { overflow: hidden; }
  .as-lanceur { right: 14px; bottom: 14px; padding: 12px 18px 12px 14px; font-size: 1rem; }
  .as-msg { max-width: 94%; }
  .cta-inventaire { display: flex; gap: 14px; padding: 18px; }
  .cta-icone { display: none; }
  .cta-texte strong { font-size: 1.45rem; }
  .cta-fleche { width: 40px; height: 40px; margin-left: auto; }
  .confiance strong { font-size: 1.7rem; }
  .confiance li { padding-inline: 14px; }
  .grille-familles, .cartes-contact { grid-template-columns: 1fr; }
  .entete-page { padding: 40px 0 36px; }
  .conteneur { padding-inline: 16px; }
  .bandeau-haut .conteneur > span:first-child { display: none; }
  .bandeau-tels { width: 100%; justify-content: space-between; gap: 10px; }
  .btn-soumission span:not(.compteur) { display: none; }
  .logo-nom { font-size: 1.55rem; }
  .logo-symbole { width: 36px; height: 36px; }
  .liste-gamme, .valeurs, .champs { grid-template-columns: 1fr; }
  .pied-grille { grid-template-columns: 1fr; }
  .tri { flex: 1; }
  .tri select { flex: 1; }
  .section { padding: 44px 0; }

  /* Tableau → cartes */
  .produits thead { display: none; }
  .produits, .produits tbody { display: block; }
  .produits tr { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--ligne); }
  .produits td { display: block; padding: 0; border: 0; width: auto; min-width: 0; }
  .produits .col-img { grid-row: span 2; width: auto; }
  .produits .col-img .dessin { width: 76px; }
  .produits .col-produit { grid-column: 2; }
  .produits .col-fini, .produits .col-grade { display: none; }
  .produits .col-dispo { grid-column: 2; min-width: 0; }
  .produits .col-dispo .dispo-detail { display: inline; margin-left: 6px; }
  .produits .col-ajout { grid-column: 1 / -1; width: auto; margin-top: 8px; }
  .produits .col-ajout .qte { flex: 0 0 96px; }
  .produits .col-ajout .btn-ajout { flex: 1; }
  .produits-compact tr { grid-template-columns: 1fr; }
  .produits-compact .col-produit, .produits-compact .col-dispo { grid-column: 1; }

  .ligne-soumission { grid-template-columns: 64px minmax(0, 1fr); }
  .ligne-soumission .dessin, .ligne-libre-icone { width: 64px; }
  .ligne-actions { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
  .alerte-qte { text-align: left; max-width: none; }
  .encart-aide { flex-direction: column; align-items: flex-start; }
  .confirmation { padding: 28px 18px; }
}

@media print {
  .bandeau-haut, .entete, .pied, .fil, .confirmation-actions, .toast, .soumission-grille { display: none !important; }
  .confirmation { box-shadow: none; border: 0; }
  body { font-size: 12pt; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
