/* =========================================================
   CAJED – feuille de style du site public
   Palette tirée du logo : bleu nuit (dominant), bleu ciel (carte d'Afrique), ocre (les mains)
   ========================================================= */
:root {
  --navy: #173f73;
  --night: #0e2a50;
  --navy-2: #1f4f8a;
  --sky: #4a95d0;
  --sky-soft: #e8f2fb;
  --sun: #c9622b;
  --sun-dark: #a94f20;
  --sun-soft: #fbeee6;
  --ink: #1a2638;
  --muted: #586579;
  --line: #d8e2ee;
  --mist: #f3f7fb;
  --white: #fff;
  --radius: 14px;
  --radius-sm: 8px;
  --display: "Inter", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--body); font-size: 1rem; line-height: 1.65; font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sun-dark); }
svg { width: 1em; height: 1em; flex: none; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--night); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -.02em; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--sun); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm); }
.skip:focus { top: 1rem; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; gap: .55rem; padding: .78rem 1.35rem; border-radius: 999px; font-weight: 700; font-family: var(--body); font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: 1.1; transition: background .2s, color .2s, border-color .2s; }
.btn svg { width: 1.1em; height: 1.1em; }
.btn--sun { background: var(--sun); color: #fff; }
.btn--sun:hover { background: var(--sun-dark); color: #fff; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--night); color: #fff; }
.btn--ghost { border-color: currentColor; color: var(--navy); background: transparent; }
.btn--ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn--light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--light:hover { background: #fff; color: var(--night); border-color: #fff; }
.link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--navy-2); text-decoration: none; }
.link svg { transition: transform .2s; }
.link:hover svg { transform: translateX(3px); }

/* ---------- Barre du haut ---------- */
.topbar { background: var(--night); color: #c9d8ec; font-size: .875rem; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px; }
.topbar a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.topbar a:hover { color: #fff; }
.topbar__contact, .topbar__right { display: flex; align-items: center; gap: 1.2rem; }
.topbar__right { gap: .9rem; }
.topbar__webmail { border-left: 1px solid rgba(255,255,255,.2); padding-left: .9rem; }
@media (max-width: 700px) { .topbar__contact a:nth-child(2) { display: none; } }

/* ---------- En-tête ---------- */
.header { background: #fff; position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); }
.header.is-scrolled { box-shadow: 0 6px 24px -16px rgba(14,42,80,.45); }
.header__in { display: flex; align-items: center; gap: 1.5rem; min-height: 82px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--night); flex: none; }
.brand img { width: 56px; height: 56px; object-fit: contain; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand__txt strong { font-family: var(--display); font-size: 1.5rem; font-weight: 800; letter-spacing: -.01em; color: var(--navy); }
.brand__txt em { font-style: normal; color: var(--sky); font-weight: 650; }
.brand__txt small { font-size: .8rem; color: var(--muted); margin-top: .2rem; }
.brand--light strong, .brand--light small { color: #fff; }
.brand--light small { color: #b9cbe2; }

.nav { margin-left: auto; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .2rem; align-items: center; }
.nav > ul > li > a, .nav__sub-toggle { display: inline-flex; align-items: center; gap: .3rem; padding: .55rem .8rem; border-radius: 999px; font-weight: 600; color: var(--ink); text-decoration: none; font-size: 1rem; background: none; border: 0; font-family: inherit; cursor: pointer; }
.nav > ul > li > a:hover, .nav__sub-toggle:hover { background: var(--sky-soft); color: var(--navy); }
.nav .is-active { color: var(--navy); box-shadow: inset 0 -3px 0 var(--sky); border-radius: 0; }
.nav__sub-toggle svg { transition: transform .2s; }
.has-sub { position: relative; }
.sub { list-style: none; margin: 0; padding: .6rem; position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 6px); width: 300px; background: #fff; border-radius: var(--radius); box-shadow: 0 24px 50px -20px rgba(14,42,80,.45); border: 1px solid var(--line); opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s; }
.sub::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.is-open .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.has-sub:hover .nav__sub-toggle svg, .has-sub.is-open .nav__sub-toggle svg { transform: rotate(180deg); }
.sub a { display: flex; gap: .8rem; align-items: flex-start; padding: .7rem .8rem; border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); font-weight: 650; }
.sub a:hover { background: var(--mist); color: var(--navy); }
.sub a svg { width: 1.35rem; height: 1.35rem; color: var(--sky); margin-top: .1rem; }
.sub small { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }
.nav__extra { display: none; }

.header__tools { display: flex; align-items: center; gap: .9rem; }
.lang { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; }
.lang a { padding: .25rem .6rem; border-radius: 999px; font-size: .82rem; font-weight: 700; text-decoration: none; color: var(--muted); }
.lang a.is-on { background: var(--navy); color: #fff; }
.burger { display: none; background: none; border: 0; padding: .4rem; color: var(--navy); cursor: pointer; }
.burger svg { width: 1.8rem; height: 1.8rem; }

@media (max-width: 1080px) {
  .header__cta { display: none; }
  .burger { display: inline-flex; }
  .nav { position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); background: #fff; padding: 5.5rem 1.4rem 2rem; transform: translateX(105%); transition: transform .25s ease; overflow-y: auto; box-shadow: -20px 0 60px -30px rgba(14,42,80,.6); z-index: 60; }
  .nav.is-open { transform: none; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: .1rem; }
  .nav > ul > li > a, .nav__sub-toggle { width: 100%; justify-content: space-between; font-size: 1.1rem; padding: .8rem .6rem; border-radius: var(--radius-sm); }
  .nav .is-active { box-shadow: inset 3px 0 0 var(--sky); }
  .sub { position: static; transform: none; width: auto; box-shadow: none; border: 0; padding: 0 0 0 .4rem; display: none; opacity: 1; visibility: visible; }
  .has-sub.is-open .sub { display: block; transform: none; }
  .has-sub:hover .sub { transform: none; }
  .nav__extra { display: block; margin-top: 1.5rem; }
  .nav__extra .btn { width: 100%; justify-content: center; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(14,42,80,.45); z-index: 55; }
  body.nav-open .burger { position: relative; z-index: 70; }
}
@media (max-width: 480px) { .brand__txt small { display: none; } .brand img { width: 46px; height: 46px; } .header__in { min-height: 70px; gap: .8rem; } }

/* ---------- Héro (accueil) ---------- */
.hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 900px; height: 900px; right: -320px; top: -260px; border-radius: 50%; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 0 0 90px rgba(255,255,255,.025); }
.hero__in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; padding-block: clamp(3rem, 7vw, 5.5rem); position: relative; }
.hero__kicker { display: inline-block; color: #bcd6ee; font-weight: 600; margin-bottom: 1rem; font-size: 1.05rem; }
.hero__kicker::before { content: ""; display: inline-block; width: 28px; height: 3px; background: var(--sun); vertical-align: middle; margin-right: .7rem; border-radius: 2px; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5.4vw, 4.3rem); margin-bottom: .45em; text-wrap: balance; }
.hero__text { font-size: 1.2rem; color: #d7e4f3; max-width: 34rem; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.hero__slide { display: none; }
.hero__slide.is-on { display: block; animation: heroIn .7s ease both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hero__dots { display: flex; gap: .5rem; margin-top: 2.4rem; }
.hero__dots button { width: 34px; height: 5px; border-radius: 4px; border: 0; background: rgba(255,255,255,.25); cursor: pointer; padding: 0; }
.hero__dots button.is-on { background: var(--sun); }

/* Le médaillon : écho de l'anneau du logo */
.medal { position: relative; width: min(100%, 520px); aspect-ratio: 1; margin-left: auto; }
.medal__ring { position: absolute; inset: 0; border-radius: 50%; border: 14px solid var(--sky); }
.medal__ring::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 14px solid transparent; border-top-color: var(--sun); border-right-color: var(--sun); transform: rotate(-20deg); clip-path: polygon(50% 50%, 50% 0, 100% 0, 100% 38%); }
.medal__photos { position: absolute; inset: 26px; border-radius: 50%; overflow: hidden; background: var(--night); }
.medal__photos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease; }
.medal__photos img.is-on { opacity: 1; }
.medal__seal { position: absolute; left: -6%; bottom: 6%; width: 30%; aspect-ratio: 1; background: #fff; border-radius: 50%; padding: 6%; box-shadow: 0 18px 40px -18px rgba(0,0,0,.5); }
.medal__seal img { width: 100%; height: 100%; object-fit: contain; }
.medal__play { position: absolute; right: 2%; top: 8%; width: 84px; height: 84px; border-radius: 50%; background: var(--sun); color: #fff; display: grid; place-items: center; text-decoration: none; box-shadow: 0 0 0 10px rgba(201,98,43,.25); transition: transform .2s; }
.medal__play:hover { transform: scale(1.06); color: #fff; }
.medal__play svg { width: 30px; height: 30px; margin-left: 4px; }
.medal__play span { position: absolute; top: 100%; margin-top: .7rem; white-space: nowrap; font-size: .9rem; font-weight: 600; color: #d7e4f3; }
@media (max-width: 900px) {
  .hero__in { grid-template-columns: 1fr; }
  .medal { margin: 0 auto; width: min(88%, 420px); order: -1; }
  .medal__play { width: 64px; height: 64px; } .medal__play span { display: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 2.6rem; }
.head > div { max-width: 640px; }
.head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.section--navy .head p { color: #c9d8ec; }
.head h2 { margin-bottom: .35em; }
@media (max-width: 700px) { .head { flex-direction: column; align-items: flex-start; gap: 1rem; } }

/* À propos (accueil) */
.intro { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.intro__img { position: relative; }
.intro__img img { border-radius: 50% 50% var(--radius) var(--radius); aspect-ratio: 4 / 4.4; object-fit: cover; width: 100%; }
.intro__badge { position: absolute; right: -1rem; bottom: 2rem; background: var(--sun); color: #fff; border-radius: var(--radius); padding: 1rem 1.3rem; font-family: var(--display); line-height: 1.1; box-shadow: 0 18px 34px -18px rgba(169,79,32,.8); }
.intro__badge strong { display: block; font-size: 2.4rem; font-weight: 800; }
.intro__lead { font-size: 1.22rem; color: var(--ink); }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin: 2rem 0; }
.pillar { border-left: 4px solid var(--sky); padding: .2rem 0 .2rem 1rem; }
.pillar h3 { font-size: 1.1rem; margin-bottom: .3rem; color: var(--navy); }
.pillar p { margin: 0; color: var(--muted); font-size: 1rem; }
.pillar--sun { border-color: var(--sun); }
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; } .intro__img { max-width: 440px; } }
@media (max-width: 520px) { .pillars { grid-template-columns: 1fr; } }

/* Valeurs */
.values { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.value { padding: 2rem 2rem 2rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 52px 1fr; gap: 1rem; align-items: start; }
.value:not(:nth-child(3n+1)) { padding-left: 2rem; border-left: 1px solid var(--line); }
.value__ico { width: 52px; height: 52px; border-radius: 50%; background: var(--sky-soft); color: var(--navy); display: grid; place-items: center; }
.value__ico svg { width: 26px; height: 26px; }
.value h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.value p { color: var(--muted); margin: 0; font-size: 1rem; }
@media (max-width: 900px) { .values { grid-template-columns: 1fr 1fr; } .value:not(:nth-child(3n+1)) { border-left: 0; padding-left: 0; } .value:nth-child(even) { padding-left: 2rem; border-left: 1px solid var(--line); } }
@media (max-width: 600px) { .values { grid-template-columns: 1fr; } .value:nth-child(even) { padding-left: 0; border-left: 0; } .value { padding-right: 0; } }

/* Chiffres */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat { text-align: left; padding-left: 1.2rem; border-left: 2px solid rgba(255,255,255,.18); }
.stat strong { display: block; font-family: var(--display); font-size: clamp(2.4rem, 4.5vw, 3.4rem); font-weight: 800; line-height: 1; color: #fff; }
.stat strong span { color: var(--sun); }
.stat p { margin: .5rem 0 0; color: #c9d8ec; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; row-gap: 2rem; } }

/* Projets */
.projects { display: grid; gap: 1.2rem; }
.project { display: grid; grid-template-columns: 220px 1fr auto; gap: 1.6rem; align-items: center; padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s; }
.project:hover { border-color: var(--sky); box-shadow: 0 16px 36px -26px rgba(14,42,80,.55); color: inherit; }
.project__img { aspect-ratio: 16 / 10; border-radius: var(--radius-sm); overflow: hidden; background: var(--navy); }
.project__img img { width: 100%; height: 100%; object-fit: cover; }
.project h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.project p { color: var(--muted); margin: 0; font-size: 1rem; }
.meta { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; font-size: .9rem; color: var(--muted); margin-bottom: .6rem; }
.meta span { display: inline-flex; align-items: center; gap: .35rem; }
.meta svg { color: var(--sky); }
.tag { display: inline-flex; align-items: center; gap: .35rem; font-size: .82rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px; background: var(--sky-soft); color: var(--navy); white-space: nowrap; }
.tag--ongoing { background: #e3f4ea; color: #1d6b3e; }
.tag--ongoing::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2a9a59; }
.tag--completed { background: #eef0f4; color: #4b5568; }
.tag--closed { background: #f6e9e9; color: #8d2e2e; }
.tag--sun { background: var(--sun-soft); color: var(--sun-dark); }
.project__arrow { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--navy); }
.project:hover .project__arrow { background: var(--navy); color: #fff; border-color: var(--navy); }
@media (max-width: 760px) { .project { grid-template-columns: 1fr; } .project__arrow { display: none; } .project__img--ph { display: none; } }

/* Visuel de remplacement (projet sans image) */
.placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, var(--navy-2), var(--night)); position: relative; overflow: hidden; }
.placeholder::before { content: ""; position: absolute; width: 140%; aspect-ratio: 1; border-radius: 50%; border: 10px solid rgba(74,149,208,.35); left: 30%; top: -30%; }
.placeholder img { width: 40%; max-width: 110px; opacity: .9; position: relative; filter: drop-shadow(0 6px 14px rgba(0,0,0,.3)); }

/* Articles */
.news { display: grid; grid-template-columns: 1.25fr 1fr; gap: 2rem; }
.news__list { display: grid; gap: 1.3rem; align-content: start; }
.card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.card:hover { color: inherit; }
.card__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--mist); margin-bottom: 1rem; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__img img { transform: scale(1.04); }
.card h3 { font-size: 1.25rem; margin-bottom: .5rem; text-wrap: pretty; }
.card:hover h3 { color: var(--navy-2); }
.card p { color: var(--muted); font-size: 1rem; margin: 0; }
.card--big h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
.card--big .card__img { aspect-ratio: 16 / 11; }
.card--row { flex-direction: row; gap: 1.1rem; align-items: flex-start; }
.card--row .card__img { flex: 0 0 150px; width: 150px; height: 150px; aspect-ratio: auto; margin: 0; }
.card--row h3 { font-size: 1.08rem; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.2rem 1.8rem; }
@media (max-width: 900px) { .news { grid-template-columns: 1fr; } .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } .card--row .card__img { flex-basis: 96px; width: 96px; height: 96px; } }

/* Partenaires */
.partners { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.partners__track { display: flex; gap: 1.2rem; width: max-content; animation: marquee 45s linear infinite; }
.partners:hover .partners__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.partner { flex: none; width: 190px; height: 110px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.4rem; }
.partner img { max-height: 70px; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .25s, opacity .25s; }
.partner:hover img { filter: none; opacity: 1; }
.partner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.partner-grid .partner { width: auto; }
.partner-grid .partner img { filter: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .partners__track { flex-wrap: wrap; width: auto; } }

/* Appel à l'action */
.cta { background: var(--sun); color: #fff; border-radius: calc(var(--radius) * 1.6); padding: clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; width: 360px; aspect-ratio: 1; border-radius: 50%; border: 28px solid rgba(255,255,255,.12); right: -120px; top: -150px; }
.cta h2 { color: #fff; margin-bottom: .4rem; }
.cta p { margin: 0; color: #fff3ea; font-size: 1.1rem; max-width: 40rem; }
.cta .btn { position: relative; z-index: 1; }
.cta .btn--navy { background: var(--night); }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }

/* Offres d'emploi (accueil) */
.jobs-strip { display: grid; gap: .8rem; }

/* ---------- Bandeau de page ---------- */
.pagehead { background: var(--navy); color: #fff; position: relative; overflow: hidden; padding-block: clamp(2.8rem, 6vw, 4.5rem); }
.pagehead::after { content: ""; position: absolute; right: -90px; top: 50%; width: 380px; aspect-ratio: 1; transform: translateY(-50%); border-radius: 50%; border: 22px solid var(--sky); opacity: .35; }
.pagehead::before { content: ""; position: absolute; right: 120px; bottom: -60px; width: 120px; aspect-ratio: 1; border-radius: 50%; background: var(--sun); opacity: .9; }
.pagehead h1 { color: #fff; margin: 0; max-width: 820px; position: relative; z-index: 1; font-size: clamp(2rem, 4.2vw, 3.2rem); text-wrap: balance; }
.pagehead p { color: #d1dfef; font-size: 1.15rem; max-width: 640px; margin: .8rem 0 0; position: relative; z-index: 1; }
.crumbs { font-size: .9rem; color: #a9c1de; margin-bottom: 1rem; position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs a { color: #d1dfef; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span[aria-hidden] { opacity: .6; }
@media (max-width: 700px) { .pagehead::after { width: 220px; right: -120px; } .pagehead::before { display: none; } }

/* Sous-navigation (publications) */
.subnav { background: #fff; border-bottom: 1px solid var(--line); }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .3rem; overflow-x: auto; }
.subnav a { display: inline-flex; align-items: center; gap: .45rem; padding: 1rem 1rem; text-decoration: none; color: var(--muted); font-weight: 650; border-bottom: 3px solid transparent; white-space: nowrap; }
.subnav a:hover { color: var(--navy); }
.subnav a.is-active { color: var(--navy); border-color: var(--sun); }
.subnav svg { color: var(--sky); }

/* Filtres */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.2rem; align-items: center; }
.chip { padding: .45rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; background: #fff; }
.chip:hover { border-color: var(--sky); color: var(--navy); }
.chip.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip small { opacity: .7; font-weight: 400; margin-left: .2rem; }
.search { margin-left: auto; display: flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.search input { border: 0; padding: .5rem 1rem; font: inherit; font-size: .95rem; min-width: 200px; outline: none; }
.search button { border: 0; background: none; padding: 0 .9rem; color: var(--navy); cursor: pointer; }
.search:focus-within { border-color: var(--sky); }
@media (max-width: 700px) { .search { margin-left: 0; width: 100%; } .search input { flex: 1; min-width: 0; } }

/* Article */
.article { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 5vw, 4rem); }
.article__cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 2rem; }
.article__cover img { width: 100%; max-height: 560px; object-fit: cover; }
.prose { font-size: 1.06rem; line-height: 1.75; max-width: 72ch; }
/* Texte justifié pour les articles (césure automatique pour éviter les grands blancs) */
.prose--justify p, .prose--justify li, .prose--justify blockquote { text-align: justify; hyphens: auto; -webkit-hyphens: auto; text-wrap: pretty; }
.prose--justify h2, .prose--justify h3, .prose--justify figcaption { text-align: left; hyphens: manual; }
.cards .card p, .news .card p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.6em; }
.prose img { border-radius: var(--radius-sm); margin: 1.5rem 0; height: auto; }
.prose figure { margin: 1.8rem 0; }
.prose figcaption { color: var(--muted); font-size: .92rem; margin-top: .5rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }
.prose blockquote { margin: 1.8rem 0; padding: .3rem 0 .3rem 1.4rem; border-left: 4px solid var(--sun); font-size: 1.2rem; color: var(--night); }
.prose a { color: var(--navy-2); }
.prose iframe { max-width: 100%; border-radius: var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; }
.prose td, .prose th { border: 1px solid var(--line); padding: .5rem .7rem; }
.aside { display: grid; gap: 2rem; align-content: start; position: sticky; top: 110px; }
.aside h3 { font-size: 1.05rem; margin-bottom: .9rem; padding-bottom: .6rem; border-bottom: 2px solid var(--line); }
.aside ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.aside li a { display: flex; justify-content: space-between; text-decoration: none; color: var(--ink); padding: .3rem 0; }
.aside li a:hover { color: var(--navy-2); }
.share { display: flex; gap: .5rem; }
.share a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--sky-soft); color: var(--navy); }
.share a:hover { background: var(--navy); color: #fff; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3rem; border-top: 1px solid var(--line); padding-top: 1.6rem; }
.pager a { text-decoration: none; color: var(--ink); }
.pager small { display: block; color: var(--muted); }
.pager strong { font-family: var(--display); font-weight: 650; color: var(--night); }
.pager a:last-child { text-align: right; }
@media (max-width: 980px) { .article { grid-template-columns: 1fr; } .aside { position: static; } }

/* Galerie */
.albums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.album { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--night); text-decoration: none; }
.album img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, opacity .3s; opacity: .92; }
.album:hover img { transform: scale(1.05); opacity: 1; }
.album__txt { position: absolute; inset: auto 0 0; padding: 3.5rem 1.2rem 1.1rem; background: linear-gradient(transparent, rgba(14,42,80,.92)); color: #fff; }
.album__txt h3 { color: #fff; font-size: 1.12rem; margin: 0 0 .25rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.album__txt span { font-size: .88rem; color: #c9d8ec; }
.photos { columns: 3 280px; column-gap: 1rem; }
.photos a { display: block; margin-bottom: 1rem; border-radius: var(--radius-sm); overflow: hidden; break-inside: avoid; cursor: zoom-in; }
.photos img { width: 100%; transition: transform .4s; }
.photos a:hover img { transform: scale(1.03); }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: .8rem; }
.strip a { border-radius: var(--radius-sm); overflow: hidden; display: block; }
.strip a:first-child { grid-column: span 2; grid-row: span 2; }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.strip a:hover img { transform: scale(1.04); }
@media (max-width: 900px) { .albums { grid-template-columns: 1fr 1fr; } .strip { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; } }
@media (max-width: 560px) { .albums { grid-template-columns: 1fr; } }

.lightbox { position: fixed; inset: 0; background: rgba(8,22,42,.94); z-index: 200; display: none; align-items: center; justify-content: center; padding: 3rem 4rem; }
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 86vh; max-width: 100%; border-radius: var(--radius-sm); }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lightbox button svg { width: 22px; height: 22px; }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; } .lb-prev svg { transform: rotate(180deg); }
.lb-next { right: 1rem; top: 50%; }
.lb-count { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); color: #c9d8ec; font-size: .9rem; }
@media (max-width: 600px) { .lightbox { padding: 3.5rem .5rem; } .lb-prev, .lb-next { top: auto; bottom: .7rem; } }

/* Rapports */
.docs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.doc { display: grid; grid-template-columns: 64px 1fr; gap: 1.1rem; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; align-items: start; }
.doc__ico { width: 64px; height: 76px; border-radius: 6px 18px 6px 6px; background: var(--sky-soft); color: var(--navy); display: grid; place-items: center; position: relative; font-weight: 800; font-size: .72rem; font-family: var(--display); }
.doc__ico svg { width: 26px; height: 26px; margin-bottom: 14px; }
.doc__ico b { position: absolute; bottom: 8px; color: var(--sun-dark); }
.doc__cover { width: 64px; height: 84px; object-fit: cover; border-radius: 6px; box-shadow: 0 6px 16px -8px rgba(0,0,0,.4); }
.doc h3 { font-size: 1.08rem; margin-bottom: .4rem; }
.doc p { color: var(--muted); font-size: .97rem; margin-bottom: .8rem; }
.doc__actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; font-size: .95rem; }
@media (max-width: 800px) { .docs { grid-template-columns: 1fr; } }

/* Offres d'emploi */
.job { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; padding: 1.5rem 1.6rem; border: 1px solid var(--line); border-left: 5px solid var(--sky); border-radius: var(--radius); background: #fff; }
.job--closed { border-left-color: #b8c1cf; opacity: .85; }
.job h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.job h3 a { color: inherit; text-decoration: none; }
.job h3 a:hover { color: var(--navy-2); }
.job p { margin: .2rem 0 0; color: var(--muted); }
.job__side { display: flex; flex-direction: column; align-items: flex-end; gap: .7rem; }
.deadline { font-size: .92rem; color: var(--muted); }
.deadline strong { color: var(--sun-dark); }
@media (max-width: 700px) { .job { grid-template-columns: 1fr; } .job__side { align-items: flex-start; } }
.apply-box { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 1.6rem; }
.apply-box h3 { color: #fff; border: 0 !important; padding: 0 !important; }
.apply-box p { color: #c9d8ec; font-size: .97rem; }
.apply-box .btn { width: 100%; justify-content: center; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.facts li { display: grid; grid-template-columns: 22px 1fr; gap: .7rem; }
.facts svg { color: var(--sky); margin-top: .25rem; }
.facts small { display: block; color: var(--muted); font-size: .85rem; }

/* Équipe */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem 1.6rem; }
.member { text-align: center; }
.member__photo { width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 8px solid var(--sky-soft); margin-bottom: 1.1rem; background: var(--mist); transition: border-color .25s; }
.member:hover .member__photo { border-color: var(--sky); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member__photo .initials { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--display); font-size: 2.6rem; font-weight: 800; color: var(--navy); background: var(--sky-soft); }
.member h3 { font-size: 1.15rem; margin-bottom: .2rem; }
.member p { color: var(--sun-dark); font-weight: 600; margin: 0; font-size: .98rem; }
.member__bio { color: var(--muted) !important; font-weight: 400 !important; margin-top: .6rem !important; font-size: .95rem !important; }
@media (max-width: 900px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .team { grid-template-columns: 1fr; max-width: 280px; margin-inline: auto; } }

/* Contact */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact__info { background: var(--navy); color: #fff; border-radius: calc(var(--radius) * 1.4); padding: 2.2rem; position: relative; overflow: hidden; }
.contact__info::after { content: ""; position: absolute; width: 260px; aspect-ratio: 1; border-radius: 50%; border: 18px solid var(--sky); opacity: .3; right: -110px; bottom: -110px; }
.contact__info h2 { color: #fff; font-size: 1.6rem; }
.contact__info ul { list-style: none; padding: 0; margin: 1.6rem 0; display: grid; gap: 1.3rem; position: relative; z-index: 1; }
.contact__info li { display: grid; grid-template-columns: 46px 1fr; gap: .9rem; align-items: center; }
.contact__info li > span:first-child { width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; color: #9cc8ee; }
.contact__info small { display: block; color: #a9c1de; font-size: .85rem; }
.contact__info a { color: #fff; text-decoration: none; font-weight: 600; }
.contact__info a:hover { text-decoration: underline; }
.wa-btn { background: #25d366; color: #fff !important; }
.wa-btn:hover { background: #1ebe5b; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 650; margin-bottom: .35rem; font-size: .97rem; }
.field input, .field textarea, .field select { width: 100%; font: inherit; padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(74,149,208,.15); }
.field textarea { min-height: 170px; resize: vertical; }
.field .err { color: #b3261e; font-size: .9rem; margin-top: .3rem; }
.hp { position: absolute; left: -5000px; }
.map { margin-top: 3rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 380px; border: 0; display: block; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } .form { grid-template-columns: 1fr; } }

.flash { margin: 1.5rem 0 0; background: #e3f4ea; color: #1d6b3e; border: 1px solid #b9e2c9; padding: .9rem 1.2rem; border-radius: var(--radius-sm); font-weight: 600; }
.empty { text-align: center; padding: 3.5rem 1.5rem; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty svg { width: 46px; height: 46px; color: var(--sky); margin: 0 auto 1rem; }
.empty h3 { color: var(--night); }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: .4rem; margin-top: 3rem; flex-wrap: wrap; list-style: none; padding: 0; }
.pagination a, .pagination span { min-width: 42px; height: 42px; padding: 0 .8rem; border-radius: 999px; display: inline-grid; place-items: center; text-decoration: none; border: 1.5px solid var(--line); color: var(--ink); font-weight: 600; }
.pagination a:hover { border-color: var(--sky); }
.pagination .active span { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination .disabled span { opacity: .4; }

/* Hub Publications */
.hub { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.hub a { display: block; padding: 1.6rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-decoration: none; color: inherit; position: relative; }
.hub a:hover { border-color: var(--sky); color: inherit; }
.hub svg { width: 34px; height: 34px; color: var(--sky); margin-bottom: 1rem; }
.hub strong { display: block; font-family: var(--display); font-size: 2rem; color: var(--navy); font-weight: 800; line-height: 1; }
.hub span { display: block; font-weight: 700; color: var(--night); margin-top: .35rem; font-size: 1.1rem; }
.hub small { color: var(--muted); }
@media (max-width: 900px) { .hub { grid-template-columns: 1fr 1fr; } }

/* ---------- Pied de page ---------- */
.footer { background: var(--night); color: #c9d8ec; margin-top: 0; }
.footer__news { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding-block: 2.6rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__news h2 { color: #fff; font-size: 1.6rem; margin-bottom: .3rem; }
.footer__news p { margin: 0; }
.news-form { display: flex; gap: .5rem; background: rgba(255,255,255,.08); padding: .4rem; border-radius: 999px; width: min(100%, 460px); }
.news-form input { flex: 1; min-width: 0; border: 0; background: transparent; color: #fff; padding: 0 1rem; font: inherit; outline: none; }
.news-form input::placeholder { color: #9fb3cd; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 2.5rem; padding-block: 3.5rem; }
.footer h3 { color: #fff; font-size: 1.1rem; margin-bottom: 1.1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.footer a { color: #c9d8ec; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__about p { margin: 1.3rem 0; font-size: 1rem; max-width: 26rem; }
.footer__about .brand img { width: 64px; height: 64px; background: #fff; border-radius: 50%; padding: 4px; }
.footer__contact li { display: grid; grid-template-columns: 20px 1fr; gap: .7rem; align-items: start; }
.footer__contact svg { color: var(--sky); margin-top: .3rem; }
.socials { display: flex; gap: .55rem; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; }
.socials a:hover { background: var(--sun); text-decoration: none; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.3rem; font-size: .9rem; }
.footer__bottom .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__news { flex-direction: column; align-items: flex-start; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* Bouton WhatsApp flottant */
.wa-float { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90; display: inline-flex; align-items: center; gap: .6rem; background: #25d366; color: #fff; text-decoration: none; border-radius: 999px; padding: .8rem; box-shadow: 0 14px 30px -10px rgba(18,140,70,.65); font-weight: 700; }
.wa-float svg { width: 30px; height: 30px; }
.wa-float span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .3s ease, margin .3s; }
.wa-float:hover { color: #fff; background: #1ebe5b; }
.wa-float:hover span, .wa-float:focus-visible span { max-width: 220px; margin-right: .4rem; }

.mt-0 { margin-top: 0; } .mt-2 { margin-top: 2rem; } .center { text-align: center; }
