/* ============================================
   Summit Mauritania 2026 — V3 Mauritanie Bold
   Palette: vert MR + or, sur ivoire
   ============================================ */

:root {
  --bg:        #FAF7F0;
  --bg-warm:   #F2EBDC;
  --bg-deep:   #ECE3D0;
  --ink:       #0F1A14;
  --ink-2:     #2A3530;
  --ink-soft:  #4A5A50;
  --ink-dim:   #7B8780;
  --green:     #0A6B3A;
  --green-deep:#054B27;
  --green-dark:#03301A;
  --gold:      #D4A437;
  --gold-soft: #E8C36F;
  --gold-pale: #F4E0A8;
  --crimson:   #B23A2E;
  --line:      rgba(15, 26, 20, 0.1);
  --line-soft: rgba(15, 26, 20, 0.06);
  --line-strong: rgba(15, 26, 20, 0.18);
  --shadow-card: 0 1px 2px rgba(15,26,20,0.04), 0 8px 24px rgba(15,26,20,0.06);
  --shadow-lift: 0 20px 50px -20px rgba(10,107,58,0.25);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Fraunces', 'DM Serif Display', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --font-arabic: 'Noto Naskh Arabic', serif;

  --max-width: 1280px;
  --container-pad: 48px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

/* ─── TYPE ─── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--gold);
}
.eyebrow.on-dark { color: var(--gold); }
.eyebrow.on-dark::before { background: var(--gold); }
.eyebrow.no-rule::before { display: none; }

.section-title {
  font-size: clamp(38px, 4.4vw, 64px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
  margin-top: 16px;
  margin-bottom: 24px;
  max-width: 16ch;
}
.section-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.035em;
}
.section-title.light { color: var(--bg); }

.section-lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 56ch;
  margin-bottom: 56px;
}
.section-lede.light { color: rgba(250, 247, 240, 0.7); }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { background: var(--green-deep); color: var(--gold); }

.btn-gold {
  background: var(--gold);
  color: var(--ink);
}
.btn-gold:hover { background: var(--gold-soft); }

.btn-green {
  background: var(--green);
  color: var(--gold);
}
.btn-green:hover { background: var(--green-deep); }

.btn-ghost {
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

.btn-link {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  padding: 10px 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
}
.btn-link:hover { transform: none; color: var(--green); }

/* ─── REVEAL ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(.16,1,.3,1), transform 0.9s cubic-bezier(.16,1,.3,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }
.reveal-delay-6 { transition-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ─── PLACEHOLDER IMAGE ─── */
.ph {
  position: relative;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  overflow: hidden;
  border-radius: 12px;
}
.ph::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(10, 107, 58, 0.05) 0,
    rgba(10, 107, 58, 0.05) 1px,
    transparent 1px,
    transparent 14px
  );
}
.ph-tag {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(250, 247, 240, 0.85);
  padding: 5px 9px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}
.ph-suggest {
  position: absolute; bottom: 14px; left: 14px; right: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-dim);
  letter-spacing: 0.05em;
  line-height: 1.5;
}
.ph-suggest strong { color: var(--green); font-weight: 600; }

/* On dark backgrounds */
.ph.dark { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.1); }
.ph.dark::before { background-image: repeating-linear-gradient(
    135deg,
    rgba(212, 164, 55, 0.08) 0,
    rgba(212, 164, 55, 0.08) 1px,
    transparent 1px,
    transparent 14px
  ); }
.ph.dark .ph-tag { background: rgba(15,26,20,0.7); color: rgba(255,255,255,0.6); }
.ph.dark .ph-suggest { color: rgba(255,255,255,0.5); }
.ph.dark .ph-suggest strong { color: var(--gold); }

/* ─── FLAG STRIP component ─── */
.flag-strip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.flag-strip > span {
  display: block;
  height: 16px;
}
.flag-strip .fc { width: 8px; background: var(--crimson); }
.flag-strip .fg { width: 38px; background: var(--green); }
.flag-strip .fy { width: 8px; background: var(--gold); }
