/* ─── RESET ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Couleurs inspirées du Sénégal */
  --vert:     #1a6b3a;   /* vert drapeau */
  --vert-fonce:#0f4424;
  --jaune:    #e8a020;   /* or/soleil */
  --rouge:    #c0392b;   /* rouge drapeau */
  --nuit:     #0d1f14;
  --sable:    #f5ede0;
  --creme:    #fdf8f2;
  --blanc:    #ffffff;
  --gris:     #6b6560;
  --wa:       #25D366;
  --wa-dark:  #1da851;

  --ff-title: 'Playfair Display', Georgia, serif;
  --ff-body:  'DM Sans', sans-serif;
  --ease:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  background: var(--creme);
  color: var(--nuit);
  overflow-x: hidden;
  line-height: 1.7;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
button { cursor: pointer; border: none; outline: none; font-family: var(--ff-body); }
a { text-decoration: none; color: inherit; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 2rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--vert);
  margin-bottom: 0.8rem;
}
.eyebrow.light { color: var(--jaune); }

/* ─── NAVBAR ───────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  background: rgba(13, 31, 20, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--vert);
  transition: background 0.4s;
}

.nav-logo {
  font-family: var(--ff-title);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--blanc);
  letter-spacing: -0.01em;
}
.nav-logo span {
  color: var(--jaune);
  display: block;
  font-size: 0.7rem;
  font-family: var(--ff-body);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--jaune);
  line-height: 1;
  margin-top: -2px;
}

.nav-wa {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--wa);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.65rem 1.4rem;
  border-radius: 2px;
  transition: background 0.3s, transform 0.3s;
}
.nav-wa:hover { background: var(--wa-dark); transform: translateY(-1px); }

/* ─── SENEGAL FLAG STRIPE ──────────────────────────── */
.flag-stripe {
  height: 4px;
  background: linear-gradient(to right, var(--vert) 33.33%, var(--jaune) 33.33%, var(--jaune) 66.66%, var(--rouge) 66.66%);
}

/* ─── HERO ─────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; }
.hero-bg img { object-position: center 30%; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    150deg,
    rgba(13,31,20,0.88) 0%,
    rgba(13,31,20,0.55) 55%,
    rgba(26,107,58,0.35) 100%
  );
}

/* Kente-style pattern */
.hero-kente {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(232,160,32,0.05) 0, rgba(232,160,32,0.05) 1px, transparent 1px, transparent 50px),
    repeating-linear-gradient(90deg, rgba(232,160,32,0.05) 0, rgba(232,160,32,0.05) 1px, transparent 1px, transparent 50px),
    repeating-linear-gradient(45deg, rgba(26,107,58,0.04) 0, rgba(26,107,58,0.04) 1px, transparent 1px, transparent 35px);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--blanc);
  padding: 6rem 1.5rem 2rem;
  max-width: 880px;
  animation: heroIn 1.2s var(--ease) both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(26,107,58,0.25);
  border: 1px solid rgba(26,107,58,0.5);
  color: #6ee09a;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 2rem;
}

.dot {
  width: 6px; height: 6px;
  background: #6ee09a;
  border-radius: 50%;
  animation: blink 1.8s ease-in-out infinite;
}

.hero-content h1 {
  font-family: var(--ff-title);
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.hero-content h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--jaune);
}

.hero-content p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2.5rem;
  font-weight: 300;
}
.hero-content p strong { color: var(--jaune); font-weight: 600; }

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-hero-wa {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--wa);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 1rem 2rem;
  border-radius: 2px;
  transition: all 0.3s var(--ease);
  box-shadow: 0 8px 30px rgba(37,211,102,0.3);
}
.btn-hero-wa:hover { background: var(--wa-dark); transform: translateY(-3px); }

.btn-hero-ghost {
  display: flex;
  align-items: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  padding: 1rem 1.5rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 2px;
  transition: all 0.3s;
}
.btn-hero-ghost:hover { color: #fff; border-color: rgba(255,255,255,0.5); }

.hero-stats {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 2rem 2rem 4rem;
  color: var(--blanc);
  margin-top: auto;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--ff-title);
  font-size: 2rem;
  font-weight: 700;
  color: var(--jaune);
  line-height: 1;
}
.stat-label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.stat-sep { width: 1px; height: 36px; background: rgba(255,255,255,0.12); }

/* ─── PROJET ───────────────────────────────────────── */
.projet { padding: 8rem 0; background: var(--creme); }

.projet-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 6rem;
  align-items: center;
}

.projet-img-wrap { position: relative; aspect-ratio: 4/5; }
.projet-img-wrap img { position: relative; z-index: 1; }
.projet-img-accent {
  position: absolute;
  top: -14px; left: -14px;
  width: 55%; height: 55%;
  border: 3px solid var(--jaune);
  z-index: 0;
}
.projet-tag {
  position: absolute;
  bottom: -10px; right: -10px;
  z-index: 2;
  background: var(--vert);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55rem 1.1rem;
}

.projet-text h2 {
  font-family: var(--ff-title);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.projet-text p { color: var(--gris); margin-bottom: 1rem; font-weight: 300; }
.projet-text strong { color: var(--nuit); font-weight: 600; }

.projet-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--vert-fonce);
  color: var(--blanc);
  padding: 1.2rem 1.5rem;
  cursor: pointer;
  margin-top: 2rem;
  transition: background 0.3s;
  gap: 1rem;
  border-left: 4px solid var(--jaune);
}
.projet-cta:hover { background: var(--vert); }
.projet-cta strong { display: block; font-size: 0.9rem; color: var(--jaune); }
.projet-cta span { font-size: 0.8rem; color: rgba(255,255,255,0.65); }
.cta-arrow { font-size: 1.4rem; flex-shrink: 0; }

/* ─── MARCHES ──────────────────────────────────────── */
.marches {
  padding: 7rem 0;
  background: var(--sable);
}
.marches h2 {
  font-family: var(--ff-title);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 3.5rem;
  line-height: 1.2;
}

.marches-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.marche-card {
  background: var(--blanc);
  padding: 2rem 1.8rem;
  border-top: 4px solid var(--vert);
  transition: transform 0.3s, box-shadow 0.3s;
}
.marche-card:hover { transform: translateY(-4px); box-shadow: 0 12px 35px rgba(0,0,0,0.08); }
.marche-card:nth-child(2) { border-top-color: var(--jaune); }
.marche-card:nth-child(3) { border-top-color: var(--rouge); }
.marche-card:nth-child(4) { border-top-color: var(--vert); }
.marche-card:nth-child(5) { border-top-color: var(--jaune); }
.marche-card:nth-child(6) { border-top-color: var(--gris); }

.marche-flag { font-size: 2rem; margin-bottom: 0.75rem; }
.marche-card h3 {
  font-family: var(--ff-title);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.marche-card p { font-size: 0.88rem; color: var(--gris); font-weight: 300; line-height: 1.6; }

/* ─── CATEGORIES ───────────────────────────────────── */
.categories { padding: 8rem 0; background: var(--nuit); }

.categories-header { text-align: center; margin-bottom: 3.5rem; }
.categories-header h2 {
  font-family: var(--ff-title);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--blanc);
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 230px 230px;
  gap: 3px;
  padding: 0 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.cat-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.97);
  animation: catIn 0.6s var(--ease) forwards;
  animation-delay: var(--delay, 0s);
  animation-play-state: paused;
}
.cat-card img { transition: transform 0.6s var(--ease); }
.cat-card:hover img { transform: scale(1.08); }

.cat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,31,20,0.9) 0%, rgba(13,31,20,0.05) 65%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 1.2rem;
  transition: background 0.4s;
}
.cat-card:hover .cat-overlay {
  background: linear-gradient(to top, rgba(26,107,58,0.85) 0%, rgba(13,31,20,0.05) 70%);
}
.cat-icon { font-size: 1.6rem; margin-bottom: 0.35rem; }
.cat-overlay h3 {
  font-family: var(--ff-title);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blanc);
  line-height: 1.25;
}

.cat-more {
  text-align: center;
  margin-top: 2.5rem;
  color: rgba(255,255,255,0.45);
  font-size: 0.9rem;
  line-height: 1.7;
  padding: 0 2rem;
}
.cat-more strong { color: var(--jaune); }

/* ─── FEATURES ─────────────────────────────────────── */
.features { padding: 8rem 0; background: var(--sable); }

.features-head { margin-bottom: 5rem; }
.features-head h2 {
  font-family: var(--ff-title);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 700;
  max-width: 460px;
  line-height: 1.2;
}

.feat-list { display: flex; flex-direction: column; gap: 6rem; }

.feat-item {
  display: grid;
  grid-template-columns: 70px 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.feat-item.rev { direction: rtl; }
.feat-item.rev > * { direction: ltr; }

.feat-num {
  font-family: var(--ff-title);
  font-size: 5rem;
  font-weight: 900;
  color: var(--vert);
  opacity: 0.15;
  line-height: 1;
}

.feat-body h3 {
  font-family: var(--ff-title);
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.feat-body p { color: var(--gris); font-weight: 300; line-height: 1.8; }
.feat-body strong { color: var(--nuit); font-weight: 600; }

.feat-visual { aspect-ratio: 4/3; overflow: hidden; }
.feat-visual img { transition: transform 0.7s var(--ease); }
.feat-item:hover .feat-visual img { transform: scale(1.04); }

/* ─── QUOTE BANNER ─────────────────────────────────── */
.quote-banner {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}
.qb-bg { position: absolute; inset: 0; object-position: center 30%; }
.qb-overlay { position: absolute; inset: 0; background: rgba(13,31,20,0.78); }
.qb-pattern {
  position: absolute; inset: 0; z-index: 1;
  background-image:
    repeating-linear-gradient(90deg, rgba(232,160,32,0.07) 0px, rgba(232,160,32,0.07) 1px, transparent 1px, transparent 55px),
    repeating-linear-gradient(0deg, rgba(232,160,32,0.07) 0px, rgba(232,160,32,0.07) 1px, transparent 1px, transparent 55px);
}
.qb-content {
  position: relative; z-index: 2;
  color: var(--blanc); max-width: 820px; padding: 4rem 2rem;
}
.qb-quote {
  font-family: var(--ff-title);
  font-size: 7rem; line-height: 0.5;
  color: var(--jaune); opacity: 0.4;
  display: block; margin-bottom: 1rem;
}
.qb-content h2 {
  font-family: var(--ff-title);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 400; font-style: italic;
  line-height: 1.4; margin-bottom: 1.5rem;
}
.qb-content p {
  color: var(--jaune); font-size: 0.78rem;
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 2.5rem;
}
.btn-quote-wa {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--wa); color: #fff;
  font-size: 0.88rem; font-weight: 500;
  padding: 0.95rem 2rem; border-radius: 2px; transition: all 0.3s;
}
.btn-quote-wa:hover { background: var(--wa-dark); transform: translateY(-2px); }

/* ─── HOW ──────────────────────────────────────────── */
.how { padding: 8rem 0; background: var(--creme); }
.how h2 {
  font-family: var(--ff-title);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 700; margin-bottom: 4rem;
}
.how-steps { display: flex; align-items: flex-start; gap: 1rem; }

.how-step {
  flex: 1; padding: 2rem 1.8rem;
  background: var(--blanc);
  border-top: 4px solid var(--vert);
}
.how-icon { font-size: 2.4rem; margin-bottom: 1rem; }
.how-step h3 {
  font-family: var(--ff-title);
  font-size: 1.2rem; font-weight: 700; margin-bottom: 0.6rem;
}
.how-step p { font-size: 0.9rem; color: var(--gris); font-weight: 300; }
.how-arrow { font-size: 1.4rem; color: var(--vert); opacity: 0.4; padding-top: 3.2rem; flex-shrink: 0; }

/* ─── CTA FINAL ────────────────────────────────────── */
.cta-final { background: var(--nuit); }
.cta-final-inner { display: grid; grid-template-columns: 1fr 1fr; min-height: 520px; }

.cta-final-text {
  padding: 6rem 4rem 6rem 5rem;
  color: var(--blanc);
  display: flex; flex-direction: column; justify-content: center;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.cta-final-text h2 {
  font-family: var(--ff-title);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700; line-height: 1.2; margin-bottom: 1.5rem;
}
.cta-final-text p { color: rgba(255,255,255,0.6); font-weight: 300; margin-bottom: 2rem; }
.cta-final-text strong { color: var(--jaune); font-weight: 600; }

.cta-checks { display: flex; flex-direction: column; gap: 0.5rem; }
.cta-checks span { font-size: 0.88rem; color: rgba(255,255,255,0.5); }

.cta-final-wa {
  background: linear-gradient(135deg, #0a1c10, #162d1e);
  display: flex; align-items: center; justify-content: center;
  padding: 4rem 3rem;
}
.wa-card {
  background: var(--blanc); border-radius: 12px;
  padding: 1.5rem; width: 100%; max-width: 340px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.4);
}
.wa-card-top {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.5rem; padding-bottom: 1rem;
  border-bottom: 1px solid #f0f0f0;
}
.wa-logo {
  width: 50px; height: 50px; background: var(--wa);
  border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.wa-card-title { font-family: var(--ff-title); font-weight: 700; font-size: 1.05rem; color: var(--nuit); }
.wa-card-sub { font-size: 0.75rem; color: var(--gris); }
.wa-bubble {
  background: #e7f8ee; color: #1a1a1a;
  border-radius: 16px 16px 16px 4px;
  padding: 0.85rem 1rem; font-size: 0.9rem; line-height: 1.5; margin-bottom: 1.5rem;
}
.btn-final-wa {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  background: var(--wa); color: #fff;
  font-size: 0.82rem; font-weight: 500;
  padding: 0.9rem; border-radius: 6px; transition: all 0.3s;
}
.btn-final-wa:hover { background: var(--wa-dark); }

/* ─── FOOTER ───────────────────────────────────────── */
.footer { background: #060d08; color: rgba(255,255,255,0.4); padding: 4rem 0 2rem; }
.footer::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(to right, var(--vert) 33.33%, var(--jaune) 33.33%, var(--jaune) 66.66%, var(--rouge) 66.66%);
  margin-bottom: 4rem;
}

.footer-inner {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 3rem; margin-bottom: 3rem; flex-wrap: wrap;
}
.footer-logo {
  font-family: var(--ff-title); font-size: 1.8rem;
  font-weight: 900; color: var(--blanc); margin-bottom: 0.5rem;
}
.footer-logo span { color: var(--jaune); }
.footer-brand p { font-size: 0.88rem; max-width: 360px; line-height: 1.7; }
.footer-note { margin-top: 0.5rem; font-size: 0.76rem; color: rgba(255,255,255,0.22); }

.footer-wa {
  display: flex; align-items: center; gap: 0.5rem;
  background: rgba(37,211,102,0.1); border: 1px solid rgba(37,211,102,0.3);
  color: var(--wa); font-size: 0.82rem; font-weight: 500;
  padding: 0.75rem 1.4rem; border-radius: 2px; transition: all 0.3s; white-space: nowrap;
}
.footer-wa:hover { background: var(--wa); color: #fff; }

.footer-copy {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem; font-size: 0.74rem; text-align: center;
}

/* ─── FLOATING WA ──────────────────────────────────── */
.float-wa {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 300;
  width: 60px; height: 60px; background: var(--wa); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 28px rgba(37,211,102,0.45); transition: all 0.3s;
  animation: floatIn 1s 2s both;
}
.float-wa:hover { transform: scale(1.1); }
.float-wa::before {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid rgba(37,211,102,0.4);
  animation: ripple 2.5s ease-in-out infinite;
}

/* ─── SCROLL REVEAL ────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── KEYFRAMES ────────────────────────────────────── */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes catIn {
  to { opacity: 1; transform: scale(1); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}
@keyframes ripple {
  0%   { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.5); opacity: 0; }
}
@keyframes floatIn {
  from { opacity: 0; transform: scale(0.5) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ─── TABLET ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .projet-inner { grid-template-columns: 1fr; gap: 3rem; }
  .projet-img-wrap { aspect-ratio: 16/9; max-width: 520px; }
  .marches-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-item { grid-template-columns: 60px 1fr; }
  .feat-visual { display: none; }
  .feat-item.rev { direction: ltr; }
  .cta-final-inner { grid-template-columns: 1fr; }
  .cta-final-text { padding: 4rem 3rem; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
}

/* ─── MOBILE ───────────────────────────────────────── */
@media (max-width: 768px) {
  .navbar { padding: 0.9rem 1.2rem; }
  .hero-content h1 { font-size: 2.4rem; }
  .hero-stats { gap: 1.5rem; padding-bottom: 3rem; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(4, 180px); padding: 0 1rem; }
  .how-steps { flex-direction: column; }
  .how-arrow { display: none; }
  .feat-item { grid-template-columns: 1fr; gap: 1.5rem; }
  .marches-grid { grid-template-columns: 1fr; }
  .cta-final-text { padding: 3rem 1.5rem; }
  .cta-final-wa { padding: 2rem 1.5rem; }
  .footer-inner { flex-direction: column; }
  .float-wa { bottom: 1.2rem; right: 1.2rem; width: 52px; height: 52px; }
  .projet, .features, .categories, .how, .marches { padding: 5rem 0; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-hero-wa, .btn-hero-ghost { justify-content: center; }
  .cat-grid { grid-template-columns: 1fr; grid-template-rows: repeat(8, 160px); }
}
