/* ═══════════════════════════════════════════════════════════════
   AP CINEMA — Design system africain réutilisable pour Africa Post.
   À inclure sur toutes les pages publiques avec :
     <link rel="stylesheet" href="/css/ap-cinema.css">
   Préserve l'identité existante (--green #10B981, --orange #F59E0B,
   dark #0D1117) + ajoute le mood africain (latérite, sahel, ocre,
   savane) et les composants cinéma (hero, glass, badges, KenBurns).
   ═══════════════════════════════════════════════════════════════ */

:root {
  --apc-bg: #0D1117;
  --apc-bg-2: #161A22;
  --apc-bg-3: #1F2530;
  --apc-green: #10B981;
  --apc-green-soft: rgba(16,185,129,0.18);
  --apc-orange: #F59E0B;
  --apc-orange-soft: rgba(245,158,11,0.18);
  --apc-laterite: #C97E3F;        /* terre rouge africaine */
  --apc-sahel: #E8B86B;            /* doré chaud sahel */
  --apc-sienna: #8B4513;           /* terre profonde */
  --apc-txt: #E5E7EB;
  --apc-txt-mute: rgba(229,231,235,0.6);
  --apc-txt-dim: rgba(229,231,235,0.4);
  --apc-border: rgba(255,255,255,0.08);
  --apc-border-strong: rgba(255,255,255,0.16);
  --apc-glass-bg: rgba(13,17,23,0.65);
  --apc-glass-blur: blur(16px);
}

/* ═══════════════ HERO CINEMA ═══════════════ */
.apc-hero {
  position: relative;
  min-height: 88vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 6vw 80px;
  overflow: hidden;
  isolation: isolate;
}
.apc-hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  animation: apcKenBurns 22s ease-out infinite alternate;
  will-change: transform;
}
.apc-hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(13,17,23,0.55) 0%, rgba(13,17,23,0.3) 35%, rgba(13,17,23,0.92) 100%),
    radial-gradient(ellipse at 25% 80%, rgba(16,185,129,0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(245,158,11,0.15) 0%, transparent 55%),
    radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
@keyframes apcKenBurns {
  0%   { transform: scale(1.05); }
  100% { transform: scale(1.18); }
}
@media (prefers-reduced-motion: reduce) {
  .apc-hero-bg { animation: none; }
}

/* ═══════════════ BADGE PULSE ═══════════════ */
.apc-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 100px;
  background: var(--apc-green-soft);
  border: 1px solid rgba(16,185,129,0.4);
  font-size: 11px; font-weight: 700;
  color: var(--apc-green); letter-spacing: 1.5px;
  text-transform: uppercase; width: fit-content;
  margin-bottom: 24px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-family: 'DM Sans', sans-serif;
}
.apc-badge::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--apc-green); box-shadow: 0 0 12px var(--apc-green);
  animation: apcBlink 1.6s ease-in-out infinite;
}
.apc-badge.orange {
  background: var(--apc-orange-soft);
  border-color: rgba(245,158,11,0.4);
  color: var(--apc-orange);
}
.apc-badge.orange::before {
  background: var(--apc-orange);
  box-shadow: 0 0 12px var(--apc-orange);
}
@keyframes apcBlink { 50% { opacity: 0.4; } }

/* ═══════════════ TITRES SIGNATURE ═══════════════ */
.apc-h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(40px, 7vw, 92px);
  font-weight: 400; line-height: 0.95; letter-spacing: -2px;
  color: #fff; margin-bottom: 24px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.55);
}
.apc-h1 em {
  font-style: italic; color: var(--apc-orange);
  text-shadow: 0 0 30px rgba(245,158,11,0.5);
}
.apc-lead {
  font-size: clamp(15px, 1.6vw, 19px);
  color: rgba(255,255,255,0.86);
  max-width: 580px; margin-bottom: 36px; line-height: 1.55;
  text-shadow: 0 2px 14px rgba(0,0,0,0.5);
}
.apc-lead strong { color: #fff; font-weight: 700; }

/* ═══════════════ BOUTONS ═══════════════ */
.apc-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.apc-btn {
  padding: 15px 28px; border-radius: 12px; font-size: 15px;
  font-weight: 700; text-decoration: none;
  transition: all .25s; display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; cursor: pointer; border: none;
}
.apc-btn-primary {
  background: var(--apc-green); color: #fff;
  box-shadow: 0 8px 24px rgba(16,185,129,0.4);
}
.apc-btn-primary:hover {
  background: #0EA371; transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(16,185,129,0.55);
}
.apc-btn-orange {
  background: var(--apc-orange); color: #0D1117;
  box-shadow: 0 8px 24px rgba(245,158,11,0.45);
}
.apc-btn-orange:hover {
  background: #E59409; transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(245,158,11,0.6);
}
.apc-btn-ghost {
  border: 1px solid rgba(255,255,255,0.25); color: #fff;
  background: rgba(255,255,255,0.06); backdrop-filter: blur(12px);
}
.apc-btn-ghost:hover {
  background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.4);
}

/* ═══════════════ SECTIONS ═══════════════ */
.apc-section {
  padding: 80px 6vw;
  max-width: 1280px; margin: 0 auto;
  position: relative;
}
.apc-section.dark { background: linear-gradient(180deg, var(--apc-bg) 0%, var(--apc-bg-2) 100%); }
.apc-section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.apc-h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 400; line-height: 1.05; letter-spacing: -1px;
  color: #fff; margin-bottom: 16px;
}
.apc-h2 em { font-style: italic; color: var(--apc-orange); }
.apc-section-head p { color: var(--apc-txt-mute); font-size: 16px; }

/* ═══════════════ GLASS CARD ═══════════════ */
.apc-card {
  background: var(--apc-glass-bg);
  backdrop-filter: var(--apc-glass-blur); -webkit-backdrop-filter: var(--apc-glass-blur);
  border: 1px solid var(--apc-border);
  border-radius: 16px; padding: 24px;
  transition: all .3s ease;
}
.apc-card:hover {
  border-color: var(--apc-green);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(16,185,129,0.2);
}

/* ═══════════════ HUD COCKPIT ═══════════════ */
.apc-hud {
  position: fixed; top: 24px; right: 24px; z-index: 50;
  background: rgba(13,17,23,0.78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 12px; padding: 12px 16px;
  font-family: 'DM Sans', monospace; font-size: 11px;
  color: var(--apc-green); min-width: 220px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6), inset 0 1px 0 rgba(16,185,129,0.15);
  pointer-events: none;
}
.apc-hud-title {
  font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(16,185,129,0.6); margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.apc-hud-title::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--apc-green); box-shadow: 0 0 8px var(--apc-green);
  animation: apcBlink 1.5s ease-in-out infinite;
}
.apc-hud-row { display: flex; justify-content: space-between; padding: 3px 0; gap: 16px; }
.apc-hud-row .lbl { color: rgba(255,255,255,0.45); letter-spacing: 1.2px; text-transform: uppercase; font-size: 10px; }
.apc-hud-row .val { color: var(--apc-green); font-weight: 700; font-feature-settings: 'tnum'; }
.apc-hud-divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(16,185,129,0.4), transparent); margin: 8px 0; }

/* ═══════════════ TAG / CHIP ═══════════════ */
.apc-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 100px;
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.3);
  font-size: 10px; font-weight: 700;
  color: var(--apc-orange); letter-spacing: 1px;
  text-transform: uppercase;
}

/* ═══════════════ STAT CARD ═══════════════ */
.apc-stat {
  background: rgba(13,17,23,0.55); backdrop-filter: blur(16px);
  border: 1px solid var(--apc-border);
  border-radius: 16px; padding: 24px; text-align: left;
}
.apc-stat .num {
  font-family: 'DM Serif Display', serif;
  font-size: 36px; color: var(--apc-green); font-weight: 400; line-height: 1;
}
.apc-stat .lbl {
  font-size: 11px; color: var(--apc-txt-mute);
  text-transform: uppercase; letter-spacing: 1.5px;
  margin-top: 8px;
}

/* ═══════════════ MOBILE ═══════════════ */
@media (max-width: 768px) {
  .apc-hud { right: 12px; top: 12px; min-width: 160px; padding: 10px 12px; font-size: 10px; }
  .apc-hud-row { gap: 12px; }
  .apc-section { padding: 60px 20px; }
  .apc-hero { padding: 100px 24px 60px; min-height: 80vh; }
}
