:root {
  --rouge: #d8232a;
  --rouge-fonce: #a71b20;
  --cyan: #00a9ce;
  --cyan-fonce: #007e9a;
  --gris: #f4f5f7;
  --bord: #e2e5e9;
  --texte: #22262a;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Segoe UI', Arial, sans-serif; color: var(--texte); background: #fff; font-size: 15px; }
a { color: var(--cyan-fonce); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 18px; }

/* Bandeau haut */
.topline { background: var(--cyan); color: #fff; font-size: 13px; }
.topline .container { display: flex; justify-content: space-between; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; gap: 6px; }
.topline a { color: #fff; margin-left: 16px; font-weight: 600; }

/* Entête */
.mainhead { background: #fff; border-bottom: 1px solid var(--bord); }
.headrow { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; padding-bottom: 16px; gap: 20px; flex-wrap: wrap; }
.logo { font-size: 30px; font-weight: 900; color: var(--rouge); letter-spacing: 1px; }
.logo span { color: var(--cyan); font-weight: 300; }
.logo:hover { text-decoration: none; }
.search { display: flex; flex: 1; max-width: 440px; }
.search input { flex: 1; padding: 10px 14px; border: 2px solid var(--rouge); border-right: 0; border-radius: 4px 0 0 4px; font: inherit; }
.search input:focus { outline: none; border-color: var(--cyan); }
.search button { background: var(--rouge); color: #fff; border: 0; padding: 0 20px; border-radius: 0 4px 4px 0; font-weight: 700; cursor: pointer; }
.search button:hover { background: var(--rouge-fonce); }

/* Menu principal */
.mainnav { background: var(--rouge); }
.nav-toggle { display: none; background: var(--rouge-fonce); color: #fff; border: 0; padding: 12px 16px; font-weight: 700; font-size: 15px; cursor: pointer; width: 100%; text-align: left; }
.menu, .submenu { list-style: none; margin: 0; padding: 0; }
.menu { display: flex; flex-wrap: wrap; }
.menu > li { position: relative; }
.menu a { display: block; color: #fff; padding: 13px 18px; font-weight: 600; text-decoration: none; }
.menu a:hover { background: var(--rouge-fonce); text-decoration: none; }
.menu-ico { width: 22px; height: 22px; object-fit: contain; border-radius: 3px; vertical-align: middle; margin-right: 7px; background: #fff; }
.caret { font-size: 11px; opacity: .85; }
.sub-toggle { display: none; }

/* Sous-menus déroulants (desktop) */
.submenu { position: absolute; top: 100%; left: 0; min-width: 230px; background: #fff; border: 1px solid var(--bord);
  box-shadow: 0 8px 22px rgba(0,0,0,.18); z-index: 80; display: none; border-radius: 0 0 5px 5px; }
.menu li:hover > .submenu { display: block; }
.submenu li { position: relative; }
.submenu a { color: var(--texte); padding: 10px 14px; font-weight: 500; border-bottom: 1px solid var(--gris); }
.submenu a:hover { background: #eef9fc; color: var(--cyan-fonce); }
.submenu .menu-ico { background: var(--gris); }
/* sous-sous-menus : s'ouvrent sur le côté */
.submenu .submenu { top: 0; left: 100%; border-radius: 5px; }
.submenu .caret { color: var(--rouge); }

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .menu { display: none; flex-direction: column; }
  .menu.open { display: flex; }
  .menu > li { border-top: 1px solid var(--rouge-fonce); }
  /* accordéon mobile : les sous-menus s'ouvrent au clic (classe .open) */
  .submenu { position: static; display: none; box-shadow: none; border: 0; min-width: 0; background: rgba(0,0,0,.15); }
  .submenu a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.15); padding-left: 30px; }
  .submenu a:hover { background: var(--rouge-fonce); color: #fff; }
  .submenu .submenu { left: 0; background: rgba(0,0,0,.25); }
  .submenu .submenu a { padding-left: 46px; }
  .menu li.open > .submenu { display: block; }
  .menu li:hover > .submenu { display: none; } /* pas de hover sur mobile */
  .menu li.open > .submenu { display: block; }
  .menu li.has-sub { display: flex; flex-wrap: wrap; align-items: stretch; }
  .menu li.has-sub > a { flex: 1; }
  .sub-toggle { display: block; background: var(--rouge-fonce); color: #fff; border: 0; width: 48px; font-size: 16px; cursor: pointer; }
  .menu li.open > .sub-toggle { background: #7a1216; }
  .menu-ico { width: 26px; height: 26px; }
}

.main { padding: 26px 18px 50px; min-height: 55vh; }

/* Titres : texte blanc sur fond rouge */
h1, .section-title { background: var(--rouge); color: #fff; padding: 10px 18px; font-size: 22px; border-radius: 4px; margin: 0 0 20px; }
h2.section-title { font-size: 19px; margin-top: 34px; }
/* Mise en avant : bleu/cyan sur fond blanc */
.accent, h3 { color: var(--cyan-fonce); }
.price-big { color: var(--cyan-fonce); font-size: 30px; font-weight: 800; }
.price-big small { font-size: 14px; font-weight: 400; }

/* Héro */
.hero { background: linear-gradient(120deg, var(--rouge) 0%, var(--rouge-fonce) 70%); color: #fff; border-radius: 6px; padding: 55px 45px; margin-bottom: 24px; background-size: cover; background-position: center; }
.hero h1 { background: none; padding: 0; font-size: 40px; margin: 0 0 8px; }
.hero p { font-size: 19px; margin: 0 0 22px; opacity: .95; }
.banner { background: #fff; border: 2px solid var(--cyan); color: var(--cyan-fonce); font-weight: 700; text-align: center; padding: 12px; border-radius: 5px; margin-bottom: 26px; }

/* Boutons */
.btn { display: inline-block; background: var(--cyan); color: #fff; border: 0; padding: 11px 22px; border-radius: 4px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--cyan-fonce); color: #fff; text-decoration: none; }
.btn-red { background: var(--rouge); }
.btn-red:hover { background: var(--rouge-fonce); }
.btn-sm { padding: 7px 13px; font-size: 13px; }
.btn-outline { background: #fff; color: var(--rouge); border: 2px solid var(--rouge); padding: 5px 11px; }
.btn-outline:hover { background: var(--rouge); color: #fff; }
.btn-outline.on { background: var(--rouge); color: #fff; }

/* Comparateur */
.is-hidden { display: none !important; }
.cmp-toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(20px); z-index: 300;
  background: var(--texte); color: #fff; padding: 10px 20px; border-radius: 6px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.cmp-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.linklike { border: 0; background: none; color: var(--cyan-fonce); cursor: pointer; text-decoration: underline; font: inherit; padding: 0; }
.linklike:hover { color: var(--rouge); }
.cmp-modal-ov { position: fixed; inset: 0; z-index: 400; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; }
.cmp-modal { background: #fff; border-radius: 8px; border-top: 4px solid var(--rouge); padding: 24px 28px; max-width: 380px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.cmp-modal p { font-size: 16px; margin: 0 0 18px; }
.cmp-modal-btns { display: flex; gap: 10px; justify-content: center; }
.compare-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 200; background: #fff; border-top: 3px solid var(--rouge);
  box-shadow: 0 -4px 16px rgba(0,0,0,.15); padding: 10px 20px; display: flex; align-items: center; gap: 14px; justify-content: center; flex-wrap: wrap; }
.compare-bar b { color: var(--rouge); }
.compare-wrap { overflow-x: auto; }
.compare-table { border-collapse: collapse; min-width: 100%; background: #fff; }
.compare-table th, .compare-table td { border: 1px solid var(--bord); padding: 10px 14px; text-align: center; vertical-align: middle; }
.compare-table .cmp-label { background: var(--rouge); color: #fff; text-align: left; font-weight: 700; position: sticky; left: 0; min-width: 130px; }
.cmp-head th { background: var(--gris); width: 200px; position: relative; }
.cmp-head img { width: 100%; max-width: 160px; height: 120px; object-fit: contain; display: block; margin: 0 auto 6px; }
.cmp-name { font-weight: 700; color: var(--texte); display: block; }
.cmp-name:hover { color: var(--rouge); }
.cmp-remove { position: absolute; top: 4px; right: 4px; }
.cmp-remove button { border: 0; background: rgba(255,255,255,.9); border-radius: 50%; width: 24px; height: 24px; cursor: pointer; color: var(--rouge); font-weight: 700; }
.cmp-remove button:hover { background: var(--rouge); color: #fff; }
.cmp-price { color: var(--cyan-fonce); font-weight: 800; font-size: 17px; }
.compare-table tr.cmp-diff td { background: #fff8e6; }
.compare-table tr.cmp-diff .cmp-label { background: var(--rouge-fonce); }

/* Grilles produits / catégories */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.pcard { border: 1px solid var(--bord); border-radius: 6px; overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: box-shadow .15s; }
.pcard:hover { box-shadow: 0 4px 14px rgba(0,0,0,.1); }
.pimg { display: block; background: var(--gris); text-align: center; position: relative; }
.pimg img { width: 100%; height: 170px; object-fit: contain; display: block; } /* ratio toujours respecté */

/* Icônes de caractéristiques : en pastille dans le coin de l'image (liste) et
   en rangée sur la fiche produit. --isz pilote la taille (et la police des
   valeurs numériques imprimées dessus). */
.pico-corner { position: absolute; bottom: 6px; right: 6px; display: flex; flex-direction: row-reverse; gap: 4px; z-index: 2; }
.pico { --isz: 42px; position: relative; display: inline-flex; width: var(--isz); height: var(--isz); }
.pico > img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pico-val { position: absolute; display: flex; align-items: center; line-height: 1; overflow: hidden; font-weight: 700; }
.no-pico .pico-corner { display: none; }               /* masquage via la case du filtre */
/* Légende cliquable des icônes dans la boîte de filtre. */
.pico-legend { display: flex; flex-direction: column; gap: 2px; margin: 6px 0 2px; }
.pico-leg { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 5px 6px;
  background: none; border: 1px solid transparent; border-radius: 5px; font-size: 13px; color: var(--texte); }
.pico-leg img { width: 26px; height: 26px; object-fit: contain; flex: none; }
.pico-leg.is-click { cursor: pointer; }
.pico-leg.is-click:hover { border-color: var(--cyan); background: #eef9fc; }
.pico-leg[disabled] { opacity: .8; }
.pico-list { display: flex; flex-wrap: wrap; gap: 12px; margin: 4px 0 16px; }
.pico-list .pico { --isz: 60px; }
.pico-list .pico-item { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 76px; text-align: center; }
.pico-list .pico-item small { color: #555; font-size: 11px; line-height: 1.2; }
.pbody { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pname { font-weight: 700; color: var(--texte); }
.pname:hover { color: var(--rouge); text-decoration: none; }
.pprice { color: var(--cyan-fonce); font-size: 19px; font-weight: 800; }
/* Promotions : prix barré, prix remisé, pastille de remise. */
.price-old { color: #999; font-weight: 500; text-decoration: line-through; font-size: .8em; }
.price-old-big { font-size: 18px; }
.price-now { color: var(--rouge); }
.promo-badge { position: absolute; top: 6px; left: 6px; z-index: 2; background: var(--rouge); color: #fff;
  font-weight: 800; font-size: 13px; padding: 3px 8px; border-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.promo-badge-inline { position: static; display: inline-block; vertical-align: middle; }
.pstock .ok { color: #187a41; font-size: 13px; font-weight: 600; }
.pstock .ko { color: var(--rouge); font-size: 13px; font-weight: 600; }
.pactions { display: flex; gap: 8px; margin-top: auto; }
.cat-desc { border: 1px solid var(--bord); border-left: 4px solid var(--cyan); background: var(--gris); border-radius: 6px; padding: 14px 18px; margin-bottom: 24px; color: var(--texte); line-height: 1.5; }
.ccard { display: block; border: 1px solid var(--bord); border-radius: 6px; overflow: hidden; text-align: center; background: #fff; }
.ccard:hover { box-shadow: 0 4px 14px rgba(0,0,0,.12); text-decoration: none; }
.ccard img { width: 100%; height: 130px; object-fit: cover; background: var(--gris); }
.ccard div { background: var(--rouge); color: #fff; font-weight: 700; padding: 10px; }

/* Fiche produit */
.prodpage { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 34px; align-items: start;
  grid-template-areas: "gallery info" "desc desc"; }
.prodpage .pimg-big { grid-area: gallery; }
.prodpage .pcol-right { grid-area: info; }
/* Description : pleine largeur, sous la photo ET les caractéristiques */
.prodpage .pdesc { grid-area: desc; min-width: 0; margin-top: 6px; }
.prodpage .pdesc .richcontent { overflow-x: auto; }   /* les tableaux larges défilent au lieu de casser la mise en page */
.richcontent table { border-collapse: collapse; max-width: 100%; margin: 10px 0; }
.richcontent table td, .richcontent table th { border: 1px solid var(--bord); padding: 5px 9px; }
/* Galerie produit : grande photo + carrousel de vignettes */
/* min-width:0 : empêche la colonne (grille) de s'étirer à la largeur des vignettes */
.prodpage .pimg-big { min-width: 0; position: relative; }

/* Bouton d'édition rapide de la photo (admin uniquement) */
.pa-edit-btn { position: absolute; top: 10px; right: 10px; z-index: 5; border: 0; border-radius: 4px;
  background: rgba(0,0,0,.62); color: #fff; font: 600 13px/1 inherit; padding: 7px 11px; cursor: pointer;
  opacity: .78; transition: opacity .15s; }
.pa-edit-btn:hover { opacity: 1; background: var(--rouge); }
/* Popup d'édition */
.pa-ov { position: fixed; inset: 0; z-index: 500; background: rgba(0,0,0,.5); display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px; overflow: auto; }
.pa-ov[hidden] { display: none; }
.pa-modal { background: #fff; border-radius: 8px; border-top: 4px solid var(--rouge); padding: 20px 24px; width: 540px; max-width: 100%; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.pa-modal h3 { margin: 0 0 14px; color: var(--rouge); }
.pa-close { position: absolute; top: 8px; right: 12px; border: 0; background: none; font-size: 22px; line-height: 1; cursor: pointer; color: #888; }
.pa-close:hover { color: var(--rouge); }
.pa-stage { width: 100%; height: 300px; background: var(--gris); border: 1px solid var(--bord); border-radius: 6px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pa-stage img { max-width: 92%; max-height: 92%; object-fit: contain; transition: transform .25s ease; }
.pa-rot { display: flex; align-items: center; gap: 8px; margin: 10px 0 4px; }
.pa-rot button { border: 1px solid var(--bord); background: #fff; border-radius: 4px; padding: 6px 12px; cursor: pointer; font: 600 13px/1 inherit; }
.pa-rot button:hover { border-color: var(--cyan); color: var(--cyan); }
.pa-rot-info { color: var(--cyan); font-size: 13px; font-weight: 600; }
.pa-lbl { display: block; margin-top: 10px; font-weight: 600; font-size: 14px; }
.pa-lbl input, .pa-lbl textarea { width: 100%; margin-top: 4px; padding: 7px 9px; border: 1px solid var(--bord); border-radius: 4px; font: inherit; font-weight: 400; }
.pa-err { color: var(--rouge); font-size: 13px; margin: 10px 0 0; }
.pa-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }

/* Pop-up immatriculation (carte grise) */
.reg-ov { position: fixed; inset: 0; z-index: 500; background: rgba(0,0,0,.5); display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow: auto; }
.reg-ov[hidden] { display: none; }
.reg-modal { background: #fff; border-radius: 8px; border-top: 4px solid var(--rouge); padding: 22px 26px; width: 560px; max-width: 100%; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.reg-modal h3 { margin: 0 0 14px; color: var(--rouge); }
.reg-close { position: absolute; top: 8px; right: 12px; border: 0; background: none; font-size: 22px; line-height: 1; cursor: pointer; color: #888; }
.reg-close:hover { color: var(--rouge); }
.reg-photo { display: block; max-width: 220px; max-height: 150px; margin: 0 auto 12px; border: 1px solid var(--bord); border-radius: 6px; }
.reg-intro { font-size: 16px; text-align: center; margin: 0 0 6px; }
.reg-price { text-align: center; font-size: 15px; margin: 0 0 4px; }
.reg-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.reg-radio { display: inline-flex; align-items: center; gap: 6px; margin-right: 18px; font-weight: 500; }
.reg-doclist { margin: 6px 0 0; padding-left: 20px; }
.reg-doclist li { margin: 3px 0; }
.reg-renounce { margin: 14px 0 0; padding: 10px 12px; background: #fff4f4; border: 1px solid var(--rouge); border-radius: 6px; color: var(--rouge-fonce); font-size: 13.5px; }
.gal-stage { position: relative; width: 100%; aspect-ratio: 4 / 3; max-height: 70vh; border: 1px solid var(--bord); border-radius: 6px; background: var(--gris); overflow: hidden; perspective: 900px; }
.gal-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .6s ease, transform .6s ease, filter .6s ease; }
/* fondu-flou */
.fx-fade.in { opacity: 0; filter: blur(10px); }
.fx-fade.out { opacity: 0; filter: blur(10px); }
/* glissement droite -> gauche */
.fx-slide-rl.in { transform: translateX(100%); }
.fx-slide-rl.out { transform: translateX(-100%); }
.fx-slide-rl.rev.in { transform: translateX(-100%); }
.fx-slide-rl.rev.out { transform: translateX(100%); }
/* glissement gauche -> droite */
.fx-slide-lr.in { transform: translateX(-100%); }
.fx-slide-lr.out { transform: translateX(100%); }
.fx-slide-lr.rev.in { transform: translateX(100%); }
.fx-slide-lr.rev.out { transform: translateX(-100%); }
/* zoom */
.fx-zoom.in { opacity: 0; transform: scale(.55); }
.fx-zoom.out { opacity: 0; transform: scale(1.45); }
/* volet 3D */
.fx-flip.in { opacity: 0; transform: rotateY(85deg); }
.fx-flip.out { opacity: 0; transform: rotateY(-85deg); }

.gal-thumbs-wrap { display: flex; align-items: center; gap: 6px; margin-top: 8px; min-width: 0; }
/* vignettes sur une ligne : ce qui dépasse est masqué, défilement horizontal possible */
.gal-thumbs { display: flex; gap: 8px; flex-wrap: nowrap; overflow-x: auto; flex: 1; min-width: 0; padding-bottom: 4px; }
.gal-thumbs::-webkit-scrollbar { height: 6px; }
.gal-thumbs::-webkit-scrollbar-track { background: transparent; }
.gal-thumbs::-webkit-scrollbar-thumb { background: var(--bord); border-radius: 3px; }
.gal-thumbs:hover::-webkit-scrollbar-thumb { background: var(--cyan); }
.gal-thumbs img { width: 72px; height: 56px; flex-shrink: 0; object-fit: contain; background: var(--gris); border: 2px solid var(--bord); border-radius: 4px; cursor: pointer; }
.gal-thumbs img:hover { border-color: var(--cyan); }
.gal-thumbs img.on { border-color: var(--rouge); } /* vignette courante : bordure 2px rouge */
.gal-arrow { flex-shrink: 0; width: 34px; height: 56px; border: 0; border-radius: 5px; cursor: pointer; font-size: 24px; line-height: 1;
  background: linear-gradient(135deg, var(--rouge), var(--rouge-fonce)); color: #fff; transition: transform .15s, box-shadow .15s; }
.gal-arrow:hover { transform: scale(1.08); box-shadow: 0 3px 10px rgba(216,35,42,.4); }
.gal-fly { position: fixed; z-index: 300; object-fit: contain; background: rgba(255,255,255,.85); border: 2px solid var(--rouge); border-radius: 6px; transition: all .45s cubic-bezier(.2,.8,.3,1); pointer-events: none; }
.features { width: 100%; border-collapse: collapse; margin: 14px 0; }
.features td { padding: 7px 12px; border-bottom: 1px solid var(--bord); }
.features td:first-child { font-weight: 700; color: var(--cyan-fonce); width: 45%; }
.optbox { border: 2px solid var(--cyan); border-radius: 6px; padding: 12px 14px; margin: 16px 0; }
.optbox h3 { margin: 0 0 8px; background: var(--rouge); color: #fff; padding: 6px 12px; border-radius: 4px; font-size: 15px; }
.optchoice { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border: 1px solid var(--bord); border-radius: 5px; margin: 6px 0; cursor: pointer; font-weight: 400; }
.optchoice:hover { border-color: var(--cyan); }
.optchoice:has(input:checked) { border-color: var(--cyan); background: #f2fbfd; box-shadow: inset 0 0 0 1px var(--cyan); }
.optchoice input { accent-color: var(--rouge); }
.optchoice img, .optchoice .oc-noimg { width: 42px; height: 42px; object-fit: contain; background: var(--gris); border-radius: 4px; flex-shrink: 0; }
.oc-noimg { display: flex; align-items: center; justify-content: center; color: #999; font-size: 20px; }
.oc-label { flex: 1; }
.oc-price { color: var(--cyan-fonce); font-weight: 700; white-space: nowrap; }
.qtyrow { display: flex; align-items: center; gap: 12px; margin: 18px 0; }
.qtyrow input { width: 80px; padding: 10px; border: 2px solid var(--bord); border-radius: 4px; text-align: center; font-size: 16px; }

/* Filtres catégorie */
.cat-layout { display: grid; grid-template-columns: 250px 1fr; gap: 26px; align-items: start; }
.filterbar { background: var(--gris); border-radius: 6px; padding: 16px 18px; position: sticky; top: 10px; }

/* Grand écran : la box « Filtrer » se loge dans la marge blanche à gauche du
   contenu centré, collée vers le centre. Sa colonne de grille est ramenée à 0 et
   la box est décalée par marge négative dans la marge : la grille de vignettes
   récupère ainsi toute la largeur du conteneur (aucune place perdue). Le clamp
   borne sa largeur à l'espace blanc réellement disponible pour ne jamais déborder
   de l'écran ; en dessous de ce point, la disposition à deux colonnes est conservée. */
/* Filtre logé dans l'espace blanc à gauche du conteneur : la grille de produits
   garde TOUTE la largeur du conteneur (identique à une page sans filtre, les
   produits ne bougent pas), et la box filtre est décalée dans la marge par une
   marge négative. La largeur de la box s'adapte à l'espace blanc réellement
   disponible (plafonnée à 260px). Actif seulement quand la marge est assez large
   (≥ ~200px) ; sinon on garde la disposition à deux colonnes. Sticky conservé. */
@media (min-width: 1580px) {
  .cat-layout {
    grid-template-columns: 0 minmax(0, 1fr);
    column-gap: 0;
    --fw: min(260px, calc((100vw - 1180px) / 2 - 24px));
  }
  .cat-layout > .filterbar {
    width: var(--fw, 240px);
    margin-left: calc(-1 * var(--fw, 240px) - 20px);
  }
}

/* Barre au-dessus des produits : compteur à gauche, densité d'affichage à droite. */
.cat-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.cat-toolbar .density { margin-left: auto; }
.cat-sort { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.cat-sort select { padding: 6px 8px; border: 1px solid var(--bord); border-radius: 5px; }
.density { display: inline-flex; gap: 4px; }
.density button { min-width: 34px; height: 32px; padding: 0 8px; border: 1px solid var(--bord); background: #fff;
  border-radius: 5px; cursor: pointer; font-size: 14px; font-weight: 700; color: var(--texte); line-height: 30px; }
.density button:hover { border-color: var(--cyan); }
.density button.on { background: var(--rouge); border-color: var(--rouge); color: #fff; }

/* Densités : nombre fixe de colonnes, ou vue liste (1 par ligne, carte horizontale). */
.grid.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid.grid-6 { grid-template-columns: repeat(6, 1fr); }
.grid.grid-list { grid-template-columns: 1fr; }
.grid.grid-list .pcard { flex-direction: row; align-items: stretch; }
.grid.grid-list .pimg { flex: 0 0 240px; }
.grid.grid-list .pimg img { height: 100%; max-height: 200px; }
.grid.grid-list .pbody { flex: 1; }
@media (max-width: 900px) {
  .grid.grid-4, .grid.grid-5, .grid.grid-6 { grid-template-columns: repeat(2, 1fr); }
  .grid.grid-list .pcard { flex-direction: column; }
  .grid.grid-list .pimg { flex: none; }
}
.filter-title { background: var(--rouge); color: #fff; font-weight: 800; padding: 8px 14px; border-radius: 4px; margin-bottom: 14px; }
.filter-group { border-bottom: 1px solid var(--bord); padding: 10px 0 14px; }
.filter-name { font-weight: 700; color: var(--cyan-fonce); margin-bottom: 8px; }
.filter-check { display: block; font-weight: 400; margin: 4px 0; cursor: pointer; }
.filter-check input { accent-color: var(--rouge); }
.filter-more-toggle { background: none; border: none; padding: 2px 0; margin-top: 2px; color: var(--cyan-fonce); font-weight: 600; font-size: 13px; cursor: pointer; }
.filter-more-toggle:hover { text-decoration: underline; }
.filter-more-toggle .fm-less { display: none; }
.filter-more-toggle[aria-expanded="true"] .fm-more { display: none; }
.filter-more-toggle[aria-expanded="true"] .fm-less { display: inline; }
.filterbar .btn { margin-top: 14px; }
.range-labels { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--rouge); margin-bottom: 4px; }
.range-wrap { position: relative; height: 26px; }
.range-track { position: absolute; top: 11px; left: 0; right: 0; height: 4px; background: #cfd5db; border-radius: 2px; }
.range-wrap input[type=range] {
  position: absolute; left: 0; top: 0; width: 100%; margin: 0; height: 26px;
  -webkit-appearance: none; appearance: none; background: none; pointer-events: none;
}
.range-wrap input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; pointer-events: auto; cursor: pointer;
  width: 18px; height: 18px; border-radius: 50%; background: var(--rouge);
  border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); margin-top: 4px;
}
.range-wrap input[type=range]::-moz-range-thumb {
  pointer-events: auto; cursor: pointer; width: 14px; height: 14px; border-radius: 50%;
  background: var(--rouge); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.range-wrap input[type=range]::-webkit-slider-runnable-track { background: none; }
.range-wrap input[type=range]::-moz-range-track { background: none; }

/* Tableaux */
table.tbl { width: 100%; border-collapse: collapse; background: #fff; }
table.tbl th { background: var(--rouge); color: #fff; text-align: left; padding: 10px 12px; font-size: 13px; }
table.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--bord); vertical-align: middle; }
/* Ligne « article offert » (promo cadeau) : en rouge. */
.gift-row td { color: var(--rouge); font-weight: 600; }
.gift-tag { display: inline-block; background: var(--rouge); color: #fff; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 4px; margin-right: 6px; }
.num { text-align: right; }
.opt-row td:first-child { padding-left: 34px; font-style: italic; color: #555; }
.tbl input.qty { width: 64px; padding: 6px; text-align: center; border: 1px solid var(--bord); border-radius: 3px; }
.cart-total { text-align: right; font-size: 17px; margin: 18px 0; }
.cart-total b { color: var(--rouge); font-size: 23px; }

/* Formulaires */
label { display: block; margin: 12px 0 5px; font-weight: 700; font-size: 14px; }
input[type=text], input[type=email], input[type=password], input[type=number], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--bord); border-radius: 4px; font: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--cyan); }
.formbox { max-width: 460px; background: var(--gris); padding: 26px 30px; border-radius: 6px; border-top: 4px solid var(--rouge); }
/* Page d'identification : connexion à gauche, création de compte à droite */
.login-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.login-grid .formbox { max-width: none; }
@media (max-width: 760px) { .login-grid { grid-template-columns: 1fr; } }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }

/* Contenus riches (descriptions produits, pages CMS) */
.richcontent img, .cms-content img { max-width: 100%; height: auto; border-radius: 4px; }
.richcontent h2, .cms-content h2 { background: none; color: var(--rouge); padding: 0; font-size: 20px; }
.richcontent h3, .cms-content h3 { color: var(--cyan-fonce); }
.richcontent blockquote, .cms-content blockquote { border-left: 4px solid var(--cyan); margin-left: 0; padding: 4px 16px; color: #555; }

/* Carte d'adresse */
.addr-map { height: 280px; border: 1px solid var(--bord); border-radius: 6px; margin-top: 10px; }
.addr-status { min-height: 16px; margin: 6px 0; }

/* Espace client */
.acc-grid { display: grid; grid-template-columns: 230px 1fr; gap: 26px; align-items: start; }
.acc-menu { background: var(--gris); border-radius: 6px; padding: 10px 0; }
.acc-menu a { display: block; padding: 10px 20px; color: var(--texte); font-weight: 600; }
.acc-menu a:hover, .acc-menu a.on { background: var(--rouge); color: #fff; text-decoration: none; }
.addr-card { border: 1px solid var(--bord); border-radius: 6px; padding: 14px 18px; white-space: pre-line; }
.addr-card b { color: var(--cyan-fonce); display: block; white-space: normal; }

/* Checkout */
.steps { display: flex; gap: 6px; margin-bottom: 24px; }
.steps span { flex: 1; text-align: center; padding: 10px; background: var(--gris); border-radius: 4px; font-weight: 700; color: #888; }
.steps span.on { background: var(--rouge); color: #fff; }
.paybox { border: 2px solid var(--bord); border-radius: 6px; padding: 14px 18px; margin: 10px 0; display: flex; gap: 12px; align-items: center; cursor: pointer; }
.paybox:has(input:checked) { border-color: var(--cyan); background: #f2fbfd; }

/* Coordonnées bancaires pour un règlement par virement. IBAN, BIC et référence
   sont en monospace : le client les recopie, une police à chasse fixe évite de
   confondre 0/O et 1/l. */
.bankbox { border: 2px solid var(--cyan); border-radius: 6px; padding: 12px 16px; margin: 12px 0; background: #f2fbfd; }
.bankbox table { border-collapse: collapse; margin-top: 6px; }
.bankbox td { padding: 3px 14px 3px 0; vertical-align: top; }
.bankbox td:first-child { color: #555; font-size: 13px; white-space: nowrap; }
.bankbox .bankval { font-family: Consolas, "Courier New", monospace; font-weight: 700; font-size: 15px; letter-spacing: .5px; }

/* Sélecteur d'adresse replié : seule l'adresse retenue est visible, la flèche
   déplie les autres. Évite d'étaler dix adresses au moment de commander. */
.addr-pick { margin: 10px 0; }
.addr-chip { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer;
  border: 2px solid var(--cyan); background: #f2fbfd; border-radius: 6px;
  padding: 14px 18px; display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.addr-chip-txt { flex: 1 1 auto; }
.addr-chip-caret { flex: 0 0 auto; font-size: 18px; line-height: 1; color: var(--cyan-fonce); transition: transform .15s; }
.addr-chip[aria-expanded="true"] .addr-chip-caret { transform: rotate(180deg); }
/* Une seule adresse possible : plus rien à choisir, on retire l'affordance. */
.addr-chip.one-only { cursor: default; }
.addr-chip.one-only .addr-chip-caret { display: none; }
.addr-list { border-left: 3px solid var(--cyan); padding-left: 10px; margin-top: 4px; }
.addr-list .paybox { margin: 6px 0; }


/* Badges / messages */
.badge { display: inline-block; padding: 3px 10px; border-radius: 10px; font-size: 12px; font-weight: 700; }
.badge-ok { background: #d9f2e3; color: #187a41; }
.badge-ko { background: #fbdcdd; color: var(--rouge-fonce); }
.badge-info { background: #d5f0f7; color: var(--cyan-fonce); }
.badge-draft { background: #e9ecef; color: #555; }
.flash { padding: 12px 16px; border-radius: 4px; margin-bottom: 16px; font-weight: 600; }
.flash-ok { background: #d9f2e3; color: #187a41; }
.flash-err { background: #fbdcdd; color: var(--rouge-fonce); }
.muted { color: #777; font-size: 13px; }

/* Pied de page */
.mainfoot { background: var(--rouge); color: #fff; margin-top: 40px; }
/* Colonnes du pied réparties sur TOUTE la largeur (plus limitées au conteneur central). */
.footcols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 26px 40px; padding: 34px 40px 20px; }
.mainfoot h4 { border-bottom: 2px solid rgba(255,255,255,.4); padding-bottom: 6px; }
.mainfoot a { color: #fff; }
.footbase { background: var(--rouge-fonce); text-align: center; padding: 12px; font-size: 13px; }

@media (max-width: 800px) {
  .prodpage, .acc-grid, .cat-layout { grid-template-columns: 1fr; }
  .prodpage { grid-template-areas: "gallery" "info" "desc"; }   /* mobile : description en dernier */
  .grid2 { grid-template-columns: 1fr; }
  .filterbar { position: static; }
}

/* Code de session / dépannage à distance */
.sup-code{display:inline-block;margin-left:8px;padding:1px 6px;border:1px solid currentColor;border-radius:3px;font-size:.85em;opacity:.85;cursor:help;letter-spacing:.5px}

/* Délai d'approvisionnement (produit hors stock) */
.lead-time { display: inline-block; margin-left: 8px; color: #8a5a00; font-size: 13px; }

/* Page « Nos marques » */
.brand-tile img { width: 100%; height: 120px; object-fit: contain; background: #fff; padding: 14px; box-sizing: border-box; }
.brand-tile .brand-noimg { display: flex; align-items: center; justify-content: center; height: 120px; background: var(--gris); color: var(--texte); font-weight: 700; font-size: 18px; padding: 10px; }
.brand-head { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.brand-head-logo { max-height: 70px; max-width: 180px; object-fit: contain; }
.brand-head h1 { margin: 0; }

/* Pagination front */
.pager-bar { display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: center; align-items: center; margin: 24px 0; }
.pager-bar .pager { margin: 0; }
.pager-per, .pager-jump { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--texte); }
.pager-per select, .pager-jump input { padding: 6px 8px; border: 1px solid var(--bord); border-radius: 5px; }
.pager-jump input { width: 64px; text-align: center; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 24px 0; }
.pager a, .pager span { display: inline-block; min-width: 34px; text-align: center; padding: 7px 10px; border: 1px solid var(--bord); border-radius: 5px; color: var(--texte); text-decoration: none; }
.pager a:hover { border-color: var(--rouge); color: var(--rouge); }
.pager .on { background: var(--rouge); color: #fff; border-color: var(--rouge); font-weight: 700; }
.pager .pager-gap { border: none; min-width: 0; padding: 7px 2px; color: var(--muted, #999); }

/* Page 404 */
.notfound { text-align: center; max-width: 680px; margin: 20px auto 40px; }
.notfound .nf-code { font-size: 96px; font-weight: 800; color: var(--rouge); line-height: 1; letter-spacing: 2px; }
.notfound h1 { margin: 6px 0 10px; }
.notfound .nf-lead { color: #555; font-size: 17px; margin-bottom: 20px; }
.notfound .nf-search { display: flex; gap: 8px; justify-content: center; margin: 22px auto; max-width: 460px; }
.notfound .nf-search input { flex: 1; padding: 10px 12px; border: 1px solid var(--bord); border-radius: 5px; }
.notfound .nf-cats { margin-top: 34px; text-align: left; }

/* Enlèvement au dépôt : cadre + calendrier d'enlèvement */
.pickup-box { border: 1px solid var(--bord); border-radius: 8px; background: var(--gris); padding: 12px 14px; margin: -2px 0 12px 30px; }
.pickup-loc div { line-height: 1.4; margin-top: 2px; }
.pickup-cal { max-width: 320px; margin-top: 6px; background: #fff; border: 1px solid var(--bord); border-radius: 6px; padding: 8px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; font-weight: 700; margin-bottom: 6px; }
.cal-nav { border: 1px solid var(--bord); background: #fff; border-radius: 5px; cursor: pointer; width: 28px; height: 28px; font-size: 16px; line-height: 1; }
.cal-nav:hover:not(:disabled) { border-color: var(--rouge); color: var(--rouge); }
.cal-nav:disabled { opacity: .35; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-dow { text-align: center; font-size: 11px; color: #888; padding: 2px 0; }
.cal-day { position: relative; border: 1px solid var(--bord); background: #fff; color: var(--texte); border-radius: 5px; cursor: pointer; padding: 7px 0 11px; font: inherit; font-size: 13px; }
.cal-day:hover { border-color: #2e9c4a; background: #f0faf2; }
.cal-day.cal-off { background: #f4f5f7; color: #c6c6c6; border-color: transparent; cursor: default; }
.cal-day.cal-sel { border-color: #2e9c4a; background: #eaf7ea; font-weight: 700; }
.cal-dot { position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%); width: 8px; height: 8px; border-radius: 50%; background: #2e9c4a; }

/* --- Location : sélection d'une période --- */
.cal-day.cal-range { background: #eaf7ea; border-color: #bfe3c6; }
.rental-box { border: 1px solid var(--bord); border-radius: 8px; padding: 14px; margin: 14px 0; background: #fbfcfd; }
.rental-box h3 { margin: 0 0 8px; font-size: 16px; }
.rental-price { margin-top: 10px; padding: 10px 12px; border-radius: 6px; background: #fff; border: 1px solid var(--bord); font-size: 15px; }
.rrow { display: flex; align-items: center; gap: 8px; }
.rrow b { min-width: 92px; }
.rl-key { display: inline-block; width: 13px; height: 13px; border-radius: 3px; vertical-align: -2px; margin: 0 4px 0 10px; }
.rl-key.rl-off { background: #f4f5f7; border: 1px solid var(--bord); }
.rl-key.rl-sel { background: #eaf7ea; border: 1px solid #2e9c4a; }

/* pièces jointes : état d'envoi */
.rdoc { margin-bottom: 10px; }
.rdoc-status { font-size: 14px; }
.rdoc-status .ok { color: #187a41; font-weight: 600; }
.rdoc-status .ko { color: var(--rouge); font-weight: 600; }
.rdoc-status .pending { color: #8a5a00; }
.rental-recap { margin-top: 8px; padding: 8px 10px; border-left: 3px solid var(--rouge); background: #fff; border-radius: 4px; font-size: 14px; }
/* Mes locations : séparation nette entre deux réservations (lignes hautes) */
.rentals-tbl td { vertical-align: top; padding-top: 14px; padding-bottom: 14px; }
.rentals-tbl tr + tr td { border-top: 2px solid var(--bord); }
.rentals-tbl tr:last-child td { border-bottom: none; }

/* prolongation : bouton au-dessus du champ, le sélecteur de date s'ouvrant vers le bas */
.rent-extend { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.rent-extend input[type=datetime-local] { width: 100%; max-width: 235px; }
.rdoc-files { list-style: none; margin: 4px 0 0; padding: 0; }
.rdoc-files li { display: flex; align-items: center; gap: 6px; font-size: 14px; padding: 2px 0; }
.rdoc-files .ok { color: #187a41; font-weight: 700; }
.rdoc-del { border: none; background: none; color: var(--rouge); cursor: pointer; font-size: 14px; padding: 0 4px; }
.rdoc-del:hover { text-decoration: underline; }

/* grosse flèche rouge indiquant ce qui manque */
.miss-hint { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 10px 14px;
  border: 2px dashed var(--rouge); border-radius: 8px; background: #fff6f6; color: var(--rouge-fonce, #8c1418); }
/* doit l'emporter sur le display:flex ci-dessus, sinon l'attribut [hidden] reste sans effet */
.miss-hint[hidden] { display: none; }
.miss-hint b { color: var(--rouge); }
.miss-arrow { font-size: 34px; line-height: 1; color: var(--rouge); animation: missbounce 1s ease-in-out infinite; }
@keyframes missbounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .miss-arrow { animation: none; } }

/* ===== Blocs de la page d'accueil ===== */
.hb-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; margin-bottom: 22px; }
.hb-col { min-width: 0; }
.hb-w12 { grid-column: span 12; } .hb-w9 { grid-column: span 9; } .hb-w8 { grid-column: span 8; }
.hb-w6 { grid-column: span 6; }  .hb-w4 { grid-column: span 4; } .hb-w3 { grid-column: span 3; }
/* un bloc peut occuper plusieurs lignes : les blocs étroits suivants s'empilent alors à côté */
.hb-r2 { grid-row: span 2; } .hb-r3 { grid-row: span 3; }
.hb-grid { grid-auto-rows: minmax(0, auto); }
@media (max-width: 900px) { .hb-col { grid-column: span 12 !important; grid-row: auto !important; } }

.hb { border-radius: 8px; overflow: hidden; height: 100%; }
/* bloc image + texte superposé */
.hb-image { display: flex; padding: 22px; background: var(--gris); position: relative; }
/* image de fond en <img> (porte alt/title pour le référencement) */
.hb-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hb-overlay { padding: 16px 22px; border-radius: 8px; max-width: 90%; line-height: 1.35; position: relative; z-index: 1; }
.hb-overlay .hb-title { font-size: 1.5em; font-weight: 800; }
.hb-overlay .hb-text { font-size: .62em; margin-top: 6px; }
.hb-overlay .btn { margin-top: 12px; font-size: 15px; }
/* bandeau / texte */
.hb-text-block { padding: 14px 18px; border-radius: 8px; }
/* carrousel */
.hb-carousel { position: relative; }
.hb-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; }
.hb-slide.on { opacity: 1; }
/* Le lien couvre toute la diapositive : les commandes doivent donc passer
   AU-DESSUS de lui (z-index 3), sinon le clic sur une flèche ouvre le lien
   au lieu de faire défiler. */
.hb-slide-link { position: absolute; inset: 0; z-index: 2; }
.hb-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 18px; background: rgba(0,0,0,.5); color: #fff; z-index: 1; }
.hb-nav { position: absolute; top: 50%; transform: translateY(-50%); border: none; background: rgba(0,0,0,.45);
  color: #fff; font-size: 26px; width: 40px; height: 52px; cursor: pointer; z-index: 3; }
.hb-nav:hover { background: rgba(0,0,0,.7); }
.hb-prev { left: 0; border-radius: 0 6px 6px 0; } .hb-next { right: 0; border-radius: 6px 0 0 6px; }
.hb-dots { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 3; }
.hb-dots span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.55); cursor: pointer; }
.hb-dots span.on { background: #fff; }
/* horaires */
.hb-hours { background: #fff; border: 1px solid var(--bord); padding: 16px 18px; }
.hb-hours-tbl { width: 100%; border-collapse: collapse; }
.hb-hours-tbl th { text-align: left; font-weight: 600; padding: 5px 0; width: 42%; }
.hb-hours-tbl td { padding: 5px 0; }
.hb-hours-tbl tr.on { color: var(--rouge); font-weight: 700; }
/* actualités */
.hb-news { background: #fff; border: 1px solid var(--bord); padding: 16px 18px; }
.hb-news-item { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--bord); }
.hb-news-item:last-child { border-bottom: none; }
.hb-news-item img { width: 110px; height: 78px; object-fit: cover; border-radius: 5px; flex: none; }
.hb-news-item h3 { margin: 2px 0 4px; font-size: 16px; }
.hb-news-date { font-size: 12px; }

/* Calendrier de fermeture */
.hb-closures { background: #fff; border: 1px solid var(--bord); padding: 16px 18px; }
.hb-cal-months { display: flex; gap: 18px; flex-wrap: wrap; }
.hb-cal { flex: 1 1 210px; min-width: 200px; }
.hb-cal-head { font-weight: 700; text-transform: capitalize; margin-bottom: 6px; color: var(--rouge); }
.hb-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.hb-cal-dow { font-size: 11px; font-weight: 700; color: #888; text-align: center; padding-bottom: 2px; }
.hb-cal-day { text-align: center; padding: 6px 0; font-size: 13px; border-radius: 4px; background: #eef9f0; color: #17632f; }
.hb-cal-day.closed { background: var(--gris); color: #b0b4b9; }
.hb-cal-day.holiday { background: #fbdcdd; color: var(--rouge-fonce); font-weight: 700; }
.hb-cal-day.today { outline: 2px solid var(--cyan); outline-offset: -2px; font-weight: 800; }
.hb-cal-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; color: #555; }
.hb-cal-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 5px; }
.hb-cal-legend .lg-open { background: #eef9f0; border: 1px solid #bfe3c6; }
.hb-cal-legend .lg-closed { background: var(--gris); border: 1px solid var(--bord); }
.hb-cal-legend .lg-holiday { background: #fbdcdd; border: 1px solid var(--rouge); }
.hb-cal-list { list-style: none; margin: 10px 0 0; padding: 0; font-size: 14px; }
.hb-cal-list li { padding: 3px 0; border-top: 1px solid var(--bord); }

/* Bloc horaires — mode dynamique */
.hb-dyn-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.hb-dyn-range { font-weight: 700; color: var(--cyan-fonce); font-size: 14px; }
.hb-dyn-nav { border: 1px solid var(--bord); background: #fff; color: var(--rouge); font-size: 20px; line-height: 1;
  width: 34px; height: 32px; border-radius: 5px; cursor: pointer; }
.hb-dyn-nav:hover:not(:disabled) { background: var(--rouge); color: #fff; border-color: var(--rouge); }
.hb-dyn-nav:disabled { opacity: .35; cursor: default; }
.hb-dyn-list th small { font-weight: 400; color: var(--cyan-fonce); }
.hb-dyn-list s { color: #9aa0a6; }
.hb-closed { color: var(--rouge); }
.hb-dyn-today:disabled { opacity: .45; cursor: default; }

/* Triangle d'attention inséré dans les textes riches (phrases d'acompte…) */
.ico-warn { font-size: 1.15em; line-height: 1; margin-right: .25em; }

/* Valeurs des filtres numériques (barres min/max) en rouge, éditables au clavier */
.range-labels .num-min, .range-labels .num-max, .range-labels .lbl-min, .range-labels .lbl-max { color: var(--rouge, #d8232a); font-weight: 600; }
.range-labels .num-min, .range-labels .num-max { border: 1px solid var(--bord, #d7dbe0); border-radius: 4px; padding: 1px 4px; background: #fff; }
