/* Root Variables */
:root {
  --background: oklch(0.99 0 0);
  --foreground: oklch(0.15 0 0);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.15 0 0);
  --primary: oklch(0.55 0.18 250);
  --primary-foreground: oklch(1 0 0);
  --secondary: oklch(0.96 0 0);
  --secondary-foreground: oklch(0.15 0 0);
  --muted: oklch(0.96 0.005 250);
  --muted-foreground: oklch(0.5 0 0);
  --border: oklch(0.92 0.005 250);
  --accent-blue: oklch(0.5 0.2 250);
  --accent-purple: oklch(0.55 0.22 280);
  --accent-pink: oklch(0.6 0.22 320);
  --accent-teal: oklch(0.55 0.18 200);
  --radius: 0.75rem;
}


/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", sans-serif;
}

body {
  color: var(--foreground);
  line-height: 1.6;
  background: linear-gradient(
    135deg,
    oklch(0.98 0.03 320) 0%,
    oklch(0.96 0.04 280) 25%,
    oklch(0.95 0.05 250) 50%,
    oklch(0.96 0.04 220) 75%,
    oklch(0.98 0.03 200) 100%
  );
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  line-height: 1.6;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}


/* Navigation */
.navigation {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, oklch(0.55 0.22 320), oklch(0.6 0.25 280), oklch(0.55 0.22 250));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--foreground);
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-pink), var(--accent-purple), var(--accent-blue));
  transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Main Content */
main {
  flex: 1;
  padding: 3rem 0;
}

/* Card Styles */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s;
}

.card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.card-header {
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card-description {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.card-content {
  color: var(--muted-foreground);
}

/* Card veille Styles */
.card-veille {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
 margin-bottom: 1.5rem; 
  transition: all 0.3s;
}

.card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.card-header {
  margin-bottom: 1rem;
}

.card-title-veille {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-align: center;
}

.card-description-veille {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  text-align: center;
}

.card-content-veille {
  color: var(--muted-foreground);
  text-align: center;
}

/* Badge */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-foreground);
}

.badge-secondary {
  background: var(--secondary);
  color: var(--secondary-foreground);
}

.badge-destructive {
  background: oklch(0.577 0.245 27.325);
  color: white;
}

/* Badge veille*/
.badge-veille {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-foreground);
  text-align: center;
}

.badge-secondary-veille {
  background: var(--secondary);
  color: var(--secondary-foreground);
  text-align: center;
}

.badge-destructive-veille {
  background: oklch(0.577 0.245 27.325);
  color: white;
}

/* Button */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: calc(var(--radius) - 2px);
  background: var(--primary);
  color: var(--primary-foreground);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
}

.button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.button-outline {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}

.button-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}

/* Grid */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Flex Utilities */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.flex-wrap {
  flex-wrap: wrap;
}

/* Spacing */
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 0.75rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.mb-8 {
  margin-bottom: 2rem;
}
.mb-12 {
  margin-bottom: 3rem;
}
.mb-16 {
  margin-bottom: 4rem;
}
.mt-1 {
  margin-top: 0.25rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-4 {
  margin-top: 1rem;
}
.pt-4 {
  padding-top: 1rem;
}
.pt-6 {
  padding-top: 1.5rem;
}

/* Text Utilities */
.text-sm {
  font-size: 0.875rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.text-3xl {
  font-size: 1.875rem;
}

.text-4xl {
  font-size: 2.25rem;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.text-muted-foreground {
  color: var(--muted-foreground);
}

/* Gradient Text */
.text-gradient {
  background: linear-gradient(135deg, oklch(0.55 0.22 320), oklch(0.6 0.25 280), oklch(0.55 0.22 250));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-blue {
  background: linear-gradient(90deg, oklch(0.5 0.2 250), oklch(0.6 0.25 240), oklch(0.5 0.2 230));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-purple {
  background: linear-gradient(90deg, oklch(0.55 0.22 300), oklch(0.6 0.25 280), oklch(0.55 0.22 260));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-pink {
  background: linear-gradient(90deg, oklch(0.6 0.22 340), oklch(0.65 0.25 320), oklch(0.6 0.22 300));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-accent-blue {
  color: var(--accent-blue);
}

.text-accent-purple {
  color: var(--accent-purple);
}

.text-accent-pink {
  color: var(--accent-pink);
}

.text-accent-teal {
  color: var(--accent-teal);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes bounceSubtle {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-in;
}

.animate-slide-up {
  animation: slideUp 0.6s ease-out;
}

.animate-bounce-subtle {
  animation: bounceSubtle 2s ease-in-out infinite;
}

/* Icon */
.icon {
  width: 1.5rem;
  height: 1.5rem;
}

.icon-lg {
  width: 2rem;
  height: 2rem;
}

/* List */
.list-disc {
  list-style-type: disc;
  padding-left: 1.5rem;
}

.list-inside {
  list-style-position: inside;
}

.space-y-1 > * + * {
  margin-top: 0.25rem;
}

.space-y-2 > * + * {
  margin-top: 0.5rem;
}

.space-y-3 > * + * {
  margin-top: 0.75rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

/* Footer */
footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  margin-top: auto;
  padding: 2rem 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

footer h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

footer ul {
  list-style: none;
}

footer a {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.3s;
}

footer a:hover {
  color: var(--foreground);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    gap: 1rem;
    font-size: 0.875rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .grid-cols-2,
  .grid-cols-3 {
    grid-template-columns: 1fr;
  }

  main {
    padding: 2rem 0;
  }
}

@media (min-width: 768px) {
  .md-grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .md-grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .lg-grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Max Width */
.max-w-3xl {
  max-width: 48rem;
}

/* External Link Icon */
.external-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.875rem;
}

.external-link:hover {
  text-decoration: underline;
}

/* 🌞 Style clair */
[data-theme="light"] {
	--bg-color: #ececec;
	--text-color: #212121;
}

/* 🌚 Style sombre */
[data-theme="dark"] {
	--bg-color: #212121;
	--text-color: #ececec;
}

html {
	background-color: var(--bg-color);
	color: var(--text-color);
}

