/* ==========================================================================
   Scorazone — site vitrine
   Tokens repris tels quels de l'app Flutter (lib/theme/app_colors.dart,
   app_text.dart, app_spacing.dart) pour que le site et l'app partagent
   exactement la même direction artistique : fond crème, dégradé flamme,
   Plus Jakarta Sans, formes très arrondies.

   Aucune capture d'écran ni maquette d'interface n'est utilisée sur ce site :
   tant qu'il n'existe pas de vrai visuel de l'app, la page repose sur la
   typographie, la couleur et la forme -- jamais sur une reconstitution
   d'écran qui donnerait à voir une app qui n'est pas celle-là.
   ========================================================================== */

:root {
  /* Couleurs — AppColors */
  --background: #FBF6F1;
  --surface: #FFFFFF;
  --text-primary: #241C15;
  --primary: #E8460B;
  --primary-light: #FF5A1F;
  --gradient-start: #FF7A3D;
  --gradient-end: #E8460B;
  --chip-bg: #F1EEE9;
  --track-bg: #EFE7DC;
  --chip-neutral-text: #6B6259;
  --highlight-bg: #FFE7D9;
  --highlight-bg-alt: #FFD8C2;
  --success: #2E9E4F;
  --inactive-icon: #9C9188;
  --surface-dark: #241C15;

  --text-secondary: rgba(36, 28, 21, 0.6);
  --text-tertiary: rgba(36, 28, 21, 0.5);
  --text-quaternary: rgba(36, 28, 21, 0.45);
  --border: rgba(36, 28, 21, 0.1);
  --border-subtle: rgba(36, 28, 21, 0.08);

  --gradient: linear-gradient(135deg, #FF7A3D 0%, #E8460B 100%);
  --gradient-h: linear-gradient(90deg, #FF7A3D 0%, #E8460B 100%);

  /* Rayons — AppColors §Rayons */
  --r-immersive: 32px;
  --r-feature: 26px;
  --r-card: 24px;
  --r-compact: 20px;
  --r-tile: 16px;
  --r-small: 8px;
  --r-pill: 999px;

  /* Ombres — AppColors §Ombres */
  --shadow-card: 0 12px 28px rgba(36, 28, 21, 0.06);
  --shadow-compact: 0 8px 20px rgba(36, 28, 21, 0.05);
  --shadow-pill: 0 4px 12px rgba(36, 28, 21, 0.08);
  --shadow-dark: 0 16px 34px rgba(36, 28, 21, 0.26);
  --shadow-primary: 0 10px 24px rgba(232, 70, 11, 0.32);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--highlight-bg-alt); color: var(--text-primary); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--r-small);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--surface);
  padding: 10px 18px;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-pill);
  font-weight: 700;
  z-index: 100;
}
.skip-link:focus { left: 20px; }

/* --- Typographie — échelle AppText ------------------------------------- */
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }

.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.section-title { font-size: clamp(26px, 4vw, 40px); }
.section-lead {
  margin-top: 14px;
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 620px;
}

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* --- Boutons — PrimaryButton / OutlinedButton --------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: var(--r-pill);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(232, 70, 11, 0.38); }
.btn-primary[disabled] { opacity: 0.55; cursor: default; transform: none; box-shadow: none; }

.btn-outline {
  background: var(--surface);
  color: var(--text-primary);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-pill);
}
.btn-outline:hover { transform: translateY(-2px); border-color: rgba(232, 70, 11, 0.35); }

.btn-dark {
  background: var(--surface-dark);
  color: #fff;
  box-shadow: var(--shadow-dark);
}
.btn-dark:hover { transform: translateY(-2px); }

.btn-sm { padding: 11px 20px; font-size: 14px; }

/* --- Pilules / chips ---------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: var(--highlight-bg);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--chip-bg);
  color: var(--chip-neutral-text);
  font-size: 13px;
  font-weight: 700;
}

/* --- En-tête ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 246, 241, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}
.site-header .wrap {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 38px; height: 38px; border-radius: 11px; }
.brand span { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.header-nav { display: flex; align-items: center; gap: 26px; }
.header-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}
.header-nav a:hover { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 12px; }

.lang-picker {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 7px 12px;
  box-shadow: var(--shadow-pill);
}
.lang-picker svg { width: 15px; height: 15px; color: var(--text-tertiary); }
.lang-picker select {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  outline: none;
}

/* --- Hero (typographique, sans visuel d'app) ---------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 56px;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  top: -280px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(circle, rgba(255, 122, 61, 0.2), rgba(255, 122, 61, 0) 62%);
  pointer-events: none;
}
.hero .wrap { position: relative; }

.hero-mark {
  width: 96px;
  height: 96px;
  margin: 0 auto 26px;
  border-radius: 24px;
  box-shadow: var(--shadow-card);
}
.hero h1 {
  margin-top: 22px;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.03;
}
.hero-sub {
  margin: 22px auto 0;
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 640px;
}
.hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Badges officiels App Store / Google Play. Les deux fichiers sont les
   artworks fournis par Apple et Google, utilisés sans aucune modification
   (leurs chartes de marque l'imposent : pas de recoloration, pas de
   redessin, pas d'étirement). Seule la hauteur est fixée -- la largeur suit
   le ratio propre à chaque badge, qui n'est pas le même des deux côtés,
   d'où deux largeurs finales légèrement différentes : c'est normal et
   conforme. L'espace de dégagement autour (gap) respecte le minimum d'un
   dixième de la hauteur du badge exigé par Apple. */
.store-badges {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.store-badges a {
  display: inline-flex;
  border-radius: var(--r-small);
  transition: transform 0.18s ease;
}
.store-badges a:hover { transform: translateY(-2px); }
.store-badges img { height: 54px; width: auto; }

@media (max-width: 400px) {
  .store-badges img { height: 46px; }
}
.hero-note {
  margin: 20px auto 0;
  max-width: 560px;
  font-size: 13px;
  color: var(--text-tertiary);
}

.sports-strip {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* --- Sections ----------------------------------------------------------- */
.section { padding: 72px 0; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .section-lead { margin-left: auto; margin-right: auto; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface);
  border-radius: var(--r-feature);
  box-shadow: var(--shadow-card);
  padding: 28px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(36, 28, 21, 0.09); }
.card-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-tile);
  background: var(--highlight-bg);
  color: var(--primary);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--text-secondary); }

/* --- Étapes ------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-compact);
  padding: 26px;
}
.step-num {
  width: 34px; height: 34px;
  border-radius: var(--r-pill);
  background: var(--gradient);
  color: #fff;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 800;
  margin-bottom: 16px;
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--text-secondary); }

/* --- Bloc sombre immersif ----------------------------------------------- */
.dark-block {
  background: var(--surface-dark);
  color: #fff;
  border-radius: var(--r-immersive);
  padding: 56px 48px;
  box-shadow: var(--shadow-dark);
  position: relative;
  overflow: hidden;
}
.dark-block::after {
  content: '';
  position: absolute;
  right: -120px; top: -120px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(255, 122, 61, 0.28), rgba(255, 122, 61, 0) 68%);
  pointer-events: none;
}
.dark-block .eyebrow { color: rgba(255, 255, 255, 0.5); }
.dark-block .section-lead { color: rgba(255, 255, 255, 0.6); }
.dark-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }

.stat-rows { display: grid; gap: 14px; }
.stat-row {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-compact);
  padding: 16px 18px;
  display: flex; align-items: flex-start; gap: 14px;
}
.stat-row .ic {
  flex: none;
  width: 40px; height: 40px; border-radius: var(--r-tile);
  background: rgba(255, 122, 61, 0.16);
  color: var(--gradient-start);
  display: grid; place-items: center;
}
.stat-row .ic svg { width: 20px; height: 20px; }
.stat-row h4 { font-size: 15px; }
.stat-row p { font-size: 13px; color: rgba(255, 255, 255, 0.55); }

/* --- Tarifs ------------------------------------------------------------- */
.plans { display: grid; grid-template-columns: 1fr 1.08fr; gap: 20px; max-width: 860px; margin: 0 auto; align-items: start; }
.plan {
  background: var(--surface);
  border-radius: var(--r-feature);
  box-shadow: var(--shadow-card);
  padding: 30px 28px;
  border: 1.5px solid transparent;
}
.plan.featured { border-color: rgba(232, 70, 11, 0.35); box-shadow: var(--shadow-primary); }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.plan-name { font-size: 13px; font-weight: 800; letter-spacing: 0.4px; text-transform: uppercase; color: var(--text-tertiary); }
.plan.featured .plan-name { color: var(--primary); }
.plan-price { margin-top: 12px; font-size: 34px; font-weight: 800; letter-spacing: -0.03em; }
.plan-price small { font-size: 14px; font-weight: 700; color: var(--text-tertiary); }
.plan-note { margin-top: 4px; font-size: 13px; color: var(--text-tertiary); }
.plan ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 11px; }
.plan li { display: flex; gap: 10px; font-size: 14px; color: var(--text-secondary); }
.plan li b { color: var(--text-primary); font-weight: 700; }
.plan li::before { content: '✓'; color: var(--primary); font-weight: 800; }
.plan-badge {
  background: var(--highlight-bg);
  color: var(--primary);
  border-radius: var(--r-pill);
  padding: 5px 12px;
  font-size: 11px; font-weight: 800;
}

/* --- Encadré d'information --------------------------------------------- */
.notice {
  display: flex;
  gap: 12px;
  background: var(--highlight-bg);
  color: var(--text-primary);
  border-radius: var(--r-compact);
  padding: 16px 18px;
  font-size: 14px;
  max-width: 720px;
  margin: 26px auto 0;
}
.notice svg { flex: none; width: 20px; height: 20px; color: var(--primary); margin-top: 1px; }

/* --- CTA final ---------------------------------------------------------- */
.final-cta {
  background: var(--gradient);
  border-radius: var(--r-immersive);
  padding: 56px 40px;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-primary);
}
.final-cta h2 { font-size: clamp(26px, 4vw, 38px); }
.final-cta p { margin: 14px auto 0; max-width: 520px; color: rgba(255, 255, 255, 0.88); }
.final-cta .btn-outline { background: #fff; border-color: transparent; color: var(--primary); }
.final-cta .cta-row { margin-top: 28px; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.final-cta .btn-dark { background: rgba(36, 28, 21, 0.85); }

/* --- Formulaire de contact ---------------------------------------------- */
.form-card {
  background: var(--surface);
  border-radius: var(--r-feature);
  box-shadow: var(--shadow-card);
  padding: 34px 32px;
  max-width: 620px;
  margin: 0 auto;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 7px;
}
.field .hint { font-weight: 500; color: var(--text-tertiary); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--text-primary);
  background: var(--background);
  border: 1.5px solid var(--border);
  border-radius: var(--r-tile);
  padding: 13px 16px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--primary);
}
.field-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 22px;
}
.field-check input { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: var(--primary); }
.field-check a { color: var(--primary); font-weight: 700; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-status {
  margin-top: 18px;
  border-radius: var(--r-tile);
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  display: none;
}
.form-status.show { display: block; }
.form-status.ok { background: rgba(46, 158, 79, 0.12); color: #1F7538; }
.form-status.err { background: var(--highlight-bg); color: var(--primary); }

.contact-side { display: grid; gap: 14px; margin-top: 32px; max-width: 620px; margin-left: auto; margin-right: auto; }
.contact-side a, .contact-side div {
  background: var(--surface);
  border-radius: var(--r-compact);
  box-shadow: var(--shadow-compact);
  padding: 16px 18px;
  font-size: 14px;
  color: var(--text-secondary);
  display: flex; gap: 12px; align-items: center;
}
.contact-side b { display: block; color: var(--text-primary); font-size: 15px; }
.contact-side svg { flex: none; width: 20px; height: 20px; color: var(--primary); }

/* --- Pied de page ------------------------------------------------------- */
.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.footer-col h4 {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 4px 0;
}
.footer-col a:hover { color: var(--primary); }
.footer-copy { font-size: 13px; color: var(--text-tertiary); }
.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--border-subtle);
  display: flex; flex-wrap: wrap; gap: 14px;
  align-items: center; justify-content: space-between;
}
.socials { display: flex; gap: 10px; }
.socials a {
  width: 40px; height: 40px;
  border-radius: var(--r-tile);
  background: var(--surface);
  box-shadow: var(--shadow-pill);
  display: grid; place-items: center;
  color: var(--text-secondary);
  transition: color 0.15s ease, transform 0.15s ease;
}
.socials a:hover { color: var(--primary); transform: translateY(-2px); }

/* --- Pages légales ------------------------------------------------------ */
.doc { max-width: 820px; margin: 0 auto; padding: 48px 0 8px; }
.doc-head { margin-bottom: 26px; }
.doc-head h1 { font-size: clamp(28px, 4vw, 40px); }
.doc-date { margin-top: 10px; font-size: 13px; color: var(--text-tertiary); font-weight: 600; }

.doc-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.doc-tabs a {
  padding: 9px 16px;
  border-radius: var(--r-pill);
  background: var(--chip-bg);
  color: var(--chip-neutral-text);
  font-size: 13px; font-weight: 700;
}
.doc-tabs a[aria-current='page'] {
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--shadow-primary);
}

.doc-card {
  background: var(--surface);
  border-radius: var(--r-feature);
  box-shadow: var(--shadow-card);
  padding: 40px 36px;
}
.doc-card > section { margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--border-subtle); }
.doc-card > section:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }
.doc-card h2 { font-size: 19px; margin-bottom: 12px; }
.doc-card h3 { font-size: 15px; margin: 20px 0 8px; }
.doc-card p, .doc-card li { font-size: 15px; color: var(--text-secondary); }
.doc-card p + p { margin-top: 12px; }
.doc-card ul { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.doc-card a { color: var(--primary); font-weight: 700; }
.doc-card strong { color: var(--text-primary); }

.doc-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14px; }
.doc-table th, .doc-table td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  vertical-align: top;
}
.doc-table th { color: var(--text-primary); font-weight: 700; font-size: 13px; }
.table-scroll { overflow-x: auto; }

/* Marqueur des informations que seul l'éditeur peut renseigner (identité,
   SIREN, adresse...). Volontairement très visible : un placeholder discret
   finit en ligne sans que personne ne le voie. */
.todo {
  background: var(--highlight-bg-alt);
  color: var(--primary);
  border-radius: var(--r-small);
  padding: 1px 7px;
  font-weight: 700;
  font-size: 0.92em;
}

.doc-note {
  display: flex; gap: 12px;
  background: var(--chip-bg);
  border-radius: var(--r-compact);
  padding: 15px 17px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 18px;
}
.doc-note svg { flex: none; width: 18px; height: 18px; color: var(--primary); margin-top: 2px; }

/* --- Animation d'apparition -------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn:hover, .card:hover, .socials a:hover { transform: none; }
}

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 980px) {
  .dark-grid { grid-template-columns: 1fr; gap: 32px; }
  .cards, .steps { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; }
  .header-nav { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .cards, .steps { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .hero { padding-top: 48px; }
  .dark-block { padding: 36px 24px; }
  .final-cta { padding: 40px 22px; }
  .doc-card, .form-card { padding: 26px 20px; }
  .header-actions .btn { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
