/* --- Calendrier Tableau --- */

.calendar-table-container {

  margin: 32px auto;

  width: 92%;

  max-width: 900px;

  text-align: center;

  background: linear-gradient(135deg, #18191a 0%, #232526 100%);

  padding: 32px 18px 28px 18px;

  border-radius: 22px;

  box-shadow: 0 8px 32px 0 rgba(31,38,135,0.13), 0 2px 8px 0 rgba(0,0,0,0.08);

  border: 1.5px solid #23252644;

  flex: 1;

  transition: box-shadow 0.22s;

}

.calendar-table-container h2 {

  color: #fff;

  margin-bottom: 28px;

  font-size: 50px;

  font-weight: bold;

  letter-spacing: 1px;

  text-shadow: 0 2px 8px #000, 0 1px 0 #fff2;

}

.calendar-table-container table {

  width: 100%;

  border-collapse: separate;

  border-spacing: 0;

  color: #fff;

  font-size: 1.13rem;

  background: transparent;

  border-radius: 16px;

  overflow: hidden;

  box-shadow: 0 2px 8px #0002;

}

.calendar-table-container th,

.calendar-table-container td {

  padding: 18px 12px;

  text-align: center;

  border-bottom: 1.5px solid #23252644;

  background: rgba(255,255,255,0.01);

  transition: background 0.18s, color 0.18s;

}

.calendar-table-container th {

  background: linear-gradient(90deg, #232526 0%, #414345 100%);

  font-size: 1.18rem;

  color: #fff;

  border-top: none;

  border-bottom: 2.5px solid #ff2d2d;

  letter-spacing: 0.5px;

}

.calendar-table-container tr:nth-child(even) td {

  background: rgba(255,255,255,0.03);

}

.calendar-table-container tr {

  transition: box-shadow 0.18s, transform 0.18s;

}

.calendar-table-container tr:hover td {

  background: #ff2d2d !important;

  color: #fff;

  box-shadow: 0 4px 18px #ff2d2d33;

  cursor: pointer;

  transform: scale(1.01);

}

.calendar-table-container td {

  border-left: none;

  border-right: none;

}

@media (max-width: 700px) {

  .calendar-table-container {

    padding: 0 2vw 0 2vw;

    width: auto;

    min-width: 0;

    box-sizing: border-box;

    border-radius: 0 0 32px 32px;

    max-width: 98vw;

    padding-bottom: 0;

    min-height: unset;

    height: auto;

  }

  .calendar-table-container table {

    width: 100%;

    margin: 0 auto;

  }

  .calendar-table-container th, .calendar-table-container td {

    padding: 10px 4px;

  }
  .calendar-table-container h2 {
    font-size: 35px;
  }
}



/* --- Fenêtre modale --- */

.modal {

  display: none; /* caché par défaut */

  position: fixed;

  z-index: 1000;

  left: 0;

  top: 0;

  width: 100%;

  height: 100%;

  background-color: rgba(0, 0, 0, 0.7);

  overflow: auto;

  padding-top: 60px;

  text-align: center;

}

.modal-content {

  background: linear-gradient(135deg, #18191a 0%, #232526 100%);

  padding: 28px 18px 22px 18px;

  border-radius: 18px;

  width: 92%;

  max-width: 520px;

  margin: 0 auto;

  color: #fff;

  position: relative;

  box-shadow: 0 8px 32px 0 rgba(31,38,135,0.13), 0 2px 8px 0 rgba(0,0,0,0.08);

  border: 1.5px solid #23252644;

  animation: modalPop 0.35s cubic-bezier(.68,-0.55,.27,1.55);

}

@keyframes modalPop {

  0% { transform: scale(0.85) translateY(40px); opacity: 0; }

  100% { transform: scale(1) translateY(0); opacity: 1; }

}



.modal-header {

  font-size: 24px;

  font-weight: bold;

  color: #ffffff;

}



.modal-body {

  margin-top: 20px;

  font-size: 18px;

}



.modal-body img {

  max-width: 100%;

  border-radius: 10px;

  box-shadow: 0 5px 15px rgba(234, 232, 232, 0.3);

  margin-top: 20px;

}



.close {

  color: #ffffff;

  font-size: 30px;

  font-weight: bold;

  background: none;

  border: none;

  cursor: pointer;

  position: absolute;

  top: 10px;

  right: 25px;

  transition: color 0.3s;

}

.close:hover {

  color: #4f4f4f;

}

.hamburger {

  display: none;

}



/* Responsive pour mobile */

@media (max-width: 768px) {

  header {

    position: relative;

    z-index: 1000;

  }



  /* Afficher le hamburger */

  .hamburger {

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    width: 30px;

    height: 25px;

    position: absolute;

    top: 20px;

    right: 20px;

    cursor: pointer;

    z-index: 1001;

  }



  .hamburger span {

    height: 4px;

    width: 100%;

    background-color: white;

    border-radius: 2px;

  }



  /* Menu caché par défaut */

  nav ul {

    display: none;

    position: fixed;

    top: 0;

    left: 0;

    height: 100vh;

    width: 100vw;

    background-color: rgba(0, 0, 0, 0.95);

    flex-direction: column;

    justify-content: center;

    align-items: center;

    padding: 0;

    margin: 0;

    z-index: 999;

  }



  /* Menu affiché quand .show est actif */

  nav ul.show {

    display: flex;

  }



  nav ul li {

    margin: 20px 0;

  }



  nav ul li a {

    color: white;

    font-size: 24px;

    font-weight: bold;

    text-decoration: none;

  }

}

