/* Site vitrine Tizzit — jetons repris de apps/mobile/src/theme/tokens.ts (aucune couleur hors de cette liste). */

@font-face { font-family: 'Bricolage Grotesque'; font-weight: 800; font-display: swap; src: url('/fonts/BricolageGrotesque_800ExtraBold.ttf') format('truetype'); }
@font-face { font-family: 'Outfit'; font-weight: 400; font-display: swap; src: url('/fonts/Outfit_400Regular.ttf') format('truetype'); }
@font-face { font-family: 'Outfit'; font-weight: 500; font-display: swap; src: url('/fonts/Outfit_500Medium.ttf') format('truetype'); }
@font-face { font-family: 'Outfit'; font-weight: 600; font-display: swap; src: url('/fonts/Outfit_600SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Outfit'; font-weight: 700; font-display: swap; src: url('/fonts/Outfit_700Bold.ttf') format('truetype'); }
@font-face { font-family: 'Space Mono'; font-weight: 700; font-display: swap; src: url('/fonts/SpaceMono_700Bold.ttf') format('truetype'); }

:root {
  --canvas: #FFF9F4; --surface: #FFFFFF; --surface-alt: #F4EDE5; --border: #EFE6DC; --divider: #F2E9DF;
  --text: #221C2E; --muted: #6E6580; --faint: #A097AE; --placeholder: #C6BED2;
  --accent: #7A5AF8; --accent-dark: #5C3BE0; --accent-soft: #EFEAFF; --accent-soft-text: #4A2CC7; --accent-border: #E7DFF6;
  --bubble-in: #FFFFFF; --bubble-in-border: #F0E5D9; --success: #2E9E86; --shadow: rgba(122, 90, 248, 0.32);
  --dark-canvas: #16121F; --dark-surface: #241E33; --dark-text: #F5F0FF; --dark-muted: #A79BC0; --dark-border: #322A45;
  --marigold: #FFB020; --coral: #FF5D73; --mint: #2ED3B7; --sky: #7ED9F3; --lilac: #B49BFF;
  --display: 'Bricolage Grotesque', system-ui, sans-serif; --body: 'Outfit', system-ui, sans-serif; --mono: 'Space Mono', ui-monospace, monospace;
  --radius: 20px; --pill: 999px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #16121F; --surface: #241E33; --surface-alt: #2A2338; --border: #2A2338; --divider: #322A45;
    --text: #F5F0FF; --muted: #A79BC0; --faint: #8A7DA6; --placeholder: #6F6488;
    --accent-dark: #B49BFF; --accent-soft: #2E2545; --accent-soft-text: #B49BFF; --accent-border: #3A2F55;
    --bubble-in: #241E33; --bubble-in-border: #322A45; --success: #2ED3B7; --shadow: rgba(122, 90, 248, 0.4);
    --dark-canvas: #241E33; --dark-surface: #2A2338; --dark-border: #3A2F55;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.55; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(38px, 6vw, 68px); letter-spacing: -0.035em; }
h2 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.03em; }
h3 { font-size: 20px; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.container.narrow { max-width: 720px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: var(--pill); z-index: 10; }
.skip:focus { left: 8px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: var(--pill); background: var(--accent); color: #fff; font-weight: 700; font-size: 16px; line-height: 1.2; white-space: nowrap; transition: transform 0.12s ease, box-shadow 0.12s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 10px 24px -12px var(--shadow); }
.btn-small { padding: 10px 18px; font-size: 15px; }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-store { flex-direction: column; gap: 2px; align-items: flex-start; }
.btn-store small { font-weight: 500; font-size: 12px; opacity: 0.8; }
.btn-soon { background: var(--accent-soft); color: var(--accent-soft-text); cursor: default; }
.btn-soon:hover { transform: none; box-shadow: none; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--canvas) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--divider); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; color: var(--text); }
.brand:hover { text-decoration: none; }
.mark { border-radius: 30%; flex: none; }
.nav nav { display: flex; align-items: center; gap: 22px; font-weight: 600; font-size: 15px; }
.nav nav a { color: var(--muted); }
.nav nav a.btn { color: #fff; }
@media (max-width: 640px) { .nav nav { gap: 14px; } .nav nav a:not(.btn):not([data-lang]) { display: none; } }

/* Héros */
.hero { padding: clamp(40px, 8vw, 96px) 0 clamp(32px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.kicker { font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-dark); }
.lead { font-size: clamp(18px, 2vw, 22px); line-height: 1.45; color: var(--muted); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.cta-center { justify-content: center; margin-top: 22px; }
.cta-note { font-size: 14px; color: var(--muted); max-width: 40em; } /* --muted, pas --faint : contraste AA sur --canvas */
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* Captures de l'app dans un cadre de téléphone (site/public/screens/{fr,en}, 660 × 1434) */
.hero-visual { display: flex; justify-content: center; }
.shot { width: 100%; max-width: 300px; padding: 7px; border-radius: 40px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 28px 56px -32px rgba(34, 28, 46, 0.55), 0 2px 8px -4px rgba(34, 28, 46, 0.14); }
@media (prefers-color-scheme: dark) { .shot { box-shadow: 0 28px 56px -30px rgba(0, 0, 0, 0.7); } }
.shot img { width: 100%; height: auto; border-radius: 33px; background: var(--surface-alt); }
/* Section « un groupe, pas un réseau social » : la même capture, cadrée sur la carte de vote. */
.shot-crop { border-radius: 30px; }
.shot-crop img { aspect-ratio: 660 / 640; object-fit: cover; object-position: top; border-radius: 23px; }
.hero-visual .shot { max-width: 320px; }
.shots { display: flex; justify-content: center; min-width: 0; }
.shots-row { gap: clamp(16px, 3vw, 32px); margin-top: clamp(32px, 5vw, 48px); align-items: flex-start; }
.shots-row .shot { flex: 1 1 0; }
@media (max-width: 780px) {
  .shots-row { justify-content: flex-start; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; gap: 16px; padding-bottom: 14px; }
  .shots-row .shot { flex: 0 0 min(72%, 260px); scroll-snap-align: center; }
}
.shots-row:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 8px; border-radius: 12px; }

/* Sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section h2 { max-width: 16em; }
.section-lead { margin-top: 16px; font-size: 19px; line-height: 1.5; color: var(--muted); max-width: 40em; }
.section-alt { background: var(--surface-alt); }
.section-dark { background: var(--dark-canvas); color: var(--dark-text); }
.section-dark .section-lead { color: var(--dark-muted); }
.section-dark .step p { color: var(--dark-muted); }
.section-dark .code { background: var(--dark-surface); border-color: var(--dark-border); color: var(--dark-text); }

/* Sections « texte + capture(s) », en alternance */
.feature-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature-copy h2 { max-width: 13em; }
.feature-flip .feature-copy { order: 2; }
.feature-flip .shots { order: 1; }
.feature-wide .feature-grid { grid-template-columns: 1fr; gap: 0; }
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature-flip .feature-copy, .feature-flip .shots { order: 0; }
  .feature-grid > .shots { margin-top: clamp(28px, 5vw, 40px); }
}

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; counter-reset: step; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 16px; }
.step-n { flex: none; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent-soft-text); font-family: var(--display); font-weight: 800; font-size: 18px; }
.code { display: inline-block; margin-top: 14px; font-family: var(--mono); font-size: 22px; letter-spacing: 0.22em; padding: 10px 14px 10px 18px; border: 1px dashed var(--accent-border); border-radius: 14px; background: var(--surface); color: var(--text); }
.link-arrow { font-weight: 700; margin-top: 18px; display: inline-block; }
.link-arrow::after { content: ' →'; }
.closing { text-align: center; }
.closing h2, .closing .section-lead { margin-left: auto; margin-right: auto; }

/* Pages de texte */
.prose { max-width: 720px; padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.prose h1 { font-size: clamp(34px, 5vw, 52px); }
.prose .updated { margin-top: 12px; font-size: 14px; color: var(--muted); }
.prose .lead { margin-top: 20px; }
.prose h2 { font-size: 26px; margin-top: 44px; margin-bottom: 12px; }
.prose h3 { font-size: 19px; margin-top: 28px; margin-bottom: 8px; }
.prose p, .prose li { color: var(--text); }
.prose p + p { margin-top: 12px; }
.prose ul { list-style: disc; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.prose a { text-decoration: underline; text-decoration-color: var(--accent-border); text-underline-offset: 3px; }
.faq p { color: var(--muted); }

/* Pied de page */
.site-footer { border-top: 1px solid var(--divider); padding: 36px 0 44px; font-size: 15px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-row nav { display: flex; gap: 20px; flex-wrap: wrap; font-weight: 600; }
.footer-row nav a { color: var(--muted); }
.footer-meta { margin-top: 18px; color: var(--muted); font-size: 14px; }

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