/* ==========================================================================
   Olympiades — feuille de style principale
   ========================================================================== */

@font-face {
	font-family: "Caprasimo";
	src: url("../fonts/Caprasimo-Regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

:root {
	--blue: #0560db;
	--blue-600: #2563be;
	--navy: #04205c;
	--green-900: #036021;
	--green: #349a37;
	--green-light: #5dc25b;
	--mint: #e2f7e6;
	--mint-200: #c6edcf;
	--sky: #e3effd;
	--sky-200: #cfe2fb;
	--teal: #046366;
	--teal-bg: #b1ebe9;
	--yellow: #f7c241;
	--yellow-ink: #3b2306;
	--ink: #142033;
	--muted: #5b6474;
	--ph: #e6ebef;
	--line: #d3dbe4;
	--white: #fff;

	--font-display: "Caprasimo", Georgia, "Times New Roman", serif;
	--font-body: Arial, "Helvetica Neue", Helvetica, sans-serif;

	--r-sm: 14px;
	--r-md: 22px;
	--r-lg: 32px;
	--r-xl: 44px;
	--pill: 999px;
	--shadow: 0 18px 50px -18px rgba(4, 32, 92, 0.28);
	--wrap: 1180px;
	--gutter: clamp(18px, 4vw, 40px);
	--section: clamp(56px, 8vw, 104px);
}

/* Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--blue-600); }
a:hover { color: var(--navy); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0 0 .5em; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.screen-reader-text, .hp {
	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: 12px; top: -60px; z-index: 100;
	background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--pill);
}
.skip-link:focus { top: 12px; }
.site-main:focus { outline: none; }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 880px; }

/* Typographie ---------------------------------------------------------- */
.display, .h1, .h2, .h3, .btn, .font-display {
	font-family: var(--font-display);
	font-weight: 400;
	letter-spacing: -0.005em;
}
.display { font-size: clamp(3rem, 8vw, 5.4rem); line-height: .98; color: #fff; margin-bottom: .35em; }
.h1 { font-size: clamp(2.3rem, 5.2vw, 3.4rem); line-height: 1.05; }
.h2 { font-size: clamp(1.8rem, 3.8vw, 2.5rem); line-height: 1.08; }
.h3 { font-size: 1.3rem; line-height: 1.2; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; max-width: 34em; }
.eyebrow {
	font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
	color: var(--blue-600); margin-bottom: .7em;
}
.eyebrow-green { color: var(--green); }
.eyebrow-darkgreen { color: var(--green-900); }
.section-intro { max-width: 38em; color: var(--ink); }
.small { font-size: .9rem; }
.muted { color: var(--muted); }
.prose { max-width: 38em; }
.prose p { margin-bottom: 1.1em; }

/* Boutons -------------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 48px; padding: .55em 1.5em;
	border-radius: var(--pill); border: 2px solid transparent;
	font-size: 1.02rem; line-height: 1.1; text-decoration: none; cursor: pointer;
	transition: transform .15s ease, background-color .15s ease, color .15s ease, box-shadow .15s ease;
	white-space: nowrap;
}
@media (max-width: 420px) { .btn { white-space: normal; text-align: center; } }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 42px; padding: .45em 1.15em; font-size: .95rem; }
.btn-lg { min-height: 64px; padding: .6em 2.1em; font-size: 1.12rem; }
.btn-block { width: 100%; }
.btn-yellow { background: var(--yellow); color: var(--yellow-ink); box-shadow: 0 8px 22px -10px rgba(120, 80, 0, .55); }
.btn-yellow:hover { background: #ffd05a; color: var(--yellow-ink); }
.btn-blue { background: var(--blue-600); color: #fff; }
.btn-blue:hover { background: var(--navy); color: #fff; }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { color: var(--blue-600); }
.btn-outline { background: #fff; border-color: var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--sky); color: var(--blue); }
.btn-outline-green { background: #fff; border-color: var(--green-900); color: var(--green-900); }
.btn-outline-green:hover { background: var(--mint); color: var(--green-900); }
.btn-outline-grey { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-outline-grey:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost-light { background: transparent; border-color: #fff; color: #fff; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.btn-disabled { background: var(--ph); color: var(--muted); cursor: not-allowed; }
.btn-disabled:hover { transform: none; }
.btn-link {
	background: none; border: 0; padding: .4em 0; cursor: pointer;
	font-family: var(--font-display); color: var(--blue-600); display: inline-flex; gap: .4em; align-items: center;
}
.btn-link:disabled { color: #a9c0e3; cursor: default; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }

.link-arrow {
	font-family: var(--font-body); font-weight: 700; text-decoration: none; color: inherit;
}
.link-arrow::after { content: " →"; transition: margin .15s ease; }
.link-arrow:hover::after { margin-left: 4px; }
.link-strong { font-family: var(--font-display); font-weight: 400; color: var(--blue-600); }

/* Pastilles ------------------------------------------------------------ */
.pill {
	display: inline-flex; align-items: center; padding: .45em 1.2em; border-radius: var(--pill);
	font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.pill-glass { background: rgba(255, 255, 255, .16); color: #fff; }
.pill-sky { background: var(--sky); color: var(--navy); letter-spacing: 0; text-transform: none; font-weight: 400; }
.pill-xs { font-size: .78rem; padding: .3em .85em; }
.tag-yellow, .tag-white {
	display: inline-block; font-size: .8rem; font-weight: 700; padding: .3em .9em; border-radius: var(--pill);
	letter-spacing: .02em; margin-bottom: 14px;
}
.tag-yellow { background: var(--yellow); color: var(--yellow-ink); }
.tag-white { background: #fff; color: var(--navy); }

/* Zones réservées & médias -------------------------------------------- */
.media { position: relative; overflow: hidden; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.ph {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
	background: var(--ph); color: #737b86; border: 1.5px dashed #b8c1cb; text-align: center;
	font-size: .92rem; padding: 16px;
}
.ph .ico { opacity: .7; }

/* En-tête -------------------------------------------------------------- */
.site-header {
	position: relative; z-index: 20; background: #fff;
	border-top: 6px solid transparent;
	border-image: linear-gradient(90deg, var(--blue), var(--green-light)) 1;
}
.header-inner { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); min-height: 92px; padding-top: 10px; padding-bottom: 10px; }
.brand { flex: 0 0 auto; display: flex; align-items: center; }
.brand-logo { width: 116px; height: auto; }
.header-panel { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: clamp(12px, 1.6vw, 24px); min-width: 0; }
.main-nav { flex: 1; display: flex; justify-content: center; min-width: 0; }
.main-nav .menu { list-style: none; display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; }
.main-nav li { flex: 0 0 auto; }
.main-nav a {
	display: flex; align-items: center; height: 42px; padding: 0 1em; border-radius: var(--pill); white-space: nowrap;
	background: var(--sky); color: var(--navy); font-weight: 700; font-size: .94rem; line-height: 1; text-decoration: none;
	transition: background-color .15s ease, color .15s ease;
}
.main-nav a:hover { background: var(--sky-200); }
.main-nav .current-menu-item > a, .main-nav .current_page_item > a { background: var(--green-900); color: #fff; }
.header-actions { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; justify-content: flex-end; flex: 0 0 auto; }
.lang-switch { display: inline-flex; align-items: center; height: 42px; border: 2px solid var(--sky-200); border-radius: var(--pill); padding: 2px; background: #fff; }
.header-actions .btn-sm { height: 42px; min-height: 42px; }
.lang-switch a {
	display: flex; align-items: center; height: 100%; padding: 0 .8em; border-radius: var(--pill); font-weight: 700; font-size: .92rem;
	color: var(--navy); text-decoration: none;
}
.lang-switch a.is-current { background: var(--blue); color: #fff; }
.nav-toggle {
	display: none; margin-left: auto; width: 48px; height: 48px; border-radius: 50%;
	background: var(--sky); color: var(--navy); border: 0; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle-close { display: none; }

@media (max-width: 1320px) {
	.nav-toggle { display: inline-flex; }
	.header-panel {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 18px;
		background: #fff; padding: 18px var(--gutter) 26px; box-shadow: var(--shadow);
	}
	.site-header.is-open .header-panel { display: flex; }
	.site-header.is-open .nav-toggle-open { display: none; }
	.site-header.is-open .nav-toggle-close { display: inline; }
	.main-nav { justify-content: flex-start; }
	.main-nav .menu { flex-direction: column; align-items: stretch; width: 100%; }
	.main-nav a { height: 48px; padding: 0 1.2em; }
	.header-actions { display: grid; grid-template-columns: auto 1fr 1fr; gap: 10px; }
	.header-actions .btn-sm { height: 48px; min-height: 48px; }
	.lang-switch { height: 48px; }
}

/* Héro ------------------------------------------------------------------ */
.hero {
	position: relative; overflow: hidden; color: #fff;
	background: var(--blue);
	padding: clamp(48px, 7vw, 84px) 0 clamp(150px, 16vw, 210px);
	isolation: isolate;
}
.hero::before {
	content: ""; position: absolute; inset: 0; z-index: -2;
	background: linear-gradient(155deg, transparent 38%, #1b7ec0 58%, #2c9f82 78%, var(--green-light) 100%);
}
.hero::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background-image: conic-gradient(rgba(255, 255, 255, .09) 25%, transparent 0 50%, rgba(255, 255, 255, .09) 0 75%, transparent 0);
	background-size: 64px 64px;
	-webkit-mask-image: linear-gradient(100deg, transparent 42%, #000 85%);
	mask-image: linear-gradient(100deg, transparent 42%, #000 85%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-text .pill { margin-bottom: 26px; }
.hero-text .lead { color: #fff; margin-bottom: 30px; }

.next-chip {
	display: inline-flex; align-items: center; gap: 16px; margin-top: 34px;
	padding: 10px 26px 10px 10px; border-radius: var(--pill);
	background: rgba(255, 255, 255, .14); color: #fff; text-decoration: none;
}
.next-chip:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.next-chip-days {
	flex: 0 0 auto; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%;
	background: #fff; color: var(--navy); font-family: var(--font-display); font-size: 1.35rem;
}
.next-chip small {
	display: block; color: #bdf3b5; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem;
}
.next-chip strong { font-size: 1.05rem; }

.hero-visual { position: relative; aspect-ratio: 4 / 4.6; max-width: 520px; width: 100%; justify-self: center; }
.arch { position: absolute; border-radius: 999px 999px 0 0; }
.arch-outer { inset: 0; background: rgba(255, 255, 255, .16); }
.arch-photo {
	inset: 7% 7% 0; background: rgba(255, 255, 255, .22); border: 0; color: #fff;
}
.arch-photo.ph { border: 1.5px dashed rgba(255, 255, 255, .45); }
.arch-photo.ph .ico { opacity: 1; }
.founded {
	position: absolute; left: -6%; bottom: -36px;
	background: #fff; color: var(--ink); border-radius: var(--r-md); padding: 16px 24px;
	box-shadow: var(--shadow);
}
.founded strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 2rem; line-height: 1; color: var(--navy); }
.founded span { font-size: .9rem; font-weight: 700; }

@media (max-width: 900px) {
	.hero-grid { grid-template-columns: minmax(0, 1fr); }
	.hero-visual { max-width: 460px; }
	.founded { left: 0; }
}

/* Carte « Prochain concours » ------------------------------------------ */
.event { position: relative; z-index: 2; margin-top: calc(-1 * clamp(110px, 12vw, 150px)); }
.event-card {
	background: #fff; border-radius: var(--r-xl); padding: clamp(16px, 2.6vw, 28px);
	box-shadow: var(--shadow);
	display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: center;
}
.event-card > * { min-width: 0; }
.event-body { padding: 8px clamp(4px, 1.5vw, 16px); }
/* La vidéo garde son format 16:9 (plus d'image étirée ni coupée) ; l'étiquette est sous la vidéo, jamais dessus. */
.event-media { min-width: 0; }
.video-figure { margin: 0; }
.video-caption {
	display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--navy);
	font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
}
.video-caption svg { color: var(--green); }
.video-facade { cursor: pointer; }
.video-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.video-facade:hover .video-poster { transform: scale(1.03); }
.video-play {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2;
	display: grid; place-items: center; width: clamp(64px, 9vw, 88px); height: clamp(64px, 9vw, 88px);
	border: 0; border-radius: 50%; background: var(--yellow); color: var(--yellow-ink); cursor: pointer;
	box-shadow: 0 12px 30px -8px rgba(4, 32, 92, .55), 0 0 0 10px rgba(255, 255, 255, .25);
	transition: transform .2s ease, box-shadow .2s ease;
}
.video-play svg { margin-left: 4px; }
.video-facade:hover .video-play, .video-play:focus-visible { transform: translate(-50%, -50%) scale(1.07); box-shadow: 0 14px 34px -8px rgba(4, 32, 92, .6), 0 0 0 14px rgba(255, 255, 255, .3); }
.tag-soon {
	display: inline-block; margin-right: 6px; padding: .25em .75em; border-radius: var(--pill);
	background: var(--yellow); color: var(--yellow-ink); font-size: .72rem; letter-spacing: .08em; vertical-align: 1px;
}
.annonce-box {
	margin: 22px 0 20px; padding: 16px 20px; border-radius: var(--r-md); background: var(--sky);
	border-left: 5px solid var(--yellow); color: var(--navy);
}
.annonce-box strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.annonce-box p { margin: 0; }
.next-chip-days.is-month { font-family: var(--font-body, inherit); font-weight: 800; font-size: .95rem; letter-spacing: .06em; }
.date-block.is-month { background: rgba(255, 255, 255, .55); border: 2px dashed var(--sky-200); }
.date-block.is-month strong { font-size: 1.9rem; }
.status-pill.status-annonce { background: var(--yellow); color: var(--yellow-ink); }
.event-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 700; color: var(--navy); }
.event-meta span { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 960px) { .event-card { grid-template-columns: minmax(0, 1fr); } }

.video {
	position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--navy);
	aspect-ratio: 16 / 9; width: 100%;
}
.video:not(.has-embed) {
	background-color: #072260;
	background-image: conic-gradient(rgba(255, 255, 255, .05) 25%, transparent 0 50%, rgba(255, 255, 255, .05) 0 75%, transparent 0);
	background-size: 40px 40px;
}
.video-badge {
	position: absolute; top: 18px; left: 18px; z-index: 2;
	background: var(--green-light); color: var(--navy); border-radius: var(--pill); padding: .3em 1em;
	font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
}
.video-embed, .video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-empty {
	position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: 14px; color: #fff; text-align: center; padding: 24px;
}
.video-empty small { color: #c7d3ea; max-width: 30em; }
.play {
	display: grid; place-items: center; width: clamp(64px, 14vw, 96px); height: clamp(64px, 14vw, 96px); border-radius: 50%;
	background: var(--yellow); color: var(--yellow-ink); padding-left: 6px;
}

.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 24px 0 18px; }
.cd-box { background: var(--sky); color: var(--navy); border-radius: var(--r-md); padding: 14px 6px 12px; text-align: center; }
.cd-box strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.cd-box span { font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.cd-box.is-main { background: var(--blue); color: #fff; }

.status {
	display: flex; align-items: center; gap: 10px; padding: .7em 1.2em; border-radius: var(--pill);
	background: var(--mint); color: var(--green-900); font-weight: 700; margin-bottom: 20px;
}
.status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.status-fermees { background: #f2f4f7; color: var(--muted); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tags li { background: var(--sky); color: var(--navy); border-radius: var(--pill); padding: .45em 1em; font-weight: 700; font-size: .9rem; }

/* Sections ------------------------------------------------------------- */
.section { padding: var(--section) 0 0; }
.section-head { margin-bottom: clamp(28px, 4vw, 44px); }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.section-head-row .h2 { max-width: 13em; margin-bottom: 0; }
.page-section { padding: clamp(40px, 6vw, 72px) 0 var(--section); }
.page-head { margin-bottom: 32px; }
.page-head-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* Saison ---------------------------------------------------------------- */
.season-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.season-card { border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: 18px; }
.season-fall { background: var(--sky); }
.season-spring { background: var(--mint); }
.season-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.season-label { font-weight: 700; color: var(--navy); }
.status-pill { font-size: .82rem; font-weight: 700; padding: .35em .9em; border-radius: var(--pill); background: #fff; }
.status-pill.status-ouvertes { color: var(--green-900); }
.status-pill.status-bientot { color: var(--blue-600); }
.status-pill.status-fermees { color: var(--muted); }
.season-main { display: flex; gap: 22px; align-items: center; }
.date-block {
	flex: 0 0 auto; width: 104px; height: 104px; border-radius: var(--r-md); background: #fff;
	display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--navy);
}
.date-block strong { font-family: var(--font-display); font-weight: 400; font-size: 2.6rem; line-height: 1; }
.date-block span { font-weight: 700; font-size: .78rem; letter-spacing: .08em; }
.season-main .h3 { margin-bottom: .15em; font-size: 1.45rem; }
.season-city { font-weight: 700; margin: 0; }
.season-when { margin: 0; color: var(--muted); }
.season-deadline { margin: 0; font-weight: 700; color: var(--green-900); }
.season-fall .season-deadline { color: var(--blue-600); }
@media (max-width: 760px) { .season-grid { grid-template-columns: 1fr; } }

/* Teintes partagées ------------------------------------------------------ */
.tint-blue { background: var(--sky); }
.tint-green { background: var(--mint); }
.tint-teal { background: var(--teal-bg); }
.tint-yellow { background: #fdf0cb; }

/* Valeurs --------------------------------------------------------------- */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.value-card { border-radius: var(--r-lg); padding: 28px 26px 24px; }
.value-card .h3 { font-size: 1.55rem; color: var(--navy); }
.value-card p { margin: 0; }
@media (max-width: 960px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .values-grid { grid-template-columns: 1fr; } }

/* Comment ça marche ----------------------------------------------------- */
.subjects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 40px; }
.subject { border-radius: var(--r-lg); padding: 26px; display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: center; }
.subject-ico { grid-row: span 2; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; color: #fff; }
.subject .h3 { margin: 0; }
.subject p { margin: 0; }
.subject-blue { background: var(--sky); } .subject-blue .subject-ico { background: var(--blue); }
.subject-green { background: var(--mint); } .subject-green .subject-ico { background: var(--green-900); }
.subject-teal { background: var(--teal-bg); } .subject-teal .subject-ico { background: var(--teal); }

.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps li { counter-increment: step; position: relative; padding-top: 74px; }
.steps li::before {
	content: counter(step); position: absolute; top: 0; left: 0;
	width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
	background: var(--yellow); color: var(--yellow-ink); font-family: var(--font-display); font-size: 1.6rem;
}
.steps li:not(:last-child)::after {
	content: ""; position: absolute; top: 28px; left: 72px; right: -16px; border-top: 2px dashed var(--sky-200);
}
.steps p { margin: 0; max-width: 22em; }
@media (max-width: 860px) {
	.subjects, .steps { grid-template-columns: 1fr; }
	.steps li:not(:last-child)::after { display: none; }
}

/* Accès rapides ---------------------------------------------------------- */
.audience-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.audience {
	display: flex; flex-direction: column; gap: 6px; border-radius: var(--r-lg); padding: 28px 24px;
	text-decoration: none; color: var(--ink); transition: transform .15s ease;
}
.audience:hover { transform: translateY(-3px); color: var(--ink); }
.audience .h3 { font-size: 1.5rem; color: var(--navy); }
.audience p { flex: 1; }
.audience .link-arrow { color: var(--blue-600); }
.audience.tint-green .link-arrow { color: var(--green-900); }
.audience.tint-teal .link-arrow { color: var(--teal); }
.audience.tint-yellow .link-arrow { color: #7a4d00; }
@media (max-width: 960px) { .audience-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .audience-grid { grid-template-columns: 1fr; } }

/* Lauréats (accueil) ---------------------------------------------------- */
.laureat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.laureat-photo { aspect-ratio: 4 / 5; border-radius: var(--r-lg); }
.laureat-mini { margin: 0; }
.laureat-mini figcaption { padding: 12px 6px 0; }
.laureat-mini strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; }
.laureat-mini span { color: var(--muted); font-size: .92rem; }
@media (max-width: 860px) { .laureat-grid { grid-template-columns: repeat(2, 1fr); } }
/* Carrousel des lauréats (accueil) : 4 visibles, 2 sur tablette, 1 et un bout sur téléphone. */
.lcar { position: relative; }
.lcar-track {
	display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 22px) / 4); gap: 22px;
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 4px;
}
.lcar-track::-webkit-scrollbar { display: none; }
.lcar-track:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; border-radius: var(--r-lg); }
.lcar-slide { scroll-snap-align: start; }
.lcar-slide .laureat-photo img { width: 100%; height: 100%; object-fit: cover; }
.lcar-nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.lcar-btn {
	width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--sky-200); background: #fff; color: var(--navy);
	font-size: 1.7rem; line-height: 1; cursor: pointer; transition: background .2s, border-color .2s;
}
.lcar-btn:hover, .lcar-btn:focus-visible { background: var(--yellow); border-color: var(--yellow); }
.lcar-btn:disabled { opacity: .4; cursor: default; background: #fff; border-color: var(--sky-200); }
@media (max-width: 860px) { .lcar-track { grid-auto-columns: calc((100% - 22px) / 2); } }
@media (max-width: 560px) { .lcar-track { grid-auto-columns: 78%; gap: 14px; } }
@media (prefers-reduced-motion: reduce) { .lcar-track { scroll-behavior: auto; } }

/* Bénévoles ------------------------------------------------------------- */
.volunteers-inner {
	position: relative; overflow: hidden; isolation: isolate;
	background: var(--green-900); color: #fff; border-radius: var(--r-xl);
	padding: clamp(28px, 5vw, 56px);
}
.volunteers-inner::before {
	content: ""; position: absolute; z-index: -1; left: 0; bottom: 0; width: 28%; height: 22%;
	background: var(--green); border-radius: 0 160px 0 0;
}
.volunteer-signup .volunteers-inner::before { left: auto; right: 0; top: 0; bottom: auto; width: 26%; height: 120px; border-radius: 0 0 0 160px; }
.vol-head { display: flex; align-items: center; gap: 16px; margin-bottom: 30px; }
.heart-badge {
	display: inline-grid; place-items: center; width: 70px; height: 70px; border-radius: 50%;
	background: var(--yellow); color: var(--yellow-ink); margin-bottom: 0;
}
.volunteer-signup .heart-badge { margin-bottom: 22px; }
.volunteers-inner .h2 { color: #fff; max-width: 13em; }
.vol-lead { max-width: 34em; font-size: 1.08rem; margin-bottom: 28px; }
.vol-mosaic { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: repeat(2, minmax(150px, 1fr)); gap: 16px; margin: 38px 0 32px; }
.vol-mosaic .media { border-radius: var(--r-lg); }
.vol-mosaic .ph { background: rgba(255, 255, 255, .14); color: #d9eedd; border-color: rgba(255, 255, 255, .35); }
.vol-big { grid-row: span 2; min-height: 320px; }
.sector-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.sector { background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: 24px 26px; }
.sector-title { display: flex; align-items: baseline; gap: 10px; font-family: var(--font-body); font-weight: 700; font-size: 1.15rem; }
.sector-title::before { content: ""; flex: 0 0 auto; width: 12px; height: 12px; border-radius: 50%; background: currentColor; transform: translateY(-1px); }
.sector .link-arrow { font-family: var(--font-body); }
.dot-blue .sector-title, .dot-blue .link-arrow { color: var(--navy); }
.dot-blue .sector-title::before { background: var(--blue); }
.dot-teal .sector-title, .dot-teal .link-arrow { color: #053a3c; }
.dot-teal .sector-title::before { background: var(--teal); }
.dot-green .sector-title, .dot-green .link-arrow { color: var(--green-900); }
@media (max-width: 760px) {
	.vol-mosaic, .sector-grid { grid-template-columns: 1fr; }
	.vol-mosaic { grid-template-rows: auto; }
	.vol-big { grid-row: auto; min-height: 220px; }
	.vol-small { min-height: 170px; }
}

/* Partenaires ------------------------------------------------------------ */
.partners-home { position: relative; }
.partners-home::before {
	content: ""; position: absolute; z-index: -1; left: 0; top: 0; width: min(320px, 32vw); height: 140px;
	background: #b2e8a3; border-radius: 0 0 160px 0;
}
.partners-panel { background: var(--sky); border-radius: var(--r-xl); padding: clamp(18px, 3vw, 30px); display: flex; flex-direction: column; gap: 20px; }
.partner-group .h3 { margin-bottom: 18px; }
.logo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.logo-grid-main { grid-template-columns: repeat(2, 1fr); }
.logo-tile {
	display: flex; align-items: center; justify-content: center; min-height: 92px;
	background: #fff; border-radius: var(--r-md); padding: 12px; text-decoration: none; color: var(--ink);
	box-shadow: 0 6px 18px -12px rgba(4, 32, 92, .35);
}
.logo-main { min-height: 140px; }
.logo-tile img { max-height: 90px; width: auto; object-fit: contain; }
.logo-main img { max-height: 120px; }
.logo-tile .logo-ph { width: 100%; height: 100%; min-height: 66px; border-radius: var(--r-sm); background: #f3f4f6; }
.logo-main .logo-ph { min-height: 112px; }
.logo-name { font-family: var(--font-display); font-size: 1.1rem; text-align: center; }
.partner-photo { aspect-ratio: 16 / 9; border-radius: var(--r-lg); background: #f7f8fa; }
.partners-page .partner-group { margin-top: 44px; }
.partners-page .logo-tile { border-radius: var(--pill); border: 1.5px solid var(--line); box-shadow: none; }
.partners-page .logo-tile .logo-ph { border-radius: var(--pill); }
.benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 48px; max-width: 920px; }
.benefits article::before { content: ""; display: block; width: 24px; height: 24px; border-radius: 50%; background: var(--blue-600); margin-bottom: 12px; }
.benefits p { margin: 0; }
@media (max-width: 760px) {
	.logo-grid { grid-template-columns: repeat(2, 1fr); }
	.logo-grid-main, .benefits { grid-template-columns: 1fr; }
}

/* Devenir partenaire ---------------------------------------------------- */
.partner-cta { padding: var(--section) 0; }
.partner-cta-inner { background: var(--navy); color: #fff; border-radius: var(--r-xl); padding: clamp(32px, 5vw, 64px); }
.partner-cta .h2 { color: #fff; }
.partner-cta-text { max-width: 36em; margin-bottom: 28px; }
.partner-cta-text p { color: #d6def0; font-size: 1.08rem; }
.partner-steps { list-style: none; counter-reset: ps; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 32px; }
.partner-steps li {
	counter-increment: ps; background: rgba(255, 255, 255, .07); border-radius: var(--r-lg); padding: 24px;
	display: flex; flex-direction: column; gap: 6px;
}
.partner-steps li::before {
	content: counter(ps); width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
	background: var(--green-light); color: var(--navy); font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 8px;
}
.partner-steps strong { font-size: 1.1rem; }
.partner-steps span { color: #c9d3ea; }
@media (max-width: 860px) { .partner-steps { grid-template-columns: 1fr; } }

/* Pied de page ----------------------------------------------------------- */
.site-footer { background: var(--navy); color: #d6def0; border-top: 8px solid transparent; border-image: linear-gradient(90deg, var(--blue), var(--green-light)) 1; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 36px; padding-top: 60px; padding-bottom: 44px; }
.footer-logo { display: inline-block; background: #fff; border-radius: var(--r-md); padding: 10px 18px; margin-bottom: 18px; }
.footer-logo-img { width: 190px; height: auto; }
.footer-title { color: #bdf3b5; font-family: var(--font-body); font-size: .85rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.footer-menu, .footer-col .menu { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: #fff; font-weight: 700; text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-col a.btn { text-decoration: none; color: var(--yellow-ink); }
.footer-mail { font-size: 1.05rem; }
.newsletter { display: flex; gap: 10px; }
.newsletter input { flex: 1; min-width: 0; min-height: 44px; border-radius: var(--pill); border: 0; padding: 0 18px; background: #fff; color: var(--ink); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .15); }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; font-size: .92rem; }
.footer-bottom p { margin: 0; }
.footer-bottom .propulse { opacity: .85; }
.footer-bottom .propulse strong { letter-spacing: .06em; }
.footer-bottom .propulse a { color: inherit; text-decoration: none; }
.footer-bottom .propulse a:hover, .footer-bottom .propulse a:focus-visible { text-decoration: underline; }
.legal-menu { list-style: none; display: flex; gap: 14px; margin: 0; }
.legal-menu a { color: #d6def0; text-decoration: none; }
.legal-menu a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Panneaux & formulaires ------------------------------------------------- */
.panel { border-radius: var(--r-xl); padding: clamp(22px, 4vw, 40px); }
.panel-sky { background: var(--sky); }
.panel-mint { background: var(--mint); }
.card-form {
	background: #fff; color: var(--ink); border-radius: var(--r-xl); padding: clamp(22px, 4vw, 34px);
	box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .form-legend { font-weight: 700; font-size: .92rem; }
.field input, .field select, .field textarea, .rank-row input {
	width: 100%; min-height: 46px; padding: 10px 18px; border-radius: var(--pill);
	border: 1.5px solid #c3d3e6; background: #e8f0fa; color: var(--ink);
}
.field textarea { border-radius: var(--r-md); min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .rank-row input:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(5, 96, 219, .15); }
.field ::placeholder { color: #7d8794; }
.field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field-grid-3 { grid-template-columns: repeat(3, 1fr); }
.field-short { max-width: 260px; }
@media (max-width: 680px) { .field-grid, .field-grid-3 { grid-template-columns: 1fr; } }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.form-legend { font-family: var(--font-display); font-weight: 400; font-size: 1.1rem; margin-bottom: 12px; padding: 0; }

.check-card {
	display: flex; gap: 14px; align-items: flex-start; background: #f2f6fa; border-radius: var(--r-md);
	padding: 16px 20px; margin-bottom: 10px; cursor: pointer; border: 2px solid transparent;
}
.check-card:has(input:checked) { border-color: var(--green); background: var(--mint); }
.check-card input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--green-900); flex: 0 0 auto; }
.check-card strong { display: block; }
.check-card small { font-size: .9rem; color: var(--muted); }

.checks { list-style: none; display: grid; gap: 10px; margin-bottom: 30px; font-weight: 700; }
.checks li { display: flex; align-items: center; gap: 12px; }
.checks .ico { flex: 0 0 auto; width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: rgba(255, 255, 255, .2); }

.notice { border-radius: var(--r-md); padding: 14px 18px; font-weight: 700; }
.notice-ok { background: var(--mint); color: var(--green-900); }
.notice-err { background: #fde8e8; color: #9b1c1c; }

/* Inscription ------------------------------------------------------------ */
.wizard { display: flex; flex-direction: column; gap: 22px; }
.wizard-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.wizard-steps li {
	display: inline-flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px; border-radius: var(--pill);
	font-weight: 700; font-size: .95rem; color: var(--ink);
}
.wizard-steps span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--sky); }
.wizard-steps .is-current { background: var(--sky); }
.wizard-steps .is-current span, .wizard-steps .is-done span { background: var(--blue-600); color: #fff; }
.wizard-step legend { margin-bottom: 22px; float: left; width: 100%; }
.wizard-step legend + * { clear: both; }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice-body {
	display: flex; flex-direction: column; gap: 8px; height: 100%; background: #f2f6fa; border: 3px solid transparent;
	border-radius: var(--r-lg); padding: 24px 28px;
}
.choice-body .h3 { font-size: 1.5rem; }
.choice-body b { color: var(--navy); }
.choice input:checked + .choice-body { border-color: var(--blue-600); }
.choice input:focus-visible + .choice-body { outline: 3px solid var(--yellow); outline-offset: 3px; }
.choice.is-disabled { opacity: .55; cursor: not-allowed; }
@media (max-width: 640px) { .choice-grid { grid-template-columns: 1fr; } }
.students { display: flex; flex-direction: column; gap: 14px; margin: 26px 0 16px; }
.student-row { display: grid; grid-template-columns: 70px 1fr 1fr 170px auto; gap: 12px; align-items: end; background: #fff; border-radius: var(--r-md); padding: 14px 16px; }
.student-num { font-weight: 700; color: var(--navy); padding-bottom: 12px; }
.student-remove { background: none; border: 0; color: #9b1c1c; cursor: pointer; padding: 12px 4px; font-weight: 700; }
@media (max-width: 760px) { .student-row { grid-template-columns: 1fr 1fr; } .student-num { grid-column: 1 / -1; padding: 0; } }
.only-ecole { display: none; }
.wizard.is-ecole .only-ecole { display: flex; }
.wizard.is-ecole .only-parent { display: none; }
.summary { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin: 0 0 18px; }
.summary dt { font-weight: 700; }
.summary dd { margin: 0; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid var(--sky-200); padding-top: 14px; font-weight: 700; }
.summary-total strong { font-family: var(--font-display); font-weight: 400; font-size: 1.9rem; color: var(--navy); }
.wizard-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.wizard-nav .btn { margin-left: auto; }
.confirm-list { list-style: none; display: grid; gap: 8px; margin: 16px 0 22px; }
.confirm-list li { background: #fff; border-radius: var(--r-sm); padding: 10px 16px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.confirm-list strong { font-variant-numeric: tabular-nums; color: var(--navy); }

/* Onglets ---------------------------------------------------------------- */
.tab-list { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.tab-list [role="tab"] {
	border: 0; cursor: pointer; padding: .6em 1.4em; border-radius: var(--pill);
	background: var(--sky); color: var(--navy); font-weight: 700;
}
.tab-list [role="tab"][aria-selected="true"] { background: var(--blue-600); color: #fff; }
.tab-list-years [role="tab"] { font-family: var(--font-display); font-weight: 400; font-size: 1.1rem; padding: .55em 1.35em; }

/* Résultats -------------------------------------------------------------- */
.results-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px; }
.results-head .h3 { margin: 0; font-size: 1.5rem; }
.progress { height: 12px; border-radius: var(--pill); background: var(--sky); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--green-light)); border-radius: inherit; transition: width .6s ease; }
.progress-label { font-weight: 700; color: var(--navy); margin: 8px 0 20px; }
.level-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.level-filter button { border: 1.5px solid var(--sky-200); background: #fff; border-radius: var(--pill); padding: .35em 1em; cursor: pointer; font-weight: 700; color: var(--navy); }
.level-filter button.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1.5px solid var(--sky-200); margin-bottom: 14px; }
.results-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 640px; }
.results-table th { text-align: left; background: var(--sky); color: var(--navy); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; padding: 14px 16px; }
.results-table td { padding: 13px 16px; border-top: 1px solid #edf1f6; }
.results-table td:last-child { font-family: var(--font-display); font-size: 1.1rem; color: var(--navy); }
.results-table tr.is-new td { animation: flash 1.4s ease; }
.rank-badge { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-weight: 700; background: #f2f4f7; }
.rank-1 .rank-badge { background: var(--yellow); color: var(--yellow-ink); }
.rank-2 .rank-badge { background: #dfe6ee; }
.rank-3 .rank-badge { background: #f1d3b5; color: #5b3210; }
@keyframes flash { from { background: #fff7d6; } to { background: transparent; } }
.archive-list { list-style: none; display: grid; gap: 12px; margin-bottom: 20px; }
.archive-list li { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: var(--sky); border-radius: var(--r-md); padding: 14px 20px; }
.archive-year { font-family: var(--font-display); font-size: 1.4rem; color: var(--navy); }
.archive-title { flex: 1; font-weight: 700; }
.rank-form { max-width: 640px; }
.rank-row { display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.rank-row input { flex: 1; min-width: 200px; text-transform: uppercase; }
.rank-result { margin-top: 22px; max-width: 640px; }
.rank-card { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rank-card div { background: var(--mint); border-radius: var(--r-md); padding: 16px; text-align: center; }
.rank-card strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 2rem; color: var(--green-900); }

/* Palmarès --------------------------------------------------------------- */
.palmares-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 28px; }
.palmares-card { margin: 0; }
.arch-card { aspect-ratio: 4 / 5; border-radius: 999px 999px var(--r-lg) var(--r-lg); }
.palmares-card figcaption { padding: 14px 8px 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.palmares-name { font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; }
.palmares-title { color: var(--muted); font-weight: 700; }
@media (max-width: 860px) { .palmares-grid { grid-template-columns: repeat(2, 1fr); } }


/* À propos ------------------------------------------------------------- */
.about-title { max-width: 12em; margin-bottom: 40px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.about-photo { aspect-ratio: 1; border-radius: 50%; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } .about-photo { max-width: 380px; } }
.mission { padding-top: 0; }
.mission-title { max-width: 14em; }
.mission-list { list-style: none; display: grid; gap: 14px; margin: 26px 0 48px; }
.mission-list li { display: flex; align-items: center; gap: 18px; border-radius: var(--r-lg); padding: 18px 24px; color: var(--navy); }
.mission-list li.tint-green { color: #04401a; }
.mission-list li.tint-teal { color: #053a3c; }
.mission-ico { flex: 0 0 auto; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; color: #fff; background: var(--blue); }
.tint-green .mission-ico { background: var(--green-900); }
.tint-teal .mission-ico { background: var(--teal); }
.video-wide { margin-bottom: var(--section); }
.video-wide .video { box-shadow: var(--shadow); }
.value-pills { list-style: none; display: flex; flex-wrap: wrap; gap: 14px; margin: 18px 0 48px; }
.value-pills li { font-family: var(--font-display); font-size: clamp(1.15rem, 2vw, 1.45rem); padding: .6em 1.4em; border-radius: var(--pill); }
.vp-sky { background: var(--sky); color: var(--navy); }
.vp-mint { background: var(--mint-200); color: #04401a; }
.vp-blue { background: var(--blue-600); color: #fff; }
.vp-green { background: #2c8a47; color: #fff; }
.vision-text { font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.3; max-width: 22em; margin: 0; }

.team-sub { margin-top: 56px; }
.member-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 24px; margin-top: 26px; }
.member-grid .row-start { grid-column-start: 1; }
.member {
	text-align: center; background: #fff; border-radius: 52px 52px var(--r-lg) var(--r-lg); padding: 28px 20px 26px;
	border-top: 6px solid var(--blue); box-shadow: 0 10px 30px -18px rgba(4, 32, 92, .4);
	display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.member-green { border-top-color: var(--green-900); }
.member-teal { border-top-color: var(--teal); }
.member-photo { width: 156px; height: 156px; border-radius: 50%; margin-bottom: 8px; }
.member-name { font-size: 1.15rem; margin: 0; }
.member-role { font-size: .82rem; padding: .3em .9em; border-radius: var(--pill); background: var(--sky); color: var(--navy); }
.member-green .member-role { background: var(--mint); color: #04401a; }
.member-teal .member-role { background: var(--teal-bg); color: #053a3c; }
@media (max-width: 860px) { .member-grid { grid-template-columns: repeat(min(var(--cols, 3), 3), minmax(0, 1fr)); } }


.resp-list { list-style: none; display: grid; gap: 12px; margin: 26px 0 26px; }
.resp { display: flex; align-items: center; gap: 16px; border-radius: var(--r-lg); padding: 14px 18px; background: var(--sky); }
.resp-green { background: var(--mint); }
.resp-teal { background: var(--teal-bg); }
.resp-ico { flex: 0 0 auto; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--blue); color: #fff; }
.resp-green .resp-ico { background: var(--green-900); }
.resp-teal .resp-ico { background: var(--teal); }
.resp-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.resp-text strong { font-size: 1.1rem; color: var(--navy); }
.resp-text a { color: var(--navy); font-weight: 700; word-break: break-all; }
.resp-green .resp-text strong, .resp-green .resp-text a { color: var(--green-900); }
.resp-teal .resp-text strong, .resp-teal .resp-text a { color: #053a3c; }
.volunteer-signup .card-form { margin-top: 10px; }

/* Contact ---------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 48px); align-items: start; margin-top: 18px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form .field input, .contact-form .field select, .contact-form .field textarea { background: #fff; }
.contact-mail { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem); text-decoration: none; color: var(--blue-600); }
.contact-cities { font-size: 1.15rem; margin-bottom: 32px; }
.media-box .h3 { font-size: 1.6rem; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

/* Mon espace ------------------------------------------------------------- */
.login-box { max-width: 560px; display: flex; flex-direction: column; gap: 14px; }
.login-box .h1 { margin: 0; }
.login-form { display: flex; flex-direction: column; gap: 16px; }
.login-form .field input { background: #fff; }
.login-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0; }
.login-links a { font-family: var(--font-display); text-decoration: none; }
.seg { display: flex; gap: 8px; }
.seg button { border: 1.5px solid var(--line); background: #fff; border-radius: var(--pill); padding: .4em 1.2em; cursor: pointer; font-family: var(--font-display); }
.seg button.is-active { background: var(--blue-600); color: #fff; border-color: var(--blue-600); }
.space-list { display: grid; gap: 18px; }
.post-item { padding: 22px 0; border-bottom: 1px solid var(--line); }

/* Mouvement réduit ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Paiement ------------------------------------------------------------- */
.pay-title { margin: 26px 0 12px; }
.pay-grid { display: grid; gap: 10px; }
.pay-option {
	display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 2px solid transparent;
	border-radius: var(--r-md); padding: 16px 18px; cursor: pointer;
}
.pay-option:has(input:checked) { border-color: var(--blue-600); }
.pay-option input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--blue-600); flex: 0 0 auto; }
.pay-option strong { display: block; }
.pay-option small { color: var(--muted); font-size: .9rem; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; font-size: .95rem; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--green-900); flex: 0 0 auto; }
.pay-box { background: #fff7d6; border-radius: var(--r-md); padding: 18px 20px; margin: 14px 0; }
.pay-box .summary { margin-bottom: 10px; }
.consent-light { color: #fff; margin: 4px 0 6px; }

/* ==========================================================================
   Responsive : ajustements téléphone, tablette et écrans tactiles
   ========================================================================== */
.footer-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr); }
.footer-logo-img { max-width: 100%; }
.resp-text a, .contact-mail, .summary dd, .confirm-list li { overflow-wrap: anywhere; }
img, .media { max-width: 100%; }

/* Tablette */
@media (max-width: 1024px) {
	:root { --r-xl: 34px; --r-lg: 26px; }
	.event-card { border-radius: var(--r-xl); }
	.hero-visual { max-width: 420px; }
}
@media (max-width: 960px) {
	.footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.section-head-row { align-items: flex-start; }
}

/* Téléphone */
@media (max-width: 640px) {
	body { font-size: 16px; }
	.container { padding-left: 18px; padding-right: 18px; }
	.section { padding-top: 56px; }
	.page-section { padding-top: 32px; padding-bottom: 56px; }
	.hero { padding-top: 36px; }
	.hero-text .pill { margin-bottom: 18px; font-size: .74rem; }
	.btn-lg { min-height: 54px; padding: .55em 1.5em; font-size: 1.02rem; }
	.hero .btn-row .btn, .volunteers-inner > .btn-row .btn { flex: 1 1 100%; }
	.next-chip { width: 100%; padding-right: 16px; }
	.next-chip-days { width: 52px; height: 52px; font-size: 1.15rem; }
	.hero-visual { aspect-ratio: 4 / 4.2; max-width: 340px; }
	.founded { padding: 12px 18px; bottom: -24px; }
	.founded strong { font-size: 1.6rem; }
	.event { margin-top: -96px; }
	.event-card { padding: 12px; gap: 16px; }
	.video-caption { margin-top: 10px; font-size: .7rem; }
	.steps { gap: 22px; }
	.steps li { padding: 0 0 0 66px; min-height: 52px; }
	.steps li::before { width: 48px; height: 48px; font-size: 1.35rem; }
	.subjects { margin-bottom: 30px; }
	.event-body { padding: 4px 6px 10px; }
	.countdown { gap: 6px; }
	.cd-box { padding: 10px 2px 8px; border-radius: 16px; }
	.cd-box span { font-size: .66rem; letter-spacing: .04em; }
	.event .btn-row .btn { flex: 1 1 auto; }
	.status { border-radius: var(--r-md); }
	.season-card { padding: 20px; }
	.season-main { gap: 14px; }
	.date-block { width: 80px; height: 80px; }
	.date-block strong { font-size: 2rem; }
	.season-card .btn-row .btn { flex: 1 1 auto; }
	.volunteers-inner, .partner-cta-inner { padding: 26px 20px; }
	.heart-badge { width: 56px; height: 56px; }
	.vol-head { margin-bottom: 20px; }
	.partners-panel { padding: 14px; }
	.logo-main { min-height: 110px; }
	.partner-cta-inner .btn-row .btn { flex: 1 1 100%; }
	.card-form { padding: 20px 16px; border-radius: var(--r-lg); }
	.panel { padding: 22px 16px; border-radius: var(--r-lg); }
	.choice-body { padding: 18px; }
	.wizard-steps { gap: 4px; }
	.wizard-steps li { padding: 4px; font-size: 0; gap: 0; }
	.wizard-steps li.is-current { padding-right: 12px; font-size: .9rem; gap: 8px; }
	.wizard-steps span { font-size: .9rem; }
	.wizard-nav { position: sticky; bottom: 0; z-index: 5; background: #fff; padding: 12px 0; margin: 0 -2px; box-shadow: 0 -10px 20px -14px rgba(4, 32, 92, .35); }
	.summary { grid-template-columns: 1fr; gap: 2px; }
	.summary dd { margin-bottom: 8px; }
	.resp { flex-wrap: wrap; padding: 14px; }
	.resp-ico { width: 44px; height: 44px; }
	.resp-text a { font-size: .92rem; }
	.resp .btn { width: 100%; }
	.member { border-radius: 40px 40px var(--r-lg) var(--r-lg); }
	.mission-list li { padding: 16px; gap: 14px; align-items: flex-start; }
	.mission-ico { width: 46px; height: 46px; }
	.value-pills li { font-size: 1.05rem; }
	.tab-list { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin-left: -18px; margin-right: -18px; padding: 0 18px 4px; }
	.tab-list::-webkit-scrollbar { display: none; }
	.tab-list [role="tab"] { flex: 0 0 auto; }
	.level-filter { flex-wrap: nowrap; overflow-x: auto; margin-left: -18px; margin-right: -18px; padding: 0 18px 4px; scrollbar-width: none; }
	.level-filter button { flex: 0 0 auto; min-height: 40px; }
	.results-table { min-width: 560px; font-size: .92rem; }
	.results-table th, .results-table td { padding: 10px; }
	.rank-card { grid-template-columns: 1fr; }
	.rank-row .btn { width: 100%; }
	.archive-list li { gap: 10px; }
	.footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 44px; }
	.footer-logo-img { width: 150px; }
	.member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	.member { padding: 20px 12px; border-top-width: 5px; }
	.member-photo { width: 104px; height: 104px; }
	.member-name { font-size: 1rem; }
	.palmares-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
	.laureat-grid { gap: 12px; }
	.footer-bottom-inner { flex-direction: column; gap: 8px; }
	.newsletter input { min-height: 48px; }
	.newsletter .btn { min-height: 48px; }
	.contact-grid { gap: 28px; }
	.login-links { flex-direction: column; }
	.page-head-row .btn { width: 100%; }
}

/* Très petits écrans (320 px) */
@media (max-width: 360px) {
	.container { padding-left: 14px; padding-right: 14px; }
	.display { font-size: 2.6rem; }
	.h1 { font-size: 2rem; }
	.h2 { font-size: 1.6rem; }
	.season-main { flex-direction: column; align-items: flex-start; }
	.header-actions { grid-template-columns: 1fr 1fr; }
	.header-actions .lang-switch { grid-column: 1 / -1; justify-self: start; }
	.cd-box strong { font-size: 1.35rem; }
	.cd-box span { font-size: .6rem; }
	.next-chip small { font-size: .7rem; }
	.event-meta { flex-direction: column; }
	.tags li { font-size: .82rem; }
	.subject { padding: 20px; }
	.tab-list, .level-filter { margin-left: -14px; margin-right: -14px; padding-left: 14px; padding-right: 14px; }
}

/* Écrans tactiles : cibles d'au moins 44 px */
@media (pointer: coarse) {
	.footer-menu a, .footer-col p > a, .legal-menu a, .link-arrow, .login-links a, .contact-mail, .btn-link, .resp-text a {
		display: inline-flex; align-items: center; min-height: 44px;
	}
	.footer-menu { gap: 0; }
	.check-card input, .consent input, .pay-option input { width: 24px; height: 24px; }
	.lang-switch a { min-width: 44px; justify-content: center; }
}

/* Paysage sur téléphone : héro moins haut */
@media (max-height: 500px) and (orientation: landscape) {
	.hero-visual { display: none; }
	.hero { padding-bottom: 140px; }
}

/* Compte à rebours terminé */
.cd-live { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 4px; background: var(--mint); color: var(--green-900); border-radius: var(--r-md); padding: 16px; text-decoration: none; }
.cd-live strong { font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; }
.cd-live:hover { background: #d3f1da; color: var(--green-900); }

/* Mon espace (relié à l'application) */
.espace-hero { background: var(--blue-600); color: #fff; margin-bottom: 18px; }
.espace-hero .h1, .espace-hero p { color: #fff; }
.espace-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.espace-card .btn-block { width: 100%; }
@media (max-width: 720px) { .espace-grid { grid-template-columns: minmax(0, 1fr); } }

/* Formulaire Devenir partenaire */
.partner-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 28px; align-items: start; }
.partner-form .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.partner-form .field-wide, .partner-form .notice, .partner-form .btn { grid-column: 1 / -1; }
.partner-form fieldset { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; }
.partner-form legend { font-weight: 700; margin-bottom: 6px; }
@media (max-width: 820px) { .partner-form, .partner-form .form-grid, .partner-form fieldset { grid-template-columns: minmax(0, 1fr); } }

/* ===== Palmarès : podium par niveau ===== */
.pal-ville { margin: 34px 0 14px; }
.pal-levels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.pal-level { background: #fff; border: 1px solid #dde4ec; border-radius: 26px; padding: 18px 18px 22px; }
.pal-level-h { font-family: var(--font-display); font-weight: 400; color: var(--navy); font-size: 1.35rem; margin: 0 0 14px; text-align: center; }
.pal-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; }
.pod { margin: 0; text-align: center; }
.pod-photo { position: relative; margin: 0 auto 10px; width: 100%; max-width: 150px; aspect-ratio: 1; border-radius: 50%; padding: 5px; background: var(--pc); }
.pod-photo .pod-img, .pod-photo img, .pod-photo .media-ph { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; overflow: hidden; }
.pod-1 .pod-photo { max-width: 170px; } .pod-2 .pod-photo, .pod-3 .pod-photo { max-width: 128px; }
.pod-1 { --pc: #f7c241; --pt: #3b2306; } .pod-2 { --pc: #cbd2da; --pt: #2b333d; } .pod-3 { --pc: #d38b5d; --pt: #3a1606; }
.pod-medal { position: absolute; right: 2%; bottom: 2%; width: 42px; height: 42px; border-radius: 50%; background: var(--pc); color: var(--pt); border: 3px solid #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.05rem; line-height: 1; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.pod-medal sup { font-size: .55em; }
.pod-name { display: block; color: var(--navy); font-size: 1rem; line-height: 1.25; }
.pod-1 .pod-name { font-size: 1.1rem; }
.pod-school { display: block; font-size: .86rem; color: #36415a; margin-top: 2px; }
.pod-board { display: inline-block; margin-top: 4px; background: var(--sky-200); color: var(--navy); border-radius: 999px; padding: 1px 9px; font-size: .74rem; font-weight: 700; }
.pod-title { display: block; font-size: .78rem; color: var(--green-900); margin-top: 4px; font-weight: 700; }
.pod.is-empty .pod-photo { opacity: .55; } .pod.is-empty .pod-name { color: #8a94a6; font-weight: 400; }
.pal-super { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-bottom: 22px; }
.sg { margin: 0; display: flex; gap: 14px; align-items: center; background: var(--navy); color: #fff; border-radius: 22px; padding: 14px 18px; }
.sg-photo { position: relative; width: 92px; height: 92px; flex: 0 0 auto; border-radius: 50%; padding: 4px; background: var(--yellow); }
.sg-photo .sg-img, .sg-photo img, .sg-photo .media-ph { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; overflow: hidden; }
.sg-star { position: absolute; right: -4px; bottom: -2px; width: 32px; height: 32px; border-radius: 50%; background: var(--yellow); color: var(--yellow-ink); display: grid; place-items: center; border: 3px solid var(--navy); }
.sg figcaption { display: flex; flex-direction: column; gap: 2px; }
.sg-kicker { color: var(--yellow); font-weight: 700; font-size: .82rem; letter-spacing: .02em; }
.sg strong { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; line-height: 1.15; }
.sg figcaption span:last-child { color: #cfd9ee; font-size: .88rem; }
@media (max-width: 900px) { .pal-levels { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .pal-level { padding: 14px 10px 18px; } .pal-podium { gap: 6px; } .pod-medal { width: 34px; height: 34px; font-size: .9rem; } .pod-name { font-size: .9rem; } .pod-school { font-size: .78rem; } }
.pod-photo .ph, .sg-photo .ph { display: grid; place-items: center; background: #eef3f9; color: #8a94a6; }
.pod-photo .ph span, .sg-photo .ph span { display: none; }
.pod-photo .media img, .sg-photo .media img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
/* Photos rondes quel que soit le nombre de cartes par rangée */
.member-grid .member-photo { width: min(100%, 156px); height: auto; aspect-ratio: 1; }

/* Écoles dans le formulaire */
.field-wide { grid-column: 1 / -1; }
.conseil-auto { color: var(--green-900); font-weight: 700; min-height: 1em; }
.ecole-autre { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 8px; margin-top: 6px; }
.ecole-autre[hidden] { display: none; }
.student-row .student-school { grid-column: 1 / -1; }
.student-row .student-first { grid-column: span 2; }
@media (max-width: 760px) { .student-row .student-first { grid-column: 1 / -1; } }
@media (max-width: 600px) { .ecole-autre { grid-template-columns: minmax(0, 1fr); } }

/* Packs repas */
.student-row .student-meal { grid-column: span 2; }
.meal-extra { margin-top: 18px; background: #fffaf0; border: 1px solid #f3dc8b; border-radius: var(--r-md); padding: 20px; }
.meal-extra-head { text-align: center; max-width: 560px; margin: 0 auto 14px; }
.meal-extra-head .h3 { margin: 0 0 4px; }
.meal-extra-head p { margin: 0; }
.meal-extra-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.meal-card { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 6px; text-align: center; background: #fff; border: 1.5px solid #f3dc8b; border-radius: var(--r-md); padding: 16px 12px; min-height: 178px; }
.meal-card[hidden] { display: none; }
.meal-ico { font-size: 1.8rem; line-height: 1; }
.meal-name { color: var(--navy); font-size: 1rem; }
.meal-sub { color: #5b6474; font-size: .86rem; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--sky-200); border-radius: 999px; overflow: hidden; margin-top: 6px; }
.stepper button { width: 42px; height: 42px; border: 0; background: var(--sky); color: var(--navy); font-size: 1.3rem; font-weight: 700; cursor: pointer; }
.stepper button:hover { background: var(--sky-200); }
.stepper input { width: 52px; height: 42px; border: 0; text-align: center; font-weight: 700; font-size: 1.05rem; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.meal-note { text-align: center; margin: 14px 0 0; }
@media (max-width: 760px) { .student-row .student-meal { grid-column: 1 / -1; } .meal-extra-grid { grid-template-columns: minmax(0, 1fr); } .meal-card { min-height: 0; flex-direction: row; flex-wrap: wrap; text-align: left; } .meal-card .stepper { margin-left: auto; } }

/* ===== En images ===== */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.chip { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--sky-200); background: #fff; color: var(--navy); font-weight: 700; cursor: pointer; }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.gal-empty { text-align: center; padding: 40px 20px; }
.gal-carousel { position: relative; border-radius: 26px; overflow: hidden; background: var(--navy); margin-bottom: 28px; }
.gal-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.gal-track::-webkit-scrollbar { display: none; }
.gal-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; position: relative; aspect-ratio: 16 / 8; }
.gal-slide .gal-open, .gal-slide img { display: block; width: 100%; height: 100%; object-fit: cover; border: 0; padding: 0; background: none; cursor: zoom-in; }
.gal-slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 22px 18px; color: #fff; background: linear-gradient(transparent, rgba(4, 32, 92, .8)); font-weight: 600; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--navy); font-size: 1.8rem; line-height: 1; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.gal-nav.prev { left: 14px; } .gal-nav.next { right: 14px; }
.gal-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.gal-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); }
.gal-dots span.on { background: var(--yellow); width: 22px; border-radius: 99px; }
.gal-h { margin: 26px 0 14px; }
.gal-grid { columns: 3 240px; column-gap: 12px; }
.gal-cell { display: block; width: 100%; margin: 0 0 12px; padding: 0; border: 0; background: none; border-radius: 16px; overflow: hidden; cursor: zoom-in; break-inside: avoid; }
.gal-cell img { display: block; width: 100%; height: auto; transition: transform .3s; }
.gal-cell:hover img, .gal-cell:focus-visible img { transform: scale(1.03); }
.gal-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.gal-video p { margin: 8px 0 0; font-weight: 600; color: var(--navy); }
.gal-video-btn, .gal-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 18px; background: var(--navy) center / cover no-repeat; cursor: pointer; position: relative; }
.gal-play { position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; border-radius: 50%; background: var(--yellow); color: var(--yellow-ink); display: grid; place-items: center; font-size: 1.5rem; box-shadow: 0 8px 22px rgba(0,0,0,.3); }
.gal-lightbox { max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; padding: 0; border: 0; background: rgba(3, 12, 33, .94); color: #fff; }
.gal-lightbox[open] { display: flex; align-items: center; justify-content: center; }
.gal-lightbox::backdrop { background: rgba(3, 12, 33, .94); }
.gal-lightbox figure { margin: 0; max-width: 92vw; max-height: 88vh; text-align: center; }
.gal-lightbox img { max-width: 92vw; max-height: 80vh; object-fit: contain; border-radius: 10px; }
.gal-lightbox figcaption { margin-top: 10px; color: #d6def0; }
.lb-close { position: absolute; top: 14px; right: 18px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 1.8rem; cursor: pointer; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 2rem; cursor: pointer; }
.lb-nav.prev { left: 14px; } .lb-nav.next { right: 14px; }
@media (max-width: 700px) {
	.gal-slide { aspect-ratio: 4 / 3; }
	.gal-nav { width: 40px; height: 40px; font-size: 1.5rem; }
	.gal-grid { columns: 2 140px; column-gap: 8px; } .gal-cell { margin-bottom: 8px; border-radius: 12px; }
	.lb-nav { display: none; }
}
@media (prefers-reduced-motion: reduce) { .gal-track { scroll-behavior: auto; } .gal-cell img { transition: none; } }

/* Mon espace connecté */
[data-espace-link].is-connected { background: var(--mint-200); border-color: var(--green-900); color: var(--green-900); }
.espace-out { font-size: .82rem; font-weight: 700; color: var(--navy); margin-left: 6px; white-space: nowrap; }
.espace-page .container { max-width: 900px; }
/* Menu à 7 entrées : un peu plus serré sur les écrans moyens */
@media (min-width: 1321px) {
	.site-header .header-inner { max-width: 1440px; }
	.main-nav .menu { gap: 4px; }
	.main-nav a { padding: 0 .8em; font-size: .9rem; }
}
@media (min-width: 1321px) and (max-width: 1440px) { .brand-logo { width: 100px; } }

.r-empty { text-align: center; padding: 28px 16px !important; color: var(--navy); font-weight: 600; }
.r-villes { margin-bottom: 12px; }

/* Accueil 2.7 : compte à rebours des inscriptions, annonce générale, cartes « À venir », fenêtre M’avertir ---- */
.countdown-label { margin: 22px 0 -12px; font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-600); }
.tag-open {
	display: inline-block; margin-right: 6px; padding: .25em .75em; border-radius: var(--pill);
	background: var(--green-900); color: #fff; font-size: .72rem; letter-spacing: .08em; vertical-align: 1px;
}
.event.is-annonce .annonce-box p { font-size: 1.05rem; line-height: 1.6; }
.season-annonce { margin: 18px 0 20px; line-height: 1.55; }
.season-card.is-annonce .date-block.is-icone { gap: 6px; color: var(--navy); }
.season-card.is-annonce .date-block.is-icone svg { width: 34px; height: 34px; }
.season-card.is-annonce .date-block { background: #fff; }
.season-card.has-image { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--navy); }
.season-card.has-image::before {
	content: ""; position: absolute; inset: 0; z-index: -2;
	background: var(--card-img) center / cover no-repeat;
}
.season-card.has-image::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(180deg, rgba(4, 32, 92, .35) 0%, rgba(4, 32, 92, .82) 70%);
}
.season-card.has-image .season-label, .season-card.has-image .h3, .season-card.has-image .season-city { color: #fff; }
.season-card.has-image .season-when { color: rgba(255, 255, 255, .85); }
.season-card.has-image .date-block { background: rgba(255, 255, 255, .92); border: 0; }

.modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal:target, .modal.is-open { display: flex; }
.modal-fond { position: absolute; inset: 0; background: rgba(4, 32, 92, .55); backdrop-filter: blur(3px); }
.modal-boite {
	position: relative; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto;
	background: #fff; border-radius: var(--r-lg); padding: clamp(22px, 4vw, 34px); box-shadow: var(--shadow);
}
.modal-boite .h3 { color: var(--navy); margin: 4px 0 10px; }
.modal-boite .eyebrow { display: flex; align-items: center; gap: 6px; }
.modal-texte { color: var(--muted); margin: 0 0 16px; }
.modal-fermer {
	position: absolute; top: 12px; right: 14px; width: 40px; height: 40px; border-radius: 50%;
	display: grid; place-items: center; font-size: 1.6rem; line-height: 1; text-decoration: none; color: var(--navy); background: var(--sky);
}
.modal-fermer:hover { background: var(--sky-200); color: var(--navy); }
.avertir-form { display: grid; gap: 14px; }
.avertir-form .field { display: grid; gap: 6px; }
.avertir-choix { border: 0; padding: 0; margin: 0; }
.avertir-choix legend { font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.avertir-choix .check-card { margin-bottom: 8px; padding: 12px 16px; align-items: center; }
.avertir-form .btn { justify-self: start; }
.modal .notice { margin: 0 0 14px; }
