/* =====================================================================
   HHG Group Article Template — mise en page « article ressource »
   Valeurs relevées sur la page de référence (1440 px) :
     bandeau : padding 36px 120px · 2 colonnes (titre+texte / image 628x355)
     titre 38px/46px ExtraBold #090c14 · description 16px/22px #54545c
     bouton #090c14 / blanc, 49px, rayon 8px · méta 14px #7d7d85
     corps : conteneur 1360px, colonne de lecture 676px, partage 48px à gauche
     h2 28px/700 (24px/800 ≤1520) · h3 24px/700 (22px/800 ≤1520)
     cartes 176px, rayon 12px, fond #f4f7fb
   ===================================================================== */

body.hg-post {
	--hg-font-title: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--hg-font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--hg-ink: #54545c;
	--hg-ink-strong: #090c14;
	--hg-heading: #2b2b36;
	/* Couleurs de marque HHG Group (relevées sur le site : doré #edb932) */
	--hg-brand: #edb932;
	--hg-brand-dark: #bc9127;
	--hg-accent: #edb932;
	--hg-accent-dark: #bc9127;
	--hg-link: #a87b16;
	--hg-muted: #7d7d85;
	--hg-crumb: #9f9fa2;
	--hg-card-bg: #f4f7fb;
	--hg-share-bg: #f2f6fa;
}

/* ---------- thème ASTRA : on masque le titre + la méta du thème ---------- */
body.hg-post .entry-header { display: none !important; }

/* ---------- Astra : une seule colonne, pleine largeur ---------- */
body.hg-post #content.site-content > .ast-container { max-width: 100% !important; padding-left: 0 !important; padding-right: 0 !important; }
body.hg-post #primary.content-area { width: 100% !important; max-width: 100% !important; }
body.hg-post #secondary,
body.hg-post .site-content > .ast-container > #secondary,
body.hg-post .content-area + .widget-area { display: none !important; }
body.hg-post .ast-article-single { padding: 0 !important; margin: 0 !important; }
body.hg-post .ast-post-format-,
body.hg-post .single-layout-1 { width: 100% !important; max-width: 100% !important; }
body.hg-post .site-content { margin-top: 0 !important; padding-top: 0 !important; }
body.hg-post .entry-content { margin: 0 !important; padding: 0 !important; max-width: 100% !important; }
body.hg-post .entry-content > .hg-outer { margin: 0 !important; }

/* ---------- bas d'article : les blocs du thème sont retirés ---------- */
/* « Related Posts » (Astra Pro) */
body.hg-post .ast-single-related-posts-container,
body.hg-post .ast-related-posts-title-section,
body.hg-post .ast-related-posts-wrapper { display: none !important; }
/* encadré auteur */
body.hg-post .ast-author-box,
body.hg-post .author-box { display: none !important; }
/* liens précédent / suivant */
body.hg-post nav.post-navigation,
body.hg-post .post-navigation,
body.hg-post #at_posts_related,
body.hg-post .posts-section-title-related { display: none !important; }

/* ---------- aucun forçage de casse sur les titres ---------- */
body.hg-post .hg-outer h1,
body.hg-post .hg-outer h2,
body.hg-post .hg-outer h3,
body.hg-post .hg-outer h4,
body.hg-post .hg-outer h5,
body.hg-post .hg-outer h6 { text-transform: none !important; }

/* ---------- conteneur (1360 px utiles + 120 px de marge) ---------- */
.hg-outer { width: 100%; }
.hg-outer { width: var(--hg-vw, 100%) !important; max-width: none !important; margin-left: calc(50% - (var(--hg-vw, 100%) / 2)) !important; margin-right: 0 !important; }
.hg-hero { width: 100%; }
.hg-wrap { max-width: 1600px; margin: 0 auto; padding: 0 120px; box-sizing: border-box; }

/* =====================================================================
   BANDEAU
   ===================================================================== */
/* bandeau : pleine largeur (bord à bord), fond légèrement teinté bleu/violet */
.hg-hero {
	margin: 0;
	padding: 18px 0 64px;
	border-radius: 0;
	border-bottom: 1px solid #f6dedb;
	background: linear-gradient(135deg, #fff5f4 0%, #fdeeee 55%, #fdf4f1 100%);
	width: 100%;
}
.hg-hero .hg-wrap { max-width: 1600px; margin: 0 auto; padding: 0 120px; box-sizing: border-box; }
.hg-crumbs { display: flex; flex-wrap: wrap; align-items: center; margin: 0 0 18px; font-family: var(--hg-font-body); font-size: 14px; font-weight: 600; line-height: 20px; }
body.hg-post .hg-crumbs,
body.hg-post .hg-crumbs a { color: #9f9fa2 !important; text-decoration: none; }
body.hg-post .hg-crumbs a:hover { color: var(--hg-accent-dark) !important; }
.hg-crumbs .hg-sep { margin: 0 6px; opacity: .75; }
.hg-crumbs span[aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 480px; }

.hg-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px; align-items: center; }
body.hg-post h1.hg-title { margin: 0 0 16px; font-family: var(--hg-font-title) !important; font-size: 38px !important; font-weight: 800 !important; line-height: 46px !important; letter-spacing: -0.02em; color: #090c14 !important; }
body.hg-post .hg-desc { margin: 0 0 24px; font-family: var(--hg-font-title) !important; font-size: 16px !important; font-weight: 400 !important; line-height: 22px !important; color: #54545c !important; }
.hg-cover { margin: 0; }
.hg-cover img { display: block; width: 100%; height: auto; aspect-ratio: 628 / 355; object-fit: cover; border-radius: 0; }

/* bouton d'appel à l'action (même style que la page de référence) */
.hg-cta a { display: inline-flex; align-items: center; gap: 8px; min-height: 49px; box-sizing: border-box; padding: 0 24px; border-radius: 8px; background: var(--hg-brand); color: #1a1a1a !important; font-family: var(--hg-font-title) !important; font-size: 16px !important; font-weight: 600 !important; line-height: 22px !important; text-decoration: none !important; border: 0; transition: background .2s ease, transform .2s ease; }
.hg-cta a:hover { background: var(--hg-brand-dark); color: #1a1a1a !important; transform: translateY(-1px); }
.hg-cta a svg { width: 14px; height: 14px; }
.hg-tip { margin: 12px 0 0; font-family: var(--hg-font-title); font-size: 14px; line-height: 20px; color: #7d7d85; }

body.hg-post .hg-meta { display: flex; flex-wrap: wrap; align-items: center; margin: 20px 0 0; font-family: var(--hg-font-title) !important; font-size: 14px !important; line-height: 20px !important; color: #7d7d85 !important; }
body.hg-post .hg-meta a { color: #7d7d85 !important; text-decoration: none; }
body.hg-post .hg-meta a:hover { color: var(--hg-accent-dark) !important; }
.hg-meta span + span::before { content: '·'; margin: 0 8px; }

/* =====================================================================
   CORPS : rail de partage + colonne de lecture
   ===================================================================== */
.hg-body { margin-top: 30px; display: grid; grid-template-columns: 48px minmax(0, 676px) 320px; column-gap: 60px; align-items: start; }
.hg-share { position: sticky; top: 100px; width: 48px; }
.hg-share-list { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; list-style: none; }
.hg-share-list a { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 8px; background: #f2f6fa; color: #6b7480; text-decoration: none; transition: background .25s ease, color .25s ease; }
.hg-share-list a:hover { background: var(--hg-brand); color: #1c1c1c; }
.hg-share-list svg { width: 18px; height: 18px; fill: currentColor; }
.hg-article { max-width: 676px; overflow: hidden; }

body.hg-post .hg-article { font-family: var(--hg-font-body) !important; }
body.hg-post .hg-article > *:first-child { margin-top: 0; }
body.hg-post .hg-article p { margin: 0; padding-top: 6px; font-family: var(--hg-font-title) !important; font-size: 18px !important; font-weight: 400 !important; line-height: 1.33 !important; color: #54545c !important; }
body.hg-post .hg-article h2 { margin: 0; padding-top: 60px; font-family: var(--hg-font-title) !important; font-size: 28px !important; font-weight: 700 !important; line-height: 140% !important; color: #2b2b36 !important; }
body.hg-post .hg-article h3 { margin: 0; padding-top: 32px; font-family: var(--hg-font-title) !important; font-size: 24px !important; font-weight: 700 !important; line-height: 140% !important; color: #2b2b36 !important; }
body.hg-post .hg-article h4 { margin: 0; padding-top: 24px; font-family: var(--hg-font-title) !important; font-size: 20px !important; font-weight: 700 !important; line-height: 140% !important; color: #2b2b36 !important; }
body.hg-post .hg-article a { color: var(--hg-link) !important; text-decoration: underline; text-underline-offset: 2px; }
body.hg-post .hg-article a:hover { color: var(--hg-accent) !important; }
body.hg-post .hg-article strong { color: #2b2b36; font-weight: 700; }
body.hg-post .hg-article ul,
body.hg-post .hg-article ol { margin: 6px 0 0; padding-left: 26px; }
body.hg-post .hg-article li { padding-top: 4px; font-family: var(--hg-font-title) !important; font-size: 18px !important; line-height: 1.33 !important; color: #54545c !important; }
body.hg-post .hg-article ul li::marker { color: var(--hg-accent); }
body.hg-post .hg-article ol li::marker { color: var(--hg-accent); font-weight: 700; }
body.hg-post .hg-article img { width: 100%; height: auto; border-radius: 16px; margin: 24px 0; }
body.hg-post .hg-article figure { margin: 24px 0; }
body.hg-post .hg-article figcaption { margin-top: 8px; font-family: var(--hg-font-body); font-size: 13px; color: #7d7d85; text-align: center; }
body.hg-post .hg-article blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--hg-brand); font-family: var(--hg-font-title); font-size: 18px; color: #54545c; }
body.hg-post .hg-article table { width: 100%; border-collapse: collapse; margin: 24px 0; font-family: var(--hg-font-body); font-size: 15px; }
body.hg-post .hg-article th,
body.hg-post .hg-article td { border: 1px solid #e4e5e7; padding: 10px 12px; text-align: left; color: #54545c; }
body.hg-post .hg-article th { background: #f4f5f5; color: #2b2b36; font-weight: 600; }

/* sommaire (plugin LuckyWP) accordé au style */
body.hg-post .hg-article .lwptoc { background: #f2f9ff; border: 1px solid #d6ecff; border-radius: 12px; padding: 18px 22px; margin: 26px 0; font-family: var(--hg-font-body); }
body.hg-post .hg-article .lwptoc .lwptoc_title { font-family: var(--hg-font-title); font-size: 18px; font-weight: 800; color: #2b2b36; }
body.hg-post .hg-article .lwptoc a { color: #54545c !important; text-decoration: none; }
body.hg-post .hg-article .lwptoc a:hover { color: var(--hg-accent-dark) !important; }

/* =====================================================================
   CARTES « articles liés » + bouton de bas de page
   ===================================================================== */
.hg-cards { margin: 88px 0 0; }
body.hg-post .hg-cards h2 { margin: 0 0 20px; font-family: var(--hg-font-title) !important; font-size: 24px !important; font-weight: 800 !important; line-height: 140% !important; color: #2b2b36 !important; }
.hg-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, 176px); gap: 20px; }
.hg-card { display: block; width: 176px; background: #f4f7fb; border-radius: 12px; overflow: hidden; padding-bottom: 12px; text-decoration: none !important; transition: transform .25s ease, box-shadow .25s ease; }
.hg-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(20, 40, 60, .08); }
.hg-card-img { display: block; width: 176px; height: 117px; object-fit: cover; background: #e8eef5; }
.hg-card-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 12px 12px 4px; font-family: var(--hg-font-body) !important; font-size: 14px !important; font-weight: 500 !important; line-height: 18.2px !important; color: #000 !important; }
.hg-card-sub { display: block; margin: 0 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--hg-font-body) !important; font-size: 12px !important; font-weight: 400 !important; line-height: 15.6px !important; color: rgba(28, 40, 61, .5) !important; }
.hg-footer-cta { margin: 36px 0 0; }

/* =====================================================================
   COLONNE DE DROITE : articles recommandés
   (même principe que la page de référence : 320 px, collante)
   ===================================================================== */
.hg-recommend { position: sticky; top: 100px; }
body.hg-post .hg-recommend-title { margin: 0 0 18px; font-family: var(--hg-font-title) !important; font-size: 24px !important; font-weight: 800 !important; line-height: 130% !important; color: #2b2b36 !important; }
.hg-recommend-list { display: flex; flex-direction: column; gap: 20px; margin: 0; padding: 0; list-style: none; }
.hg-recommend-list li { margin: 0; }
.hg-recommend-list a { display: flex; gap: 12px; align-items: flex-start; text-decoration: none !important; }
.hg-recommend-list img { flex: 0 0 76px; width: 76px; height: 57px; object-fit: cover; border-radius: 8px; background: #e8eef5; }
.hg-recommend-text { display: block; }
.hg-recommend-post { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-family: var(--hg-font-body) !important; font-size: 15px !important; font-weight: 500 !important; line-height: 20px !important; color: #16161d !important; }
.hg-recommend-list a:hover .hg-recommend-post { color: var(--hg-accent-dark) !important; }
.hg-recommend-meta { display: block; margin-top: 4px; font-family: var(--hg-font-body) !important; font-size: 12px !important; font-weight: 400 !important; line-height: 16px !important; color: #7d7d85 !important; }

/* =====================================================================
   Quand la barre latérale du thème est affichée, la colonne de lecture est
   plus étroite : on adapte les marges et le bandeau.
   ===================================================================== */
body.hg-post.hg-with-sidebar .hg-wrap { max-width: 100%; padding: 0; }
body.hg-post.hg-with-sidebar .hg-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
body.hg-post.hg-with-sidebar .hg-cover { order: -1; }
body.hg-post.hg-with-sidebar .hg-body { grid-template-columns: 44px minmax(0, 1fr); column-gap: 32px; }
body.hg-post.hg-with-sidebar .hg-article { max-width: 100%; }

/* =====================================================================
   Paliers d'écran (identiques à la page de référence)
   ===================================================================== */
@media (max-width: 1520px) {
	body.hg-post .hg-article h2 { font-size: 24px !important; font-weight: 800 !important; padding-top: 52px; }
	body.hg-post .hg-article h3 { font-size: 22px !important; font-weight: 800 !important; padding-top: 28px; }
}

@media (max-width: 1320px) {
	.hg-wrap { padding: 0 60px; }
	.hg-hero .hg-wrap { padding: 0 60px; }
	.hg-body { grid-template-columns: 40px minmax(0, 1fr) 280px; column-gap: 40px; }
	.hg-share { width: 40px; }
	.hg-share-list { gap: 12px; }
	.hg-share-list a { width: 40px; height: 40px; border-radius: 6px; }
	.hg-share-list svg { width: 16px; height: 16px; }
}

@media (max-width: 1024px) {
	.hg-wrap { padding: 0 40px; }
	.hg-hero { padding: 14px 0 44px; }
	.hg-hero .hg-wrap { padding: 0 40px; }
	body.hg-post h1.hg-title { font-size: 30px !important; line-height: 38px !important; }
	.hg-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.hg-cover { order: -1; }
	.hg-body { grid-template-columns: minmax(0, 1fr); column-gap: 0; row-gap: 32px; }
	.hg-share { position: static; width: auto; margin: 0; }
	.hg-share-list { flex-direction: row; flex-wrap: wrap; gap: 10px; }
	.hg-article { max-width: 100%; }
	.hg-recommend { position: static; }
	.hg-recommend-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
	body.hg-post .hg-article h2 { font-size: 22px !important; padding-top: 40px; }
	body.hg-post .hg-article h3 { font-size: 20px !important; padding-top: 20px; }
	body.hg-post .hg-article p,
	body.hg-post .hg-article li { font-size: 17px !important; }
	.hg-cards-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
	.hg-card,
	.hg-card-img { width: 100%; }
}

@media (max-width: 640px) {
	.hg-wrap { padding: 0 24px; }
	.hg-hero { padding: 12px 0 34px; }
	.hg-hero .hg-wrap { padding: 0 24px; }
	.hg-body { margin-top: 22px; }
	body.hg-post h1.hg-title { font-size: 26px !important; line-height: 33px !important; }
	body.hg-post .hg-article h2 { font-size: 21px !important; padding-top: 34px; }
	body.hg-post .hg-article h3 { font-size: 19px !important; padding-top: 18px; }
	body.hg-post .hg-article p,
	body.hg-post .hg-article li { font-size: 16px !important; }
	.hg-cards { margin-top: 56px; }
	.hg-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	.hg-cta a { width: 100%; justify-content: center; }
}

/* =====================================================================
   PRIORITÉ — beaucoup de sites ajoutent dans une <style> placée dans le
   corps de la page quelque chose comme :
     article a, .entry-content a, .post-content a {
       color: #0056b3 !important; text-decoration: underline !important; }
   Cette règle arrive APRÈS la feuille du plugin et, à spécificité égale
   (.entry-content a = .hg-cta a), c'est elle qui gagne : le bouton
   devenait bleu et souligné. On repasse devant avec deux classes.
   ===================================================================== */
body.hg-post .hg-cta a { color: #1a1a1a !important; text-decoration: none !important; }
body.hg-post .hg-cta a:hover { color: #1a1a1a !important; }
body.hg-post .hg-cta a svg { stroke: currentColor !important; }
body.hg-post .hg-share-list a { color: #6b7480 !important; text-decoration: none !important; }
body.hg-post .hg-share-list a:hover { color: #1c1c1c !important; }
body.hg-post .hg-share-list svg { fill: currentColor !important; }
body.hg-post .hg-card,
body.hg-post .hg-card .hg-card-title,
body.hg-post .hg-card .hg-card-sub { color: #000000 !important; text-decoration: none !important; }
body.hg-post .hg-card .hg-card-sub { color: rgba(28, 40, 61, .5) !important; }
body.hg-post .hg-recommend-list a { color: #16161d !important; text-decoration: none !important; }
body.hg-post .hg-recommend-list a .hg-recommend-post { color: #16161d !important; text-decoration: none !important; }
body.hg-post .hg-recommend-list a .hg-recommend-meta { color: #7d7d85 !important; text-decoration: none !important; }
body.hg-post .hg-crumbs a { color: #9f9fa2 !important; text-decoration: none !important; }
body.hg-post .hg-meta a { color: #7d7d85 !important; text-decoration: none !important; }
body.hg-post .hg-article .lwptoc a { text-decoration: none !important; }
body.hg-post .hg-article a { text-decoration: underline !important; }

/* =====================================================================
   FENÊTRE DU FORMULAIRE (popup « Request a Quote »)
   ===================================================================== */
.hg-modal { position: fixed; inset: 0; z-index: 99999; display: none; }
.hg-modal.is-open { display: block; }
.hg-modal-backdrop { position: absolute; inset: 0; background: rgba(10, 16, 26, .62); }
.hg-modal-box {
	position: relative;
	z-index: 1;
	width: calc(100% - 32px);
	max-width: 640px;
	margin: 6vh auto;
	max-height: 88vh;
	overflow: auto;
	padding: 26px 26px 20px;
	border-radius: 16px;
	background: #ffffff;
	box-shadow: 0 24px 60px rgba(10, 20, 40, .28);
	box-sizing: border-box;
}
.hg-modal-title { margin: 0 0 14px; padding-right: 36px; font-family: var(--hg-font-title) !important; font-size: 24px !important; font-weight: 700 !important; line-height: 130% !important; color: #222222 !important; }
.hg-modal-close {
	position: absolute !important; top: 12px !important; right: 12px !important;
	display: flex !important; align-items: center !important; justify-content: center !important;
	width: 36px !important; height: 36px !important; padding: 0 !important; margin: 0 !important;
	border: 0 !important; border-radius: 50% !important;
	background: #f2f4f7 !important; color: #4a4f57 !important;
	font-size: 22px !important; line-height: 1 !important; text-align: center !important;
	box-shadow: none !important;
	cursor: pointer; transition: background .2s ease, color .2s ease;
}
/* La croix est dessinée en CSS (deux barres) : ni caractère, ni SVG. Le thème force
   « bouton = fond foncé / texte blanc » et peut toucher les règles SVG, ce qui
   rendait l'icône invisible. Ici tout est explicite. */
.hg-modal-close .hg-close-x { position: relative !important; display: block !important; width: 16px !important; height: 16px !important; font-size: 0 !important; line-height: 0 !important; }
.hg-modal-close .hg-close-x::before,
.hg-modal-close .hg-close-x::after {
	content: '' !important;
	position: absolute !important;
	left: 0 !important; top: 7px !important;
	width: 16px !important; height: 2px !important;
	background: #4a4f57 !important;
	border-radius: 2px !important;
	box-shadow: none !important;
}
.hg-modal-close .hg-close-x::before { transform: rotate(45deg) !important; }
.hg-modal-close .hg-close-x::after { transform: rotate(-45deg) !important; }
.hg-modal-close:hover { background: #e4e8ee !important; }
.hg-modal-close:hover .hg-close-x::before,
.hg-modal-close:hover .hg-close-x::after { background: #1f2329 !important; }
.hg-modal-close:hover { background: #e4e8ee; color: #1f2329; }
.hg-modal-body { font-family: var(--hg-font-body); }
.hg-modal-body .wpforms-container { margin: 0 !important; }
.hg-modal-body .wpforms-field { padding: 0 0 12px !important; }
.hg-modal-body .wpforms-submit-container { padding-top: 4px !important; }
.hg-modal-fallback { margin: 0; font-size: 15px; color: #54545c; }
html.hg-modal-open { overflow: hidden; }
@media (max-width: 640px) {
	.hg-modal-box { width: 100%; margin: 0; min-height: 100%; max-height: 100%; border-radius: 0; padding: 22px 18px; }
}

/* =====================================================================
   FORMULAIRE DE LA FENÊTRE (si le mode « formulaire du plugin » est choisi)
   ===================================================================== */
.hg-form { margin: 0; font-family: var(--hg-font-body); }
.hg-field { margin: 0 0 12px; }
.hg-field label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 600; line-height: 18px; color: #3a3f47; }
.hg-field label span { color: var(--hg-brand); }
.hg-field input[type="text"],
.hg-field input[type="email"],
.hg-field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 11px 13px;
	border: 1px solid #d8dee7;
	border-radius: 8px;
	background: #ffffff;
	color: #222222;
	font-family: var(--hg-font-body) !important;
	font-size: 15px !important;
	line-height: 22px !important;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.hg-field textarea { resize: vertical; min-height: 96px; }
.hg-field input:focus,
.hg-field textarea:focus { outline: none; border-color: var(--hg-brand); box-shadow: 0 0 0 3px rgba(0, 168, 255, .15); }
.hg-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.hg-form-actions { margin: 16px 0 0; }
.hg-submit {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 47px; padding: 0 26px;
	border: 0; border-radius: 8px;
	background: var(--hg-ink-strong); color: #ffffff;
	font-family: var(--hg-font-title) !important; font-size: 15px !important; font-weight: 600 !important;
	cursor: pointer; transition: background .2s ease, transform .2s ease;
}
.hg-submit:hover { background: #1f2430; transform: translateY(-1px); }
.hg-submit[disabled] { opacity: .6; cursor: default; transform: none; }
.hg-form-msg { margin: 12px 0 0; font-size: 14px; line-height: 20px; color: #54545c; }
.hg-form-msg.is-error { color: #c0392b; }
.hg-form-msg.is-ok { color: #1a8f4a; }


/* =====================================================================
   BANDEAU PLEIN ÉCRAN (thème inconnu)
   --hg-vw est posé par le script du plugin = largeur réelle de la fenêtre
   (évite les 15 px de barre de défilement que provoquerait 100vw).
   ===================================================================== */
.hg-hero { width: var(--hg-vw, 100%) !important; margin-left: calc(50% - (var(--hg-vw, 100%) / 2)) !important; }
.hg-cover a { display: block; }
.hg-cover img { transition: transform .25s ease; }
.hg-cover a:hover img { transform: scale(1.02); }


/* ---------- commentaires : alignés sur la colonne du contenu ---------- */
body.hg-post .post-comments,
body.hg-post #comments { max-width: 1600px !important; margin-left: auto !important; margin-right: auto !important; padding-left: 120px !important; padding-right: 120px !important; box-sizing: border-box; }
@media (max-width: 1320px) { body.hg-post .post-comments, body.hg-post #comments { padding-left: 60px !important; padding-right: 60px !important; } }
@media (max-width: 1024px) { body.hg-post .post-comments, body.hg-post #comments { padding-left: 40px !important; padding-right: 40px !important; } }
@media (max-width: 640px) { body.hg-post .post-comments, body.hg-post #comments { padding-left: 24px !important; padding-right: 24px !important; } }

/* ---------- blocs collants : sous le header du thème (valeur calculée) ---------- */
body.hg-post .hg-share,
body.hg-post .hg-recommend { top: var(--hg-sticky-top, 140px) !important; }


/* =====================================================================
   Le gabarit s'affranchit du conteneur du thème : la largeur réelle de la
   fenêtre est posée par le script (--hg-vw). Le fond du bandeau est déjà
   géré de la même façon.
   ===================================================================== */
body.hg-post .hg-outer { overflow: visible !important; }
/* la colonne de lecture est centrée dans la page (sinon tout paraît décalé à gauche) */
.hg-body { justify-content: center; }
/* écrans larges : on ajoute un espaceur à gauche égal au rail de droite, pour que la
   colonne de lecture tombe au milieu de l'écran */
@media (min-width: 1760px) {
	.hg-wrap { max-width: 1800px !important; }
	.hg-body { grid-template-columns: 272px 48px minmax(0, 676px) 320px; }
	.hg-share { grid-column: 2; }
	.hg-article { grid-column: 3; }
	.hg-recommend { grid-column: 4; }
}
@media (max-width: 1320px) { .hg-wrap { padding: 0 60px !important; } }
@media (max-width: 1024px) { .hg-wrap { padding: 0 40px !important; } }
@media (max-width: 640px) { .hg-wrap { padding: 0 24px !important; } }
