/* Kiparie — site vitrine. Mêmes couleurs et polices que l'app (thème sombre). */

@font-face {
  font-family: 'Inter';
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/Inter_400Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/Inter_600SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/SpaceGrotesk_700Bold.woff2') format('woff2');
}

:root {
  --bg: #0f1014;
  --surface: #1a1b22;
  --border: #2a2c36;
  --text: #f5f5f0;
  --muted: #a9abb8;
  --lime: #d6f74c;
  --violet: #9b8cff;
  --on-accent: #0f1014;
  --radius: 18px;
  --radius-lg: 24px;
  --width: 1080px;
  --gutter: 20px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--lime); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

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

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  padding: 8px 14px;
  background: var(--lime);
  color: var(--on-accent);
  border-radius: 999px;
  font-weight: 600;
  z-index: 10;
}
.skip:focus { left: 8px; }

/* En-tête */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font: 700 22px/1 'Space Grotesk', sans-serif;
  letter-spacing: -0.02em;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; gap: 20px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--text); }

/* Accueil : bandeau principal */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 48px;
  padding-top: 40px;
  padding-bottom: 72px;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 12px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.hero h1 { font-size: clamp(40px, 6.4vw, 72px); }
.hero h1 em { font-style: normal; color: var(--lime); }
.lede { margin-top: 20px; max-width: 34em; color: var(--muted); font-size: 19px; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.store {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 56px;
  padding: 8px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  line-height: 1.25;
}
.store small { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.store strong { font-size: 17px; }
.store.primary { background: var(--lime); border-color: var(--lime); color: var(--on-accent); }
.store.primary small { color: rgba(15, 16, 20, 0.7); }

.phone {
  justify-self: center;
  width: min(300px, 100%);
  aspect-ratio: 886 / 1920;
  padding: 10px;
  border-radius: 46px;
  background: #050507;
  border: 1.5px solid var(--border);
  box-shadow: 0 30px 80px rgba(214, 247, 76, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.02);
}
.phone video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 36px; background: var(--bg); }

/* Sections */
.section { padding-top: 72px; padding-bottom: 72px; border-top: 1px solid var(--border); }
.section > h2 { font-size: clamp(30px, 4.4vw, 44px); max-width: 18em; }
.section > .lede { margin-top: 14px; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1.5px solid var(--border);
}
.card h3 { font-size: 22px; margin-bottom: 8px; }
.card p { color: var(--muted); }
.steps .card::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--lime);
  color: var(--on-accent);
  font: 700 20px/1 'Space Grotesk', sans-serif;
}

.rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}
.rule-value { display: block; margin-bottom: 6px; color: var(--lime); font: 700 34px/1 'Space Grotesk', sans-serif; }

.titles { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.titles li {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  font-weight: 600;
  font-size: 15px;
}

.promise {
  display: grid;
  gap: 12px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--lime);
  color: var(--on-accent);
}
.promise h2 { font-size: clamp(28px, 4vw, 40px); }
.promise p { font-size: 18px; max-width: 40em; }

/* Pages de texte (aide, confidentialité) */
.doc { max-width: 720px; padding-top: 32px; padding-bottom: 72px; }
.doc h1 { font-size: clamp(36px, 6vw, 52px); }
.doc .updated { margin-top: 12px; color: var(--muted); font-size: 15px; }
.doc h2 { margin-top: 48px; margin-bottom: 14px; font-size: 26px; }
.doc h3 { margin-top: 28px; margin-bottom: 8px; font-size: 19px; }
.doc p + p, .doc p + ul, .doc ul + p { margin-top: 12px; }
.doc ul { margin: 12px 0 0; padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.doc .intro { margin-top: 20px; color: var(--muted); font-size: 19px; }

.table-wrap { overflow-x: auto; margin-top: 16px; border: 1.5px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: 0; }
th { color: var(--muted); font-weight: 600; background: var(--surface); }

details {
  margin-top: 12px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1.5px solid var(--border);
}
summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--lime); font: 700 22px/1 'Space Grotesk', sans-serif; }
details[open] summary::after { content: '–'; }
details > div { padding: 0 20px 20px; color: var(--muted); }
details > div p + p { margin-top: 10px; }

.contact {
  margin-top: 48px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--lime);
}
.contact h2 { margin: 0 0 8px; }

/* Pied de page */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  padding-bottom: 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 15px;
}
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--text); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 16px; text-align: left; }
  .phone { width: min(260px, 80%); }
  .steps, .rules { grid-template-columns: 1fr; }
  .section { padding-top: 56px; padding-bottom: 56px; }
}

@media (max-width: 420px) {
  .nav { gap: 14px; }
  .store { flex: 1 1 100%; }
  .promise { padding: 24px; }
}

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