/* ============================================================
   FSE37 — Collectif Laïcité 37 — Style principal
   ============================================================ */

/* === Variables === */
:root {
  --bleu:        #002395;
  --bleu-dark:   #001570;
  --bleu-med:    #003DA5;
  --bleu-light:  #4A7FD4;
  --bleu-pale:   #E8EFFF;
  --bleu-fog:    rgba(0,35,149,0.05);

  --or:          #C9A227;
  --or-dark:     #9C7B15;
  --or-light:    #E4C55A;
  --or-pale:     #FBF5DC;
  --or-fog:      rgba(201,162,39,0.10);

  --rouge:       #C1121F;
  --rouge-light: #E84855;
  --rouge-pale:  #FFF0F0;

  --blanc:       #FFFFFF;
  --gris-light:  #F7F8FC;
  --gris:        #EDEEF5;
  --gris-mid:    #D8DBEC;
  --gris-dark:   #8A92B2;

  --text:        #0B0E24;
  --text-light:  #3D4A6B;
  --text-muted:  #6B7599;

  --success:     #1a6e42;
  --success-bg:  #d4edda;
  --error:       #b91c1c;
  --error-bg:    #fee2e2;

  --font-h: 'Playfair Display', Georgia, serif;
  --font-b: 'Inter', system-ui, -apple-system, sans-serif;

  --r-xs:   2px;
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-xl:   32px;
  --r-full: 9999px;

  --sh-sm:  0 1px 4px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
  --sh-md:  0 4px 16px rgba(0,0,0,.09), 0 2px 6px rgba(0,0,0,.05);
  --sh-lg:  0 12px 40px rgba(0,0,0,.13), 0 4px 12px rgba(0,0,0,.07);
  --sh-bleu: 0 4px 24px rgba(0,35,149,.22);
  --sh-or:   0 4px 20px rgba(201,162,39,.24);

  --t:      0.25s ease;
  --t-slow: 0.45s ease;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-b);
  color: var(--text);
  background: var(--blanc);
  line-height: 1.65;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* === Accessibility === */
.skip-link {
  position: absolute; top: -100%; left: 50%; transform: translateX(-50%);
  background: var(--bleu); color: var(--blanc); padding: 0.5rem 1.5rem;
  border-radius: 0 0 var(--r-md) var(--r-md); font-size: 0.875rem;
  transition: top var(--t); z-index: 9999;
}
.skip-link:focus { top: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* === Typography helpers === */
h1, h2, h3, h4 { font-family: var(--font-h); line-height: 1.2; }

.eyebrow {
  font-size: 0.7375rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--or-dark);
  display: flex; align-items: center; gap: 0.6rem;
}
.eyebrow::before, .eyebrow::after {
  content: ''; flex: 1; max-width: 36px; height: 1px; background: var(--or);
}
.eyebrow.center { justify-content: center; }

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.625rem); font-weight: 700;
  color: var(--bleu-dark); margin-top: 0.5rem; line-height: 1.15;
}
.section-subtitle {
  font-size: 1.0625rem; color: var(--text-light);
  margin-top: 0.875rem; line-height: 1.8; max-width: 62ch;
}

/* === Navigation === */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(14px);
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(to right, var(--bleu) 33.3%, var(--blanc) 33.3% 66.6%, var(--rouge) 66.6%) 1;
  transition: box-shadow var(--t);
}
.site-nav.scrolled { box-shadow: var(--sh-md); }

.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.875rem 1.5rem; gap: 1rem;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.75rem; text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-mark { width: 38px; height: 38px; flex-shrink: 0; }
.nav-logo-text strong {
  display: block; font-family: var(--font-h); font-size: 1rem;
  font-weight: 700; color: var(--bleu-dark); line-height: 1.1;
}
.nav-logo-text span {
  font-size: 0.625rem; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase;
}
.nav-links {
  display: flex; align-items: center; gap: 0.125rem; flex: 1; justify-content: center;
}
.nav-links a {
  padding: 0.45rem 0.8rem; font-size: 0.9rem; font-weight: 500;
  color: var(--text-light); border-radius: var(--r-sm);
  transition: color var(--t), background var(--t); white-space: nowrap;
}
.nav-links a:hover { color: var(--bleu); background: var(--bleu-pale); }

.nav-fm-btn {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 1rem; font-size: 0.8375rem; font-weight: 600;
  color: var(--or-dark); border: 1.5px solid var(--or);
  border-radius: var(--r-full); background: var(--or-pale);
  transition: all var(--t); white-space: nowrap; flex-shrink: 0;
}
.nav-fm-btn:hover {
  background: var(--or); color: var(--blanc);
  box-shadow: var(--sh-or); transform: translateY(-1px);
}

.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 6px; border-radius: var(--r-sm);
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px; transition: all var(--t);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === Hero === */
.hero {
  background: linear-gradient(140deg, var(--bleu-dark) 0%, var(--bleu) 55%, #003DA5 100%);
  position: relative; overflow: hidden; padding: 5.5rem 1.5rem 9rem;
}
.hero::before {
  content: ''; position: absolute; inset: 0; opacity: 1;
  background-image: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.03) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(201,162,39,0.06) 0%, transparent 40%);
}
.hero-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  align-items: center; position: relative; z-index: 1;
}
.hero-content { color: var(--blanc); }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(201,162,39,0.18); border: 1px solid rgba(201,162,39,0.45);
  color: var(--or-light); font-size: 0.775rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.4rem 1rem; border-radius: var(--r-full); margin-bottom: 1.5rem;
}
.hero-badge-dot {
  width: 6px; height: 6px; background: var(--or-light); border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.6); }
}

.hero h1 {
  font-size: clamp(2.125rem, 4.5vw, 4rem); font-weight: 800;
  line-height: 1.08; color: var(--blanc); margin-bottom: 0.5rem;
}
.hero h1 .pre-title {
  display: block; font-family: var(--font-b); font-size: 0.35em; font-weight: 400;
  font-style: normal; color: rgba(255,255,255,0.6);
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.5rem;
}
.hero h1 em { font-style: italic; color: var(--or-light); }

.hero-divider {
  width: 56px; height: 3px; margin: 1.375rem 0;
  background: linear-gradient(to right, var(--or), var(--or-light));
  border-radius: 2px;
}
.hero-desc {
  font-size: 1.0625rem; color: rgba(255,255,255,0.82);
  line-height: 1.78; max-width: 50ch; margin-bottom: 2rem;
}
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.25rem;
}
.hero-chip {
  display: flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.18);
  color: var(--blanc); font-size: 0.875rem; font-weight: 500;
  padding: 0.4rem 0.875rem; border-radius: var(--r-full); backdrop-filter: blur(4px);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-svg {
  width: 100%; max-width: 500px;
  filter: drop-shadow(0 20px 60px rgba(0,0,0,0.3));
  animation: float-hero 9s ease-in-out infinite;
}
@keyframes float-hero {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-14px); }
}

.hero-wave {
  position: absolute; bottom: -1px; left: 0; right: 0; line-height: 0;
}
.hero-wave svg { width: 100%; height: auto; display: block; }

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.875rem 1.875rem; font-size: 0.9375rem; font-weight: 600;
  border-radius: var(--r-full); transition: all var(--t);
  cursor: pointer; border: none; text-decoration: none; line-height: 1;
}
.btn-primary {
  background: var(--or); color: var(--bleu-dark); box-shadow: var(--sh-or);
}
.btn-primary:hover {
  background: var(--or-light); transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201,162,39,.38);
}
.btn-ghost {
  background: rgba(255,255,255,0.11); color: var(--blanc);
  border: 1.5px solid rgba(255,255,255,0.28); backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }
.btn-bleu {
  background: var(--bleu); color: var(--blanc); box-shadow: var(--sh-bleu);
}
.btn-bleu:hover { background: var(--bleu-dark); transform: translateY(-2px); }
.btn-gold {
  background: linear-gradient(135deg, var(--or) 0%, var(--or-light) 100%);
  color: var(--bleu-dark); font-weight: 700; box-shadow: var(--sh-or);
}
.btn-gold:hover {
  filter: brightness(1.08); transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,162,39,.42);
}
.btn-submit {
  width: 100%; padding: 1rem 2rem; font-size: 1rem;
  background: var(--bleu); color: var(--blanc); box-shadow: var(--sh-bleu);
}
.btn-submit:hover { background: var(--bleu-dark); transform: translateY(-1px); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-submit.loading { pointer-events: none; }
.btn-submit .spinner { display: none; }
.btn-submit.loading .spinner { display: block; }

.spinner {
  width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.35);
  border-top-color: var(--blanc); border-radius: 50%;
  animation: spin 0.7s linear infinite; flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === Section base === */
.section { padding: 5rem 1.5rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header .section-subtitle { margin: 0.875rem auto 0; }

/* === Principes (Le Projet) === */
.section-principes { background: var(--gris-light); }

.principes-intro {
  max-width: 72ch; margin: 0 auto 3rem; text-align: center;
}
.principes-intro p {
  font-size: 1.0625rem; color: var(--text-light); line-height: 1.82;
}

.principes-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.principe-card {
  background: var(--blanc); border-radius: var(--r-lg);
  padding: 2.25rem 1.75rem; text-align: center;
  box-shadow: var(--sh-sm); border: 1px solid var(--gris-mid);
  transition: transform var(--t), box-shadow var(--t);
  position: relative; overflow: hidden;
}
.principe-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
}
.principe-card.bleu::before { background: var(--bleu); }
.principe-card.blanc::before { background: var(--gris-mid); }
.principe-card.rouge::before { background: var(--rouge); }
.principe-card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }

.principe-icon {
  width: 68px; height: 68px; margin: 0 auto 1.375rem;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.principe-card.bleu .principe-icon { background: var(--bleu-pale); color: var(--bleu); }
.principe-card.blanc .principe-icon { background: var(--gris); color: var(--text-light); }
.principe-card.rouge .principe-icon { background: var(--rouge-pale); color: var(--rouge); }

.principe-card h3 {
  font-size: 1.25rem; font-weight: 700; color: var(--bleu-dark); margin-bottom: 0.75rem;
}
.principe-card p { font-size: 0.9375rem; color: var(--text-light); line-height: 1.72; }

/* === Timeline / Repères historiques === */
.section-timeline { background: var(--blanc); }
.timeline-grid {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 4.5rem; align-items: start;
}
.stats-col { display: flex; flex-direction: column; gap: 1.25rem; }
.stat-card {
  background: var(--gris-light); border-radius: var(--r-lg);
  padding: 1.5rem 1.5rem 1.5rem 1.75rem;
  display: flex; align-items: flex-start; gap: 1.25rem;
  border-left: 3px solid var(--bleu); transition: transform var(--t);
}
.stat-card:nth-child(even) { border-left-color: var(--or); }
.stat-card:hover { transform: translateX(5px); }
.stat-num {
  font-family: var(--font-h); font-size: 2.375rem; font-weight: 800;
  color: var(--bleu); line-height: 1; white-space: nowrap; flex-shrink: 0;
}
.stat-card:nth-child(even) .stat-num { color: var(--or-dark); }
.stat-body strong {
  display: block; font-size: 0.9375rem; font-weight: 600; color: var(--text); margin-bottom: 0.25rem;
}
.stat-body p { font-size: 0.8375rem; color: var(--text-muted); line-height: 1.6; }

.history-timeline { position: relative; padding-left: 1.75rem; }
.history-timeline::before {
  content: ''; position: absolute; left: 0; top: 4px; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, var(--bleu) 0%, var(--or) 50%, var(--rouge) 100%);
  border-radius: 2px;
}
.history-event { position: relative; padding-bottom: 2rem; }
.history-event:last-child { padding-bottom: 0; }
.history-event::before {
  content: ''; position: absolute; left: -1.875rem; top: 4px;
  width: 13px; height: 13px; background: var(--blanc);
  border: 2.5px solid var(--bleu); border-radius: 50%;
  box-shadow: 0 0 0 2px var(--bleu-pale);
}
.history-event.key::before { background: var(--bleu); }
.history-year {
  font-family: var(--font-h); font-size: 0.95rem; font-weight: 700;
  color: var(--bleu); margin-bottom: 0.2rem;
}
.history-event h4 { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 0.25rem; }
.history-event p { font-size: 0.875rem; color: var(--text-light); line-height: 1.65; }

/* === Collectif (fond sombre) === */
.section-collectif {
  background: linear-gradient(140deg, var(--bleu-dark) 0%, #001A80 100%);
  color: var(--blanc); position: relative; overflow: hidden;
}
.section-collectif::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(201,162,39,0.07) 0%, transparent 60%);
}
.collectif-grid {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 5rem;
  align-items: center; position: relative; z-index: 1;
}
.collectif-emblem {
  display: flex; flex-direction: column; align-items: center; gap: 1.5rem;
}
.collectif-emblem-svg { width: 160px; height: 160px; }
.collectif-emblem-name {
  text-align: center; font-family: var(--font-h); font-size: 1.125rem;
  font-weight: 700; color: var(--or-light); line-height: 1.4;
}
.collectif-emblem-sub {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: rgba(255,255,255,0.4); margin-top: 0.25rem;
}
.tricolore-strip {
  display: flex; height: 3px; width: 80px; border-radius: 2px; overflow: hidden; margin-top: 1rem;
}
.tricolore-strip span:nth-child(1) { flex:1; background: var(--bleu-light); }
.tricolore-strip span:nth-child(2) { flex:1; background: var(--blanc); }
.tricolore-strip span:nth-child(3) { flex:1; background: var(--rouge-light); }

.collectif-text .eyebrow { color: var(--or-light); }
.collectif-text .eyebrow::before,
.collectif-text .eyebrow::after { background: var(--or); }
.collectif-text .section-title { color: var(--blanc); }
.collectif-text .section-subtitle { color: rgba(255,255,255,0.72); }
.collectif-text p {
  font-size: 0.9875rem; color: rgba(255,255,255,0.72); line-height: 1.85; margin-top: 1rem;
}
.collectif-valeurs {
  display: flex; flex-wrap: wrap; gap: 0.625rem; margin-top: 1.75rem;
}
.valeur-tag {
  padding: 0.35rem 0.875rem; background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18); border-radius: var(--r-full);
  font-size: 0.8rem; font-weight: 600; color: rgba(255,255,255,0.8);
  letter-spacing: 0.03em;
}

/* === Documentaire === */
.section-documentaire { background: var(--gris-light); }
.doc-grid { display: grid; grid-template-columns: 2fr 3fr; gap: 4rem; align-items: center; }

.doc-poster {
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-lg);
  aspect-ratio: 2/3; position: relative;
  background: linear-gradient(160deg, var(--bleu-dark) 0%, var(--bleu) 60%, var(--bleu-med) 100%);
  display: flex; align-items: center; justify-content: center; padding: 2rem;
}
.doc-poster-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,0.5) 100%);
}
.doc-poster-inner {
  position: relative; z-index: 1; text-align: center; color: var(--blanc);
  width: 100%;
}
.doc-poster-category {
  font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin-bottom: 0.75rem;
}
.doc-poster-stripe {
  width: 100%; height: 2px; margin: 0.875rem 0;
  background: linear-gradient(to right, var(--bleu-light), var(--blanc), var(--rouge-light));
}
.doc-poster-title {
  font-family: var(--font-h); font-size: 2.25rem; font-weight: 800; line-height: 1.05;
}
.doc-poster-title em { display: block; font-style: italic; color: var(--or-light); font-size: 0.7em; }
.doc-poster-badge {
  display: inline-block; background: var(--or); color: var(--bleu-dark);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0.25rem 0.75rem; border-radius: var(--r-full); margin-top: 1.25rem;
}
.doc-poster-symbol {
  position: absolute; bottom: 1.5rem; right: 1.5rem; opacity: 0.2;
}

.doc-content { display: flex; flex-direction: column; gap: 1rem; }
.doc-content .section-title { text-align: left; }
.doc-content > p { font-size: 1rem; color: var(--text-light); line-height: 1.82; }
.doc-themes { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 0.5rem; }
.doc-theme {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1rem 1.125rem; background: var(--blanc);
  border-radius: var(--r-md); border: 1px solid var(--gris-mid);
}
.doc-theme-icon {
  flex-shrink: 0; width: 38px; height: 38px;
  background: var(--bleu-pale); border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center; color: var(--bleu);
}
.doc-theme strong { display: block; font-size: 0.9rem; font-weight: 600; color: var(--text); margin-bottom: 0.2rem; }
.doc-theme span { font-size: 0.8125rem; color: var(--text-muted); }

/* === Événement === */
.section-evenement { background: var(--blanc); }
.evenement-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 4rem; align-items: start;
}
.programme { display: flex; flex-direction: column; gap: 0; position: relative; }
.programme::before {
  content: ''; position: absolute; left: 3.25rem; top: 1.5rem; bottom: 1.5rem;
  width: 2px; background: var(--gris-mid); border-radius: 2px;
}
.prog-item {
  display: flex; gap: 1.25rem; align-items: flex-start; padding: 1.125rem 0;
  position: relative;
}
.prog-time {
  flex-shrink: 0; width: 3.5rem; text-align: right; padding-right: 0; padding-top: 1px;
  font-family: var(--font-h); font-size: 0.875rem; font-weight: 700; color: var(--bleu);
}
.prog-dot-wrap {
  flex-shrink: 0; width: 1.5rem; display: flex; justify-content: center;
  padding-top: 4px; position: relative; z-index: 1;
}
.prog-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--blanc); border: 2.5px solid var(--bleu-light);
}
.prog-item.main .prog-dot { background: var(--bleu); border-color: var(--bleu); }
.prog-item.main .prog-time { color: var(--bleu-dark); }
.prog-body { flex: 1; padding-top: 0; }
.prog-body h4 { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 0.2rem; }
.prog-body p { font-size: 0.8375rem; color: var(--text-light); line-height: 1.6; }

.info-card {
  background: var(--bleu-dark); color: var(--blanc);
  border-radius: var(--r-lg); padding: 2rem; box-shadow: var(--sh-lg);
  position: sticky; top: 100px;
}
.info-card h3 {
  font-family: var(--font-h); font-size: 1.125rem; font-weight: 700;
  color: var(--or-light); margin-bottom: 1.375rem;
  padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.info-items { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.75rem; }
.info-item { display: flex; align-items: flex-start; gap: 0.875rem; }
.info-item-icon {
  flex-shrink: 0; width: 36px; height: 36px;
  background: rgba(255,255,255,0.1); border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center; color: var(--or-light);
}
.info-item strong {
  display: block; font-size: 0.7375rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: rgba(255,255,255,0.45); margin-bottom: 0.2rem;
}
.info-item span { font-size: 0.9375rem; color: var(--blanc); font-weight: 500; }
.info-card .btn-primary { width: 100%; }

/* === Inscription === */
.section-inscription { background: var(--gris-light); }
.form-container {
  background: var(--blanc); border-radius: var(--r-xl);
  box-shadow: var(--sh-lg); padding: 2.75rem;
  max-width: 720px; margin: 0 auto; border: 1px solid var(--gris-mid);
}
.form-head {
  display: flex; align-items: flex-start; gap: 1rem;
  margin-bottom: 2.25rem; padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--gris);
}
.form-head-icon {
  flex-shrink: 0; width: 50px; height: 50px;
  background: var(--bleu-pale); border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center; color: var(--bleu);
}
.form-head-text h3 {
  font-family: var(--font-h); font-size: 1.375rem; font-weight: 700;
  color: var(--bleu-dark); margin-bottom: 0.25rem;
}
.form-head-text p { font-size: 0.875rem; color: var(--text-muted); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; margin-bottom: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.375rem; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 0.8375rem; font-weight: 600; color: var(--text-light); letter-spacing: 0.01em;
}
.req { color: var(--rouge); }
.field input, .field select, .field textarea {
  padding: 0.75rem 1rem; font-size: 0.9375rem;
  border: 1.5px solid var(--gris-mid); border-radius: var(--r-md);
  background: var(--blanc); color: var(--text);
  transition: border-color var(--t), box-shadow var(--t);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--bleu);
  box-shadow: 0 0 0 3px rgba(0,35,149,0.10);
}
.field input.error, .field select.error { border-color: var(--rouge); }
.field-error { font-size: 0.8rem; color: var(--error); min-height: 1.1em; }

.checkbox-wrap {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 1rem; background: var(--gris-light); border-radius: var(--r-md);
  margin-top: 0.5rem;
}
.checkbox-wrap input[type="checkbox"] {
  flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px;
  accent-color: var(--bleu);
}
.checkbox-wrap label { font-size: 0.8375rem; color: var(--text-light); line-height: 1.55; }
.checkbox-wrap label a { color: var(--bleu); text-decoration: underline; }

.form-message {
  padding: 1rem 1.25rem; border-radius: var(--r-md);
  font-size: 0.9375rem; font-weight: 500; margin-top: 1.25rem; display: none;
}
.form-message.success { display: block; background: var(--success-bg); color: var(--success); }
.form-message.error   { display: block; background: var(--error-bg);   color: var(--error);   }

/* === FM CTA === */
.section-fm-cta {
  background: linear-gradient(135deg, #180e00 0%, #2d1a00 50%, #0d1030 100%);
  padding: 5rem 1.5rem; position: relative; overflow: hidden;
}
.section-fm-cta::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(
    -45deg, transparent, transparent 22px,
    rgba(201,162,39,0.025) 22px, rgba(201,162,39,0.025) 23px
  );
}
.fm-cta-inner {
  max-width: 700px; margin: 0 auto; text-align: center; position: relative; z-index: 1;
}
.fm-cta-svg { margin: 0 auto 2rem; }
.fm-cta-inner h2 {
  font-family: var(--font-h); font-size: clamp(1.625rem, 3vw, 2.5rem);
  font-weight: 700; color: var(--or-light); margin-bottom: 0.875rem;
}
.fm-cta-inner p { font-size: 1rem; color: rgba(255,255,255,0.65); max-width: 52ch; margin: 0 auto 2rem; line-height: 1.8; }
.fm-cta-disclaimer {
  font-size: 0.75rem; color: rgba(255,255,255,0.28); margin-top: 1.25rem; font-style: italic; line-height: 1.6;
}

/* === Footer === */
.site-footer { background: #070a1e; color: rgba(255,255,255,0.75); padding: 4rem 1.5rem 2.5rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 3rem;
  padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .nav-logo-text strong { color: var(--blanc); }
.footer-brand .nav-logo-text span { color: rgba(255,255,255,0.35); }
.footer-brand p {
  font-size: 0.875rem; color: rgba(255,255,255,0.48); line-height: 1.75;
  margin-top: 1rem; max-width: 26ch;
}
.footer-tricolore { margin-top: 1.25rem; display: flex; height: 3px; width: 48px; border-radius: 2px; overflow: hidden; }
.footer-tricolore span:nth-child(1) { flex:1; background: var(--bleu-light); }
.footer-tricolore span:nth-child(2) { flex:1; background: var(--blanc); }
.footer-tricolore span:nth-child(3) { flex:1; background: var(--rouge-light); }
.footer-col h4 {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--or-light); margin-bottom: 1.125rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a {
  font-size: 0.875rem; color: rgba(255,255,255,0.5); transition: color var(--t);
}
.footer-col a:hover { color: var(--blanc); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 2rem; flex-wrap: wrap; gap: 0.75rem;
  font-size: 0.8125rem; color: rgba(255,255,255,0.3);
}

/* === Gate FM === */
.gate-page {
  min-height: 100vh;
  background: linear-gradient(160deg, #12080a 0%, #261300 35%, #0c1040 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem 1.5rem; position: relative; overflow: hidden;
}
.gate-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.gate-particle {
  position: absolute; opacity: 0; color: var(--or-light); font-size: 1rem;
  animation: gfloat 16s ease-in-out infinite;
}
@keyframes gfloat {
  0%   { opacity: 0; transform: translateY(100vh) rotate(0deg); }
  8%   { opacity: 0.25; }
  92%  { opacity: 0.15; }
  100% { opacity: 0; transform: translateY(-80px) rotate(360deg); }
}
.gate-card {
  background: rgba(255,255,255,0.04); backdrop-filter: blur(22px);
  border: 1px solid rgba(201,162,39,0.25); border-radius: var(--r-xl);
  padding: 3rem 2.5rem; max-width: 460px; width: 100%;
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
  animation: gate-in 0.55s ease both;
}
@keyframes gate-in {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.gate-header { text-align: center; margin-bottom: 2rem; }
.gate-logo-wrap { margin: 0 auto 1.5rem; width: 96px; height: 96px; }
.gate-title {
  font-family: var(--font-h); font-size: 1.5rem; font-weight: 700;
  color: var(--or-light); margin-bottom: 0.5rem;
}
.gate-subtitle { font-size: 0.875rem; color: rgba(255,255,255,0.5); line-height: 1.6; }
.gate-divider { width: 48px; height: 1px; background: rgba(201,162,39,0.4); margin: 1.5rem auto; }

.gate-form { display: flex; flex-direction: column; gap: 1rem; }
.gate-form .field label { color: rgba(255,255,255,0.65); font-size: 0.8375rem; }
.gate-form .field input {
  background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.15);
  color: var(--blanc); border-radius: var(--r-md);
}
.gate-form .field input:focus {
  border-color: var(--or); box-shadow: 0 0 0 3px rgba(201,162,39,0.15);
}
.gate-form .field input::placeholder { color: rgba(255,255,255,0.28); }
.gate-error {
  background: rgba(193,18,31,0.15); border: 1px solid rgba(193,18,31,0.3);
  color: #ffaaaa; padding: 0.75rem 1rem; border-radius: var(--r-md);
  font-size: 0.875rem; display: none;
}
.gate-error.show { display: block; }
.gate-back {
  text-align: center; margin-top: 1.25rem;
  font-size: 0.8125rem; color: rgba(255,255,255,0.35);
}
.gate-back a { color: rgba(255,255,255,0.55); text-decoration: underline; }
.gate-disclaimer {
  font-size: 0.725rem; color: rgba(255,255,255,0.22); text-align: center;
  margin-top: 0.875rem; font-style: italic; line-height: 1.6;
}

/* === FM Page === */
.fm-nav-inner { border-bottom: 3px solid var(--or); }
.site-nav.fm-nav {
  border-image: linear-gradient(to right, var(--or) 33.3%, var(--or-light) 33.3% 66.6%, var(--or-dark) 66.6%) 1;
}
.fm-badge-nav {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.75rem; font-weight: 700; color: var(--or-dark);
  background: var(--or-pale); border: 1px solid var(--or);
  padding: 0.2rem 0.625rem; border-radius: var(--r-full);
}

.fm-hero {
  background: linear-gradient(140deg, #180e00 0%, #2d1a00 50%, #0c1040 100%);
  padding: 4.5rem 1.5rem 7rem; position: relative; overflow: hidden;
}
.fm-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(201,162,39,0.08) 0%, transparent 55%);
}
.fm-hero-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.fm-hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(201,162,39,0.18); border: 1px solid rgba(201,162,39,0.4);
  color: var(--or-light); font-size: 0.775rem; font-weight: 600;
  padding: 0.4rem 1rem; border-radius: var(--r-full); margin-bottom: 1.25rem;
}
.fm-hero h1 {
  font-family: var(--font-h); font-size: clamp(1.875rem, 4vw, 3.25rem);
  font-weight: 800; color: var(--or-light); margin-bottom: 0.75rem;
}
.fm-hero p { font-size: 1.0625rem; color: rgba(255,255,255,0.72); max-width: 58ch; line-height: 1.8; }
.fm-hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; line-height: 0; }
.fm-hero-wave svg { width: 100%; display: block; }

.section-fm { background: var(--or-pale); }
.section-fm .section-title { color: #2d1a00; }
.section-fm .eyebrow { color: var(--or-dark); }
.section-fm .eyebrow::before,
.section-fm .eyebrow::after { background: var(--or-dark); }

.fm-info-box {
  background: linear-gradient(135deg, #2d1a00, #1c1040);
  border-radius: var(--r-lg); padding: 2rem;
  border: 1px solid rgba(201,162,39,0.3); margin-bottom: 2.5rem;
}
.fm-info-box h3 { font-family: var(--font-h); font-size: 1.125rem; color: var(--or-light); margin-bottom: 1rem; }
.fm-info-items { display: flex; flex-direction: column; gap: 0.75rem; }
.fm-info-item {
  display: flex; align-items: flex-start; gap: 0.75rem;
  font-size: 0.9375rem; color: rgba(255,255,255,0.78); line-height: 1.6;
}
.fm-info-item::before { content: '◆'; color: var(--or); flex-shrink: 0; font-size: 0.5rem; margin-top: 0.5rem; }

.fm-form-container {
  background: var(--blanc); border-radius: var(--r-xl);
  box-shadow: var(--sh-lg); padding: 2.75rem; border: 2px solid var(--or-pale);
}
.fm-form-container .form-head-icon { background: var(--or-pale); color: var(--or-dark); }
.fm-form-container .field input:focus,
.fm-form-container .field select:focus {
  border-color: var(--or); box-shadow: 0 0 0 3px rgba(201,162,39,0.12);
}

.radio-group { display: flex; flex-direction: column; gap: 0.875rem; margin-top: 0.25rem; }
.radio-option {
  display: flex; align-items: flex-start; gap: 0.875rem;
  padding: 1.125rem 1.25rem; border: 1.5px solid var(--gris-mid);
  border-radius: var(--r-md); cursor: pointer;
  transition: border-color var(--t), background var(--t);
}
.radio-option:has(input:checked) { border-color: var(--or); background: var(--or-pale); }
.radio-option input[type="radio"] { margin-top: 3px; accent-color: var(--or-dark); flex-shrink: 0; }
.radio-option-text strong { display: block; font-size: 0.9375rem; font-weight: 600; color: var(--text); margin-bottom: 0.2rem; }
.radio-option-text span { font-size: 0.8125rem; color: var(--text-muted); }
.btn-fm-submit {
  background: linear-gradient(135deg, var(--or), var(--or-light));
  color: var(--bleu-dark); font-weight: 700; box-shadow: var(--sh-or);
}
.btn-fm-submit:hover { filter: brightness(1.07); transform: translateY(-1px); }

/* === Admin === */
.admin-wrap { min-height: 100vh; background: var(--gris-light); }
.admin-topbar {
  background: var(--bleu-dark); padding: 1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.admin-topbar .brand { color: var(--or-light); font-family: var(--font-h); font-size: 1.125rem; font-weight: 700; }
.admin-topbar a { color: rgba(255,255,255,0.55); font-size: 0.875rem; }
.admin-topbar a:hover { color: var(--blanc); }
.admin-main { max-width: 1400px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.admin-page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem;
}
.admin-page-header h1 { font-family: var(--font-h); font-size: 1.875rem; color: var(--bleu-dark); }
.admin-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2.5rem; }
.admin-stat-card {
  background: var(--blanc); border-radius: var(--r-lg);
  padding: 1.5rem; box-shadow: var(--sh-sm); border: 1px solid var(--gris-mid);
}
.admin-stat-num { font-family: var(--font-h); font-size: 2.25rem; font-weight: 800; color: var(--bleu); }
.admin-stat-num.or { color: var(--or-dark); }
.admin-stat-label { font-size: 0.875rem; color: var(--text-muted); margin-top: 0.25rem; }
.admin-actions { display: flex; gap: 0.75rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.export-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1.125rem; border-radius: var(--r-full);
  font-size: 0.875rem; font-weight: 600; cursor: pointer;
  transition: all var(--t);
}
.export-btn.bleu { background: var(--bleu); color: var(--blanc); }
.export-btn.bleu:hover { background: var(--bleu-dark); }
.export-btn.gold { background: var(--or); color: var(--bleu-dark); }
.export-btn.gold:hover { background: var(--or-light); }
.admin-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.25rem; }
.admin-tab {
  padding: 0.5rem 1.25rem; border-radius: var(--r-full);
  font-size: 0.875rem; font-weight: 600; cursor: pointer;
  border: 1.5px solid var(--gris-mid); background: var(--blanc);
  color: var(--text-light); transition: all var(--t);
}
.admin-tab.active { background: var(--bleu); border-color: var(--bleu); color: var(--blanc); }
.admin-tab-panel { display: none; }
.admin-tab-panel.active { display: block; }
.table-wrap {
  background: var(--blanc); border-radius: var(--r-lg);
  box-shadow: var(--sh-sm); overflow: hidden; border: 1px solid var(--gris-mid);
  overflow-x: auto;
}
.data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; min-width: 700px; }
.data-table th {
  padding: 0.875rem 1rem; text-align: left; font-size: 0.725rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted); background: var(--gris-light); border-bottom: 1px solid var(--gris-mid);
}
.data-table td {
  padding: 0.875rem 1rem; border-bottom: 1px solid var(--gris); color: var(--text);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bleu-fog); }
.badge {
  display: inline-block; padding: 0.2rem 0.625rem;
  border-radius: var(--r-full); font-size: 0.75rem; font-weight: 600;
}
.badge.oui { background: #d4edda; color: #1a6e42; }
.badge.non { background: var(--bleu-pale); color: var(--bleu); }
.empty-state {
  padding: 3rem; text-align: center; color: var(--text-muted); font-size: 0.9375rem;
}

/* Admin login */
.admin-login-page {
  min-height: 100vh; background: var(--bleu-dark);
  display: flex; align-items: center; justify-content: center; padding: 2rem;
}
.admin-login-card {
  background: var(--blanc); border-radius: var(--r-xl);
  padding: 2.5rem 2rem; max-width: 380px; width: 100%; box-shadow: var(--sh-lg);
}
.admin-login-card h1 {
  font-family: var(--font-h); font-size: 1.5rem; color: var(--bleu-dark);
  margin-bottom: 0.25rem;
}
.admin-login-card p { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.admin-login-error {
  background: var(--error-bg); color: var(--error);
  padding: 0.75rem 1rem; border-radius: var(--r-md);
  font-size: 0.875rem; margin-bottom: 1rem; display: none;
}
.admin-login-error.show { display: block; }

/* === Mentions === */
.mentions-hero {
  background: linear-gradient(to right, var(--bleu-dark), var(--bleu));
  padding: 3.5rem 1.5rem; color: var(--blanc);
}
.mentions-hero-inner { max-width: 900px; margin: 0 auto; }
.mentions-hero p { font-size: 0.9375rem; color: rgba(255,255,255,0.65); margin-top: 0.5rem; }
.mentions-content { max-width: 900px; margin: 0 auto; padding: 3.5rem 1.5rem; }
.mentions-section { margin-bottom: 2.75rem; }
.mentions-section h2 {
  font-family: var(--font-h); font-size: 1.375rem; font-weight: 700;
  color: var(--bleu-dark); margin-bottom: 1rem;
  padding-bottom: 0.5rem; border-bottom: 2px solid var(--or); display: inline-block;
}
.mentions-section p { font-size: 0.9375rem; color: var(--text-light); line-height: 1.82; margin-bottom: 0.75rem; }
.mentions-section ul { margin-left: 1.5rem; list-style: disc; }
.mentions-section li { font-size: 0.9375rem; color: var(--text-light); line-height: 1.8; margin-bottom: 0.5rem; }

/* === Reveal === */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* === Responsive === */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  .hero-visual { order: -1; }
  .hero-svg { max-width: 340px; margin: 0 auto; }
  .hero-desc, .hero-meta { max-width: 100%; }
  .hero-meta { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-divider { margin: 1.25rem auto; }
  .timeline-grid { grid-template-columns: 1fr; gap: 3rem; }
  .doc-grid { grid-template-columns: 1fr; }
  .doc-poster { aspect-ratio: 16/9; max-width: 480px; margin: 0 auto; }
  .collectif-grid { grid-template-columns: 1fr; gap: 3rem; }
  .collectif-emblem { flex-direction: row; }
  .evenement-grid { grid-template-columns: 1fr; }
  .info-card { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .admin-stats-grid { grid-template-columns: 1fr 1fr; }
  .principes-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; position: fixed; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: fixed; top: 67px; left: 0; right: 0; bottom: 0;
    background: var(--blanc); padding: 1.5rem; gap: 0.25rem;
    overflow-y: auto; z-index: 99;
  }
  .nav-links.open a { padding: 0.875rem 1rem; font-size: 1rem; }
  .nav-links.open .nav-fm-btn { margin-top: 0.5rem; justify-content: center; }
  .nav-hamburger { display: flex; }
  .section { padding: 3.5rem 1.25rem; }
  .principes-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-container { padding: 1.75rem 1.25rem; }
  .fm-form-container { padding: 1.75rem 1.25rem; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .gate-card { padding: 2rem 1.5rem; }
  .admin-stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .hero { padding: 4rem 1.25rem 7rem; }
  .hero h1 { font-size: 2.125rem; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
  .admin-stats-grid { grid-template-columns: 1fr; }
  .collectif-emblem { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
