/* Koorami : kit de marque officiel (rouge & bleu nuit), reçu le 30/08/2026.
   Palette et règles d'usage : Koorami logo brief/kit/LISEZ-MOI.md. Ne pas dévier
   des couleurs ci-dessous sans mettre à jour ce fichier ET le kit source.
   Landing v3 (30/08 soir) : le hero DÉMONTRE le produit (widget de prono jouable),
   plus aucune forme décorative flottante, plus aucun élément incliné. */

@font-face {
  font-family: 'Nunito';
  src: url('/assets/fonts/nunito-variable.woff2') format('woff2');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --creme: #fefaee;
  --surface: #ffffff;
  --bordure: #e7e0ce;
  --marine: #22334a;
  --marine-profond: #1a283b;
  --ardoise: #5a6474;
  --rouge: #c0392b;
  --rouge-fond: #f7e3e0;
  --succes: #2f7a4f;
  --succes-fond: #e5f3ea;
  --or: #c99a4a;

  --rayon-s: 10px;
  --rayon-m: 14px;
  --rayon-l: 22px;
  --ombre: 0 2px 10px rgba(34, 51, 74, 0.07);
  --ombre-carte: 0 4px 18px rgba(34, 51, 74, 0.09);
  --ombre-forte: 0 34px 70px -24px rgba(34, 51, 74, 0.45);

  --police: 'Nunito', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--creme);
  color: var(--marine);
  font-family: var(--police);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.enveloppe {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

/* Contenu de formulaire (auth, mes-groupes, 404) : reste étroit même si
   l'enveloppe générale est large pour porter la landing marketing. */
.conteneur-etroit { max-width: 460px; margin: 0 auto; }

h1, h2, h3 {
  font-family: var(--police);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 .5rem;
  color: var(--marine);
}
h1 { font-size: clamp(1.9rem, 6vw, 2.5rem); }
h2 { font-size: 1.35rem; }

p { margin: 0 0 1rem; }

a { color: var(--marine); font-weight: 700; text-decoration-thickness: 2px; }

/* ============================================================
   Navigation
   ============================================================ */
.entete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  margin-bottom: 0;
}
.marque { display: inline-flex; align-items: center; }
.marque img { height: 34px; width: auto; display: block; }
.logo-tenant { max-height: 36px; width: auto; display: block; }
.nom-tenant { font-weight: 800; font-size: 1.15rem; color: var(--marine); }
.nav-liens { display: flex; align-items: center; gap: 1.1rem; font-size: .9rem; font-weight: 700; }
.nav-liens a { color: var(--ardoise); text-decoration: none; }
.nav-liens a:hover { color: var(--marine); }
.nav-liens a { white-space: nowrap; }

/* ============================================================
   HERO : plein-bleed rayé pelouse, titre maillot, widget de prono jouable.
   Aucune forme décorative flottante, aucun élément incliné (rejetés le 30/08).
   ============================================================ */
.section-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  background:
    repeating-linear-gradient(
      115deg,
      transparent 0 90px,
      color-mix(in srgb, var(--marine) 3%, transparent) 90px 180px
    );
  border-bottom: 1px solid var(--bordure);
}
.hero-grand {
  max-width: 1160px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.75rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grand { grid-template-columns: 1.15fr .85fr; gap: 3.5rem; padding: 4rem 1.25rem 5rem; }
}

.chip-saison {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: 999px;
  padding: .45rem .9rem;
  font-size: .82rem;
  font-weight: 800;
  color: var(--marine);
  letter-spacing: .02em;
  margin-bottom: 1.4rem;
  box-shadow: var(--ombre);
}
.puce-live { width: .55rem; height: .55rem; border-radius: 50%; background: var(--rouge); flex-shrink: 0; }
@media (prefers-reduced-motion: no-preference) {
  .puce-live { animation: pulsation 1.8s ease-in-out infinite; }
}
@keyframes pulsation {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(1.35); }
}

/* Titre façon maillot : Nunito 900, capitales, très serré, une phrase par ligne */
.titre-maillot {
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2.5rem, 6.5vw, 4.5rem);
  line-height: .98;
  letter-spacing: -.015em;
  margin-bottom: 1.1rem;
}
.titre-maillot .ligne-titre { display: block; }
.titre-maillot .ligne-accent { color: var(--rouge); }
@media (prefers-reduced-motion: no-preference) {
  .titre-maillot .ligne-titre {
    opacity: 0;
    transform: translateY(26px);
    animation: montee .65s cubic-bezier(.16,.84,.44,1) both;
  }
  .titre-maillot .ligne-titre:nth-child(1) { animation-delay: .05s; }
  .titre-maillot .ligne-titre:nth-child(2) { animation-delay: .17s; }
  .titre-maillot .ligne-titre:nth-child(3) { animation-delay: .29s; }
}
@keyframes montee {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

.hero-accroche { font-size: 1.12rem; color: var(--ardoise); max-width: 46ch; margin-bottom: 1.6rem; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }
.hero-actions .bouton { width: auto; }
.lien-discret {
  font-weight: 800;
  color: var(--marine);
  text-decoration: none;
  padding: .85rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
.lien-discret:hover { color: var(--rouge); border-color: currentColor; }

.confiance {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .88rem;
  font-weight: 700;
  color: var(--succes);
}
.confiance::before { content: "✓"; display: inline-flex; }

/* Widget de prono jouable : LA démonstration du produit, droite, franche */
.demo-prono {
  background: var(--surface);
  border-radius: var(--rayon-l);
  box-shadow: var(--ombre-forte);
  overflow: hidden;
  max-width: 420px;
  margin: 0 auto;
  width: 100%;
}
.demo-prono-entete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--marine);
  color: var(--creme);
  padding: .85rem 1.25rem;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.demo-prono-entete .tag-demo {
  background: rgba(254,250,238,.14);
  border-radius: 999px;
  padding: .15rem .6rem;
  letter-spacing: .04em;
}
.demo-equipe {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: 1.05rem 1.25rem;
}
.demo-equipe + .demo-equipe { border-top: 1px dashed var(--bordure); }
.ecusson {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: .82rem;
  letter-spacing: .02em;
  color: var(--creme);
  flex-shrink: 0;
}
.ecusson--marine { background: var(--marine); }
.ecusson--rouge { background: var(--rouge); }
.demo-equipe .nom-equipe { flex: 1; font-weight: 800; font-size: 1.02rem; min-width: 0; }
.demo-stepper { display: flex; align-items: center; gap: .55rem; }
.btn-pas {
  width: 42px;
  height: 42px;
  border-radius: var(--rayon-s);
  border: 1.5px solid var(--bordure);
  background: var(--creme);
  color: var(--marine);
  font-family: var(--police);
  font-weight: 900;
  font-size: 1.15rem;
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease, transform .1s ease;
}
.btn-pas:hover { background: var(--rouge-fond); border-color: var(--rouge); color: var(--rouge); }
.btn-pas:active { transform: scale(.94); }
.btn-pas:focus-visible { outline: 3px solid color-mix(in srgb, var(--rouge) 35%, white); outline-offset: 1px; }
.demo-score {
  font-weight: 900;
  font-size: 2rem;
  min-width: 1.4ch;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
@media (prefers-reduced-motion: no-preference) {
  .demo-score.pop { animation: pop-score .28s cubic-bezier(.16,.84,.44,1); }
}
@keyframes pop-score {
  0% { transform: scale(1); }
  45% { transform: scale(1.35); color: var(--rouge); }
  100% { transform: scale(1); }
}
/* La simulation : le verdict suit le score en direct */
.verdict {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex-wrap: wrap;
  background: color-mix(in srgb, var(--marine) 5%, var(--surface));
  border-top: 1px dashed var(--bordure);
  padding: .8rem 1.25rem;
  font-weight: 800;
  font-size: .95rem;
}
.verdict-pastille { width: .8rem; height: .8rem; border-radius: 50%; flex-shrink: 0; }
.pastille--marine { background: var(--marine); }
.pastille--rouge { background: var(--rouge); }
.pastille--nul { background: var(--ardoise); }
.verdict-points { margin-left: auto; font-size: .76rem; font-weight: 700; color: var(--ardoise); }
@media (prefers-reduced-motion: no-preference) {
  .verdict.saute .verdict-texte { animation: verdict-entre .35s cubic-bezier(.16,.84,.44,1); }
  .verdict.saute .verdict-pastille { animation: pop-score .35s cubic-bezier(.16,.84,.44,1); }
}
@keyframes verdict-entre {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.demo-prono-pied { padding: 1rem 1.25rem 1.3rem; border-top: 1px solid var(--bordure); }
.demo-verrou {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  color: var(--ardoise);
  margin-bottom: .8rem;
}

/* Le bouton du widget est une action de démo : marine, jamais rouge.
   Le rouge est réservé au seul vrai CTA de la page (Créer mon groupe). */
.bouton-marine { background: var(--marine); color: var(--creme); box-shadow: var(--ombre); }
.bouton-marine:hover { box-shadow: 0 6px 20px rgba(34,51,74,.3); }
.bouton-marine:disabled { background: var(--succes); cursor: default; transform: none; }

.porte-celebration { position: relative; }
.celebration { position: absolute; inset: 0; pointer-events: none; }
.celebration .eclat {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .celebration.active .eclat { animation: jaillit .7s cubic-bezier(.16,.84,.44,1) var(--dly, 0s) both; }
}
.eclat-0 { background: var(--rouge); --tx: -70px; --ty: -46px; --rot: 140deg; }
.eclat-1 { background: var(--marine); --tx: -30px; --ty: -60px; --rot: -120deg; --dly: .03s; }
.eclat-2 { background: var(--or); --tx: 22px; --ty: -56px; --rot: 200deg; --dly: .06s; }
.eclat-3 { background: var(--rouge); --tx: 64px; --ty: -42px; --rot: -160deg; --dly: .04s; }
.eclat-4 { background: var(--or); --tx: -52px; --ty: -22px; --rot: 90deg; --dly: .08s; }
.eclat-5 { background: var(--marine); --tx: 48px; --ty: -20px; --rot: -90deg; --dly: .05s; }
@keyframes jaillit {
  0% { opacity: 1; transform: translate(-50%, -50%) rotate(0deg) scale(1); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) rotate(var(--rot)) scale(.6); }
}

.lien-apres-demo {
  display: block;
  text-align: center;
  margin-top: .9rem;
  font-weight: 800;
  font-size: .92rem;
  color: var(--rouge);
}
/* display:block écrase le style navigateur de [hidden] : on le rétablit,
   sinon le lien est visible avant la validation de la démo. */
.lien-apres-demo[hidden] { display: none; }

/* État verrouillé de la démo : les steppers gèlent, comme au coup d'envoi */
.demo-prono.verrouille .btn-pas { opacity: .35; cursor: default; }
.demo-prono.verrouille .btn-pas:hover { background: var(--creme); border-color: var(--bordure); color: var(--marine); }

/* ============================================================
   Sections génériques
   ============================================================ */
.section { position: relative; padding: 4.5rem 0; }
.section-titre { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-titre h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
.section-titre p { color: var(--ardoise); font-size: 1.05rem; }
.section-eyebrow {
  display: inline-block;
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--rouge);
  margin-bottom: .6rem;
}

/* ============================================================
   Le classement : l'écran star, droit, dans un cadre de téléphone
   ============================================================ */
.section-classement {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 860px) {
  .section-classement { grid-template-columns: 1fr 1fr; gap: 4rem; }
}
.classement-texte h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); margin-bottom: .75rem; }
.classement-texte p { color: var(--ardoise); font-size: 1.05rem; max-width: 44ch; }

.cadre-telephone {
  position: relative;
  width: min(320px, 100%);
  margin: 0 auto;
  border: 10px solid var(--marine);
  border-radius: 42px;
  background: var(--surface);
  box-shadow: 0 40px 80px -30px rgba(34,51,74,.45);
  padding: 2.3rem .9rem 1.2rem;
}
.cadre-telephone::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 20px;
  background: var(--marine);
  border-radius: 0 0 12px 12px;
}
.carte-classement-entete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  margin-bottom: .9rem;
  padding-bottom: .9rem;
  border-bottom: 1px dashed var(--bordure);
}
.carte-classement-titre { font-weight: 800; font-size: .98rem; }
.carte-classement-tag {
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ardoise);
  background: color-mix(in srgb, var(--ardoise) 12%, white);
  border-radius: 999px;
  padding: .2rem .55rem;
  white-space: nowrap;
}
.ligne-classement {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .55rem .1rem;
}
.ligne-classement:not(:last-child) { border-bottom: 1px dashed var(--bordure); }
.ligne-classement .badge-rang { width: 1.9rem; height: 1.9rem; font-size: .85rem; flex-shrink: 0; }
.ligne-classement .badge-rang--or { background: var(--or); }
.ligne-classement .badge-rang--argent { background: #8b95a3; }
.ligne-classement .joueur { flex: 1; font-weight: 700; font-size: .95rem; min-width: 0; }
.ligne-classement .evolution { font-size: .78rem; font-weight: 800; }
.evolution--hausse { color: var(--succes); }
.evolution--baisse { color: var(--rouge); }
.evolution--stable { color: var(--ardoise); }
.ligne-classement .points { font-weight: 800; font-size: .92rem; font-variant-numeric: tabular-nums; }

/* Les lignes du classement entrent une par une quand le téléphone apparaît */
@media (prefers-reduced-motion: no-preference) {
  .cadre-telephone.reveal .ligne-classement { opacity: 0; transform: translateX(14px); transition: opacity .5s ease, transform .5s cubic-bezier(.16,.84,.44,1); }
  .cadre-telephone.reveal .ligne-classement:nth-child(2) { transition-delay: .1s; }
  .cadre-telephone.reveal .ligne-classement:nth-child(3) { transition-delay: .2s; }
  .cadre-telephone.reveal .ligne-classement:nth-child(4) { transition-delay: .3s; }
  .cadre-telephone.reveal .ligne-classement:nth-child(5) { transition-delay: .4s; }
  .cadre-telephone.reveal.visible .ligne-classement { opacity: 1; transform: none; }
}

/* ============================================================
   Étapes : timeline connectée, alternance gauche/droite au desktop
   ============================================================ */
.timeline-etapes { position: relative; max-width: 900px; margin: 0 auto; }
.ligne-etapes {
  position: absolute;
  left: 27px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  z-index: 0;
  background: repeating-linear-gradient(to bottom, var(--bordure) 0 6px, transparent 6px 14px);
}
@media (min-width: 780px) {
  .ligne-etapes { left: 50%; transform: translateX(-1px); }
}
.etape {
  position: relative;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 2.25rem;
  z-index: 1;
}
.etape:last-child { margin-bottom: 0; }
@media (min-width: 780px) {
  .etape { width: 50%; }
  .etape:nth-child(odd) { flex-direction: row; text-align: right; padding-right: 3rem; }
  .etape:nth-child(odd) .etape-numero { order: 2; margin-left: 1.5rem; }
  .etape:nth-child(even) { flex-direction: row; margin-left: 50%; padding-left: 3rem; }
}
.etape-numero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--rouge);
  color: var(--rouge);
  font-weight: 800;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: var(--ombre);
}
.etape-contenu { padding-top: .4rem; }
.etape h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.etape p { color: var(--ardoise); font-size: .96rem; margin: 0; max-width: 34ch; }
@media (min-width: 780px) {
  .etape:nth-child(odd) .etape-contenu { margin-left: auto; }
  .etape:nth-child(odd) p { margin-left: auto; }
}

/* ============================================================
   Barème : bandeau plein-bleed en biais, chiffres de tableau d'affichage
   ============================================================ */
.section-bareme {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-top: 5rem;
  margin-bottom: 5rem;
  padding: 0;
}
.section-bareme::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--marine);
  clip-path: polygon(0 8%, 100% 0%, 100% 92%, 0% 100%);
  z-index: 0;
}
.carte-bareme {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  color: var(--creme);
  padding: 4.5rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: center;
}
@media (min-width: 720px) {
  .carte-bareme { grid-template-columns: 1.1fr 1fr; padding: 5.5rem 3rem; }
}
.carte-bareme h2 { color: var(--creme); }
.carte-bareme p { color: color-mix(in srgb, var(--creme) 78%, transparent); }
.grille-points { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.point-regle {
  background: rgba(254,250,238,.08);
  border: 1px solid rgba(254,250,238,.18);
  border-radius: var(--rayon-m);
  padding: 1.2rem 1.1rem;
  text-align: center;
}
.point-regle .valeur { display: block; font-size: 3rem; font-weight: 900; line-height: 1.1; color: var(--creme); font-variant-numeric: tabular-nums; }
.point-regle .libelle { font-size: .82rem; color: color-mix(in srgb, var(--creme) 75%, transparent); font-weight: 700; }
.point-regle.point-bonus { grid-column: 1 / -1; background: rgba(192,57,43,.28); border-color: rgba(192,57,43,.45); }
.point-regle.point-bonus .valeur { color: #f7c2ba; }

/* ============================================================
   Compétitions : timeline horizontale, nœud actif qui rayonne
   ============================================================ */
.timeline-competitions { position: relative; padding-top: 2.75rem; }
.ligne-competitions {
  position: absolute;
  top: 0;
  left: 6%;
  right: 6%;
  height: 3px;
  background: repeating-linear-gradient(to right, var(--bordure) 0 8px, transparent 8px 14px);
}
.ligne-competitions .segment-actif {
  position: absolute; top: 0; left: 0; height: 100%; width: 12.5%;
  background: var(--rouge);
}
.bande-competitions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 1rem;
}
@media (min-width: 720px) {
  .bande-competitions { grid-template-columns: repeat(4, 1fr); }
}
.competition-carte { position: relative; text-align: center; padding-top: .5rem; margin-top: -2.85rem; }
.competition-noeud {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--ardoise);
  margin: 0 auto 1rem;
  position: relative;
  top: -2.85rem;
}
.competition-active .competition-noeud {
  border-color: var(--rouge); background: var(--rouge);
  box-shadow: 0 0 0 5px var(--rouge-fond);
}
.competition-statut {
  display: inline-block;
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .15rem .5rem;
  border-radius: 999px;
  margin-bottom: .5rem;
}
.competition-active .competition-statut { background: var(--rouge); color: var(--creme); }
.competition-a-venir .competition-statut { background: color-mix(in srgb, var(--ardoise) 14%, white); color: var(--ardoise); }
.competition-carte h3 { font-size: 1rem; margin-bottom: .2rem; }
.competition-carte p { font-size: .82rem; color: var(--ardoise); margin: 0; }

/* ============================================================
   Pour qui : deux cartes différenciées par position et teinte,
   jamais par un liseré de couleur (tell de DA générée)
   ============================================================ */
.grille-audiences {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  max-width: 900px;
  margin: 0 auto;
}
@media (min-width: 720px) {
  .grille-audiences { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
.audience-carte {
  background: var(--surface);
  border-radius: var(--rayon-l);
  padding: 2.25rem 2rem;
  box-shadow: var(--ombre-carte);
}
@media (min-width: 720px) {
  .audience-carte:nth-child(2) { margin-top: 2.5rem; background: color-mix(in srgb, var(--marine) 4%, var(--surface)); }
}
.audience-carte h3 { font-size: 1.25rem; }
.audience-carte p { color: var(--ardoise); margin-bottom: 0; }

/* ============================================================
   CTA finale : bande plein-bleed en biais
   ============================================================ */
.section-cta-finale {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-top: 5rem;
  padding: 0;
}
.section-cta-finale::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--marine);
  clip-path: polygon(0 6%, 100% 0%, 100% 100%, 0% 94%);
  z-index: 0;
}
.bande-cta {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  color: var(--creme);
  padding: 5rem 1.5rem;
  text-align: center;
  overflow: hidden;
}
.bande-cta h2 { color: var(--creme); font-size: clamp(1.8rem, 4vw, 2.5rem); }
.bande-cta p { color: color-mix(in srgb, var(--creme) 80%, transparent); max-width: 46ch; margin: 0 auto 1.75rem; }
.bande-cta .bouton-principal { background: var(--rouge); }

/* Pied de page */
.pied-page {
  padding: 3.5rem 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  text-align: center;
  color: var(--ardoise);
  font-size: .88rem;
}
.pied-page img { height: 24px; opacity: .85; }

/* ============================================================
   Révélation au scroll. Base : fondu-montée. Deux gestes propres :
   le téléphone du classement (lignes en cascade, voir plus haut)
   et le bandeau CTA (déploiement depuis le centre).
   ============================================================ */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.visible { opacity: 1; transform: none; }

  .bande-cta.reveal { transform: scale(.94); }
  .bande-cta.reveal.visible {
    transform: none;
    transition: opacity .7s ease, transform .8s cubic-bezier(.16,.84,.44,1);
  }
}

/* ============================================================
   Boutons : le rouge est la couleur d'action de la marque
   ============================================================ */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--police);
  font-weight: 800;
  font-size: 1rem;
  padding: .85rem 1.4rem;
  border-radius: var(--rayon-m);
  border: none;
  cursor: pointer;
  text-decoration: none;
  min-height: 48px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.bouton:active { transform: translateY(1px); }
.bouton:focus-visible { outline: 3px solid color-mix(in srgb, var(--rouge) 35%, white); outline-offset: 2px; }
.bouton-principal { background: var(--rouge); color: var(--creme); box-shadow: var(--ombre); }
.bouton-principal:hover { box-shadow: 0 6px 20px rgba(192,57,43,.25); }
.bouton-large { width: 100%; }

/* ============================================================
   Cartes / formulaires (écrans applicatifs)
   ============================================================ */
.carte {
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-l);
  padding: 1.5rem;
  box-shadow: var(--ombre-carte);
}

form { display: flex; flex-direction: column; gap: 1rem; }
label { font-size: .85rem; font-weight: 700; color: var(--ardoise); margin-bottom: .3rem; display: block; }

input[type=email], input[type=password], input[type=text] {
  width: 100%;
  padding: .8rem .9rem;
  font-size: 1rem;
  font-family: var(--police);
  border: 1.5px solid var(--bordure);
  border-radius: var(--rayon-s);
  background: var(--creme);
  color: var(--marine);
  min-height: 48px;
}
input:focus { outline: 3px solid color-mix(in srgb, var(--rouge) 30%, white); outline-offset: 1px; border-color: var(--rouge); }

.case {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .88rem;
  font-weight: 500;
  color: var(--ardoise);
}
.case input { width: 1.2rem; height: 1.2rem; margin-top: .15rem; flex-shrink: 0; }

.champ-piege { position: absolute; left: -9999px; }

.message {
  border-radius: var(--rayon-s);
  padding: .8rem 1rem;
  font-size: .9rem;
  font-weight: 700;
}
.message-erreur { background: var(--rouge-fond); color: var(--rouge); }
.message-confirmation { background: var(--succes-fond); color: var(--succes); }

.lien-secondaire { margin-top: 1.25rem; font-size: .92rem; color: var(--ardoise); text-align: center; }
.lien-secondaire a { color: var(--rouge); }

/* Badge de rang (cercle numéroté) */
.badge-rang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--marine);
  color: var(--creme);
  font-weight: 800;
  font-size: .95rem;
  flex-shrink: 0;
}

/* Tuile de score */
.tuile-score {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: var(--marine);
  color: var(--creme);
  border-radius: var(--rayon-s);
  padding: .6rem 1rem;
  font-weight: 800;
  font-size: 1.3rem;
}
.tuile-score .separateur { color: var(--ardoise); font-size: 1rem; }

/* Page d'erreur */
.page-erreur { text-align: center; padding: 3rem 0; }

/* ============================================================
   Écrans applicatifs : groupes, pronostics, classement, invitation.
   Pleine largeur comme la landing (`.enveloppe`), mais colonne unique
   contenue (max-width) : ce sont des écrans de travail, pas une vitrine.
   ============================================================ */

.colonne-app { max-width: 720px; margin: 0 auto; }

select {
  width: 100%;
  padding: .8rem .9rem;
  font-size: 1rem;
  font-family: var(--police);
  border: 1.5px solid var(--bordure);
  border-radius: var(--rayon-s);
  background: var(--creme);
  color: var(--marine);
  min-height: 48px;
}

.lien-nouveau-groupe { max-width: 720px; margin: 0 auto 1.25rem; }

/* Pied de page global : liens légaux sur toutes les pages, instances comprises. */
.pied-de-page {
  margin-top: 3.5rem;
  padding: 1.5rem 0 1rem;
  border-top: 1px solid var(--bordure);
  text-align: center;
}
.pied-liens { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.pied-liens a { color: var(--ardoise); text-decoration: none; font-size: .9rem; }
.pied-liens a:hover { color: var(--marine); text-decoration: underline; }
.pied-copie { margin: .6rem 0 0; color: var(--ardoise); font-size: .85rem; }

/* Pages légales : colonne de lecture sobre. */
.page-legale { padding: 1rem 0 2rem; }
.page-legale h2 { margin-top: 1.8rem; font-size: 1.15rem; color: var(--marine); }
.page-legale p, .page-legale li { line-height: 1.65; color: var(--ardoise); }
.page-legale ul { padding-left: 1.2rem; }
.page-legale li { margin-bottom: .6rem; }
.legale-maj { font-size: .9rem; font-style: italic; }

/* Bloc « Lots mis en jeu » d'une instance entreprise (module C, prize_text). */
.carte-lots { max-width: 720px; margin: 0 auto 1.25rem; border-left: 4px solid var(--rouge); }
.carte-lots strong { color: var(--marine); }
.carte-lots p { margin: .4rem 0 0; color: var(--ardoise); }

.liste-groupes { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.carte-groupe { text-decoration: none; color: inherit; display: block; transition: box-shadow .15s ease; }
.carte-groupe:hover { box-shadow: var(--ombre-forte); }
.nom-groupe { font-size: 1.1rem; }
.detail-groupe { margin: .3rem 0 0; color: var(--ardoise); }

.entete-groupe {
  max-width: 720px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.entete-groupe h1 { margin-bottom: 0; }

.carte-invitation { max-width: 720px; margin: 0 auto 2rem; }
.libelle-invitation { font-size: .82rem; font-weight: 800; color: var(--ardoise); margin-bottom: .5rem; }
.ligne-invitation input {
  width: 100%;
  padding: .7rem .9rem;
  border: 1.5px dashed var(--bordure);
  border-radius: var(--rayon-s);
  background: var(--creme);
  color: var(--marine);
  font-weight: 700;
  font-size: .88rem;
}

.section-groupe { max-width: 720px; margin: 0 auto 2.5rem; }
.section-groupe h2 { font-size: 1.2rem; margin-bottom: 1rem; }

.liste-matchs { display: flex; flex-direction: column; gap: .9rem; }
.carte-match {
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-m);
  padding: 1.1rem 1.25rem;
  display: block;
  text-decoration: none;
  color: inherit;
}
.carte-match-lien { transition: box-shadow .15s ease; }
.carte-match-lien:hover { box-shadow: var(--ombre); }
.entete-match { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .5rem; }
.equipes-match { font-weight: 800; }
.heure-match { font-size: .82rem; color: var(--ardoise); font-weight: 700; white-space: nowrap; }
.etat-match { margin: 0; font-size: .9rem; color: var(--ardoise); }
.etat-verrouille { font-weight: 700; }

.formulaire-prono {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: .6rem;
  margin-top: .6rem;
}
.formulaire-prono input[type=number] {
  width: 4rem;
  text-align: center;
  padding: .6rem .3rem;
  border: 1.5px solid var(--bordure);
  border-radius: var(--rayon-s);
  background: var(--creme);
  color: var(--marine);
  font-weight: 800;
  font-size: 1.1rem;
  font-family: var(--police);
}
.separateur-score { font-weight: 800; color: var(--ardoise); }
.formulaire-prono .bouton { margin-left: auto; }

.liste-membres { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.liste-membres li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-weight: 700; }
.bouton-retirer { background: none; border: none; padding: 0; cursor: pointer; font-family: var(--police); font-size: .85rem; }

.page-invitation { max-width: 480px; margin: 2rem auto; text-align: center; }
.page-invitation .hero-baseline { justify-content: center; }
.actions-invitation { display: flex; flex-direction: column; align-items: center; gap: .75rem; margin-top: 1.5rem; }

.carte-classement-page { max-width: 720px; margin: 0 auto; padding: 1.5rem; }

/* ============================================================
   Back-office plateforme (compétitions, calendrier, résultats).
   Écrans de travail : lisibles au pouce d'abord, la saisie d'un
   score se fait depuis un téléphone au bord du terrain autant que
   depuis un bureau. Aucune couleur hors palette du kit.
   ============================================================ */

.carte-quota {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.actions-admin { display: flex; flex-wrap: wrap; gap: .6rem; }
.actions-admin form { flex-direction: row; }

.titre-section-admin { font-size: 1.15rem; margin: 2rem 0 .9rem; }
.titre-carte-admin { font-size: 1.05rem; margin: 0 0 .3rem; }

.tableau-admin { display: flex; flex-direction: column; gap: .7rem; }

.ligne-admin,
.ligne-match-admin {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  background: var(--surface);
  border: 1.5px solid var(--bordure);
  border-radius: var(--rayon-m);
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: inherit;
}
a.ligne-admin:hover { border-color: var(--rouge); }
.ligne-admin-titre { font-weight: 800; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.ligne-admin-detail { font-size: .86rem; color: var(--ardoise); font-weight: 600; }

.etiquette {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .2rem .5rem;
  border-radius: 999px;
  background: var(--bordure);
  color: var(--marine);
}
.etiquette--active { background: var(--succes-fond); color: var(--succes); }
.etiquette--echec { background: var(--rouge-fond); color: var(--rouge); }

.ligne-match-admin { gap: .8rem; }
.ligne-match-infos { display: flex; flex-direction: column; gap: .25rem; }

.formulaire-resultat {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}
.formulaire-resultat .etiquette-champ {
  font-size: .8rem;
  font-weight: 800;
  color: var(--ardoise);
  margin: 0;
}
.formulaire-resultat input[type=number] {
  width: 3.6rem;
  text-align: center;
  padding: .55rem .3rem;
  min-height: 44px;
  border: 1.5px solid var(--bordure);
  border-radius: var(--rayon-s);
  background: var(--creme);
  color: var(--marine);
  font-weight: 800;
  font-size: 1.05rem;
  font-family: var(--police);
}
.formulaire-resultat select { width: auto; min-width: 8.5rem; min-height: 44px; padding: .5rem .6rem; }
.formulaire-resultat .bouton { margin-left: auto; }

.grille-deux, .grille-trois { display: grid; gap: 1rem; }
.formulaire-match, .formulaire-bareme { gap: 1rem; }

input[type=number], input[type=datetime-local], input[type=date] {
  width: 100%;
  padding: .8rem .9rem;
  font-size: 1rem;
  font-family: var(--police);
  border: 1.5px solid var(--bordure);
  border-radius: var(--rayon-s);
  background: var(--creme);
  color: var(--marine);
  min-height: 48px;
}

@media (min-width: 720px) {
  .carte-quota { flex-direction: row; align-items: center; justify-content: space-between; }
  .ligne-match-admin { flex-direction: row; align-items: center; justify-content: space-between; }
  .ligne-match-infos { flex: 1 1 auto; }
  .formulaire-resultat { flex: 0 0 auto; }
  .formulaire-resultat .bouton { margin-left: .3rem; }
  .grille-deux { grid-template-columns: 1fr 1fr; }
  .grille-trois { grid-template-columns: 1fr 1fr 1fr; }
}

/* Match en direct : le score bouge, mais aucun point n'est distribué avant le
   coup de sifflet final — la carte le dit, elle ne fait pas semblant d'un
   résultat acquis. Réutilise `.puce-live` (point pulsant du kit). */
.carte-match--direct { border-color: var(--rouge); }
.etiquette-direct {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--rouge);
  background: var(--rouge-fond);
  border-radius: 999px;
  padding: .25rem .6rem;
  white-space: nowrap;
}

/* Niveaux de jeu (buteur, passeur) : la saisie s'allonge, elle doit rester
   lisible au pouce — les listes passent sous les scores, jamais à côté. */
.champs-joueurs {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  width: 100%;
  margin-top: .4rem;
}
.champs-joueurs select { min-height: 44px; }
.etiquette-champ { font-size: .8rem; font-weight: 800; color: var(--ardoise); }

.choix-niveau { border: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.choix-niveau legend { font-size: .85rem; font-weight: 800; color: var(--ardoise); padding: 0; }
.choix-niveau .case { align-items: flex-start; }
.choix-niveau .case span { font-weight: 500; }

.detail-points { font-size: .82rem; color: var(--ardoise); font-weight: 600; }

/* Réglage du niveau de jeu : visible au créateur, et seulement tant que la
   compétition n'a pas commencé pour son groupe. */
.formulaire-niveau { gap: .4rem; margin-bottom: 1rem; }
.ligne-niveau { display: flex; flex-direction: row; gap: .6rem; align-items: center; }
.ligne-niveau select { flex: 1 1 auto; }

/* Partage du classement : l'image se récupère d'un geste, c'est la boucle
   d'acquisition du produit (brief §5.6) — le bouton ne se cache pas. */
.actions-classement {
  max-width: 720px;
  margin: 0 auto 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .8rem;
}
