/* PW Blog Template — reprend automatiquement les couleurs/polices globales Elementor si elles existent */
:root {
	--pwbt-accent: var(--e-global-color-accent, var(--e-global-color-primary, #0a58ca));
	--pwbt-ink: var(--e-global-color-text, #1b1f27);
	--pwbt-ink-soft: #5b6472;
	--pwbt-line: #e6e8ec;
	--pwbt-bg-soft: #f6f7f9;
	--pwbt-radius: 14px;
	--pwbt-font: var(--e-global-typography-text-font-family, inherit);
	--pwbt-font-title: var(--e-global-typography-primary-font-family, inherit);
	--pwbt-sticky-top: 110px; /* hauteur du header sticky du site */
}

.pwbt { color: var(--pwbt-ink); font-family: var(--pwbt-font); }
.pwbt *, .pwbt *::before, .pwbt *::after { box-sizing: border-box; }
.pwbt-wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }

/* Barre de progression */
.pwbt-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 9999; pointer-events: none; }
.pwbt-progress span { display: block; height: 100%; width: 100%; background: var(--pwbt-accent); transform-origin: 0 50%; transform: scaleX(0); }

/* Hero */
.pwbt-hero { padding: 40px 0 28px; background: var(--pwbt-bg-soft); border-bottom: 1px solid var(--pwbt-line); }
.pwbt-hero .pwbt-wrap { max-width: 900px; }
.pwbt-hero--toc .pwbt-wrap { max-width: 1200px; display: grid; grid-template-columns: 280px minmax(0, 1fr); column-gap: 56px; }
.pwbt-hero--toc .pwbt-wrap > * { grid-column: 2; max-width: 860px; justify-self: start; }
.pwbt-legacy-toc { display: none !important; }
.pwbt-breadcrumb { font-size: 14px; color: var(--pwbt-ink-soft); margin-bottom: 18px; }
.pwbt-breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pwbt-breadcrumb li:not(:last-child)::after { content: "›"; margin-left: 6px; opacity: .6; }
.pwbt-breadcrumb a { color: inherit; text-decoration: none; }
.pwbt-breadcrumb a:hover { color: var(--pwbt-accent); }
.pwbt-cat { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--pwbt-accent); text-decoration: none; margin-bottom: 12px; }
.pwbt-title { font-family: var(--pwbt-font-title); font-size: clamp(30px, 4.2vw, 46px); line-height: 1.15; margin: 0 0 16px; letter-spacing: -.01em; text-wrap: balance; }
.pwbt-lead { font-size: 19px; line-height: 1.55; color: var(--pwbt-ink-soft); margin: 0 0 20px; }
.pwbt-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 14px; color: var(--pwbt-ink-soft); }
.pwbt-author { display: inline-flex; align-items: center; gap: 8px; }
.pwbt-avatar { border-radius: 50%; }
.pwbt-dot { opacity: .5; }

.pwbt-cover { margin: 32px auto 0; max-width: 1000px; }
.pwbt-cover img { width: 100%; height: auto; aspect-ratio: 16/8; object-fit: cover; border-radius: var(--pwbt-radius); display: block; }

/* Layout */
.pwbt-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 56px; padding: 48px 0 64px; align-items: start; }
.pwbt-layout--notoc { grid-template-columns: minmax(0, 1fr); max-width: 780px; }
.pwbt-main { max-width: 760px; min-width: 0; }

/* Sommaire */
.pwbt-sidebar { position: sticky; top: var(--pwbt-sticky-top); max-height: calc(100vh - var(--pwbt-sticky-top) - 20px); overflow: auto; display: flex; flex-direction: column; gap: 20px; scrollbar-width: thin; }
.pwbt-toc { border: 1px solid var(--pwbt-line); border-radius: var(--pwbt-radius); background: #fff; }
.pwbt-toc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; padding: 16px 18px; }
.pwbt-toc details[open] summary { border-bottom: 1px solid var(--pwbt-line); }
.pwbt-toc summary::-webkit-details-marker { display: none; }
.pwbt-toc-title { font-weight: 700; font-size: 15px; }
.pwbt-toc-count { font-size: 12px; color: var(--pwbt-ink-soft); }
.pwbt-toc-list, .pwbt-toc-list ol { list-style: none; margin: 0; padding: 0; }
.pwbt-toc-list { padding: 10px 0; counter-reset: pwbt; }
.pwbt-toc-list > li { counter-increment: pwbt; }
.pwbt-toc a { display: block; padding: 7px 18px 7px 20px; font-size: 14px; line-height: 1.35; color: var(--pwbt-ink-soft); text-decoration: none; border-left: 2px solid transparent; transition: color .15s, border-color .15s, background .15s; }
.pwbt-toc a:hover { color: var(--pwbt-ink); background: var(--pwbt-bg-soft); }
.pwbt-toc-list ol { display: none; }
.pwbt-toc-list > li.is-open > ol { display: block; }
.pwbt-toc-h3 a { padding-left: 34px; font-size: 13px; }
.pwbt-toc a.is-active { color: var(--pwbt-accent); border-left-color: var(--pwbt-accent); font-weight: 600; background: color-mix(in srgb, var(--pwbt-accent) 6%, transparent); }

/* CTA latéral */
.pwbt-cta-card { border-radius: var(--pwbt-radius); padding: 20px; background: var(--pwbt-ink); color: #fff; }
.pwbt-cta-card p { margin: 0 0 14px; font-size: 14px; line-height: 1.5; opacity: .85; }
.pwbt-cta-card .pwbt-cta-card-title { font-size: 17px; font-weight: 700; opacity: 1; margin-bottom: 8px; }
.pwbt-btn { display: inline-block; padding: 12px 20px; border-radius: 999px; background: var(--pwbt-accent); color: #fff !important; font-weight: 700; font-size: 15px; text-decoration: none !important; transition: transform .15s, filter .15s; }
.pwbt-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.pwbt-btn--light { background: #fff; color: var(--pwbt-ink) !important; }

/* Contenu : typographie homogène quelle que soit la mise en forme d'origine */
.pwbt-content { font-size: 17px; line-height: 1.7; }
.pwbt-content > *:first-child { margin-top: 0; }
.pwbt-content p, .pwbt-content ul, .pwbt-content ol, .pwbt-content table, .pwbt-content blockquote, .pwbt-content figure { margin: 0 0 1.25em; }
.pwbt-content h2, .pwbt-content h3, .pwbt-content h4 { font-family: var(--pwbt-font-title); color: var(--pwbt-ink); line-height: 1.25; scroll-margin-top: calc(var(--pwbt-sticky-top) + 10px); text-wrap: balance; }
.pwbt-content h2 { font-size: clamp(25px, 2.6vw, 31px); margin: 2.2em 0 .7em; padding-top: .2em; }
.pwbt-content h3 { font-size: 22px; margin: 1.8em 0 .6em; }
.pwbt-content h4 { font-size: 19px; margin: 1.5em 0 .5em; }
.pwbt-content ul, .pwbt-content ol { padding-left: 1.3em; }
.pwbt-content li { margin-bottom: .45em; }
.pwbt-content li::marker { color: var(--pwbt-accent); }
.pwbt-content a { color: var(--pwbt-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.pwbt-content a:hover { text-decoration-thickness: 2px; }
.pwbt-content img { max-width: 100%; height: auto; border-radius: 10px; }
.pwbt-content blockquote { border-left: 4px solid var(--pwbt-accent); background: var(--pwbt-bg-soft); padding: 18px 22px; border-radius: 0 10px 10px 0; font-style: normal; }
.pwbt-content table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.pwbt-content th, .pwbt-content td { border: 1px solid var(--pwbt-line); padding: 10px 12px; text-align: left; vertical-align: top; }
.pwbt-content th { background: var(--pwbt-bg-soft); }
.pwbt-content iframe { max-width: 100%; border-radius: 10px; }
.pwbt-content iframe[src*="youtube"] { width: 100%; height: auto; aspect-ratio: 16/9; }
/* Neutralise les largeurs/paddings imposés par d'anciens widgets Elementor dans le contenu */
.pwbt-content .elementor-section.elementor-section-boxed > .elementor-container,
.pwbt-content .e-con-inner { max-width: 100% !important; }
.pwbt-content .elementor-widget-wrap, .pwbt-content .e-con { padding-left: 0 !important; padding-right: 0 !important; }

/* Tags, partage, auteur */
.pwbt-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 40px 0 0; }
.pwbt-tags a { font-size: 13px; padding: 5px 12px; border-radius: 999px; background: var(--pwbt-bg-soft); color: var(--pwbt-ink-soft); text-decoration: none; }
.pwbt-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 32px 0; padding: 18px 0; border-top: 1px solid var(--pwbt-line); border-bottom: 1px solid var(--pwbt-line); font-size: 14px; color: var(--pwbt-ink-soft); }
.pwbt-share a, .pwbt-share button { font: inherit; font-size: 14px; padding: 7px 14px; border: 1px solid var(--pwbt-line); border-radius: 999px; background: #fff; color: var(--pwbt-ink); text-decoration: none; cursor: pointer; }
.pwbt-share a:hover, .pwbt-share button:hover { border-color: var(--pwbt-accent); color: var(--pwbt-accent); }
.pwbt-authorbox { display: flex; gap: 18px; align-items: flex-start; padding: 22px; border-radius: var(--pwbt-radius); background: var(--pwbt-bg-soft); }
.pwbt-authorbox p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--pwbt-ink-soft); }
.pwbt-authorbox .pwbt-authorbox-name { font-weight: 700; color: var(--pwbt-ink); margin-bottom: 4px; font-size: 16px; }

/* Bandeau CTA */
.pwbt-cta-band { background: var(--pwbt-accent); color: #fff; padding: 44px 0; }
.pwbt-cta-band .pwbt-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.pwbt-cta-band p { margin: 0; max-width: 640px; opacity: .92; }
.pwbt-cta-band .pwbt-cta-band-title { font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; opacity: 1; margin-bottom: 6px; }

/* Articles liés */
.pwbt-related { padding: 64px 0 24px; }
.pwbt-related-title { font-size: 28px; margin: 0 0 24px; font-family: var(--pwbt-font-title); }
.pwbt-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pwbt-card { display: flex; flex-direction: column; border: 1px solid var(--pwbt-line); border-radius: var(--pwbt-radius); overflow: hidden; text-decoration: none; color: inherit; background: #fff; transition: box-shadow .2s, transform .2s; }
.pwbt-card:hover { box-shadow: 0 12px 30px rgba(20, 30, 50, .08); transform: translateY(-2px); }
.pwbt-card-img { display: block; aspect-ratio: 16/9; background: var(--pwbt-bg-soft); overflow: hidden; }
.pwbt-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pwbt-card-body { display: flex; flex-direction: column; gap: 8px; padding: 18px; }
.pwbt-card-cat { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--pwbt-accent); }
.pwbt-card-title { font-weight: 700; font-size: 17px; line-height: 1.35; }
.pwbt-card-date { font-size: 13px; color: var(--pwbt-ink-soft); }

.pwbt-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 32px 0 64px; }
.pwbt-postnav div:last-child { text-align: right; }
.pwbt-postnav a { display: block; text-decoration: none; color: var(--pwbt-ink); }
.pwbt-postnav small { display: block; font-size: 13px; color: var(--pwbt-ink-soft); margin-bottom: 4px; }
.pwbt-postnav span { font-weight: 600; }
.pwbt-postnav a:hover span { color: var(--pwbt-accent); }

/* Responsive */
@media (max-width: 1024px) {
	.pwbt-hero--toc .pwbt-wrap { display: block; max-width: 900px; }
	.pwbt-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 28px; }
	.pwbt-main { max-width: none; }
	.pwbt-sidebar { position: static; max-height: none; overflow: visible; }
	.pwbt-cta-card { display: none; } /* le bandeau CTA bas de page prend le relais */
	.pwbt-toc summary::after { content: "+"; font-size: 20px; line-height: 1; margin-left: 10px; }
	.pwbt-toc details[open] summary::after { content: "–"; }
	.pwbt-toc summary { justify-content: flex-start; gap: 10px; }
	.pwbt-toc-count { margin-left: auto; }
	.pwbt-toc-list ol { display: block; }
	.pwbt-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	.pwbt-wrap { width: calc(100% - 32px); }
	.pwbt-hero { padding: 24px 0 20px; }
	.pwbt-content { font-size: 16px; }
	.pwbt-meta .pwbt-dot { display: none; }
	.pwbt-meta { gap: 4px 14px; }
	.pwbt-cards { grid-template-columns: 1fr; }
	.pwbt-postnav { grid-template-columns: 1fr; }
	.pwbt-postnav div:last-child { text-align: left; }
	.pwbt-cover img { aspect-ratio: 16/10; border-radius: 10px; }
}
@media (prefers-reduced-motion: reduce) {
	.pwbt *, .pwbt-progress span { transition: none !important; }
	html { scroll-behavior: auto !important; }
}

/* Images du contenu */
.pwbt-content .pwbt-figure { margin: 2em 0; text-align: center; }
.pwbt-content .pwbt-figure img { display: block; margin: 0 auto; width: auto; max-width: 100%; height: auto; border-radius: 10px; box-shadow: 0 1px 0 var(--pwbt-line), 0 8px 24px rgba(20, 30, 50, .06); }
.pwbt-content .pwbt-figure figcaption, .pwbt-content .wp-caption-text { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--pwbt-ink-soft); text-align: center; }
.pwbt-content .alignleft, .pwbt-content .alignright { float: none; margin-left: auto; margin-right: auto; } /* plus de texte qui « coule » autour sur une colonne étroite */
.pwbt-content .wp-caption { max-width: 100% !important; width: auto !important; }
.pwbt-content img[data-pwbt-full] { cursor: zoom-in; }

/* Visionneuse (infographies, schémas) */
.pwbt-lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
.pwbt-lightbox::backdrop { background: rgba(10, 14, 22, .86); }
.pwbt-lightbox img { display: block; max-width: 96vw; max-height: 90vh; width: auto; height: auto; border-radius: 8px; }
.pwbt-lightbox button { position: fixed; top: 16px; right: 20px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: #111; font-size: 24px; line-height: 1; cursor: pointer; }

/* ===== Neutralise les styles globaux du thème (survol des boutons/liens, pseudo-éléments décoratifs) ===== */
.pwbt a::before, .pwbt a::after, .pwbt button::before, .pwbt button::after { content: none !important; display: none !important; }
.pwbt a, .pwbt button { transition: color .15s, background-color .15s, border-color .15s, transform .15s; box-shadow: none; }

/* Boutons de partage */
.pwbt .pwbt-share a, .pwbt .pwbt-share button,
.pwbt .pwbt-share a:visited {
	display: inline-flex; align-items: center; min-height: 0; line-height: 1.2; letter-spacing: normal; text-transform: none;
	font-family: inherit; font-weight: 600; font-size: 14px; padding: 8px 16px;
	background: #fff !important; color: var(--pwbt-ink) !important;
	border: 1px solid var(--pwbt-line) !important; border-radius: 999px !important;
	text-decoration: none !important; box-shadow: none !important; outline: none; transform: none;
}
.pwbt .pwbt-share a:hover, .pwbt .pwbt-share button:hover,
.pwbt .pwbt-share a:focus, .pwbt .pwbt-share button:focus,
.pwbt .pwbt-share a:active, .pwbt .pwbt-share button:active {
	background: var(--pwbt-bg-soft) !important; color: var(--pwbt-accent) !important;
	border-color: var(--pwbt-accent) !important; text-decoration: none !important; box-shadow: none !important;
}
.pwbt .pwbt-share a:focus-visible, .pwbt .pwbt-share button:focus-visible { outline: 2px solid var(--pwbt-accent) !important; outline-offset: 2px; }

/* Boutons CTA */
.pwbt .pwbt-btn, .pwbt .pwbt-btn:visited { border: 0 !important; box-shadow: none !important; text-transform: none; letter-spacing: normal; line-height: 1.2; }
.pwbt .pwbt-btn:hover, .pwbt .pwbt-btn:focus, .pwbt .pwbt-btn:active { background: var(--pwbt-accent) !important; color: #fff !important; text-decoration: none !important; filter: brightness(1.1); }
.pwbt .pwbt-btn--light:hover, .pwbt .pwbt-btn--light:focus, .pwbt .pwbt-btn--light:active { background: #fff !important; color: var(--pwbt-ink) !important; filter: none; transform: translateY(-1px); }

/* Liens du texte : soulignement simple, pas d'animation ni de crochet/flèche ajoutés par le thème */
.pwbt .pwbt-content a, .pwbt .pwbt-content a:visited {
	color: var(--pwbt-accent) !important; background: none !important; border: 0 !important; padding: 0 !important;
	text-decoration: underline !important; text-decoration-thickness: 1px !important; text-underline-offset: 3px; box-shadow: none !important;
}
.pwbt .pwbt-content a:hover, .pwbt .pwbt-content a:focus {
	color: var(--pwbt-ink) !important; background: none !important; text-decoration-thickness: 2px !important; box-shadow: none !important;
}

/* Liens de navigation (sommaire, cartes, précédent/suivant, fil d'Ariane, tags) */
.pwbt .pwbt-toc a, .pwbt .pwbt-card, .pwbt .pwbt-postnav a, .pwbt .pwbt-breadcrumb a, .pwbt .pwbt-tags a, .pwbt .pwbt-cat { text-decoration: none !important; box-shadow: none !important; }
.pwbt .pwbt-card:hover, .pwbt .pwbt-card:focus { color: inherit !important; background: #fff !important; }
.pwbt .pwbt-postnav a:hover, .pwbt .pwbt-breadcrumb a:hover, .pwbt .pwbt-cat:hover { background: none !important; }

/* ===== Typographie du texte harmonisée =====
   Le thème met tout le site en font-weight 600. La police Gilroy n'étant chargée qu'en 100/500/700/800,
   le navigateur affiche ce 600 avec la graisse 700 : le texte paraît en gras.
   On force une graisse normale (servie par Gilroy 500) et une taille unique, quelle que soit la mise en forme d'origine
   (widgets Elementor, styles en ligne, spans…). Seuls les vrais <strong>/<b> et les titres restent en gras. */
.pwbt-content { font-weight: 400; color: var(--pwbt-ink); }
.pwbt .pwbt-content :is(p, li, dd, dt, td, blockquote, figcaption, span, div, em, a, .elementor-widget-container, .elementor-text-editor):not([class*="icon"]):not([class*="fa-"]):not([class*="eicon"]):not(.elementor-button):not(.elementor-button *) {
	font-family: var(--pwbt-font) !important; font-size: inherit !important; font-weight: inherit !important; line-height: inherit !important; letter-spacing: normal !important;
}
.pwbt .pwbt-content :is(strong, b, th) { font-weight: 700 !important; font-size: inherit !important; }
.pwbt .pwbt-content :is(h2, h3, h4, h5, h6) { font-weight: 700 !important; }
.pwbt .pwbt-content :is(h2, h3, h4, h5, h6) :is(span, strong, b, a) { font-size: inherit !important; font-weight: inherit !important; }
.pwbt .pwbt-content figcaption, .pwbt .pwbt-content .wp-caption-text { font-size: 14px !important; }
.pwbt .pwbt-content table { font-size: 15px !important; }
.pwbt-lead, .pwbt-meta, .pwbt-toc, .pwbt-authorbox p, .pwbt-cta-card p, .pwbt-cta-band p, .pwbt-card-date, .pwbt-share span { font-weight: 400; }

/* ===== En-tête d'article v2 (charte PW : marine + point bleu) ===== */
:root {
	--pwbt-navy: #1c477f;
	--pwbt-navy-deep: #102b52;
	--pwbt-blue: #3672e4;
	--pwbt-accent: #2a63cf;
	--pwbt-header-offset: 180px; /* hauteur du header flottant du site (il passe par-dessus l'en-tête) */
	--pwbt-sticky-top: 190px;
}
.pwbt-hero {
	position: relative; overflow: hidden; isolation: isolate;
	padding: calc(var(--pwbt-header-offset) + 36px) 0 72px;
	background: linear-gradient(140deg, var(--pwbt-navy) 0%, #173a6b 45%, var(--pwbt-navy-deep) 100%);
	border-bottom: 0; color: #fff;
}
/* halo bleu + trame de points façon « pw. » */
.pwbt-hero::before {
	content: ""; position: absolute; z-index: -1; width: 720px; height: 720px; right: -180px; top: -260px; border-radius: 50%;
	background: radial-gradient(circle at center, rgba(54, 114, 228, .55) 0%, rgba(54, 114, 228, 0) 65%);
}
.pwbt-hero::after {
	content: ""; position: absolute; z-index: -1; inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, .13) 1.2px, transparent 1.3px);
	background-size: 22px 22px;
	-webkit-mask-image: linear-gradient(100deg, transparent 35%, #000 85%); mask-image: linear-gradient(100deg, transparent 35%, #000 85%);
}
.pwbt-hero .pwbt-breadcrumb { color: rgba(255, 255, 255, .65); margin-bottom: 22px; }
.pwbt-hero .pwbt-breadcrumb a { color: rgba(255, 255, 255, .78) !important; }
.pwbt-hero .pwbt-breadcrumb a:hover { color: #fff !important; }
.pwbt-hero .pwbt-cat {
	display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 7px 14px 7px 12px; border-radius: 999px;
	background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: #fff !important;
	font-size: 12px; letter-spacing: .08em; backdrop-filter: blur(6px);
}
.pwbt-cat-dot { display: none; }
.pwbt-hero .pwbt-cat-dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--pwbt-blue); box-shadow: 0 0 0 4px rgba(54, 114, 228, .25); }
.pwbt-hero .pwbt-cat:hover { background: rgba(255, 255, 255, .14) !important; }
.pwbt-hero .pwbt-title { color: #fff; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.1; margin-bottom: 20px; }
.pwbt-hero .pwbt-lead { color: rgba(255, 255, 255, .8); max-width: 720px; }
.pwbt-hero .pwbt-meta { color: rgba(255, 255, 255, .72); margin-top: 8px; }
.pwbt-hero .pwbt-meta strong { color: #fff; }
.pwbt-hero .pwbt-avatar { box-shadow: 0 0 0 2px rgba(255, 255, 255, .9); }
.pwbt-hero .pwbt-dot { color: var(--pwbt-blue); opacity: 1; }
/* le contenu remonte légèrement sur l'en-tête */
.pwbt-layout { position: relative; }
.pwbt-sidebar .pwbt-toc { box-shadow: 0 10px 30px rgba(16, 43, 82, .08); }

@media (max-width: 1024px) {
	:root { --pwbt-header-offset: 120px; --pwbt-sticky-top: 120px; }
	.pwbt-hero { padding-bottom: 48px; }
	.pwbt-hero::before { width: 460px; height: 460px; right: -200px; top: -160px; }
}
@media (max-width: 640px) {
	:root { --pwbt-header-offset: 100px; }
	.pwbt-hero { padding-bottom: 40px; }
	.pwbt-hero .pwbt-title { font-size: 30px; }
}

/* ===== Boutons au style de la page d'accueil (pilule marine + rond blanc avec flèche) ===== */
.pwbt .pwbt-btn,
.pwbt .pwbt-content .elementor-button {
	display: inline-flex !important; align-items: center; gap: 13px; width: auto;
	padding: 8px 8px 8px 22px !important; min-height: 54px; border-radius: 999px !important; border: 0 !important;
	background: #004882 !important; color: #fff !important;
	font-family: var(--pwbt-font) !important; font-size: 16px !important; font-weight: 600 !important; line-height: 1.2 !important;
	letter-spacing: normal !important; text-transform: none !important; text-decoration: none !important;
	box-shadow: none !important; filter: none !important; transform: none;
	transition: transform .3s cubic-bezier(.16, 1, .3, 1), box-shadow .3s !important;
}
.pwbt .pwbt-btn:hover, .pwbt .pwbt-btn:focus-visible,
.pwbt .pwbt-content .elementor-button:hover, .pwbt .pwbt-content .elementor-button:focus-visible {
	background: #004882 !important; color: #fff !important; text-decoration: none !important; filter: none !important;
	transform: translateY(-2px) !important; box-shadow: 0 12px 28px rgba(0, 72, 130, .28) !important;
}
.pwbt .pwbt-btn-circle,
.pwbt .pwbt-content .elementor-button .elementor-button-icon {
	display: inline-flex !important; align-items: center; justify-content: center; flex: none;
	width: 38px !important; height: 38px !important; margin: 0 !important; border-radius: 50% !important;
	background: #fff !important; color: #004882 !important; transition: transform .3s cubic-bezier(.16, 1, .3, 1);
}
.pwbt .pwbt-btn:hover .pwbt-btn-circle,
.pwbt .pwbt-content .elementor-button:hover .elementor-button-icon { transform: translateX(3px); }
/* Boutons Elementor collés dans les articles : texte puis rond-flèche, quelle que soit l'icône d'origine */
.pwbt .pwbt-content .elementor-button .elementor-button-content-wrapper { display: inline-flex !important; align-items: center; gap: 13px; flex-direction: row !important; }
.pwbt .pwbt-content .elementor-button .elementor-button-text { order: 1; font: inherit !important; color: inherit !important; text-decoration: none !important; padding: 0 !important; }
.pwbt .pwbt-content .elementor-button .elementor-button-icon { order: 2;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23004882' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 18px no-repeat !important; }
.pwbt .pwbt-content .elementor-button .elementor-button-icon > * { display: none !important; }
.pwbt .pwbt-content .elementor-button-wrapper { margin: 1.5em 0; }
/* Variante claire (bandeau bleu) */
.pwbt .pwbt-btn--light { background: #fff !important; color: #004882 !important; }
.pwbt .pwbt-btn--light:hover, .pwbt .pwbt-btn--light:focus-visible { background: #fff !important; color: #004882 !important; box-shadow: 0 12px 28px rgba(0, 0, 0, .25) !important; }
.pwbt .pwbt-btn--light .pwbt-btn-circle { background: #004882 !important; color: #fff !important; }

/* ===== Largeur : en-tête et mise en page étendues (jusqu'à 1440 px) ===== */
:root { --pwbt-max: 1440px; }
.pwbt-hero--toc .pwbt-wrap, .pwbt-hero .pwbt-wrap { width: min(var(--pwbt-max), 100% - 64px); max-width: none; display: block; }
.pwbt-hero--toc .pwbt-wrap > * { max-width: none; }
.pwbt-hero .pwbt-title { max-width: 1100px; }
.pwbt-hero .pwbt-lead { max-width: 820px; }
.pwbt-layout { width: min(var(--pwbt-max), 100% - 64px); }
.pwbt-related .pwbt-wrap, .pwbt-cta-band .pwbt-wrap, .pwbt-postnav { width: min(var(--pwbt-max), 100% - 64px); }
.pwbt-aside-right { display: none; }
@media (min-width: 1360px) {
	.pwbt-layout:not(.pwbt-layout--notoc) { grid-template-columns: 280px minmax(0, 760px) 280px; justify-content: space-between; gap: 48px; }
	.pwbt-aside-right { display: block; position: sticky; top: var(--pwbt-sticky-top); }
	.pwbt-sidebar .pwbt-cta-card { display: none; }
}
@media (max-width: 640px) {
	.pwbt-hero .pwbt-wrap, .pwbt-layout, .pwbt-related .pwbt-wrap, .pwbt-cta-band .pwbt-wrap, .pwbt-postnav { width: calc(100% - 32px); }
}
/* CTA aux couleurs de l'en-tête */
.pwbt-cta-band { background: linear-gradient(140deg, var(--pwbt-navy) 0%, var(--pwbt-navy-deep) 100%); }
.pwbt-cta-card { background: var(--pwbt-navy-deep); }
.pwbt-cta-card .pwbt-btn { background: var(--pwbt-blue) !important; }
.pwbt-cta-card .pwbt-btn:hover { background: var(--pwbt-blue) !important; }
.pwbt-cta-card .pwbt-btn .pwbt-btn-circle { color: var(--pwbt-blue) !important; }

/* ===== En-tête v3 : charte de la page d'accueil (marine, crème, bleu vif, orange) + grand rond ===== */
:root {
	--pwbt-navy: #004882;
	--pwbt-navy-deep: #00375f;
	--pwbt-blue: #2181fa;
	--pwbt-orange: #fe8400;
	--pwbt-cream: #f7f4ec;
	--pwbt-orb-size: clamp(420px, 40vw, 620px);
	--pwbt-font-accent: "pain-de-mie", sans-serif;
}
.pwbt-hero { background: linear-gradient(150deg, var(--pwbt-navy) 0%, #003f73 55%, var(--pwbt-navy-deep) 100%); }
.pwbt-hero::before { display: none; } /* ancien halo remplacé par le rond */
.pwbt-hero::after { -webkit-mask-image: linear-gradient(100deg, transparent 20%, #000 70%, transparent 95%); mask-image: linear-gradient(100deg, transparent 20%, #000 70%, transparent 95%); opacity: .7; }

/* Grand rond coupé sur le bord droit (environ 3/4 visible) */
.pwbt-orb { position: absolute; z-index: -1; pointer-events: none;
	width: var(--pwbt-orb-size); height: var(--pwbt-orb-size);
	right: calc(var(--pwbt-orb-size) * -0.25);
	top: calc(var(--pwbt-header-offset) + (100% - var(--pwbt-header-offset)) / 2 - var(--pwbt-orb-size) / 2 + 10px);
}
.pwbt-orb-disc { position: absolute; inset: 0; border-radius: 50%; background: var(--pwbt-cream);
	box-shadow: inset -30px -40px 80px rgba(0, 72, 130, .08), 0 30px 80px rgba(0, 20, 45, .35);
	display: flex; align-items: center; justify-content: flex-start; overflow: hidden; }
/* anneau décalé, comme les ronds des cartes services */
.pwbt-orb-ring { position: absolute; inset: -46px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .14); }
.pwbt-orb-ring::after { content: ""; position: absolute; inset: -60px; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .1); }
/* thème de l'article en Pain de mie, centré dans la partie visible du rond */
.pwbt-orb-label { width: 75%; padding: 0 9% 0 13%; text-align: center;
	font-family: var(--pwbt-font-accent) !important; font-weight: 400 !important; text-transform: uppercase;
	font-size: clamp(30px, 3.6vw, 60px); line-height: .98; letter-spacing: .01em; color: var(--pwbt-orange);
	overflow-wrap: anywhere; hyphens: auto; transform: rotate(-6deg); }
.pwbt-orb-dot { position: absolute; border-radius: 50%; }
.pwbt-orb-dot--blue { width: 54px; height: 54px; background: var(--pwbt-blue); left: 4%; bottom: 17%; box-shadow: 0 0 0 10px rgba(33, 129, 250, .18); }
.pwbt-orb-dot--orange { width: 18px; height: 18px; background: var(--pwbt-orange); left: -2%; top: 30%; }

/* le texte de l'en-tête laisse la place au rond */
@media (min-width: 1025px) {
	.pwbt-hero .pwbt-wrap > * { max-width: min(1000px, calc(100vw - var(--pwbt-orb-size) * .75 - 140px)) !important; }
	.pwbt-hero .pwbt-wrap { min-height: calc(var(--pwbt-orb-size) * .62); }
}
.pwbt-hero .pwbt-cat-dot { background: var(--pwbt-orange); box-shadow: 0 0 0 4px rgba(254, 132, 0, .22); }
.pwbt-hero .pwbt-dot { color: var(--pwbt-orange); }
.pwbt-cta-band { background: linear-gradient(150deg, var(--pwbt-navy) 0%, var(--pwbt-navy-deep) 100%); }
.pwbt-cta-card { background: var(--pwbt-navy); }

/* tablette / mobile : rond plus petit, sans texte, en simple ornement */
@media (max-width: 1024px) {
	:root { --pwbt-orb-size: 360px; }
	.pwbt-orb { right: -180px; top: auto; bottom: -120px; opacity: .9; }
	.pwbt-orb-disc { background: rgba(247, 244, 236, .08); box-shadow: none; }
	.pwbt-orb-label { display: none; }
	.pwbt-orb-dot { display: none; }
}
@media (max-width: 640px) {
	:root { --pwbt-orb-size: 260px; }
	.pwbt-orb { right: -150px; bottom: -90px; }
}
