:root {
  --purple: #3B2B5C;
  --purple-deep: #241A3F;
  --purple-soft: #EFEBF6;
  --sage: #7FB69E;
  --sage-dark: #4E8A6D;
  --sage-soft: #EDF5F0;
  --coral: #F2665E;
  --coral-deep: #C43F36;
  --coral-soft: #FDECEA;
  --ink: #2B2B2B;
  --muted: #6B6B6B;
  --bg: #FBFBF7;
  --white: #FFFFFF;
  --line: #E7E1EF;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 24px rgba(43, 32, 80, 0.08);
  --shadow-lg: 0 16px 40px rgba(43, 32, 80, 0.14);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--purple); text-decoration: none; }

a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  color: var(--purple-deep);
  line-height: 1.25;
  margin: 0 0 0.5em;
  font-weight: 800;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  background: var(--purple);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus { left: 0; }

.container {
  width: min(1160px, 100% - 2.5rem);
  margin-inline: auto;
}

.prose { width: min(800px, 100%); }

.section { padding: 4.5rem 0; }

.section-alt { background: var(--white); }

.section-tight { padding: 3rem 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--coral-deep);
  margin-bottom: 0.75rem;
}

.section-head { max-width: 720px; margin-bottom: 2.5rem; }

.section-head p { color: var(--muted); margin-bottom: 0; }

.center { text-align: center; }

.center .section-head { margin-inline: auto; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--purple);
  white-space: nowrap;
}

.brand:hover { text-decoration: none; }

.brand-name { letter-spacing: -0.02em; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-menu a {
  display: inline-block;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-menu a:hover {
  background: var(--purple-soft);
  color: var(--purple);
  text-decoration: none;
}

.nav-menu a[aria-current="page"] {
  color: var(--purple);
  background: var(--purple-soft);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--purple);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn:active { transform: translateY(0); }

.btn-accent {
  background: var(--coral);
  color: #2A1413;
  box-shadow: 0 6px 16px rgba(242, 102, 94, 0.35);
}

.btn-accent:hover { background: var(--coral-deep); color: #fff; }

.btn-primary {
  background: var(--purple);
  color: #fff;
}

.btn-primary:hover { background: var(--purple-deep); }

.btn-outline {
  background: transparent;
  border-color: var(--purple);
  color: var(--purple);
}

.btn-outline:hover { background: var(--purple-soft); }

.btn-light {
  background: #fff;
  color: var(--purple);
}

.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

/* ---------- Hero (home) ---------- */

.hero {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-deep) 100%);
  color: #fff;
  padding: 5rem 0 6rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.hero .eyebrow { color: #FFB9B4; }

.hero h1 { color: #fff; }

.hero p.lead {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  max-width: 54ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.hero-art { text-align: center; }

/* ---------- Page hero (subpages) ---------- */

.page-hero {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-deep) 100%);
  color: #fff;
  padding: 3.5rem 0 3.5rem;
}

.page-hero h1 { color: #fff; margin-bottom: 0.4rem; }

.page-hero p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 62ch;
  margin-bottom: 0;
}

.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}

.breadcrumb a { color: rgba(255, 255, 255, 0.9); }

.breadcrumb a:hover { color: #fff; }

/* ---------- Cards & grids ---------- */

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.card-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sage-soft);
}

.card-icon.coral { background: var(--coral-soft); }
.card-icon.purple { background: var(--purple-soft); }

.card h3 { margin-bottom: 0.2rem; }

.card p { color: var(--muted); margin-bottom: 0; font-size: 0.95rem; }

.card a.card-link { margin-top: auto; font-weight: 700; }

/* ---------- Stats ---------- */

.stats {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}

.stats-item {
  padding: 2rem 1.25rem;
  text-align: center;
  border-left: 1px solid var(--line);
}

.stats-item:first-child { border-left: none; }

.stat-num {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--coral);
  line-height: 1.1;
}

.stat-label {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 0.35rem;
}

.stat-note { font-size: 0.78rem; color: var(--muted); margin-top: 0.3rem; }

/* ---------- Split / feature ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.split-art { text-align: center; }

.split ul {
  padding-left: 1.2rem;
  color: var(--muted);
}

.split li { margin-bottom: 0.4rem; }

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(135deg, var(--sage-dark) 0%, var(--sage) 100%);
  border-radius: var(--radius);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  color: #123324;
}

.cta-band h2 { color: #123324; margin-bottom: 0.3rem; }

.cta-band p { margin-bottom: 0; color: #1E4A34; }

.cta-band .btn-accent { box-shadow: 0 8px 20px rgba(18, 51, 36, 0.25); }

.cta-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* ---------- Timeline ---------- */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 3px solid var(--sage);
  margin-left: 0.5rem;
}

.timeline li {
  position: relative;
  padding: 0 0 1.75rem 1.75rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 6px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--coral);
  border: 3px solid var(--bg);
}

.timeline .t-date {
  font-weight: 800;
  color: var(--purple);
  font-size: 0.95rem;
}

.timeline p { color: var(--muted); margin-bottom: 0; }

/* ---------- Tables ---------- */

.table-wrap { overflow-x: auto; }

table.info {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

table.info th, table.info td {
  text-align: left;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

table.info tr:last-child th, table.info tr:last-child td { border-bottom: none; }

table.info th {
  background: var(--purple-soft);
  color: var(--purple);
  font-weight: 800;
  width: 34%;
  white-space: nowrap;
}

/* ---------- Quotes ---------- */

blockquote.statut {
  background: var(--white);
  border-left: 5px solid var(--coral);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem 1.75rem;
  margin: 0 0 1.5rem;
  font-style: italic;
  color: var(--ink);
  box-shadow: var(--shadow);
}

blockquote.statut p { margin-bottom: 0.8em; }
blockquote.statut p:last-child { margin-bottom: 0; }
blockquote.statut footer { font-style: normal; font-size: 0.85rem; color: var(--muted); }

/* ---------- Callouts ---------- */

.callout {
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin: 1.75rem 0;
}

.callout.sage { background: var(--sage-soft); border: 1px solid #CBE3D5; }
.callout.coral { background: var(--coral-soft); border: 1px solid #F5C9C4; }
.callout.purple { background: var(--purple-soft); border: 1px solid #D8CEEB; }

.callout h3 { margin-bottom: 0.35rem; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- Programs ---------- */

.program-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.program-art {
  background: linear-gradient(135deg, var(--purple-soft), var(--sage-soft));
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.program-body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }

.program-body .tag {
  align-self: flex-start;
  background: var(--coral-soft);
  color: var(--coral-deep);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}

.program-body ul { color: var(--muted); font-size: 0.95rem; padding-left: 1.1rem; margin: 0.25rem 0; }

.program-body ul li { margin-bottom: 0.25rem; }

/* ---------- Forms ---------- */

.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  display: grid;
  gap: 1.1rem;
}

.form-group { display: grid; gap: 0.35rem; }

.form-label { font-weight: 700; font-size: 0.92rem; color: var(--purple-deep); }

.form-input, .form-textarea, .form-select {
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  width: 100%;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: 3px solid rgba(127, 182, 158, 0.35);
  border-color: var(--sage);
  background: var(--white);
}

.form-textarea { min-height: 140px; resize: vertical; }

.form-note { font-size: 0.85rem; color: var(--muted); }

.form-message {
  display: none;
  background: var(--sage-soft);
  border: 1px solid #CBE3D5;
  color: #1E4A34;
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  font-weight: 600;
}

.form-message.visible { display: block; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }

/* ---------- Map ---------- */

.map-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  height: 420px;
  background: var(--purple-soft);
}

#map { position: absolute; inset: 0; width: 100%; height: 100%; }

.map-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--purple-soft);
}

.leaflet-popup-content { font-family: var(--font); }

.map-marker { background: none; border: none; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--purple-deep);
  color: rgba(255, 255, 255, 0.85);
  margin-top: 4.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.2fr 1fr;
  gap: 2.5rem;
  padding: 3.5rem 0 2.5rem;
}

.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.footer-brand:hover { text-decoration: none; }

.site-footer p { color: rgba(255, 255, 255, 0.72); font-size: 0.92rem; }

.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }

.site-footer ul a { color: rgba(255, 255, 255, 0.82); font-size: 0.93rem; }

.site-footer ul a:hover { color: #fff; }

.footer-legal { font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }

.social-row { display: flex; gap: 0.6rem; }

.social-row a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: background 0.15s ease;
}

.social-row a:hover { background: var(--coral); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.25rem 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom a { color: rgba(255, 255, 255, 0.8); }

.footer-bottom a:hover { color: #fff; }

/* ---------- Prose (legal pages) ---------- */

.prose h2 { margin-top: 2.2rem; font-size: 1.45rem; }

.prose h3 { margin-top: 1.6rem; }

.prose p, .prose li { color: #3D3D3D; }

.prose ul, .prose ol { padding-left: 1.3rem; }

.prose li { margin-bottom: 0.4rem; }

.prose .meta {
  color: var(--muted);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.back-top { margin-top: 3rem; }

/* ---------- FAQ ---------- */

.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.4rem;
  margin-bottom: 0.9rem;
  box-shadow: var(--shadow);
}

.faq summary {
  font-weight: 700;
  color: var(--purple-deep);
  cursor: pointer;
  list-style-position: outside;
}

.faq details p { color: var(--muted); margin: 0.75rem 0 0; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    inset: 0 0 auto 0;
    top: 72px;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    gap: 0.5rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    transition: transform 0.25s ease;
  }

  .site-nav.open { transform: translateY(0); }

  .nav-menu { flex-direction: column; align-items: stretch; gap: 0.15rem; }

  .nav-menu a { display: block; padding: 0.7rem 0.8rem; }

  .site-nav .btn { justify-content: center; margin-top: 0.6rem; }

  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats-item { border-left: none; border-top: 1px solid var(--line); }
  .stats-item:nth-child(-n+2) { border-top: none; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { padding: 2rem; }
}

@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .stats { grid-template-columns: 1fr 1fr; }
}
