/* ===== VARIABLES ===== */
:root {
  /* Couleurs principales (mode clair) */
  --primary-color: #00bcd4;
  --secondary-color: #0097a7;
  --accent-color: #00ffff;
  --bg-primary: #e0f7fa;
  --bg-secondary: #ffffff;
  --text-primary: #110333;
  --text-secondary: #333333;
  --card-bg: rgba(255, 255, 255, 0.9);
  --shadow-color: rgba(0, 188, 212, 0.2);
  
  /* Typographie */
  --font-primary: 'Poppins', sans-serif;
  --font-heading: 'Orbitron', sans-serif;
  
  /* Espacements */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Mode Sombre */
body.dark-mode {
  --bg-primary: #070330;
  --bg-secondary: #0c0422;
  --text-primary: #e0e7ff;
  --text-secondary: #b8c1ec;
  --card-bg: rgba(26, 15, 46, 0.8);
  --shadow-color: rgba(0, 188, 212, 0.4);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.5s, color 0.5s;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

/* ===== CANVAS 3D BACKGROUND ===== */
#canvas3d {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  opacity: 0.3;
}

/* ===== PARTICLES ===== */
#particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 50%;
  opacity: 0.6;
  animation: particleFloat 15s infinite;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) translateX(0) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-100vh) translateX(100px) scale(1);
    opacity: 0;
  }
}

/* ===== MODE TOGGLE ===== */
.mode-toggle {
  position: fixed;
  top: 5rem;
  right: 1.5rem;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px var(--shadow-color);
  transition: all var(--transition-normal);
}

.mode-toggle:hover {
  transform: scale(1.1) rotate(180deg);
  box-shadow: 0 6px 30px var(--shadow-color);
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px var(--shadow-color);
  transition: all var(--transition-normal);
  opacity: 0;
  visibility: hidden;
  transform: translateY(100px);
}

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

.scroll-to-top:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 30px var(--shadow-color);
}

/* ===== WELCOME MODAL ===== */
.welcome-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.5s;
}

.welcome-modal.hidden {
  opacity: 0;
  pointer-events: none;
}

.welcome-content {
  background: var(--card-bg);
  padding: 3rem;
  border-radius: 30px;
  border: 3px solid var(--primary-color);
  max-width: 500px;
  text-align: center;
  box-shadow: 0 20px 80px var(--shadow-color);
  animation: modalPop 0.5s ease;
}

@keyframes modalPop {
  0% {
    transform: scale(0.5) rotate(-5deg);
    opacity: 0;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.welcome-content h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.welcome-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.welcome-btn {
  padding: 1rem 3rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.welcome-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 40px var(--shadow-color);
}

.sound-toggle {
  margin-top: 1rem;
  font-size: 0.9rem;
  opacity: 0.7;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.sound-toggle:hover {
  opacity: 1;
  color: var(--primary-color);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 0;
  background: rgba(12, 4, 34, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 188, 212, 0.2);
  z-index: 1000;
  transition: all var(--transition-normal);
}

body.light-mode .navbar {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(0, 188, 212, 0.3);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav-logo img {
  height: 50px;
  border-radius: 8px;
}

.nav-logo .highlight {
  color: var(--accent-color);
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-primary);
  font-weight: 600;
  position: relative;
  transition: all var(--transition-normal);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width var(--transition-normal);
}

.nav-link:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  transition: all var(--transition-normal);
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 4rem;
  position: relative;
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.glitch {
  display: block;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: glitchAnimation 3s infinite;
}

@keyframes glitchAnimation {
  0%, 100% {
    text-shadow: 0 0 20px rgba(0, 188, 212, 0.5);
  }
  50% {
    text-shadow: 0 0 40px rgba(0, 255, 255, 0.8);
  }
}

.hero-subtitle {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  min-height: 60px;
}

.typing-text {
  font-weight: 600;
}

.cursor {
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin: 2rem 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary-color);
  font-family: var(--font-heading);
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  margin: 2rem 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all var(--transition-normal);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 4px 20px var(--shadow-color);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--shadow-color);
}

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

.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
}

.tech-icons-hero {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.tech-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  border: 2px solid var(--primary-color);
  border-radius: 12px;
  font-size: 2rem;
  color: var(--primary-color);
  cursor: pointer;
  position: relative;
  transition: all var(--transition-normal);
}

.tech-icon:hover {
  transform: translateY(-10px) rotate(360deg);
  box-shadow: 0 10px 30px var(--shadow-color);
}

.tech-icon[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-secondary);
  padding: 0.3rem 0.8rem;
  border-radius: 5px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.tech-icon:hover[data-tooltip]::after {
  opacity: 1;
}

/* Hero Image 3D */
.hero-image {
  position: relative;
  perspective: 1000px;
}

.image-3d-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.floating-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 30px;
  overflow: hidden;
  border: 3px solid var(--primary-color);
  box-shadow: 0 20px 60px var(--shadow-color);
  animation: float 6s ease-in-out infinite;
  transform-style: preserve-3d;
}

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

.floating-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, var(--primary-color), transparent);
  opacity: 0.3;
  animation: rotate 4s linear infinite;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.orbit-ring {
  position: absolute;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  opacity: 0.3;
  animation: orbit 10s linear infinite;
}

.ring-1 {
  width: 120%;
  height: 120%;
  top: -10%;
  left: -10%;
}

.ring-2 {
  width: 140%;
  height: 140%;
  top: -20%;
  left: -20%;
  animation-duration: 15s;
}

.ring-3 {
  width: 160%;
  height: 160%;
  top: -30%;
  left: -30%;
  animation-duration: 20s;
}

@keyframes orbit {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  animation: bounce 2s infinite;
}

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

.mouse {
  width: 25px;
  height: 40px;
  border: 2px solid var(--primary-color);
  border-radius: 15px;
  position: relative;
}

.mouse::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--primary-color);
  border-radius: 2px;
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% { top: 8px; opacity: 1; }
  100% { top: 24px; opacity: 0; }
}

/* ===== SECTIONS COMMUNES ===== */
section {
  padding: var(--spacing-xl) 2rem;
  position: relative;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section-tag {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(0, 188, 212, 0.1);
  border: 1px solid var(--primary-color);
  border-radius: 50px;
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1.2rem;
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== ABOUT SECTION ===== */
.about {
  background: var(--bg-secondary);
}

.about-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: start;
}

.text-block {
  margin-bottom: 2rem;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 20px;
  border-left: 4px solid var(--primary-color);
  backdrop-filter: blur(10px);
  transition: all var(--transition-normal);
}

.text-block:hover {
  transform: translateX(10px);
  box-shadow: 0 10px 30px var(--shadow-color);
}

.text-block h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.text-block p {
  line-height: 1.8;
  opacity: 0.9;
}

.about-visual {
  position: sticky;
  top: 100px;
}

.visual-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.card-3d {
  perspective: 1000px;
  transform-style: preserve-3d;
  transition: transform var(--transition-slow);
}

.card-3d:hover {
  transform: rotateY(5deg) rotateX(5deg);
}

.card-face {
  position: relative;
}

.card-face img {
  width: 100%;
  border-radius: 20px;
  border: 3px solid var(--primary-color);
}

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 2rem;
  color: white;
}

.card-overlay h4 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.info-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--card-bg);
  border-radius: 15px;
  border: 1px solid var(--primary-color);
  transition: all var(--transition-normal);
}

.info-card:hover {
  transform: translateX(10px);
  box-shadow: 0 5px 20px var(--shadow-color);
}

.info-card i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

/* ===== SKILLS SECTION ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.skill-category {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(0, 188, 212, 0.2);
  backdrop-filter: blur(10px);
  transition: all var(--transition-normal);
}

.skill-category:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px var(--shadow-color);
  border-color: var(--primary-color);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.category-header i {
  font-size: 2.5rem;
  color: var(--primary-color);
}

.category-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
}

.category-description {
  margin-bottom: 2rem;
  line-height: 1.6;
  opacity: 0.9;
}

.skills-list {
  margin-bottom: 1.5rem;
}

.skill-item {
  margin-bottom: 1.5rem;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.skill-name {
  font-weight: 600;
}

.skill-level {
  color: var(--primary-color);
  font-weight: 700;
}

.skill-bar {
  height: 8px;
  background: rgba(0, 188, 212, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 10px;
  width: 0;
  transition: width 1s ease;
  box-shadow: 0 0 10px var(--primary-color);
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  padding: 0.4rem 1rem;
  background: rgba(0, 188, 212, 0.1);
  border: 1px solid var(--primary-color);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--primary-color);
  transition: all var(--transition-normal);
}

.badge:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* ===== PROJECTS SECTION ===== */
.projects {
  background: var(--bg-secondary);
}

.projects-filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.8rem 2rem;
  background: transparent;
  border: 2px solid var(--primary-color);
  border-radius: 50px;
  color: var(--primary-color);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

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

.project-card {
  background: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 188, 212, 0.2);
  transition: all var(--transition-slow);
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 30px 80px var(--shadow-color);
  border-color: var(--primary-color);
}

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

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

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

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 188, 212, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

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

.btn-view {
  padding: 1rem 2rem;
  background: white;
  color: var(--primary-color);
  border: none;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-normal);
}

.btn-view:hover {
  transform: scale(1.1);
}

.project-content {
  padding: 2rem;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.project-header h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.project-year {
  padding: 0.3rem 0.8rem;
  background: rgba(0, 188, 212, 0.1);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--primary-color);
}

.project-description {
  line-height: 1.6;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag {
  padding: 0.3rem 0.8rem;
  background: rgba(0, 188, 212, 0.1);
  border: 1px solid var(--primary-color);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--primary-color);
}

.project-stats {
  display: flex;
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 188, 212, 0.2);
}

.project-stats .stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

.project-stats .stat i {
  color: var(--primary-color);
}

/* ===== JOURNEY TIMELINE 3D ===== */
.timeline-3d {
  position: relative;
  padding: 2rem 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
  box-shadow: 0 0 20px var(--primary-color);
}

.timeline-block {
  position: relative;
  margin-bottom: 4rem;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 5px solid var(--bg-primary);
  box-shadow: 0 0 30px var(--primary-color);
  z-index: 10;
}

.marker-year {
  font-family: var(--font-heading);
  font-weight: 900;
  color: white;
  font-size: 1.2rem;
}

.timeline-start {
  background: var(--accent-color);
  font-size: 2rem;
}

.timeline-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 2rem;
  border: 2px solid var(--primary-color);
  backdrop-filter: blur(10px);
  transition: all var(--transition-slow);
  position: relative;
}

.timeline-card:hover {
  transform: scale(1.05);
  box-shadow: 0 30px 80px var(--shadow-color);
}

.card-right {
  margin-left: 55%;
  width: 40%;
}

.card-left {
  margin-right: 55%;
  width: 40%;
}

.card-center {
  margin: 0 auto;
  width: 60%;
  text-align: center;
}

.card-image {
  width: 120px;
  height: 120px;
  border-radius: 15px;
  overflow: hidden;
  border: 3px solid var(--primary-color);
  margin-bottom: 1.5rem;
  float: left;
  margin-right: 1.5rem;
}

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

.card-date {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: rgba(0, 188, 212, 0.1);
  border-radius: 20px;
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.card-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.card-content h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.card-content p {
  line-height: 1.8;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.achievements {
  list-style: none;
  margin-top: 1rem;
}

.achievements li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.achievements i {
  color: var(--primary-color);
}

/* ===== HOBBIES SECTION ===== */
.hobbies {
  background: var(--bg-secondary);
}

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

.hobby-card {
  background: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 188, 212, 0.2);
  transition: all var(--transition-slow);
  cursor: pointer;
}

.hobby-card:hover {
  transform: translateY(-15px) rotateY(5deg);
  box-shadow: 0 30px 80px var(--shadow-color);
  border-color: var(--primary-color);
}

.hobby-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

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

.hobby-card:hover .hobby-image img {
  transform: scale(1.2);
}

.hobby-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 188, 212, 0.9), rgba(0, 255, 255, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

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

.hobby-overlay i {
  font-size: 4rem;
  color: white;
}

.hobby-content {
  padding: 2rem;
}

.hobby-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.hobby-content p {
  line-height: 1.8;
  opacity: 0.9;
}

/* ===== CONTACT SECTION ===== */
.contact-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: center;
}

.info-text {
  margin-bottom: 2rem;
}

.info-text h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.info-text p {
  line-height: 1.8;
  opacity: 0.9;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--card-bg);
  border-radius: 15px;
  border: 1px solid rgba(0, 188, 212, 0.2);
  transition: all var(--transition-normal);
}

.contact-method:hover {
  transform: translateX(10px);
  box-shadow: 0 10px 30px var(--shadow-color);
  border-color: var(--primary-color);
}

.method-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
}

.method-info {
  display: flex;
  flex-direction: column;
}

.method-label {
  font-size: 0.9rem;
  opacity: 0.7;
}

.method-value {
  font-weight: 600;
  color: var(--primary-color);
}

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

.social-link {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  color: var(--primary-color);
  font-size: 1.3rem;
  transition: all var(--transition-normal);
  position: relative;
}

.social-link:hover {
  transform: translateY(-5px) rotate(360deg);
  background: var(--primary-color);
  color: white;
  box-shadow: 0 10px 30px var(--shadow-color);
}

.social-link[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-secondary);
  padding: 0.3rem 0.8rem;
  border-radius: 5px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.social-link:hover[data-tooltip]::after {
  opacity: 1;
}

/* Contact 3D Cube */
.visual-3d {
  perspective: 1000px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cube-container {
  width: 300px;
  height: 300px;
}

.cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: rotateCube 20s infinite linear;
}

@keyframes rotateCube {
  0% { transform: rotateX(0deg) rotateY(0deg); }
  100% { transform: rotateX(360deg) rotateY(360deg); }
}

.cube-face {
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--card-bg);
  border: 2px solid var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--primary-color);
  backdrop-filter: blur(10px);
  opacity: 0.9;
}

.cube-face.front  { transform: rotateY(0deg) translateZ(150px); }
.cube-face.back   { transform: rotateY(180deg) translateZ(150px); }
.cube-face.right  { transform: rotateY(90deg) translateZ(150px); }
.cube-face.left   { transform: rotateY(-90deg) translateZ(150px); }
.cube-face.top    { transform: rotateX(90deg) translateZ(150px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(150px); }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-secondary);
  padding: 3rem 2rem 2rem;
  border-top: 1px solid rgba(0, 188, 212, 0.2);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.footer-brand span {
  color: var(--accent-color);
}

.footer-brand p {
  opacity: 0.8;
}

.footer-links {
  display: flex;
  gap: 3rem;
}

.footer-column h4 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.footer-column ul li {
  margin-bottom: 0.5rem;
}

.footer-column ul li a {
  opacity: 0.8;
  transition: all var(--transition-normal);
}

.footer-column ul li a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
  display: inline-block;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 188, 212, 0.2);
  opacity: 0.8;
}

.footer-bottom i {
  color: var(--primary-color);
}

/* ===== ANIMATIONS AOS ===== */
[data-aos] {
  opacity: 0;
  transition: all 0.8s ease;
}

[data-aos].aos-animate {
  opacity: 1;
}

[data-aos="fade-up"] {
  transform: translateY(50px);
}

[data-aos="fade-up"].aos-animate {
  transform: translateY(0);
}

[data-aos="fade-right"] {
  transform: translateX(-50px);
}

[data-aos="fade-right"].aos-animate {
  transform: translateX(0);
}

[data-aos="fade-left"] {
  transform: translateX(50px);
}

[data-aos="fade-left"].aos-animate {
  transform: translateX(0);
}

[data-aos="zoom-in"] {
  transform: scale(0.8);
}

[data-aos="zoom-in"].aos-animate {
  transform: scale(1);
}

[data-aos="flip-left"] {
  transform: perspective(1000px) rotateY(-90deg);
}

[data-aos="flip-left"].aos-animate {
  transform: perspective(1000px) rotateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .hero-content,
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .card-right,
  .card-left {
    margin: 0 auto;
    width: 80%;
  }
  
  .timeline-line {
    left: 30px;
  }
  
  .timeline-marker {
    left: 30px;
  }
}

@media (max-width: 968px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    flex-direction: column;
    background: var(--bg-secondary);
    width: 100%;
    padding: 2rem;
    transition: left var(--transition-normal);
    box-shadow: 0 10px 30px var(--shadow-color);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  /* Fix collision menu et mode toggle */
  .mode-toggle {
    top: 1.2rem;
    right: 5rem;
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }
  
  .scroll-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }
  
  .hero-stats {
    flex-wrap: wrap;
    gap: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .card-right,
  .card-left,
  .card-center {
    width: 100%;
    margin: 0;
  }
  
  .timeline-block {
    padding-left: 100px;
  }
  
  .card-image {
    float: none;
    margin: 0 auto 1rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .cube-container {
    width: 200px;
    height: 200px;
  }
  
  .cube-face {
    width: 200px;
    height: 200px;
    font-size: 2.5rem;
  }
  
  .cube-face.front  { transform: rotateY(0deg) translateZ(100px); }
  .cube-face.back   { transform: rotateY(180deg) translateZ(100px); }
  .cube-face.right  { transform: rotateY(90deg) translateZ(100px); }
  .cube-face.left   { transform: rotateY(-90deg) translateZ(100px); }
  .cube-face.top    { transform: rotateX(90deg) translateZ(100px); }
  .cube-face.bottom { transform: rotateX(-90deg) translateZ(100px); }
  
  /* Welcome modal responsive */
  .welcome-content {
    margin: 1rem;
    padding: 2rem;
  }
  
  .welcome-content h2 {
    font-size: 1.5rem;
  }
  
  .welcome-content p {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .tech-icons-hero {
    justify-content: center;
  }
  
  .tech-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  
  .hobbies-grid {
    grid-template-columns: 1fr;
  }
  
  /* Mode toggle encore plus petit sur très petit écran */
  .mode-toggle {
    top: 1rem;
    right: 4rem;
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
  
  .scroll-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
  
  .mobile-toggle {
    transform: scale(0.9);
  }
  
  .welcome-content {
    padding: 1.5rem;
  }
  
  .welcome-content h2 {
    font-size: 1.3rem;
  }
  
  .welcome-btn {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }
}

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

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

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

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 10px;
}

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

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

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

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

/* ===== ANIMATIONS GLOBALES ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes rainbow {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}
