/* AfriqMarket Group — feuille de style principale */

:root {
  /* Charte AfriqMarket (service.afriqmarket.com) */
  --brand: #00a082;
  --brand-strong: #007a63;
  --brand-deep: #00604e;
  --brand-soft: #e6f6f2;
  --brand-light: #3cc4a6;
  --ink: #0a0a0a;
  --ink-2: #111614;
  --canvas: #f7faf9;
  --surface: #ffffff;
  --on-dark: #ffffff;
  --text: #0a0a0a;
  --muted: #0a0a0a;
  --line: #e5e7eb;
  --line-light: rgba(255, 255, 255, 0.14);

  --font-display: "Chillax", "Montserrat", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 16px;
  --radius-btn: 8px;
  --header-h: 76px;
}

@font-face {
  font-family: "Chillax";
  src: url("../fonts/chillax-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.005em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--brand); color: var(--on-dark); padding: 10px 16px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1.1rem;
}

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  color: var(--on-dark);
  transition: background-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line-light);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--on-dark); }
.brand-logo { height: 36px; width: auto; }
.brand-sub {
  padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, 0.3);
  font-family: var(--font-sans); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--on-dark); line-height: 1;
}

.site-nav { display: flex; gap: 32px; }
.site-nav a {
  white-space: nowrap; text-decoration: none; font-size: 0.93rem; font-weight: 500; color: rgba(255, 255, 255, 0.82);
  position: relative; padding: 6px 0;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.site-nav a:hover, .site-nav a.is-active { color: var(--on-dark); }
.site-nav a:hover::after, .site-nav a.is-active::after { transform: scaleX(1); }
.site-nav { align-items: center; }
.site-nav a.nav-cta {
  padding: 10px 18px; border-radius: var(--radius-btn);
  background: var(--brand); color: var(--on-dark); font-weight: 600;
  transition: background-color .2s ease;
}
.site-nav a.nav-cta::after { display: none; }
.site-nav a.nav-cta:hover { background: var(--brand-strong); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  position: relative; color: var(--on-dark);
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  position: absolute; left: 11px; width: 22px; height: 2px; background: currentColor; content: "";
  transition: transform .25s ease, top .25s ease, opacity .2s ease;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { left: 0; top: -7px; }
.nav-toggle-bar::after { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { top: 0; transform: rotate(-45deg); }

/* ---------- Motif de points (reprend le cercle du logo) ---------- */
.hero-pattern {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.22;
  background-image: radial-gradient(circle, var(--brand) 2px, transparent 2.5px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 80% 20%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 80% 20%, #000 0%, transparent 70%);
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 64px) 0 48px;
  background:
    radial-gradient(1000px 640px at 85% 0%, rgba(0, 160, 130, 0.32), transparent 60%),
    radial-gradient(800px 520px at 0% 100%, rgba(0, 96, 78, 0.35), transparent 60%),
    var(--ink);
  color: var(--on-dark);
}
.hero-grid {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 4vw, 56px); align-items: center;
}
.hero-inner { position: relative; min-width: 0; }
.hero-visual { margin: 0; justify-self: end; width: 100%; max-width: 560px; }
@media (max-width: 1180px) {
  .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
}
.hero-visual img {
  width: 100%; height: auto;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.45));
}
.hero h1 { max-width: 18ch; font-size: clamp(2.3rem, 4.6vw, 3.9rem); }
.hero h1::after {
  content: ""; display: block; width: 72px; height: 3px; margin-top: 28px;
  background: var(--brand); border-radius: 2px;
}
.lead { font-size: clamp(1.08rem, 1.6vw, 1.3rem); max-width: 58ch; color: rgba(255, 255, 255, 0.82); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 28px; border-radius: var(--radius-btn);
  text-align: center; line-height: 1.35;
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: var(--on-dark); }
.btn-primary:hover { background: var(--brand-strong); }
.btn-ghost { background: var(--surface); color: var(--ink); }
.btn-ghost:hover { background: var(--brand-soft); }

.hero-strip {
  position: relative; display: flex; flex-wrap: wrap; gap: 10px 36px;
  margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--line-light);
  font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6);
}
.hero-strip span { display: inline-flex; align-items: center; gap: 10px; }
.hero-strip span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section-dark { background: var(--ink-2); color: var(--on-dark); }
.section-tint { background: var(--canvas); }

.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.split-head h2 { max-width: 16ch; }
.split-body p { font-size: 1.08rem; color: var(--muted); }
.split-body p:first-child { color: var(--text); font-size: 1.18rem; }
.lead-sm { color: var(--muted); font-size: 1.08rem; max-width: 52ch; }

/* Piliers */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(56px, 7vw, 88px); }
.pillar { padding: 32px 28px 28px; border-top: 3px solid var(--brand); background: var(--canvas); border-radius: 0 0 var(--radius) var(--radius); }
.pillar-num { display: block; font-family: var(--font-display); font-size: 1rem; color: var(--brand-strong); margin-bottom: 18px; font-weight: 600; }
.pillar p { color: var(--muted); margin: 0; }

/* Vision */
.vision-head { max-width: 820px; }
.manifesto { columns: 2; column-gap: 56px; margin-top: 48px; }
.manifesto p { break-inside: avoid; color: rgba(255, 255, 255, 0.78); font-size: 1.06rem; }
.manifesto p:first-child::first-letter {
  float: left; font-family: var(--font-display); font-size: 4.2em; line-height: 0.8;
  padding: 6px 10px 0 0; color: var(--brand);
}
.facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 72px 0 0;
  border-top: 1px solid var(--line-light);
}
.fact { padding: 32px 28px 0 0; }
.fact + .fact { padding-left: 28px; border-left: 1px solid var(--line-light); }
.fact dt { font-family: var(--font-display); font-size: clamp(2.4rem, 4.5vw, 3.4rem); color: var(--brand-light); line-height: 1; margin-bottom: 14px; }
.fact dd { margin: 0; color: rgba(255, 255, 255, 0.7); font-size: 0.95rem; max-width: 32ch; }

/* Modèle */
.center-head { text-align: center; max-width: 760px; margin: 0 auto 64px; }
.center-head .lead-sm { margin: 0 auto; }
.flow { display: grid; grid-template-columns: 1fr 80px 1.1fr 80px 1fr; align-items: center; }
.flow-node {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; text-align: center; height: 100%;
}
.flow-node p { color: var(--muted); margin: 0; font-size: 0.96rem; }
.flow-core { background: var(--ink); color: var(--on-dark); border-color: var(--ink); box-shadow: 0 30px 60px -30px rgba(10, 10, 10, 0.5); }
.flow-core p { color: rgba(255, 255, 255, 0.75); }
.flow-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%; margin-bottom: 18px;
  background: var(--brand-soft); color: var(--brand-strong);
}
.flow-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.flow-core .flow-icon { background: var(--on-dark); padding: 6px; }
.flow-core .flow-icon img { width: 100%; height: 100%; }
.flow-link { position: relative; height: 2px; }
.flow-link span {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, var(--brand) 0 8px, transparent 8px 14px);
  animation: flow 1.2s linear infinite;
}
.flow-link::before, .flow-link::after {
  content: ""; position: absolute; top: -4px; width: 10px; height: 10px; background: var(--brand); border-radius: 50%;
}
.flow-link::before { left: -5px; }
.flow-link::after { right: -5px; }
@keyframes flow { to { background-position: 14px 0; } }

/* Filiales */
.subs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.sub-card {
  display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--radius); padding: 36px 34px 30px;
  border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.sub-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(10, 10, 10, 0.35); border-color: rgba(0, 160, 130, 0.5); }
.sub-top { margin-bottom: 14px; }
.sub-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand-strong); background: var(--brand-soft); padding: 5px 10px; border-radius: 6px; margin-bottom: 14px;
}
.sub-card h3 { font-size: 1.55rem; margin: 0; }
.sub-card p { color: var(--muted); flex: 1; }
.sub-link {
  align-self: flex-start; display: inline-flex; gap: 8px; align-items: center;
  font-weight: 600; font-size: 0.95rem; text-decoration: none; color: var(--brand-strong);
  padding-bottom: 3px; border-bottom: 2px solid var(--brand);
}
.sub-link span { transition: transform .2s ease; }
.sub-link:hover span { transform: translateX(4px); }
.sub-card-next { background: transparent; border-style: dashed; border-color: rgba(10, 10, 10, 0.25); }

/* Principes d'investissement */
.principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 40px 40px; }
.principles li { padding-top: 22px; border-top: 1px solid var(--line); }
.principles h3 { font-size: 1.2rem; display: flex; align-items: center; gap: 12px; }
.principles h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 3px solid var(--brand); flex: none; }
.principles p { color: var(--muted); margin: 0; }

/* Clôture */
.closing {
  position: relative; overflow: hidden; background: var(--ink); color: var(--on-dark);
  padding: clamp(90px, 12vw, 150px) 0; text-align: center;
}
.closing-inner { position: relative; }
.closing-quote {
  font-family: var(--font-display); font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.3;
  max-width: 28ch; margin: 0 auto 24px; text-wrap: balance;
}
.closing-sign { margin: 0; display: flex; justify-content: center; }
.closing-sign img { height: 34px; width: auto; }

/* Pied de page */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.7); border-top: 1px solid var(--line-light); padding: 48px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-nav a { text-decoration: none; font-size: 0.9rem; }
.footer-nav a:hover { color: var(--on-dark); }
.footer-legal { width: 100%; margin: 8px 0 0; padding-top: 24px; border-top: 1px solid var(--line-light); font-size: 0.85rem; }

/* Apparition au défilement */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { justify-self: center; max-width: 440px; }
  .split { grid-template-columns: 1fr; }
  .subs { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr; gap: 0; }
  .pillar { padding: 28px 0; background: transparent; border-top: 1px solid var(--line); }
  .manifesto { columns: 1; }
  .flow { grid-template-columns: 1fr; gap: 0; }
  .flow-link { height: 48px; width: 2px; margin: 0 auto; }
  .flow-link span { background: repeating-linear-gradient(180deg, var(--brand) 0 8px, transparent 8px 14px); animation-name: flow-v; }
  .flow-link::before, .flow-link::after { left: -4px; }
  .flow-link::before { top: -5px; }
  .flow-link::after { top: auto; bottom: -5px; right: auto; }
  @keyframes flow-v { to { background-position: 0 14px; } }
}

/* Menu replié en dessous de 1080 px */
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 24px;
    background: rgba(10, 10, 10, 0.98);
    border-bottom: 1px solid var(--line-light);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
  }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .site-nav a { padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line-light); }
  .site-nav a::after { display: none; }
  .site-nav { align-items: stretch; }
  .site-nav a.nav-cta { margin-top: 16px; text-align: center; border-bottom: 0; }
  .site-header.menu-open { background: rgba(10, 10, 10, 0.98); }

}

@media (max-width: 820px) {
  .facts { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line-light); }
  .subs { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .sub-card { padding: 28px 22px 24px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .brand-sub { display: none; }
  .brand-logo { height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
