/* ==========================================================================
   ATMO Franche-Comté — direction 03 (blanc, cobalt, jaune, Manrope)
   ========================================================================== */

@font-face {
	font-family: "Manrope";
	src: url("../fonts/manrope.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}

:root {
	--white: #fff;
	--ink: #111;
	--cobalt: #244ae8;
	--cobalt-dark: #1a37b8;
	--cobalt-tint: #eef1fd;
	--yellow: #f5e85a;
	--muted: #666;
	--text-2: #3a3a3a;
	--line: #eee;
	--line-2: #dcdcdc;
	--danger: #b3261e;
	--font: "Manrope", Arial, Helvetica, sans-serif;
	--max: 1440px;
	--gutter: 24px;
	--pad: 24px;
	--radius: 4px;
	--s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s6: 48px; --s9: 72px; --s13: 104px;
	--header-h: 72px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 1280px) { :root { --pad: 64px; } }

/* --- Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.6;
	font-weight: 450;
	color: var(--ink);
	background: var(--white);
	font-feature-settings: "kern", "liga";
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
@media (min-width: 768px) { body { font-size: 18px; line-height: 1.65; } }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -.035em; line-height: 1.08; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 4px; }
.section--cobalt :focus-visible, .menu-panel :focus-visible, .site-footer :focus-visible { outline-color: var(--yellow); }
::selection { background: var(--yellow); color: var(--ink); }

.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: 16px; top: -100px; z-index: 200;
	background: var(--ink); color: #fff; padding: 12px 18px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.site-main { outline: none; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }

/* --- Typographie utilitaire ---------------------------------------------- */
.eyebrow {
	margin: 0 0 14px;
	font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
	color: var(--cobalt);
}
.eyebrow a { text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.eyebrow--light { color: var(--yellow); }
.kicker {
	margin: 0 0 8px;
	font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
	color: var(--cobalt);
}
.tag {
	display: inline-block; margin: 0 0 18px;
	background: var(--ink); color: var(--yellow);
	font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
	padding: 7px 11px; border-radius: 2px;
}
.note { font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.meta-text { font-size: 14px; color: var(--muted); }

/* --- Boutons ---------------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 14px 24px;
	border: 2px solid transparent; border-radius: 2px;
	font-size: 16px; font-weight: 700; line-height: 1.2; letter-spacing: -.005em;
	text-decoration: none; cursor: pointer;
	transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn .icon { width: 20px; height: 20px; transition: transform .28s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(4px); }
.btn--primary { background: var(--cobalt); color: #fff; }
.btn--primary:hover { background: var(--cobalt-dark); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--ghost { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--light { background: #fff; color: var(--cobalt); }
.btn--light:hover { background: var(--yellow); color: var(--ink); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--cobalt); }
.btn--small { min-height: 42px; padding: 9px 16px; font-size: 15px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--cobalt); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.icon { width: 22px; height: 22px; flex: none; }
.icon-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-width: 44px; height: 44px; padding: 0 10px;
	background: transparent; border: 0; border-radius: 2px; color: inherit;
}
.icon-btn:hover { background: rgba(17,17,17,.06); }
.count {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
	background: var(--cobalt); color: #fff; font-size: 12px; font-weight: 800; line-height: 1;
}
.count[hidden] { display: none; }
.count--light { background: #fff; color: var(--cobalt); }

/* --- En-tête compact ----------------------------------------------------------- */
.site-header {
	position: sticky; top: 0; z-index: 60;
	background: rgba(255,255,255,.97);
	border-bottom: 1px solid var(--line);
	backdrop-filter: saturate(1.2) blur(6px);
}
.admin-bar .site-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .site-header { top: 32px; } }
.site-header__bar {
	display: flex; align-items: center; gap: 24px;
	height: var(--header-h);
}
.brand { display: block; width: 138px; color: var(--ink); flex: none; }
.brand .logo { width: 100%; height: auto; }
.brand:hover { color: var(--cobalt); }
.nav { margin-left: auto; display: none; }
.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav__list a {
	display: block; padding: 10px 12px;
	font-size: 16px; font-weight: 650; text-decoration: none; letter-spacing: -.01em;
	border-radius: 2px;
}
.nav__list a:hover, .nav__list a[aria-current] { color: var(--cobalt); }
.nav__list a[aria-current] { box-shadow: inset 0 -2px 0 var(--cobalt); }
.header__tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav + .header__tools { margin-left: 8px; }
.tool-link {
	display: none; align-items: center; gap: 8px;
	padding: 10px 12px; font-size: 14px; font-weight: 700; text-decoration: none;
	border-radius: 2px;
}
.tool-link:hover { color: var(--cobalt); }
.tool-link .icon { width: 20px; height: 20px; }
.menu-toggle__label { font-size: 14px; font-weight: 700; }
@media (min-width: 1100px) {
	.nav { display: block; }
	.tool-link { display: inline-flex; }
	.menu-toggle { display: none; }
	.brand { width: 150px; }
}

/* --- Masthead (accueil) ------------------------------------------------- */
.masthead { position: relative; z-index: 5; background: #fff; }
.masthead__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	padding-top: 18px; padding-bottom: 18px;
}
.masthead__logo { color: var(--cobalt); display: block; grid-column: 1; grid-row: 1; max-width: 520px; }
.masthead__logo .logo { width: 100%; }
.masthead__right { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; align-items: flex-end; gap: 18px; }
.masthead__right .header__tools { margin: 0; }
.masthead__themes { display: none; }
.masthead__badge { display: none; }
.nav--masthead { margin: 0; }
.nav--masthead .nav__list a { font-size: 18px; padding: 8px 4px; }
.nav--masthead .nav__list li + li::before {
	content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 14px 0 10px;
	border-radius: 50%; background: var(--cobalt); vertical-align: middle;
}
.nav--masthead .nav__list li { display: flex; align-items: center; }
@media (min-width: 1100px) {
	.masthead__grid {
		grid-template-columns: minmax(380px, 44%) auto 1fr auto;
		align-items: end; gap: 32px;
		padding-top: 26px; padding-bottom: 26px;
	}
	.masthead__logo { max-width: none; }
	.masthead__themes {
		display: block; list-style: none; grid-column: 2; grid-row: 1; align-self: center;
		font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--cobalt);
		line-height: 1.55; padding-bottom: 14px; border-bottom: 2px solid var(--cobalt);
	}
	.masthead__right { grid-column: 3; align-self: stretch; justify-content: space-between; }
	.masthead__badge {
		display: flex; grid-column: 4; grid-row: 1; align-self: center;
		width: 132px; height: 132px; margin: 0; border-radius: 50%;
		background: var(--yellow); color: var(--ink);
		align-items: center; justify-content: center; text-align: center;
		font-size: 12px; font-weight: 800; line-height: 1.25; letter-spacing: .02em; text-transform: uppercase;
		padding: 20px; transform: rotate(-6deg);
	}
	.masthead__badge span { display: block; max-width: 92px; }
	.masthead .tool-link { display: inline-flex; }
}
@media (min-width: 1100px) and (max-width: 1279px) {
	.nav--masthead .nav__list a { font-size: 16px; }
	.nav--masthead .nav__list li + li::before { margin: 0 8px 0 6px; }
}
@media (max-width: 1099px) {
	.masthead .nav--masthead { display: none; }
	.masthead__logo { width: 100%; max-width: 420px; }
}
@media (max-width: 479px) {
	.menu-toggle__label { display: none; }
	.header__tools .icon-btn { min-width: 40px; padding: 0 8px; }
}

/* --- Menu plein écran ---------------------------------------------------- */
.menu-panel {
	position: fixed; inset: 0; z-index: 100;
	background: var(--cobalt); color: #fff;
	overflow-y: auto; overscroll-behavior: contain;
	opacity: 0; transform: translateY(-12px);
	transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.menu-panel[hidden] { display: none; }
.menu-panel.is-open { opacity: 1; transform: none; }
.menu-panel__inner { padding-top: 18px; padding-bottom: 48px; }
.menu-panel__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.menu-panel__brand { width: 150px; color: #fff; }
.menu-panel__close { color: #fff; }
.menu-panel__close:hover { background: rgba(255,255,255,.12); }
.panel__list { list-style: none; border-top: 1px solid rgba(255,255,255,.3); }
.panel__list a {
	display: block; padding: 12px 0;
	font-size: clamp(34px, 9vw, 64px); font-weight: 800; letter-spacing: -.045em; line-height: 1.05;
	text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3);
}
.panel__list a:hover { color: var(--yellow); }
.menu-panel__tools, .menu-panel__terr { list-style: none; margin-top: 32px; display: grid; gap: 4px; }
.menu-panel__tools a, .menu-panel__terr a { font-size: 20px; font-weight: 700; text-decoration: none; display: inline-flex; gap: 10px; align-items: center; padding: 6px 0; }
.menu-panel__tools a:hover, .menu-panel__terr a:hover { color: var(--yellow); }
.menu-panel__terr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.menu-panel__terr a { font-size: 16px; opacity: .9; }
.menu-panel__search { display: flex; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.menu-panel__search input { flex: 1 1 220px; min-height: 52px; padding: 12px 16px; border: 2px solid #fff; background: transparent; color: #fff; border-radius: 2px; }
.menu-panel__search input::placeholder { color: rgba(255,255,255,.75); }
body.is-locked { overflow: hidden; }

/* --- Recherche -------------------------------------------------------------- */
.search-drop { position: relative; z-index: 55; background: #fff; border-bottom: 1px solid var(--line); padding: 16px 0; }
.search-drop[hidden] { display: none; }
.search-drop__form, .archive-search { display: flex; gap: 8px; flex-wrap: wrap; }
.search-drop__form input, .archive-search input {
	flex: 1 1 240px; min-height: 52px; padding: 12px 16px;
	border: 2px solid var(--ink); border-radius: 2px; background: #fff;
}
.archive-search { margin-top: 28px; max-width: 760px; }

/* --- Hero d'accueil ----------------------------------------------------------- */
.hero { padding-top: 8px; padding-bottom: 8px; }
.hero__grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.hero__head { position: relative; z-index: 2; }
.hero__title {
	font-size: clamp(42px, 11vw, 56px);
	line-height: 1; letter-spacing: -.055em; font-weight: 800;
}
.hero__media { position: relative; overflow: hidden; }
.hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero__media figcaption, .hero__side figcaption, .gout__media figcaption, .article__hero figcaption, .terr-hero__media figcaption, .figure figcaption {
	margin-top: 8px; font-size: 13px; line-height: 1.45; color: var(--muted);
}
.hero__media figcaption a, .hero__side figcaption a, .article__hero figcaption a, .figure figcaption a, .terr-hero__media figcaption a { color: inherit; }
.hero__panel {
	background: var(--yellow); color: var(--ink);
	padding: 28px 24px 30px;
	display: flex; flex-direction: column; gap: 4px;
}
.hero__panel-title { font-size: clamp(26px, 6vw, 40px); font-weight: 800; letter-spacing: -.045em; line-height: 1.04; margin: 0 0 14px; }
.hero__panel-title::after { content: ""; display: block; width: 48px; height: 3px; background: var(--ink); margin-top: 18px; }
.hero__chapo { font-size: 17px; line-height: 1.55; font-weight: 500; margin-bottom: 22px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__ctas .btn--ghost { border-color: var(--ink); }
.hero__side { display: none; }
@media (min-width: 1024px) {
	.hero { padding-top: 0; }
	.hero__grid {
		grid-template-columns: repeat(12, minmax(0, 1fr));
		column-gap: var(--gutter); row-gap: 0;
		--overlap: clamp(56px, 5.4vw, 96px);
	}
	.hero__head { grid-column: 1 / span 9; grid-row: 1; padding-top: 18px; }
	.hero__title { font-size: clamp(56px, 6.2vw, 100px); line-height: .98; }
	.hero__title-line { background: #fff; box-decoration-break: clone; -webkit-box-decoration-break: clone; padding: 0 .16em .04em 0; }
	.hero__media { grid-column: 5 / span 6; grid-row: 2; margin-top: calc(-1 * var(--overlap)); z-index: 1; }
	.hero__media img { aspect-ratio: auto; height: clamp(420px, 38vw, 600px); }
	.hero__panel { grid-column: 1 / span 4; grid-row: 2; margin-top: 28px; align-self: end; margin-bottom: 30px; padding: 34px 32px 36px; }
	.hero__side { display: block; grid-column: 11 / span 2; grid-row: 2; margin-top: calc(-1 * var(--overlap)); }
	.hero__side img { width: 100%; height: clamp(420px, 38vw, 600px); object-fit: cover; }
}

/* --- Sections ------------------------------------------------------------------ */
.section { margin-top: 64px; margin-bottom: 64px; }
.section--tight { margin-top: 24px; margin-bottom: 40px; }
@media (min-width: 1024px) { .section { margin-top: var(--s13); margin-bottom: var(--s13); } .section--tight { margin-top: 32px; margin-bottom: 56px; } }
.section__head { margin-bottom: 36px; max-width: 920px; }
.section__head--split { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; }
.section__title { font-size: clamp(32px, 4.6vw, 64px); line-height: 1.04; letter-spacing: -.048em; }
.section__title--md { font-size: clamp(28px, 3.4vw, 46px); }
.section__lede { font-size: 19px; line-height: 1.55; color: var(--text-2); margin: 16px 0 0; max-width: 640px; }
.section__rule { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.section__rule::after { content: ""; order: 1; flex: 1; height: 1px; background: var(--ink); }
.rule-title { order: 0; font-size: 15px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.rule-link { order: 2; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.rule-link .icon { width: 18px; height: 18px; transition: transform .28s var(--ease); }
.rule-link:hover { color: var(--cobalt); }
.rule-link:hover .icon { transform: translateX(4px); }

.grid { display: grid; gap: 40px var(--gutter); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.split { display: grid; gap: 32px; }
.stack { display: grid; gap: 32px; align-content: start; }
@media (min-width: 1024px) {
	.split { gap: var(--gutter); }
	.split--7-5 { grid-template-columns: 7fr 5fr; }
	.split--5-7 { grid-template-columns: 5fr 7fr; }
	.split--center { align-items: center; }
	.split--7-5 .stack { padding-left: 24px; }
}

/* --- Cartes ------------------------------------------------------------------- */
.card { position: relative; display: flex; flex-direction: column; }
.card__media { position: relative; overflow: hidden; background: var(--line); margin-bottom: 18px; }
.card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .28s var(--ease); }
.card:hover .card__media img, .card:focus-within .card__media img { transform: scale(1.025); }
.card__title { font-size: clamp(20px, 1.7vw, 24px); line-height: 1.16; letter-spacing: -.03em; font-weight: 780; }
.card__link { text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__link:hover { color: var(--cobalt); }
.card__link:focus-visible { outline: none; }
.card__link:focus-visible::after { outline: 3px solid var(--cobalt); outline-offset: 4px; }
.card__excerpt { margin: 10px 0 0; font-size: 16px; line-height: 1.55; color: var(--text-2); }
.card__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.card__meta .icon { width: 16px; height: 16px; }
.card--noimg { border-top: 4px solid var(--cobalt); padding-top: 18px; }
.card--noimg .card__title { font-size: clamp(22px, 2vw, 28px); }
.card--noimg .fav { position: relative; top: auto; right: auto; margin-top: 16px; align-self: flex-start; border: 2px solid var(--ink); }
.card--feature .card__media img { aspect-ratio: 3 / 2; }
.card--feature .card__title { font-size: clamp(28px, 3.2vw, 46px); line-height: 1.05; letter-spacing: -.045em; }
.card--feature .card__excerpt { font-size: 18px; max-width: 640px; }
.card--wide { display: grid; gap: 24px; }
@media (min-width: 1024px) {
	.card--wide { grid-template-columns: 7fr 5fr; align-items: center; gap: var(--gutter); }
	.card--wide .card__media { margin-bottom: 0; }
	.card--row { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }
	.card--row .card__media { margin-bottom: 0; }
	.card--row .card__media img { aspect-ratio: 1 / 1; }
}
.feature-row { margin-bottom: 56px; padding-bottom: 56px; border-bottom: 1px solid var(--line); }

/* Bouton carnet */
.fav {
	position: absolute; top: 12px; right: 12px; z-index: 2;
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 50%;
	background: #fff; color: var(--ink); border: 0;
	box-shadow: 0 1px 2px rgba(0,0,0,.12);
	transition: transform .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease);
}
.fav .icon { width: 20px; height: 20px; }
.fav:hover { color: var(--cobalt); transform: scale(1.06); }
.fav[aria-pressed="true"] { color: var(--cobalt); --fill: var(--cobalt); }
.fav--full {
	position: static; width: auto; height: auto; min-height: 42px; border-radius: 2px;
	padding: 8px 16px 8px 12px; gap: 8px; border: 2px solid var(--ink); box-shadow: none;
	font-size: 15px; font-weight: 700;
}
.fav--full:hover { transform: none; background: var(--ink); color: #fff; }
.fav--full[aria-pressed="true"] { background: var(--cobalt); border-color: var(--cobalt); color: #fff; --fill: #fff; }

/* --- Bande outil (jaune) ------------------------------------------------------ */
.tool-band {
	background: var(--yellow); color: var(--ink);
	padding: 32px 24px;
	display: grid; gap: 28px;
}
.tool-band__title { font-size: clamp(32px, 4.4vw, 60px); line-height: 1; letter-spacing: -.05em; margin-bottom: 14px; }
.tool-band__intro p:last-child { margin-bottom: 0; font-size: 18px; max-width: 460px; }
@media (min-width: 1024px) {
	.tool-band { grid-template-columns: 5fr 7fr; gap: 48px; padding: 56px; align-items: end; }
	.tool-band--page { grid-template-columns: 1fr; }
}
.esc-form { display: grid; gap: 14px; }
.esc-form--compact { grid-template-columns: 1fr; }
@media (min-width: 640px) { .esc-form--compact { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1280px) { .esc-form--compact { grid-template-columns: 1fr 1fr; } }
.esc-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.esc-step legend { padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.esc-step__n { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--yellow); font-size: 12px; letter-spacing: 0; }
select, .form input, .form select, .form textarea, .filters input, .filters select {
	width: 100%; min-height: 52px; padding: 12px 44px 12px 14px;
	background: #fff; border: 2px solid var(--ink); border-radius: 2px;
	font-size: 16px; font-weight: 600; line-height: 1.3;
}
select {
	appearance: none; -webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23111' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 12px center; background-size: 20px;
}
.esc-actions { display: flex; align-items: flex-end; }
.esc-form--compact .esc-actions { grid-column: 1 / -1; }
.esc-actions .btn { width: 100%; }
@media (min-width: 640px) { .esc-actions .btn { width: auto; } }
.esc-form--steps { max-width: 980px; }
@media (min-width: 1024px) {
	.esc-form--steps { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; }
	.esc-form--steps .esc-actions { grid-column: 1 / -1; }
}
/* Mode pas à pas (JS) */
.esc-form.is-stepper .esc-step { display: none; }
.esc-form.is-stepper .esc-step.is-current { display: block; }
.esc-form.is-stepper { grid-template-columns: 1fr; max-width: 640px; }
.esc-nav { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.esc-progress { font-size: 14px; font-weight: 700; margin: 0; }
.esc-form.is-stepper select { font-size: 20px; min-height: 60px; }

.recap { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; font-size: 17px; font-weight: 600; color: var(--text-2); margin-bottom: 28px; }
.recap__edit { font-weight: 800; color: var(--cobalt); }
.esc-results { display: grid; gap: 32px; }
@media (min-width: 1024px) { .esc-results { grid-template-columns: 7fr 5fr; gap: var(--gutter); } .esc-card--main { grid-row: span 2; } }
.esc-card { position: relative; border: 1px solid var(--line-2); display: flex; flex-direction: column; }
.esc-card__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.esc-card--main .esc-card__media img { aspect-ratio: 16 / 10; }
.esc-card__body { padding: 22px 24px 26px; }
.esc-card__title { font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -.04em; margin-bottom: 10px; }
.esc-card--main .esc-card__title { font-size: clamp(30px, 3.4vw, 48px); }
.esc-card__title a { text-decoration: none; }
.esc-card__title a:hover { color: var(--cobalt); }
.esc-card__facts { list-style: none; display: grid; gap: 6px; margin: 14px 0 18px; font-size: 15px; font-weight: 600; }
.esc-card__facts li { display: flex; gap: 8px; align-items: flex-start; }
.esc-card__facts .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--cobalt); }
.esc-card__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.esc-more { margin-top: 32px; }
.method { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); padding: 18px 0; }
.method summary { cursor: pointer; font-size: 18px; font-weight: 800; }
.method .prose { margin-top: 16px; max-width: 760px; }
.widen { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* --- Territoires ---------------------------------------------------------- */
.section--terr { overflow: hidden; }
.relief { color: var(--cobalt); height: 90px; margin: 0 0 32px; }
.relief svg { width: 100%; height: 100%; }
.terr-grid { gap: 40px var(--gutter); }
.terr-card { display: flex; flex-direction: column; text-decoration: none; position: relative; }
.terr-card__media { display: block; overflow: hidden; margin-bottom: 18px; background: var(--line); }
.terr-card__media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .28s var(--ease); }
.terr-card:hover .terr-card__media img { transform: scale(1.025); }
.terr-card__code { font-size: 13px; font-weight: 800; letter-spacing: .14em; color: var(--cobalt); }
.terr-card__name { font-size: clamp(26px, 2.4vw, 36px); font-weight: 800; letter-spacing: -.045em; line-height: 1.05; margin: 6px 0 8px; }
.terr-card:hover .terr-card__name { color: var(--cobalt); }
.terr-card__text { font-size: 16px; color: var(--text-2); line-height: 1.5; }
.terr-card--noimg { border-top: 4px solid var(--cobalt); padding-top: 18px; }

/* --- Séquence cobalt --------------------------------------------------------- */
.section--cobalt { background: var(--cobalt); color: #fff; padding: 72px 0; margin: 0; }
@media (min-width: 1024px) { .section--cobalt { padding: var(--s13) 0; } }
.section--cobalt .section__title { font-size: clamp(44px, 6vw, 96px); }
.section--cobalt .section__lede { color: rgba(255,255,255,.88); }
.gout__text .btn { margin-top: 32px; }
.gout__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; max-height: 760px; }
.section--cobalt .gout__media figcaption { color: rgba(255,255,255,.78); }
.section--cobalt .gout__media figcaption a { color: inherit; }
@media (min-width: 1024px) { .gout__text { padding-right: 48px; } .gout__media { justify-self: end; width: 86%; } }
.link-list { list-style: none; margin-top: 28px; border-top: 1px solid currentColor; }
.link-list a {
	display: flex; align-items: center; justify-content: space-between; gap: 20px;
	padding: 18px 0; border-bottom: 1px solid currentColor;
	font-size: clamp(18px, 1.7vw, 22px); font-weight: 750; letter-spacing: -.02em; text-decoration: none;
}
.link-list a .icon { transition: transform .28s var(--ease); }
.link-list a:hover .icon { transform: translateX(4px); }
.link-list--light { border-color: rgba(255,255,255,.4); }
.link-list--light a { border-color: rgba(255,255,255,.4); }
.link-list--light a:hover { color: var(--yellow); }
.page-head--404 .link-list { max-width: 640px; }
.page-head--404 .link-list a:hover { color: var(--cobalt); }

/* --- Carnet (bande) ---------------------------------------------------------- */
.carnet-band {
	border: 2px solid var(--ink); padding: 32px 24px;
	display: grid; gap: 24px; align-items: center;
}
@media (min-width: 1024px) { .carnet-band { grid-template-columns: 1fr auto; padding: 56px; gap: 48px; } }
.carnet-band__cta .note { margin-top: 12px; }

/* --- Le fil ------------------------------------------------------------------ */
.fil { list-style: none; }
.fil__item {
	display: grid; grid-template-columns: 1fr; gap: 4px;
	padding: 18px 0; border-bottom: 1px solid var(--line);
}
@media (min-width: 768px) { .fil__item { grid-template-columns: 160px 1fr 120px; gap: 24px; align-items: baseline; } }
.fil__kicker { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--cobalt); }
.fil__link { font-size: 19px; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; text-decoration: none; }
.fil__link:hover { color: var(--cobalt); text-decoration: underline; }
.fil__date { font-size: 14px; color: var(--muted); }
@media (min-width: 768px) { .fil__date { text-align: right; } }
.fil__more { margin-top: 28px; }

/* --- En-têtes de pages ---------------------------------------------------- */
.page-head { padding-top: 40px; padding-bottom: 8px; }
@media (min-width: 1024px) { .page-head { padding-top: 64px; } }
.page-title { font-size: clamp(38px, 5.4vw, 84px); line-height: 1; letter-spacing: -.05em; max-width: 1100px; margin-bottom: 20px; }
.page-title--xl { font-size: clamp(42px, 6.4vw, 104px); line-height: .98; letter-spacing: -.055em; }
.page-title__page { color: var(--muted); font-weight: 700; font-size: .5em; letter-spacing: -.02em; }
.page-lede { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: var(--text-2); max-width: 780px; font-weight: 500; }
.page-lede p:last-child { margin-bottom: 0; }
.crumbs { margin-bottom: 24px; font-size: 13px; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: var(--line-2); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; color: var(--ink); }

/* --- Territoire ---------------------------------------------------------------- */
.terr-hero { padding-top: 32px; }
.terr-hero__grid { display: grid; gap: 28px; align-items: end; }
@media (min-width: 1024px) { .terr-hero { padding-top: 56px; } .terr-hero__grid { grid-template-columns: 5fr 7fr; gap: var(--gutter); } }
.terr-hero__accroche { font-size: clamp(20px, 2vw, 28px); font-weight: 650; letter-spacing: -.02em; line-height: 1.3; max-width: 520px; }
.terr-hero__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.prose--intro { max-width: 820px; font-size: 19px; }
.other-terr ul { list-style: none; display: grid; gap: 0 var(--gutter); border-top: 1px solid var(--ink); }
@media (min-width: 768px) { .other-terr ul { grid-template-columns: repeat(3, 1fr); } }
.other-terr a { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: clamp(22px, 2.4vw, 34px); font-weight: 800; letter-spacing: -.04em; text-decoration: none; }
.other-terr a:hover { color: var(--cobalt); }

/* --- Filtres / puces ----------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 28px; }
.chips--small { margin-top: -12px; }
.chip {
	display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px;
	border: 1.5px solid var(--ink); border-radius: 999px; background: #fff;
	font-size: 14px; font-weight: 700; text-decoration: none; color: var(--ink);
	transition: background-color .15s, color .15s;
}
.chip:hover { background: var(--cobalt-tint); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.chips__count, .filters__count { margin: 0 0 0 auto; font-size: 14px; font-weight: 700; color: var(--muted); }
.is-filtered-out { display: none !important; }
.empty-filter { font-weight: 600; }
[data-filter-items], [data-f-items] { transition: opacity .15s; }

.filters {
	display: grid; gap: 14px; align-items: end;
	padding: 20px; margin-bottom: 28px; background: var(--cobalt-tint);
}
@media (min-width: 768px) { .filters { grid-template-columns: 2fr 1fr 1fr 1fr auto; } .filters__count { grid-column: 1 / -1; margin: 0; } }
.filters label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.filters input { padding-right: 14px; }

/* --- Carte -------------------------------------------------------------------- */
.map-shell { margin-bottom: 40px; }
.map-shell__placeholder, .mini-map__placeholder {
	display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
	padding: 24px; border: 2px solid var(--ink);
	background-image: radial-gradient(var(--line-2) 1px, transparent 1px); background-size: 14px 14px;
}
.map-shell__placeholder p { margin: 0; max-width: 620px; background: #fff; padding: 4px 0; }
.mini-map__placeholder p { margin: 0; background: #fff; }
.map { height: min(70vh, 560px); border: 2px solid var(--ink); }
.mini-map { margin: 40px 0; }
.mini-map .map { height: 360px; }
.leaflet-container { font-family: var(--font); }
.atmo-marker { width: 18px; height: 18px; border-radius: 50%; background: var(--cobalt); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--cobalt); }
.atmo-marker.is-active { background: var(--yellow); box-shadow: 0 0 0 2px var(--ink); }
.leaflet-popup-content { margin: 14px 16px; font-size: 14px; line-height: 1.4; }
.leaflet-popup-content a { color: var(--cobalt); font-weight: 800; }
.card.is-highlight { outline: 3px solid var(--cobalt); outline-offset: 8px; }

/* --- Article ------------------------------------------------------------------ */
.article__head { padding-top: 32px; }
@media (min-width: 1024px) { .article__head { padding-top: 56px; } }
.article__title { font-size: clamp(36px, 5.6vw, 88px); line-height: 1; letter-spacing: -.052em; max-width: 1180px; margin-bottom: 22px; }
.article__chapo { font-size: clamp(19px, 1.8vw, 24px); line-height: 1.5; font-weight: 550; letter-spacing: -.01em; color: var(--text-2); max-width: 860px; }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 24px 0 0; }
.meta-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; font-weight: 700; text-decoration: none; }
a.meta-pill:hover { border-color: var(--cobalt); color: var(--cobalt); }
.meta-pill .icon { width: 16px; height: 16px; }
.article__meta .fav--full { margin-left: auto; }
.article__hero { margin-top: 36px; overflow: hidden; }
.article__hero img { width: 100%; max-height: 78vh; aspect-ratio: 16 / 9; object-fit: cover; }
.article__hero--short img { aspect-ratio: 21 / 8; }
.article__layout { display: grid; gap: 48px; margin-top: 48px; margin-bottom: 24px; }
@media (min-width: 1024px) {
	.article__layout { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--gutter); margin-top: 64px; }
	.article__body { grid-column: 2 / span 7; }
	.article__aside { grid-column: 10 / span 3; position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
	.article__layout--single .article__body { grid-column: 3 / span 8; }
}

/* Contenu rédactionnel */
.prose { max-width: 720px; font-size: 18px; line-height: 1.68; }
.article__layout--single .prose { max-width: 760px; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.12; letter-spacing: -.035em; margin: 2.2em 0 .6em; }
.prose h3 { font-size: clamp(21px, 2vw, 26px); line-height: 1.2; letter-spacing: -.025em; margin: 1.8em 0 .5em; }
.prose h4 { font-size: 19px; margin: 1.6em 0 .4em; letter-spacing: -.015em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.15em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--cobalt); }
.prose a { color: var(--cobalt); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose strong { font-weight: 750; }
.prose blockquote { margin: 1.6em 0; padding-left: 20px; border-left: 4px solid var(--cobalt); font-size: 1.1em; font-weight: 600; }
.prose img { height: auto; }
.prose figure, .prose .wp-caption, .figure { margin: 2em 0; max-width: 100%; }
.prose .wp-caption-text, .prose figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.prose .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
.prose .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
.prose .aligncenter { margin-inline: auto; }
.prose iframe { max-width: 100%; }
.prose hr { border: 0; border-top: 1px solid var(--line-2); margin: 2.4em 0; }
.table-scroll { overflow-x: auto; margin: 1.6em 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 16px; }
.prose th, .prose td { border-bottom: 1px solid var(--line-2); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { font-weight: 800; }
.prose::after { content: ""; display: table; clear: both; }

.notice-independance { background: var(--cobalt-tint); border-left: 4px solid var(--cobalt); padding: 16px 20px; margin-bottom: 2em; font-size: 16px; }
.notice-independance p:last-child { margin-bottom: 0; }

/* Encadré pratique (noir sur jaune) */
.practical { background: var(--yellow); color: var(--ink); padding: 26px 24px 28px; }
.practical__title, .aside-lieux__title { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; }
.practical ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15.5px; line-height: 1.5; }
.practical li { padding-left: 18px; position: relative; }
.practical li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: var(--ink); }
.practical a { color: var(--ink); text-decoration: underline; font-weight: 700; }
.practical p { font-size: 15.5px; }
.practical .btn { margin-top: 18px; }
.facts { display: grid; grid-template-columns: 1fr; gap: 2px 0; margin: 0; font-size: 15.5px; }
.facts dt { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-top: 12px; }
.facts dt:first-child { margin-top: 0; }
.facts dd { margin: 2px 0 0; line-height: 1.5; }
.facts__note { font-size: 14px; }
.aside-lieux { margin-top: 28px; border-top: 2px solid var(--ink); padding-top: 18px; }
.aside-lieux ul { list-style: none; margin-bottom: 18px; }
.aside-lieux li a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.aside-lieux li a:hover strong { color: var(--cobalt); }
.aside-lieux strong { display: block; font-size: 16px; font-weight: 750; line-height: 1.3; }
.aside-lieux span { font-size: 14px; color: var(--muted); }

.faq { margin-top: 3em; }
.faq__item { border-bottom: 1px solid var(--line-2); }
.faq__item:first-of-type { border-top: 1px solid var(--line-2); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-size: 19px; font-weight: 750; letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 28px; font-weight: 500; color: var(--cobalt); }
.faq details[open] summary::after { content: "–"; }
.faq__a { padding-bottom: 12px; }
.sources { margin-top: 3em; padding-top: 1.4em; border-top: 2px solid var(--ink); font-size: 15px; line-height: 1.55; }
.sources h2 { font-size: 15px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 1em; }
.sources ul { padding-left: 1.1em; }
.sources li { margin-bottom: .5em; }
.sources__date { color: var(--muted); }
.sources__note { color: var(--muted); font-size: 14px; margin-top: 1em; }
.related { margin-top: 72px; }

/* --- Notices et formulaires ----------------------------------------------- */
.notice { padding: 18px 22px; margin: 0 0 28px; font-size: 16px; }
.notice p:last-child { margin-bottom: 0; }
.notice--soft { background: var(--cobalt-tint); border-left: 4px solid var(--cobalt); }
.notice--ok { background: var(--yellow); border-left: 4px solid var(--ink); }
.notice--error { background: #fdecea; border-left: 4px solid var(--danger); }
.form { display: grid; gap: 18px; max-width: 640px; margin-top: 1.4em; }
.form label { display: block; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.form input, .form textarea { padding-right: 14px; font-weight: 500; }
.form textarea { min-height: 180px; resize: vertical; }
.form__legal { font-size: 14px; color: var(--muted); margin: 0; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }

.credits { list-style: none; padding: 0 !important; display: grid; gap: 24px; }
@media (min-width: 768px) { .credits { grid-template-columns: 1fr 1fr; } }
.credits__item { display: grid; grid-template-columns: 120px 1fr; gap: 16px; font-size: 15px; line-height: 1.5; margin: 0 !important; }
.credits__item img { width: 120px; aspect-ratio: 4 / 3; object-fit: cover; }

.arch-cats { list-style: none; display: grid; gap: 0 var(--gutter); }
@media (min-width: 768px) { .arch-cats { grid-template-columns: repeat(4, 1fr); } }
.arch-cats a { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 20px; font-weight: 750; text-decoration: none; }
.arch-cats a:hover { color: var(--cobalt); }
.arch-cats__n { font-size: 14px; color: var(--muted); font-weight: 700; }

.carnet-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 28px; }
.carnet-toolbar__count { margin: 0; font-weight: 700; }
.carnet-confirm { font-size: 15px; font-weight: 600; margin-left: 12px; }

/* Pagination */
.pagination { margin-top: 56px; }
.pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.pagination a, .pagination span {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 46px; min-height: 46px; padding: 8px 14px;
	border: 1.5px solid var(--ink); border-radius: 2px;
	font-weight: 700; text-decoration: none; font-size: 15px;
}
.pagination a:hover { background: var(--ink); color: #fff; }
.pagination .current { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.pagination .dots { border-color: transparent; }

/* --- Pied de page ------------------------------------------------------------ */
.site-footer { background: var(--ink); color: #fff; margin-top: 104px; padding: 72px 0 28px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--yellow); text-decoration: underline; }
.site-footer__top { display: grid; gap: 40px; }
@media (min-width: 768px) { .site-footer__top { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .site-footer__top { grid-template-columns: 2.4fr 1fr 1fr 1.3fr 1fr; gap: var(--gutter); } }
.site-footer__logo { display: block; width: 240px; color: #fff; margin-bottom: 18px; }
.site-footer__logo:hover { color: var(--yellow); }
.site-footer__claim { font-size: 22px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 12px; color: var(--yellow); }
.site-footer__statement { font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.82); max-width: 440px; }
.site-footer__title { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.65); margin-bottom: 14px; font-weight: 800; }
.footnav__list { list-style: none; display: grid; gap: 8px; font-size: 15px; font-weight: 600; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.2); font-size: 13px; color: rgba(255,255,255,.7); }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom ul { list-style: none; display: flex; gap: 20px; }

/* --- Toast / annonces -------------------------------------------------------- */
.sr-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.toast {
	position: fixed; left: 50%; bottom: 24px; z-index: 120;
	transform: translate(-50%, 8px); opacity: 0;
	background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 2px;
	font-size: 15px; font-weight: 700; box-shadow: 0 6px 24px rgba(0,0,0,.18);
	transition: opacity .18s var(--ease), transform .18s var(--ease);
	display: flex; gap: 14px; align-items: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast a { color: var(--yellow); }

/* --- Animations (uniquement avec JS, une seule fois) ------------------------- */
.js [data-reveal="rise"] { opacity: 0; transform: translateY(16px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.js [data-reveal="rise"].is-in { opacity: 1; transform: none; }
.js [data-reveal="fade"] { opacity: 0; transition: opacity .7s var(--ease); }
.js [data-reveal="fade"].is-in { opacity: 1; }
.js [data-reveal="zoom"] img { transform: scale(1.035); transition: transform .9s var(--ease); }
.js [data-reveal="zoom"].is-in img { transform: none; }
.js [data-reveal="draw"] path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .7s var(--ease); }
.js [data-reveal="draw"].is-in path { stroke-dashoffset: 0; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.js [data-reveal] , .js [data-reveal] img, .js [data-reveal] path { opacity: 1 !important; transform: none !important; stroke-dashoffset: 0 !important; }
}

@media print {
	.site-header, .masthead, .site-footer, .fav, .menu-panel, .search-drop, .toast, .related, .map-shell { display: none !important; }
	body { font-size: 12pt; }
	.article__layout { display: block; }
}
.nowrap { white-space: nowrap; }
#resultats:focus, .site-main:focus { outline: none; }
.rule-title { white-space: nowrap; }

/* Correctifs de mise en page (18/10/2026) */
.nav__list a { white-space: nowrap; }
.hero__title-line { background: none; padding: 0; }
@media (min-width: 1024px) {
	.hero__title { display: inline-block; background: #fff; padding: 0 .2em .12em 0; line-height: 1; }
	.article__aside { position: static; }
}
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* Rencontres imaginaires (portraits fictifs) */
.fv { position: relative; overflow: hidden; container-type: inline-size; aspect-ratio: 4 / 3; background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.fv__shape { position: absolute; top: 5%; right: 3%; width: 72%; height: 72%; transition: transform .4s var(--ease); }
.fv__word { position: absolute; left: 5cqi; right: 4cqi; bottom: 4cqi; font-size: 14cqi; font-weight: 800; line-height: .9; letter-spacing: -.055em; overflow-wrap: anywhere; }
.fv__tag { position: absolute; top: 5cqi; left: 5cqi; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: 5px 9px; border: 1.5px solid currentColor; border-radius: 999px; }
.fv--matiere { background: var(--cobalt-tint); color: var(--cobalt); box-shadow: none; }
.fv--jaune { background: var(--yellow); box-shadow: none; }
.fv--table { background: var(--cobalt); color: var(--white); box-shadow: none; }
.fv--forme { background: #f3f2ee; color: var(--cobalt); box-shadow: none; }
.fv--maison { background: #f6f3ea; box-shadow: none; }
.fv--hero { aspect-ratio: 16 / 9; }
.fv--hero .fv__shape { top: 6%; right: 2%; width: 56%; height: 88%; }
.fv--hero .fv__word { font-size: 12cqi; }
.fv--hero .fv__tag { font-size: 12px; }
@media (min-width: 1024px) {
	.fv--hero { aspect-ratio: 21 / 8; }
	.fv--hero .fv__word { font-size: 10cqi; left: 3cqi; bottom: 3cqi; }
	.fv--hero .fv__tag { top: 3cqi; left: 3cqi; }
}
.card--fiction .card__media { background: none; }
.card:hover .fv__shape, .card:focus-within .fv__shape { transform: scale(1.04); }
.article__hero--fiction { margin-top: 36px; }
.fiction-notice { max-width: 860px; margin: 18px 0 0; padding: 2px 0 2px 14px; border-left: 3px solid var(--cobalt); font-size: 15px; font-weight: 650; line-height: 1.5; color: var(--text-2); }
.fiction-notice--end { margin-top: 48px; padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--line-2); font-size: 14.5px; font-weight: 500; color: var(--muted); }
.fiction-quote { max-width: 1080px; margin: 56px 0 0; padding: 0; }
.fiction-quote p { margin: 0; font-size: clamp(28px, 3.6vw, 52px); line-height: 1.08; font-weight: 750; letter-spacing: -.04em; }
.fiction-quote footer { margin-top: 18px; font-size: 14px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--cobalt); }
.article__body--interview h2 { font-size: clamp(20px, 1.9vw, 25px); line-height: 1.25; letter-spacing: -.02em; margin: 2em 0 .55em; }
.article__body--interview > h2:first-child, .article__body--interview > .figure + h2 { margin-top: 0; }
.fiction-card { border: 2px solid var(--ink); padding: 24px 22px 22px; font-size: 15.5px; line-height: 1.5; }
.fiction-card p { margin: 0 0 10px; }
.fiction-card__name { font-size: 24px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.fiction-card .note { margin-top: 14px; }
.related--fiction .rule-title { white-space: normal; }
.rencontrer-note { max-width: 760px; margin-top: 40px; }
.article__body--interview .figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

