/* =========================================================================
   AGRS — Association des Greffés Rénaux du Sénégal
   Feuille de style unique · mobile-first · HTML/CSS
   ========================================================================= */

/* ---------- Reset léger ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
ul { list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- Jetons ---------- */
:root {
  --brand-900: #2a0d05;
  --brand-800: #3d1408;   /* couleur principale */
  --brand-700: #4a1509;
  --brand-600: #5c1e0e;
  --brand-300: #d38c72;
  --brand-100: #f4ddd2;
  --brand-50:  #fbf1ec;

  --accent:      #c0341e;  /* couleur secondaire */
  --accent-600:  #a32a17;
  --accent-50:   #fdeee9;

  --cream: #fbf4f0;
  --paper: #ffffff;
  --ink:   #2a0d05;
  --muted: #6f5348;

  --wa: #25d366;           /* vert WhatsApp */

  --radius:    18px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --pill: 999px;

  --shadow-sm: 0 6px 18px -10px rgba(61, 20, 8, .35);
  --shadow:    0 20px 45px -20px rgba(61, 20, 8, .40);

  --wrap: 1080px;
  --font: "Nunito", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Base ---------- */
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { line-height: 1.15; font-weight: 800; color: var(--brand-800); letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 7vw, 3.25rem); }
h2 { font-size: clamp(1.55rem, 5vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 3.5vw, 1.4rem); }
p  { color: #40261d; }
strong { font-weight: 800; color: var(--brand-800); }
::selection { background: var(--accent); color: #fff; }

/* ---------- Utilitaires ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: clamp(52px, 9vw, 104px); }
.section--cream { background: var(--cream); }
.section--brand { background: var(--brand-800); color: #fff; }
.section--brand h2, .section--brand h3 { color: #fff; }
.section--brand p { color: rgba(255,255,255,.82); }

.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 12px;
}
.section--brand .eyebrow { color: var(--brand-300); }

.lead { font-size: clamp(1.05rem, 2.6vw, 1.2rem); color: var(--muted); max-width: 46ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

.blob { border-radius: 42% 58% 63% 37% / 45% 42% 58% 55%; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 24px; border-radius: var(--pill);
  font-weight: 800; font-size: .98rem; text-align: center;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-600); }
.btn--dark { background: var(--brand-800); color: #fff; box-shadow: var(--shadow-sm); }
.btn--dark:hover { background: var(--brand-900); }
.btn--ghost { border: 2px solid var(--brand-800); color: var(--brand-800); }
.btn--ghost:hover { background: var(--brand-800); color: #fff; }
.btn--white { background: #fff; color: var(--brand-800); box-shadow: var(--shadow-sm); }
.btn--wa { background: var(--wa); color: #063; }
.btn--wa:hover { filter: brightness(.95); }
.btn--block { width: 100%; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--brand-100);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 34px; width: auto; }
.brand b { font-size: 1.3rem; font-weight: 900; color: var(--brand-800); letter-spacing: -.02em; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; color: var(--brand-800);
}
.nav-toggle:hover { background: var(--brand-50); }
.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }
.site-nav[data-open="true"] ~ .nav-toggle .icon-open,
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav {
  position: fixed; inset: 68px 0 auto 0;
  background: var(--paper);
  border-bottom: 1px solid var(--brand-100);
  box-shadow: var(--shadow);
  transform: translateY(-130%);
  transition: transform .28s ease;
  padding: 12px 20px 22px;
}
.site-nav[data-open="true"] { transform: translateY(0); }
.site-nav ul { display: flex; flex-direction: column; gap: 4px; }
.site-nav a {
  display: block; padding: 12px 12px; border-radius: 12px;
  font-weight: 700; color: var(--brand-700);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--brand-50); color: var(--accent); }
.site-nav .btn { margin-top: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--cream); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; width: 60vw; height: 60vw; max-width: 460px; max-height: 460px;
  right: -18%; top: -22%; background: rgba(192, 52, 30, .10);
  border-radius: 50% 50% 44% 56% / 56% 46% 54% 44%;
}
.hero::after {
  content: ""; position: absolute; width: 55vw; height: 55vw; max-width: 380px; max-height: 380px;
  left: -22%; bottom: -30%; background: rgba(61, 20, 8, .08);
}
.hero .wrap { position: relative; padding-block: clamp(48px, 11vw, 92px); }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border-radius: var(--pill); padding: 7px 16px;
  font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand-700); box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.hero-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero h1 { margin-bottom: 18px; }
.hero h1 .hl { color: var(--accent); }
.hero .lead { max-width: 52ch; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin-top: 40px; max-width: 520px;
}
.hero-stats .n { font-size: clamp(1.15rem, 4.4vw, 1.6rem); font-weight: 900; color: var(--brand-800); }
.hero-stats .l { font-size: .74rem; color: var(--muted); font-weight: 600; }

/* ---------- Grilles de cartes ---------- */
.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

.card {
  background: var(--paper); border: 1px solid var(--brand-100);
  border-radius: var(--radius-lg); padding: 26px;
}
.section--cream .card { border-color: transparent; box-shadow: var(--shadow-sm); }
.card .ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 16px;
  background: var(--accent-50); color: var(--accent); margin-bottom: 16px;
}
.card .ico svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 6px; }
.card p { font-size: .96rem; color: var(--muted); }

.section--brand .card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
.section--brand .card .ico { background: rgba(255,255,255,.12); color: var(--brand-300); }
.section--brand .card p { color: rgba(255,255,255,.78); }

/* ---------- Bloc mission / citation ---------- */
.quote {
  border-left: 4px solid var(--accent);
  background: rgba(192,52,30,.06);
  padding: 18px 20px; border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; color: var(--brand-800);
}

/* ---------- Soutenir (WhatsApp) ---------- */
.support-card {
  background: var(--paper); border-radius: var(--radius-xl);
  box-shadow: var(--shadow); padding: clamp(24px, 6vw, 44px);
  text-align: center;
}
.support-card .wa-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 20px; background: rgba(37,211,102,.14); color: #0a7a3d;
  margin: 0 auto 18px;
}
.support-card .wa-badge svg { width: 34px; height: 34px; }
.support-options { display: grid; gap: 10px; margin-top: 22px; text-align: left; }
.support-options li {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--cream); border-radius: var(--radius); padding: 14px 16px;
  font-size: .95rem;
}
.support-options .k { font-weight: 800; color: var(--brand-800); }
.support-card .btn { margin-top: 24px; }
.fineprint { font-size: .82rem; color: var(--muted); margin-top: 14px; }

/* ---------- L'association : photo + texte ---------- */
.assoc-grid { display: grid; gap: 22px; }
.photo-frame { margin: 0; }
.photo-frame img {
  width: 100%; display: block;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 24%;
  box-shadow: var(--shadow);
}
.photo-frame figcaption {
  margin-top: 10px; font-size: .84rem; color: var(--muted); text-align: center;
}

/* ---------- Bureau ---------- */
.bureau { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 34px; }
.bureau .role {
  border: 1px solid var(--brand-100); border-radius: var(--radius); padding: 18px 20px;
}
.bureau .role span { display: block; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.bureau .role b { font-size: 1.1rem; color: var(--brand-800); }
.legal-facts { margin-top: 26px; display: grid; gap: 6px; font-size: .92rem; color: var(--muted); }
.legal-facts b { color: var(--brand-800); }

/* ---------- Ressources ---------- */
.disclaimer {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff7d6; border: 1px solid #f0d98a; color: #6b5300;
  border-radius: var(--radius); padding: 16px 18px; font-size: .92rem;
  margin-bottom: 34px;
}
.disclaimer svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }

.res-toc {
  background: var(--brand-50); border-radius: var(--radius-lg); padding: 22px 24px; margin-bottom: 40px;
}
.res-toc b { display: block; margin-bottom: 10px; color: var(--brand-800); }
.res-toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.res-toc a { color: var(--brand-700); font-weight: 600; }
.res-toc a:hover { color: var(--accent); }

.res-block { margin-bottom: 40px; scroll-margin-top: 84px; }
.res-block > h2 { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.res-block > h2 .num {
  flex: none; width: 38px; height: 38px; border-radius: 12px;
  background: var(--brand-800); color: #fff; font-size: 1rem; font-weight: 900;
  display: inline-flex; align-items: center; justify-content: center;
}
.res-block h3 { margin: 22px 0 6px; }
.res-block p { margin-bottom: 10px; }
.res-block ul.check { display: grid; gap: 9px; margin: 10px 0 4px; }
.res-block ul.check li { position: relative; padding-left: 28px; font-size: .97rem; color: #40261d; }
.res-block ul.check li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px;
  border-radius: 6px; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat;
}
.alert-box {
  background: var(--accent-50); border: 1px solid #f0b6a6; border-radius: var(--radius);
  padding: 18px 20px; margin: 12px 0;
}
.alert-box b { color: var(--accent-600); }
.alert-box ul { display: grid; gap: 8px; margin-top: 10px; padding-left: 20px; list-style: disc; }
.alert-box ul li { font-weight: 700; color: var(--brand-800); }

details.faq {
  border: 1px solid var(--brand-100); border-radius: var(--radius); padding: 4px 18px; margin-bottom: 10px;
}
details.faq summary {
  cursor: pointer; padding: 14px 0; font-weight: 800; color: var(--brand-800);
  list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); font-weight: 700; }
details.faq[open] summary::after { content: "–"; }
details.faq p { padding-bottom: 16px; margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--brand-900); color: rgba(255,255,255,.8); padding-block: 52px 30px; }
.site-footer .cols { display: grid; gap: 30px; grid-template-columns: 1fr; }
.site-footer .brand b { color: #fff; }
.site-footer img { height: 40px; margin-bottom: 14px; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a:hover { color: #fff; }
.site-footer .contact-line { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; font-size: .93rem; }
.site-footer .contact-line svg { width: 18px; height: 18px; flex: none; color: var(--brand-300); margin-top: 3px; }
.site-footer .socials { display: flex; gap: 10px; margin-top: 8px; }
.site-footer .socials a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1);
  display: inline-flex; align-items: center; justify-content: center;
}
.site-footer .socials a:hover { background: rgba(255,255,255,.2); }
.site-footer .socials svg { width: 18px; height: 18px; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 34px; padding-top: 22px;
  font-size: .8rem; color: rgba(255,255,255,.6); display: grid; gap: 8px;
}

/* ---------- Skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--brand-800); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip:focus { left: 12px; }

/* =========================================================================
   Points de rupture — on enrichit à partir du mobile
   ========================================================================= */
@media (min-width: 620px) {
  .grid--2 { grid-template-columns: 1fr 1fr; }
  .grid--4 { grid-template-columns: 1fr 1fr; }
  .bureau  { grid-template-columns: repeat(3, 1fr); }
  .support-options { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .site-header .wrap { height: 76px; }
  .nav-toggle { display: none; }
  .site-nav {
    position: static; transform: none; box-shadow: none; border: 0;
    padding: 0; background: transparent; inset: auto;
  }
  .site-nav ul { flex-direction: row; align-items: center; gap: 6px; }
  .site-nav a { padding: 8px 14px; font-size: .95rem; }
  .site-nav .btn { margin-top: 0; margin-left: 8px; }

  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }

  .hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; }
  .hero-visual { justify-self: center; }
  .hero-visual img { width: min(360px, 74vw); }

  .mission-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: start; }

  .assoc-grid { grid-template-columns: .9fr 1.1fr; gap: 46px; align-items: center; }
  .photo-frame img { aspect-ratio: 3 / 4; object-position: center 20%; }
  .support-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
  .support-wrap .support-card { text-align: left; }
  .support-wrap .support-card .wa-badge { margin-left: 0; }

  .site-footer .cols { grid-template-columns: 1.4fr 1fr 1.3fr; gap: 40px; }
  .footer-legal { grid-template-columns: 1fr auto; align-items: center; }
}

@media (min-width: 1100px) {
  .res-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
  .res-toc { position: sticky; top: 92px; margin-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
