/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: Arial, sans-serif;
}

/* Conteneur principal en flex */
.container {
  display: flex;
  height: 100vh; /* hauteur de la fenêtre */
}

/* Panneau de gauche */
.left-panel {
  flex: 0 0 38vw;    /* 30% de la largeur écran */
  min-width: 350px;
  max-width: 600px;

  background-color: #000000;
  color: #FFD500;
  padding: 1vw;
  display: flex;
  flex-direction: column;
  
}

/*.left-panel {  
width: 500px;
  min-width: 500px;
  max-width: 500px;
  background-color: #000000;*/ /* noir */
  /*color: #FFD500; */ /* jaune */
  /* padding: 2vw;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
*/

.header-card {
  background-color: #FFD500; /* jaune */
  color: #000000; /* noir */
  padding-top: 0.5vw;        /* ↓ espace au-dessus du logo */
  padding-bottom: 1vw;
  padding-left: 3vw;
  padding-right: 3vw;
  border-radius: 2vw;
  text-align: center;
  margin-bottom: 1.2vh;

}

.logo {
  width: 10vw;
  max-width: 100px;
  margin-bottom: 1vh;
}

.section-title {
  font-size: 1.5vw;
  text-align: center;
  margin-bottom: 0.2vh;
  margin-top: 0vh;
}

.buttons {
  display: flex;
  flex-direction: column;
  gap: 1.5vh;
}

.buttons .btn {
  background-color: #FFD500; /* jaune */
  color: #000000; /* noir */
  padding: 1.5vh 1vw;
  width: 100%;
  font-size: 1.5vw;
  font-weight: bold;
  border-radius: 1vw;
  cursor: pointer;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
  transition: background-color 0.3s, color 0.3s, border 0.3s;

  /* IMPORTANT POUR LES <a> */
  text-decoration: none;
  text-align: center;
  display: block;
}

.buttons .btn:hover {
  background-color: #000000;
  color: #FFD500;
  border: 2px solid #FFD500;
}


/* Panneau de droite */
.right-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2vh; /* Espacement entre les images */
  padding: 0.1vw;
  overflow: hidden; /* Empêche les éléments de déborder du conteneur */
  height: 100vh; /* Assurez-vous que le panneau occupe toute la hauteur de l'écran */
}

/* Conteneur des photos */
.photo-container {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly; /* Répartit les images uniformément dans le conteneur */
  align-items: center;
  width: 100%; /* Prend toute la largeur du panneau */
  height: 100%; /* Prend toute la hauteur du panneau */
  gap: 0.5vh; /* Espacement entre les images */
}

/* Style des images */
.photo {
  width: 100%; /* L'image prendra toute la largeur disponible de son conteneur */
  height: auto; /* La hauteur sera automatiquement ajustée pour conserver le ratio et la valeur ici était auto */
  max-width: 100%; /* Limite la largeur maximale à 100% du conteneur */
  max-height: 33vh; /* Limite la hauteur maximale à 33% de la hauteur de l'écran */
  border-radius: 10px; /* Bordure arrondie optionnelle */
  box-sizing: border-box; /* Prend en compte les bordures et marges dans les dimensions */
}

/* Si vous voulez ajuster le comportement sur des écrans plus petits, vous pouvez ajouter un @media query */
@media (max-width: 768px) {
  .photo {
    max-height: 25vh; /* Sur les écrans plus petits, réduire la hauteur maximale des images */
  }
}


.match-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2vw;
  margin-top: 2vh;
}

.match-logos img {
  width: 6vw;
  max-width: 80px;
}

.match-logos span {
  font-size: 2vw;
  font-weight: bold;
  color: #000000;
}

/* MATCH CARD */
.match-card {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-top: 4vh;
  gap: 0.5vw;
}

/* TEAMS */
.team {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team img {
  width: 5vw;
  max-width: 70px;
}

.team-name {
  margin-top: 1vh;
  font-size: 1.1vw;
  font-weight: bold;
  color: #000;
}

/* CENTER INFO */
.match-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.match-date {
  font-size: 1vw;
  font-weight: 600;
}

.vs {
  font-size: 1.5vw;
  font-weight: 900;
  margin: 0.5vh 0;
}

.match-stadium {
  font-size: 1vw;
  font-weight: 600;
  /*opacity: 0.85;*/
/*white-space: nowrap;*/
}



/* MOBILE & PETITES TABLETTES - code ajouté lundi 22122025 */
@media (max-width: 768px) {

  .container {
    flex-direction: column;
    height: auto;
  }

  .left-panel {
    flex: none;
    width: 100%;
    max-width: 100%;
    min-width: unset;
    padding: 4vw;
  }

  .right-panel {
    width: 100%;
    height: auto;
    padding: 2vw;
  }

  .photo-container {
    flex-direction: row;
    height: auto;
  }

  .photo {
    max-height: 25vh;
    width: 32%;
  }

  .section-title {
    font-size: clamp(18px, 4vw, 24px);
  }

  .buttons button,
  .buttons .btn {
    font-size: clamp(15px, 5vw, 19px); /* etait 14px, 4vw, 18px) */
    padding: 12px;
  }

  .team-name,
  .match-date,
  .match-stadium {
    font-size: clamp(12px, 3vw, 16px);
  }
}


/* =========================
   VERSION MOBILE & TABLETTE
   ========================= */
@media (max-width: 1024px) {

  /* Le container passe en colonne */
  .container {
    flex-direction: column;
    height: auto;
  }

  /* Le panneau gauche prend tout l'écran */
  .left-panel {
    flex: 1;
    width: 100vw;
    min-width: 100%;
    max-width: 100%;
    height: 100vh;
    padding: 4vw;
  }

  /* On cache complètement la photo */
  .right-panel {
    display: none;
  }

  /* Logo */
  .logo {
    width: 25vw;
    max-width: 120px;
  }

  /* Titre */
  .section-title {
    font-size: 5vw;
  }

  /* Match card */
  .match-card {
    margin-top: 3vh;
    gap: 3vw;
  }

  .team img {
    width: 18vw;
    max-width: 90px;
  }

  .team-name {
    font-size: 4vw;
  }

  .match-date,
  .match-stadium {
    font-size: 3.5vw;
  }

  .vs {
    font-size: 5vw;
  }

  /* Boutons */
  .buttons button,
  .buttons .btn {
    font-size: 5vw; /* etait 4w */
    padding: 2vh 2vw;
    border-radius: 3vw;
  }
}





