:root {
  --primary: #00C853;
}

/* Dark mode configuration */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
  }
}

.dark {
  color-scheme: dark;
}

/* Smooth transitions for theme switching */
* {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* Force dark mode styles when .dark class is present */
html.dark body {
  background-color: #0f172a !important;
  color: #f1f5f9 !important;
}

html.dark .bg-white {
  background-color: #1e293b !important;
}

html.dark .bg-gray-50 {
  background-color: #0f172a !important;
}

html.dark .text-gray-900 {
  color: #f1f5f9 !important;
}

html.dark .text-gray-600 {
  color: #94a3b8 !important;
}

html.dark .text-gray-700 {
  color: #cbd5e1 !important;
}

html.dark .text-gray-500 {
  color: #64748b !important;
}

html.dark .text-gray-300 {
  color: #94a3b8 !important;
}

html.dark .border-gray-200 {
  border-color: #334155 !important;
}

html.dark .from-primary-50 {
  --tw-gradient-from: #0f172a !important;
}

html.dark .to-white {
  --tw-gradient-to: #1e293b !important;
}

html.dark .bg-gray-100 {
  background-color: #334155 !important;
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.min-w-full {
    flex: 0 0 100%;
    width: 100%;
}

body {
  font-family: 'Inter', sans-serif;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23374151' fill-opacity='0.8' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 0.75rem;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* Custom Checkbox */
.custom-checkbox {
  padding-left: 30px;
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  color: #ffffff;
}

/* Cache la checkbox réelle */
.custom-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 18px;
  width: 18px;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  z-index: 1;
}

/* La case personnalisée */
.custom-checkbox .checkmark {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 18px;
  width: 18px;
  background-color: none;
  border: 2px solid var(--primary);
  border-radius: 4px;
  box-sizing: border-box;
}

/* Le "tick" qui apparaît quand la checkbox est cochée */
.custom-checkbox .checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.underline {
  text-decoration: underline;
}

/* Quand la checkbox est cochée, change la couleur de fond */
.custom-checkbox input[type="checkbox"]:checked~.checkmark {
  background-color: var(--primary);
}

/* Affiche le "tick" */
.custom-checkbox input[type="checkbox"]:checked~.checkmark:after {
  display: block;
}


@keyframes scroll {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}

.animate-scroll {
  animation: scroll 24s linear infinite;
}

@media (min-width: 768px) {
  .animate-scroll {
    animation: scroll 40s linear infinite;
  }
}


.panier-scroll {
    scrollbar-width: thin;
    scrollbar-color: #8d8f92 white;
}

.panier-scroll::-webkit-scrollbar {
    width: 5px;
}

.panier-scroll::-webkit-scrollbar-thumb {
    background-color: white;
    /* gray-600 */
    border-radius: 9999px;
}

button {
    cursor: pointer;
}