@import url('fonts.css');

/* ==========================================================================
   AFRIFACT — Design system "Dark Pro"
   Tokens repris de la charte design (Spécifications fonctionnelles v2.3, §8)
   ========================================================================== */

:root {
  /* Surfaces */
  --bg:            #0F1117;
  --surface:       #1A1D27;
  --surface-2:     #252836;
  --border:        #2E3147;

  /* Marque */
  --primary:       #6366F1;
  --primary-light: #818CF8;
  --primary-glow:  rgba(99, 102, 241, .40);
  --gradient:      linear-gradient(90deg, #6366F1 0%, #818CF8 100%);

  /* Texte */
  --text:          #FFFFFF;
  --text-2:        #B0B7C3;
  --text-3:        #6B7280;
  --text-off:      #4B5563;

  /* Sémantique */
  --success:       #10B981;
  --warning:       #F59E0B;
  --error:         #EF4444;
  --info:          #60A5FA;

  /* Rayons (AppTheme) */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 24px;

  /* Rythme */
  --wrap: 1140px;
  --gutter: 24px;
  --section-y: 104px;
}

/* --------------------------------------------------------------- Reset -- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-light); text-decoration: none; }
a:hover { color: var(--text); }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
p { margin: 0; }

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

::selection { background: var(--primary); color: #fff; }

/* Lien d'évitement clavier */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 999;
  padding: 12px 20px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--r-sm);
  font-weight: 600;
}
.skip-link:focus { left: 12px; color: #fff; }

/* ------------------------------------------------------------- Layout -- */

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

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: 72px; }

.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--primary-light);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.eyebrow svg { width: 14px; height: 14px; }

h2.section-title {
  font-size: clamp(28px, 4.2vw, 42px);
  margin-bottom: 18px;
  text-wrap: balance;
}

h3.section-title {
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: 14px;
}

.lede {
  color: var(--text-2);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.75;
  text-wrap: pretty;
}

/* Halo décoratif */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .5;
  pointer-events: none;
  z-index: 0;
}

/* ------------------------------------------------------------ Boutons -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding-inline: 26px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }

.btn--primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 6px 18px rgba(99, 102, 241, .25);
}
.btn--primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(99, 102, 241, .40);
}

.btn--ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.btn--ghost:hover {
  color: var(--text);
  border-color: var(--primary);
  background: var(--surface-2);
  transform: translateY(-2px);
}

.btn--sm { height: 44px; padding-inline: 20px; font-size: 14px; border-radius: var(--r-sm); }

/* Bouton Play Store (badge) */
.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 58px;
  padding: 0 24px 0 20px;
  border-radius: 14px;
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 6px 18px rgba(99, 102, 241, .25);
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn-store:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(99, 102, 241, .42);
}
.btn-store svg { width: 26px; height: 26px; flex: none; }
.btn-store span { display: block; text-align: left; line-height: 1.25; }
.btn-store .s1 { font-size: 11px; font-weight: 400; opacity: .85; }
.btn-store .s2 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }

/* -------------------------------------------------------------- Header -- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 17, 23, .78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background-color .25s ease;
}
.header.is-stuck { border-bottom-color: var(--border); background: rgba(15, 17, 23, .94); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .12em;
  flex: none;
}
.brand:hover { color: var(--text); }
.brand img { width: 26px; }

.nav { margin-left: auto; }
.nav ul { display: flex; align-items: center; gap: 4px; }
.nav a {
  display: block;
  padding: 9px 14px;
  border-radius: var(--r-xs);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  transition: color .16s ease, background-color .16s ease;
}
.nav a:hover { color: var(--text); background: var(--surface); }

.header .btn { flex: none; }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  cursor: pointer;
}
.burger svg { width: 22px; height: 22px; }
.burger .icon-close { display: none; }
.burger[aria-expanded="true"] .icon-open { display: none; }
.burger[aria-expanded="true"] .icon-close { display: block; }

/* ---------------------------------------------------------------- Hero -- */

.hero {
  position: relative;
  padding-block: 88px 96px;
  overflow: hidden;
}
.hero .glow--a { width: 620px; height: 620px; background: #4338CA; top: -300px; right: -180px; }
.hero .glow--b { width: 460px; height: 460px; background: #1E3A8A; bottom: -260px; left: -200px; opacity: .35; }

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 72px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(34px, 5.4vw, 56px);
  line-height: 1.08;
  margin-bottom: 22px;
  text-wrap: balance;
}
.hero h1 .accent {
  background: linear-gradient(90deg, #818CF8, #A5B4FC);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lede {
  max-width: 540px;
  margin-bottom: 34px;
  color: var(--text-2);
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.7;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.hero__note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  color: var(--text-3);
  font-size: 13.5px;
}
.hero__note li { display: flex; align-items: center; gap: 7px; }
.hero__note svg { width: 15px; height: 15px; color: var(--success); flex: none; }

/* Mockup téléphone */
/* Les captures d'écran incluent déjà la barre d'état et le poinçon de
   l'appareil : le cadre n'ajoute donc volontairement aucune encoche. */
.phone {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin-inline: auto;
  padding: 11px;
  background: linear-gradient(160deg, #2A2E42, #14161F);
  border: 1px solid #383C55;
  border-radius: 42px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .03) inset;
}
.phone img {
  width: 100%;
  border-radius: 32px;
  display: block;
}

.hero__phone { position: relative; }

/* Cartes flottantes autour du téléphone */
.float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 16px;
  background: rgba(37, 40, 54, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  white-space: nowrap;
  animation: bob 5s ease-in-out infinite;
}
.float-card__icon {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  flex: none;
}
.float-card__icon svg { width: 18px; height: 18px; }
.float-card b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.float-card small { display: block; color: var(--text-3); font-size: 11.5px; line-height: 1.3; }

/* Décalées vers l'extérieur du cadre pour ne pas masquer les chiffres
   de la capture (CA du mois, KPI). */
.float-card--paid { top: 5%; left: -120px; animation-delay: -1.2s; }
.float-card--paid .float-card__icon { background: rgba(16, 185, 129, .16); color: var(--success); }
.float-card--wa { bottom: 6%; right: -104px; animation-delay: -3s; }
.float-card--wa .float-card__icon { background: rgba(99, 102, 241, .18); color: var(--primary-light); }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-11px); }
}

/* --------------------------------------------------------- Bandeau clé -- */

.strip {
  border-block: 1px solid var(--border);
  background: var(--surface);
}
.strip ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-block: 34px;
  text-align: center;
}
.strip .v {
  display: block;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -.02em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.strip .k {
  display: block;
  margin-top: 4px;
  color: var(--text-3);
  font-size: 13px;
}

/* ------------------------------------------------------------- Cartes -- */

.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color .2s ease, transform .2s ease, background-color .2s ease;
}
.card:hover { border-color: #3D4166; transform: translateY(-3px); background: var(--surface-2); }

.card__icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 18px;
  border-radius: var(--r-sm);
  background: rgba(99, 102, 241, .14);
  color: var(--primary-light);
}
.card__icon svg { width: 23px; height: 23px; }
.card h3 { font-size: 17px; margin-bottom: 9px; }
.card p { color: var(--text-2); font-size: 14px; line-height: 1.7; }

.card--muted .card__icon { background: rgba(176, 183, 195, .1); color: var(--text-2); }

/* Liste à puces cochées */
.checks li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 13px;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.65;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0; top: 5px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(99, 102, 241, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23818CF8' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.checks strong { color: var(--text); font-weight: 600; }

/* -------------------------------------------------- Sections alternées -- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.split--reverse .split__media { order: -1; }
.split__media { display: flex; justify-content: center; }
.split + .split { margin-top: 112px; }

/* Section IA (mise en avant) */
.ai {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 78% 0%, rgba(99, 102, 241, .18), transparent 62%),
    var(--surface);
  border-block: 1px solid var(--border);
}

.ai-card {
  padding: 26px;
  background: rgba(15, 17, 23, .55);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.ai-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.ai-card p { color: var(--text-2); font-size: 14px; line-height: 1.7; }
.ai-card .badge-new {
  display: inline-block;
  margin-bottom: 12px;
  padding: 3px 10px;
  border-radius: var(--r-xs);
  background: rgba(99, 102, 241, .18);
  color: var(--primary-light);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Bulle de conversation illustrative */
.chat-demo {
  padding: 22px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.bubble {
  max-width: 88%;
  margin-bottom: 12px;
  padding: 13px 17px;
  font-size: 14px;
  line-height: 1.6;
}
.bubble--me {
  margin-left: auto;
  background: var(--gradient);
  border-radius: var(--r-md) var(--r-md) 4px var(--r-md);
  color: #fff;
}
.bubble--ai {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md) var(--r-md) var(--r-md) 4px;
  color: var(--text-2);
}
.bubble--ai strong { color: var(--text); font-weight: 600; }

.invoice-recap {
  margin-top: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 13.5px;
}
/* gap horizontal nul : le filet du total reste continu d'une colonne à l'autre */
.invoice-recap dl { display: grid; grid-template-columns: auto 1fr; gap: 7px 0; margin: 0; }
.invoice-recap dt { color: var(--text-3); padding-right: 16px; }
.invoice-recap dd { margin: 0; text-align: right; font-weight: 500; }
.invoice-recap .total { margin-top: 2px; padding-top: 9px; border-top: 1px solid var(--border); }
.invoice-recap .total dd { color: var(--primary-light); font-weight: 700; }

/* --------------------------------------------------- Modèles de facture -- */

.templates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.template {
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  text-align: center;
  transition: border-color .2s ease, transform .2s ease;
}
.template:hover { border-color: var(--primary); transform: translateY(-4px); }
.template img { border-radius: var(--r-xs); box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }
.template h3 { margin-top: 14px; font-size: 15px; }
.template p { color: var(--text-3); font-size: 12.5px; margin-top: 3px; }

.swatches { display: flex; justify-content: center; gap: 10px; margin-top: 34px; }
.swatch {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid var(--border);
}

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

.countries {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 12px;
}
.country {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  transition: border-color .18s ease, background-color .18s ease;
}
.country:hover { border-color: #3D4166; background: var(--surface-2); }
/* Les drapeaux sont des emoji d'indicateurs régionaux : rendus tels quels sur
   Android/macOS, ils retombent sur le code pays à deux lettres sous Windows.
   Largeur fixe et centrage pour que les deux rendus restent alignés. */
.country .flag {
  flex: none;
  width: 30px;
  font-family: 'Twemoji Country Flags', 'Noto Color Emoji', 'Apple Color Emoji',
               'Segoe UI Emoji', sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  color: var(--text-2);
}
.country b { display: block; font-size: 14px; font-weight: 500; }
.country small { display: block; color: var(--text-3); font-size: 12px; }

.zone-label {
  margin: 0 0 16px;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.zone + .zone { margin-top: 40px; }

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

.faq { max-width: 820px; margin-inline: auto; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq details[open] { border-color: #3D4166; background: var(--surface-2); }
.faq summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 19px 22px;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  margin-left: auto;
  width: 18px; height: 18px;
  flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq .answer { padding: 0 22px 20px; color: var(--text-2); font-size: 14.5px; line-height: 1.75; }
.faq .answer p + p { margin-top: 12px; }

/* ------------------------------------------------------------ CTA final -- */

.cta-final {
  position: relative;
  overflow: hidden;
  padding: 64px 48px;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background:
    radial-gradient(700px 340px at 50% -30%, rgba(99, 102, 241, .34), transparent 68%),
    var(--surface);
  text-align: center;
}
.cta-final h2 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 16px; text-wrap: balance; }
.cta-final p { max-width: 560px; margin: 0 auto 32px; color: var(--text-2); }
.cta-final .actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* -------------------------------------------------------------- Footer -- */

.footer {
  margin-top: var(--section-y);
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-block: 56px 44px;
}
.footer__brand p {
  margin-top: 16px;
  max-width: 300px;
  color: var(--text-3);
  font-size: 13.5px;
  line-height: 1.7;
}
.footer h4 {
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.footer li { margin-bottom: 10px; }
.footer li a { color: var(--text-2); font-size: 14px; }
.footer li a:hover { color: var(--text); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  justify-content: space-between;
  padding-block: 22px;
  border-top: 1px solid var(--border);
  color: var(--text-off);
  font-size: 13px;
}
.footer__bottom a { color: var(--text-3); }

/* ------------------------------------------------------ Pages de texte -- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: 72px 48px;
  border-bottom: 1px solid var(--border);
}
.page-hero .glow { width: 520px; height: 520px; background: #4338CA; top: -320px; right: -140px; opacity: .35; }
.page-hero h1 { position: relative; font-size: clamp(28px, 4.4vw, 44px); margin-bottom: 14px; }
.page-hero p { position: relative; color: var(--text-3); font-size: 14px; }

.prose {
  max-width: 780px;
  margin-inline: auto;
  padding-block: 64px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.8;
}
.prose h2 {
  margin: 48px 0 16px;
  padding-top: 8px;
  color: var(--text);
  font-size: 23px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 30px 0 10px; color: var(--text); font-size: 17px; }
.prose p { margin-bottom: 16px; }
.prose ul { margin: 0 0 20px; padding-left: 0; }
.prose ul li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 22px;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 4px; top: 11px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
}
.prose strong { color: var(--text); font-weight: 600; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

.prose table {
  width: 100%;
  margin-bottom: 24px;
  border-collapse: collapse;
  font-size: 14px;
}
.prose th, .prose td {
  padding: 12px 14px;
  border: 1px solid var(--border);
  text-align: left;
}
.prose th { background: var(--surface); color: var(--text); font-weight: 600; }

.callout {
  margin: 26px 0;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--r-sm);
  background: var(--surface);
}
.callout p:last-child { margin-bottom: 0; }
.callout--warn { border-left-color: var(--warning); }

.toc {
  padding: 22px 26px;
  margin-bottom: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.toc h2 { margin: 0 0 12px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.toc ol { margin: 0; padding-left: 20px; color: var(--text-3); font-size: 14px; }
.toc li { margin-bottom: 7px; }

/* -------------------------------------------------------------- Contact -- */

.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.contact-card {
  display: flex;
  flex-direction: column;
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.contact-card h3 { font-size: 17px; margin-bottom: 10px; }
.contact-card p { color: var(--text-2); font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.contact-card .btn { margin-top: auto; align-self: flex-start; }

/* --------------------------------------------------------------- Utils -- */

.center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mt-56 { margin-top: 56px; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Apparition au scroll.
   Le masquage n'est appliqué que si JavaScript est actif (classe posée sur
   <html> par le script inline du <head>). Sans JS, tout reste visible. */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1);
}
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------- Responsive -- */

@media (max-width: 1024px) {
  :root { --section-y: 84px; }

  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .hero__lede { max-width: none; }
  .hero__phone { max-width: 320px; margin-inline: auto; }
  .float-card--paid { left: -56px; }
  .float-card--wa { right: -48px; }

  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .templates { grid-template-columns: repeat(2, 1fr); }
  .split, .split + .split { grid-template-columns: 1fr; gap: 44px; }
  .split + .split { margin-top: 84px; }
  .split--reverse .split__media { order: 0; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 760px) {
  :root { --section-y: 68px; --gutter: 20px; }

  .nav {
    position: fixed;
    inset: 72px 0 auto;
    display: none;
    padding: 14px 20px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 40px rgba(0, 0, 0, .5);
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav a { padding: 13px 14px; font-size: 15px; }
  .burger { display: flex; }
  .header .btn--header { display: none; }

  .hero { padding-block: 56px 72px; }
  .float-card { display: none; }
  .phone { max-width: 280px; padding: 9px; border-radius: 36px; }
  .phone img { border-radius: 28px; }

  .strip ul { grid-template-columns: repeat(2, 1fr); gap: 26px 16px; padding-block: 30px; }

  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .templates { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .contact-grid { grid-template-columns: 1fr; }
  .countries { grid-template-columns: 1fr 1fr; }
  .country { padding: 11px 12px; }
  .country .flag { font-size: 19px; }

  .cta-final { padding: 44px 24px; border-radius: var(--r-lg); }
  .cta-final .actions .btn, .cta-final .actions .btn-store { width: 100%; }

  .footer__top { grid-template-columns: 1fr; gap: 32px; }
  .prose { padding-block: 44px; }
}

@media (max-width: 420px) {
  .countries { grid-template-columns: 1fr; }
  .templates { grid-template-columns: 1fr; }
  .hero__cta .btn, .hero__cta .btn-store { width: 100%; }
}

/* --------------------------------------------- Préférences utilisateur -- */

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

@media print {
  .header, .footer, .cta-final, .skip-link { display: none; }
  body { background: #fff; color: #000; }
  .prose { max-width: none; }
}
