/* ============================================================
   OICS — Communautaire · Feuille de style
   Palette : bleu nuit (justice) + vert sarcelle (réintégration)
   + or sobre (accent) + neutres chauds
   ============================================================ */
:root {
  --navy: #13283c;
  --navy-700: #1a3450;
  --navy-600: #244766;
  /* Couleurs de marque (logo) : rose + orange */
  --rose: #d83f6d;
  --rose-700: #bd3460;
  --rose-soft: #f6abc6;
  --orange: #f39200;
  --orange-700: #d97e00;
  --orange-soft: #f9bf6b;
  /* Alias sémantiques : le reste de la feuille référence --teal/--gold ;
     on les pointe vers les couleurs de marque pour recolorer tout le site. */
  --teal: var(--rose);
  --teal-700: var(--rose-700);
  --teal-soft: var(--rose-soft);
  --gold: var(--orange);
  --gold-soft: var(--orange-soft);
  --ink: #1b2530;
  --muted: #586472;
  --line: #e3e2db;
  --paper: #f9f7f2;
  --paper-2: #f0ede4;
  --white: #ffffff;
  --ok: #2f6f4f;
  --radius: 15px;
  --radius-sm: 10px;
  --shadow: 0 16px 44px -24px rgba(19, 40, 60, 0.5);
  --shadow-sm: 0 7px 20px -14px rgba(19, 40, 60, 0.45);
  --maxw: 1140px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.16; font-weight: 600; letter-spacing: -0.01em; }
a { color: var(--teal-700); }
img, svg { max-width: 100%; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.sr-only {
  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: -999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-weight: 600; font-size: 0.97rem;
  padding: 13px 26px; border-radius: 999px; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn-primary:hover { background: var(--teal-700); }
.btn-gold { background: var(--gold-soft); color: #3a2e07; border-color: var(--gold-soft); }
.btn-gold:hover { background: #f0d684; }
.btn-ghost { background: transparent; color: var(--navy); border-color: rgba(19,40,60,.25); }
.btn-ghost:hover { background: rgba(19,40,60,.06); }
.btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }
.btn-light:hover { background: rgba(255,255,255,.22); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(249, 247, 242, 0.9);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { max-width: 1280px; }
.header-inner { display: flex; align-items: center; gap: 14px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand-mark img { width: 44px; height: 44px; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-acronym { font-family: var(--serif); font-size: 1.22rem; color: var(--navy); font-weight: 700; }
.brand-tag { font-size: .72rem; color: var(--muted); letter-spacing: .02em; }

.main-nav { margin-left: auto; }
.nav-list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-list > li > a {
  display: block; padding: 9px 13px; border-radius: 9px; text-decoration: none;
  color: var(--ink); font-weight: 500; font-size: 0.95rem; white-space: nowrap;
}
.nav-list > li > a:hover { background: rgba(19,40,60,.07); color: var(--navy); }
.nav-list a.is-current { color: var(--teal-700); font-weight: 600; }

.header-tools { display: flex; align-items: center; gap: 12px; margin-left: 6px; }
.lang-switch { display: flex; align-items: center; gap: 3px; }
.lang-btn {
  background: none; border: none; cursor: pointer; font-family: var(--sans);
  font-weight: 700; font-size: 0.84rem; color: var(--muted); padding: 6px 8px; border-radius: 7px;
}
.lang-btn.is-active { color: var(--navy); background: rgba(216,63,109,.14); }
.lang-btn:hover { color: var(--navy); }
.lang-sep { color: var(--line); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 9px;
  width: 42px; height: 40px; cursor: pointer; padding: 0; color: var(--navy);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: currentColor;
  margin: 0 auto; position: relative; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 480px at 82% -10%, rgba(216,63,109,.42), transparent 60%),
    linear-gradient(100deg, rgba(13,28,42,.95) 0%, rgba(13,28,42,.82) 48%, rgba(13,28,42,.55) 100%),
    url("../img/solidarite.jpg") center/cover no-repeat,
    linear-gradient(180deg, var(--navy) 0%, var(--navy-700) 100%);
  color: #eef2f0;
  padding: 90px 0 80px;
}
.hero-inner { max-width: 880px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .16em; font-size: .76rem; font-weight: 700;
  color: var(--teal-soft); margin: 0 0 18px;
}
.hero-title { font-size: clamp(2.1rem, 4.8vw, 3.5rem); margin: 0 0 20px; color: #fff; font-weight: 700; }
.hero-lead { font-size: 1.17rem; color: #d3dad6; max-width: 60ch; margin: 0 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 40px; margin: 48px 0 0; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.16); }
.hero-stats div { margin: 0; }
.hero-stats dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: #aab3ad; }
.hero-stats dd { margin: 4px 0 0; font-family: var(--serif); font-size: 1.45rem; color: var(--teal-soft); }

/* ---------- Sections ---------- */
.section { padding: 78px 0; }
.section-alt { background: var(--paper-2); }
.section-navy { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-700) 100%); color: #eef2f0; }
.section-navy .section-title { color: #fff; }
.section-navy .section-intro { color: #c7cfca; }
.section-eyebrow {
  text-transform: uppercase; letter-spacing: .15em; font-size: .76rem; font-weight: 700;
  color: var(--teal-700); margin: 0 0 10px;
}
.section-navy .section-eyebrow { color: var(--teal-soft); }
.section-title { font-size: clamp(1.7rem, 3vw, 2.45rem); margin: 0 0 18px; color: var(--navy); }
.section-intro { font-size: 1.08rem; color: var(--muted); max-width: 66ch; margin: 0 0 38px; }
.mini-title { font-size: 1.2rem; color: var(--navy); margin: 0 0 16px; }
.center { text-align: center; }
.center .section-intro { margin-left: auto; margin-right: auto; }

.two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }

/* ---------- Cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm);
}
.card h3 { margin: 0 0 12px; color: var(--navy); font-size: 1.28rem; }
.card p { margin: 0; color: var(--muted); }
.card-ico {
  width: 50px; height: 50px; border-radius: 13px; background: rgba(216,63,109,.12); color: var(--teal-700);
  display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 16px;
}

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pillar {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 26px; backdrop-filter: blur(4px);
}
.pillar h3 { color: #fff; margin: 0 0 8px; font-size: 1.2rem; }
.pillar p { margin: 0; color: #c2cbc6; font-size: .96rem; }
.pillar-num { font-family: var(--serif); color: var(--teal-soft); font-size: 1.1rem; font-weight: 700; }

.value-list, .check-list { margin: 0; padding-left: 1.1em; }
.value-list li { margin: 7px 0; }
.check-list { list-style: none; padding-left: 0; }
.check-list li { position: relative; padding-left: 32px; margin: 13px 0; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; color: var(--teal-700);
  font-weight: 700; background: rgba(216,63,109,.12); width: 23px; height: 23px;
  display: grid; place-items: center; border-radius: 7px; font-size: .82rem;
}

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding-left: 46px; margin: 15px 0; counter-increment: s; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px; width: 30px; height: 30px;
  border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center;
  font-weight: 700; font-family: var(--serif);
}

/* ---------- Subpage hero ---------- */
.subpage-hero {
  background:
    radial-gradient(900px 380px at 84% -20%, rgba(216,63,109,.30), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-700) 100%);
  color: #eef2f0; padding: 56px 0 60px;
}
.subpage-hero .eyebrow { color: var(--teal-soft); margin: 0 0 14px; }
.subpage-title { font-size: clamp(1.9rem, 4vw, 2.9rem); color: #fff; margin: 0 0 14px; }
.subpage-lead { color: #d3dad6; max-width: 64ch; margin: 0; font-size: 1.1rem; }

/* ---------- Content cards / projects ---------- */
.content-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 34px; box-shadow: var(--shadow-sm); margin-bottom: 26px;
}
.content-card > h2 { color: var(--navy); margin: 0 0 14px; font-size: 1.55rem; }
.content-card > p:last-child { margin-bottom: 0; }

.project-head { display: flex; align-items: center; gap: 16px; margin-bottom: 6px; flex-wrap: wrap; }
.project-ico {
  width: 52px; height: 52px; border-radius: 13px; background: rgba(216,63,109,.12); color: var(--teal-700);
  display: grid; place-items: center; font-size: 1.6rem; flex: none;
}
.badge {
  display: inline-block; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: 5px 12px; border-radius: 999px;
}
.badge-dev { background: rgba(243,146,0,.20); color: #8a5200; }
.badge-soon { background: rgba(216,63,109,.14); color: var(--teal-700); }
.sub-h { font-family: var(--serif); color: var(--navy); font-size: 1.08rem; margin: 22px 0 8px; }

.callout-card {
  background: var(--navy); color: #e8edeb; border-radius: var(--radius);
  padding: 28px 32px; box-shadow: var(--shadow-sm); border-left: 5px solid var(--teal);
}
.callout-card h2 { color: #fff; margin: 0 0 10px; font-size: 1.3rem; }
.callout-card p { margin: 0; }
.callout-card strong { color: var(--teal-soft); }

.notice {
  background: #fdf7e6; border: 1px solid var(--gold-soft); border-radius: 12px;
  padding: 16px 20px; color: #6b520a; font-size: .96rem;
}
.notice strong { color: #5a4408; }

/* ---------- Support / ways grid ---------- */
.ways-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.way-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.way-card h3 { color: var(--navy); margin: 0 0 10px; font-size: 1.22rem; }
.way-card p { color: var(--muted); margin: 0 0 18px; }
.way-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Médias / photos ----------
   Si l'image manque (onerror="this.remove()"), le dégradé de marque
   + la légende restent : la bande paraît voulue, jamais cassée. */
.media-band {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); min-height: clamp(200px, 32vw, 360px);
  display: flex; align-items: flex-end;
  background:
    radial-gradient(720px 320px at 85% 0%, rgba(216,63,109,.55), transparent 62%),
    radial-gradient(600px 280px at 5% 110%, rgba(243,146,0,.30), transparent 60%),
    linear-gradient(120deg, var(--navy), var(--navy-700));
}
.media-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-cap {
  position: relative; z-index: 1; width: 100%; color: #fff;
  padding: 26px 28px; font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.15rem, 2.4vw, 1.7rem); line-height: 1.25;
  background: linear-gradient(to top, rgba(7,15,23,.82), rgba(7,15,23,.18) 72%, transparent);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--teal-700), var(--teal));
  color: #fff; border-radius: var(--radius); padding: 38px 40px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px;
}
.cta-band h2 { color: #fff; margin: 0 0 6px; font-size: 1.7rem; }
.cta-band p { margin: 0; color: #e3f1ed; max-width: 52ch; }
.cta-band .btn-gold { flex: none; }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 18px 0 0; }
.contact-list li { margin: 12px 0; display: flex; gap: 12px; align-items: flex-start; }
.contact-list .ci { color: var(--teal-700); flex: none; }
.contact-form {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--navy); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; background: var(--paper); color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: #fff; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { margin: 14px 0 0; color: var(--ok); font-weight: 600; font-size: .92rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c4ccc6; padding: 56px 0 34px; }
.footer-top { display: grid; grid-template-columns: 1.3fr 2.2fr; gap: 44px; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand img { flex: none; }
.footer-brand strong { display: block; color: #fff; font-family: var(--serif); font-size: 1.12rem; margin-bottom: 4px; }
.footer-brand span { font-size: .86rem; max-width: 34ch; display: block; color: #9fa9a3; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-col h3 { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--teal-soft); margin: 0 0 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 8px 0; }
.footer-col a { color: #cdd4cf; text-decoration: none; font-size: .9rem; }
.footer-col a:hover { color: var(--teal-soft); }
.social { display: flex; gap: 10px; margin-top: 4px; }
.social a {
  width: 36px; height: 36px; border-radius: 9px; background: rgba(255,255,255,.08);
  display: grid; place-items: center; color: #cdd4cf;
}
.social a:hover { background: var(--teal); color: #fff; }
.footer-legal {
  margin: 34px 0 0; font-size: .82rem; color: #8b958e;
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

/* ---------- Language visibility ----------
   On masque uniquement la langue inactive (avec !important pour primer
   sur les règles d'affichage comme .footer-brand span{display:block}).
   La langue active conserve son display naturel (inline, block, flex…). */
html:not([lang="en"]) [data-en] { display: none !important; }
html[lang="en"] [data-fr] { display: none !important; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .two-col { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 72px 0 auto 0; background: var(--paper);
    border-bottom: 1px solid var(--line); padding: 12px 24px 20px;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
    box-shadow: var(--shadow);
  }
  .main-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-list > li > a { padding: 12px 10px; font-size: 1rem; }
  .header-tools { margin-left: auto; }
}
@media (max-width: 700px) {
  .cards-3, .cards-2, .pillars, .ways-grid { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 56px 0; }
  .cta-band { padding: 28px 24px; }
}
