/* === GLOBAL RESET & BODY === */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', sans-serif; margin-top: 0px; background-color: #f5f5f5; color: #333; }

/* === TITRES UNIFIES POUR TOUTES LES PAGES === */
/* Règle générale pour tous les h1 de pages (sauf hero) */
h1 {
  font-family: 'Segoe UI', sans-serif;
  font-size: 2.5rem;
  font-weight: bold;
  color: #333;
  text-align: center;
  margin-top: 100px;        /* Distance plus grande avec le haut */
  margin-bottom: 40px;     /* Distance uniforme avec le contenu */
  line-height: 1.3;
  padding: 0 20px;         /* Padding latéral pour mobile */

  } /* <-- Correction : accolade fermante ajoutée ici */

  /* Titres secondaires unifiés */
  h2, h3, h4, h5, h6 {
    font-family: 'Segoe UI', sans-serif;
    font-weight: bold;
    color: #333;
    text-align: left;
    margin-bottom: 20px;
    line-height: 1.3;
}
  h2 { font-size: 2rem; }
  h3 { font-size: 1.75rem; }
  h4 { font-size: 1.5rem; }
  h5 { font-size: 1.25rem; }
  h6 { font-size: 1rem; }

/* === HERO SECTION (INDEX UNIQUEMENT) === */
.hero {
  background: 
    linear-gradient(135deg, rgba(255, 204, 51, 0.1) 0%, rgba(0, 0, 0, 0.7) 100%),
    url('../img/salle.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;

}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 40px 20px;
  animation: fadeInUp 1s ease-out;
}

/* EXCEPTION : Le h1 du hero garde ses spécificités mais amélioré */
.hero h1 { 
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 30px;
  margin-top: 0;
  color: white;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
  letter-spacing: -0.02em;
  animation: slideInFromTop 1s ease-out 0.3s both;
}

/* Nouveau sous-titre pour le hero */
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  font-weight: 300;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  animation: slideInFromTop 1s ease-out 0.6s both;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  animation: slideInFromBottom 1s ease-out 0.9s both;
}

.hero-btn {
  padding: 14px 30px;
  border: 2px solid #ffcc33;
  background: rgba(255, 204, 51, 0.1);
  backdrop-filter: blur(10px);
  color: white;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.hero-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.hero-btn:hover::before {
  left: 100%;
}

.hero-btn:hover {
  background: #ffcc33;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 204, 51, 0.3);
  border-color: #ffcc33;
}

.hero-btn:active {
  transform: translateY(-1px);
}

/* === NOUVELLES SECTIONS POUR LA PAGE D'ACCUEIL === */
/* Section d'introduction */
.intro-section {
  padding: 100px 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  text-align: center;
  position: relative;
}

.intro-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ffcc33, #ffd700, #ffcc33);
}

.intro-container {
  max-width: 1200px;
  margin: 0 auto;
}

.intro-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #333;
  margin-bottom: 30px;
  position: relative;
}

.intro-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #ffcc33, #ffd700);
  border-radius: 2px;
}

.intro-text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #666;
  max-width: 800px;
  margin: 0 auto 50px;
}

/* Section statistiques */
.stats-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #ffcc33 0%, #ffd700 100%);
  color: white;
}

.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  text-align: center;
}

.stat-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 40px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 15px;
  display: block;
}

.stat-label {
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Section d'appel à l'action */
.cta-section {
  padding: 100px 20px;
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  text-align: center;
  color: white;
}

.cta-container {
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 25px;
}

.cta-text {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 40px;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn {
  padding: 16px 40px;
  background: #ffcc33;
  color: #333;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.cta-btn:hover {
  background: #ffd700;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 204, 51, 0.4);
}

.cta-btn.secondary {
  background: transparent;
  color: #ffcc33;
  border: 2px solid #ffcc33;
}

.cta-btn.secondary:hover {
  background: #ffcc33;
  color: #333;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* === CONTAINERS DE PAGES === */
.comite-page,
.affiliation-page,
.entrainement-container,
.partenaires-page,
.actualites-page,
/* Container principal */
.results-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px 40px 20px;
}
.calendar-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px 20px;  /* Pas de padding-top, le margin du h1 s'en charge */
}

/* === PAGE CONTACT & COMITÉ === */
.committee-container { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.member-card {
  background-color: #f8f8f8; border-left: 5px solid #ffcc33; padding: 30px; border-radius: 12px;
  width: 300px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); text-align: center;
}
.member-card h2 { font-size: 1.4rem; color: #333; margin-bottom: 10px; }
.member-card .name { font-weight: bold; font-size: 1.2rem; margin-bottom: 10px; }
.member-card .address, .member-card .phone { margin-bottom: 10px; font-size: 1rem; color: #555; }
.email-btn {
  display: inline-block; background-color: #ffcc33; color: white; padding: 10px 20px; border-radius: 8px;
  text-decoration: none; font-weight: bold; transition: background-color 0.3s ease;
}
.email-btn:hover { background-color: #ffcc33; }
.localisation-section {
  display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap;
  gap: 20px; margin-top: 60px;
}
.adresse { flex: 1 1 300px; font-size: 1rem; line-height: 1.6; }
#adresse h3 { font-size: 1.4rem; font-weight: bold; margin-bottom: 10px; }
#map {
  flex: 1 1 500px; height: 400px; border-radius: 12px; overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1); min-width: 300px;
}

/* === PAGE AFFILIATION === */
/* Le titre h1 est déjà géré par la règle globale h1 */
.price-container { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; margin-bottom: 40px; }
.affiliation-price-box {
  background-color: #ffcc33; color: white; padding: 40px; border-radius: 12px; text-align: center;
  flex: 1; min-width: 250px; max-width: 400px; box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.affiliation-price-box .price { font-size: 3rem; font-weight: bold; margin-bottom: 10px; }
.affiliation-price-box .subtitle { font-size: 1.2rem; font-weight: 500; }
.info {
  background-color: #f8f8f8; border-left: 5px solid #ffcc33; padding: 20px 30px; margin-top: 30px;
  border-radius: 8px; margin-left: auto; margin-right: auto; max-width: 600px; box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.info h2 { font-size: 1.5rem; margin-bottom: 15px; color: #333; }
.info p { font-size: 1rem; line-height: 1.5; margin-bottom: 10px; text-align: left; }
.info a { color: #ffcc33; text-decoration: none; font-weight: bold; }
.info a:hover { text-decoration: underline; }

/* === PAGE JOUEURS === */
.category-section {
  margin-bottom: 60px;
}

.category-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: left;
  font-weight: bold;
}

.players-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 25px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.players-row .player-card {
  flex: 0 0 300px;
  max-width: 320px;
}

.player-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: center;
  overflow: hidden;
  position: relative;
  padding-bottom: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  aspect-ratio: 3/4;
  display: flex;
  flex-direction: column;
  max-width: 280px;
  margin: 0 auto;
}

.player-card:hover { 
  transform: translateY(-5px); 
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.player-card img {
  width: 100%;
  height: auto;
  flex: 1;
  object-fit: cover;
}

.rank {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #ffcc33;
  color: #000;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 14px;
}

.player-card p {
  margin: 8px 0;
  font-weight: bold;
  font-size: 1rem;
  color: #333;
}

/* === PAGE équipes === */
.team {
  margin-bottom: 25px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: all 0.3s ease;
}

.team:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

/* En-tête des équipes */
.team-header {
  padding: 25px 35px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-left: 6px solid #ddd;
  color: #333;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.team-header:hover {
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
  border-left-color: #adb5bd;
}

.team-header.expanded {
  background: linear-gradient(135deg, #ffcc33 0%, #ffd700 100%);
  border-left-color: #ffcc33;
  color: white;
}

.team-header.expanded:hover {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  border-left-color: #ffd700;
}

.team-header h2 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: inherit;
  text-align: left;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.toggle-btn {
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(0,0,0,0.1);
  border-radius: 12px;
  width: 45px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.toggle-btn:hover {
  border-color: rgba(0,0,0,0.2);
  background: rgba(255,255,255,0.2);
  transform: scale(1.05);
}

.team-header.expanded .toggle-btn {
  border-color: rgba(255,255,255,0.3);
  color: white;
  background: rgba(255,255,255,0.15);
}

.team-header.expanded .toggle-btn:hover {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.25);
}

.toggle-btn i {
  transition: transform 0.3s ease;
}

/* Contenu des équipes */
.team-content {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  background: linear-gradient(135deg, #fafafa 0%, #f8f9fa 100%);
}

.team-content.expanded {
  max-height: 1000px;
  opacity: 1;
  padding: 35px;
}

/* === PAGE RESULTATS === */
label[for="journee-select"],
#journee-select {
  display: block;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 20px;
  padding: 10px;
}
#journee-select {
  width: 200px;
  border: 1px solid #ccc;
  border-radius: 12px;
  appearance: none;
  background-color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
main h2 {
  text-align: center;
  font-size: 1.5em;
  margin-top: 20px;
  font-weight: 600;
  color: #333;
}
#resultats-container {
  margin: 30px auto;
  width: 95%;
  max-width: 1000px;
  padding: 20px;
}
table {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
  border-radius: 12px;
  overflow: hidden;
  background-color: transparent;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
}
table thead {
  background-color: #ffcc33;
}
table th {
  color: #333;
  padding: 15px;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
}
table td {
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.95rem;
}
table tr:last-child td {
  border-bottom: none;
}
table tr:hover {
  background-color: #fdf5cc;
}

/* === PAGE PARTENAIRES === */
.nb-partenaires {
  text-align: center;
  margin-bottom: 40px;
  font-size: 1rem;
  color: #666;
}

.partenaire-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
  background-color: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.partenaire-logo img {
  max-width: 200px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.partenaire-content {
  flex: 1;
  min-width: 280px;
}

.partenaire-content h2 {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}

.partenaire-content p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 15px;
  color: #555;
}

.btn-suite {
  display: inline-block;
  background-color: #ffcc33;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn-suite:hover {
  background-color: #b48f1f;
}

.partenaire-detail-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  background-color: #f5f5f5;
  min-height: 100vh;
}

.partenaire-box {
  background-color: #ffffff;
  padding: 40px 30px;
  border-radius: 16px;
  max-width: 800px;
  width: 100%;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Le titre h1 dans partenaire-box utilise maintenant la règle globale */
/* mais avec une couleur spécifique pour cette page */
.partenaire-box h1 {
  color: #204b8a;  /* Couleur spécifique conservée */
  margin-top: 0;   /* Pas de marge top car déjà dans le container */
}

.partenaire-box p {
  font-size: 1rem;
  color: #444;
  margin: 10px 0;
}

.partenaire-box a {
  color: #204b8a;
  text-decoration: underline;
  font-weight: 500;
}

.logo-partenaire {
  margin-top: 30px;
  max-width: 300px;
  width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
}

/* === PAGE ENTRAINEMENTS === */
.horaires {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.6;
}

.horaires h2 {
  text-align: center;
  margin-bottom: 20px;
}

.horaires ul {
  list-style: none;
  padding: 0;
}

.horaires li {
  margin-bottom: 8px;
}

.horaires a.lien, .horaires a.lien:visited {
  color: #0066cc;
  text-decoration: none;
}
.horaires a.lien:hover {
  text-decoration: underline;
}

.entrainement-image {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.entrainement-image img {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  object-fit: cover;
}

/* === CSS SPÉCIFIQUE POUR LA PAGE PARTENAIRES (à ajouter dans style.css) === */
/* Modifications pour les partenaires en colonne avec volets roulants */

.partenaire-detail-container {
  display: block; /* Changé de flex à block */
  padding: 60px 20px;
  background-color: #f5f5f5;
  min-height: 100vh;
}

.partenaires-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.partenaire-box {
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.partenaire-box:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.partenaire-header {
  padding: 30px;
  background: linear-gradient(135deg, #ffcc33 0%, #ffd700 100%);
  color: white;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: background 0.3s ease;
}

.partenaire-header:hover {
  background: linear-gradient(135deg, #ffd700 0%, #ffcc33 100%);
}

.partenaire-header h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.toggle-btn {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 12px;
  width: 50px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(15px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  overflow: hidden;
}

.toggle-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s ease;
}

.toggle-btn:hover::before {
  left: 100%;
}

.toggle-btn:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.7);
  transform: translateY(-50%) translateX(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.toggle-btn:active {
  transform: translateY(-50%) translateX(-1px) scale(0.98);
}

.toggle-btn i {
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.toggle-btn:hover i {
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

/* Animation spéciale pour l'état ouvert */
.partenaire-content.expanded + .partenaire-header .toggle-btn {
  background: rgba(255,255,255,0.3);
  border-color: rgba(255,255,255,0.8);
}

.partenaire-content {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
}

.partenaire-content.expanded {
  max-height: 800px; /* Ajustez selon vos besoins */
  opacity: 1;
  padding: 30px;
}

.partenaire-content p {
  font-size: 1rem;
  color: #444;
  margin: 15px 0;
  line-height: 1.6;
}

.partenaire-content a {
  color: #204b8a;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.partenaire-content a:hover {
  color: #ffcc33;
  text-decoration: underline;
}

.logo-partenaire {
  margin-top: 20px;
  max-width: 300px;
  width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.logo-partenaire:hover {
  transform: scale(1.05);
}

.partenaire-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  padding: 30px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.partenaire-intro h1 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #333;
}

.partenaire-intro p {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.6;
}

/* === RESPONSIVE POUR LES PARTENAIRES === */
@media (max-width: 768px) {
  .partenaire-header h1 {
    font-size: 1.5rem;
    padding-right: 70px; /* Espace pour le bouton amélioré */
  }
  
  .toggle-btn {
    width: 45px;
    height: 32px;
    font-size: 0.9rem;
    right: 15px;
  }
  
  .partenaire-content.expanded {
    padding: 20px;
  }

  .partenaire-detail-container {
    padding: 30px 15px;
  }

  .partenaires-list {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .partenaire-header {
    padding: 20px;
  }
  
  .partenaire-header h1 {
    font-size: 1.3rem;
    padding-right: 60px;
  }
  
  .toggle-btn {
    width: 40px;
    height: 28px;
    font-size: 0.85rem;
    right: 12px;
  }
  
  .partenaire-intro {
    padding: 20px;
    margin-bottom: 30px;
  }
  
  .logo-partenaire {
    max-width: 250px;
  }
}

/* === PAGE CALENDRIER === */
.calendar-wrapper {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    overflow: hidden;
    padding: 10px;
    max-width: 100%;
}

.calendar-wrapper iframe {
    width: 100%;
    height: 650px;
    border: none;
    border-radius: 12px;
}

/* === PAGE ACTUALITÉS === */
.grid-articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.carte-article {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.carte-article:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* === AMÉLIORATION IMAGES D'ACTUALITÉ === */
.carte-article img {
    width: 100%;
    height: 200px; /* Hauteur fixe pour uniformité */
    object-fit: contain; /* Affiche l'image complète sans déformation */
    object-position: center; /* Centre l'image */
    background-color: #f8f9fa; /* Couleur de fond pour les bandes éventuelles */
    border-radius: 12px 12px 0 0; /* Coins arrondis en haut seulement */
    transition: transform 0.3s ease;
    display: block;
}

/* Alternative pour remplir complètement (peut rogner) */
.carte-article img.fill {
    object-fit: cover; /* Remplit le container mais peut rogner l'image */
}

/* Responsive pour les images d'actualité */
@media (max-width: 768px) {
    .carte-article img {
        height: 180px; /* Hauteur réduite sur tablette */
    }
}

@media (max-width: 480px) {
    .carte-article img {
        height: 160px; /* Hauteur encore réduite sur mobile */
    }
}

/* Améliorations pour vos cartes existantes */
.carte-article {
    overflow: hidden; /* Important pour les coins arrondis */
}

.carte-article:hover img {
    transform: scale(1.02); /* Légèrement réduit pour éviter les débordements */
}

.contenu {
  padding: 15px;
  display: flex;
  flex-direction: column;
}

.titre {
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
  text-decoration: none;
  transition: color 0.2s ease;
}

.titre:hover {
  color: #ffcc33;
}

.date {
  color: #777;
  font-size: 0.9rem;
  margin: 8px 0;
}

.resume {
  font-size: 1rem;
  color: #555;
  flex-grow: 1;
}






/* CSS spécifique à la page équipes */

/* Container principal */
.results-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px 40px 20px;
}

/* Titre */
h1 {
  font-family: 'Segoe UI', sans-serif;
  font-size: 2.5rem;
  font-weight: bold;
  color: #333;
  text-align: center;
  margin-top: 100px;
  margin-bottom: 40px;
  line-height: 1.3;
  padding: 0 20px;
}

/* Équipes */
.team {
  margin-bottom: 25px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: all 0.3s ease;
}

.team:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

/* En-tête des équipes */
.team-header {
  padding: 25px 35px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-left: 6px solid #ddd;
  color: #333;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.team-header:hover {
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
  border-left-color: #adb5bd;
}

.team-header.expanded {
  background: linear-gradient(135deg, #ffcc33 0%, #ffd700 100%);
  border-left-color: #ffcc33;
  color: white;
}

.team-header.expanded:hover {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  border-left-color: #ffd700;
}

.team-header h2 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: inherit;
  text-align: left;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.toggle-btn {
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(0,0,0,0.1);
  border-radius: 12px;
  width: 45px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.toggle-btn:hover {
  border-color: rgba(0,0,0,0.2);
  background: rgba(255,255,255,0.2);
  transform: scale(1.05);
}

.team-header.expanded .toggle-btn {
  border-color: rgba(255,255,255,0.3);
  color: white;
  background: rgba(255,255,255,0.15);
}

.team-header.expanded .toggle-btn:hover {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.25);
}

.toggle-btn i {
  transition: transform 0.3s ease;
}

/* Contenu des équipes */
.team-content {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  background: linear-gradient(135deg, #fafafa 0%, #f8f9fa 100%);
}

.team-content.expanded {
  max-height: 1000px;
  opacity: 1;
  padding: 35px;
}

/* GRID RESPONSIVE AMÉLIORÉ POUR LES JOUEURS */
.players-row {
  display: grid;
  gap: 25px;
  justify-content: center;
  justify-items: center;
  
  /* Responsive grid basé sur la largeur disponible */
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

/* Adaptations spécifiques par taille d'écran */

/* Très grands écrans (1400px+) - jusqu'à 5 colonnes */
@media (min-width: 1400px) {
  .players-row {
    grid-template-columns: repeat(auto-fit, minmax(250px, 280px));
    max-width: 1400px;
    margin: 0 auto;
  }
}

/* Grands écrans (1200px-1399px) - jusqu'à 4 colonnes */
@media (min-width: 1200px) and (max-width: 1399px) {
  .players-row {
    grid-template-columns: repeat(auto-fit, minmax(260px, 300px));
    max-width: 1200px;
    margin: 0 auto;
  }
}

/* Écrans moyens (900px-1199px) - jusqu'à 3 colonnes */
@media (min-width: 900px) and (max-width: 1199px) {
  .players-row {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    max-width: 900px;
    margin: 0 auto;
  }
}

/* Tablettes (600px-899px) - 2 colonnes */
@media (min-width: 600px) and (max-width: 899px) {
  .players-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* Petites tablettes (480px-599px) - 2 colonnes plus petites */
@media (min-width: 480px) and (max-width: 599px) {
  .players-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
  }
}

/* Mobiles (moins de 480px) - 2 colonnes compactes */
@media (max-width: 479px) {
  .players-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 100%;
    margin: 0 auto;
  }
}

/* Cartes des joueurs - VERSION CORRIGÉE */
.player-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: center;
  overflow: hidden;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 320px;
  border: 2px solid transparent;
  min-height: 400px; /* Hauteur minimum garantie */
}

.player-card:hover { 
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  border-color: #ffcc33;
}

/* Image du joueur - PRIORITÉ À LA STRUCTURE */
.player-card img {
  width: 100%;
  height: 280px; /* Hauteur fixe pour l'image */
  object-fit: cover;
  transition: transform 0.3s ease;
  flex-shrink: 0; /* Empêche la compression */
}

.player-card:hover img {
  transform: scale(1.05);
}

/* Zone du nom - TOUJOURS VISIBLE */
.player-card p {
  margin: 0;
  padding: 15px 12px;
  font-weight: 600;
  font-size: 1.1rem;
  color: #333;
  line-height: 1.3;
  background: rgba(248, 249, 250, 0.9);
  border-top: 1px solid rgba(0,0,0,0.05);
  flex-grow: 1; /* Prend l'espace restant */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px; /* Hauteur minimum pour le nom */
}
.player-card:hover img {
  transform: scale(1.05);
}

/* Rang du joueur */
.rank {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #ffcc33 0%, #ffd700 100%);
  color: #333;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  box-shadow: 0 3px 8px rgba(255, 204, 51, 0.4);
  border: 2px solid rgba(255,255,255,0.8);
  z-index: 10;
}

/* Joueurs non définis */
.empty-player {
  opacity: 0.6;
  border: 2px dashed #ccc !important;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.empty-player:hover {
  opacity: 0.8;
  border-color: #adb5bd !important;
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.empty-player::after {
  content: "Joueur à définir";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #6c757d;
  font-style: italic;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  width: 80%;
  z-index: 5;
  background: rgba(255,255,255,0.8);
  padding: 10px;
  border-radius: 8px;
}

.empty-player img {
  opacity: 0.3;
}

.empty-player p {
  color: #6c757d !important;
  font-style: italic;
  background: rgba(248, 249, 250, 0.8) !important;
}

/* === RESPONSIVE === */
@media (min-width: 1400px) {
  .players-row {
    grid-template-columns: repeat(auto-fit, minmax(250px, 280px));
    max-width: 1400px;
    margin: 0 auto;
  }
}

@media (min-width: 1200px) and (max-width: 1399px) {
  .players-row {
    grid-template-columns: repeat(auto-fit, minmax(260px, 300px));
    max-width: 1200px;
    margin: 0 auto;
  }
}

@media (min-width: 900px) and (max-width: 1199px) {
  .players-row {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    max-width: 900px;
    margin: 0 auto;
  }
}

@media (min-width: 600px) and (max-width: 899px) {
  .players-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .player-card {
    min-height: 350px;
  }
  
  .player-card img {
    height: 240px;
  }
}

@media (min-width: 480px) and (max-width: 599px) {
  .players-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .player-card {
    min-height: 320px;
  }
  
  .player-card img {
    height: 200px;
  }
}

@media (max-width: 479px) {
  .players-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 100%;
    margin: 0 auto;
  }
  
  .player-card {
    min-height: 280px;
  }
  
  .player-card img {
    height: 180px;
  }
  
  .player-card p {
    font-size: 0.9rem;
    padding: 10px 8px;
    min-height: 50px;
  }
  
  .rank {
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    font-size: 12px;
  }
}

/* Responsive pour les en-têtes */
@media (max-width: 768px) {
  .team-header {
    padding: 20px 25px;
  }
  
  .team-header h2 {
    font-size: 1.5rem;
    padding-right: 15px;
  }
  
  .toggle-btn {
    width: 40px;
    height: 36px;
    font-size: 0.9rem;
  }
  
  .team-content.expanded {
    padding: 25px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
    margin-top: 80px;
    margin-bottom: 30px;
  }

  .team-header {
    padding: 18px 20px;
  }
  
  .team-header h2 {
    font-size: 1.3rem;
    padding-right: 12px;
  }
  
  .toggle-btn {
    width: 36px;
    height: 32px;
    font-size: 0.85rem;
  }

  .team-content.expanded {
    padding: 20px;
  }
}

/* Animation d'entrée */
.team {
  opacity: 0;
  transform: translateY(20px);
  animation: slideInUp 0.6s ease-out forwards;
}

.team:nth-child(1) { animation-delay: 0.1s; }
.team:nth-child(2) { animation-delay: 0.2s; }
.team:nth-child(3) { animation-delay: 0.3s; }
.team:nth-child(4) { animation-delay: 0.4s; }
.team:nth-child(5) { animation-delay: 0.5s; }
.team:nth-child(6) { animation-delay: 0.6s; }
.team:nth-child(7) { animation-delay: 0.7s; }
.team:nth-child(8) { animation-delay: 0.8s; }

@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== STYLES SPÉCIFIQUES POUR LES CARTES FIXES ===== */
/* Fichier: fixed-cards.css */

/* Section principale des cartes fixes */
.fixed-cards-section {
  margin-top: 60px;
  padding: 40px 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 20px;
}

/* Titre de la section */
.fixed-cards-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 40px;
  position: relative;
}

.fixed-cards-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #ffcc33, #ffd700);
  border-radius: 2px;
}

/* Container des cartes */
.fixed-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

/* Styles des cartes individuelles */
.fixed-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 3px solid transparent;
  position: relative;
}

.fixed-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #ffcc33, #ffd700, #ffcc33);
  z-index: 1;
}

.fixed-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
  border-color: #ffcc33;
}

/* En-tête des cartes */
.fixed-card-header {
  padding: 30px 25px 20px;
  background: linear-gradient(135deg, #ffcc33 0%, #ffd700 100%);
  color: white;
  text-align: center;
  position: relative;
  z-index: 2;
}

.fixed-card-header h3 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Contenu des cartes */
.fixed-card-content {
  padding: 30px;
  text-align: center;
}

/* Images des joueurs */
.fixed-player-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #ffcc33;
  margin: 0 auto 20px;
  display: block;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.fixed-card:hover .fixed-player-image {
  transform: scale(1.1);
}

/* Nom du joueur */
.fixed-player-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
  line-height: 1.3;
}

/* Rôle du joueur */
.fixed-player-role {
  background: linear-gradient(135deg, #ffcc33, #ffd700);
  color: white;
  padding: 8px 20px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1rem;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(255, 204, 51, 0.4);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablettes (768px et moins) */
@media (max-width: 768px) {
  .fixed-cards-section {
    margin-top: 40px;
    padding: 30px 15px;
  }

  .fixed-cards-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .fixed-cards-container {
    gap: 30px;
    grid-template-columns: 1fr;
  }

  .fixed-card-header h3 {
    font-size: 1.5rem;
  }

  .fixed-player-name {
    font-size: 1.2rem;
  }
}

/* Mobiles (480px et moins) */
@media (max-width: 480px) {
  .fixed-cards-title {
    font-size: 1.6rem;
  }

  .fixed-card-header {
    padding: 25px 20px 15px;
  }

  .fixed-card-content {
    padding: 25px 20px;
  }

  .fixed-player-image {
    width: 100px;
    height: 100px;
  }
}



/* === TABLEAU RÉSULTATS : RESPONSIVE BÉTON === */

/* === TABLEAU RÉSULTATS : COULEURS ORIGINE === */

.results-container table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

/* en-tête jaune */
.results-container thead th {
  background: #ffcc33;  /* jaune */
  color: #000;          /* texte noir */
  font-weight: 600;
  text-align: center;
  padding: 10px;
  border: 1px solid #ddd;
}

/* cellules blanches */
.results-container td {
  background: #fff;
  color: #000;
  padding: 8px 12px;
  border: 1px solid #eee; /* léger gris */
  text-align: center;
  word-break: normal;
  overflow-wrap: break-word;
}

/* hover (optionnel) */
.results-container tbody tr:hover td {
  background: #f9f9f9;
}

/* responsive : scroll si nécessaire */
.results-container .table-card {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}


/* --- Mode mobile : on force le scroll horizontal + ellipsis --- */
@media (max-width: 640px){
  .results-container table{
    table-layout: fixed;         /* colonnes stables */
    min-width: 560px;            /* largeur mini du tableau -> provoque un scroll propre */
  }

  .results-container th,
  .results-container td{
    white-space: nowrap;         /* pas de retour à la ligne */
    overflow: hidden;
    text-overflow: ellipsis;     /* … si ça dépasse */
    word-break: normal;          /* re-sécurité */
  }

  /* Largeurs mini par colonne (adapter si tes colonnes changent) */
  .results-container th:nth-child(1), .results-container td:nth-child(1){ min-width:120px; } /* Équipe */
  .results-container th:nth-child(2), .results-container td:nth-child(2){ min-width:120px; } /* Adversaire */
  .results-container th:nth-child(3), .results-container td:nth-child(3){ min-width:110px; } /* Lieu */
  .results-container th:nth-child(4), .results-container td:nth-child(4){ min-width:110px; } /* Résultat */
  .results-container th:nth-child(5), .results-container td:nth-child(5){ min-width: 90px; } /* Score */
}

/* un peu plus compact sur très petit écran */
@media (max-width: 400px){
  .results-container th,
  .results-container td{ padding:6px 8px; font-size:0.85rem; }
}




.download-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #ffcc33;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 1rem;
  transition: 0.3s;
  margin-bottom: 25px;
}

.download-all-btn:hover {
  background-color: rgba(255, 204, 51, 0.4);
}




.player-card.hidden-for-web {
  display: none; /* invisible sur le site */
}
