/* ==========================================================================
   FC Riddes – thème WonderCMS
   Couleurs issues du logo 2025 (80 ans) : marine #2A3956, or #E3B335, blanc.
   ========================================================================== */

@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url("../fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); }

:root {
	--navy: #2a3956;
	--navy-700: #22304a;
	--navy-900: #161f33;
	--navy-100: #e6e9f0;
	--gold: #e3b335;
	--gold-600: #c99a1f;
	--gold-100: #fbf1d6;
	--paper: #f5f3ee;
	--white: #fff;
	--ink: #1b2335;
	--muted: #5c6579;
	--line: #dfe2e8;
	--radius: 14px;
	--radius-sm: 8px;
	--shadow: 0 1px 2px rgba(22, 31, 51, .06), 0 8px 24px rgba(22, 31, 51, .08);
	--shadow-lg: 0 2px 6px rgba(22, 31, 51, .08), 0 24px 48px rgba(22, 31, 51, .16);
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
	--wrap: 1200px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--gold-600); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 {
	font-family: var(--display);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: .01em;
	text-transform: uppercase;
	color: var(--navy);
	margin: 0 0 .5em;
	text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.55rem; font-weight: 700; }
h4 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: .5rem; z-index: 100; background: var(--gold); color: var(--navy-900); padding: .5rem 1rem; border-radius: var(--radius-sm); font-weight: 700; }
.skip:focus { left: .5rem; }

/* ---------- Barre supérieure ---------- */
.topbar { background: var(--navy-900); color: #c9cfdb; font-size: .82rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 38px; }
.topbar-item { display: inline-flex; align-items: center; gap: .45rem; }
.topbar svg { width: 16px; height: 16px; flex: none; }
.topbar-social { display: inline-flex; gap: .35rem; }
.topbar-social a { color: #c9cfdb; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; transition: color .2s, background .2s; }
.topbar-social a:hover { color: var(--navy-900); background: var(--gold); }

/* ---------- En-tête ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--navy);
	border-bottom: 3px solid var(--gold);
	transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(10, 16, 30, .25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 84px; transition: min-height .3s var(--ease); }
.is-scrolled .header-inner { min-height: 68px; }
.brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; color: var(--white); }
.brand img { width: 60px; height: 60px; transition: width .3s var(--ease), height .3s var(--ease); filter: drop-shadow(0 4px 10px rgba(0,0,0,.25)); }
.is-scrolled .brand img { width: 48px; height: 48px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.75rem; text-transform: uppercase; letter-spacing: .02em; }
.brand-sub { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-top: .3rem; font-weight: 600; }
.brand:hover { color: var(--white); }

.nav-list { list-style: none; display: flex; align-items: center; gap: .25rem; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-link {
	display: inline-flex; align-items: center; gap: .35rem;
	font: 700 1.12rem/1 var(--display); text-transform: uppercase; letter-spacing: .04em;
	color: var(--white); text-decoration: none;
	background: none; border: 0; cursor: pointer;
	padding: .8rem .85rem; border-radius: var(--radius-sm);
	transition: color .2s, background .2s;
}
.nav-link .chev { width: 12px; height: 12px; transition: transform .25s var(--ease); }
.nav-link:hover, .nav-item.is-active > .nav-link, .nav-link.is-active { color: var(--gold); }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }

.sub {
	position: absolute; top: calc(100% + 10px); left: 50%;
	min-width: 240px;
	background: var(--white);
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	padding: .6rem;
	display: flex; flex-direction: column;
	opacity: 0; visibility: hidden;
	transform: translate(-50%, 6px);
	transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.sub::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; }
.sub a { display: flex; justify-content: space-between; align-items: center; gap: .75rem; color: var(--ink); text-decoration: none; padding: .55rem .75rem; border-radius: var(--radius-sm); font-size: .95rem; font-weight: 500; }
.sub a:hover, .sub a.is-active { background: var(--gold-100); color: var(--navy); }
.sub a.is-active { font-weight: 700; }
.sub .ext { color: var(--muted); font-size: .8em; }
.sub-cols { flex-direction: row; gap: .5rem; min-width: 560px; padding: 1rem; }
.nav-col { flex: 1; display: flex; flex-direction: column; }
.nav-col + .nav-col { border-left: 1px solid var(--line); padding-left: .5rem; }
.nav-col-title { margin: 0 0 .35rem; padding: 0 .75rem; font: 700 .78rem/1.6 var(--font); text-transform: uppercase; letter-spacing: .12em; color: var(--gold-600); }
.nav-col-title a { padding: 0; color: inherit; display: inline; }
.nav-col-title a:hover { background: none; text-decoration: underline; }
.nav-link[aria-expanded="true"] + .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (hover: hover) and (min-width: 1061px) {
	.nav-item.has-sub:hover > .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
	.nav-item.has-sub:hover > .nav-link .chev { transform: rotate(180deg); }
}
.nav-item:last-child > .nav-link {
	background: var(--gold); color: var(--navy-900); margin-left: .5rem; padding-inline: 1.15rem;
}
.nav-item:last-child > .nav-link:hover, .nav-item:last-child > .nav-link.is-active { background: var(--white); color: var(--navy); }

.burger { display: none; width: 46px; height: 46px; border: 0; border-radius: var(--radius-sm); background: rgba(255,255,255,.08); cursor: pointer; padding: 12px 11px; flex-direction: column; justify-content: space-between; }
.burger span { display: block; height: 2px; background: var(--white); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-open .burger span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 1060px) {
	.burger { display: flex; }
	.site-nav {
		position: fixed; left: 0; right: 0; bottom: 0; top: var(--nav-top, 122px);
		background: var(--navy);
		overflow-y: auto;
		padding: 1rem 1.25rem 3rem;
		transform: translateX(100%);
		transition: transform .35s var(--ease);
	}
	.nav-open .site-nav { transform: none; }
	.nav-open { overflow: hidden; }
	.nav-list { flex-direction: column; align-items: stretch; gap: 0; }
	.nav-item { border-bottom: 1px solid rgba(255,255,255,.08); }
	.nav-link { width: 100%; justify-content: space-between; font-size: 1.45rem; padding: 1rem .25rem; }
	.nav-item:last-child { border: 0; margin-top: 1.25rem; }
	.nav-item:last-child > .nav-link { justify-content: center; margin: 0; }
	.sub, .sub-cols {
		position: static; transform: none; opacity: 1; visibility: visible;
		min-width: 0; box-shadow: none; background: transparent;
		display: none; padding: 0 0 1rem; flex-direction: column;
	}
	.nav-link[aria-expanded="true"] + .sub { display: flex; transform: none; }
	.sub a { color: #dfe4ee; font-size: 1.05rem; padding: .6rem .5rem; }
	.sub a:hover, .sub a.is-active { background: rgba(255,255,255,.06); color: var(--gold); }
	.nav-col + .nav-col { border: 0; padding: 0; margin-top: .75rem; }
	.nav-col-title { color: var(--gold); padding: 0 .5rem; }
	.sub::before { display: none; }
}

/* ---------- Héros (accueil) ---------- */
.hero {
	position: relative; isolation: isolate; overflow: hidden;
	color: var(--white);
	background: var(--navy-900) var(--hero-img) center 60% / cover no-repeat;
}
.hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		radial-gradient(1200px 500px at 85% 40%, rgba(227, 179, 53, .18), transparent 60%),
		linear-gradient(100deg, rgba(22, 31, 51, .96) 0%, rgba(42, 57, 86, .86) 45%, rgba(42, 57, 86, .45) 100%);
}
.hero-inner { display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 2rem; padding-block: clamp(4rem, 10vw, 8rem) clamp(5rem, 11vw, 9rem); }
.hero-text h1 { color: var(--white); font-size: clamp(3.4rem, 9vw, 7.2rem); line-height: .9; margin-bottom: .25em; }
.hero-text h1 em, .hero-text h1 span { font-style: normal; color: var(--gold); }
.hero-text .eyebrow { color: var(--gold); }
.hero-text p { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #dbe0ea; max-width: 34rem; }
.hero-badge { justify-self: center; position: relative; }
.hero-badge img { width: min(340px, 34vw); height: auto; filter: drop-shadow(0 30px 60px rgba(0,0,0,.45)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px) rotate(-1.5deg); } }
/* Bande fixe ; seul le texte défile. Deux groupes identiques : -50 % = un groupe exactement,
   la boucle est donc invisible. Chaque groupe (3 × 3 phrases) dépasse la largeur des grands écrans. */
.hero-stripe {
	position: absolute; left: 0; right: 0; bottom: 0;
	overflow: hidden;
	background: var(--gold); color: var(--navy-900);
	font: 800 1.15rem/1 var(--display); text-transform: uppercase; letter-spacing: .08em;
	padding: .8rem 0;
}
.stripe-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.stripe-group { display: flex; flex: none; }
.stripe-group span { white-space: nowrap; padding-right: 3rem; }
.stripe-group span::before { content: "★"; margin-right: 3rem; font-size: .8em; vertical-align: .1em; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .stripe-track, .hero-badge img { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 760px) {
	.hero-inner { grid-template-columns: 1fr; text-align: left; }
	.hero-badge { display: none; }
}

.eyebrow {
	display: inline-flex; align-items: center; gap: .6rem;
	font: 700 .8rem/1 var(--font); text-transform: uppercase; letter-spacing: .18em;
	color: var(--gold-600); margin: 0 0 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: currentColor; border-radius: 2px; }

/* ---------- En-tête de page ---------- */
.page-head {
	position: relative; overflow: hidden;
	background: var(--navy);
	color: var(--white);
	padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 6vw, 4rem);
}
.page-head::after {
	content: ""; position: absolute; right: -120px; top: 50%; width: 460px; height: 460px; transform: translateY(-50%);
	border: 3px solid rgba(227, 179, 53, .35); border-radius: 50%;
	box-shadow: 0 0 0 40px rgba(227, 179, 53, .06), 0 0 0 80px rgba(227, 179, 53, .04);
}
.page-head h1 { color: var(--white); margin: 0; position: relative; z-index: 1; }
.page-head .eyebrow { color: var(--gold); }

/* ---------- Corps des pages ---------- */
.page-body { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.page-body.has-aside { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 2.5rem; align-items: start; }
@media (max-width: 960px) { .page-body.has-aside { grid-template-columns: 1fr; } }
.page-aside { position: sticky; top: 110px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; }
.page-aside h3 { font-size: 1.35rem; }

.prose > *:first-child, .prose .editable > *:first-child { margin-top: 0; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 1.6rem; margin-bottom: .45rem; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px var(--gold-100); }
.prose img { border-radius: var(--radius); }
.prose blockquote { margin: 1.5rem 0; padding: 1rem 1.5rem; border-left: 4px solid var(--gold); background: var(--white); border-radius: 0 var(--radius) var(--radius) 0; }
.lead { font-size: 1.22rem; color: var(--muted); max-width: 46rem; }

/* ---------- Composants de contenu ---------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-alt { background: var(--white); }
.section-navy { background: var(--navy); color: #dbe0ea; }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.section-head h2 { margin: 0; }

.btn {
	display: inline-flex; align-items: center; gap: .5rem;
	font: 700 1.05rem/1 var(--display); text-transform: uppercase; letter-spacing: .06em;
	text-decoration: none; border-radius: 999px;
	padding: .95rem 1.6rem;
	background: var(--gold); color: var(--navy-900);
	border: 2px solid var(--gold);
	transition: transform .2s var(--ease), background .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); color: var(--navy-900); box-shadow: 0 10px 24px rgba(227, 179, 53, .35); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); box-shadow: none; }
.btn-navy { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn-navy:hover { color: var(--white); box-shadow: 0 10px 24px rgba(42, 57, 86, .3); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.75rem; }
.card h3 { margin-top: 0; }
.card-gold { background: var(--gold-100); box-shadow: none; border: 1px solid #f0dfae; }
.card-navy { background: var(--navy); color: #dbe0ea; }
.card-navy h3 { color: var(--white); }
.card-navy a { color: var(--gold); }
.card-link { display: block; text-decoration: none; color: inherit; transition: transform .25s var(--ease), box-shadow .25s; }
.card-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: inherit; }
.card-link .arrow { color: var(--gold-600); font-weight: 700; }

.price { display: inline-block; font: 800 1.9rem/1 var(--display); color: var(--navy); background: var(--gold); padding: .55rem 1rem; border-radius: var(--radius-sm); margin: .5rem 0 1rem; }
.price small { font-size: .55em; font-weight: 700; }

.mail-cta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; background: var(--navy); color: #dbe0ea; border-radius: var(--radius); padding: 1.5rem 1.75rem; margin-top: 2rem; }
.mail-cta h3 { color: var(--white); margin: 0 0 .25rem; }
.mail-cta p { margin: 0; }
.mail-cta .btn { margin-left: auto; }

.figure-stack { display: grid; gap: 1rem; }
.figure-stack img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }

/* Sponsors */
.sponsor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; }
.sponsor-grid a, .sponsor-grid span {
	display: grid; place-items: center; aspect-ratio: 3 / 2;
	background: var(--white); border-radius: var(--radius); border: 1px solid var(--line);
	padding: 1.1rem; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.sponsor-grid a:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold); }
.sponsor-grid img { max-height: 80px; width: auto; object-fit: contain; border-radius: 0; }

/* Équipe : photo + composition */
.team-photo { margin: 0 0 2rem; }
.team-photo img { display: block; width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.team-photo figcaption { font-size: .9rem; color: var(--muted); margin-top: .6rem; }
.roster { display: grid; gap: 1rem; }
.roster-row { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem 1.5rem; }
.roster-row h3 { display: flex; align-items: center; gap: .6rem; font-size: 1.25rem; margin: 0 0 .85rem; }
.roster-row h3::before { content: ""; width: 10px; height: 26px; background: var(--gold); border-radius: 3px; }
.prose .roster-row ol { list-style: none; counter-reset: p; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.prose .roster-row li {
	counter-increment: p; margin: 0; padding: .4rem .8rem .4rem .45rem;
	background: var(--paper); border-radius: 999px; font-size: .95rem; font-weight: 500;
	display: inline-flex; align-items: center; gap: .5rem;
}
.prose .roster-row li::before {
	content: counter(p); position: static;
	display: grid; place-items: center; width: 1.6rem; height: 1.6rem; flex: none;
	border-radius: 50%; background: var(--navy); color: var(--white);
	font: 700 .8rem/1 var(--font); box-shadow: none;
}

/* Comité */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.5rem; }
.person { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-align: center; padding-bottom: 1.25rem; }
.person img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 0; background: var(--navy-100); }
.person h3 { font-size: 1.45rem; margin: 1rem 1rem .25rem; line-height: 1; }
.person p { margin: 0 1rem; font-size: .92rem; color: var(--muted); }
.person .role { display: inline-block; margin-top: .35rem; color: var(--gold-600); font-weight: 600; }

/* Historique : frise */
.timeline { position: relative; margin: 2rem 0 3rem; padding-left: 2rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: .5rem; bottom: .5rem; width: 3px; background: linear-gradient(var(--gold), var(--navy)); border-radius: 3px; }
.tl-item { position: relative; margin-bottom: 1.25rem; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem 1.5rem; }
.tl-item::before { content: ""; position: absolute; left: calc(-2rem + 1px); top: 1.55rem; width: 15px; height: 15px; border-radius: 50%; background: var(--gold); border: 3px solid var(--paper); box-shadow: 0 0 0 2px var(--gold); }
.tl-date { font: 800 1.05rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--gold-600); margin: 0 0 .35rem; }
.tl-item h3 { margin: 0 0 .4rem; font-size: 1.4rem; }
.tl-item p:last-child { margin: 0; }

.presidents { display: grid; gap: .6rem; }
.presidents details { background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow); overflow: hidden; }
.presidents summary {
	list-style: none; cursor: pointer;
	display: grid; grid-template-columns: 9.5rem 1fr auto; gap: 1rem; align-items: center;
	padding: .9rem 1.25rem;
}
.presidents summary::-webkit-details-marker { display: none; }
.presidents summary::after { content: "+"; font: 700 1.4rem/1 var(--font); color: var(--gold-600); transition: transform .2s; }
.presidents details[open] summary::after { transform: rotate(45deg); }
.presidents .years { font: 800 1.1rem/1 var(--display); color: var(--gold-600); letter-spacing: .04em; }
.presidents .name { font: 700 1.3rem/1.1 var(--display); text-transform: uppercase; color: var(--navy); }
.presidents .details { padding: 0 1.25rem 1.1rem; border-top: 1px solid var(--line); font-size: .95rem; }
.presidents dl { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; margin: 1rem 0 .5rem; }
.presidents dt { color: var(--muted); }
.presidents dd { margin: 0; font-weight: 500; }
@media (max-width: 560px) { .presidents summary { grid-template-columns: 1fr auto; } .presidents .years { grid-column: 1; } .presidents .name { grid-column: 1; } .presidents summary::after { grid-row: 1 / 3; grid-column: 2; } }

/* Galerie d'archives */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.gallery figure { margin: 0; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.gallery a { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--navy-100); }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .5s var(--ease); display: block; }
.gallery a:hover img { transform: scale(1.05); }
.gallery figcaption { padding: .8rem 1rem; font-size: .92rem; font-weight: 600; color: var(--navy); }
.gallery figcaption b, .gallery figcaption strong { color: var(--gold-600); font-family: var(--display); font-size: 1.15rem; margin-right: .35rem; }

/* Documents */
.doc-list { display: grid; gap: 1rem; }
.doc {
	display: grid; grid-template-columns: auto 1fr auto; gap: 1.25rem; align-items: center;
	background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
	padding: 1.25rem 1.5rem; text-decoration: none; color: inherit;
	transition: transform .25s var(--ease), box-shadow .25s;
}
.doc:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: inherit; }
.doc-year { font: 800 1.6rem/1 var(--display); color: var(--navy); background: var(--gold); border-radius: var(--radius-sm); padding: .6rem .75rem; }
.doc strong { display: block; font-size: 1.08rem; color: var(--navy); }
.doc span.desc { color: var(--muted); font-size: .95rem; }
.doc .dl { font-weight: 700; color: var(--gold-600); white-space: nowrap; }
@media (max-width: 560px) { .doc { grid-template-columns: auto 1fr; } .doc .dl { grid-column: 2; } }

/* Contact */
.info-list { display: grid; gap: 1rem; }
.info-list .card { display: grid; grid-template-columns: 48px 1fr; gap: 1rem; align-items: start; }
.info-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--gold-100); color: var(--gold-600); display: grid; place-items: center; font-size: 1.35rem; }
.info-list h3 { font-size: 1.25rem; margin: 0 0 .2rem; }
.info-list p { margin: 0; }
.map { border: 0; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Widgets football.ch */
iframe.sfvFullHeight { width: 100%; min-height: 520px; border: 0; display: block; }

/* Bandeau Instagram */
.insta-band {
	position: relative; overflow: hidden;
	background: linear-gradient(120deg, var(--navy) 0%, var(--navy-900) 100%);
	color: #dbe0ea; border-radius: calc(var(--radius) + 6px);
	padding: clamp(2rem, 5vw, 3.5rem);
	display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center;
}
.insta-band::after { content: ""; position: absolute; right: -60px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; border: 40px solid rgba(227, 179, 53, .12); }
.insta-band h2 { color: var(--white); margin: 0 0 .5rem; }
.insta-band p { margin: 0; max-width: 36rem; }
.insta-band .btn { position: relative; z-index: 1; }
@media (max-width: 700px) { .insta-band { grid-template-columns: 1fr; } }

/* Chiffres clés */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.stat { border-left: 3px solid var(--gold); padding: .25rem 0 .25rem 1rem; }
.stat b { display: block; font: 800 2.6rem/1 var(--display); color: var(--navy); }
.section-navy .stat b { color: var(--gold); }
.stat span { font-size: .9rem; color: var(--muted); }
.section-navy .stat span { color: #b8c0d0; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy-900); color: #b8c0d0; font-size: .95rem; margin-top: 0; }
.footer-top { display: grid; grid-template-columns: 220px 1fr; gap: 3rem; padding-block: 4rem 3rem; }
.footer-brand img { width: 96px; height: 96px; }
.footer-motto { font: 800 1.6rem/1 var(--display); text-transform: uppercase; color: var(--white); margin-top: 1rem; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.site-footer h4 { color: var(--gold); font-size: 1.1rem; letter-spacing: .08em; margin-bottom: .9rem; }
.site-footer a { color: #e4e8f0; text-decoration-color: rgba(227, 179, 53, .6); }
.site-footer a:hover { color: var(--gold); }
.site-footer p { margin: 0 0 .6rem; }
.site-footer dl { display: grid; grid-template-columns: max-content 1fr; gap: .3rem .9rem; margin: 0; }
.site-footer dt { color: #8d97ab; }
.site-footer dd { margin: 0; color: #e4e8f0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.1rem; }
.to-top { text-decoration: none; }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; gap: 2rem; } .topbar-item { font-size: .75rem; } }
@media (max-width: 520px) { .topbar-item { display: none; } .topbar-inner { justify-content: flex-end; } .brand-name { font-size: 1.45rem; } .brand img { width: 50px; height: 50px; } }

/* ---------- Visionneuse ---------- */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(12, 17, 29, .94); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; padding: 1rem; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-height: 84vh; max-width: 100%; border-radius: var(--radius-sm); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox figcaption { color: #dbe0ea; margin-top: .75rem; font-weight: 600; }
.lightbox button { background: rgba(255,255,255,.1); color: var(--white); border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: var(--gold); color: var(--navy-900); }
.lb-close { position: absolute; top: 1rem; right: 1rem; }
.lb-open { overflow: hidden; }

/* ---------- Mode édition (connecté) ---------- */
.is-admin .editable { outline: 2px dashed rgba(227, 179, 53, .7); outline-offset: 6px; border-radius: 4px; min-height: 2rem; }
.is-admin .hero .editable { outline-color: rgba(255, 255, 255, .5); }
.is-admin .site-header { position: relative; }
.is-admin .stripe-track { animation: none; }

/* ---------- Ajustements ---------- */
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.prose .eyebrow + h2, .prose .eyebrow + h3 { margin-top: 0; }
.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1rem; }
@media (max-width: 420px) { .brand-sub { display: none; } }

/* Boutons posés sur fond marine : le style des liens de la carte ne doit pas les écraser */
.card-navy a.btn, .site-footer a.btn { color: var(--navy-900); }
.card-navy a.btn-ghost { color: var(--white); }
.card-navy a.btn-ghost:hover { color: var(--navy); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Accueil : matchs + fil Instagram ---------- */
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 2.5rem; align-items: start; }
@media (max-width: 1000px) { .home-grid { grid-template-columns: 1fr; } }
.home-block + .home-block { margin-top: 3rem; }
.home-block h2 { margin-bottom: 1.25rem; }
.home-block .card { padding: 1rem; }
.home-block > p:last-child { margin-top: 1rem; font-size: .95rem; color: var(--muted); }
.home-insta, .insta-box { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; }
.home-insta { position: sticky; top: 110px; }
.contact-social { display: grid; gap: 1.5rem; }
.insta-box .insta-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 420px) { .insta-box .insta-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 1000px) { .home-insta { position: static; } }
.insta-head { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.25rem; }
.insta-head h2 { font-size: 1.6rem; margin: 0; }
.insta-head a { font-weight: 600; text-decoration: none; }
.insta-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: var(--white); background: linear-gradient(45deg, #f9b233, #e4405f 45%, #8a3ab9); flex: none; }
.insta-icon svg { width: 26px; height: 26px; }
.insta-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; margin-bottom: 1.25rem; }
@media (max-width: 1000px) and (min-width: 560px) { .insta-grid { grid-template-columns: repeat(3, 1fr); } }
.insta-grid a { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-sm); background: var(--navy-100); }
.insta-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .4s var(--ease); }
.insta-grid a:hover img { transform: scale(1.06); }
.insta-cap { position: absolute; inset: auto 0 0; padding: 1.5rem .6rem .5rem; font-size: .75rem; line-height: 1.3; color: var(--white); background: linear-gradient(transparent, rgba(22, 31, 51, .9)); opacity: 0; transition: opacity .25s; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.insta-grid a:hover .insta-cap, .insta-grid a:focus-visible .insta-cap { opacity: 1; }
.insta-grid a.is-video::after { content: "▶"; position: absolute; top: .4rem; right: .5rem; color: var(--white); font-size: .8rem; text-shadow: 0 1px 4px rgba(0,0,0,.6); }

/* Liens de texte posés sur fond marine (bandeaux e-mail, sections et cartes marine) */
.mail-cta a:not(.btn), .section-navy a:not(.btn), .insta-band a:not(.btn) { color: var(--gold); }
.mail-cta a:not(.btn):hover, .section-navy a:not(.btn):hover, .insta-band a:not(.btn):hover { color: var(--white); }

/* Histoires du club (page « La 3e mi-temps ») : photo + texte, en alternance */
.stories { display: grid; gap: 1.5rem; margin-top: 2rem; }
.story { display: grid; grid-template-columns: 260px 1fr; gap: clamp(1.25rem, 3vw, 2.25rem); align-items: center; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem; }
.story > img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); display: block; }
body:not(.is-admin) .story > img { cursor: zoom-in; }
.story:nth-child(even) { grid-template-columns: 1fr 260px; }
.story:nth-child(even) > img { order: 2; }
.story-date { margin: 0 0 .25rem; font-family: var(--display); font-size: 1.15rem; font-weight: 700; color: var(--gold-600); }
.story-text h3 { margin-top: 0; }
.story-author { margin-bottom: 0; color: var(--muted); font-size: .95rem; }
.story-author strong { color: var(--navy); }
@media (max-width: 700px) {
	.story, .story:nth-child(even) { grid-template-columns: 1fr; }
	.story:nth-child(even) > img { order: 0; }
}
