:root {
  --cream: #f3ebe0;
  --cream-dark: #e8dccb;
  --white: #fffdf9;
  --ink: #232323;
  --muted: #5f5a54;
  --green: #8aad4a;       /* vert unique de la charte (pastel) */
  --coral: #e8605a;
  --yellow: #ebc35f;
  --yellow-strong: #f2a93b;
  --teal: #1597ae;
  --teal-dark: #17605c;
  --violet: #625b9e;
  --pink: #e07aa6;
  --radius: 18px;
  --shadow: 0 4px 18px rgba(60, 45, 20, .08);
  --font: "Poppins", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }
a { color: var(--teal); }
h1, h2, h3, h4 { line-height: 1.2; }

.container { width: min(1100px, 100% - 32px); margin-inline: auto; }

/* ---------- Icônes trait ---------- */
.ico {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  vertical-align: middle;
}
.ico-lg { width: 44px; height: 44px; }
.t-coral { color: var(--coral); }
.t-green { color: var(--green); }
.t-violet { color: var(--violet); }
.t-teal { color: var(--teal); }
.t-pink { color: var(--pink); }
.t-yellow { color: var(--yellow-strong); }
.t-fb { color: #1877f2; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  padding: .8em 1.5em;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--coral);
  transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); background: #d44d47; border-color: #d44d47; }
.btn-ghost { background: transparent; color: var(--green); border-color: var(--green); }
.btn-ghost:hover { background: var(--green); color: #fff; border-color: var(--green); }
.btn-violet { background: var(--violet); border-color: var(--violet); }
.btn-violet:hover { background: #4f4889; border-color: #4f4889; }
.btn-light { background: #fff; color: var(--coral); border-color: #fff; }
.btn-light:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.btn-small { padding: .45em 1.1em; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(243, 235, 224, .95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--cream-dark);
  transition: background .25s, box-shadow .25s;
}
.site-header.scrolled { background: rgba(255, 255, 255, .97); box-shadow: 0 2px 12px rgba(60, 45, 20, .08); border-bottom-color: transparent; }
.site-header.scrolled .nav { background: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 6px; }
.brand-tree { height: 52px; width: auto; }
.brand-logo { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.3rem; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--coral); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.8rem; cursor: pointer; color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 40px; }
.hero-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); line-height: 1.15; margin: 0 0 1rem; }
.hl-green { color: var(--green); }
.hl-coral { color: var(--coral); }
.lead { font-size: 1.12rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }
.hero-logo { justify-self: center; width: 100%; max-width: 360px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--white); }
.section-title {
  display: inline-block;
  margin: 0 0 2.2rem;
  padding: .3em .75em;
  background: var(--teal);
  color: #fff;
  text-transform: uppercase;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  font-weight: 800;
  transform: rotate(-1.5deg);
}
.title-coral { background: var(--coral); }
.title-violet { background: var(--violet); }
.title-green { background: var(--green); }
.section-intro { color: var(--muted); max-width: 680px; margin: 0 0 2rem; }

/* ---------- Missions ---------- */
.missions-block { background: var(--white); border: 3px solid var(--green); border-radius: 48px; padding: 40px clamp(20px, 5vw, 56px) 44px; }
.missions-block .section-title { margin-top: -64px; }
.missions-intro { font-size: 1.08rem; text-align: justify; hyphens: auto; margin: 1.2rem 0 2.4rem; padding: 0 clamp(0px, 2vw, 16px); }
.missions { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 40px; }
.mission { display: flex; gap: 16px; align-items: flex-start; }
.mission h4 { margin: 0 0 .2rem; text-transform: uppercase; font-size: 1rem; }
.mission p { margin: 0; }
.notice { margin: -8px 0 24px; color: var(--muted); font-size: .85rem; font-style: italic; }
.t-teal-dark { color: var(--teal-dark); }

/* ---------- Événements ---------- */
.events { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.event { background: var(--cream); border-radius: var(--radius); padding: 24px; }
.event h3 { margin: .8rem 0 .4rem; font-size: 1.1rem; }
.event p { margin: 0; color: var(--muted); font-size: .95rem; }
.event-cta { background: var(--coral); color: #fff; text-decoration: none; transition: transform .15s; }
.event-cta p { color: #fff; }
.event-cta:hover { transform: translateY(-3px); }

/* ---------- Agenda : ligne de métro ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 1.6rem; color: var(--muted); font-size: .9rem; }
.ld { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 4px solid; vertical-align: -2px; margin-right: 4px; background: #fff; }
.ld-council { border-color: var(--teal); }
.ld-event { border-color: var(--coral); }

.metro { list-style: none; margin: 0; padding: 0; max-width: 720px; }
.stop { position: relative; padding: 0 0 26px 52px; min-height: 52px; }
.stop::before { /* tronçon de ligne */
  content: ""; position: absolute; left: 13px; top: 6px; bottom: -6px; width: 6px;
  background: var(--teal);
}
.stop:last-child::before { display: none; }
.stop::after { /* station */
  content: ""; position: absolute; left: 3px; top: 2px; width: 26px; height: 26px;
  border-radius: 50%; background: #fff; border: 6px solid var(--teal);
}
.stop-event::after { border-color: var(--coral); }
.stop-date { display: block; font-weight: 700; font-size: .9rem; color: var(--muted); }
.stop-title { display: block; font-weight: 700; font-size: 1.1rem; }

.stop.past { opacity: .45; }
.stop.past::before { background: #b9b1a6; }
.stop.past::after { border-color: #b9b1a6; }
.stop.next::after { background: currentColor; box-shadow: 0 0 0 6px rgba(21, 151, 174, .2); }
.stop.next { color: var(--teal); }
.stop-event.next { color: var(--coral); }
.stop.next .stop-title { color: var(--ink); }
.stop.next .stop-date::after {
  content: "Prochaine date"; margin-left: .6em; padding: .1em .6em; border-radius: 999px;
  background: currentColor; font-size: .75rem;
}
.stop.next .stop-date { color: inherit; }
.stop.next .stop-date::after { color: #fff; background: var(--teal); }
.stop-event.next .stop-date::after { background: var(--coral); }

/* ---------- Niveaux de soutien ---------- */
.level { background: var(--cream); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; align-items: flex-start; }
.level h3 { margin: .8rem 0 .4rem; font-size: 1.1rem; }
.level p { margin: 0 0 1rem; color: var(--muted); flex: 1; }
.level-tag { color: #fff; font-weight: 700; padding: .3em 1em; border-radius: 8px; }
.t1 { background: var(--violet); }
.t2 { background: #8f89c6; }
.t3 { background: #7069b0; }
.t4 { background: #4f4889; }
.levels .level:nth-child(1) { background: #f1eff8; }
.levels .level:nth-child(2) { background: #e9e6f4; }
.levels .level:nth-child(3) { background: #e0dcef; }
.levels .level-link { color: var(--violet); }
.level-link { font-weight: 700; color: var(--coral); text-decoration: none; }
.level-link:hover { text-decoration: underline; }

.level-main { flex-direction: row; align-items: center; gap: 32px; margin-bottom: 20px; border: 3px solid var(--violet); background: #f6f5fb; }
.level-main-text { flex: 1; }
.level-main h3 { font-size: 1.35rem; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 28px; margin-bottom: .45rem; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--violet); font-weight: 800; }
.level-main-cta { text-align: center; display: flex; flex-direction: column; align-items: center; padding: 8px 16px; }
.price { font-size: 3.2rem; font-weight: 800; color: var(--violet); line-height: 1; }
.price-sub { color: var(--muted); margin: .3rem 0 1rem; font-size: .9rem; }

.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ---------- Financement ---------- */
.fund { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; align-items: center; }
.stat { background: var(--white); border-radius: var(--radius); padding: 36px 20px; text-align: center; box-shadow: var(--shadow); border-top: 8px solid var(--green); }
.stat-value { display: block; font-size: clamp(2.6rem, 6vw, 3.6rem); font-weight: 800; color: var(--green); line-height: 1.1; }
.stat-label { color: var(--muted); }
.uses h3 { margin-top: 0; }
.uses ul { list-style: none; padding: 0; margin: 0; }
.uses li { display: flex; gap: 12px; align-items: center; margin-bottom: .8rem; }

/* ---------- Rejoindre ---------- */
.join { background: var(--coral); color: #fff; padding: 64px 0; text-align: center; }
.join-inner { max-width: 720px; }
.join h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: .4rem 0 .6rem; text-transform: uppercase; }
.join p { margin: 0 0 1.5rem; }
.join-stat { display: inline-block; background: rgba(0, 0, 0, .18); padding: .4em 1.2em; border-radius: 999px; }

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin: 1.5rem 0; }
.contact-card { display: inline-flex; align-items: center; gap: 10px; background: var(--white); padding: 14px 24px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; box-shadow: var(--shadow); overflow-wrap: anywhere; }
.contact-card:hover { color: var(--coral); }
.schools { color: var(--muted); }
.dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: middle; margin-right: 4px; }
.dot-violet { background: var(--violet); }
.dot-pink { background: var(--pink); }

/* ---------- Pied de page ---------- */
.site-footer { background: #2b2b2b; color: #ddd; padding: 28px 0; text-align: center; font-size: .9rem; }
.site-footer p { margin: .2rem 0; }
.site-footer a { color: var(--green); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .events { grid-template-columns: repeat(2, 1fr); }
  .levels { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--cream-dark);
    padding: 8px 16px 16px;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 10px 0; width: 100%; text-align: center; }
  .nav .btn { margin-top: 8px; }
  .hero { padding-top: 32px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-logo { max-width: 220px; order: -1; }
  .section { padding: 56px 0; }
  .missions { grid-template-columns: 1fr; }
  .missions-block { border-radius: 32px; }
  .level-main { flex-direction: column; align-items: stretch; }
  .fund { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .events { grid-template-columns: 1fr; }
}
