/* =========================
   KUREL FACTS - STYLE.CSS
   ========================= */

@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Inter:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root {
  --green-dark: #0b3d2e;
  --green-main: #0f6b4f;
  --green-soft: #e8f5ef;
  --green-light: #b7e4d2;

  --gold: #d6a84f;
  --gold-soft: #fff7df;

  --bg: #f8faf8;
  --white: #ffffff;
  --text: #1f2d27;
  --muted: #6b7c73;
  --border: #dce7e1;

  --shadow: 0 14px 35px rgba(11, 61, 46, 0.08);
  --radius: 22px;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", Arial, sans-serif;
  line-height: 1.6;
}

/* LAYOUT */
.container {
  width: min(1180px, 92%);
  margin: auto;
}

/* HEADER */
.header {
  padding: 70px 0 55px;
  background:
    radial-gradient(circle at top right, rgba(214, 168, 79, 0.22), transparent 28%),
    linear-gradient(135deg, var(--green-dark), var(--green-main));
  color: var(--white);
  border-bottom: 5px solid var(--gold);
}

.header h1 {
  font-family: "Amiri", serif;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.header p {
  max-width: 760px;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.82);
}

/* KPI */
.kpi-section {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: -35px;
  margin-bottom: 42px;
}

.kpi {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  min-height: 110px;
  box-shadow: var(--shadow);
}

.kpi .value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--green-main);
  line-height: 1.1;
}

.kpi .label {
  margin-top: 8px;
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

/* FILTERS */
.filters {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 34px;
  box-shadow: var(--shadow);
}

.filters select,
.filters button {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  font-family: "Inter", sans-serif;
  font-size: 0.92rem;
  background: var(--bg);
  color: var(--text);
  outline: none;
}

.filters select:focus {
  border-color: var(--green-main);
  box-shadow: 0 0 0 3px rgba(15, 107, 79, 0.12);
}

.filters button {
  background: var(--green-main);
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.filters button:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

/* CHARTS */
.charts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-bottom: 50px;
}

.chart-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  min-height: 380px;
}

.chart-box h2 {
  font-family: "Amiri", serif;
  color: var(--green-dark);
  font-size: 1.75rem;
  margin-bottom: 18px;
  line-height: 1.1;
}

.chart-box canvas {
  width: 100% !important;
  max-height: 310px;
}

/* TABLE */
.table-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  margin-bottom: 60px;
  overflow-x: auto;
}

.table-section h2 {
  font-family: "Amiri", serif;
  color: var(--green-dark);
  font-size: 2rem;
  margin-bottom: 18px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

thead {
  background: var(--green-dark);
  color: var(--white);
}

th {
  text-align: left;
  padding: 14px 12px;
  font-size: 0.9rem;
  font-weight: 700;
}

td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

tbody tr:hover {
  background: var(--green-soft);
}

td:last-child {
  font-weight: 700;
}

td:last-child:not(:empty) {
  color: var(--green-main);
}

/* SCROLLBAR */
::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--green-soft);
}

::-webkit-scrollbar-thumb {
  background: var(--green-main);
  border-radius: 999px;
}

/* RESPONSIVE */
@media (max-width: 1000px) {
  .kpi-section {
    grid-template-columns: repeat(2, 1fr);
  }

  .filters {
    grid-template-columns: repeat(2, 1fr);
  }

  .charts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .header {
    padding: 50px 0 45px;
  }

  .kpi-section,
  .filters {
    grid-template-columns: 1fr;
  }

  .chart-box {
    padding: 18px;
    min-height: 340px;
  }

  .chart-box h2,
  .table-section h2 {
    font-size: 1.55rem;
  }
}

/* UX premium */
.kpi,
.chart-box,
.table-section,
.filters {
  animation: fadeUp 0.7s ease both;
}

.kpi:nth-child(2) { animation-delay: 0.05s; }
.kpi:nth-child(3) { animation-delay: 0.1s; }
.kpi:nth-child(4) { animation-delay: 0.15s; }
.kpi:nth-child(5) { animation-delay: 0.2s; }

.empty-state {
  display: none;
  background: var(--gold-soft);
  border: 1px solid rgba(214,168,79,0.45);
  color: #6b4d0c;
  padding: 18px 22px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-weight: 700;
}

.chart-box {
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chart-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(11, 61, 46, 0.12);
}

.filters select,
.filters button {
  transition: 0.2s ease;
}

.filters select:hover {
  background: #fff;
  border-color: var(--green-light);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.insights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.insight-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.insight-card h3 {
  font-family: "Amiri", serif;
  color: var(--green-dark);
  margin-bottom: 10px;
}

.insight-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .insights {
    grid-template-columns: 1fr;
  }
}

.insights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.insight-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.insight-card h3 {
  font-family: "Amiri", serif;
  color: var(--green-dark);
  margin-bottom: 10px;
}

.insight-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .insights {
    grid-template-columns: 1fr;
  }
}

.map-box {
  grid-column: 1 / -1;
}

#senegal-map {
  width: 100%;
  height: 480px;
  border-radius: 18px;
  overflow: hidden;
}

.map-box {
  grid-column: 1 / -1;
}

.chart-subtitle {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: -10px;
  margin-bottom: 16px;
}

#senegal-map {
  width: 100%;
  height: 460px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.filter-badge {
  background: var(--green-soft);
  border: 1px solid var(--green-main);
  color: var(--green-dark);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: default;
}

.filter-badge span {
  font-weight: 600;
}

.filter-badge button {
  background: none;
  border: none;
  color: var(--green-dark);
  font-size: 14px;
  cursor: pointer;
}

#export-pdf {
  background: var(--gold);
  color: var(--green-dark);
}

#export-pdf:hover {
  background: #e6bd63;
}

@media print {
  .filters,
  .active-filters,
  #export-pdf {
    display: none !important;
  }

  body {
    background: white;
  }

  .header {
    padding: 30px 0;
  }

  .kpi,
  .insight-card,
  .chart-box {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .charts {
    display: block;
  }

  .chart-box {
    margin-bottom: 22px;
    box-shadow: none;
  }

  #senegal-map {
    height: 420px;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(248, 250, 248, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-wrapper {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: "Amiri", serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--green-dark);
  text-decoration: none;
}

.logo span {
  color: var(--gold);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-menu a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.nav-menu a:hover {
  color: var(--green-main);
}

.menu-toggle {
  display: none;
  border: none;
  background: var(--green-main);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 1.4rem;
  cursor: pointer;
}

@media (max-width: 760px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 72px;
    left: 4%;
    right: 4%;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu a {
    padding: 12px;
    border-radius: 12px;
  }

  .nav-menu a:hover {
    background: var(--green-soft);
  }
}

@media (max-width: 1000px) {
  .filters {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .filters {
    grid-template-columns: 1fr;
  }

  .kpi-section {
    grid-template-columns: 1fr;
  }

  .charts {
    grid-template-columns: 1fr;
  }
}

main {
  padding-top: 80px;
}

.hero {
  padding: 56px 0 34px;
}



.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
  font-weight: 700;
}

.hero h1 {
  font-family: "Amiri", serif;
  font-size: clamp(2.3rem, 6vw, 4.6rem);
  line-height: 1;
  max-width: 880px;
  margin-bottom: 16px;
}

.hero p {
  max-width: 760px;
  color: rgba(255,255,255,0.82);
  font-size: 1.05rem;
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-btn,
.hero-link {
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
}

.hero-btn {
  background: var(--gold);
  color: var(--green-dark);
}

.hero-link {
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--white);
}

.site-footer {
  background: var(--green-dark);
  color: var(--white);
  padding: 48px 0 24px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr;
  gap: 28px;
}

.site-footer h2,
.site-footer h3 {
  font-family: "Amiri", serif;
  margin-bottom: 10px;
}

.site-footer p,
.site-footer a {
  color: rgba(255,255,255,0.76);
  font-size: 0.95rem;
}

.site-footer a {
  display: block;
  text-decoration: none;
  margin-bottom: 8px;
}

.site-footer a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  margin-top: 30px;
  padding-top: 18px;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .hero {
    padding-top: 28px;
  }

  .hero-content {
    padding: 30px 24px;
    border-radius: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}



.hero-image img {
  width: 100%;
  border-radius: 20px;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-image {
    order: -1;
  }
}
.hero {
  padding: 56px 0 34px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: center;
  background:
    radial-gradient(circle at top right, rgba(214, 168, 79, 0.22), transparent 30%),
    linear-gradient(135deg, var(--green-dark), var(--green-main));
  color: var(--white);
  border-radius: 30px;
  padding: 42px;
  box-shadow: var(--shadow);
}

.hero-image img {
  width: 100%;
  border-radius: 22px;
  display: block;
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .hero-image {
    order: -1;
  }
}

.section-heading {
  margin: 34px auto 18px;
}

.section-heading span {
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8rem;
}

.section-heading h2 {
  font-family: "Amiri", serif;
  font-size: 2.2rem;
  color: var(--green-dark);
  line-height: 1.1;
}

.section-heading p {
  color: var(--muted);
  max-width: 720px;
}

.kpi {
  position: relative;
  overflow: hidden;
}

.kpi::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 90px;
  height: 90px;
  background: rgba(15,107,79,0.08);
  border-radius: 50%;
}


.chart-box {
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfdfb 100%);
}

.chart-box h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  background: var(--gold);
  border-radius: 999px;
  margin-top: 8px;
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 2.4rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-btn,
  .hero-link {
    width: 100%;
    text-align: center;
  }

  .kpi {
    min-height: 130px;
  }
}

body {
  background:
    radial-gradient(circle at top left, rgba(214,168,79,0.08), transparent 28%),
    linear-gradient(180deg, #f8faf8 0%, #eef5f0 100%);
}

.chart-help {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: -8px;
  margin-bottom: 18px;
  max-width: 620px;
}

.export-section {
  margin: 60px auto;
}

.export-box {
  text-align: center;
  background:
    radial-gradient(circle at top, rgba(214,168,79,0.2), transparent 40%),
    linear-gradient(135deg, var(--green-dark), var(--green-main));
  color: white;
  padding: 50px 30px;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.export-box h2 {
  font-family: "Amiri", serif;
  font-size: 2rem;
  margin-bottom: 12px;
}

.export-box p {
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto 28px;
}

.export-btn-main {
  background: var(--gold);
  color: var(--green-dark);
  border: none;
  padding: 16px 28px;
  font-weight: 800;
  border-radius: 999px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.export-btn-main:hover {
  background: #e6bd63;
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .export-box {
    padding: 34px 20px;
  }

  .export-btn-main {
    width: 100%;
  }
}

html {
  scroll-behavior: smooth;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.kpi,
.insight-card,
.chart-box,
.export-box {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.kpi:hover,
.insight-card:hover,
.chart-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(11, 61, 46, 0.12);
}

.chart-box canvas {
  height: 300px !important;
}

#senegal-map {
  min-height: 460px;
}

.reveal {
  will-change: transform, opacity;
}



.reveal-left {
  opacity: 0;
  transform: translateX(-60px) scale(0.98);
  transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* Micro-interactions premium */
a,
button,
select {
  transition: all 0.22s ease;
}

.hero-btn,
.export-btn-main,
#reset-filters,
#export-pdf {
  position: relative;
  overflow: hidden;
}

.hero-btn::after,
.export-btn-main::after,
#reset-filters::after,
#export-pdf::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.35),
    transparent
  );
  transform: skewX(-20deg);
}

.hero-btn:hover::after,
.export-btn-main:hover::after,
#reset-filters:hover::after,
#export-pdf:hover::after {
  animation: shine 0.75s ease;
}

@keyframes shine {
  from { left: -80%; }
  to { left: 130%; }
}

.kpi .value {
  transition: transform 0.25s ease;
}

.kpi:hover .value {
  transform: scale(1.06);
}

.chart-box h2 i {
  color: var(--gold);
  margin-right: 8px;
}

.insight-card h3::before {
  content: "◆";
  color: var(--gold);
  margin-right: 8px;
  font-size: 0.75rem;
}

.filter-badge {
  animation: badgePop 0.25s ease both;
}

@keyframes badgePop {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(4px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.chart-source {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
}


.hero-content {
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;

  top: -120px;
  right: -120px;

  width: 320px;
  height: 320px;

  background:
    radial-gradient(
      circle,
      rgba(214,168,79,0.28),
      transparent 70%
    );

  pointer-events: none;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;

  margin-top: 24px;
}

.hero-trust span {
  padding: 10px 14px;

  border-radius: 999px;

  background: rgba(255,255,255,0.08);

  border: 1px solid rgba(255,255,255,0.14);

  font-size: 0.85rem;
  font-weight: 700;

  color: rgba(255,255,255,0.88);

  backdrop-filter: blur(8px);
}
