/* ==========================================================================
   KANCÍCÀ — Design system
   Identité : le "carnet de tickets" du commerçant béninois, version digitale.
   Palette ancrée dans le réel (cachet de validation, jaune zem, papier reçu)
   plutôt que dans les codes SaaS génériques.
   ========================================================================== */

:root {
  /* Couleurs nommées */
  --ink: #16140F;          /* texte principal, noir chaud */
  --paper: #FBF6EC;        /* fond papier/reçu */
  --white: #FFFFFF;
  --kancica: #0E8F4E;      /* vert de marque, plus profond que le vert néon d'origine */
  --kancica-deep: #0A5C2E; /* vert foncé pour bandeaux contrastés */
  --kancica-light: #E7F3EA;/* vert très clair pour fonds doux */
  --zem: #FFC23C;          /* jaune "zem" — visibilité, accent */
  --terracotta: #D8552E;   /* accent chaud — alertes douces, badges */
  --line: #E4DAC2;         /* bordures/séparateurs chauds */
  --muted: #6B6354;        /* texte secondaire, brun-gris chaud */
  --tint-yellow: #FDF0D2;     /* jaune zem très clair, fond de badge */
  --tint-terracotta: #FBE4D8; /* terracotta très clair, fond de badge */

  --font-display: "Fraunces", "Georgia", serif;
  --font-sans: "Inter", "Helvetica Neue", Arial, sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-card: 0 16px 40px -18px rgba(22, 20, 15, 0.25);
  --shadow-soft: 0 8px 24px -12px rgba(22, 20, 15, 0.18);
}

/* ----- Reset / base ----------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
}
h1 em, h2 em, h3 em { font-style: italic; color: var(--kancica); }

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

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ----- Layout helpers ----------------------------------------------------*/
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 96px 0; }
@media (max-width: 768px) { .section { padding: 64px 0; } }
.section--tint { background: var(--kancica-light); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--kancica-deep);
  background: var(--kancica-light);
  border: 1px solid rgba(14, 143, 78, 0.25);
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.eyebrow.alt {
  color: #9A4A1F;
  background: #FBE9DD;
  border-color: rgba(216, 85, 46, 0.25);
}

.lede {
  font-size: 19px;
  color: var(--muted);
  max-width: 540px;
}
.center { text-align: center; margin-left: auto; margin-right: auto; }

.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ----- Buttons ------------------------------------------------------------*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15.5px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--kancica);
  color: var(--white);
  box-shadow: 0 10px 24px -10px rgba(14, 143, 78, 0.55);
}
.btn-primary:hover { background: var(--kancica-deep); }
.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-light {
  background: var(--white);
  color: var(--ink);
}
.btn-on-dark {
  background: var(--zem);
  color: var(--ink);
}
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* ----- Nav -----------------------------------------------------------------*/
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 246, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.nav__logo .dot { color: var(--kancica); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-weight: 600;
  font-size: 15px;
}
.nav__links a { color: var(--ink); opacity: 0.78; }
.nav__links a:hover { opacity: 1; color: var(--kancica-deep); }
.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__burger { display: none; background: none; border: 0; padding: 8px; }
.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 18px;
  padding: 20px 24px 28px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  font-weight: 600;
}
.nav__mobile.open { display: flex; }

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .nav__cta .btn-outline { display: none; }
}

/* ----- Ticket / "carnet de reçu" — élément signature ----------------------*/
/* Carte façon ticket de marché : un talon perforé sépare l'en-tête du corps. */
.ticket {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: visible;
  display: flex;
  flex-direction: column;
}
.ticket__head { padding: 26px 26px 20px; }
.ticket__tear {
  position: relative;
  margin: 0 22px;
  border-top: 2px dashed var(--line);
}
.ticket__tear::before,
.ticket__tear::after {
  content: "";
  position: absolute;
  top: -11px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ticket-cutout, var(--white));
}
.ticket__tear::before { left: -33px; }
.ticket__tear::after { right: -33px; }
.ticket__body { padding: 22px 26px 28px; flex: 1; display: flex; flex-direction: column; }

.ticket--on-white { --ticket-cutout: var(--white); }
.ticket--on-tint { --ticket-cutout: var(--kancica-light); }
.ticket--featured {
  border-color: var(--kancica);
  box-shadow: 0 20px 48px -16px rgba(14, 143, 78, 0.38);
  transform: translateY(-6px);
}

/* ----- Cachet / stamp ------------------------------------------------------*/
.stamp {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.15;
  transform: rotate(-11deg);
  position: relative;
  padding: 10px;
}
.stamp::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px dashed currentColor;
  border-radius: 50%;
}

/* ----- Phone mockup ---------------------------------------------------------*/
.phone {
  width: 290px;
  max-width: 100%;
  border-radius: 38px;
  border: 9px solid var(--ink);
  background: var(--white);
  box-shadow: 0 40px 70px -24px rgba(22, 20, 15, 0.45);
  overflow: hidden;
}
.phone__bar {
  height: 26px;
  background: var(--ink);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 5px;
}
.phone__bar span {
  width: 56px;
  height: 5px;
  border-radius: 4px;
  background: #3a372e;
}
.phone__screen {
  background: linear-gradient(180deg, var(--kancica-light) 0%, var(--white) 220px);
  padding: 26px 20px 30px;
  text-align: center;
}
.phone__avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--kancica);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  font-family: var(--font-display);
}
.phone__name { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.phone__role { color: var(--muted); font-size: 13px; margin-top: 2px; }
.phone__btn {
  margin-top: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-soft);
}
.phone__btn.is-wa { background: var(--kancica); color: var(--white); border-color: var(--kancica); }

/* ----- Comparaison WhatsApp / Kancícà --------------------------------------*/
.versus {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
@media (max-width: 760px) { .versus { grid-template-columns: 1fr; } }
.versus__card {
  border-radius: var(--radius);
  padding: 32px;
}
.versus__card.is-muted {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--muted);
}
.versus__card.is-kancica {
  background: var(--kancica-deep);
  color: var(--white);
}
.versus__title { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin-bottom: 18px; color: inherit; }
.versus__list { display: flex; flex-direction: column; gap: 13px; margin-top: 18px; }
.versus__list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }

/* ----- Steps ---------------------------------------------------------------*/
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step__num {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--kancica);
  letter-spacing: 0.04em;
}

/* ----- Grids -----------------------------------------------------------------*/
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: 1fr 1fr; } .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-3 { grid-template-columns: 1fr; } .grid-4 { grid-template-columns: 1fr; } }

.theme-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.theme-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.theme-card__icon { font-size: 26px; }

.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 1px 2px rgba(22,20,15,.05), 0 14px 32px -20px rgba(22,20,15,.16);
  transition: transform .22s ease, box-shadow .22s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(22,20,15,.06), 0 20px 40px -16px rgba(22,20,15,.2); }
.feature-card__icon { font-size: 28px; }
.feature-card h3 { font-size: 17px; margin-top: 14px; }
.feature-card > p { color: var(--muted); font-size: 14px; margin: 2px 0 0; }
.feature-card ul { margin-top: 12px; display: flex; flex-direction: column; gap: 7px; }
.feature-card ul li { font-size: 13.5px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.icon-badge--green { background: var(--kancica-light); }
.icon-badge--yellow { background: var(--tint-yellow); }
.icon-badge--terracotta { background: var(--tint-terracotta); }
.icon-badge--cream { background: var(--paper); }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 600;
}

/* ----- Tableau comparatif (tarifs) -------------------------------------------*/
.cmp-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.cmp-table th, .cmp-table td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.cmp-table td:first-child, .cmp-table th:first-child { white-space: normal; }
.cmp-table thead th { font-family: var(--font-sans); font-weight: 700; background: var(--kancica-light); color: var(--kancica-deep); font-size: 13.5px; }
.cmp-table tbody tr:last-child td { border-bottom: 0; }
.cmp-table td.cat { background: var(--paper); font-weight: 700; color: var(--ink); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.cmp-table th.c, .cmp-table td.c { text-align: center; }

/* ----- Étapes de guide (liste verticale numérotée) -----------------------------*/
.guide-step { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.guide-step:last-child { border-bottom: 0; }
.guide-step__num {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--kancica);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 15px;
}

/* ----- Catégorie d'aide (ancre + carte cliquable) -------------------------------*/
.help-cat {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
}
.help-cat:hover { border-color: var(--kancica); }
.help-cat__icon { font-size: 26px; }

/* ----- FAQ accordion ---------------------------------------------------------*/
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q {
  width: 100%;
  background: none;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16.5px;
  text-align: left;
  color: var(--ink);
}
.faq-q__plus { font-size: 20px; color: var(--kancica); transition: transform 0.2s ease; flex-shrink: 0; }
.faq-item.open .faq-q__plus { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  color: var(--muted);
  font-size: 15px;
  padding: 0 4px;
}
.faq-a__inner { padding-bottom: 22px; }
.faq-item.open .faq-a { max-height: 600px; }

/* ----- Footer ------------------------------------------------------------------*/
.footer { background: var(--ink); color: #C9C3B4; padding: 64px 0 28px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .footer__top { grid-template-columns: 1fr 1fr; } }
.footer__logo { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--white); }
.footer h4 { font-family: var(--font-sans); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: #8B8470; margin-bottom: 16px; }
.footer a { display: block; padding: 6px 0; font-size: 14.5px; color: #C9C3B4; }
.footer a:hover { color: var(--white); }
.footer__bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #2C2A22;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: #8B8470;
}

/* ----- WhatsApp floating button -------------------------------------------------*/
.wa-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--kancica);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 14px 30px -10px rgba(14, 143, 78, 0.6);
  z-index: 60;
}

/* ----- Reveal on scroll (progressive, subtle) -----------------------------------*/
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
