@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap");

/* =========================================
   1. VARIABLES & BASE
   ========================================= */
:root {
  --fixt-dark: #002050;
  --fixt-blue: #5475ff;
  --fixt-light: #f3f4f6;
  --fixt-glass: rgba(255, 255, 255, 0.03);
  --fixt-border: rgba(255, 255, 255, 0.1);
}

body {
  font-family: "Inter", sans-serif;
  background-color: #ffffff;
  color: var(--fixt-dark);
}

/* =========================================
   2. COMPOSANTS GLOBAUX
   ========================================= */

/* Bouton Principal (Bleu) */
.btn-primary {
  background-color: var(--fixt-blue);
  color: white;
  transition: all 0.3s ease;
}
.btn-primary:hover {
  background-color: #3b5bdb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(84, 117, 255, 0.4);
}

/* Animations */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Utilitaires de masquage */
.hidden-section {
  display: none;
}

.hidden-view {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  z-index: -1 !important;
}

/* =========================================
   3. BOOKING PAGE
   ========================================= */

/* Pattern de fond léger */
.tech-pattern-light {
  background-image: radial-gradient(#5475ff 0.5px, transparent 0.5px);
  background-size: 10px 10px;
  opacity: 0.3;
}

/* Carte Créneau (Slot) */
.slot-card {
  transition: all 0.2s;
  cursor: pointer;
}
.slot-card.selected {
  border-color: var(--fixt-blue);
  background-color: #eff6ff;
  color: var(--fixt-blue);
  font-weight: bold;
}
.slot-card.booked {
  background-color: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
  text-decoration: line-through;
  border-color: transparent;
}

/* Spécifique à la page #booking-page */
#booking-page .slot-card {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
#booking-page .slot-card:hover {
  background-color: rgba(255, 255, 255, 0.2);
}
#booking-page .slot-card.selected {
  background-color: #ffffff;
  color: #002050;
  border-color: white;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}
#booking-page .slot-card.booked {
  background-color: rgba(0, 0, 0, 0.3);
  color: rgba(255, 255, 255, 0.3);
  border-color: transparent;
}

/* Time Slot (Heures) */
.time-slot {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
}
.time-slot:hover {
  background: rgba(255, 255, 255, 0.2);
}
.time-slot.selected {
  background: white;
  color: #002050;
  border-color: white;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* Override des cartes services générées par JS */
#service-selector-container .service-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
#service-selector-container .service-card:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  transform: translateY(-2px);
}
#service-selector-container .service-card.ring-2 {
  background: white !important;
  border-color: white !important;
}
#service-selector-container .service-card.ring-2 .text-white {
  color: #002050 !important;
}
#service-selector-container .service-card.ring-2 .text-blue-300 {
  color: #5475ff !important;
}

/* =========================================
   4. ADMIN THEME (Dark Glass)
   ========================================= */

/* Fond quadrillé */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Panneaux en verre */
.glass-panel {
  background: var(--fixt-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--fixt-border);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.36);
}

/* Scrollbar personnalisée (Fine & Sombre) */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(84, 117, 255, 0.6);
}
