* {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
}

body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: "Arial", sans-serif;
  background-color: transparent;
  position: relative;
  z-index: 0;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.3;
  z-index: -1;
}

.titre-centre {
  text-align: center;
  margin: 40px 0;
  text-transform: uppercase;
  font-size: 1.8rem;
  font-weight: 700;
  color: #000;
  text-shadow: 0 2px 5px rgba(255, 255, 255, 0.8);
}

.titre-uppercase {
  margin-top: 60px;
  margin-left: 20px;
  font-family: "Arial", sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 1.8rem;
}

.container-section {
  max-width: 1200px;
  margin: 0 auto 50px auto;
  padding: 0 20px;
}

.cards-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 20px 0;
}

.service-card {
  width: 250px;
  height: 250px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background-color: #ffffff;
  border: 3px solid #ff4800;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  box-sizing: border-box;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.service-card:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.service-card img {
  width: 90%;
  max-height: 75%;
  object-fit: contain;
  margin-bottom: 5px;
}

.service-card p {
  font-size: 0.95rem;
  margin: 2px 0;
  font-weight: bold;
  color: #000;
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
}

.quantity-control button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background-color: #000;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-control span {
  min-width: 18px;
  font-size: 15px;
  font-weight: bold;
}

.coiffeur-card {
  cursor: pointer;
  transition: all 0.3s ease;
}

.coiffeur-card.active {
  border-color: #000;
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(255, 89, 0, 0.4);
}

.selected-card {
  border: 4px solid #27ae60 !important;
  background-color: #f0fff4;
}

.selection-indicator {
  background-color: #000;
  color: white;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  margin-top: 4px;
}

.action-container {
  text-align: center;
  margin-top: 30px;
}

.btn-preference {
  background-color: #000;
  color: #fff;
  padding: 14px 35px;
  border-radius: 30px;
  cursor: pointer;
  border: none;
  font-size: 17px;
  transition: 0.2s;
  font-family: "Arial", sans-serif;
  font-weight: 700;
}

.btn-reserver {
  background-color: #27ae60;
  color: white;
  padding: 18px 50px;
  border: none;
  border-radius: 30px;
  font-size: 1.2rem;
  cursor: pointer;
  font-family: "Arial", sans-serif;
  font-weight: 700;
}

.btn-reserver:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.calendar-wrapper {
  max-width: 850px;
  width: 95%;
  margin: 0 auto;
  background: #fff;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#calendar-js {
  background: white;
  /* Suppression du padding ici : empêche FullCalendar de casser ses calculs de dimension */
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.slot {
  padding: 10px;
  background-color: white;
  border: 1px solid #ddd;
  cursor: pointer;
  border-radius: 5px;
}

.slot:hover {
  background-color: #f0f0f0;
}

.footer-wood {
  position: relative;
  margin-top: 60px;
  padding-top: 0;
  color: #000;
  text-align: center;
  font-family: "Arial", sans-serif;
  overflow: hidden;
}

.footer-wave {
  position: relative;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: none;
}

.footer-wave img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  image-rendering: high-quality;
  -ms-interpolation-mode: nearest-neighbor;
  clip-path: polygon(
    0% 20%,
    5% 18%, 10% 16%, 15% 15%, 20% 16%, 25% 18%, 30% 20%, 35% 21%, 40% 20%, 45% 18%, 50% 16%,
    55% 18%, 60% 20%, 65% 21%, 70% 20%, 75% 18%, 80% 16%, 85% 15%, 90% 16%, 95% 18%, 100% 20%,
    100% 100%, 0% 100%
  );
}

.footer-content-wrapper {
  background-image: url('../images/footer.png');
  background-repeat: repeat-x;
  background-size: auto;
  background-position: top left;
  padding: 40px 20px 30px;
  position: relative;
  z-index: 1;
  min-height: auto;
}


.footer-content-wrapper .titre-uppercase {
  margin-top: 0;
  margin-left: 0;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
}

.footer-content h3 {
  font-size: 1.3rem;
  margin: 15px 0;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.footer-content p {
  margin: 8px 0;
  font-size: 0.95rem;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

@media (max-width: 950px) {
  .cards-grid {
    flex-direction: column;
    gap: 30px;
  }

  .service-card {
    width: 220px;
    height: 220px;
  }
}

@media (max-width: 480px) {
  .service-card {
    width: 180px;
    height: 180px;
  }

  .footer-wave {
    height: 150px;
  }

  .footer-wave img {
    min-height: 150px;
  }

  .footer-content-wrapper {
    padding: 30px 15px 25px;
  }

  .footer-content-wrapper .titre-uppercase {
    font-size: 1.3rem;
  }

  .footer-content h3 {
    font-size: 1rem;
  }

  .footer-content p {
    font-size: 0.85rem;
  }
}

/* CUSTOMISATION FULLCALENDAR */
.fc-button-primary {
  background-color: #000 !important;
  border-color: #000 !important;
  border-radius: 50px !important;
  text-transform: uppercase;
  font-weight: bold;
}

.fc-button-primary:hover,
.fc-button-primary:active {
  background-color: #333 !important;
  border-color: #333 !important;
}

.fc-toolbar-title {
  font-family: "Arial", sans-serif;
  text-transform: uppercase;
  font-size: 1.5rem !important;
  font-weight: 700;
  text-align: center;
  /* Suppression du width: 100% pour laisser la place aux boutons */
}

/* Suppression de la surcharge globale .fc-header-toolbar pour conserver la structure de FullCalendar */

.fc a {
  color: #000 !important;
  text-decoration: none;
}

.fc-day-today {
  background-color: #f7f7f7 !important;
}

@media (max-width: 768px) {
  .container-section {
    padding: 0 5px !important;
  }

  .calendar-wrapper {
    width: 100% !important;
    padding: 10px 5px !important;
    box-sizing: border-box;
  }

  .fc-toolbar-title {
    font-size: 1.1rem !important;
  }

  .fc-button {
    padding: 5px 10px !important;
    font-size: 0.8rem !important;
  }
}
