/*
Theme Name: Institut Kimpa Vita Pro
Theme URI: https://institut-kimpavita.org
Author: Prof. Dr Magloire Mpembi
Description: Thème WordPress professionnel converti depuis le site HTML de l’Institut Kimpa Vita, avec pages institutionnelles, consultations, exergue Coeur-Esprit-Dignité-Communauté et portrait professionnel du Prof. Dr Magloire Mpembi.
Version: 1.0.3
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: institut-kimpa-vita-pro
*/

/* =========================================================
   Dr Magloire Mpembi — Feuille de style modernisée
   Charte : Bleu nuit / Or / Blanc cassé
   HTML/CSS/JS natifs, sans framework. Preserving exact structure.
   ========================================================= */

:root {
  --offwhite: #FAFAF7;
  --offwhite-2: #F5F5F1;
  --offwhite-3: #F4F4F0;
  --night: #1B2A4E;
  --gold: #C9A961;
  --anthracite: #2C2C2A;
  --muted: #E6E6E2;
  --border: rgba(27, 42, 78, 0.08);
  --border-light: rgba(250, 250, 247, 0.12);
  --content: 1200px;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--offwhite-2);
}
::-webkit-scrollbar-thumb {
  background: var(--night);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* ---------- Reset léger ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--offwhite);
  color: var(--anthracite);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: rgba(201, 169, 97, 0.25); color: var(--night); }
*:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Conteneur ---------- */
.wrap {
  max-width: var(--content);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
@media (min-width: 1024px) {
  .wrap { padding-left: 32px; padding-right: 32px; }
}

/* ---------- Typo utilitaires ---------- */
.eyebrow {
  color: var(--gold);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-weight: 600;
  margin: 0 0 18px;
}
.serif { font-family: var(--serif); }
.rule { width: 48px; height: 1px; background: var(--gold); margin: 26px 0; border: 0; }
.rule.light { background: rgba(201,169,97,0.5); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(250, 250, 247, 0.80);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition-smooth);
}
.nav.scrolled {
  background: rgba(250, 250, 247, 0.96);
  box-shadow: 0 10px 30px rgba(27,42,78,0.04);
}
.nav__inner {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 24px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition-smooth);
}
.nav.scrolled .nav__inner { height: 72px; }
@media (min-width: 1024px) { .nav__inner { padding: 0 32px; } }

.brand {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--night);
  transition: opacity 0.3s ease;
}
.brand:hover { opacity: 0.85; }
.brand .dot { color: var(--gold); }

.nav__links {
  display: none;
  align-items: center;
  gap: 38px;
}
.nav__links a {
  position: relative;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 500;
  color: rgba(27,42,78,0.75);
  transition: color 0.3s ease;
  padding: 4px 0;
}
.nav__links a::after {
  content: "";
  position: absolute; left: 50%; bottom: -2px;
  width: 0; height: 1px; background: var(--gold);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav__links a:hover { color: var(--night); }
.nav__links a:hover::after { width: 100%; left: 0; }

.nav__actions { display: flex; align-items: center; gap: 14px; }

.nav__toggle {
  display: inline-flex;
  background: none; border: 0;
  color: var(--night);
  padding: 8px;
  transition: transform 0.3s ease;
}
.nav__toggle:hover { transform: scale(1.05); }
.nav__toggle svg { width: 22px; height: 22px; }

.nav__mobile {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--offwhite);
  padding: 22px 24px 28px;
  box-shadow: 0 20px 40px rgba(27,42,78,0.05);
}
.nav__mobile.open { display: block; }
.nav__mobile a {
  display: block;
  padding: 14px 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  color: var(--night);
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.3s ease, color 0.3s ease;
}
.nav__mobile a:hover { padding-left: 6px; color: var(--gold); }
.nav__mobile a:last-child { border-bottom: 0; color: var(--gold); }

@media (min-width: 1024px) {
  .nav__links { display: flex; }
  .nav__toggle { display: none; }
  .nav__mobile { display: none !important; }
}

/* ============================================================
   BOUTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 500;
  padding: 18px 34px;
  border: 1px solid transparent;
  transition: var(--transition-smooth);
  text-align: center;
  position: relative;
  z-index: 1;
}
.btn--primary {
  background: var(--night);
  color: var(--offwhite);
  box-shadow: 0 10px 24px rgba(27,42,78,0.12);
}
.btn--primary:hover { 
  background: var(--gold); 
  color: var(--night); 
  box-shadow: 0 10px 24px rgba(201,169,97,0.2);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--night);
  border-color: rgba(27,42,78,0.2);
}
.btn--ghost:hover { 
  border-color: var(--night); 
  background: rgba(27,42,78,0.02);
  transform: translateY(-1px);
}
.btn--gold {
  background: var(--gold);
  color: var(--night);
  box-shadow: 0 10px 24px rgba(201,169,97,0.1);
}
.btn--gold:hover { 
  background: var(--offwhite); 
  box-shadow: 0 10px 24px rgba(27,42,78,0.05);
  transform: translateY(-1px);
}

.btn--nav { padding: 12px 24px; font-size: 11px; }
.btn--nav-mini { padding: 10px 18px; font-size: 11px; letter-spacing: 0.12em; }
@media (min-width: 1024px) { .btn--nav-mini { display: none; } }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 160px 0 100px; }
@media (min-width: 1024px) { .hero { padding: 200px 0 140px; } }

.hero__grid { display: grid; grid-template-columns: 1fr; gap: 56px; align-items: center; }
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 6.5fr 5.5fr; gap: 80px; }
}

.hero h1 {
  font-family: var(--serif);
  color: var(--night);
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}
.hero h1 .soft { font-style: italic; font-weight: 300; color: rgba(27,42,78,0.65); }
@media (min-width: 768px) { .hero h1 { font-size: 68px; } }
@media (min-width: 1024px) { .hero h1 { font-size: 78px; } }

.hero__lede {
  font-size: 17px;
  font-weight: 300;
  color: rgba(44,44,42,0.85);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 40px;
}
.hero__cta { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 560px) { .hero__cta { flex-direction: row; } }

/* Portrait */
.portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: rgba(27,42,78,0.03);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(27,42,78,0.03);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.portrait__frame {
  position: absolute; inset: 16px;
  border: 1px solid rgba(27,42,78,0.08);
  pointer-events: none;
}
.portrait__placeholder { color: rgba(27,42,78,0.12); }
.portrait__placeholder svg { width: 120px; height: 120px; }
.portrait__tag {
  position: absolute;
  left: 28px; right: 28px; bottom: 28px;
  display: flex; justify-content: space-between; align-items: flex-end;
  background: rgba(250, 250, 247, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 16px 20px;
  border: 1px solid rgba(27, 42, 78, 0.05);
}
.portrait__tag .name { font-family: var(--serif); font-size: 20px; color: var(--night); font-weight: 500; }
.portrait__tag .loc {
  display: block; margin-top: 2px;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em;
  color: rgba(27,42,78,0.6);
}

/* ============================================================
   BARRE D'AUTORITÉ
   ============================================================ */
.authority {
  background: var(--offwhite-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
}
.authority__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 24px;
}
@media (min-width: 1024px) { .authority__grid { grid-template-columns: repeat(4, 1fr); } }

.authority__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
@media (min-width: 1024px) {
  .authority__item { flex-direction: row; align-items: center; text-align: left; gap: 18px; }
}
.authority__badge {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(27,42,78,0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(27,42,78,0.7);
  font-family: var(--serif);
  font-size: 11px; font-weight: 600;
  background: var(--offwhite);
  transition: var(--transition-smooth);
}
.authority__item:hover .authority__badge {
  border-color: var(--gold);
  color: var(--gold);
}
.authority__badge svg { width: 18px; height: 18px; }
.authority__item h4 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 600; color: var(--night);
}
.authority__item p { font-size: 12px; color: rgba(27,42,78,0.55); margin-top: 4px; }

/* ============================================================
   SECTIONS GÉNÉRIQUES
   ============================================================ */
.section { padding: 110px 0; }
@media (max-width: 640px) { .section { padding: 76px 0; } }

.section--alt { background: var(--offwhite-3); }
.section h2 {
  font-family: var(--serif);
  color: var(--night);
  font-size: 38px;
  line-height: 1.15;
}
@media (min-width: 1024px) { .section h2 { font-size: 52px; } }

.equipe__head { margin-bottom: 56px; }
.equipe__quote { font-style: italic; font-size: 18px; color: rgba(27,42,78,0.6); font-family: var(--serif); margin-top: 16px; }

/* ---------- Membres de l'équipe ---------- */
.member {
  background: var(--offwhite-2);
  border: 1px solid var(--border);
  padding: 40px;
  margin-bottom: 32px;
  transition: var(--transition-smooth);
}
.member:last-child { margin-bottom: 0; }
.member:hover {
  background: var(--offwhite);
  box-shadow: 0 20px 40px rgba(27,42,78,0.03);
  border-color: rgba(27,42,78,0.15);
}
.member__id { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.avatar {
  width: 56px; height: 56px; border-radius: 50%; background: var(--night); color: var(--offwhite);
  display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 18px; font-weight: 500;
}
.avatar--alt { background: var(--gold); color: var(--night); }
.member__id h3 { font-family: var(--serif); font-size: 24px; color: var(--night); }
.member__role { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); font-weight: 500; margin-top: 2px; }

.member__body { font-size: 16px; font-weight: 300; color: rgba(44,44,42,0.88); }
.member__body p { margin-bottom: 20px; }
.member__body p:last-of-type { margin-bottom: 0; }
.member__body p.lead { font-size: 18px; line-height: 1.7; color: var(--night); font-weight: 400; }

.timeline {
  margin-top: 40px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 28px;
}
.timeline__row { display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 640px) {
  .timeline__row { flex-direction: row; gap: 24px; }
}
.timeline__label {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 22px;
  font-weight: 500;
  flex: 0 0 100px;
}
.timeline__row h4 { font-size: 15px; font-weight: 600; color: var(--night); }
.timeline__row p { font-size: 13.5px; color: rgba(27,42,78,0.6); margin-top: 4px; line-height: 1.6; }

/* ============================================================
   SECTION INITIATIVES (fond bleu nuit)
   ============================================================ */
.dark { background: var(--night); color: var(--offwhite); }
.dark h2 { color: var(--offwhite); }
.dark .eyebrow { color: var(--gold); }
.dark__intro { max-width: 680px; }
.dark__intro p { color: rgba(250,250,247,0.7); font-weight: 300; font-size: 16px; margin-top: 18px; line-height: 1.75; }
.dark__status-inline {
  display: inline-flex; align-items: center; gap: 8px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold); margin-top: 24px;
}

.institut__projects-head { margin-top: 64px; border-bottom: 1px solid var(--border-light); padding-bottom: 16px; }

.cards2 { display: grid; grid-template-columns: 1fr; gap: 32px; margin-top: 40px; }
@media (min-width: 1024px) { .cards2 { grid-template-columns: 1fr 1fr; } }

.card-dark {
  border: 1px solid var(--border-light);
  background: rgba(250,250,247,0.01);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
}
@media (min-width: 768px) { .card-dark { padding: 48px; } }
.card-dark:hover { 
  border-color: rgba(201,169,97,0.5); 
  background: rgba(250,250,247,0.03); 
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.card-dark__tag {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
  font-weight: 500; color: var(--gold); margin-bottom: 24px;
}
.card-dark__tag .ping { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.card-dark h3 {
  font-family: var(--serif); font-size: 30px; margin-bottom: 20px;
  transition: color 0.3s ease;
}
.card-dark:hover h3 { color: var(--gold); }
.card-dark p { font-weight: 300; color: rgba(250,250,247,0.75); line-height: 1.75; font-size: 15px; margin-bottom: 32px; }

.card-dark__status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
  color: rgba(250,250,247,0.5);
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

/* ============================================================
   MÉDIAS & PUBLICATIONS
   ============================================================ */
.media__grid { display: grid; grid-template-columns: 1fr; gap: 64px; }
@media (min-width: 1024px) { .media__grid { grid-template-columns: 1fr 1fr; gap: 80px; } }
.media__col p.intro { font-weight: 300; color: rgba(44,44,42,0.8); line-height: 1.75; margin-bottom: 32px; font-size: 16px; }

/* Carte podcast */
.podcast {
  background: var(--offwhite);
  border: 1px solid var(--border);
  padding: 36px;
  box-shadow: 0 10px 30px rgba(27,42,78,0.02);
  transition: var(--transition-smooth);
}
.podcast:hover {
  transform: translateY(-4px);
  border-color: rgba(27,42,78,0.15);
  box-shadow: 0 20px 40px rgba(27,42,78,0.05);
}
.podcast__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.podcast__head .label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold); font-weight: 600; }
.podcast__head h4 { font-family: var(--serif); font-size: 21px; color: var(--night); margin-top: 6px; }
.podcast__soon {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em;
  color: rgba(27,42,78,0.5); white-space: nowrap;
  border: 1px solid rgba(27,42,78,0.15); padding: 5px 12px;
  background: var(--offwhite-2);
}
.podcast__row { display: flex; align-items: center; gap: 18px; margin-top: 32px; }
.podcast__icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(27,42,78,0.04);
  display: flex; align-items: center; justify-content: center;
  color: rgba(27,42,78,0.5);
  flex-shrink: 0;
}
.podcast__icon svg { width: 20px; height: 20px; }
.podcast__row p { font-size: 13.5px; color: rgba(27,42,78,0.65); line-height: 1.6; }
.podcast__platforms { margin-top: 28px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(27,42,78,0.45); border-top: 1px solid var(--border); padding-top: 16px; }

/* Cartes livres */
.books { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.book {
  background: var(--offwhite);
  border: 1px solid var(--border);
  padding: 32px;
  aspect-ratio: 3 / 4;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: var(--transition-smooth);
  box-shadow: 0 10px 30px rgba(27,42,78,0.02);
}
.book:hover { 
  border-color: rgba(201,169,97,0.5); 
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(27,42,78,0.06);
}
.book .tick { width: 24px; height: 1px; background: var(--gold); margin-bottom: 20px; }
.book h4 { font-family: var(--serif); font-size: 20px; color: var(--night); line-height: 1.3; transition: color 0.3s ease; }
.book:hover h4 { color: var(--gold); }
.book .meta { font-size: 12px; color: rgba(27,42,78,0.5); margin-top: 10px; }
.book .buy {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
  font-weight: 500; color: rgba(27,42,78,0.6);
  border-bottom: 1px solid var(--border); padding-bottom: 4px; width: max-content;
  transition: var(--transition-smooth);
}
.book:hover .buy { color: var(--gold); border-color: var(--gold); padding-bottom: 6px; }

.press {
  margin-top: 32px;
  border: 1px dashed rgba(27,42,78,0.2);
  padding: 24px 28px;
  font-size: 13.5px; color: rgba(27,42,78,0.6); line-height: 1.65;
  background: rgba(27,42,78,0.01);
}
.press strong { color: var(--night); font-weight: 600; }

/* ============================================================
   PRISE DE RENDEZ-VOUS / DOUBLE PARCOURS
   ============================================================ */
.cta-band { background: var(--offwhite-2); }
.rdv__head { margin-bottom: 56px; text-align: center; }
.rdv__head p { font-size: 16px; color: rgba(44,44,42,0.75); margin-top: 12px; }
.rdv__grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
@media (min-width: 960px) { .rdv__grid { grid-template-columns: 7fr 5fr; gap: 56px; } }

.rdv-card {
  background: var(--offwhite);
  border: 1px solid var(--border);
  padding: 40px;
  box-shadow: 0 15px 35px rgba(27,42,78,0.03);
}
@media (min-width: 640px) { .rdv-card { padding: 52px; } }
.rdv-card h3 { font-family: var(--serif); font-size: 28px; margin: 8px 0 16px; color: var(--night); }
.rdv-card > p { font-size: 14px; color: rgba(44,44,42,0.75); margin-bottom: 36px; font-weight: 300; }

/* Formulaire épuré et moderne */
.form-row { margin-bottom: 24px; }
.form-row label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; color: var(--night); margin-bottom: 8px; }
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row textarea {
  width: 100%;
  background: var(--offwhite-2);
  border: 1px solid transparent;
  border-bottom: 1px solid rgba(27, 42, 78, 0.15);
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--anthracite);
  transition: var(--transition-smooth);
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  background: var(--offwhite);
  border-color: transparent;
  border-bottom: 1px solid var(--gold);
  box-shadow: 0 4px 12px rgba(27,42,78,0.02);
}
.form-row textarea { min-height: 110px; resize: vertical; }

.form-hidden { display: none; }
.form-consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: rgba(44,44,42,0.75); margin: 32px 0 28px; cursor: pointer; }
.form-consent input { margin-top: 4px; accent-color: var(--gold); }
.form-consent a { color: var(--night); text-decoration: underline; }

.form-note { font-size: 11.5px; color: rgba(44,44,42,0.5); margin-top: 16px; line-height: 1.5; }

.appt-card {
  background: var(--night);
  color: var(--offwhite);
  padding: 52px 40px;
  text-align: center;
  box-shadow: 0 20px 45px rgba(27,42,78,0.15);
}
.appt-card .eyebrow { color: var(--gold); }
.appt-card h3 { font-family: var(--serif); font-size: 30px; margin: 8px 0 16px; }
.appt-card p { font-size: 14px; font-weight: 300; color: rgba(250,250,247,0.75); line-height: 1.7; margin-bottom: 36px; }
.appt-card .note { font-size: 11.5px; color: rgba(250,250,247,0.5); margin-top: 24px; letter-spacing: 0.02em; line-height: 1.6; }

/* ============================================================
   PAGES DE REMERCIEMENT & LÉGALES (MAIN)
   ============================================================ */
.thanks { padding: 180px 0 120px; text-align: center; }
.thanks .check {
  width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--gold); display: flex; align-items: center; justify-content: center; color: var(--gold); margin: 0 auto 24px;
}
.thanks .check svg { width: 28px; height: 28px; }
.thanks h1 { font-size: 42px; color: var(--night); margin-bottom: 16px; }
.thanks p { font-size: 16px; max-width: 540px; margin: 0 auto 36px; color: rgba(44,44,42,0.8); }

.legal { padding: 180px 0 110px; }
.legal__head { max-width: 720px; margin-bottom: 56px; }
.legal h1 { font-family: var(--serif); color: var(--night); font-size: 44px; line-height: 1.1; margin-bottom: 18px; }
.legal__sub { color: rgba(27,42,78,0.6); font-weight: 300; font-size: 16px; }
.legal__body { max-width: 760px; }
.legal__body h2 { font-family: var(--serif); color: var(--night); font-size: 26px; margin: 44px 0 16px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.legal__body h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); margin: 32px 0 12px; font-weight: 600; }
.legal__body p { font-size: 15.5px; font-weight: 300; color: rgba(44,44,42,0.88); line-height: 1.8; margin-bottom: 16px; }
.legal__body ul { margin: 12px 0 20px; padding-left: 0; }
.legal__body li { font-size: 15.5px; font-weight: 300; color: rgba(44,44,42,0.88); line-height: 1.7; padding-left: 20px; position: relative; margin-bottom: 10px; }
.legal__body li::before { content: ""; position: absolute; left: 0; top: 12px; width: 6px; height: 1px; background: var(--gold); }
.legal__body a { color: var(--night); border-bottom: 1px solid rgba(201,169,97,0.4); transition: color 0.3s ease, border-color 0.3s ease; }
.legal__body a:hover { color: var(--gold); border-color: var(--gold); }
.fill {
  background: rgba(201,169,97,0.1);
  border-bottom: 1px solid rgba(201,169,97,0.3);
  padding: 1px 6px;
  font-weight: 500;
  color: var(--night);
}
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--gold); margin-top: 56px; font-weight: 600;
  transition: transform 0.3s ease;
}
.back-link:hover { transform: translateX(-4px); }
.back-link svg { width: 14px; height: 14px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--night); color: var(--offwhite); padding: 90px 0 48px; border-top: 1px solid var(--border-light); }
.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding-bottom: 64px;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--border-light);
}
@media (min-width: 768px) { .footer__top { grid-template-columns: 5fr 3fr 4fr; gap: 64px; } }

.footer h2 { font-family: var(--serif); font-size: 24px; color: var(--offwhite); margin-bottom: 24px; }
.footer__about { font-weight: 300; color: rgba(250,250,247,0.55); font-size: 14px; line-height: 1.7; max-width: 340px; margin-bottom: 28px; }
.footer__social { display: flex; gap: 14px; }
.footer__social a {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: center;
  color: rgba(250,250,247,0.65);
  transition: var(--transition-smooth);
}
.footer__social a:hover { color: var(--gold); border-color: var(--gold); transform: translateY(-2px); }
.footer__social svg { width: 16px; height: 16px; }

.footer h4 {
  color: var(--gold); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.14em; font-weight: 600; margin-bottom: 24px;
}
.footer__nav li { margin-bottom: 14px; }
.footer__nav a { font-size: 13.5px; color: rgba(250,250,247,0.6); font-weight: 300; transition: color 0.3s ease; }
.footer__nav a:hover { color: var(--gold); }
.footer__legal-note {
  display: block; margin-top: 24px; font-size: 11px;
  color: rgba(250,250,247,0.45); border-left: 1px solid rgba(201,169,97,0.4);
  padding-left: 14px; line-height: 1.6;
}

.footer__bottom {
  display: flex; flex-direction: column; gap: 16px;
  align-items: flex-start;
  font-size: 11px; color: rgba(250,250,247,0.45); font-weight: 300; line-height: 1.65;
}
@media (min-width: 1024px) { .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; } }
.footer__crisis { max-width: 480px; }
@media (min-width: 1024px) { .footer__crisis { text-align: right; } }

/* ============================================================
   ANIMATIONS DE RÉVÉLATION — RÈGLE ANTI-PAGE-BLANCHE
   ============================================================ */
.reveal { opacity: 1; transform: none; }

html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .1s cubic-bezier(0.16,1,0.3,1),
              transform .1s cubic-bezier(0.16,1,0.3,1);
  will-change: opacity, transform;
}
html.js .reveal.is-visible { opacity: 1; transform: none; transition-duration: 0.8s; }

html.js .reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 60ms; }
html.js .reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 140ms; }
html.js .reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 220ms; }

html.reveal-failsafe .reveal { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}
/* WordPress compatibility */
.admin-bar .nav { top: 32px; }
@media (max-width: 782px){ .admin-bar .nav { top: 46px; } }
.portrait img, .portrait__photo { width:100%; height:100%; object-fit:cover; position:absolute; inset:0; z-index:1; }
.portrait__frame { z-index:2; pointer-events:none; }
.portrait__tag { z-index:3; }
.avatar.avatar--photo { overflow:hidden; background: transparent; padding:0; }
.avatar.avatar--photo img { width:100%; height:100%; object-fit:cover; display:block; border-radius:inherit; }
img { max-width: 100%; height: auto; }


/* Version 1.0.2 : Hero Institut Kimpa Vita */
@media (max-width: 900px) {
  .ikv-institut-hero .wrap { grid-template-columns: 1fr !important; }
  .ikv-institut-hero h1 { font-size: 42px !important; }
  .ikv-institut-hero [style*="repeat(4"] { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 560px) {
  .ikv-institut-hero [style*="repeat(4"] { grid-template-columns: 1fr !important; }
}
