/* Base Styles */
:root {
  --primary-color: #2ecc71; /* Vert principal */
  --primary-dark: #27ae60; /* Vert foncé */
  --secondary-color: #e74c3c; /* Rouge pour équipe adverse */
  --tertiary-color: #3498db; /* Bleu pour troisième équipe */
  --dark-bg: #2c3e50; /* Fond sombre */
  --light-bg: #ffffff; /* Fond clair */
  --text-light: #ffffff; /* Texte clair */
  --text-dark: #2c3e50; /* Texte foncé */
  --text-gray: #7f8c8d; /* Texte gris */
  --border-color: #ddbd8a; /* Couleur des bordures */
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Correction pour la hero section */
.palmares-hero {
  margin-top: 80px; /* Compense le header fixe */
    background: linear-gradient(135deg, #6ac27e 0%, #1e7e34 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* AJOUTEZ CE CONTENEUR */
.palmares-hero .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.palmares-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.3;
}
.hero-content{
  max-width: 1172px;
}
.hero-title {
    font-family: 'Oswald', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
}

/* Matches App */
.matches-app {
  font-family: 'Montserrat', 'Segoe UI', sans-serif;
  max-width: 100%;
  margin: 0;
  background: var(--light-bg);
  color: var(--text-dark);
  min-height: 100vh;
}

/* Header */ 
.matches-header {
  background: var(--light-bg);
  padding: 15px 20px 0;
  position: relative;
  box-shadow: var(--shadow);
}

.header-nav {
  display: flex;
  align-items: center;
  padding: 0 0 10px;
  font-size: 14px;
  border-bottom: 1px solid var(--border-color);
}

.nav-item {
  padding: 5px 0;
  cursor: pointer;
  color: var(--text-gray);
}

.nav-item.active {
  color: var(--primary-color);
  font-weight: 600;
}

.nav-separator {
  margin: 0 8px;
  color: var(--border-color);
}

.breadcrumb {
  display: flex;
  align-items: center;
  padding: 10px 0;
  font-size: 13px;
  color: var(--text-gray);
}

.breadcrumb .separator {
  margin: 0 8px;
  color: var(--border-color);
}

.matches-header h1 {
  margin: 10px 0 15px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--dark-bg);
}

/* Tabs */
.matches-tabs {
  display: flex;
  background: transparent;
  margin-top: 10px;
  border-bottom: 1px solid var(--border-color);
}

.tab {
  flex: 1;
  text-align: center;
  padding: 15px 0;
  cursor: pointer;
  position: relative;
  font-weight: 500;
  font-size: 15px;
  color: var(--text-gray);
  transition: all 0.3s ease;
}

.tab.active {
  color: var(--primary-color);
  font-weight: 600;
}

.tab .indicator {
  height: 3px;
  width: 0;
  background: var(--primary-color);
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  transition: width 0.3s ease;
  border-radius: 3px 3px 0 0;
}

.tab.active .indicator {
  width: 60%;
}

/* Filters Section */
.filters-section {
  background: var(--light-bg);
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-color);
  display: none;
}

.filter-row {
  display: flex;
  gap: 20px;
}

.filter-group {
  flex: 1;
  margin-bottom: 0;
}

.filter-group label {
  display: block;
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 8px;
  font-weight: 600;
}

.filter-select {
  width: 100%;
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-dark);
  background-color: var(--light-bg);
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237f8c8d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 15px;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-select:hover {
  border-color: var(--primary-color);
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.2);
}

/* Matches List */
.matches-list {
  padding: 0;
  background: var(--light-bg);
}

.matches-section {
  display: none;
}

.matches-section.active {
  display: block;
}

/* Match Card */
.match-card {
  position: relative;
  background: var(--light-bg);
  border-bottom: 1px solid var(--border-color);
  padding: 15px 20px;
  transition: all 0.3s;
}



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

.competition {
  font-size: 13px;
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
}

.match-date {
  font-size: 13px;
  color: var(--text-gray);
}

.match-category {
  font-size: 12px;
  background: var(--primary-dark);
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 10px;
}

.teams-container {
  display: flex;
  align-items: center;
  padding: 5px 0;
}

.team {
  flex: 1;
  display: flex;
  align-items: center;
}

.home-team {
  justify-content: flex-start;
}

.away-team {
  justify-content: flex-end;
}

.team-name {
  font-weight: 600;
  font-size: 16px;
}

.home-team .team-name {
  margin-left: 10px;
}

.away-team .team-name {
  margin-right: 10px;
}

.team-logo {
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: white;
  padding: 2px;
}

.team-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.match-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 15px;
  min-width: 70px;
}

.match-time, .match-score {
  font-weight: 700;
  font-size: 16px;
  color: var(--dark-bg);
}

.match-vs {
  font-size: 12px;
  color: var(--text-gray);
  margin-top: 3px;
  font-weight: 500;
}

.match-status {
  font-size: 11px;
  color: var(--primary-color);
  margin-top: 3px;
  font-weight: 500;
  text-transform: uppercase;
}

.match-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  margin-top: 15px;
  font-size: 13px;
}

.venue {
  color: var(--text-gray);
}

.match-actions {
  display: flex;
  align-items: center;
}

.match-id {
  color: var(--text-gray);
  margin-left: 15px;
  font-size: 12px;
}

.btn-details {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-details:hover {
  background: var(--primary-dark);
}

/* Pagination */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  margin-top: 20px;
  border-top: 1px solid var(--border-color);
}

.pagination {
  display: flex;
  list-style: none;
  gap: 5px;
}

.pagination-btn {
  padding: 8px 14px;
  border: 1px solid var(--border-color);
  background: white;
  color: var(--text-dark);
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s;
  font-size: 14px;
  min-width: 40px;
  text-align: center;
}

.pagination-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.pagination-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.pagination-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-btn.disabled:hover {
  background: white;
  color: var(--text-dark);
  border-color: var(--border-color);
}

.matches-count {
  font-size: 14px;
  color: var(--text-gray);
  margin-left: 20px;
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s;
  padding: 20px;
  box-sizing: border-box;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: white;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-header {
  padding: 20px;
  background: var(--light-bg);
  color: var(--dark-bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.modal-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.close-modal {
  font-size: 28px;
  cursor: pointer;
  transition: color 0.2s;
  color: var(--text-gray);
  margin-left: auto;
}

.close-modal:hover {
  color: var(--dark-bg);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.teams-modal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.team-modal {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-modal .team-logo {

  margin-bottom: 10px;
  overflow: hidden;
  background: white;
  padding: 5px;
}

.team-modal .team-logo img {

  object-fit: contain;
}

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

.match-info-modal {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 15px;
}

.match-info-modal .match-score {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--dark-bg);
}

.match-info-modal .match-vs {
  font-size: 18px;
  color: var(--text-gray);
  margin-bottom: 5px;
  font-weight: 500;
}

.match-info-modal .match-date,
.match-info-modal .match-time {
  font-size: 14px;
  color: var(--text-gray);
  font-weight: 500;
}

.match-details {
  margin: 25px 0;
}

.detail-row {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  font-weight: 600;
  color: var(--text-gray);
  width: 40%;
}

.detail-value {
  font-weight: 500;
  color: var(--dark-bg);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 40%;
}

/* Timeline Styles */
.timeline-section {
  margin-top: 30px;
}

.timeline-section h3 {
  text-align: center;
  margin-bottom: 20px;
  color: var(--dark-bg);
  font-size: 18px;
}

.timeline-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
  text-align: center;
}

.timeline {
  position: relative;
  margin-top: 30px;
}

.timeline.has-events::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #3498db;
  transform: translateX(-50%);
  z-index: 0;
}

.timeline-item {
  position: relative;
  width: 100%;
  margin-bottom: 90px;
  clear: both;
}

.timeline-marker {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #3498db;
  border: 2px solid #fff;
  z-index: 1;
}

.goal-marker {
  background: #2ecc71;
}

.yellow-card-marker {
  background: #f39c12;
}

.red-card-marker {
  background: #e74c3c;
}

.timeline-content {
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  position: relative;
  background: white;
  border: 1px solid var(--border-color);
}

.home-event .timeline-content {
  float: left;
  width: 45%;
  text-align: right;
}

.away-event .timeline-content {
  float: right;
  width: 45%;
  text-align: left;
}

.event-player {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 5px;
}

.event-time {
  font-weight: bold;
  font-size: 18px;
}

.event-icon {
  margin-left: 8px;
}

.no-events {
  text-align: center;
  padding: 40px;
  font-size: 18px;
  color: var(--text-gray);
}

/* Responsive */
@media (max-width: 768px) {
  .palmares-hero {
    margin-top: 70px;
    padding: 40px 0;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .filter-row {
    flex-direction: column;
    gap: 15px;
  }
  
  .team-name {
    font-size: 14px;
  }
  
  .team-logo {
    width: 30px;
    height: 30px;
  }

  .team-logo img{
    width: 25px;
    height: 25px;
  }
  
  .match-info {
    min-width: 60px;
  }
  
  .match-time, .match-score {
    font-size: 14px;
  }
  
  .home-event .timeline-content,
  .away-event .timeline-content {
    float: none;
    width: 100%;
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }
  
  .timeline-marker {
    display: none;
  }
  
  .timeline::before {
    left: 5px;
    width: 3px;
  }
  
  .timeline-item {
    margin-bottom: 60px;
  }
  
  .match-info-modal .match-score {
    font-size: 20px;
  }
  
  .detail-label,
  .detail-value {
    font-size: 12px;
  }
  
  .pagination-btn {
    padding: 6px 10px;
    min-width: 35px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .palmares-hero {
    margin-top: 90px;
    padding: 30px 0;
  }
  
  .hero-title {
    font-size: 1.5rem;
  }
  
  .team-name {
    font-size: 12px;
  }
  
  .team-logo {
    width: 25px;
    height: 25px;
  }
  
  .match-info {
    min-width: 50px;
  }
  
  .match-time, .match-score {
    font-size: 12px;
  }
  
  .btn-details {
    padding: 4px 8px;
    font-size: 11px;
  }
}



@media (min-width: 576px) {

.team-logo {
    width: 60px;
    height: 60px;
  }

  .team-logo img{
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 315px) {
.competition{
  font-size: 8px;
}
.match-date{
  font-size: 8px;
}
.match-category{
  font-size: 8px;
}
.match-location{
  font-size: 8px;
}
}