/* =========================================================================
   UAOD — Union Africaine des ONG de Développement
   Feuille de style unique du site vitrine (statique, sans dépendance).
   Palette dérivée du logo : bleu ciel, bleu profond, or.
   ========================================================================= */

/* --- 0. Polices auto-hébergées (aucune dépendance externe) ------------ */
/* DM Sans : texte courant */
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/dmsans-400.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/dmsans-500.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/dmsans-600.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/dmsans-700.woff2") format("woff2"); }
/* Syne : chiffres clés uniquement (formes géométriques atypiques) */
@font-face { font-family: "Syne"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/syne-800.woff2") format("woff2"); }
/* Bricolage Grotesque : titres */
@font-face { font-family: "Bricolage"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/bricolage-600.woff2") format("woff2"); }
@font-face { font-family: "Bricolage"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/bricolage-700.woff2") format("woff2"); }
@font-face { font-family: "Bricolage"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/bricolage-800.woff2") format("woff2"); }

/* --- 1. Variables de design ------------------------------------------- */
:root {
  /* Couleurs de marque — bleu du logo réchauffé par la terre cuite */
  --blue: #7fb2d4;          /* bleu ciel pastel (petits accents) */
  --blue-deep: #2f6488;     /* bleu du logo (tuiles pleines, titres) */
  --blue-darker: #274f6c;
  --terra: #c98a6b;         /* terre cuite (chaleur, survols) */
  --terra-deep: #a3603f;    /* terre cuite foncée (texte sur fond clair) */
  --gold: #e0b072;          /* or chaud (appels à l'action) */
  --gold-dark: #c08a4e;

  /* Neutres chauds */
  --ink: #2e2822;           /* texte principal (near-black chaud) */
  --ink-soft: #6d6053;      /* texte secondaire */
  --line: #e8dac9;          /* bordures chaudes */
  --card: #fffcf7;          /* blanc chaud pour les cartes */
  --bg: #f8f1e6;            /* sable clair (page) */
  --bg-soft: #f1e5d5;       /* sable plus profond (sections alternées) */
  --bg-blue-soft: #f6e5da;  /* tuile d'accent : teinte terre cuite très douce */

  /* Typographie */
  --font: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --font-head: "Bricolage", "DM Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-num: "Syne", "Bricolage", -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Divers */
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(15, 27, 45, 0.08);
  --shadow-lg: 0 14px 40px rgba(15, 27, 45, 0.14);
  --maxw: 1160px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
}

/* --- 2. Base ---------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 15px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Grain de papier : voile de bruit fractal généré en CSS (aucun fichier image).
   Fixe, non cliquable, très faible opacité — donne de la matière au fond sable. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}
/* Le contenu passe au-dessus du grain */
.site-header, main, .site-footer { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

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

a { color: var(--blue-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.02em;
}
h1 { font-weight: 800; }
.eyebrow, .badge, .tile-quote cite {
  font-family: var(--font-head);
}
/* Chiffres clés : Syne. nowrap + taille contenue pour que « 10 000 » et
   « 60 000 », plus larges dans cette police, tiennent sur une seule ligne. */
.stat .num, .tile-stat .num {
  font-family: var(--font-num);
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; }

/* Accessibilité : focus visible */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue-deep);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

/* --- 3. Layout utilitaires ------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(2.2rem, 5vw, 3.8rem); }
.section--tight { padding-block: 1.4rem; }
.section--soft { background: var(--bg-soft); }
.section--blue { background: var(--bg-blue-soft); }

.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 0.6rem;
}
.lead { font-size: 1.15rem; color: var(--ink-soft); }

/* --- 4. Boutons ------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-dark); }
.btn--blue { background: var(--blue-deep); color: #fff; }
.btn--blue:hover { background: var(--blue-darker); }
.btn--ghost { background: transparent; border-color: #fff; color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn--outline { background: transparent; border-color: var(--blue-deep); color: var(--blue-deep); }
.btn--outline:hover { background: var(--blue-deep); color: #fff; }

/* --- 5. Header / navigation ------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* Teinte alignée sur --bg : le blanc du logo (mix-blend multiply) disparaît. */
  background: rgba(248, 241, 230, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 0.65rem; }
/* Le logo est un JPG à fond blanc : multiply fait disparaître ce blanc
   dans le sable de la page, sans retoucher le fichier source. */
.brand img { height: 42px; width: auto; mix-blend-mode: multiply; }
.brand:hover { text-decoration: none; }
.brand .brand-tag {
  font-size: 0.72rem;
  color: var(--ink-soft);
  font-weight: 600;
  line-height: 1.1;
  max-width: 150px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.86rem;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-sm);
}
.nav-links a:hover { background: var(--bg-soft); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--blue-deep); }
.nav-links a[aria-current="page"]::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  margin-top: 2px;
}

.nav-actions { display: flex; align-items: center; gap: 0.5rem; }

/* Liens réseaux sociaux (header) */
.social { display: flex; align-items: center; gap: 0.15rem; }
.social-link {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 8px;
  color: var(--ink-soft);
}
.social-link:hover { color: var(--blue-deep); background: var(--bg-soft); text-decoration: none; }
.social-link svg { width: 18px; height: 18px; }

/* Bascule de langue */
.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--card);
}
.lang-toggle button {
  border: 0;
  background: transparent;
  padding: 0.35rem 0.7rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.lang-toggle button[aria-pressed="true"] {
  background: var(--blue-deep);
  color: #fff;
}

/* Bouton hamburger (mobile) */
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius-sm);
  width: 44px; height: 44px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  margin: 0 auto;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after  { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-7px) rotate(-45deg); }

/* --- 6. Hero ---------------------------------------------------------- */
.hero {
  position: relative;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(27, 117, 188, 0.96), rgba(20, 90, 145, 0.96));
  overflow: hidden;
}
.hero::after { /* motif carte d'Afrique en filigrane */
  content: "";
  position: absolute;
  right: -6%;
  top: 50%;
  transform: translateY(-50%);
  width: 620px; height: 620px;
  max-width: 60%;
  background: url("../img/africa.svg") no-repeat center / contain;
  opacity: 0.10;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-inner { max-width: 720px; padding-block: clamp(3.5rem, 9vw, 6rem); }
.hero h1 { color: #fff; }
.hero p { font-size: 1.2rem; color: rgba(255, 255, 255, 0.92); }
.hero .cta-row { margin-top: 1.8rem; }
.hero .badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.1rem;
}

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

/* Bandeau de page interne (sans stats) */
.page-hero {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-darker));
  color: #fff;
}
.page-hero .container { padding-block: clamp(2.6rem, 6vw, 4rem); }
.page-hero h1 { color: #fff; margin-bottom: 0.4rem; }
.page-hero p { color: rgba(255, 255, 255, 0.9); max-width: 640px; margin: 0; }

/* Fil d'Ariane */
.breadcrumb { font-size: 0.85rem; color: rgba(255, 255, 255, 0.8); margin-bottom: 0.8rem; }
.breadcrumb a { color: #fff; }

/* --- 7. Chiffres clés ------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.stat {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 1.3rem 1rem;
  text-align: center;
}
.stat .num {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.stat .label { font-size: 0.9rem; color: rgba(255, 255, 255, 0.9); margin-top: 0.4rem; }

/* Variante chiffres sur fond clair */
.stats--light .stat { background: var(--card); border-color: var(--line); box-shadow: var(--shadow); }
.stats--light .stat .num { color: var(--blue-deep); }
.stats--light .stat .label { color: var(--ink-soft); }

/* --- 8. Grilles de cartes -------------------------------------------- */
.grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: 0.4rem; }
.card p:last-child { margin-bottom: 0; }

.card .icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--bg-blue-soft);
  color: var(--blue-deep);
  margin-bottom: 1rem;
}
.card .icon svg { width: 26px; height: 26px; }

/* Réseaux sectoriels : cartes compactes */
.sector-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.sector {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  font-weight: 600;
  transition: box-shadow 0.15s ease;
}
.sector:hover { box-shadow: var(--shadow); }
.sector .dot {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--bg-blue-soft);
  color: var(--blue-deep);
  display: grid; place-items: center;
}
.sector .dot svg { width: 20px; height: 20px; }

/* --- 9. Listes de valeurs / features --------------------------------- */
.value-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.value {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.value h3 { display: flex; align-items: center; gap: 0.6rem; font-size: 1.1rem; }
.value h3 .mark {
  width: 34px; height: 34px; flex: 0 0 auto;
  border-radius: 8px; background: var(--gold); color: var(--ink);
  display: grid; place-items: center; font-weight: 800;
}
.value p { color: var(--ink-soft); margin: 0; font-size: 0.97rem; }

/* Liste à puces stylée */
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.85rem;
  color: var(--ink-soft);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.35rem;
  width: 20px; height: 20px;
  background: var(--blue-deep);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* --- 10. Deux colonnes (texte + encadré) ----------------------------- */
.split { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 860px) { .split { grid-template-columns: 1.1fr 0.9fr; } }
.panel {
  background: var(--blue-deep);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.8rem;
}
.panel h3 { color: #fff; }
.panel ul { padding-left: 1.1rem; margin: 0; }
.panel li { margin-bottom: 0.5rem; color: rgba(255, 255, 255, 0.92); }

/* Frise gouvernance */
.gov-list { display: grid; gap: 1rem; }
.gov-item {
  display: flex; gap: 1rem;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.3rem;
}
.gov-item .step {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gold); color: var(--ink);
  display: grid; place-items: center; font-weight: 800;
}
.gov-item h3 { margin-bottom: 0.3rem; font-size: 1.1rem; }
.gov-item p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }

/* --- 11. Bandeau CTA -------------------------------------------------- */
.cta-band {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3rem);
  text-align: center;
}
.cta-band h2 { color: var(--ink); }
.cta-band p { max-width: 620px; margin: 0 auto 1.5rem; color: #5a4a17; font-weight: 500; }
.cta-band .cta-row { justify-content: center; }

/* --- 12. Encart "à compléter" ---------------------------------------- */
.notice {
  border: 1px dashed var(--gold-dark);
  background: #fff9ee;
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  font-size: 0.95rem;
  color: #6b5417;
  display: flex;
  gap: 0.7rem;
}
.notice svg { flex: 0 0 auto; width: 22px; height: 22px; color: var(--gold-dark); }

/* --- 13. Tableau (coordinateurs pays) -------------------------------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
table.data {
  width: 100%;
  border-collapse: collapse;
  min-width: 460px;
  background: var(--card);
}
table.data th, table.data td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
table.data thead th {
  background: var(--blue-deep);
  color: #fff;
  position: sticky; top: 0;
  font-weight: 700;
}
table.data tbody tr:nth-child(even) { background: var(--bg-soft); }

/* --- 14. Formulaire --------------------------------------------------- */
.form { display: grid; gap: 1.1rem; }
.form .field { display: grid; gap: 0.35rem; }
.form label { font-weight: 600; font-size: 0.95rem; }
.form .req { color: #c0392b; }
.form input,
.form textarea,
.form select {
  font: inherit;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--ink);
  width: 100%;
}
.form textarea { resize: vertical; min-height: 140px; }
.form .hint { font-size: 0.85rem; color: var(--ink-soft); }
.form-status {
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  display: none;
}
.form-status.show { display: block; }
.form-status.ok { background: #e8f7ee; color: #1c7a41; }
.form-status.err { background: #fdecea; color: #b52a1d; }

/* Bloc de contact */
.contact-info { display: grid; gap: 1rem; }
.contact-item { display: flex; gap: 0.8rem; align-items: flex-start; }
.contact-item .ic {
  flex: 0 0 auto; width: 40px; height: 40px;
  border-radius: 10px; background: var(--bg-blue-soft); color: var(--blue-deep);
  display: grid; place-items: center;
}
.contact-item .ic svg { width: 22px; height: 22px; }
.contact-item strong { display: block; }
.contact-item a { color: var(--blue-deep); }

/* --- 15. Footer minimal ---------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: #cbc6ba;
  padding-block: 1.5rem;
}
.site-footer a { color: #cbc6ba; }
.site-footer a:hover { color: #fff; }
.footer-min {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem 1.5rem;
}
.footer-min .footer-logo img { height: 32px; background: var(--card); padding: 5px 7px; border-radius: 8px; }
.footer-links { display: flex; gap: 1.2rem; }
.footer-links a { font-size: 0.85rem; }
.footer-copy { margin: 0; font-size: 0.8rem; color: #948c7e; }

/* --- 16. Responsive : navigation mobile ------------------------------ */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .brand .brand-tag { display: none; }
  .nav-links {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem var(--gutter) 1rem;
    /* Masquage par visibilité : fiable quelle que soit la hauteur du panneau
       (un translateY en % ne suffit pas à le sortir du décalage top:72px). */
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.22s ease, opacity 0.22s ease, visibility 0.22s;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; visibility: visible; }
  /* display:block → séparateurs sur toute la largeur et zone tactile pleine */
  .nav-links a { display: block; padding: 0.9rem 0.4rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-links li:last-child a { border-bottom: 0; }
  .nav-links a[aria-current="page"]::after { display: none; }
}

/* --- 16b. Bento grid (accueil) --------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(134px, auto);
  grid-auto-flow: dense;
  gap: 0.85rem;
}
.bento-tile {
  position: relative;
  border-radius: 18px;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line);
  background: var(--card);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.bento-tile:hover { transform: translateY(-2px); border-color: var(--terra); }
.bento-tile h2 { font-size: 1.3rem; margin-bottom: 0.3rem; }
.bento-tile h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.bento-tile p { color: var(--ink-soft); margin: 0; font-size: 0.95rem; line-height: 1.5; }
.bento-tile .eyebrow { margin-bottom: 0.4rem; font-size: 0.75rem; }

/* Tailles */
.b-hero { grid-column: span 2; grid-row: span 2; }
.b-w    { grid-column: span 2; }
.b-s    { grid-column: span 1; }
.b-full { grid-column: 1 / -1; }

/* Carte image (héro) */
.tile-img { padding: 0; border: 0; }
.tile-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.tile-img .overlay {
  position: relative;
  margin-top: auto;
  padding: 1rem 1.1rem;
  background: linear-gradient(to top, rgba(10, 30, 55, 0.9), rgba(10, 30, 55, 0));
  color: #fff;
  z-index: 1;
}

/* Carte statistique */
.tile-stat { align-items: flex-start; justify-content: center; text-align: left; }
.tile-stat .num {
  font-size: clamp(1.7rem, 3.6vw, 2.25rem);
  font-weight: 800;
  color: var(--blue-deep);
  line-height: 1;
}
.tile-stat .label { font-size: 0.82rem; color: var(--ink-soft); margin-top: 0.3rem; }
.tile-stat.accent { background: var(--bg-blue-soft); border-color: transparent; }
.tile-stat.accent .num { color: var(--terra-deep); }

/* Motif géométrique : résille de losanges inspirée des textiles ouest-africains.
   Deux hachures diagonales croisées, à très faible opacité. Réservé aux deux
   tuiles sombres pour rester discret. */
.tile-blue::after,
.tile-quote::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(45deg, var(--motif) 0 1px, transparent 1px 15px),
    repeating-linear-gradient(-45deg, var(--motif) 0 1px, transparent 1px 15px);
}
.tile-blue { --motif: rgba(255, 255, 255, 0.07); }
.tile-quote { --motif: rgba(224, 176, 114, 0.09); }
.tile-blue > *, .tile-quote > * { position: relative; z-index: 1; }

/* Cartes colorées */
.tile-blue { background: linear-gradient(140deg, var(--blue-deep), var(--blue-darker)); border: 0; color: #fff; }
.tile-blue h3, .tile-blue p, .tile-blue .eyebrow { color: #fff; }
.tile-blue .eyebrow { opacity: 0.85; }
.tile-gold { background: linear-gradient(140deg, var(--gold), var(--gold-dark)); border: 0; color: var(--ink); justify-content: center; }
.tile-gold h3 { color: var(--ink); }
.tile-gold p { color: #5a4a17; }

/* Carte citation */
.tile-quote { background: var(--ink); border: 0; justify-content: center; }
.tile-quote p { color: #fff; font-size: 1.06rem; font-weight: 600; line-height: 1.42; }
.tile-quote .mark { color: var(--gold); font-size: 1.9rem; line-height: 0.5; font-weight: 800; display: block; }
.tile-quote cite { color: var(--terra); font-style: normal; font-size: 0.78rem; font-weight: 700; display: block; margin-top: 0.5rem; }

/* Puces / chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.55rem; }
.chip {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.26rem 0.62rem;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink);
}
.tile-blue .chip { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.25); color: #fff; }
/* Chips cliquables (documents à télécharger) */
a.chip { text-decoration: none; display: inline-flex; align-items: center; gap: 0.35rem; }
a.chip:hover { background: var(--bg-blue-soft); border-color: var(--terra); color: var(--terra-deep); text-decoration: none; }
a.chip svg { width: 13px; height: 13px; flex: none; }
.bento-tile .tile-link { margin-top: auto; padding-top: 0.6rem; font-weight: 700; font-size: 0.82rem; }
.tile-full-cta { text-align: center; align-items: center; justify-content: center; }
.tile-full-cta .cta-row { justify-content: center; margin-top: 0.7rem; }
.tile-full-cta .btn { padding: 0.6rem 1.2rem; font-size: 0.92rem; }
.tile-img .overlay .btn { padding: 0.55rem 1.1rem; font-size: 0.9rem; }
.tile-gold .btn { padding: 0.55rem 1.1rem; font-size: 0.9rem; }

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .b-hero { grid-column: span 2; grid-row: span 1; min-height: 300px; }
  .b-w, .b-full { grid-column: span 2; }
}
@media (max-width: 560px) {
  .bento {
    grid-template-columns: 1fr;
    /* Rangées plus basses : en pleine largeur, 134px laissaient trop de vide */
    grid-auto-rows: minmax(96px, auto);
    gap: 0.7rem;
  }
  .b-hero, .b-w, .b-s, .b-full { grid-column: 1 / -1; }
  /* Ratio 3/2 = celui de l'image : plus aucun recadrage sur mobile */
  .b-hero { grid-row: span 1; min-height: 0; aspect-ratio: 3 / 2; }
  .bento-tile { padding: 1rem 1.1rem; }
  .tile-stat .num { font-size: 1.9rem; }
}

/* Petits téléphones : en-tête resserré pour éviter l'effet compressé */
@media (max-width: 420px) {
  .brand img { height: 34px; }
  .nav-actions { gap: 0.3rem; }
  .social { gap: 0; }
  .social-link { width: 32px; height: 32px; }
  .social-link svg { width: 16px; height: 16px; }
  .nav { min-height: 64px; }
  .nav-links { inset-block-start: 64px; max-height: calc(100vh - 64px); }
}

/* --- 17. Animations -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }
