/* Cœurs en Action – feuille de style commune */
:root {
  --bg: #FFFFFF;
  --surface: #F3F5FA;
  --fg: #101C3A;
  --muted: #4B5878;
  --navy: #14264F;
  --red: #D90F1E;
  --on-red: #FFFFFF;
  --line: #DCE1EC;
  --display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --body: 'Figtree', 'Segoe UI', system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1226; --surface: #131C38; --fg: #EDF0F8; --muted: #AAB4CE;
    --navy: #9DB4F0; --red: #FF4A56; --on-red: #1A0508; --line: #26315A;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  padding-inline: 20px;
}
img { max-width: 100%; }
.wrap { max-width: 1060px; margin-inline: auto; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; line-height: 1.1; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); }

/* en-tête */
header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px 28px; flex-wrap: wrap;
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .tile {
  background: #FFFFFF; border-radius: 10px; padding: 4px;
  width: 58px; height: 58px; flex: none; display: grid; place-items: center;
}
.brand .tile img { width: 100%; height: auto; display: block; }
.brand span { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
nav { display: flex; gap: 4px 22px; flex-wrap: wrap; font-weight: 500; font-size: 15.5px; }
nav a { text-decoration: none; color: var(--muted); padding-block: 6px; }
nav a:hover { color: var(--fg); }
nav a[aria-current="page"] {
  color: var(--fg);
  text-decoration: underline; text-decoration-color: var(--red);
  text-decoration-thickness: 2px; text-underline-offset: 7px;
}

/* titre de page (pages intérieures) */
.page-head { padding-block: 56px 8px; max-width: 760px; }
.page-head h1 { font-weight: 800; font-size: clamp(34px, 5.6vw, 56px); letter-spacing: -0.025em; margin-block: 12px 16px; }
.page-head p { color: var(--muted); font-size: 18.5px; max-width: 56ch; }

/* accueil */
.hero {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px 56px; align-items: center;
  padding-block: 64px 72px;
}
.hero > * { min-width: 0; }
.hero h1 { font-weight: 800; font-size: clamp(38px, 6.4vw, 68px); letter-spacing: -0.025em; margin-block: 14px 22px; }
.hero h1 em { font-style: normal; color: var(--red); }
.lede { color: var(--muted); max-width: 52ch; font-size: 18.5px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 16px;
  padding: 13px 24px; border-radius: 999px; border: 2px solid var(--red);
}
.btn.primary { background: var(--red); color: var(--on-red); }
.btn.ghost { color: var(--fg); border-color: var(--line); }
.hero-logo {
  background: #FFFFFF; border-radius: 28px; padding: clamp(14px, 3vw, 30px);
  border: 1px solid var(--line); max-width: 440px; justify-self: center; width: 100%;
}
.hero-logo img { display: block; width: 100%; height: auto; }

.values {
  background: var(--navy); color: #FFFFFF;
  border-radius: 18px; padding: 22px 28px;
  display: flex; justify-content: space-between; gap: 10px 28px; flex-wrap: wrap;
  font-family: var(--display); font-weight: 700; font-size: clamp(16px, 2.6vw, 21px);
  letter-spacing: 0.14em; text-transform: uppercase;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .values { color: #0B1226; } }
.values span::before { content: "\2665"; color: var(--red); margin-right: 12px; }

/* sections */
section { padding-block: 72px 0; }
main > section:first-child { padding-top: 48px; }
.sec-head { max-width: 640px; margin-bottom: 32px; }
.sec-head h2 { font-weight: 800; font-size: clamp(28px, 4.4vw, 42px); letter-spacing: -0.02em; margin-block: 10px 12px; }
.sec-head p { color: var(--muted); }

.actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; }
.action { background: var(--surface); border-radius: 16px; padding: 24px 24px 26px; min-width: 0; }
.action h3 { font-weight: 700; font-size: 21px; letter-spacing: -0.01em; margin-bottom: 10px; }
.action p { color: var(--muted); font-size: 16px; line-height: 1.6; }

.africa { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 2px solid var(--fg); }
.africa div { padding: 26px 26px 10px 0; min-width: 0; }
.africa div + div { padding-left: 26px; border-left: 1px solid var(--line); }
.africa h3 { font-weight: 700; font-size: 24px; margin-bottom: 10px; }
.africa p { color: var(--muted); font-size: 16.5px; }
@media (max-width: 640px) {
  .africa div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 16px; padding-top: 22px; }
}

.support { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.way { border: 1.5px solid var(--line); border-radius: 16px; padding: 24px; min-width: 0; }
.way.main { border-color: var(--red); }
.way .big { font-family: var(--display); font-weight: 800; font-size: 40px; letter-spacing: -0.02em; line-height: 1; margin-bottom: 6px; }
.way .big small { font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.way h3 { font-weight: 700; font-size: 20px; margin-bottom: 8px; }
.way p { color: var(--muted); font-size: 16px; line-height: 1.6; }

/* cartes de renvoi (accueil) */
.teasers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.teaser { background: var(--surface); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.teaser h3 { font-weight: 800; font-size: 24px; letter-spacing: -0.01em; }
.teaser p { color: var(--muted); font-size: 16px; }
.teaser a.more { margin-top: auto; font-weight: 600; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* texte courant et fiche d'identité */
.prose { max-width: 760px; display: grid; gap: 16px; }
.prose p { color: var(--muted); }
.prose h2 { font-weight: 800; font-size: 26px; letter-spacing: -0.01em; margin-top: 18px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 8px 0 0; border-top: 2px solid var(--fg); }
.facts div { padding: 16px 16px 12px 0; min-width: 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-family: var(--display); font-weight: 700; font-size: 19px; overflow-wrap: anywhere; }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.contact-card { background: var(--surface); border-radius: 18px; padding: 28px; min-width: 0; }
.contact-card h2 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.contact-card p { color: var(--muted); }
.contact-card .big { font-family: var(--display); font-weight: 700; font-size: clamp(18px, 3vw, 24px); color: var(--fg); overflow-wrap: anywhere; margin-top: 6px; }
.contact-card .big.red { color: var(--red); }
address { font-style: normal; }

.band {
  margin-top: 72px; background: var(--surface); border-radius: 22px;
  padding: clamp(26px, 5vw, 44px);
  display: flex; gap: 18px 40px; flex-wrap: wrap; align-items: center; justify-content: space-between;
}
.band > * { min-width: 0; }
.band h2 { font-weight: 800; font-size: clamp(24px, 3.6vw, 34px); letter-spacing: -0.02em; margin-bottom: 6px; }
.band p { color: var(--muted); max-width: 46ch; }

/* pied de page */
footer { margin-top: 80px; padding-block: 32px 44px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 24px 40px; font-size: 15px; color: var(--muted); }
.foot-grid > * { min-width: 0; }
.foot-grid strong { display: block; color: var(--fg); font-family: var(--display); font-size: 17px; margin-bottom: 6px; }
.foot-grid a { text-decoration: none; display: block; padding-block: 2px; }
.foot-grid a:hover { color: var(--fg); text-decoration: underline; }
.foot-note { margin-top: 24px; font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-block: 40px 52px; }
  .hero-logo { max-width: 340px; order: -1; }
  section { padding-block: 56px 0; }
  .page-head { padding-block: 40px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
