/* Variables CSS Ultra-Stylées */
:root {
  --primary-color: #e65616;
  --primary-light: #ff6b35;
  --primary-dark: #cc4a12;
  --neon-green: #00ff41;
  --neon-blue: #00d4ff;
  --neon-purple: #b300ff;
  --dark-bg: #0a0a0a;
  --darker-bg: #050505;
  --card-bg: rgba(15, 15, 35, 0.8);
  --card-border: rgba(0, 255, 65, 0.2);
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --text-accent: #00ff41;
  --shadow-neon: 0 0 30px rgba(0, 255, 65, 0.5);
  --shadow-primary: 0 0 30px rgba(230, 86, 22, 0.5);
}

/* Reset et Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Orbitron', 'Arial', sans-serif;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Animated Background Ultra-Stylé */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.matrix-rain {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0.1;
}

.floating-particles {
  position: absolute;
  width: 100%;
  height: 100%;
}

.cyber-grid {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 255, 65, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 65, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

/* Mobile Navigation Ultra-Moderne */
.mobile-nav-wrapper {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.mobile-menu-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  background: rgba(0, 255, 65, 0.1);
  border: 2px solid var(--neon-green);
  border-radius: 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.mobile-menu-btn:hover {
  background: rgba(0, 255, 65, 0.2);
  box-shadow: var(--shadow-neon);
  transform: scale(1.05);
}

.mobile-menu-btn span {
  width: 20px;
  height: 2px;
  background: var(--neon-green);
  border-radius: 1px;
  transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.98) 0%, rgba(26, 26, 46, 0.98) 100%);
  backdrop-filter: blur(20px);
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  overflow-y: auto;
}

.mobile-nav-overlay.active {
  transform: translateX(0);
}

.mobile-nav-content {
  padding: 80px 30px 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 50px;
}

.mobile-nav-header h3 {
  font-size: 1.8rem;
  color: var(--neon-green);
  font-weight: 900;
  text-shadow: 0 0 10px var(--neon-green);
}

.close-btn {
  width: 40px;
  height: 40px;
  background: rgba(255, 0, 0, 0.1);
  border: 2px solid #ff4757;
  border-radius: 50%;
  color: #ff4757;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.close-btn:hover {
  background: rgba(255, 0, 0, 0.2);
  transform: rotate(90deg);
}

.mobile-nav-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav-links .nav-link {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 15px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.mobile-nav-links .nav-link:hover,
.mobile-nav-links .nav-link.active {
  background: linear-gradient(45deg, rgba(0, 255, 65, 0.1), rgba(230, 86, 22, 0.1));
  border-color: var(--neon-green);
  box-shadow: var(--shadow-neon);
  transform: translateX(10px);
}

.mobile-nav-links .nav-icon {
  font-size: 1.5rem;
  width: 40px;
  text-align: center;
}

.mobile-nav-links .nav-arrow {
  margin-left: auto;
  font-size: 1.2rem;
  color: var(--neon-green);
  transition: transform 0.3s ease;
}

.mobile-nav-links .nav-link:hover .nav-arrow {
  transform: translateX(5px);
}

.mobile-nav-footer {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.linkedin-btn {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: linear-gradient(45deg, #0077b5, #00a0dc);
  border-radius: 12px;
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
}

.linkedin-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(0, 119, 181, 0.4);
}

.linkedin-btn img {
  width: 30px;
  height: 30px;
  border-radius: 6px;
}

/* Desktop Navigation Élégante */
.desktop-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 255, 65, 0.2);
  padding: 0;
  display: block;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 30px;
  gap: 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--neon-green);
}

.logo-icon {
  width: 45px;
  height: 45px;
  background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: white;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-primary);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-item {
  position: relative;
  padding: 10px 0;
  text-decoration: none;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.nav-item:hover,
.nav-item.active {
  color: var(--neon-green);
  text-shadow: 0 0 10px var(--neon-green);
}

.nav-underline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-green), var(--primary-color));
  transition: width 0.4s ease;
}

.nav-item:hover .nav-underline,
.nav-item.active .nav-underline {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.language-selector {
  position: relative;
}

.lang-btn {
  width: 40px;
  height: 40px;
  background: rgba(0, 255, 65, 0.1);
  border: 1px solid var(--neon-green);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-btn:hover {
  background: rgba(0, 255, 65, 0.2);
  box-shadow: var(--shadow-neon);
}

.lang-btn img {
  width: 24px;
  height: 16px;
  border-radius: 3px;
}

.flag-dropdown {
  position: absolute;
  top: 50px;
  right: 0;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 10px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-neon);
}

.flag-dropdown.hidden {
  display: none;
}

.flag-dropdown img {
  width: 24px;
  height: 16px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.flag-dropdown img:hover {
  transform: scale(1.1);
}

.desktop-linkedin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(45deg, #0077b5, #00a0dc);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.desktop-linkedin:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 119, 181, 0.4);
}

.desktop-linkedin img {
  width: 20px;
  height: 20px;
}

/* Hero Section Responsive et Moderne */
.hero-section {
  min-height: 100vh;
  padding: 100px 20px 20px;
  position: relative;
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
}

/* Mobile Hero Ultra-Stylé */
.mobile-hero {
  display: none;
  text-align: center;
  padding: 40px 0;
}

.mobile-profile {
  margin-bottom: 40px;
}

.profile-avatar {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 900;
  color: white;
  box-shadow: var(--shadow-primary);
}

.avatar-glow {
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: linear-gradient(45deg, var(--neon-green), var(--primary-color), var(--neon-blue));
  border-radius: 35px;
  z-index: -1;
  animation: rotate-glow 3s linear infinite;
}

@keyframes rotate-glow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.profile-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #ffffff;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--neon-green);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.mobile-title {
  margin-bottom: 30px;
}

.title-line {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--text-primary);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.title-line.accent {
  color: var(--neon-green);
  text-shadow: 0 0 20px var(--neon-green);
}

.mobile-subtitle {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
}

.subtitle-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.subtitle-item:hover {
  background: rgba(0, 255, 65, 0.1);
  border-color: var(--neon-green);
  transform: scale(1.05);
}

.mobile-description {
  margin-bottom: 40px;
}

.mobile-description p {
  font-size: 1rem;
  line-height: 1.6;
  color: #ffffff;
  max-width: 90%;
  margin: 0 auto;
}

.mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 50px;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 25px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.action-btn.primary {
  background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
  color: white;
  box-shadow: var(--shadow-primary);
}

.action-btn.secondary {
  background: transparent;
  border: 2px solid var(--neon-green);
  color: var(--neon-green);
  box-shadow: var(--shadow-neon);
}

.action-btn:hover {
  transform: translateY(-3px) scale(1.02);
}

.action-btn.primary:hover {
  box-shadow: 0 10px 30px rgba(230, 86, 22, 0.6);
}

.action-btn.secondary:hover {
  background: var(--neon-green);
  color: var(--dark-bg);
}

.btn-icon {
  font-size: 1.2rem;
}

.mobile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 15px;
  padding: 20px 10px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.stat-card:hover {
  background: rgba(0, 255, 65, 0.05);
  border-color: var(--neon-green);
  transform: translateY(-5px);
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary-color);
  text-shadow: 0 0 10px var(--primary-color);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.75rem;
  color: #ffffff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Desktop Hero Spectaculaire */
.desktop-hero {
  display: block;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  min-height: 80vh;
}

.hero-intro {
  padding-right: 40px;
}

.hero-title {
  margin-bottom: 30px;
}

.title-word {
  display: block;
  font-size: 4rem;
  font-weight: 900;
  line-height: 0.9;
  color: #ffffff;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
  position: relative;
  margin-bottom: 10px;
  animation: slideInLeft 1s ease forwards;
  animation-delay: calc(var(--delay) * 0.3s);
  opacity: 0;
}

.title-word.accent {
  color: var(--neon-green);
  text-shadow: 0 0 30px var(--neon-green);
  background: linear-gradient(45deg, var(--neon-green), var(--neon-blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.title-word:nth-child(1) { --delay: 0; }
.title-word:nth-child(2) { --delay: 1; }
.title-word:nth-child(3) { --delay: 2; }

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Glitch Effect pour Desktop */
.title-word[data-text] {
  position: relative;
}

.title-word[data-text]::before,
.title-word[data-text]::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: -1;
}

.title-word[data-text]::before {
  animation: glitch-1 2s infinite linear alternate-reverse;
  color: #ff00ff;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.title-word[data-text]::after {
  animation: glitch-2 2s infinite linear alternate-reverse;
  color: #00ffff;
  clip-path: polygon(0 80%, 100% 20%, 100% 100%, 0 100%);
}

@keyframes glitch-1 {
  0%, 14%, 15%, 49%, 50%, 99%, 100% {
    transform: translateX(0);
  }
  1%, 13% {
    transform: translateX(-2px);
  }
  16%, 48% {
    transform: translateX(2px);
  }
}

@keyframes glitch-2 {
  0%, 20%, 21%, 62%, 63%, 99%, 100% {
    transform: translateX(0);
  }
  1%, 19% {
    transform: translateX(2px);
  }
  22%, 61% {
    transform: translateX(-2px);
  }
}

.hero-subtitle {
  margin-bottom: 30px;
  font-size: 1.3rem;
  font-family: 'Fira Code', monospace;
  color: var(--neon-green);
}

.typing-text {
  border-right: 2px solid var(--neon-green);
  animation: typing 3s steps(40) 2s both, blink-cursor 1s step-end infinite;
  white-space: nowrap;
  overflow: hidden;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-cursor {
  0%, 50% { border-color: var(--neon-green); }
  51%, 100% { border-color: transparent; }
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #ffffff;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeInUp 1s ease 3s forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-actions {
  display: flex;
  gap: 25px;
  opacity: 0;
  animation: fadeInUp 1s ease 3.5s forwards;
}

.cta-btn {
  position: relative;
  padding: 18px 35px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.4s ease;
  overflow: hidden;
}

.cta-btn.primary {
  background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
  color: white;
  box-shadow: var(--shadow-primary);
}

.cta-btn.secondary {
  background: transparent;
  border: 2px solid var(--neon-green);
  color: var(--neon-green);
  box-shadow: var(--shadow-neon);
}

.cta-btn:hover {
  transform: translateY(-5px) scale(1.05);
}

.cta-btn.primary:hover {
  box-shadow: 0 15px 40px rgba(230, 86, 22, 0.6);
}

.cta-btn.secondary:hover {
  background: var(--neon-green);
  color: var(--dark-bg);
  box-shadow: 0 15px 40px rgba(0, 255, 65, 0.6);
}

.btn-effect {
  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;
}

.cta-btn:hover .btn-effect {
  left: 100%;
}

/* Terminal Window Spectaculaire */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.terminal-window {
  width: 100%;
  max-width: 500px;
  background: var(--darker-bg);
  border-radius: 15px;
  border: 1px solid var(--neon-green);
  box-shadow: var(--shadow-neon);
  overflow: hidden;
  opacity: 0;
  animation: slideInRight 1s ease 1s forwards;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.terminal-header {
  background: linear-gradient(135deg, var(--dark-bg), rgba(26, 26, 46, 0.8));
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 255, 65, 0.2);
}

.terminal-buttons {
  display: flex;
  gap: 8px;
}

.btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.btn.red { background: #ff5f57; }
.btn.yellow { background: #ffbd2e; }
.btn.green { background: #28ca42; }

.terminal-title {
  font-family: 'Fira Code', monospace;
  color: var(--neon-green);
  font-size: 0.9rem;
  font-weight: 600;
}

.terminal-body {
  padding: 25px;
  font-family: 'Fira Code', monospace;
  font-size: 0.95rem;
  line-height: 1.6;
}

.terminal-line {
  margin-bottom: 10px;
  opacity: 0;
  animation: terminalType 0.8s ease forwards;
  animation-delay: var(--delay);
}

@keyframes terminalType {
  to { opacity: 1; }
}

.prompt {
  color: var(--neon-green);
  font-weight: 700;
}

.command {
  color: var(--neon-blue);
  font-weight: 600;
}

.output {
  color: #ffffff;
}

.cursor {
  color: var(--neon-green);
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Hero Stats Desktop */
.hero-stats {
  margin-top: 80px;
  opacity: 0;
  animation: fadeInUp 1s ease 4s forwards;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 25px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
  opacity: 0;
  animation: statSlideUp 0.8s ease forwards;
  animation-delay: var(--delay);
}

@keyframes statSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-item:hover {
  background: rgba(0, 255, 65, 0.05);
  border-color: var(--neon-green);
  transform: translateY(-5px);
  box-shadow: var(--shadow-neon);
}

.stat-icon {
  font-size: 2rem;
  filter: drop-shadow(0 0 10px currentColor);
}

.stat-content {
  flex: 1;
}

.hero-stats .stat-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary-color);
  text-shadow: 0 0 15px var(--primary-color);
  margin-bottom: 5px;
  display: block;
}

.hero-stats .stat-label {
  font-size: 0.85rem;
  color: #ffffff;
  font-weight: 600;
  line-height: 1.3;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 255, 65, 0.2);
  padding: 10px;
  z-index: 900;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 12px 8px;
  text-decoration: none;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
  background: rgba(0, 255, 65, 0.1);
  color: var(--neon-green);
}

.bottom-nav-item .nav-icon {
  font-size: 1.2rem;
}

/* RESPONSIVE BREAKPOINTS */

/* Mobile Portrait (jusqu'à 768px) */
@media (max-width: 768px) {
  .mobile-nav-wrapper {
    display: block;
  }
  
  .desktop-nav {
    display: none;
  }
  
  .mobile-hero {
    display: block;
  }
  
  .desktop-hero {
    display: none;
  }
  
  .mobile-bottom-nav {
    display: grid;
  }
  
  .hero-section {
    padding: 100px 20px 100px;
  }
  
  .mobile-title .title-line {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }
  
  .mobile-actions {
    padding: 0 10px;
  }
  
  .mobile-stats {
    gap: 10px;
  }
  
  .stat-card {
    padding: 15px 8px;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .stat-label {
    font-size: 0.7rem;
  }
}

/* Mobile Landscape */
@media (max-width: 768px) and (orientation: landscape) {
  .hero-section {
    padding: 80px 20px 80px;
  }
  
  .mobile-profile {
    margin-bottom: 20px;
  }
  
  .profile-avatar {
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }
  
  .mobile-title {
    margin-bottom: 20px;
  }
  
  .mobile-title .title-line {
    font-size: 1.8rem;
    line-height: 1;
  }
  
  .mobile-subtitle {
    margin-bottom: 20px;
  }
  
  .mobile-actions {
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
  }
  
  .action-btn {
    flex: 0 1 auto;
    min-width: 150px;
  }
  
  .mobile-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
  }
}

/* Tablet Portrait (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }
  
  .hero-intro {
    padding-right: 0;
  }
  
  .title-word {
    font-size: 3.5rem;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  
  .nav-container {
    padding: 15px 40px;
  }
  
  .nav-links {
    gap: 25px;
  }
}

/* Desktop Large (1025px - 1366px) */
@media (min-width: 1025px) and (max-width: 1366px) {
  .title-word {
    font-size: 3.8rem;
  }
  
  .hero-content {
    gap: 60px;
  }
  
  .stats-container {
    gap: 25px;
  }
}

/* Desktop XL (1367px+) */
@media (min-width: 1367px) {
  .hero-container {
    max-width: 1600px;
  }
  
  .title-word {
    font-size: 4.5rem;
  }
  
  .hero-content {
    gap: 100px;
  }
  
  .stats-container {
    gap: 40px;
  }
}

/* Accessibility & Performance */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-color-scheme: light) {
  :root {
    --text-primary: #000000;
    --text-secondary: #333333;
  }
}









/* Projet*/


/* === AJOUTS POUR LA PAGE PROJETS === */

/* Projects Section */
.projects-section {
  min-height: 100vh;
  padding: 120px 20px 20px;
  position: relative;
}

.projects-container {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
}

.projects-header {
  text-align: center;
  margin-bottom: 60px;
}

.projects-title {
  font-size: 4rem;
  font-weight: 900;
  line-height: 0.9;
  color: var(--text-primary);
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
  margin-bottom: 20px;
  animation: slideInDown 1s ease forwards;
}

.projects-title .accent {
  color: var(--neon-green);
  text-shadow: 0 0 30px var(--neon-green);
  background: linear-gradient(45deg, var(--neon-green), var(--neon-blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.projects-subtitle {
  font-size: 1.3rem;
  font-family: 'Fira Code', monospace;
  color: var(--neon-green);
  opacity: 0;
  animation: fadeInUp 1s ease 0.5s forwards;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
  margin-top: 80px;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 30px;
  backdrop-filter: blur(15px);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  animation: projectSlideUp 0.8s ease forwards;
}

.project-card:nth-child(1) { animation-delay: 0.2s; }
.project-card:nth-child(2) { animation-delay: 0.4s; }
.project-card:nth-child(3) { animation-delay: 0.6s; }
.project-card:nth-child(4) { animation-delay: 0.8s; }

@keyframes projectSlideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-green), transparent);
  transition: left 0.5s;
}

.project-card:hover::before {
  left: 100%;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: var(--neon-green);
  box-shadow: var(--shadow-neon);
  background: linear-gradient(135deg, rgba(15, 15, 35, 0.95), rgba(0, 255, 65, 0.05));
}

.project-card.expanded {
  grid-column: 1 / -1;
  max-width: 100%;
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-primary);
  background: linear-gradient(135deg, rgba(15, 15, 35, 0.95), rgba(230, 86, 22, 0.05));
}

.project-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 20px;
  box-shadow: var(--shadow-primary);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.project-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.project-summary {
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.6;
  font-family: 'Fira Code', monospace;
}

.expand-arrow {
  font-size: 2rem;
  color: var(--neon-green);
  transition: all 0.3s ease;
  text-shadow: 0 0 10px var(--neon-green);
}

.project-card.expanded .expand-arrow {
  transform: rotate(180deg);
  color: var(--primary-color);
  text-shadow: 0 0 10px var(--primary-color);
}

/* Expanded Content */
.expanded-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.3s ease;
  margin-top: 30px;
}

.expanded-content.show {
  max-height: 2000px;
  padding-top: 30px;
  border-top: 1px solid var(--card-border);
}

.project-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.project-meta {
  background: rgba(0, 255, 65, 0.1);
  border: 1px solid rgba(0, 255, 65, 0.3);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
}

.meta-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.meta-icon {
  width: 40px;
  height: 40px;
  background: rgba(0, 255, 65, 0.2);
  border: 2px solid var(--neon-green);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.meta-info h4 {
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 700;
  text-shadow: 0 0 5px var(--neon-green);
}

.meta-info p {
  color: var(--neon-green);
  font-size: 0.9rem;
  font-family: 'Fira Code', monospace;
}

.project-description {
  background: rgba(230, 86, 22, 0.1);
  border: 1px solid rgba(230, 86, 22, 0.3);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 0 20px rgba(230, 86, 22, 0.2);
}

.project-description h4 {
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 0 0 5px var(--primary-color);
}

.project-description p {
  color: #ffffff;
  line-height: 1.6;
  margin-bottom: 15px;
}

.skills-section {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(0, 255, 65, 0.1), rgba(0, 255, 65, 0.05));
  border: 1px solid rgba(0, 255, 65, 0.3);
  border-radius: 15px;
  padding: 25px;
  margin: 20px 0;
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
}

.skills-section h4 {
  color: var(--text-primary);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 0 5px var(--neon-green);
}

.skills-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
}

.skills-list li {
  padding: 15px;
  background: rgba(0, 255, 65, 0.05);
  border: 1px solid rgba(0, 255, 65, 0.2);
  border-radius: 10px;
  color: #ffffff;
  transition: all 0.3s ease;
}

.skills-list li:hover {
  background: rgba(0, 255, 65, 0.1);
  border-color: var(--neon-green);
  transform: translateY(-3px);
}

.skills-list li strong {
  color: var(--neon-green);
  text-shadow: 0 0 5px var(--neon-green);
}

.competences-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.competence-tag {
  background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(230, 86, 22, 0.5);
  box-shadow: 0 0 10px rgba(230, 86, 22, 0.3);
  transition: all 0.3s ease;
}

.competence-tag:hover {
  box-shadow: 0 0 20px rgba(230, 86, 22, 0.5);
  transform: scale(1.05);
}

.project-conclusion {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 20px;
  margin: 20px 0;
  font-style: italic;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

/* Terminal styles pour projets */
.output.success {
  color: var(--neon-green);
}




/* effet souligner*/
.projects-title[data-text] {
  position: relative;
}

.projects-title[data-text]::before,
.projects-title[data-text]::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: -1;
}

.projects-title[data-text]::before {
  animation: glitch-1 2s infinite linear alternate-reverse;
  color: #ff00ff;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.projects-title[data-text]::after {
  animation: glitch-2 2s infinite linear alternate-reverse;
  color: #00ffff;
  clip-path: polygon(0 80%, 100% 20%, 100% 100%, 0 100%);
}
/* Mobile First - Version optimisée inspirée de votre code original */
.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(26, 26, 46, 0.95) 50%, rgba(22, 33, 62, 0.95) 100%);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  border: 1px solid rgba(0, 255, 65, 0.3);
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(0, 255, 65, 0.1);
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 0;
  opacity: 0;
  animation: projectSlideUp 0.8s ease forwards;
}

.project-preview {
  display: flex;
  align-items: center;
  min-height: 120px;
  padding: 1.5rem;
}

.project-image {
  width: 80px;
  height: 80px;
  background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  border: 2px solid rgba(0, 255, 65, 0.3);
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
  margin-right: 1.5rem;
  transition: all 0.3s ease;
}

.project-info {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-title-section h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.4rem;
  color: #fff;
  text-shadow: 0 0 10px var(--primary-color);
  font-weight: bold;
}

.project-summary {
  color: var(--neon-green);
  font-size: 0.9rem;
  line-height: 1.5;
  font-family: 'Courier New', monospace;
}




@keyframes glitch-1 {
  0%, 14%, 15%, 49%, 50%, 99%, 100% { transform: translateX(0); }
  1%, 13% { transform: translateX(-2px); }
  16%, 48% { transform: translateX(2px); }
}

@keyframes glitch-2 {
  0%, 20%, 21%, 62%, 63%, 99%, 100% { transform: translateX(0); }
  1%, 19% { transform: translateX(2px); }
  22%, 61% { transform: translateX(-2px); }
}


.expand-arrow {
  font-size: 1.5rem;
  transition: all 0.3s ease;
  color: var(--neon-green);
  margin-left: 1rem;
  text-shadow: 0 0 10px var(--neon-green);
}

.project-card.expanded .expand-arrow {
  transform: rotate(180deg);
  color: var(--primary-color);
  text-shadow: 0 0 10px var(--primary-color);
}

/* Responsive optimisé pour mobile */
@media (max-width: 768px) {
  .projects-section {
    padding: 100px 15px 100px;
  }
  
  .projects-title {
    font-size: 2.2rem;
    margin-bottom: 40px;
  }
  
  .projects-subtitle {
    font-size: 1rem;
    margin-bottom: 40px;
  }
  
  .projects-grid {
    gap: 1.5rem;
    margin-top: 1.5rem;
  }
  
  .project-card {
    margin-bottom: 0;
  }
  
  .project-preview {
    flex-direction: column;
    text-align: center;
    padding: 1.2rem;
    min-height: auto;
  }
  
  .project-image {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .project-info {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }
  
  .project-title-section {
    text-align: center;
    width: 100%;
  }
  
  .project-title-section h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
  }
  
  .project-summary {
    font-size: 0.85rem;
    text-align: center;
  }
  
  .expand-arrow {
    margin-left: 0;
    font-size: 1.3rem;
  }
  
  .expanded-content {
    padding: 0 1.2rem 1.2rem;
  }
  
  .expanded-content.show {
    padding: 1.5rem 1.2rem 1.2rem;
  }
  
  .project-details {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .project-meta,
  .project-description {
    padding: 1.2rem;
  }
  
  .meta-header {
    gap: 12px;
    margin-bottom: 12px;
  }
  
  .meta-icon {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .meta-info h4 {
    font-size: 1rem;
  }
  
  .meta-info p {
    font-size: 0.8rem;
  }
  
  .project-description h4 {
    font-size: 1rem;
    margin-bottom: 12px;
  }
  
  .project-description p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 12px;
  }
  
  .skills-section {
    padding: 1.2rem;
    margin: 1.2rem 0;
  }
  
  .skills-section h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
  }
  
  .skills-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .skills-list li {
    padding: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
  }
  
  .competences-tags {
    gap: 8px;
    margin-top: 15px;
  }
  
  .competence-tag {
    padding: 6px 12px;
    font-size: 0.75rem;
  }
  
  .project-conclusion {
    padding: 15px;
    margin: 15px 0;
    font-size: 0.9rem;
    line-height: 1.5;
  }
}

/* Mobile Landscape */
@media (max-width: 768px) and (orientation: landscape) {
  .projects-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }
  
  .projects-subtitle {
    font-size: 0.9rem;
    margin-bottom: 30px;
  }
  
  .project-preview {
    flex-direction: row;
    text-align: left;
    padding: 1rem;
  }
  
  .project-image {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    margin-right: 1rem;
    margin-bottom: 0;
  }
  
  .project-info {
    flex-direction: row;
    align-items: center;
  }
  
  .project-title-section {
    text-align: left;
  }
  
  .project-title-section h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
  
  .project-summary {
    font-size: 0.8rem;
    text-align: left;
  }
  
  .expand-arrow {
    margin-left: 1rem;
    font-size: 1.2rem;
  }
}

/* Tablet Portrait (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .project-preview {
    flex-direction: row;
    text-align: left;
  }
  
  .project-image {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
    margin-right: 1.5rem;
    margin-bottom: 0;
  }
  
  .project-info {
    flex-direction: row;
  }
  
  .project-title-section {
    text-align: left;
  }
  
  .project-title-section h3 {
    font-size: 1.6rem;
  }
  
  .project-summary {
    text-align: left;
  }
  
  .project-details {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }
}

/* Desktop (1025px+) */
@media (min-width: 1025px) {
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
  }
  
  .project-preview {
    flex-direction: row;
    text-align: left;
  }
  
  .project-image {
    width: 120px;
    height: 120px;
    font-size: 3rem;
    margin-right: 1.5rem;
    margin-bottom: 0;
  }
  
  .project-info {
    flex-direction: row;
  }
  
  .project-title-section {
    text-align: left;
  }
  
  .project-details {
    grid-template-columns: 1fr 1fr;
  }
}
