/* =========================================================
   TEMPLE DU SAVOIR AFRICAIN — Shared stylesheet
   Palette : #103732 (vert profond), #FFD700 (or), #0B0B0B (noir)
   ========================================================= */

:root {
  --green: #103732;
  --green-deep: #0a2320;
  --green-soft: #1a4a44;
  --gold: #FFD700;
  --gold-muted: #d4af37;
  --ink: #0B0B0B;
  --bone: #f4efe4;
  --sand: #ebe3d0;
  --line: rgba(255, 215, 0, 0.18);
  --line-soft: rgba(244, 239, 228, 0.12);

  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --radius: 2px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--green);
  color: var(--bone);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }

::selection { background: var(--gold); color: var(--ink); }

/* --------- Typography --------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--gold);
}

p { text-wrap: pretty; }

.lead {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.4;
  font-weight: 300;
  font-style: italic;
  color: rgba(244, 239, 228, 0.86);
}

/* --------- Layout --------- */
.wrap {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
}

section {
  position: relative;
  padding: clamp(80px, 12vh, 160px) 0;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(48px, 8vh, 96px);
}
.section-head h2 {
  font-size: clamp(40px, 5.5vw, 82px);
}
@media (max-width: 820px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; }
}

/* --------- NAVBAR --------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 22px 0;
  transition: padding .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 14px 0;
  background: rgba(10, 35, 32, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.02em;
}
.brand-mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0;
  flex-shrink: 0;
}
.brand-name { line-height: 1; }
.brand-name small {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-top: 4px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-size: 13px;
  letter-spacing: 0.06em;
  position: relative;
  padding: 6px 0;
  color: rgba(244, 239, 228, 0.75);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px; width: 0;
  background: var(--gold);
  transition: width .3s var(--ease);
}
.nav-links a:hover { color: var(--bone); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--gold); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.nav-cta:hover { background: var(--gold); color: var(--ink); }

.burger {
  display: none;
  width: 44px; height: 44px;
  background: none; border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.burger span {
  position: absolute;
  left: 10px; right: 10px;
  height: 1.5px;
  background: var(--bone);
  transition: all .3s var(--ease);
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
.burger.open span:nth-child(1) { top: 22px; transform: rotate(45deg); background: var(--gold); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { top: 22px; transform: rotate(-45deg); background: var(--gold); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--green-deep);
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  transform: translateY(-100%);
  transition: transform .5s var(--ease);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 44px;
  color: var(--bone);
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-menu a.active { color: var(--gold); }
.mobile-menu .mobile-meta {
  margin-top: 48px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
}

@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: block; }
}

/* --------- BUTTONS --------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 32px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
  font-family: var(--font-sans);
}
.btn-gold {
  background: var(--gold);
  color: var(--ink);
}
.btn-gold:hover { background: var(--bone); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--bone);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn .arrow { transition: transform .3s var(--ease); display: inline-block; }
.btn:hover .arrow { transform: translateX(6px); }

/* --------- FOOTER --------- */
.footer {
  background: var(--green-deep);
  border-top: 1px solid var(--line-soft);
  padding: 100px 0 32px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--line-soft);
}
.footer h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  font-weight: 500;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer a { font-size: 14px; color: rgba(244, 239, 228, 0.72); }
.footer a:hover { color: var(--gold); }
.footer p { font-size: 14px; color: rgba(244, 239, 228, 0.6); line-height: 1.7; }
.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 32px;
  margin-bottom: 16px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 239, 228, 0.4);
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1/-1; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

/* --------- WHATSAPP FLOAT --------- */
.whatsapp {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: grid; place-items: center;
  z-index: 45;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3), 0 0 0 0 rgba(37, 211, 102, 0.5);
  animation: pulseWa 2.4s infinite;
  transition: transform .3s var(--ease);
}
.whatsapp:hover { transform: scale(1.08); }
.whatsapp svg { width: 28px; height: 28px; fill: white; }
@keyframes pulseWa {
  0% { box-shadow: 0 10px 30px rgba(0,0,0,0.3), 0 0 0 0 rgba(37, 211, 102, 0.45); }
  70% { box-shadow: 0 10px 30px rgba(0,0,0,0.3), 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 10px 30px rgba(0,0,0,0.3), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --------- ORNAMENTS / PATTERNS --------- */
.adinkra-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image:
    radial-gradient(circle at 12% 20%, var(--gold) 1px, transparent 2px),
    radial-gradient(circle at 80% 65%, var(--gold) 1.5px, transparent 2.5px),
    radial-gradient(circle at 50% 90%, var(--gold) 1px, transparent 2px);
  background-size: 120px 120px, 180px 180px, 140px 140px;
}

.bogolan-border {
  background-image: repeating-linear-gradient(
    45deg,
    transparent 0, transparent 8px,
    rgba(255, 215, 0, 0.18) 8px, rgba(255, 215, 0, 0.18) 10px
  );
  height: 4px;
  width: 100%;
}

.number {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.15em;
}

/* --------- REVEAL --------- */
.reveal { opacity: 0; transform: translateY(24px); }

/* --------- GLOBAL PAGE HEADER --------- */
.page-hero {
  padding: 200px 0 120px;
  position: relative;
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 30%, rgba(255, 215, 0, 0.08), transparent 55%),
    radial-gradient(ellipse at 10% 80%, rgba(255, 215, 0, 0.05), transparent 50%);
  pointer-events: none;
}
.page-hero .wrap { position: relative; }
.page-hero h1 {
  font-size: clamp(56px, 9vw, 140px);
  line-height: 0.95;
  margin: 28px 0 32px;
}
.page-hero .lead { max-width: 640px; }

.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 239, 228, 0.5);
  display: flex;
  gap: 12px;
  align-items: center;
}
.breadcrumbs .sep { color: var(--gold); }
.breadcrumbs .here { color: var(--gold); }

/* --------- CARDS --------- */
.card {
  position: relative;
  background: rgba(10, 35, 32, 0.55);
  border: 1px solid var(--line-soft);
  padding: 40px 36px 44px;
  transition: border-color .4s var(--ease), transform .4s var(--ease), background .4s var(--ease);
}
.card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  background: rgba(10, 35, 32, 0.9);
}
.card .number { margin-bottom: 28px; }
.card h3 {
  font-size: clamp(24px, 2.4vw, 32px);
  margin-bottom: 16px;
}
.card p {
  font-size: 15px;
  color: rgba(244, 239, 228, 0.75);
  margin: 0;
}

/* Divider line */
.rule {
  height: 1px;
  background: var(--line-soft);
  width: 100%;
  margin: 0;
}

/* small helpers */
.mt-s { margin-top: 16px; }
.mt-m { margin-top: 32px; }
.mt-l { margin-top: 64px; }
.center { text-align: center; }

/* Responsive grid helpers */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
