:root {
	/* Design tokens — punchy blue + warm amber accent. */
	--color-bg: #ffffff;
	--color-surface: #f2f5fb;      /* subtle blue-gray for structural bands */
	--color-fg: #141c28;           /* near-black slate */
	--color-muted: #4a5563;      /* darkened for legibility (>=6.8:1 on white/surface) */
	--color-accent: #1546c0;       /* vivid blue */
	--color-accent-ink: #0f3390;   /* darker blue for hover/active */
	--color-accent-bright: #2f6df6;/* bright blue for gradients */
	--color-accent-soft: rgba(21, 70, 192, 0.10);
	--color-accent-2: #f5a524;     /* warm amber pop */
	--color-accent-2-ink: #cf8500;
	--color-border: #dbe1ea;
	--color-footer-bg: #0c1c33;    /* dark navy footer */
	--gradient-accent: linear-gradient(135deg, #1546c0 0%, #2f6df6 100%);

	--font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--font-serif: Georgia, "Times New Roman", serif;

	--step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.94rem);
	--step-0: clamp(1rem, 0.95rem + 0.25vw, 1.13rem);
	--step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
	--step-2: clamp(1.5rem, 1.28rem + 1.1vw, 2.25rem);
	--step-3: clamp(1.9rem, 1.45rem + 2.2vw, 3.5rem);

	--space-xs: 0.5rem;
	--space-sm: 0.75rem;
	--space-md: 1.25rem;
	--space-lg: 2rem;
	--space-xl: 3.5rem;

	--radius: 12px;
	--shadow: 0 1px 2px rgba(20, 23, 26, 0.06), 0 8px 24px rgba(20, 23, 26, 0.08);
	--transition: 180ms cubic-bezier(0.2, 0, 0.2, 1);
	--container: 72rem;
}

/* Modern reset */
*,
*::before,
*::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	font-family: var(--font-sans);
	font-size: var(--step-0);
	line-height: 1.6;
	color: var(--color-fg);
	background: var(--color-bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
input::placeholder, textarea::placeholder { color: var(--color-muted); opacity: 1; }
h1, h2, h3, h4 { line-height: 1.1; text-wrap: balance; font-weight: 800; letter-spacing: -0.02em; }
p, li { text-wrap: pretty; }

h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }

a { color: var(--color-accent); font-weight: 500; text-decoration-thickness: 2px; text-underline-offset: 0.15em; transition: color var(--transition); }
a:hover { color: var(--color-accent-ink); }

/* Visible, accessible focus */
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; border-radius: 4px; }

/* Layout */
.container { width: min(100% - 2 * var(--space-md), var(--container)); margin-inline: auto; padding-block: var(--space-lg); }

/* Institutional header: banner branding on top + full-width nav bar below */
.site-header { border-top: 5px solid transparent; border-image: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-bright) 60%, var(--color-accent-2) 100%) 1; background: var(--color-bg); }
.site-header__banner { width: min(100% - 2 * var(--space-md), var(--container)); margin-inline: auto; padding-block: var(--space-lg); text-align: center; }

.site-branding { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; }
.site-branding .custom-logo { max-height: 90px; width: auto; }
.site-title { font-size: var(--step-3); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.site-title a { color: var(--color-accent); text-decoration: none; }
.site-tagline { color: var(--color-muted); font-size: var(--step-0); font-style: italic; }

/* Full-width banner image (Personnaliser → Image d'en-tête) */
.site-header__banner--image { position: relative; width: 100%; max-width: none; margin: 0; padding-inline: var(--space-md); padding-block: clamp(3rem, 9vw, 6.5rem); min-height: clamp(200px, 28vw, 420px); display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; background-repeat: no-repeat; }
.site-header__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 32, 44, 0.25), rgba(14, 32, 44, 0.55)); }
.site-header__banner--image .site-branding { position: relative; z-index: 1; max-width: var(--container); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); }
.site-header__banner--image .site-title a { color: inherit; }
.site-header__banner--image .site-tagline { color: inherit; opacity: 0.95; }
.site-header__banner--image .custom-logo { max-height: 120px; }

.site-footer__inner { width: min(100% - 2 * var(--space-md), var(--container)); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding-block: var(--space-md); flex-wrap: wrap; }

/* Full-width navigation bar (institutional blue band, white links) */
.site-nav { background: var(--gradient-accent); box-shadow: 0 2px 12px rgba(21, 70, 192, 0.25); }
.site-nav__inner { width: min(100% - 2 * var(--space-md), var(--container)); margin-inline: auto; display: flex; align-items: center; justify-content: center; }
.site-nav__toggle { display: none; }

/* Two-column layout: primary content + sidebar (stacks on small screens) */
.content-with-sidebar { display: grid; gap: var(--space-xl); align-items: start; grid-template-columns: 1fr; }
@media (min-width: 60rem) {
	.content-with-sidebar { grid-template-columns: minmax(0, 1fr) 20rem; }
}
.content-primary { min-width: 0; }

.site-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.footer-nav__list { list-style: none; padding: 0; display: flex; gap: var(--space-md); flex-wrap: wrap; }
.site-nav__list a { display: block; color: #fff; text-decoration: none; padding: 0.95rem var(--space-md); font-weight: 700; font-size: var(--step--1); letter-spacing: 0.04em; text-transform: uppercase; box-shadow: inset 0 -3px 0 transparent; transition: background var(--transition), box-shadow var(--transition); }
.site-nav__list a:hover,
.site-nav__list a:focus-visible { background: rgba(255, 255, 255, 0.12); color: #fff; box-shadow: inset 0 -3px 0 var(--color-accent-2); }
.site-nav__list .current-menu-item > a,
.site-nav__list .current_page_item > a { background: rgba(255, 255, 255, 0.14); box-shadow: inset 0 -3px 0 var(--color-accent-2); }

/* Mobile: collapsible nav with hamburger toggle */
.site-nav__toggle-bar,
.site-nav__toggle-bar::before,
.site-nav__toggle-bar::after { display: block; width: 20px; height: 2px; background: #fff; }
.site-nav__toggle-bar { position: relative; }
.site-nav__toggle-bar::before,
.site-nav__toggle-bar::after { content: ""; position: absolute; left: 0; }
.site-nav__toggle-bar::before { top: -6px; }
.site-nav__toggle-bar::after { top: 6px; }
@media (max-width: 59.99rem) {
	.site-nav__inner { justify-content: flex-start; flex-wrap: wrap; }
	.site-nav__toggle { display: inline-flex; align-items: center; gap: 0.6em; background: transparent; color: #fff; border: 0; padding: 0.85rem var(--space-md); font-weight: 700; cursor: pointer; }
	.site-nav__list { flex-direction: column; width: 100%; display: none; }
	.site-nav__list.is-open { display: flex; }
	.site-nav__list a { padding-block: 0.85rem; border-top: 1px solid var(--color-accent-ink); }
}

/* Featured ("à la une") hero */
.featured { margin-block: var(--space-lg) var(--space-xl); display: flex; flex-direction: column; gap: var(--space-lg); }
.featured-card { display: grid; grid-template-columns: 1fr; border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; background: var(--color-bg); box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition); }
.featured-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(20, 23, 26, 0.14); }
@media (min-width: 48rem) {
	.featured-card--media { grid-template-columns: 1.5fr 1fr; align-items: stretch; }
}
.featured-card__media { position: relative; display: block; overflow: hidden; min-height: 360px; }
.featured-card__media img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; display: block; transition: transform 500ms ease; }
.featured-card:hover .featured-card__media img { transform: scale(1.05); }
.featured-kicker { display: inline-block; align-self: flex-start; background: var(--color-accent-2); color: #16202c; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-size: var(--step--1); padding: 0.3em 0.95em; border-radius: 999px; }
.featured-kicker--on-media { position: absolute; top: var(--space-md); left: var(--space-md); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); }
.featured-card__body { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: var(--space-md); padding: clamp(var(--space-lg), 3.5vw, var(--space-xl)); }
.featured-card__title { font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.8rem); line-height: 1.03; }
.featured-card__title a { color: var(--color-fg); text-decoration: none; transition: color var(--transition); }
.featured-card__title a:hover { color: var(--color-accent); }
.featured-card__excerpt { color: var(--color-fg); }
.featured-card .button { margin-top: var(--space-xs); }

/* Article list — single column, chronological, text-first (covid-factuel style) */
.post-list { display: flex; flex-direction: column; }
.post-list__item { padding-block: var(--space-lg); border-bottom: 1px solid var(--color-border); }
.post-list__item:first-child { padding-top: 0; }
.post-list__item { position: relative; }
.post-list__item .entry-title { font-size: var(--step-2); margin-bottom: var(--space-xs); }
.entry-title a { color: var(--color-fg); text-decoration: none; background-image: linear-gradient(var(--color-accent-2), var(--color-accent-2)); background-size: 0% 3px; background-position: 0 100%; background-repeat: no-repeat; transition: color var(--transition), background-size var(--transition); }
.entry-title a:hover { color: var(--color-accent); background-size: 100% 3px; }

/* Inline icons */
.icon { display: inline-block; vertical-align: -0.15em; flex: none; }
.icon--comment,
.icon--folder { color: var(--color-accent); }

/* Category badges */
.entry-categories--badges { display: flex; flex-wrap: wrap; gap: 0.4em; margin-bottom: var(--space-xs); }
.entry-categories--badges a { display: inline-block; font-size: var(--step--1); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #fff; background: var(--gradient-accent); text-decoration: none; padding: 0.28em 0.85em; border-radius: 999px; box-shadow: 0 2px 8px rgba(21, 70, 192, 0.25); transition: transform var(--transition), box-shadow var(--transition), background var(--transition); }
.entry-categories--badges a:hover { color: #16202c; background: var(--color-accent-2); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(245, 165, 36, 0.4); }

/* Meta line: icon + date · icon + author · icon + comments */
.entry-meta { color: var(--color-muted); font-size: var(--step--1); display: flex; flex-wrap: wrap; align-items: center; gap: 0.4em 1.1em; }
.entry-meta .meta-item { display: inline-flex; align-items: center; gap: 0.4em; }
.entry-meta .icon { color: var(--color-accent); }
.entry-meta a { color: var(--color-muted); text-decoration: none; display: inline-flex; align-items: center; gap: 0.4em; }
.entry-meta a:hover { color: var(--color-accent); }
.entry-meta .cats a { display: inline; color: var(--color-muted); }

/* Comment count badge (bubble) */
.comment-count { display: inline-flex; align-items: center; gap: 0.35em; padding: 0.12em 0.65em; border-radius: 999px; background: var(--color-accent-soft); color: var(--color-accent); font-weight: 700; font-size: var(--step--1); line-height: 1.6; text-decoration: none; transition: background var(--transition), color var(--transition), transform var(--transition); }
.comment-count:hover { background: var(--color-accent); color: #fff; transform: translateY(-1px); }
.comment-count .icon { color: currentColor; }
.comment-count__num { font-variant-numeric: tabular-nums; }

.entry-summary { margin-top: var(--space-sm); color: var(--color-fg); }
.entry-summary > * + * { margin-top: var(--space-sm); }

.continue-link { display: inline-flex; align-items: center; gap: 0.45em; margin-top: var(--space-md); font-weight: 700; text-decoration: none; color: var(--color-accent); }
.continue-link .icon { color: var(--color-accent-2); transition: transform var(--transition); }
.continue-link:hover { color: var(--color-accent-ink); }
.continue-link:hover .icon { transform: translateX(4px); }

/* Article lead (chapô) — press-style intro, no side stripe */
.entry-lead { font-size: var(--step-1); line-height: 1.5; font-weight: 500; color: var(--color-fg); max-width: 72ch; padding-bottom: var(--space-md); margin-block: var(--space-md) var(--space-lg); border-bottom: 1px solid var(--color-border); }
.entry-lead p { margin: 0; }

/* Content blocks (ACF flexible content) */
.entry-content .block + .block { margin-top: var(--space-lg); }
/* Comfortable reading measure (~72ch); images and video stay full width */
.block--texte,
.entry-content > p,
.entry-content > ul,
.entry-content > ol,
.entry-content > h2,
.entry-content > h3,
.entry-content > blockquote { max-width: 72ch; }
.block--texte > * + * { margin-top: var(--space-md); }
.block--video { margin: 0; }
.video-embed { position: relative; padding-top: 56.25%; border-radius: var(--radius); overflow: hidden; background: #000; }
.video-embed iframe,
.video-embed video,
.video-embed object,
.video-embed embed { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.block--image { margin: 0; }
.block--image img { width: 100%; border-radius: var(--radius); }
.block--video figcaption,
.block--image figcaption { margin-top: var(--space-xs); font-size: var(--step--1); color: var(--color-muted); text-align: center; }
.block--bouton { margin: 0; }
.block--bouton .button { display: inline-flex; align-items: center; gap: 0.5em; }
.button__icon { transition: transform var(--transition); }
.button:hover .button__icon { transform: translateX(3px); }

/* Archive / search headers */
.archive-header { padding-bottom: var(--space-md); margin-bottom: var(--space-md); border-bottom: 3px solid var(--color-accent-2); }
.archive-title { font-size: var(--step-2); }
.archive-title span { color: var(--color-accent); }

/* Sidebar widgets */
.sidebar { display: flex; flex-direction: column; gap: var(--space-lg); }
.widget { border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-surface); padding: var(--space-md); }
.widget-title { font-size: var(--step-0); font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; padding-bottom: var(--space-xs); margin-bottom: var(--space-sm); border-bottom: 3px solid var(--color-accent-2); }
.widget ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.4em; }
.widget ul ul { margin-top: 0.4em; padding-left: var(--space-md); }
.widget a { text-decoration: none; color: var(--color-fg); }
.widget a:hover { color: var(--color-accent); }
.widget li { font-size: var(--step--1); }
.widget .tagcloud { display: flex; flex-wrap: wrap; gap: 0.4em; }
.widget .tagcloud a { font-size: var(--step--1) !important; border: 1px solid var(--color-border); border-radius: 999px; padding: 0.2em 0.7em; background: var(--color-bg); transition: border-color var(--transition), color var(--transition); }
.widget .tagcloud a:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* Newsletter subscription form (sidebar widget) */
.subscribe__intro { font-size: var(--step--1); color: var(--color-muted); margin-bottom: var(--space-md); }
.subscribe__status:focus { outline: none; }
.subscribe__msg { font-size: var(--step--1); padding: 0.6em 0.8em; border-radius: var(--radius); margin-bottom: var(--space-md); }
.subscribe-submit[disabled] { opacity: 0.65; cursor: progress; }
.subscribe__msg--ok { background: var(--color-accent-soft); color: var(--color-accent-ink); }
.subscribe__msg--err { background: #fdeaea; color: #a12a2a; }
.subscribe-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.subscribe-form { display: flex; flex-direction: column; gap: var(--space-sm); }
.subscribe-field { display: flex; flex-direction: column; gap: 0.3em; margin: 0; }
.subscribe-field label { font-weight: 600; font-size: var(--step--1); }
.subscribe-field .required { color: var(--color-accent); }
.subscribe-form input[type="text"],
.subscribe-form input[type="email"] { width: 100%; padding: 0.6em 0.7em; border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-bg); transition: border-color var(--transition), box-shadow var(--transition); }
.subscribe-form input[type="text"]:focus,
.subscribe-form input[type="email"]:focus { border-color: var(--color-accent); box-shadow: 0 0 0 3px var(--color-accent-soft); outline: none; }
.subscribe-consent { margin: 0; }
.subscribe-consent label { display: flex; gap: 0.5em; align-items: flex-start; font-size: var(--step--1); color: var(--color-muted); cursor: pointer; }
.subscribe-consent input { margin-top: 0.25em; flex: none; }
/* Mention légale RGPD : lectorat plutôt âgé, on ne descend pas sous --step--1. */
.subscribe-legal { margin: 0; font-size: var(--step--1); line-height: 1.5; color: var(--color-muted); border-top: 1px solid var(--color-border); padding-top: var(--space-sm); }
.subscribe-legal a { color: var(--color-accent); }
.subscribe-submit { justify-content: center; margin-top: 0.2em; }

/* Contact form */
.contact { max-width: 42rem; }
.form-msg { font-size: var(--step--1); padding: 0.7em 1em; border-radius: var(--radius); margin-bottom: var(--space-md); }
.form-msg--ok { background: var(--color-accent-soft); color: var(--color-accent-ink); }
.form-msg--err { background: #fdeaea; color: #a12a2a; }
.contact-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form { display: flex; flex-direction: column; gap: var(--space-md); }
.form-field { display: flex; flex-direction: column; gap: 0.3em; margin: 0; }
.form-field label { font-weight: 600; font-size: var(--step--1); }
.form-field .required { color: var(--color-accent); }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea { width: 100%; padding: 0.6em 0.8em; border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-bg); transition: border-color var(--transition), box-shadow var(--transition); }
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--color-accent); box-shadow: 0 0 0 3px var(--color-accent-soft); outline: none; }
.contact-consent { margin: 0; }
.contact-consent label { display: flex; gap: 0.5em; align-items: flex-start; font-size: var(--step--1); color: var(--color-muted); cursor: pointer; }
.contact-consent input { margin-top: 0.25em; flex: none; }

/* Post navigation (single) */
.post-navigation { margin-block: var(--space-lg); padding-block: var(--space-md); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); display: flex; justify-content: space-between; gap: var(--space-md); flex-wrap: wrap; }
.post-navigation a { text-decoration: none; }
.post-navigation .nav-subtitle { display: block; font-size: var(--step--1); color: var(--color-muted); }

/* Tags on single */
.entry-tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4em; margin-top: var(--space-md); }
.entry-tags a { font-size: var(--step--1); text-decoration: none; border: 1px solid var(--color-border); border-radius: 999px; padding: 0.2em 0.7em; }
.entry-tags a:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* Content */
.entry-content > * + * { margin-top: var(--space-md); }
.entry-thumbnail { margin-block: var(--space-md); border-radius: var(--radius); overflow: hidden; }

/* Forms */
.search-field { padding: 0.6em 0.8em; border: 1px solid var(--color-border); border-radius: var(--radius); transition: border-color var(--transition), box-shadow var(--transition); }
.search-field:focus { border-color: var(--color-accent); box-shadow: 0 0 0 3px var(--color-accent-soft); outline: none; }
.search-submit,
.button { display: inline-flex; align-items: center; gap: 0.5em; padding: 0.65em 1.25em; border: 0; border-radius: var(--radius); background: var(--gradient-accent); color: #fff; font-weight: 700; letter-spacing: 0.01em; cursor: pointer; text-decoration: none; box-shadow: 0 3px 10px rgba(21, 70, 192, 0.28); transition: transform var(--transition), box-shadow var(--transition), filter var(--transition); }
.search-submit:hover,
.button:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(21, 70, 192, 0.38); filter: saturate(1.1); }
.search-submit:active,
.button:active { transform: translateY(0); }
.button--ghost { background: transparent; box-shadow: none; }
.button--ghost:hover { background: var(--color-accent-soft); box-shadow: none; transform: translateY(-1px); }

/* A11y utilities */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--color-fg); color: #fff; padding: 0.6em 1em; border-radius: 0 0 var(--radius) 0; }
.skip-link:focus { left: 0; }

/* Comments */
.comments-area { margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: 1px solid var(--color-border); }
.comments-title { margin-bottom: var(--space-lg); }
.comment-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--space-lg); }
.comment-list .children { list-style: none; margin-top: var(--space-lg); padding-left: var(--space-lg); border-left: 1px solid var(--color-border); display: flex; flex-direction: column; gap: var(--space-lg); }
.comment-body { display: grid; grid-template-columns: auto 1fr; gap: var(--space-sm) var(--space-md); }
.comment-author { display: flex; align-items: center; gap: var(--space-sm); grid-column: 1 / -1; }
.comment-author .avatar { border-radius: 50%; }
.comment-author .fn { font-weight: 600; font-style: normal; }
.comment-metadata { grid-column: 1 / -1; color: var(--color-muted); font-size: var(--step--1); }
.comment-metadata a { color: inherit; }
.comment-content { grid-column: 1 / -1; }
.comment-content > * + * { margin-top: var(--space-sm); }
.comment-awaiting-moderation { grid-column: 1 / -1; color: var(--color-accent-ink); font-size: var(--step--1); font-style: italic; }
.reply { grid-column: 1 / -1; }
.comment-reply-link { font-size: var(--step--1); font-weight: 600; text-decoration: none; }

/* Comment form */
.comment-respond { margin-top: var(--space-xl); }
.comment-reply-title { margin-bottom: var(--space-md); }
.comment-notes { color: var(--color-muted); font-size: var(--step--1); margin-bottom: var(--space-md); }
.comment-form { display: flex; flex-direction: column; gap: var(--space-md); }
.comment-form p { display: flex; flex-direction: column; gap: var(--space-xs); margin: 0; }
.comment-form label { font-weight: 600; font-size: var(--step--1); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea { width: 100%; padding: 0.6em 0.8em; border: 1px solid var(--color-border); border-radius: var(--radius); transition: border-color var(--transition), box-shadow var(--transition); }
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--color-accent); box-shadow: 0 0 0 3px var(--color-accent-soft); outline: none; }
.comment-form .form-submit { flex-direction: row; }

/* Ghost button (equal-weight secondary action, e.g. "Refuser") */
.button--ghost { background: transparent; color: var(--color-accent); border: 1px solid var(--color-accent); }
.button--ghost:hover { background: var(--color-accent-soft); color: var(--color-accent-ink); }

/* Cookie consent banner (RGPD / CNIL) */
.cookie-banner { position: fixed; inset-inline: 0; bottom: 0; z-index: 1000; background: var(--color-bg); border-top: 3px solid var(--color-accent); box-shadow: 0 -6px 24px rgba(20, 23, 26, 0.12); }
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner { width: min(100% - 2 * var(--space-md), var(--container)); margin-inline: auto; padding-block: var(--space-md); display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); flex-wrap: wrap; }
.cookie-banner__text { flex: 1 1 22rem; font-size: var(--step--1); color: var(--color-muted); }
.cookie-banner__title { font-weight: 700; color: var(--color-fg); margin-bottom: 0.15rem; }
.cookie-banner__text a { font-weight: 600; }
.cookie-banner__actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.cookie-banner__actions .button { font-size: var(--step--1); }

/* Preferences modal */
html.cookie-modal-open { overflow: hidden; }
.cookie-modal[hidden] { display: none; }
.cookie-modal { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; padding: var(--space-md); }
.cookie-modal__overlay { position: absolute; inset: 0; background: rgba(16, 32, 44, 0.55); }
.cookie-modal__dialog { position: relative; z-index: 1; width: min(100%, 34rem); max-height: 90vh; overflow-y: auto; background: var(--color-bg); border-radius: var(--radius); padding: var(--space-lg); box-shadow: var(--shadow); }
.cookie-modal__close { position: absolute; top: 0.4rem; right: 0.7rem; background: none; border: 0; font-size: 1.7rem; line-height: 1; color: var(--color-muted); cursor: pointer; }
.cookie-modal__close:hover { color: var(--color-accent); }
.cookie-modal__title { font-size: var(--step-1); margin-bottom: var(--space-xs); }
.cookie-modal__intro { color: var(--color-muted); font-size: var(--step--1); margin-bottom: var(--space-md); }
.cookie-cat { border: 1px solid var(--color-border); border-radius: var(--radius); padding: var(--space-md); margin-bottom: var(--space-md); }
.cookie-cat__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); margin-bottom: 0.35rem; }
.cookie-cat__name { font-weight: 700; }
.cookie-cat__always { font-size: var(--step--1); color: var(--color-accent); font-weight: 600; }
.cookie-cat__desc { font-size: var(--step--1); color: var(--color-muted); margin: 0; }
.cookie-modal__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); justify-content: flex-end; }
.cookie-modal__actions .button { font-size: var(--step--1); }

/* Toggle switch */
.cookie-switch { display: inline-flex; align-items: center; gap: 0.6em; cursor: pointer; }
.cookie-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.cookie-switch__track { position: relative; flex: none; width: 42px; height: 24px; border-radius: 999px; background: var(--color-border); transition: background var(--transition); }
.cookie-switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.2); transition: transform var(--transition); }
.cookie-switch input:checked + .cookie-switch__track { background: var(--color-accent); }
.cookie-switch input:checked + .cookie-switch__track::after { transform: translateX(18px); }
.cookie-switch input:focus-visible + .cookie-switch__track { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* Floating reopen button (persistent) */
.cookie-fab[hidden] { display: none; }
.cookie-fab { position: fixed; left: 1rem; bottom: 1rem; z-index: 900; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--color-border); background: var(--color-bg); box-shadow: var(--shadow); font-size: 1.25rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform var(--transition); }
.cookie-fab:hover { transform: scale(1.08); }

/* Consent-gated third-party embeds (video) */
.consent-embed__placeholder { padding: var(--space-lg); text-align: center; background: var(--color-surface); border: 1px dashed var(--color-border); border-radius: var(--radius); }
.consent-embed__placeholder p { color: var(--color-muted); font-size: var(--step--1); margin-bottom: var(--space-md); }
.consent-embed__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); justify-content: center; }
.consent-embed__actions .button { font-size: var(--step--1); }

/* Footer (dark navy, high contrast) */
.site-footer { border-top: 4px solid var(--color-accent-2); margin-top: var(--space-xl); background: var(--color-footer-bg); color: #cbd5e6; }
.site-footer a { color: #ffffff; text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: var(--color-accent-2); }
.footer-nav__list a { position: relative; }
.site-footer__copyright { color: #93a3bd; font-size: var(--step--1); }
.cookie-settings-link { background: none; border: 0; padding: 0; margin-top: var(--space-xs); color: #93a3bd; font-size: var(--step--1); text-decoration: underline; cursor: pointer; }
.cookie-settings-link:hover { color: var(--color-accent-2); }

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*,
	*::before,
	*::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
