@font-face { font-family: 'Space Grotesk'; font-weight: 700; font-display: swap; src: url("../fonts/space-grotesk-700-SNsywT4.woff2") format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url("../fonts/inter-400-poxsSdI.woff2") format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url("../fonts/inter-700-_eucScQ.woff2") format('woff2'); }

:root {
  --bg: #0B0B0B;
  --surface: #1A1A1D;
  --surface-2: #26262B;
  --text: #F4F1EA;
  --muted: #9A978F;
  --accent: #F5A623;
  --accent-ink: #0B0B0B;
  --ok: #3DDC84;
  --ko: #FF5A5F;
  --radius: 16px;
  --tap: 48px;
  --font-title: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* La carte swipe est lancée hors écran : pas de défilement horizontal sur mobile */
html, body { overflow-x: clip; }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--text);
  font: 400 1rem/1.5 var(--font-body);
  display: flex; flex-direction: column;
}
h1, h2, h3 { font-family: var(--font-title); line-height: 1.1; margin: 0; }
h1 { font-size: clamp(1.8rem, 7vw, 2.6rem); }
a { color: var(--accent); }
img { max-width: 100%; }

.page { width: 100%; max-width: 480px; margin: 0 auto; padding: 16px; flex: 1; }
.stack > * + * { margin-top: 16px; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.center { text-align: center; }

.site-header { display: flex; justify-content: center; padding: 20px 16px 8px; }
.price-tag {
  display: inline-block; background: #fff; padding: 10px 18px 8px; border-radius: 12px;
  transform: rotate(-3deg); box-shadow: 0 6px 0 var(--accent), 0 12px 24px rgb(0 0 0 / .5);
  position: relative;
}
.price-tag::before {
  content: ''; position: absolute; left: 8px; top: 50%; width: 8px; height: 8px; margin-top: -4px;
  border-radius: 50%; background: var(--bg);
}
.price-tag img { display: block; height: 56px; width: auto; margin-left: 10px; }
.price-tag--big img { height: 120px; }

.site-footer { padding: 24px 16px; text-align: center; font-size: .85rem; color: var(--muted); }
.site-footer a { color: var(--muted); }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); width: 100%; padding: 12px 20px; border: 0; border-radius: 999px;
  font: 700 1.05rem var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .1s ease;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--ghost { background: transparent; color: var(--text); border: 2px solid var(--surface-2); }
.btn[disabled] { opacity: .5; }

.card { background: var(--surface); border-radius: var(--radius); padding: 20px; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); font-size: .8rem; font-weight: 700; }
.badge--accent { background: var(--accent); color: var(--accent-ink); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; }
.field input[type=email], .field input[type=text], .field select {
  min-height: var(--tap); padding: 10px 14px; border-radius: 12px; border: 2px solid var(--surface-2);
  background: var(--surface); color: var(--text); font: inherit;
}
.field select {
  appearance: none; color-scheme: dark; padding-right: 40px; cursor: pointer;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23F5A623' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field__check { flex-direction: row; align-items: flex-start; gap: 10px; }
.field__check input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; margin-top: 2px; }
.field__check label { font-weight: 400; }
.field__error, .field ul { color: var(--ko); font-size: .9rem; margin: 0; padding: 0; list-style: none; }

.flash { padding: 12px 16px; border-radius: 12px; font-weight: 700; }
.flash--success { background: var(--ok); color: var(--accent-ink); }
.flash--error { background: var(--ko); color: #fff; }

.mascot { display: block; margin: 0 auto; overflow: visible; }
.mascot__body { transform-origin: 50% 90%; }
.mascot--happy .mascot__body { animation: hop .6s ease-in-out infinite alternate; }
.mascot--party .mascot__body { animation: hop .3s ease-in-out infinite alternate; }
.mascot--sad .mascot__body { transform: rotate(-8deg) translateY(4px); }
.mascot--thinking .mascot__pupil { transform: translate(-2px, -3px); }
.mascot--sad .mascot__pupil { transform: translateY(3px); }
@keyframes hop { from { transform: translateY(0); } to { transform: translateY(-8px); } }

.tracking { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }
.tracking__step { height: 8px; border-radius: 4px; background: var(--surface-2); }
.tracking__step--done { background: var(--accent); }
.tracking__step--current { background: var(--text); }
.tracking__label { font-size: .85rem; color: var(--muted); display: flex; justify-content: space-between; }

.timer { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.timer__bar { height: 100%; background: var(--accent); transform-origin: left; }

.choices { display: grid; gap: 10px; }
.choice {
  min-height: 56px; padding: 12px 16px; border-radius: 14px; border: 2px solid var(--surface-2);
  background: var(--surface); color: var(--text); font: 700 1rem var(--font-body); text-align: left; cursor: pointer;
}
.choice--correct { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 20%, var(--surface)); }
.choice--wrong { border-color: var(--ko); background: color-mix(in srgb, var(--ko) 20%, var(--surface)); }

.swipe-zone { position: relative; height: 280px; touch-action: pan-y; user-select: none; }
.swipe-card {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: var(--surface); border-radius: 20px; border: 2px solid var(--surface-2);
  font: 700 1.2rem/1.35 var(--font-title); text-align: center; will-change: transform;
}
.swipe-card img { max-height: 120px; border-radius: 12px; margin-bottom: 12px; }
.swipe-hint { display: flex; justify-content: space-between; font-weight: 700; }
.swipe-hint__left { color: var(--ko); }
.swipe-hint__right { color: var(--ok); }
.swipe-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.slider { width: 100%; accent-color: var(--accent); height: var(--tap); }
.slider-value { font: 700 2.4rem var(--font-title); text-align: center; color: var(--accent); }

.feedback { text-align: center; }
.feedback__points { font: 700 2rem var(--font-title); }
.feedback--ok .feedback__points { color: var(--ok); }
.feedback--ko .feedback__points { color: var(--ko); }

.leaderboard { width: 100%; border-collapse: collapse; }
.leaderboard td, .leaderboard th { padding: 10px 8px; text-align: left; }
.leaderboard th { color: var(--muted); font-size: .8rem; text-transform: uppercase; }
.leaderboard tr + tr td { border-top: 1px solid var(--surface-2); }
.leaderboard td:last-child, .leaderboard th:last-child { text-align: right; font-weight: 700; }
.leaderboard__rank { font: 700 1.1rem var(--font-title); width: 3ch; }
/* Listes de gagnants : le rang est déjà écrit dans le texte, pas de numérotation automatique */
ol.leaderboard { list-style: none; margin: 0; padding: 0; }
ol.leaderboard li + li { margin-top: 6px; }
.leaderboard__row--prize .leaderboard__rank { color: var(--accent); }
.leaderboard__row--me td { background: color-mix(in srgb, var(--accent) 18%, transparent); }

.screen { padding: 32px 48px; font-size: 1.6rem; }
.screen__header { display: flex; align-items: center; gap: 32px; }
.screen__header .mascot { margin: 0; }
.screen-mode .page { max-width: none; }
.screen h1 { font-size: 3.5rem; }
.screen .leaderboard td { padding: 16px; }

.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 10; }

.countdown-number { margin: 0; font: 700 6rem/1 var(--font-title); color: var(--accent); }

/* 4 s : durée commune à toutes les animations .demo (à garder synchrone) */
@property --demo-n { syntax: '<integer>'; initial-value: 0; inherits: false; }
.demo { position: relative; height: 120px; display: grid; place-items: center; border-radius: 12px; background: var(--bg); overflow: hidden; }
.demo__tag { position: absolute; top: 6px; left: 8px; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

.demo-swipe { display: flex; align-items: center; gap: 20px; font-size: .8rem; font-weight: 700; }
.demo-swipe__card { width: 110px; padding: 18px 10px; border-radius: 12px; background: var(--surface-2); font-size: .8rem; font-weight: 400; animation: demo-swipe-card 4s ease-in-out infinite; }
.demo-swipe__label { position: relative; z-index: 1; color: var(--muted); }
.demo-swipe__label--ok { animation: demo-swipe-ok 4s infinite; }
.demo-swipe__label--ko { animation: demo-swipe-ko 4s infinite; }
@keyframes demo-swipe-card {
  0%, 10%, 45%, 55%, 90%, 100% { transform: none; opacity: 1; }
  30% { transform: translateX(36px) rotate(10deg); opacity: .35; }
  75% { transform: translateX(-36px) rotate(-10deg); opacity: .35; }
}
@keyframes demo-swipe-ok { 0%, 15%, 40%, 100% { color: var(--muted); } 22%, 35% { color: var(--ok); } }
@keyframes demo-swipe-ko { 0%, 60%, 85%, 100% { color: var(--muted); } 67%, 80% { color: var(--ko); } }

.demo-quiz { position: relative; display: grid; grid-template-columns: 70px 70px; gap: 8px; }
.demo-quiz__choice { height: 26px; border-radius: 8px; background: var(--surface-2); }
.demo-quiz__choice--pick { animation: demo-quiz-pick 4s infinite; }
.demo-quiz__finger { position: absolute; width: 18px; height: 18px; border-radius: 50%; background: var(--text); opacity: .8; top: 70px; left: 20px; animation: demo-quiz-finger 4s ease-in-out infinite; }
@keyframes demo-quiz-pick { 0%, 45%, 95%, 100% { background: var(--surface-2); } 50%, 90% { background: var(--ok); } }
@keyframes demo-quiz-finger {
  0%, 10% { top: 70px; left: 20px; opacity: 0; }
  20% { opacity: .8; }
  40%, 50% { top: 4px; left: 104px; opacity: .8; transform: scale(1); }
  45% { transform: scale(.7); }
  70%, 100% { top: 4px; left: 104px; opacity: 0; }
}

.demo-estimate { width: 180px; display: grid; gap: 8px; justify-items: center; }
.demo-estimate__value { margin: 0; font: 700 1.2rem var(--font-title); color: var(--accent); }
.demo-estimate__num { --demo-n: 0; counter-reset: demo-n var(--demo-n); animation: demo-estimate-num 4s ease-in-out infinite; }
.demo-estimate__num::before { content: counter(demo-n); }
.demo-estimate__track { position: relative; width: 100%; height: 6px; border-radius: 3px; background: var(--surface-2); }
.demo-estimate__thumb { position: absolute; top: -6px; left: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); animation: demo-estimate-thumb 4s ease-in-out infinite; }
.demo-estimate__btn { font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); animation: demo-estimate-btn 4s infinite; }
@keyframes demo-estimate-num { 0%, 10% { --demo-n: 0; } 45%, 100% { --demo-n: 42; } }
@keyframes demo-estimate-thumb { 0%, 10% { left: 0; } 45%, 100% { left: calc(42% - 9px); } }
@keyframes demo-estimate-btn { 0%, 55%, 90%, 100% { background: var(--surface-2); color: var(--text); transform: none; } 65%, 80% { background: var(--accent); color: var(--accent-ink); transform: scale(1.08); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .demo-swipe__card { transform: translateX(30px) rotate(6deg); }
  .demo-swipe__label--ok { color: var(--ok); }
  .demo-quiz__choice--pick { background: var(--ok); }
  .demo-quiz__finger { display: none; }
  .demo-estimate__num { --demo-n: 42; }
  .demo-estimate__thumb { left: calc(42% - 9px); }
  .demo-estimate__btn { background: var(--accent); color: var(--accent-ink); }
}

/* Couleurs officielles des marques */
.social-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 12px; }
.social-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; border-radius: 999px; transition: transform .15s ease; }
.social-link:hover, .social-link:focus-visible { transform: scale(1.08); }
.social-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.social-link__icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; }
.social-link--linkedin .social-link__icon { background: #0A66C2; }
.social-link--website .social-link__icon { background: var(--accent); color: var(--accent-ink); }
.social-links--labelled .social-link { min-height: var(--tap); padding: 6px 16px 6px 6px; background: var(--surface-2); color: var(--text); font-weight: 700; }
.social-links--labelled .social-link__icon { width: 40px; height: 40px; }
.company-cta__title { margin: 0; font-weight: 700; }

/* Landing pages de session (arrivée / fin) : blocs rédigés dans l'admin */
.landing .page { max-width: 640px; }
.landing .page > * + * { margin-top: 40px; }
.landing h2 { font-size: 1.35rem; }
.landing-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--surface-2); background: var(--surface); color: var(--muted); font-size: .8rem;
}
.landing-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.landing-pill--accent { border-color: var(--accent); color: var(--accent); }
.landing-pill--accent::before { background: var(--accent); }
.landing-hero > * + * { margin-top: 16px; }
.landing-hero h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
.landing-hero h1 .accent { display: block; }
.landing-hero p { margin-bottom: 0; }
.landing-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.landing-stat {
  flex: 0 1 140px; display: flex; flex-direction: column; padding: 12px; border-radius: 12px;
  border: 1px solid var(--surface-2); background: var(--surface);
}
.landing-stat strong { font-size: 1.1rem; }
.landing-stat span { color: var(--muted); font-size: .8rem; }
.landing-section > * + * { margin-top: 12px; }
.landing-section p { margin-bottom: 0; }
.landing-prizes > * + * { margin-top: 12px; }
.landing-cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.landing-card {
  display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 12px;
  border: 1px solid var(--surface-2); background: var(--surface);
}
.landing-card h3 { font-size: 1rem; }
.landing-card p { margin: 0; }
.landing-card__eyebrow { color: var(--accent); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.landing-card__text { color: var(--muted); font-size: .9rem; }
.landing-card__link { margin-top: auto !important; padding-top: 8px; color: var(--text); font-size: .9rem; font-weight: 700; text-decoration: none; }
.landing-card--soon { background: transparent; border-style: dashed; }
.landing-card--soon .landing-card__eyebrow { color: var(--muted); }
.landing-card--soon h3 { color: var(--muted); }
.landing-cta { padding: 24px; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); }
.landing-cta > * + * { margin-top: 12px; }
.landing-cta p { margin-bottom: 0; }
.landing-cta__actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.landing-cta__btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 20px; border-radius: 999px;
  border: 2px solid var(--accent-ink); color: var(--accent-ink); font-weight: 700; text-decoration: none;
}
.landing-cta__btn--primary { background: var(--accent-ink); color: var(--accent); }
.landing-stat--link { color: var(--text); text-decoration: none; border-color: var(--accent); }
.landing-stat--link strong { color: var(--accent); }
.landing-me { margin: 0; }

/* Mes scores */
.my-score__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.my-score__head h2 { font-size: 1.15rem; }
.my-score p { margin: 0; }
.leaderboard__gap td { text-align: center; color: var(--muted); }
