@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --primary: #2EC4B6;
  --primary-dark: #28a99c;
  --primary-light: #4fd1c5;
  --secondary: #FF9F1C;
  --secondary-dark: #e68a0c;
  --secondary-light: #ffb84d;
  --background: #ffffff;
  --background-dark: #1a202c;
  --text: #1a202c;
  --text-dark: #f7fafc;
  --text-light: #4a5568;
  --text-light-dark: #a0aec0;
  --border: #e2e8f0;
  --border-dark: #4a5568;
}

/* Styles pour le thème sombre */
.dark {
  --background: #1a202c;
  --text: #f7fafc;
  --text-light: #a0aec0;
  --border: #4a5568;
}

body {
  background-color: var(--background);
  color: var(--text);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Styles pour les liens */
a {
  color: var(--primary);
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
}

.dark a {
  color: var(--primary-light);
}

.dark a:hover {
  color: var(--primary);
}

/* Styles pour les boutons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-secondary {
  background-color: var(--secondary);
  color: white;
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
}

/* Styles pour les cartes */
.card {
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.dark .card {
  background-color: #2d3748;
  border-color: var(--border-dark);
}

/* Styles pour les titres */
h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  font-weight: 700;
}

.dark h1, .dark h2, .dark h3, .dark h4, .dark h5, .dark h6 {
  color: var(--text-dark);
}

/* Styles pour les paragraphes */
p {
  color: var(--text-light);
}

.dark p {
  color: var(--text-light-dark);
}

/* Styles pour les transitions */
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

/* Styles pour l'accessibilité */
:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.dark :focus {
  outline-color: var(--primary-light);
}

/* Styles pour les lecteurs d'écran */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Styles pour les animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-fadeIn {
  animation: fadeIn 0.5s ease-in-out;
}

/* Styles pour le responsive */
@media (max-width: 640px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
} 