/*
 * Blinko — site public.
 *
 * Direction : éditorial chaleureux. L'alternance encre profonde / papier bone
 * donne un rythme de magazine plutôt que la page sombre uniforme des sites de
 * gains, dont ce produit doit justement se démarquer : le lecteur cible n'est
 * pas seulement un utilisateur ivoirien, c'est aussi une équipe conformité qui
 * décide d'accepter ou non la candidature.
 */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300..900&family=Archivo:wght@400;500;600;700&display=swap');

:root {
  /* Palette officielle du pack de marque Blinko. */
  --lime: #b5f23d;
  --ink: #0a0a0d;
  --bone: #f4f3ef;

  /* Teintes dérivées, pour la profondeur et les accents. */
  --ink-soft: #14151a;
  --bone-dim: #e4e2db;
  --clay: #e0703c;
  --sand: #b8b6ae;
  --text-dim: #9a9a9e;
  --ink-on-bone: #0a0a0d;
  --dim-on-bone: #55555a;

  --display: 'Fraunces', Georgia, serif;
  /* Espace Grotesk : la fonte du logotype, réservée à la marque. */
  --brand: 'Space Grotesk', system-ui, sans-serif;
  --body: 'Archivo', system-ui, sans-serif;

  --measure: 62ch;
  --gutter: clamp(1.25rem, 5vw, 5rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Grain léger : casse l'aplat numérique, donne une matière d'imprimé. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  font-variation-settings: 'SOFT' 40, 'WONK' 1;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; max-width: var(--measure); }
a { color: inherit; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* --------------------------------------------------------------- Navigation */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  border-bottom: 1px solid rgba(244, 243, 239, 0.08);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.9rem var(--gutter);
  max-width: 1180px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand__mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--lime);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 800;
  font-family: var(--body);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.9rem;
}

.nav__links a { color: var(--text-dim); text-decoration: none; transition: color 0.2s; }
.nav__links a:hover { color: var(--bone); }

.nav__cta {
  border: 1px solid rgba(244, 243, 239, 0.25);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  color: var(--bone) !important;
}
.nav__cta:hover { background: var(--bone); color: var(--ink) !important; }

@media (max-width: 760px) {
  .nav__links a:not(.nav__cta) { display: none; }
}

/* -------------------------------------------------------------------- Héros */

.hero {
  position: relative;
  padding: clamp(4rem, 12vw, 9rem) 0 clamp(3rem, 8vw, 6rem);
  overflow: hidden;
}

/* Halo chaud décentré : de la profondeur sans dégradé violet générique. */
.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--clay) 22%, transparent) 0%,
    transparent 62%
  );
  pointer-events: none;
}

.hero__eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.hero__eyebrow::before {
  content: '';
  width: 34px;
  height: 1px;
  background: var(--lime);
}

.hero h1 {
  font-size: clamp(2.7rem, 8.5vw, 5.6rem);
  max-width: 15ch;
  margin-bottom: 1.6rem;
}

.hero h1 em {
  font-style: italic;
  font-variation-settings: 'SOFT' 90, 'WONK' 1;
  color: var(--lime);
}

.hero__lede {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--sand);
  max-width: 52ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.18s, background 0.18s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--lime); color: var(--ink); }
.btn--ghost { border: 1px solid rgba(244, 243, 239, 0.28); color: var(--bone); }
.btn--ghost:hover { background: rgba(244, 243, 239, 0.08); }

/* ---------------------------------------------------------------- Sections */

.section { padding: clamp(4rem, 10vw, 7.5rem) 0; }

.section--bone {
  background: var(--bone);
  color: var(--ink-on-bone);
}
.section--bone .kicker { color: var(--clay); }
.section--bone p { color: var(--dim-on-bone); }

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

.section h2 {
  font-size: clamp(1.9rem, 5vw, 3.1rem);
  max-width: 20ch;
  margin-bottom: 1.4rem;
}

.section__lede {
  font-size: 1.08rem;
  max-width: 58ch;
  margin-bottom: 3rem;
}

/* ------------------------------------------------------------------- Étapes */

.steps {
  display: grid;
  gap: 1px;
  background: rgba(244, 243, 239, 0.12);
  border: 1px solid rgba(244, 243, 239, 0.12);
  border-radius: 20px;
  overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.step {
  background: var(--ink);
  padding: 2.2rem 1.9rem;
}

.step__num {
  font-family: var(--display);
  font-size: 2.6rem;
  font-variation-settings: 'SOFT' 90, 'WONK' 1;
  color: var(--lime);
  line-height: 1;
  margin-bottom: 1rem;
}

.step h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.step p { font-size: 0.95rem; color: var(--text-dim); margin: 0; }

/* --------------------------------------------------- Est / n'est pas (bone) */

.contrast {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-top: 1rem;
}

.contrast__col h3 {
  font-size: 1.35rem;
  margin-bottom: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.contrast ul { list-style: none; margin: 0; padding: 0; }

.contrast li {
  padding: 0.85rem 0 0.85rem 1.9rem;
  border-bottom: 1px solid rgba(10, 10, 13, 0.12);
  position: relative;
  font-size: 0.98rem;
  color: var(--dim-on-bone);
}
.contrast li::before {
  position: absolute;
  left: 0;
  top: 0.85rem;
  font-weight: 700;
}
.contrast--is li::before { content: '✓'; color: #4a7c1f; }
.contrast--isnot li::before { content: '✕'; color: var(--clay); }

/* ------------------------------------------------------------- Flux d'argent */

.flow {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-top: 2.5rem;
}

.flow__card {
  border: 1px solid rgba(244, 243, 239, 0.14);
  border-radius: 18px;
  padding: 1.7rem;
  background: var(--ink-soft);
  position: relative;
}

.flow__card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.55rem;
  font-family: var(--body);
  font-weight: 600;
  letter-spacing: 0;
}
.flow__card p { font-size: 0.92rem; color: var(--text-dim); margin: 0; }

.flow__tag {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 0.9rem;
}

/* ---------------------------------------------------------------------- FAQ */

.faq { max-width: 780px; }

.faq details {
  border-bottom: 1px solid rgba(244, 243, 239, 0.14);
  padding: 1.3rem 0;
}
.section--bone .faq details { border-color: rgba(10, 10, 13, 0.14); }

.faq summary {
  cursor: pointer;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 500;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: baseline;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--lime); font-family: var(--body); }
.section--bone .faq summary::after { color: var(--clay); }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 1rem 0 0; font-size: 0.98rem; }

/* -------------------------------------------------------------------- Prose */

.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); margin: 3rem 0 1rem; }
.prose h3 { font-size: 1.2rem; margin: 2.2rem 0 0.7rem; }
.prose ul { padding-left: 1.2rem; color: var(--text-dim); }
.prose li { margin-bottom: 0.5rem; max-width: var(--measure); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.95rem; }
.prose th, .prose td {
  text-align: left;
  padding: 0.7rem 0.9rem 0.7rem 0;
  border-bottom: 1px solid rgba(244, 243, 239, 0.14);
  vertical-align: top;
}
.prose th { color: var(--bone); font-weight: 600; }
.prose td { color: var(--text-dim); }

.note {
  border-left: 3px solid var(--clay);
  padding: 0.2rem 0 0.2rem 1.2rem;
  margin: 2rem 0;
  color: var(--sand);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------- Pied de page */

.footer {
  border-top: 1px solid rgba(244, 243, 239, 0.1);
  padding: 3.5rem 0 2.5rem;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.footer__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 2.5rem;
}
.footer h4 {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand);
  margin: 0 0 0.9rem;
  font-family: var(--body);
  font-weight: 600;
}
.footer a { color: var(--text-dim); text-decoration: none; display: block; padding: 0.25rem 0; }
.footer a:hover { color: var(--bone); }
.footer__legal { border-top: 1px solid rgba(244, 243, 239, 0.1); padding-top: 1.8rem; font-size: 0.82rem; }

/* Apparition au chargement, échelonnée. Une seule orchestration vaut mieux que
   dix micro-animations dispersées. */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.rise { animation: rise 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
.rise:nth-child(1) { animation-delay: 0.05s; }
.rise:nth-child(2) { animation-delay: 0.15s; }
.rise:nth-child(3) { animation-delay: 0.25s; }
.rise:nth-child(4) { animation-delay: 0.35s; }

@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------------- Identité */

/*
 * Le logo vient du pack de marque et n'est jamais recomposé : la charte
 * interdit de le recolorer, l'étirer, lui ajouter une ombre ou inverser
 * l'éclair seul. On pose donc le lockup fourni tel quel, et on lui laisse
 * l'espace de respiration demandé — la moitié de la hauteur du mark.
 */
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 0.25rem 0;
}
.brand img { display: block; height: 30px; width: auto; }
.brand--footer img { height: 34px; }

/* ---------------------------------------------------- Vitrine de l'application */

.showcase {
  display: grid;
  gap: clamp(2rem, 6vw, 4.5rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .showcase { grid-template-columns: 0.85fr 1.15fr; }
}

.phones {
  display: flex;
  justify-content: center;
  gap: clamp(0.6rem, 2vw, 1.4rem);
  perspective: 1400px;
}

/* Cadre de téléphone dessiné en CSS : pas d'image de mockup à charger, et le
   rendu reste net sur tous les écrans. */
.phone {
  position: relative;
  width: clamp(140px, 21vw, 216px);
  border-radius: 26px;
  padding: 6px;
  background: linear-gradient(160deg, #2b3138, #14181d);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(244, 243, 239, 0.08);
  flex: 0 0 auto;
}
.phone img {
  display: block;
  width: 100%;
  border-radius: 20px;
}
.phone--lift { transform: translateY(-26px) rotate(-2.5deg); }
.phone--drop { transform: translateY(20px) rotate(2.5deg); }

@media (max-width: 620px) {
  .phone--lift, .phone--drop { display: none; }
  .phone { width: min(62vw, 260px); }
}

.showcase__caption {
  margin-top: 1.6rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  text-align: center;
}

/* ------------------------------------------------------------ Pays couverts */

.markets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 2rem;
}
.market {
  border: 1px solid rgba(244, 243, 239, 0.2);
  border-radius: 999px;
  padding: 0.42rem 0.95rem;
  font-size: 0.86rem;
  color: var(--sand);
}
.section--bone .market {
  border-color: rgba(10, 10, 13, 0.2);
  color: var(--dim-on-bone);
}
.market--soon { opacity: 0.55; }

/* ------------------------------------------------------------ Sélecteur FR/EN */

.lang {
  display: inline-flex;
  border: 1px solid rgba(244, 243, 239, 0.22);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 600;
}
.lang a {
  padding: 0.32rem 0.7rem;
  text-decoration: none;
  color: var(--text-dim);
}
.lang a[aria-current='true'] { background: var(--bone); color: var(--ink); }
