/* ================================================================
   KERMESSE ETERNELLE — Design System CSS
   Fete Villageoise d'Annecy-le-Vieux — COESPC
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700&family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,700;0,9..144,900;1,9..144,400&display=swap');

/* --- TOKENS --- */
:root {
  --bleu-logo: #051682;
  --or-logo: #F4B365;
  --ambre-fete: #D4760A;
  --or-girouette: #D4AF37;
  --rouge-guirlande: #C0392B;
  --vert-tilleul: #4A8C4F;
  --jaune-ballon: #E8B960;
  --bleu-lac: #5BA3C9;
  --corail-fleur: #E07A5F;
  --creme-lin: #FDF6E8;
  --papier-vieilli: #F0E6D0;
  --bois-chaud: #5C4A3A;
  --encre: #2C1F14;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.563rem;
  --text-3xl: 1.953rem;
  --text-4xl: 2.441rem;
  --text-5xl: 3.052rem;
  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 100px;
}

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--encre);
  background: var(--creme-lin);
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--bleu-logo);
  line-height: var(--leading-tight);
}
a { color: var(--ambre-fete); text-decoration: none; transition: color 0.2s; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; height: auto; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* --- SKIP LINK --- */
.skip-link {
  position: absolute; left: -9999px; top: auto;
  padding: 0.75rem 1.5rem; background: var(--ambre-fete); color: var(--creme-lin);
  font-weight: 700; border-radius: 0 0 var(--radius-md) var(--radius-md); z-index: 9999;
}
.skip-link:focus { left: 50%; transform: translateX(-50%); }

/* --- CONTAINER --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-8); }

/* --- HEADER --- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bleu-logo);
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.2); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 0;
}
.header-logo {
  display: flex; align-items: center; gap: var(--space-3);
  text-decoration: none;
}
.logo-img { border-radius: var(--radius-sm); }
.logo-text {
  font-family: var(--font-display); font-weight: 900;
  font-size: var(--text-lg); color: var(--or-logo);
  letter-spacing: 0.03em;
}
.nav-links {
  display: flex; align-items: center; gap: var(--space-1);
}
.nav-link {
  color: var(--or-logo); opacity: 0.8;
  font-size: var(--text-sm); font-weight: 500;
  padding: 0.5rem 0.75rem; border-radius: var(--radius-sm);
  transition: all 0.2s; text-decoration: none;
}
.nav-link:hover { opacity: 1; background: rgba(255,255,255,0.08); text-decoration: none; }
.nav-link.active { opacity: 1; background: rgba(255,255,255,0.12); }
.btn-cta-header {
  background: var(--ambre-fete); color: var(--creme-lin) !important;
  font-weight: 700; padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full); margin-left: var(--space-2);
  font-size: var(--text-sm); text-decoration: none;
  transition: background 0.2s, transform 0.1s; opacity: 1 !important;
}
.btn-cta-header:hover { background: #b8640a; transform: translateY(-1px); text-decoration: none; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--or-logo); border-radius: 2px;
  transition: all 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- FANIONS --- */
.fanions-banner {
  background: #030D5A; overflow: hidden;
  padding: 0; line-height: 0;
}
.fanions-track {
  display: flex; align-items: flex-start;
}
.fanion {
  width: 20px; height: 26px; flex-shrink: 0;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  animation: fanionSwing 3s ease-in-out infinite;
  transform-origin: top center;
}
.fanion:nth-child(2n) { animation-delay: 0.15s; }
.fanion:nth-child(3n) { animation-delay: 0.3s; }
.fanion:nth-child(5n) { animation-delay: 0.5s; }
@keyframes fanionSwing {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(4deg); }
}

/* --- HERO --- */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(170deg, #030D5A 0%, var(--bleu-logo) 40%, #0A2090 100%);
  color: #fff; position: relative; overflow: hidden; text-align: center;
  padding: var(--space-16) var(--space-8);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(244,179,101,0.12) 0%, transparent 60%);
}
.hero-mountain {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 0;
  pointer-events: none; width: 100%;
}
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero-badge {
  display: inline-block; font-size: var(--text-sm); font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--or-logo);
  border: 1px solid rgba(244,179,101,0.4); padding: 0.4em 1.2em;
  border-radius: var(--radius-full); margin-bottom: var(--space-8);
}
.hero-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.5rem, 6vw, var(--text-5xl));
  line-height: var(--leading-tight); color: var(--or-logo);
  margin-bottom: var(--space-4);
}
.hero-title em { font-style: italic; }
.hero-subtitle {
  font-size: var(--text-lg); color: var(--or-logo); opacity: 0.8;
  max-width: 560px; margin: 0 auto var(--space-8);
  line-height: var(--leading-relaxed);
}
.hero-date {
  display: inline-flex; align-items: center; gap: var(--space-2);
  color: var(--or-logo); font-weight: 600;
  border: 1px solid rgba(244,179,101,0.3); padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full); margin-bottom: var(--space-8);
}
.hero-date svg { color: var(--or-logo); flex-shrink: 0; }
.hero-actions { display: flex; gap: var(--space-4); justify-content: center; flex-wrap: wrap; }

/* --- PAGE HERO (shorter) --- */
.page-hero {
  background: linear-gradient(170deg, #030D5A 0%, var(--bleu-logo) 100%);
  color: #fff; text-align: center;
  padding: var(--space-24) var(--space-8) var(--space-16);
  position: relative;
}
.page-hero .hero-badge { margin-bottom: var(--space-6); }
.page-hero .hero-title {
  font-size: clamp(2rem, 5vw, var(--text-4xl));
  color: var(--or-logo); margin-bottom: var(--space-4);
}
.page-hero .hero-subtitle {
  color: var(--or-logo); opacity: 0.7; font-size: var(--text-lg);
  max-width: 600px; margin: 0 auto;
}

/* --- SECTIONS --- */
.section { padding: var(--space-16) 0; }
.section-alt { background: #fff; }
.section-dark {
  background: linear-gradient(170deg, var(--bleu-logo) 0%, #030D5A 100%);
  color: var(--or-logo);
}
.section-header {
  text-align: center; max-width: 600px; margin: 0 auto var(--space-12);
}
.section-tag {
  display: inline-block; font-size: var(--text-xs); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ambre-fete); background: rgba(212,118,10,0.08);
  padding: 0.4em 1em; border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}
.tag-light { color: var(--or-logo); background: rgba(244,179,101,0.15); }
.section-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.75rem, 4vw, var(--text-3xl));
  color: var(--bleu-logo); margin-bottom: var(--space-4);
}
.section-header-light .section-title,
.section-dark .section-title { color: var(--or-logo); }
.section-desc {
  color: var(--bois-chaud); font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
}
.section-header-light .section-desc { color: rgba(244,179,101,0.7); }

/* --- BUTTONS --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 2rem; border-radius: var(--radius-full);
  font-weight: 600; font-size: var(--text-sm); border: none;
  min-height: 44px; min-width: 44px;
  transition: all 0.2s; text-decoration: none;
  font-family: var(--font-body);
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary {
  background: var(--ambre-fete); color: var(--creme-lin);
  box-shadow: 0 4px 15px rgba(212,118,10,0.25);
}
.btn-primary:hover { background: #b8640a; box-shadow: 0 6px 25px rgba(212,118,10,0.35); color: var(--creme-lin); }
.btn-secondary {
  background: transparent; color: var(--or-logo);
  border: 1.5px solid rgba(244,179,101,0.4);
}
.btn-secondary:hover { background: rgba(244,179,101,0.1); border-color: var(--or-logo); color: var(--or-logo); }
.btn-cta { background: var(--rouge-guirlande); color: #fff; }
.btn-cta:hover { background: #a02f23; color: #fff; }
.btn-external { background: transparent; color: var(--ambre-fete); border: 1.5px solid var(--ambre-fete); }
.btn-external:hover { background: var(--ambre-fete); color: var(--creme-lin); }

/* --- CARDS --- */
.cards-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.card {
  background: #fff; border: 1px solid var(--papier-vieilli);
  border-radius: var(--radius-lg); padding: var(--space-8);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(5,22,130,0.06); }
.card-icon { font-size: 2.5rem; margin-bottom: var(--space-4); }
.card h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--text-xl); margin-bottom: var(--space-3);
}
.card p { color: var(--bois-chaud); line-height: var(--leading-normal); }

/* --- STATS --- */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8); text-align: center;
  padding: var(--space-8) 0;
}
.stat-number {
  display: block; font-family: var(--font-display); font-weight: 900;
  font-size: var(--text-4xl); color: var(--bleu-logo); line-height: 1;
}
.stat-label {
  font-size: var(--text-sm); color: var(--bois-chaud); margin-top: var(--space-2);
}

/* --- SOLIDARITE --- */
.solidarite-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-6); margin-bottom: var(--space-8);
}
.solidarite-block {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg); padding: var(--space-8);
  text-align: center;
}
.solidarite-fraction {
  display: block; font-family: var(--font-display); font-weight: 900;
  font-size: var(--text-4xl); color: var(--or-logo);
  margin-bottom: var(--space-4);
}
.solidarite-block h3 { color: var(--or-logo); margin-bottom: var(--space-3); font-size: var(--text-xl); }
.solidarite-block p { color: rgba(244,179,101,0.7); }
.solidarite-cta {
  text-align: center; color: var(--or-logo); opacity: 0.7;
  font-size: var(--text-lg); max-width: 600px; margin: 0 auto;
}

/* --- PARTNERS PREVIEW --- */
.partners-preview {
  display: flex; flex-wrap: wrap; gap: var(--space-4);
  justify-content: center;
}
.partner-logo-placeholder {
  background: #fff; border: 1px solid var(--papier-vieilli);
  border-radius: var(--radius-md); padding: var(--space-4) var(--space-6);
  font-size: var(--text-sm); font-weight: 500; color: var(--bois-chaud);
  min-width: 140px; text-align: center;
  transition: transform 0.2s;
}
.partner-logo-placeholder:hover { transform: scale(1.05); }

/* --- PARTNERS GRID (full page) --- */
.partners-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-4);
}
.partner-card {
  background: #fff; border: 1px solid var(--papier-vieilli);
  border-radius: var(--radius-lg); padding: var(--space-6);
  text-align: center; transition: transform 0.2s, box-shadow 0.2s;
}
.partner-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(5,22,130,0.05); }
.partner-card h4 { font-family: var(--font-display); font-size: var(--text-base); font-weight: 700; margin-bottom: var(--space-1); }
.partner-card p { font-size: var(--text-sm); color: var(--bois-chaud); }

/* --- ARCHIVES MOSAIC --- */
.archives-mosaic {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.archive-thumb {
  background: var(--bleu-logo); border-radius: var(--radius-lg);
  aspect-ratio: 3/4; display: flex; align-items: center; justify-content: center;
  text-decoration: none; transition: transform 0.2s, box-shadow 0.2s;
  position: relative; overflow: hidden;
}
.archive-thumb::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 70%, rgba(244,179,101,0.15) 0%, transparent 70%);
}
.archive-thumb:hover { transform: scale(1.03); box-shadow: 0 8px 30px rgba(5,22,130,0.2); text-decoration: none; }
.archive-year {
  font-family: var(--font-display); font-weight: 900;
  font-size: var(--text-3xl); color: var(--or-logo);
  position: relative; z-index: 1;
}

/* --- ARCHIVE CARDS (index page) --- */
.archive-card {
  display: flex; gap: var(--space-6); align-items: center;
  background: #fff; border: 1px solid var(--papier-vieilli);
  border-radius: var(--radius-lg); padding: var(--space-6);
  margin-bottom: var(--space-4);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none; color: inherit;
}
.archive-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(5,22,130,0.06); text-decoration: none; }
.archive-card-year {
  font-family: var(--font-display); font-weight: 900;
  font-size: var(--text-3xl); color: var(--ambre-fete);
  flex-shrink: 0; min-width: 80px; text-align: center;
}
.archive-card-content h3 { font-size: var(--text-lg); margin-bottom: var(--space-1); }
.archive-card-content p { font-size: var(--text-sm); color: var(--bois-chaud); }

/* --- ARCHIVE NAV (prev/next) --- */
.archive-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--space-8) 0; border-top: 1px solid var(--papier-vieilli);
}
.archive-nav a { font-weight: 600; color: var(--ambre-fete); }
.archive-nav a:hover { color: var(--bleu-logo); }

/* --- SOCIAL --- */
.social-links-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.social-card {
  display: flex; flex-direction: column; align-items: center;
  gap: var(--space-3); background: #fff; border: 1px solid var(--papier-vieilli);
  border-radius: var(--radius-lg); padding: var(--space-8);
  color: var(--bleu-logo); text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.social-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(5,22,130,0.06); text-decoration: none; }
.social-card span { font-size: var(--text-sm); font-weight: 500; }

/* --- TIMELINE --- */
.timeline { position: relative; max-width: 700px; margin: 0 auto; padding-left: 3rem; }
.timeline::before {
  content: ''; position: absolute; left: 11px; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, var(--bleu-logo), var(--ambre-fete), var(--or-girouette));
  border-radius: 2px;
}
.timeline-item { position: relative; margin-bottom: var(--space-8); }
.timeline-dot {
  position: absolute; left: -3rem; top: 1.2rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--ambre-fete); border: 3px solid var(--creme-lin);
  box-shadow: 0 0 0 3px var(--ambre-fete); transform: translateX(6px);
}
.timeline-card {
  background: #fff; border: 1px solid var(--papier-vieilli);
  border-radius: var(--radius-lg); padding: var(--space-6);
  transition: transform 0.2s, box-shadow 0.2s;
}
.timeline-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(5,22,130,0.06); }
.timeline-time {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--text-sm); color: var(--ambre-fete); margin-bottom: var(--space-1);
}
.timeline-card h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.timeline-card p { font-size: var(--text-sm); color: var(--bois-chaud); }

/* --- TABLES --- */
.data-table { width: 100%; border-collapse: collapse; margin: var(--space-6) 0; }
.data-table th {
  background: var(--bleu-logo); color: var(--or-logo);
  text-align: left; padding: 0.75rem 1rem;
  font-size: var(--text-sm); font-weight: 600;
}
.data-table th:first-child { border-radius: var(--radius-md) 0 0 0; }
.data-table th:last-child { border-radius: 0 var(--radius-md) 0 0; }
.data-table td {
  padding: 0.75rem 1rem; border-bottom: 1px solid var(--papier-vieilli);
  font-size: var(--text-sm); color: var(--bois-chaud);
}
.data-table tr:hover td { background: rgba(212,118,10,0.03); }

/* --- BLOCKQUOTE --- */
blockquote {
  border-left: 3px solid var(--ambre-fete);
  padding: var(--space-4) var(--space-6);
  background: rgba(212,118,10,0.04);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: var(--space-6) 0;
  font-family: var(--font-display); font-style: italic;
  font-size: var(--text-lg); color: var(--bois-chaud);
  line-height: var(--leading-relaxed);
}
blockquote cite {
  display: block; margin-top: var(--space-3);
  font-family: var(--font-body); font-style: normal;
  font-size: var(--text-sm); color: var(--ambre-fete); font-weight: 600;
}

/* --- CONTENT SECTIONS --- */
.content-section { margin-bottom: var(--space-12); }
.content-section h2 {
  font-size: var(--text-2xl); margin-bottom: var(--space-4);
  padding-bottom: var(--space-3); border-bottom: 2px solid var(--papier-vieilli);
}
.content-section h3 { font-size: var(--text-xl); margin-bottom: var(--space-3); margin-top: var(--space-6); }
.content-section p { margin-bottom: var(--space-4); color: var(--bois-chaud); line-height: var(--leading-relaxed); }

/* --- FOOTER --- */
.site-footer {
  background: var(--bleu-logo); color: var(--or-logo);
  padding: var(--space-16) 0 var(--space-6);
  position: relative;
}
.footer-mountain {
  position: absolute; top: 0; left: 0; right: 0;
  pointer-events: none; width: 100%;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1.5fr;
  gap: var(--space-12); padding-bottom: var(--space-8);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative;
}
.footer-brand h3 {
  font-family: var(--font-display); font-weight: 700;
  color: var(--or-girouette); font-size: var(--text-xl);
  margin: var(--space-4) 0 var(--space-2);
}
.footer-brand p { color: rgba(244,179,101,0.6); font-size: var(--text-sm); line-height: var(--leading-normal); }
.footer-location { font-weight: 500; color: rgba(244,179,101,0.8) !important; margin-top: var(--space-2); }
.footer-nav h4, .footer-contact h4 {
  color: var(--or-logo); font-family: var(--font-body);
  font-size: var(--text-xs); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
}
.footer-nav a, .footer-contact a {
  display: block; color: rgba(244,179,101,0.6);
  font-size: var(--text-sm); padding: var(--space-1) 0;
  transition: color 0.2s; text-decoration: none;
}
.footer-nav a:hover, .footer-contact a:hover { color: var(--or-logo); text-decoration: none; }
.footer-partners-logos {
  margin-top: var(--space-4); font-size: var(--text-xs);
  color: rgba(244,179,101,0.4);
}
.footer-partners-logos a { display: inline; padding: 0; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: var(--space-6); position: relative;
  font-size: var(--text-xs); color: rgba(244,179,101,0.3);
}
.footer-bottom a { color: rgba(244,179,101,0.4); }
.footer-bottom a:hover { color: var(--or-logo); }

/* --- UTILITIES --- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }

/* --- FADE IN --- */
.fade-in {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
    background: var(--bleu-logo); flex-direction: column;
    align-items: flex-start; padding: 5rem 2rem 2rem;
    gap: var(--space-1); transition: right 0.4s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,0.3); z-index: 200;
  }
  .nav-links.open { right: 0; }
  .nav-link { width: 100%; padding: 0.75rem 1rem; font-size: var(--text-base); }
  .btn-cta-header { margin-left: 0; margin-top: var(--space-4); width: 100%; text-align: center; }
  .nav-toggle { display: flex; z-index: 201; }

  .hero { min-height: 80vh; padding: var(--space-24) var(--space-4) var(--space-16); }
  .page-hero { padding: var(--space-16) var(--space-4) var(--space-12); }

  .cards-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
  .solidarite-grid { grid-template-columns: 1fr; }
  .archives-mosaic { grid-template-columns: repeat(2, 1fr); }
  .social-links-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .footer-bottom { flex-direction: column; gap: var(--space-2); text-align: center; }
  .archive-card { flex-direction: column; text-align: center; }
  .archive-nav { flex-direction: column; gap: var(--space-4); text-align: center; }

  .container { padding: 0 var(--space-4); }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .archives-mosaic { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 280px; }
}

/* --- REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .fade-in { opacity: 1; transform: none; }
}

/* --- PRINT --- */
@media print {
  .site-header, .fanions-banner, .site-footer, .nav-toggle, .btn { display: none; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .hero { min-height: auto; background: #fff; color: #000; padding: 1rem; }
  .hero-title, .section-title { color: #000; }
  a { color: #000; text-decoration: underline; }
  a[href]::after { content: ' (' attr(href) ')'; font-size: 0.8em; }
}
