:root {
  --ink: #14213d;
  --muted: #5b6785;
  --bg: #ffffff;
  --card: #f1f4fb;
  --line: #e3e6ee;
  --accent: #14213d;
  --soft: #8a93ad;
  --max: 64rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--ink); text-underline-offset: 0.2em; }
a:hover { color: var(--muted); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* En-tête */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; letter-spacing: 0.15em; text-decoration: none; }
.brand img { width: 2.25rem; height: 2.25rem; }
.site-nav { display: flex; align-items: center; gap: 1.25rem; font-size: 0.95rem; }
.site-nav a { text-decoration: none; color: var(--muted); }
.site-nav a:hover { color: var(--ink); }
.lang { border: 1px solid var(--line); border-radius: 0.5rem; padding: 0.1rem 0.5rem; font-size: 0.85rem; }

/* Bandeau */
.hero { padding: 3.5rem 0 2.5rem; }
.hero img { width: min(16rem, 60%); height: auto; display: block; margin-bottom: 1.5rem; }
.hero h1 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); line-height: 1.15; margin: 0 0 0.75rem; }
.hero p { max-width: 42rem; color: var(--muted); margin: 0; font-size: 1.15rem; }

section { padding: 2.5rem 0; }
h2 { font-size: 1.5rem; margin: 0 0 1rem; }
.lead { max-width: 46rem; }

/* Cartes */
.grid { display: grid; gap: 1rem; }
.grid.featured { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); margin-bottom: 1rem; }
.grid.small { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }

.card {
  background: var(--card);
  border-radius: 0.75rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.card h3 { margin: 0; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.card .links { margin-top: auto; padding-top: 0.5rem; display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.93rem; }
.featured .card { padding: 1.5rem; }
.featured .card h3 { font-size: 1.35rem; }
.card.future { background: transparent; border: 1px dashed var(--soft); }

.badge {
  align-self: flex-start;
  font-size: 0.75rem;
  background: var(--accent);
  color: #fff;
  border-radius: 0.6rem;
  padding: 0.05rem 0.6rem;
}
.badge.soft { background: var(--soft); }

.subtitle { margin: 2rem 0 0.75rem; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* Pied de page */
footer { border-top: 1px solid var(--line); margin-top: 2rem; padding: 2rem 0 3rem; font-size: 0.9rem; color: var(--muted); }
footer h2 { font-size: 1.1rem; color: var(--ink); }
footer .legal { max-width: 46rem; margin-top: 1.5rem; }
.contact-links { display: flex; gap: 1.25rem; flex-wrap: wrap; font-size: 1rem; margin-bottom: 1rem; }

@media (max-width: 40rem) {
  body { font-size: 1rem; }
  .site-header .wrap { flex-wrap: nowrap; min-height: 3.25rem; }
  .brand span { display: none; }
  .site-nav { gap: 0.8rem; font-size: 0.88rem; }
  html { scroll-padding-top: 4rem; }
  .hero { padding: 1.75rem 0 1.25rem; }
  .hero img { width: 11rem; margin-bottom: 1rem; }
  .hero p { font-size: 1.05rem; }
  section { padding: 1.5rem 0; }
  .grid.small { grid-template-columns: 1fr; }
  .featured .card { padding: 1.25rem; }
}

@media (min-width: 64rem) {
  .grid.small { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.list-title { margin: 1.5rem 0 0.5rem; font-size: 1.05rem; }
.missions { padding-left: 1.25rem; margin: 0 0 1.25rem; }
.missions li { margin-bottom: 0.35rem; }

/* Adhésion (bouton vers HelloAsso) */
.btn {
  display: inline-block;
  margin: 0.75rem 0 0.75rem;
  padding: 0.7rem 1.4rem;
  background: var(--accent);
  color: #fff;
  border-radius: 0.6rem;
  font-weight: 600;
  text-decoration: none;
}
.btn:hover, .btn:focus-visible { background: var(--muted); color: #fff; }
.ha-note { font-size: 0.88rem; color: var(--muted); margin: 0; max-width: 46rem; }

@media (max-width: 25rem) {
  .site-header .wrap { padding: 0 0.75rem; gap: 0.5rem; }
  .brand img { width: 1.9rem; height: 1.9rem; }
  .site-nav { gap: 0.55rem; font-size: 0.8rem; }
  .lang { padding: 0.05rem 0.35rem; }
}
