/**
 * Hub /espaces/ — styles dédiés (chargés uniquement dans l'arbre /espaces/).
 *
 * Conventions :
 *   - Palette : héritée des variables globales du thème (--fdf-bg, --fdf-text,
 *     --fdf-surface, --fdf-border, --fdf-muted, --fdf-cta-blue, --fdf-cta-red),
 *     qui basculent déjà automatiquement entre auto / [data-theme="light"] /
 *     [data-theme="dark"] (cf. fdf_get_inline_css() dans le thème).
 *   - Les variables locales --fdf-esp-* sont des alias + des overrides
 *     spécifiques (gradients hero, ombrages, focus) gérés en miroir pour
 *     l'auto-dark (media query) et le dark forcé ([data-theme="dark"]).
 *   - Police : Outfit (déclarée dans le thème).
 *   - Préfixe BEM : .fdf-esp-* (distinct du shortcode bandeau .fdf-espaces__*).
 *   - Mobile-first + grilles auto-fit, focus visibles AA, contrastes >= 4.5:1.
 */

/* ----- Tokens light (défaut) — aliasés sur les variables thème ----- */

.fdf-esp {
	--fdf-esp-max: 1140px;
	--fdf-esp-radius: 12px;
	--fdf-esp-radius-sm: 8px;

	/* Sémantiques — suivent automatiquement le thème global */
	--fdf-esp-bg:          var(--fdf-bg, #ffffff);
	--fdf-esp-text:        var(--fdf-text, #0a0a0a);
	--fdf-esp-muted:       var(--fdf-muted, #737373);
	--fdf-esp-mutedlight:  var(--fdf-muted, #737373);
	--fdf-esp-border:      var(--fdf-border, #e5e5e5);
	--fdf-esp-surface:     var(--fdf-surface, #f5f5f5);
	--fdf-esp-blue:        var(--fdf-cta-blue, #0200ff);
	--fdf-esp-red:         var(--fdf-cta-red, #d00100);
	--fdf-esp-anthracite:  #171717;

	/* Locaux — light par défaut */
	--fdf-esp-card-bg:     #ffffff;
	--fdf-esp-surface-2:   #fafafa;
	--fdf-esp-shadow-sm:   0 4px 14px rgba(10, 10, 10, 0.05);
	--fdf-esp-shadow-md:   0 10px 32px rgba(10, 10, 10, 0.08);
	--fdf-esp-shadow-hover:0 18px 40px rgba(10, 10, 10, 0.12);
	--fdf-esp-focus:       0 0 0 3px rgba(2, 0, 255, 0.35);

	/* Hero gradients (light) */
	--fdf-esp-hero-bleu-bg:        linear-gradient(135deg, #f0f4ff 0%, #ffffff 55%, #f5f5f5 100%);
	--fdf-esp-hero-bleu-border:    #dbe4ff;
	--fdf-esp-hero-rouge-bg:       linear-gradient(135deg, #fff5f5 0%, #ffffff 50%, #fafafa 100%);
	--fdf-esp-hero-rouge-border:   #ffd6d6;
	--fdf-esp-hero-anth-bg:        linear-gradient(180deg, #171717 0%, #2a2a2a 45%, #f5f5f5 45.1%);

	/* Risk badge */
	--fdf-esp-risk-bg:     linear-gradient(135deg, #fff5f5 0%, #ffffff 55%, #fafafa 100%);
	--fdf-esp-risk-border: #ffd6d6;

	/* Bouton primary "inverse du fond de page" — toujours bien contrasté. */
	--fdf-esp-btn-bg:      #0a0a0a;
	--fdf-esp-btn-fg:      #ffffff;
	--fdf-esp-btn-bg-hover: #171717;

	/* CTA "noir sur clair" / "blanc sur sombre" : encart inversé
	   visuellement identique en light et en dark (look brand). */
	--fdf-esp-cta-bg:      #0a0a0a;
	--fdf-esp-cta-text:    #ffffff;
	--fdf-esp-cta-btn-bg:  #ffffff;
	--fdf-esp-cta-btn-fg:  #0a0a0a;
	--fdf-esp-cta-btn-bg-hover: #f5f5f5;
}

/* ----- Overrides dark : appliqués en mode auto-dark et en dark forcé ----- */

@media (prefers-color-scheme: dark) {
	:root:not([data-theme]) .fdf-esp {
		--fdf-esp-card-bg:     #141414;
		--fdf-esp-surface-2:   #1f1f1f;
		--fdf-esp-shadow-sm:   0 4px 14px rgba(0, 0, 0, 0.5);
		--fdf-esp-shadow-md:   0 10px 32px rgba(0, 0, 0, 0.55);
		--fdf-esp-shadow-hover:0 18px 40px rgba(0, 0, 0, 0.6);
		--fdf-esp-focus:       0 0 0 3px rgba(77, 77, 255, 0.45);

		--fdf-esp-hero-bleu-bg:      linear-gradient(135deg, #0c1024 0%, #0a0a0a 60%, #111 100%);
		--fdf-esp-hero-bleu-border:  #1f234d;
		--fdf-esp-hero-rouge-bg:     linear-gradient(135deg, #1a0808 0%, #0a0a0a 50%, #111 100%);
		--fdf-esp-hero-rouge-border: #3a1a1a;
		--fdf-esp-hero-anth-bg:      linear-gradient(180deg, #171717 0%, #0a0a0a 45%, #0a0a0a 45.1%);

		--fdf-esp-risk-bg:     linear-gradient(135deg, #1a0808 0%, #0a0a0a 55%, #0f0f0f 100%);
		--fdf-esp-risk-border: #3a1a1a;

		--fdf-esp-btn-bg:      #ffffff;
		--fdf-esp-btn-fg:      #0a0a0a;
		--fdf-esp-btn-bg-hover: #f5f5f5;

		--fdf-esp-cta-bg:      #ffffff;
		--fdf-esp-cta-text:    #0a0a0a;
		--fdf-esp-cta-btn-bg:  #0a0a0a;
		--fdf-esp-cta-btn-fg:  #ffffff;
		--fdf-esp-cta-btn-bg-hover: #1f1f1f;
	}
}

[data-theme="dark"] .fdf-esp {
	--fdf-esp-card-bg:     #141414;
	--fdf-esp-surface-2:   #1f1f1f;
	--fdf-esp-shadow-sm:   0 4px 14px rgba(0, 0, 0, 0.5);
	--fdf-esp-shadow-md:   0 10px 32px rgba(0, 0, 0, 0.55);
	--fdf-esp-shadow-hover:0 18px 40px rgba(0, 0, 0, 0.6);
	--fdf-esp-focus:       0 0 0 3px rgba(77, 77, 255, 0.45);

	--fdf-esp-hero-bleu-bg:      linear-gradient(135deg, #0c1024 0%, #0a0a0a 60%, #111 100%);
	--fdf-esp-hero-bleu-border:  #1f234d;
	--fdf-esp-hero-rouge-bg:     linear-gradient(135deg, #1a0808 0%, #0a0a0a 50%, #111 100%);
	--fdf-esp-hero-rouge-border: #3a1a1a;
	--fdf-esp-hero-anth-bg:      linear-gradient(180deg, #171717 0%, #0a0a0a 45%, #0a0a0a 45.1%);

	--fdf-esp-risk-bg:     linear-gradient(135deg, #1a0808 0%, #0a0a0a 55%, #0f0f0f 100%);
	--fdf-esp-risk-border: #3a1a1a;

	--fdf-esp-btn-bg:      #ffffff;
	--fdf-esp-btn-fg:      #0a0a0a;
	--fdf-esp-btn-bg-hover: #f5f5f5;

	--fdf-esp-cta-bg:      #ffffff;
	--fdf-esp-cta-text:    #0a0a0a;
	--fdf-esp-cta-btn-bg:  #0a0a0a;
	--fdf-esp-cta-btn-fg:  #ffffff;
	--fdf-esp-cta-btn-bg-hover: #1f1f1f;
}

/* ----- Shell ----- */

.fdf-esp {
	font-family: Outfit, system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--fdf-esp-text);
	line-height: 1.65;
	font-weight: 400;
}

.fdf-esp *,
.fdf-esp *::before,
.fdf-esp *::after {
	box-sizing: border-box;
}

.fdf-esp a {
	color: var(--fdf-esp-blue);
	text-decoration: none;
	font-weight: 500;
	transition: color 0.15s ease;
}

.fdf-esp a:hover,
.fdf-esp a:focus-visible {
	text-decoration: underline;
}

.fdf-esp__inner {
	max-width: var(--fdf-esp-max);
	margin-left: auto;
	margin-right: auto;
	padding-left: clamp(16px, 4vw, 40px);
	padding-right: clamp(16px, 4vw, 40px);
}

.fdf-esp__wrap {
	padding-bottom: clamp(48px, 8vw, 112px);
}

/* ----- Breadcrumb ----- */

.fdf-esp-breadcrumb {
	font-size: 0.8125rem;
	color: var(--fdf-esp-mutedlight);
	padding: 1rem 0 0;
	margin-bottom: 0.5rem;
}

.fdf-esp-breadcrumb ol {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	align-items: center;
}

.fdf-esp-breadcrumb li {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.fdf-esp-breadcrumb li + li::before {
	content: "›";
	color: var(--fdf-esp-mutedlight);
}

.fdf-esp-breadcrumb a {
	color: var(--fdf-esp-mutedlight);
}

.fdf-esp-breadcrumb [aria-current="page"] {
	color: var(--fdf-esp-text);
	font-weight: 500;
}

/* ----- Hero ----- */

.fdf-esp-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
	background: var(--fdf-esp-surface);
	border-bottom: 1px solid var(--fdf-esp-border);
}

.fdf-esp-hero--bleu {
	background: var(--fdf-esp-hero-bleu-bg);
	border-bottom-color: var(--fdf-esp-hero-bleu-border);
}

.fdf-esp-hero--rouge {
	background: var(--fdf-esp-hero-rouge-bg);
	border-bottom-color: var(--fdf-esp-hero-rouge-border);
}

.fdf-esp-hero--anthracite {
	background: var(--fdf-esp-hero-anth-bg);
	color: #fff;
	border-bottom: none;
}

.fdf-esp-hero--anthracite .fdf-esp-hero__kicker {
	color: rgba(255, 255, 255, 0.85);
}

.fdf-esp-hero--anthracite .fdf-esp-hero__title {
	color: #fff;
}

.fdf-esp-hero--anthracite .fdf-esp-hero__lead {
	color: rgba(255, 255, 255, 0.88);
}

.fdf-esp-hero__kicker {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--fdf-esp-blue);
	margin: 0 0 0.75rem;
}

.fdf-esp-hero--rouge .fdf-esp-hero__kicker {
	color: var(--fdf-esp-red);
}

.fdf-esp-hero__title {
	font-size: clamp(2rem, 5vw, 3.25rem);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -1px;
	margin: 0 0 1rem;
	color: var(--fdf-esp-text);
}

.fdf-esp-hero__lead {
	font-size: clamp(1rem, 2vw, 1.25rem);
	color: var(--fdf-esp-muted);
	max-width: 60ch;
	margin: 0 0 1.5rem;
	font-weight: 400;
}

.fdf-esp-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
}

/* ----- Boutons ----- */

.fdf-esp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 0.875rem 1.5rem;
	border-radius: 8px;
	font-weight: 600;
	font-size: 0.9375rem;
	border: 1.5px solid transparent;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
	text-decoration: none !important;
	line-height: 1;
}

.fdf-esp-btn:hover {
	transform: translateY(-1px);
	text-decoration: none !important;
}

.fdf-esp-btn:focus-visible {
	outline: none;
	box-shadow: var(--fdf-esp-focus);
}

.fdf-esp-btn--primary {
	background: var(--fdf-esp-btn-bg);
	color: var(--fdf-esp-btn-fg) !important;
}

.fdf-esp-btn--primary:hover {
	background: var(--fdf-esp-btn-bg-hover);
}

.fdf-esp-btn--outline {
	background: transparent;
	color: var(--fdf-esp-text) !important;
	border-color: var(--fdf-esp-border);
}

.fdf-esp-btn--outline:hover {
	border-color: var(--fdf-esp-text);
}

.fdf-esp-hero--anthracite .fdf-esp-btn--outline {
	color: #fff !important;
	border-color: rgba(255, 255, 255, 0.5);
}

.fdf-esp-hero--anthracite .fdf-esp-btn--outline:hover {
	border-color: #fff;
}

/* ----- Sections ----- */

.fdf-esp-section {
	padding-top: clamp(40px, 6vw, 72px);
}

.fdf-esp-section__head {
	margin-bottom: clamp(20px, 3vw, 32px);
	max-width: 64ch;
}

.fdf-esp-section__title {
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 800;
	letter-spacing: -0.5px;
	line-height: 1.2;
	margin: 0 0 0.5rem;
	color: var(--fdf-esp-text);
}

.fdf-esp-section__lead {
	font-size: 1.0625rem;
	color: var(--fdf-esp-muted);
	margin: 0;
}

/* ----- Hub : grille des cartes profils ----- */

.fdf-esp-grid {
	list-style: none;
	margin: clamp(32px, 5vw, 56px) 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: clamp(14px, 2vw, 22px);
}

.fdf-esp-card-wrap {
	display: block;
}

.fdf-esp-card {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	background: var(--fdf-esp-card-bg);
	border: 1px solid var(--fdf-esp-border);
	border-radius: var(--fdf-esp-radius);
	padding: clamp(18px, 2.5vw, 26px);
	height: 100%;
	text-decoration: none !important;
	color: inherit;
	transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.2s ease;
	position: relative;
}

.fdf-esp-card:hover,
.fdf-esp-card:focus-visible {
	border-color: var(--fdf-esp-text);
	box-shadow: var(--fdf-esp-shadow-hover);
	transform: translateY(-2px);
	outline: none;
	text-decoration: none !important;
}

.fdf-esp-card:focus-visible {
	box-shadow: var(--fdf-esp-shadow-hover), var(--fdf-esp-focus);
}

.fdf-esp-card__icon {
	width: 48px;
	height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	background: var(--fdf-esp-surface);
	color: var(--fdf-esp-text);
	transition: background 0.2s ease, color 0.2s ease;
}

.fdf-esp-card:hover .fdf-esp-card__icon {
	background: var(--fdf-esp-btn-bg);
	color: var(--fdf-esp-btn-fg);
}

.fdf-esp-card__title {
	font-weight: 700;
	font-size: 1.1875rem;
	line-height: 1.25;
	color: var(--fdf-esp-text);
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
}

.fdf-esp-card__sub {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--fdf-esp-mutedlight);
}

.fdf-esp-card__pitch {
	color: var(--fdf-esp-muted);
	font-size: 0.9375rem;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.fdf-esp-card__bullets {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	font-size: 0.8125rem;
	color: var(--fdf-esp-muted);
	border-top: 1px dashed var(--fdf-esp-border);
	padding-top: 0.85rem;
}

.fdf-esp-card__bullets li {
	display: flex;
	gap: 0.3rem;
	line-height: 1.4;
}

.fdf-esp-card__bullets strong {
	color: var(--fdf-esp-text);
	font-weight: 600;
	white-space: nowrap;
}

.fdf-esp-card__cta {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-weight: 600;
	color: var(--fdf-esp-blue);
	font-size: 0.9375rem;
	padding-top: 0.5rem;
}

.fdf-esp-card:hover .fdf-esp-card__cta {
	gap: 0.55rem;
}

/* ----- Hub : section d'orientation ----- */

.fdf-esp-orient {
	margin-top: clamp(48px, 7vw, 80px);
	background: var(--fdf-esp-surface);
	border: 1px solid var(--fdf-esp-border);
	border-radius: var(--fdf-esp-radius);
	padding: clamp(24px, 4vw, 40px);
}

.fdf-esp-orient__title {
	font-size: clamp(1.25rem, 2.5vw, 1.625rem);
	font-weight: 800;
	margin: 0 0 0.5rem;
	letter-spacing: -0.3px;
	color: var(--fdf-esp-text);
}

.fdf-esp-orient__lead {
	color: var(--fdf-esp-muted);
	margin: 0 0 1.25rem;
}

.fdf-esp-orient__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 0.6rem 1.25rem;
}

.fdf-esp-orient__list li {
	line-height: 1.5;
}

.fdf-esp-orient__list a {
	display: block;
	color: var(--fdf-esp-text);
	padding: 0.5rem 0;
	border-bottom: 1px solid transparent;
	font-weight: 400;
}

.fdf-esp-orient__list a:hover,
.fdf-esp-orient__list a:focus-visible {
	text-decoration: none;
	border-bottom-color: var(--fdf-esp-text);
}

.fdf-esp-orient__list strong {
	font-weight: 600;
}

.fdf-esp-backhome {
	margin-top: clamp(32px, 5vw, 56px);
	font-size: 0.9375rem;
	color: var(--fdf-esp-mutedlight);
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
	align-items: center;
}

.fdf-esp-backhome a {
	color: var(--fdf-esp-text);
}

/* ----- Page profil : IconBlocks (Essentiel + Actions) ----- */

.fdf-esp-iconblocks {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1rem;
}

.fdf-esp-iconblocks--cols {
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: clamp(14px, 2vw, 22px);
}

.fdf-esp-iconblock {
	display: grid;
	grid-template-columns: auto auto 1fr;
	gap: 0.85rem;
	background: var(--fdf-esp-card-bg);
	border: 1px solid var(--fdf-esp-border);
	border-radius: var(--fdf-esp-radius-sm);
	padding: clamp(14px, 2vw, 20px);
	color: var(--fdf-esp-text);
	text-decoration: none !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fdf-esp-iconblocks--numbered .fdf-esp-iconblock {
	grid-template-columns: auto auto 1fr;
}

.fdf-esp-iconblock--link:hover,
.fdf-esp-iconblock--link:focus-visible {
	border-color: var(--fdf-esp-text);
	box-shadow: var(--fdf-esp-shadow-sm);
	outline: none;
}

.fdf-esp-iconblock__num {
	width: 28px;
	height: 28px;
	flex-shrink: 0;
	border-radius: 999px;
	background: var(--fdf-esp-btn-bg);
	color: var(--fdf-esp-btn-fg);
	font-weight: 700;
	font-size: 0.875rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.fdf-esp-iconblocks:not(.fdf-esp-iconblocks--numbered) .fdf-esp-iconblock__num {
	display: none;
}

.fdf-esp-iconblock__icon {
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	border-radius: 10px;
	background: var(--fdf-esp-surface);
	color: var(--fdf-esp-text);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.fdf-esp-iconblock__body {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	min-width: 0;
}

.fdf-esp-iconblock__title {
	font-weight: 700;
	font-size: 1.0625rem;
	line-height: 1.3;
	color: var(--fdf-esp-text);
}

.fdf-esp-iconblock__text {
	color: var(--fdf-esp-muted);
	font-size: 0.9375rem;
	line-height: 1.55;
}

.fdf-esp-iconblock__more {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	font-weight: 600;
	color: var(--fdf-esp-blue);
	font-size: 0.875rem;
	margin-top: 0.25rem;
}

.fdf-esp-iconblock--link:hover .fdf-esp-iconblock__more {
	gap: 0.5rem;
}

/* ----- Ressources ----- */

.fdf-esp-resources {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 0.75rem;
}

.fdf-esp-resource {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: flex-start;
	gap: 0.75rem;
	background: var(--fdf-esp-card-bg);
	border: 1px solid var(--fdf-esp-border);
	border-radius: var(--fdf-esp-radius-sm);
	padding: 0.85rem 1rem;
	color: var(--fdf-esp-text);
	text-decoration: none !important;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.fdf-esp-resource:hover,
.fdf-esp-resource:focus-visible {
	border-color: var(--fdf-esp-text);
	background: var(--fdf-esp-surface-2);
	outline: none;
}

.fdf-esp-resource__icon {
	width: 32px;
	height: 32px;
	flex-shrink: 0;
	border-radius: 8px;
	background: var(--fdf-esp-surface);
	color: var(--fdf-esp-text);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.fdf-esp-resource__body {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.fdf-esp-resource__title {
	font-weight: 600;
	font-size: 0.9375rem;
	color: var(--fdf-esp-text);
}

.fdf-esp-resource__text {
	font-size: 0.8125rem;
	color: var(--fdf-esp-muted);
	line-height: 1.45;
}

.fdf-esp-resource__ext {
	color: var(--fdf-esp-mutedlight);
	font-size: 0.875rem;
	align-self: center;
}

/* ----- RiskBadge ----- */

.fdf-esp-section--risk {
	padding-top: clamp(40px, 6vw, 72px);
}

.fdf-esp-risk {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: clamp(16px, 2.5vw, 28px);
	align-items: center;
	background: var(--fdf-esp-risk-bg);
	border: 1px solid var(--fdf-esp-risk-border);
	border-radius: var(--fdf-esp-radius);
	padding: clamp(20px, 3vw, 32px);
}

.fdf-esp-risk__badge {
	width: 64px;
	height: 64px;
	border-radius: 16px;
	background: var(--fdf-esp-red);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	box-shadow: 0 8px 20px rgba(208, 1, 0, 0.25);
}

.fdf-esp-risk__title {
	font-size: clamp(1.25rem, 2vw, 1.5rem);
	font-weight: 800;
	margin: 0 0 0.35rem;
	color: var(--fdf-esp-text);
	letter-spacing: -0.3px;
}

.fdf-esp-risk__lead {
	color: var(--fdf-esp-muted);
	margin: 0 0 1rem;
	font-size: 1rem;
}

/* ----- FAQ ----- */

.fdf-esp-faq {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.fdf-esp-faq__item {
	background: var(--fdf-esp-card-bg);
	border: 1px solid var(--fdf-esp-border);
	border-radius: var(--fdf-esp-radius-sm);
	overflow: hidden;
	transition: border-color 0.2s ease;
}

.fdf-esp-faq__item[open] {
	border-color: var(--fdf-esp-text);
}

.fdf-esp-faq__q {
	cursor: pointer;
	list-style: none;
	padding: 1rem 1.25rem;
	font-weight: 600;
	font-size: 1rem;
	color: var(--fdf-esp-text);
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	line-height: 1.4;
}

.fdf-esp-faq__q::-webkit-details-marker {
	display: none;
}

.fdf-esp-faq__q::after {
	content: "+";
	font-size: 1.5rem;
	font-weight: 400;
	color: var(--fdf-esp-mutedlight);
	line-height: 1;
	transition: transform 0.2s ease;
	flex-shrink: 0;
}

.fdf-esp-faq__item[open] .fdf-esp-faq__q::after {
	content: "−";
}

.fdf-esp-faq__q:hover {
	background: var(--fdf-esp-surface-2);
}

.fdf-esp-faq__q:focus-visible {
	outline: 2px solid var(--fdf-esp-blue);
	outline-offset: -2px;
}

.fdf-esp-faq__a {
	padding: 0 1.25rem 1.1rem;
	color: var(--fdf-esp-muted);
	font-size: 0.9375rem;
	line-height: 1.6;
}

.fdf-esp-faq__a a {
	color: var(--fdf-esp-blue);
}

/* ----- CTA ----- */

.fdf-esp-cta {
	margin-top: clamp(48px, 7vw, 80px);
}

.fdf-esp-cta__inner {
	background: var(--fdf-esp-cta-bg);
	color: var(--fdf-esp-cta-text);
	border-radius: var(--fdf-esp-radius);
	padding: clamp(28px, 4vw, 48px);
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	align-items: flex-start;
}

.fdf-esp-cta__title {
	font-size: clamp(1.375rem, 3vw, 1.875rem);
	font-weight: 800;
	margin: 0;
	color: var(--fdf-esp-cta-text);
	letter-spacing: -0.3px;
	line-height: 1.2;
}

.fdf-esp-cta__desc {
	color: color-mix(in srgb, var(--fdf-esp-cta-text) 85%, transparent);
	margin: 0;
	font-size: 1rem;
	max-width: 56ch;
}

.fdf-esp-cta .fdf-esp-btn--primary {
	background: var(--fdf-esp-cta-btn-bg);
	color: var(--fdf-esp-cta-btn-fg) !important;
	margin-top: 0.25rem;
}

.fdf-esp-cta .fdf-esp-btn--primary:hover {
	background: var(--fdf-esp-cta-btn-bg-hover);
}

/* ----- Crosslinks ----- */

.fdf-esp-crosslinks {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 0.75rem;
}

.fdf-esp-crosslink {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 0.75rem;
	align-items: center;
	background: var(--fdf-esp-card-bg);
	border: 1px solid var(--fdf-esp-border);
	border-radius: var(--fdf-esp-radius-sm);
	padding: 0.85rem 1rem;
	color: var(--fdf-esp-text);
	text-decoration: none !important;
	transition: border-color 0.2s ease, transform 0.18s ease;
}

.fdf-esp-crosslink:hover,
.fdf-esp-crosslink:focus-visible {
	border-color: var(--fdf-esp-text);
	transform: translateY(-1px);
	outline: none;
}

.fdf-esp-crosslink:focus-visible {
	box-shadow: var(--fdf-esp-focus);
}

.fdf-esp-crosslink__icon {
	width: 36px;
	height: 36px;
	border-radius: 8px;
	background: var(--fdf-esp-surface);
	color: var(--fdf-esp-text);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.fdf-esp-crosslink__title {
	display: flex;
	flex-direction: column;
	gap: 0.05rem;
	font-weight: 600;
	font-size: 0.9375rem;
	min-width: 0;
}

.fdf-esp-crosslink__sub {
	font-weight: 500;
	font-size: 0.8125rem;
	color: var(--fdf-esp-mutedlight);
}

.fdf-esp-crosslink__arrow {
	color: var(--fdf-esp-mutedlight);
}

.fdf-esp-crosslink:hover .fdf-esp-crosslink__arrow {
	color: var(--fdf-esp-text);
}

/* ----- Responsive ----- */

@media (max-width: 600px) {
	.fdf-esp-grid {
		grid-template-columns: 1fr;
	}
	.fdf-esp-card {
		padding: 16px;
	}
	.fdf-esp-risk {
		grid-template-columns: 1fr;
		text-align: left;
	}
	.fdf-esp-iconblock {
		grid-template-columns: auto 1fr;
	}
	.fdf-esp-iconblocks--numbered .fdf-esp-iconblock {
		grid-template-columns: auto auto 1fr;
	}
	.fdf-esp-cta__inner {
		padding: 22px;
	}
}

/* ----- Reduced motion ----- */

@media (prefers-reduced-motion: reduce) {
	.fdf-esp *,
	.fdf-esp *::before,
	.fdf-esp *::after {
		transition: none !important;
		animation: none !important;
	}
	.fdf-esp-card:hover,
	.fdf-esp-iconblock--link:hover,
	.fdf-esp-crosslink:hover {
		transform: none;
	}
}

/* =============================================================================
   Page « Collectivités & élus » — design system spécifique
   ============================================================================= */

.fdf-esp--collectivites {
	--col-anth: #0e0f12;
	--col-anth-2: #1a1c22;
	--col-line: rgba(255, 255, 255, 0.12);
	--col-line-strong: rgba(255, 255, 255, 0.22);
	--col-text-on-dark: rgba(255, 255, 255, 0.92);
	--col-text-on-dark-muted: rgba(255, 255, 255, 0.66);
	--col-accent: #ffb84d;
	--col-blue: var(--fdf-esp-blue);
	--col-red: var(--fdf-esp-red);
	--col-green: #16a34a;
	--col-amber: #d97706;
	--col-orange: #c2410c;
}

/* ---------- Hero ---------- */

.fdf-col-hero {
	position: relative;
	isolation: isolate;
	color: var(--col-text-on-dark);
	overflow: hidden;
	background: var(--col-anth);
}

.fdf-col-hero__bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(1100px 480px at 85% -10%, rgba(255, 184, 77, 0.18), transparent 60%),
		radial-gradient(900px 500px at 0% 100%, rgba(2, 0, 255, 0.32), transparent 55%),
		linear-gradient(160deg, #0e0f12 0%, #14161c 55%, #0e0f12 100%);
}

.fdf-col-hero__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
	opacity: 0.55;
}

.fdf-col-hero__grid {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
	gap: clamp(24px, 4vw, 56px);
	align-items: center;
	padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 40px);
}

.fdf-col-hero__kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 18px;
	padding: 6px 12px;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	color: var(--col-accent);
	background: rgba(255, 184, 77, 0.12);
	border: 1px solid rgba(255, 184, 77, 0.28);
	border-radius: 999px;
}

.fdf-col-hero__title {
	font-size: clamp(2rem, 4.4vw, 3.25rem);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.02em;
	margin: 0 0 18px;
	color: #fff;
}

.fdf-col-hero__lead {
	font-size: clamp(1rem, 1.6vw, 1.125rem);
	line-height: 1.6;
	color: var(--col-text-on-dark-muted);
	max-width: 56ch;
	margin: 0 0 24px;
}

.fdf-col-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 28px;
}

.fdf-col-hero__chips {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.fdf-col-hero__chips li {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	padding: 6px 12px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid var(--col-line);
	border-radius: 999px;
	font-size: 0.8125rem;
	color: var(--col-text-on-dark-muted);
}

.fdf-col-hero__chips strong {
	color: #fff;
	font-weight: 700;
	font-size: 0.95rem;
}

/* Hero panel (mock widget preview) */

.fdf-col-hero__panel {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
	border: 1px solid var(--col-line-strong);
	border-radius: 16px;
	padding: 18px;
	box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
	color: #fff;
}

.fdf-col-hero__panel-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 14px;
}

.fdf-col-hero__panel-tag {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--col-accent);
}

.fdf-col-hero__panel-title {
	font-size: 0.85rem;
	color: var(--col-text-on-dark-muted);
}

.fdf-col-hero__mini {
	background: #fff;
	color: #0a0a0a;
	border-radius: 12px;
	padding: 14px 16px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.fdf-col-hero__mini-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.fdf-col-hero__mini-name {
	font-weight: 700;
	font-size: 1rem;
}

.fdf-col-hero__mini-dot {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	display: inline-block;
}

.fdf-col-hero__mini-dot--faible { background: #16a34a; }
.fdf-col-hero__mini-dot--modere { background: #ca8a04; }
.fdf-col-hero__mini-dot--eleve { background: #ea580c; }

.fdf-col-hero__mini-niveau {
	margin: 6px 0 0;
	font-weight: 700;
	font-size: 1.125rem;
}

.fdf-col-hero__mini-meta {
	margin: 4px 0 0;
	font-size: 0.75rem;
	color: var(--fdf-esp-muted);
}

.fdf-col-hero__panel-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 14px;
	padding: 8px 0;
	color: #fff !important;
	font-weight: 600;
	font-size: 0.85rem;
	text-decoration: none !important;
	border-bottom: 1px solid transparent;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.fdf-col-hero__panel-link:hover {
	color: var(--col-accent) !important;
	border-color: currentColor;
}

/* ---------- Boutons (style page) ---------- */

.fdf-col-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
	border-radius: 10px;
	font-weight: 600;
	font-size: 0.95rem;
	font-family: inherit;
	border: 1.5px solid transparent;
	cursor: pointer;
	text-decoration: none !important;
	line-height: 1;
	transition: transform 0.15s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.fdf-col-btn:hover {
	transform: translateY(-1px);
}

.fdf-col-btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(255, 184, 77, 0.45);
}

.fdf-col-btn--primary {
	background: var(--col-accent);
	color: #0a0a0a !important;
	box-shadow: 0 8px 20px -8px rgba(255, 184, 77, 0.7);
}

.fdf-col-btn--primary:hover {
	background: #ffc873;
	color: #0a0a0a !important;
}

.fdf-col-btn--ghost {
	background: transparent;
	color: #fff !important;
	border-color: rgba(255, 255, 255, 0.35);
}

.fdf-col-btn--ghost:hover {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.08);
}

/* Variante claire (pour usage dans sections claires) */
.fdf-esp--collectivites .fdf-col-risk__actions .fdf-col-btn--ghost {
	color: var(--fdf-esp-text) !important;
	border-color: var(--fdf-esp-border);
}

.fdf-esp--collectivites .fdf-col-risk__actions .fdf-col-btn--ghost:hover {
	background: var(--fdf-esp-surface);
	border-color: var(--fdf-esp-text);
}

/* ---------- Statistiques ---------- */

.fdf-col-eyebrow {
	display: inline-block;
	margin: 0 0 8px;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	color: var(--col-blue);
}

.fdf-col-stats {
	margin: clamp(28px, 5vw, 48px) 0 0;
	padding: clamp(20px, 3vw, 28px);
	background: var(--fdf-esp-card-bg);
	border: 1px solid var(--fdf-esp-border);
	border-radius: 16px;
	box-shadow: var(--fdf-esp-shadow-sm);
}

.fdf-col-stats__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: clamp(16px, 3vw, 24px);
}

.fdf-col-stats__list li {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 4px 0;
	border-left: 3px solid transparent;
	padding-left: 16px;
}

.fdf-col-stats__list li:nth-child(1) { border-color: var(--col-blue); }
.fdf-col-stats__list li:nth-child(2) { border-color: var(--col-red); }
.fdf-col-stats__list li:nth-child(3) { border-color: var(--col-amber); }
.fdf-col-stats__list li:nth-child(4) { border-color: var(--col-green); }

.fdf-col-stats__num {
	display: block;
	font-size: clamp(1.875rem, 3.5vw, 2.5rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--fdf-esp-text);
	line-height: 1;
}

.fdf-col-stats__label {
	display: block;
	font-size: 0.8125rem;
	line-height: 1.45;
	color: var(--fdf-esp-muted);
}

.fdf-col-stats__src {
	margin: 18px 0 0;
	padding-top: 14px;
	border-top: 1px solid var(--fdf-esp-border);
	font-size: 0.75rem;
	color: var(--fdf-esp-muted);
}

/* ---------- Prose / contenus longs ---------- */

.fdf-col-prose {
	max-width: 70ch;
}

.fdf-col-prose p {
	margin: 0 0 1rem;
	font-size: 1rem;
	line-height: 1.65;
	color: var(--fdf-esp-text);
}

.fdf-col-subh {
	margin: 1.75rem 0 0.75rem;
	font-size: 1.0625rem;
	font-weight: 700;
}

.fdf-col-list,
.fdf-col-checks,
.fdf-col-reslist {
	margin: 0;
	padding-left: 1.25rem;
	font-size: 0.9375rem;
	line-height: 1.6;
}

.fdf-col-list li,
.fdf-col-checks li,
.fdf-col-reslist li {
	margin: 0.4rem 0;
}

.fdf-col-list--spaced li {
	margin: 0.7rem 0;
}

.fdf-col-checks {
	list-style: none;
	padding-left: 0;
}

.fdf-col-checks li {
	position: relative;
	padding-left: 28px;
}

.fdf-col-checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.45rem;
	width: 16px;
	height: 16px;
	border-radius: 4px;
	background: var(--col-blue);
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'><polyline points='20 6 9 17 4 12'/></svg>") center / 12px no-repeat;
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'><polyline points='20 6 9 17 4 12'/></svg>") center / 12px no-repeat;
}

.fdf-col-steps {
	counter-reset: fdfcs;
	list-style: none;
	padding: 0;
	margin: 1rem 0 0;
	display: grid;
	gap: 8px;
}

.fdf-col-steps li {
	counter-increment: fdfcs;
	display: grid;
	grid-template-columns: 32px 1fr;
	gap: 12px;
	align-items: start;
	padding: 12px 14px;
	background: var(--fdf-esp-surface-2);
	border: 1px solid var(--fdf-esp-border);
	border-radius: 10px;
	font-size: 0.9375rem;
}

.fdf-col-steps li::before {
	content: counter(fdfcs);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--col-blue);
	color: #fff;
	font-weight: 700;
	font-size: 0.8125rem;
	margin-top: 1px;
}

/* ---------- Cartes obligations ---------- */

.fdf-col-legalgrid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 16px;
	margin-top: 8px;
}

.fdf-col-legalcard {
	position: relative;
	padding: 22px 22px 22px 60px;
	background: var(--fdf-esp-card-bg);
	border: 1px solid var(--fdf-esp-border);
	border-radius: 14px;
	box-shadow: var(--fdf-esp-shadow-sm);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.fdf-col-legalcard:hover {
	transform: translateY(-2px);
	box-shadow: var(--fdf-esp-shadow-md);
	border-color: var(--col-blue);
}

.fdf-col-legalcard__title {
	margin: 0 0 10px;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.35;
}

.fdf-col-legalcard__title::first-letter,
.fdf-col-legalcard__title { /* reset */ }

.fdf-col-legalcard p {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.55;
	color: var(--fdf-esp-text);
}

/* Numéro extrait du titre via ::before counter */
.fdf-col-legalgrid {
	counter-reset: fdfle;
}

.fdf-col-legalcard::before {
	counter-increment: fdfle;
	content: counter(fdfle);
	position: absolute;
	top: 22px;
	left: 18px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--col-blue);
	color: #fff;
	font-weight: 700;
	font-size: 0.8125rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* On masque le « N. » du <h3> existant pour éviter le double */
.fdf-col-legalcard__title {
	display: -webkit-box;
}

/* ---------- Tableau ---------- */

.fdf-col-tablewrap {
	overflow-x: auto;
	margin: 1.25rem 0;
	border: 1px solid var(--fdf-esp-border);
	border-radius: 12px;
	background: var(--fdf-esp-card-bg);
}

.fdf-col-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
}

.fdf-col-table th,
.fdf-col-table td {
	padding: 14px 18px;
	border-bottom: 1px solid var(--fdf-esp-border);
	text-align: left;
	vertical-align: top;
}

.fdf-col-table tbody tr:last-child th,
.fdf-col-table tbody tr:last-child td {
	border-bottom: none;
}

.fdf-col-table thead th {
	background: var(--fdf-esp-surface-2);
	font-weight: 700;
	font-size: 0.8125rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--fdf-esp-muted);
}

.fdf-col-table tbody th {
	width: 30%;
	font-weight: 700;
	color: var(--fdf-esp-text);
}

/* ---------- Callouts ---------- */

.fdf-col-callout {
	display: flex;
	gap: 14px;
	padding: 16px 18px;
	margin: 1.25rem 0;
	border-radius: 12px;
	font-size: 0.9375rem;
	line-height: 1.55;
	border: 1px solid transparent;
}

.fdf-col-callout p {
	margin: 0;
}

.fdf-col-callout::before {
	content: "";
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	margin-top: 2px;
	background-color: currentColor;
	-webkit-mask: center / contain no-repeat;
	mask: center / contain no-repeat;
}

.fdf-col-callout--info {
	background: rgba(2, 0, 255, 0.05);
	border-color: rgba(2, 0, 255, 0.18);
	color: var(--col-blue);
}

.fdf-col-callout--info p {
	color: var(--fdf-esp-text);
}

.fdf-col-callout--info::before {
	-webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><line x1='12' y1='16' x2='12' y2='12'/><line x1='12' y1='8' x2='12.01' y2='8'/></svg>");
	mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><line x1='12' y1='16' x2='12' y2='12'/><line x1='12' y1='8' x2='12.01' y2='8'/></svg>");
}

.fdf-col-callout--warn {
	background: rgba(208, 1, 0, 0.05);
	border-color: rgba(208, 1, 0, 0.22);
	color: var(--col-red);
}

.fdf-col-callout--warn p {
	color: var(--fdf-esp-text);
}

.fdf-col-callout--warn::before {
	-webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/><line x1='12' y1='9' x2='12' y2='13'/><line x1='12' y1='17' x2='12.01' y2='17'/></svg>");
	mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/><line x1='12' y1='9' x2='12' y2='13'/><line x1='12' y1='17' x2='12.01' y2='17'/></svg>");
}

.fdf-col-callout--tool {
	background: var(--fdf-esp-surface-2);
	border-color: var(--fdf-esp-border);
	color: var(--col-amber);
}

.fdf-col-callout--tool p {
	color: var(--fdf-esp-text);
}

.fdf-col-callout--tool::before {
	-webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z'/></svg>");
	mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z'/></svg>");
}

.fdf-col-callout--transparency {
	background: linear-gradient(180deg, rgba(2, 0, 255, 0.05) 0%, rgba(2, 0, 255, 0.02) 100%);
	border-color: rgba(2, 0, 255, 0.22);
	color: var(--col-blue);
	margin: 1.5rem 0;
}

.fdf-col-callout--transparency p {
	color: var(--fdf-esp-text);
}

.fdf-col-callout--transparency::before {
	-webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/></svg>");
	mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/></svg>");
}

/* ---------- Ressources ---------- */

.fdf-col-reslist {
	list-style: none;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 12px;
}

.fdf-col-reslist li {
	margin: 0;
	padding: 14px 16px;
	background: var(--fdf-esp-card-bg);
	border: 1px solid var(--fdf-esp-border);
	border-radius: 10px;
	font-size: 0.9rem;
	line-height: 1.55;
	transition: border-color 0.18s ease, transform 0.18s ease;
}

.fdf-col-reslist li:hover {
	border-color: var(--col-blue);
	transform: translateY(-1px);
}

/* ---------- Risque actuel ---------- */

.fdf-col-risk {
	display: grid;
	grid-template-columns: 80px 1fr;
	gap: 24px;
	align-items: start;
	padding: clamp(24px, 4vw, 36px);
	background: linear-gradient(135deg, #fff5e6 0%, #ffffff 65%);
	border: 1px solid #ffd6a8;
	border-radius: 18px;
}

[data-theme="dark"] .fdf-col-risk {
	background: linear-gradient(135deg, #2a1a08 0%, #14161c 65%);
	border-color: #4a2e15;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme]) .fdf-col-risk {
		background: linear-gradient(135deg, #2a1a08 0%, #14161c 65%);
		border-color: #4a2e15;
	}
}

.fdf-col-risk__icon {
	width: 64px;
	height: 64px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
	border-radius: 14px;
	box-shadow: 0 12px 24px -8px rgba(234, 88, 12, 0.55);
}

.fdf-col-risk__eyebrow {
	margin: 0 0 6px;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	color: var(--col-orange);
}

.fdf-col-risk__title {
	margin: 0 0 10px;
	font-size: clamp(1.25rem, 2.4vw, 1.5rem);
	font-weight: 800;
	line-height: 1.25;
}

.fdf-col-risk__lead {
	margin: 0 0 18px;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--fdf-esp-muted);
}

.fdf-col-risk__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* ---------- Générateur de widget ---------- */

.fdf-esp-section--widget {
	padding-top: clamp(40px, 6vw, 72px);
}

.fdf-cw {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: clamp(20px, 3vw, 36px);
	margin-top: 20px;
	align-items: start;
}

.fdf-cw__form,
.fdf-cw__preview {
	min-width: 0;
	background: var(--fdf-esp-card-bg);
	border: 1px solid var(--fdf-esp-border);
	border-radius: 16px;
	padding: clamp(18px, 2.5vw, 24px);
	box-shadow: var(--fdf-esp-shadow-sm);
}

.fdf-cw__form-group {
	padding-top: 18px;
	margin-top: 18px;
	border-top: 1px solid var(--fdf-esp-border);
}

.fdf-cw__form-group:first-child {
	padding-top: 0;
	margin-top: 0;
	border-top: none;
}

.fdf-cw__form-group--row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}

.fdf-cw__col > .fdf-cw__label {
	margin-bottom: 10px;
}

.fdf-cw__label {
	display: block;
	font-weight: 700;
	font-size: 0.875rem;
	margin: 0 0 10px;
	color: var(--fdf-esp-text);
}

.fdf-cw__sublabel {
	display: block;
	font-weight: 600;
	font-size: 0.75rem;
	margin: 12px 0 6px;
	color: var(--fdf-esp-muted);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.fdf-cw__search {
	position: relative;
}

.fdf-cw__search-icon {
	position: absolute;
	top: 50%;
	left: 14px;
	transform: translateY(-50%);
	color: var(--fdf-esp-muted);
	pointer-events: none;
}

.fdf-cw__input,
.fdf-cw__textarea {
	width: 100%;
	padding: 12px 14px;
	border-radius: 10px;
	border: 1px solid var(--fdf-esp-border);
	background: var(--fdf-esp-bg);
	color: var(--fdf-esp-text);
	font: inherit;
	font-size: 0.9375rem;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fdf-cw__search .fdf-cw__input {
	padding-left: 40px;
}

.fdf-cw__input:focus,
.fdf-cw__textarea:focus {
	outline: none;
	border-color: var(--col-blue);
	box-shadow: 0 0 0 3px rgba(2, 0, 255, 0.18);
}

.fdf-cw__input--mono {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	letter-spacing: 0.06em;
	max-width: 140px;
}

.fdf-cw__insee {
	margin-top: 10px;
}

.fdf-cw__hint {
	margin: 8px 0 0;
	font-size: 0.75rem;
	color: var(--fdf-esp-muted);
	line-height: 1.5;
}

.fdf-cw__textarea {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.75rem;
	line-height: 1.5;
	resize: vertical;
}

/* Choices format (cards) */

.fdf-cw__choices {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.fdf-cw__choice {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 14px 8px 12px;
	background: var(--fdf-esp-bg);
	border: 1.5px solid var(--fdf-esp-border);
	border-radius: 12px;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
	text-align: center;
}

.fdf-cw__choice:hover {
	border-color: var(--fdf-esp-text);
}

.fdf-cw__choice input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	border: 0;
	white-space: nowrap;
}

.fdf-cw__choice.is-active,
.fdf-cw__choice:has(input:checked) {
	border-color: var(--col-blue);
	background: rgba(2, 0, 255, 0.04);
	box-shadow: 0 0 0 3px rgba(2, 0, 255, 0.12);
}

.fdf-cw__choice.is-active .fdf-cw__choice-mock,
.fdf-cw__choice:has(input:checked) .fdf-cw__choice-mock {
	background: linear-gradient(135deg, var(--col-blue) 0%, #6366f1 100%);
}

.fdf-cw__choice-mock {
	display: block;
	background: linear-gradient(135deg, #d4d4d4 0%, #f5f5f5 100%);
	border-radius: 4px;
	margin-bottom: 4px;
}

.fdf-cw__choice-mock--bandeau { width: 64px; height: 18px; }
.fdf-cw__choice-mock--carte   { width: 36px; height: 36px; }
.fdf-cw__choice-mock--vertical { width: 26px; height: 40px; }

.fdf-cw__choice-name {
	font-weight: 700;
	font-size: 0.8125rem;
}

.fdf-cw__choice-meta {
	font-size: 0.7rem;
	color: var(--fdf-esp-muted);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Pills theme */

.fdf-cw__pills {
	display: inline-flex;
	gap: 4px;
	padding: 4px;
	background: var(--fdf-esp-surface-2);
	border-radius: 10px;
}

.fdf-cw__pill {
	cursor: pointer;
}

.fdf-cw__pill input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	border: 0;
}

.fdf-cw__pill span {
	display: inline-block;
	padding: 8px 14px;
	border-radius: 8px;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--fdf-esp-muted);
	transition: background 0.15s ease, color 0.15s ease;
}

.fdf-cw__pill.is-active span,
.fdf-cw__pill:has(input:checked) span {
	background: var(--fdf-esp-card-bg);
	color: var(--fdf-esp-text);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* Switch */

.fdf-cw__switch {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
	padding: 6px 0;
}

.fdf-cw__switch input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	border: 0;
}

.fdf-cw__switch-track {
	position: relative;
	display: inline-block;
	width: 44px;
	height: 24px;
	background: var(--fdf-esp-border);
	border-radius: 999px;
	transition: background 0.2s ease;
}

.fdf-cw__switch-track::before {
	content: "";
	position: absolute;
	top: 2px;
	left: 2px;
	width: 20px;
	height: 20px;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
	transition: transform 0.2s ease;
}

.fdf-cw__switch.is-active .fdf-cw__switch-track,
.fdf-cw__switch:has(input:checked) .fdf-cw__switch-track {
	background: var(--col-blue);
}

.fdf-cw__switch.is-active .fdf-cw__switch-track::before,
.fdf-cw__switch:has(input:checked) .fdf-cw__switch-track::before {
	transform: translateX(20px);
}

.fdf-cw__switch-text {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--fdf-esp-text);
}

/* Preview */

.fdf-cw__preview {
	position: sticky;
	top: 88px;
}

.fdf-cw__preview-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 12px;
}

.fdf-cw__preview-eyebrow {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	color: var(--col-blue);
}

.fdf-cw__preview-status {
	font-size: 0.7rem;
	color: var(--fdf-esp-muted);
}

.fdf-cw__preview-stage {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 160px;
	padding: 16px;
	background:
		repeating-conic-gradient(var(--fdf-esp-surface-2) 0% 25%, transparent 0% 50%) 50% / 16px 16px;
	background-color: var(--fdf-esp-bg);
	border: 1px solid var(--fdf-esp-border);
	border-radius: 12px;
	margin-bottom: 16px;
	overflow: hidden;
}

.fdf-cw__iframe {
	border: 0;
	display: block;
	max-width: 100%;
	background: transparent;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	border-radius: 8px;
	transform-origin: center center;
}

.fdf-cw__codewrap {
	position: relative;
}

.fdf-cw__copy {
	position: absolute;
	top: 8px;
	right: 8px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	background: var(--fdf-esp-text);
	color: var(--fdf-esp-bg);
	border: 0;
	border-radius: 6px;
	font-size: 0.75rem;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.15s ease;
}

.fdf-cw__copy:hover {
	background: var(--col-blue);
}

.fdf-cw__copy.is-copied {
	background: var(--col-green);
}

.fdf-cw__notice {
	margin: 10px 0 0;
	font-size: 0.75rem;
	color: var(--fdf-esp-muted);
	line-height: 1.5;
}

/* ---------- CTA finale ---------- */

.fdf-col-finalcta {
	position: relative;
	isolation: isolate;
	margin-top: clamp(40px, 6vw, 72px);
	border-radius: clamp(14px, 1.6vw, 22px);
	overflow: hidden;
	color: var(--col-text-on-dark);
}

.fdf-col-finalcta__bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(800px 350px at 100% 0%, rgba(255, 184, 77, 0.22), transparent 60%),
		radial-gradient(700px 400px at 0% 100%, rgba(2, 0, 255, 0.32), transparent 55%),
		linear-gradient(160deg, #0e0f12 0%, #14161c 60%, #0e0f12 100%);
}

.fdf-col-finalcta__inner {
	padding: clamp(36px, 5vw, 56px);
	max-width: 720px;
}

.fdf-col-eyebrow--accent {
	color: var(--col-accent);
}

.fdf-col-finalcta__title {
	margin: 0 0 14px;
	font-size: clamp(1.5rem, 3.4vw, 2.25rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.15;
	color: #fff;
}

.fdf-col-finalcta__desc {
	margin: 0 0 24px;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--col-text-on-dark-muted);
}

.fdf-col-finalcta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* ---------- Sections : rythme alterné ---------- */

.fdf-esp--collectivites #fdf-col-debrouss,
.fdf-esp--collectivites #fdf-collectivites-widget {
	position: relative;
	padding-top: clamp(48px, 6vw, 80px);
}

.fdf-esp--collectivites #fdf-col-debrouss::before,
.fdf-esp--collectivites #fdf-collectivites-widget::before {
	content: "";
	position: absolute;
	left: calc(50% - 50vw);
	right: calc(50% - 50vw);
	top: 0;
	bottom: -1px;
	background: var(--fdf-esp-surface);
	z-index: -1;
	border-top: 1px solid var(--fdf-esp-border);
	border-bottom: 1px solid var(--fdf-esp-border);
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
	.fdf-col-hero__grid {
		grid-template-columns: 1fr;
	}
	.fdf-col-hero__panel {
		max-width: 420px;
	}
	.fdf-cw {
		grid-template-columns: 1fr;
	}
	.fdf-cw__preview {
		position: static;
	}
}

@media (max-width: 600px) {
	.fdf-col-hero__chips {
		gap: 6px;
	}
	.fdf-col-stats__list li {
		padding-left: 12px;
	}
	.fdf-col-risk {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	.fdf-col-risk__icon {
		width: 56px;
		height: 56px;
	}
	.fdf-cw__form-group--row {
		grid-template-columns: 1fr;
	}
	.fdf-cw__choices {
		grid-template-columns: 1fr;
	}
	.fdf-col-table tbody th {
		width: auto;
	}
	.fdf-col-legalcard {
		padding-left: 56px;
	}
}

/* Tout le comportement light/dark est géré en haut du fichier via les tokens
   --fdf-esp-* (héritage des variables thème + overrides dark dupliqués pour
   l'auto-dark et le dark forcé). Aucun sélecteur `[data-theme=…]` n'est
   nécessaire dans le reste du fichier. */
