/* === CSS GLOBAL POUR LA PAGE CALENDAR RESPONSIVE === */

/* ------------------------ */
/*          MOBILE          */
/* ------------------------ */

/*--------------------------*/

/* ------------------------ */
/*         BANNIERE         */
/* ------------------------ */
@media screen and (max-width: 768px) {

  /* BANNIÈRE */
  .hero {
    background-color: white;
    height: 15dvh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
  }

}

/* ------------------------ */
/*        CALENDAR          */
/* ------------------------ */
@media screen and (max-width: 768px) {

  #calendrier {
    display: flex;
    width: 90%;
    margin: 0 auto;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 4rem;
    padding-bottom: 1.5rem;
  }

  body, html {
    overflow-x: hidden;
  }

  .match {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
  }

  .line {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
  }

  .teams-names {
    display: none;
  } 

  .team-logo {
    height: 90px;
    width: auto;
  }

  .score {
    font-size: 1.7rem;
    font-weight: bold;
    color: #ff0000;
  }

  .separator {
    font-size: 1.3rem;
    font-weight: bold;
    color: #000;
  }

  .match-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1rem;
  }

  #date {
    color: #ff0000;
    font-weight: 600;
  }

  #heure {
    color: #000;
    font-weight: 500;
  }

  #lieu {
    color: #ff0000;
    font-weight: 500;
    text-transform: uppercase;
    font-style: italic;
  }

  /* CALENDRIER 3x3 */

  #calendrier-3x3 .numero {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ff0000;
    text-align: center;
    width: 50px;
  }

  #calendrier-3x3 .tournoi {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    width: 150px;
  }

  #calendrier-3x3 .position {
    font-size: 1.8rem;
    font-style: italic;
    color: #000000;
    text-align: center;
    width: 40px;
  }
}

/* ------------------------ */
/*    BOUTONS CALENDRIER    */
/* ------------------------ */
@media screen and (max-width: 768px) {
  
  #calendar-switch {
    text-align: center;
  }

  .calendar-btn {
    background-color: #ddd;
    border: none;
    padding: 10px 20px;
    margin: 0 5px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.3s;
  }

  .calendar-btn.active {
    background-color: #d32f2f;
    color: white;
  }

}



/* ------------------------ */
/*         DESKTOP          */
/* ------------------------ */

/*--------------------------*/

/* ------------------------ */
/*         BANNIERE         */
/* ------------------------ */
@media screen and (min-width: 769px) {

  /* BANNIÈRE */
  .hero {
      background-image: url("../images/fond-noir.png");
      height: 18vh;
      position: relative;
  }
}


/* ------------------------ */
/*        CALENDAR          */
/* ------------------------ */
@media screen and (min-width: 1025px) {
  #calendrier {
    display: flex;
    width: 90%;
    margin: 0 auto;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
  }

  .match {
    background: white;
    border-radius: 10px;
    padding: 1rem 15rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    cursor: default;
    margin-bottom: 1.5rem;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .match:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    z-index: 2;
  }

  .line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0rem;
  }

  .teams-names {
    display: flex;
    flex-direction: column;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1.5rem;
    text-align: right;

    width: 170px;            /* ✅ largeur fixe pour aligner */
    flex-shrink: 0;

    margin-right: 9rem;
  }

  .team-logo {
    height: 140px;
    width: auto;
  }

  /* ECART ENTRE CHAQUE ELEMENTS */
  .team-logo:first-of-type {
    margin-right: 25px;
  }
  .team-logo:last-of-type {
    margin-left: 25px;
    margin-right: 9rem;
  }

  .score {
    font-size: 3rem;
    font-weight: lighter;
    color: #ff0000;
  }

  .separator {
    font-size: 1.3rem;
    font-weight: bold;
    color: #000;
    margin: 0 15px;
  }

  .match-date {
    display: flex;
    flex-direction: column;
    text-align: right;
  }

  #date {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ff0000;
  }

  #heure {
    font-size: 1rem;
    font-weight: 500;
    color: #000000;
  }

  #lieu {
    color: #ff0000;
    font-weight: 500;
    text-transform: uppercase;
    font-style: italic;
  }

  /* CALENDRIER 3x3 */

  #calendrier-3x3 .numero {
    font-size: 3rem;
    font-weight: bold;
    color: #ff0000;
    text-align: right;
    width: 50px;
  }

  #calendrier-3x3 .tournoi {
    font-size: 2rem;
    font-weight: 600;
    flex: 1;
    text-align: center;
    width: 150px;
  }

  #calendrier-3x3 .position {
    font-size: 1.8rem;
    font-style: italic;
    color: #000000;
    width: 250px;
    text-align: left;
  }
}

/* ------------------------ */
/*    BOUTONS CALENDRIER    */
/* ------------------------ */
@media screen and (min-width: 769px) {

  #calendar-switch {
    text-align: center;
  }

  .calendar-btn {
    background-color: #ddd;
    border: none;
    padding: 10px 20px;
    margin: 0 5px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.3s;
  }

  .calendar-btn.active {
    background-color: #d32f2f;
    color: white;
  }

  .calendar-container {
    width: 90%;
    margin: 0 auto;
  }

}



/* ------------------------ */
/*         TABELTTE         */
/* ------------------------ */

/* ------------------------ */
/*        CALENDAR          */
/* ------------------------ */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  #calendrier {
    display: flex;
    width: 90%;
    margin: 0 auto;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
  }

  .match {
    background: white;
    border-radius: 10px;
    padding: 1rem 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    cursor: default;
    margin-bottom: 1.5rem;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .match:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    z-index: 2;
  }

  #calendrier-5x5 .line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0rem;
  }

  #calendrier-3x3 .line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .teams-names {
    display: flex;
    flex-direction: column;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1.5rem;
    text-align: right;

    width: 170px;            /* ✅ largeur fixe pour aligner */
    flex-shrink: 0;

    margin-right: 1rem;
  }

  .team-logo {
    height: 125px;
    width: auto;
  }

  /* ECART ENTRE CHAQUE ELEMENTS */
  .team-logo:first-of-type {
    margin-right: 25px;
  }
  .team-logo:last-of-type {
    margin-left: 25px;
    margin-right: 1.5rem;
  }

  .score {
    font-size: 3rem;
    font-weight: lighter;
    color: #ff0000;
  }

  .separator {
    font-size: 1.3rem;
    font-weight: bold;
    color: #000;
    margin: 0 15px;
  }

  .match-date {
    display: flex;
    flex-direction: column;
    text-align: right;
  }

  #date {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ff0000;
  }

  #heure {
    font-size: 1rem;
    font-weight: 500;
    color: #000000;
  }

  #lieu {
    color: #ff0000;
    font-weight: 500;
    text-transform: uppercase;
    font-style: italic;
  }

  /* CALENDRIER 3x3 */

  #calendrier-3x3 .numero {
    font-size: 3rem;
    font-weight: bold;
    color: #ff0000;
    text-align: right;
    width: 50px;
    margin-right: 5rem;
  }

  #calendrier-3x3 .tournoi {
    font-size: 2rem;
    font-weight: 600;
    flex: 1;
    text-align: center;
    width: 10px;
  }

  #calendrier-3x3 .position {
    font-size: 1.8rem;
    font-style: italic;
    color: #000000;
    width: 200px;
    text-align: center;
  }
}