/* =====================================================================
   GDWECENT 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.gdw-post {
	--gdw-font-title: 'Albert Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--gdw-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--gdw-ink: #54545c;
	--gdw-ink-strong: #090c14;
	--gdw-heading: #2b2b36;
	/* Couleurs de marque du site (Kadence) : bleu #0875d1 / #265e9a */
	--gdw-brand: #0875d1;
	--gdw-brand-dark: #0563b4;
	--gdw-accent: #0875d1;
	--gdw-accent-dark: #265e9a;
	--gdw-link: #265e9a;
	--gdw-muted: #7d7d85;
	--gdw-crumb: #9f9fa2;
	--gdw-card-bg: #f4f7fb;
	--gdw-share-bg: #f2f6fa;
}

/* ---------- on masque le bandeau de titre du thème (Kadence) ---------- */
body.gdw-post .entry-hero,
body.gdw-post .post-hero-section { display: none !important; }

/* ---------- pleine largeur : on neutralise les conteneurs du thème ---------- */
body.gdw-post .content-area { margin: 0 !important; }
body.gdw-post .content-container.site-container { display: block !important; max-width: 100% !important; padding: 0 !important; }
body.gdw-post #primary.content-area { width: 100% !important; max-width: 100% !important; }
body.gdw-post .content-container > .site-main { display: block !important; max-width: 100% !important; }
body.gdw-post .content-wrap { max-width: 100% !important; }
body.gdw-post .entry { box-shadow: none !important; background: transparent !important; border-radius: 0 !important; }
body.gdw-post .entry-content-wrap { padding: 0 !important; }
body.gdw-post .entry-content { margin: 0 !important; padding: 0 !important; max-width: 100% !important; }
body.gdw-post .entry-content > .gdw-outer { margin: 0 !important; }
body.gdw-post .entry-footer { display: none !important; }

/* ---------- le partage du thème (Kadence) est remplacé par notre rail ---------- */
body.gdw-post .kt_simple_share_container { display: none !important; }

/* ---------- barre latérale : masquée sur les articles ---------- */
body.gdw-post.gdw-hide-sidebar #secondary { display: none !important; }
body.gdw-post.gdw-with-sidebar .content-container.site-container { display: flex !important; align-items: flex-start; gap: 40px; }
body.gdw-post.gdw-with-sidebar #primary.content-area { flex: 1 1 auto; min-width: 0; }

/* ---------- navigation « précédent / suivant », alignée sur le contenu ---------- */
/* ---------- bloc « Related Posts » du thème : aligné sur le contenu, titre normal ---------- */
body.gdw-post .entry-related .entry-related-inner.content-container.site-container { max-width: 1600px !important; padding: 0 120px !important; box-sizing: border-box; }
body.gdw-post .entry-related .entry-related-inner-content { max-width: 100% !important; padding-left: 0 !important; padding-right: 0 !important; margin-left: 0 !important; margin-right: 0 !important; }
body.gdw-post .entry-related .entry-related-title { margin: 0 0 16px !important; font-size: 18px !important; font-weight: 600 !important; line-height: 1.35 !important; }
body.gdw-post .entry-related .entry-title { font-size: 17px !important; font-weight: 600 !important; line-height: 1.35 !important; }
@media (max-width: 1320px) { body.gdw-post .entry-related .entry-related-inner.content-container.site-container { padding: 0 60px !important; } }
@media (max-width: 1024px) { body.gdw-post .entry-related .entry-related-inner.content-container.site-container { padding: 0 40px !important; } }
@media (max-width: 640px) {
	body.gdw-post .entry-related .entry-related-inner.content-container.site-container { padding: 0 24px !important; }
	body.gdw-post .entry-related .entry-related-title { font-size: 17px !important; }
	body.gdw-post .entry-related .entry-title { font-size: 16px !important; }
}

body.gdw-post nav.navigation.post-navigation { max-width: 1600px; margin: 40px auto 0; padding: 0 120px; box-sizing: border-box; }
body.gdw-post nav.navigation.post-navigation .nav-links { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid #e6e8ec; padding-top: 24px; }
body.gdw-post nav.navigation.post-navigation a { color: #222222 !important; text-decoration: none !important; font-family: var(--gdw-font-body); font-size: 15px; line-height: 22px; }
body.gdw-post nav.navigation.post-navigation a:hover { color: var(--gdw-brand) !important; }
body.gdw-post nav.navigation.post-navigation .post-navigation-sub small { display: block; margin-bottom: 2px; font-size: 12px; color: #8a8f98; }
@media (max-width: 1320px) { body.gdw-post nav.navigation.post-navigation { padding: 0 60px; } }
@media (max-width: 1024px) { body.gdw-post nav.navigation.post-navigation { padding: 0 40px; } }
@media (max-width: 640px) { body.gdw-post nav.navigation.post-navigation { padding: 0 24px; } }

/* ---------- conteneur (1360 px utiles + 120 px de marge) ---------- */
.gdw-outer { width: 100%; }
.gdw-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 */
.gdw-hero {
	margin: 0;
	padding: 40px 0;
	border-radius: 0;
	border-bottom: 1px solid #e3eaf7;
	background: linear-gradient(135deg, #eef4ff 0%, #f2efff 55%, #f6f2ff 100%);
	width: 100%;
}
.gdw-hero .gdw-wrap { max-width: 1600px; margin: 0 auto; padding: 0 120px; box-sizing: border-box; }
.gdw-crumbs { display: flex; flex-wrap: wrap; align-items: center; margin: 0 0 18px; font-family: var(--gdw-font-body); font-size: 14px; font-weight: 600; line-height: 20px; }
body.gdw-post .gdw-crumbs,
body.gdw-post .gdw-crumbs a { color: #9f9fa2 !important; text-decoration: none; }
body.gdw-post .gdw-crumbs a:hover { color: var(--gdw-accent-dark) !important; }
.gdw-crumbs .gdw-sep { margin: 0 6px; opacity: .75; }
.gdw-crumbs span[aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 480px; }

.gdw-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px; align-items: center; }
body.gdw-post h1.gdw-title { margin: 0 0 16px; font-family: var(--gdw-font-title) !important; font-size: 38px !important; font-weight: 800 !important; line-height: 46px !important; letter-spacing: -0.02em; color: #090c14 !important; }
body.gdw-post .gdw-desc { margin: 0 0 24px; font-family: var(--gdw-font-title) !important; font-size: 16px !important; font-weight: 400 !important; line-height: 22px !important; color: #54545c !important; }
.gdw-cover { margin: 0; }
.gdw-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) */
.gdw-cta a { display: inline-flex; align-items: center; gap: 8px; min-height: 49px; padding: 0 24px; border-radius: 8px; background: var(--gdw-ink-strong); color: #ffffff !important; font-family: var(--gdw-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; }
.gdw-cta a:hover { background: #1f2430; color: #ffffff !important; transform: translateY(-1px); }
.gdw-cta a svg { width: 14px; height: 14px; }
.gdw-tip { margin: 12px 0 0; font-family: var(--gdw-font-title); font-size: 14px; line-height: 20px; color: #7d7d85; }

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

/* =====================================================================
   CORPS : rail de partage + colonne de lecture
   ===================================================================== */
.gdw-body { display: grid; grid-template-columns: 48px minmax(0, 676px) 320px; column-gap: 60px; align-items: start; }
.gdw-share { position: sticky; top: 100px; width: 48px; }
.gdw-share-list { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; list-style: none; }
.gdw-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; }
.gdw-share-list a:hover { background: var(--gdw-brand); color: #1c1c1c; }
.gdw-share-list svg { width: 18px; height: 18px; fill: currentColor; }
.gdw-article { max-width: 676px; overflow: hidden; }

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

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

/* =====================================================================
   CARTES « articles liés » + bouton de bas de page
   ===================================================================== */
.gdw-cards { margin: 88px 0 0; }
body.gdw-post .gdw-cards h2 { margin: 0 0 20px; font-family: var(--gdw-font-title) !important; font-size: 24px !important; font-weight: 800 !important; line-height: 140% !important; color: #2b2b36 !important; }
.gdw-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, 176px); gap: 20px; }
.gdw-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; }
.gdw-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(20, 40, 60, .08); }
.gdw-card-img { display: block; width: 176px; height: 117px; object-fit: cover; background: #e8eef5; }
.gdw-card-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 12px 12px 4px; font-family: var(--gdw-font-body) !important; font-size: 14px !important; font-weight: 500 !important; line-height: 18.2px !important; color: #000 !important; }
.gdw-card-sub { display: block; margin: 0 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--gdw-font-body) !important; font-size: 12px !important; font-weight: 400 !important; line-height: 15.6px !important; color: rgba(28, 40, 61, .5) !important; }
.gdw-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)
   ===================================================================== */
.gdw-recommend { position: sticky; top: 100px; }
body.gdw-post .gdw-recommend-title { margin: 0 0 18px; font-family: var(--gdw-font-title) !important; font-size: 24px !important; font-weight: 800 !important; line-height: 130% !important; color: #2b2b36 !important; }
.gdw-recommend-list { display: flex; flex-direction: column; gap: 20px; margin: 0; padding: 0; list-style: none; }
.gdw-recommend-list li { margin: 0; }
.gdw-recommend-list a { display: flex; gap: 12px; align-items: flex-start; text-decoration: none !important; }
.gdw-recommend-list img { flex: 0 0 76px; width: 76px; height: 57px; object-fit: cover; border-radius: 8px; background: #e8eef5; }
.gdw-recommend-text { display: block; }
.gdw-recommend-post { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-family: var(--gdw-font-body) !important; font-size: 15px !important; font-weight: 500 !important; line-height: 20px !important; color: #16161d !important; }
.gdw-recommend-list a:hover .gdw-recommend-post { color: var(--gdw-accent-dark) !important; }
.gdw-recommend-meta { display: block; margin-top: 4px; font-family: var(--gdw-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.gdw-post.gdw-with-sidebar .gdw-wrap { max-width: 100%; padding: 0; }
body.gdw-post.gdw-with-sidebar .gdw-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
body.gdw-post.gdw-with-sidebar .gdw-cover { order: -1; }
body.gdw-post.gdw-with-sidebar .gdw-body { grid-template-columns: 44px minmax(0, 1fr); column-gap: 32px; }
body.gdw-post.gdw-with-sidebar .gdw-article { max-width: 100%; }

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

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

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

@media (max-width: 640px) {
	.gdw-wrap { padding: 0 24px; }
	.gdw-hero { padding: 22px 0; }
	.gdw-hero .gdw-wrap { padding: 0 24px; }
	body.gdw-post h1.gdw-title { font-size: 26px !important; line-height: 33px !important; }
	body.gdw-post .gdw-article h2 { font-size: 21px !important; padding-top: 34px; }
	body.gdw-post .gdw-article h3 { font-size: 19px !important; padding-top: 18px; }
	body.gdw-post .gdw-article p,
	body.gdw-post .gdw-article li { font-size: 16px !important; }
	.gdw-cards { margin-top: 56px; }
	.gdw-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	.gdw-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 = .gdw-cta a), c'est elle qui gagne : le bouton
   devenait bleu et souligné. On repasse devant avec deux classes.
   ===================================================================== */
body.gdw-post .gdw-cta a { color: #ffffff !important; text-decoration: none !important; }
body.gdw-post .gdw-cta a:hover { color: #ffffff !important; }
body.gdw-post .gdw-cta a svg { stroke: currentColor !important; }
body.gdw-post .gdw-share-list a { color: #6b7480 !important; text-decoration: none !important; }
body.gdw-post .gdw-share-list a:hover { color: #1c1c1c !important; }
body.gdw-post .gdw-share-list svg { fill: currentColor !important; }
body.gdw-post .gdw-card,
body.gdw-post .gdw-card .gdw-card-title,
body.gdw-post .gdw-card .gdw-card-sub { color: #000000 !important; text-decoration: none !important; }
body.gdw-post .gdw-card .gdw-card-sub { color: rgba(28, 40, 61, .5) !important; }
body.gdw-post .gdw-recommend-list a { color: #16161d !important; text-decoration: none !important; }
body.gdw-post .gdw-recommend-list a .gdw-recommend-post { color: #16161d !important; text-decoration: none !important; }
body.gdw-post .gdw-recommend-list a .gdw-recommend-meta { color: #7d7d85 !important; text-decoration: none !important; }
body.gdw-post .gdw-crumbs a { color: #9f9fa2 !important; text-decoration: none !important; }
body.gdw-post .gdw-meta a { color: #7d7d85 !important; text-decoration: none !important; }
body.gdw-post .gdw-article .lwptoc a { text-decoration: none !important; }
body.gdw-post .gdw-article a { text-decoration: underline !important; }

/* =====================================================================
   FENÊTRE DU FORMULAIRE (popup « Request a Quote »)
   ===================================================================== */
.gdw-modal { position: fixed; inset: 0; z-index: 99999; display: none; }
.gdw-modal.is-open { display: block; }
.gdw-modal-backdrop { position: absolute; inset: 0; background: rgba(10, 16, 26, .62); }
.gdw-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;
}
.gdw-modal-title { margin: 0 0 14px; padding-right: 36px; font-family: var(--gdw-font-title) !important; font-size: 24px !important; font-weight: 700 !important; line-height: 130% !important; color: #222222 !important; }
.gdw-modal-close {
	position: absolute; top: 12px; right: 12px;
	width: 36px; height: 36px; padding: 0;
	border: 0; border-radius: 50%;
	background: #f2f4f7; color: #4a4f57;
	font-size: 22px; line-height: 34px; text-align: center;
	cursor: pointer; transition: background .2s ease, color .2s ease;
}
.gdw-modal-close:hover { background: #e4e8ee; color: #1f2329; }
.gdw-modal-body { font-family: var(--gdw-font-body); }
.gdw-modal-body .wpforms-container { margin: 0 !important; }
.gdw-modal-body .wpforms-field { padding: 0 0 12px !important; }
.gdw-modal-body .wpforms-submit-container { padding-top: 4px !important; }
.gdw-modal-fallback { margin: 0; font-size: 15px; color: #54545c; }
html.gdw-modal-open { overflow: hidden; }
@media (max-width: 640px) {
	.gdw-modal-box { width: 100%; margin: 0; min-height: 100%; max-height: 100%; border-radius: 0; padding: 22px 18px; }
}
