/*
Theme Name: DSR
Theme URI: https://dsr.tg
Description: Thème institutionnel sur mesure de la Division de la Sécurité Routière (Togo). À l'activation, installe automatiquement les pages, les menus et les images du site.
Author: DSR
Version: 1.3.11
Requires at least: 6.3
Tested up to: 6.8
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: DSR
*/

/* ==========================================================================
   Jetons
   ========================================================================== */
:root {
	/* Palette institutionnelle DSR : vert porteur d'identité, rouge signalisation,
	   jaune sécurité en accent, gris anthracite pour le texte et les fonds sombres. */
	--green: #1B7A3E;
	--green-900: #0B2E1B;
	--yellow: #F2B705;
	--red: #C62828;
	--bordeaux: #7B1E28;
	/* Alias conservés pour compatibilité (anciennes couleurs secondaires). */
	--ciplev-blue: #1B7A3E;
	--slate: #263238;

	--primary: var(--green);
	--primary-dark: #14532D;
	--primary-soft: #E6F1E9;
	--yellow-soft: #FDF4D4;
	--charcoal: #263238;
	--ink: #263238;
	--muted: #5A6770;
	--line: #E2E6E1;
	--soft: #F3F5F2;
	--white: #fff;

	/* Substituts libres de Foundry Sterling (texte) et Chronicle Text (accents italiques).
	   Remplacer par les polices officielles si les licences web sont acquises. */
	--font-head: "Source Sans 3", "Foundry Sterling", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-body: "Source Sans 3", "Foundry Sterling", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-accent: "Source Serif 4", "Chronicle Text G1", Georgia, serif;

	--radius: 12px;
	--radius-sm: 8px;
	--shadow: 0 1px 2px rgba(38, 50, 56, .06), 0 8px 24px rgba(38, 50, 56, .08);
	--container: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 140px; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); text-underline-offset: .18em; }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4 {
	font-family: var(--font-head);
	line-height: 1.2;
	color: var(--primary-dark);
	margin: 0 0 .6em;
	letter-spacing: -.01em;
}

p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding-inline: var(--gutter);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: 12px; top: -60px;
	z-index: 1000;
	background: var(--yellow);
	color: var(--primary-dark);
	padding: 10px 16px;
	border-radius: var(--radius-sm);
	font-weight: 700;
}
.skip-link:focus { top: 12px; }

.icon { width: 1.1em; height: 1.1em; flex: none; }

/* Bande aux couleurs du drapeau togolais */
.flag-bar {
	display: block;
	height: 5px;
	background: linear-gradient(90deg, var(--green) 0 40%, var(--yellow) 40% 70%, var(--red) 70% 100%);
}

/* ==========================================================================
   Boutons & liens
   ========================================================================== */
.btn, .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	padding: .8em 1.4em;
	border-radius: 999px;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: .95rem;
	text-decoration: none;
	border: 2px solid transparent;
	transition: background-color .2s, color .2s, transform .2s, border-color .2s;
	cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn--yellow { background: var(--yellow); color: var(--primary-dark); }
.btn--yellow:hover { background: #F7C72E; color: var(--primary-dark); }
.btn--primary, .wp-block-button__link { background: var(--primary); color: var(--white); }
.btn--primary:hover, .wp-block-button__link:hover { background: var(--primary-dark); color: var(--white); }
.btn--ghost { border-color: rgba(255, 255, 255, .55); color: var(--white); }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn--bordeaux { border-color: var(--bordeaux); background: var(--bordeaux); color: var(--white); }
.btn--bordeaux:hover { background: #5E1620; border-color: #5E1620; color: var(--white); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: var(--white); color: var(--white); }

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: .4em;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: .95rem;
	text-decoration: none;
}
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .6em;
	margin: 0 0 .9em;
	font-family: var(--font-head);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--green);
}
.eyebrow::before {
	content: "";
	width: 28px; height: 3px;
	background: var(--yellow);
	border-radius: 2px;
}
.eyebrow--light { color: var(--yellow); }

/* ==========================================================================
   En-tête (modèle « Internet » de la charte, p. 95)
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); }
/* Décalage sous la barre d'administration WordPress. */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}
.site-header .gov-band,
.site-header .nav-row__inner { transition: min-height .25s ease; }
/* En-tête qui se resserre légèrement une fois la page défilée. */
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(11, 46, 27, .12); }
.site-header.is-scrolled .nav-row__inner { min-height: 70px; }

.gov-band { background: var(--yellow); }
.gov-band__inner,
.nav-row__inner { padding-left: calc(var(--gutter) + 112px); }
.gov-band__inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	min-height: 46px;
}
.gov-band__name {
	display: flex;
	align-items: baseline;
	gap: 14px;
	min-width: 0;
	text-decoration: none;
	color: var(--ink);
}
.gov-band__name strong {
	font-family: var(--font-head);
	font-weight: 800;
	font-size: 1.4rem;
	letter-spacing: .06em;
	color: var(--green);
}
.gov-band__name span {
	font-size: .88rem;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.gov-band__name:hover span { text-decoration: underline; }
.gov-band__contact { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; font-size: .9rem; font-weight: 600; }
.gov-band__contact a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.gov-band__contact a:hover { color: var(--green); }
.gov-band__contact .icon { color: var(--green); }

.nav-row__inner {
	position: relative;
	display: flex;
	align-items: center;
	gap: 20px;
	min-height: 84px;
}

/* Bloc blason : la moitié supérieure seulement déborde sur l'aplat jaune (charte p. 19). */
.bloc-blason { display: block; flex: none; }
.bloc-blason img { width: 100%; height: auto; }
.nav-row .bloc-blason {
	position: absolute;
	left: var(--gutter);
	top: -38px;
	width: 92px;
	height: 92px;
	display: grid;
	place-items: center;
	border: 3px solid var(--green);
	border-radius: 50%;
	background: var(--white);
	padding: 6px;
	overflow: hidden;
}
.nav-row .bloc-blason img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center top;
	display: block;
}


.green-rule { display: block; height: 6px; background: var(--green); }

/* Marque (pied de page) */
.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	min-width: 0;
}
.brand__logo {
	width: 56px;
	height: 56px;
	flex: none;
	display: grid;
	place-items: center;
	border: 3px solid var(--green);
	border-radius: 50%;
	background: var(--white);
	padding: 6px;
	overflow: hidden;
	box-sizing: border-box;
}
.brand__logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name {
	font-family: var(--font-head);
	font-weight: 800;
	font-size: 1.45rem;
	letter-spacing: .05em;
	line-height: 1;
}
.brand__full { font-family: var(--font-accent); font-style: italic; font-size: .95rem; margin-top: 4px; }
.brand--light .brand__name { color: var(--white); }
.brand--light .brand__full { color: var(--yellow); }

/* Navigation */
.main-nav { margin-left: auto; }
.main-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.main-nav .menu li { position: relative; }
.main-nav a {
	display: block;
	padding: 10px 12px;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: .98rem;
	color: var(--ink);
	text-decoration: none;
	border-radius: var(--radius-sm);
	white-space: nowrap;
}
.main-nav a:hover { color: var(--primary); background: var(--primary-soft); }
.main-nav .current-menu-item > a,
.main-nav .current-menu-ancestor > a,
.main-nav .current_page_item > a,
.main-nav .current_page_parent > a { color: var(--primary); box-shadow: inset 0 -3px 0 var(--green); border-radius: 0; }
.main-nav .menu > li:last-child > a { background: var(--primary); color: var(--white); border-radius: 999px; padding-inline: 18px; margin-left: 8px; box-shadow: none; }
.main-nav .menu > li:last-child > a:hover { background: var(--primary-dark); }

.main-nav .sub-menu {
	list-style: none;
	margin: 0;
	padding: 8px;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .15s, transform .15s, visibility .15s;
}
.main-nav .sub-menu a { font-weight: 600; box-shadow: none !important; border-radius: var(--radius-sm) !important; }
/* Les entrées proches du bord droit ouvrent leur sous-menu vers la gauche,
   y compris quand il est masqué : sans cela la page déborde horizontalement. */
.main-nav .menu > li:nth-last-child(-n+2) > .sub-menu { left: auto; right: 0; }
.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 6px; height: 6px;
	margin-left: 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-3px) rotate(45deg);
}
.submenu-toggle { display: none; }

.nav-toggle {
	display: none;
	background: none;
	border: 0;
	padding: 8px;
	color: var(--primary-dark);
	cursor: pointer;
	border-radius: var(--radius-sm);
}
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle__close { display: none; }

@media (max-width: 1023px) {
	.nav-toggle { display: inline-flex; }
	.main-nav { margin: 0; }
	.nav-toggle { margin-left: auto; }
	.nav-open .nav-toggle__open { display: none; }
	.nav-open .nav-toggle__close { display: inline; }

	.main-nav {
		position: fixed;
		inset: var(--nav-top, 122px) 0 0 0;
		background: var(--white);
		padding: 16px var(--gutter) 40px;
		overflow-y: auto;
		transform: translateX(100%);
		transition: transform .25s ease;
		border-top: 1px solid var(--line);
	}
	.nav-open .main-nav { transform: none; }
	.nav-open { overflow: hidden; }
	.main-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.main-nav .menu > li { border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; }
	.main-nav .menu > li > a { flex: 1; padding: 14px 4px; font-size: 1rem; box-shadow: none !important; }
	.main-nav .menu > li:last-child { border: 0; margin-top: 16px; }
	.main-nav .menu > li:last-child > a { margin: 0; text-align: center; padding: 14px; }
	.main-nav .menu-item-has-children > a::after { display: none; }
	.submenu-toggle {
		display: inline-flex;
		background: var(--soft);
		border: 0;
		border-radius: var(--radius-sm);
		padding: 8px;
		color: var(--primary);
		cursor: pointer;
	}
	.submenu-toggle svg { transition: transform .2s; }
	.is-open > .submenu-toggle svg { transform: rotate(180deg); }
	.main-nav .sub-menu {
		position: static;
		flex-basis: 100%;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: 0;
		padding: 0 0 10px 12px;
		display: none;
	}
	.main-nav li.is-open > .sub-menu { display: block; }
}

@media (max-width: 1180px) {
	.gov-band__name span { display: none; }
}
@media (max-width: 760px) {
	.gov-band__inner, .nav-row__inner { padding-left: calc(var(--gutter) + 72px); }
	.gov-band__inner { min-height: 40px; }
	.gov-band__name strong { font-size: 1.15rem; }
	.gov-band__email { display: none; }
	.nav-row__inner { min-height: 66px; gap: 12px; }
	.nav-row .bloc-blason { width: 60px; height: 60px; top: -30px; }
}

/* ==========================================================================
   Hero (accueil)
   ========================================================================== */
.hero {
	position: relative;
	background:
		radial-gradient(1100px 500px at 85% 0%, rgba(242, 183, 5, .16), transparent 60%),
		linear-gradient(135deg, var(--green-900) 0%, var(--primary) 100%);
	color: var(--white);
	overflow: hidden;
}
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
	background-size: 22px 22px;
	mask-image: linear-gradient(90deg, transparent, #000 60%);
	pointer-events: none;
}
.hero__inner {
	position: relative;
	display: grid;
	grid-template-columns: 1fr;
	align-items: center;
	gap: 48px;
	padding-block: clamp(56px, 9vw, 110px);
}
.hero__content { max-width: 820px; }
.hero__title {
	color: var(--white);
	font-size: clamp(1.9rem, 4.2vw, 3.1rem);
	font-weight: 800;
	line-height: 1.1;
	margin-bottom: .5em;
}
.hero__slogan {
	display: inline-block;
	font-family: var(--font-accent);
	font-style: italic;
	font-weight: 700;
	font-size: clamp(1.05rem, 2vw, 1.3rem);
	color: var(--primary-dark);
	background: var(--yellow);
	padding: .35em .8em;
	border-radius: var(--radius-sm);
	margin-bottom: 1.1em;
}
.hero__slogan span { font-family: var(--font-head); font-style: normal; font-weight: 800; }
.hero__text { font-size: 1.15rem; max-width: 60ch; color: rgba(255, 255, 255, .88); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }


/* ==========================================================================
   Chiffres clés (affichés sous le bandeau d'accueil)
   ========================================================================== */
.facts {
	position: relative;
	z-index: 1;
	padding-top: clamp(32px, 5vw, 56px);
	border-top: 1px solid rgba(255, 255, 255, .18);
}
.facts__title {
	margin: 0 0 18px;
	font-family: var(--font-head);
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .6);
}
.facts__grid { display: grid; grid-template-columns: repeat(var(--facts-count, 3), 1fr); }
.fact {
	padding: 6px 26px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	border-left: 1px solid rgba(255, 255, 255, .18);
}
.fact:first-child { border-left: 0; padding-left: 0; }
.fact__head {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 10px;
}
.fact__num {
	font-family: var(--font-head);
	font-weight: 800;
	font-size: clamp(2.1rem, 4.4vw, 3.4rem);
	line-height: 1;
	color: var(--yellow);
	letter-spacing: -.01em;
	font-variant-numeric: tabular-nums;
}
.fact__label { color: rgba(255, 255, 255, .82); font-size: .98rem; line-height: 1.45; max-width: 34ch; }
.fact__trend {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	font-family: var(--font-head);
	font-size: .88rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: .01em;
	white-space: nowrap;
}
.fact__trend--up {
	color: #FF6B6B;
	background: rgba(255, 107, 107, .16);
}
.fact__trend--down {
	color: #7DE39B;
	background: rgba(125, 227, 155, .16);
}
@media (max-width: 860px) {
	.facts__grid { grid-template-columns: 1fr 1fr; }
	.fact { padding: 20px 16px; }
	.fact:nth-child(odd) { border-left: 0; padding-left: 0; }
	.fact:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .18); }
}
@media (max-width: 560px) {
	.facts__grid { grid-template-columns: 1fr; }
	.fact { border-left: 0; padding: 16px 0; }
	.fact + .fact { border-top: 1px solid rgba(255, 255, 255, .18); }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section--soft { background: var(--soft); }
.section__head { max-width: 760px; margin-bottom: 40px; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.section__title { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
.section__head--light .section__title { color: var(--white); }
.section__more { margin: 36px 0 0; text-align: center; }
.lead { font-family: var(--font-accent); font-style: italic; font-size: 1.25rem; color: var(--primary); font-weight: 600; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.missions { display: grid; gap: 20px; }
.missions--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.about-intro { max-width: 820px; }
.about-intro p { text-align: justify; hyphens: auto; }
.about-intro .lead { font-size: clamp(1.1rem, 2vw, 1.35rem); text-align: justify; }
@media (max-width: 640px) { .about-intro p, .about-intro .lead { text-align: left; } }
@media (max-width: 860px) { .missions--grid { grid-template-columns: 1fr; } }
.mission-card {
	position: relative;
	padding: 28px 28px 24px;
	background: var(--primary);
	color: rgba(255, 255, 255, .9);
	border-radius: var(--radius);
	overflow: hidden;
}
.mission-card h3 { color: var(--white); font-size: 1.2rem; }
.mission-card p { margin: 0; }
.mission-card__num {
	position: absolute;
	right: 18px; top: 8px;
	font-family: var(--font-head);
	font-size: 4rem;
	font-weight: 800;
	color: rgba(255, 255, 255, .1);
	line-height: 1;
}
.mission-card--green { background: var(--slate); }

/* Actions */
.actions-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.action {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 24px;
	transition: transform .2s, box-shadow .2s, border-color .2s;
}
.action:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.action__icon {
	display: grid;
	place-items: center;
	width: 48px; height: 48px;
	border-radius: 12px;
	background: var(--primary-soft);
	color: var(--primary);
	margin-bottom: 16px;
}
.action__icon .icon { width: 24px; height: 24px; }
.action:nth-child(even) .action__icon { background: var(--yellow-soft); color: #8A6A00; }
.action__title { font-size: 1.02rem; margin-bottom: .35em; }
.action p { margin: 0; color: var(--muted); font-size: .97rem; line-height: 1.5; }
@media (max-width: 1023px) { .actions-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .actions-grid { grid-template-columns: 1fr; } }

/* Valeurs */
.values {
	background:
		radial-gradient(800px 400px at 100% 0, rgba(65, 111, 50, .35), transparent 60%),
		var(--slate);
	color: rgba(255, 255, 255, .85);
}
.values__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value {
	background: rgba(255, 255, 255, .06);
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: var(--radius);
	padding: 28px;
}
.value h3 { color: var(--white); font-size: 1.25rem; }
.value p { margin: 0; }
.value__icon {
	display: grid; place-items: center;
	width: 52px; height: 52px;
	border-radius: 50%;
	background: var(--yellow);
	color: var(--primary-dark);
	margin-bottom: 18px;
}
.value__icon .icon { width: 26px; height: 26px; }
.chips { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
	padding: 6px 14px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, .25);
	font-size: .92rem;
	font-weight: 600;
	color: var(--white);
}
@media (max-width: 860px) { .values__grid { grid-template-columns: 1fr; } }

/* Organisation (accueil) */
.org__levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.org__level {
	position: relative;
	padding: 28px 24px 24px;
	border-radius: var(--radius);
	border: 1px solid var(--line);
	border-top: 5px solid var(--primary);
	background: var(--white);
}
.org__level:nth-child(2) { border-top-color: var(--yellow); }
.org__level:nth-child(3) { border-top-color: var(--red); }
.org__level::after {
	content: "";
	position: absolute;
	left: 50%; bottom: -21px;
	width: 2px; height: 20px;
	background: var(--line);
}
.org__level h3 { font-size: 1.2rem; }
.org__level p { margin: 0; color: var(--muted); }
.org__tag {
	display: inline-block;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 8px;
}
.org__link {
	margin-top: 20px;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 20px;
	padding: 24px 28px;
	border-radius: var(--radius);
	background: var(--yellow);
	color: var(--primary-dark);
}
.org__link h3 { margin: 0 0 .2em; font-size: 1.2rem; }
.org__link p { margin: 0; }
.org__link .link-arrow { color: var(--primary-dark); }
.org__link-icon {
	display: grid; place-items: center;
	width: 52px; height: 52px;
	border-radius: 50%;
	background: var(--primary-dark);
	color: var(--yellow);
}
.org__link-icon .icon { width: 26px; height: 26px; }
@media (max-width: 860px) {
	.org__levels { grid-template-columns: 1fr; }
	.org__level::after { display: none; }
	.org__link { grid-template-columns: auto 1fr; }
	.org__link .link-arrow { grid-column: 1 / -1; }
}

/* Frise */
.timeline {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 16px;
	position: relative;
}
.timeline::before {
	content: "";
	position: absolute;
	left: 0; right: 0; top: 9px;
	height: 3px;
	background: linear-gradient(90deg, var(--green), var(--yellow), var(--red));
	border-radius: 2px;
}
.timeline li { position: relative; padding-top: 34px; }
.timeline li::before {
	content: "";
	position: absolute;
	top: 0; left: 0;
	width: 21px; height: 21px;
	border-radius: 50%;
	background: var(--white);
	border: 4px solid var(--primary);
}
.timeline__date { display: block; font-family: var(--font-head); font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.timeline p { margin: 0; color: var(--muted); font-size: .96rem; line-height: 1.5; }
@media (max-width: 1023px) {
	.timeline { grid-template-columns: 1fr; gap: 24px; padding-left: 36px; }
	.timeline::before { left: 9px; right: auto; top: 0; bottom: 0; width: 3px; height: auto; background: linear-gradient(180deg, var(--green), var(--yellow), var(--red)); }
	.timeline li { padding-top: 0; }
	.timeline li::before { left: -36px; }
}

/* Cartes d'articles */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
	display: flex;
	flex-direction: column;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card__media { display: block; aspect-ratio: 16 / 10; background: var(--primary-soft); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__placeholder { display: grid; place-items: center; height: 100%; }
.card__placeholder img { width: auto; height: 60%; object-fit: contain; opacity: .5; }
.card__body { padding: 20px 22px 24px; }
.card__meta { font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.card__title { font-size: 1.12rem; margin-bottom: .4em; }
.card__title a { color: var(--primary-dark); text-decoration: none; }
.card__title a:hover { color: var(--primary); }
.card__excerpt { color: var(--muted); margin: 0; font-size: .97rem; }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* ==========================================================================
   Actualités (article vedette + grille)
   ========================================================================== */
.news { background: var(--soft); }

.news-featured {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: var(--radius-lg, 18px);
	background: var(--primary-dark);
	box-shadow: var(--shadow);
	margin-bottom: 40px;
	color: var(--white);
	text-decoration: none;
}
.news-featured__media { display: block; aspect-ratio: 16 / 10; }
.news-featured__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s ease; }
.news-featured:hover .news-featured__media img { transform: scale(1.04); }
.news-featured__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, .85), rgba(0, 0, 0, .25) 55%, rgba(0, 0, 0, 0) 100%);
}
.news-featured__body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(20px, 4vw, 40px); }
.news-featured__cat {
	display: inline-block;
	padding: .3em .9em;
	border-radius: 999px;
	background: rgba(255, 255, 255, .16);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .32);
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--white);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
.news-featured__title {
	display: block;
	margin-top: 14px;
	font-family: var(--font-head);
	font-weight: 800;
	font-size: clamp(1.3rem, 3vw, 2.2rem);
	line-height: 1.15;
	color: var(--white);
}
.news-featured__date { display: block; margin-top: 12px; font-size: .85rem; color: rgba(255, 255, 255, .75); }
@media (min-width: 640px) { .news-featured__media { aspect-ratio: 21 / 9; } }

.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.news-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.news-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--primary-soft); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.news-card:hover .news-card__media img { transform: scale(1.05); }
.news-card__placeholder { display: grid; place-items: center; height: 100%; }
.news-card__placeholder img { width: auto; height: 60%; object-fit: contain; opacity: .5; }
.news-card__body { padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.news-card__cat { margin: 0; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.news-card__title { font-size: 1.05rem; line-height: 1.3; margin: 0; }
.news-card__title a { color: var(--primary-dark); text-decoration: none; }
.news-card__title a::after { content: ""; position: absolute; inset: 0; }
.news-card__title a:hover { color: var(--primary); }
.news-card__date { margin: 0; font-size: .8rem; color: var(--muted); }
.news-card__excerpt { margin: 0; font-size: .92rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 1023px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .news-grid { grid-template-columns: 1fr; } }

/* Appel à l'action */
.cta { background: var(--yellow); color: var(--ink); padding-block: 56px; }
.cta__inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta h2 { color: var(--ink); font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: .3em; }
.cta p { margin: 0; max-width: 60ch; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ==========================================================================
   Pages intérieures
   ========================================================================== */
.page-hero {
	position: relative;
	overflow: hidden;
	background: var(--green-900);
	color: var(--white);
}
/* Halo décoratif (façon bandeau ANASER, décliné en vert DSR). */
.page-hero::before {
	content: "";
	position: absolute;
	top: -140px;
	right: -140px;
	width: min(680px, 82vw);
	height: 680px;
	border-radius: 50%;
	background: radial-gradient(circle at 42% 42%, rgba(242, 183, 5, .22), rgba(27, 122, 62, .12) 44%, transparent 70%);
	pointer-events: none;
}
.page-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(120deg, rgba(11, 46, 27, .45), transparent 58%);
	pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero > .flag-bar { position: relative; z-index: 1; }
.page-hero__inner { padding-block: clamp(56px, 9vw, 104px); max-width: 920px; }
.page-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 18px;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: .8rem;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--yellow);
}
.page-hero__eyebrow::before {
	content: "";
	display: inline-block;
	width: 28px;
	height: 2px;
	background: var(--yellow);
}
.page-hero__title {
	color: var(--white);
	font-size: clamp(2.1rem, 5vw, 3.4rem);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -.01em;
	margin: 0;
}
.page-hero__subtitle { margin: 18px 0 0; font-family: var(--font-accent); font-style: italic; font-size: clamp(1.05rem, 2vw, 1.3rem); color: rgba(255, 255, 255, .82); max-width: 62ch; }
.page-hero__meta { color: var(--yellow); font-weight: 600; margin-bottom: 12px; }
.page-hero__meta a { color: inherit; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; margin-bottom: 14px; color: rgba(255, 255, 255, .7); }
.breadcrumb a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.breadcrumb a:hover { color: var(--yellow); }

.page-body { max-width: 980px; padding-block: clamp(40px, 6vw, 72px); }
.page-body--wide { max-width: var(--container); }

.empty { text-align: center; padding: 48px 16px; color: var(--muted); background: var(--soft); border-radius: var(--radius); }

/* Contenu Gutenberg */
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 {
	font-size: clamp(1.45rem, 2.6vw, 1.9rem);
	margin-top: 2em;
	padding-top: .2em;
}
.entry-content h2::before {
	content: "";
	display: block;
	width: 44px; height: 4px;
	margin-bottom: .6em;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--green) 0 33%, var(--yellow) 33% 66%, var(--red) 66%);
}
.entry-content > h2:first-child, .entry-content .wp-block-column > h2:first-child { margin-top: 0; }
.entry-content h3 { font-size: 1.2rem; margin-top: 1.4em; }
.entry-content .wp-block-column > h3:first-child { margin-top: 0; }
.entry-content .is-lead { font-family: var(--font-accent); font-style: italic; font-size: 1.22rem; font-weight: 600; color: var(--primary); }
.entry-content ul { padding-left: 1.2em; }
.entry-content li + li { margin-top: .35em; }
.entry-content li::marker { color: var(--green); }

.entry-content .wp-block-columns { gap: clamp(24px, 4vw, 48px); margin-block: 1.5em; }

.entry-content .ciplev-checklist { list-style: none; padding: 0; display: grid; gap: 12px; }
.entry-content .ciplev-checklist li {
	position: relative;
	margin: 0;
	padding: 14px 16px 14px 48px;
	background: var(--soft);
	border-radius: var(--radius-sm);
}
.entry-content .ciplev-checklist li::before {
	content: "";
	position: absolute;
	left: 16px; top: 17px;
	width: 20px; height: 20px;
	border-radius: 50%;
	background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.entry-content .ciplev-callout {
	padding: 22px 26px;
	border-left: 5px solid var(--yellow);
	background: var(--primary-soft);
	border-radius: 0 var(--radius) var(--radius) 0;
}
.entry-content .ciplev-callout p:last-child { margin-bottom: 0; }

.entry-content .ciplev-todo {
	padding: 12px 16px;
	background: #FDF4D4;
	border: 1px dashed #d4a800;
	border-radius: var(--radius-sm);
	color: #8A6A00;
	font-size: .95rem;
}

.entry-content .ciplev-cards .wp-block-column {
	padding: 26px;
	border: 1px solid var(--line);
	border-top: 4px solid var(--primary);
	border-radius: var(--radius);
	background: var(--white);
}
.entry-content .ciplev-cards .wp-block-column:nth-child(2) { border-top-color: var(--yellow); }
.entry-content .ciplev-cards .wp-block-column:nth-child(3) { border-top-color: var(--red); }
.entry-content .ciplev-cards p:last-child { margin-bottom: 0; }

.entry-content .ciplev-intro { align-items: center; }
.entry-content .ciplev-intro .wp-block-image img { max-height: 340px; width: auto; margin: 0 auto; }
.entry-content .ciplev-intro .wp-block-column:last-child { flex-basis: 34%; }

/* Personnes */
.entry-content .ciplev-people { align-items: stretch; }
.entry-content .ciplev-person {
	height: 100%;
	text-align: center;
	padding: 28px 22px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--white);
}
.entry-content .ciplev-people .wp-block-column:first-child .ciplev-person { border-color: var(--primary); box-shadow: var(--shadow); }
.entry-content .ciplev-person .wp-block-image img {
	width: 150px; height: 150px;
	object-fit: cover;
	object-position: top;
	border-radius: 50%;
	margin: 0 auto 16px;
	border: 4px solid var(--white);
	box-shadow: 0 0 0 3px var(--yellow);
}
.entry-content .ciplev-person h3 { margin: 0 0 .2em; font-size: 1.12rem; }
.entry-content .ciplev-person__label { margin: 0 0 .4em; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.entry-content .ciplev-person__period { margin: 0; color: var(--muted); }

/* Message */
.entry-content .wp-block-columns.ciplev-message { gap: 28px; }
.entry-content .ciplev-message .wp-block-column:first-child { flex-basis: 240px; flex-grow: 0; text-align: center; }
.entry-content .ciplev-message .wp-block-image { margin: 0; }
.entry-content .ciplev-message .wp-block-image img { border-radius: var(--radius); width: 100%; max-width: 240px; object-fit: cover; aspect-ratio: 4 / 5; object-position: top; }
.entry-content .ciplev-message .wp-block-column:last-child p { text-align: justify; }
.entry-content .ciplev-signature { margin-top: 10px; text-align: center; color: var(--muted); font-size: .95rem; }
.entry-content .ciplev-signature strong { color: var(--primary-dark); }

/* Tableaux */
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content .wp-block-table table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.entry-content .wp-block-table th {
	background: var(--primary);
	color: var(--white);
	text-align: left;
	font-family: var(--font-head);
	font-size: .88rem;
	padding: 12px 16px;
	border: 0;
}
.entry-content .wp-block-table td { padding: 12px 16px; border: 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.entry-content .wp-block-table tr:nth-child(even) td { background: var(--soft); }
.entry-content .wp-block-table td:first-child { font-weight: 600; color: var(--primary-dark); }
@media (max-width: 600px) { .entry-content .wp-block-table table.has-fixed-layout { table-layout: auto; } }

/* FAQ */
.entry-content .wp-block-details {
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--white);
	margin-top: 12px;
	transition: border-color .2s;
}
.entry-content .wp-block-details[open] { border-color: var(--primary); box-shadow: var(--shadow); }
.entry-content .wp-block-details summary {
	cursor: pointer;
	list-style: none;
	padding: 18px 56px 18px 20px;
	font-family: var(--font-head);
	font-weight: 700;
	color: var(--primary-dark);
	position: relative;
}
.entry-content .wp-block-details summary::-webkit-details-marker { display: none; }
.entry-content .wp-block-details summary::after {
	content: "+";
	position: absolute;
	right: 18px; top: 50%;
	transform: translateY(-50%);
	width: 28px; height: 28px;
	display: grid; place-items: center;
	border-radius: 50%;
	background: var(--primary-soft);
	color: var(--primary);
	font-size: 1.2rem;
	line-height: 1;
}
.entry-content .wp-block-details[open] summary::after { content: "−"; background: var(--primary); color: var(--white); }
.entry-content .wp-block-details > :not(summary) { margin: 0 20px 18px; }

/* Organigramme */
.org-chart { margin: 2em 0; }
.org-chart__levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.org-chart__box {
	padding: 20px;
	border-radius: var(--radius);
	background: var(--primary);
	color: var(--white);
	text-align: center;
	position: relative;
}
.org-chart__box:nth-child(2) { background: var(--slate); }
.org-chart__box:nth-child(3) { background: var(--red); }
.org-chart__box::after {
	content: "";
	position: absolute;
	left: 50%; bottom: -18px;
	width: 2px; height: 18px;
	background: var(--muted);
}
.org-chart span, .org-chart em { display: block; font-size: .78rem; font-style: normal; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.org-chart em { text-transform: none; letter-spacing: 0; margin-top: 4px; }
.org-chart strong { display: block; font-family: var(--font-head); font-size: 1.05rem; margin-top: 4px; }
.org-chart__liaison {
	margin-top: 18px;
	padding: 18px;
	border-radius: var(--radius);
	background: var(--yellow);
	color: var(--primary-dark);
	text-align: center;
}
@media (max-width: 700px) {
	.org-chart__levels { grid-template-columns: 1fr; }
	.org-chart__box::after { display: none; }
}

/* Contact */
.ciplev-map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3.4; }
.ciplev-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Articles */
.entry-thumb { margin: 0 0 2em; }
.entry-thumb img { border-radius: var(--radius); }
.post-nav .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.post-nav a { display: block; text-decoration: none; font-weight: 600; }
.post-nav span { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.post-nav .nav-next { text-align: right; }
.pagination .nav-links { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination .page-numbers { padding: 8px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); text-decoration: none; }
.pagination .current { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* Alignements */
.alignwide { max-width: 1100px; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); max-width: none; }
.wp-block-image figcaption, .wp-caption-text { font-size: .9rem; color: var(--muted); text-align: center; }

/* ==========================================================================
   Pied de page
   ========================================================================== */
.site-footer {
	background: linear-gradient(180deg, #0E2418 0%, #0A1A11 100%);
	color: rgba(255, 255, 255, .8);
	font-size: .97rem;
	border-top: 4px solid var(--yellow);
}
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.site-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1.1fr;
	gap: 48px;
	padding-block: 64px 80px;
}
.site-footer__about p { margin: 18px 0; max-width: 42ch; }
.site-footer__title {
	color: var(--white);
	font-size: .85rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	margin-bottom: 1.2em;
}
.footer-menu, .contact-list, .social { list-style: none; margin: 0; padding: 0; }
.footer-menu li + li { margin-top: .55em; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.contact-list li + li { margin-top: .8em; }
.contact-list .icon { color: var(--yellow); margin-top: .25em; }
.social { display: flex; gap: 10px; margin-top: 24px; }
.social a {
	display: grid; place-items: center;
	width: 40px; height: 40px;
	border-radius: 50%;
	background: var(--yellow);
	color: var(--primary-dark);
}
.social a svg { color: var(--primary-dark); }
.social a:hover { background: #F7C72E; color: var(--primary-dark); }
.social a:hover svg { color: var(--primary-dark); }
.site-footer__bottom { background: var(--white); color: var(--muted); font-size: .88rem; }
.site-footer__bottom a { color: var(--muted); }
.site-footer__bottom a:hover { color: var(--primary); }
.site-footer__bottom-inner {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 16px;
	padding-block: 18px;
}
.site-footer__bottom p { margin: 0; }
.site-footer__bottom .to-top { justify-self: end; }
@media (max-width: 600px) {
	.site-footer__bottom-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
	.site-footer__bottom .to-top { justify-self: center; }
}
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr; gap: 36px; } }

/* Widgets */
.widget { margin-bottom: 32px; }
.widget-title { font-size: 1rem; }

/* ==========================================================================
   Page d'accueil — DSR
   ========================================================================== */
:root {
	--dsr-red: #C62828;
	--dsr-green: var(--green);
	--soft-blue: #F3F5F2;
}

/* --- Hero ---------------------------------------------------------------- */
.hero--dsr::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background: linear-gradient(105deg, rgba(24, 40, 20, .93) 0%, rgba(24, 40, 20, .78) 45%, rgba(24, 40, 20, .34) 100%);
}
.hero--dsr .hero__inner { z-index: 1; }
.hero__kicker {
	margin: 0 0 14px;
	font-family: var(--font-head);
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--yellow);
}
.hero--dsr .hero__text { color: rgba(255, 255, 255, .9); white-space: pre-line; }

/* --- Bandeau d'urgence --------------------------------------------------- */
.emergency {
	background: var(--dsr-red);
	color: var(--white);
	padding-block: clamp(32px, 4vw, 48px);
}
.emergency__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.emergency__intro { max-width: 36ch; }
.emergency__intro h2 { color: var(--white); font-size: clamp(1.1rem, 2vw, 1.35rem); margin: 0 0 .35em; }
.emergency__intro p { margin: 0; color: rgba(255, 255, 255, .88); font-size: .95rem; line-height: 1.5; }
.emergency__grid { display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)); gap: 12px; }
.emergency__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	border-radius: var(--radius);
	background: rgba(255, 255, 255, .14);
	border: 1px solid rgba(255, 255, 255, .3);
	text-decoration: none;
	color: var(--white);
	transition: background-color .2s, transform .2s;
}
a.emergency__item:hover { background: rgba(255, 255, 255, .24); color: var(--white); transform: translateY(-2px); }
.emergency__num {
	flex: none;
	font-family: var(--font-head);
	font-weight: 800;
	font-size: 1.45rem;
	line-height: 1;
	padding: 9px 12px;
	border-radius: var(--radius-sm);
	background: var(--white);
	color: var(--dsr-red);
}
.emergency__label { font-size: .87rem; font-weight: 600; line-height: 1.3; }
@media (max-width: 860px) { .emergency__grid { grid-template-columns: 1fr; width: 100%; } }

/* --- Contrôle routier : cartes ------------------------------------------- */
.section__lead { margin: 0; color: var(--muted); max-width: 44ch; font-size: .98rem; }

.control-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.control-card {
	position: relative;
	overflow: hidden;
	padding: 26px 24px 24px;
	background: var(--white);
	border: 1px solid var(--line);
	border-top: 4px solid var(--primary);
	border-radius: var(--radius);
	transition: transform .2s, box-shadow .2s;
}
.control-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.control-card:nth-child(3n+2) { border-top-color: var(--yellow); }
.control-card:nth-child(3n) { border-top-color: var(--dsr-red); }
.control-card__num {
	position: absolute;
	right: 14px; top: 6px;
	font-family: var(--font-head);
	font-size: 3.4rem;
	font-weight: 800;
	line-height: 1;
	color: var(--soft);
}
.control-card__icon {
	display: grid;
	place-items: center;
	width: 50px; height: 50px;
	margin-bottom: 16px;
	border-radius: 14px;
	background: var(--primary-soft);
	color: var(--primary);
}
.control-card:nth-child(3n+2) .control-card__icon { background: var(--yellow-soft); color: #8A6A00; }
.control-card:nth-child(3n) .control-card__icon { background: #FBE4E4; color: var(--dsr-red); }
.control-card__icon .icon { width: 25px; height: 25px; }
.control-card__title { position: relative; font-size: 1.08rem; margin-bottom: .4em; }
.control-card__text { position: relative; margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }
@media (max-width: 1023px) { .control-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .control-grid { grid-template-columns: 1fr; } }

/* Bandeau « documents à présenter ». */
.docs {
	display: grid;
	grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
	gap: clamp(20px, 3vw, 36px);
	align-items: center;
	margin-top: 24px;
	padding: clamp(22px, 3vw, 32px);
	border-radius: var(--radius);
	background: var(--primary);
	color: rgba(255, 255, 255, .9);
}
.docs__head { display: flex; align-items: center; gap: 16px; }
.docs__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 52px; height: 52px;
	border-radius: 14px;
	background: var(--yellow);
	color: var(--primary-dark);
}
.docs__icon .icon { width: 26px; height: 26px; }
.docs__title { color: var(--white); font-size: 1.12rem; margin: 0 0 .25em; }
.docs__note { margin: 0; font-size: .88rem; color: rgba(255, 255, 255, .75); }
.docs__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.docs__list li {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 12px 14px;
	border-radius: var(--radius-sm);
	background: rgba(255, 255, 255, .12);
	font-size: .93rem;
	font-weight: 600;
	line-height: 1.35;
}
.docs__list .icon { flex: none; color: var(--yellow); }
@media (max-width: 860px) {
	.docs { grid-template-columns: 1fr; }
	.docs__list { grid-template-columns: 1fr; }
}

/* --- Organisation territoriale : organigramme ----------------------------- */
.orgmap__hq {
	padding: clamp(24px, 3.4vw, 36px);
	border-radius: var(--radius);
	background:
		radial-gradient(600px 300px at 0% 0, rgba(242, 183, 5, .16), transparent 60%),
		linear-gradient(135deg, var(--green-900), var(--primary));
	color: rgba(255, 255, 255, .88);
	box-shadow: var(--shadow);
}
.orgmap__hq-top { display: flex; align-items: center; gap: 18px; }
.orgmap__hq-icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 58px; height: 58px;
	border-radius: 50%;
	background: var(--yellow);
	color: var(--primary-dark);
}
.orgmap__hq-icon .icon { width: 28px; height: 28px; }
.orgmap__hq-tag {
	margin: 0 0 4px;
	font-family: var(--font-head);
	font-size: .76rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--yellow);
}
.orgmap__hq-title { color: var(--white); font-size: clamp(1.25rem, 2.2vw, 1.6rem); margin: 0; }
.orgmap__hq-list {
	list-style: none;
	margin: 24px 0 0;
	padding: 22px 0 0;
	border-top: 1px solid rgba(255, 255, 255, .18);
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px 24px;
}
.orgmap__hq-list li { display: flex; align-items: flex-start; gap: 9px; font-size: .93rem; line-height: 1.4; }
.orgmap__hq-list .icon { flex: none; margin-top: 3px; color: var(--yellow); transform: rotate(-45deg); }

.orgmap__stem {
	display: block;
	width: 3px;
	height: 40px;
	margin: 0 auto;
	border-radius: 2px;
	background: linear-gradient(180deg, var(--primary), var(--yellow));
}

.orgmap__regions {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 16px;
}
.orgmap__region {
	padding: 20px 18px;
	background: var(--white);
	border: 1px solid var(--line);
	border-top: 4px solid var(--primary);
	border-radius: var(--radius);
}
.orgmap__region:nth-child(2) { border-top-color: var(--dsr-green); }
.orgmap__region:nth-child(3) { border-top-color: var(--yellow); }
.orgmap__region:nth-child(4) { border-top-color: var(--green); }
.orgmap__region:nth-child(5) { border-top-color: var(--dsr-red); }
.orgmap__region-name {
	margin: 0 0 14px;
	font-family: var(--font-head);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--muted);
}
.orgmap__sections { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.orgmap__sections li {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 9px 12px;
	border-radius: 999px;
	background: var(--soft);
	font-family: var(--font-head);
	font-weight: 700;
	font-size: .95rem;
	color: var(--primary-dark);
}
.orgmap__sections .icon { flex: none; color: var(--dsr-red); }
.orgmap__note {
	margin: 24px 0 0;
	padding: 18px 22px;
	border-left: 4px solid var(--yellow);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	background: var(--white);
	font-size: .93rem;
	color: var(--muted);
}
@media (max-width: 1180px) {
	.orgmap__regions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.orgmap__hq-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 780px) {
	.orgmap__regions { grid-template-columns: 1fr 1fr; }
	.orgmap__hq-list { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
	.orgmap__regions { grid-template-columns: 1fr; }
}

/* --- Grilles variantes --------------------------------------------------- */
.actions-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1023px) { .actions-grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .actions-grid--3 { grid-template-columns: 1fr; } }

.values__grid--5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1180px) { .values__grid--5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .values__grid--5 { grid-template-columns: 1fr; } }
.values .value { display: flex; flex-direction: column; }
.values .value h3 { font-size: 1.08rem; }
.values .value p { font-size: .95rem; line-height: 1.5; }

/* --- Foire aux questions (accueil) --------------------------------------- */
.faq__layout {
	display: grid;
	grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
	gap: clamp(28px, 5vw, 64px);
	align-items: start;
}
.faq__intro {
	position: relative;
	padding: clamp(26px, 3.4vw, 38px);
	border-radius: var(--radius);
	background:
		radial-gradient(500px 260px at 100% 0, rgba(242, 183, 5, .18), transparent 60%),
		linear-gradient(150deg, var(--green-900), var(--primary));
	color: rgba(255, 255, 255, .88);
	overflow: hidden;
}
.faq__badge {
	display: grid;
	place-items: center;
	width: 56px; height: 56px;
	margin-bottom: 20px;
	border-radius: 50%;
	background: var(--yellow);
	color: var(--primary-dark);
}
.faq__badge .icon { width: 27px; height: 27px; }
.faq__intro .eyebrow { color: var(--yellow); }
.faq__intro .eyebrow::before { background: var(--white); }
.faq__intro .section__title { color: var(--white); }
.faq__text { margin: 0 0 24px; font-size: .97rem; line-height: 1.6; }
.faq__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.faq__actions .btn--outline { border-color: rgba(255, 255, 255, .6); color: var(--white); }
.faq__actions .btn--outline:hover { background: var(--white); color: var(--primary-dark); }

.faq__list { display: grid; gap: 12px; }
.faq-item {
	border: 1px solid var(--line);
	border-left: 4px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--white);
	transition: border-color .2s, box-shadow .2s, transform .2s;
}
.faq-item:hover { border-color: #D5DCD6; border-left-color: var(--yellow); }
.faq-item[open] {
	border-color: var(--line);
	border-left-color: var(--primary);
	box-shadow: var(--shadow);
}
.faq-item summary {
	display: flex;
	align-items: center;
	gap: 14px;
	cursor: pointer;
	list-style: none;
	padding: 16px 18px;
	position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item__num {
	flex: none;
	display: grid;
	place-items: center;
	width: 38px; height: 38px;
	border-radius: 50%;
	background: var(--soft);
	color: var(--primary);
	font-family: var(--font-head);
	font-weight: 800;
	font-size: .92rem;
	transition: background-color .2s, color .2s;
}
.faq-item[open] .faq-item__num { background: var(--primary); color: var(--white); }
.faq-item__q {
	flex: 1;
	padding-right: 34px;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 1.02rem;
	line-height: 1.35;
	color: var(--primary-dark);
}
.faq-item summary::after {
	content: "";
	position: absolute;
	right: 18px; top: 50%;
	transform: translateY(-50%);
	width: 30px; height: 30px;
	border-radius: 50%;
	background: var(--primary-soft);
	transition: transform .2s, background-color .2s;
}
.faq-item summary::before {
	content: "";
	position: absolute;
	right: 16px; top: 50%;
	transform: translateY(-50%);
	width: 34px; height: 34px;
	border-radius: 50%;
	background: var(--primary-soft);
	transition: background-color .2s;
}
.faq-item summary::after {
	content: "\002B";
	position: absolute;
	right: 16px; top: 50%;
	transform: translateY(-50%);
	width: 34px; height: 34px;
	display: grid;
	place-items: center;
	font-size: 1.4rem;
	line-height: 1;
	color: var(--primary);
	transition: transform .22s ease, color .2s;
}
.faq-item[open] summary::before { background: var(--primary); }
.faq-item[open] summary::after { color: var(--white); transform: translateY(-50%) rotate(135deg); }
.faq-item__a { padding: 0 18px 18px 70px; }
.faq-item__a p { margin: 0; padding-top: 14px; border-top: 1px dashed var(--line); color: var(--muted); font-size: .96rem; line-height: 1.6; }
@media (max-width: 960px) {
	.faq__layout { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.faq-item summary { padding: 14px; gap: 10px; }
	.faq-item__q { font-size: .96rem; padding-right: 30px; }
	.faq-item__a { padding: 0 14px 16px; }
}

/* ==========================================================================
   Accueil — Mot du chef, réalisations en images, accès rapides, partenaires
   ========================================================================== */

/* Mot du chef de division. */
#mot-du-chef .split { align-items: center; }
.quote__media { display: grid; place-items: center; }
.quote__media img {
	width: 100%;
	max-width: 420px;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	object-fit: cover;
	aspect-ratio: 4 / 5;
	object-position: top;
}
.quote__initials {
	display: grid;
	place-items: center;
	width: 220px; height: 220px;
	border-radius: 50%;
	background: var(--primary-soft);
	color: var(--primary-dark);
	font-family: var(--font-head);
	font-size: 4rem;
	font-weight: 800;
	line-height: 1;
	box-shadow: 0 0 0 6px var(--yellow-soft);
}
.quote .section__title { margin-bottom: .5em; }
.quote__text {
	margin: 0 0 1.4em;
	padding-left: 22px;
	border-left: 4px solid var(--yellow);
	font-family: var(--font-accent);
	font-style: italic;
	font-size: 1.2rem;
	line-height: 1.6;
	color: var(--ink);
}
.quote__author { margin: 0 0 22px; display: grid; }
.quote__author strong { font-family: var(--font-head); font-size: 1.05rem; color: var(--primary-dark); }
.quote__author span { color: var(--muted); font-size: .95rem; }
.section__more--left { text-align: left; margin-top: 8px; }

/* Galerie « Réalisations en images ». */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.gallery-card {
	position: relative;
	display: block;
	margin: 0;
	overflow: hidden;
	border-radius: var(--radius);
	aspect-ratio: 4 / 3;
	background: var(--primary-soft);
}
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-card:hover img { transform: scale(1.06); }
.gallery-card__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 20px;
	background: linear-gradient(0deg, rgba(11, 46, 27, .9) 0%, rgba(11, 46, 27, .25) 45%, transparent 100%);
	color: var(--white);
	pointer-events: none;
}
.gallery-card__title { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; line-height: 1.35; }
.gallery-card__link { display: block; width: 100%; height: 100%; }

/* Galerie complète (page « Galerie »). */
.gallery-grid--full { grid-template-columns: repeat(3, 1fr); }
.gallery-card--video { aspect-ratio: auto; display: flex; flex-direction: column; background: #000; }
.gallery-card--video video { display: block; width: 100%; max-height: 320px; object-fit: contain; background: #000; }
.gallery-card__caption {
	display: block;
	padding: 10px 14px;
	background: var(--primary-soft);
	color: var(--primary-dark);
	font-family: var(--font-head);
	font-weight: 700;
	font-size: .95rem;
	line-height: 1.35;
}

/* Visionneuse d'images (galerie). */
.lightbox { position: fixed; inset: 0; z-index: 2000; display: none; place-items: center; padding: 24px; background: rgba(11, 46, 27, .92); }
.lightbox.is-open { display: grid; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 86vh; width: auto; height: auto; border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.lightbox__close {
	position: absolute;
	top: 18px;
	right: 22px;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .15);
	color: var(--white);
	font-size: 1.9rem;
	line-height: 1;
	cursor: pointer;
}
.lightbox__close:hover { background: rgba(255, 255, 255, .32); }
body.lightbox-open { overflow: hidden; }

/* Accès rapides. */
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.quick-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 26px 24px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	text-decoration: none;
	transition: transform .2s, box-shadow .2s, border-color .2s;
}
.quick-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.quick-card__icon {
	display: grid;
	place-items: center;
	width: 50px; height: 50px;
	border-radius: 14px;
	background: var(--primary);
	color: var(--white);
}
.quick-card:nth-child(even) .quick-card__icon { background: var(--yellow); color: var(--primary-dark); }
.quick-card__icon .icon { width: 25px; height: 25px; }
.quick-card__title { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--primary-dark); }
.quick-card__text { color: var(--muted); font-size: .95rem; line-height: 1.5; }
.quick-card__more {
	margin-top: auto;
	padding-top: 6px;
	display: inline-flex;
	align-items: center;
	gap: .4em;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: .92rem;
	color: var(--primary);
}
.quick-card__more .icon { transition: transform .2s; }
.quick-card:hover .quick-card__more .icon { transform: translateX(4px); }

/* Partenaires et institutions. */
.partners {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
}
.partner {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 18px 20px;
	background: var(--soft);
	border: 1px solid var(--line);
	border-left: 4px solid var(--primary);
	border-radius: var(--radius);
	font-family: var(--font-head);
	font-weight: 700;
	color: var(--ink);
}
.partner .icon { width: 22px; height: 22px; color: var(--primary); flex: none; }

@media (max-width: 1023px) {
	.quick-grid { grid-template-columns: 1fr 1fr; }
	.gallery-grid--full { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
	.gallery-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
	.quick-grid { grid-template-columns: 1fr; }
	.gallery-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Animations d'apparition (reveal au défilement)
   ========================================================================== */
[data-reveal] { opacity: 1; }
html.reveal-ready [data-reveal] {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity .7s cubic-bezier(.22, .61, .36, 1), transform .7s cubic-bezier(.22, .61, .36, 1);
	transition-delay: var(--reveal-delay, 0s);
	will-change: opacity, transform;
}
html.reveal-ready [data-reveal].is-revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html.reveal-ready [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Défilement (marquee) — partenaires, bandeau d'alerte
   ========================================================================== */
.marquee { overflow: hidden; position: relative; width: 100%; }
.marquee__track {
	display: flex;
	width: max-content;
	animation: marquee-scroll 36s linear infinite;
}
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__group {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0;
	padding: 0 8px;
	list-style: none;
	flex: none;
}
@keyframes marquee-scroll {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
	.marquee__track { animation: none; }
	.marquee { overflow-x: auto; }
}

/* Partenaires défilants (carrousel de vignettes). */
.marquee--partners .marquee__group { gap: 18px; }
.marquee--partners .partner {
	flex: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 208px;
	min-height: 136px;
	gap: 12px;
	margin: 0;
	padding: 22px 24px;
	background: var(--white);
	border: 0;
	border-radius: 14px;
	color: var(--primary-dark);
	white-space: normal;
	line-height: 1.25;
	box-shadow: 0 10px 24px rgba(0, 0, 0, .14);
}
/* Pastille monogramme (remplaçable par un vrai logo). */
.partner__mark {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	flex: none;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--primary) 0%, var(--green-900) 100%);
	color: var(--white);
	font-family: var(--font-head);
	font-weight: 800;
	font-size: 1.05rem;
	letter-spacing: .02em;
}
/* Logo officiel (emblème) d'un partenaire, utilisé quand aucun monogramme n'est nécessaire. */
.partner__logo {
	flex: none;
	height: 104px;
	width: auto;
	max-width: 200px;
	object-fit: contain;
}
.partner__name { font-weight: 700; font-size: .95rem; }
.partners-carousel {
	position: relative;
	overflow: hidden;
	border-radius: 24px;
	background: linear-gradient(135deg, var(--green-900) 0%, var(--primary) 100%);
	padding-block: clamp(28px, 4vw, 48px);
	box-shadow: var(--shadow);
}

/* ==========================================================================
   Bandeau d'alerte défilant
   ========================================================================== */
.alert-ticker {
	position: relative;
	color: var(--white);
	background-color: rgba(15, 25, 17, .9);
	-webkit-backdrop-filter: blur(8px) saturate(1.05);
	backdrop-filter: blur(8px) saturate(1.05);
	border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.alert-ticker--info { background-image: linear-gradient(90deg, rgba(27, 122, 62, .5), rgba(15, 25, 17, 0) 70%); }
.alert-ticker--warn { background-image: linear-gradient(90deg, rgba(178, 122, 12, .42), rgba(15, 25, 17, 0) 70%); }
.alert-ticker--danger { background-image: linear-gradient(90deg, rgba(154, 33, 33, .5), rgba(15, 25, 17, 0) 70%); }
.alert-ticker__inner {
	display: flex;
	align-items: center;
	gap: 18px;
	padding-block: 11px;
}
.alert-ticker__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: none;
	padding: 5px 14px;
	border-radius: 999px;
	background: var(--red);
	font-family: var(--font-head);
	font-weight: 800;
	font-size: .82rem;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.alert-ticker__badge .icon { width: 18px; height: 18px; color: var(--white); }
.alert-ticker--info .alert-ticker__badge .icon { color: var(--white); }
.alert-ticker--warn .alert-ticker__badge .icon { color: var(--white); }
.alert-ticker--danger .alert-ticker__badge .icon { color: var(--white); }
.alert-ticker__viewport { flex: 1 1 auto; min-width: 0; }
.alert-ticker__item {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: inherit;
	text-decoration: none;
	font-weight: 600;
	padding-right: 8px;
}
.alert-ticker__item:hover .alert-ticker__text { text-decoration: underline; }
.alert-ticker__dot {
	width: 9px; height: 9px;
	border-radius: 50%;
	background: currentColor;
	flex: none;
	animation: alert-pulse 1.4s ease-in-out infinite;
}
@keyframes alert-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.alert-ticker__place { opacity: .85; font-weight: 500; }
.alert-ticker__link {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: .86rem;
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
}
.alert-ticker__link .icon { width: 16px; height: 16px; }
.alert-ticker__link:hover { text-decoration: underline; }
@media (max-width: 760px) {
	.alert-ticker__link { display: none; }
	.alert-ticker__badge span { display: none; }
}

/* ==========================================================================
   Cartes d'alerte (page « La DSR en action › Alertes »)
   ========================================================================== */
.alert-list { display: grid; gap: 18px; margin-bottom: 8px; }
.alert-list--past { opacity: .92; }
.alert-card {
	position: relative;
	padding: 24px 26px 22px;
	background: var(--white);
	border: 1px solid var(--line);
	border-left: 6px solid var(--muted);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}
.alert-card--info { border-left-color: var(--primary); }
.alert-card--warn { border-left-color: var(--yellow); }
.alert-card--danger { border-left-color: var(--red); }
.alert-card--active.alert-card--danger { background: linear-gradient(180deg, #FDEDED, var(--white)); }
.alert-card--active.alert-card--warn { background: linear-gradient(180deg, var(--yellow-soft), var(--white)); }
.alert-card__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.alert-card__gravite {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-head);
	font-weight: 800;
	font-size: .78rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--primary-dark);
}
.alert-card--warn .alert-card__gravite { color: #8A6A00; }
.alert-card--danger .alert-card__gravite { color: var(--red); }
.alert-card__gravite .icon { width: 18px; height: 18px; }
.alert-card__statut {
	padding: 3px 12px;
	border-radius: 999px;
	background: var(--soft);
	border: 1px solid var(--line);
	font-family: var(--font-head);
	font-weight: 700;
	font-size: .76rem;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--muted);
}
.alert-card--active .alert-card__statut { background: var(--primary); border-color: transparent; color: var(--white); }
.alert-card__title { margin: 0 0 10px; font-size: 1.25rem; }
.alert-card__body { color: var(--ink); }
.alert-card__body > :last-child { margin-bottom: 0; }
.alert-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	align-items: center;
	margin: 14px 0 0;
	padding-top: 14px;
	border-top: 1px dashed var(--line);
	color: var(--muted);
	font-size: .9rem;
}
.alert-card__meta .icon { width: 16px; height: 16px; vertical-align: -3px; margin-right: 5px; }
.dsr-h2 { margin-top: 40px; }

/* ==========================================================================
   Bannière d'accès rapide au contact
   ========================================================================== */
.contact-banner {
	position: relative;
	background:
		radial-gradient(720px 320px at 0 100%, rgba(242, 183, 5, .16), transparent 62%),
		linear-gradient(135deg, var(--green-900) 0%, var(--primary) 100%);
	color: var(--white);
	padding-block: clamp(40px, 6vw, 68px);
}
.contact-banner__inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 32px;
	flex-wrap: wrap;
}
.contact-banner__text { max-width: 62ch; }
.contact-banner h2 { color: var(--white); font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin-bottom: .35em; }
.contact-banner__text p { margin: 0; color: rgba(255, 255, 255, .88); }
.contact-banner__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.contact-banner .eyebrow--light { color: var(--yellow); }
/* Bouton ALLO DSR : fond jaune, texte vert. */
.contact-banner .btn--yellow { color: var(--green); }
.contact-banner .btn--yellow:hover { background: #F7C72E; color: var(--green-900); }

/* ==========================================================================
   Bouton « ALLO DSR » dans le menu
   ========================================================================== */
.main-nav .menu > .menu-cta > a {
	background: var(--yellow) !important;
	color: var(--green) !important;
	font-weight: 800;
	border-radius: 999px;
	padding: 9px 18px !important;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.main-nav .menu > .menu-cta > a:hover { background: #F7C72E !important; color: var(--green-900) !important; }

/* ==========================================================================
   Pages intérieures — DSR
   ========================================================================== */

/* --- En-tête de page : pastille + titre --------------------------------- */
.entry-content .dsr-lead {
	padding: 0 0 8px;
	font-size: clamp(1.02rem, 1.4vw, 1.14rem);
	line-height: 1.65;
	color: var(--muted);
}

/* Bloc d'information : fond teinté + liseré. */
.entry-content .dsr-panel {
	margin: 32px 0;
	padding: clamp(22px, 3vw, 30px);
	border-left: 4px solid var(--primary);
	border-radius: 0 var(--radius) var(--radius) 0;
	background: var(--soft);
}
.entry-content .dsr-panel--dark {
	border-left-color: var(--yellow);
	background: linear-gradient(135deg, var(--green-900), var(--primary));
	color: rgba(255, 255, 255, .9);
}
.entry-content .dsr-panel--dark h2,
.entry-content .dsr-panel--dark h3,
.entry-content .dsr-panel--dark strong { color: var(--white); }
.entry-content .dsr-panel--dark h2::before,
.entry-content .dsr-panel--dark h3::before { background: var(--yellow); }
.entry-content .dsr-panel > :last-child { margin-bottom: 0; }

/* Grille de cartes réutilisable dans les pages. */
.entry-content .dsr-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	margin: 28px 0;
}
.entry-content .dsr-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.entry-content .dsr-card {
	margin: 0;
	padding: 22px 20px;
	background: var(--white);
	border: 1px solid var(--line);
	border-top: 4px solid var(--primary);
	border-radius: var(--radius);
}
.entry-content .dsr-card:nth-child(3n+2) { border-top-color: var(--yellow); }
.entry-content .dsr-card:nth-child(3n) { border-top-color: var(--dsr-red); }
.entry-content .dsr-grid--2 .dsr-card:nth-child(n) { border-top-color: var(--primary); }
.entry-content .dsr-card h3 { margin: 0 0 .5em; font-size: 1.06rem; }
.entry-content .dsr-card h3::before { display: none; }
.entry-content .dsr-card p { margin: 0; font-size: .95rem; line-height: 1.55; color: var(--muted); }
.entry-content .dsr-card__icon {
	display: grid;
	place-items: center;
	width: 44px; height: 44px;
	margin-bottom: 14px;
	border-radius: 12px;
	background: var(--primary-soft);
	color: var(--primary);
}
.entry-content .dsr-card__icon .icon { width: 22px; height: 22px; }
@media (max-width: 900px) { .entry-content .dsr-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) {
	.entry-content .dsr-grid,
	.entry-content .dsr-grid--2 { grid-template-columns: 1fr; }
}

/* Liste « points forts ». */
.entry-content .dsr-list {
	list-style: none;
	margin: 24px 0;
	padding: 0;
	display: grid;
	gap: 10px;
}
.entry-content .dsr-list li {
	position: relative;
	margin: 0;
	padding: 13px 16px 13px 44px;
	background: var(--soft);
	border-radius: var(--radius-sm);
	font-size: .96rem;
	line-height: 1.5;
}
.entry-content .dsr-list li::before {
	content: "";
	position: absolute;
	left: 15px; top: 15px;
	width: 18px; height: 18px;
	border-radius: 50%;
	background: var(--dsr-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* Documents & bilans (rapports et fichiers importés). */
.dsr-documents { margin: 26px 0; }
.dsr-documents--classement .doc-annee { margin: 30px 0; }
.doc-annee__title {
	margin: 0 0 14px;
	padding: 8px 16px;
	font-size: 1.3rem;
	font-weight: 700;
	letter-spacing: .04em;
	color: var(--white);
	background: var(--primary-dark);
	border-radius: var(--radius);
}
.doc-mois { margin: 22px 0; }
.doc-mois__title {
	margin: 0 0 12px;
	padding-bottom: 8px;
	font-size: 1.05rem;
	font-weight: 700;
	text-transform: capitalize;
	color: var(--primary-dark);
	border-bottom: 2px solid var(--primary-soft);
}
.doc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 18px;
}
.doc-card {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin: 0;
	padding: 20px;
	background: var(--white);
	border: 1px solid var(--line);
	border-left: 4px solid var(--dsr-red);
	border-radius: var(--radius);
	box-shadow: 0 6px 18px rgba(11, 46, 27, .06);
}
.doc-card__icon {
	position: relative;
	display: grid;
	place-items: center;
	flex: none;
	width: 52px;
	height: 52px;
	border-radius: 12px;
	background: var(--primary-soft);
	color: var(--primary-dark);
}
.doc-card__icon .icon { width: 26px; height: 26px; }
.doc-card__type {
	position: absolute;
	bottom: -6px;
	right: -8px;
	padding: 1px 6px;
	border-radius: 6px;
	background: var(--primary);
	color: var(--white);
	font-size: .62rem;
	font-weight: 800;
	letter-spacing: .04em;
	line-height: 1.4;
}
.doc-card__body { flex: 1 1 auto; min-width: 0; }
.doc-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 8px;
}
.doc-card__cat {
	display: inline-block;
	font-size: .7rem;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--dsr-green);
}
.doc-card__title { margin: 0 0 6px; font-size: 1.05rem; line-height: 1.3; }
.doc-card__desc { margin: 0 0 8px; font-size: .92rem; line-height: 1.5; color: var(--muted); }
.doc-card__meta { margin: 0; font-size: .8rem; font-weight: 600; color: var(--muted); }
.doc-card__btn {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border-radius: 999px;
	background: var(--yellow);
	color: var(--primary-dark);
	font-weight: 700;
	font-size: .85rem;
	text-decoration: none;
	transition: background .18s ease, transform .18s ease;
}
.doc-card__btn .icon { width: 18px; height: 18px; }
.doc-card__btn:hover { background: #F7C72E; transform: translateY(-1px); }
@media (max-width: 640px) {
	.doc-card { flex-wrap: wrap; }
	.doc-card__head { gap: 8px; }
}

/* Chiffres clés. */
.entry-content .dsr-facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 28px 0;
}
.entry-content .dsr-fact {
	margin: 0;
	padding: 20px;
	text-align: center;
	border-radius: var(--radius);
	background: var(--soft);
	border: 1px solid var(--line);
}
.entry-content .dsr-fact__num {
	display: block;
	font-family: var(--font-head);
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	font-weight: 800;
	line-height: 1;
	color: var(--primary);
}
.entry-content .dsr-fact__label { display: block; margin-top: 8px; font-size: .92rem; color: var(--muted); line-height: 1.4; }
@media (max-width: 620px) { .entry-content .dsr-facts { grid-template-columns: 1fr; } }

/* --- Annuaire territorial (sections + urgences) ------------------------- */
.dsr-dir { display: grid; gap: 26px; margin: 28px 0; }
.dsr-dir__head {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 20px 22px;
	border-radius: var(--radius);
	background: linear-gradient(135deg, var(--green-900), var(--primary));
	color: rgba(255, 255, 255, .9);
}
.dsr-dir__head-icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 48px; height: 48px;
	border-radius: 50%;
	background: var(--yellow);
	color: var(--primary-dark);
}
.dsr-dir__head-icon .icon { width: 24px; height: 24px; }
.dsr-dir__head-text { display: grid; }
.dsr-dir__head-title { color: var(--white); font-family: var(--font-head); font-size: 1.12rem; line-height: 1.25; }
.dsr-dir__head-sub { font-size: .88rem; color: rgba(255, 255, 255, .75); }
.dsr-dir__subtitle {
	margin: 0;
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--muted);
}
.dsr-dir__subtitle::before { display: none; }

/* Numéros d'urgence. */
.dsr-urgent { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dsr-urgent__item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 18px;
	border-radius: var(--radius);
	background: var(--white);
	border: 1px solid var(--line);
	border-left: 4px solid var(--dsr-red);
	text-decoration: none;
	transition: transform .2s, box-shadow .2s;
}
a.dsr-urgent__item:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.dsr-urgent__num {
	flex: none;
	padding: 10px 14px;
	border-radius: var(--radius-sm);
	background: var(--dsr-red);
	color: var(--white);
	font-family: var(--font-head);
	font-weight: 800;
	font-size: 1.35rem;
	line-height: 1;
}
.dsr-urgent__text { display: grid; gap: 3px; }
.dsr-urgent__text strong { font-family: var(--font-head); font-size: 1rem; color: var(--primary-dark); line-height: 1.25; }
.dsr-urgent__text span { font-size: .88rem; line-height: 1.4; color: var(--muted); }
@media (max-width: 860px) { .dsr-urgent { grid-template-columns: 1fr; } }

/* Tableau des sections. */
.dsr-dir__scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 1px 2px rgba(38, 50, 56, .05); }
.dsr-dir__table { width: 100%; border-collapse: collapse; font-size: .96rem; table-layout: fixed; }
.dsr-dir__table thead th {
	padding: 14px 20px;
	text-align: left;
	background: var(--primary);
	color: var(--white);
	border-bottom: 0;
	font-family: var(--font-head);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.dsr-dir__table thead th:first-child { width: 46%; }
.dsr-dir__table th, .dsr-dir__table td { padding: 14px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.dsr-dir__table tbody:last-child tr:last-child th,
.dsr-dir__table tbody:last-child tr:last-child td { border-bottom: 0; }
.dsr-dir__section--even { background: var(--soft); }
.dsr-dir__section:hover { background: var(--yellow-soft); }
.dsr-dir__region th { padding: 13px 20px; background: var(--primary-soft); border-top: 2px solid var(--primary); }
.dsr-dir__table tbody:first-child .dsr-dir__region th { border-top: 0; }
.dsr-dir__region .dsr-dir__region-name {
	color: var(--primary-dark);
	font-family: var(--font-head);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: .01em;
}
.dsr-dir__count {
	display: inline-block;
	margin-left: 10px;
	padding: 3px 10px;
	border-radius: 999px;
	background: rgba(27, 122, 62, .12);
	color: var(--primary-dark);
	font-size: .76rem;
	font-weight: 700;
}
.dsr-dir__unit { font-family: var(--font-head); font-size: 1.04rem; font-weight: 700; color: var(--primary-dark); }
.dsr-dir__place { color: var(--muted); }
.dsr-dir__place .icon { width: 16px; height: 16px; margin-right: 6px; color: var(--primary); vertical-align: -3px; }

/* Récapitulatif par région. */
.dsr-dir__summary {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 10px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: .9rem;
	line-height: 1.5;
	color: var(--muted);
}
.dsr-dir__summary li { padding-left: 16px; position: relative; }
.dsr-dir__summary li::before {
	content: "";
	position: absolute;
	left: 0; top: .55em;
	width: 7px; height: 7px;
	border-radius: 50%;
	background: var(--dsr-green);
}
.dsr-dir__summary strong { color: var(--primary-dark); }

/* Sur petit écran : chaque section devient une fiche. */
@media (max-width: 620px) {
	.dsr-dir__table, .dsr-dir__table tbody, .dsr-dir__table tr, .dsr-dir__table th, .dsr-dir__table td { display: block; width: auto; }
	.dsr-dir__table thead { position: absolute; left: -9999px; }
	.dsr-dir__table tbody { padding: 6px; }
	.dsr-dir__region th { margin: 10px 0 6px; border-radius: var(--radius-sm); border-top: 0; }
	.dsr-dir__table tbody:first-child .dsr-dir__region th { margin-top: 0; }
	.dsr-dir__section { border: 1px solid var(--line); border-radius: var(--radius-sm); margin: 0 0 8px; padding: 4px 12px; background: var(--white); }
	.dsr-dir__section--even { background: var(--soft); }
	.dsr-dir__table th, .dsr-dir__table td { border-bottom: 0; }
	.dsr-dir__table td[data-label]::before {
		content: attr(data-label) " : ";
		font-size: .74rem;
		font-weight: 700;
		letter-spacing: .08em;
		text-transform: uppercase;
		color: var(--muted);
	}
}
.dsr-dir__foot {
	margin: 0;
	padding: 18px 20px;
	border-left: 4px solid var(--yellow);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	background: var(--soft);
	font-size: .93rem;
	line-height: 1.55;
	color: var(--muted);
}
.dsr-dir__foot a { color: var(--primary); font-weight: 600; }

/* --- Signature du chef de division -------------------------------------- */
.entry-content .dsr-signature {
	margin: 28px 0;
	padding: 24px 26px;
	border-radius: var(--radius);
	background: var(--soft);
	border: 1px solid var(--line);
}
.entry-content .dsr-signature strong { display: block; font-family: var(--font-head); font-size: 1.06rem; color: var(--primary-dark); }
.entry-content .dsr-signature span { display: block; margin-top: 4px; font-size: .9rem; color: var(--yellow); }
.entry-content .dsr-signature--dark {
	background: linear-gradient(135deg, var(--green-900), var(--primary));
	border-color: transparent;
}
.entry-content .dsr-signature--dark strong { color: var(--white); }

/* ==========================================================================
   Page Contact : coordonnées, plan d'accès, formulaire
   ========================================================================== */
.dsr-contact { display: grid; gap: 0; margin: 30px 0 10px; }

/* Onglets internes (Siège · Numéros d'urgence · Antennes régionales). */
.dsr-contact-tabs {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin: 0 0 28px;
	padding: 6px;
	background: var(--soft);
	border: 1px solid var(--line);
	border-radius: 999px;
	width: fit-content;
	max-width: 100%;
}
.dsr-contact-tabs a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: 999px;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: .95rem;
	line-height: 1.3;
	text-decoration: none;
	color: var(--ink);
	transition: background .15s, color .15s;
}
.dsr-contact-tabs a.is-active,
.dsr-contact-tabs a[aria-current="page"] { background: var(--primary); color: var(--white); }
.dsr-contact-tabs a:hover { background: var(--primary-soft); color: var(--primary-dark); }
.dsr-contact-tabs a.is-active:hover { background: var(--primary-dark); color: var(--white); }

/* Siège : coordonnées à gauche, carte collée juste à droite. */
.dsr-contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(20px, 3vw, 36px);
	align-items: start;
	margin: 0 0 clamp(24px, 3vw, 36px);
}
.dsr-contact-infos { min-width: 0; }
.dsr-contact__title { margin: 0 0 .4em; font-size: 1.45rem; line-height: 1.25; }
.dsr-contact__title::before { display: none; }
#siege .dsr-contact__title { margin-bottom: 1.3em; }
.dsr-contact__subtitle {
	margin: 1.4em 0 .3em;
	font-family: var(--font-head);
	font-size: .82rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--muted);
}
.dsr-contact__subtitle::before { display: none; }
.dsr-contact__subtitle:first-of-type { margin-top: 0; }
.dsr-contact__value { margin: 0; font-size: 1.04rem; line-height: 1.55; }
.dsr-contact__value a { color: var(--primary-dark); font-weight: 700; text-decoration: none; }
.dsr-contact__value a:hover { color: var(--primary); text-decoration: underline; }
.dsr-contact-map .dsr-map { margin-top: 0; }
.dsr-map {
	background: var(--soft);
	min-height: 360px;
	position: relative;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: 0 1px 2px rgba(38, 50, 56, .05);
}
.dsr-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.dsr-map__links { margin: 10px 0 0; font-size: .92rem; color: var(--muted); }
.dsr-map__links a { color: var(--primary-dark); font-weight: 700; text-decoration: none; }
.dsr-map__links a:hover { color: var(--primary); text-decoration: underline; }

/* Formulaire : pleine largeur de lecture, sous la ligne coordonnées + carte. */
.dsr-contact-write { max-width: 760px; margin: 0 0 clamp(24px, 3vw, 36px); }
.dsr-contact-write .ciplev-form { margin-top: 6px; }
.dsr-contact__intro { margin: 0 0 22px; font-size: .97rem; line-height: 1.6; color: var(--muted); }

/* Encarts « Numéros d'urgence » et « Bon à savoir ». */
.dsr-contact-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 20px;
	margin: 0 0 10px;
}
.dsr-contact-card {
	background: var(--white);
	border: 1px solid var(--line);
	border-top: 4px solid var(--primary);
	border-radius: var(--radius);
	padding: 22px 24px;
	transition: box-shadow .2s, transform .2s;
}
.dsr-contact-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.dsr-contact-card--urgent { border-top-color: var(--red); }
.dsr-contact-card__title { margin: 0 0 .4em; font-size: 1.2rem; line-height: 1.3; }
.dsr-contact-card__title::before { display: none; }
.dsr-contact-card__intro { margin: 0 0 16px; font-size: .93rem; line-height: 1.55; color: var(--muted); }
.dsr-contact-card__list {
	margin: 0 0 14px;
	padding-left: 1.15em;
	display: grid;
	gap: .6em;
	font-size: .93rem;
	line-height: 1.55;
	color: var(--muted);
}
.dsr-contact-card__list li::marker { color: var(--primary); }
.dsr-contact-card__foot { margin: 0; font-size: .93rem; }
.dsr-contact-card .dsr-urgent { grid-template-columns: 1fr; gap: 10px; }
.dsr-contact-card .dsr-urgent__item { padding: 12px 14px; }
.dsr-contact-card .dsr-urgent__num { font-size: 1.15rem; padding: 8px 12px; }

/* ==========================================================================
   Commentaires
   ========================================================================== */
.comments-area { margin-top: clamp(40px, 6vw, 64px); padding-top: clamp(28px, 4vw, 40px); border-top: 1px solid var(--line); }
.comments-title,
.comment-reply-title {
	margin: 0 0 20px;
	font-family: var(--font-head);
	font-size: clamp(1.2rem, 2.4vw, 1.5rem);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: .01em;
	color: var(--primary-dark);
}
.comments-title { display: flex; align-items: center; gap: 12px; }
.comments-title::before { content: ""; flex: none; width: 5px; height: .95em; border-radius: 3px; background: var(--green); }
.comment-reply-title { margin-bottom: 16px; }
.comment-reply-title small { display: block; margin-top: 4px; }
.comment-reply-title small a { font-weight: 600; font-size: .9rem; }

/* Liste des commentaires */
.comment-list { list-style: none; margin: 0 0 clamp(32px, 5vw, 48px); padding: 0; display: grid; gap: 16px; }
.comment-list .children { list-style: none; margin: 16px 0 0 22px; padding: 0 0 0 18px; display: grid; gap: 16px; border-left: 3px solid var(--primary-soft); }
.comment-list .comment-body {
	padding: 20px 22px;
	background: var(--soft);
	border: 1px solid var(--line);
	border-left: 3px solid var(--line);
	border-radius: var(--radius);
}
.comment-list .comment-body::before { content: ""; }
.comment-list .bypostauthor > .comment-body { border-left-color: var(--primary); background: var(--white); }
.comment-list .pingback > .comment-body,
.comment-list .trackback > .comment-body { font-size: .93rem; }
.comment-list .comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-bottom: 10px; }
.comment-list .comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.comment-list .comment-author .avatar { width: 46px; height: 46px; border-radius: 50%; }
.comment-list .comment-author .says { font-weight: 400; color: var(--muted); }
.comment-list .comment-author a { color: var(--primary-dark); text-decoration: none; }
.comment-list .comment-metadata { font-size: .86rem; color: var(--muted); }
.comment-list .comment-metadata a { color: var(--muted); text-decoration: none; }
.comment-list .comment-metadata a:hover { text-decoration: underline; }
.comment-list .comment-content { font-size: .98rem; line-height: 1.65; }
.comment-list .comment-content > *:first-child { margin-top: 0; }
.comment-list .comment-content > *:last-child { margin-bottom: 0; }
.comment-list .reply { margin-top: 12px; }
.comment-list .comment-reply-link {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 6px 14px;
	border: 1px solid var(--line); border-radius: 999px;
	background: var(--white);
	font-weight: 700; font-size: .86rem; color: var(--primary);
	text-decoration: none;
	transition: border-color .18s, color .18s;
}
.comment-list .comment-reply-link:hover { border-color: var(--primary); color: var(--primary-dark); }
.no-comments { margin: 0 0 8px; font-size: .93rem; color: var(--muted); }
.comment-navigation { margin: 0 0 clamp(28px, 4vw, 40px); }
.comment-navigation .nav-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.comment-navigation a {
	display: inline-flex; align-items: center; padding: 10px 18px;
	border: 1px solid var(--line); border-radius: 999px; background: var(--white);
	font-weight: 600; font-size: .9rem; color: var(--primary); text-decoration: none;
}

/* Formulaire de commentaire */
.comment-respond {
	padding: clamp(20px, 3vw, 30px);
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}
.comment-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 0; }
.comment-form > .comment-notes,
.comment-form > .comment-form-comment,
.comment-form > .comment-form-url,
.comment-form > .comment-form-cookies-consent,
.comment-form > .form-submit,
.comment-form > .logged-in-as { grid-column: 1 / -1; }
.comment-form > p { margin: 0; }
.comment-form .comment-notes {
	padding: 12px 16px;
	background: var(--soft);
	border-radius: var(--radius-sm);
	font-size: .88rem; line-height: 1.5; color: var(--muted);
}
.comment-form .logged-in-as { font-size: .88rem; color: var(--muted); }
.comment-form .logged-in-as a { color: var(--primary); font-weight: 600; }
.comment-form label {
	display: block; margin-bottom: 7px;
	font-size: .78rem; font-weight: 700;
	letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form input[type="password"],
.comment-form textarea {
	width: 100%; margin: 0;
	padding: 13px 15px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--soft);
	color: var(--ink);
	font-family: inherit; font-size: 1rem; line-height: 1.4;
	transition: border-color .18s, background-color .18s, box-shadow .18s;
	-webkit-appearance: none; appearance: none;
}
.comment-form textarea { min-height: 170px; resize: vertical; }
.comment-form input:hover,
.comment-form textarea:hover { border-color: #CFD6D0; }
.comment-form input:focus,
.comment-form textarea:focus { outline: none; border-color: var(--primary); background: var(--white); box-shadow: 0 0 0 3px rgba(65, 111, 50, .12); }
.comment-form input::placeholder,
.comment-form textarea::placeholder { color: #8A968F; }
.comment-form .required { color: var(--dsr-red); text-decoration: none; }
.comment-form .comment-form-url { max-width: 420px; }
.comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 10px; }
.comment-form-cookies-consent input[type="checkbox"] { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--primary); }
.comment-form-cookies-consent label { margin: 0; font-size: .84rem; line-height: 1.5; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); }
.comment-form .form-submit { margin-top: 2px; }
.comment-form .submit,
.comment-form input[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	justify-self: start; width: auto;
	padding: 14px 26px;
	border: 0; border-radius: 999px;
	background: linear-gradient(135deg, var(--primary-dark), var(--primary));
	color: var(--white);
	font-family: var(--font-head); font-size: 1rem; font-weight: 700;
	line-height: 1.2; cursor: pointer;
	transition: transform .2s, box-shadow .2s, filter .2s;
}
.comment-form .submit:hover,
.comment-form input[type="submit"]:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(38, 50, 56, .2); filter: brightness(1.06); }
.comment-form .submit:active,
.comment-form input[type="submit"]:active { transform: translateY(0); }
.comment-form .submit:focus-visible,
.comment-form input[type="submit"]:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* ==========================================================================
   Formulaire de contact
   ========================================================================== */
.ciplev-form__wrap { width: 100%; }
.ciplev-form { display: grid; gap: 18px; margin: 0; }
.ciplev-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ciplev-form__field { display: grid; gap: 7px; margin: 0; }
.ciplev-form__field--full { grid-column: 1 / -1; }
.ciplev-form__field label {
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--muted);
}
.ciplev-form__req { color: var(--dsr-red); text-decoration: none; border: 0; cursor: help; }
.ciplev-form__hint { font-size: .82rem; line-height: 1.4; color: var(--muted); opacity: .85; }

.ciplev-form input[type="text"],
.ciplev-form input[type="tel"],
.ciplev-form input[type="email"],
.ciplev-form select,
.ciplev-form textarea {
	width: 100%;
	min-height: 52px;
	padding: 13px 15px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--soft);
	color: var(--ink, #263238);
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.4;
	transition: border-color .18s, background-color .18s, box-shadow .18s;
	-webkit-appearance: none;
	appearance: none;
}
.ciplev-form textarea { resize: vertical; min-height: 150px; padding-top: 15px; }
.ciplev-form input[type="text"],
.ciplev-form input[type="tel"],
.ciplev-form input[type="email"],
.ciplev-form select { height: 52px; }
.ciplev-form select {
	padding-right: 44px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314532D' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 18px 18px;
}
.ciplev-form input::placeholder,
.ciplev-form textarea::placeholder { color: #8A968F; }
.ciplev-form input:hover,
.ciplev-form select:hover,
.ciplev-form textarea:hover { border-color: #CFD6D0; }
.ciplev-form input:focus,
.ciplev-form select:focus,
.ciplev-form textarea:focus {
	border-color: var(--primary);
	background: var(--white);
	box-shadow: 0 0 0 3px rgba(65, 111, 50, .14);
	outline: 2px solid transparent;
}
.ciplev-form input:focus-visible,
.ciplev-form select:focus-visible,
.ciplev-form textarea:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.ciplev-form :is(input, select, textarea):user-invalid { border-color: var(--dsr-red); }

.ciplev-form__consent { margin: 0; }
.ciplev-form__consent label {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 12px;
	align-items: start;
	padding: 15px 16px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--soft);
	font-size: .9rem;
	line-height: 1.5;
	color: var(--muted);
	cursor: pointer;
}
.ciplev-form__consent input[type="checkbox"] {
	width: 20px; height: 20px;
	margin: 1px 0 0;
	accent-color: var(--primary);
	flex: none;
	cursor: pointer;
}
.ciplev-form__actions { margin: 0; }
.ciplev-form__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 16px 24px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--primary-dark), var(--primary));
	color: var(--white);
	font-family: var(--font-head);
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: .02em;
	cursor: pointer;
	transition: transform .2s, box-shadow .2s, filter .2s;
}
.ciplev-form__submit .icon { width: 20px; height: 20px; }
.ciplev-form__submit:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(38, 50, 56, .2); filter: brightness(1.06); }
.ciplev-form__submit:active { transform: translateY(0); }
.ciplev-form__submit:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.ciplev-form__note {
	margin: 0;
	padding: 14px 16px;
	border-left: 4px solid var(--yellow);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	background: var(--yellow-soft);
	font-size: .88rem;
	line-height: 1.55;
	color: var(--muted);
}
.ciplev-form__note strong { color: var(--primary-dark); }
.ciplev-form__note a { color: var(--primary); font-weight: 700; }

/* Champ-piège : invisible mais accessible aux lecteurs d'écran. */
.ciplev-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Bandeaux de retour. */
.ciplev-form__notice {
	display: grid;
	gap: 4px;
	margin: 0 0 20px;
	padding: 16px 18px;
	border-radius: var(--radius-sm);
	border-left: 5px solid var(--primary);
	background: var(--soft-blue);
	font-size: .95rem;
	line-height: 1.55;
	color: var(--muted);
}
.ciplev-form__notice strong { font-family: var(--font-head); font-size: 1.08rem; color: var(--primary-dark); }
.ciplev-form__notice--ko { border-left-color: var(--dsr-red); background: #FBE4E4; }
.ciplev-form__notice--ko strong { color: #9C1F1F; }
.ciplev-form__notice--ok { border-left-color: var(--dsr-green); background: var(--primary-soft); }
.ciplev-form__notice--ok strong { color: var(--green-900); }

/* Question FAQ repliable. */
.dsr-question { margin: 32px 0; }
.dsr-question__details {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--white);
	overflow: hidden;
}
.dsr-question__details[open] { box-shadow: 0 14px 34px rgba(38, 50, 56, .1); }
.dsr-question__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px clamp(20px, 3vw, 28px);
	cursor: pointer;
	list-style: none;
	font-family: var(--font-head);
	font-weight: 800;
	font-size: 1.08rem;
	color: var(--primary-dark);
	background: var(--yellow);
	transition: background .2s ease;
}
.dsr-question__summary::-webkit-details-marker { display: none; }
.dsr-question__summary:hover { background: #F7C72E; }
.dsr-question__summary .icon { width: 20px; height: 20px; flex: none; color: var(--primary-dark); transition: transform .25s ease; }
.dsr-question__details[open] .dsr-question__summary { border-bottom: 1px solid var(--line); }
.dsr-question__details[open] .dsr-question__summary .icon { transform: rotate(180deg); }
.dsr-question__body { padding: clamp(22px, 3vw, 30px); }
.ciplev-form--question { gap: 16px; }

/* ==========================================================================
   Responsables — disposition inspirée de la page « Responsables » du CIPLEV
   ========================================================================== */
.entry-content .dsr-leaders { margin: 30px 0 10px; }
.entry-content .dsr-leaders__title { margin: 34px 0 .3em; font-size: 1.45rem; line-height: 1.25; }
.entry-content .dsr-leaders__title:first-child { margin-top: 0; }
.entry-content .dsr-leaders__title::before { display: none; }
.entry-content .dsr-leaders__intro { margin: 0 0 18px; font-size: .97rem; line-height: 1.6; color: var(--muted); }
.entry-content .dsr-leaders__note { margin: 26px 0 0; font-size: .92rem; line-height: 1.6; color: var(--muted); }

/* Rangée de fiches : colonnes égales, cartes étirées à la même hauteur. */
.entry-content .dsr-people {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 20px;
	align-items: stretch;
	margin: 0 0 8px;
}
.entry-content .dsr-people__col { display: flex; }

/* Fiche. */
.entry-content .dsr-person {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	height: 100%;
	text-align: center;
	padding: 28px 22px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--white);
	transition: box-shadow .2s, transform .2s;
}
.entry-content .dsr-person:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.entry-content .dsr-people__col:first-child .dsr-person--actif { border-color: var(--primary); box-shadow: var(--shadow); }

/* Portrait : cercle cerclé de jaune, ou initiales à défaut de photo. */
.entry-content .dsr-person__photo { margin: 0 0 16px; }
.entry-content .dsr-person__photo img {
	width: 150px;
	height: 150px;
	object-fit: cover;
	object-position: top;
	border-radius: 50%;
	margin: 0;
	border: 4px solid var(--white);
	box-shadow: 0 0 0 3px var(--yellow);
}
.entry-content .dsr-person__initials {
	display: grid;
	place-items: center;
	flex: none;
	width: 150px;
	height: 150px;
	margin: 0 0 16px;
	border-radius: 50%;
	background: var(--soft);
	border: 4px solid var(--white);
	box-shadow: 0 0 0 3px var(--yellow);
	font-family: var(--font-head);
	font-size: 2.5rem;
	font-weight: 800;
	line-height: 1;
	color: var(--primary-dark);
}

/* Libellé, nom, grade et période. */
.entry-content .dsr-person__label {
	margin: 0 0 .4em;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--primary);
}
.entry-content .dsr-person__label::before { display: none; }
.entry-content .dsr-person__name { margin: 0 0 .2em; font-size: 1.12rem; line-height: 1.3; }
.entry-content .dsr-person__grade { margin: 0 0 .35em; font-size: .95rem; line-height: 1.4; color: var(--ink); }
.entry-content .dsr-person__period { margin: 0; font-size: .92rem; line-height: 1.4; color: var(--muted); }
.entry-content .dsr-person__period strong { color: var(--primary-dark); }

/* Pastilles de l'administration. */
.dsr-pill {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: .76rem;
	font-weight: 700;
}
.dsr-pill--ok { background: var(--primary-soft); color: var(--green-900); }
.dsr-pill--warn { background: #FDF4D4; color: #8A6A00; }

@media (max-width: 900px) {
	.dsr-contact-grid { grid-template-columns: 1fr; }
	.dsr-map { min-height: 300px; }
}
@media (max-width: 620px) {
	.ciplev-form__grid { grid-template-columns: 1fr; }
	.dsr-contact-tabs a { padding: 9px 14px; font-size: .88rem; }
	.dsr-contact-card { padding: 18px 16px; }
	.dsr-map { min-height: 260px; }
	.entry-content .dsr-people { grid-template-columns: 1fr; gap: 16px; }
	.entry-content .dsr-person { padding: 24px 18px; }
	.entry-content .dsr-person__photo img,
	.entry-content .dsr-person__initials { width: 128px; height: 128px; }
	.entry-content .dsr-person__initials { font-size: 2.1rem; }
}
@media (max-width: 620px) {
	.comment-form { grid-template-columns: 1fr; }
	.comment-form .comment-form-url { max-width: 100%; }
	.comment-respond { padding: 20px 16px; }
	.comment-list .comment-body { padding: 16px 16px; }
	.comment-list .children { margin-left: 14px; padding-left: 14px; }
	.comment-form .submit,
	.comment-form input[type="submit"] { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Bandeau de consentement aux cookies & politique de confidentialité
   ========================================================================== */
.cookie-banner {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 150;
	background: var(--charcoal);
	color: rgba(255, 255, 255, .9);
	box-shadow: 0 -10px 30px rgba(11, 46, 27, .25);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-block: 18px;
}
.cookie-banner__text { min-width: 0; }
.cookie-banner__title { margin: 0 0 6px; font-size: 1.05rem; color: var(--white); }
.cookie-banner__text p { margin: 0; font-size: .95rem; max-width: 78ch; }
.cookie-banner__text a { color: var(--yellow); text-decoration: underline; }
.cookie-banner__text a:hover { color: #F7C72E; }
.cookie-banner__actions { display: flex; gap: 12px; flex: none; }

.dsr-legal p:last-child { margin-bottom: 0; }

@media (max-width: 780px) {
	.cookie-banner__inner { flex-direction: column; align-items: stretch; gap: 14px; padding-block: 16px; }
	.cookie-banner__actions .btn { flex: 1; justify-content: center; }
}
