/* HODY CONSTRUCT — page Actualités (blog.html) et 12 articles (blog-*.html). Préfixe des classes : hb-.
   Chargé APRÈS site.css et AVANT commun.css. Écrit le 13/10/2026 sur le moule V3 (blog.css du moule), thème sombre Hody.
   Aucun texte n'est écrit ici.
   Contrastes calculés (WCAG, seuil 4,5:1 pour le texte) :
     texte doux #A0A0A0 sur surface #161616 = 6,92:1 ; sur fond #0D0D0D = 7,43:1
     texte #F0F0F0 sur surface #161616 = 15,88:1 ; or #EBC24F sur surface = 10,65:1 ; or sur fond = 11,44:1
     bouton : #0D0D0D sur or #EBC24F = 11,44:1 ; au survol #0D0D0D sur or foncé #D4A832 = 8,74:1
     bandeau d'article : photo à 40 % d'opacité sous un dégradé #0D0D0D (94 % -> 40 %) ; pire cas (ciel blanc, côté droit) = fond ~#474747,
       texte blanc 82 % = 7,3:1 ; or = 5,6:1.
     carte « Nos chantiers » : voile #0D0D0D 100 % -> 0 % sur la photo, le texte est posé sur la zone pleine #161616 (pas sur la photo). */

/* ---------- 0. Bandeau d'article : photo -1 sous un voile sombre ---------- */
.hb-hero-photo{position:absolute;inset:0;background-size:cover;background-position:center;opacity:.4}

/* ---------- 1. Corps d'article ---------- */
.hb-article .hb-meta{font-size:13px;color:var(--texte-doux);margin:0 0 28px}
.hb-article .hb-boite{background:var(--fond-2);border:1px solid var(--bord);border-radius:20px;padding:24px 28px;margin:0 0 24px}
.hb-article .hb-boite h2{font-size:17px;font-weight:700;margin:0 0 10px;color:var(--titre)}
.hb-article .hb-resume{border-left:3px solid var(--accent);border-radius:0 20px 20px 0}
.hb-article .hb-resume ul{margin:0;padding-left:20px;font-size:15px;line-height:1.7}
.hb-article .hb-sommaire{margin-bottom:28px}
.hb-article .hb-sommaire ol{margin:0;padding-left:20px;font-size:14.5px;line-height:1.9}
.hb-article .hb-sommaire a{color:var(--texte);text-decoration:none}
.hb-article .hb-sommaire a:hover{color:var(--accent-texte);text-decoration:underline;text-underline-offset:2px}
.hb-article .hb-sommaire a:focus-visible,.hb-article .hb-puce:focus-visible,.hb-article .hb-btn:focus-visible,.hb-article .hb-btn-devis:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.hb-article h2[id]{scroll-margin-top:96px}
.hb-article [data-faq-a-wrap] p{margin:0}

/* photos d'article */
.hb-article .hb-figure{margin:0 0 28px}
.hb-article .hb-figure img{display:block;width:100%;height:auto;border-radius:20px;cursor:zoom-in}

/* communes desservies (puces-liens) */
.hb-article .hb-puces{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}
.hb-article .hb-puce{display:inline-flex;align-items:center;border:1px solid var(--bord);color:var(--texte);border-radius:40px;padding:9px 16px;font-size:13px;font-weight:600;text-decoration:none;transition:border-color .2s,color .2s}
.hb-article .hb-puce:hover{border-color:var(--accent);color:var(--accent-texte)}

/* appel à l'action de fin d'article */
.hb-article .hb-cta{border-radius:24px;padding:28px;margin:24px 0}
.hb-article .hb-cta h3{font-size:19px;font-weight:700;margin:0 0 6px;color:var(--titre)}
.hb-article .hb-cta p{margin:0 0 16px;font-size:14px;color:var(--texte-doux)}
.hb-article .hb-btn-devis{display:inline-block;background:var(--accent);color:var(--sur-accent);border-radius:40px;padding:16px 28px;font-size:14px;font-weight:700;text-decoration:none;transition:background .2s,transform .2s,box-shadow .25s}
.hb-article .hb-btn-devis:hover{background:var(--accent-fonce);color:var(--sur-accent)}

/* ---------- 2. Carte « Nos chantiers » (fin d'article) : photo + texte V1 + boutons ---------- */
.hb-article .hb-chantiers{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);margin:40px 0;background:var(--fond-2);border:1px solid color-mix(in srgb,var(--accent) 35%,transparent);border-radius:24px;overflow:hidden}
.hb-article .hb-chantiers-photo{position:relative;min-height:260px}
.hb-article .hb-chantiers-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.hb-article .hb-chantiers-txt{padding:32px 30px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
.hb-article .hb-eyebrow{display:block;margin:0 0 8px;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.12em;color:var(--accent-texte)}
.hb-article .hb-chantiers h3{margin:0 0 8px;font-size:clamp(22px,2.6vw,28px);font-weight:700;line-height:1.15;color:var(--titre)}
.hb-article .hb-chantiers .hb-sub{margin:0 0 20px;font-size:15px;line-height:1.6;color:var(--texte-doux)}
.hb-article .hb-btns{display:flex;flex-wrap:wrap;gap:10px}
.hb-article a.hb-btn{display:inline-flex;align-items:center;gap:8px;padding:12px 20px;background:var(--accent);color:var(--sur-accent);font-size:14px;font-weight:700;line-height:1.2;text-decoration:none;border-radius:40px;box-shadow:0 4px 14px color-mix(in srgb,var(--accent) 30%,transparent);transition:background .2s,transform .2s,box-shadow .2s}
.hb-article a.hb-btn span{transition:transform .18s ease}
.hb-article a.hb-btn:hover{background:var(--accent-fonce);color:var(--sur-accent);transform:translateY(-2px);box-shadow:0 8px 22px color-mix(in srgb,var(--accent) 40%,transparent)}
.hb-article a.hb-btn:hover span{transform:translateX(4px)}

/* ---------- 3. Page Actualités : grille de cartes ---------- */
.hb-grille{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:24px}
a.hb-card{flex-direction:column;background:var(--carte);border:1px solid var(--bord);border-radius:20px;overflow:hidden;color:var(--titre);text-decoration:none;transition:transform .3s,box-shadow .3s}
.hb-card-media{display:block;aspect-ratio:16/9;overflow:hidden;background:var(--fond-2)}
.hb-card-media img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
a.hb-card:hover .hb-card-media img{transform:scale(1.05)}
.hb-card-body{display:flex;flex-direction:column;gap:10px;flex:1;padding:24px 26px 26px}
.hb-card-date{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--texte-doux)}
.hb-card-body h3{margin:0;font-size:19px;font-weight:700;line-height:1.35;color:var(--titre)}
.hb-card-body p{margin:0;flex:1;font-size:14px;line-height:1.6;color:var(--texte-doux)}
.hb-card-more{font-size:14px;font-weight:700;color:var(--accent-texte)}
a.hb-card:focus-visible{outline:3px solid var(--accent);outline-offset:3px}

/* ---------- 4. Mobile ---------- */
@media (max-width:760px){
  .hb-article .hb-chantiers{grid-template-columns:1fr}
  .hb-article .hb-chantiers-photo{min-height:0;aspect-ratio:16/9}
  .hb-article .hb-chantiers-txt{padding:26px 20px}
  .hb-article .hb-boite{padding:20px 20px}
  .hb-article .hb-figure img{border-radius:16px}
  .hb-grille{grid-template-columns:1fr}
}
@media (max-width:520px){
  .hb-article a.hb-btn{padding:12px 16px}
}

/* ---------- 5. Mouvement réduit ---------- */
@media (prefers-reduced-motion:reduce){
  .hb-card-media img,a.hb-card,.hb-article a.hb-btn,.hb-article a.hb-btn span,.hb-article .hb-btn-devis,.hb-article .hb-puce{transition:none}
  a.hb-card:hover,a.hb-card:hover .hb-card-media img,.hb-article a.hb-btn:hover,.hb-article a.hb-btn:hover span{transform:none}
}
