/* ==========================================================================
   Alsace Fan Day — feuille du site (kit Jolifish)
   « Rot un Wiss » : le rouge et le blanc de l’Alsace, le jaune des pois et
   du soleil de la Saint-Jean. Une seule famille, Open Sans, dont on serre
   la chasse pour les titres (comme « FAN DAY » dans le logo).
   Les classes visées sont celles que le moteur écrit.
   Seuils : 1160, 940, 720, 480 px — les mêmes que le thème.
   ========================================================================== */

@font-face {
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 300 800;
	font-stretch: 75% 100%;
	font-display: swap;
	src: url("/wp-content/uploads/fonts/open-sans-latin-standard-normal.woff2") format("woff2");
}

:root {
	/* Jetons du kit (surchargés par site.tokens) */
	--ink: #1d1d1b;
	--muted: #57534e;
	--line: #ecdfdc;
	--paper: #ffffff;
	--soft: #fff6d9;
	--purple: #c10510;      /* rouge foncé : texte rouge et fonds sous texte blanc (AA) */
	--pink: #f2c94c;        /* jaune des pois et du soleil : décor uniquement */
	--night: #a8040e;       /* rouge profond du pied de page */
	--radius: 22px;
	--container: 1200px;

	/* Dérivés */
	--rot: #e30613;         /* le rouge du logo */
	--rot-ink: var(--purple);
	--rot-deep: #8f030b;
	--gold: var(--pink);
	--on-red: #ffffff;
	--on-red-muted: #fff0ee;
	--rot-fond: #d10511;     /* fond des bandes rouges : le texte blanc y reste lisible (AA) */
	--rule: rgba(29, 29, 27, .14);
	--rule-red: rgba(255, 255, 255, .28);
	--shadow-1: 0 1px 2px rgba(29, 29, 27, .06), 0 14px 34px -20px rgba(29, 29, 27, .35);
	--shadow-2: 0 2px 6px rgba(29, 29, 27, .08), 0 26px 50px -24px rgba(29, 29, 27, .45);
	--radius-s: 12px;
	--radius-l: 32px;
	--font: "Open Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
	--ease: cubic-bezier(.22, 1, .36, 1);
	--spring: cubic-bezier(.34, 1.56, .64, 1);
	--gutter: 40px;
	--section-y: 112px;
	--pad-card: 32px;
	--pad-l: 44px;

	/* Le Kelsch : le carreau rouge et blanc des nappes alsaciennes. */
	--kelsch:
		linear-gradient(90deg, rgba(227, 6, 19, .5) 50%, transparent 0) 0 0 / 22px 22px,
		linear-gradient(rgba(227, 6, 19, .5) 50%, transparent 0) 0 0 / 22px 22px,
		#fff;
	/* Les pois jaunes de la charte */
	--pois: radial-gradient(circle, var(--gold) 0 3.2px, transparent 3.8px) 0 0 / 26px 26px;
	/* Un cœur blanc, et le bretzel du pointeur */
	--coeur: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-15 -16 30 26'%3E%3Cpath d='M0 8C-14-2-12-16-3-14-1-13.5 0-12 0-10 0-12 1-13.5 3-14 12-16 14-2 0 8Z' fill='%23fff'/%3E%3C/svg%3E");
	--bretzel: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cg fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 27C9 27 4 22.5 4 15.5 4 9 7.5 5 12 5c4 0 5.5 3 4.3 7.2L13 21M16 27c7 0 12-4.5 12-11.5C28 9 24.5 5 20 5c-4 0-5.5 3-4.3 7.2L19 21' stroke='%238f030b' stroke-width='5.5'/%3E%3Cpath d='M16 27C9 27 4 22.5 4 15.5 4 9 7.5 5 12 5c4 0 5.5 3 4.3 7.2L13 21M16 27c7 0 12-4.5 12-11.5C28 9 24.5 5 20 5c-4 0-5.5 3-4.3 7.2L19 21' stroke='%23f2c94c' stroke-width='3'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------- Base */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 110px;
}

body {
	margin: 0;
	min-height: 100vh;
	font-family: var(--font);
	font-size: 1.0625rem;
	font-weight: 400;
	font-stretch: 100%;
	line-height: 1.65;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

[hidden] { display: none !important; }

img,
video,
svg { max-width: 100%; }

img { height: auto; display: block; }

a { color: var(--rot-ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

/* Les titres : la chasse serrée et le gras du « FAN DAY » du logo. */
h1, h2, h3, h4 {
	margin: 0;
	font-weight: 800;
	font-stretch: 75%;
	line-height: 1;
	color: var(--ink);
	text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

li,
td,
summary,
figcaption,
blockquote,
.feature-list span { text-wrap: pretty; }

strong { font-weight: 700; }

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

::selection { background: var(--gold); color: var(--ink); }

.container {
	width: 100%;
	max-width: calc(var(--container) + 2 * var(--gutter));
	margin-left: auto;
	margin-right: auto;
	padding: 0 var(--gutter);
}

.icon {
	width: 1.25em;
	height: 1.25em;
	flex: none;
	vertical-align: middle;
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -100px;
	z-index: 100;
	padding: 12px 18px;
	background: var(--ink);
	color: var(--paper);
	border-radius: var(--radius-s);
	font-weight: 700;
	text-decoration: none;
}
.skip-link:hover,
.skip-link:focus { top: 16px; color: var(--paper); }

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

.btn,
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .6em;
	min-height: 50px;
	padding: .8em 1.5em;
	border: 2px solid transparent;
	border-radius: 999px;
	font: inherit;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .25s var(--spring), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }

.btn-primary,
.button-primary {
	background: var(--rot);
	color: var(--paper);
	border-color: var(--rot);
	box-shadow: 0 10px 22px -12px rgba(227, 6, 19, .8);
}
.btn-primary:hover,
.button-primary:hover { background: var(--rot-deep); border-color: var(--rot-deep); color: var(--paper); }

.btn-secondary {
	background: var(--paper);
	color: var(--ink);
	border-color: var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: var(--paper); }

.btn-light {
	background: var(--paper);
	color: var(--rot-ink);
	border-color: var(--paper);
}
.btn-light:hover { background: var(--soft); border-color: var(--soft); color: var(--rot-deep); }

.btn-small { min-height: 42px; padding: .55em 1.15em; font-size: .92rem; }

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 14px;
	margin-top: 34px;
}

.text-link {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	font-weight: 700;
	color: var(--rot-ink);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-decoration-color: var(--gold);
	text-underline-offset: .32em;
	transition: color .2s var(--ease), text-decoration-color .2s var(--ease), text-underline-offset .2s var(--ease);
}
/* Pas de flèche décorative : le soulignement jaune dit déjà que c’est un lien. */
.text-link .icon,
.btn .icon { display: none; }
a.text-link:hover { color: var(--ink); text-decoration-color: var(--rot); text-underline-offset: .2em; }

/* ---------------------------------------------------------------- En-tête */

.site-header {
	position: sticky;
	top: 0;
	z-index: 80;
	height: auto;
	padding-top: 12px;
	background: transparent;
	border-bottom: 0;
}

.header-inner {
	position: relative;
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 74px;
	padding-top: 10px;
	padding-bottom: 10px;
	background: rgba(255, 255, 255, .92);
	-webkit-backdrop-filter: blur(14px) saturate(1.3);
	backdrop-filter: blur(14px) saturate(1.3);
	border-radius: var(--radius);
	box-shadow: var(--shadow-1);
	width: auto;
	height: auto;
	max-width: calc(var(--container) + 2 * var(--gutter) - 24px);
}

/* Le fil rouge : il se tend sous la barre à mesure qu’on lit la page. */
@supports (animation-timeline: scroll()) {
	.header-inner::after {
		content: "";
		position: absolute;
		left: var(--radius);
		right: var(--radius);
		bottom: 0;
		height: 3px;
		border-radius: 3px;
		background: var(--rot);
		transform-origin: 0 50%;
		animation: fil-rouge linear both;
		animation-timeline: scroll(root);
	}
}
@keyframes fil-rouge { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.brand {
	display: inline-flex;
	align-items: center;
	flex: none;
	color: var(--ink);
	text-decoration: none;
}
.brand-logo { width: auto; height: 44px; }
.brand-mot { font-size: 1.35rem; font-weight: 800; font-stretch: 75%; }
.brand-marque { display: inline-flex; }

.main-nav {
	display: flex;
	align-items: center;
	gap: 2px;
	margin: 0 auto;
	font-size: 1rem;
}

.nav-link,
.nav-group > summary {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 8px 14px;
	border-radius: 999px;
	font-size: .97rem;
	font-weight: 600;
	color: var(--ink);
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s var(--ease), color .2s var(--ease);
}
.nav-link:hover,
.nav-group > summary:hover,
.nav-group[open] > summary { background: var(--soft); color: var(--ink); }
.nav-link[aria-current],
.nav-group > summary[aria-current] { color: var(--rot-ink); }

.nav-group { position: relative; }
.nav-group > summary { list-style: none; }
.nav-group > summary::-webkit-details-marker { display: none; }
.chevron { width: 12px; height: 12px; stroke-width: 1.8; transition: transform .2s var(--ease); }
.nav-group[open] .chevron { transform: rotate(180deg); }

.nav-dropdown {
	border: 0;
	position: absolute;
	top: calc(100% + 14px);
	left: 50%;
	z-index: 60;
	display: grid;
	gap: 2px;
	width: min(330px, 86vw);
	padding: 10px;
	background: var(--paper);
	border-radius: var(--radius);
	box-shadow: var(--shadow-2);
	transform: translateX(-50%);
	border-top: 6px solid var(--rot);
}
.nav-group[open] > .nav-dropdown { animation: deplie .3s var(--ease); }
@keyframes deplie { from { opacity: 0; transform: translate(-50%, -6px); } }
.nav-dropdown a {
	display: grid;
	gap: 2px;
	padding: 10px 14px;
	border-radius: var(--radius-s);
	font-weight: 700;
	font-size: .97rem;
	color: var(--ink);
	text-decoration: none;
}
.nav-dropdown a:hover,
.nav-dropdown a[aria-current] { background: var(--soft); }
.nav-dropdown small { font-size: .84rem; font-weight: 400; color: var(--muted); }

.mobile-only { display: none; }

.header-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: none;
}
.header-account {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--soft);
	font-size: .9rem;
	font-weight: 600;
	color: var(--ink);
	text-decoration: none;
	transition: background-color .2s var(--ease);
}
.header-account svg { width: 20px; height: 20px; }
.header-account:hover { background: var(--gold); color: var(--ink); }

.nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--soft);
	color: var(--ink);
	cursor: pointer;
}

.lang-switch { position: relative; font-size: .9rem; }
.lang-dropdown {
	position: absolute;
	right: 0;
	top: calc(100% + 8px);
	display: grid;
	padding: 8px;
	background: var(--paper);
	border-radius: var(--radius-s);
	box-shadow: var(--shadow-2);
}
.lang-dropdown a { padding: 6px 12px; color: var(--ink); text-decoration: none; }

/* ---------------------------------------------------------------- Accueil */

/* Comme sur l’affiche : le grand soleil jaune en haut à droite, la trame de
   pois à gauche, et le globe qui tourne au milieu. */
.home-intro {
	position: relative;
	padding: 56px 0 104px;
	overflow: clip;
	isolation: isolate;
}
.home-intro::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: -38vw;
	right: -22vw;
	width: 66vw;
	height: 66vw;
	max-width: 980px;
	max-height: 980px;
	border-radius: 50%;
	background: var(--gold);
	opacity: .9;
	animation: soleil 12s ease-in-out infinite alternate;
}
@keyframes soleil { to { transform: translate(-1.5vw, 2vw) scale(1.04); } }
.home-intro::after {
	content: "";
	position: absolute;
	z-index: -1;
	left: 0;
	top: 40px;
	width: max(0px, calc((100vw - var(--container)) / 2 - 16px));
	height: 78%;
	background: var(--pois);
	-webkit-mask-image: linear-gradient(90deg, #000 30%, transparent);
	mask-image: linear-gradient(90deg, #000 30%, transparent);
	animation: pois 6s ease-in-out infinite alternate;
}
@keyframes pois { to { background-position: 0 13px; } }

.intro-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
	align-items: center;
	gap: 32px;
}
.intro-copy { position: relative; z-index: 2; }

.intro-copy h1 {
	font-size: clamp(3rem, 5.5vw, 5.6rem);
	font-weight: 800;
	font-stretch: 75%;
	line-height: .9;
	letter-spacing: -.012em;
}

.eyebrow {
	display: block;
	margin-bottom: 16px;
	font-size: .98rem;
	font-weight: 700;
	color: var(--rot-ink);
}

.home-intro .lead,
.page-hero .lead {
	max-width: 54ch;
	margin-top: 28px;
	font-size: clamp(1.1rem, 1.5vw, 1.26rem);
	line-height: 1.6;
	color: var(--muted);
}

/* La date de la prochaine édition, posée comme une étiquette. */
.intro-foot {
	display: inline-flex;
	margin-top: 30px;
	padding: 10px 18px;
	border-radius: 999px;
	background: var(--ink);
	color: var(--paper);
	font-size: .98rem;
	font-weight: 700;
	transform: rotate(-1.5deg);
}

/* Le globe : détouré, plus grand que sa colonne, il déborde sur le soleil. */
.media--hero {
	position: relative;
	justify-self: center;
	width: min(118%, 660px);
	margin: -40px -8% -60px 0;
	overflow: visible;
	border-radius: 0;
	background: none;
	box-shadow: none;
}
.media--hero img {
	width: 100%;
	height: auto;
	object-fit: contain;
	animation: arrive 1.4s var(--ease) both .15s;
}
@keyframes arrive { from { opacity: 0; transform: scale(.86) rotate(-8deg); } }

/* Le titre arrive ligne à ligne, comme on hisse un drapeau. */
.intro-copy h1 { animation: hisse 1s var(--ease) both; }
.intro-copy .lead { animation: monte .9s var(--ease) both .25s; }
.intro-copy .actions { animation: monte .9s var(--ease) both .4s; }
.intro-copy .intro-foot { animation: tampon .7s var(--spring) both .75s; }
@keyframes hisse { from { clip-path: inset(0 0 100% 0); transform: translateY(.4em); } to { clip-path: inset(0 0 -10% 0); } }
@keyframes tampon { from { opacity: 0; transform: rotate(-8deg) scale(1.3); } }

/* ---------------------------------------------------------------- En-tête de page */

.page-hero {
	position: relative;
	padding: 64px 0 84px;
	isolation: isolate;
	overflow: clip;
}
.page-hero::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: -260px;
	right: -200px;
	width: 520px;
	height: 520px;
	border-radius: 50%;
	background: var(--gold);
	opacity: .85;
}
.page-hero::after {
	content: "";
	position: absolute;
	z-index: -1;
	right: 4%;
	bottom: 20px;
	width: 210px;
	height: 130px;
	background: var(--pois);
	-webkit-mask-image: linear-gradient(200deg, #000 20%, transparent 85%);
	mask-image: linear-gradient(200deg, #000 20%, transparent 85%);
}

.breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
	margin-bottom: 26px;
	font-size: .92rem;
	color: var(--muted);
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--rot-ink); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 600; }

.page-hero h1 {
	max-width: 17ch;
	font-size: clamp(2.8rem, 6vw, 5.4rem);
	line-height: .92;
	letter-spacing: -.01em;
	animation: hisse 1s var(--ease) both;
}
.page-hero .lead { animation: monte .9s var(--ease) both .2s; }
.page-hero .actions { animation: monte .9s var(--ease) both .32s; }

.kicker {
	display: block;
	margin-bottom: 12px;
	font-size: 1rem;
	font-weight: 700;
	color: var(--rot-ink);
}

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

.section { padding: var(--section-y) 0; }

.section.soft { background: var(--soft); }

/* Les bandes rouges : le drapeau Rot un Wiss, texte blanc. */
.section.dark {
	background: var(--rot-fond);
	color: var(--on-red);
}
.section.dark h2,
.section.dark h3 { color: var(--paper); }
.section.dark .section-title p { color: var(--on-red-muted); }
.section.dark a:not(.btn) { color: var(--paper); }

.section-title { max-width: 780px; }
.section-title h2 {
	font-size: clamp(2.3rem, 4.6vw, 4rem);
	line-height: .95;
	letter-spacing: -.008em;
}
.section-title p {
	margin-top: 20px;
	font-size: 1.12rem;
	color: var(--muted);
	max-width: 58ch;
}

.section-title + .grid-2,
.section-title + .grid-3,
.section-title + .grid-4,
.section-title + .faq,
.section-title + .gallery,
.section-title + .compare-table,
.section-title + .stats-row,
.section-title + .filters,
.row-title + .grid-2,
.row-title + .grid-3,
.row-title + .grid-4 { margin-top: clamp(36px, 4vw, 56px); }

.row-title {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 40px;
}
.row-title > .text-link { margin-bottom: 6px; }

/* ---------------------------------------------------------------- Grilles et cartes */

.grid-2,
.grid-3,
.grid-4 {
	display: grid;
	gap: 28px;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Chaque carte est un petit drapeau Rot un Wiss : une bande rouge en haut,
   le blanc dessous. Celles qui ont une image sont portées par l’image. */
.card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
	padding: calc(var(--pad-card) + 8px) var(--pad-card) var(--pad-card);
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: none;
	color: var(--ink);
	text-decoration: none;
	overflow: clip;
	transition: transform .35s var(--spring), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 8px;
	background: var(--rot);
	transform-origin: 0 50%;
}
.card:has(> .card__media),
.card:has(> .post-thumb),
.post-card { padding: 0; border: 0; background: none; overflow: visible; }
.card:has(> .card__media)::before,
.card:has(> .post-thumb)::before,
.post-card::before { display: none; }
.card h3 {
	font-size: 1.55rem;
	font-weight: 800;
	font-stretch: 75%;
	line-height: 1.05;
}
.card p { max-width: 54ch; color: var(--muted); font-size: 1rem; }
.card > .text-link { margin-top: auto; padding-top: 8px; }

a.card:hover { color: var(--ink); transform: translateY(-6px); box-shadow: var(--shadow-2); border-color: transparent; }
a.card:has(> .card__media):hover,
a.card:has(> .post-thumb):hover { transform: none; box-shadow: none; }
a.card:hover h3 { color: var(--rot-ink); }
a.card h3 { transition: color .2s var(--ease); }

/* Carte cliquable : le lien de pied reste aligné en bas de la carte. */
.use-card { height: 100%; }
.use-card > .text-link { margin-top: auto; padding-top: 4px; }

/* Icône et titre côte à côte */
.card:has(> .icon-badge) {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	grid-template-rows: auto 1fr auto;
	align-content: start;
	column-gap: 16px;
	row-gap: 14px;
}
.card:has(> .icon-badge) > :not(.icon-badge):not(h3) { grid-column: 1 / -1; }
.card:has(> .icon-badge) > h3 { align-self: center; }
.card:has(> .icon-badge) > .text-link { align-self: end; }

.icon-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--soft);
	color: var(--rot-ink);
	transition: background-color .3s var(--ease), color .3s var(--ease);
}
.icon-badge .icon { width: 24px; height: 24px; }
a.card:hover .icon-badge { background: var(--rot); color: var(--paper); }

.tag,
.resource-kind {
	align-self: flex-start;
	font-size: .86rem;
	font-weight: 700;
	color: var(--rot-ink);
}
.tag {
	padding: 4px 12px;
	background: var(--soft);
	border-radius: 999px;
	color: var(--ink);
}
.card__tags { display: flex; flex-wrap: wrap; gap: 8px; }

.card > .card__media,
.card > .post-thumb {
	position: relative;
	margin: 0 0 8px;
	overflow: hidden;
	border-radius: var(--radius-l);
	background: var(--soft);
}
.card .card__media img,
.card .post-thumb img {
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	transition: transform .6s var(--ease);
}
a.card:hover .card__media img,
a.card:hover .post-thumb img { transform: scale(1.04); }
/* Les visuels qui sont des logos restent entiers, posés sur fond blanc. */
.card .card__media img[src*="logo" i],
.section.logos .card .card__media img {
	object-fit: contain;
	padding: 26px 30px;
	background: var(--paper);
}

/* Sur fond blanc, les logos gardent un cadre pour ne pas flotter. */
.section.logos:not(.soft):not(.dark) .card > .card__media { border: 1px solid var(--line); }

/* Étapes et chronologie : l’année en grand, en rouge. */
.step-card .number {
	font-size: clamp(2.8rem, 4vw, 3.8rem);
	font-weight: 800;
	font-stretch: 75%;
	line-height: .9;
	color: var(--rot);
	font-variant-numeric: tabular-nums;
}

.resource-card h3 { font-size: 1.2rem; }

.feature-card,
.feature-presentation { display: flex; flex-direction: column; gap: 12px; }
.feature-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: auto; }

.note {
	margin-top: 32px;
	max-width: 64ch;
	padding: 18px 24px;
	border-radius: var(--radius-s);
	background: var(--soft);
	border-left: 6px solid var(--gold);
	color: var(--ink);
}
.section.soft .note { background: var(--paper); }

/* Filtres */
.filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.filter {
	min-height: 44px;
	padding: 8px 18px;
	border: 2px solid var(--line);
	border-radius: 999px;
	background: var(--paper);
	font: inherit;
	font-size: .95rem;
	font-weight: 600;
	color: var(--ink);
	cursor: pointer;
	transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.filter:hover { border-color: var(--rot); }
.filter[aria-pressed="true"],
.filters .filter[aria-current="page"] { background: var(--rot); border-color: var(--rot); color: var(--paper); }
a.filter { display: inline-flex; align-items: center; text-decoration: none; }
.filter-count { margin: 18px 0 0; font-size: .94rem; color: var(--muted); }
.filter-count + .grid-2,
.filter-count + .grid-3,
.filter-count + .grid-4 { margin-top: 20px; }
.empty { margin-top: 24px; color: var(--muted); }

/* ---------------------------------------------------------------- Deux colonnes */

.split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(40px, 7vw, 104px);
}
.split.reverse > :first-child { order: 2; }
.split .text-link { margin-top: 28px; }
.split .section-title p + p { margin-top: 14px; }

.feature-list {
	display: grid;
	gap: 0;
	margin: 30px 0 0;
	padding: 0;
	list-style: none;
}
.feature-list li {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	column-gap: 18px;
	row-gap: 2px;
	padding: 18px 0;
	border-top: 1px solid var(--rule);
}
.feature-list .icon {
	grid-row: span 2;
	width: 26px;
	height: 26px;
	margin-top: 2px;
	color: var(--rot);
}
.feature-list strong { font-size: 1.08rem; font-weight: 700; }
.feature-list span { color: var(--muted); font-size: .99rem; }

.media { margin: 0; }
/* Chaque photo est posée sur un disque jaune, comme les pastilles de l’affiche. */
.media--split { position: relative; isolation: isolate; }
.media--split::before {
	content: "";
	position: absolute;
	z-index: -1;
	left: -9%;
	bottom: -11%;
	width: 52%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--gold);
}
.split.reverse .media--split::before { left: auto; right: -9%; }
.media--split img {
	width: 100%;
	max-height: 620px;
	object-fit: cover;
	border-radius: var(--radius-l);
	box-shadow: var(--shadow-2);
}
/* Les visuels détourés (téléphone, affiche) restent entiers, sans cadre. */
.media--split img[src*="visu_alsacefanday"],
.media--split img[src*="/Bretzel"],
.media--split img[src*="ffiche" i] { object-fit: contain; box-shadow: none; border-radius: 0; max-height: 640px; }
.media--split:has(img[src*="visu_alsacefanday"])::before { width: 78%; left: 11%; bottom: 8%; }
.section.dark .media--split::before { background: var(--paper); opacity: .14; }

/* ---------------------------------------------------------------- Appels à l’action */

/* La nappe : le dernier appel à l’action est rouge, bordé d’un ruban de
   Kelsch, et se fond dans le pied de page. */
.section:has(> .container > .wide-cta) {
	position: relative;
	padding: 148px 0 112px;
	background: var(--rot-fond);
	color: var(--on-red);
	isolation: isolate;
	overflow: hidden;
}
.section:has(> .container > .wide-cta)::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 34px;
	background: var(--kelsch);
	animation: nappe 14s linear infinite;
}
@keyframes nappe { to { background-position: 220px 0, 220px 0, 0 0; } }
/* Des cœurs blancs qui montent doucement, comme des confettis de fête. */
.section:has(> .container > .wide-cta)::after {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 34px 0 0;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='560' height='520' viewBox='0 0 560 520'%3E%3Cg fill='%23fff'%3E%3Cpath transform='translate(60 80) scale(.9)' fill-opacity='.22' d='M0 8C-14-2-12-16-3-14-1-13.5 0-12 0-10 0-12 1-13.5 3-14 12-16 14-2 0 8Z'/%3E%3Cpath transform='translate(420 40) scale(.6)' fill-opacity='.18' d='M0 8C-14-2-12-16-3-14-1-13.5 0-12 0-10 0-12 1-13.5 3-14 12-16 14-2 0 8Z'/%3E%3Cpath transform='translate(250 210) scale(1.4)' fill-opacity='.12' d='M0 8C-14-2-12-16-3-14-1-13.5 0-12 0-10 0-12 1-13.5 3-14 12-16 14-2 0 8Z'/%3E%3Cpath transform='translate(500 300) scale(.8)' fill-opacity='.2' d='M0 8C-14-2-12-16-3-14-1-13.5 0-12 0-10 0-12 1-13.5 3-14 12-16 14-2 0 8Z'/%3E%3Cpath transform='translate(120 400) scale(.5)' fill-opacity='.25' d='M0 8C-14-2-12-16-3-14-1-13.5 0-12 0-10 0-12 1-13.5 3-14 12-16 14-2 0 8Z'/%3E%3Cpath transform='translate(360 470) scale(1)' fill-opacity='.14' d='M0 8C-14-2-12-16-3-14-1-13.5 0-12 0-10 0-12 1-13.5 3-14 12-16 14-2 0 8Z'/%3E%3C/g%3E%3C/svg%3E");
	background-size: 560px 520px;
	animation: confettis 30s linear infinite;
}
@keyframes confettis { to { background-position: 0 -520px; } }

.wide-cta {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: end;
	gap: 44px 64px;
	padding: 0;
	border-radius: 0;
	background: none;
	color: var(--on-red);
}
/* Les titres coupés à la main (<br>) gardent leurs lignes : pas d’équilibrage. */
.page-hero h1:has(br),
.wide-cta h2:has(br) { text-wrap: pretty; }
.wide-cta h2 {
	max-width: 20ch;
	font-size: clamp(2.8rem, 6vw, 5.6rem);
	line-height: .92;
	color: var(--paper);
}
.wide-cta p { margin-top: 26px; max-width: 54ch; font-size: 1.15rem; color: var(--on-red-muted); }
.wide-cta .kicker { color: var(--paper); }
.wide-cta .actions { margin-top: 0; justify-content: flex-start; }
.wide-cta .btn-primary { position: relative; background: var(--paper); border-color: var(--paper); color: var(--rot-ink); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .5); }
.wide-cta .btn-primary:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.wide-cta .btn-light { background: transparent; color: var(--paper); border-color: rgba(255, 255, 255, .7); }
.wide-cta .btn-light:hover { background: var(--paper); color: var(--rot-ink); border-color: var(--paper); }
.wide-cta a:focus-visible { outline-color: var(--paper); }
.wide-cta .btn-secondary { background: transparent; color: var(--paper); border-color: var(--paper); }
/* Le bouton principal bat comme un cœur. */
.wide-cta .btn-primary::after {
	content: "";
	position: absolute;
	inset: -2px;
	border: 2px solid var(--paper);
	border-radius: inherit;
	pointer-events: none;
	animation: pouls 2.6s cubic-bezier(.2, .6, .3, 1) infinite;
}
@keyframes pouls {
	0% { transform: scale(1); opacity: .9; }
	70%, 100% { transform: scale(1.16, 1.5); opacity: 0; }
}

.cta-inline {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 40px;
	padding: var(--pad-l);
	padding-top: calc(var(--pad-l) + 8px);
	border-radius: var(--radius-l);
	background: var(--paper);
	border: 1px solid var(--line);
	overflow: clip;
}
.cta-inline::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 12px;
	background: var(--kelsch);
}
.cta-inline h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1; }
.cta-inline p { margin-top: 10px; color: var(--muted); max-width: 56ch; }

/* Quand la page se termine par un appel court, il passe lui aussi au rouge. */
main > .section:last-child:has(> .container > .cta-inline) {
	padding: 120px 0 96px;
	background: var(--rot-fond);
	position: relative;
	overflow: hidden;
}
main > .section:last-child:has(> .container > .cta-inline)::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 34px;
	background: var(--kelsch);
	animation: nappe 14s linear infinite;
}
main > .section:last-child > .container > .cta-inline {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	overflow: visible;
}
main > .section:last-child > .container > .cta-inline::before { display: none; }
main > .section:last-child > .container > .cta-inline h2 { font-size: clamp(2.4rem, 4.6vw, 4rem); color: var(--paper); }
main > .section:last-child > .container > .cta-inline p { color: var(--on-red-muted); font-size: 1.1rem; }
main > .section:last-child > .container > .cta-inline .btn-primary { background: var(--paper); border-color: var(--paper); color: var(--rot-ink); }
main > .section:last-child > .container > .cta-inline .btn-primary:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
main > .section:last-child > .container > .cta-inline a:focus-visible { outline-color: var(--paper); }

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

.faq { max-width: 880px; }
.faq details { border-bottom: 2px solid var(--line); }
.faq details:first-child { border-top: 2px solid var(--line); }
.faq summary {
	position: relative;
	display: block;
	padding: 24px 60px 24px 0;
	font-size: 1.18rem;
	font-weight: 700;
	line-height: 1.4;
	cursor: pointer;
	list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
	content: "";
	position: absolute;
	right: 4px;
	top: 50%;
	width: 36px;
	height: 36px;
	margin-top: -18px;
	border-radius: 50%;
	background:
		linear-gradient(var(--paper), var(--paper)) center / 14px 2px no-repeat,
		linear-gradient(var(--paper), var(--paper)) center / 2px 14px no-repeat,
		var(--rot);
	transition: transform .35s var(--spring), background-color .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq summary:hover { color: var(--rot-ink); }
.faq details p {
	max-width: 62ch;
	padding: 0 60px 26px 0;
	color: var(--muted);
}
.section.soft .faq details,
.section.soft .faq details:first-child { border-color: rgba(29, 29, 27, .12); }

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

.compare-table {
	overflow-x: auto;
	padding: 8px;
	border-radius: var(--radius);
	background: var(--paper);
	box-shadow: var(--shadow-1);
}
.compare-table table {
	width: 100%;
	min-width: 560px;
	border-collapse: collapse;
	font-size: 1rem;
}
.compare-table caption {
	padding: 18px 24px 18px;
	text-align: left;
	font-size: .9rem;
	color: var(--muted);
	caption-side: bottom;
}
.compare-table th,
.compare-table td {
	padding: 16px 24px;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var(--line);
}
.compare-table thead th { background: var(--soft); font-weight: 700; }
.compare-table tbody th { font-weight: 700; width: 24%; }
.compare-table td { color: var(--muted); }
.compare-table tbody tr:last-child > * { border-bottom: 0; }

/* ---------------------------------------------------------------- Chiffres, logos, citations */

.stats-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 24px;
}
.stat strong { display: block; font-size: clamp(2.6rem, 4.6vw, 3.8rem); font-weight: 800; font-stretch: 75%; line-height: .9; color: var(--rot); }
.stat span { display: block; margin-top: 10px; font-weight: 700; }
.stat p { margin-top: 6px; color: var(--muted); }

.logo-band .section-title { margin-bottom: 28px; }
.logo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; }
.logo-row img { max-height: 56px; width: auto; }

.quote-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.quote-row.single { grid-template-columns: minmax(0, 760px); }
.quote { margin: 0; padding: 32px; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.quote blockquote { margin: 0; font-size: 1.2rem; line-height: 1.5; }
.quote figcaption { margin-top: 18px; display: grid; gap: 2px; }
.quote figcaption span { color: var(--muted); font-size: .95rem; }

/* ---------------------------------------------------------------- Galerie */

.gallery { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.gallery.gallery-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery__item { margin: 0; }
.gallery .gallery__item img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--radius);
	background: var(--soft);
}
.gallery__item figcaption { margin-top: 12px; font-size: .95rem; font-weight: 600; color: var(--muted); }

/* Le mur d’affiches : une affiche par édition, punaisée un peu de travers.
   Au survol, elle se redresse et s’avance. */
.section.affiches .gallery { gap: clamp(22px, 3.4vw, 44px) clamp(18px, 3vw, 40px); }
.section.affiches .gallery__item {
	position: relative;
	transform: rotate(var(--r, -1.6deg));
	transition: transform .5s var(--spring);
}
.section.affiches .gallery__item:nth-child(3n+2) { --r: 1.4deg; }
.section.affiches .gallery__item:nth-child(3n) { --r: -.6deg; }
.section.affiches .gallery__item:nth-child(4n) { --r: 2deg; }
.section.affiches .gallery__item:hover { transform: rotate(0) translateY(-8px) scale(1.03); z-index: 2; }
.section.affiches .gallery .gallery__item img {
	aspect-ratio: 555 / 774;
	object-fit: cover;
	border-radius: 6px;
	box-shadow: 0 2px 4px rgba(29, 29, 27, .12), 0 24px 40px -22px rgba(29, 29, 27, .55);
}
/* la punaise */
.section.affiches .gallery__item::before {
	content: "";
	position: absolute;
	z-index: 2;
	top: -9px;
	left: 50%;
	width: 18px;
	height: 18px;
	margin-left: -9px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 35%, #ff6b6b, var(--rot) 55%, var(--rot-deep));
	box-shadow: 0 3px 5px rgba(0, 0, 0, .3);
}
.section.affiches .gallery__item figcaption { margin-top: 16px; font-size: 1rem; font-weight: 700; color: var(--ink); }

/* ---------------------------------------------------------------- Vidéo, tarifs */

.video-heading { margin-bottom: 32px; }
.video-frame { width: 100%; border-radius: var(--radius-l); background: var(--ink); }
.video-caption { margin-top: 12px; font-size: .92rem; color: var(--muted); }

.pricing-three { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.pricing-card { display: flex; flex-direction: column; gap: 14px; padding: 32px; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.pricing-card.featured { box-shadow: 0 0 0 2px var(--rot), var(--shadow-2); }
.price strong { font-size: 2rem; font-weight: 800; }
.unit { margin-left: 6px; color: var(--muted); font-size: .95rem; }
.plan-desc { color: var(--muted); }
.plan-features { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.plan-features li { display: flex; gap: 10px; }
.plan-features .icon { color: var(--rot); }
.pricing-card .btn { margin-top: auto; }

/* ---------------------------------------------------------------- Contenu long */

.article-title {
	max-width: 30ch;
	font-size: clamp(2rem, 3.6vw, 3rem);
	line-height: 1;
	margin-bottom: 28px;
}
.section > .container > .article-body { max-width: 66ch; }
.article-body { font-size: 1.08rem; line-height: 1.75; }
.article-body > * + * { margin-top: 1.1em; }
.article-body > h3 {
	margin-top: 2em;
	font-size: 1.7rem;
	line-height: 1.05;
}
.article-body > h3 + p,
.article-body > h3 + ul { margin-top: .7em; }
.article-body > ul,
.article-body > ol { padding-left: 1.3em; }
.article-body > ul > li + li,
.article-body > ol > li + li { margin-top: .5em; }
.article-body > ul > li::marker,
.article-body > ol > li::marker { color: var(--rot); font-weight: 700; }
.article-body > p a,
.article-body > ul a,
.article-body > ol a { font-weight: 600; }

/* La revue de presse : une liste de coupures, la date en tête. */
.section.presse .article-body { max-width: 78ch; }
.section.presse .article-body > ul { padding: 0; list-style: none; }
.section.presse .article-body > ul > li {
	display: grid;
	grid-template-columns: 8.5em minmax(0, 1fr);
	gap: 4px 20px;
	margin: 0;
	padding: 14px 0;
	border-top: 1px solid var(--line);
}
.section.presse .article-body > ul > li > strong { font-variant-numeric: tabular-nums; color: var(--rot-ink); }
.section.presse .article-body > ul a { color: var(--ink); font-weight: 600; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.section.presse .article-body > ul a:hover { color: var(--rot-ink); text-decoration-color: var(--rot); }
.section.presse .article-body > h3 { padding-top: .2em; font-size: 2.6rem; color: var(--rot); }
@media (max-width: 720px) {
	.section.presse .article-body > ul > li { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------------------------------------------------------- Formulaires */

.jolifish-form { max-width: 880px; }
.jolifish-form .section-title { margin-bottom: 32px; }
.jolifish-form-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px 24px;
}
.jolifish-form-group { display: grid; gap: 8px; min-width: 0; }
.jolifish-form-group:has(textarea),
.jolifish-form-group:has(select),
.jolifish-form-group:has(button),
.jolifish-form-group:only-child { grid-column: 1 / -1; }
.jolifish-form-group label,
.jolifish-form-option label { font-weight: 700; font-size: .96rem; }

.jolifish-form input,
.jolifish-form select,
.jolifish-form textarea,
.nf-form-cont input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.nf-form-cont select,
.nf-form-cont textarea {
	width: 100%;
	min-height: 52px;
	padding: 12px 16px;
	border: 2px solid var(--line);
	border-radius: var(--radius-s);
	background: var(--paper);
	font: inherit;
	font-size: 1rem;
	color: var(--ink);
	transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.jolifish-form textarea,
.nf-form-cont textarea { min-height: 170px; resize: vertical; }
.jolifish-form input:focus,
.jolifish-form select:focus,
.jolifish-form textarea:focus,
.nf-form-cont input:focus,
.nf-form-cont select:focus,
.nf-form-cont textarea:focus {
	outline: none;
	border-color: var(--rot);
	box-shadow: 0 0 0 4px rgba(227, 6, 19, .15);
}
.jolifish-form .btn,
.nf-form-cont input[type="submit"] { justify-self: start; }
.nf-form-cont input[type="submit"] {
	min-height: 50px;
	padding: .8em 1.6em;
	border: 0;
	border-radius: 999px;
	background: var(--rot);
	font: inherit;
	font-weight: 700;
	color: var(--paper);
	cursor: pointer;
}
.nf-form-cont .nf-field-container { margin-bottom: 20px; }
.nf-form-cont .nf-field-label label { font-weight: 700; font-size: .96rem; }
.nf-form-cont .nf-error-msg,
.jolifish-form-error,
.notice-error { color: #b42318; font-size: .92rem; }
.nf-loading-spinner { min-height: 40px; }
.jolifish-form-consent { margin-top: 20px; font-size: .9rem; color: var(--muted); max-width: 64ch; }
.jolifish-form-done,
.notice-success { padding: 16px 20px; border-radius: var(--radius-s); background: var(--soft); border-left: 6px solid var(--gold); }
.notice-warning { padding: 16px 20px; border-radius: var(--radius-s); background: #fff4e5; }
.jolifish-form-trap { position: absolute; left: -9999px; }
.ninja-forms-noscript-message { color: var(--muted); }

.section .nf-form-cont { max-width: 880px; padding: 40px; border-radius: var(--radius-l); background: var(--paper); box-shadow: var(--shadow-1); }
.section .nf-form-cont .nf-field-container .nf-field-label label,
.section .nf-form-cont .nf-field-container .nf-field-label .nf-label-span { font-size: .96rem; font-weight: 700; color: var(--ink); }
.section .nf-form-cont .nf-field-container .nf-field-element input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
.section .nf-form-cont .nf-field-container .nf-field-element select,
.section .nf-form-cont .nf-field-container .nf-field-element textarea {
	min-height: 52px;
	border: 2px solid var(--line);
	border-radius: var(--radius-s);
	background: var(--paper);
	font-size: 1rem;
}
.section .nf-form-cont .nf-field-container .nf-field-element textarea { min-height: 180px; }
.section .nf-form-cont .nf-field-container .nf-field-element input[type="submit"],
.section .nf-form-cont .nf-field-container .nf-field-element input[type="button"],
.section .nf-form-cont .nf-field-container .nf-field-element input.btn.btn-primary {
	min-height: 52px;
	padding: .8em 1.8em;
	border: 0;
	border-radius: 999px;
	background: var(--rot);
	background-image: none;
	box-shadow: none;
	font-size: 1rem;
	font-weight: 700;
	color: var(--paper);
	cursor: pointer;
	transition: background-color .2s var(--ease);
}
.section .nf-form-cont .nf-field-container .nf-field-element input[type="submit"]:hover,
.section .nf-form-cont .nf-field-container .nf-field-element input.btn.btn-primary:hover { background: var(--rot-deep); color: var(--paper); }
.section .nf-form-cont .nf-form-fields-required { font-size: .86rem; color: var(--muted); }

/* Le formulaire maison : posé dans un panneau blanc, la nappe en lisière. */
.section form.jolifish-form,
.section .jolifish-form:has(form) {
	position: relative;
	padding: 48px 40px 40px;
	border-radius: var(--radius-l);
	background: var(--paper);
	box-shadow: var(--shadow-1);
	overflow: clip;
}
.section form.jolifish-form::before,
.section .jolifish-form:has(form)::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 12px;
	background: var(--kelsch);
}

@media (min-width: 941px) {
	.container:has(> .nf-form-cont),
	.container:has(> .jolifish-form) {
		display: grid;
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		column-gap: 56px;
		align-items: start;
	}
	.container:has(> .nf-form-cont) > *,
	.container:has(> .jolifish-form) > * { grid-column: 2; }
	.container:has(> .nf-form-cont) > .section-title,
	.container:has(> .jolifish-form) > .section-title { grid-column: 1; grid-row: 1 / span 6; position: sticky; top: 120px; }
}
@media (max-width: 720px) {
	.section .nf-form-cont,
	.section form.jolifish-form { padding: 32px 22px 24px; }
}

/* ---------------------------------------------------------------- Blog (liste du thème) */

.post-card { display: flex; flex-direction: column; gap: 12px; }
.post-thumb { overflow: hidden; border-radius: var(--radius-l); background: var(--soft); }
.post-cover { margin-bottom: 40px; }
.post-cover img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-l); box-shadow: var(--shadow-1); }
.card .post-meta { margin: -4px 0 0; font-size: .9rem; color: var(--muted); }
main nav:has(.page-numbers) { margin-top: 56px; }
main nav:has(.page-numbers) > div { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 46px;
	height: 46px;
	padding: 0 14px;
	border: 2px solid var(--line);
	border-radius: 999px;
	background: var(--paper);
	color: var(--ink);
	text-decoration: none;
	font-weight: 700;
}
a.page-numbers:hover { border-color: var(--rot); color: var(--ink); }
main .page-numbers[aria-current] { background: var(--rot); border-color: var(--rot); color: var(--paper); }
.section .container > .filters + .grid-2,
.section .container > .filters + .grid-3,
.section .container > .filters + .grid-4 { margin-top: 40px; }
/* Un article sans image reçoit un carré de Kelsch plutôt qu’un vide. */
.post-card:not(:has(> .post-thumb))::before {
	content: "";
	display: block;
	aspect-ratio: 3 / 2;
	margin: 0 0 10px;
	border-radius: var(--radius-l);
	background: var(--kelsch);
	background-size: 44px 44px, 44px 44px, auto;
}

/* ---------------------------------------------------------------- Article seul */

.single-post .page-hero .container > *,
.single-post main > .section:has(> .container > .article-body) > .container { max-width: calc(820px + 2 * var(--gutter)); margin-left: auto; margin-right: auto; }
.single-post .page-hero .container > * { max-width: 820px; }
.single-post .page-hero { padding-bottom: 40px; }
.single-post .page-hero h1 { max-width: none; font-size: clamp(2.3rem, 4.6vw, 3.8rem); }
.single-post .page-hero a.kicker { display: inline-block; margin-bottom: 14px; text-decoration: none; }
.page-hero .post-meta { margin-top: 18px; font-size: .94rem; color: var(--muted); }

.single-post main > .section:has(.post-cover),
.single-post main > .section:has(> .container > .article-body) { padding-top: 0; }
.single-post .post-cover { max-width: none; margin: 0 0 48px; }
.single-post main > .section > .container > .article-body { max-width: none; }
.single-post .article-body > .section { margin-top: 56px; padding: 0; background: none; }
.single-post .article-body > .section:first-child { margin-top: 0; }
.single-post .article-body > .section > .container { max-width: none; padding: 0; }
.single-post .article-body .split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
.single-post .article-body .grid-2,
.single-post .article-body .grid-3,
.single-post .article-body .grid-4 { gap: 16px; }

.post-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 56px;
	padding-top: 28px;
	border-top: 2px solid var(--line);
}
.post-share > span { margin-right: 6px; font-size: .94rem; color: var(--muted); }
.post-share a {
	display: inline-flex;
	align-items: center;
	min-height: 42px;
	padding: 6px 16px;
	border: 2px solid var(--line);
	border-radius: 999px;
	background: var(--paper);
	font-size: .94rem;
	font-weight: 700;
	color: var(--ink);
	text-decoration: none;
}
.post-share a:hover { border-color: var(--rot); }

/* ---------------------------------------------------------------- Pied de page */

.site-footer {
	margin-top: 0;
	padding: 88px 0 32px;
	background: var(--night);
	font-size: .98rem;
	color: var(--on-red-muted);
}
.site-footer .brand-logo { height: 60px; filter: brightness(0) invert(1); }
.site-footer .brand { color: var(--paper); }

.footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
	gap: 40px;
}
.footer-brand p { margin-top: 20px; max-width: 30ch; font-size: 1.05rem; font-weight: 600; font-style: italic; color: var(--paper); }
.footer-brand > a:not(.brand) {
	display: inline-block;
	margin-top: 18px;
	font-weight: 700;
	color: var(--paper);
}
.footer-col { display: grid; align-content: start; gap: 10px; }
.site-footer .footer-col h3 { margin: 0 0 6px; font-size: 1.3rem; color: var(--paper); }
.footer-col a { margin-top: 0; font-size: .98rem; color: var(--on-red-muted); text-decoration: none; }
.footer-col a:hover { color: var(--paper); text-decoration: underline; text-decoration-color: var(--gold); }

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 32px;
	margin-top: 56px;
	padding-top: 24px;
	border-top: 1px solid var(--rule-red);
	font-size: .92rem;
	color: var(--on-red-muted);
}
.footer-bottom div { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-bottom a { color: var(--on-red-muted); }
.footer-bottom a:hover { color: var(--paper); }
.site-footer a:focus-visible { outline-color: var(--paper); }

/* ---------------------------------------------------------------- Fenêtre (carte des événements) */

.demo-booking-modal {
	width: min(1040px, calc(100vw - 32px));
	max-height: calc(100vh - 48px);
	padding: 0;
	border: 0;
	border-radius: var(--radius-l);
	box-shadow: var(--shadow-2);
	overflow: hidden;
}
.demo-booking-modal::backdrop { background: rgba(29, 29, 27, .6); }
.demo-booking-modal[open] { animation: monte .45s var(--ease); }
.demo-booking-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 24px;
	border-bottom: 1px solid var(--line);
	border-top: 8px solid var(--rot);
}
.demo-booking-head h2 { font-size: 1.6rem; }
.demo-booking-close {
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: var(--soft);
	font-size: 1.5rem;
	line-height: 1;
	color: var(--ink);
	cursor: pointer;
}
.demo-booking-frame { display: block; width: 100%; height: min(72vh, 760px); border: 0; }
.demo-booking-footer { padding: 14px 24px; font-size: .94rem; border-top: 1px solid var(--line); }

/* ---------------------------------------------------------------- Mise en page fine */

/* Sous l’en-tête de page, une section sur le même fond démarre sans double marge. */
.page-hero + .section:not(.soft):not(.dark) { padding-top: 16px; }
.home-intro + .section:not(.soft):not(.dark) { padding-top: 24px; }

/* Deux sections blanches qui se suivent ne cumulent pas leurs marges. */
.section:not(.soft):not(.dark) + .section:not(.soft):not(.dark):not(:has(> .container > .wide-cta)):not(:last-child:has(> .container > .cta-inline)) { padding-top: 0; }

/* Titres dans une demi-colonne : un cran plus petits. */
.split .section-title h2 { font-size: clamp(2.2rem, 3.8vw, 3.4rem); }

/* Questions fréquentes : le titre à gauche, les réponses à droite. */
@media (min-width: 941px) {
	.container:has(> .faq) {
		display: grid;
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		align-items: start;
		gap: 56px;
	}
	.container:has(> .faq) > .section-title { position: sticky; top: 120px; }
	.container:has(> .faq) > .section-title h2 { font-size: clamp(2.3rem, 3.8vw, 3.4rem); }
	.container:has(> .faq) > .faq { margin-top: 0; max-width: none; }
}

/* La bande rouge : texte blanc, filets clairs. */
.section.dark .feature-list li { border-color: var(--rule-red); }
.section.dark .feature-list strong { color: var(--paper); }
.section.dark .feature-list span { color: var(--on-red-muted); }
.section.dark .feature-list .icon { color: var(--gold); }
.section.dark .text-link { color: var(--paper); text-decoration-color: var(--gold); }
.section.dark .card { border-color: transparent; }
.section.dark .card::before { background: var(--gold); }
.section.dark .faq details,
.section.dark .faq details:first-child { border-color: var(--rule-red); }
.section.dark .faq summary::after { background-color: var(--paper); background-image: linear-gradient(var(--rot), var(--rot)), linear-gradient(var(--rot), var(--rot)); }
.section.dark .faq details p { color: var(--on-red-muted); }
.section.dark .btn-primary { background: var(--paper); border-color: var(--paper); color: var(--rot-ink); }

/* ---------------------------------------------------------------- Mouvement */

/* Le thème fait apparaître chaque section (est-visible) et numérote les
   enfants des grilles (--i). Tout part d’un état visible : sans le script,
   rien ne reste caché. */

/* 1. Les grands titres montent, comme un drapeau qu’on hisse. */
.section.est-visible .section-title h2,
.section.est-visible .wide-cta h2,
.section.est-visible .cta-inline h2 { animation: hisse 1s var(--ease) backwards; }

/* 2. Les cartes arrivent l’une après l’autre ; leur bande rouge se déroule. */
.section.est-visible :is(.grid-2, .grid-3, .grid-4) > * {
	animation: monte .8s var(--ease) backwards;
	animation-delay: calc(var(--i, 0) * 100ms + 150ms);
}
.section.est-visible .card::before {
	animation: deroule .9s var(--ease) backwards;
	animation-delay: calc(var(--i, 0) * 100ms + 350ms);
}
@keyframes monte { from { opacity: 0; transform: translateY(26px); } }
@keyframes deroule { from { transform: scaleX(0); } }

/* 3. Lever de rideau : un rideau rouge découvre chaque photo. */
.card > .card__media::after,
.card > .post-thumb::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--rot);
	transform: scaleY(0);
	transform-origin: 50% 0;
	pointer-events: none;
}
.section.est-visible .card > .card__media::after,
.section.est-visible .card > .post-thumb::after {
	animation: rideau 1.1s var(--ease) backwards;
	animation-delay: calc(var(--i, 0) * 120ms + 100ms);
}
@keyframes rideau { 0% { transform: scaleY(1); } 100% { transform: scaleY(0); } }
.section.est-visible .media--split img { animation: devoile 1.2s var(--ease) backwards .1s; }
.section.est-visible .media--split::before { animation: pastille 1s var(--spring) backwards .45s; }
@keyframes devoile { from { clip-path: inset(0 0 100% 0 round var(--radius-l)); } to { clip-path: inset(0 round var(--radius-l)); } }
@keyframes pastille { from { transform: scale(0); } }

/* 4. Les affiches sont punaisées une à une. */
.section.est-visible.affiches .gallery__item {
	animation: punaise .8s var(--spring) backwards;
	animation-delay: calc(var(--i, 0) * 90ms + 100ms);
}
@keyframes punaise { from { opacity: 0; transform: translateY(-40px) rotate(-9deg) scale(1.08); } }
.section.est-visible:not(.affiches) .gallery__item img { animation: devoile 1.1s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 110ms + 100ms); }

/* 5. Le globe s’éloigne doucement quand on quitte l’accueil. */
@supports (animation-timeline: scroll()) {
	.media--hero {
		animation: eloigne linear both;
		animation-timeline: scroll(root);
		animation-range: 0 85vh;
	}
}
@keyframes eloigne { to { transform: translateY(-14%) scale(.9); opacity: .35; } }

/* 6. Les réponses s’ouvrent en glissant. */
.faq details[open] > :not(summary) { animation: ouvre .45s var(--ease); }
@keyframes ouvre { from { opacity: 0; transform: translateY(-8px); } }

/* 7. Vrai ou faux : les idées reçues deviennent des cartes qu’on retourne. */
.section.quiz .container:has(> .faq) { display: block; }
.section.quiz .container > .section-title { position: static; max-width: 780px; }
.section.quiz .container > .faq {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 20px;
	max-width: none;
	margin-top: 48px;
	perspective: 1200px;
}
.section.quiz .faq details,
.section.quiz .faq details:first-child {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 240px;
	padding: 28px 28px 24px;
	border: 2px solid var(--rule-red);
	border-radius: var(--radius-l);
	background: rgba(255, 255, 255, .06);
	transition: border-color .3s var(--ease), background-color .3s var(--ease), transform .35s var(--spring);
}
.section.quiz .faq > details { grid-column: span 2; }
.section.quiz .faq:has(> details:nth-child(4):last-child) > details,
.section.quiz .faq > details:nth-child(4):nth-last-child(2),
.section.quiz .faq > details:nth-child(5):last-child { grid-column: span 3; }
.section.quiz .faq details:hover { border-color: var(--paper); transform: translateY(-4px) rotate(-.6deg); }
.section.quiz .faq summary {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 28px;
	padding: 0;
	font-size: 1.45rem;
	font-weight: 800;
	font-stretch: 75%;
	line-height: 1.15;
	color: var(--paper);
}
.section.quiz .faq summary:hover { color: var(--paper); }
.section.quiz .faq summary::after {
	position: static;
	align-self: flex-end;
	width: 48px;
	height: 48px;
	margin: 0;
	background:
		linear-gradient(var(--ink), var(--ink)) center / 16px 2.4px no-repeat,
		linear-gradient(var(--ink), var(--ink)) center / 2.4px 16px no-repeat,
		var(--gold);
}
.section.quiz .faq details[open] {
	border-color: var(--gold);
	background: var(--paper);
	animation: retourne .7s var(--ease);
}
.section.quiz .faq details[open] summary { flex: 0; gap: 16px; font-size: 1.05rem; font-weight: 700; font-stretch: 100%; color: var(--muted); padding-right: 52px; }
.section.quiz .faq details[open] summary::after { position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; }
.section.quiz .faq details p {
	max-width: none;
	margin-top: 16px;
	padding: 0;
	font-size: 1.05rem;
	line-height: 1.55;
	color: var(--ink);
}
.section.quiz .faq details p strong {
	display: block;
	margin-bottom: 8px;
	font-size: 2.8rem;
	font-weight: 800;
	font-stretch: 75%;
	line-height: .9;
	color: var(--rot);
}
@keyframes retourne {
	from { transform: rotateY(-180deg); opacity: .4; }
	55% { opacity: 1; }
	to { transform: rotateY(0); }
}
.section.quiz .faq details[open] > :not(summary) { animation: ouvre .5s var(--ease) .25s backwards; }
@media (max-width: 720px) {
	.section.quiz .container > .faq { grid-template-columns: minmax(0, 1fr); }
	.section.quiz .faq > details { grid-column: auto !important; min-height: 0; }
}

/* 8. Changer de page, c’est tourner une page du programme : l’en-tête reste,
   l’ancienne page s’efface vers le haut, la nouvelle remonte. */
@view-transition { navigation: auto; }
.site-header { view-transition-name: entete; }
::view-transition-old(root) { animation: .32s cubic-bezier(.4, 0, 1, 1) both page-part; }
::view-transition-new(root) { animation: .6s var(--ease) .06s both page-arrive; }
@keyframes page-part { to { opacity: 0; transform: translateY(-24px); } }
@keyframes page-arrive { from { opacity: 0; transform: translateY(40px); } }

/* 9. Dans les zones rouges, le pointeur devient un bretzel. Les liens et
   les boutons gardent la main habituelle. */
.section.dark,
.section:has(> .container > .wide-cta),
main > .section:last-child:has(> .container > .cta-inline),
.site-footer { cursor: var(--bretzel) 16 16, auto; }
.section.dark :is(a, button, summary),
.site-footer a,
.wide-cta a,
.cta-inline a { cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	@view-transition { navigation: none; }
	/* Le globe est une image animée : sans mouvement, on le retire (le texte
	   dit la même chose). */
	.media--hero:has(> img[src$="avif"]) { display: none; }
	.intro-grid { grid-template-columns: minmax(0, 1fr); }
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
}

/* ---------------------------------------------------------------- Paliers */

@media (max-width: 1160px) {
	:root { --section-y: 104px; }
	.main-nav { gap: 0; }
	.nav-link,
	.nav-group > summary { padding-left: 10px; padding-right: 10px; }
	.header-account { display: none; }
	.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 940px) {
	:root { --gutter: 32px; --section-y: 96px; }
	.home-intro { padding: 40px 0 72px; }
	.page-hero { padding: 48px 0 56px; }
	.nav-toggle { display: inline-flex; }
	.header-actions { margin-left: auto; }
	.site-header .main-nav {
		position: absolute;
		top: calc(100% + 10px);
		left: 0;
		right: 0;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
		max-height: calc(100vh - 120px);
		overflow-y: auto;
		padding: 12px;
		background: var(--paper);
		border-radius: var(--radius);
		border-top: 6px solid var(--rot);
		box-shadow: var(--shadow-2);
		font-size: 1rem;
	}
	.nav-open .site-header .main-nav { display: flex; animation: deplie-mobile .35s var(--ease); }
	@keyframes deplie-mobile { from { opacity: 0; transform: translateY(-8px); } }
	.site-header .nav-toggle { display: inline-flex; padding: 0; border: 0; }
	.nav-link,
	.nav-group > summary {
		justify-content: space-between;
		width: 100%;
		padding: 12px 14px;
		border-radius: var(--radius-s);
		font-size: 1.02rem;
	}
	.nav-dropdown {
		position: static;
		width: auto;
		padding: 4px 0 8px 8px;
		box-shadow: none;
		border-top: 0;
		transform: none;
	}
	.nav-group[open] > .nav-dropdown { animation: none; }
	.mobile-only { display: flex; }

	.intro-grid { grid-template-columns: minmax(0, 1fr); }
	.media--hero { order: -1; width: min(78%, 440px); margin: -10px auto -36px; }
	.home-intro::before { top: -60vw; right: -40vw; width: 110vw; height: 110vw; }
	.split { grid-template-columns: minmax(0, 1fr); }
	.split.reverse > :first-child { order: 0; }
	.grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gallery.gallery-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wide-cta { grid-template-columns: minmax(0, 1fr); }
	.wide-cta .actions { justify-content: flex-start; }
}

@media (max-width: 720px) {
	:root { --gutter: 24px; --section-y: 80px; --pad-card: 26px; --pad-l: 32px; }
	.site-footer { padding: 64px 0 28px; }
	body { font-size: 1rem; }
	.page-hero::before { width: 320px; height: 320px; top: -170px; right: -150px; }
	.page-hero::after { display: none; }
	.home-intro::after { display: none; }
	.section:has(> .container > .wide-cta) { padding: 112px 0 80px; }
	.grid-2,
	.grid-3,
	.grid-4 { grid-template-columns: minmax(0, 1fr); gap: 22px; }
	.jolifish-form-row { grid-template-columns: minmax(0, 1fr); }
	.footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.faq summary { font-size: 1.05rem; }
	.faq details p { padding-right: 0; }
	.section.logos .grid-4,
	.section.logos .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.section.logos .card h3 { font-size: 1.2rem; }
	.section.logos .card p { display: none; }
	.media--split::before { left: -4%; }
	.split.reverse .media--split::before { right: -4%; }
}

@media (max-width: 480px) {
	:root { --gutter: 20px; --section-y: 64px; --pad-card: 24px; --pad-l: 26px; }
	.home-intro { padding: 24px 0 56px; }
	.page-hero { padding: 36px 0 40px; }
	.site-header { padding-top: 8px; }
	.header-inner { gap: 12px; min-height: 64px; }
	.brand-logo { height: 36px; }
	.header-register { display: none; }
	.nav-toggle { width: 42px; height: 42px; }
	.gallery.gallery-3 { grid-template-columns: minmax(0, 1fr); }
	.section.affiches .gallery.gallery-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer-grid { grid-template-columns: minmax(0, 1fr); }
	.actions .btn { width: 100%; }
}
