/* NafaPass — site vitrine. Couleurs et police : voir nafapass-brand/README.md */
:root {
  --green: #42B883;
  --green-text: #23875B;
  --green-strong: #1B7A50;
  --green-strong-hover: #156440;
  --green-light: #7FD6AE;
  --green-tint: #E8F5EE;
  --ink: #10231A;
  --muted: #3D5248;
  --line: #DCE6E0;
  --ground: #F4F7F5;
  --dark: #0E2A1F;
  --dark-2: #143A2B;
  --white: #FFFFFF;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(16, 35, 26, .06), 0 12px 32px rgba(16, 35, 26, .08);
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Sora', system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-text); }
a:hover { color: var(--green-strong-hover); }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }

.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--white); padding: 8px 12px; z-index: 10; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 12px;
  font: inherit; font-weight: 600; font-size: 16px; text-decoration: none;
  border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--green-strong); color: var(--white); }
.btn-primary:hover { background: var(--green-strong-hover); color: var(--white); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn-ghost:hover { border-color: var(--green); color: var(--ink); }
.btn-light { background: var(--white); color: var(--dark); }
.btn-light:hover { background: var(--green-tint); color: var(--dark); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600; }
.nav a:hover { color: var(--ink); }
.site-header .btn { min-height: 44px; padding: 10px 16px; font-size: 15px; }
@media (max-width: 900px) {
  .nav { display: none; }
  .site-header .btn { margin-left: auto; }
}
@media (max-width: 420px) {
  .site-header .btn span { display: none; }
}

/* Hero */
.hero { background: linear-gradient(180deg, var(--ground) 0%, var(--white) 100%); padding: 72px 0 40px; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--green-text); margin-bottom: 18px; }
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--green-text); }
.hero .lead { margin-top: 22px; font-size: 19px; color: var(--muted); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-visual { position: relative; padding-bottom: 40px; }
.browser {
  border-radius: 14px; overflow: hidden; background: var(--white);
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.browser-bar { display: flex; gap: 6px; padding: 10px 14px; background: #EEF2EF; border-bottom: 1px solid var(--line); }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: #CBD6CF; }
.phone {
  width: 200px; border-radius: 30px; padding: 8px; background: var(--ink);
  box-shadow: 0 20px 40px rgba(16, 35, 26, .25);
}
.phone img { border-radius: 23px; }
.hero-visual .phone { position: absolute; right: -12px; bottom: 0; width: 170px; }
@media (max-width: 900px) {
  .hero { padding-top: 48px; }
  .hero .container { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-visual .phone { width: 128px; right: 4px; }
}

/* Sections */
section { padding: 88px 0; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 18px; }
.alt { background: var(--ground); }
@media (max-width: 700px) { section { padding: 64px 0; } }

/* Benefits */
.benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.benefit { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.benefit-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--green-tint); color: var(--green-text); margin-bottom: 18px;
}
.benefit-icon svg { width: 24px; height: 24px; }
.benefit h3 { font-size: 20px; }
.benefit p { margin-top: 10px; color: var(--muted); font-size: 16px; }
@media (max-width: 960px) { .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .benefits { grid-template-columns: minmax(0, 1fr); } }

/* Platform rows */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 56px; align-items: center; }
.feature + .feature { margin-top: 96px; }
.feature.reverse .feature-text { order: 2; }
.feature-text .step { font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--green-text); text-transform: uppercase; }
.feature-text h3 { font-size: clamp(24px, 2.6vw, 32px); margin-top: 10px; }
.feature-text p { margin-top: 16px; color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%2323875B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.stack { display: grid; gap: 18px; }
.stack .browser:nth-child(2) { width: 82%; margin-left: auto; margin-top: -90px; position: relative; }
.phones { display: flex; justify-content: center; gap: 4%; }
.phones .phone { width: min(210px, 30%); }
.phones .phone:only-child { width: min(240px, 60%); }
.phones .phone:nth-child(2) { transform: translateY(-24px); }
@media (max-width: 900px) {
  .feature { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .feature.reverse .feature-text { order: 0; }
  .stack .browser:nth-child(2) { margin-top: -40px; }
  .phones .phone:nth-child(2) { transform: none; }
}

/* Ops gallery */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 40px; }
.gallery figure { margin: 0; }
.gallery figcaption { margin-top: 12px; color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .gallery { grid-template-columns: minmax(0, 1fr); } }

/* Deployment */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; counter-reset: step; }
.steps li { list-style: none; background: var(--white); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.steps li::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--green-strong); color: var(--white); font-weight: 700; margin-bottom: 16px;
}
.steps h3 { font-size: 19px; }
.steps p { margin-top: 10px; color: var(--muted); font-size: 16px; }
.steps { padding: 0; margin: 0; }
.promise { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 28px; color: var(--ink); font-weight: 600; }
.promise span { display: inline-flex; align-items: center; gap: 8px; }
.promise svg { width: 20px; height: 20px; color: var(--green-text); }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Travellers band */
.dark { background: var(--dark); color: var(--white); }
.dark .section-head p, .dark .feature-text p { color: #CFE3D8; }
.dark .eyebrow, .dark .feature-text .step { color: var(--green-light); }
.dark .checks li::before { background-color: var(--dark-2); }
.dark .checks li { color: #E4F1EA; }
.badge-soon {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 28px;
  padding: 10px 16px; border-radius: 12px; border: 1px solid #2E5A47; color: #CFE3D8; font-size: 15px;
}

/* Final CTA */
.cta { text-align: center; }
.cta h2 { font-size: clamp(28px, 3.4vw, 40px); max-width: 760px; margin-inline: auto; }
.cta p { margin: 16px auto 0; color: var(--muted); max-width: 620px; font-size: 18px; }
.cta .actions { justify-content: center; }

/* Footer */
.site-footer { background: var(--dark); color: #CFE3D8; padding: 48px 0; font-size: 15px; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.site-footer img { height: 30px; width: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.site-footer a { color: #CFE3D8; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }

/* Legal pages */
.legal { padding: 64px 0 96px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); }
.legal .updated { color: var(--muted); margin-top: 10px; }
.legal h2 { font-size: 24px; margin-top: 48px; }
.legal h3 { font-size: 19px; margin-top: 28px; }
.legal p, .legal ul { margin-top: 14px; }
.legal li + li { margin-top: 6px; }
.legal table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--ground); }
.table-wrap { overflow-x: auto; }
