:root {
  --navy: #16285c;
  --navy-2: #1f3a80;
  --blue: #1e6fd9;
  --yellow: #fbbf24;
  --orange: #f59e0b;
  --pink: #ec4899;
  --teal: #14b8a6;
  --green: #65a30d;
  --ink: #1b2340;
  --muted: #5b6480;
  --bg: #fffdf8;
  --tint: #f3f6fd;
  --line: #e3e8f4;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: "Fredoka", "Nunito", sans-serif; color: var(--navy); line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: #fff; padding: 8px 12px; border-radius: 8px; }

/* En-tête */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 253, 248, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand img { border-radius: 10px; }
.brand strong { display: block; font-family: "Fredoka", sans-serif; font-size: 1.3rem; line-height: 1; }
.brand small { display: block; font-size: .75rem; color: var(--muted); font-weight: 700; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem; }
.nav a:hover { color: var(--blue); }

/* Boutons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 800;
  background: var(--navy); color: #fff;
  padding: 13px 22px; border-radius: 999px;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(22, 40, 92, .2); }
.btn-small { padding: 9px 16px; font-size: .9rem; white-space: nowrap; }
.btn-ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.btn-yellow { background: var(--yellow); color: var(--navy); margin-top: auto; }

/* Accueil */
.hero { padding: 56px 0 64px; overflow: hidden; position: relative; }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .35; z-index: -1;
}
.hero::before { width: 360px; height: 360px; background: var(--yellow); top: -80px; left: -120px; }
.hero::after { width: 420px; height: 420px; background: #8fb7ff; bottom: -160px; right: -120px; }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.kicker { font-weight: 800; color: var(--blue); text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; }
.u { background: linear-gradient(transparent 62%, rgba(251, 191, 36, .55) 62%); padding: 0 .1em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-logo img {
  filter: drop-shadow(0 18px 30px rgba(22, 40, 92, .18));
  transform: rotate(1.5deg);
}

/* Sections */
.sec { padding: 72px 0; }
.sec-tint { background: var(--tint); }
.sec-navy { background: var(--navy); color: #dfe6f7; }
.sec-navy h2, .sec-navy h3 { color: #fff; }
.sec-navy .eyebrow { color: var(--yellow); }
.eyebrow { font-weight: 800; color: var(--pink); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: .4em; }
.intro { color: var(--muted); max-width: 44em; font-size: 1.08rem; margin-bottom: 32px; }

.cards { display: grid; gap: 20px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column;
}
.card p { color: var(--muted); margin: 0 0 1em; }
.card p:last-child { margin-bottom: 0; }
.ico { font-size: 2rem; display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--tint); margin-bottom: 14px; }
.c-blue { border-top: 6px solid var(--blue); }
.c-yellow { border-top: 6px solid var(--yellow); }
.c-pink { border-top: 6px solid var(--pink); }
.c-blue .ico { background: #e3edff; }
.c-yellow .ico { background: #fff4d6; }
.c-pink .ico { background: #fde4f1; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.stats div { text-align: center; padding: 18px; border-radius: var(--radius); border: 2px dashed var(--line); }
.stats strong { display: block; font-family: "Fredoka", sans-serif; font-size: 1.8rem; color: var(--navy); }
.stats span { color: var(--muted); font-size: .95rem; }

.proj { flex-direction: row; gap: 18px; align-items: flex-start; }
.proj .ico { flex: none; margin: 0; }

.card.dark { background: var(--navy-2); border-color: transparent; }
.card.dark p { color: #cdd7f1; }
.card.dark .ico { background: rgba(255, 255, 255, .1); }

.card.contact { text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.card.contact:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(22, 40, 92, .1); }
.card.contact p { color: var(--blue); font-weight: 700; word-break: break-word; }

/* Bouton WhatsApp de l'association */
.wa {
  display: flex; align-items: center; gap: 18px; margin-bottom: 20px;
  background: #1fa855; color: #fff; text-decoration: none;
  border-radius: var(--radius); padding: 20px 24px;
  transition: transform .15s, box-shadow .15s;
}
.wa:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(31, 168, 85, .3); }
.wa-ico { flex: none; width: 60px; height: 60px; border-radius: 18px; background: rgba(255, 255, 255, .18); display: grid; place-items: center; }
.wa-txt strong { display: block; font-family: "Fredoka", sans-serif; font-size: 1.35rem; font-weight: 600; line-height: 1.2; margin-bottom: 4px; }
.wa-txt small { display: block; font-size: .95rem; opacity: .92; }
.wa-go { margin-left: auto; font-size: 1.6rem; font-weight: 800; }

/* Frise */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 24px; }
.timeline li {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
}
.t-ico { font-size: 1.7rem; flex: none; width: 52px; height: 52px; display: grid; place-items: center; background: #fff4d6; border-radius: 16px; }
.timeline h3 { margin-bottom: .2em; }
.timeline p { margin: 0; color: var(--muted); }
.t-date { font-weight: 800; color: var(--blue) !important; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.t-link { display: inline-block; margin-top: 6px; font-weight: 800; text-decoration: none; }
.timeline li.passe { opacity: .55; }
.timeline li.passe .t-ico { background: var(--tint); filter: grayscale(.6); }
.timeline li.passe .t-date::after { content: " · passé"; color: var(--muted); }
.timeline li.passe .t-link { display: none; }

/* Site des familles */
.familles {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center;
  background: linear-gradient(135deg, #fff7e0, #e8f0ff);
  border-radius: 28px; padding: 40px;
}
.familles p { color: var(--muted); margin: 0; }
.liens { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.liens a {
  display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 16px;
  padding: 14px 16px; font-weight: 800; color: var(--navy); text-decoration: none;
  box-shadow: 0 2px 0 var(--line);
}
.liens a:hover { color: var(--blue); }

/* Pied de page */
.foot { background: #0f1c44; color: #b9c4e3; padding: 36px 0; }
.foot-in { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.foot img { border-radius: 12px; }
.foot p { margin: 0; }
.foot strong { color: #fff; }
.foot-links { margin-left: auto !important; }
.foot a { color: var(--yellow); }

/* Mobile */
@media (max-width: 900px) {
  .nav { display: none; }
  .top-in { justify-content: space-between; }
  .hero-in { grid-template-columns: 1fr; gap: 32px; }
  .hero-logo { order: -1; }
  .cards.three, .cards.two, .timeline, .familles { grid-template-columns: 1fr; }
  .familles { padding: 28px 20px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .brand small { display: none; }
  .sec { padding: 52px 0; }
  .hero { padding: 28px 0 44px; }
  .stats { grid-template-columns: 1fr; }
  .proj { flex-direction: column; }
  .liens { grid-template-columns: 1fr; }
  .foot-links { margin-left: 0 !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card.contact { transition: none; }
}
