/* niqatouk — vitrine. Statique, sans JS : elle doit s'ouvrir vite sur un téléphone d'entrée
   de gamme en 3G. Les couleurs reprennent src/styles/tokens.css de l'application. */

:root {
  --paper: #faf7f2;
  --surface: #ffffff;
  --sunken: #f2ede5;
  --ink: #1f1a14;
  --muted: #5c5348;
  --line: #e4ddd2;
  --nom: #0e6e5c;
  --nom-dark: #0a5445;
  --nom-soft: #e7f2ef;
  --reward: #f2b705;
  --radius: 18px;
  --wrap: 1040px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Readex Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

h1, h2, h3 { line-height: 1.2; margin: 0; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(30px, 6vw, 48px); }
h2 { font-size: clamp(24px, 4.5vw, 34px); }
h3 { font-size: 19px; }
p { margin: 0; }
a { color: inherit; }

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

/* ---------- barre du haut ---------- */

.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-block-end: 1px solid var(--line);
}
.top__in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 20px; text-decoration: none; letter-spacing: -0.02em; }
.brand svg { flex: none; }
.top__sp { flex: 1; }
.top__lang { text-decoration: none; color: var(--muted); font-size: 15px; padding: 8px; border-radius: 10px; }
.top__lang:hover { color: var(--ink); background: var(--sunken); }
/* Sur un petit écran les trois éléments doivent tenir sur une ligne sans déborder. */
@media (max-width: 560px) {
  .top__in { gap: 8px; }
  .brand { font-size: 18px; }
  .top .btn { min-height: 44px; padding: 0 14px; font-size: 15px; }
  .top__lang { font-size: 14px; padding: 6px; }
}

/* ---------- boutons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px;
  border: 0; border-radius: 14px;
  font: inherit; font-weight: 600; text-decoration: none; text-align: center;
  cursor: pointer;
}
.btn--p { background: var(--nom); color: #fff; }
.btn--p:hover { background: var(--nom-dark); }
.btn--s { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn--s:hover { box-shadow: inset 0 0 0 2px var(--nom); }
.btn--lg { min-height: 60px; font-size: 18px; padding: 0 28px; }

/* ---------- héros ---------- */

.hero { padding-block: clamp(36px, 7vw, 76px) clamp(30px, 6vw, 64px); }
.hero__in { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero__in { grid-template-columns: 1.1fr 0.9fr; gap: 56px; } }
.hero p.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); margin-block-start: 18px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 28px; }
.hero__note { margin-block-start: 14px; font-size: 15px; color: var(--muted); }

/* la carte client, dessinée en CSS : aucune image à télécharger */
.demo { background: #16324a; border-radius: 26px; padding: 22px; color: #fff; box-shadow: 0 18px 40px rgba(31, 26, 20, 0.16); }
.demo__head { display: flex; align-items: center; gap: 12px; margin-block-end: 18px; }
.demo__logo { width: 42px; height: 42px; border-radius: 50%; background: #fff; color: #16324a; display: grid; place-items: center; font-weight: 700; flex: none; }
.demo__name { font-weight: 700; }
.demo__sub { font-size: 14px; opacity: 0.75; }
.stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.stamps i {
  aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.45);
  font-size: 15px; font-style: normal; color: rgba(255, 255, 255, 0.65);
}
.stamps i.on { background: #fff; color: #16324a; box-shadow: none; font-weight: 700; }
.stamps i.gift { box-shadow: inset 0 0 0 2px var(--reward); color: var(--reward); }
.demo__foot { margin-block-start: 18px; font-size: 15px; opacity: 0.9; }

/* ---------- sections ---------- */

section { padding-block: clamp(40px, 7vw, 72px); }
.sec--alt { background: var(--surface); border-block: 1px solid var(--line); }
.sec__lead { color: var(--muted); margin-block-start: 12px; max-width: 58ch; }

.steps { display: grid; gap: 20px; margin-block-start: 34px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; }
.sec--alt .step { background: var(--paper); }
.step__n {
  width: 38px; height: 38px; border-radius: 50%; background: var(--nom-soft); color: var(--nom);
  display: grid; place-items: center; font-weight: 700; margin-block-end: 14px;
}
.step p { color: var(--muted); margin-block-start: 8px; font-size: 16px; }

.grid4 { display: grid; gap: 18px; margin-block-start: 34px; }
@media (min-width: 680px) { .grid4 { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.sec--alt .card { background: var(--paper); }
.card p { color: var(--muted); margin-block-start: 8px; font-size: 16px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 28px; }
.chip { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; font-size: 16px; }
.sec--alt .chip { background: var(--paper); }

/* ---------- prix ---------- */

.price { background: var(--nom); color: #fff; border-radius: 24px; padding: clamp(26px, 5vw, 44px); display: grid; gap: 22px; align-items: center; }
@media (min-width: 820px) { .price { grid-template-columns: 1.2fr 0.8fr; } }
.price h2 { color: #fff; }
.price p { color: rgba(255, 255, 255, 0.88); margin-block-start: 12px; }
.price .btn--p { background: #fff; color: var(--nom); }
.price .btn--p:hover { background: #f1fbf8; }
.price ul { margin: 0; padding-inline-start: 20px; color: rgba(255, 255, 255, 0.88); }
.price li { margin-block: 6px; }

/* ---------- faq ---------- */

.faq { display: grid; gap: 14px; margin-block-start: 30px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.sec--alt .faq details { background: var(--paper); }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: inline-end; color: var(--nom); font-weight: 700; }
.faq details[open] summary::after { content: '–'; }
.faq p { color: var(--muted); margin-block-start: 10px; font-size: 16px; }

/* ---------- contact + pied ---------- */

.contact { text-align: center; }
.contact__btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-block-start: 24px; }

.foot { border-block-start: 1px solid var(--line); padding-block: 28px; color: var(--muted); font-size: 15px; }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }

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