/* ===================================
   PORTFOLIO - STYLES CSS
   Design moderne avec thème sombre
   =================================== */

/* CSS Variables - Palette de couleurs */
:root {
  /* Couleurs principales */
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-tertiary: #1a2332;
  --bg-card: #151d2b;
  
  /* Couleurs d'accent */
  --accent-primary: #00d4ff;
  --accent-secondary: #7c3aed;
  --accent-tertiary: #f43f5e;
  --accent-gradient: linear-gradient(135deg, #00d4ff 0%, #7c3aed 50%, #f43f5e 100%);
  
  /* Texte */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Couleurs de code */
  --code-keyword: #c792ea;
  --code-string: #c3e88d;
  --code-function: #82aaff;
  --code-variable: #f78c6c;
  --code-comment: #546e7a;
  --code-boolean: #ff9cac;
  --code-property: #ffcb6b;
  
  /* Autres */
  --border-color: rgba(255, 255, 255, 0.08);
  --shadow-color: rgba(0, 0, 0, 0.3);
  --glow-primary: 0 0 30px rgba(0, 212, 255, 0.3);
  --glow-secondary: 0 0 30px rgba(124, 58, 237, 0.3);
  
  /* Typographie */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Fira Code', 'Consolas', monospace;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

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

/* ===================================
   PAGE LOADER
   =================================== */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  text-align: center;
  animation: loaderPulse 2s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.loader-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 2rem;
}

.loader-letter {
  font-family: var(--font-mono);
  font-size: 5rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: letterGlow 2s ease-in-out infinite;
}

@keyframes letterGlow {
  0%, 100% { 
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.5));
  }
  50% { 
    filter: drop-shadow(0 0 40px rgba(124, 58, 237, 0.8));
  }
}

.loader-cursor {
  font-family: var(--font-mono);
  font-size: 5rem;
  color: var(--accent-primary);
  animation: blink 0.8s infinite;
}

.loader-bar {
  width: 200px;
  height: 4px;
  background: var(--bg-tertiary);
  border-radius: 2px;
  margin: 0 auto 1.5rem;
  overflow: hidden;
}

.loader-progress {
  height: 100%;
  width: 0%;
  background: var(--accent-gradient);
  border-radius: 2px;
  animation: loadProgress 2s ease-out forwards;
}

@keyframes loadProgress {
  0% { width: 0%; }
  30% { width: 30%; }
  50% { width: 50%; }
  70% { width: 70%; }
  90% { width: 90%; }
  100% { width: 100%; }
}

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

.loader-dots::after {
  content: '';
  animation: loaderDots 1.5s infinite;
}

@keyframes loaderDots {
  0% { content: ''; }
  25% { content: '.'; }
  50% { content: '..'; }
  75% { content: '...'; }
  100% { content: ''; }
}

/* Particles Background */
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, var(--bg-primary) 0%, #0f172a 50%, var(--bg-secondary) 100%);
}

/* Selection */
::selection {
  background: var(--accent-primary);
  color: var(--bg-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

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

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

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

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===================================
   NAVIGATION
   =================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(10, 14, 23, 0.95);
  box-shadow: 0 10px 40px var(--shadow-color);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.25rem;
}

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

.logo-cursor {
  color: var(--accent-primary);
  animation: blink 1s infinite;
}

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

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  position: relative;
  padding: 0.5rem 0;
  transition: var(--transition-fast);
}

.nav-link::before {
  content: '>';
  margin-right: 0.5rem;
  color: var(--accent-primary);
  opacity: 0;
  transform: translateX(-10px);
  transition: var(--transition-fast);
  display: inline-block;
}

.nav-link:hover {
  color: var(--accent-primary);
}

.nav-link:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background: var(--accent-primary);
  transition: var(--transition-normal);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

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

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text {
  animation: fadeInUp 0.8s ease forwards;
}

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

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-title .highlight {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.typewriter-container {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
  min-height: 2.5rem;
}

.typewriter-text {
  display: inline;
}

.typewriter-cursor {
  animation: blink 0.8s infinite;
  margin-left: 2px;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
}

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

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(0, 212, 255, 0.4);
}

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

.btn-secondary:hover {
  background: rgba(0, 212, 255, 0.1);
  transform: translateY(-3px);
}

/* Code Window */
.hero-visual {
  animation: fadeInRight 0.8s ease 0.3s forwards;
  opacity: 0;
}

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

.code-window {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
              var(--glow-secondary);
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: var(--transition-slow);
}

.code-window:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.window-header {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color);
}

.window-controls {
  display: flex;
  gap: 8px;
}

.control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.control.close { background: #ff5f56; }
.control.minimize { background: #ffbd2e; }
.control.maximize { background: #27ca40; }

.window-title {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.code-content {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.8;
}

.code-line {
  display: flex;
  gap: 1.5rem;
}

.line-number {
  color: var(--text-muted);
  user-select: none;
  min-width: 20px;
  text-align: right;
}

.code-text {
  flex: 1;
}

.keyword { color: var(--code-keyword); }
.string { color: var(--code-string); }
.function { color: var(--code-function); }
.variable { color: var(--code-variable); }
.comment { color: var(--code-comment); font-style: italic; }
.boolean { color: var(--code-boolean); }
.property { color: var(--code-property); }

.cursor-line {
  width: 8px;
  height: 18px;
  background: var(--accent-primary);
  animation: blink 1s infinite;
  margin-left: calc(20px + 1.5rem);
  margin-top: 0.5rem;
}

/* ===================================
   SECTION STYLES (Common)
   =================================== */
section {
  padding: 6rem 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.title-number {
  font-family: var(--font-mono);
  color: var(--accent-primary);
  font-size: 1.25rem;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-color), transparent);
  max-width: 300px;
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about {
  background: rgba(17, 24, 39, 0.5);
}

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

.about-description {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.about-image {
  display: flex;
  justify-content: center;
}

.image-container {
  position: relative;
}

.profile-image {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 20px;
  border: 2px solid var(--border-color);
  position: relative;
  z-index: 2;
  transition: var(--transition-normal);
}

.profile-image:hover {
  border-color: var(--accent-primary);
  transform: scale(1.02);
  box-shadow: var(--glow-primary);
}

.image-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 250px;
  height: 250px;
  background: var(--accent-gradient);
  filter: blur(80px);
  opacity: 0.3;
  z-index: 1;
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.4; }
}

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

.skill-category {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  transition: var(--transition-normal);
}

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

.category-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.category-title i {
  color: var(--accent-primary);
  font-size: 1.25rem;
}

.skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-item {
  background: var(--bg-tertiary);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  transition: var(--transition-fast);
}

.skill-item:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  background: rgba(0, 212, 255, 0.1);
}

/* ===================================
   PROJECTS SECTION
   =================================== */
.projects {
  background: rgba(17, 24, 39, 0.5);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.project-card {
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-width: 450px;
  margin: 0 auto;
  width: 100%;
}

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

/* Project Image */
.project-image {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: var(--bg-tertiary);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.9), rgba(124, 58, 237, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.overlay-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  transition: var(--transition-fast);
}

.overlay-link:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

/* Project Content */
.project-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

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

.project-links {
  display: flex;
  gap: 0.75rem;
}

.project-links a {
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: var(--transition-fast);
}

.project-links a:hover {
  color: var(--accent-primary);
}

.project-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  transition: var(--transition-fast);
}

.project-card:hover .project-title {
  color: var(--accent-primary);
}

.project-description {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.project-tech span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-primary);
  padding: 0.25rem 0.75rem;
  background: rgba(0, 212, 255, 0.1);
  border-radius: 12px;
}

/* Project image placeholder fallback */
.project-image img[src*="placeholder"],
.project-image img:not([src]),
.project-image img[src=""] {
  display: none;
}

.project-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
  z-index: 0;
}

.project-image::after {
  content: '📸';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  opacity: 0.3;
  z-index: 1;
}

.project-image img {
  position: relative;
  z-index: 2;
}

.project-image img:not([src=""]):not([src*="undefined"]) + .project-overlay ~ ::before,
.project-image img:not([src=""]):not([src*="undefined"]) + .project-overlay ~ ::after {
  display: none;
}

/* ===================================
   TESTIMONIALS SECTION
   =================================== */
.testimonials {
  background: rgba(17, 24, 39, 0.5);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  transition: var(--transition-normal);
  position: relative;
  display: flex;
  flex-direction: column;
}

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

.testimonial-card.featured {
  border-color: var(--accent-secondary);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(124, 58, 237, 0.1) 100%);
}

.testimonial-card.featured:hover {
  border-color: var(--accent-secondary);
  box-shadow: var(--glow-secondary);
}

.testimonial-quote {
  margin-bottom: 1rem;
}

.testimonial-quote i {
  font-size: 2rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.5;
}

.testimonial-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  flex: 1;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--accent-primary);
}

.author-avatar i {
  font-size: 1.25rem;
  color: var(--accent-primary);
}

.author-info {
  flex: 1;
}

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

.author-role {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.testimonial-rating {
  display: flex;
  gap: 0.25rem;
}

.testimonial-rating i {
  color: #fbbf24;
  font-size: 0.875rem;
}

/* Responsive testimonials */
@media (max-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .testimonial-card.featured {
    order: -1;
  }
}

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

.contact-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.contact-description {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

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

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  transition: var(--transition-normal);
}

.contact-link:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-3px);
}

.contact-link i {
  font-size: 1.25rem;
}

/* Contact Form */
.contact-form {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn {
  width: 100%;
  justify-content: center;
}

/* hCaptcha Widget */
.h-captcha {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.h-captcha iframe {
  border-radius: 8px;
}

/* ===================================
   CTA SECTION
   =================================== */
.cta-section {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
  background: var(--bg-secondary);
}

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

.cta-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  animation: ctaGlowPulse 6s ease-in-out infinite;
}

.cta-glow-1 {
  width: 400px;
  height: 400px;
  background: var(--accent-primary);
  opacity: 0.15;
  top: -100px;
  left: -100px;
}

.cta-glow-2 {
  width: 300px;
  height: 300px;
  background: var(--accent-secondary);
  opacity: 0.15;
  bottom: -100px;
  right: -100px;
  animation-delay: 3s;
}

@keyframes ctaGlowPulse {
  0%, 100% { transform: scale(1); opacity: 0.15; }
  50% { transform: scale(1.2); opacity: 0.25; }
}

.cta-content {
  position: relative;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  z-index: 1;
}

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 50px;
  margin-bottom: 1.5rem;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(0, 212, 255, 0); }
}

.cta-badge i {
  color: var(--accent-primary);
  font-size: 0.9rem;
}

.cta-badge span {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-primary);
  font-weight: 500;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.cta-title .highlight {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.cta-features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.cta-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.cta-feature i {
  color: #27ca40;
  font-size: 1rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.cta-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cta-note i {
  color: var(--accent-primary);
}

/* Responsive CTA */
@media (max-width: 768px) {
  .cta-section {
    padding: 4rem 0;
  }
  
  .cta-features {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    width: 100%;
    padding: 0 1rem;
  }
  
  .btn-large {
    width: 100%;
    justify-content: center;
  }
}

/* ===================================
   FOOTER
   =================================== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

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

.footer-links a {
  color: var(--text-muted);
  font-size: 1.25rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-primary);
  transform: translateY(-3px);
}

/* ===================================
   ANIMATIONS & EFFECTS
   =================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .hero-text {
    order: 1;
  }
  
  .hero-visual {
    order: 2;
  }
  
  .hero-description {
    max-width: 100%;
    margin: 0 auto 2rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .code-window {
    transform: none;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .about-image {
    order: -1;
  }
  
  .skills-grid,
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: var(--transition-normal);
    border-left: 1px solid var(--border-color);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .hamburger {
    display: flex;
  }
  
  .hero {
    padding: 6rem 1.5rem 3rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .typewriter-container {
    font-size: 1.1rem;
    justify-content: center;
  }
  
  section {
    padding: 4rem 0;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .about-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .profile-image {
    width: 200px;
    height: 200px;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .contact-links {
    flex-direction: column;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  /* Projets - très petits écrans */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 0.5rem;
  }
  
  .project-card {
    max-width: 100%;
  }
  
  .project-image {
    height: 140px;
  }
  
  .project-content {
    padding: 1rem;
  }
  
  .project-title {
    font-size: 1rem;
  }
  
  .project-description {
    font-size: 0.8rem;
    -webkit-line-clamp: 2;
  }
  
  .project-tech span {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
  }
}
