/* Débloquiz — feuille de style unique du site vitrine (mobile d'abord, sans dépendance). */

@font-face {
  font-family: "Fredoka";
  src: url("/assets/fonts/fredoka.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --violet: #6C4CF1;
  --violet-dark: #5134D4;
  --violet-soft: #F1EDFF;
  --yellow: #FFC93C;
  --yellow-soft: #FFF5D9;
  --coral: #FF6B6B;
  --coral-soft: #FFEBEB;
  --mint: #2EC4B6;
  --mint-soft: #E0F7F5;
  --ink: #24243A;
  --ink-soft: #55556E;
  --bg: #FFFFFF;
  --radius: 24px;
  --font-title: "Fredoka", ui-rounded, "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --font-body: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-title);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 7vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 5vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

a { color: var(--violet-dark); text-underline-offset: .15em; }
a:hover { color: var(--violet); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 12px;
}
.skip:focus { top: 12px; color: #fff; }

/* ---------- En-tête ---------- */
.site-header { background: var(--bg); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand img { height: 52px; width: auto; }
.header-nav { display: flex; align-items: center; gap: 22px; }
.nav-links { display: none; gap: 22px; }
.nav-links a { color: var(--ink); font-weight: 700; text-decoration: none; }
.nav-links a:hover { color: var(--violet); }
.nav-links a[aria-current] { color: var(--violet); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }

.lang { display: inline-flex; background: var(--violet-soft); border-radius: 999px; padding: 4px; font-weight: 800; font-size: .9rem; }
.lang a, .lang span { padding: 4px 12px; border-radius: 999px; text-decoration: none; line-height: 1.5; }
.lang a { color: var(--violet-dark); }
.lang a:hover { background: #fff; }
.lang [aria-current] { background: var(--violet); color: #fff; }

/* ---------- Héros ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 201, 60, .35) 0 90px, transparent 91px),
    radial-gradient(circle at 0% 100%, rgba(46, 196, 182, .22) 0 110px, transparent 111px),
    var(--violet-soft);
  border-radius: 0 0 40px 40px;
  padding: 28px 0 48px;
}
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero-art { position: relative; justify-self: center; width: min(62vw, 240px); }
.hero-art img { width: 100%; transform: rotate(-4deg); filter: drop-shadow(0 18px 30px rgba(108, 76, 241, .28)); }
.bubble {
  position: absolute; top: -6px; right: -34px;
  background: #fff; color: var(--ink);
  font-family: var(--font-title); font-weight: 600; font-size: 1.15rem;
  padding: 8px 16px; border-radius: 20px 20px 20px 6px;
  box-shadow: 0 8px 20px rgba(36, 36, 58, .12);
  transform: rotate(5deg);
  white-space: nowrap;
}
.timer {
  position: absolute; bottom: 4px; left: -22px;
  background: var(--coral); color: var(--ink);
  font-family: var(--font-title); font-weight: 600; font-size: 1.1rem;
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  border: 4px solid #fff;
  transform: rotate(-8deg);
}
.eyebrow {
  display: inline-block; margin-bottom: 14px;
  background: #fff; color: var(--violet-dark);
  font-weight: 800; font-size: .9rem;
  padding: 4px 14px; border-radius: 999px;
}
.hero h1 .hl { color: var(--violet); }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 36em; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 20px 0 0; }
.chips li { background: #fff; border-radius: 999px; padding: 4px 14px; font-weight: 700; font-size: .95rem; }
.chips li::before { content: "✓ "; color: var(--mint); font-weight: 900; }

/* Bouton « Google Play » (placeholder : à remplacer par le badge officiel à la publication) */
.btn-play {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: #fff; text-decoration: none;
  padding: 10px 22px 10px 16px; border-radius: 16px;
  box-shadow: 0 6px 0 rgba(36, 36, 58, .18);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-play:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 8px 0 rgba(36, 36, 58, .18); }
.btn-play svg { width: 30px; height: 30px; flex: none; }
.btn-play small { display: block; font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; opacity: .85; line-height: 1.2; }
.btn-play strong { display: block; font-family: var(--font-title); font-weight: 600; font-size: 1.35rem; line-height: 1.15; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section + .section { padding-top: 0; }
.section-head { text-align: center; max-width: 40em; margin: 0 auto 36px; }
.section-head p { color: var(--ink-soft); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.step { background: var(--bg); border: 2px solid var(--violet-soft); border-radius: var(--radius); padding: 26px 24px 22px; }
.step-num {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 18px; margin-bottom: 14px;
  font-family: var(--font-title); font-weight: 600; font-size: 1.6rem;
  background: var(--violet); color: #fff;
}
.step:nth-child(2) .step-num { background: var(--yellow); color: var(--ink); }
.step:nth-child(3) .step-num { background: var(--mint); color: var(--ink); }
.step p { margin: 0; color: var(--ink-soft); }

.features { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature { background: var(--violet-soft); border-radius: var(--radius); padding: 22px; }
.feature:nth-child(4n+2) { background: var(--yellow-soft); }
.feature:nth-child(4n+3) { background: var(--mint-soft); }
.feature:nth-child(4n+4) { background: var(--coral-soft); }
.feature h3 { font-size: 1.15rem; margin-bottom: .35em; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
.icon {
  width: 46px; height: 46px; border-radius: 15px; margin-bottom: 12px;
  display: grid; place-items: center; background: #fff; color: var(--violet);
}
.icon svg { width: 26px; height: 26px; }
.feature:nth-child(4n+2) .icon { color: #B07D00; }
.feature:nth-child(4n+3) .icon { color: #12857A; }
.feature:nth-child(4n+4) .icon { color: #D63E3E; }
.answer { font-family: var(--font-title); font-weight: 600; color: var(--ink); white-space: nowrap; }

/* Captures d'écran : défilement horizontal sur mobile, grille sur desktop */
.shots {
  list-style: none; margin: 0; padding: 4px 4px 16px;
  display: grid; grid-auto-flow: column; grid-auto-columns: 62%;
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
}
.shots li { scroll-snap-align: center; text-align: center; }
.shots figure { margin: 0; }
.shots figcaption { margin-top: 10px; font-weight: 700; }
.phone {
  aspect-ratio: 9 / 19.5;
  border: 8px solid var(--ink); border-radius: 34px;
  background: var(--violet-soft); overflow: hidden;
}
.phone img { width: 100%; height: 100%; object-fit: cover; }
.shot-placeholder {
  height: 100%; display: grid; place-items: center; padding: 16px;
  color: var(--ink-soft); font-weight: 700; font-size: .9rem;
  background: repeating-linear-gradient(-45deg, transparent 0 14px, rgba(108, 76, 241, .06) 14px 28px);
}
.shots li:nth-child(2) .phone { background: var(--yellow-soft); }
.shots li:nth-child(3) .phone { background: var(--mint-soft); }
.shots li:nth-child(4) .phone { background: var(--coral-soft); }

/* Bandeau « 100 % local » */
.privacy-band {
  background: var(--violet); color: #fff;
  border-radius: 32px; padding: 36px 24px;
  display: grid; gap: 16px; align-items: center;
}
.privacy-band h2 { color: #fff; }
.privacy-band p { color: #fff; margin: 0; }
.privacy-band a { color: var(--yellow); font-weight: 800; }
.privacy-band a:hover { color: #fff; }

.cta { text-align: center; }
.cta img { width: 96px; margin: 0 auto 16px; }

/* ---------- Pages de texte (confidentialité, mentions légales) ---------- */
.doc { max-width: 760px; padding-top: 24px; padding-bottom: 64px; }
.doc h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); }
.doc h2 { font-size: 1.45rem; margin-top: 1.8em; }
.doc h3 { font-size: 1.1rem; margin-top: 1.2em; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: .4em; }
.updated { color: var(--ink-soft); font-weight: 700; }
.summary { background: var(--mint-soft); border-radius: var(--radius); padding: 20px 24px; margin: 24px 0; }
.doc .summary h2 { margin-top: 0; font-size: 1.2rem; }
.summary ul { margin: 0; }
.perm { background: var(--violet-soft); border-radius: 18px; padding: 16px 20px; margin: 12px 0; }
.perm h3 { margin-top: 0; }
.perm p { margin: 0; }
.perm code { font-size: .85em; color: var(--ink-soft); overflow-wrap: anywhere; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: #E6E6F2; padding: 40px 0; margin-top: 32px; }
.footer-inner { display: grid; gap: 18px; }
.site-footer a { color: var(--yellow); }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 700; }
.site-footer small { opacity: .8; }

/* ---------- Écrans plus larges ---------- */
@media (min-width: 720px) {
  .nav-links { display: flex; }
  .hero { padding: 40px 0 72px; border-radius: 0 0 56px 56px; }
  .hero-grid { grid-template-columns: 1.25fr 1fr; gap: 40px; }
  .hero-art { width: min(100%, 340px); order: 2; }
  .bubble { font-size: 1.5rem; right: -40px; }
  .timer { width: 78px; height: 78px; font-size: 1.3rem; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .shots { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 220px)); justify-content: center; gap: 32px; overflow: visible; padding: 0; }
  .privacy-band { grid-template-columns: 1.4fr 1fr; padding: 48px; }
  .footer-inner { grid-template-columns: 1fr auto; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn-play { transition: none; }
}
