/* Acti Ferm : styles des sections. Les couleurs et polices viennent de theme.json. */
:root {
	--af-red: var(--wp--preset--color--rouge, #c41e2c);
	--af-blue: var(--wp--preset--color--bleu, #1f5f9e);
	--af-steel: var(--wp--preset--color--anthracite, #2a3038);
	--af-ink: var(--wp--preset--color--encre, #1d2229);
	--af-muted: var(--wp--preset--color--gris, #5a6370);
	--af-bg: var(--wp--preset--color--fond, #f5f6f8);
	--af-blue-soft: var(--wp--preset--color--bleu-clair, #e6eef7);
	--af-line: #dde1e7;
	--af-display: var(--wp--preset--font-family--titres, "Barlow Condensed", Arial, sans-serif);
	--af-gutter-l: max(16px, env(safe-area-inset-left, 0px));
	--af-gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--af-bg); }
.wp-site-blocks { padding-top: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.af-main > * + * , .af-main { margin-block-start: 0; }
section[id] { scroll-margin-top: 90px; }
:focus-visible { outline: 3px solid var(--af-blue); outline-offset: 3px; }

/* Petits libellés */
.af-eyebrow {
	font-family: ui-monospace, Menlo, Consolas, monospace;
	font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
	color: var(--af-red); font-weight: 600; margin-bottom: .2rem !important;
}
.af-intro, .af-lead { color: var(--af-muted); }
.af-hero .af-lead { max-width: 56ch; }

/* Bandeau du haut */
.af-topbar { background: var(--af-steel); color: #f1f3f6; font-size: .9rem; padding-block: 8px; }
.af-topbar p { margin: 0; text-align: center; }
.af-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #2fc25b; margin-right: 8px; vertical-align: middle; box-shadow: 0 0 0 0 rgba(47,194,91,.6); animation: af-pulse 2s infinite; }
@keyframes af-pulse { 70% { box-shadow: 0 0 0 8px rgba(47,194,91,0); } 100% { box-shadow: 0 0 0 0 rgba(47,194,91,0); } }
@media (prefers-reduced-motion: reduce) { .af-dot { animation: none; } }

/* En-tête */
.af-header { background: #fff; border-bottom: 1px solid var(--af-line); padding-block: 8px; position: sticky; top: 0; z-index: 50; }
.admin-bar .af-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .af-header { top: 46px; } }
.af-header-row { gap: 16px; }
.af-header-actions { gap: 18px; }
.af-logo { margin: 0 !important; }
.af-logo img { display: block; height: auto; }
.af-nav { font-weight: 600; gap: 22px; }
.af-nav a { color: var(--af-ink); text-decoration: none; }
.af-nav a:hover { color: var(--af-red); }
.af-head-call .wp-block-button__link { font-size: 1.1rem; padding: 10px 16px; }
@media (max-width: 599px) {
	.af-head-call .wp-block-button__link { font-size: 1rem; padding: 9px 12px; }
	.af-topbar { font-size: .82rem; }
}

/* Héros */
.af-hero {
	background: var(--af-steel) url(../images/hero.jpg) center / cover no-repeat;
	color: #f1f3f6; padding-block: clamp(44px, 7vw, 88px);
}
.af-hero h1 { color: #fff; margin-top: .3rem; }
.af-hero .af-mark { background: none; color: var(--af-red); }
.af-hero .af-lead { color: #c4ccd6; font-size: 1.12rem; }
.af-hero-ctas .wp-block-button__link { font-size: 1.35rem; padding: 14px 24px; }
.af-hero .is-style-outline .wp-block-button__link { color: #fff; border: 2px solid #fff; background: transparent; }
.af-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.4rem; }
.af-chips li { font-size: .88rem; font-weight: 600; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 5px 12px; }
.af-chips li::before { content: "✓"; color: #2fc25b; margin-right: 6px; font-weight: 700; }
@media (max-width: 599px) { .af-hero-ctas .wp-block-button { width: 100%; } .af-hero-ctas .wp-block-button__link { width: 100%; } }

/* Plaque d'urgence */
.af-plate {
	background: linear-gradient(160deg, #3a414b, #22272e);
	border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 26px;
	box-shadow: 0 20px 50px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.08);
	position: relative;
}
.af-plate::before, .af-plate::after { content: ""; position: absolute; top: 12px; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #c9ced6, #6b7380); }
.af-plate::before { left: 12px; } .af-plate::after { right: 12px; }
.af-plate-label { font-family: ui-monospace, Menlo, monospace; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: #a9b2bf; text-align: center; margin: 0; }
.af-plate-num { text-align: center; margin: .2rem 0 1rem; font-family: var(--af-display); font-weight: 800; font-size: clamp(2.1rem, 6vw, 3rem); letter-spacing: .04em; }
.af-plate-num a { color: #fff; text-decoration: none; }
.af-plate-grid { gap: 1px !important; background: rgba(255,255,255,.1); border-radius: 8px; overflow: hidden; margin: 0; }
.af-plate-grid .wp-block-column { display: grid; gap: 1px; }
.af-plate-grid p { background: #262b33; padding: 12px 14px; margin: 0; }
.af-plate-grid small { display: block; font-family: ui-monospace, Menlo, monospace; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: #a9b2bf; }
.af-plate-grid strong { font-family: var(--af-display); font-size: 1.3rem; color: #fff; }

/* Bandeau confiance */
.af-trust { background: #fff; border-bottom: 1px solid var(--af-line); }
.af-trust-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.af-trust-list li { padding: 20px 16px; border-right: 1px solid var(--af-line); font-size: .85rem; color: var(--af-muted); }
.af-trust-list li:last-child { border-right: 0; }
.af-trust-list strong { display: block; font-family: var(--af-display); font-size: 1.15rem; text-transform: uppercase; color: var(--af-ink); line-height: 1.1; }
.af-trust-list strong::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--af-blue); margin-right: 8px; vertical-align: 2px; }
@media (max-width: 600px) { .af-trust-list { grid-template-columns: 1fr 1fr; } .af-trust-list li { border-right: 0; border-bottom: 1px solid var(--af-line); } }

/* Sections */
.af-section { padding-block: clamp(52px, 8vw, 92px); }
.af-section-tight { padding-top: clamp(24px, 4vw, 40px); }
.af-section h2 { margin-top: 0; }

/* Prestations */
.af-domains { gap: 28px !important; margin-top: 2rem; }
.af-domain { background: #fff; border: 1px solid var(--af-line); border-radius: 12px; overflow: hidden; }
.af-domain-img { margin: 0 !important; }
.af-domain-img img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; display: block; }
.af-domain-title { margin: 0 !important; padding: 20px 26px; color: #fff; font-size: 1.9rem !important; }
.af-domain-title.af-lock { background: var(--af-blue); }
.af-domain-title.af-glass { background: linear-gradient(135deg, #2b6c8f, #3b8fb3); }
.af-checks { list-style: none; padding: 6px 26px 22px; margin: 0; }
.af-checks li { padding: 14px 0 14px 32px; border-bottom: 1px solid var(--af-line); color: var(--af-muted); font-size: .96rem; position: relative; }
.af-checks li:last-child { border-bottom: 0; }
.af-checks li::before { content: "✓"; position: absolute; left: 0; top: 13px; color: var(--af-red); font-weight: 800; font-size: 1.1rem; }
.af-checks strong { display: block; color: var(--af-ink); font-size: 1.05rem; }

/* Urgence */
.af-urgent { background: var(--af-red); color: #fff; padding-block: 34px; }
.af-urgent h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0; }
.af-urgent p { margin: .3rem 0 0; opacity: .92; }
.af-urgent-row { gap: 20px; align-items: center; }
.af-btn-white .wp-block-button__link { background: #fff !important; color: var(--af-red) !important; font-size: 1.4rem; }

/* Étapes */
.af-steps { counter-reset: af-step; gap: 20px !important; margin-top: 1.6rem; }
.af-step { counter-increment: af-step; background: #fff; border: 1px solid var(--af-line); border-radius: 10px; padding: 24px; }
.af-step::before { content: counter(af-step); font-family: var(--af-display); font-weight: 800; font-size: 2.4rem; line-height: 1; color: var(--af-blue); display: block; margin-bottom: 8px; }
.af-step h3 { margin: 0 0 6px; }
.af-step p { color: var(--af-muted); font-size: .97rem; margin: 0; }

/* Galerie */
.af-gallery { gap: 16px; margin-top: 1.6rem; }
.af-gallery .wp-block-image { margin: 0; position: relative; border-radius: 10px; overflow: hidden; background: var(--af-steel); }
.af-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .4s; }
.af-gallery .wp-block-image:hover img { transform: scale(1.04); }
.af-gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 28px 16px 12px; background: linear-gradient(transparent, rgba(10,12,15,.85)); color: #fff; text-align: left; font-family: var(--af-display); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .03em; }
@media (max-width: 599px) { .af-gallery { grid-template-columns: 1fr 1fr !important; gap: 10px; } .af-gallery figcaption { font-size: .9rem; padding: 20px 10px 8px; } }

/* Engagements */
.af-commit { background: var(--af-blue-soft); }
.af-commit-cols { gap: 36px !important; }
.af-since { font-family: var(--af-display); font-weight: 800; font-size: clamp(4rem, 12vw, 7rem); line-height: .9; color: var(--af-blue); margin: .2rem 0 !important; }
.af-commit-photo { margin-top: 1.6rem !important; }
.af-commit-photo img { border-radius: 12px; width: 100%; aspect-ratio: 7 / 5; object-fit: cover; }
.af-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.af-cards li { background: #fff; border-radius: 8px; padding: 16px 18px 16px 50px; position: relative; color: var(--af-muted); font-size: .95rem; }
.af-cards li::before { content: "✓"; position: absolute; left: 18px; top: 15px; color: var(--af-blue); font-weight: 800; font-size: 1.2rem; }
.af-cards strong { display: block; color: var(--af-ink); font-size: 1.02rem; }

/* Zones */
.af-zones { gap: 24px !important; margin-top: 1.6rem; }
.af-zone { background: #fff; border: 1px solid var(--af-line); border-radius: 12px; padding: 24px; }
.af-zone h3 { margin-top: 0; }
.af-zone-idf { margin-top: 24px; }
.af-towns, .af-depts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.af-towns li { border: 1px solid var(--af-line); border-radius: 6px; padding: 5px 11px; font-size: .93rem; }
.af-towns li strong { color: var(--af-red); }
.af-depts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.af-depts li { border: 1px solid var(--af-line); border-radius: 6px; padding: 8px 12px; font-weight: 600; }
.af-depts strong { font-family: ui-monospace, Menlo, monospace; font-size: .85rem; background: var(--af-blue); color: #fff; border-radius: 4px; padding: 2px 7px; margin-right: 8px; font-weight: 500; }
.af-note { color: var(--af-muted); font-size: .93rem; margin-top: 14px; }

/* FAQ */
.af-faq { background: #fff; border: 1px solid var(--af-line); border-radius: 10px; padding: 0 22px; margin-top: 12px !important; }
.af-faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.af-faq summary::-webkit-details-marker { display: none; }
.af-faq summary::after { content: "+"; font-family: var(--af-display); font-size: 1.6rem; line-height: 1; color: var(--af-red); }
.af-faq[open] summary::after { content: "–"; }
.af-faq p { color: var(--af-muted); padding-bottom: 18px; margin: 0; }

/* Contact */
.af-contact { background: var(--af-steel); color: #f1f3f6; }
.af-contact h2 { color: #fff; }
.af-contact p { color: #c4ccd6; }
.af-contact .is-style-outline .wp-block-button__link { color: #fff; border: 2px solid #fff; background: transparent; }
.af-contact-cols { gap: 40px !important; }
.af-coords { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.af-coords li { background: rgba(255,255,255,.06); border-radius: 10px; padding: 14px 18px; font-size: 1.12rem; font-weight: 700; word-break: break-word; }
.af-coords small { display: block; font-family: ui-monospace, Menlo, monospace; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #a9b2bf; font-weight: 500; }
.af-coords a { color: #fff; }

/* Pied de page */
.af-footer { background: #0b0d10; color: #b8c0cb; font-size: .9rem; padding-block: 44px 28px; }
.af-footer h4 { color: #fff; font-size: 1.1rem; margin: 0 0 10px; }
.af-footer a { color: #e3e7ec; }
.af-footer .af-logo img { background: #fff; border-radius: 8px; padding: 4px 8px; }
.af-legal { border-top: 1px solid #222830; padding-top: 18px; margin-top: 24px; font-size: .82rem; color: #7d8794; }

/* Barre d'appel mobile */
.af-callbar { display: none; }
@media (max-width: 859px) {
	body { padding-bottom: 64px; }
	.af-callbar {
		display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; margin: 0 !important;
		background: var(--af-red);
		padding: 10px var(--af-gutter-r) calc(10px + env(safe-area-inset-bottom, 0px)) var(--af-gutter-l);
	}
	.af-callbar p { margin: 0; text-align: center; }
	.af-callbar a { color: #fff; text-decoration: none; font-family: var(--af-display); font-weight: 800; font-size: 1.3rem; text-transform: uppercase; }
}

/* Pages intérieures */
.af-page { padding-block: 48px 72px; }

/* Éditeur : garder la barre d'appel visible sans la fixer */
.editor-styles-wrapper .af-callbar { display: block; position: static; background: var(--af-red); padding: 10px; }
.editor-styles-wrapper .af-header { position: static; }

/* v1.0.1 : menu « burger » jusqu'à 1100px pour éviter un menu sur deux lignes */
.af-head-call .wp-block-button__link { white-space: nowrap; }
.af-nav .wp-block-navigation__container { flex-wrap: nowrap; }
@media (max-width: 1099px) {
	.af-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.af-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
.af-nav .wp-block-navigation__responsive-container.is-menu-open { background: #fff; padding: 24px; }
.af-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-family: var(--af-display); font-size: 1.5rem; text-transform: uppercase; font-weight: 700; }
