/* ========================================
   PORTFOLIO ULTRA-MODERNE - DONALDO ZOUBERY
   Design révolutionnaire avec animations 3D
   ======================================== */

/* ========================================
   VARIABLES CSS MODERNES
   ======================================== */
:root {
  /* Couleurs principales */
  --primary-color: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary-color: #06b6d4;
  --accent-color: #f59e0b;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  
  /* Couleurs de fond */
  --bg-primary: #0f0f23;
  --bg-secondary: #1a1a2e;
  --bg-tertiary: #16213e;
  --bg-card: rgba(255, 255, 255, 0.08);
  --bg-glass: rgba(255, 255, 255, 0.15);
  --bg-card-border: rgba(255, 255, 255, 0.2);
  
  /* Couleurs de texte */
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --text-accent: #06b6d4;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
  --gradient-secondary: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  --gradient-text: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  
  /* Ombres */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
  --shadow-glow-cyan: 0 0 20px rgba(6, 182, 212, 0.3);
  
  /* Bordures */
  --border-radius-sm: 0.375rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 0.75rem;
  --border-radius-xl: 1rem;
  --border-radius-2xl: 1.5rem;
  
  /* Transitions */
  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
  
  /* Typographie */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  --font-display: 'Poppins', sans-serif;
  
  /* Espacements */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  
  /* Z-index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal: 1040;
  --z-popover: 1050;
  --z-tooltip: 1060;
}

/* ========================================
   RESET ET BASE
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   ANIMATIONS GLOBALES
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 5px var(--primary-color);
  }
  50% {
    box-shadow: 0 0 20px var(--primary-color), 0 0 30px var(--primary-color);
  }
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink {
  0%, 50% {
    border-color: transparent;
  }
  51%, 100% {
    border-color: var(--primary-color);
  }
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-primary);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeInLeft 1s ease-out;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  background: var(--gradient-glass);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: var(--spacing-sm) var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-accent);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-badge i {
  font-size: 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--spacing-lg);
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 4vw, 2rem);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
  min-height: 2.5rem;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.typing-text {
  display: inline-block;
  border-right: 2px solid var(--primary-color);
  white-space: nowrap;
  overflow: hidden;
  animation: typing 3s steps(40, end), blink 0.75s step-end infinite;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-2xl);
  max-width: 500px;
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

.hero-stats {
    display: flex;
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-2xl);
  animation: fadeInUp 0.8s ease-out 1s both;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: var(--spacing-xs);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-actions {
    display: flex;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-2xl);
  animation: fadeInUp 0.8s ease-out 1.2s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: var(--border-radius-lg);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  z-index: 10;
  pointer-events: auto;
}

.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;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow), var(--shadow-xl);
  color: white;
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.hero-social {
  display: flex;
  gap: var(--spacing-lg);
  animation: fadeInUp 0.8s ease-out 1.4s both;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition-normal);
  font-size: 1.25rem;
}

.social-link:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.hero-image {
  position: relative;
  z-index: 2;
  animation: fadeInRight 1s ease-out;
}

.image-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-image {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-color);
  box-shadow: var(--shadow-glow);
  animation: float 6s ease-in-out infinite;
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
    width: 100%;
  height: 100%;
  pointer-events: none;
}

.floating-icon {
  position: absolute;
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  animation: float 4s ease-in-out infinite;
  animation-delay: var(--delay);
  box-shadow: var(--shadow-glow);
}

.floating-icon:nth-child(1) {
  top: 10%;
  right: 10%;
}

.floating-icon:nth-child(2) {
  top: 20%;
  left: 5%;
}

.floating-icon:nth-child(3) {
  bottom: 20%;
  right: 5%;
}

.floating-icon:nth-child(4) {
  bottom: 10%;
  left: 10%;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: fadeInUp 0.8s ease-out 1.6s both;
}

.scroll-arrow {
  width: 40px;
  height: 40px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  animation: float 2s ease-in-out infinite;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.scroll-arrow:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

/* ========================================
   SECTIONS GÉNÉRALES
   ======================================== */
.section-header {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   SKILLS SECTION
   ======================================== */
.skills-section {
  padding: var(--spacing-3xl) 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--bg-card-border);
  border-bottom: 1px solid var(--bg-card-border);
}

.skill-card {
  background: var(--bg-card);
  backdrop-filter: blur(15px);
  border: 2px solid var(--bg-card-border);
  border-radius: var(--border-radius-xl);
  padding: var(--spacing-xl);
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.skill-card::before {
  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.5s;
}

.skill-card:hover::before {
  left: 100%;
}

.skill-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-glow);
  border-color: var(--primary-color);
}

.skill-icon {
  margin-bottom: var(--spacing-lg);
}

.skill-image {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.skill-name {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

.skill-progress {
    width: 100%;
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: var(--spacing-sm);
}

.progress-bar {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 4px;
  width: 0;
  transition: width 1s ease-out;
}

.skill-percentage {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ========================================
   PROJECTS SECTION
   ======================================== */
.projects-section {
  padding: var(--spacing-3xl) 0;
  border-top: 1px solid var(--bg-card-border);
  border-bottom: 1px solid var(--bg-card-border);
}

.project-card {
  background: var(--bg-card);
  backdrop-filter: blur(15px);
  border: 2px solid var(--bg-card-border);
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  transition: all var(--transition-normal);
  position: relative;
  height: 100%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-glow);
  border-color: var(--primary-color);
}

.project-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-links {
  display: flex;
  gap: var(--spacing-md);
}

.project-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  transition: all var(--transition-normal);
  font-size: 1.25rem;
}

.project-link:hover {
  background: var(--secondary-color);
  transform: scale(1.1);
}

.project-content {
  padding: var(--spacing-xl);
}

.project-status {
  margin-bottom: var(--spacing-md);
}

.status-badge {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-completed {
  background: rgba(16, 185, 129, 0.2);
  color: var(--success-color);
  border: 1px solid var(--success-color);
}

.status-in_progress {
  background: rgba(245, 158, 11, 0.2);
  color: var(--warning-color);
  border: 1px solid var(--warning-color);
}

.status-planned {
  background: rgba(99, 102, 241, 0.2);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.project-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

.project-description {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
  line-height: 1.6;
}

.project-technologies {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.tech-tag {
  padding: var(--spacing-xs) var(--spacing-sm);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-radius: var(--border-radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */
.testimonials-section {
  padding: var(--spacing-3xl) 0;
  background: var(--bg-secondary);
}

.testimonials-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-xl);
}

.testimonial-item {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-xl);
  padding: var(--spacing-2xl);
  transition: all var(--transition-normal);
}

.testimonial-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
  border-color: var(--primary-color);
}

.testimonial-rating {
  display: flex;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-lg);
  color: var(--accent-color);
}

.testimonial-text {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xl);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.author-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-initials {
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1.25rem;
}

.author-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.author-position {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ========================================
   BLOG SECTION
   ======================================== */
.blog-section {
  padding: var(--spacing-3xl) 0;
}

.blog-card {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  transition: all var(--transition-normal);
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
  border-color: var(--primary-color);
}

.blog-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-card:hover .blog-image img {
  transform: scale(1.1);
}

.blog-date {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  background: var(--primary-color);
  color: white;
  padding: var(--spacing-sm);
  border-radius: var(--border-radius-md);
  text-align: center;
  font-weight: 600;
}

.blog-date .day {
  display: block;
  font-size: 1.25rem;
  line-height: 1;
}

.blog-date .month {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.blog-content {
  padding: var(--spacing-xl);
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.blog-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.blog-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-normal);
}

.blog-title a:hover {
  color: var(--primary-color);
}

.blog-excerpt {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
  line-height: 1.6;
}

.blog-read-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
    align-items: center;
  gap: var(--spacing-sm);
  transition: all var(--transition-normal);
}

.blog-read-more:hover {
  color: var(--secondary-color);
  transform: translateX(5px);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
  .hero-stats {
    flex-direction: column;
    gap: var(--spacing-lg);
  }
  
  .hero-actions {
  flex-direction: column;
    align-items: stretch;
  }
  
  .btn {
    justify-content: center;
  }
  
  .profile-image {
    width: 300px;
    height: 300px;
  }
  
  .floating-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .testimonials-slider {
    grid-template-columns: 1fr;
  }
  
  .project-links {
    gap: var(--spacing-sm);
  }
  
  .project-link {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-content {
    text-align: center;
  }
  
  .hero-social {
    justify-content: center;
  }
  
  .profile-image {
    width: 250px;
    height: 250px;
  }
  
  .floating-icon {
    width: 30px;
    height: 30px;
    font-size: 0.875rem;
  }
}

/* ========================================
   UTILITAIRES
   ======================================== */
.text-center {
  text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

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

/* ========================================
   ANIMATIONS AOS
   ======================================== */
[data-aos] {
  pointer-events: none;
}

[data-aos].aos-animate {
  pointer-events: auto;
}

/* Exception pour les boutons - toujours cliquables */
.btn[data-aos] {
  pointer-events: auto !important;
}

/* ========================================
   BACK TO TOP
   ======================================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.25rem;
  box-shadow: var(--shadow-glow);
  transition: all var(--transition-normal);
  z-index: var(--z-fixed);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow), var(--shadow-xl);
}

/* ========================================
   LOADING ANIMATION
   ======================================== */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ========================================
   SCROLLBAR PERSONNALISÉE
   ======================================== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ========================================
   SELECTION DE TEXTE
   ======================================== */
::selection {
  background: var(--primary-color);
  color: white;
}

::-moz-selection {
  background: var(--primary-color);
  color: white;
}

/* ========================================
   PROFILE PLACEHOLDER
   ======================================== */
.profile-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: white;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  min-height: 300px;
}

.profile-placeholder i {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* ========================================
   PROJECT PLACEHOLDER
   ======================================== */
.project-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
  border-radius: 10px 10px 0 0;
  position: relative;
  overflow: hidden;
}

.project-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
  animation: shimmer 2s infinite;
}

.project-placeholder i {
  animation: float 3s ease-in-out infinite;
  z-index: 1;
}

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

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

/* ========================================
   BLOG PLACEHOLDER
   ======================================== */
.blog-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
  border-radius: 10px 10px 0 0;
  position: relative;
  overflow: hidden;
}

.blog-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
  animation: shimmer 2s infinite;
}

.blog-placeholder i {
  animation: float 3s ease-in-out infinite;
  z-index: 1;
}

/* Mode sombre permanent - thème clair supprimé */

/* ========================================
   THEME DARK (DEFAULT)
   ======================================== */
body.dark {
  --bg-primary: #0f0f23;
  --bg-secondary: #1a1a2e;
  --bg-tertiary: #16213e;
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-glass: rgba(255, 255, 255, 0.1);
  
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --text-accent: #06b6d4;
  
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
  --gradient-secondary: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  --gradient-text: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
  --shadow-glow-cyan: 0 0 20px rgba(6, 182, 212, 0.3);
}

/* Appliquer les styles de base pour le thème sombre */
body.dark {
  background: var(--bg-primary);
  color: var(--text-primary);
}

body.dark .hero-section {
  background: var(--gradient-bg);
}

body.dark .card {
  background: var(--bg-card);
  color: var(--text-primary);
}

/* ========================================
   NAVIGATION ACTIVE STATES
   ======================================== */
.nav-link.active {
  color: var(--primary-color) !important;
  background: var(--gradient-glass);
  border-radius: var(--border-radius-lg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.nav-link.active i {
  color: var(--primary-color);
  transform: scale(1.1);
}

/* ========================================
   SMOOTH SCROLLING
   ======================================== */
html {
  scroll-behavior: smooth;
}

/* ========================================
   THEME TRANSITIONS
   ======================================== */
* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ========================================
   STYLES DE BASE POUR VISIBILITÉ
   ======================================== */
body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-primary);
  line-height: 1.6;
}

/* S'assurer que le texte est visible */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
}

p, span, div {
  color: var(--text-primary);
}

/* Styles pour les sections */
section {
  background: var(--bg-primary);
  color: var(--text-primary);
}

/* Styles pour les cartes */
.card {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

/* Styles pour les boutons - Supprimé car en double */

/* ========================================
   AMÉLIORATIONS PORTFOLIO
   ======================================== */

/* Images de projets améliorées */
.project-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius-lg);
  transition: all 0.3s ease;
}

.project-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  margin-bottom: 1rem;
}

.project-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}

.badge {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-completed {
  background: var(--success-color);
  color: white;
}

.badge-in-progress {
  background: var(--warning-color);
  color: white;
}

.badge-planned {
  background: var(--text-muted);
  color: white;
}

.project-preview {
  background: rgba(0, 0, 0, 0.8) !important;
  color: white !important;
}

.project-preview:hover {
  background: var(--primary-color) !important;
  transform: scale(1.1);
}

/* ========================================
   SECTION CERTIFICATIONS
   ======================================== */

.certifications-section {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.certification-card {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  padding: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 2px solid var(--bg-card-border);
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.certification-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

.cert-image {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.cert-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.3s ease;
  background: var(--bg-tertiary);
}

.certification-card:hover .cert-img {
  transform: scale(1.02);
}

.cert-placeholder {
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
}

.cert-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}

.badge-valide {
  background: var(--success-color);
  color: white;
}

.badge-expiree {
  background: var(--danger-color);
  color: white;
}

.badge-expire-bientot {
  background: var(--warning-color);
  color: white;
}

.cert-content {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.cert-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.cert-organization {
  color: var(--text-accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.cert-dates {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.cert-date,
.cert-expiry {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.cert-date i,
.cert-expiry i {
  color: var(--primary-color);
  width: 16px;
}

.cert-description {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  flex-grow: 1;
}

.cert-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.skill-tag {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cert-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.cert-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.cert-link:hover {
  color: var(--primary-light);
  transform: translateX(5px);
}

.cert-id {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: 'Courier New', monospace;
}

.no-certifications {
  text-align: center;
  padding: 3rem;
  color: var(--text-secondary);
}

.no-certifications i {
  font-size: 4rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.no-certifications h4 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

/* ========================================
   RESPONSIVE CERTIFICATIONS
   ======================================== */

@media (max-width: 768px) {
  .cert-image {
  height: 150px;
  }
  
  .cert-content {
    padding: 1rem;
  }
  
  .cert-title {
    font-size: 1rem;
  }
  
  .cert-organization {
    font-size: 0.85rem;
  }
  
  .cert-dates {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .cert-links {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
}

/* ========================================
   SEO ONLY SECTIONS
   ======================================== */

/* Masquer visuellement mais garder accessible pour le SEO */
.seo-only {
  display: none !important;
  visibility: hidden;
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* S'assurer que le contenu est accessible aux moteurs de recherche */
.seo-only * {
  display: none !important;
  visibility: hidden;
}

/* Garder les liens accessibles pour le SEO */
.seo-only a {
  display: inline !important;
  visibility: visible;
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  color: transparent;
  text-decoration: none;
}

.seo-only a:hover {
  color: transparent;
}