/* Les Enfants du Peuple — feuille de style du site
   Charte EDP : bleu #1A2FA8, jaune #F5C500, Plus Jakarta Sans (titres) + Nunito (texte) */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus-jakarta-sans-latin-wght.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito-latin-wght.woff2") format("woff2");
  font-weight: 200 1000; font-style: normal; font-display: swap;
}

:root {
  --blue: #1A2FA8;
  --blue-dark: #0D1E7A;
  --blue-deep: #0A165C;
  --blue-soft: #E9ECF8;
  --yellow: #F5C500;
  --yellow-hover: #E5B700;
  --ink: #141833;
  --text: #2E3450;
  --muted: #5A6080;
  --line: #E2E5EF;
  --bg: #FFFFFF;
  --bg-soft: #F5F6FA;
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1160px;
  --gutter: 24px;
  --shadow: 0 1px 2px rgba(20, 24, 51, .06), 0 8px 24px rgba(20, 24, 51, .07);
  --title: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--body); font-size: 17px; line-height: 1.65;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .page-hero :focus-visible, .section--blue :focus-visible, .site-footer :focus-visible, .cta-band :focus-visible { outline-color: var(--yellow); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

h1, h2, h3, h4 { font-family: var(--title); color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(34px, 5.2vw, 58px); font-weight: 800; line-height: 1.06; letter-spacing: -.025em; }
h2 { font-size: clamp(27px, 3.4vw, 40px); font-weight: 800; line-height: 1.12; letter-spacing: -.018em; }
h3 { font-size: 21px; font-weight: 700; line-height: 1.3; letter-spacing: -.008em; }
p { margin: 0 0 1em; }
strong { color: var(--ink); font-weight: 700; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--yellow); color: var(--blue-deep); padding: 10px 16px; border-radius: 8px; z-index: 200; font-weight: 700; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 88px 0; }
.section--soft { background: var(--bg-soft); }
.section--blue { background: var(--blue-dark); color: rgba(255, 255, 255, .82); }
.section--blue h2, .section--blue h3, .section--blue strong { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head p { font-size: 19px; color: var(--muted); }
.section--blue .section-head p { color: rgba(255, 255, 255, .72); }
.overline {
  display: inline-block; font-family: var(--title); font-size: 12px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px;
}
.section--blue .overline, .hero .overline, .page-hero .overline { color: var(--yellow); }
.lead { font-size: 20px; line-height: 1.6; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--title); font-weight: 700; font-size: 16px; line-height: 1;
  padding: 16px 26px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--yellow { background: var(--yellow); color: var(--blue-deep); }
.btn--yellow:hover { background: var(--yellow-hover); color: var(--blue-deep); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-dark); color: #fff; }
.btn--ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--blue-dark); }
.btn--line { border-color: var(--blue); color: var(--blue); }
.btn--line:hover { background: var(--blue); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(8px); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 48px; height: 48px; }
.brand span { font-family: var(--title); font-weight: 800; font-size: 18px; color: var(--blue-dark); letter-spacing: -.01em; line-height: 1.1; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { font-family: var(--title); font-weight: 700; font-size: 15px; color: var(--ink); text-decoration: none; padding: 10px 12px; border-radius: 10px; }
.nav a:hover { background: var(--blue-soft); color: var(--blue); }
.nav a[aria-current="page"] { color: var(--blue); }
.nav .btn { margin-left: 8px; padding: 12px 20px; font-size: 15px; }
.nav .btn:hover { background: var(--yellow-hover); color: var(--blue-deep); }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--ink); }
.menu-toggle svg { width: 28px; height: 28px; }

@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 20px; box-shadow: 0 16px 24px rgba(20, 24, 51, .08); }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .btn { margin: 16px 0 0; padding: 16px; border-radius: 999px; border-bottom: 0; }
}

/* ---------- Héros (accueil) ---------- */
.hero { position: relative; color: #fff; background: var(--blue-dark); overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10, 22, 92, .94) 0%, rgba(10, 22, 92, .82) 42%, rgba(10, 22, 92, .35) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-top: 112px; padding-bottom: 112px; }
.hero__text { max-width: 640px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero .lead { color: rgba(255, 255, 255, .86); max-width: 560px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 36px; padding: 0; list-style: none; font-size: 15px; color: rgba(255, 255, 255, .78); }
.hero__facts li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); margin-right: 10px; vertical-align: 2px; }

/* ---------- Héros (pages intérieures) ---------- */
.page-hero { position: relative; color: #fff; background: var(--blue-dark); overflow: hidden; }
.page-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 22, 92, .93) 0%, rgba(10, 22, 92, .7) 55%, rgba(10, 22, 92, .4) 100%); }
.page-hero--plain::after { display: none; }
.page-hero .wrap { position: relative; z-index: 1; padding-top: 64px; padding-bottom: 68px; }
.page-hero h1 { color: #fff; max-width: 780px; font-size: clamp(32px, 4.6vw, 52px); }
.page-hero .lead { color: rgba(255, 255, 255, .85); max-width: 640px; margin: 0; }
.page-hero .btn-row { margin-top: 26px; }

/* ---------- Questions fréquentes ---------- */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { font-family: var(--title); font-weight: 700; font-size: 18px; color: var(--ink); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* ---------- Fiche d'identité ---------- */
.fiche { display: grid; grid-template-columns: 200px 1fr; gap: 10px 24px; margin: 0; }
.fiche dt { font-family: var(--title); font-weight: 700; color: var(--ink); }
.fiche dd { margin: 0; }
@media (max-width: 600px) { .fiche { grid-template-columns: 1fr; gap: 2px; } .fiche dd { margin-bottom: 12px; } }
.crumbs { font-size: 14px; color: rgba(255, 255, 255, .7); margin-bottom: 26px; }
.crumbs a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span { margin: 0 8px; }

/* ---------- Grilles et cartes ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .grid--3 { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .grid--2, .grid--4 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.card__img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; }
.card__body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card__body p { color: var(--muted); font-size: 16px; }
.card__tag { font-family: var(--title); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.card__link { margin-top: auto; font-family: var(--title); font-weight: 700; font-size: 15px; text-decoration: none; }
.card__link::after { content: " →"; }
a.card { text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
a.card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(20, 24, 51, .06), 0 16px 36px rgba(20, 24, 51, .12); }
a.card:hover h3 { color: var(--blue); }

/* ---------- Chiffres ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { border-top: 3px solid var(--yellow); padding-top: 18px; }
.stat b { display: block; font-family: var(--title); font-weight: 800; font-size: clamp(40px, 4.6vw, 58px); line-height: 1; letter-spacing: -.035em; color: #fff; }
.section:not(.section--blue) .stat b { color: var(--blue); }
.stat span { display: block; margin-top: 10px; font-size: 15px; line-height: 1.45; }

/* ---------- Bloc texte + image ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.split--rev > :first-child { order: 2; }
.split img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } .split--rev > :first-child { order: 0; } }

.prose { max-width: 720px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.5em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: var(--radius); }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }

/* ---------- Étapes ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.steps .step::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; font-family: var(--title); font-weight: 800; font-size: 15px; color: var(--blue); background: var(--blue-soft); width: 44px; height: 44px; line-height: 44px; text-align: center; border-radius: 50%; margin-bottom: 18px; }
.step p { color: var(--muted); font-size: 16px; margin: 0; }

/* ---------- Dons ---------- */
.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 36px 0 8px; }
@media (max-width: 760px) { .amounts { grid-template-columns: 1fr; } }
.amount { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius); padding: 26px; }
.amount b { display: block; font-family: var(--title); font-size: 40px; font-weight: 800; color: var(--yellow); letter-spacing: -.03em; line-height: 1; margin-bottom: 12px; }
.amount span { color: rgba(255, 255, 255, .8); font-size: 16px; }
.section:not(.section--blue) .amount { background: #fff; border-color: var(--line); box-shadow: var(--shadow); }
.section:not(.section--blue) .amount b { color: var(--blue); }
.section:not(.section--blue) .amount span { color: var(--muted); }
.note { font-size: 14px; color: var(--muted); }
.section--blue .note { color: rgba(255, 255, 255, .6); }

/* ---------- Encadrés ---------- */
.callout { background: var(--blue-soft); border-radius: var(--radius); padding: 28px 30px; }
.callout h3, .callout .h3 { margin-bottom: .3em; }
h2.h3 { font-size: 21px; font-weight: 700; line-height: 1.3; letter-spacing: -.008em; }
.callout p:last-child { margin-bottom: 0; }
.cta-band { background: var(--blue); color: #fff; border-radius: 24px; padding: 52px; display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: rgba(255, 255, 255, .82); margin: 0; font-size: 18px; }
.cta-band .btn-row { margin-top: 0; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; padding: 36px 26px; } }

/* ---------- Actualités ---------- */
.news-meta { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.article-meta { font-size: 15px; color: rgba(255, 255, 255, .78); margin-top: 18px; }

/* ---------- Formulaire ---------- */
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
@media (max-width: 600px) { .form { padding: 24px 18px; } }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 20px; }
.field label, .field legend { display: block; font-family: var(--title); font-weight: 700; font-size: 15px; color: var(--ink); margin-bottom: 8px; padding: 0; }
.field .hint { font-weight: 400; font-family: var(--body); color: var(--muted); font-size: 14px; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  border: 1.5px solid #C9CEDF; border-radius: var(--radius-sm); padding: 13px 14px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(26, 47, 168, .14); }
fieldset.field { border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--body); font-weight: 600; font-size: 15px; color: var(--text);
  border: 1.5px solid #C9CEDF; border-radius: 999px; padding: 9px 16px; cursor: pointer; margin: 0; }
.checks input { accent-color: var(--blue); width: 17px; height: 17px; margin: 0; }
.checks label:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-dark); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--muted); margin: 6px 0 24px; }
.consent input { accent-color: var(--blue); width: 20px; height: 20px; margin-top: 3px; flex: none; }
.hp { position: absolute !important; left: -9999px !important; }
.form-status { margin-top: 14px; font-weight: 600; }
.form-status.is-error { color: #B42318; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--blue-deep); color: rgba(255, 255, 255, .72); padding: 72px 0 36px; font-size: 15px; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { width: 52px; height: 52px; }
.footer-brand b { font-family: var(--title); font-size: 18px; color: #fff; }
.site-footer h4 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .1); display: grid; place-items: center; }
.socials a:hover { background: var(--yellow); }
.socials a:hover svg { fill: var(--blue-deep); }
.socials svg { width: 18px; height: 18px; fill: #fff; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 52px; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13.5px; color: rgba(255, 255, 255, .55); }

/* ---------- Bannière cookies ---------- */
.cookies { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 300; max-width: 720px; margin: 0 auto; background: #fff; color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(20, 24, 51, .22); padding: 20px 22px; display: flex; gap: 18px; align-items: center; }
.cookies p { margin: 0; font-size: 15px; line-height: 1.5; }
.cookies__btns { display: flex; gap: 10px; flex: none; }
.cookies .btn { padding: 12px 18px; font-size: 15px; }
@media (max-width: 700px) { .cookies { flex-direction: column; align-items: stretch; } .cookies__btns > .btn { flex: 1; } }
.lien-bouton { background: none; border: 0; padding: 0; font: inherit; color: rgba(255, 255, 255, .85); cursor: pointer; text-decoration: none; }
.lien-bouton:hover { color: #fff; text-decoration: underline; }

/* ---------- Divers ---------- */
.center { text-align: center; }
.note--top { margin-top: 20px; }
.mt-0 { margin-top: 0 !important; }
.step h3 { margin-top: 0; }
.list-check { list-style: none; padding: 0; margin: 0 0 1em; }
.list-check li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.list-check li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 14px; height: 8px; border-left: 3px solid var(--blue); border-bottom: 3px solid var(--blue); transform: rotate(-45deg); }
.section--blue .list-check li::before { border-color: var(--yellow); }
