/* ONG CSF - feuille de style
   Pour changer l'identité visuelle, modifiez uniquement les variables ci-dessous. */
:root {
  --blue: #0078d4;
  --blue-dark: #004578;
  --blue-soft: #e5f1fb;
  --accent: #ffb900;
  --soft: #f3f7fb;
  --ink: #14202b;
  --muted: #566573;
  --line: #d6e0ea;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(0, 50, 100, 0.10);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 1.05rem;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.container { width: min(1120px, 92%); margin-inline: auto; }
.skip {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff;
  padding: .6rem 1rem; z-index: 100;
}
.skip:focus { left: 0; }

/* En-tête */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); font-weight: 700; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 10px; background: var(--blue);
  color: #fff; display: grid; place-items: center; font-weight: 800; letter-spacing: .5px; font-size: .95rem;
}
.brand small { display: block; font-weight: 500; color: var(--muted); font-size: .72rem; line-height: 1.1; }
.nav ul { list-style: none; display: flex; gap: .3rem; margin: 0; padding: 0; align-items: center; }
.nav ul a {
  display: block; padding: .5rem .85rem; border-radius: 999px; text-decoration: none;
  color: var(--ink); font-weight: 600; font-size: .95rem;
}
.nav ul a:hover, .nav ul a[aria-current="page"] { background: var(--blue-soft); color: var(--blue-dark); }
.lang {
  border: 1.5px solid var(--blue); background: transparent; color: var(--blue);
  border-radius: 999px; padding: .35rem .8rem; font-weight: 700; cursor: pointer; font-size: .85rem;
}
.lang:hover { background: var(--blue); color: #fff; }
.menu-btn { display: none; background: none; border: 0; font-size: 1.7rem; cursor: pointer; color: var(--ink); }

/* Héros */
.hero {
  background:
    radial-gradient(900px 500px at 80% 40%, rgba(80,230,255,.20), transparent 60%),
    linear-gradient(135deg, #002f56, #0063b1 60%, #0078d4);
  color: #fff;
  padding: clamp(2.5rem, 6vw, 5rem) 0;
  overflow: hidden;
}
.hero-grid { display: grid; gap: 2rem; grid-template-columns: 1.05fr .95fr; align-items: center; }
.hero-art img { width: min(540px, 100%); margin-inline: auto; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.12; margin: 0 0 1rem; max-width: 18ch; }
.hero p { max-width: 58ch; font-size: 1.15rem; opacity: .95; margin: 0 0 1.8rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: .8rem; }
.hero .eyebrow { color: #9ad8ff; }
.eyebrow { color: var(--blue); }

.btn {
  display: inline-block; padding: .8rem 1.4rem; border-radius: 999px; font-weight: 700;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; font-family: inherit;
}
.btn-primary { background: #fff; color: var(--blue-dark); }
.btn-primary:hover { background: var(--blue-soft); color: var(--blue-dark); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; margin-left: .5rem; }
.btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); color: #fff; }

/* Sections */
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
section.alt { background: var(--soft); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.2; margin: 0 0 .8rem; }
.lead { color: var(--muted); max-width: 62ch; margin: 0 0 2.2rem; }

.grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.card h3 { margin: .2rem 0 .5rem; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }
.icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--blue-soft); color: var(--blue);
  display: grid; place-items: center; font-size: 1.4rem;
}

.split { display: grid; gap: 2.5rem; grid-template-columns: 1.1fr .9fr; align-items: center; }
.panel {
  background: var(--blue); color: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow);
}
.panel h3 { margin-top: 0; }
.panel ul { padding-left: 1.2rem; margin: 0; }
.panel li { margin: .45rem 0; }

.cta-band { background: var(--blue-dark); color: #fff; text-align: center; }
.cta-band h2 { margin-bottom: 1rem; }
.cta-band p { max-width: 56ch; margin: 0 auto 1.6rem; opacity: .92; }

/* Annuaire */
.page-title { background: var(--blue-soft); padding: 2.6rem 0 2rem; }
.page-title h1 { margin: 0 0 .4rem; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-title p { margin: 0; color: var(--muted); max-width: 62ch; }
.notice {
  background: #fff6e6; border: 1px solid #f0cf9a; color: #6b4210; border-radius: 10px;
  padding: .75rem 1rem; margin: 1.4rem 0 0; font-size: .95rem;
}
.filters {
  display: grid; gap: .8rem; grid-template-columns: 2fr 1fr 1fr auto; align-items: end;
  margin: 1.6rem 0 1rem;
}
.field label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: .3rem; }
input, select, textarea {
  width: 100%; padding: .7rem .85rem; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; background: #fff; color: var(--ink); min-height: 48px;
}
input[type="search"] { -webkit-appearance: none; appearance: none; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px var(--blue-soft); }
.count { color: var(--muted); font-size: .95rem; margin: 0 0 1.2rem; }
.entry { display: flex; flex-direction: column; gap: .6rem; }
.entry header { display: flex; justify-content: space-between; gap: .6rem; align-items: start; }
.entry h3 { margin: 0; font-size: 1.1rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag {
  background: var(--blue-soft); color: var(--blue-dark); border-radius: 999px;
  padding: .15rem .65rem; font-size: .8rem; font-weight: 600;
}
.tag.type { background: var(--blue); color: #fff; }
.meta { font-size: .9rem; color: var(--muted); }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); border: 2px dashed var(--line); border-radius: var(--radius); }

/* Contact */
.contact-grid { display: grid; gap: 2rem; grid-template-columns: 1fr 1.2fr; }
form .field { margin-bottom: 1rem; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: .6rem; }

/* Pied de page */
.site-footer { background: #0b2239; color: #cfd6d3; padding: 2.4rem 0; font-size: .95rem; }
.site-footer .row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }
.site-footer a { color: #fff; }

/* Mobile */
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav ul {
    display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; padding: .8rem 4%; border-bottom: 1px solid var(--line);
  }
  .nav ul.open { display: flex; }
  .split, .contact-grid, .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { width: min(300px, 70%); }
  .filters { grid-template-columns: 1fr; }
  .btn-ghost { margin: .6rem 0 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Awards et Prix */
.award { display: flex; flex-direction: column; gap: .7rem; border-top: 4px solid var(--blue); }
.award .icon { width: 54px; height: 54px; font-size: 1.7rem; }
.award .by { color: var(--blue-dark); font-weight: 700; font-size: .92rem; margin: 0; }
.award h3 { font-size: 1.25rem; margin: 0; }
.award .year { align-self: flex-start; }
