/* ===== ONGLETS MODERNES ===== */

.psyclick-tabs-container {
  width: 100%;
  margin: 30px 0;
}

/* Barre des onglets */
.psyclick-tabs-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  border-bottom: 2px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 8px 8px 0 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  scrollbar-width: thin;
  scrollbar-color: #d1d5db #f3f4f6;
}

/* Scrollbar pour Chrome/Safari */
.psyclick-tabs-nav::-webkit-scrollbar {
  height: 6px;
}

.psyclick-tabs-nav::-webkit-scrollbar-track {
  background: #f3f4f6;
}

.psyclick-tabs-nav::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.psyclick-tabs-nav::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Bouton d'onglet */
.psyclick-tab-button {
  flex: 0 0 auto;
  min-width: auto;
  padding: 16px 20px;
  background: #f9fafb;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  text-align: center;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}

.psyclick-tab-button:hover {
  background: #f3f4f6;
  color: #374151;
}

/* Onglet actif */
.psyclick-tab-button.active {
  background: #ffffff;
  color: #314e82;
  border-bottom-color: #314e82;
  box-shadow: inset 0 -3px 0 0 #314e82;
}

/* Animation du fond actif */
.psyclick-tab-button.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: #314e82;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: scaleX(0);
    transform-origin: left;
  }
  to {
    transform: scaleX(1);
  }
}

/* Contenu des onglets */
.psyclick-tabs-content {
  background: #ffffff;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Panneau de contenu */
.psyclick-tab-panel {
  display: none;
  padding: 30px;
  animation: fadeIn 0.3s ease-out;
}

.psyclick-tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media screen and (max-width: 768px) {
  .psyclick-tab-button {
    padding: 12px 16px;
    font-size: 13px;
  }

  .psyclick-tabs-content {
    border-radius: 0;
  }

  .psyclick-tab-panel {
    padding: 20px;
  }
}

@media screen and (max-width: 480px) {
  .psyclick-tab-button {
    padding: 10px 12px;
    font-size: 12px;
  }

  .psyclick-tabs-content {
    border-radius: 0;
  }

  .psyclick-tab-panel {
    padding: 15px;
  }
}

/* Intégration avec le reste du site */
.psyclick-tabs-container .fiche-planning-container {
  margin-top: 20px;
}

.psyclick-tabs-container .fiche-planning-sessions {
  margin-top: 15px;
}
