/* Xtrafroid — styles complémentaires à theme.json */

:root {
	--xf-radius: 6px;
	--xf-shadow: 0 10px 30px rgba(10, 34, 56, 0.08);
	--xf-shadow-lg: 0 18px 50px rgba(10, 34, 56, 0.16);
	--xf-header-h: 84px;

	/* Icônes (traits 2px, 24x24), utilisées en masque CSS */
	--xf-i-clock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
	--xf-i-pin: url("../img/icons/ek-map-marker.svg");
	--xf-i-mail: url("../img/icons/ek-mail.svg");
	--xf-i-phone: url("../img/icons/ek-phone.svg");
	--xf-i-snow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v20M4.2 7l15.6 10M4.2 17 19.8 7M9 4l3 2 3-2M9 20l3-2 3 2M3 10l2.5 1.5L3 13M21 10l-2.5 1.5L21 13'/%3E%3C/svg%3E");
	--xf-i-heat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Ccircle cx='9' cy='12' r='4'/%3E%3Cpath d='M9 8v8M5 12h8M16 9h3M16 12h3M16 15h3'/%3E%3C/svg%3E");
	--xf-i-box: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='2' width='14' height='20' rx='2'/%3E%3Cpath d='M5 9h14M9 5v1M9 12v3'/%3E%3C/svg%3E");
	--xf-i-wrench: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0 5 5L21 13l-8 8-3-3 8-8-1.3-1.3a4 4 0 0 0-5-5L14 6z'/%3E%3Cpath d='M3 21l6-6'/%3E%3C/svg%3E");
	--xf-i-tools: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4l9.5 9.5'/%3E%3Cpath d='M12.6 14.4l1.8-1.8 5.4 5.4a1.27 1.27 0 0 1-1.8 1.8z'/%3E%3Cpath d='M13.4 5.6l5 5-2.8 2.8-5-5z'/%3E%3Cpath d='M13 11l-9 9'/%3E%3C/svg%3E");
	--xf-i-shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 4 6v6c0 5 3.5 8 8 9 4.5-1 8-4 8-9V6z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
	--xf-i-leaf: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19c0-9 6-14 15-14 0 9-5 15-14 15'/%3E%3Cpath d='M5 19 13 11'/%3E%3C/svg%3E");
	--xf-i-clipboard: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='4' width='14' height='18' rx='2'/%3E%3Cpath d='M9 2h6v4H9zM9 12h6M9 16h4'/%3E%3C/svg%3E");
	--xf-i-bolt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2 4 14h7l-1 8 9-12h-7z'/%3E%3C/svg%3E");
	--xf-i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E");
	--xf-i-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
}

html { scroll-padding-top: calc(var(--xf-header-h) + 1rem); }
body { -webkit-font-smoothing: antialiased; }
.xf-main > .wp-block-post-content { margin-top: 0; }
.xf-main > .wp-block-post-content > :first-child { margin-top: 0; }
.wp-site-blocks > footer { margin-top: 0; }

/* --- Icônes ----------------------------------------------------------- */
.xf-ico { display: inline-flex; align-items: center; gap: 0.5em; }
.xf-ico::before {
	content: ""; width: 1.1em; height: 1.1em; flex: none;
	background: currentColor; -webkit-mask: var(--xf-icon) center / contain no-repeat; mask: var(--xf-icon) center / contain no-repeat;
}
.xf-ico--clock { --xf-icon: var(--xf-i-clock); }
.xf-ico--pin { --xf-icon: var(--xf-i-pin); }
.xf-ico--mail { --xf-icon: var(--xf-i-mail); }
.xf-ico--phone { --xf-icon: var(--xf-i-phone); }

/* --- Barre du haut et en-tête ------------------------------------------ */
.xf-site-header { position: sticky; top: 0; z-index: 50; }
.admin-bar .xf-site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .xf-site-header { top: 0; } }

.xf-topbar p { margin: 0; opacity: 0.85; letter-spacing: 0.02em; }
.xf-topbar .xf-ico::before { color: var(--wp--preset--color--teal-light); }
.xf-topbar a { color: inherit; text-decoration: none; }
.xf-topbar a:hover { color: var(--wp--preset--color--teal-light); }
.xf-topbar .wp-block-group { column-gap: 1.75rem; row-gap: 0.25rem; }
.xf-push { margin-left: auto !important; }

.xf-header { box-shadow: 0 1px 0 var(--wp--preset--color--line), 0 6px 24px rgba(10, 34, 56, 0.06); }
.xf-header > .wp-block-group { gap: 1.5rem; }
.xf-logo { display: block; line-height: 0; }
.xf-logo img { height: 48px; width: auto; }

.xf-nav { flex: 1 1 auto; }
.xf-nav .wp-block-navigation__container { flex-wrap: nowrap; white-space: nowrap; }
.xf-nav a { color: var(--wp--preset--color--ink); text-decoration: none; }
.xf-nav .wp-block-navigation-item__content { padding: 0.35rem 0; position: relative; }
.xf-nav .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
	background: var(--wp--preset--color--teal); transform: scaleX(0); transition: transform 0.2s ease;
}
.xf-nav .wp-block-navigation-item__content:hover::after,
.xf-nav .current-menu-item > .wp-block-navigation-item__content::after { transform: scaleX(1); }
.xf-nav .wp-block-navigation__submenu-container {
	border: 1px solid var(--wp--preset--color--line) !important; border-radius: var(--xf-radius);
	box-shadow: var(--xf-shadow); padding: 0.5rem 0; min-width: 230px !important;
}
.xf-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 0.55rem 1.1rem; }
.xf-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content::after { display: none; }
.xf-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--teal); background: var(--wp--preset--color--mist); }

.xf-header__cta { gap: 1.25rem; }
.xf-callbox { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--wp--preset--color--ink); white-space: nowrap; }
.xf-callbox__icon {
	display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
	background: var(--wp--preset--color--mist); flex: none;
}
.xf-callbox__icon::before {
	content: ""; width: 20px; height: 20px; background: var(--wp--preset--color--teal);
	-webkit-mask: var(--xf-i-phone) center / contain no-repeat; mask: var(--xf-i-phone) center / contain no-repeat;
}
.xf-callbox__text { display: flex; flex-direction: column; line-height: 1.2; }
.xf-callbox__text small { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--wp--preset--color--muted); font-weight: 600; }
.xf-callbox__text strong { font-size: 1.05rem; font-weight: 800; }
.xf-callbox:hover strong { color: var(--wp--preset--color--teal); }

/* Bouton avec flèche */
.xf-btn-arrow .wp-block-button__link { display: inline-flex; align-items: center; gap: 0.6em; }
.xf-btn-arrow .wp-block-button__link::after {
	content: ""; width: 1em; height: 1em; background: currentColor; transition: transform 0.2s ease;
	-webkit-mask: var(--xf-i-arrow) center / contain no-repeat; mask: var(--xf-i-arrow) center / contain no-repeat;
}
.xf-btn-arrow .wp-block-button__link:hover::after { transform: translateX(3px); }
.wp-block-button__link { transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease; }

.wp-block-button.is-style-light .wp-block-button__link { background: #fff; color: var(--wp--preset--color--deep); }
.wp-block-button.is-style-light .wp-block-button__link:hover { background: var(--wp--preset--color--teal-light); color: var(--wp--preset--color--night); }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; border: 2px solid currentColor; color: inherit; padding: calc(0.95rem - 2px) calc(1.6rem - 2px); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: #fff; color: var(--wp--preset--color--night); border-color: #fff; }

.xf-header .wp-block-button__link { white-space: nowrap; }

/* Menu burger dès 1100px (le cœur de WordPress ne le propose qu'à 600px) */
@media (max-width: 1100px) {
	.xf-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.xf-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
	.xf-nav { margin-left: auto; }
}
@media (max-width: 900px) {
	.xf-hide-mobile { display: none !important; }
	.xf-logo img { height: 40px; }
	.xf-callbox__text { display: none; }
	.xf-header > .wp-block-group { gap: 0.75rem; }
	.xf-nav { order: 3; }
}

/* Menu mobile */
.xf-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 1.5rem; background: #fff;
}
.xf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1.1rem; padding: 0.5rem 0; }
.xf-nav .is-menu-open .wp-block-navigation__submenu-container { border: 0 !important; box-shadow: none; padding: 0; }

/* --- Titres de section -------------------------------------------------- */
.xf-eyebrow {
	font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
	color: var(--wp--preset--color--teal); margin-bottom: 0.5rem !important;
}
.has-night-background-color .xf-eyebrow,
.xf-hero .xf-eyebrow { color: var(--wp--preset--color--teal-light); }
.xf-section-title { position: relative; padding-bottom: 1rem; }
.xf-section-title::after {
	content: ""; position: absolute; bottom: 0; left: 0; width: 56px; height: 3px; background: var(--wp--preset--color--teal);
}
.xf-section-title.has-text-align-center::after { left: 50%; transform: translateX(-50%); }
.xf-lead { font-size: 1.125rem; color: var(--wp--preset--color--muted); }
.has-night-background-color .xf-lead,
.has-deep-background-color .xf-lead { color: rgba(255, 255, 255, 0.8); }

/* --- Héros (accueil) ---------------------------------------------------- */
.xf-hero.wp-block-cover { min-height: min(86vh, 760px) !important; align-items: center; }
.xf-hero .wp-block-cover__background {
	background: linear-gradient(100deg, rgba(10, 34, 56, 0.94) 0%, rgba(10, 34, 56, 0.78) 45%, rgba(0, 58, 99, 0.35) 100%) !important;
	opacity: 1 !important;
}
.xf-hero h1 { color: #fff; max-width: 15ch; }
/* Le contenu du héros suit la même largeur que le reste du site, aligné à gauche dedans */
.xf-hero .wp-block-cover__inner-container { width: 100%; max-width: var(--wp--style--global--wide-size, 1240px); margin-inline: auto; }
.xf-hero .wp-block-cover__inner-container > * { margin-left: 0 !important; }
.xf-hero h1 em { font-style: normal; color: var(--wp--preset--color--teal-light); }
.xf-hero .xf-lead { color: rgba(255, 255, 255, 0.85); max-width: 46ch; }
.xf-badges { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; list-style: none; padding: 0 !important; margin-top: 2rem !important; }
.xf-badges li { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #fff; }
.xf-badges li::before {
	content: ""; width: 18px; height: 18px; border-radius: 50%;
	background: var(--wp--preset--color--teal) var(--xf-check-bg) center / 12px no-repeat;
}
:root { --xf-check-bg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E"); }

/* --- Chiffres clés ------------------------------------------------------ */
.xf-stats { position: relative; z-index: 2; margin-top: calc(-1 * clamp(2.5rem, 5vw, 4rem)) !important; }
.xf-stats > .wp-block-columns {
	background: #fff; border-radius: var(--xf-radius); box-shadow: var(--xf-shadow-lg);
	padding: clamp(1.5rem, 3vw, 2.25rem); gap: 1rem !important; margin: 0;
}
.xf-stat { text-align: center; }
.xf-stat + .xf-stat { border-left: 1px solid var(--wp--preset--color--line); }
.xf-stat__num { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; color: var(--wp--preset--color--deep); line-height: 1.1; margin: 0 !important; }
.xf-stat__num span { color: var(--wp--preset--color--teal); }
.xf-stat__label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--wp--preset--color--muted); margin-top: 0.35rem !important; }
@media (max-width: 781px) {
	.xf-stats > .wp-block-columns { display: grid !important; grid-template-columns: 1fr 1fr; }
	.xf-stat + .xf-stat { border-left: 0; }
}

/* --- Cartes ------------------------------------------------------------- */
.xf-card, .wp-block-group.is-style-card {
	background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: var(--xf-radius);
	padding: clamp(1.5rem, 2.5vw, 2rem); height: 100%;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.xf-card:hover { transform: translateY(-4px); box-shadow: var(--xf-shadow-lg); border-color: transparent; }
.xf-card h3 { margin-top: 1.1rem; }
.xf-card ul { list-style: none; padding-left: 0 !important; }
.xf-card li { position: relative; padding-left: 1.1rem; font-size: 0.95rem; color: var(--wp--preset--color--muted); }
.xf-card li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 6px; height: 6px; border-radius: 50%; background: var(--wp--preset--color--teal); }
.xf-card .xf-more a { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; text-decoration: none; display: inline-flex; align-items: center; gap: 0.4em; }
.xf-card .xf-more a::after { content: ""; width: 1em; height: 1em; background: currentColor; -webkit-mask: var(--xf-i-arrow) center / contain no-repeat; mask: var(--xf-i-arrow) center / contain no-repeat; }
.xf-grid-cards > .wp-block-column { display: flex; }
.xf-grid-cards > .wp-block-column > .xf-card { flex: 1; }

.xf-card-icon {
	--xf-icon: var(--xf-i-snow);
	position: relative; display: block; width: 56px; height: 56px; border-radius: 12px; flex: none;
	background: var(--wp--preset--color--mist); margin: 0 !important; font-size: 0 !important; color: transparent; overflow: hidden;
}
/* Pictogramme centré en absolu : le libellé caché du paragraphe ne le décale plus */
.xf-card-icon::before {
	content: ""; position: absolute; inset: 0; margin: auto; width: 32px; height: 32px;
	background: var(--wp--preset--color--teal); -webkit-mask: var(--xf-icon) center / contain no-repeat; mask: var(--xf-icon) center / contain no-repeat;
}
.xf-card:hover .xf-card-icon { background: var(--wp--preset--color--teal); }
.xf-card:hover .xf-card-icon::before { background: #fff; }
/* Icônes reprises de l'ancien site : pack « climatisation » (PNG) et ElementsKit (SVG) */
.xf-icon-clim { --xf-icon: url("../img/icons/pk-clim.png"); }
.xf-icon-pac { --xf-icon: url("../img/icons/pk-pac.png"); }
.xf-icon-froid { --xf-icon: url("../img/icons/pk-froid.png"); }
.xf-icon-install { --xf-icon: url("../img/icons/pk-install.png"); }
.xf-icon-maintenance { --xf-icon: url("../img/icons/pk-maintenance.png"); }
.xf-icon-repair { --xf-icon: url("../img/icons/pk-repair.png"); }
.xf-icon-clean { --xf-icon: url("../img/icons/pk-clean.png"); }
.xf-icon-tools { --xf-icon: url("../img/icons/ek-tools.svg"); }
.xf-icon-engineer { --xf-icon: url("../img/icons/ek-engineer.svg"); }
.xf-icon-listing { --xf-icon: url("../img/icons/ek-listing.svg"); }
.xf-icon-leaf { --xf-icon: url("../img/icons/ek-leaf.svg"); }
.xf-icon-shield { --xf-icon: url("../img/icons/ek-shield.svg"); }
.xf-icon-flash { --xf-icon: url("../img/icons/ek-flash.svg"); }
.xf-icon-badge { --xf-icon: url("../img/icons/ek-badge.svg"); }

/* Atouts sur fond sombre */
.xf-why .xf-card { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.1); color: #fff; }
.xf-why .xf-card h3 { color: #fff; }
.xf-why .xf-card p { color: rgba(255, 255, 255, 0.75); font-size: 0.95rem; }
.xf-why .xf-card-icon { background: rgba(92, 195, 220, 0.12); }
.xf-why .xf-card-icon::before { background: var(--wp--preset--color--teal-light); }

/* Listes à coches */
.xf-checklist { list-style: none; padding-left: 0 !important; }
.xf-checklist li { position: relative; padding-left: 2rem; margin-bottom: 0.6rem; }
.xf-checklist li::before {
	content: ""; position: absolute; left: 0; top: 0.2em; width: 1.3rem; height: 1.3rem; border-radius: 50%;
	background: var(--wp--preset--color--teal) var(--xf-check-bg) center / 0.8rem no-repeat;
}

/* --- Marques (bandeau défilant) ----------------------------------------- */
.xf-marquee {
	overflow: hidden; padding: 0.5rem 0;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.xf-marquee__track { display: flex; width: max-content; animation: xf-marquee 40s linear infinite; }
.xf-marquee:hover .xf-marquee__track { animation-play-state: paused; }
.xf-marquee__list { display: flex; align-items: center; gap: clamp(2.5rem, 6vw, 5rem); list-style: none; margin: 0; padding: 0 clamp(1.25rem, 3vw, 2.5rem) 0 0 !important; }
.xf-marquee__list li { flex: none; }
.xf-marquee__list img {
	display: block; height: 42px; width: auto; max-width: 170px; object-fit: contain;
}
@keyframes xf-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
	.xf-marquee { -webkit-mask-image: none; mask-image: none; }
	.xf-marquee__track { animation: none; width: auto; justify-content: center; }
	.xf-marquee__list { flex-wrap: wrap; justify-content: center; padding: 0 !important; row-gap: 1.5rem; }
	.xf-marquee__list[aria-hidden] { display: none; }
}

/* --- Images ------------------------------------------------------------- */
.xf-photo img { border-radius: var(--xf-radius); box-shadow: var(--xf-shadow-lg); width: 100%; object-fit: cover; }
.xf-photo--tall img { aspect-ratio: 4 / 5; }
.xf-photo--wide img { aspect-ratio: 16 / 10; }

/* --- Bandeau de page ---------------------------------------------------- */
.xf-page-hero { position: relative; overflow: hidden; }
.xf-page-hero::after {
	content: ""; position: absolute; right: -80px; top: 50%; width: 420px; height: 420px; transform: translateY(-50%);
	background: var(--wp--preset--color--teal); opacity: 0.1;
	-webkit-mask: var(--xf-i-snow) center / contain no-repeat; mask: var(--xf-i-snow) center / contain no-repeat; pointer-events: none;
}
.xf-page-hero h1 { color: #fff; margin-top: 0.5rem; }
.xf-breadcrumb { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.65); }
.xf-breadcrumb a { color: var(--wp--preset--color--teal-light); text-decoration: none; }
.xf-breadcrumb a:hover { color: #fff; }
.xf-breadcrumb__sep { margin: 0 0.6em; opacity: 0.5; }

/* --- Contenu des pages -------------------------------------------------- */
.xf-section { scroll-margin-top: calc(var(--xf-header-h) + 1rem); }
.xf-panel { background: var(--wp--preset--color--mist); border-left: 4px solid var(--wp--preset--color--teal); border-radius: 0 var(--xf-radius) var(--xf-radius) 0; padding: clamp(1.25rem, 3vw, 2rem); }
.xf-panel p, .xf-panel li { font-size: 0.95rem; }
.xf-small { font-size: 0.85rem; color: var(--wp--preset--color--muted); }
details.wp-block-details { border: 1px solid var(--wp--preset--color--line); border-radius: var(--xf-radius); padding: 1rem 1.25rem; background: #fff; }
details.wp-block-details + details.wp-block-details { margin-top: 0.75rem; }
details.wp-block-details summary { font-weight: 700; cursor: pointer; text-transform: uppercase; font-size: 0.95rem; letter-spacing: 0.03em; }
details.wp-block-details[open] summary { color: var(--wp--preset--color--teal); margin-bottom: 0.5rem; }

/* Réalisations */
.xf-project { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: var(--xf-radius); overflow: hidden; height: 100%; transition: box-shadow 0.25s, transform 0.25s; }
.xf-project:hover { box-shadow: var(--xf-shadow-lg); transform: translateY(-4px); }
.xf-project .wp-block-image { margin: 0; }
.xf-project .wp-block-image img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; display: block; }
.xf-project__body { padding: 1.25rem 1.5rem 1.5rem; }
.xf-project__tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wp--preset--color--teal); margin: 0 !important; }
.xf-project h3 { font-size: 1.05rem; margin: 0.4rem 0 0.6rem; }
.xf-project p:not(.xf-project__tag) { font-size: 0.92rem; color: var(--wp--preset--color--muted); }

/* --- Avis Google -------------------------------------------------------- */
.xf-reviews .wp-gr { font-family: inherit !important; }
.xf-reviews .wp-gr .grw-review-inner { border-radius: var(--xf-radius) !important; }

/* --- Bande d'appel ------------------------------------------------------ */
.xf-cta { background-image: radial-gradient(circle at 85% 20%, rgba(92, 195, 220, 0.25), transparent 45%), linear-gradient(120deg, #003A63 0%, #0A2238 100%) !important; }
.xf-cta__lead { color: rgba(255, 255, 255, 0.82); font-size: 1.1rem; }
.xf-cta__phone {
	display: inline-flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem;
	font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; color: #fff; text-decoration: none; letter-spacing: 0.02em;
}
.xf-cta__phone:hover { color: var(--wp--preset--color--teal-light); }
.xf-cta__phone .xf-callbox__icon { background: rgba(255, 255, 255, 0.12); }
.xf-cta__phone .xf-callbox__icon::before { background: #fff; }

/* --- Pied de page ------------------------------------------------------- */
.xf-footer a { color: #fff; text-decoration: none; }
.xf-footer a:hover { color: var(--wp--preset--color--teal-light); }
.xf-logo--footer img { height: 44px; margin-bottom: 1rem; }
.xf-footer__title { font-size: 0.85rem !important; letter-spacing: 0.14em; color: var(--wp--preset--color--teal-light) !important; margin-bottom: 1rem; }
.xf-footer__muted { color: rgba(255, 255, 255, 0.65); }
.xf-footer__links { list-style: none; padding-left: 0 !important; font-size: 0.95rem; }
.xf-footer__links li { margin-bottom: 0.4rem; }
.xf-footer__contact { font-style: normal; font-size: 0.95rem; line-height: 1.9; }
.xf-footer__phone { font-size: 1.15rem; font-weight: 800; }
.xf-footer__sep { border-color: rgba(255, 255, 255, 0.12) !important; opacity: 1; }
.xf-footer__legal a { color: rgba(255, 255, 255, 0.65); }
.xf-footer__dot { margin: 0 0.6em; color: rgba(255, 255, 255, 0.4); }
/* Rouvre le bandeau Complianz (le plugin écoute les clics sur button.cmplz-manage-consent) */
.xf-footer__cookies {
	background: none; border: 0; padding: 0; cursor: pointer;
	font: inherit; color: rgba(255, 255, 255, 0.65);
}
.xf-footer__cookies:hover { color: var(--wp--preset--color--teal-light); text-decoration: underline; }
/* Le lien du pied de page remplace l'onglet flottant de Complianz */
#cmplz-manage-consent .cmplz-manage-consent { display: none !important; }

/* --- Formulaire de contact --------------------------------------------- */
.xf-form { display: grid; gap: 1rem; }
.xf-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .xf-form__row { grid-template-columns: 1fr; } }
.xf-field { margin: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.xf-field label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.xf-field input, .xf-field select, .xf-field textarea {
	font: inherit; font-size: 1rem; padding: 0.8rem 0.95rem; border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--xf-radius); background: #fff; color: var(--wp--preset--color--ink); width: 100%; box-sizing: border-box;
}
.xf-field input:focus, .xf-field select:focus, .xf-field textarea:focus { outline: 2px solid var(--wp--preset--color--teal); outline-offset: 1px; border-color: transparent; }
.xf-field--check { flex-direction: row; align-items: flex-start; gap: 0.6rem; }
.xf-field--check input { width: auto; margin-top: 0.3rem; }
.xf-field--check label { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 0.875rem; color: var(--wp--preset--color--muted); }
.xf-form__trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.xf-form__submit { margin: 0; }
.xf-form__submit button { border: 0; cursor: pointer; font-family: inherit; }
.xf-notice { padding: 1rem 1.25rem; border-radius: var(--xf-radius); font-weight: 600; }
.xf-notice--ok { background: #E6F6EE; color: #11603A; }
.xf-notice--error { background: #FDECEC; color: #8A1C1C; }

.xf-contact-card { display: flex; gap: 1rem; align-items: center; height: auto; padding: 1rem 1.25rem; margin-top: 0.75rem !important; }
.xf-contact-card > .wp-block-group > * { margin: 0; }
.xf-contact-card .xf-card-icon { flex: none; }
.xf-contact-card h3 { margin: 0 0 0.2rem; font-size: 0.85rem; letter-spacing: 0.1em; color: var(--wp--preset--color--muted); }
.xf-contact-card p { margin: 0; font-weight: 700; font-size: 1.05rem; }
.xf-contact-card a { color: var(--wp--preset--color--ink); text-decoration: none; }
.xf-contact-card a:hover { color: var(--wp--preset--color--teal); }
.xf-icon-phone { --xf-icon: var(--xf-i-phone); }
.xf-icon-mail { --xf-icon: var(--xf-i-mail); }
.xf-icon-pin { --xf-icon: var(--xf-i-pin); }
.xf-icon-clock { --xf-icon: var(--xf-i-clock); }

.xf-map iframe { width: 100%; min-height: 320px; border: 0; border-radius: var(--xf-radius); display: block; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; }
}

/* Bouton WhatsApp (Click to Chat) : en bas à droite pour ne pas couvrir l'en-tête */
.ht-ctc.ht-ctc-chat { top: auto !important; bottom: 24px !important; right: 20px !important; }
/* Bandeau cookies Complianz aux couleurs du site */
.cmplz-cookiebanner { font-family: inherit !important; }
