/*
 * HYGIFORCE — components used by the converted Elementor pages
 * (tools/convert-elementor.php): headings, buttons, icon boxes, accordion,
 * before/after comparison, card row, home hero, 404 links, contact form.
 */

/* ------------------------------------------------------------ headings */
/* One heading element holding an optional kicker, the title and a summary,
 * which is how the old heading widget rendered it. */
.hf-heading .elementor-heading-title { display: flex; flex-direction: column; gap: 14px; }

/* Kicker: a rounded outline pill with a gold dot, e.g. "• À PROPOS". */
.hf-heading .separator-sup-title {
	display: inline-flex; align-items: center; gap: 12px; align-self: flex-start;
	padding: 6px 18px; border: 1px solid rgb(132 132 132 / 60%); border-radius: 100px;
	font-family: var(--hf-font-body); font-size: 13px; font-weight: 300;
	letter-spacing: .3em; text-transform: uppercase; line-height: 1.4;
	color: var(--hf-ink);
}
.hf-heading .separator-sup-title::before {
	content: ""; flex-shrink: 0;
	width: 5px; height: 5px; border-radius: 50%; background: var(--hf-gold);
}
.hf-heading--sup-light .separator-sup-title { color: var(--hf-white); }
.hf-heading.elementor-align-center .separator-sup-title,
.hf-heading--simple .separator-sup-title { align-self: center; }

.hf-heading .text-summary-title {
	font-family: var(--hf-font-body); font-size: 20px; font-weight: 300;
	line-height: 1.5; letter-spacing: 0; text-transform: none;
}
.hf-heading--summary-light .text-summary-title { color: var(--hf-white); }
.hf-heading--summary-dark .text-summary-title { color: var(--hf-black); }

.hf-heading.elementor-align-center .elementor-heading-title,
.hf-heading--simple .elementor-heading-title { align-items: center; }

.elementor .color_1 { color: var(--hf-gold); }

/* ------------------------------------------------------------- buttons */
.hf-button .elementor-button {
	display: inline-flex; align-items: center;
	transition: background-color .25s ease, color .25s ease, transform .25s ease;
}
.hf-button .elementor-button-content-wrapper { align-items: center; }
.hf-button .elementor-button-icon {
	display: grid; place-items: center;
	width: 36px; height: 36px; border-radius: 50%;
	background: var(--hf-gold);
}
.hf-button .elementor-button-icon svg { width: 16px; height: 16px; }
.hf-button .elementor-button:hover,
.hf-button .elementor-button:focus { transform: translateY(-2px); }

/* ---------------------------------------------------------- icon boxes */
.hf-content-box .elementor-icon-box-title a { color: inherit; text-decoration: none; }
.hf-content-box .elementor-icon-box-title a:hover,
.hf-content-box .elementor-icon-box-title a:focus { color: var(--hf-gold); }

/* ----------------------------------------------------------- accordion */
.hf-accordion .elementor-accordion-item { border: 0; border-bottom: 1px solid rgb(212 175 55 / 40%); }
.hf-accordion .elementor-tab-title {
	padding: 20px 0;
	font-family: var(--hf-font-display); font-size: 22px; font-weight: 400;
}
.hf-accordion .elementor-tab-title a { color: inherit; }
.hf-accordion .elementor-tab-title.elementor-active { color: var(--hf-gold); }
.hf-accordion .elementor-tab-content { padding: 0 0 24px; border: 0; }

/* ------------------------------------------------------ before / after */
.hf-ba {
	--hf-ba-pos: 50%;
	position: relative; overflow: hidden;
	height: var(--hf-ba-h, 420px); min-height: 240px;
	border-radius: 20px;
	user-select: none;
}
.hf-ba__img {
	position: absolute; inset: 0;
	width: 100%; height: 100%; max-width: none;
	object-fit: cover;
}
.hf-ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--hf-ba-pos)) 0 0); }
.hf-ba__handle {
	position: absolute; top: 0; bottom: 0; left: var(--hf-ba-pos);
	width: 3px; background: var(--hf-white);
	transform: translateX(-50%); pointer-events: none;
}
.hf-ba__handle::after {
	content: "\27F7";
	position: absolute; top: 50%; left: 50%;
	display: grid; place-items: center;
	width: 46px; height: 46px; border-radius: 50%;
	background: var(--hf-gold); color: var(--hf-white); font-size: 20px;
	transform: translate(-50%, -50%);
	box-shadow: 0 4px 14px rgb(0 0 0 / 30%);
}
.hf-ba__label {
	position: absolute; top: 16px;
	padding: 6px 14px; border-radius: 100px;
	background: rgb(0 0 0 / 60%); color: var(--hf-white); font-size: 14px;
	pointer-events: none;
}
.hf-ba__label--before { left: 16px; }
.hf-ba__label--after { right: 16px; }
.hf-ba__range {
	position: absolute; inset: 0;
	width: 100%; height: 100%; margin: 0;
	opacity: 0; cursor: ew-resize;
	-webkit-appearance: none; appearance: none;
}
.hf-ba:has(.hf-ba__range:focus-visible) .hf-ba__handle::after { outline: 3px solid var(--hf-white); outline-offset: 2px; }

/* ------------------------------------------------------------ card row */
.hf-cards { position: relative; }
.hf-cards__track {
	display: grid; grid-auto-flow: column;
	/* Three per view. A fixed size, not minmax(): with more cards than fit,
	 * grid never grows minmax() tracks past their minimum. */
	grid-auto-columns: max(260px, calc((100% - 48px) / 3));
	gap: 24px; margin: 0; padding: 0 0 8px; list-style: none;
	overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.hf-cards__track::-webkit-scrollbar { display: none; }
.hf-cards__item { scroll-snap-align: start; }
/* Photo, with a white description card overlapping its lower edge.
 * .hf-cards prefix: outranks Elementor's kit link colour (.elementor-kit-N a). */
.hf-cards .hf-cards__card {
	display: flex; flex-direction: column;
	height: 100%;
	color: #6b6b6b; text-decoration: none;
}
.hf-cards__img {
	display: block; width: 100%; aspect-ratio: 4 / 3; height: auto;
	object-fit: cover; border-radius: 6px 6px 0 0;
	transition: filter .3s ease;
}
.hf-cards__body {
	position: relative;
	display: flex; align-items: flex-end; gap: 12px;
	flex: 1;
	margin: -48px 18px 0; padding: 22px 18px;
	background: var(--hf-white); border-radius: 4px;
	box-shadow: 0 12px 30px rgb(0 0 0 / 25%);
	font-size: 13px; line-height: 1.55;
}
.hf-cards__desc { flex: 1; }
.hf-cards__desc strong { color: var(--hf-ink); }
.hf-cards__arrow { flex-shrink: 0; color: var(--hf-ink); font-size: 20px; line-height: 1; transition: transform .2s ease; }
a.hf-cards__card:hover .hf-cards__img,
a.hf-cards__card:focus .hf-cards__img { filter: brightness(1.08); }
a.hf-cards__card:hover .hf-cards__arrow,
a.hf-cards__card:focus .hf-cards__arrow { transform: translateX(4px); color: var(--hf-gold); }
.hf-cards .hf-cards__card:hover,
.hf-cards .hf-cards__card:focus { color: #6b6b6b; }
.hf-cards__nav { display: flex; justify-content: center; gap: 12px; margin-top: 24px; }
.hf-cards__nav button {
	width: 48px; height: 48px; border-radius: 50%;
	border: 1px solid var(--hf-gold); background: transparent;
	color: var(--hf-gold); font-size: 20px; cursor: pointer;
	transition: background .2s ease, color .2s ease;
}
.hf-cards__nav button:hover,
.hf-cards__nav button:focus { background: var(--hf-gold); color: var(--hf-black); }

/* ---------------------------------------------------------- home hero */
.hf-hero {
	position: relative; overflow: hidden;
	height: 940px; max-height: calc(100vh - var(--hf-header-h)); min-height: 560px;
	background: var(--hf-black);
}
.hf-hero__slide {
	position: absolute; inset: 0;
	display: flex; align-items: center;
	opacity: 0; visibility: hidden;
	transition: opacity .9s ease, visibility .9s;
}
.hf-hero__slide.is-active { opacity: 1; visibility: visible; }
.hf-hero__bg {
	position: absolute; inset: 0;
	width: 100%; height: 100%; max-width: none; object-fit: cover;
}
.hf-hero__slide::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, rgb(0 0 0 / 80%) 0%, rgb(0 0 0 / 45%) 55%, rgb(0 0 0 / 10%) 100%);
}
.hf-hero__content {
	position: relative; z-index: 1;
	width: min(var(--hf-container), 100%); margin: 0 auto;
	padding: 0 var(--hf-gutter); box-sizing: border-box;
	color: var(--hf-white);
}
.hf-hero__kicker {
	margin: 0 0 18px;
	font-family: var(--hf-font-display); font-size: clamp(40px, 6vw, 80px); line-height: 1;
	color: var(--hf-gold);
}
.hf-hero__text {
	max-width: 640px; margin: 0 0 32px;
	font-size: clamp(17px, 1.6vw, 22px); font-weight: 300; line-height: 1.55;
}
.hf-hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hf-hero__btn {
	display: inline-flex; padding: 15px 32px; border-radius: 100px;
	border: 1px solid var(--hf-gold); color: var(--hf-white);
	font-size: 16px; text-decoration: none;
	transition: background .25s ease, color .25s ease;
}
.hf-hero__btn--primary,
.hf-hero__btn:hover,
.hf-hero__btn:focus { background: var(--hf-gold); color: var(--hf-black); }
.hf-hero__dots {
	position: absolute; left: 50%; bottom: 32px; z-index: 2;
	display: flex; gap: 10px;
	transform: translateX(-50%);
}
.hf-hero__dot {
	width: 12px; height: 12px; padding: 0; border-radius: 50%;
	border: 1px solid var(--hf-gold); background: transparent; cursor: pointer;
}
.hf-hero__dot.is-active { background: var(--hf-gold); }

@media (prefers-reduced-motion: reduce) {
	.hf-hero__slide { transition: none; }
}

/* ---------------------------------------------------------- 404 links */
.hf-link-list ul {
	display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px;
	margin: 0; padding: 0; list-style: none;
}
.hf-link-list a { color: var(--hf-gold); font-size: 18px; text-transform: uppercase; }

/* -------------------------------------------------------- contact form */
/* The shortcode widget sits in a row container; let it take the free space. */
.hf-contact-form { flex: 1 1 0; min-width: min(100%, 320px); width: 100%; }

/* Underlined fields with small labels above, white on the dark card. */
.hf-cf7 { color: var(--hf-white); }
.hf-cf7 .hf-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
.hf-cf7 .hf-field { display: block; margin: 0; }
.hf-cf7 .hf-field--wide { grid-column: 1 / -1; }
.hf-cf7 .hf-field__label { display: block; margin-bottom: 4px; font-size: 13px; line-height: 1.4; opacity: .9; }
.hf-cf7 input:not([type="checkbox"]):not([type="submit"]):not([type="file"]),
.hf-cf7 select,
.hf-cf7 textarea {
	width: 100%; box-sizing: border-box; padding: 10px 2px;
	border: 0; border-bottom: 1px solid rgb(255 255 255 / 35%); border-radius: 0;
	background: transparent; color: var(--hf-white); font: inherit; font-size: 15px;
}
.hf-cf7 select option { color: var(--hf-ink); }
.hf-cf7 textarea { min-height: 110px; resize: vertical; }
.hf-cf7 input:focus,
.hf-cf7 select:focus,
.hf-cf7 textarea:focus { outline: none; border-bottom-color: var(--hf-gold); box-shadow: 0 1px 0 var(--hf-gold); }
.hf-cf7 input[type="file"] { padding: 8px 0; font-size: 13px; border-bottom: 1px solid rgb(255 255 255 / 35%); width: 100%; color: rgb(255 255 255 / 75%); }
/* Native file button and checkbox, restyled to the dark form. */
.hf-cf7 input[type="file"]::file-selector-button {
	margin-right: 12px; padding: 7px 16px; border: 1px solid rgb(255 255 255 / 35%); border-radius: 100px;
	background: transparent; color: var(--hf-white); font: inherit; font-size: 13px; cursor: pointer;
	transition: border-color .2s ease, color .2s ease;
}
.hf-cf7 input[type="file"]::file-selector-button:hover { border-color: var(--hf-gold); color: var(--hf-gold); }
.hf-cf7 input[type="checkbox"] { width: 16px; height: 16px; margin: 0 8px 0 0; vertical-align: -3px; accent-color: var(--hf-gold); }
.hf-cf7 .hf-form__consent { margin: 22px 0 18px; font-size: 13px; }
.hf-cf7 .hf-form__consent a { color: var(--hf-white); text-decoration: underline; }
.hf-cf7 .hf-form__consent .wpcf7-list-item { margin: 0; }
/* The form's one primary action: filled gold, like the hero's primary button. */
.hf-cf7 .hf-form__submit {
	padding: 13px 34px; border: 1px solid var(--hf-gold); border-radius: 100px;
	background: var(--hf-gold); color: var(--hf-ink);
	font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
	transition: background .25s ease, color .25s ease, transform .15s ease;
}
.hf-cf7 .hf-form__submit:hover { background: transparent; color: var(--hf-gold); }
.hf-cf7 .hf-form__submit:focus-visible { outline: 2px solid var(--hf-gold); outline-offset: 3px; }
.hf-cf7 .hf-form__submit:active { transform: scale(.98); }
.hf-cf7 .wpcf7-not-valid-tip { margin-top: 6px; font-size: 13px; color: #ff6b6b; }
.hf-cf7 .wpcf7-response-output { margin: 20px 0 0 !important; padding: 12px 18px !important; border-radius: 12px; }

@media (max-width: 767px) {
	.hf-cf7 .hf-form__grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------- home about section */
/* inc/home-about.php: the Elementor block's H1, text, video and buttons. */
.hf-about { position: relative; overflow: hidden; padding: clamp(72px, 10vw, 140px) var(--hf-gutter); background: var(--hf-ink); color: var(--hf-white); }
/* Ambient gold light behind the video, in place of the old gradient image. */
.hf-about::before {
	content: ""; position: absolute; right: -8%; top: 50%; width: min(70vw, 820px); aspect-ratio: 1;
	transform: translateY(-50%); pointer-events: none;
	background: radial-gradient(closest-side, rgb(212 175 55 / 16%), rgb(212 175 55 / 4%) 55%, transparent);
}
.hf-about__inner {
	position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: clamp(40px, 6vw, 96px); max-width: var(--hf-container); margin: 0 auto; align-items: center;
}
/* Same look as the home's "Découvrez …" section headings (.hf-heading pill
 * kicker, Playfair title at the kit's H2 size, gold accent word). */
.hf-about .hf-about__title { /* beats the Elementor kit's own h1 size */
	display: flex; flex-direction: column; gap: 14px; margin: 0 0 32px;
	font-family: var(--hf-font-display); font-size: clamp(22px, 3.34vw, 45px); font-weight: 400; line-height: 1; color: var(--hf-white);
}
.hf-about__title .coherence-heading-text { color: var(--hf-gold); }
.hf-about__body { max-width: 62ch; }
.hf-about__body p { margin: 0 0 18px; font-size: 17px; font-weight: 300; line-height: 1.75; color: rgb(255 255 255 / 82%); }
.hf-about__body strong { font-weight: 600; color: var(--hf-white); }
.hf-about__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
:is(.hf-about, .hf-psy) a.hf-about__btn {
	display: inline-flex; align-items: center; gap: 10px; padding: 14px 30px;
	border: 1px solid var(--hf-gold); border-radius: 100px; color: var(--hf-white);
	font-size: 16px; text-decoration: none; white-space: nowrap;
	transition: background .25s ease, color .25s ease, transform .15s ease;
}
:is(.hf-about, .hf-psy) a.hf-about__btn:hover { background: var(--hf-gold); color: var(--hf-ink); }
:is(.hf-about, .hf-psy) a.hf-about__btn--primary { background: var(--hf-gold); color: var(--hf-ink); font-weight: 600; }
:is(.hf-about, .hf-psy) a.hf-about__btn--primary:hover { background: transparent; color: var(--hf-gold); }
:is(.hf-about, .hf-psy) a.hf-about__btn:active { transform: scale(.98); }
:is(.hf-about, .hf-psy) a.hf-about__btn:focus-visible { outline: 2px solid var(--hf-gold); outline-offset: 3px; }
:is(.hf-about, .hf-psy) a.hf-about__btn .hf-icon { width: 18px; height: 18px; }
.hf-about__media {
	justify-self: center; width: min(100%, 400px); aspect-ratio: 9 / 16; margin: 0;
	overflow: hidden; border: 1px solid rgb(212 175 55 / 35%); border-radius: 28px;
	background: #000; box-shadow: 0 40px 80px -30px rgb(0 0 0 / 80%);
}
.hf-about__media video { display: block; width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 1024px) {
	.hf-about__inner { grid-template-columns: 1fr; }
	.hf-about__media { width: min(100%, 360px); }
}

/* ------------------------------------------- home psychological support */
/* inc/home-psy.php: the text on the left, the list and the two ways to reach
 * us in a card on the right. Same title look as the "Découvrez" headings. */
.hf-psy { position: relative; overflow: hidden; padding: clamp(72px, 9vw, 128px) var(--hf-gutter); background: var(--hf-ink); color: var(--hf-white); }
.hf-psy::before {
	content: ""; position: absolute; left: -10%; top: 30%; width: min(60vw, 720px); aspect-ratio: 1; pointer-events: none;
	background: radial-gradient(closest-side, rgb(212 175 55 / 10%), transparent);
}
.hf-psy__inner {
	position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: clamp(40px, 6vw, 96px); max-width: var(--hf-container); margin: 0 auto; align-items: center;
}
.hf-psy .hf-psy__title {
	display: flex; flex-direction: column; gap: 14px; margin: 0 0 28px;
	font-family: var(--hf-font-display); font-size: clamp(30px, 3.34vw, 45px); font-weight: 400; line-height: 1.1; color: var(--hf-white);
}
.hf-psy__body { max-width: 62ch; }
.hf-psy__body p, .hf-psy__close p { margin: 0 0 18px; font-size: 17px; font-weight: 300; line-height: 1.75; color: rgb(255 255 255 / 82%); }
.hf-psy__body p:last-child, .hf-psy__close p:last-child { margin-bottom: 0; }

.hf-psy__card {
	padding: clamp(28px, 3vw, 44px); border: 1px solid rgb(212 175 55 / 30%); border-radius: 28px;
	background: linear-gradient(160deg, rgb(212 175 55 / 7%), transparent 45%), #141414;
	box-shadow: 0 40px 80px -40px rgb(0 0 0 / 80%);
}
.hf-psy .hf-psy__card-title { margin: 0 0 22px; font-family: var(--hf-font-display); font-size: clamp(22px, 1.9vw, 26px); font-weight: 400; line-height: 1.25; color: var(--hf-gold); }
.hf-psy__list { display: grid; gap: 14px; margin: 0 0 26px; padding: 0; list-style: none; }
.hf-psy__list li { position: relative; padding-left: 34px; font-size: 16px; line-height: 1.5; color: var(--hf-white); }
.hf-psy__list li::before {
	content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
	border: 1px solid var(--hf-gold); background: rgb(212 175 55 / 12%);
}
.hf-psy__list li::after {
	content: ""; position: absolute; left: 8px; top: 6px; width: 5px; height: 9px;
	border: solid var(--hf-gold); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.hf-psy__close { padding-top: 22px; border-top: 1px solid rgb(255 255 255 / 10%); }
.hf-psy__close p { font-size: 15px; }
.hf-psy .hf-about__actions { margin-top: 28px; }

@media (max-width: 1024px) {
	.hf-psy__inner { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
	.hf-psy .hf-about__actions { flex-direction: column; align-items: stretch; }
	.hf-psy a.hf-about__btn { justify-content: center; }
}

/* Scroll reveal (components.js adds .is-pending, then removes it in view). */
.hf-reveal.is-pending { opacity: 0; transform: translateY(28px) scale(.97); }
.hf-reveal { transition: opacity .9s ease, transform .9s cubic-bezier(.16, 1, .3, 1); }
@media (prefers-reduced-motion: reduce) {
	.hf-reveal { transition: none; }
}

/* ------------------------------------------------- home contact section */
/* inc/home-contact.php: agencies from data/agencies.json + contact form. */
.hf-home-contact { padding: clamp(56px, 8vw, 110px) var(--hf-gutter); background: var(--hf-ink); color: var(--hf-white); }
.hf-home-contact__inner {
	display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px);
	max-width: var(--hf-container); margin: 0 auto; align-items: start;
}
.hf-home-contact__logo { display: block; width: clamp(72px, 7vw, 96px); height: auto; margin: 0 0 24px; }
.hf-home-contact h2 {
	margin: 0 0 20px; font-family: var(--hf-font-display); font-weight: 400;
	font-size: clamp(34px, 4vw, 52px); line-height: 1.1; color: var(--hf-white);
}
.hf-home-contact__lead { margin: 0 0 24px; font-size: 17px; font-weight: 300; line-height: 1.65; color: rgb(255 255 255 / 85%); }
.hf-home-contact__hours { display: flex; align-items: center; gap: 10px; margin: 0 0 40px; font-size: 16px; font-weight: 600; }
.hf-home-contact__hours .hf-icon,
.hf-home-contact__tel .hf-icon { width: 18px; height: 18px; color: var(--hf-gold); flex-shrink: 0; }
.hf-home-contact__label { margin: 0 0 14px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--hf-gold); }
.hf-home-contact__agencies {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px;
	margin: 0; padding: 0; list-style: none;
}
.hf-home-contact__agency {
	display: flex; flex-direction: column; gap: 10px; padding: 22px 24px;
	border: 1px solid rgb(212 175 55 / 35%); border-radius: 18px; background: rgb(255 255 255 / 4%);
	transition: border-color .25s ease;
}
.hf-home-contact__agency:hover { border-color: var(--hf-gold); }
.hf-home-contact__agency h3 { margin: 0; font-family: var(--hf-font-display); font-weight: 400; font-size: 24px; color: var(--hf-white); }
/* "a." prefix: outranks Elementor's kit rule (.elementor-kit-… a) that turns links black. */
.hf-home-contact a.hf-home-contact__tel {
	display: inline-flex; align-items: center; gap: 10px;
	color: var(--hf-white); font-size: 18px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.hf-home-contact a.hf-home-contact__tel:hover,
.hf-home-contact a.hf-home-contact__tel:focus { color: var(--hf-gold); }
.hf-home-contact a.hf-home-contact__more { margin-top: auto; color: var(--hf-gold); font-size: 14px; text-decoration: none; }
.hf-home-contact a.hf-home-contact__more:hover,
.hf-home-contact a.hf-home-contact__more:focus { text-decoration: underline; text-underline-offset: 3px; }
.hf-home-contact a:focus-visible { outline: 2px solid var(--hf-gold); outline-offset: 4px; border-radius: 4px; }
.hf-home-contact__agency:active { transform: scale(.99); }
.hf-home-contact__form {
	padding: clamp(24px, 4vw, 44px); border: 1px solid rgb(255 255 255 / 10%); border-radius: 24px;
	background: rgb(255 255 255 / 4%);
}

/* The form is the tall column: keep the agencies in view beside it. */
@media (min-width: 1025px) {
	.hf-home-contact__info { position: sticky; top: calc(var(--hf-header-h) + 24px); }
}
@media (max-width: 1024px) {
	.hf-home-contact__inner { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.hf-home-contact__agency { transition: none; }
	.hf-home-contact__agency:active { transform: none; }
}

/* ------------------------------------------------------------ agencies */
/* Agency cards ([hf_agencies], agency pages), zones lists ([hf_zones]),
 * "pour aller plus loin" links and the zones block under service pages
 * (inc/agencies.php, inc/agency-cli.php). These sit on the dark page
 * background, except the agency card, which carries its own white panel. */
.hf-agency-section, .hf-related, .hf-service-zones { padding: 60px var(--hf-gutter); color: var(--hf-white); }
.hf-agency-section__inner, .hf-related__inner, .hf-service-zones__inner { max-width: var(--hf-container); margin: 0 auto; }
.hf-agency-section--top { padding-top: 40px; }
.hf-agency-section h1, .hf-agency-section h2, .hf-related h2, .hf-service-zones h2 {
	font-family: var(--hf-font-display); font-size: clamp(24px, 3vw, 36px); line-height: 1.2; margin: 0 0 24px; color: var(--hf-gold);
}
.hf-agency-section h1 { font-size: clamp(30px, 4vw, 48px); color: var(--hf-white); }
.hf-agency-section p { font-size: 16px; line-height: 1.8; color: #d6d6d6; }

.hf-agencies { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.hf-agency-card { padding: 28px; border-radius: 20px; background: var(--hf-white); color: var(--hf-ink); }
.hf-agency-card h3 { font-family: var(--hf-font-display); font-size: 22px; margin: 0 0 12px; color: var(--hf-ink); }
.hf-agency-section .hf-agency-card p, .hf-agency-card p { margin: 0 0 8px; font-size: 16px; line-height: 1.6; color: #444; }
.hf-agency-card a { color: var(--hf-ink); text-decoration: underline; text-decoration-color: var(--hf-gold); text-underline-offset: 3px; }
.hf-agency-section .hf-agency-card { max-width: 520px; }
.hf-agency-card__link { display: inline-block; margin-top: 8px; font-weight: 600; }

.hf-zones + .hf-zones { margin-top: 48px; }
.hf-zones__group { font-size: 18px; margin: 32px 0 12px; color: var(--hf-white); }
.hf-zones__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px 32px; margin: 0; padding: 0; list-style: none; }
.hf-zones__list li { font-size: 15px; line-height: 1.6; color: var(--hf-white); }
.hf-zones__list--compact { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.hf-zones__km { color: var(--hf-grey); font-size: 13px; }
.hf-zones__services { font-size: 14px; color: #bdbdbd; }
.hf-zones a, .hf-related a, .hf-service-zones a { color: var(--hf-white); text-decoration: underline; text-decoration-color: var(--hf-gold); text-underline-offset: 3px; }
.hf-zones a:hover, .hf-related a:hover, .hf-service-zones a:hover { color: var(--hf-gold); }

.hf-related ul, .hf-service-zones ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px 32px; margin: 0 0 16px; padding: 0; list-style: none; }
.hf-related li, .hf-service-zones li { font-size: 16px; line-height: 1.6; }

.hf-footer__zones { margin: 8px 0 0; text-align: center; }
.hf-footer__zones a { color: inherit; text-decoration: underline; text-decoration-color: var(--hf-gold); text-underline-offset: 3px; }

/* Town pages (plrd-*), the old site's and the generated ones: one dark + gold
 * page like the home. plrd.css (the old site's snippet) alternated white, grey
 * and black bands whose text colours fought the theme's (light text on light
 * grey); every section now sits on the page background, and only the photo
 * cards stay white. */
.plrd-global-section {
	--plrd-surface: #141414;
	--plrd-line: rgb(212 175 55 / 22%);
	--plrd-gold-ink: #7a5d0f; /* gold for text on white: 6:1, the brand gold is 2:1 */
	color: #d6d6d6;
}
.plrd-global-section :is(.plrd-card, .plrd-card-process, .plrd-zone-card) { color: #404040; }
.plrd-global-section :is(.plrd-services-section, .plrd-content2-section, .plrd-expertise-section, .plrd-info-zones-section) { background: transparent; }
.plrd-global-section .plrd-avis-section { background: transparent !important; }

/* Copy on the dark background */
.plrd-global-section :is(.plrd-intro-right, .plrd-content1-content, .plrd-content2-content, .plrd-title-avis-right, .plrd-expertise-card, .plrd-faq-answer) :is(p, li) { color: #d6d6d6; }
.plrd-global-section :is(.plrd-intro-right, .plrd-content1-content, .plrd-content2-content, .plrd-hero-description) strong { color: var(--hf-white); }
.plrd-intro-right p, .plrd-intro-right li { font-size: 16px; line-height: 1.8; }
.plrd-intro-right p + p { margin-top: 14px; }
.plrd-intro-right ul { margin: 12px 0 0; padding-left: 20px; }
.plrd-global-section :is(.plrd-intro-right, .plrd-content1-content, .plrd-content2-content, .plrd-hero-description, .plrd-title-avis-right, .plrd-faq-answer) a:not([class]) {
	color: var(--hf-white); text-decoration: underline; text-decoration-color: var(--hf-gold); text-underline-offset: 3px;
}
.plrd-global-section :is(.plrd-intro-right, .plrd-content1-content, .plrd-content2-content, .plrd-hero-description, .plrd-title-avis-right, .plrd-faq-answer) a:not([class]):hover { color: var(--hf-gold); }

/* Headings: section titles at a size their narrow column holds in 2-3 lines,
 * card titles in proportion to their 14px copy. */
.plrd-global-section :is(.plrd-intro-left, .plrd-title-avis-left) h2 { font-size: clamp(28px, 2.8vw, 40px) !important; }
.plrd-global-section :is(.plrd-card-content, .plrd-zone-content, .plrd-card-process, .plrd-expertise-card, .plrd-info-zone-card) h3 { font-size: clamp(20px, 1.7vw, 26px) !important; line-height: 1.2; }
.plrd-global-section :is(.plrd-expertise-card, .plrd-info-zone-card) h3 { color: var(--hf-white) !important; }
.plrd-intro-left, .plrd-title-avis-left { flex: 1.1; }
.plrd-intro-right, .plrd-title-avis-right { flex: 1.6; }

/* Hero: dark panel with a gold glow, the home's kicker and pill buttons */
.plrd-global-section .plrd-hero-section {
	color: #d6d6d6; border: 1px solid var(--plrd-line);
	background: radial-gradient(55% 75% at 82% 50%, rgb(212 175 55 / 13%), transparent 70%), var(--plrd-surface);
}
.plrd-global-section .plrd-hero-left h1 { color: var(--hf-white) !important; }
.plrd-global-section .plrd-hero-description { margin-bottom: 28px; color: #cfcfcf; }
.plrd-global-section .plrd-badge {
	gap: 12px; padding: 6px 18px; border: 1px solid rgb(132 132 132 / 60%); background: transparent !important;
	font-size: 13px; font-weight: 300; letter-spacing: .3em; text-transform: uppercase;
}
.plrd-global-section .plrd-badge::before { content: ""; flex-shrink: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--hf-gold); }
.plrd-global-section .plrd-badge p:first-child:not(:only-child) { display: none; } /* the old pages' &nbsp; line */
.plrd-global-section .plrd-features { gap: 14px 32px; margin-bottom: 32px; }
.plrd-global-section .plrd-feature { position: relative; display: block; padding-left: 32px; font-size: 15px; line-height: 1.5; color: var(--hf-white); }
.plrd-global-section .plrd-feature::before {
	content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
	border: 1px solid var(--hf-gold); background: rgb(212 175 55 / 12%);
}
.plrd-global-section .plrd-feature::after {
	content: ""; position: absolute; left: 7px; top: 5px; width: 5px; height: 9px;
	border: solid var(--hf-gold); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* Buttons: gold pill for the main action, gold outline for the other */
.plrd-global-section :is(a.plrd-hero-btn-primary, a.plrd-content1-btn) {
	background: var(--hf-gold) !important; border: 2px solid var(--hf-gold) !important; border-radius: 100px !important; color: var(--hf-ink) !important;
}
.plrd-global-section :is(a.plrd-hero-btn-outline, a.plrd-cta-button) {
	background: transparent !important; border: 2px solid var(--hf-gold) !important; border-radius: 100px !important; color: var(--hf-gold) !important;
}
.plrd-global-section :is(a.plrd-hero-btn-primary, a.plrd-content1-btn):hover { background: transparent !important; color: var(--hf-gold) !important; }
.plrd-global-section :is(a.plrd-hero-btn-outline, a.plrd-cta-button):hover { background: var(--hf-gold) !important; color: var(--hf-ink) !important; }
.plrd-global-section :is(a.plrd-hero-btn-primary, a.plrd-hero-btn-outline, a.plrd-content1-btn, a.plrd-cta-button, .plrd-phone a):active { transform: scale(.98); }
.plrd-global-section :is(a.plrd-hero-btn-primary, a.plrd-hero-btn-outline, a.plrd-content1-btn, a.plrd-cta-button, .plrd-phone a):focus-visible { outline: 2px solid var(--hf-gold); outline-offset: 3px; }

/* Photos */
.plrd-global-section :is(.plrd-content1-image, .plrd-content2-image) img { border-radius: 20px !important; }

/* White photo cards: links in a gold dark enough to read on white */
.plrd-global-section .plrd-card a.plrd-more-link,
.plrd-global-section .plrd-zone-content a { color: var(--plrd-gold-ink) !important; }

/* Zones: equal photo crops; the run of town links as pills, not a paragraph */
/* The two cards share a row: the shorter one's photo grows to fill it. */
.plrd-global-section .plrd-zone-card { display: flex; flex-direction: column; background: #fff; }
.plrd-global-section .plrd-zone-image { flex: 1; min-height: 260px; }
.plrd-global-section .plrd-zone-image img { height: 100% !important; border-radius: 0 !important; }
.plrd-global-section .plrd-zone-content p:has(> a + a) { margin: 16px 0 !important; font-size: 0; } /* hides the " | " separators */
.plrd-global-section .plrd-zone-content p:has(> a + a) a {
	display: inline-block; margin: 0 6px 8px 0; padding: 5px 12px; border: 1px solid rgb(122 93 15 / 35%); border-radius: 100px;
	background: rgb(212 175 55 / 8%); font-size: 13px; font-weight: 500; line-height: 1.4; text-decoration: none;
}
.plrd-global-section .plrd-zone-content p:has(> a + a) a:hover { background: rgb(212 175 55 / 22%); }

/* Testimonials and the Google reviews link (functions.php) */
.plrd-avis-container > div[style*="grid"] { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important; }
.plrd-global-section .plrd-temo-card { background: var(--plrd-surface); border: 1px solid var(--plrd-line); box-shadow: none; color: #d6d6d6; }
.plrd-global-section .plrd-temo-card p { color: #e6e6e6; }
.plrd-global-section .plrd-temo-card strong { color: var(--hf-white); }
.plrd-global-section .plrd-temo-card .temo-ville { color: #a8a8a8; }
.plrd-global-section .hf-reviews-link { margin: 12px 0 0 !important; }
.plrd-global-section .hf-reviews-link a {
	display: inline-flex; padding: 14px 30px; border: 2px solid var(--hf-gold); border-radius: 100px;
	color: var(--hf-gold); font-weight: 600; text-decoration: none; transition: background-color .25s ease, color .25s ease;
}
.plrd-global-section .hf-reviews-link a:hover { background: var(--hf-gold); color: var(--hf-ink); }

/* Expertise cards on dark */
.plrd-global-section .plrd-expertise-card { background: var(--plrd-surface); border: 1px solid var(--plrd-line); } /* the gold number is the accent */
.plrd-global-section .plrd-expertise-number { font-family: var(--hf-font-display); font-size: 30px; font-weight: 400; opacity: 1; }
.plrd-global-section .plrd-expertise-card h3 { margin-bottom: 12px; }

/* Zone summary: the communes card spans two rows next to the two short cards */
.plrd-global-section .plrd-info-zones-container { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); grid-auto-flow: dense; }
.plrd-global-section .plrd-info-zone-card { background: var(--plrd-surface); border: 1px solid var(--plrd-line); box-shadow: none; }
.plrd-global-section .plrd-info-zone-card:has(.plrd-info-zone-columns) { grid-column: 2; grid-row: span 2; }
.plrd-global-section :is(.plrd-info-zone-list, .plrd-info-zone-columns) li { color: #d6d6d6; font-size: 15px; }
.plrd-global-section .plrd-info-zone-columns { display: block; columns: 3 170px; column-gap: 24px; }
.plrd-global-section .plrd-info-zone-columns ul { margin: 0; }
.plrd-global-section .plrd-info-zone-columns li { break-inside: avoid; }
.plrd-global-section .plrd-info-zone-columns a { font-size: 15px; }

/* FAQ */
.plrd-global-section .plrd-faq-item { border-color: rgb(255 255 255 / 16%); }
.plrd-global-section .plrd-faq-answer { color: #d6d6d6; }
.plrd-global-section .plrd-faq-item[open] { border-color: var(--hf-gold); }

/* Closing call to action: dark panel, the phone as the main gold button */
.plrd-global-section .plrd-cta-section {
	color: #d6d6d6; border: 1px solid var(--plrd-line);
	background: radial-gradient(70% 90% at 50% 0%, rgb(212 175 55 / 13%), transparent 70%), var(--plrd-surface) !important;
}
.plrd-global-section .plrd-cta-text { color: #cfcfcf; }
.plrd-global-section .plrd-cta-container { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px; }
.plrd-global-section .plrd-cta-container > :is(h2, .plrd-cta-text) { flex-basis: 100%; }
.plrd-global-section .plrd-cta-container > p:has(> .plrd-cta-button) { margin: 0 !important; }
.plrd-global-section .plrd-cta-phones { margin: 0; gap: 12px; }
.plrd-global-section .plrd-phone { padding: 0; background: none; }
.plrd-global-section .plrd-phone a {
	display: inline-flex; padding: 16px 34px; border: 2px solid var(--hf-gold); border-radius: 100px;
	background: var(--hf-gold); color: var(--hf-ink) !important; transition: background-color .25s ease, color .25s ease;
}
.plrd-global-section .plrd-phone a:hover { background: transparent; color: var(--hf-gold) !important; }

@media (max-width: 768px) {
	.plrd-global-section .plrd-features { grid-template-columns: 1fr; }
	.plrd-global-section .plrd-info-zones-container { grid-template-columns: 1fr; }
	.plrd-global-section .plrd-info-zone-card:has(.plrd-info-zone-columns) { grid-column: auto; grid-row: auto; }
	.plrd-global-section .plrd-zone-image { flex: none; min-height: 0; }
	.plrd-global-section .plrd-zone-image img { height: 200px !important; }
}
@media (prefers-reduced-motion: reduce) {
	.plrd-global-section :is(a.plrd-hero-btn-primary, a.plrd-hero-btn-outline, a.plrd-content1-btn, a.plrd-cta-button, .plrd-phone a):active { transform: none; }
}

.hf-generated .plrd-global-section .hf-agency-section h1 { color: var(--hf-white) !important; }
.hf-generated .plrd-global-section :is(.hf-zones__list, .hf-related ul) { list-style: none; padding-left: 0; }
.hf-generated .hf-agency-section p + p { margin-top: 14px; }
.hf-generated .plrd-global-section .hf-zones__group { color: var(--hf-white) !important; font-size: 20px !important; }

/* Plan du site (inc/sitemap.php) */
.hf-sitemap h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 40px 0 16px; }
.hf-sitemap .hf-zones__list { list-style: none; padding-left: 0; }
.hf-sitemap .hf-zones__list li { font-size: 14px; }

/* Mentions légales, politique de confidentialité (inc/legal.php) */
.hf-legal .hf-agency-section__inner { max-width: 900px; }
.hf-legal h2 { font-size: clamp(20px, 2.2vw, 24px); margin: 36px 0 14px; }
.hf-legal h3 { font-size: 18px; margin: 22px 0 8px; }
.hf-legal p + p { margin-top: 12px; }
.hf-legal ul { padding-left: 20px; }
.hf-legal li + li { margin-top: 4px; }
.hf-legal ul + p, .hf-legal p + ul { margin-top: 16px; }
.hf-legal__lead { font-style: italic; }

/* Réquisition judiciaire (inc/requisition.php): links on the dark form section */
.hf-requisition-form a { color: var(--hf-white); text-decoration: underline; }
