
/* Police maison MboloStats, servie depuis l'application : pas de dependance
   a Google Fonts, et le texte s'affiche tout de suite avec la police de
   secours pendant le chargement (font-display: swap). Trois graisses
   seulement : 300 et 400 retombent sur Regular, 600 sur Medium. */
@font-face {
  font-family: "MBGscore Sans";
  src: url("../fonts/MBGscoreSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "MBGscore Sans";
  src: url("../fonts/MBGscoreSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "MBGscore Sans";
  src: url("../fonts/MBGscoreSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --body-color: #f3f3f3;
  --text-color: #000000;
  --card-bg: #959f70;
  --input-box: #052b1e;
  /* Vert olive de la charte. Sur un aplat, le texte blanc n'y est pas lisible
     (contraste 2,8 contre les 4,5 attendus) : les boutons et autres surfaces
     pleines prennent la variante foncee, qui monte a 4,6 tout en restant de
     la meme famille. Le voile sert aux etats selectionnes, sur fond clair. */
  /* Espaces sous l'en-tete fixe. Chaque page avait sa valeur (40, 62, 72, 90,
     104 px...) et l'en-tete lui-meme changeait de hauteur selon son contenu :
     l'application paraissait se decaler d'un ecran a l'autre. */
  --hauteur-entete: 56px;
  --espace-sous-entete: 72px;    /* en-tete + respiration */
  --espace-sous-onglets: 116px;  /* + la barre d'onglets des pages de ligue */

  --primary: #959f70;
  --primary-fonce: #6f7a4e;
  --primary-voile: rgba(149, 159, 112, .16);
  --match-bg: #ffffff;
  --dark-bg: #181c34;
  --border-color: #96a9de;
  --font-family: "MBGscore Sans", "Ubuntu", sans-serif;

  /* Echelle typographique de l'application.
     Huit tailles, pas une de plus : c'est ce qui donne a une application
     mobile son air soigne, la ou une liste de valeurs au cas par cas
     (9, 10, 11, 12, 13, 14, 16, 18, 20, 22, 24...) donne un air de page web.
     En rem, pour suivre la taille de texte choisie par l'utilisateur dans
     son systeme : une application native le fait, une PWA doit le faire. */
  --fs-xs: 0.6875rem;   /* 11px — mentions, copyright, pastilles */
  --fs-sm: 0.75rem;     /* 12px — legendes, meta, libelles de stats */
  --fs-md: 0.8125rem;   /* 13px — texte secondaire, listes denses */
  --fs-base: 0.9375rem; /* 15px — corps de texte */
  --fs-lg: 1.0625rem;   /* 17px — titres de carte, en-tetes de section */
  --fs-xl: 1.25rem;     /* 20px — titres de page */
  --fs-2xl: 1.5rem;     /* 24px — grands titres */
  --fs-score: 2.125rem; /* 34px — score en cours */
  --fs-score-lg: 2.5rem;/* 40px — score principal d'une fiche match */
}

/* ---------- Base typographique ----------
   Le corps donne la taille de reference ; les titres descendent l'echelle
   avec une interligne plus serree, comme dans les interfaces natives. */
body {
  font-size: var(--fs-base);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Empeche iOS d'agrandir le texte tout seul au passage en paysage */
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-lg); }
h5 { font-size: var(--fs-base); }
h6 { font-size: var(--fs-md); }

small, .small { font-size: var(--fs-sm); }

/* Utilitaires, pour les vues qui ont besoin d'une taille precise sans
   inventer une valeur : mieux vaut une classe de l'echelle qu'un style
   en ligne. */
.fs-xs   { font-size: var(--fs-xs) !important; }
.fs-sm   { font-size: var(--fs-sm) !important; }
.fs-md   { font-size: var(--fs-md) !important; }
.fs-base { font-size: var(--fs-base) !important; }
.fs-lg   { font-size: var(--fs-lg) !important; }
.fs-xl   { font-size: var(--fs-xl) !important; }
.fs-2xl  { font-size: var(--fs-2xl) !important; }
.fs-score { font-size: var(--fs-score) !important; }

/* Les utilitaires numeriques de Bootstrap (.fs-1 a .fs-6) sont ramenes sur
   l'echelle : sans cela, une vue qui ecrit fs-6 repart sur 1rem et rompt la
   coherence de l'ensemble. */
.fs-1 { font-size: var(--fs-2xl) !important; }
.fs-2 { font-size: var(--fs-xl) !important; }
.fs-3 { font-size: var(--fs-lg) !important; }
.fs-4 { font-size: var(--fs-lg) !important; }
.fs-5 { font-size: var(--fs-base) !important; }
.fs-6 { font-size: var(--fs-base) !important; }

body {
  background-color: var(--body-color);
  /* "hidden" ferait de body un conteneur de defilement et rendrait inoperant
     tout position: sticky a l'interieur (barres de recherche). "clip" coupe le
     debordement horizontal sans cet effet ; les navigateurs qui l'ignorent
     gardent la ligne precedente. */
  overflow-x: hidden;
  overflow-x: clip;
  color: #fff;
  font-family: var(--font-family);
}

.match-timeline {
    position: relative;
    padding: 10px;
    background-color: var(--match-bg);
}
.timeline-event {
    display: flex;
    align-items: center;
    font-size: var(--fs-base);
    gap: 8px;
}
.timeline-event.home {
    justify-content: flex-start;
    text-align: left;
}
.timeline-event.away {
    justify-content: flex-end;
    text-align: right;
}
.timeline-event img {
    width: 15px;
    height: 15px;
}
.timeline-minute {
    font-weight: bold;
    color: #555;
    min-width: 32px;
}


section {
  /* Meme raison que sur body : voir le commentaire la-bas. */
  overflow-x: hidden;
  overflow-x: clip;
}

.retour {
  background: var(--card-bg);
  font-size: 20px;
  border-radius: 20px;
}

#preloader {
  height: 100vh;
  width: 100vw;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  background-color: var(--body-color);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
#preloader .img-container {
  animation: grow 1s linear;
  height: 220px;
  width: 220px;
}

@keyframes grow {
  0% {
    transform: scale(1.4);
  }
  40% {
    transform: scale(1.2);
  }
  80% {
    transform: scale(1);
  }
}
/* ---------------------------------------------------------------------------
   Premier ecran (users/index.php)
   ---------------------------------------------------------------------------
   Le carrousel s'ouvrait sur un bandeau de stade en arc de cercle, illustration
   de banque sans rapport avec la marque, puis laissait un tiers d'ecran vide
   entre le texte et un unique bouton noir "Passer" -- qui menait en realite au
   formulaire d'inscription.

   Ici, la page se lit de haut en bas : la marque, ce que fait l'application,
   puis les deux facons d'entrer. L'illustration est posee dans une carte
   blanche, comme les autres cartes de l'application, au lieu de deborder
   jusqu'aux bords.
   --------------------------------------------------------------------------- */

.page-accueil {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  background: var(--body-color);
}

.haut-accueil {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.logo-accueil {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.nom-accueil {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: #111827;
}

/* Le carrousel prend la place qui reste : les boutons gardent la leur, en
   bas, quelle que soit la hauteur de l'ecran. */
.page-accueil .welcome-slide {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  margin: 16px 0 0;
}

/* Les diapositives se centrent dans la hauteur disponible : sans cela, le
   texte restait colle en haut et laissait un tiers d'ecran vide au-dessus
   des boutons. */
.page-accueil .swiper-wrapper {
  align-items: center;
}

.page-accueil .swiper-slide {
  display: flex;
  align-items: center;
  height: auto;
}

.carte-accueil {
  width: 100%;
  text-align: center;
}

/* Les illustrations sont dessinees pour le fond de stade : leurs legendes
   sont ecrites en blanc. Posees sur une carte blanche, le score et les
   libelles disparaissaient purement et simplement. On garde donc leur fond,
   mais dans une carte arrondie au lieu du bandeau en arc de cercle. */
.illustration-accueil {
  background-color: #10243a;
  /* Les projecteurs du fond passent derriere les legendes blanches de
     l'illustration : on les assombrit pour que "DOMICILE" et "EXTERIEUR"
     restent lisibles. */
  background-image: linear-gradient(rgba(8, 22, 40, .55), rgba(8, 22, 40, .55)),
                    url("../img/acc3.webp");
  background-position: center;
  background-size: cover;
  border-radius: 20px;
  padding: 16px 14px;
  margin-bottom: 22px;
}

.illustration-accueil img {
  display: block;
  width: 100%;
  max-height: 34vh;
  object-fit: contain;
  margin: 0 auto;
}

.carte-accueil h1 {
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px;
}

.carte-accueil p {
  font-size: var(--fs-base);
  color: var(--paiement-gris);
  margin: 0 auto;
  max-width: 34ch;
}

.page-accueil .pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex: none;
  margin: 18px 0;
}

.page-accueil .pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  margin: 0;
  opacity: 1;
  border-radius: 50px;
  background-color: #d5d1c6;
  transition-duration: 300ms;
}

.page-accueil .pagination .swiper-pagination-bullet-active {
  width: 26px;
  background-color: var(--primary-fonce);
}

.actions-accueil {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: none;
}

.btn-accueil,
.btn-accueil-secondaire {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: var(--fs-base);
  font-weight: 700;
  text-decoration: none;
}

.btn-accueil {
  background: var(--primary-fonce);
  color: #fff;
}

.btn-accueil:active { background: #5d6742; color: #fff; }

.btn-accueil-secondaire {
  background: var(--paiement-carte);
  border-color: var(--paiement-trait);
  color: var(--primary-fonce);
}

/* ---- Proposition d'installation ---- */

.voile-installer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  padding: 20px;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .55);
}

.voile-installer.visible { display: flex; }

.carte-installer {
  width: 100%;
  max-width: 340px;
  padding: 22px 20px 18px;
  text-align: center;
  background: var(--paiement-carte);
  border-radius: 20px;
}

.logo-installer {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 12px;
}

.carte-installer h2 {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px;
}

.carte-installer p {
  font-size: var(--fs-base);
  color: var(--paiement-gris);
  margin: 0 0 16px;
}

.btn-installer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  border: none;
  border-radius: 14px;
  background: var(--primary-fonce);
  color: #fff;
  font-size: var(--fs-base);
  font-weight: 700;
}

/* Sans cette sortie, le bandeau Android occupait tout l'ecran et ne
   proposait que l'installation : on ne pouvait plus aller nulle part. */
.lien-installer {
  width: 100%;
  margin-top: 6px;
  padding: 12px 0;
  border: none;
  background: none;
  color: var(--paiement-gris);
  font-size: var(--fs-base);
  font-weight: 600;
}

.login {
  background-image: url("../img/login-bg.png");
  background-repeat: no-repeat;
  background-size: cover;
  height: 100vh;
  background-color: #868898;
  isolation: isolate;
}
.login::after {
  content: "";
  height: 100%;
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: -1;
  background-color: rgba(0, 0, 0, 0.5);
}
.login .login-area {
  padding: 0 30px;
  margin-top: 350px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.login-email {
  height: 100vh;
}
.login-email .top-bg {
  background-image: url("../img/login-20-bg.png");
  background-position: top;
  background-repeat: no-repeat;
  border-bottom-left-radius: 45%;
  border-bottom-right-radius: 45%;
  background-size: cover;
  height: 250px;
  isolation: isolate;
}
.login-email .top-bg::after {
  content: "";
  height: 100%;
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.6);
}
.login-email .social-login {
  display: flex;
  justify-content: center;
  gap: 25px;
  padding-bottom: 20px;
}
.login-email .social-login a {
  font-size: 1.2rem;
  height: 45px;
  width: 45px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-email .social-login a:nth-child(1) {
  background-color: #3c5993;
}
.login-email .social-login a:nth-child(2) {
  background-color: #ed3067;
}
.login-email .social-login a:nth-child(3) {
  background-color: var(--primary-fonce);
}

.login-card {
  background-color: var(--card-bg);
  border-radius: 20px;
  isolation: isolate;
  padding: 10px 15px;
  margin: 0 15px;
  transform: translateY(-15%);
  margin-bottom: -15%;
}
.login-card .login-logo {
  display: flex;
  justify-content: center;
  transform: translateY(-50%);
}
.login-card .login-logo img {
  height: 90px;
  width: 90px;
}
.login-card form {
  margin-top: -20px;
}

.input-box {
  background-color: var(--input-box);
  border-radius: 30px;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.input-box input {
  background-color: transparent;
  border: none;
  color: #fff;
}
.input-box input:focus {
  outline: none;
}

.terms .topbar {
  display: flex;
  margin-top: 20px;
}
.terms .terms-card {
  padding: 10px;
  border-radius: 10px;
  background-color: var(--card-bg);
  margin: 0 15px;
  max-height: 500px;
  overflow: auto;
}

.digit-group .inputs {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-bottom: 30px;
}
.digit-group input {
  width: 40px;
  height: 40px;
  background-color: var(--card-bg);
  border: none;
  line-height: 50px;
  text-align: center;
  font-size: var(--fs-2xl);
  font-weight: 200;
  color: white;
  margin: 0 2px;
  border-radius: 5px;
}
.digit-group .splitter {
  padding: 0 5px;
  color: white;
  font-size: var(--fs-2xl);
}

.profile2 {
  background-image: url(../img/fond.webp);
  background-repeat: no-repeat;
  background-size: cover;
  /*background-size: 100vw;*/
  background-color: var(--body-color);
  background-position: top;
  height: 100vh;
}

.profile {
  background-image: url(../img/fond.webp);
  background-repeat: no-repeat;
  /*background-size: 100vw;*/
  background-size: cover;
  background-color: var(--body-color);
  background-position: top;
  height: 100vh;
}
.profile .follow {
  display: flex;
  margin-left: 60px;
  gap: 20px;
}
.profile .follow .divider {
  height: 50px;
  width: 2px;
  background-color: #fff;
}
.profile .profile-card {
  background-color: var(--card-bg);
  border-radius: 10px;
}
.profile .profile-card .card-top {
  padding: 20px 15px;
  border-bottom: 1px solid #575b7b;
}
.profile .profile-card .card-bottom {
  padding: 20px 15px;
  display: flex;
  justify-content: center;
  gap: 15px;
}
.profile .profile-card .card-bottom .stat-box {
  flex: 1;
}
.profile .profile-card .card-bottom .state-circle {
  background-color: #fff;
  height: 45px;
  width: 45px;
  border-radius: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  /*border: 3px solid #0c0b0b;
  outline: 3px solid #052b1e;*/
}
.profile .profile-card .card-bottom p {
  font-size: var(--fs-base);
  margin-bottom: 0;
}
.profile .profile-card .card-bottom h6 {
  color: #000000;
}
.profile .profile-row, .profile2 .profile-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--card-bg);
  border-radius: 70px;
  padding: 10px 16px;
  /* Rounded sliders */
}
.profile .profile-row img, .profile2 .profile-row img {
  height: 25px;
}
.profile .profile-row .switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}
.profile .profile-row .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.profile .profile-row .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ccc;
  transition: 0.4s;
}
.profile .profile-row .slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
}
.profile .profile-row input:checked + .slider {
  background: linear-gradient(243.05deg, #0f0f0f -20.05%, #292929 93.07%);
}
.profile .profile-row input:focus + .slider {
  box-shadow: 0 0 1px #2196f3;
}
.profile .profile-row input:checked + .slider:before {
  transform: translateX(20px);
}
.profile .profile-row .slider.round {
  border-radius: 34px;
}
.profile .profile-row .slider.round:before {
  border-radius: 50%;
}

.edit-profile .camera {
  position: absolute;
  width: 30px;
  background-color: #fff;
  border-radius: 30px;
  bottom: -5px;
  right: -10px;
  border: 2px solid #dbc2fa;
  outline: 2px solid #b785f6;
  cursor: pointer;
}

.button-card {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.button-card .single-radio {
  border: 2px solid #262f54;
  border-radius: 12px;
  padding: 8px 15px;
  cursor: pointer;
  position: relative;
}
.button-card .single-radio input[type=radio] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}
.button-card .single-radio .radio {
  top: 0;
  left: 0;
  border-radius: 20px;
  height: 20px;
  width: 20px;
  background-color: transparent;
  border: 1px solid rgb(97, 95, 95);
}
.button-card .single-radio .radio::after {
  content: "";
  display: none;
  position: relative;
  right: -7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 1px 1px 0;
  transform: rotate(45deg);
}
.button-card .single-radio input:checked ~ .radio:after {
  display: block;
}

.addnew .card-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 10px;
  background-color: var(--input-box);
}
.addnew .card-input input {
  background-color: transparent;
  border: none;
  color: #fff;
  padding: 5px;
}
.addnew .card-input input:focus {
  outline: none;
}
.addnew input {
  background-color: var(--input-box);
  padding: 5px 8px;
  width: 100%;
  border: none;
  color: #fff;
}
.addnew input:focus {
  outline: none;
}

.deposit select {
  width: 100%;
  padding: 5px;
  background-color: transparent;
  border: none;
  color: #fff;
}
.deposit select:focus {
  outline: none;
}
.deposit select option {
  background-color: var(--card-bg);
}

.notification-box {
  padding: 10px 16px;
  background-color: var(--card-bg);
  margin-bottom: 12px;
  display: flex;
  gap: 10px;
}
.notification-box .img-box {
  position: relative;
}
.notification-box .img-box .badge-img {
  position: absolute;
  bottom: 30px;
  right: 0;
}

.search-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  background-color: var(--input-box);
  border-radius: 4px;
}
.search-box input {
  color: #fff;
  border: none;
  background-color: transparent;
}
.search-box input:focus {
  outline: none;
}

.matchboard {
  padding-bottom: 70px;
}
.matchboard .nav .nav-link {
  color: #fff;
  border: 1px solid #fff;
  border-radius: 12px;
  padding: 4px 10px;
}
.matchboard .nav .nav-link .live {
  font-size: var(--fs-sm);
}
.matchboard .nav .nav-link.active {
  background: #7e8385;
  border-color: #333333;
  /*background: linear-gradient(90.7deg, #2b30b2 0.57%, #5633b4 99.49%);
  border-color: #2b30b2;*/
}
.matchboard .nav .nav-link.active .live {
  color: #41cd7d;
}
.matchboard .bet-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  margin-top: 50px;
}
.matchboard .bet-card img {
  margin: -30px 0 0 -5px;
}
.matchboard .bet-card-2 {
  background-color: var(--card-bg);
  border-radius: 6px;
  margin-top: 20px;
}
.matchboard .game {
  height: 50px;
  width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  border: 1px solid gray;
  transition-duration: 300ms;
}
.matchboard .game:hover {
  transition-duration: 300ms;
  background-color: #959f70;
}
.matchboard .match-card-sm {
  background-color: var(--match-bg);
  padding: 10px 15px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}
.matchboard .match-card {
  display: block;
  background-color: var(--match-bg);
  border-radius: 10px;
}
.matchboard .match-card .score-btn, .matchboard .match-card .score-btn-red, .matchboard .match-card .score-btn-green {
  background-color: transparent;
  border-radius: 20px;
  border-color: white;
  color: #fff;
}
.matchboard .match-card .score-btn-green {
  background-color: #41cd7d;
  border-color: #41cd7d;
  outline: none;
}
.matchboard .match-card .score-btn-red {
  background-color: #eb002a;
  border-color: #eb002a;
}
.matchboard .match-card .card-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 20px;
}
.matchboard .match-card .card-inner-border {
  border-bottom: 1px solid #a1abff;
}
.matchboard .match-card .top-badge {
  position: absolute;
  top: 0;
  right: 14%;
  background-color: #7033ff;
  padding: 6px 6px 10px;
  border-radius: 0 0 15px 15px;
}
.matchboard .relationship-status-output {
  display: block;
  text-align: center;
  font-size: var(--fs-score-lg);
  font-weight: 600;
  margin: 0 0 2rem 0;
  line-height: 1;
}
.matchboard .rangeslider {
  background-color: #2a2f54;
  height: 15px;
}
.matchboard .rangeslider__handle {
  background-color: #4e7cff;
  border: none;
  height: 30px;
  top: -8px;
  width: 30px;
  box-shadow: 0px 5px 10px rgba(78, 124, 255, 0.54);
}
.matchboard .rangeslider__handle:after {
  display: none;
}
.matchboard .rangeslider__fill {
  background: #4e7cff;
}

.delete-btn {
  border: none;
  background-color: var(--card-bg);
  color: #96a9de;
  padding: 0 20px;
  border-radius: 20px;
}

.message-box {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.left-message {
  display: flex;
  gap: 15px;
}
.left-message img {
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.left-message p {
  max-width: 70%;
  background-color: var(--dark-bg);
  padding: 10px;
  border-radius: 0 15px 0 15px;
}

.right-message {
  align-self: flex-end;
  background: linear-gradient(90.7deg, #2b30b2 0.57%, #5633b4 99.49%);
  box-shadow: 0px 15px 25px rgba(44, 48, 178, 0.4);
  border-radius: 0px 15px;
  padding: 10px;
  margin-right: 10px;
}

.message-input {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #1c203b;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  left: 0;
}
.message-input input {
  background-color: var(--dark-bg);
  border: none;
  border-radius: 20px;
  padding: 10px 20px;
  width: 100%;
  color: #fff;
}
.message-input input:focus {
  outline: none;
}
.message-input i {
  color: #3431b2;
  font-size: 2rem;
}

.participant-img img,
.participant-img .more {
  margin-right: -5px;
  border: 1px solid var(--card-bg);
  border-radius: 50px;
}
.participant-img .more {
  font-size: var(--fs-xs);
  background-color: #3d59e7;
  color: #fff;
}

.comment-box {
  background-color: #25294a;
  border-radius: 10px;
  margin-bottom: 10px;
}
.comment-box .comment-top {
  padding: 15px 0;
  display: flex;
  gap: 15px;
  align-items: start;
  border-bottom: 1px solid #515255;
}

.sports-slide .box-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  padding-bottom: 20px;
}
.sports-slide .box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 15px 10px;
  gap: 7px;
}
.sports-slide .pagination {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.sports-slide .pagination .swiper-pagination-bullet {
  background-color: #4e7cff;
  opacity: 1;
}

.wins {
  background-image: url(../img/wins_bg.png);
  height: 100vh;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
.wins .top-content {
  margin-top: 100px;
}
.wins .top-content .win-img {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.wins .top-content .win-img .win-icon {
  position: absolute;
  bottom: -20px;
}

.news .marquee {
  overflow: hidden;
  display: flex;
}
.news .marquee p {
  white-space: nowrap;
  margin-bottom: 0;
}
.news .news-card-container {
  display: flex;
  gap: 20px;
  overflow: auto;
}
.news .news-card-container::-webkit-scrollbar {
  display: none;
}
.news .news-card {
  border-radius: 15px;
  min-width: 270px;
  background-color: var(--card-bg);
}
.news .news-card img {
  border-radius: 15px;
}
.news .news-card .video-card {
  width: 100%;
  position: relative;
}
.news .latest-news-container {
  display: flex;
  gap: 12px;
}
.news .latest-news-container .latest-news {
  position: relative;
}
.news .latest-news-container .latest-news::before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  bottom: 0;
  background-image: linear-gradient(transparent, #262e69);
  opacity: 0.9;
  overflow: hidden;
  border-radius: 15px;
}
.news .latest-news-container .latest-news img {
  border-radius: 15px;
}
.news .latest-news-container .latest-news .content {
  position: absolute;
  bottom: 8px;
  left: 8px;
}
.news .news-card-2 {
  display: flex;
  background-color: var(--card-bg);
  border-radius: 10px;
}
.news .news-card-2 img {
  border-radius: 10px;
}
.news #my-video {
  width: 100%;
}
.news .vjs-big-play-button {
  background-color: transparent;
  background-image: url("../img/video.png");
  background-repeat: no-repeat;
  background-size: 46px;
  position: absolute;
  left: 55%;
  border: none !important;
  box-shadow: none !important;
}
.news .vjs-big-play-button:before {
  content: "";
  display: none;
}
.news .vjs-big-play-button:hover {
  background-color: transparent;
  opacity: 0.7;
}
.news #my-video .vjs-poster {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  max-width: 100%;
  max-height: 100%;
}

.vjs-big-play-button {
  background-color: transparent;
  background-image: url("../img/video.png");
  background-repeat: no-repeat;
  background-size: 46px;
  position: absolute;
  left: 65%;
  border: none !important;
  box-shadow: none !important;
}
.vjs-big-play-button:before {
  content: "";
  display: none;
}
.vjs-big-play-button:hover {
  background-color: transparent;
  opacity: 0.7;
}

#my-video .vjs-poster {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  max-width: 100%;
  max-height: 100%;
}

.overlay-top {
  position: relative;
}
.overlay-top .back-btn {
  position: absolute;
  color: #fff;
  top: 10px;
  left: 10px;
}
.overlay-top::before {
  content: "";
  width: 100%;
  height: 300px;
  position: absolute;
  bottom: 0;
  background: linear-gradient(179.96deg, rgba(32, 36, 66, 0.08) 0.04%, #202442 103.77%);
  opacity: 0.8;
  overflow: hidden;
}

.statictics .chart-container {
  height: 250px;
}
.statictics .set-size {
  font-size: 6em;
}
.statictics .charts-container {
  display: flex;
  justify-content: center;
}
.statictics .charts-container:after {
  clear: both;
  content: "";
  display: table;
}
.statictics .pie-wrapper {
  height: 1em;
  width: 1em;
  float: left;
  margin: 5px;
  position: relative;
}
.statictics .pie-wrapper:nth-child(3n+1) {
  clear: both;
}
.statictics .pie-wrapper .pie {
  height: 100%;
  width: 100%;
  clip: rect(0, 1em, 1em, 0.5em);
  left: 0;
  position: absolute;
  top: 0;
}
.statictics .pie-wrapper .pie .half-circle {
  height: 100%;
  width: 100%;
  border: 0.1em solid #3498db;
  border-radius: 50%;
  clip: rect(0, 0.5em, 1em, 0);
  left: 0;
  position: absolute;
  top: 0;
}
.statictics .pie-wrapper .label {
  background: #34495e;
  border-radius: 50%;
  bottom: 0.44em;
  color: #fff;
  cursor: default;
  display: block;
  font-size: 0.25em;
  left: 0.44em;
  line-height: 3.08em;
  position: absolute;
  right: 0.44em;
  text-align: center;
  top: 0.44em;
}
.statictics .pie-wrapper .shadow {
  height: 100%;
  width: 100%;
  border: 0.1em solid #bdc3c7;
  border-radius: 50%;
}
.statictics .pie-wrapper.style-2 .label {
  background: none;
}
.statictics .pie-wrapper.progress-45 .pie .half-circle {
  border-color: #16b8ff;
}
.statictics .pie-wrapper.progress-45 .pie .left-side {
  transform: rotate(162deg);
}
.statictics .pie-wrapper.progress-45 .pie .right-side {
  display: none;
}
.statictics .pie-wrapper.progress-75 .pie {
  clip: rect(auto, auto, auto, auto);
}
.statictics .pie-wrapper.progress-75 .pie .half-circle {
  border-color: #e24ffc;
}
.statictics .pie-wrapper.progress-75 .pie .left-side {
  transform: rotate(270deg);
}
.statictics .pie-wrapper.progress-75 .pie .right-side {
  transform: rotate(180deg);
}
.statictics .pie-wrapper.progress-95 .pie {
  clip: rect(auto, auto, auto, auto);
}
.statictics .pie-wrapper.progress-95 .pie .half-circle {
  border-color: #f5f801;
}
.statictics .pie-wrapper.progress-95 .pie .left-side {
  transform: rotate(342deg);
}
.statictics .pie-wrapper.progress-95 .pie .right-side {
  transform: rotate(180deg);
}
.statictics .pie-wrapper--solid {
  border-radius: 50%;
  overflow: hidden;
}
.statictics .pie-wrapper--solid:before {
  border-radius: 0 100% 100% 0/50%;
  content: "";
  display: block;
  height: 100%;
  margin-left: 50%;
  transform-origin: left;
}
.statictics .pie-wrapper--solid .label {
  background: transparent;
}
.statictics .numbers {
  display: flex;
  justify-content: space-around;
}
.statictics .numbers span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid transparent;
}
.statictics .numbers span:hover {
  border: 1px solid var(--primary);
  border-radius: 50%;
}
.statictics .stat-numbers {
  display: flex;
  align-items: center;
  justify-content: space-around;
}
.statictics .stat-numbers .divider {
  height: 80px;
  width: 2px;
  background-color: gray;
}
.statictics .stat-card {
  padding: 15px;
  border: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  border-radius: 10px;
  margin-bottom: 15px;
}

.noresult {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.noresult .inner-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #000000;
}

h1 {
  font-weight: 500;
  font-size: var(--fs-2xl);
}

p {
  color: var(--text-color);
}

a {
  color: var(--text-color);
  text-decoration: none;
}

.text-blue {
  color: var(--primary-fonce);
}

.dark-text {
  color: #96A9DE;
}

.green-text {
  color: #41CD7D;
}

.fw-500 {
  font-weight: 500;
}

/* width */
::-webkit-scrollbar {
  display: none;
}

/* Track */
::-webkit-scrollbar-track {
  background: #2D325A;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #B383F5;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.offcanvas {
  overflow: auto;
}

.bottom-navigation {
  z-index: 10;
  background-color: #000;
  position: fixed;
  bottom: 0;
  padding: 10px;
  width: 100%;
  left: 0;
  display: flex;
  justify-content: space-between;
}
.bottom-navigation .single-nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
}
.bottom-navigation .single-nav i {
  height: 30px;
  width: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.3rem;
  color: #ffffff;
}
.bottom-navigation .single-nav span {
  display: inline-block;
  font-size: var(--fs-xs);
  color: #a0a9bc;
}
.bottom-navigation .single-nav.active i {
  color: var(--primary);
}
.bottom-navigation .single-nav.active span {
  color: var(--primary);
}

.bttn, .outline-btn, .orange-btn, .blue-btn, .gradient-btn, .gradient-btn-full {
  border-radius: 61px;
  color: #fff;
  padding: 10px 40px;
  border: none;
  outline: none;
  display: inline-flex;
  text-align: center;
  font-weight: 500;
}

.gradient-btn, .gradient-btn-full {
  background: linear-gradient(90.7deg, #0d0d0e 0.57%, #033a1a 99.49%);
}

.gradient-btn-full {
  width: 100%;
  text-align: center;
  display: flex;
  justify-content: center;
}

.blue-btn {
  background-color: #3c5a9a;
  box-shadow: 0px 15px 35px rgba(23, 27, 59, 0.4);
}

.orange-btn {
  background-color: #fa6255;
  box-shadow: 0px 15px 35px rgba(23, 27, 59, 0.4);
}

.outline-btn {
  border: 2px solid #ffffff;
  background: transparent;
}
.outline-btn:hover {
  background: linear-gradient(90.7deg, #2b30b2 0.57%, #5633b4 99.49%);
  border-color: #2B30B2;
}

.outline-btn-small {
  padding: 6px 12px;
  border: 1px solid #ffffff;
  border-radius: 30px;
}

::-moz-placeholder {
  color: white;
  opacity: 1; /* Firefox */
}

::placeholder {
  color: white;
  opacity: 1; /* Firefox */
}

:-ms-input-placeholder {
  /* Internet Explorer 10-11 */
  color: white;
}

::-ms-input-placeholder {
  /* Microsoft Edge */
  color: white;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  /* display: none; <- Crashes Chrome on hover */
  -webkit-appearance: none;
  margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}

input[type=number] {
  -moz-appearance: textfield;
  -webkit-appearance: textfield;
          appearance: textfield; /* Firefox */
}

.hover-blue {
  transition-duration: 300ms;
}
.hover-blue:hover {
  transition-duration: 300ms;
  color: var(--primary-fonce);
}

.red-text {
  color: #F79E1B;
}
/* ---------- Parcours de paiement ----------
   Quatre ecrans : la saisie monte du bas comme une feuille d'application
   mobile, puis l'attente, l'echec et le recu occupent l'ecran entier.
   Les trois derniers partagent la meme carte, pour que le passage de l'un
   a l'autre ne deplace rien sous les yeux de l'utilisateur.

   L'accent reste la couleur de la marque : le paiement ne doit pas avoir
   l'air d'appartenir a un autre produit. Une seule variable a changer si
   l'on veut le vert-bleu de la maquette d'origine. */
:root {
  --paiement-accent: var(--primary-fonce);
  --paiement-encours: #b9791f;          /* etape en cours, echeance qui approche */
  --paiement-fond: #f7f5f1;
  --paiement-carte: #ffffff;
  --paiement-trait: #e7e3da;
  --paiement-gris: #6b7280;
  --paiement-chiffres: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

/* Les montants, la reference et le compte a rebours se lisent comme des
   donnees, pas comme du texte : chasse fixe et chiffres alignes. */
.chiffres {
  font-family: var(--paiement-chiffres);
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
}

/* Petites capitales d'etiquette : "REFERENCE", "DATE", "MONTANT"... */
.micro {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--paiement-gris);
  margin-bottom: 3px;
}

/* Le voile ferme la feuille au clic et isole le contenu derriere.
   Il sert aussi a la feuille du vestiaire (_feuille-vestiaire.php). */
.voile-don {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  z-index: 9999;
  animation: voileApparait .2s ease-out;
}
.voile-don.ouvert { display: block; }
@keyframes voileApparait { from { opacity: 0; } to { opacity: 1; } }

/* La feuille glissante : ancree en bas, elle monte a l'ouverture */
#modalDon {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  background: var(--paiement-carte);
  border-radius: 20px 20px 0 0;
  padding: 10px 20px calc(18px + env(safe-area-inset-bottom));
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, .18);
}
#modalDon.ouvert { display: block; animation: feuilleMonte .25s ease-out; }
@keyframes feuilleMonte { from { transform: translateY(100%); } to { transform: translateY(0); } }

.poignee-feuille {
  width: 38px;
  height: 4px;
  border-radius: 2px;
  background: #d8d4cb;
  margin: 2px auto 10px;
}

/* En-tete commun aux quatre ecrans : on sait toujours ou l'on est */
.entete-paiement {
  text-align: center;
  font-size: var(--fs-base);
  font-weight: 700;
  color: #1f2937;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--paiement-trait);
  margin: 0 -20px 0;
}

/* Trois segments : saisie, validation, confirmation */
.jauge-paiement {
  display: flex;
  gap: 6px;
  margin: 14px 0 20px;
}
.jauge-paiement i {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: #e5e1d8;
}
.jauge-paiement[data-etape="1"] i:nth-child(1),
.jauge-paiement[data-etape="2"] i:nth-child(1),
.jauge-paiement[data-etape="3"] i:nth-child(1),
.jauge-paiement[data-etape="3"] i:nth-child(2) { background: var(--paiement-accent); }
.jauge-paiement[data-etape="2"] i:nth-child(2) { background: var(--paiement-encours); }
.jauge-paiement[data-etape="3"] i:nth-child(3) { background: var(--paiement-accent); }

.don-montant { text-align: center; margin-bottom: 18px; }
.don-montant .valeur {
  font-family: var(--paiement-chiffres);
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: #111;
}
.don-montant .libelle {
  font-size: var(--fs-md);
  color: var(--paiement-gris);
  margin-top: 2px;
}

.titre-champ {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: #374151;
  margin-bottom: 8px;
}

/* Deux operateurs : des cartes que l'on touche, pas des boutons radio */
.operateurs { display: flex; gap: 10px; margin-bottom: 18px; }
.operateurs input { position: absolute; opacity: 0; pointer-events: none; }
.operateurs label { flex: 1; margin: 0; cursor: pointer; }
.operateur {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 58px;
  border: 1.5px solid var(--paiement-trait);
  border-radius: 12px;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.operateur img { max-height: 60px; max-width: 78%; }
.operateurs input:checked + .operateur {
  border-color: var(--paiement-accent);
  box-shadow: 0 0 0 3px var(--primary-voile);
}
.operateurs input:focus-visible + .operateur { outline: 2px solid var(--paiement-accent); }

.champ-telephone { position: relative; margin-bottom: 6px; }
.champ-telephone > .bi {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa0a6;
  font-size: var(--fs-lg);
}
.champ-telephone input {
  width: 100%;
  height: 52px;
  padding: 0 14px 0 42px;
  border: 1.5px solid var(--paiement-trait);
  border-radius: 12px;
  background: #fff;
  font-family: var(--paiement-chiffres);
  font-size: var(--fs-base);
  color: #111;
}
.champ-telephone input::placeholder { color: #b3b7be; font-family: inherit; }
.champ-telephone input:focus {
  outline: none;
  border-color: var(--paiement-accent);
  box-shadow: 0 0 0 3px var(--primary-voile);
}
.aide-champ {
  font-size: var(--fs-sm);
  color: var(--paiement-gris);
  margin-bottom: 18px;
}

/* ---------- Boutons, communs aux quatre ecrans ---------- */
.btn-paiement {
  display: block;
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 12px;
  background: var(--paiement-accent);
  color: #fff;
  font-size: var(--fs-base);
  font-weight: 700;
  margin-bottom: 10px;
}
.btn-paiement:disabled { opacity: .6; }
.btn-paiement-secondaire {
  display: block;
  width: 100%;
  height: 52px;
  border: 1.5px solid var(--paiement-trait);
  border-radius: 12px;
  background: #fff;
  color: #1f2937;
  font-size: var(--fs-base);
  font-weight: 600;
  margin-bottom: 10px;
}
.lien-paiement {
  display: block;
  width: 100%;
  border: none;
  background: none;
  color: var(--paiement-gris);
  font-size: var(--fs-md);
  padding: 8px 0;
}

/* ---------- Attente, echec, recu : la meme carte ---------- */
#modalPayment {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: var(--paiement-fond);
  color: #111;
  overflow-y: auto;
  padding: 18px 16px calc(24px + env(safe-area-inset-bottom));
}
#modalPayment.ouvert { display: block; }

.ecran-paiement { max-width: 420px; margin: 0 auto; }

.carte-paiement {
  background: var(--paiement-carte);
  border: 1px solid var(--paiement-trait);
  border-radius: 16px;
  padding: 16px 20px 20px;
  animation: carteApparait .2s ease-out;
}
@keyframes carteApparait {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Pastille d'etat : le premier mot que l'on lit */
.etat-paiement {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-bottom: 14px;
}
.etat-paiement.attente { background: #fdf3e0; color: #92610f; }
.etat-paiement.echec   { background: #fdeaea; color: #b02a2a; }
.etat-paiement .point {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: pulsePaiement 1.4s ease-in-out infinite;
}
@keyframes pulsePaiement { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.titre-paiement {
  font-size: var(--fs-2xl);
  font-weight: 800;
  line-height: 1.22;
  color: #111;
  margin-bottom: 12px;
}
.texte-paiement {
  font-size: var(--fs-base);
  color: #4b5563;
  line-height: 1.55;
  margin-bottom: 18px;
}
.texte-paiement .chiffres { color: #111; font-weight: 700; }

/* Compte a rebours : la question la plus pressante de cet ecran */
.carte-chrono {
  border: 1px solid var(--paiement-trait);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
}
.carte-chrono .ligne {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}
.carte-chrono .ligne > span:first-child {
  font-size: var(--fs-md);
  color: var(--paiement-gris);
}
.carte-chrono .compte {
  font-size: 1.9rem;
  font-weight: 700;
  color: #111;
  line-height: 1;
}
.carte-chrono.urgence .compte { color: #b02a2a; }
.jauge-chrono {
  height: 4px;
  border-radius: 2px;
  background: #ece8e0;
  overflow: hidden;
}
.jauge-chrono i {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 2px;
  background: var(--paiement-encours);
  transition: width 1s linear;
}
.carte-chrono.urgence .jauge-chrono i { background: #b02a2a; }

/* Les trois etapes : ce qui est fait, ce qu'on attend, ce qui suivra */
.etapes-paiement {
  padding: 0;
  margin: 0 0 18px;
  list-style: none;
}
.etapes-paiement li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 0;
  font-size: var(--fs-base);
  color: #9ca3af;
}
.etapes-paiement li b {
  display: block;
  font-weight: 600;
}
.etapes-paiement li small {
  display: block;
  font-size: var(--fs-sm);
  color: var(--paiement-gris);
  margin-top: 1px;
}
.etapes-paiement li .puce {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  border: 2px solid #e0dcd3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-sm);
  color: #fff;
}
.etapes-paiement li.faite { color: #1f2937; }
.etapes-paiement li.faite .puce {
  background: var(--paiement-accent);
  border-color: var(--paiement-accent);
}
.etapes-paiement li.encours { color: #111; }
.etapes-paiement li.encours b { font-weight: 700; }
.etapes-paiement li.encours small { color: var(--paiement-encours); }
.etapes-paiement li.encours .puce {
  border-color: var(--paiement-encours);
  position: relative;
}
.etapes-paiement li.encours .puce::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--paiement-encours);
}

/* Le conseil qu'on cherche quand rien n'arrive sur le telephone */
.encart-paiement {
  background: #f4f2ee;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: var(--fs-md);
  color: #4b5563;
  line-height: 1.5;
  margin-bottom: 16px;
}
.encart-paiement b { color: #1f2937; }

/* ---------- Echec ---------- */
.carte-reference {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--paiement-trait);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.carte-reference .chiffres { font-size: var(--fs-base); color: #111; }
.carte-reference .montant { font-weight: 700; white-space: nowrap; }

.encart-litige {
  border: 1px solid #f0d2d2;
  border-radius: 12px;
  padding: 14px;
  margin-top: 16px;
}
.encart-litige b {
  display: block;
  font-size: var(--fs-base);
  color: #b02a2a;
  margin-bottom: 5px;
}
.encart-litige p {
  font-size: var(--fs-md);
  color: #6b5252;
  line-height: 1.5;
  margin-bottom: 9px;
}
.encart-litige a {
  font-size: var(--fs-md);
  font-weight: 700;
  color: #b02a2a;
  text-decoration: none;
}

/* ---------- Recu ---------- */
.bandeau-succes {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.bandeau-succes .marque {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--paiement-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  animation: marqueApparait .35s ease-out;
}
@keyframes marqueApparait {
  from { transform: scale(.4); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.bandeau-succes b {
  display: block;
  font-size: var(--fs-lg);
  font-weight: 800;
  color: #111;
}
.bandeau-succes small {
  display: block;
  font-size: var(--fs-md);
  color: var(--paiement-gris);
}

/* La carte de l'achat, decoupee comme un coupon */
.recu {
  background: #fdfcfa;
  border: 1px solid var(--paiement-trait);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 18px;
}
.recu-haut {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.recu-haut .micro { margin-bottom: 0; }
.recu-titre {
  font-size: var(--fs-xl);
  font-weight: 800;
  color: #111;
  margin: 8px 0 16px;
  line-height: 1.2;
}
.recu-grille {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 12px;
}
.recu-grille > div > b {
  font-size: var(--fs-base);
  font-weight: 700;
  color: #111;
}
.recu-grille .pleine-largeur { grid-column: 1 / -1; }

/* Le pointille du coupon, avec ses encoches sur les bords */
.recu-perfore {
  position: relative;
  height: 1px;
  border-top: 2px dashed #ded9d0;
  margin: 18px -16px;
}
.recu-perfore::before,
.recu-perfore::after {
  content: "";
  position: absolute;
  top: -11px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--paiement-carte);
}
.recu-perfore::before { left: -10px; }
.recu-perfore::after { right: -10px; }

.recu-code { text-align: center; }
.recu-code .chiffres {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: #111;
  letter-spacing: .12em;
}
.recu-note {
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--paiement-gris);
  margin-top: 8px;
}

/* Sur grand ecran (le back-office se consulte sur ordinateur), la feuille
   cesse de s'etirer : elle reste une boite de la largeur d'un telephone,
   posee au centre. left/right a 0 plus une marge automatique suffisent,
   sans transform, qui entrerait en conflit avec l'animation d'ouverture. */
@media (min-width: 560px) {
  #modalDon {
    max-width: 460px;
    margin: 0 auto;
  }
}

@media (max-width: 360px) {
  .titre-paiement { font-size: var(--fs-xl); }
  .recu-grille { grid-template-columns: 1fr; }
}

.unselect {
  color: transparent;
  user-select: none; /* Standard */
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none;
}
#dayOfWeek {
padding: .5rem;
border: 1px #fff solid;
border-radius: 12px;
}
.profile .profile-card .card-bottom .state-circle {
height: 70px !important;
width: 70px !important;
}
.js-events {
display: none !important;
}
.bi-calendar2-day::before {
font-size: 30px;
}
.matchboard .game.active {
background-color: #959f70;
}
.nom-equipe .card-inner .gap-2 small {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
width: 75px;
}
.matchboard .nav .nav-link, .mitemps .view-stats{
color: #ffffff;
border: 1px solid #0e2f24;
background-color: #000000;
}
.titulaire {
background-color: rgb(0, 255, 55) !important;
}
.top-navigation, .bottom-navigation {
background-color: #000000 !important;
}
.team-names {
display: flex;
justify-content: space-between;
font-weight: bold;
margin-bottom: 10px;
}

.stat-row {
margin-bottom: 15px;
}

.bar-container {
display: flex;
height: 20px;
background: #e0e0e0;
border-radius: 10px;
overflow: hidden;
}

.bar-home {
background-color: #00c853;
height: 100%;
}

.bar-away {
background-color: #2962ff;
height: 100%;
}

.stat-label {
text-align: center;
margin: 5px 0;
font-size: var(--fs-md);
}

.stat-values {
display: flex;
justify-content: space-between;
font-size: var(--fs-md);
}
.tableau-carton thead, .tableau-carton tbody {
background-color: #ffffff;
}
.bootstrap-calendar-container {
margin-left: 1rem;
margin-right: 1rem;
}
.fw-bold.active{
background-color: green;
color: white;
}
.cursor-pointer {
cursor: pointer;
}
.rounded-circle {
border-radius: 50% !important;
cursor: pointer;
}

.dropdown-toggle::after {
display: none !important;
}
.top-navigation {
z-index: 10;
background-color: #1c203b;
position: fixed;
top: 0;
padding: 4px 10px;
width: 100%;
left: 0;
display: flex;
justify-content: space-between;
/* Hauteur constante : sans elle, un bouton en plus dans l'en-tete decalait
   tout le contenu de la page de 18 px par rapport aux autres ecrans. */
min-height: var(--hauteur-entete);
align-items: center;
}
/* Les boutons de l'en-tete n'ajoutent pas leur propre hauteur */
.top-navigation .btn { padding: 2px 6px; line-height: 1; }
.top-navigation .nav-pills { margin: 0 !important; }
/* ---------------------------------------------------------------------
   Statut des matchs (badge "Direct", score du vainqueur)
   --------------------------------------------------------------------- */
/* Badge "Direct" clignotant : match en cours (statut_match = 2) */
.badge-direct {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  background: #e53935;
  color: #fff;
  font-weight: 700;
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  padding: 0.3em 0.75em;
  border-radius: 20px;
  animation: direct-clignote 1.2s ease-in-out infinite;
}
.badge-direct::before {
  content: "";
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: #fff;
}
/* Pastille de l'onglet "En direct" quand au moins un match est en cours */
.live.live-actif {
  color: #e53935 !important;
  animation: direct-clignote 1.2s ease-in-out infinite;
}
@keyframes direct-clignote {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
@media (prefers-reduced-motion: reduce) {
  .badge-direct, .live.live-actif { animation: none; }
}

/* Score de l'equipe gagnante, une fois le match termine */
.score-gagnant {
  color: #1e9e4a !important;
}

/* ---------------------------------------------------------------------
   Ecran de don
   --------------------------------------------------------------------- */
.don-titre {
  font-weight: 800;
  letter-spacing: 0.04em;
}
/* Montant mis en avant (500 FCFA) */
.dons.don-vedette {
  padding: 0.6rem;
  border: 2px solid var(--primary);
  border-radius: 14px;
  background: var(--primary-voile);
}

/* Titres de categorie dans les statistiques d'un match */
.stats-categorie {
  font-weight: 700;
  text-transform: uppercase;
  font-size: var(--fs-sm);
  letter-spacing: 0.05em;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #e0e0e0;
}

/* ---------------------------------------------------------------------
   Classements complementaires (attaque, defense, fair-play, sanctions)
   --------------------------------------------------------------------- */
.palmares-titre {
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.palmares-titre .bi {
  color: var(--primary-fonce);
}
/* Petit carton de couleur dans les en-tetes de colonnes */
.carton {
  display: inline-block;
  width: 0.6em;
  height: 0.85em;
  border-radius: 2px;
  vertical-align: middle;
}
.carton-jaune { background: #f5c518; }
.carton-rouge { background: #e53935; }

.entete-ligue-transferts {
  font-size: var(--fs-base);
  font-weight: 700;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--primary-fonce);
}

.liste-transferts {
  border-radius: 0;
}

/* Une ligne de transfert se lit d'un coup d'oeil : qui, d'ou, vers ou, quand.
   Sur un telephone la route des clubs passe sous le nom, dans l'alignement
   du texte ; des qu'il y a la place, tout revient sur une seule ligne. */
.ligne-transfert {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "photo identite date"
    "photo route    route";
  align-items: center;
  column-gap: 10px;
  row-gap: 4px;
  padding: 0.6rem 0.25rem;
  border: 0;
  border-bottom: 1px solid var(--paiement-trait);
}
.liste-transferts .ligne-transfert:last-child {
  border-bottom: 0;
}

.ligne-transfert .avatar-transfert { grid-area: photo; }
.ligne-transfert .identite-transfert { grid-area: identite; }
.ligne-transfert .route-transfert { grid-area: route; }
.ligne-transfert .date-transfert { grid-area: date; }

.avatar-transfert {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  /* Une photo qui met du temps a venir ne doit pas laisser un trou blanc */
  background: #ece9e2;
}

.identite-transfert {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.identite-transfert .nom-joueur {
  font-weight: 600;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.identite-transfert .poste-joueur {
  font-size: var(--fs-xs);
  color: var(--paiement-gris);
}

/* Le club quitte, la fleche, le club rejoint. */
.route-transfert {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: var(--fs-xs);
}
.route-transfert .club {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.route-transfert .nom-club {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.route-transfert .logo-club {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex: 0 0 auto;
}
.fleche-transfert {
  color: var(--primary-fonce);
  flex: 0 0 auto;
  font-size: 0.7rem;
}

.date-transfert {
  font-size: var(--fs-xs);
  color: var(--paiement-gris);
  white-space: nowrap;
}

/* Des qu'il y a la place, la ligne du modele : photo, identite, route, date. */
@media (min-width: 560px) {
  .ligne-transfert {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    grid-template-areas: "photo identite route date";
    column-gap: 14px;
  }
  .route-transfert { justify-content: flex-end; }
}

/* Événements du match : titre de groupe (Buts / Cartons / Changements…) */
.timeline-groupe {
    font-size: var(--fs-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #777;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    padding-top: 6px;
    margin-bottom: 2px;
}
.timeline-groupe:first-child {
    padding-top: 0;
}

/* Filtres de l'onglet Matchs (journée, phase) */
.filtres-matchs .filtre-groupe {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
}
.filtres-matchs .filtre-chip {
    flex: 0 0 auto;
    border: 1px solid rgba(0, 0, 0, .15);
    background: #fff;
    color: #333;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: var(--fs-md);
    white-space: nowrap;
}
.filtres-matchs .filtre-chip.active {
    background: #959f70;
    border-color: #959f70;
    color: #fff;
    font-weight: 600;
}
.journee-badge {
    color: #959f70;
}

/* Onglet Avant-match : pastilles d'equipe et forme recente (V / N / D) */
.pastille-equipe {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.forme-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
  flex-shrink: 0;
}
.forme-V { background: #28a745; }
.forme-N { background: #adb5bd; }
.forme-D { background: #dc3545; }

/* Synthese aller-retour : nom d'equipe tronque de chaque cote du score cumule */
.paire-aller-retour .paire-equipe {
  flex: 1;
  min-width: 0;
  font-size: var(--fs-md);
}

/* Onglets de saison de la page Transferts : ils defilent horizontalement
   quand il y a plus de saisons que de largeur d'ecran. */
.saisons-transferts {
  margin-top: var(--espace-sous-entete);
  padding-bottom: 4px;
}
.saisons-transferts .nav-link {
  white-space: nowrap;
  font-size: var(--fs-md);
  padding: 6px 14px;
}

/* Logo de la ligue dans la liste des transferts */
.transferts-logo {
  object-fit: contain;
  border-radius: 4px;
  flex: 0 0 auto;
}

/* ---------- Page Ligues ----------
   Liste a la maniere d'une application mobile : une barre de recherche qui
   reste sous la main, des sections par sport, et des lignes assez hautes
   pour etre touchees du pouce (48 px minimum). */
.recherche-ligues {
  /* L'en-tete de l'application est fixe : la liste commence sous lui, et la
     barre de recherche s'y colle ensuite pendant le defilement. Sans cette
     marge, elle recouvrirait les premieres ligues des l'ouverture. */
  margin-top: var(--espace-sous-entete);
  position: sticky;
  /* 52px = hauteur de l'en-tete fixe : la barre s'y colle sans laisser voir
     la liste defiler dans l'interstice. */
  top: 52px;
  z-index: 5;
  padding: 10px 0;
  background: var(--body-color);
}
.champ-recherche {
  position: relative;
  display: flex;
  align-items: center;
}
.champ-recherche > .bi-search {
  position: absolute;
  left: 14px;
  color: #8a8f98;
  font-size: var(--fs-base);
  pointer-events: none;
}
.champ-recherche input {
  height: 44px;
  border: none;
  border-radius: 12px;
  background: #fff;
  padding: 0 40px 0 40px;
  font-size: var(--fs-base);
  color: #111;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}
.champ-recherche input:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--primary);
}
/* La croix native de Safari et Chrome ferait doublon avec la notre */
.champ-recherche input::-webkit-search-cancel-button { display: none; }
.champ-recherche .effacer {
  position: absolute;
  right: 10px;
  border: none;
  background: none;
  color: #b3b7be;
  font-size: var(--fs-lg);
  line-height: 1;
  padding: 4px;
}

.groupe-sport { margin-bottom: 18px; }
.entete-sport {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px 8px;
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #6b7280;
}
.entete-sport .compte {
  background: #e5e7eb;
  color: #4b5563;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: var(--fs-xs);
}

.carte-ligues {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}
.ligne-ligue {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 10px 14px;
  color: #111;
  text-decoration: none;
  border-bottom: 1px solid #f0f1f3;
}
.ligne-ligue:last-child { border-bottom: none; }
.ligne-ligue:active { background: #f5f6f8; }
.ligne-ligue .logo-ligue {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  background: #f5f6f8;
  flex: 0 0 auto;
}
.ligne-ligue .infos { flex: 1; min-width: 0; }
.ligne-ligue .nom {
  font-size: var(--fs-base);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ligne-ligue .lieu {
  font-size: var(--fs-sm);
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ligne-ligue .icone-sport { opacity: .65; flex: 0 0 auto; }
.ligne-ligue .chevron { color: #c4c8cf; font-size: var(--fs-base); flex: 0 0 auto; }

/* ---------- Filtres de la page Transferts ---------- */
/* Recherche et sports restent visibles pendant le defilement, comme sur la
   page Ligues : on affine la liste sans remonter. */
.filtres-transferts {
  position: sticky;
  top: 52px;
  z-index: 5;
  padding: 10px 0 6px;
  background: var(--body-color);
}
.sports-transferts {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-top: 8px;
  scrollbar-width: none;
}
.sports-transferts::-webkit-scrollbar { display: none; }
.filtre-sport {
  flex: 0 0 auto;
  border: none;
  border-radius: 999px;
  background: #fff;
  color: #4b5563;
  padding: 6px 14px;
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}
.filtre-sport.active {
  background: var(--primary-fonce);
  color: #fff;
}


/* ---------- Page Dons : a quoi sert le don ---------- */
.appel-don {
  text-align: center;
  /* L'en-tete de l'application est fixe : sans cette marge, le titre se
     glisse dessous et seul le sous-titre reste lisible. */
  margin-top: var(--espace-sous-entete);
  margin-bottom: 16px;
}
.appel-titre {
  font-size: var(--fs-xl);
  font-weight: 800;
  color: #111;
  letter-spacing: .02em;
  margin-bottom: 4px;
}
.appel-sous-titre {
  font-size: var(--fs-md);
  color: #4b5563;
  margin: 0;
}

/* Les trois usages du don, une couleur par usage comme sur la maquette */
.usages-don { display: flex; flex-direction: column; gap: 10px; }
.usage-don {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}
.usage-don .icone {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: var(--fs-lg);
}
.usage-don .icone.vert  { background: #16a34a; }
.usage-don .icone.jaune { background: #f0a500; }
.usage-don .icone.bleu  { background: #1e63f1; }
.usage-don .titre {
  font-size: var(--fs-md);
  font-weight: 800;
  letter-spacing: .02em;
  margin-bottom: 2px;
}
.usage-don .titre.vert  { color: #16a34a; }
.usage-don .titre.jaune { color: #d18700; }
.usage-don .titre.bleu  { color: #1e63f1; }
.usage-don .texte {
  font-size: var(--fs-sm);
  color: #4b5563;
  margin: 0;
}

/* ---------- Objectif de la communaute ---------- */
.objectif-don {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
  text-align: center;
}
.objectif-don .entete {
  font-size: var(--fs-sm);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #6b7280;
  margin-bottom: 8px;
}
.objectif-don .compte {
  font-size: var(--fs-md);
  color: #111;
}
.objectif-don .compte strong { font-size: var(--fs-lg); }
.objectif-don .jauge {
  height: 12px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}
/* La barre s'anime au chargement : le compteur doit se sentir vivant */
.objectif-don .jauge span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #16a34a, #22c55e);
  animation: jaugeSeRemplit .9s ease-out;
}
@keyframes jaugeSeRemplit { from { width: 0 !important; } }
.objectif-don .encouragement {
  margin-top: 10px;
  font-size: var(--fs-sm);
  color: #4b5563;
}

/* ---------- Les montants ---------- */
.btn-contribue {
  width: 100%;
  min-height: 54px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(90deg, #15803d, #16a34a);
  color: #fff;
  font-size: var(--fs-lg);
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: 0 4px 12px rgba(22, 163, 74, .3);
}
.btn-contribue:active { transform: translateY(1px); }

.autres-montants-titre {
  text-align: center;
  font-size: var(--fs-sm);
  color: #6b7280;
  margin: 16px 0 8px;
}
.autres-montants { display: flex; gap: 8px; }
.autres-montants .montant {
  flex: 1;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  padding: 10px 6px;
  text-align: center;
  color: #111;
}
.autres-montants .montant:active { background: #f5f6f8; }
.autres-montants .montant .valeur {
  display: block;
  font-size: var(--fs-base);
  font-weight: 800;
}
.autres-montants .montant .phrase {
  display: block;
  font-size: var(--fs-xs);
  color: #6b7280;
  line-height: 1.25;
  margin-top: 2px;
}

.pas-maintenant {
  display: block;
  text-align: center;
  padding: 16px 0 6px;
  font-size: var(--fs-md);
  color: #6b7280;
  text-decoration: none;
}


/* ---------- Onglet "Suivre mes equipes" d'une ligue ---------- */
.suivi-equipes {
  /* L'en-tete et les onglets sont fixes ; la barre d'action mange le bas */
  margin-top: 12px;
  padding: 0 4px 96px;
  color: #111;
}

/* L'offre : ce que l'on recoit, a quel prix, et ou en est l'utilisateur */
.carte-offre {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
  margin-bottom: 18px;
}
.carte-offre .entete {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.carte-offre .cloche {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #959f70, #6f7a4e);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-lg);
  flex: 0 0 auto;
}
.carte-offre .titre { font-size: var(--fs-lg); font-weight: 800; }
.carte-offre .prix { font-size: var(--fs-md); color: #6b7280; font-weight: 600; }
.carte-offre .avantages {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}
.carte-offre .avantages li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-md);
  color: #4b5563;
  padding: 3px 0;
}
.carte-offre .avantages .bi { color: #16a34a; }
.carte-offre .etat {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: var(--fs-sm);
}
.carte-offre .etat.actif { background: rgba(22, 163, 74, .1); color: #15803d; font-weight: 600; }
.carte-offre .etat.inactif { background: #f3f4f6; color: #4b5563; }

.entete-categorie {
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #6b7280;
  padding: 0 4px 8px;
  margin-top: 16px;
}
.carte-equipes {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}
.ligne-equipe {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 8px 12px;
  border-bottom: 1px solid #f0f1f3;
}
.ligne-equipe:last-child { border-bottom: none; }
/* Une equipe suivie se reconnait a la ligne entiere, pas a une icone */
.ligne-equipe.suivie { background: var(--primary-voile); }
.ligne-equipe .logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: contain;
  background: #f5f6f8;
  flex: 0 0 auto;
}
.ligne-equipe .logo.vide {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b3b7be;
}
.ligne-equipe .nom {
  flex: 1;
  min-width: 0;
  font-size: var(--fs-base);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bascule-cloche {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #f3f4f6;
  color: #9ca3af;
  font-size: var(--fs-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bascule-cloche[aria-pressed="true"] { background: var(--primary-fonce); color: #fff; }

/* Barre d'action : elle reste sous le pouce pendant le defilement */
.barre-suivi {
  /* display impose : une regle generale de la page met les enfants de la
     section en flex, ce qui collait le bouton a cote du compteur. */
  display: block;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  background: #fff;
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
  box-shadow: 0 -2px 12px rgba(0, 0, 0, .1);
}
.barre-suivi .compte-suivies {
  text-align: center;
  font-size: var(--fs-sm);
  color: #6b7280;
  margin-bottom: 8px;
}
.btn-suivi {
  display: block;
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 14px;
  background: var(--primary-fonce);
  color: #fff;
  font-size: var(--fs-base);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  line-height: 48px;
}

/* Mention de securite : discrete mais toujours la, sur la feuille de saisie
   comme sur l'ecran d'attente. */
.mention-securite {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 10px 0 0;
  font-size: var(--fs-xs);
  color: #6b7280;
}
.mention-securite .bi { font-size: var(--fs-xs); }

/* ---------- Selecteur de discipline ----------
   Trois pastilles rondes sans libelle passaient pour des illustrations. Un
   bloc de segments accoles, nommes, se lit comme une navigation : on voit ou
   on est et ou l'on peut aller. */
.choix-sport {
  /* L'en-tete de l'application est fixe : le selecteur commence sous lui */
  margin: var(--espace-sous-entete) 0 14px;
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #e9eaee;
  border-radius: 14px;
}
.segment-sport {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 6px 4px;
  border-radius: 11px;
  font-size: var(--fs-md);
  font-weight: 600;
  color: #4b5563;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s, color .15s;
}
.segment-sport img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  /* Les ballons sont dessines en noir : ils restent lisibles sur le segment
     actif, qui est fonce, grace a cette inversion. */
  transition: filter .15s;
}
.segment-sport.actif {
  background: var(--primary-fonce);
  color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
}
.segment-sport.actif img { filter: brightness(0) invert(1); }
.segment-sport:not(.actif):active { background: rgba(255, 255, 255, .7); }

/* ---------- Utilitaires Bootstrap ramenes sur la charte ----------
   Les vues heritees emploient .btn-primary, .text-primary, .bg-primary, que
   Bootstrap peint en bleu. Plutot que de reprendre chaque vue, on redefinit
   ces utilitaires : le bleu ne revient plus par la porte du framework. */
.btn-primary,
.btn-primary:disabled,
.btn-primary.disabled {
  background-color: var(--primary-fonce);
  border-color: var(--primary-fonce);
  color: #fff;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.btn-check:checked + .btn-primary {
  background-color: #65703f;
  border-color: #65703f;
  color: #fff;
}
.btn-primary:focus-visible { box-shadow: 0 0 0 3px rgba(149, 159, 112, .4); }

.btn-outline-primary {
  color: var(--primary-fonce);
  border-color: var(--primary-fonce);
}
.btn-outline-primary:hover,
.btn-outline-primary:active {
  background-color: var(--primary-fonce);
  border-color: var(--primary-fonce);
  color: #fff;
}

.text-primary { color: var(--primary-fonce) !important; }
.bg-primary { background-color: var(--primary-fonce) !important; }
.border-primary { border-color: var(--primary-fonce) !important; }
.link-primary { color: var(--primary-fonce) !important; }

/* Cases et boutons radio coches, barres de progression, curseurs */
.form-check-input:checked {
  background-color: var(--primary-fonce);
  border-color: var(--primary-fonce);
}
.form-check-input:focus { box-shadow: 0 0 0 3px rgba(149, 159, 112, .3); }
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(149, 159, 112, .25);
}
.progress-bar { background-color: var(--primary-fonce); }
.nav-pills .nav-link.active { background-color: var(--primary-fonce); }
.spinner-primary { border-color: var(--primary-fonce) !important; }

/* ---------- Barre de date (pages de matchs) ----------
   Reculer d'un jour, avancer, ou toucher le milieu pour ouvrir le calendrier :
   les trois gestes sont au meme endroit, sous le pouce. */
.barre-date {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}


.barre-date .jour-precedent,
.barre-date .jour-suivant {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 12px;
  background: #fff;
  color: var(--primary-fonce);
  font-size: var(--fs-lg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}
.barre-date .jour-precedent:active,
.barre-date .jour-suivant:active { background: #f0f1f3; }

.barre-date .jour-courant { flex: 1; min-width: 0; }
.barre-date .libelle-jour {
  width: 100%;
  min-height: 42px;
  border: none;
  border-radius: 12px;
  background: #fff;
  color: #111;
  font-size: var(--fs-base);
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 10px;
}
/* Quand on s'est eloigne du jour meme, le libelle se colore : on voit d'un
   coup d'oeil que la liste affichee n'est pas celle d'aujourd'hui. */
.barre-date:not(.sur-aujourdhui) .libelle-jour {
  background: var(--primary-fonce);
  color: #fff;
}
.barre-date .dropdown-menu { border: none; box-shadow: 0 4px 16px rgba(0, 0, 0, .18); }

/* Le calendrier de jquery.bs.calendar peint ses fleches et le jour choisi en
   bleu Bootstrap, par des classes qui lui sont propres : on les ramene aussi
   sur la charte, sinon la seule tache bleue de l'application restait la. */
#calendar_dropdown .btn-link { color: var(--primary-fonce); }
#calendar_dropdown .js-cell-inner.bg-primary,
#calendar_dropdown .bg-primary,
/* .text-bg-primary : la classe que la bibliotheque pose sur le jour meme */
#calendar_dropdown .text-bg-primary,
.text-bg-primary { background-color: var(--primary-fonce) !important; color: #fff !important; }
#calendar_dropdown .text-primary { color: var(--primary-fonce) !important; }

/* Onglets d'une page de ligue : ils suivent le flux, sous l'en-tete fixe. */
.onglets-ligue {
  gap: 0.5rem;
  margin-top: var(--espace-sous-entete);
  margin-bottom: 12px;
}

/* ---------- Le panneau des listes vides ----------
   Repris de la maquette : fond sombre, bordure en pointilles, pastille bleue
   et titre en capitales. Il occupe la place qu'aurait prise la liste, pour
   qu'un jour sans match se lise comme un jour sans match, et non comme un
   chargement qui a echoue. */
.panneau-vide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 40px 20px;
  margin: 8px 0 24px;
  border: 1px dashed #3a3f46;
  border-radius: 18px;
  background: #15181c;
  text-align: center;
}
.panneau-vide-icone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  border-radius: 22px;
  /* Le degrade et le liseré clair donnent le relief de la pastille */
  background: linear-gradient(160deg, #27456f 0%, #1b2b45 100%);
  border: 1px solid rgba(125, 170, 240, .28);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .45);
  /* Le pictogramme reste blanc : c'est la couleur que l'application donne a
     ses icones posees sur un fond colore. */
  color: #fff;
  font-size: 2.3rem;
  line-height: 1;
}
.panneau-vide-titre {
  margin: 0;
  color: #f1f3f5;
  font-size: var(--fs-lg);
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ---------- L'onglet "En direct" sans match ----------
   Le panneau des listes vides, avec un tableau d'affichage eteint a la place
   de la pastille : on comprend qu'aucun score ne tourne, pas que la page a
   echoue. */
.panneau-direct-vide { gap: 12px; padding: 32px 22px 28px; }
.panneau-direct-vide .tableau-eteint { width: 168px; height: auto; margin-bottom: 4px; }
.tableau-eteint .tableau-cadre  { fill: #1f242b; stroke: #3a3f46; stroke-width: 2; }
.tableau-eteint .tableau-case   { fill: #111418; stroke: #2c3138; stroke-width: 1.5; }
.tableau-eteint .tableau-tiret  { fill: #4a515a; }
.tableau-eteint .tableau-point  { fill: #4a515a; }
.tableau-eteint .tableau-direct { fill: #111418; }
.tableau-eteint .tableau-voyant { fill: #5c636c; }
.tableau-eteint .tableau-pied   { fill: #2c3138; }
.panneau-vide-texte {
  margin: 0;
  max-width: 300px;
  color: #a7adb5;
  font-size: var(--fs-sm);
  line-height: 1.5;
}
.btn-voir-jour {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(125, 170, 240, .35);
  border-radius: 999px;
  background: linear-gradient(160deg, #27456f 0%, #1b2b45 100%);
  color: #fff;
  font-weight: 700;
  font-size: var(--fs-sm);
}
.btn-voir-jour:active { transform: translateY(1px); }

/* ---------- Les zones d'un classement de championnat ----------
   Trois en tete, trois en bas. Le fond reste pale : un tableau de chiffres se
   lit encore, et la barre de couleur a gauche suffit a situer la zone. On
   passe par --bs-table-bg pour que le survol de Bootstrap continue de jouer. */
.classement .rang-haut { --bs-table-bg: var(--primary-voile); }
.classement .rang-bas  { --bs-table-bg: rgba(220, 53, 69, .13); }
.classement .rang-haut td:first-child { border-left: 3px solid var(--primary); }
.classement .rang-bas  td:first-child { border-left: 3px solid #dc3545; }

/* Deux couleurs sans legende ne sont qu'un decor */
.legende-classement {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: -4px 0 18px;
  font-size: var(--fs-sm);
  color: #6b7280;
}
.legende-classement span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.legende-classement .puce {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}
.legende-classement .puce-haut { background: var(--primary); }
.legende-classement .puce-bas  { background: #dc3545; }

/* ---------- Choix de la saison sur la page d'une ligue ----------
   Une ligne discrete entre le nom de la ligue et les onglets : l'internaute
   vient d'abord pour la saison en cours, l'archive ne doit pas lui disputer
   la place. Quand elle est la, c'est elle qui porte l'espace sous l'en-tete. */
.barre-saison {
  margin-top: var(--espace-sous-entete);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.barre-saison + .onglets-ligue { margin-top: 12px; }
.barre-saison label {
  font-size: var(--fs-sm);
  color: #6c757d;
  margin: 0;
}
.choix-saison {
  border: 1px solid var(--primary);
  border-radius: 999px;
  background: #fff;
  color: var(--primary-fonce);
  font-size: var(--fs-md);
  font-weight: 600;
  padding: 5px 30px 5px 12px;
  /* Le chevron est dessine ici : les listes natives n'ont pas la meme fleche
     d'un navigateur a l'autre, et celle de Chrome deborde de la pastille. */
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236f7a4e'%3E%3Cpath d='M8 11 3.5 6.5 4.56 5.44 8 8.88l3.44-3.44L12.5 6.5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  background-size: 14px;
}
.choix-saison:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-voile);
}
/* Rappel qu'on ne regarde pas la saison en cours : sans lui, un classement
   archive se lit comme le classement du moment. */
.etiquette-archive {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--primary-fonce);
  background: var(--primary-voile);
  border-radius: 999px;
  padding: 4px 10px;
}

/* Contenu place sous ces onglets : ils sont deja dans le flux, il ne reste
   qu'une respiration, la meme d'un onglet a l'autre. */
.sous-onglets { margin-top: 12px; }
.sous-entete { margin-top: var(--espace-sous-entete); }

/* ---------- La barre de date dans l'en-tete noir ----------
   Entre le nom du sport et l'icone du compte : elle s'y porte en blanc, sans
   fond ni ombre, pour ne pas y poser un bloc clair. */
.top-navigation .barre-date {
  flex: 1;
  min-width: 0;
  justify-content: center;
  margin: 0 8px;
  gap: 0;
}
.top-navigation .barre-date .jour-precedent,
.top-navigation .barre-date .jour-suivant {
  width: 30px;
  height: 34px;
  background: transparent;
  box-shadow: none;
  color: #fff;
  font-size: var(--fs-base);
}
.top-navigation .barre-date .libelle-jour {
  width: auto;
  min-height: 34px;
  padding: 0 6px;
  background: transparent;
  box-shadow: none;
  color: #fff;
  font-size: var(--fs-md);
}
/* Sans cela le libelle mange toute la largeur et le groupe fleche-jour-fleche
   se retrouve plaque a gauche au lieu d'etre centre. */
.top-navigation .barre-date .jour-courant { flex: 0 1 auto; min-width: 0; }

/* Un jour autre qu'aujourd'hui se signale par un fond discret, le fond plein
   etant trop lourd dans une barre noire. */
.top-navigation .barre-date:not(.sur-aujourdhui) .libelle-jour {
  background: rgba(255, 255, 255, .14);
  border-radius: 10px;
}
/* Le calendrier s'ouvre sous l'en-tete, au-dessus du contenu de la page */
.top-navigation .dropdown-menu { z-index: 1060; }

/* ---------- Avis des visiteurs (users/commentaires) ----------
   L'ecran reutilisait .bet-card, une classe prevue pour des cartes a image
   debordante : son margin-top de 50px creusait des trous irreguliers entre
   les avis, et son aplat olive pleine largeur les faisait passer pour des
   bannieres. Les avis sont du texte : ils se lisent sur fond clair. */
.carte-avis {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 14px;
  padding: 16px 14px 12px;
  margin-bottom: 26px;
}

.titre-avis {
  font-size: var(--fs-lg);
  font-weight: 600;
  margin: 0 0 4px;
}

.intro-avis {
  font-size: var(--fs-md);
  color: #5a5a5a;
  margin: 0 0 12px;
}

.champ-avis {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, .14);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: var(--fs-base);
  font-family: inherit;
  resize: vertical;
  min-height: 84px;
}

.champ-avis:focus {
  outline: none;
  border-color: var(--primary-fonce);
  box-shadow: 0 0 0 3px var(--primary-voile);
}

.pied-avis {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.compteur-avis {
  font-size: var(--fs-sm);
  color: #8a8a8a;
  font-variant-numeric: tabular-nums;
}

.compteur-avis.proche-limite { color: #c0392b; }

.btn-avis {
  background: var(--primary-fonce);
  color: #fff;
  border: none;
  border-radius: 61px;
  padding: 9px 22px;
  font-size: var(--fs-base);
  font-weight: 500;
}

.btn-avis:disabled {
  background: #c9c9c9;
  color: #f2f2f2;
}

.entete-liste-avis {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.titre-liste-avis {
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #6a6a6a;
  margin: 0;
}

.compte-avis {
  font-size: var(--fs-sm);
  color: var(--primary-fonce);
  font-weight: 600;
}

/* Un filet olive a gauche rattache l'avis a la charte sans noyer le texte
   dans un aplat, ou il n'etait plus lisible. */
.avis {
  position: relative;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .07);
  border-left: 3px solid var(--primary);
  border-radius: 10px;
  padding: 12px 14px 8px 34px;
  margin-bottom: 10px;
}

.icone-avis {
  position: absolute;
  top: 9px;
  left: 11px;
  font-size: 1rem;
  color: var(--primary);
  line-height: 1;
}

.texte-avis {
  font-size: var(--fs-base);
  margin: 0;
  overflow-wrap: anywhere; /* un mot sans espace ne doit pas elargir l'ecran */
}

.date-avis {
  font-size: var(--fs-sm);
  color: #8a8a8a;
  text-align: right;
  margin: 4px 0 0;
}

.etat-avis {
  text-align: center;
  font-size: var(--fs-md);
  color: #7a7a7a;
  padding: 22px 10px;
  margin: 0;
}

.etat-avis.erreur { color: #c0392b; }

.zone-voir-plus {
  display: flex;
  justify-content: center;
  padding: 4px 0 18px;
}

.btn-voir-plus,
.btn-reessayer {
  background: transparent;
  border: 1px solid var(--primary-fonce);
  color: var(--primary-fonce);
  border-radius: 61px;
  padding: 7px 20px;
  font-size: var(--fs-md);
  font-weight: 500;
}

.btn-reessayer { margin-top: 10px; }

.btn-voir-plus:disabled {
  opacity: .5;
}

/* ---------- Chat des matchs ----------
   Le fil etait une liste de lignes "Pseudo : texte" separees par des <hr>,
   posee en styles en dur dans les trois vues de detail. On ne distinguait
   pas ses propres messages de ceux des autres. */
.chat-match {
  display: flex;
  flex-direction: column;
  height: 60vh;
  min-height: 300px;
  padding: 0 4px;
  color: var(--text-color);
}

.fil-chat {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #f4f4f2;
  border-radius: 12px;
  padding: 12px 10px;
}

.chat-vide {
  text-align: center;
  font-size: var(--fs-md);
  color: #8a8a8a;
  margin: 0;
  padding: 36px 10px;
}

.ligne-chat {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  margin-bottom: 10px;
}

/* Ses propres messages basculent a droite, sans pastille ni pseudo :
   on sait qui on est. */
.ligne-chat.la-mienne { flex-direction: row-reverse; }

.pastille-chat {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary-fonce);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

.bulle-chat {
  display: flex;
  flex-direction: column;
  max-width: 78%;
  background: #fff;
  border-radius: 14px 14px 14px 4px;
  padding: 7px 11px 5px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}

.la-mienne .bulle-chat {
  background: var(--primary-voile);
  border-radius: 14px 14px 4px 14px;
}

.auteur-chat {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--primary-fonce);
  margin-bottom: 1px;
}

.texte-chat {
  font-size: var(--fs-base);
  overflow-wrap: anywhere; /* un mot sans espace ne doit pas elargir la bulle */
}

.time-ago {
  font-size: var(--fs-xs);
  color: #9a9a9a;
  align-self: flex-end;
  margin-top: 2px;
}

.time-ago:empty { display: none; }

.saisie-chat {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.champ-chat {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(0, 0, 0, .14);
  border-radius: 61px;
  padding: 9px 16px;
  font-size: var(--fs-base);
  font-family: inherit;
  background: #fff;
}

.champ-chat:focus {
  outline: none;
  border-color: var(--primary-fonce);
  box-shadow: 0 0 0 3px var(--primary-voile);
}

.champ-chat:disabled { background: #efefef; }

.btn-chat {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--primary-fonce);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-chat:disabled { background: #c9c9c9; }

/* Une regle globale met les placeholders en blanc (heritee des champs sur
   fond sombre) : sur ces deux champs, poses sur du blanc, le texte d'aide
   disparaissait completement. */
.champ-chat::placeholder,
.champ-avis::placeholder {
  color: #9a9a9a;
  opacity: 1;
}

/* ---------- Feuille d'entree au vestiaire ----------
   Meme feuille glissante que le paiement : tout ce qui monte du bas se
   ressemble. Le voile est partage (.voile-don). */
#modalVestiaire {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  background: #fff;
  color: #111;
  border-radius: 20px 20px 0 0;
  padding: 8px 18px calc(18px + env(safe-area-inset-bottom));
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, .2);
}
#modalVestiaire.ouvert { display: block; animation: feuilleMonte .25s ease-out; }

.choix-vestiaire {
  display: flex;
  gap: 6px;
  background: #f1f1ee;
  border-radius: 61px;
  padding: 4px;
  margin-bottom: 14px;
}

.segment-vestiaire {
  flex: 1;
  border: none;
  background: transparent;
  border-radius: 61px;
  padding: 8px 10px;
  font-size: var(--fs-md);
  font-weight: 600;
  color: #6b7280;
}

.segment-vestiaire.actif {
  background: var(--primary-fonce);
  color: #fff;
}

.champ-vestiaire {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, .14);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: var(--fs-base);
  font-family: inherit;
  margin-bottom: 4px;
  background: #fff;
}

.champ-vestiaire::placeholder { color: #9a9a9a; opacity: 1; }

.champ-vestiaire:focus {
  outline: none;
  border-color: var(--primary-fonce);
  box-shadow: 0 0 0 3px var(--primary-voile);
}

.btn-vestiaire {
  width: 100%;
  border: none;
  border-radius: 61px;
  background: var(--primary-fonce);
  color: #fff;
  padding: 11px 18px;
  font-size: var(--fs-base);
  font-weight: 600;
  margin-top: 12px;
}

.btn-vestiaire:disabled { background: #c9c9c9; }

.erreur-vestiaire {
  color: #c0392b;
  font-size: var(--fs-md);
  margin: 8px 0 0;
}

.mention-vestiaire {
  text-align: center;
  font-size: var(--fs-sm);
  color: #8a8a8a;
  margin: 10px 0 0;
}

.btn-plus-tard {
  display: block;
  width: 100%;
  border: none;
  background: transparent;
  color: #6b7280;
  font-size: var(--fs-md);
  padding: 12px;
  margin-top: 4px;
}

/* L'invitation affichee dans l'onglet, a la place des deux boutons qui
   emmenaient hors du match */
.appel-vestiaire {
  text-align: center;
  padding: 34px 18px;
}

.appel-vestiaire i {
  font-size: 1.9rem;
  color: var(--primary);
}

.appel-vestiaire p {
  font-size: var(--fs-base);
  color: #5a5a5a;
  margin: 10px 0 0;
}

.appel-vestiaire .btn-vestiaire {
  max-width: 260px;
  margin: 16px auto 0;
}

/* ---------- Statistiques d'un match : une carte par categorie ----------
   Les titres et leurs barres se suivaient dans le flux, sans rien pour
   marquer ou une categorie finissait. Le blanc les detache du gris du
   corps de page (--body-color). */
.carte-stats {
  background: var(--match-bg);
  border-radius: 12px;
  padding: 14px 14px 6px;
  margin-bottom: 12px;
}

/* Dans une carte, le titre n'a plus besoin de son filet : la carte borne
   deja la categorie. */
.carte-stats .stats-categorie {
  border-bottom: none;
  padding-bottom: 0;
  color: #6b7280;
}

.carte-stats > div:last-child { margin-bottom: 0 !important; }


/* ---------- Avant-match : comparaison par compartiment de jeu ----------
   Quatre groupes de deux barres, aux couleurs des deux equipes. La hauteur
   est la part du compartiment ; les lignes de fond marquent les quarts, pour
   qu'une hauteur se lise sans axe chiffre. */
.graphe-compartiments {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin-bottom: 6px;
}
.compartiment {
  flex: 1 1 0;
  min-width: 0;
}
.colonnes-compartiment {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  height: 132px;
  padding-top: 14px;
  border-bottom: 1px solid #9ca3af;
  background-image: linear-gradient(to top, var(--paiement-trait, #e5e7eb) 1px, transparent 1px);
  background-size: 100% 25%;
}
.barre-compartiment {
  position: relative;
  width: 26px;
  max-width: 40%;
  min-height: 2px;
  border-radius: 4px 4px 0 0;
}
/* La valeur se pose au-dessus de sa barre : dans la barre, elle disparait
   des que la part est faible. */
.valeur-compartiment {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: #4b5563;
}
.titre-compartiment {
  margin-top: 6px;
  text-align: center;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: #4b5563;
}
.legende-compartiments {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #4b5563;
}
.legende-compartiments span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.aucune-donnee-compartiment {
  margin: auto 0 0;
  font-size: var(--fs-sm);
  color: #9ca3af;
}

/* ---------------------------------------------------------------------
   Menu de droite : l'espace de l'utilisateur (users/_menu-compte.php)

   L'ancien panneau reprenait .profile : un fond a ballons sur toute la
   hauteur, qui passait derriere le texte, et des pilules .profile-row qui
   debordaient du panneau. .profile sert encore au menu de gauche, il n'est
   donc pas touche ; tout ce qui suit porte des noms propres a ce menu.
   --------------------------------------------------------------------- */
.menu-compte {
  width: 340px;
  max-width: 88%;
  background: var(--body-color);
  display: flex;
  flex-direction: column;
}

/* En-tete fixe : le titre et la croix restent accessibles au defilement */
.menu-compte .entete-compte {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: #fff;
  border-bottom: 1px solid #e7e3da;
}
.menu-compte .entete-compte h2 {
  font-size: var(--fs-lg);
  font-weight: 800;
  color: #111;
  margin: 0;
}
.menu-compte .fermer-compte {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: #f1efe9;
  color: #4b5563;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-base);
}

/* Seul le corps defile */
.menu-compte .corps-compte {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px 16px 8px;
}

/* Qui je suis : la pastille porte les initiales, faute de photo */
.menu-compte .identite-compte {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #e7e3da;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 20px;
}
.menu-compte .pastille-compte {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-fonce);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--fs-base);
}
.menu-compte .identite-compte .qui { min-width: 0; }
.menu-compte .identite-compte strong {
  display: block;
  font-size: var(--fs-base);
  color: #111;
}
/* Une adresse longue ne doit pas pousser la carte hors du panneau */
.menu-compte .identite-compte small {
  display: block;
  font-size: var(--fs-sm);
  color: #6b7280;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Le compteur de la communaute, sous l'adresse : il se lit, il ne se compte
   pas, donc la couleur de la marque et rien d'autre pour attirer l'oeil. */
.menu-compte .abonnes-compte {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--primary-fonce);
}
.menu-compte .abonnes-compte .bi { font-size: 0.85em; }

/* Sans compte, l'invitation prend la place de l'identite */
.menu-compte .invite-compte {
  background: #fff;
  border: 1px solid #e7e3da;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 20px;
}
.menu-compte .invite-compte strong {
  display: block;
  font-size: var(--fs-base);
  color: #111;
  margin-bottom: 4px;
}
.menu-compte .invite-compte p {
  font-size: var(--fs-md);
  color: #6b7280;
  line-height: 1.45;
  margin-bottom: 12px;
}
.menu-compte .boutons-invite { display: flex; flex-direction: column; gap: 8px; }
.menu-compte .btn-compte,
.menu-compte .btn-compte-secondaire {
  display: block;
  text-align: center;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: var(--fs-base);
  font-weight: 700;
  text-decoration: none;
}
.menu-compte .btn-compte { background: var(--primary-fonce); color: #fff; }
.menu-compte .btn-compte-secondaire {
  background: #fff;
  color: #1f2937;
  border: 1.5px solid #e7e3da;
  font-weight: 600;
}

/* Intitule de groupe : il remplace la pile indifferenciee d'avant */
.menu-compte .groupe-compte {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8b8f7a;
  margin: 0 0 8px 4px;
}

/* Les entrees d'un meme groupe forment un bloc, separees par un filet */
.menu-compte .liste-compte {
  background: #fff;
  border: 1px solid #e7e3da;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 20px;
}
.menu-compte .entree-compte {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  color: #1f2937;
  text-decoration: none;
  border-bottom: 1px solid #f0ede6;
}
.menu-compte .entree-compte:last-child { border-bottom: none; }
.menu-compte .entree-compte > .bi:first-child {
  flex: 0 0 auto;
  width: 22px;
  font-size: var(--fs-lg);
  color: var(--primary-fonce);
  text-align: center;
}
.menu-compte .entree-compte span {
  flex: 1 1 auto;
  font-size: var(--fs-base);
  font-weight: 600;
}
.menu-compte .entree-compte .fleche {
  flex: 0 0 auto;
  font-size: var(--fs-sm);
  color: #b9b5aa;
}
.menu-compte .entree-compte:active { background: #f7f5f1; }

/* Se deconnecter n'est pas une navigation comme les autres */
.menu-compte .entree-compte.sortie,
.menu-compte .entree-compte.sortie > .bi:first-child { color: #b02a2a; }

/* Pied fixe : le partenaire reste visible sans manger le haut du panneau */
.menu-compte .pied-compte {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid #e7e3da;
}
.menu-compte .micro-compte {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #9ca3af;
}
.menu-compte .pied-compte small { font-size: var(--fs-xs); color: #9ca3af; }

/* ---------------------------------------------------------------------
   Acces au vestiaire (users/signin.php)

   Meme charte que le paiement et le menu de compte : fond ivoire, carte
   blanche, accent olive, intitules en petites capitales. Les anciennes
   classes .login-card / .input-box servent encore a signup.php, elles ne
   sont pas touchees.
   --------------------------------------------------------------------- */
.page-acces {
  min-height: 100vh;
  background: #f7f5f1;
  padding-bottom: 28px;
}

/* L'image d'accueil reste : elle situe l'application avant tout texte */
.page-acces .haut-acces {
  position: relative;
  height: 210px;
  background-image: url("../img/login-20-bg.png");
  background-position: center top;
  background-size: cover;
  border-bottom-left-radius: 26px;
  border-bottom-right-radius: 26px;
}
.page-acces .haut-acces::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  border-bottom-left-radius: 26px;
  border-bottom-right-radius: 26px;
}
.page-acces .retour-acces {
  position: absolute;
  z-index: 1;
  top: 14px;
  left: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-lg);
  text-decoration: none;
}

.carte-acces {
  position: relative;
  max-width: 420px;
  margin: -46px auto 0;
  background: #fff;
  border: 1px solid #e7e3da;
  border-radius: 18px;
  padding: 0 20px 22px;
}

/* Le logo chevauche l'image et la carte */
.carte-acces .logo-acces {
  display: flex;
  justify-content: center;
  margin-top: -42px;
  margin-bottom: 10px;
}
.carte-acces .logo-acces img {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}

.titre-acces {
  font-size: var(--fs-xl);
  font-weight: 800;
  color: #111;
  text-align: center;
  margin-bottom: 6px;
}
.texte-acces {
  font-size: var(--fs-md);
  color: #6b7280;
  text-align: center;
  line-height: 1.5;
  margin-bottom: 20px;
}

.micro-acces {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 6px;
}

.champ-acces {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 12px;
  border: 1.5px solid #e7e3da;
  border-radius: 12px;
  background: #fff;
  margin-bottom: 16px;
}
.champ-acces > .bi { color: #9aa0a6; font-size: var(--fs-lg); }
.champ-acces input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  border: none;
  background: transparent;
  color: #111;
  font-size: var(--fs-base);
}
.champ-acces input:focus { outline: none; }
/* Le placeholder global de l'application est blanc : invisible ici */
.champ-acces input::placeholder { color: #b3b7be; opacity: 1; }
.champ-acces:focus-within {
  border-color: var(--primary-fonce);
  box-shadow: 0 0 0 3px var(--primary-voile);
}
.oeil-acces {
  flex: 0 0 auto;
  border: none;
  background: none;
  color: #9aa0a6;
  font-size: var(--fs-lg);
  padding: 0 2px;
}

/* L'erreur s'affiche dans la page, la ou le regard est deja */
.erreur-acces {
  font-size: var(--fs-md);
  color: #b02a2a;
  background: #fdeaea;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
}

/* L'accuse de reception du lien de reinitialisation : meme forme que
   l'erreur, la couleur seule dit que tout va bien. */
.succes-acces {
  font-size: var(--fs-md);
  color: #1f5132;
  background: #e7f3ec;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
}

.btn-acces {
  display: block;
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 12px;
  background: var(--primary-fonce);
  color: #fff;
  font-size: var(--fs-base);
  font-weight: 700;
}
.btn-acces:disabled { opacity: .6; }

.bascule-acces {
  text-align: center;
  font-size: var(--fs-md);
  color: #6b7280;
  margin: 16px 0 4px;
}
.bascule-acces a {
  color: var(--primary-fonce);
  font-weight: 700;
  text-decoration: none;
}

/* Poursuivre sans compte reste possible, mais ne rivalise plus avec le
   bouton de connexion : c'est un lien, pas un second bouton noir. */
.lien-acces {
  display: block;
  text-align: center;
  font-size: var(--fs-md);
  color: #6b7280;
  text-decoration: underline;
  padding: 10px 0 2px;
}

.mention-acces {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: var(--fs-xs);
  color: #9ca3af;
  margin: 10px 0 0;
}

/* "facultatif" a cote de l'intitule : la ville n'est pas exigee par le
   controleur, autant le dire plutot que de laisser hesiter. */
.micro-acces .option-acces {
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: #9ca3af;
}

/* ---------------------------------------------------------------------
   A propos (users/a-propos.php)
   --------------------------------------------------------------------- */
.page-propos { padding-bottom: 90px; }
/* La barre du haut est posee par-dessus le debut de la page : la premiere
   carte descend sous elle, comme sur les autres ecrans. */
.page-propos .carte-propos.entete { margin-top: 70px; }

.carte-propos {
  background: #fff;
  border: 1px solid #e7e3da;
  border-radius: 14px;
  padding: 4px 14px;
  margin-bottom: 18px;
}
.carte-propos.entete {
  text-align: center;
  padding: 22px 18px 18px;
}
.carte-propos.entete .logo-propos {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.carte-propos.entete h1 {
  font-size: var(--fs-xl);
  font-weight: 800;
  color: #111;
  margin-bottom: 6px;
}
.version-propos {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--primary-voile);
  color: var(--primary-fonce);
  font-size: var(--fs-sm);
  font-weight: 700;
}
.description-propos {
  font-size: var(--fs-md);
  color: #4b5563;
  line-height: 1.55;
  margin: 12px 0 0;
}

.groupe-propos {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8b8f7a;
  margin: 0 0 8px 4px;
}

/* Une information par ligne : l'intitule au-dessus, la valeur en dessous */
.ligne-propos {
  padding: 11px 0;
  border-bottom: 1px solid #f0ede6;
}
.ligne-propos:last-child { border-bottom: none; }
.micro-propos {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 2px;
}
.ligne-propos b {
  font-size: var(--fs-base);
  font-weight: 700;
  color: #111;
  /* Une adresse longue revient a la ligne plutot que d'elargir la page */
  overflow-wrap: anywhere;
}
.ligne-propos b a { color: var(--primary-fonce); text-decoration: none; }

.liens-propos { padding: 0 14px; }
.lien-propos {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  color: #1f2937;
  text-decoration: none;
  border-bottom: 1px solid #f0ede6;
}
.lien-propos:last-child { border-bottom: none; }
.lien-propos > .bi:first-child {
  width: 22px;
  font-size: var(--fs-lg);
  color: var(--primary-fonce);
  text-align: center;
}
.lien-propos span { flex: 1 1 auto; font-size: var(--fs-base); font-weight: 600; }
.lien-propos .fleche { font-size: var(--fs-sm); color: #b9b5aa; }

.pied-propos {
  text-align: center;
  font-size: var(--fs-xs);
  color: #9ca3af;
  margin-bottom: 6px;
}

/* Bouton de compte de la barre du haut, sur les pages qui masquent la barre
   du bas (match, classement, statistiques). Meme role que l'onglet Compte. */
.btn-compte-haut {
  border: none;
  background: none;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0 4px;
}

/* ---------------------------------------------------------------------------
   Fiche joueur (modal des meilleurs, page d'une ligue)
   ---------------------------------------------------------------------------
   Le modal reprenait la carte du classement : fond orange plein, prenom et
   nom en tres gros, les statistiques en "Libelle: valeur" sur deux colonnes
   inegales, et l'action payante reduite a une pastille noire de la taille
   d'un lien. On ne savait ni ce qu'on achetait, ni combien.

   Ici, la couleur du sport reste, mais en bandeau : elle identifie la
   discipline sans avaler la lecture. Les chiffres passent sur fond blanc,
   en chasse fixe, sous des etiquettes en petites capitales -- la meme
   grammaire que les recus de paiement. L'action porte son prix.
   --------------------------------------------------------------------------- */

#playerModal .modal-dialog {
  max-width: 400px;
  margin: 0 auto;
  padding: 14px;
}

#playerModal .modal-content {
  background: var(--paiement-carte);
  color: #1f2937;
  border: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}

/* L'accent par defaut est le basket ; le football le remplace a l'ouverture. */
.fiche-joueur {
  --fiche-accent: #e94e1b;
}

/* ---- Le bandeau : qui, ou, et la statistique qui l'a fait remonter ---- */
.fiche-tete {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 18px 16px 0px;
  color: #fff;
  background: var(--fiche-accent);
}

.fiche-identite {
  flex: 1 1 auto;
  min-width: 0;
}

.fiche-identite h3 {
  margin: 0 0 6px;
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

.fiche-club {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, .92);
}

.fiche-club img {
  width: 22px;
  height: 22px;
  flex: none;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
  padding: 2px;
}

.fiche-club span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* La statistique de tete : c'est elle qui justifie la presence du joueur
   dans le classement, elle se lit donc avant le reste. */
.fiche-vedette {
  margin-top: 12px;
}

.fiche-vedette .micro {
  color: rgba(255, 255, 255, .85);
  margin-bottom: 0;
}

.fiche-vedette b {
  display: block;
  font-size: var(--fs-score);
  font-weight: 700;
  line-height: 1;
}

/* Le portrait tient dans le bandeau : deborder dessous ne le mettait pas en
   avant, la grille blanche passant par-dessus lui coupait les jambes. */
.fiche-portrait {
  width: 104px;
  height: 116px;
  flex: none;
  align-self: flex-end;
  /* "contain" et non "cover" : les avatars sont deja detoures en buste,
     un recadrage leur couperait l'epaule. */
  object-fit: contain;
  object-position: bottom center;
}

.fiche-fermer {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(0, 0, 0, .22);
  font-size: var(--fs-base);
}

/* ---- Les statistiques : une grille, pas une liste a deux colonnes ---- */
.fiche-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--paiement-trait);
  border-bottom: 1px solid var(--paiement-trait);
}

.stat-fiche {
  background: var(--paiement-carte);
  padding: 12px 8px;
  text-align: center;
}

.stat-fiche .micro {
  margin-bottom: 4px;
  letter-spacing: .06em;
}

.stat-fiche b {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: #111827;
}

/* ---- L'action : ce que l'on obtient, et a quel prix ---- */
.fiche-pied {
  padding: 14px 16px 16px;
  background: var(--paiement-fond);
}

.fiche-argument {
  margin: 0 0 10px;
  font-size: var(--fs-md);
  color: var(--paiement-gris);
  text-align: center;
}

.btn-fiche {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  border: none;
  border-radius: 14px;
  background: var(--paiement-accent);
  color: #fff;
  font-size: var(--fs-base);
  font-weight: 700;
}

.btn-fiche:active {
  background: #5d6742;
}

.btn-fiche .prix-fiche {
  font-family: var(--paiement-chiffres);
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .18);
}

/* Trop etroit pour trois colonnes de chiffres : on repasse a deux. */
@media (max-width: 359px) {
  .fiche-stats { grid-template-columns: repeat(2, 1fr); }
  .fiche-portrait { width: 88px; height: 100px; }
}

/* Le football a moins de compteurs : trois colonnes laisseraient un trou. */
.fiche-joueur[data-colonnes="2"] .fiche-stats {
  grid-template-columns: repeat(2, 1fr);
}

/* Cinq compteurs sur deux colonnes : le dernier occupe la ligne entiere
   plutot que de laisser une case vide a sa droite. */
.fiche-joueur[data-colonnes="2"] .fiche-stats > .stat-fiche:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

/* ---------------------------------------------------------------------------
   Classement complet des joueurs (users/<stat>AllPlayers/<ligue>/<saison>)
   ---------------------------------------------------------------------------
   La recherche etait coincee entre les deux rangees de filtres, au milieu de
   pastilles de meme poids : on ne voyait pas laquelle choisissait la
   statistique et laquelle la categorie. La liste, elle, tenait dans une
   fenetre defilante de 60 % de l'ecran a l'interieur d'une page qui defilait
   deja, avec un degrade qui coupait la derniere ligne en deux.

   Ici : la recherche d'abord, puis la statistique, puis la categorie -- dans
   l'ordre ou l'on decide. Le bloc reste colle sous l'en-tete, la liste
   defile avec la page, et les valeurs se lisent en chasse fixe comme partout
   ailleurs dans l'application.
   --------------------------------------------------------------------------- */

.page-classement {
  padding-bottom: 20px;
}

/* Le bloc de filtres suit le regard : il reste sous l'en-tete quand on
   descend dans une liste de 187 joueurs. */
.filtres-classement {
  position: sticky;
  top: var(--hauteur-entete);
  z-index: 6;
  background: var(--body-color);
  padding: 10px 0 8px;
  margin: 0 -4px;
}

.recherche-classement {
  position: relative;
  margin: 0 4px 10px;
}

.recherche-classement > .bi-search {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: var(--fs-base);
  pointer-events: none;
}

.recherche-classement input {
  width: 100%;
  height: 48px;
  padding: 0 40px 0 40px;
  border: 1px solid var(--paiement-trait);
  border-radius: 14px;
  background: var(--paiement-carte);
  color: #1f2937;
  font-size: var(--fs-base);
}

/* Le placeholder global de l'application est blanc : invisible sur fond
   blanc. */
.recherche-classement input::placeholder {
  color: #9ca3af;
  opacity: 1;
}

.recherche-classement input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-voile);
}

/* Le navigateur ajoute sa propre croix sur input[type=search] ; on garde la
   notre, qui a la bonne taille de cible tactile. */
.recherche-classement input::-webkit-search-cancel-button { display: none; }

.vider-recherche {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: none;
  background: none;
  color: #9ca3af;
  font-size: var(--fs-base);
}

/* Les deux rangees de filtres defilent sur une seule ligne : empilees, elles
   repoussaient la liste sous la ligne de flottaison. */
.rang-classement {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 0 4px 2px;
  scrollbar-width: none;
}

.rang-classement::-webkit-scrollbar { display: none; }

.puce-classement {
  flex: none;
  border: 1px solid var(--paiement-trait);
  border-radius: 999px;
  background: var(--paiement-carte);
  color: #4b5563;
  font-size: var(--fs-md);
  font-weight: 600;
  padding: 7px 14px;
  white-space: nowrap;
}

.puce-classement.active {
  background: var(--primary-fonce);
  border-color: var(--primary-fonce);
  color: #fff;
}

/* La categorie est un filtre secondaire : plus petite, sans fond plein. */
.rang-classement.categories { margin-top: 6px; }

.rang-classement.categories .puce-classement {
  font-size: var(--fs-sm);
  padding: 5px 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.rang-classement.categories .puce-classement.active {
  background: var(--primary-voile);
  border-color: var(--primary);
  color: var(--primary-fonce);
}

.compte-classement {
  margin: 10px 4px 6px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--paiement-gris);
}

/* ---- La liste ---- */
.liste-classement {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ligne-classement {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: var(--paiement-carte);
  border: 1px solid var(--paiement-trait);
  border-radius: 14px;
}

.ligne-classement .rang {
  flex: none;
  width: 26px;
  text-align: center;
  font-size: var(--fs-md);
  font-weight: 700;
  color: #9ca3af;
}

/* Les trois premiers portent la couleur de la marque : c'est ce que l'on
   vient chercher dans un classement. */
.ligne-classement.podium { border-color: var(--primary); }
.ligne-classement.podium .rang {
  color: #fff;
  background: var(--primary-fonce);
  border-radius: 8px;
  padding: 2px 0;
}

.avatar-classement {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #ece9e2;
}

.qui-classement {
  flex: 1 1 auto;
  min-width: 0;
}

.qui-classement strong {
  display: block;
  font-size: var(--fs-base);
  font-weight: 600;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qui-classement small {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--paiement-gris);
}

.valeur-classement {
  flex: none;
  white-space: nowrap;
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--primary-fonce);
}

.vide-classement {
  padding: 28px 16px;
  text-align: center;
  color: var(--paiement-gris);
  font-size: var(--fs-base);
}

.vide-classement i {
  display: block;
  font-size: var(--fs-2xl);
  margin-bottom: 8px;
  color: #c7c3b8;
}

/* ---------------------------------------------------------------------------
   Mes favoris (users/favoris, users/favorisLigue/…)
   ---------------------------------------------------------------------------
   Le menu menait a "Mes notifications" : une page qui decrivait deux offres
   et n'affichait aucune equipe. On ne savait pas ce que l'on suivait, et la
   seule facon d'en retirer une etait de retrouver sa ligue, d'ouvrir l'onglet
   des equipes et d'y decocher une case.

   Ces deux ecrans reprennent la grammaire des autres listes : cartes
   blanches, etiquettes en petites capitales, accent olive, et une cloche par
   ligne qui dit l'etat sans legende.
   --------------------------------------------------------------------------- */

.page-favoris .corps-favoris {
  margin-top: 4.5rem;
  padding-bottom: 24px;
}

/* Quand une barre d'action est posee en bas, la derniere carte ne doit pas
   finir dessous. */
.page-favoris .corps-favoris.avec-barre { padding-bottom: 96px; }

.carte-favoris {
  background: var(--paiement-carte);
  border: 1px solid var(--paiement-trait);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 12px;
}

.groupe-favoris {
  margin: 16px 4px 8px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--paiement-gris);
}

.compte-favoris {
  margin: 12px 4px 8px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--paiement-gris);
}

/* ---- L'offre, quand on n'y a pas encore souscrit ---- */
.carte-favoris.offre { padding: 16px; }

.entete-offre {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.entete-offre .cloche {
  width: 46px;
  height: 46px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary-fonce);
  color: #fff;
  font-size: var(--fs-lg);
}

.titre-offre {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: #111827;
}

.prix-offre {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--primary-fonce);
}

.prix-offre span { color: var(--paiement-gris); font-weight: 600; }

.avantages-favoris {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}

.avantages-favoris li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
  font-size: var(--fs-base);
  color: #374151;
}

.avantages-favoris i { color: var(--primary-fonce); }

.note-favoris {
  margin: 0 0 12px;
  font-size: var(--fs-md);
  color: var(--paiement-gris);
}

.bandeau-favoris {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 14px;
  margin-bottom: 12px;
  font-size: var(--fs-md);
  font-weight: 600;
}

.bandeau-favoris.actif {
  background: var(--primary-voile);
  color: var(--primary-fonce);
}

/* ---- L'appareil qui ne recoit rien ----
   Un abonne, sur un telephone neuf, n'est pas un client a reconquerir : la
   carte reprend donc la forme de l'offre, mais en avertissement et sans
   prix. Elle suit le bandeau vert, qui vient de dire que l'abonnement court. */
.carte-appareil {
  padding: 16px;
  border-color: var(--orange-trait, #f0d2b8);
  background: var(--orange-voile, #fff6ee);
}

.entete-appareil {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.entete-appareil .cloche {
  width: 46px;
  height: 46px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ef6a2a;
  color: #fff;
  font-size: var(--fs-lg);
}

.carte-appareil .titre-offre { margin-bottom: 2px; }

/* ---- Boutons ---- */
.btn-favoris,
.btn-favoris-secondaire {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: var(--fs-base);
  font-weight: 700;
  text-decoration: none;
}

.btn-favoris {
  background: var(--primary-fonce);
  color: #fff;
}

.btn-favoris:active { background: #5d6742; color: #fff; }

.btn-favoris-secondaire {
  background: var(--paiement-carte);
  border-color: var(--paiement-trait);
  color: var(--primary-fonce);
}

.boutons-favoris {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ---- Une ligue : l'en-tete de sa carte mene a ses equipes ---- */
.entete-ligue {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  background: var(--paiement-fond);
  border-bottom: 1px solid var(--paiement-trait);
  text-decoration: none;
  color: inherit;
}

.entete-ligue:last-child { border-bottom: none; }

.entete-ligue .logo-ligue {
  flex: none;
  width: 30px;
  height: 30px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 2px;
}

.quoi-ligue { flex: 1 1 auto; min-width: 0; }

.quoi-ligue strong {
  display: block;
  font-size: var(--fs-base);
  font-weight: 600;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quoi-ligue small {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--paiement-gris);
}

.entete-ligue .fleche { color: #b9b5aa; font-size: var(--fs-sm); }

/* ---- Une equipe ---- */
.ligne-favori {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid #f1eee7;
}

.ligne-favori:last-child { border-bottom: none; }

.ligne-favori .logo-equipe {
  flex: none;
  width: 36px;
  height: 36px;
  object-fit: contain;
  background: #f6f4ef;
  border-radius: 10px;
  padding: 2px;
}

.nom-favori {
  flex: 1 1 auto;
  min-width: 0;
  font-size: var(--fs-base);
  font-weight: 600;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* La cloche dit l'etat a elle seule : pleine et olive quand on suit, vide et
   grise sinon. */
.cloche-favori {
  flex: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--paiement-trait);
  border-radius: 50%;
  background: var(--paiement-carte);
  color: #b0aca1;
  font-size: var(--fs-base);
}

.cloche-favori.suivie,
.page-favoris .ligne-favori .cloche-favori[aria-pressed="true"] {
  background: var(--primary-fonce);
  border-color: var(--primary-fonce);
  color: #fff;
}

.cloche-favori:disabled { opacity: .6; }

/* ---- L'etat vide ---- */
.vide-favoris {
  padding: 28px 18px;
  text-align: center;
  background: var(--paiement-carte);
  border: 1px solid var(--paiement-trait);
  border-radius: 16px;
  margin-bottom: 12px;
}

.vide-favoris i {
  display: block;
  font-size: var(--fs-2xl);
  color: #c7c3b8;
  margin-bottom: 8px;
}

.vide-favoris p {
  margin: 0 0 4px;
  font-size: var(--fs-base);
  font-weight: 600;
  color: #374151;
}

.vide-favoris small {
  font-size: var(--fs-md);
  color: var(--paiement-gris);
}

/* ---- La barre d'action, quand il manque un compte ou l'abonnement ---- */
.barre-favoris {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: var(--paiement-carte);
  border-top: 1px solid var(--paiement-trait);
  box-shadow: 0 -6px 18px rgba(0, 0, 0, .06);
}

.barre-favoris span {
  display: block;
  margin-bottom: 8px;
  text-align: center;
  font-size: var(--fs-md);
  color: var(--paiement-gris);
}

/* Dix compteurs sur trois colonnes : le dernier, seul sur sa ligne, la prend
   entiere plutot que de laisser deux cases vides a sa droite. */
.fiche-joueur:not([data-colonnes="2"]) .fiche-stats > .stat-fiche:last-child:nth-child(3n + 1) {
  grid-column: 1 / -1;
}

/* ---------------------------------------------------------------------------
   Fiche d'un match de basket (users/detailsMatchBasketLive/…)
   ---------------------------------------------------------------------------
   Trois blocs s'etaient construits chacun de leur cote :

   - l'en-tete disait "Termine" en texte courant, en haut a gauche, et
     n'affichait que les blasons : sans connaitre les logos, impossible de
     savoir qui avait gagne ;
   - le tableau des quarts-temps empilait le logo au-dessus du nom dans sa
     premiere colonne, ce qui doublait la hauteur des lignes ;
   - la carte d'un joueur mesurait plus de deux cents pixels de haut, dans un
     cadre gris a defilement interne : dix joueurs, dix ecrans.

   Le tout suit desormais la grammaire du reste de l'application : cartes
   blanches, etiquettes en petites capitales, chiffres en chasse fixe.
   --------------------------------------------------------------------------- */

/* ---- L'en-tete : qui, contre qui, et ou en est le match ---- */
.entete-match {
  background: var(--paiement-carte);
  border: 1px solid var(--paiement-trait);
  border-radius: 18px;
  padding: 14px 12px;
  margin-bottom: 12px;
}

.etat-match {
  text-align: center;
  margin-bottom: 12px;
}

.etat-match .pastille {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: #f1eee7;
  color: var(--paiement-gris);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.etat-match .pastille.termine {
  background: var(--primary-voile);
  color: var(--primary-fonce);
}

.duel-match {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

.camp-match {
  min-width: 0;
  text-align: center;
}

.camp-match img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.camp-match .nom {
  display: block;
  margin-top: 6px;
  font-size: var(--fs-md);
  font-weight: 600;
  color: #111827;
}

.centre-match { text-align: center; }

.score-match {
  font-family: var(--paiement-chiffres);
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-score);
  font-weight: 700;
  color: #111827;
  line-height: 1.1;
  white-space: nowrap;
}

/* L'heure du coup d'envoi prend la place du score tant que le match n'a pas
   commence : "0 : 0" avant une rencontre ne veut rien dire. Meme chasse que le
   score, un ton plus discret — c'est un rendez-vous, pas un resultat. */
.heure-match {
  font-family: var(--paiement-chiffres);
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--paiement-gris);
  line-height: 1.1;
  white-space: nowrap;
}

/* Quand et ou. Cette ligne remplace, avant le coup d'envoi, le tableau de
   quart-temps entierement a zero. */
.rendez-vous-match {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin: 0 0 12px;
  padding: 10px 12px;
  background: var(--paiement-carte);
  border: 1px solid var(--paiement-trait);
  border-radius: 14px;
  font-size: var(--fs-sm);
  color: var(--paiement-gris);
}

.rendez-vous-match span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Le compte a rebours et le quart-temps en cours, sous le score. */
.chrono-match {
  /* Le chrono du foot est un <span> (chronoHtml le fabrique avec ses
     attributs de rafraichissement), celui du basket un <p> : le bloc leur
     donne la meme place sous le score. */
  display: block;
  margin: 6px 0 0;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--paiement-gris);
}

.chrono-match b {
  display: block;
  font-family: var(--paiement-chiffres);
  font-size: var(--fs-base);
  color: #111827;
  letter-spacing: 0;
}

/* Le chrono du basket, tenu par la console en direct : a rebours, avec la
   pause dite en clair. */
.chrono-basket {
  display: block;
  margin: 4px 0 0;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--paiement-gris);
}

.chrono-basket .temps-chrono {
  font-family: var(--paiement-chiffres);
  font-size: var(--fs-base);
  color: #111827;
  letter-spacing: 0;
  margin-left: 4px;
}

.chrono-basket .etat-chrono {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #F3F4F6;
  color: #374151;
}

.chrono-basket .etat-chrono.pause {
  background: #FEE2E2;
  color: #B91C1C;
}

/* ---- Les buteurs, sous le score ----
   Qui a marque et quand, chaque equipe de son cote. Le passeur n'y figure
   pas : il est sur le film du match, dans l'onglet Details. */
.buteurs-match {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--paiement-trait);
}

.buteurs-match ul {
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
}

.buteurs-match .cote-home { text-align: right; }
.buteurs-match .cote-away { text-align: left; }

.buteurs-match li {
  font-size: var(--fs-sm);
  color: #111827;
  margin-bottom: 2px;
}

.buteurs-match .minutes-but {
  font-family: var(--paiement-chiffres);
  font-variant-numeric: tabular-nums;
  color: var(--paiement-gris);
}

.buteurs-match .icone-but img {
  width: 14px;
  height: 14px;
  opacity: .55;
  margin-top: 3px;
}

/* ---- Le tableau des quarts-temps ---- */
.tableau-quarts {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--paiement-carte);
  border: 1px solid var(--paiement-trait);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
}

.tableau-quarts th {
  padding: 9px 4px;
  text-align: center;
  background: var(--paiement-fond);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--paiement-gris);
}

.tableau-quarts th:first-child,
.tableau-quarts td.equipe {
  text-align: left;
  padding-left: 12px;
}

.tableau-quarts td {
  padding: 10px 4px;
  text-align: center;
  border-top: 1px solid #f1eee7;
  font-family: var(--paiement-chiffres);
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-base);
  color: #4b5563;
}

.tableau-quarts td.equipe { font-family: inherit; }

.equipe-quarts {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.equipe-quarts img {
  width: 26px;
  height: 26px;
  flex: none;
  object-fit: contain;
}

.equipe-quarts span {
  font-size: var(--fs-md);
  font-weight: 600;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tableau-quarts td.total {
  background: var(--paiement-fond);
  font-weight: 700;
  color: #111827;
}

.tableau-quarts tr.gagnant td.total { color: #1e9e4a; }

/* ---- La feuille de match, joueur par joueur ---- */
.groupe-joueurs {
  margin: 14px 2px 8px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--paiement-gris);
}

.liste-joueurs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.carte-joueur {
  background: var(--paiement-carte);
  border: 1px solid var(--paiement-trait);
  border-radius: 14px;
  padding: 10px 12px 12px;
}

.tete-joueur {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.dossard-joueur {
  width: 32px;
  height: 32px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--primary-voile);
  color: var(--primary-fonce);
  font-family: var(--paiement-chiffres);
  font-size: var(--fs-md);
  font-weight: 700;
}

.avatar-joueur {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  background: #ece9e2;
}

.nom-joueur {
  flex: 1 1 auto;
  min-width: 0;
  font-size: var(--fs-base);
  font-weight: 600;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Les points sont la statistique qu'on cherche en premier : ils sortent de
   la grille pour se lire depuis le haut de la carte. */
.points-joueur {
  flex: none;
  text-align: right;
  line-height: 1.1;
}

.points-joueur b {
  display: block;
  font-family: var(--paiement-chiffres);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--primary-fonce);
}

.points-joueur span {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--paiement-gris);
}

.stats-joueur {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--paiement-trait);
  border: 1px solid var(--paiement-trait);
  border-radius: 10px;
  overflow: hidden;
}

.stats-joueur > div {
  background: var(--paiement-carte);
  padding: 7px 2px;
  text-align: center;
}

.stats-joueur .micro {
  margin-bottom: 2px;
  letter-spacing: .04em;
}

.stats-joueur b {
  font-family: var(--paiement-chiffres);
  font-size: var(--fs-base);
  font-weight: 700;
  color: #111827;
}

/* Les tirs se lisent en reussis sur tentes : une fraction, pas deux nombres
   separes. */
.tirs-joueur {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-top: 8px;
}

.tirs-joueur div {
  flex: 1 1 0;
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--paiement-gris);
}

.tirs-joueur b {
  display: block;
  margin-top: 2px;
  font-family: var(--paiement-chiffres);
  font-size: var(--fs-md);
  font-weight: 700;
  color: #111827;
}

.coach-match {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}

.coach-match div {
  flex: 1 1 0;
  padding: 9px 10px;
  background: var(--paiement-carte);
  border: 1px solid var(--paiement-trait);
  border-radius: 12px;
}

.coach-match strong {
  display: block;
  font-size: var(--fs-base);
  font-weight: 600;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==========================================================================
   Conditions générales d'utilisation
   Vingt articles sur un téléphone : la page emprunte les cartes de « À
   propos » plutôt que d'inventer sa mise en forme, et s'ouvre sur un
   sommaire — sans lui, on fait défiler à l'aveugle pour trouver l'article
   qu'on cherche.
   ========================================================================== */
.page-cgu {
  padding-bottom: 90px;
}

.carte-cgu {
  background: var(--paiement-carte);
  border: 1px solid var(--paiement-trait);
  border-radius: 14px;
  padding: 16px 16px 6px;
  margin-bottom: 16px;
}

/* La barre du haut est posée par-dessus le début de la page : la première
   carte descend sous elle, comme sur les autres écrans. */
.carte-cgu.entete {
  margin-top: 70px;
  padding: 20px 18px 16px;
  text-align: center;
}
.pastille-cgu {
  display: inline-block;
  padding: 4px 12px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: var(--primary-voile);
  color: var(--primary-fonce);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .1em;
}
.carte-cgu.entete h1 {
  font-size: var(--fs-xl);
  font-weight: 800;
  color: #111;
  margin-bottom: 6px;
}
.maj-cgu {
  font-size: var(--fs-sm);
  color: var(--paiement-gris);
  margin-bottom: 12px;
}
.chapeau-cgu {
  font-size: var(--fs-md);
  color: #4b5563;
  line-height: 1.6;
  text-align: left;
  margin-bottom: 10px;
}

.groupe-cgu {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8b8f7a;
  margin: 0 0 8px 4px;
}

/* ---------- Le sommaire ---------- */
.sommaire-cgu {
  padding: 4px 14px;
}
.sommaire-cgu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid #f0ede6;
  color: #111827;
  text-decoration: none;
}
.sommaire-cgu a:last-child {
  border-bottom: none;
}
.sommaire-cgu .titre-cgu {
  flex: 1;
  font-size: var(--fs-md);
  font-weight: 600;
}
.sommaire-cgu .fleche {
  color: #c7c3b8;
  font-size: var(--fs-sm);
}

/* Le numéro d'article, pastille ronde : il relie le sommaire à l'article. */
.num-cgu {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary-voile);
  color: var(--primary-fonce);
  font-size: var(--fs-sm);
  font-weight: 700;
}

/* ---------- Un article ---------- */
/* L'ancre vient se poser sous l'en-tête fixe : sans ce décalage, le titre
   de l'article sauté se cache derrière la barre. */
.article-cgu {
  scroll-margin-top: var(--espace-sous-entete);
}
.tete-cgu {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid #f0ede6;
}
.tete-cgu h3 {
  flex: 1;
  font-size: var(--fs-lg);
  font-weight: 700;
  color: #111;
  margin: 0;
}

.article-cgu p {
  font-size: var(--fs-md);
  color: #374151;
  line-height: 1.65;
  margin-bottom: 10px;
}
.article-cgu .sous-cgu {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--primary-fonce);
  margin: 16px 0 8px;
}
.article-cgu ul {
  padding-left: 18px;
  margin-bottom: 12px;
}
.article-cgu li {
  font-size: var(--fs-md);
  color: #374151;
  line-height: 1.6;
  margin-bottom: 6px;
}
.article-cgu li::marker {
  color: var(--primary);
}

.pied-cgu {
  text-align: center;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8b8f7a;
  margin: 18px 0 0;
}

/* Vingt articles font une longue page : le retour en haut évite de la
   remonter au doigt. */
.retour-haut-cgu {
  position: sticky;
  bottom: 86px;
  float: right;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-top: 10px;
  border-radius: 50%;
  background: var(--primary-fonce);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .22);
  text-decoration: none;
}
.retour-haut-cgu.visible {
  opacity: 1;
  visibility: visible;
}
.retour-haut-cgu:hover,
.retour-haut-cgu:focus {
  color: #fff;
}

/* ---------------- Futsal : le direct ----------------
   Les blocs propres au futsal -- fautes accumulees, temps morts, exclusions,
   faits du match. Ils reprennent la carte de .entete-match plutot que d'en
   inventer une autre : le public passe d'un sport a l'autre, la page ne doit
   pas changer de monde. */

.bloc-match {
  background: var(--paiement-carte);
  border: 1px solid var(--paiement-trait);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  color: var(--paiement-encre, #1a1a1a);
}

.titre-bloc {
  margin: 0 0 14px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--paiement-gris);
}

.periode-futsal {
  margin: 4px 0 0;
  font-size: var(--fs-xs);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--paiement-gris);
}

/* "Tirs au but 4 – 3 · X l'emporte", sous le score. */
.tab-futsal {
  margin: 4px 0 0;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--primary-fonce);
}

.ligue-futsal {
  margin: 12px 0 0;
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--paiement-gris);
}

/* Une equipe dans le bloc des fautes. */
.bloc-futsal { margin-bottom: 16px; }
.bloc-futsal:last-child { margin-bottom: 0; }

.bloc-futsal .ligne-haute {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.bloc-futsal .equipe { font-size: var(--fs-md); font-weight: 700; }
.bloc-futsal .temps-mort { font-size: var(--fs-xs); color: var(--paiement-gris); }

.billes-futsal { display: flex; gap: 7px; }
.billes-futsal span {
  width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid var(--paiement-trait);
}
.billes-futsal span.pleine { background: #e2453d; border-color: #e2453d; }
/* La bille du premier jet franc, et celles qui suivent. */
.billes-futsal span.jet-franc { outline: 2px solid #e2453d; outline-offset: 2px; }

.avis-futsal {
  margin-top: 8px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: #c7352e;
}

/* Les faits du match : la minute a gauche, le recit a droite. */
/* Les faits du match futsal reprennent la frise du football (.timeline-event,
   .timeline-minute, .timeline-icon, .timeline-groupe) : le geste de l'equipe
   qui recoit se lit a gauche, celui de la visiteuse a droite, en miroir.
   Le futsal y ajoute le volume -- quinze types de gestes au lieu de quatre --
   d'ou la hierarchie : un but ou un carton ressort, un tir ou une faute
   accompagne sans encombrer. */
.fait-futsal {
  align-items: flex-start;
  gap: 8px;
  padding: 7px 0;
  border-top: 1px solid var(--paiement-trait);
  font-size: var(--fs-md);
}
/* Le premier element du bloc est desormais un titre de periode, pas un fait. */
.timeline-groupe + .fait-futsal { border-top: 0; }

.fait-futsal .timeline-minute {
  flex: none;
  width: 44px;
  min-width: 0;
  font-weight: 700;
  color: var(--primary-fonce);
  font-variant-numeric: tabular-nums;
}
.fait-futsal .timeline-icon {
  flex: none;
  width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 1px;
  color: var(--paiement-gris);
}
/* width auto : le carton est un rectangle, le ballon un carre. Imposer les
   deux dimensions ecraserait l'un des deux. */
.fait-futsal .timeline-icon img {
  width: auto;
  height: 16px;
}
.fait-futsal .recit {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.fait-futsal .quoi { font-weight: 600; }
.fait-futsal .quoi i { font-style: normal; font-weight: 400; color: var(--paiement-gris); }
.fait-futsal .qui { font-size: var(--fs-sm); }
.fait-futsal .qui .sort { color: var(--paiement-gris); }

/* Un temps fort : le geste dont on parlera apres le match. */
.fait-futsal.fort .quoi { color: var(--primary-fonce); font-weight: 700; }
.fait-futsal:not(.fort) .quoi { color: #555; }
.fait-futsal:not(.fort) .timeline-minute { font-weight: 600; color: var(--paiement-gris); }

.rien-futsal { margin: 0; font-size: var(--fs-md); color: var(--paiement-gris); }

/* Les deux portees du fil. Meme pastille que les filtres de l'onglet Matchs,
   qui est scopee a .filtres-matchs et ne pouvait donc pas servir telle quelle. */
.filtres-faits {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.filtres-faits .filtre-chip {
  flex: 0 0 auto;
  border: 1px solid rgba(0, 0, 0, .15);
  background: #fff;
  color: #333;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: var(--fs-md);
  white-space: nowrap;
}
.filtres-faits .filtre-chip.active {
  background: #959f70;
  border-color: #959f70;
  color: #fff;
  font-weight: 600;
}

/* L'homme du match, sur la page publique. */
.mvp-futsal { display: flex; align-items: center; gap: 12px; }
.mvp-futsal .dossard {
  flex: none;
  min-width: 38px; height: 38px; padding: 0 8px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--primary-fonce);
  border-radius: 999px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--primary-fonce);
}
.mvp-futsal .nom { font-size: var(--fs-lg); font-weight: 700; }

/* ---------- Le visuel publicitaire d'un sport ----------
   Mis en ligne par le super-admin (gestion, menu Visuels pub), un par sport :
   sur l'accueil du sport et sur les pages de ses ligues, sous les onglets
   (vue users/_visuel-pub). Une banniere 3 fois plus large que haute
   (300 x 100). Toute la largeur, comme les autres blocs de la page : les
   visuels ne paraissent que sur telephone. */
.visuel-pub {
  margin: 0 0 16px;
}
.visuel-pub a,
.visuel-pub img {
  display: block;
}
.visuel-pub img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  border-radius: 12px;
  /* La place est tenue pendant le chargement de l'image */
  background: #e4e5e7;
}

