/* ===================================================================
   Bas de l'accueil (widgets/home-bas.php) - refonte 18/10/2026
   Bonnes affaires, Annonces Privilege, Annonces Intense, Garages a la une, Marques et modeles + Occasions + Forum.
   Charte 2026 : cartes blanches 8 px, titres #1f2a37, une seule echelle de textes (titre de bloc 18, sous-titre 13,5,
   titre de carte 15 gras, prix 16 gras / 17 Privilege, secondaire 13, actions 14 gras). Badges identiques au site
   (badge-nouveau, res-photo-badge, VENDU de derniereBaisse.php). Styles prefixes .hb (rien de partage n'est modifie).
   =================================================================== */
#general.hb26{float:none;width:auto;max-width:1000px;margin:0 auto;padding:0;box-sizing:border-box}
.hb{font-family:Arial,Helvetica,sans-serif;color:#222;clear:both}
.hb *{box-sizing:border-box}
.hb-s{background:#fff;border:1px solid #e2e2e2;border-radius:8px;box-shadow:0 1px 3px rgba(0,0,0,.05);padding:14px 14px 16px;margin:0 0 14px}
.hb-h{display:flex;align-items:center;gap:5px;margin:0 0 1px}
.hb-h h2{font:bold 18px Arial,Helvetica,sans-serif;color:#1f2a37;margin:0;padding:0;text-transform:none;background:none;border:0;line-height:1.2}
.hb-h svg{width:18px;height:18px;color:#2977dc;flex:none}
.hb-bd{font:bold 11px Arial,Helvetica,sans-serif;color:#7a4a00;background:#fff3cd;border:1px solid #f5d27a;border-radius:10px;padding:2px 8px;white-space:nowrap}
.hb-st{font-size:13.5px;color:#5b6472;margin:0 0 9px;line-height:1.35}
/* cartes */
.hb-card{position:relative;display:flex;flex-direction:column;min-width:0;border:1px solid #e2e2e2;border-radius:8px;overflow:hidden;background:#fff;color:#222;text-decoration:none;transition:border-color .15s,box-shadow .15s,transform .15s}
.hb-card:not(.hb-vendu):hover{border-color:#2977dc;box-shadow:0 4px 12px rgba(41,119,220,.15);transform:translateY(-1px);text-decoration:none}
.hb-card:not(.hb-vendu):hover .hb-t{color:#1f63bd}
.hb-ph{position:relative;display:block;background:#f3f5f8}
.hb-ph img{display:block;width:100%;object-fit:cover}
.hb-ba .hb-ph img{height:130px}.hb-pv .hb-ph img{height:170px}
.hb-i{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0;padding:9px 11px 11px}
.hb-t{font:bold 15px Arial,Helvetica,sans-serif;color:#1f2a37;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:color .15s}
.hb-l{font-size:13px;color:#5b6472;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hb-av{font-size:13px;color:#8a929e;text-decoration:line-through}
.hb-pr{display:flex;align-items:center;gap:7px;margin-top:auto;padding-top:6px}
.hb-p{font:bold 16px Arial,Helvetica,sans-serif;color:#1f2a37;white-space:nowrap}.hb-pv .hb-p{font-size:17px}
.hb-pct{background:#e8412c;color:#fff;font:bold 12px Arial,Helvetica,sans-serif;border-radius:4px;padding:2px 6px}
/* badges (memes que le reste du site) */
.hb-hg{position:absolute;top:6px;left:6px;display:flex;gap:4px;z-index:2}
.hb .badge-nouveau{display:inline-block;background:#2a9d5c;color:#fff;font-size:10px;font-weight:bold;padding:1px 5px;border-radius:3px;text-transform:uppercase;letter-spacing:.5px;line-height:1.5}
.hb-pri{display:inline-block;background:#ffc702;color:#1f2a37;font:bold 10px Arial,Helvetica,sans-serif;border-radius:3px;padding:1px 6px;line-height:1.5;text-transform:uppercase;letter-spacing:.5px}
.hb .res-photo-badge{position:absolute;bottom:4px;left:4px;top:auto;background:rgba(0,0,0,.55);color:#fff;font-size:11px;padding:2px 5px;border-radius:3px;display:inline-flex;align-items:center;gap:3px;z-index:2;pointer-events:none}
.hb .res-photo-badge svg{width:12px;height:12px;stroke:#fff;fill:none;stroke-width:1.5}
.hb-vendu{opacity:.8;cursor:default}
.hb-vendu-bd{position:absolute;left:0;right:0;bottom:0;background:#e8350e;color:#fff;font:bold 12px Arial,Helvetica,sans-serif;text-align:center;padding:3px 0;letter-spacing:1px;z-index:2}
/* rangees qui defilent (fleches) */
.hb-car{position:relative}
.hb-rail{display:flex;gap:12px;overflow-x:auto;scroll-behavior:smooth;scroll-snap-type:x mandatory;scrollbar-width:none;padding:2px;margin:0 -2px}
.hb-rail::-webkit-scrollbar{display:none}
.hb-rail>.hb-card{flex:0 0 calc((100% - 36px)/4);scroll-snap-align:start}
.hb-fl{position:absolute;top:58px;width:38px;height:38px;border-radius:50%;border:1px solid #d6dbe3;background:#fff;box-shadow:0 2px 6px rgba(0,0,0,.15);color:#1f2a37;font:bold 22px/34px Arial,Helvetica,sans-serif;text-align:center;cursor:pointer;z-index:3;padding:0;transition:color .15s,border-color .15s}
.hb-fl:hover{color:#2977dc;border-color:#2977dc}.hb-fl-g{left:-12px}.hb-fl-d{right:-12px}.hb-fl[hidden]{display:none}
.hb-g3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.hb-gg{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.hb-car.hb-mob>.hb-fl{display:none}
/* Intense */
.hb-int{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 22px}
.hb-ir{display:grid;grid-template-columns:84px minmax(0,1fr) auto;gap:12px;align-items:center;padding:9px 6px;margin:0 -6px;border-bottom:1px solid #eef0f3;border-radius:6px;color:#222;text-decoration:none;transition:background-color .15s}
.hb-ir:hover{background:#f5f8fd;text-decoration:none}.hb-ir:hover .hb-t{color:#1f63bd}
.hb-ir .hb-ph{width:84px;height:63px;border-radius:6px;overflow:hidden}
.hb-ir .hb-ph img{width:84px;height:63px}
.hb-ir .badge-nouveau{position:absolute;top:3px;left:3px;font-size:10px;padding:0 4px}
.hb-ir .hb-t,.hb-ir .hb-l{display:block}.hb-ir .hb-l{margin-top:3px}
.hb-int .hb-cache{display:none}.hb-int.hb-ouvert .hb-cache{display:grid}
.hb-plus{display:block;width:100%;margin-top:14px;height:42px;border:1px solid #2977dc;background:#fff;color:#2977dc;border-radius:8px;font:bold 14px Arial,Helvetica,sans-serif;cursor:pointer;transition:background-color .15s}
.hb-plus:hover{background:#f5f8fd}
/* Garages */
.hb-gc{display:flex;flex-direction:column;align-items:center;gap:3px;min-width:0;border:1px solid #e2e2e2;border-radius:8px;padding:12px 8px;background:#fff;color:#1f2a37;text-align:center;text-decoration:none;transition:border-color .15s,box-shadow .15s,transform .15s}
.hb-gc:hover{border-color:#2977dc;box-shadow:0 4px 12px rgba(41,119,220,.15);transform:translateY(-1px);text-decoration:none}
.hb-lg{width:132px;max-width:100%;height:56px;margin:0 auto 8px;display:flex;align-items:center;justify-content:center;background:#fff;border:1px solid #eef0f3;border-radius:6px;padding:4px}
.hb-lg img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.hb-gc b{font-size:15px;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:color .15s}.hb-gc:hover b{color:#1f63bd}
.hb-gc span{font-size:13px;color:#5b6472}.hb-gc em{font-style:normal;font-size:13px;color:#e09a00}
.hb-gc .hb-vv{margin-top:6px;font-size:14px;font-weight:bold;color:#2977dc}
/* Marques et modeles + Occasions */
.hb-duo{display:grid;grid-template-columns:2fr 1fr;gap:14px;align-items:start}.hb-duo .hb-s{margin:0 0 14px}
.hb-mmg{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.hb-mt{border:1px solid #e2e2e2;border-radius:8px;padding:10px 12px 12px;background:#fff;transition:border-color .15s,box-shadow .15s}
.hb-mt:hover{border-color:#c9d8ee;box-shadow:0 2px 8px rgba(0,0,0,.06)}
.hb-mn{display:flex;justify-content:space-between;align-items:center;font:bold 15px Arial,Helvetica,sans-serif;color:#1f2a37;text-decoration:none;margin-bottom:8px}
.hb-mn span{color:#2977dc;font-size:18px;line-height:1}.hb-mn:hover{color:#1f63bd;text-decoration:none}
.hb-mc{display:flex;flex-wrap:wrap;gap:6px}
.hb-mc a{font-size:13px;color:#1f2a37;background:#f3f5f8;border:1px solid transparent;border-radius:14px;padding:4px 10px;text-decoration:none;transition:background-color .15s,border-color .15s,color .15s}
.hb-mc a:hover{background:#e8f1fc;border-color:#c9d8ee;color:#1f63bd;text-decoration:none}
.hb-mplus{display:none}
.hb-mtout{display:inline-block;margin-top:12px;font-size:14px;font-weight:bold;color:#2977dc;text-decoration:none}.hb-mtout:hover{text-decoration:underline}
.hb-ol{display:flex;align-items:center;gap:10px;padding:9px 8px;margin:0 -8px;border-radius:8px;color:#1f2a37;text-decoration:none;transition:background-color .15s}
.hb-ol:hover{background:#f5f8fd;text-decoration:none}.hb-ol:hover .hb-ot{color:#1f63bd}
.hb-oi{flex:none;width:36px;height:36px;border-radius:50%;background:#e8f1fc;color:#2977dc;display:flex;align-items:center;justify-content:center}
.hb-oi svg{width:18px;height:18px}
.hb-ot{flex:1;display:block;font:bold 15px Arial,Helvetica,sans-serif;color:#1f2a37;transition:color .15s}
.hb-ot small{display:block;font:normal 13px Arial,Helvetica,sans-serif;color:#5b6472;margin-top:1px}
.hb-oc{flex:none;color:#8a929e;font-size:18px}
.hb-h2b{margin-top:16px}
.hb a:focus-visible,.hb button:focus-visible{outline:2px solid #1f63bd;outline-offset:2px}
@media (prefers-reduced-motion:reduce){.hb *{transition:none!important}}
/* Forum : bande pleine largeur, 5 derniers sujets en rangee (18/10/2026) */
.hb-fo .hb-h{display:flex;align-items:center}.hb-ftout{margin-left:auto;font-size:14px;font-weight:bold;color:#1f63bd;text-decoration:none;white-space:nowrap}.hb-ftout:hover{text-decoration:underline}
.hb-rail>.hb-fc{flex:0 0 calc((100% - 48px)/5);scroll-snap-align:start;display:flex;flex-direction:column;justify-content:space-between;gap:6px;min-height:74px;box-sizing:border-box;padding:10px 12px;background:#fff;border:1px solid #e2e2e2;border-radius:8px;text-decoration:none;transition:border-color .15s,box-shadow .15s,transform .15s}
.hb-fc:hover{border-color:#2977dc;box-shadow:0 4px 12px rgba(0,0,0,.08);transform:translateY(-1px)}.hb-fc:focus-visible{outline:2px solid #2977dc;outline-offset:2px}
.hb-ft{font-size:14px;font-weight:bold;color:#1f2a37;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.hb-fc:hover .hb-ft{color:#1f63bd}
.hb-fd{font-size:12px;color:#8a93a0}
.hb-fo .hb-fl{top:20px}
/* tablette */
@media (max-width:980px){
 #general.hb26{padding:0}
 .hb-rail>.hb-card{flex-basis:calc((100% - 24px)/3)}
 .hb-duo{grid-template-columns:1fr}
 .hb-rail>.hb-fc{flex-basis:calc((100% - 24px)/3)}
}
/* tablette seule : raccourcis sur 2 colonnes (sinon grand vide entre le texte et la fleche) */
@media (min-width:701px) and (max-width:980px){
 .hb-occ{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:16px}
 .hb-occ>.hb-h,.hb-occ>.hb-st{grid-column:1/-1}
}
/* mobile */
@media (max-width:700px){
 #general.hb26{padding:0}
 .hb-s{padding:12px 14px 14px}
 .hb-h h2{font-size:17px}
 .hb-g3,.hb-gg{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;gap:10px;scroll-behavior:smooth}
 .hb-g3::-webkit-scrollbar,.hb-gg::-webkit-scrollbar{display:none}
 .hb-g3>.hb-card{flex:0 0 80%;scroll-snap-align:start}
 .hb-gg>.hb-gc{flex:0 0 42%;scroll-snap-align:start}
 .hb-rail>.hb-card{flex:0 0 44%}
 .hb-fx{display:none}
 .hb-rail>.hb-fc{flex:0 0 72%;min-height:64px;padding:9px 11px}.hb-fo .hb-fl{top:16px}
 .hb-fl{width:32px;height:32px;font-size:20px;line-height:28px;top:48px}.hb-fl-g{left:-6px}.hb-fl-d{right:-6px}
 .hb-car.hb-mob>.hb-fl{display:block}.hb-car.hb-mob>.hb-fl[hidden]{display:none}.hb-car.hb-mob .hb-fl{top:80px}
 .hb-int{grid-template-columns:minmax(0,1fr)}
 .hb-ir .hb-l{white-space:nowrap}
 .hb-mmg{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .hb-mt{padding:9px 9px 10px}.hb-mc a{padding:3px 8px}
 .hb-mmg .hb-mx{display:none}.hb-mmg.hb-ouvert .hb-mx{display:block}
 .hb-mplus{display:block}
}
/* Widget de purge (IP admin seulement) : barre discrete en bas de la home (18/10/2026) */
.hb-admin{clear:both;margin:4px 0 16px}
.hb-admin #varnishPurgeWidget{float:none!important;width:auto!important;margin:0!important;background:#fff;border:1px dashed #c9ced6;border-radius:8px;padding:8px 12px}
.hb-admin #varnishPurgeWidget *{float:none!important;width:auto!important;background-image:none}
.hb-admin #varnishPurgeWidget .titre,.hb-admin #varnishPurgeWidget [class^="titre"]{font-size:12px!important;color:#5b6472!important;height:auto!important;background:none!important;padding:0 0 6px!important}
.hb-admin #varnishPurgeWidget .enormetrait-gris,.hb-admin #varnishPurgeWidget .grostrait-gris{border:0!important;padding:0!important;display:flex!important;flex-wrap:wrap;gap:8px 16px;align-items:center}
.hb-admin #varnishPurgeWidget .purge{display:flex!important;align-items:center;gap:8px;margin:0!important}
.hb-admin #varnishPurgeWidget .purge p{margin:0!important;padding:0!important;font-size:12px;text-align:left!important}
.hb-admin #varnishPurgeWidget .purge p br{display:none}
.hb-admin #varnishPurgeWidget .purge p .bleu{margin-left:4px;font-weight:normal;color:#8a93a0}
.hb-admin #varnishPurgeWidget input[type=submit]{background:#2977dc!important;color:#fff;border:0;border-radius:6px;height:30px;padding:0 12px!important;margin:0!important;font-size:13px;font-weight:bold;cursor:pointer}
.hb-admin #varnishPurgeWidget input[type=submit][value*="tout"]{background:#8a93a0!important}
/* Bandes d'invitation (Privilege / Intense / Garages), discretes, en bas du bloc (18/10/2026) */
.hb-pub{display:flex;align-items:center;gap:10px;margin-top:12px;padding:10px 12px;border:1px dashed #b9cdee;border-radius:8px;background:#f5f8fd;text-decoration:none;color:#1f2a37;transition:border-color .15s,background-color .15s}
.hb-pub:hover{border-color:#2977dc;background:#eef4fd}.hb-pub:focus-visible{outline:2px solid #2977dc;outline-offset:2px}
.hb-pub-i{flex:none;width:30px;height:30px;border-radius:50%;background:#fff;border:1px solid #d6e2f5;display:flex;align-items:center;justify-content:center;color:#2977dc}
.hb-pub-i svg{width:16px;height:16px}
.hb-pub-t{flex:1;min-width:0;font-size:13px;line-height:1.4;color:#5b6472}
.hb-pub-t b{display:block;font-size:14px;color:#1f2a37}
.hb-pub-a{flex:none;font-size:14px;font-weight:bold;color:#1f63bd;white-space:nowrap}
.hb-pub-fin{display:none}.hb-int.hb-ouvert~.hb-pub-fin{display:flex}
/* mobile : bandes = rond bleu avec fleche a droite (place en fin de fichier pour passer apres le style de base des bandes) */
@media (max-width:700px){
 .hb-pub-a{font-size:0;width:30px;height:30px;border-radius:50%;background:#2977dc;display:flex;align-items:center;justify-content:center;overflow:hidden}
 .hb-pub-a:after{content:"\203A";font-size:22px;line-height:1;color:#fff;margin-top:-3px}
}
