/*
Theme Name: CEH Subventions
Theme URI: https://subventions.conseil-habitat-cee.com/
Author: Conseil Énergie Habitat
Description: Thème sur mesure, léger et rapide, pour la campagne « Subventions et financements complémentaires » des collectivités (modèle de page « Accueil »). Sans constructeur ni jQuery, un seul CSS, un seul JS, police Manrope hébergée. Formulaire Forminator, CEH Cookies et CEH Carrousel Confiance.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ceh-subventions
*/

/* ==========================================================================
   1. Police hébergée (Manrope variable, sous-ensemble latin, OFL)
   ========================================================================== */
@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("assets/fonts/manrope-latin.woff2") format("woff2-variations"),
		url("assets/fonts/manrope-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   2. Variables (thème clair)
   ========================================================================== */
:root {
	--ceh-navy: #0e2f55;
	--ceh-blue: #1b4f8a;
	--ceh-ink: #1f2d3d;
	--ceh-muted: #4b5b6e;
	--ceh-green: #3a7a1d;
	--ceh-green-dark: #2d6215;
	--ceh-lime: #8cc63f;
	--ceh-green-soft: #eef6e7;
	--ceh-soft: #f4f7fb;
	--ceh-soft-2: #e9f0f8;
	--ceh-line: #d9e2ec;
	--ceh-white: #ffffff;
	--ceh-focus: #1b4f8a;

	--ceh-radius: 14px;
	--ceh-radius-sm: 8px;
	--ceh-shadow: 0 1px 2px rgba(14, 47, 85, .06), 0 8px 24px rgba(14, 47, 85, .07);
	--ceh-wrap: 1200px;
	--ceh-gutter: 1.25rem;
	--ceh-font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ==========================================================================
   3. Base
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: 5.5rem;
}

@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

body {
	margin: 0;
	background: var(--ceh-white);
	color: var(--ceh-ink);
	font-family: var(--ceh-font);
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img,
svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
	margin: 0 0 .6em;
	color: var(--ceh-navy);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -.01em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--ceh-blue); text-underline-offset: .18em; }
a:hover { color: var(--ceh-navy); }

ul, ol { margin: 0; padding: 0; }

address { font-style: normal; }

:focus-visible {
	outline: 3px solid var(--ceh-focus);
	outline-offset: 3px;
	border-radius: 4px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.ceh-skip {
	position: absolute;
	top: .5rem; left: .5rem;
	z-index: 100;
	padding: .75rem 1rem;
	background: var(--ceh-navy);
	color: #fff;
	font-weight: 700;
	border-radius: var(--ceh-radius-sm);
	transform: translateY(-200%);
}
.ceh-skip:focus { transform: none; color: #fff; }

.ceh-wrap {
	width: 100%;
	max-width: var(--ceh-wrap);
	margin-inline: auto;
	padding-inline: var(--ceh-gutter);
}

.ceh-icon { width: 1.5rem; height: 1.5rem; flex: none; }

/* ==========================================================================
   4. Boutons
   ========================================================================== */
.ceh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	min-height: 48px;
	padding: .8rem 1.4rem;
	border: 2px solid transparent;
	border-radius: var(--ceh-radius-sm);
	font: inherit;
	font-size: .95rem;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: .02em;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}
.ceh-btn .ceh-icon { width: 1.1rem; height: 1.1rem; stroke-width: 2.6; }

.ceh-btn--primary { background: var(--ceh-green); color: #fff; box-shadow: 0 6px 16px rgba(58, 122, 29, .22); }
.ceh-btn--primary:hover,
.ceh-btn--primary:focus-visible { background: var(--ceh-green-dark); color: #fff; }

.ceh-btn--sm { min-height: 42px; padding: .55rem 1rem; font-size: .8rem; }

/* ==========================================================================
   5. Barre supérieure + en-tête
   ========================================================================== */
.ceh-topbar {
	display: none; /* sous 1200 px, son contenu passe dans le menu hamburger */
	background: var(--ceh-navy);
	color: #dbe6f3;
	font-size: .82rem;
	line-height: 1.3;
}
.ceh-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	min-height: 2.5rem;
	padding-block: .35rem;
}
.ceh-topbar__label { display: none; margin: 0; font-weight: 600; letter-spacing: .02em; }
.ceh-topbar__contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .35rem 1.4rem; list-style: none; }
.ceh-topbar__contact li { display: flex; align-items: center; gap: .45rem; }
.ceh-topbar__contact a { display: inline-flex; align-items: center; gap: .45rem; min-height: 32px; color: #fff; font-weight: 700; text-decoration: none; }
.ceh-topbar__contact a:hover { color: #fff; text-decoration: underline; }
.ceh-topbar .ceh-icon { width: 1rem; height: 1rem; color: var(--ceh-lime); }
.ceh-topbar :focus-visible { outline-color: #fff; }
.ceh-topbar__address { display: none !important; }

@media (min-width: 1200px) {
	.ceh-topbar { display: block; }
	.ceh-topbar__inner { justify-content: space-between; }
	.ceh-topbar__label { display: block; }
	.ceh-topbar__address { display: flex !important; }
}

.ceh-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, .97);
	border-bottom: 1px solid var(--ceh-line);
	box-shadow: 0 2px 10px rgba(14, 47, 85, .05);
	backdrop-filter: saturate(1.4) blur(8px);
}

.ceh-header__inner {
	display: flex;
	align-items: center;
	gap: .75rem;
	min-height: 4.5rem;
	padding-block: .6rem;
}

.ceh-brand { display: flex; align-items: center; gap: 1rem; margin-right: auto; }

.ceh-brand .custom-logo-link img,
.ceh-brand .custom-logo { width: auto; max-height: 52px; }

.ceh-logo {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	color: var(--ceh-navy);
	text-decoration: none;
}
.ceh-logo__icon { width: 2.4rem; height: 2.4rem; color: var(--ceh-green); }
.ceh-logo__text {
	font-size: .82rem;
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.ceh-brand__tagline {
	display: none;
	margin: 0;
	padding-left: 1rem;
	border-left: 2px solid var(--ceh-line);
	color: var(--ceh-navy);
	font-size: .85rem;
	font-style: italic;
	line-height: 1.35;
	max-width: 17rem;
}

/* Bouton menu (mobile) */
.ceh-burger {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	background: var(--ceh-white);
	border: 1px solid var(--ceh-line);
	border-radius: var(--ceh-radius-sm);
	color: var(--ceh-navy);
	cursor: pointer;
}
.ceh-burger .ceh-icon { grid-area: 1 / 1; }
.ceh-burger__close,
.ceh-burger[aria-expanded="true"] .ceh-burger__open { display: none; }
.ceh-burger[aria-expanded="true"] .ceh-burger__close { display: block; }

/* Navigation : panneau déroulant sur mobile */
.ceh-nav {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	max-height: calc(100vh - 4.5rem);
	max-height: calc(100dvh - 4.5rem);
	overflow-y: auto;
	padding: .5rem var(--ceh-gutter) 1.25rem;
	background: var(--ceh-white);
	border-bottom: 1px solid var(--ceh-line);
	box-shadow: 0 16px 24px rgba(14, 47, 85, .1);
	visibility: hidden;
	opacity: 0;
	transform: translateY(-.75rem);
	transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.ceh-nav.is-open {
	visibility: visible;
	opacity: 1;
	transform: none;
	transition: opacity .2s ease, transform .2s ease, visibility 0s;
}

/* Coordonnées (ex-barre supérieure) en bas du menu mobile */
.ceh-nav__contact {
	margin: 1.25rem calc(var(--ceh-gutter) * -1) -1.25rem;
	padding: 1.25rem var(--ceh-gutter) 1.4rem;
	background: var(--ceh-navy);
	color: #dbe6f3;
	font-size: .9rem;
}
.ceh-nav__contact-label { margin: 0; color: #fff; font-weight: 800; }
.ceh-nav__contact-sub { margin: .15rem 0 .9rem; font-size: .82rem; }
.ceh-nav__contact ul { display: grid; gap: .35rem; }
.ceh-nav .ceh-nav__contact li { display: flex; align-items: center; gap: .6rem; border: 0; }
.ceh-nav .ceh-nav__contact a:not(.ceh-btn) {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	min-height: 44px;
	padding: 0;
	color: #fff;
	font-weight: 700;
	white-space: normal;
	word-break: break-word;
}
.ceh-nav .ceh-nav__contact a:not(.ceh-btn):hover { color: #fff; text-decoration: underline; }
.ceh-nav__contact .ceh-icon { width: 1.1rem; height: 1.1rem; color: var(--ceh-lime); }
.ceh-nav__contact :focus-visible { outline-color: #fff; }
.ceh-nav ul { list-style: none; }
.ceh-nav li + li { border-top: 1px solid var(--ceh-line); }
.ceh-nav a:not(.ceh-btn) {
	display: block;
	padding: .85rem 0;
	color: var(--ceh-ink);
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}
.ceh-nav a:not(.ceh-btn):hover { color: var(--ceh-green-dark); text-decoration: underline; }
.ceh-nav__cta { width: 100%; margin-top: .75rem; }

.ceh-header__cta { display: none; flex: none; }

@media (min-width: 560px) {
	.ceh-header__cta { display: inline-flex; }
	.ceh-nav__cta { display: none; }
}

@media (min-width: 760px) {
	.ceh-brand__tagline { display: block; }
}

@media (min-width: 1200px) {
	.ceh-burger { display: none; }
	.ceh-nav,
	.ceh-nav.is-open {
		display: block;
		position: static;
		max-height: none;
		overflow: visible;
		padding: 0;
		background: none;
		border: 0;
		box-shadow: none;
		visibility: visible;
		opacity: 1;
		transform: none;
		transition: none;
	}
	.ceh-nav__contact { display: none; }
	.ceh-nav ul { display: flex; gap: 1.15rem; }
	.ceh-nav li + li { border: 0; }
	.ceh-nav a:not(.ceh-btn) { padding: .5rem 0; font-size: .9rem; }
	.ceh-brand__tagline { display: none; }
}

@media (min-width: 1440px) {
	.ceh-brand__tagline { display: block; }
}

/* ==========================================================================
   6. Bandeau principal
   ========================================================================== */
.ceh-hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(180deg, var(--ceh-soft) 0%, var(--ceh-white) 100%);
}

.ceh-hero__grid {
	display: grid;
	gap: 1.75rem;
	padding-block: 2rem 2.5rem;
}

.ceh-tag {
	display: inline-block;
	margin-bottom: 1rem;
	padding: .3rem .7rem;
	background: var(--ceh-green-soft);
	border: 1px solid #cfe5bd;
	border-radius: 6px;
	color: var(--ceh-green-dark);
	font-size: .8rem;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.ceh-hero__title {
	font-size: clamp(1.85rem, 1.1rem + 3.4vw, 3.2rem);
	font-weight: 800;
	line-height: 1.12;
}

.ceh-hl {
	color: var(--ceh-green);
	background: linear-gradient(transparent 72%, rgba(140, 198, 63, .35) 72%);
}

.ceh-hero__lead {
	color: var(--ceh-blue);
	font-size: clamp(1.1rem, 1rem + .6vw, 1.45rem);
	font-weight: 600;
	line-height: 1.4;
	max-width: 32rem;
}

.ceh-hero__rule {
	display: block;
	width: 4.5rem;
	height: 5px;
	margin: 1.25rem 0 1.5rem;
	background: var(--ceh-lime);
	border-radius: 3px;
}

.ceh-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.ceh-hero__note { margin: 0; color: var(--ceh-muted); font-size: .9rem; font-weight: 600; }

.ceh-hero__media {
	position: relative;
	min-height: 15rem;
	border-radius: var(--ceh-radius);
	overflow: hidden;
	background: var(--ceh-soft-2);
	box-shadow: var(--ceh-shadow);
}
.ceh-hero__media--empty {
	background:
		linear-gradient(135deg, rgba(27, 79, 138, .10), rgba(140, 198, 63, .18)),
		repeating-linear-gradient(90deg, transparent 0 46px, rgba(14, 47, 85, .05) 46px 48px),
		var(--ceh-soft-2);
}

.ceh-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ceh-hero__badge {
	position: absolute;
	right: .75rem;
	top: .75rem;
	display: flex;
	align-items: center;
	gap: .7rem;
	margin: 0;
	padding: .7rem 1rem;
	background: var(--ceh-green);
	border: 2px solid rgba(255, 255, 255, .85);
	border-radius: var(--ceh-radius-sm);
	color: #fff;
	font-size: .85rem;
	font-weight: 700;
	line-height: 1.3;
	box-shadow: 0 8px 20px rgba(14, 47, 85, .2);
}
.ceh-hero__badge .ceh-icon { width: 2rem; height: 2rem; }
.ceh-hero__badge strong { font-weight: 800; }

@media (min-width: 960px) {
	.ceh-hero__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
		align-items: center;
		gap: 3rem;
		padding-block: 3.5rem 4rem;
	}
	.ceh-hero__media { min-height: 26rem; }
	.ceh-hero__badge { right: 1.25rem; top: 1.25rem; font-size: 1rem; padding: .9rem 1.3rem; }
	.ceh-hero__badge .ceh-icon { width: 2.6rem; height: 2.6rem; }
}

/* ==========================================================================
   7. Sections génériques
   ========================================================================== */
.ceh-section { padding-block: 3rem; }
.ceh-section--soft { background: var(--ceh-soft); }

@media (min-width: 960px) {
	.ceh-section { padding-block: 4.5rem; }
}

.ceh-section__head { max-width: 46rem; margin-bottom: 2rem; }
.ceh-section__head p { color: var(--ceh-muted); font-size: 1.05rem; }
.ceh-section__head .ceh-eyebrow { color: var(--ceh-green-dark); font-size: .8rem; }
.ceh-section__sub { color: var(--ceh-muted); font-weight: 600; margin-bottom: 1.25rem; }

.ceh-h2 { font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.2rem); }

.ceh-eyebrow {
	margin-bottom: .6rem;
	color: var(--ceh-green-dark);
	font-size: .8rem;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.ceh-lead { font-size: 1.1rem; font-weight: 600; color: var(--ceh-navy); }

.ceh-center { margin-top: 2.25rem; text-align: center; }

.ceh-disclaimer {
	display: flex;
	gap: .6rem;
	align-items: flex-start;
	margin: 1.5rem 0;
	color: var(--ceh-muted);
	font-size: .92rem;
}
.ceh-disclaimer .ceh-icon { width: 1.25rem; height: 1.25rem; margin-top: .1rem; color: var(--ceh-blue); }

/* Listes cochées */
.ceh-checklist { list-style: none; display: grid; gap: .45rem; }
.ceh-checklist li { display: flex; gap: .6rem; align-items: flex-start; }
.ceh-checklist .ceh-icon {
	width: 1.25rem;
	height: 1.25rem;
	margin-top: .15rem;
	color: var(--ceh-green);
	stroke-width: 3;
}

.ceh-checklist--grid { gap: .65rem 2rem; }
@media (min-width: 640px) {
	.ceh-checklist--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==========================================================================
   8. Présentation + formulaire
   ========================================================================== */
.ceh-intro { padding-top: 2rem; }

/* Mise en page contenu + formulaire.
   Mobile / tablette : le formulaire suit la présentation.
   Grand écran : colonne latérale, formulaire fixe pendant le défilement. */
.ceh-layout__aside { padding: 0 var(--ceh-gutter) 3rem; }
.ceh-layout__aside .ceh-form-card { max-width: 40rem; margin-inline: auto; }

@media (min-width: 1200px) {
	.ceh-layout {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 25rem;
		column-gap: 3rem;
		max-width: var(--ceh-wrap);
		margin-inline: auto;
		padding-inline: var(--ceh-gutter);
	}
	.ceh-layout > .ceh-section { grid-column: 1; }
	.ceh-layout > .ceh-section > .ceh-wrap { max-width: none; padding-inline: 0; }

	/* Fonds pleine largeur des sections teintées malgré la colonne. */
	.ceh-layout > .ceh-section--soft {
		box-shadow: 0 0 0 100vmax var(--ceh-soft);
		clip-path: inset(0 -100vmax);
	}

	.ceh-layout__aside {
		grid-column: 2;
		grid-row: 1 / span 20;
		position: relative;
		z-index: 2;
		padding: 2rem 0 4.5rem;
	}
	/* Sans défilement interne : la carte suit la page puis se fixe en haut ou en bas
	   de l'écran (la valeur de top est ajustée par main.js si elle dépasse l'écran). */
	.ceh-layout__aside .ceh-form-card {
		position: sticky;
		top: var(--ceh-sticky-top, 5.5rem);
		max-width: none;
		background: var(--ceh-white);
		box-shadow: var(--ceh-shadow);
	}

	/* Colonne principale plus étroite : grilles resserrées. */
	.ceh-layout .ceh-cards,
	.ceh-layout .ceh-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ceh-layout .ceh-plan,
	.ceh-layout .ceh-split:not(.ceh-split--noimg) { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
	.ceh-layout .ceh-split__img { aspect-ratio: 16 / 9; }
}


.ceh-intro__question { font-size: 1.15rem; line-height: 1.4; }
.ceh-intro__text { font-size: 1.05rem; }

.ceh-callout {
	display: flex;
	gap: 1.1rem;
	margin: 1.75rem 0 2.25rem;
	padding: 1.4rem;
	background: var(--ceh-green-soft);
	border: 1px solid #d5e8c5;
	border-radius: var(--ceh-radius);
}
.ceh-callout__icon { width: 3rem; height: 3rem; color: var(--ceh-green); }
.ceh-callout__title { font-size: 1.25rem; margin-bottom: .4rem; }
.ceh-callout p { margin-bottom: .6em; }

.ceh-lists { display: grid; gap: 2rem; }
@media (min-width: 700px) {
	.ceh-lists { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ceh-lists__col + .ceh-lists__col { padding-left: 2rem; border-left: 1px solid var(--ceh-line); }
}
.ceh-lists__title { display: flex; align-items: center; gap: .55rem; font-size: 1.15rem; }
.ceh-lists__title .ceh-icon { width: 2rem; height: 2rem; color: var(--ceh-blue); }

/* Boutons « Vous avez un projet ? » */
.ceh-project {
	margin-top: 2.5rem;
	padding: 1.4rem;
	background: var(--ceh-soft);
	border-radius: var(--ceh-radius);
}
.ceh-project__title { font-size: 1.5rem; }

.ceh-choices { list-style: none; display: grid; gap: .75rem; }
@media (min-width: 640px) {
	.ceh-choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.ceh-choice {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: .75rem;
	height: 100%;
	min-height: 4.5rem;
	padding: 1rem;
	background: var(--ceh-white);
	border: 2px solid var(--ceh-blue);
	border-radius: var(--ceh-radius-sm);
	color: var(--ceh-navy);
	font-size: .88rem;
	font-weight: 800;
	line-height: 1.25;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color .15s, border-color .15s, transform .15s;
}
.ceh-choice:hover,
.ceh-choice:focus-visible { background: var(--ceh-green-soft); border-color: var(--ceh-green); color: var(--ceh-navy); }
.ceh-choice__icon { width: 2rem; height: 2rem; color: var(--ceh-green); }
.ceh-choice__arrow { width: 1.1rem; height: 1.1rem; stroke-width: 2.8; }

@media (min-width: 640px) {
	.ceh-choice { grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; text-align: center; padding: 1.1rem .9rem; }
	.ceh-choice__icon { grid-column: 1 / -1; justify-self: center; width: 2.4rem; height: 2.4rem; }
	.ceh-choice__label { align-self: center; }
}

.ceh-contact-note {
	display: flex;
	align-items: flex-start;
	gap: .9rem;
	margin-top: 1.75rem;
	font-size: 1rem;
}
.ceh-contact-note .ceh-icon { width: 2.4rem; height: 2.4rem; color: var(--ceh-green); }
.ceh-contact-note strong { display: block; color: var(--ceh-navy); font-size: 1.1rem; }

/* Carte formulaire */
.ceh-form-card {
	padding: 1.4rem 1.1rem;
	background: var(--ceh-soft);
	border: 1px solid var(--ceh-line);
	border-radius: var(--ceh-radius);
	scroll-margin-top: 5.5rem;
}
.ceh-form-card:focus { outline: none; }
.ceh-form-card:focus-visible { outline: 3px solid var(--ceh-focus); outline-offset: 3px; }

@media (min-width: 640px) {
	.ceh-form-card { padding: 2rem 1.75rem; }
}

.ceh-form-card__title { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); margin-bottom: .3rem; }
.ceh-form-card__lead { color: var(--ceh-ink); margin-bottom: 1.25rem; }
.ceh-form-card__status { margin: 0; color: var(--ceh-green-dark); font-size: .9rem; font-weight: 700; }
.ceh-form-card__status:not(:empty) { margin-bottom: 1rem; }
.ceh-form-card__foot { margin-top: 1rem; color: var(--ceh-muted); font-size: .85rem; }

.ceh-notice {
	padding: 1rem;
	background: #fff8e5;
	border: 1px solid #f0d58a;
	border-radius: var(--ceh-radius-sm);
	font-size: .95rem;
}

/* ==========================================================================
   9. Habillage Forminator (style de formulaire « Aucun » / « None » conseillé)
   ========================================================================== */
.ceh-form .forminator-ui,
.ceh-form .forminator-ui * { font-family: var(--ceh-font) !important; }

.ceh-form .forminator-row { margin-bottom: 1rem !important; }

.ceh-form .forminator-label,
.ceh-form .forminator-ui label {
	display: block;
	margin-bottom: .3rem;
	color: var(--ceh-ink) !important;
	font-size: .85rem !important;
	font-weight: 700 !important;
	line-height: 1.35 !important;
}

.ceh-form .forminator-required { color: #b3261e !important; }

.ceh-form input[type="text"],
.ceh-form input[type="email"],
.ceh-form input[type="tel"],
.ceh-form input[type="number"],
.ceh-form input[type="date"],
.ceh-form input[type="url"],
.ceh-form select,
.ceh-form textarea,
.ceh-form .forminator-input,
.ceh-form .forminator-textarea {
	width: 100%;
	min-height: 46px;
	padding: .65rem .8rem !important;
	background: var(--ceh-white) !important;
	border: 1px solid #76859a !important;
	border-radius: var(--ceh-radius-sm) !important;
	color: var(--ceh-ink) !important;
	font-size: 1rem !important;
	line-height: 1.4 !important;
	box-shadow: none !important;
}
.ceh-form textarea,
.ceh-form .forminator-textarea { min-height: 7rem; }

.ceh-form input:focus,
.ceh-form select:focus,
.ceh-form textarea:focus {
	border-color: var(--ceh-blue) !important;
	outline: 3px solid rgba(27, 79, 138, .25) !important;
	outline-offset: 0 !important;
}

.ceh-form input[type="radio"],
.ceh-form input[type="checkbox"] { width: 1.15rem; height: 1.15rem; accent-color: var(--ceh-green); }

.ceh-form .forminator-radio,
.ceh-form .forminator-checkbox {
	display: inline-flex !important;
	align-items: center;
	gap: .4rem;
	margin: 0 1.1rem .35rem 0 !important;
	font-weight: 600 !important;
}

.ceh-form .forminator-description,
.ceh-form .forminator-field-description { color: var(--ceh-muted) !important; font-size: .8rem !important; }

.ceh-form .forminator-error-message,
.ceh-form .forminator-has_error .forminator-description {
	color: #b3261e !important;
	font-size: .82rem !important;
	font-weight: 700 !important;
}
.ceh-form .forminator-has_error input,
.ceh-form .forminator-has_error select,
.ceh-form .forminator-has_error textarea { border-color: #b3261e !important; }

.ceh-form .forminator-file-upload,
.ceh-form .forminator-multi-upload {
	padding: .9rem !important;
	background: var(--ceh-white) !important;
	border: 1px dashed #76859a !important;
	border-radius: var(--ceh-radius-sm) !important;
}

.ceh-form .forminator-button-submit,
.ceh-form button[type="submit"] {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	padding: .9rem 1.4rem !important;
	background: var(--ceh-green) !important;
	border: 0 !important;
	border-radius: var(--ceh-radius-sm) !important;
	color: #fff !important;
	font-size: 1rem !important;
	font-weight: 800 !important;
	letter-spacing: .03em;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: 0 6px 16px rgba(58, 122, 29, .22) !important;
}
.ceh-form .forminator-button-submit:hover,
.ceh-form .forminator-button-submit:focus-visible { background: var(--ceh-green-dark) !important; }

.ceh-form .forminator-response-message { border-radius: var(--ceh-radius-sm) !important; font-weight: 600; }

/* Mise en évidence du champ présélectionné par un bouton */
.ceh-preselected { animation: ceh-flash 2.4s ease-out; border-radius: var(--ceh-radius-sm); }
@keyframes ceh-flash {
	0%, 40% { box-shadow: 0 0 0 4px rgba(140, 198, 63, .55); }
	100% { box-shadow: 0 0 0 4px rgba(140, 198, 63, 0); }
}

/* ==========================================================================
   10. Plan de financement
   ========================================================================== */
.ceh-plan { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 960px) {
	.ceh-plan { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 3rem; }
}
.ceh-plan__text p:not(.ceh-eyebrow) { font-size: 1.05rem; }

.ceh-pills { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; }
.ceh-pills li {
	padding: .55rem 1rem;
	background: var(--ceh-white);
	border: 1px solid var(--ceh-line);
	border-radius: 999px;
	color: var(--ceh-navy);
	font-weight: 700;
	box-shadow: 0 1px 2px rgba(14, 47, 85, .05);
}

/* ==========================================================================
   11. Cartes dispositifs
   ========================================================================== */
.ceh-cards { list-style: none; display: grid; gap: 1rem; }
@media (min-width: 640px) { .ceh-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ceh-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.ceh-card {
	padding: 1.4rem;
	background: var(--ceh-white);
	border: 1px solid var(--ceh-line);
	border-top: 4px solid var(--ceh-green);
	border-radius: var(--ceh-radius);
	box-shadow: var(--ceh-shadow);
}
.ceh-card__kicker { margin-bottom: .4rem; color: var(--ceh-navy); font-size: 1.3rem; font-weight: 800; }
.ceh-card p:not(.ceh-card__kicker) { color: var(--ceh-muted); }

/* ==========================================================================
   12. Étapes
   ========================================================================== */
.ceh-steps { list-style: none; display: grid; gap: 1rem; counter-reset: none; }
@media (min-width: 640px) { .ceh-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ceh-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.ceh-step {
	position: relative;
	padding: 1.5rem 1.4rem;
	background: var(--ceh-soft);
	border-radius: var(--ceh-radius);
}
.ceh-step__num {
	display: inline-grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	margin-bottom: 1rem;
	background: var(--ceh-navy);
	border-radius: 50%;
	color: #fff;
	font-weight: 800;
}
.ceh-step__title { font-size: 1.1rem; }
.ceh-step p { color: var(--ceh-muted); }

/* ==========================================================================
   13. Bloc texte + image (étanchéité)
   ========================================================================== */
.ceh-split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 960px) {
	.ceh-split:not(.ceh-split--noimg) { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 3.5rem; }
	.ceh-split--noimg .ceh-split__text { max-width: 52rem; }
}
.ceh-split__media { border-radius: var(--ceh-radius); overflow: hidden; box-shadow: var(--ceh-shadow); }
.ceh-split__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ceh-split .ceh-checklist { margin-top: 1.25rem; }

/* ==========================================================================
   14. Ils nous font confiance (habillage du plugin CEH Carrousel Confiance)
   Le plugin fournit le balisage et le défilement ; le thème n'en modifie pas
   les largeurs ni les positions (calculées par le plugin), seulement l'aspect.
   ========================================================================== */
.ceh-trust { background: var(--ceh-white); }
.ceh-trust__head { margin-inline: auto; text-align: center; }

.ceh-trust__carousel {
	position: relative;
	color: var(--ceh-ink);
	font-family: var(--ceh-font);
}

/* Titre éventuellement fourni par le plugin */
.ceh-trust__carousel :is(h2, h3) {
	margin: 0 auto 2rem;
	color: var(--ceh-navy);
	font-family: var(--ceh-font);
	font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.2rem);
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
}
.ceh-trust__carousel :is(h2, h3)::after {
	content: "";
	display: block;
	width: 3rem;
	height: 4px;
	margin: .8rem auto 0;
	background: var(--ceh-lime);
	border-radius: 2px;
}
.ceh-trust__carousel p { color: var(--ceh-muted); text-align: center; }

/* Listes : pas de puces */
.ceh-trust__carousel ul,
.ceh-trust__carousel ol { margin: 0; padding: 0; list-style: none; }

/* Chaque logo dans une carte blanche homogène */
.ceh-trust__carousel :is(li, figure, .swiper-slide, .slick-slide, [class*="item"], [class*="slide"], [class*="logo"]):has(img):not(:has(:is(li, figure, .swiper-slide, .slick-slide, [class*="item"], [class*="slide"], [class*="logo"]) img)) {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	min-height: 7rem;
	margin-block: 0;
	padding: 1rem 1.25rem;
	background: var(--ceh-white);
	border: 1px solid var(--ceh-line);
	border-radius: var(--ceh-radius);
	box-shadow: 0 1px 2px rgba(14, 47, 85, .05);
	text-align: center;
	transition: border-color .2s, box-shadow .2s;
}
.ceh-trust__carousel :is(li, figure, .swiper-slide, .slick-slide, [class*="item"], [class*="slide"], [class*="logo"]):has(img):hover {
	border-color: #b9cbe0;
	box-shadow: var(--ceh-shadow);
}

.ceh-trust__carousel img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 64px;
	margin-inline: auto;
	object-fit: contain;
	transition: filter .25s, opacity .25s;
}
/* Logos en gris, couleur au survol : seulement avec une souris (sur tactile, en couleur). */
@media (hover: hover) {
	.ceh-trust__carousel img { filter: grayscale(1); opacity: .75; }
	.ceh-trust__carousel :is(a, li, figure, div):hover > img,
	.ceh-trust__carousel a:hover img,
	.ceh-trust__carousel a:focus-visible img { filter: none; opacity: 1; }
}

.ceh-trust__carousel figcaption,
.ceh-trust__carousel [class*="caption"],
.ceh-trust__carousel [class*="name"] {
	color: var(--ceh-muted);
	font-size: .85rem;
	font-weight: 600;
	line-height: 1.35;
}

.ceh-trust__carousel a { color: var(--ceh-navy); text-decoration: none; }
.ceh-trust__carousel a:focus-visible { outline: 3px solid var(--ceh-focus); outline-offset: 3px; border-radius: var(--ceh-radius-sm); }

/* Flèches précédent / suivant */
.ceh-trust__carousel button,
.ceh-trust__carousel :is(.swiper-button-prev, .swiper-button-next, .slick-prev, .slick-next, [class*="prev"], [class*="next"], [class*="arrow"]):not(img) {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	min-height: 44px;
	background: var(--ceh-white);
	border: 1px solid var(--ceh-line);
	border-radius: 50%;
	color: var(--ceh-navy);
	font-family: var(--ceh-font);
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(14, 47, 85, .12);
	transition: background-color .15s, color .15s, border-color .15s;
}
.ceh-trust__carousel button:hover,
.ceh-trust__carousel :is(.swiper-button-prev, .swiper-button-next, .slick-prev, .slick-next, [class*="prev"], [class*="next"], [class*="arrow"]):not(img):hover {
	background: var(--ceh-navy);
	border-color: var(--ceh-navy);
	color: #fff;
}
.ceh-trust__carousel :is(.swiper-button-prev, .swiper-button-next)::after { font-size: 1rem; font-weight: 800; }

/* Pagination (puces) */
.ceh-trust__carousel :is(.swiper-pagination-bullet, .slick-dots button, [class*="dot"]:not(:has(*))) {
	width: 10px;
	min-width: 10px;
	height: 10px;
	min-height: 10px;
	padding: 0;
	background: #b9c6d6;
	border: 0;
	border-radius: 50%;
	box-shadow: none;
	opacity: 1;
	font-size: 0;
}
.ceh-trust__carousel :is(.swiper-pagination-bullet-active, .slick-active button, [class*="dot"][class*="active"], [aria-current="true"]) {
	width: 24px;
	min-width: 24px;
	border-radius: 999px;
	background: var(--ceh-green);
}
.ceh-trust__carousel :is(.swiper-pagination, .slick-dots, [class*="dots"], [class*="pagination"]) {
	display: flex;
	justify-content: center;
	gap: .5rem;
	margin-top: 1.5rem;
}

/* ==========================================================================
   15. Questions fréquentes
   ========================================================================== */
.ceh-faq { max-width: 54rem; }
.ceh-faq__list { display: grid; gap: .75rem; }
.ceh-faq__item {
	background: var(--ceh-white);
	border: 1px solid var(--ceh-line);
	border-radius: var(--ceh-radius-sm);
}
.ceh-faq__item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.1rem 1.25rem;
	color: var(--ceh-navy);
	font-size: 1.02rem;
	font-weight: 800;
	line-height: 1.4;
	list-style: none;
	cursor: pointer;
}
.ceh-faq__item summary::-webkit-details-marker { display: none; }
.ceh-faq__icon { width: 1.3rem; height: 1.3rem; color: var(--ceh-green); stroke-width: 2.6; transition: transform .2s; }
.ceh-faq__item[open] .ceh-faq__icon { transform: rotate(45deg); }
.ceh-faq__item p { padding: 0 1.25rem 1.2rem; color: var(--ceh-muted); }

/* ==========================================================================
   17. Pied de page
   ========================================================================== */
.ceh-footer {
	padding-block: 0 1.5rem;
	background: var(--ceh-navy);
	color: #cfdbea;
	font-size: .92rem;
	line-height: 1.6;
}
.ceh-footer a { color: #fff; text-underline-offset: .2em; }
.ceh-footer a:hover { color: var(--ceh-lime); }
.ceh-footer :focus-visible { outline-color: #fff; }

/* Bandeau d'appel */
.ceh-footer__cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem 2rem;
	padding: 2rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.ceh-footer__cta p { margin: 0; max-width: 42rem; }
.ceh-footer__cta-title { color: #fff; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); font-weight: 800; line-height: 1.25; margin-bottom: .35rem !important; }
.ceh-footer .ceh-btn--primary { color: #fff; box-shadow: none; }
.ceh-footer .ceh-btn--primary:hover { color: #fff; }

/* Colonnes */
.ceh-footer__grid { display: grid; gap: 2rem; padding-block: 2.5rem; }
@media (min-width: 640px) { .ceh-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ceh-footer__grid { grid-template-columns: 1.5fr 1fr 1.3fr 1.4fr; gap: 2.5rem; } }

.ceh-footer__col p { margin: 0 0 .9rem; }
.ceh-footer__title {
	margin-bottom: 1rem !important;
	color: #fff;
	font-size: .82rem;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.ceh-footer__title::after {
	content: "";
	display: block;
	width: 2rem;
	height: 3px;
	margin-top: .55rem;
	background: var(--ceh-lime);
	border-radius: 2px;
}

.ceh-footer__logo { margin-bottom: .9rem; }
.ceh-footer__logo .ceh-logo { color: #fff; }
.ceh-footer__logo .ceh-logo__icon { color: var(--ceh-lime); }
.ceh-footer__logo .custom-logo-link {
	display: inline-block;
	padding: .5rem .75rem;
	background: #fff;
	border-radius: var(--ceh-radius-sm);
}
.ceh-footer__logo .custom-logo { width: auto; max-height: 48px; }
.ceh-footer__tagline { color: #fff; font-style: italic; font-weight: 600; }

.ceh-footer__social { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font-weight: 700; text-decoration: none; }
.ceh-footer__social .ceh-icon { width: 1.4rem; height: 1.4rem; }

.ceh-footer__list { list-style: none; display: grid; gap: .1rem; }
.ceh-footer__list a { display: inline-block; padding: .3rem 0; color: #dbe6f3; text-decoration: none; }
.ceh-footer__list a:hover { color: #fff; text-decoration: underline; }
.ceh-footer__list--plain { gap: .6rem; }
.ceh-footer__list--plain strong { color: #fff; }

.ceh-footer__contact { list-style: none; display: grid; gap: .8rem; }
.ceh-footer__contact li { display: flex; gap: .7rem; align-items: flex-start; }
.ceh-footer__contact .ceh-icon { width: 1.2rem; height: 1.2rem; margin-top: .2rem; color: var(--ceh-lime); }
.ceh-footer__contact strong { color: #fff; }
.ceh-footer__contact a { word-break: break-word; }

/* Mentions */
.ceh-footer__mentions {
	display: grid;
	gap: 1rem;
	padding: 1.5rem;
	background: rgba(255, 255, 255, .06);
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: var(--ceh-radius);
	font-size: .85rem;
}
@media (min-width: 860px) {
	.ceh-footer__mentions { grid-template-columns: 1fr 1fr; gap: 1rem 2.5rem; }
	.ceh-footer__legal { grid-column: 1 / -1; }
}
.ceh-footer__mention { display: flex; gap: .75rem; align-items: flex-start; margin: 0; color: #fff; font-weight: 600; }
.ceh-footer__mention .ceh-icon { width: 1.4rem; height: 1.4rem; color: var(--ceh-lime); }
.ceh-footer__legal { margin: 0; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .12); color: #cfdbea; }

/* Barre légale */
.ceh-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .75rem 1.5rem;
	padding-top: 1.5rem;
	color: #cfdbea;
	font-size: .85rem;
}
.ceh-footer__bottom p { margin: 0; }
.ceh-footer__nav { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; }
.ceh-footer__links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; list-style: none; }
.ceh-footer__links a { color: #dbe6f3; }

.ceh-cookies-btn {
	min-height: 44px;
	padding: .4rem 1rem;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, .55);
	border-radius: 999px;
	color: #fff;
	font: inherit;
	font-size: .85rem;
	font-weight: 700;
	cursor: pointer;
}
.ceh-cookies-btn:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }

/* ==========================================================================
   18. Pages simples
   ========================================================================== */
.ceh-default { padding-block: 3rem 4rem; }
.ceh-prose { max-width: 50rem; }
.ceh-prose h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); }
.ceh-prose h2 { margin-top: 1.8em; font-size: 1.5rem; }
.ceh-prose ul,
.ceh-prose ol { margin: 0 0 1em 1.25em; padding: 0; }
.ceh-prose article + article { margin-top: 2.5rem; }

/* ==========================================================================
   19. Mouvement réduit & impression
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
	.ceh-header, .ceh-footer__nav, .ceh-form-card, .ceh-choices, .ceh-btn { display: none !important; }
}
