/*
Theme Name: ABG Services
Theme URI: https://abg-rdc.com
Author: Sam
Description: Thème vitrine ABG Services (Kinshasa, RDC). Couleurs bleu marine et or, header/footer et sections modifiables dans Apparence > Éditeur, bouton WhatsApp flottant réglable dans Apparence > Personnaliser > Contact ABG.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Version: 3.7.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: abg-services
Tags: block-patterns, full-site-editing, style-variations, custom-colors, wide-blocks
*/

html { scroll-behavior: smooth; }
:where(.wp-site-blocks) :where([id]) { scroll-margin-top: 96px; }
.wp-site-blocks > * + main,
.wp-site-blocks > * + footer { margin-block-start: 0; }

/* ---------- Header (voir aussi la section v3 en bas du fichier) ---------- */
.abg-logo img { height: 56px; width: auto; display: block; }
.abg-logo { margin: 0; }
.abg-header .wp-block-navigation a:hover { color: var(--wp--preset--color--secondary); }
@media (max-width: 600px) {
	.abg-logo img { height: 44px; }
	.abg-header .abg-header-cta { display: none; }
}

/* ---------- Petites étiquettes ---------- */
.abg-eyebrow {
	display: inline-block;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary);
	background: var(--wp--preset--color--secondary-soft);
	padding: 0.35rem 0.9rem;
	border-radius: var(--wp--custom--radius-button);
}
p.abg-eyebrow.has-text-align-center { display: table; margin-left: auto; margin-right: auto; }
.abg-dark .abg-eyebrow { background: rgba(255,255,255,0.1); color: var(--wp--preset--color--secondary); }

/* Soulignement doré sous les titres de section */
.abg-title-line::after {
	content: "";
	display: block;
	width: 72px;
	height: 4px;
	border-radius: 4px;
	background: var(--wp--preset--color--secondary);
	margin-top: 0.9rem;
}
.abg-title-line.has-text-align-center::after { margin-left: auto; margin-right: auto; }

/* ---------- Sections sombres (hero, pourquoi, footer) ---------- */
.abg-dark,
.abg-dark :where(h1, h2, h3, h4, p, li) { color: var(--wp--preset--color--primary-contrast); }
.abg-dark .has-muted-color { color: rgba(255,255,255,0.75) !important; }
.abg-dark a:not(.wp-element-button) { color: var(--wp--preset--color--primary-contrast); }
.abg-dark a:not(.wp-element-button):hover { color: var(--wp--preset--color--secondary); }
.abg-dark .has-secondary-color { color: var(--wp--preset--color--secondary) !important; }
.abg-dark .wp-block-button.is-style-outline > .wp-block-button__link {
	color: var(--wp--preset--color--primary-contrast);
	border-color: rgba(255,255,255,0.7);
}
.abg-dark .wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--primary-contrast);
	color: var(--wp--preset--color--primary);
}

/* ---------- Hero avec vague dorée ---------- */
.abg-hero { position: relative; overflow: hidden; }
/* Trait doré ondulé en bas des bandeaux bleus */
.abg-hero::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 14px;
	height: 44px;
	pointer-events: none;
	z-index: 1;
	background: var(--wp--preset--color--secondary);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 44' preserveAspectRatio='none'%3E%3Cpath d='M0 34 C360 4 760 52 1440 10' fill='none' stroke='%23000' stroke-width='4'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 44' preserveAspectRatio='none'%3E%3Cpath d='M0 34 C360 4 760 52 1440 10' fill='none' stroke='%23000' stroke-width='4'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.abg-hero > * { position: relative; z-index: 2; }
.abg-tagline { font-style: italic; opacity: .9; }

/* Mosaïque photos du hero */
.abg-photos { gap: 12px !important; }
.abg-photos .wp-block-image { margin: 0; flex: 1 1 0; }
.abg-photos .wp-block-image img {
	width: 100%;
	aspect-ratio: 3 / 5;
	object-fit: cover;
	border-radius: var(--wp--custom--radius);
	box-shadow: 0 18px 40px -18px rgba(0,0,0,.55);
	display: block;
}
.abg-photos .wp-block-image:nth-child(2) { transform: translateY(28px); }
.abg-photos .wp-block-image:first-child img,
.abg-photos .wp-block-image:last-child img { border: 3px solid rgba(255,255,255,.15); }

/* ---------- Cartes ---------- */
.abg-card {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
	height: 100%;
}
.abg-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--wp--custom--shadow);
	border-color: var(--wp--preset--color--secondary);
}
.abg-card .wp-block-list { padding-left: 1.1rem; margin: 0; }
.abg-card .wp-block-list li { margin-bottom: .25rem; }
.abg-card .wp-block-list li::marker { color: var(--wp--preset--color--secondary); }

/* ---------- Icônes rondes ---------- */
.abg-icon { margin: 0; }
.abg-icon img { width: 76px; height: 76px; display: block; }
.abg-icon.has-text-align-center img,
.abg-center .abg-icon img { margin-left: auto; margin-right: auto; }
.abg-center { text-align: center; }
.abg-icon-sm img { width: 44px; height: 44px; }

/* ---------- Liste à coches dorées ---------- */
.abg-checklist { list-style: none; padding-left: 0; }
.abg-checklist li {
	position: relative;
	padding-left: 2.6rem;
	margin-bottom: 1rem;
	font-size: 1.15rem;
	min-height: 1.9rem;
	display: flex;
	align-items: center;
}
.abg-checklist li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 1.9rem;
	height: 1.9rem;
	border-radius: 50%;
	background: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--primary);
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ---------- Photo arrondie ---------- */
.abg-photo { max-width: 380px; margin-left: auto !important; margin-right: auto !important; }
.abg-photo img {
	border-radius: calc(var(--wp--custom--radius) * 1.4);
	box-shadow: 0 24px 50px -24px rgba(0,0,0,.6);
	width: 100%;
	max-height: 460px;
	object-fit: cover;
	border: 4px solid var(--wp--preset--color--secondary);
}

/* ---------- Étapes ---------- */
.abg-step-num {
	font-family: var(--wp--preset--font-family--barlow-condensed);
	font-weight: 800;
	font-size: 0.95rem;
	letter-spacing: .12em;
	color: var(--wp--preset--color--secondary);
	margin-bottom: 0;
}

/* ---------- Valeurs (Servir • Innover • Faciliter) ---------- */
.abg-value {
	font-family: var(--wp--preset--font-family--barlow-condensed);
	font-weight: 800;
	text-transform: uppercase;
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	color: var(--wp--preset--color--primary);
	margin-bottom: 0;
}

/* ---------- CTA ---------- */
.abg-rounded { border-radius: calc(var(--wp--custom--radius) * 1.5); overflow: hidden; }
.abg-btn-dark .wp-block-button__link { background: var(--wp--preset--color--primary); color: var(--wp--preset--color--primary-contrast); }
.abg-btn-dark .wp-block-button__link:hover { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); }

/* ---------- Contact ---------- */
.abg-whatsapp-card {
	background: linear-gradient(135deg, #1FAF55 0%, #25D366 100%);
	border-radius: var(--wp--custom--radius);
	box-shadow: 0 16px 34px -16px rgba(31,175,85,.6);
}
.abg-whatsapp-card, .abg-whatsapp-card :where(p, h3, a:not(.wp-element-button)) { color: #fff !important; }
.abg-whatsapp-card .wp-block-button__link { background: #fff; color: #128C45; }
.abg-whatsapp-card .wp-block-button__link:hover { background: #0B2A6B; color: #fff; }
.abg-contact-line { align-items: center; }
#contact .abg-card { height: auto; }
.abg-contact-line p { margin: 0; }

/* ---------- Footer ---------- */
.abg-footer { border-top: 4px solid var(--wp--preset--color--secondary); }
.abg-footer .wp-block-list { list-style: none; padding-left: 0; }
.abg-footer .wp-block-list li { margin-bottom: .35rem; }
.abg-footer .wp-block-separator { border-color: rgba(255,255,255,.15); opacity: 1; }

/* ---------- FAQ ---------- */
.wp-block-details summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; font-size: 1.15rem; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--wp--preset--color--secondary); transition: transform .2s ease; }
.wp-block-details[open] summary::after { transform: rotate(45deg); }
.wp-block-details > :not(summary) { color: var(--wp--preset--color--muted); }

/* ---------- Bouton outline ---------- */
.wp-block-button.is-style-outline > .wp-block-button__link { border: 2px solid currentColor; background: transparent; color: var(--wp--preset--color--primary); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--primary); color: var(--wp--preset--color--primary-contrast); border-color: var(--wp--preset--color--primary); }

/* Espace entre intro de section et contenu */
.wp-block-group.alignfull > * + .wp-block-columns.alignwide { margin-block-start: var(--wp--preset--spacing--50); }

/* ---------- Bouton WhatsApp flottant ---------- */
.abg-whatsapp-float {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 999;
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	padding: .8rem 1.2rem .8rem .9rem;
	border-radius: 999px;
	background: #25D366;
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 12px 28px -8px rgba(0,0,0,.35);
	transition: transform .2s ease, background .2s ease;
}
.abg-whatsapp-float:hover { transform: translateY(-3px); background: #1FAF55; color: #fff; }
@media (max-width: 600px) {
	.abg-whatsapp-float { padding: .9rem; }
	.abg-whatsapp-float__label { display: none; }
}

.wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--base); }
@media (max-width: 781px) {
	.abg-photos .wp-block-image:nth-child(2) { transform: none; }
}


/* =========================================================
   v2 — pages, fiches services, formulaires
   ========================================================= */

/* Header */
.abg-site-logo img { height: 56px !important; width: auto !important; }
.abg-header-right { align-items: center; }
.abg-header .abg-header-cta { display: flex !important; }
.abg-header .abg-header-cta .wp-block-button__link { padding: .7rem 1.3rem; font-size: 1rem; }
@media (max-width: 600px) {
	.abg-site-logo img { height: 42px !important; }
	.abg-header .abg-header-cta .wp-block-button__link { padding: .55rem .9rem; font-size: .9rem; }
}

/* Titres de pages */
.abg-home-title, .abg-page-title { font-size: clamp(2.2rem, 4.4vw, 3.5rem) !important; line-height: 1.02; }
.abg-lead { opacity: .92; }
.abg-dark .abg-lead { color: rgba(255,255,255,.88) !important; }
.abg-page-hero { padding-bottom: calc(var(--wp--preset--spacing--70) + 20px) !important; }
.abg-hero-icon { justify-content: center; }
.abg-icon-xl img { width: 180px; height: 180px; filter: drop-shadow(0 20px 40px rgba(0,0,0,.35)); }
.abg-photo--hero img { max-height: 380px; }

/* Cartes */
.abg-card--lg h3 { font-size: 1.8rem; }
.abg-link-card h3 a, .abg-card h3 a { color: inherit; text-decoration: none; }
.abg-link-card h3 a:hover { color: var(--wp--preset--color--secondary); }
.abg-link-card { display: flex; flex-direction: column; }
.abg-link-card .abg-more { margin-top: auto; }
.abg-more a { font-weight: 700; text-decoration: none; }
.abg-more a:hover { text-decoration: underline; }
.abg-linklist { list-style: none; padding-left: 0 !important; }
.abg-linklist li { border-bottom: 1px solid var(--wp--preset--color--border); padding: .45rem 0; margin: 0 !important; }
.abg-linklist a { text-decoration: none; font-weight: 600; display: flex; justify-content: space-between; }
.abg-linklist a::after { content: "→"; color: var(--wp--preset--color--secondary); }
.abg-small-cards .abg-icon img { width: 60px; height: 60px; }

/* Étapes numérotées */
.abg-steps .wp-block-column { position: relative; }
.abg-num {
	width: 3rem; height: 3rem;
	border-radius: 50%;
	background: var(--wp--preset--color--primary);
	color: #fff;
	font-family: var(--wp--preset--font-family--barlow-condensed);
	font-weight: 800;
	font-size: 1.4rem;
	display: flex; align-items: center; justify-content: center;
	margin-bottom: .5rem;
	box-shadow: 0 0 0 6px var(--wp--preset--color--secondary-soft);
}
.abg-steps .wp-block-column:nth-child(odd) .abg-num { background: var(--wp--preset--color--secondary); color: var(--wp--preset--color--primary); }
.abg-step-title { font-size: 1.2rem !important; margin-top: .6rem; }
@media (min-width: 782px) {
	.abg-steps .wp-block-column:not(:last-child)::after {
		content: "";
		position: absolute;
		top: 1.5rem; left: 3.8rem; right: -1rem;
		border-top: 2px dashed var(--wp--preset--color--border);
	}
}

/* Pastilles, puces, flux */
.abg-pills { list-style: none; padding-left: 0 !important; display: flex; flex-wrap: wrap; gap: .5rem; }
.abg-pills li { margin: 0 !important; background: var(--wp--preset--color--base); border: 1px solid var(--wp--preset--color--border); border-radius: 999px; padding: .35rem .9rem; font-weight: 600; font-size: .95rem; color: var(--wp--preset--color--primary); }
.abg-checklist--sm li { font-size: 1.05rem; margin-bottom: .7rem; }
.abg-flow { display: flex; flex-direction: column; gap: .5rem; }
.abg-flow-item { margin: 0 !important; display: flex; align-items: center; gap: .8rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: .6rem .9rem; font-weight: 600; }
.abg-flow--light .abg-flow-item { background: var(--wp--preset--color--surface); border-color: var(--wp--preset--color--border); color: var(--wp--preset--color--primary); }
.abg-chip-num { flex: 0 0 auto; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--wp--preset--color--secondary); color: var(--wp--preset--color--primary); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .9rem; }

/* En préparation / états */
.abg-soon { border: 2px dashed var(--wp--preset--color--border); border-radius: var(--wp--custom--radius); }
.abg-soon-list { font-weight: 600; color: var(--wp--preset--color--muted); }
.abg-badge-soon { display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: var(--wp--preset--color--secondary-soft); color: #8a5a00; padding: .25rem .7rem; border-radius: 999px; margin-bottom: .3rem; }
.abg-empty { border-style: dashed; }
.abg-btns-on-gold .is-style-outline .wp-block-button__link { color: var(--wp--preset--color--primary) !important; border-color: var(--wp--preset--color--primary) !important; background: transparent !important; }
.abg-btns-on-gold .is-style-outline .wp-block-button__link:hover { background: var(--wp--preset--color--primary) !important; color: #fff !important; }

/* Footer */
.abg-footer-logo img { height: 60px; width: auto; }
.abg-footer-links { list-style: none; padding-left: 0 !important; margin-bottom: 1.6rem; }
.abg-footer-links li { margin-bottom: .35rem; }
.abg-footer-links a { text-decoration: none; }
.abg-footer-links a:hover { text-decoration: underline; }
.abg-footer h4 { font-size: 1rem !important; letter-spacing: .06em; }

/* =========================================================
   Formulaires
   ========================================================= */
.abg-form-card { scroll-margin-top: 110px; }
.abg-form { font-size: 1rem; }
.abg-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; }
.abg-field { grid-column: 1 / -1; display: flex; flex-direction: column; gap: .35rem; }
.abg-field--half { grid-column: span 1; }
@media (max-width: 600px) { .abg-field--half { grid-column: 1 / -1; } }
.abg-field > label, .abg-field legend { font-weight: 700; color: var(--wp--preset--color--primary); }
.abg-field fieldset { border: 0; padding: 0; margin: 0; }
.abg-field legend { margin-bottom: .45rem; padding: 0; }
.abg-form input[type=text], .abg-form input[type=tel], .abg-form input[type=email], .abg-form select, .abg-form textarea {
	width: 100%;
	font: inherit;
	padding: .8rem .95rem;
	border: 1.5px solid var(--wp--preset--color--border);
	border-radius: 10px;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	box-sizing: border-box;
}
.abg-form input:focus, .abg-form select:focus, .abg-form textarea:focus { outline: none; border-color: var(--wp--preset--color--primary); box-shadow: 0 0 0 3px var(--wp--preset--color--secondary-soft); }
.abg-form input[type=file] { font: inherit; padding: .6rem; border: 1.5px dashed var(--wp--preset--color--border); border-radius: 10px; background: var(--wp--preset--color--surface); }
.abg-choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.abg-choice { display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; font-weight: 500; }
.abg-choices .abg-choice { border: 1.5px solid var(--wp--preset--color--border); border-radius: 999px; padding: .5rem 1rem; }
.abg-choices .abg-choice:has(input:checked) { border-color: var(--wp--preset--color--primary); background: var(--wp--preset--color--secondary-soft); }
.abg-choice input { accent-color: var(--wp--preset--color--primary); width: 1.1rem; height: 1.1rem; }
.abg-choice--consent { align-items: flex-start; font-size: .95rem; }
.abg-choice--consent input { margin-top: .2rem; flex: 0 0 auto; }
.abg-req { color: #C0392B; }
.abg-help { font-size: .85rem; color: var(--wp--preset--color--muted); margin: 0; }
.abg-form-actions { margin-top: 1.4rem; }
.abg-form-btn {
	display: inline-block;
	font: inherit; font-weight: 700;
	background: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--primary);
	border: 0; border-radius: 999px;
	padding: .95rem 2rem;
	cursor: pointer;
	text-decoration: none;
	transition: background .2s ease, color .2s ease;
}
.abg-form-btn:hover { background: var(--wp--preset--color--primary); color: #fff; }
.abg-form-btn--wa { background: #25D366; color: #fff; }
.abg-form-btn--wa:hover { background: #1FAF55; color: #fff; }
.abg-hp { position: absolute !important; left: -9999px !important; height: 1px; overflow: hidden; }
.abg-form-errors { background: #FDECEA; border: 1px solid #F5C2BD; color: #7A1D14; border-radius: 10px; padding: .9rem 1.1rem; margin-bottom: 1.2rem; }
.abg-form-errors ul { margin: .4rem 0 0 1.1rem; }
.abg-form-success { text-align: center; padding: 1rem 0; }
.abg-form-success__icon { width: 4rem; height: 4rem; margin: 0 auto .8rem; border-radius: 50%; background: var(--wp--preset--color--secondary); color: var(--wp--preset--color--primary); font-size: 2rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.abg-form-success__text { font-size: 1.25rem; font-weight: 600; color: var(--wp--preset--color--primary); }
.abg-form-success__hint { color: var(--wp--preset--color--muted); }
/* 3.7.0 — numéro de demande, questions selon le service, photos */
.abg-form-success__ref { margin: 1rem auto; padding: .8rem 1rem; max-width: 30rem; border: 1.5px dashed var(--wp--preset--color--secondary); border-radius: 12px; color: var(--wp--preset--color--primary); }
.abg-form-success__ref strong { font-size: 1.3rem; letter-spacing: .03em; }
.abg-form-success__ref span { font-size: .9rem; color: var(--wp--preset--color--muted); }
.abg-form-success__dup { font-weight: 600; color: var(--wp--preset--color--primary); }
.abg-form [hidden] { display: none !important; }
.abg-form .abg-field--cond { position: relative; }
.abg-form .abg-field--cond::before { content: ""; position: absolute; left: -.7rem; top: .2rem; bottom: .2rem; width: 3px; border-radius: 3px; background: var(--wp--preset--color--secondary); opacity: .55; }
.abg-form button[disabled] { opacity: .7; cursor: progress; }

.abg-aside { position: sticky; top: 110px; height: auto !important; }

/* Sections collées les unes aux autres dans le contenu des pages */
.wp-block-post-content > .wp-block-group.alignfull { margin-block: 0 !important; }


/* =========================================================
   v3 — header, menu mobile, hero accueil, animations
   ========================================================= */

/* ---------- Header collant qui rétrécit ----------
   Le flou est posé sur un pseudo-élément : posé sur le header lui-même,
   il enfermait le menu mobile dans la hauteur du header. */
.wp-site-blocks > header.wp-block-template-part:first-child {
	position: sticky;
	top: 0;
	z-index: 100;
}
.admin-bar .wp-site-blocks > header.wp-block-template-part:first-child { top: 32px; }
@media (max-width: 782px) { .admin-bar .wp-site-blocks > header.wp-block-template-part:first-child { top: 46px; } }
@media (max-width: 600px) { .admin-bar .wp-site-blocks > header.wp-block-template-part:first-child { top: 0; } }

.abg-header {
	position: relative;
	border-bottom: 3px solid var(--wp--preset--color--secondary);
	transition: padding .3s ease, box-shadow .3s ease;
}
.abg-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: color-mix(in srgb, var(--wp--preset--color--base) 94%, transparent);
	-webkit-backdrop-filter: saturate(160%) blur(10px);
	backdrop-filter: saturate(160%) blur(10px);
}
.abg-site-logo img {
	height: 84px !important;
	width: auto !important;
	transition: height .3s ease;
}
.abg-scrolled .abg-header { padding-top: 6px !important; padding-bottom: 6px !important; box-shadow: 0 8px 24px -16px rgba(11, 42, 107, .45); }
.abg-scrolled .abg-site-logo img { height: 54px !important; }
@media (max-width: 600px) {
	.abg-site-logo img { height: 56px !important; }
	.abg-scrolled .abg-site-logo img { height: 44px !important; }
	.abg-header .abg-header-cta .wp-block-button__link { padding: .5rem .85rem; font-size: .85rem; }
}

/* ---------- Hero de l'accueil : photos en fond ---------- */
.abg-hero--home {
	min-height: min(88vh, 760px);
	display: flex;
	flex-direction: column;
	justify-content: center;
	isolation: isolate;
}
.abg-hero--home > .abg-hero-content { width: 100%; box-sizing: border-box; }
.abg-home-title { font-size: clamp(2.8rem, 6.5vw, 5.4rem) !important; line-height: .98 !important; }
.abg-hero--home .abg-lead { font-size: clamp(1.15rem, 2vw, 1.45rem) !important; }

/* Dans l'éditeur, les photos restent en ligne pour pouvoir les remplacer facilement. */
.editor-styles-wrapper .abg-hero--home .abg-hero-bg { gap: 8px; margin-bottom: 1.5rem; }
.editor-styles-wrapper .abg-hero--home .abg-hero-bg .wp-block-image { flex: 1 1 0; margin: 0; }
.editor-styles-wrapper .abg-hero--home .abg-hero-bg img { height: 160px; width: 100%; object-fit: cover; border-radius: 8px; }

/* Entrée du texte du hero au chargement */
.abg-hero .abg-hero-content > *,
.abg-page-hero .wp-block-group.alignwide > *,
.abg-page-hero .wp-block-column > * {
	animation: abg-fade-up .9s cubic-bezier(.2,.7,.2,1) both;
}
.abg-hero .abg-hero-content > :nth-child(2), .abg-page-hero .wp-block-group.alignwide > :nth-child(2), .abg-page-hero .wp-block-column > :nth-child(2) { animation-delay: .12s; }
.abg-hero .abg-hero-content > :nth-child(3), .abg-page-hero .wp-block-group.alignwide > :nth-child(3), .abg-page-hero .wp-block-column > :nth-child(3) { animation-delay: .24s; }
.abg-hero .abg-hero-content > :nth-child(4), .abg-page-hero .wp-block-group.alignwide > :nth-child(4), .abg-page-hero .wp-block-column > :nth-child(4) { animation-delay: .36s; }
@keyframes abg-fade-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.editor-styles-wrapper .abg-hero *, .editor-styles-wrapper .abg-page-hero * { animation: none !important; }

/* ---------- Apparition au scroll ---------- */
.abg-reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
	will-change: opacity, transform;
}
.abg-reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Footer : logo bleu dans un cercle blanc ---------- */
.abg-footer-logo {
	width: 156px;
	height: 156px;
	border-radius: 50%;
	background: #fff;
	display: flex !important;
	align-items: center;
	justify-content: center;
	box-shadow: 0 18px 40px -18px rgba(0,0,0,.5);
	margin-bottom: 1.5rem !important;
}
.abg-footer-logo a { display: block; line-height: 0; }
.abg-footer-logo img { width: 118px !important; height: auto !important; }

/* ---------- Réduire les animations (réglage d'accessibilité du visiteur) ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.abg-reveal { opacity: 1; transform: none; }
}


/* =========================================================
   v3.2 — header transparent, hero photo plein cadre, menu mobile, design modernisé
   ========================================================= */
:root {
	--abg-navy: #0B2A6B;
	--abg-navy-deep: #071A45;
	--abg-sky: #1D4FC4;
	--abg-sky-soft: #E6EEFB;
	--abg-gold: #E3A21A;
	--abg-line: #E4E9F2;
	--abg-shadow: 0 1px 2px rgba(11, 42, 107, .05), 0 12px 32px -16px rgba(11, 42, 107, .22);
	--abg-hh: 100px;
}
@media (max-width: 600px) { :root { --abg-hh: 72px; } }

/* ---------- Header sur les pages qui commencent par un hero ----------
   Il flotte au-dessus du hero (même fond que lui), puis devient blanc au scroll. */
.abg-header { border-bottom: 1px solid var(--abg-line); }
.abg-logos { position: relative; line-height: 0; }
.abg-logo-light { display: none; margin: 0 !important; }
.abg-logo-light img { height: 84px; width: auto; transition: height .3s ease; }
.abg-scrolled .abg-logo-light img { height: 54px; }
@media (max-width: 600px) { .abg-logo-light img { height: 56px; } .abg-scrolled .abg-logo-light img { height: 44px; } }

body:has(.wp-block-post-content > .abg-hero:first-child) .wp-site-blocks > header.wp-block-template-part:first-child {
	position: fixed;
	left: 0; right: 0; top: 0;
}
.admin-bar:has(.wp-block-post-content > .abg-hero:first-child) .wp-site-blocks > header.wp-block-template-part:first-child { top: 32px; }
@media (max-width: 782px) { .admin-bar:has(.wp-block-post-content > .abg-hero:first-child) .wp-site-blocks > header.wp-block-template-part:first-child { top: 46px; } }
body:has(.wp-block-post-content > .abg-hero:first-child) .wp-block-post-content > .abg-hero:first-child {
	padding-top: calc(var(--abg-hh) + var(--wp--preset--spacing--70)) !important;
}
/* État transparent (en haut de page, menu fermé) */
html:not(.abg-scrolled):not(.abg-menu-open) body:has(.wp-block-post-content > .abg-hero:first-child) .abg-header {
	border-bottom-color: transparent;
	box-shadow: none;
}
html:not(.abg-scrolled):not(.abg-menu-open) body:has(.wp-block-post-content > .abg-hero:first-child) .abg-header::before {
	background: linear-gradient(180deg, rgba(4, 14, 38, .55) 0%, rgba(4, 14, 38, 0) 100%);
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}
html:not(.abg-scrolled):not(.abg-menu-open) body:has(.wp-block-post-content > .abg-hero:first-child) .abg-site-logo { display: none; }
html:not(.abg-scrolled):not(.abg-menu-open) body:has(.wp-block-post-content > .abg-hero:first-child) .abg-logo-light { display: block; }
html:not(.abg-scrolled):not(.abg-menu-open) body:has(.wp-block-post-content > .abg-hero:first-child) .abg-header .wp-block-navigation-item__content { color: #fff !important; }
html:not(.abg-scrolled):not(.abg-menu-open) body:has(.wp-block-post-content > .abg-hero:first-child) .abg-burger span { background: #fff; }
.abg-header .wp-block-navigation-item__content { position: relative; transition: color .25s ease; }
.abg-header .wp-block-navigation-item:not(.abg-nav-cta) .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: -6px;
	height: 2px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .25s ease;
}
.abg-header .wp-block-navigation-item:not(.abg-nav-cta) .wp-block-navigation-item__content:hover::after { transform: scaleX(1); }
.abg-header .wp-block-navigation a:hover { color: inherit; }
.abg-header .wp-block-navigation-item.abg-nav-cta { display: none; }

/* ---------- Menu mobile (bouton + panneau créés par le thème) ---------- */
/* v3.6.1 : menu hamburger jusqu'à 899 px (auparavant 781 px) — le menu ordinateur passait sur deux lignes entre 782 et 837 px et restait serré contre le logo jusqu'à ~900 px. */
.abg-burger { display: none; }
.abg-mpanel, .abg-mbackdrop { display: none; }
@media (max-width: 899px) {
	html.abg-js .abg-header .wp-block-navigation { display: none !important; }
	.abg-burger {
		display: inline-flex;
		flex-direction: column;
		justify-content: center;
		gap: 5px;
		width: 44px; height: 44px;
		padding: 0 10px;
		margin: 0;
		border: 0;
		border-radius: 12px;
		background: transparent;
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
	}
	.abg-burger span { display: block; height: 2.5px; border-radius: 2px; background: var(--abg-navy); transition: transform .3s ease, opacity .2s ease, background .25s ease; }
	html.abg-menu-open .abg-burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
	html.abg-menu-open .abg-burger span:nth-child(2) { opacity: 0; }
	html.abg-menu-open .abg-burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

	.abg-mbackdrop {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 98;
		background: rgba(4, 14, 38, .5);
		opacity: 0;
		visibility: hidden;
		transition: opacity .3s ease, visibility .3s;
	}
	.abg-mpanel {
		display: block;
		position: fixed;
		top: var(--abg-header-h, 72px);
		left: 0; right: 0;
		z-index: 99;
		max-height: calc(100dvh - var(--abg-header-h, 72px));
		overflow-y: auto;
		background: #fff;
		border-top: 1px solid var(--abg-line);
		border-radius: 0 0 22px 22px;
		box-shadow: 0 24px 48px -20px rgba(4, 14, 38, .45);
		padding: .5rem 1.5rem 1.5rem;
		transform: translateY(-12px);
		opacity: 0;
		visibility: hidden;
		transition: transform .35s cubic-bezier(.2,.7,.2,1), opacity .25s ease, visibility .35s;
	}
	html.abg-menu-open { overflow: hidden; }
	html.abg-menu-open .abg-mbackdrop { opacity: 1; visibility: visible; }
	html.abg-menu-open .abg-mpanel { transform: none; opacity: 1; visibility: visible; }
	html.abg-menu-open .abg-whatsapp-float { display: none; }
	.abg-mpanel ul { list-style: none; margin: 0; padding: 0; }
	.abg-mpanel li { border-bottom: 1px solid var(--abg-line); }
	.abg-mpanel a {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 1rem .15rem;
		color: var(--abg-navy);
		text-decoration: none;
		font-family: var(--wp--preset--font-family--barlow-condensed);
		font-weight: 700;
		font-size: 1.4rem;
		text-transform: uppercase;
	}
	.abg-mpanel a::after { content: "→"; color: var(--abg-sky); font-family: var(--wp--preset--font-family--barlow); }
	.abg-mpanel a[aria-current="page"] { color: var(--abg-sky); }
	.abg-mpanel li.is-cta { border-bottom: 0; margin-top: 1.1rem; }
	.abg-mpanel li.is-cta a {
		justify-content: center;
		background: var(--abg-gold);
		border-radius: 999px;
		padding: .95rem 1.5rem;
		font-family: var(--wp--preset--font-family--barlow);
		font-size: 1.1rem;
		text-transform: none;
	}
	.abg-mpanel li.is-cta a::after { content: none; }
}

/* ---------- Hero de l'accueil : une photo plein cadre qui change toutes les 3 s ---------- */
.abg-hero--home {
	min-height: min(92vh, 820px);
	justify-content: center;
	text-align: center;
	background: var(--abg-navy-deep) !important;
}
.abg-hero--home::after { display: none; }
body:not(.editor-styles-wrapper) .abg-hero--home .abg-hero-bg {
	position: absolute !important;
	inset: 0;
	width: auto;
	height: auto;
	max-width: none !important;
	margin: 0 !important;
	z-index: 0;
	overflow: hidden;
	display: block !important;
	border: 0 !important;
}
body:not(.editor-styles-wrapper) .abg-hero--home .abg-hero-bg .wp-block-image {
	position: absolute !important;
	inset: 0;
	margin: 0 !important;
	opacity: 0;
	transition: opacity 1.2s ease;
}
body:not(.editor-styles-wrapper) .abg-hero--home .abg-hero-bg .wp-block-image:first-child,
body:not(.editor-styles-wrapper) .abg-hero--home .abg-hero-bg .wp-block-image.is-active { opacity: 1; }
body:not(.editor-styles-wrapper) .abg-hero--home .abg-hero-bg.is-playing .wp-block-image:not(.is-active) { opacity: 0; }
body:not(.editor-styles-wrapper) .abg-hero--home .abg-hero-bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 25%;
	display: block;
	transform: scale(1.06);
	transition: transform 7s ease-out;
}
body:not(.editor-styles-wrapper) .abg-hero--home .abg-hero-bg .is-active img { transform: scale(1); }
/* Assombrissement neutre (pas de filtre bleu), juste assez pour lire le texte */
body:not(.editor-styles-wrapper) .abg-hero--home .abg-hero-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.28) 45%, rgba(0,0,0,.5) 100%);
}
body:not(.editor-styles-wrapper) .abg-hero--home .abg-hero-content { position: relative; z-index: 2; }
.abg-hero--home .abg-hero-content > * { margin-left: auto !important; margin-right: auto !important; max-width: 900px; }
.abg-hero--home .abg-hero-content .wp-block-buttons { justify-content: center; }
.abg-hero--home .abg-home-title { text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.abg-hero--home .abg-lead { text-shadow: 0 1px 12px rgba(0,0,0,.4); color: #fff !important; opacity: 1; }
.abg-hero--home .abg-eyebrow { background: rgba(255,255,255,.14) !important; color: #fff !important; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@media (max-width: 781px) {
	.abg-hero--home { min-height: 86vh; justify-content: flex-end; padding-bottom: var(--wp--preset--spacing--60) !important; }
	body:not(.editor-styles-wrapper) .abg-hero--home .abg-hero-bg::after {
		background: linear-gradient(180deg, rgba(0,0,0,.30) 0%, rgba(0,0,0,.25) 35%, rgba(0,0,0,.72) 100%);
	}
	.abg-hero--home .wp-block-buttons { flex-direction: column; align-items: stretch; }
	.abg-hero--home .wp-block-button, .abg-hero--home .wp-block-button__link { width: 100%; text-align: center; }
}

/* ---------- Bandeaux bleus des autres pages : plus de profondeur ---------- */
.abg-page-hero {
	background:
		radial-gradient(1200px 500px at 85% -10%, rgba(59, 111, 222, .35), transparent 60%),
		linear-gradient(135deg, var(--abg-navy-deep) 0%, var(--abg-navy) 60%, #12398F 100%) !important;
}
.abg-page-hero::after { opacity: .7; }

/* =========================================================
   Design modernisé : l'or est réservé aux boutons « Demander un service »
   et à quelques mots clés ; bleu ciel en couleur d'appoint.
   ========================================================= */
/* Étiquettes */
.abg-eyebrow { background: var(--abg-sky-soft) !important; color: var(--abg-sky) !important; letter-spacing: .14em; }
.abg-dark .abg-eyebrow, .abg-page-hero .abg-eyebrow { background: rgba(255,255,255,.12) !important; color: #fff !important; }
/* Plus de trait doré sous les titres */
.abg-title-line::after { display: none; }

/* Boutons : bleu par défaut, or uniquement pour « Demander un service » */
.wp-block-button:not(.is-style-outline) > .wp-block-button__link {
	background: var(--abg-navy);
	color: #fff;
	transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover { background: var(--abg-sky); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 20px -10px rgba(29, 79, 196, .6); }
.wp-block-button:not(.is-style-outline) > .wp-block-button__link[href*="demander-un-service"],
.abg-header .abg-header-cta .wp-block-button__link {
	background: var(--abg-gold) !important;
	color: var(--abg-navy) !important;
}
.wp-block-button:not(.is-style-outline) > .wp-block-button__link[href*="demander-un-service"]:hover,
.abg-header .abg-header-cta .wp-block-button__link:hover { background: #F0B53A !important; box-shadow: 0 10px 20px -10px rgba(227, 162, 26, .7); }
.abg-dark .wp-block-button:not(.is-style-outline) > .wp-block-button__link:not([href*="demander-un-service"]) { background: #fff; color: var(--abg-navy); }
.abg-dark .wp-block-button.is-style-outline > .wp-block-button__link,
.abg-hero--home .wp-block-button.is-style-outline > .wp-block-button__link { color: #fff !important; border-color: rgba(255,255,255,.75) !important; background: rgba(255,255,255,.04) !important; }
.abg-dark .wp-block-button.is-style-outline > .wp-block-button__link:hover,
.abg-hero--home .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #fff !important; color: var(--abg-navy) !important; }

/* Cartes : ombre douce, plus d'arrondi */
.abg-card, .wp-block-group.is-style-card {
	border: 1px solid var(--abg-line);
	border-radius: 20px;
	box-shadow: var(--abg-shadow);
}
.abg-card:hover { border-color: #BFD1F5; box-shadow: 0 2px 4px rgba(11,42,107,.05), 0 22px 44px -18px rgba(11, 42, 107, .3); }
.abg-card--featured { border: 2px solid var(--abg-sky); }

/* Coches, numéros, flèches, FAQ : bleu au lieu de l'or */
.abg-checklist li::before { background: var(--abg-sky-soft); color: var(--abg-sky); }
.abg-dark .abg-checklist li::before { background: rgba(255,255,255,.14); color: #fff; }
.abg-num, .abg-steps .wp-block-column:nth-child(odd) .abg-num { background: var(--abg-navy); color: #fff; box-shadow: 0 0 0 6px var(--abg-sky-soft); }
.abg-linklist a::after, .abg-more a { color: var(--abg-sky); }
.wp-block-details summary::after { color: var(--abg-sky); }
.abg-chip-num { background: var(--abg-sky-soft); color: var(--abg-sky); }
.abg-dark .abg-chip-num { background: rgba(255,255,255,.16); color: #fff; }
.abg-pills li { background: var(--abg-sky-soft); border-color: transparent; color: var(--abg-navy); }

/* Photos : cadre sobre */
.abg-photo img { border: 0 !important; border-radius: 22px; box-shadow: 0 30px 60px -30px rgba(4, 14, 38, .6); }

/* Sections bleues : bleu nuit avec un léger halo */
.wp-block-group.alignfull.has-primary-background-color.abg-dark:not(.abg-footer) {
	background: radial-gradient(900px 420px at 10% 0%, rgba(59, 111, 222, .28), transparent 60%), var(--abg-navy-deep) !important;
}

/* Bandeau d'appel à l'action : bleu (l'or reste sur le bouton) */
.abg-rounded.has-secondary-background-color {
	background: radial-gradient(700px 300px at 90% 0%, rgba(59, 111, 222, .45), transparent 60%), linear-gradient(135deg, var(--abg-navy-deep), var(--abg-navy)) !important;
	border-radius: 28px;
}
.abg-rounded.has-secondary-background-color :where(h2, h3, p) { color: #fff !important; }
.abg-rounded.has-secondary-background-color .wp-block-button.is-style-outline > .wp-block-button__link { color: #fff !important; border-color: rgba(255,255,255,.7) !important; }
.abg-rounded.has-secondary-background-color .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #fff !important; color: var(--abg-navy) !important; }
.abg-rounded.has-secondary-background-color .wp-block-button:not(.is-style-outline) > .wp-block-button__link:not([href*="demander-un-service"]) { background: #fff !important; color: var(--abg-navy) !important; }

/* Footer : bleu nuit, plus d'or en bordure */
.abg-footer { background: var(--abg-navy-deep) !important; border-top: 0 !important; }
.abg-footer h4 { color: rgba(255,255,255,.55) !important; }
@media (max-width: 600px) { .abg-header .abg-header-cta { display: none !important; } }

/* Logo moins collé au haut de l'écran */
.abg-header { padding-top: 18px !important; padding-bottom: 14px !important; }
.abg-scrolled .abg-header { padding-top: 8px !important; padding-bottom: 8px !important; }
@media (max-width: 600px) {
	.abg-header { padding-top: 14px !important; padding-bottom: 10px !important; }
	.abg-scrolled .abg-header { padding-top: 6px !important; padding-bottom: 6px !important; }
}
:root { --abg-hh: 118px; }
@media (max-width: 600px) { :root { --abg-hh: 82px; } }

/* FAQ sur fond bleu (réglage Blocky) */
.abg-dark .wp-block-details { border-bottom-color: rgba(255,255,255,.18); }
.abg-dark .wp-block-details summary::after { color: #fff; }
.abg-dark .wp-block-details > :not(summary) { color: rgba(255,255,255,.8); }

/* Éditeur (tous modes) : tailles d'icônes fixes même dans le cadre redimensionnable de WordPress */
.abg-icon .components-resizable-box__container { width: 76px !important; height: 76px !important; max-width: 100%; }
.abg-icon-sm .components-resizable-box__container { width: 44px !important; height: 44px !important; }
.abg-icon-xl .components-resizable-box__container { width: 180px !important; height: 180px !important; }
.abg-small-cards .abg-icon .components-resizable-box__container { width: 60px !important; height: 60px !important; }
.abg-icon .components-resizable-box__container img { width: 100% !important; height: 100% !important; }

/* =========================================================
   Réseaux sociaux
   ========================================================= */
.abg-social__list { display: flex; flex-wrap: wrap; gap: 10px; }
.abg-social__link {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	width: 42px; height: 42px; border-radius: 50%;
	text-decoration: none !important;
	transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}
.abg-social__link:hover { transform: translateY(-2px); }
/* Footer : cercles translucides */
.abg-social--footer { margin-top: 1rem; }
.abg-social--footer .abg-social__link { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff !important; }
.abg-social--footer .abg-social__link:hover { background: #fff; color: var(--abg-navy, #0B2A6B) !important; border-color: #fff; }
/* Page Contact : pastilles avec le nom */
.abg-social-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: var(--wp--preset--spacing--40) !important; }
.abg-social-card > * { margin: 0 !important; }
.abg-social--card .abg-social__link {
	width: auto; height: auto; border-radius: 999px; padding: .7rem 1.2rem .7rem 1rem;
	background: var(--abg-sky-soft, #E6EEFB); color: var(--abg-navy, #0B2A6B) !important; font-weight: 700;
	border: 1px solid transparent;
}
.abg-social--card .abg-social__link:hover { background: var(--abg-navy, #0B2A6B); color: #fff !important; }
/* Menu mobile */
.abg-social--mobile { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--abg-line, #E4E9F2); display: flex; justify-content: center; }
.abg-mpanel .abg-social--mobile a { width: 44px; height: 44px; padding: 0; border-radius: 50%; background: var(--abg-sky-soft, #E6EEFB); color: var(--abg-navy, #0B2A6B); justify-content: center; font-size: 0; }
.abg-mpanel .abg-social--mobile a::after { content: none !important; }
.abg-mpanel .abg-social--mobile ul { display: none; }

/* ---------- v3.6 : offre à 13 services ---------- */
/* Rangées de cartes centrées (pas de carte isolée à gauche sur la dernière ligne) */
.wp-block-columns.abg-row-center { justify-content: center; }
@media (min-width: 782px) {
	.wp-block-columns.abg-row-center > .wp-block-column { flex-grow: 0 !important; flex-basis: calc((100% - 2 * var(--wp--preset--spacing--40)) / 3) !important; }
}
/* Section « En cours de structuration » : sobre et distincte des services disponibles */
.abg-soon h3 { font-size: 1.15rem; }
.abg-soon .abg-soon-group { margin: 1rem 0 .15rem; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--wp--preset--color--muted); }
.abg-soon .abg-soon-group + .abg-soon-list { margin-top: 0; }
.abg-soon .abg-soon-status { margin-top: 1.1rem; color: var(--wp--preset--color--muted); }


/* =========================================================
   v3.6.1 — header et footer
   Bloc autonome : il complète les règles précédentes sans les modifier.
   Couleurs : uniquement les couleurs existantes du thème.
   ========================================================= */

/* ---------- Header : logo un peu plus grand une fois la page défilée ---------- */
.abg-scrolled .abg-header { padding-top: 5px !important; padding-bottom: 5px !important; }
.abg-scrolled .abg-site-logo img,
.abg-scrolled .abg-logo-light img { height: 64px !important; }
@media (max-width: 600px) {
	.abg-header { padding-top: 12px !important; padding-bottom: 8px !important; }
	.abg-site-logo img,
	.abg-logo-light img { height: 60px !important; }
	.abg-scrolled .abg-header { padding-top: 3px !important; padding-bottom: 3px !important; }
	.abg-scrolled .abg-site-logo img,
	.abg-scrolled .abg-logo-light img { height: 50px !important; }
}

/* ---------- Footer : logo bleu/or dans un cercle blanc (présentation des supports de marque ABG) ---------- */
.abg-footer .abg-footer-logo {
	width: 124px !important;
	height: 124px !important;
	border-radius: 50% !important;
	background: #fff !important;
	box-shadow: none !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	margin: 0 0 1.25rem !important;
}
.abg-footer .abg-footer-logo img { width: 96px !important; height: auto !important; }

/* ---------- Footer : colonnes ---------- */
.abg-footer .abg-footer-cols {
	display: grid !important;
	grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--50);
}
.abg-footer .abg-footer-cols > .wp-block-column { flex-basis: auto !important; width: auto !important; margin: 0 !important; }
.abg-footer .abg-footer-id > * { margin-block: 0 0 1rem; }
.abg-footer .abg-footer-id > :last-child { margin-bottom: 0; }
.abg-footer .abg-footer-links { margin-bottom: 0; }
.abg-footer .abg-footer-nav h4 { margin-top: 0; }

@media (max-width: 1023px) {
	.abg-footer .abg-footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.abg-footer .abg-footer-id { grid-column: 1 / -1; }
}
/* Mobile : colonnes empilées (testé à 390 et 360 px : côte à côte, « Demander un service » passait sur deux lignes) */
@media (max-width: 600px) {
	.abg-footer .abg-footer-cols { grid-template-columns: minmax(0, 1fr); }
	.abg-footer .abg-footer-logo { width: 112px !important; height: 112px !important; }
	.abg-footer .abg-footer-logo img { width: 86px !important; }
}

/* ---------- Footer : « Suivez ABG SERVICES » ---------- */
.abg-footer-social { margin-top: var(--wp--preset--spacing--50) !important; }
.abg-footer-social .abg-social--footer { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin: 0; }
.abg-footer-social .abg-social__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--barlow-condensed);
	font-weight: 700;
	font-size: 1rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--secondary) !important;
}
.abg-footer-social .abg-social__link { width: 40px; height: 40px; }
.abg-social--mobile .abg-social__title { display: none; }

/* Page Contact : bloc « Suivez ABG SERVICES » masqué tant qu'aucun réseau n'a d'URL */
.abg-social-card:not(:has(.abg-social__link)) { display: none !important; }

/* ---------- Footer : bas de page ---------- */
.abg-footer-bottom > * { margin: 0 !important; }
.abg-footer-bottom .abg-footer-copy { color: rgba(255,255,255,.85) !important; }
.abg-footer-bottom .abg-footer-legal { margin-top: .4rem !important; font-size: .8rem; line-height: 1.7; }
.abg-footer-legal span + span::before { content: "·"; margin: 0 .5em; opacity: .6; }
.abg-footer-legal a { color: inherit !important; }
.abg-footer-legal a:hover { color: var(--wp--preset--color--secondary) !important; }
@media (max-width: 600px) {
	/* Une information par ligne */
	.abg-footer-legal span { display: block; }
	.abg-footer-legal span + span::before { content: none; }
}

/* ---------- Footer : dégagement du bouton WhatsApp flottant ----------
   Aucune marge ajoutée. Ordinateur et tablette : le bas de page s'arrête avant le bouton.
   Mobile : une information légale par ligne (voir plus haut), lignes courtes à gauche du bouton. */
@media (min-width: 601px) {
	.abg-footer-bottom { padding-right: max(0px, min(170px, calc(190px - (100vw - 1200px) / 2))) !important; }
}


/* =========================================================
   Heroes photographiques : Entreprises, Services, Particuliers, À propos
   Une photo sous un voile bleu ABG, uniquement sur ces quatre pages.
   Ciblage : classe « abg-page-<clé> » ajoutée au <body> par le thème
   (inc/helpers.php, abg_hero_body_class) à partir de l'étiquette _abg_key
   de la page. Sans cette classe, la page garde le hero bleu standard.
   Les photos du contenu (vignette, mosaïques) restent dans WordPress ;
   elles sont seulement masquées à l'affichage.
   ========================================================= */

/* Entreprises */
.abg-page-entreprises .abg-page-hero {
	background:
		/* haut assombri : lisibilité du header transparent */
		linear-gradient(180deg, rgba(7, 26, 69, .55) 0%, rgba(7, 26, 69, 0) 28%),
		/* voile ABG : fort sous le texte, plus léger à droite */
		linear-gradient(90deg, rgba(7, 26, 69, .94) 0%, rgba(7, 26, 69, .90) 38%, rgba(11, 42, 107, .76) 62%, rgba(11, 42, 107, .59) 100%),
		url("assets/images/hero-entreprises.webp") 0% 50% / cover no-repeat,
		var(--abg-navy-deep) !important;
}
/* Photo de droite : invisible mais sa place est gardée, pour que les textes ne bougent pas */
.abg-page-entreprises .abg-page-hero .abg-photo--hero { visibility: hidden; }
/* Colonnes empilées (mobile) : colonne retirée pour ne pas laisser de vide sous les boutons */
@media (max-width: 781px) {
	.abg-page-entreprises .abg-page-hero .wp-block-column:has(> .abg-photo--hero) { display: none; }
}

@media (max-width: 1100px) {
	.abg-page-entreprises .abg-page-hero {
		background:
			linear-gradient(180deg, rgba(7, 26, 69, .55) 0%, rgba(7, 26, 69, 0) 28%),
			linear-gradient(90deg, rgba(7, 26, 69, .94) 0%, rgba(7, 26, 69, .90) 45%, rgba(11, 42, 107, .78) 70%, rgba(11, 42, 107, .68) 100%),
			url("assets/images/hero-entreprises.webp") 22% 50% / cover no-repeat,
			var(--abg-navy-deep) !important;
	}
}
/* Mobile : lisibilité prioritaire, photo très atténuée */
@media (max-width: 600px) {
	.abg-page-entreprises .abg-page-hero {
		background:
			linear-gradient(180deg, rgba(7, 26, 69, .92) 0%, rgba(11, 42, 107, .88) 100%),
			url("assets/images/hero-entreprises-mobile.webp") 50% 50% / cover no-repeat,
			var(--abg-navy-deep) !important;
	}
}


/* services */
.abg-page-services .abg-page-hero {
	background:
		linear-gradient(180deg, rgba(7, 26, 69, .55) 0%, rgba(7, 26, 69, 0) 28%),
		linear-gradient(90deg, rgba(7, 26, 69, .94) 0%, rgba(7, 26, 69, .90) 50%, rgba(9.73, 36.91, 94.91, .8045) 65%, rgba(11, 42, 107, .68) 80%, rgba(11, 42, 107, .52) 100%),
		url("assets/images/hero-services.webp") 0% 50% / cover no-repeat,
		var(--abg-navy-deep) !important;
}
@media (max-width: 1100px) {
	.abg-page-services .abg-page-hero {
		background:
		linear-gradient(180deg, rgba(7, 26, 69, .55) 0%, rgba(7, 26, 69, 0) 28%),
		linear-gradient(90deg, rgba(7, 26, 69, .94) 0%, rgba(7, 26, 69, .90) 60%, rgba(11, 42, 107, .82) 85%, rgba(11, 42, 107, .74) 100%),
		url("assets/images/hero-services.webp") 0% 50% / cover no-repeat,
		var(--abg-navy-deep) !important;
	}
}
@media (max-width: 600px) {
	.abg-page-services .abg-page-hero {
		background:
		linear-gradient(180deg, rgba(7, 26, 69, .92) 0%, rgba(11, 42, 107, .88) 100%),
		url("assets/images/hero-services-mobile.webp") 50% 50% / cover no-repeat,
		var(--abg-navy-deep) !important;
	}
}

/* particuliers */
.abg-page-particuliers .abg-page-hero {
	background:
		linear-gradient(180deg, rgba(7, 26, 69, .55) 0%, rgba(7, 26, 69, 0) 28%),
		linear-gradient(90deg, rgba(7, 26, 69, .94) 0%, rgba(7, 26, 69, .90) 38%, rgba(11, 42, 107, .76) 62%, rgba(11, 42, 107, .59) 100%),
		url("assets/images/hero-particuliers.webp") 55% 50% / cover no-repeat,
		var(--abg-navy-deep) !important;
}
@media (max-width: 1100px) {
	.abg-page-particuliers .abg-page-hero {
		background:
		linear-gradient(180deg, rgba(7, 26, 69, .55) 0%, rgba(7, 26, 69, 0) 28%),
		linear-gradient(90deg, rgba(7, 26, 69, .94) 0%, rgba(7, 26, 69, .90) 45%, rgba(11, 42, 107, .78) 70%, rgba(11, 42, 107, .68) 100%),
		url("assets/images/hero-particuliers.webp") 60% 50% / cover no-repeat,
		var(--abg-navy-deep) !important;
	}
}
@media (max-width: 600px) {
	.abg-page-particuliers .abg-page-hero {
		background:
		linear-gradient(180deg, rgba(7, 26, 69, .92) 0%, rgba(11, 42, 107, .88) 100%),
		url("assets/images/hero-particuliers-mobile.webp") 50% 50% / cover no-repeat,
		var(--abg-navy-deep) !important;
	}
}
.abg-page-particuliers .abg-page-hero .abg-photos { visibility: hidden; }
@media (max-width: 781px) {
	.abg-page-particuliers .abg-page-hero .wp-block-column:has(> .abg-photos) { display: none; }
}

/* a-propos */
.abg-page-a-propos .abg-page-hero {
	background:
		linear-gradient(180deg, rgba(7, 26, 69, .55) 0%, rgba(7, 26, 69, 0) 28%),
		linear-gradient(90deg, rgba(7, 26, 69, .94) 0%, rgba(7, 26, 69, .90) 38%, rgba(11, 42, 107, .76) 62%, rgba(11, 42, 107, .59) 100%),
		url("assets/images/hero-a-propos.webp") 10% 50% / cover no-repeat,
		var(--abg-navy-deep) !important;
}
@media (max-width: 1100px) {
	.abg-page-a-propos .abg-page-hero {
		background:
		linear-gradient(180deg, rgba(7, 26, 69, .55) 0%, rgba(7, 26, 69, 0) 28%),
		linear-gradient(90deg, rgba(7, 26, 69, .94) 0%, rgba(7, 26, 69, .90) 45%, rgba(11, 42, 107, .78) 70%, rgba(11, 42, 107, .68) 100%),
		url("assets/images/hero-a-propos.webp") 0% 50% / cover no-repeat,
		var(--abg-navy-deep) !important;
	}
}
@media (max-width: 600px) {
	.abg-page-a-propos .abg-page-hero {
		background:
		linear-gradient(180deg, rgba(7, 26, 69, .92) 0%, rgba(11, 42, 107, .88) 100%),
		url("assets/images/hero-a-propos-mobile.webp") 50% 50% / cover no-repeat,
		var(--abg-navy-deep) !important;
	}
}
.abg-page-a-propos .abg-page-hero .abg-photos { visibility: hidden; }
@media (max-width: 781px) {
	.abg-page-a-propos .abg-page-hero .wp-block-column:has(> .abg-photos) { display: none; }
}
