:root {
  /* Couleurs du thème sombre */
  --primary-color: #1baf1d;
  --secondary-color: #0353a9;
  --dark-bg: #07182a;
  --darker-bg: #073030;
  --card-bg: #073030;
  --text-color: #e6f1ff;
  --text-secondary: #8892b0;
  --live-color: #ff2d75;
  --prediction-home: #4e9af1;
  --prediction-draw: #f1c40f;
  --prediction-away: #e74c3c;
  --border-color: rgba(255, 255, 255, 0.1);

  /* Couleurs du thème clair */
  --light-bg: #f5f7fa;
  --light-card: #ffffff;
  --light-text: #333333;
  --light-border: rgba(0, 0, 0, 0.1);
}

/* Styles de base */
body {
  background-color: var(--dark-bg);
  color: var(--text-color);
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  transition: all 0.3s ease;
}

body.light-mode {
  background-color: var(--light-bg);
  color: var(--light-text);
  --card-bg: var(--light-card);
  --text-color: var(--light-text);
  --border-color: var(--light-border);
}

/* Typographie */
.futuristic-font {
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 1px;
}

/* Layout principal */
.content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  padding-bottom: 100px; /* Pour le menu du bas */
}

/* En-tête */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid rgba(0, 255, 136, 0.2);
  margin-bottom: 20px;
}

.app-title {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

/* Sélecteur de date */
.date-selector-container {
  position: relative;
  margin-bottom: 20px;
}

.date-selector {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 10px 0;
  gap: 5px;
}

.date-selector::-webkit-scrollbar {
  display: none;
}

.date-item {
  min-width: 60px;
  padding: 10px 5px;
  text-align: center;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
}

.date-item:hover {
  background-color: rgba(0, 255, 136, 0.1);
}

.date-item.today {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 123, 255, 0.2));
  border: 1px solid var(--primary-color);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.date-item .day {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 3px;
}

.date-item .date {
  font-size: 12px;
  color: var(--text-secondary);
}

.date-item.today .day,
.date-item.today .date {
  color: var(--primary-color);
  font-weight: bold;
}

/* Conteneur des matchs */
#matches-container {
  margin-bottom: 80px;
}

/* Éléments de navigation */
.country-item, .league-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  margin-bottom: 8px;
  background-color: var(--card-bg);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.country-item:hover, .league-item:hover {
  transform: translateX(5px);
  border-left: 3px solid var(--primary-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.section-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 20px 0 10px 0;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
}

.section-title i {
  margin-right: 10px;
  font-size: 16px;
}

.match-count {
  background-color: var(--dark-bg);
  color: var(--primary-color);
  padding: 7px 25px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: bolder;
}

/* En-tête de ligue */
.league-header {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  background-color: var(--card-bg);
  border-radius: 8px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-left: 4px solid var(--primary-color);
}

.league-header:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.league-header img {
  width: 25px;
  height: 25px;
  margin-right: 12px;
  object-fit: contain;
}

.league-header span {
  font-weight: 500;
  font-size: 14px;
  flex-grow: 1;
}

.league-header .match-count {
  background-color: rgba(0, 255, 136, 0.1);
  color: var(--primary-color);
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: bold;
}

/* Élément de match */
.match-item {
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 12px 15px;
  margin-bottom: 8px;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  position: relative;
}

.match-item:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border-left: 3px solid var(--primary-color);
}

.match-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.match-time-col {
  width: 60px;
  display: flex;
  justify-content: center;
}

.match-time {
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

.match-teams {
  flex-grow: 1;
  padding: 0 15px;
}

.team-row {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.team-row:last-child {
  margin-bottom: 0;
}

.team-logo {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  object-fit: contain;
}

.team-name {
  flex-grow: 1;
  font-size: 14px;
  font-weight: 400;
}

.prediction-percent {
  font-size: 11px;
  font-weight: bold;
  width: 30px;
  text-align: right;
}

.match-score {
  width: 50px;
  text-align: center;
  font-weight: bold;
  font-size: 14px;
}

.live-minute {
  color: var(--live-color);
  font-weight: bold;
  animation: pulse 1s infinite;
}

.live-badge {
  background-color: var(--live-color);
  color: white;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: bold;
  margin-left: 5px;
  display: inline-block;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.6; }
  100% { opacity: 1; }
}

/* Barre de prédiction */
.prediction-bar-container {
  height: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin-top: 10px;
  overflow: hidden;
  display: flex;
}

.prediction-bar {
  height: 100%;
}

.prediction-bar.home {
  background-color: var(--prediction-home);
}

.prediction-bar.draw {
  background-color: var(--prediction-draw);
}

.prediction-bar.away {
  background-color: var(--prediction-away);
}

/* Bouton retour */
.back-button {
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.back-button:hover {
  background-color: rgba(0, 255, 136, 0.1);
}

.back-button i {
  margin-right: 5px;
}

/* Voir plus */
.see-more {
  text-align: center;
  margin-top: 10px;
  color: var(--primary-color);
  cursor: pointer;
  font-size: 13px;
}

.see-more:hover {
  text-decoration: underline;
}

/* Détails du match */
.match-details-container {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 20px;
  margin-top: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.match-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.league-info {
  display: flex;
  align-items: center;
}

.league-info img {
  margin-right: 10px;
}

.match-status {
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-secondary);
  font-size: 14px;
}

.teams-score {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 30px 0;
}

.team-detail {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 150px;
}

.team-logo-large {
  width: 60px;
  height: 60px;
  margin-bottom: 10px;
  object-fit: contain;
}

.team-name-detail {
  font-size: 16px;
  font-weight: 500;
  text-align: center;
}

.score-display {
  font-size: 36px;
  font-weight: bold;
  margin: 0 20px;
}

.score-divider {
  margin: 0 10px;
}

.match-time-detail {
  text-align: center;
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: bold;
}

/* Section de prédiction */
.prediction-section {
  background-color: rgba(42, 58, 74, 0.5);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

.prediction-title {
  text-align: center;
  font-size: 16px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.prediction-percentages {
  display: flex;
  justify-content: space-around;
  text-align: center;
  margin-bottom: 15px;
}

.prediction-percentage {
  display: flex;
  flex-direction: column;
}

.percentage-value {
  font-size: 18px;
  font-weight: bold;
}

.percentage-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.prediction-advice {
  text-align: center;
  font-style: italic;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 5px;
}

/* Événements du match */
.events-section {
  margin-top: 20px;
}

.events-list {
  max-height: 300px;
  overflow-y: auto;
}

.event-item {
  display: flex;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

.event-time {
  width: 40px;
  font-weight: bold;
  font-size: 12px;
  color: var(--text-secondary);
}

.event-icon {
  width: 24px;
  text-align: center;
  font-size: 16px;
  margin: 0 10px;
}

.event-details {
  flex-grow: 1;
}

.event-player {
  font-weight: 500;
  font-size: 14px;
}

.event-type {
  font-size: 12px;
  color: var(--text-secondary);
}

.home-event {
  color: var(--prediction-home);
}

.away-event {
  color: var(--prediction-away);
}

/* Classements */
.standings-container {
  margin-top: 20px;
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.standings-table th, 
.standings-table td {
  padding: 10px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.standings-table th {
  background-color: rgba(0, 255, 136, 0.1);
  color: var(--primary-color);
}

.standings-table tr:hover {
  background-color: rgba(0, 255, 136, 0.05);
}

.team-standing {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.team-standing img {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

/* Boutons favoris */
.favorite-btn {
  background: none;
  border: none;
  color: #FFC107;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: absolute;
  top: 10px;
  right: 10px;
}

.favorite-btn.active {
  color: #FFC107;
  text-shadow: 0 0 10px #FFC107;
}

.favorite-btn:hover {
  transform: scale(1.2);
}

/* Calendrier */
.calendar-container {
  margin-top: 20px;
}

.matchday-selector {
  display: flex;
  overflow-x: auto;
  margin-bottom: 15px;
  padding-bottom: 5px;
  gap: 5px;
}

.matchday-item {
  padding: 8px 15px;
  background-color: var(--card-bg);
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  white-space: nowrap;
  flex-shrink: 0;
}

.matchday-item.active {
  background-color: var(--primary-color);
  color: var(--dark-bg);
  font-weight: bold;
}

/* Menu du bas */
.bottom-menu {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--darker-bg);
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
  z-index: 100;
}

.menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 10px;
  transition: all 0.3s ease;
  padding: 5px 10px;
}

.menu-item i {
  font-size: 20px;
  margin-bottom: 3px;
}

.menu-item.active {
  color: var(--primary-color);
}

.menu-item:hover {
  color: var(--primary-color);
}

/* Paramètres */
.settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  display: none;
  justify-content: center;
  align-items: center;
}

.settings-modal.show {
  display: flex;
}

.settings-content {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 20px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
}

.settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.settings-title {
  font-size: 20px;
  font-weight: bold;
}

.close-settings {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 24px;
  cursor: pointer;
}

.setting-item {
  margin-bottom: 15px;
}

.setting-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.theme-toggle {
  display: flex;
  align-items: center;
}

.theme-toggle-btn {
  width: 50px;
  height: 25px;
  background-color: var(--text-secondary);
  border-radius: 25px;
  position: relative;
  cursor: pointer;
  margin-right: 10px;
}

.theme-toggle-btn.active {
  background-color: var(--primary-color);
}

.theme-toggle-btn::after {
  content: '';
  position: absolute;
  width: 21px;
  height: 21px;
  background-color: white;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: all 0.3s ease;
}

.theme-toggle-btn.active::after {
  left: 27px;
}

/* Sélecteur de langue */
.language-selector {
  position: fixed;
  bottom: 70px;
  right: 20px;
  z-index: 100;
}

.language-btn {
  background-color: var(--primary-color);
  color: var(--dark-bg);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.language-btn:hover {
  transform: scale(1.1);
}

.language-dropdown {
  position: absolute;
  bottom: 60px;
  right: 0;
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: none;
  width: 150px;
}

.language-dropdown.show {
  display: block;
}

.language-option {
  padding: 8px 15px;
  cursor: pointer;
  border-radius: 5px;
}

.language-option:hover {
  background-color: rgba(0, 255, 136, 0.1);
}

/* Publicités */
.ad-container {
  margin: 20px 0;
  padding: 10px;
  background-color: var(--card-bg);
  border-radius: 8px;
  text-align: center;
  border: 1px dashed rgba(0, 255, 136, 0.3);
}

.ad-label {
  font-size: 10px;
  color: var(--text-secondary);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Loader */
#loader {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  display: none;
  flex-direction: column;
  align-items: center;
}

#loader.visible {
  display: flex;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(0, 255, 136, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Messages d'erreur */
.error-container {
  text-align: center;
  padding: 20px;
}

.retry-button {
  background-color: var(--primary-color);
  color: var(--dark-bg);
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 15px;
  display: inline-flex;
  align-items: center;
}

.retry-button i {
  margin-right: 5px;
}

/* Responsive */
@media (max-width: 768px) {
  .content {
    padding: 15px;
  }
  
  .app-title {
    font-size: 22px;
  }
  
  .team-name {
    font-size: 13px;
  }
  
  .match-score {
    font-size: 13px;
  }
  
  .date-item {
    min-width: 50px;
    padding: 8px 3px;
  }
  
  .date-item .day, 
  .date-item .date {
    font-size: 10px;
  }
  
  .standings-table th, 
  .standings-table td {
    padding: 8px 5px;
    font-size: 12px;
  }
  
  .team-standing img {
    width: 15px;
    height: 15px;
    margin-right: 5px;
  }
  
  .score-display {
    font-size: 24px;
  }
  
  .team-logo-large {
    width: 40px;
    height: 40px;
  }
  
  .bottom-menu {
    display: flex !important;
  }
}

iframe {
display: block;
width: 100vw;
height: 95vh;
max-width: 100%;
margin-top: 0;
margin-right: 0;
margin-left: 0;
margin-bottom: 0;
padding: 0;
border: 0 none;
box-sizing: border-box;
}