/* ==========================================================================
   CC CONGO — feuille de styles
   Couleurs inspirées du logo et du drapeau de la RDC.
   ========================================================================== */

:root {
  color-scheme: light;
  --ink: #0e2238;
  --ink-2: #33475c;
  --muted: #5f6f80;
  --paper: #fbf8f3;
  --sand: #f3ece1;
  --line: #e5dccd;
  --white: #fff;
  --navy: #0a1b2e;
  --blue: #0b67b8;
  --sky: #1a8fe3;
  --red: #c8102e;
  --yellow: #f5c400;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(14, 34, 56, .06), 0 12px 32px rgba(14, 34, 56, .08);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

/* Bande tricolore — rappel de la diagonale du drapeau */
.flagline {
  height: 5px;
  background: linear-gradient(90deg, var(--sky) 0 38%, var(--yellow) 38% 41%, var(--red) 41% 59%, var(--yellow) 59% 62%, var(--sky) 62%);
}

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 24px; min-height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand img { width: auto; height: 48px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; border-left: 1px solid var(--line); padding-left: 12px; }
.brand-text strong { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; }
.brand-text span { font-size: .78rem; color: var(--muted); }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.main-nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .92rem; padding: 8px 11px; border-radius: 999px; white-space: nowrap; }
.main-nav a:hover { background: var(--sand); color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--blue); background: #e8f2fb; }
.main-nav a.nav-cta { background: var(--ink); color: #fff; margin-left: 6px; }
.main-nav a.nav-cta:hover, .main-nav a.nav-cta[aria-current="page"] { background: var(--blue); color: #fff; }
.menu-btn { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 20px; height: 2px; background: var(--ink); margin: auto; position: relative; transition: transform .2s; content: ""; }
.menu-btn span::before { position: absolute; top: -6px; }
.menu-btn span::after { position: absolute; top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Boutons, étiquettes ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: .98rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; transition: background .15s, color .15s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #09579c; }
.btn-ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-light { background: #fff; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--red) 0 50%, var(--yellow) 50%); }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--sand); color: var(--ink-2); }

/* ---------- Accueil : héros ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 em { font-style: italic; color: var(--blue); }
.hero .lead { font-size: 1.15rem; color: var(--ink-2); max-width: 36em; }
.hero-media { position: relative; }
.hero-media::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border-radius: 26px; background: linear-gradient(135deg, var(--sky) 0 44%, var(--yellow) 44% 47%, var(--red) 47% 60%, var(--yellow) 60% 63%, var(--sky) 63%); }
.hero-media figure { position: relative; margin: 0; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); }
.hero-media img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; }
.hero-media figcaption { position: absolute; left: 14px; bottom: 14px; right: 14px; background: rgba(10, 27, 46, .78); color: #fff; font-size: .88rem; padding: 10px 14px; border-radius: 12px; backdrop-filter: blur(4px); }

/* Devise */
.motto { background: var(--navy); color: #fff; }
.motto .wrap { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 14px 34px; padding: 26px 0; font-family: var(--serif); font-size: clamp(1.25rem, 2.6vw, 1.75rem); }
.motto i { width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); }
.motto i:nth-of-type(2) { background: var(--red); }

/* ---------- Sections ---------- */
.section { padding: clamp(60px, 8vw, 104px) 0; }
.section.alt { background: var(--sand); }
.section.white { background: #fff; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head.split { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-head h2 { margin-bottom: .3em; }
.link-arrow { font-weight: 700; text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: " →"; }

/* Cartes */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: box-shadow .2s, transform .2s; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--ink-2); margin: 0; font-size: .98rem; }
.card:hover { box-shadow: var(--shadow); }
.section.alt .card { border-color: transparent; }
.icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px; background: #e8f2fb; color: var(--blue); }
.icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tone-red .icon { background: #fbe8eb; color: var(--red); }
.tone-yellow .icon { background: #fdf4cf; color: #8a6d00; }
.num { font-family: var(--serif); font-size: 1rem; font-weight: 600; color: var(--red); display: block; margin-bottom: 10px; }

/* Projet à la une */
.feature { display: grid; grid-template-columns: 1.1fr .9fr; background: #fff; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); }
.feature > img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.feature-body { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.note { font-size: .92rem; color: var(--muted); border-left: 3px solid var(--yellow); padding-left: 14px; }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; }
.gallery figure { margin: 0; position: relative; border-radius: 16px; overflow: hidden; background: var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; inset: auto 0 0 0; padding: 36px 14px 12px; color: #fff; font-size: .86rem; font-weight: 600; background: linear-gradient(transparent, rgba(10, 27, 46, .85)); }
.gallery .wide { grid-column: span 2; }
.gallery .tall { grid-row: span 2; }

/* Partenaires */
.partners { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.partner { display: flex; align-items: center; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; font-weight: 700; font-size: 1.05rem; }
.partner-mark { flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); background: var(--navy); color: var(--yellow); }

/* Appel à l'action */
.cta { position: relative; overflow: hidden; background: var(--navy); color: #fff; border-radius: 28px; padding: clamp(36px, 6vw, 72px); }
.cta::after { content: ""; position: absolute; right: -120px; top: -60px; width: 420px; height: 160%; transform: rotate(28deg); background: linear-gradient(90deg, var(--yellow) 0 8%, var(--red) 8% 92%, var(--yellow) 92%); opacity: .9; }
.cta > * { position: relative; z-index: 1; max-width: 620px; }
.cta p { color: #c9d5e2; font-size: 1.1rem; }

/* ---------- Pages intérieures ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 7vw, 80px); }
.page-hero::after { content: ""; position: absolute; right: -80px; top: -40%; width: 260px; height: 200%; transform: rotate(32deg); background: linear-gradient(90deg, var(--yellow) 0 10%, var(--red) 10% 90%, var(--yellow) 90%); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { max-width: 16em; }
.page-hero p { color: #c9d5e2; font-size: 1.12rem; max-width: 40em; margin: 0; }
.page-hero .eyebrow { color: #8cc8f5; }
.crumbs { font-size: .85rem; color: #8ea3b8; margin-bottom: 18px; }
.crumbs a { color: #c9d5e2; }

.prose { max-width: 760px; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.two-col { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.aside-card { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 32px; }
.aside-card .motto-list { list-style: none; padding: 0; margin: 12px 0 0; font-family: var(--serif); font-size: 1.6rem; line-height: 1.5; }
.aside-card .motto-list li::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 14px; background: var(--yellow); vertical-align: middle; }
.aside-card .motto-list li:nth-child(2)::before { background: var(--red); }
.aside-card .motto-list li:nth-child(3)::before { background: var(--sky); }

/* Équipe */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.person { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.person .photo { aspect-ratio: 4 / 4.2; background: var(--sand); }
.person .photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.person.compact { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-left: 4px solid var(--sky); }
.person.compact .info { padding: 0; border: 0; }
.person.compact:nth-child(3n+2) { border-left-color: var(--red); }
.person.compact:nth-child(3n) { border-left-color: var(--yellow); }
.avatar { flex-shrink: 0; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 1.3rem; color: var(--blue); background: #e8f2fb; }
.team + .team { margin-top: 20px; }
.person .info { padding: 20px 22px 24px; border-top: 4px solid var(--sky); }
.person:nth-child(3n+2) .info { border-top-color: var(--red); }
.person:nth-child(3n) .info { border-top-color: var(--yellow); }
.person .role { font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.person h3 { font-size: 1.15rem; margin: 6px 0 0; }

.block-title { display: flex; align-items: baseline; gap: 14px; margin: 64px 0 24px; }
.block-title:first-child { margin-top: 0; }
.block-title h2 { margin: 0; font-size: clamp(1.5rem, 2.8vw, 2rem); }
.panel { background: var(--sand); border-radius: 26px; padding: clamp(24px, 4vw, 44px); margin-top: 64px; }
.panel .card { border-color: transparent; }

.empty-state { text-align: center; padding: 44px 24px; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); margin-top: 28px; }

/* Actualités */
.article { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(24px, 4vw, 52px); align-items: center; background: #fff; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); }
.article img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; }
.article-body { padding: clamp(28px, 4vw, 48px) clamp(28px, 4vw, 48px) clamp(28px, 4vw, 48px) 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.info-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.info-list .icon { width: 40px; height: 40px; margin: 0; flex-shrink: 0; border-radius: 10px; }
.info-list .icon svg { width: 20px; height: 20px; }
.info-list small { display: block; color: var(--muted); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.form { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 4vw, 40px); display: grid; gap: 18px; box-shadow: var(--shadow); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { font-weight: 700; font-size: .92rem; display: grid; gap: 6px; }
.form input, .form textarea { width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; font-weight: 400; background: var(--paper); color: var(--ink); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px #d6e8f8; }
.form .btn { justify-self: start; }
.form-msg { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy); color: #c9d5e2; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 64px 0 44px; }
.footer-logo { width: 190px; border-radius: 12px; margin-bottom: 18px; }
.site-footer h3 { font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #c9d5e2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-motto { font-family: var(--serif); color: #fff; font-size: 1.1rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 20px 0; font-size: .86rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound .big { font-family: var(--serif); font-size: clamp(5rem, 16vw, 9rem); line-height: 1; color: var(--blue); }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .menu-btn { display: grid; place-items: center; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; background: #fff; padding: 12px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(14, 34, 56, .12); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; border-radius: 10px; font-size: 1rem; }
  .main-nav a.nav-cta { margin: 8px 0 0; text-align: center; }
}
@media (max-width: 960px) {
  .hero-grid, .feature, .two-col, .contact-grid, .article { grid-template-columns: 1fr; }
  .article-body { padding: 0 28px 32px; }
  .grid-3, .grid-4, .team { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .hero-media { margin-right: 22px; }
  .feature > img { min-height: 260px; max-height: 380px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .brand-text { display: none; }
  .grid-2, .grid-3, .grid-4, .team, .partners, .form .row { grid-template-columns: 1fr; }
  .gallery { grid-auto-rows: 160px; }
  .gallery .tall { grid-row: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .motto .wrap { gap: 10px 16px; }
  .cta::after, .page-hero::after { width: 140px; right: -90px; }
  .card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
.person .initials { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--serif); font-size: 3.4rem; color: #fff; background: linear-gradient(135deg, var(--navy) 0 55%, var(--yellow) 55% 58%, var(--red) 58% 72%, var(--yellow) 72% 75%, var(--navy) 75%); }
