/* ==========================================
   CSS POUR PORTFOLIO
   ==========================================
   Sections:
   1. Variables CSS
   2. Reset & Base
   3. Navigation
   4. Hero Section
   5. Buttons & Interactions
   6. About Section
   7. Projects Section
   8. Timeline & Status
   9. Contact Section
   10. Footer
   11. Animations
   12. Progress Explanation
   13. Responsive Design
   ========================================== */

/* ==========================================
   1. VARIABLES CSS
   ========================================== */
:root {
  --primary-color: #2563eb;
  --secondary-color: #64748b;
  --accent-color: #3b82f6;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --info-color: #06b6d4;
  --text-color: #1e293b;
  --text-light: #64748b;
  --bg-color: #ffffff;
  --bg-light: #f8fafc;
  --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --border-color: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease;
}

/* ==========================================
   2. RESET & BASE STYLES
   ========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  font-weight: 400;
  letter-spacing: -0.025em;
}

/* ==========================================
   3. NAVIGATION
   ========================================== */
/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  z-index: 1000;
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--bg-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.05em;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
  padding: 8px 0;
}

.nav-menu a:hover {
  color: var(--primary-color);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: var(--bg-gradient);
  transition: var(--transition);
  border-radius: 1px;
}

.nav-menu a:hover::after {
  width: 100%;
}

/* ==========================================
   4. HERO SECTION
   ========================================== */
/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: 
    radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.9) 0%, transparent 50%),
    linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 100px 24px 40px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="%23667eea" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  animation: float 20s ease-in-out infinite;
  pointer-events: none;
}

.hero-content {
  max-width: 900px;
  animation: fadeInUp 1s ease-out;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.5rem;
  background: var(--bg-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================
   5. BUTTONS & INTERACTIONS
   ========================================== */
/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--bg-gradient);
  color: white;
  box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-color);
  border: 2px solid rgba(37, 99, 235, 0.2);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  border-color: var(--primary-color);
}

/* Sections */
.section {
  padding: 100px 24px;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 3rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-color);
  position: relative;
  letter-spacing: -0.05em;
  line-height: 1.2;
}

.section-title::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 4px;
  background: var(--bg-gradient);
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================
   6. ABOUT SECTION
   ========================================== */
/* About Section */
.about-content {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

.about-text {
  max-width: 700px;
  text-align: center;
}

.about-text p {
  font-size: 1.3rem;
  color: var(--text-light);
  margin-bottom: 3rem;
  line-height: 1.8;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.skill {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-color);
  padding: 12px 20px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  border: 1px solid rgba(37, 99, 235, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.skill:hover {
  background: var(--bg-gradient);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ==========================================
   7. PROJECTS SECTION
   ========================================== */
/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.project-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-badge.completed {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success-color);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-badge.planning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning-color);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-badge.development {
  background: rgba(6, 182, 212, 0.1);
  color: var(--info-color);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.timeline-badge {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-color);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.project-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.project-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  border: 1px solid rgba(226, 232, 240, 0.5);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.project-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.project-card p {
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.7;
  font-size: 1rem;
}

.project-tech {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.project-tech span {
  background: rgba(248, 250, 252, 0.8);
  color: var(--primary-color);
  padding: 6px 14px;
  border-radius: 18px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(37, 99, 235, 0.1);
}

.project-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.project-link {
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.project-link:not(.secondary) {
  background: var(--bg-gradient);
  color: white;
}

.project-link.secondary {
  background: rgba(248, 250, 252, 0.8);
  color: var(--primary-color);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.project-link:hover {
  transform: translateY(-2px);
}

/* Timeline Section for Upcoming Projects */
.upcoming-section {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.5) 0%, rgba(226, 232, 240, 0.3) 100%);
  padding: 60px 0;
}

.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--bg-gradient);
  border-radius: 1.5px;
}

.timeline-item {
  position: relative;
  padding-left: 100px;
  margin: 30px 0;
}

.timeline-item .timeline-content {
  width: 100%;
}

.timeline-marker {
  position: absolute;
  top: 20px;
  left: 38px;
  width: 20px;
  height: 20px;
  background: var(--bg-gradient);
  border-radius: 50%;
  transform: translate(-50%, 0);
  z-index: 2;
  box-shadow: 0 0 0 4px white, var(--shadow);
}

.timeline-content {
  width: 100%;
  display: block;
  visibility: visible;
}

/* Ensure upcoming projects are visible */
#upcoming-projects {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.project-card.upcoming {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.project-progress {
  margin-top: 1.5rem;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(226, 232, 240, 0.5);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  background: var(--bg-gradient);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.progress-text {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
}

/* Contact Section */
.contact-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.5);
}

.contact-content p {
  font-size: 1.3rem;
  color: var(--text-light);
  margin-bottom: 3rem;
  line-height: 1.7;
}

.contact-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-link {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 14px 28px;
  border-radius: 12px;
  transition: var(--transition);
  background: var(--bg-gradient);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.contact-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.contact-link:hover::before {
  left: 100%;
}

.contact-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

/* Footer */
.footer {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(51, 65, 85, 0.95) 100%);
  padding: 3rem 24px;
  text-align: center;
  border-top: 1px solid rgba(226, 232, 240, 0.2);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--bg-gradient);
}

.footer p {
  color: rgba(248, 250, 252, 0.8);
  font-size: 1rem;
  margin: 0;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(180deg);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Advanced hover effects */
.project-card.upcoming {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.project-card.upcoming::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  opacity: 0;
  transition: var(--transition);
  border-radius: 20px;
}

.project-card.upcoming:hover::after {
  opacity: 1;
}

/* Enhanced project card styles */
.project-card.featured {
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.15), rgba(80, 200, 120, 0.15));
  border: 1px solid rgba(74, 144, 226, 0.3);
  transform: scale(1.02);
  box-shadow: 0 20px 40px rgba(74, 144, 226, 0.2);
}

.project-card.featured::before {
  opacity: 1;
  height: 4px;
  background: linear-gradient(90deg, #4A90E2, #50C878, #FFD700);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.priority-badge {
  padding: 0.25rem 0.6rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-left: 0.5rem;
}

.priority-badge.high {
  background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
  color: white;
}

.priority-badge.medium {
  background: linear-gradient(135deg, #FFD93D, #FFE066);
  color: #333;
}

.priority-badge.low {
  background: linear-gradient(135deg, #6BCF7F, #8FD593);
  color: white;
}

/* Enhanced priority badges */
.priority-badge.high {
  background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
  color: white;
}

.priority-badge.medium {
  background: linear-gradient(135deg, #FFD93D, #FFE066);
  color: #333;
}

.priority-badge.low {
  background: linear-gradient(135deg, #6BCF7F, #8FD593);
  color: white;
}

.gradient-icon {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2.5rem;
  font-weight: bold;
  text-shadow: 0 0 20px rgba(74, 144, 226, 0.5);
}

.project-features {
  margin: 1.5rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.8rem;
}

.feature-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.tech-primary {
  background: linear-gradient(135deg, var(--primary-color), #5BA3F5) !important;
  color: white !important;
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.tech-secondary {
  background: linear-gradient(135deg, var(--accent-color), #66D88A) !important;
  color: white !important;
  box-shadow: 0 4px 15px rgba(80, 200, 120, 0.3);
}

.tech-accent {
  background: linear-gradient(135deg, #9B59B6, #C39BD3) !important;
  color: white !important;
  box-shadow: 0 4px 15px rgba(155, 89, 182, 0.3);
}

.project-tech span:hover {
  transform: translateY(-3px) scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  .nav-menu {
    gap: 1.5rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-links {
    flex-direction: column;
    gap: 1rem;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 0;
    justify-content: flex-start;
  }
  
  .timeline-item:nth-child(odd) {
    padding-left: 50px;
    padding-right: 0;
  }
  
  .timeline-marker {
    left: 20px;
    transform: translateX(-50%);
  }
  
  .section {
    padding: 80px 20px;
  }
  
  .nav-container {
    padding: 0 20px;
  }
  
  .hero {
    padding: 100px 20px 40px;
  }

  /* Project specific mobile styles */
  .project-hero {
    padding: 100px 20px 60px;
  }
  
  .project-hero h1 {
    font-size: 2.5rem;
  }
  
  .project-meta {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .chart-grid {
    grid-template-columns: 1fr;
  }
  
  .demo-grid {
    grid-template-columns: 1fr;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  
  .tech-grid {
    grid-template-columns: 1fr;
  }
  
  .workflow-step {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .flow-step {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .project-gallery {
    grid-template-columns: 1fr;
  }
  
  .back-button {
    top: 80px;
    left: 16px;
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  /* Progress explanation mobile styles */
  .progress-explanation {
    padding: 40px 0;
  }
  
  .explanation-card {
    padding: 2rem;
    margin: 0 1rem;
  }
  
  .explanation-card h3 {
    font-size: 1.6rem;
    margin-bottom: 2rem;
  }
  
  .explanation-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .explanation-item {
    padding: 1.5rem;
  }
  
  .explanation-icon {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .section {
    padding: 60px 16px;
  }
  
  .project-card {
    padding: 2rem;
  }
  
  .hero-buttons {
    gap: 1rem;
  }
  
  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
  
  .contact-content {
    padding: 2rem;
    margin: 0 1rem;
  }

  /* Additional mobile optimizations */
  .project-hero {
    padding: 80px 16px 40px;
  }
  
  .project-hero h1 {
    font-size: 2rem;
  }
  
  .chart-card,
  .gallery-item,
  .demo-card,
  .feature-card,
  .kpi-card,
  .stat-card {
    padding: 1.5rem;
  }
  
  .dashboard-preview,
  .demo-section,
  .tech-stack,
  .data-flow {
    padding: 2rem 1rem;
  }
  
  .kpi-number,
  .stat-number {
    font-size: 2rem;
  }
}

/* Loading animation */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Enhanced hover effects for project cards */
.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--bg-gradient);
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover::before {
  opacity: 1;
}

.project-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.project-card:hover::after {
  left: 100%;
}

/* Enhanced button effects */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::after {
  width: 300px;
  height: 300px;
}

.btn:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Scroll indicator - removed as not used */

/* Enhanced animations for project elements */
.chart-card,
.gallery-item,
.demo-card,
.kpi-card,
.stat-card {
  transform: translateY(0);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chart-card:hover,
.gallery-item:hover,
.demo-card:hover,
.kpi-card:hover,
.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

/* Enhanced tech tags */
.tech-tag {
  transition: all 0.3s ease;
  cursor: default;
}

.tech-tag:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* Improved focus states for accessibility */
.project-link:focus,
.contact-link:focus,
.back-button:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Additional utility classes for clean HTML - kept only used ones */
.text-center-large {
  font-size: 1.2rem;
  text-align: center;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto 3rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-color);
}

.tech-section-header {
  text-align: center;
  margin-bottom: 1rem;
}

.tech-section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* Chart specific elements */
.chart-pie {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: conic-gradient(var(--primary-color) 0deg 120deg, var(--accent-color) 120deg 240deg, var(--secondary-color) 240deg 360deg);
}

.chart-map-overlay {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  background: linear-gradient(45deg, var(--bg-light), white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-map-dot {
  width: 60%;
  height: 60%;
  background: var(--primary-color);
  opacity: 0.3;
  border-radius: 50%;
}

/* Feature card variants */
.feature-card-success {
  border-left-color: var(--success-color);
}

.feature-card-info {
  border-left-color: var(--info-color);
}

.feature-card-warning {
  border-left-color: var(--warning-color);
}

.feature-card-primary {
  border-left-color: var(--primary-color);
}

/* Dynamic bar heights */
.bar-40 { height: 40%; }
.bar-70 { height: 70%; }
.bar-55 { height: 55%; }
.bar-85 { height: 85%; }
.bar-65 { height: 65%; }
.bar-90 { height: 90%; }
.bar-30 { height: 30%; }
.bar-60 { height: 60%; }
.bar-45 { height: 45%; }
.bar-80 { height: 80%; }
.bar-75 { height: 75%; }

/* Action buttons row */
.action-buttons {
  text-align: center;
  margin-top: 3rem;
}

.action-buttons .btn {
  margin-right: 1rem;
}

.action-buttons .btn:last-child {
  margin-right: 0;
}

/* ==========================================
   PROJECT SPECIFIC STYLES 
   ========================================== */

/* Project Hero Section */
.project-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 24px 80px;
    text-align: center;
}

.project-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.project-hero .subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Project Meta Information */
.project-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.meta-item {
    background: rgba(255,255,255,0.2);
    padding: 12px 24px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

/* Back Button */
.back-button {
    position: fixed;
    top: 20px;
    left: 24px;
    background: var(--bg-gradient);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    z-index: 1000;
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Dashboard Specific Styles */
.dashboard-preview {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    margin: 3rem 0;
    box-shadow: var(--shadow-xl);
}

.chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.chart-card {
    background: #f8fafc;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.chart-card:hover {
    transform: translateY(-5px);
}

.chart-mockup {
    height: 200px;
    background: linear-gradient(45deg, #e2e8f0, #cbd5e1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
}

.chart-bars {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    align-items: end;
    gap: 8px;
    height: 60px;
}

.bar {
    background: var(--bg-gradient);
    border-radius: 2px;
    flex: 1;
    opacity: 0.7;
}

/* KPI Cards */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.kpi-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bg-gradient);
}

.kpi-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.kpi-trend {
    color: var(--success-color);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Data Flow Section */
.data-flow {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    margin: 3rem 0;
    box-shadow: var(--shadow-lg);
}

.flow-step {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.flow-icon {
    background: var(--bg-gradient);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Project Gallery (for Fontaine à Eau) */
.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.gallery-item {
    background: #f8fafc;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.mockup {
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, #e2e8f0, #cbd5e1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* E-commerce Specific Styles */
.demo-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 4rem 2rem;
    border-radius: 20px;
    margin: 3rem 0;
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.demo-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.demo-card:hover {
    transform: translateY(-5px);
}

.demo-mockup {
    height: 250px;
    background: linear-gradient(45deg, #e2e8f0, #cbd5e1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
}

.demo-content {
    padding: 2rem;
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Workflow Steps */
.workflow-step {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.step-number {
    background: var(--bg-gradient);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    flex-shrink: 0;
}

/* Enhanced Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Tech Stack Section */
.tech-stack {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 3rem 2rem;
    border-radius: 20px;
    margin: 3rem 0;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tech-category h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: white;
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(37, 99, 235, 0.2);
}
#copy-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #333;
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    font-size: 14px;
}
#copy-popup.show {
    opacity: 1;
}

/* Progress Explanation Section */
.progress-explanation {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, rgba(59, 130, 246, 0.05) 100%);
    padding: 60px 0;
    border-top: 1px solid rgba(37, 99, 235, 0.1);
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
}

.explanation-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.explanation-card h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 2.5rem;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.explanation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.explanation-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 250, 252, 0.9) 100%);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(226, 232, 240, 0.5);
    position: relative;
    overflow: hidden;
}

.explanation-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--bg-gradient);
    opacity: 0;
    transition: var(--transition);
}

.explanation-item:hover::before {
    opacity: 1;
}

.explanation-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 1) 100%);
}

.explanation-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.explanation-item h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.explanation-item p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

.explanation-item p strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Enhanced status badges for gaming projects */
.status-badge.planning {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

/* Progress Details Styling */
.progress-details {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.02) 0%, rgba(59, 130, 246, 0.03) 100%);
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    margin-top: 2rem;
}

.progress-details h4 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 2rem;
    text-align: center;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.progress-scale {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.progress-range {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.progress-range::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: var(--transition);
}

.progress-range:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

.progress-range:hover::before {
    opacity: 1;
}

.progress-range.final {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(5, 150, 105, 0.08) 100%);
    border-color: rgba(16, 185, 129, 0.2);
}

.progress-range.final .range-label {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.range-label {
    display: inline-block;
    background: var(--bg-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.progress-range p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .progress-scale {
        grid-template-columns: 1fr;
    }
    
    .progress-details {
        padding: 1.5rem;
    }
    
    .progress-details h4 {
        font-size: 1.5rem;
    }
}

/* Future Projects Section Styling */
.future-section {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.02) 0%, rgba(168, 85, 247, 0.03) 100%);
    border-top: 1px solid rgba(139, 92, 246, 0.1);
}

.future-section .section-title {
    color: var(--text-color);
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.future-section .section-subtitle {
    color: var(--text-light);
    font-style: italic;
}

/* Ensure sections are visible */
.upcoming-section, .future-section {
    min-height: auto;
    padding: 80px 0;
    display: block;
    visibility: visible;
    opacity: 1;
}

/* Styles pour site.html - Header moderne et épuré */
.nav-clean {
  padding: 1rem 0;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(226, 232, 240, 0.5);
  border-radius: 50px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.back-button:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.back-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.back-button:hover .back-icon {
  transform: translateX(-3px);
}

.back-text {
  font-size: 1rem;
}

/* Hero Section moderne */
.hero-modern {
  padding: 2rem 0 4rem 0;
}

.hero-wrapper {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.9) 0%, 
    rgba(248, 250, 252, 0.8) 50%,
    rgba(226, 232, 240, 0.6) 100%);
  border-radius: 24px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.4);
  backdrop-filter: blur(10px);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.08),
    0 8px 16px rgba(0, 0, 0, 0.04);
}

.hero-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(59, 130, 246, 0.5) 50%,
    transparent 100%);
}

.hero-wrapper::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.project-header-modern {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2rem;
}

.project-icon-modern {
  font-size: 4rem;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 8px rgba(59, 130, 246, 0.3));
  flex-shrink: 0;
}

.project-title-wrapper {
  flex: 1;
}

.project-meta-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.status-modern {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-modern.completed {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.status-modern.completed::before {
  content: '✓';
  font-weight: bold;
}

.date-modern {
  padding: 6px 14px;
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border: 1.5px solid rgba(59, 130, 246, 0.2);
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 600;
}

.project-title-modern {
  font-size: 3rem;
  font-weight: 800;
  margin: 0 0 0.5rem 0;
  background: linear-gradient(135deg, 
    #1e293b 0%,
    #475569 50%,
    #64748b 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.project-tagline {
  font-size: 1.3rem;
  color: #64748b;
  margin: 0;
  font-weight: 500;
  line-height: 1.4;
}

.project-description-modern {
  background: rgba(255, 255, 255, 0.7);
  padding: 1.5rem 2rem;
  border-radius: 16px;
  margin-bottom: 2rem;
  border: 1px solid rgba(226, 232, 240, 0.5);
  backdrop-filter: blur(5px);
}

.project-description-modern p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #475569;
  margin: 0;
  text-align: justify;
}

.tech-stack-modern {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 1rem 0;
}

.tech-item.modern {
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(59, 130, 246, 0.2);
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #3b82f6;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.tech-item.modern:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(59, 130, 246, 0.15);
}

.tech-item.modern.accent {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.tech-item.modern.accent:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.4);
}

/* Responsive pour la nouvelle navbar et hero */
@media (max-width: 768px) {
  .project-header-modern {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .project-title-modern {
    font-size: 2.2rem;
  }
  
  .project-tagline {
    font-size: 1.1rem;
  }
  
  .hero-wrapper {
    padding: 2rem 1.5rem;
  }
  
  .project-description-modern {
    padding: 1rem 1.5rem;
  }
  
  .project-meta-badges {
    justify-content: center;
  }
}

/* Navigation Section élégante */
.navigation-section {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(226, 232, 240, 0.4) 100%);
  border-top: 1px solid rgba(226, 232, 240, 0.3);
}

.navigation-banner {
  background: white;
  border-radius: 20px;
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(226, 232, 240, 0.3);
}

.nav-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.nav-main h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.nav-main p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.btn-primary.large {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-gradient);
  color: white;
  padding: 16px 32px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.btn-primary.large:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.nav-group h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.nav-link-styled {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 8px;
  text-decoration: none;
  color: var(--text-secondary);
  border-radius: 10px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.nav-link-styled:hover {
  background: rgba(59, 130, 246, 0.05);
  border-color: rgba(59, 130, 246, 0.2);
  transform: translateX(5px);
}

.link-icon {
  font-size: 1.2rem;
}

.link-text {
  font-weight: 500;
}

/* Footer élégant */
.elegant-footer {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
  padding: 3rem 24px 2rem;
  border-top: 1px solid rgba(226, 232, 240, 0.2);
}

.elegant-footer .footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.1);
}

.footer-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.footer-subtitle {
  color: rgba(248, 250, 252, 0.7);
  margin: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-link {
  color: rgba(248, 250, 252, 0.8);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--accent);
}

.footer-separator {
  color: rgba(248, 250, 252, 0.4);
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  color: rgba(248, 250, 252, 0.6);
  font-size: 0.9rem;
}

.footer-tech {
  display: flex;
  gap: 8px;
}

.tech-badge {
  background: rgba(59, 130, 246, 0.2);
  color: rgba(248, 250, 252, 0.8);
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Responsive pour site.html */
@media (max-width: 768px) {
  .nav-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .nav-links {
    grid-template-columns: 1fr;
  }
  
  .project-title-section {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .project-info-hero h1 {
    font-size: 2rem;
  }
  
  .hero-banner {
    padding: 2rem;
  }
  
  .footer-main {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  
  .footer-meta {
    flex-direction: column;
    gap: 1rem;
  }
}

/* ============================================
   NOUVELLES FONCTIONNALITÉS AVANCÉES
   ============================================ */

/* Variables pour le mode sombre */
:root {
  --bg-primary-light: #ffffff;
  --bg-secondary-light: #f8fafc;
  --text-primary-light: #1e293b;
  --text-secondary-light: #64748b;
  --border-light: rgba(226, 232, 240, 0.3);
}
}



body {
  background-color: var(--bg-primary, #ffffff);
  color: var(--text-primary, #1e293b);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Header moderne avec navigation */
.header-modern {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color, rgba(226, 232, 240, 0.3));
  transition: all 0.3s ease;
}



.navbar-modern {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
}

.brand-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--bg-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-title {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: -2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--bg-gradient);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}









.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Section Compétences */
.skills-section {
  background: var(--bg-secondary, #f8fafc);
  padding: 5rem 0;
}



.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.skill-category {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}



.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.category-icon {
  font-size: 2rem;
  background: var(--bg-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.category-header h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.skill-item {
  margin-bottom: 1.5rem;
}

.skill-item:last-child {
  margin-bottom: 0;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.skill-name {
  font-weight: 600;
  color: var(--text-primary);
}

.skill-level {
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: rgba(59, 130, 246, 0.1);
  padding: 2px 8px;
  border-radius: 12px;
}

.skill-bar {
  height: 6px;
  background: var(--border-color);
  border-radius: 3px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: var(--bg-gradient);
  border-radius: 3px;
  transition: width 0.8s ease;
}

.additional-skills {
  text-align: center;
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}



.additional-skills h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.skill-tag {
  background: var(--bg-gradient);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: default;
}

.skill-tag:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Filtres de projets */
.projects-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 2rem;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 25px;
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}



.filter-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.filter-btn.active {
  background: var(--bg-gradient);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}

.filter-icon {
  font-size: 1.1rem;
}

/* Barre de recherche */
.search-container {
  max-width: 500px;
  margin: 0 auto 3rem auto;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  padding: 16px 50px 16px 50px;
  border: 2px solid var(--border-color);
  border-radius: 25px;
  font-size: 1rem;
  background: white;
  color: var(--text-primary);
  transition: all 0.3s ease;
}



.search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-icon {
  position: absolute;
  left: 18px;
  font-size: 1.2rem;
  color: var(--text-secondary);
}

.search-clear {
  position: absolute;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  display: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.search-clear:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.search-clear.visible {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animation pour les projets filtrés */
.project-card {
  transition: all 0.3s ease;
}

.project-card.hidden {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.project-card.visible {
  opacity: 1;
  transform: scale(1);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .header-modern {
    padding: 0 1rem;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .projects-filters {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  
  .filter-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
  
  .skill-category {
    padding: 1.5rem;
  }
  
  .skills-tags {
    gap: 8px;
  }
  
  .skill-tag {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
}

/* Ajustement pour le nouveau header fixe */
.hero {
  margin-top: 80px;
}

/* ============================================
   STYLES POUR LE SYSTÈME D'ACCORDÉON DES SECTIONS
   ============================================ */

/* Header avec bouton collapse */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--bg-secondary), rgba(255, 255, 255, 0.1));
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: none;
    position: relative;
    z-index: 10;
}

.section-header:hover {
    background: linear-gradient(135deg, var(--bg-secondary), rgba(255, 255, 255, 0.15));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.section-header.collapsible {
    position: relative;
    pointer-events: all;
}

.section-header .section-title {
    margin: 0;
    flex: 1;
    pointer-events: none;
}

/* Bouton collapse */
.collapse-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    pointer-events: all;
}

.collapse-btn:hover {
    background: rgba(var(--primary-rgb), 0.2);
    transform: scale(1.1);
}

.collapse-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    display: block;
    pointer-events: none;
}

/* Animation de rotation pour la flèche */
.section-header.collapsed .collapse-icon {
    transform: rotate(-90deg);
}

/* Contenu collapsible */
.collapsible-content {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.collapsible-content.expanded {
    opacity: 1;
    max-height: none;
    visibility: visible;
    display: block;
}

.collapsible-content.collapsed {
    opacity: 0;
    max-height: 0 !important;
    visibility: hidden;
    display: none;
    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* States visuels */
.section-header.collapsed {
    margin-bottom: 2rem;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--primary-rgb), 0.05));
    border-color: rgba(var(--primary-rgb), 0.2);
}

/* Animation d'entrée/sortie */
@keyframes expandContent {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes collapseContent {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.collapsible-content.expanding {
    animation: expandContent 0.4s ease-out;
}

.collapsible-content.collapsing {
    animation: collapseContent 0.4s ease-in;
}

/* Badge indicateur d'état */
.section-header::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 60px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.section-header.collapsed::after {
    opacity: 1;
    background: var(--warning-color);
}

/* Responsive */
@media (max-width: 768px) {
    .section-header {
        padding: 0.8rem;
        margin-bottom: 0.8rem;
    }
    
    .section-header .section-title {
        font-size: 1.4rem;
    }
    
    .collapse-btn {
        width: 35px;
        height: 35px;
    }
    
    .collapse-icon {
        font-size: 1rem;
    }
}

/* ============================================
   STYLES POUR LES FILTRES MULTI-SECTIONS
   ============================================ */

/* Animation pour les projets filtrés */
.timeline-item {
    transition: all 0.3s ease;
}

.timeline-item.hidden {
    opacity: 0;
    transform: translateY(-20px);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Styles spécifiques pour les différentes sections de filtres */
.upcoming-filters,
.future-filters,
.small-future-filters,
.mini-future-filters {
    margin-bottom: 2rem;
}

/* Styles pour les messages "aucun résultat" dans toutes les sections */
.no-results-message {
    display: none;
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
    border-radius: 12px;
    background: var(--bg-secondary);
    margin: 2rem 0;
    border: 2px dashed var(--border-color);
}

.no-results-content {
    max-width: 400px;
    margin: 0 auto;
}

.no-results-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results-message h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.no-results-message p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Responsive pour les nouveaux filtres */
@media (max-width: 768px) {
    .upcoming-filters .filter-btn,
    .future-filters .filter-btn,
    .small-future-filters .filter-btn,
    .mini-future-filters .filter-btn {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
        margin: 0.25rem;
    }
    
    .upcoming-filters .filter-icon,
    .future-filters .filter-icon,
    .small-future-filters .filter-icon,
    .mini-future-filters .filter-icon {
        font-size: 1rem;
    }
}
