/* Custom styles complémentaires pour portfolio DevOps */

/* ========================================
   Variables CSS
   ======================================== */
:root {
  --color-primary: #3b82f6;
  --color-primary-dark: #1e40af;
  --color-primary-light: #60a5fa;
  --color-bg: #111827;
  --color-surface: #1f2937;
  --color-surface-alt: #374151;
  --transition-base: 0.2s ease-in-out;
  --transition-slow: 0.3s ease-in-out;
}

/* ========================================
   Base Styles
   ======================================== */
html {
  scroll-behavior: smooth;
}

body {
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Focus visible pour accessibilité */
*:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ========================================
   Transitions & Animations
   ======================================== */
a, button {
  transition: all var(--transition-base);
}

/* Fade in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Pulse animation for hero image glow */
@keyframes pulse-glow {
  0%, 100% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.3;
  }
}

/* ========================================
   Project Cards
   ======================================== */
.project-card {
  transition: transform var(--transition-base), 
              box-shadow var(--transition-base),
              border-color var(--transition-base);
  will-change: transform;
}

.project-card:hover {
  border-color: rgba(59, 130, 246, 0.5);
}

/* ========================================
   Gradient Text
   ======================================== */
.gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   Images
   ======================================== */
img {
  max-width: 100%;
  height: auto;
}

/* Hero image with glow effect */
.hero-glow {
  filter: drop-shadow(0 0 2rem rgba(59, 130, 246, 0.3));
}

/* ========================================
   Loading & Error States
   ======================================== */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.error-message {
  background-color: #dc2626;
  color: white;
  padding: 1rem;
  border-radius: 0.5rem;
  text-align: center;
}

/* Tag badges */
.tag-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* ========================================
   Language Switcher
   ======================================== */
[data-lang-btn] {
  color: #9ca3af;
  background-color: transparent;
}

[data-lang-btn]:hover {
  color: #ffffff;
  background-color: rgba(59, 130, 246, 0.1);
}

[data-lang-btn].active {
  color: #ffffff;
  background-color: #3b82f6;
  font-weight: 600;
}

/* Note: Si vous passez à un build Tailwind + PostCSS :
   1. npm install -D tailwindcss postcss autoprefixer
   2. npx tailwindcss init
   3. Configurer tailwind.config.js avec vos chemins
   4. Créer postcss.config.js
   5. Builder via : npx tailwindcss -i ./style.css -o ./dist/style.css --minify
   6. Remplacer le CDN par <link rel="stylesheet" href="/dist/style.css">
*/
