:root {
  --primary: #2C3E50;
  --primary-dark: #1A2530;
  --primary-light: #3E5060;
  --accent: #3498DB;
  --accent-dark: #2980B9;
  --dark: #212b36;
  --dark-text: #2c3e50;
  --light-text: #7f8c8d;
  --light-bg: #f5f7fa;
  --card-bg: #ffffff;
  --status-live: #e74c3c;
  --status-finished: #27ae60;
  --status-timed: #3498db;
  --status-postponed: #f39c12;
  --box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  --box-shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --border-radius: 16px;
  --goal-flag: #e74c3c;
}

/* Reset & base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--light-bg);
  color: var(--dark-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.5rem;
  line-height: 1.6;
  background-image: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  min-height: 100vh;
}

/* Typography */
h1 {
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  text-align: center;
  flex-wrap: wrap;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(120deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  width: 100%;
}

h2 {
  color: var(--dark-text);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  text-align: center;
}

h3 {
  color: var(--light-text);
  font-size: 1.2rem;
  margin-bottom: 2rem;
  font-weight: 500;
  text-align: center;
  opacity: 0.8;
}

/* Match card styles */
.match-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 1.5rem;
  margin: 1.25rem 0;
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
  animation: slideInUp 0.4s ease-out forwards;
  opacity: 0;
  animation-delay: calc(var(--animation-order) * 0.1s);
}

.match-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent), var(--accent-dark));
  opacity: 0.7;
}

.match-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: nowrap;
  gap: 10px;
  padding-left: 2px;
}

.match-card .competition {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
  flex: 1;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-left: 3px;
}

.match-card .teams {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  text-align: center;
  padding: 0.5rem 0;
}

.match-card .teams::after {
  content: 'VS';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1rem;
  color: var(--accent);
  opacity: 0.8;
  font-weight: 700;
  background-color: rgba(247, 37, 133, 0.1);
  padding: 4px 8px;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.match-card .time {
  font-size: 0.95rem;
  color: var(--light-text);
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
  padding: 0.5rem;
  background-color: rgba(99, 115, 129, 0.05);
  border-radius: 30px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.match-card .time svg {
  color: var(--light-text);
  opacity: 0.7;
}

/* Status indicators - Style modifié sans les points */
.status {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  position: relative;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
  text-align: center;
  flex-shrink: 0;
}

.status::before {
  display: none;
}

.status.IN_PLAY {
  background: linear-gradient(135deg, rgba(231, 76, 60, 0.15), rgba(231, 76, 60, 0.25));
  color: var(--status-live);
  border-color: rgba(231, 76, 60, 0.3);
  animation: pulse 2s infinite;
}

.status.IN_PLAY::before {
  display: none;
}

.status.FINISHED {
  background: linear-gradient(135deg, rgba(39, 174, 96, 0.15), rgba(39, 174, 96, 0.25));
  color: var(--status-finished);
  border-color: rgba(39, 174, 96, 0.3);
}

.status.FINISHED::before {
  display: none;
}

.status.TIMED, .status.SCHEDULED {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.15), rgba(52, 152, 219, 0.25));
  color: var(--status-timed);
  border-color: rgba(52, 152, 219, 0.3);
}

.status.TIMED::before, .status.SCHEDULED::before {
  display: none;
}

.status.POSTPONED, .status.CANCELED, .status.SUSPENDED {
  background: linear-gradient(135deg, rgba(243, 156, 18, 0.15), rgba(243, 156, 18, 0.25));
  color: var(--status-postponed);
  border-color: rgba(243, 156, 18, 0.3);
}

.status.POSTPONED::before, .status.CANCELED::before, .status.SUSPENDED::before {
  display: none;
}

.status.PAUSED {
  background: linear-gradient(135deg, rgba(142, 68, 173, 0.15), rgba(142, 68, 173, 0.25));
  color: #8e44ad;
  border-color: rgba(142, 68, 173, 0.3);
}

.status.PAUSED::before {
  display: none;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(231, 76, 60, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
  }
}

@keyframes glow {
  from {
    opacity: 0.7;
    box-shadow: 0 0 2px 1px rgba(231, 76, 60, 0.5);
  }
  to {
    opacity: 1;
    box-shadow: 0 0 4px 2px rgba(231, 76, 60, 0.8);
  }
}

/* Buttons & navigation */
button, .nav-btn {
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 30px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin: 0.75rem auto;
  transition: var(--transition);
  width: 100%;
  max-width: 90%;
  box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
  text-align: center;
  display: inline-block;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

button::after, .nav-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-dark);
  z-index: -2;
}

button::before, .nav-btn::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: var(--primary-light);
  transition: all .3s;
  z-index: -1;
}

button:hover::before, .nav-btn:hover::before {
  width: 100%;
}

button:hover, .nav-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(67, 97, 238, 0.4);
}

button:active, .nav-btn:active {
  transform: translateY(0);
}

/* Style spécifique pour les liens de navigation */
.nav-btn {
  text-decoration: none;
  background-color: var(--accent);
  color: white;
  border: 2px solid var(--accent);
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-btn::after {
  background-color: var(--accent-dark);
}

/* Button spécifique pour simuler un but */
#testNotif {
  background-color: var(--status-live);
  color: white;
  width: 100%;
  margin: 0.5rem auto 1.5rem auto;
}

#testNotif::after {
  background-color: #c0392b;
}

#testNotif::before {
  background-color: #e57373;
}

/* Conteneur de boutons pour les aligner */
.button-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 550px;
  margin-top: 2rem;
  padding: 0 15px;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  body {
    padding: 1.25rem 1rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .match-card {
    padding: 1.2rem 1rem 1.2rem 0.6rem;
  }
  
  /* Structure améliorée pour les entêtes de cartes sur mobile */
  .card-header {
    display: flex;
    align-items: center;
    padding: 0;
    margin-left: -4px;
    box-sizing: border-box;
  }
  
  .match-card .competition {
    font-size: 0.85rem;
    flex: 1;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  /* Ajustement du statut */
  .status {
    padding: 5px 8px;
    min-width: 70px;
    font-size: 0.7rem;
    margin-left: 5px;
  }
  
  button, .nav-btn {
    width: 100%;
    max-width: 100%;
    margin: 0.5rem auto;
    padding: 15px 20px;
  }
  
  #testNotif {
    font-size: 1.1rem;
    padding: 16px 20px;
    margin-bottom: 1.5rem;
    box-shadow: 0 6px 15px rgba(231, 76, 60, 0.3);
  }
}

/* Styles spécifiques pour mobile */
@media (max-width: 767px) {
  body {
    padding: 1.25rem 1rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .match-card {
    padding: 1.2rem;
  }
  
  /* Ajustements pour les boutons sur mobile */
  .button-container {
    width: 100%;
    padding: 0 10px;
  }
  
  button, .nav-btn {
    width: 100%;
    max-width: 100%;
    margin: 0.5rem auto;
    padding: 15px 20px;
    font-size: 1.05rem;
  }
  
  #testNotif {
    font-size: 1.1rem;
    padding: 16px 20px;
    margin-bottom: 1.5rem;
    box-shadow: 0 6px 15px rgba(231, 76, 60, 0.3);
  }
  
  .nav-buttons {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    width: 100%;
    margin-top: 0.5rem;
  }
  
  .nav-buttons .nav-btn {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 14px 20px;
    font-weight: 600;
  }
}

/* Styles spécifiques pour Samsung S20 FE et appareils similaires */
@media screen and (max-width: 412px), 
       screen and (max-height: 915px),
       screen and (device-width: 412px),
       screen and (device-height: 915px) {
  
  /* Réduction de la taille des cartes pour qu'elles occupent moins d'espace vertical */
  .match-card {
    padding: 1rem;
    padding-left: 0.75rem;
    margin: 0.75rem 0;
    max-width: 100%;
    /* Réduire l'animation pour fluidifier le rendu */
    transition: transform 0.2s ease;
  }
  
  /* Ajuster l'espacement interne */
  .card-header {
    margin-bottom: 0.5rem;
    gap: 5px;
    padding-left: 4px;
  }
  
  /* Réduire la taille de la police mais garder visible tout le texte */
  .match-card .competition {
    font-size: 0.85rem;
    margin-bottom: 0;
    max-width: 75%;
    padding-left: 0;
    margin-left: 0;
  }
  
  /* Statut plus petit et mieux aligné sur mobile */
  .status {
    font-size: 0.65rem;
    padding: 4px 10px;
    min-width: 70px;
  }
  
  /* Ajuster la taille des équipes et scores */
  .team-name {
    font-size: 0.95rem;
    max-width: 110px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 0.25rem;
  }
  
  .score {
    font-size: 1.2rem;
    padding: 0.25rem 0.35rem;
    min-width: 1.5rem;
  }
  
  /* Réduire la taille du versus */
  .versus {
    font-size: 0.85rem;
    padding: 0.15rem;
    margin: 0 0.25rem;
  }
  
  /* Ajuster l'espacement de l'affichage des scores */
  .match-score {
    padding: 0.4rem;
    gap: 0.15rem;
  }
  
  .team {
    padding: 0.3rem;
  }
  
  /* Réduire l'espacement du temps */
  .match-card .time {
    font-size: 0.85rem;
    padding: 0.4rem;
    margin-top: 0.25rem;
  }
  
  /* Optimiser l'affichage des odds */
  .match-odds {
    margin-top: 1rem;
    padding-top: 1rem;
  }
  
  .odds-title {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
  }
  
  .odds-btn {
    padding: 10px;
  }
  
  .odds-team {
    font-size: 0.85rem;
  }
  
  .odds-value {
    font-size: 1.1rem;
  }
  
  /* Ajuster les paris et le portefeuille */
  .wallet-container, .bets-section {
    padding: 1.25rem;
    margin: 1rem 0;
  }
  
  /* Réduire l'espacement global de la page */
  body {
    padding: 1rem 0.75rem;
  }
}

/* Paris et odds */
.match-odds {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.odds-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark-text);
  margin-bottom: 1rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.odds-container {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.odds-btn {
  flex: 1;
  background-color: #f5f7fa;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: none;
  margin: 0;
  width: auto;
  max-width: none;
}

.odds-btn::before, .odds-btn::after {
  display: none;
}

.odds-btn:hover {
  background-color: rgba(67, 97, 238, 0.05);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.odds-team {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: 6px;
}

.odds-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

/* Wallet et paris */
.wallet-container, .bets-section {
  width: 100%;
  max-width: 550px;
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 1.5rem;
  margin: 1.25rem 0;
  position: relative;
  overflow: hidden;
}

.wallet-container::before, .bets-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent), var(--accent-dark));
  opacity: 0.7;
}

.wallet-container h2, .bets-section h2 {
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
  color: var(--dark-text);
  text-align: left;
}

.balance-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background-color: rgba(67, 97, 238, 0.05);
  border-radius: 12px;
  border-left: 4px solid var(--primary);
}

.balance-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.bets-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bet-card {
  background-color: #f9fafc;
  border-radius: 12px;
  padding: 1.25rem;
  border-left: 4px solid #ccc;
  transition: var(--transition);
}

.bet-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.bet-card.pending {
  border-left-color: #ffc107;
}

.bet-card.won {
  border-left-color: #2a9d8f;
}

.bet-card.lost {
  border-left-color: #e63946;
}

.bet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.bet-match {
  font-weight: 600;
  font-size: 1rem;
}

.bet-status {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 30px;
  text-transform: uppercase;
}

.bet-status.pending {
  background-color: rgba(255, 193, 7, 0.1);
  color: #ffc107;
}

.bet-status.won {
  background-color: rgba(42, 157, 143, 0.1);
  color: var(--status-finished);
}

.bet-status.lost {
  background-color: rgba(230, 57, 70, 0.1);
  color: var(--status-live);
}

.bet-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  font-size: 0.9rem;
}

.bet-type {
  grid-column: 1 / -1;
  font-weight: 600;
  color: var(--dark-text);
}

.bet-odds, .bet-amount, .bet-potential {
  color: var(--light-text);
}

.bet-potential {
  font-weight: 700;
  color: var(--primary);
}

/* Style pour les messages d'erreur/info */
.info-message {
  text-align: center;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 550px;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  border-left: 4px solid var(--primary);
}

.info-message p:first-child {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--dark-text);
}

.info-message p:last-child {
  color: var(--light-text);
}

/* Style amélioré pour la localisation */
.location-display {
  margin: 1.5rem auto;
  color: var(--primary);
  font-weight: 600;
  text-align: center;
  padding: 1rem 1.5rem;
  background-color: rgba(67, 97, 238, 0.08);
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  max-width: 90%;
  position: relative;
  border: 1px solid rgba(67, 97, 238, 0.2);
  min-width: 280px;
}

.location-display::before {
  content: '📍';
  margin-right: 10px;
  font-size: 1.2rem;
}

@media (max-width: 480px) {
  .odds-container {
    flex-direction: column;
    gap: 8px;
  }
  
  .odds-btn {
    flex-direction: row;
    justify-content: space-between;
    padding: 12px;
  }
  
  .bet-details {
    grid-template-columns: 1fr;
  }
}

/* Animations et transitions */
@keyframes slideInUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.match-card:nth-child(1) { --animation-order: 1; }
.match-card:nth-child(2) { --animation-order: 2; }
.match-card:nth-child(3) { --animation-order: 3; }
.match-card:nth-child(4) { --animation-order: 4; }
.match-card:nth-child(5) { --animation-order: 5; }
.match-card:nth-child(6) { --animation-order: 6; }
.match-card:nth-child(7) { --animation-order: 7; }
.match-card:nth-child(8) { --animation-order: 8; }
.match-card:nth-child(9) { --animation-order: 9; }
.match-card:nth-child(10) { --animation-order: 10; }

/* Style du drapeau pour les buts */
.goal-flag {
  position: fixed;
  top: 10px;
  right: 10px;
  width: 50px;
  height: 50px;
  background-color: #888;
  border-radius: 5px;
  opacity: 0.7;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.5s ease;
}

.goal-flag.active {
  background-color: var(--goal-flag);
  box-shadow: 0 0 15px var(--goal-flag);
  opacity: 1;
  animation: flagPulse 2s infinite;
}

.goal-flag svg {
  width: 30px;
  height: 30px;
  fill: white;
}

@keyframes flagPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 10px var(--goal-flag);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--goal-flag);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 10px var(--goal-flag);
  }
}

/* Styles pour le header et footer */
header {
  width: 100%;
  max-width: 900px;
  text-align: center;
  padding-bottom: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
}

header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 2px;
}

main {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

footer {
  margin-top: 3rem;
  padding: 1.5rem;
  width: 100%;
  text-align: center;
  color: var(--light-text);
  font-size: 0.9rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Style pour les boutons de navigation groupés */
.nav-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  width: 100%;
  justify-content: center;
}

.nav-buttons .nav-btn {
  margin: 0;
  flex: 1;
  text-align: center;
}

@media (max-width: 480px) {
  .nav-buttons {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    width: 100%;
  }
  
  .nav-buttons .nav-btn {
    width: 100%;
    max-width: 100%;
    margin: 0.25rem 0;
  }
  
  button, .nav-btn {
    width: 100%;
    max-width: 100%;
    margin: 0.5rem auto;
    padding: 15px 20px;
  }
  
  #testNotif {
    margin-bottom: 1rem;
  }
}

/* Équipes et scores avec design amélioré */
.team-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 550px;
  margin: 1rem auto;
  padding: 0.5rem;
}

.match-score {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  width: 100%;
  max-width: 500px;
  padding: 0.5rem 1rem;
  background-color: rgba(67, 97, 238, 0.03);
  border-radius: 12px;
}

.team {
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem;
}

.team-name {
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  color: var(--dark-text);
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.score {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-dark);
  background-color: rgba(67, 97, 238, 0.08);
  border-radius: 12px;
  padding: 0.25rem 0.75rem;
  min-width: 48px;
  min-height: 48px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(67, 97, 238, 0.1);
}

.versus {
  margin: 0 1rem;
  font-size: 1rem;
  color: var(--accent);
  font-weight: 700;
  background-color: rgba(52, 152, 219, 0.08);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  position: relative;
}

/* Styles pour la pop-up d'installation */
.install-popup {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 90%;
  width: 380px;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.4s ease;
  pointer-events: none;
}

.install-popup.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
  display: flex !important;
}

.install-popup-content {
  flex: 1;
  margin-right: 16px;
}

.install-popup h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: white !important;
  margin-bottom: 6px;
  opacity: 1;
  text-align: left;
}

.install-popup p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
  text-align: left;
  color: white !important;
}

.install-popup-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.install-btn, .dismiss-btn {
  cursor: pointer !important;
  pointer-events: auto !important;
  position: relative;
  z-index: 10000;
}

.install-btn {
  background-color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  width: auto;
  max-width: 100%;
}

.dismiss-btn {
  background: transparent;
  color: rgba(255, 255, 255, 0.8) !important;
  border: none;
  padding: 4px;
  font-size: 0.8rem;
  margin: 0;
  text-align: center;
  width: auto;
  box-shadow: none;
}

.install-popup-icon {
  display: inline-block;
  margin-right: 8px;
  font-size: 1.2rem;
}

@media (max-width: 480px) {
  .install-popup {
    width: 320px;
    padding: 14px 20px;
  }
}

/* Solution ultime pour la popup - styles hyper spécifiques */
html body .install-popup,
body .install-popup,
.install-popup {
  background: linear-gradient(135deg, #2C3E50, #1A2530) !important;
  color: white !important;
}

html body .install-popup h3,
body .install-popup h3,
.install-popup h3,
#installPopup h3,
div#installPopup h3,
.install-popup > .install-popup-content > h3 {
  color: white !important;
  -webkit-text-fill-color: white !important;
}

html body .install-popup p,
body .install-popup p,
.install-popup p,
#installPopup p,
div#installPopup p,
.install-popup > .install-popup-content > p {
  color: white !important;
  -webkit-text-fill-color: white !important;
}

html body .install-popup .dismiss-btn,
body .install-popup .dismiss-btn,
.install-popup .dismiss-btn,
#installPopup .dismiss-btn,
div#installPopup .dismiss-btn,
.install-popup > .install-popup-actions > .dismiss-btn,
button#dismissBtn.dismiss-btn {
  color: rgba(255, 255, 255, 0.8) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.8) !important;
}

/* Style spécifique pour Samsung S20 FE avec détection par classe */
body.samsung-s20fe .match-card {
  /* Garder une transition uniquement sur la carte visible pour optimiser les performances */
  transition: none;
}

body.samsung-s20fe .match-card.card-visible {
  transition: transform 0.2s ease;
}

/* Optimiser l'affichage sur la hauteur pour voir plus de contenu */
body.samsung-s20fe {
  padding: 0.75rem 0.5rem;
}

body.samsung-s20fe header {
  margin-bottom: 0.5rem;
  padding-bottom: 1rem;
}

body.samsung-s20fe footer {
  margin-top: 2rem;
  padding: 1rem;
}

/* Éviter le surzoom des cartes sur Samsung */
body.samsung-s20fe .match-card:hover {
  transform: translateY(-3px);
}

/* Style spécifique pour les compétitions brésiliennes qui sont trop longues */
.competition.brasileiro {
  margin-left: -5px; /* Décaler légèrement vers la gauche pour éviter la coupure */
  font-size: 0.92rem; /* Légèrement plus petit pour tenir dans l'espace disponible */
  letter-spacing: -0.2px; /* Réduire légèrement l'espacement des lettres */
}

@media (max-width: 480px) {
  .competition.brasileiro {
    margin-left: -7px; /* Décalage plus important sur petit écran */
    font-size: 0.85rem; 
    letter-spacing: -0.3px;
  }
}