/* APREI — feuille de style unique */

:root {
  --navy: #0e4285;
  --navy-dark: #0a3165;
  --green: #6da723;
  --green-text: #4c7a12;
  --ink: #1d2733;
  --muted: #4d5b6a;
  --line: #dde5ee;
  --bg: #ffffff;
  --bg-alt: #f3f6fa;
  --radius: 14px;
  --shadow: 0 14px 40px rgba(14, 66, 133, 0.12);
  --container: 1160px;
  --header-h: 84px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

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

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  margin: 0 0 0.6em;
  line-height: 1.2;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--green-text); }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.narrow { max-width: 820px; }
.center { text-align: center; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--navy); color: #fff; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- En-tête ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 24px;
}
.brand img { width: 170px; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.98rem;
}
.site-nav ul a { position: relative; padding: 6px 0; }
.site-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--green); transition: right 0.2s ease;
}
.site-nav ul a:hover { color: var(--navy); }
.site-nav ul a:hover::after { right: 0; }

.social {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  border-radius: 50%; background: var(--bg-alt); color: var(--navy) !important;
}
.social:hover { background: var(--navy); color: #fff !important; }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0; border: 0;
  background: transparent; cursor: pointer; border-radius: 8px;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block; width: 24px; height: 2px; margin-inline: auto;
  background: var(--navy); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-bar { position: relative; }
.nav-toggle-bar::before,
.nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  :root { --header-h: 70px; }
  .brand img { width: 136px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 20px; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav ul a::after { display: none; }
  .social { margin-top: 16px; }
}

/* ---------- Boutons ---------- */

.button {
  display: inline-block; padding: 14px 28px; border-radius: 999px;
  background: var(--navy); color: #fff; text-decoration: none; font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}
.button:hover { background: var(--green-text); color: #fff; transform: translateY(-1px); }

/* ---------- Accueil ---------- */

.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(109, 167, 35, 0.12), transparent 45%),
    linear-gradient(180deg, #f6f9fc 0%, #eaf0f7 100%);
  padding: clamp(48px, 8vw, 96px) 0;
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center;
}
.hero-text h1 { position: relative; padding-left: 22px; }
.hero-text h1::before {
  content: ""; position: absolute; left: 0; top: 0.12em; bottom: 0.12em; width: 6px;
  border-radius: 6px; background: var(--green);
}
.lead { font-size: 1.15rem; color: var(--muted); margin-bottom: 1.6em; }
.hero-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
}

/* ---------- Sections ---------- */

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-alt { background: var(--bg-alt); }

.band { padding: clamp(56px, 8vw, 96px) 0; }
.band-navy { background: var(--navy); color: #e8eef7; }
.band-navy h2 { color: #fff; }
.band-navy a { color: #fff; }
.band-navy .center p { font-size: 1.12rem; }

.eyebrow {
  margin-bottom: 0.5em; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-text);
}

.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.split-reverse .split-media { order: 2; }
.split-media img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.split-media.tall img { aspect-ratio: 4 / 5; object-position: 45% 50%; }
.band-navy .split-media img { box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25); }

.note {
  margin-top: clamp(40px, 6vw, 64px); padding: 28px 32px;
  background: var(--bg-alt); border-left: 5px solid var(--green); border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.98rem; color: var(--muted);
}
.note strong { color: var(--ink); }

/* Listes */
.checklist { margin: 0 0 1.2em; padding: 0; list-style: none; }
.checklist li { position: relative; padding-left: 34px; margin-bottom: 0.85em; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.32em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.pledges { margin: 1.4em 0 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.pledges li {
  display: flex; align-items: center; gap: 18px; padding: 18px 22px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  font-weight: 600; font-size: 1.08rem; color: var(--ink);
  box-shadow: 0 4px 14px rgba(14, 66, 133, 0.05);
}
.pledge-icon {
  flex: none; display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: 12px; background: rgba(14, 66, 133, 0.08);
}
.pledge-icon svg {
  width: 24px; height: 24px; fill: none; stroke: var(--navy);
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* APREI et IFEC */
.split-ifec { grid-template-columns: 1.6fr 1fr; align-items: start; }
.logos {
  display: grid; gap: 28px; justify-items: center; padding: 36px 28px;
  background: var(--bg-alt); border-radius: var(--radius); position: sticky; top: calc(var(--header-h) + 24px);
}
.logos img { width: min(100%, 240px); }
.highlight {
  padding: 18px 22px; border-radius: var(--radius);
  background: rgba(109, 167, 35, 0.1); color: var(--ink); font-weight: 600;
}

/* ---------- Pied de page ---------- */

.site-footer { background: #0b1f3a; color: #b9c6d8; padding: 28px 0; font-size: 0.95rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: #e4ebf5; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

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

@media (max-width: 860px) {
  .hero-inner,
  .split,
  .split-ifec { grid-template-columns: 1fr; }
  .split-reverse .split-media { order: 0; }
  .split-media.tall img { aspect-ratio: 3 / 2; }
  .hero-media { order: -1; }
  .logos { position: static; grid-template-columns: 1fr 1fr; align-items: center; }
  .note { padding: 22px 20px; }
}
