/* Loader Styles */
#loader {
  position: fixed;
  inset: 0;
  background: #1a1a2e;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader-circles {
  position: relative;
  width: 120px;
  height: 120px;
}

.circle {
  position: absolute;
  border-radius: 50%;
  border: 4px solid transparent;
  animation: spin 1.5s linear infinite;
}

.circle-violet {
  width: 120px; height: 120px;
  border-color: #6c63ff transparent transparent transparent;
  animation-delay: 0s;
}

.circle-white {
  width: 80px; height: 80px;
  border-color: white transparent transparent transparent;
  left: 20px; top: 20px;
  animation-delay: 0.4s;
}

.circle-violet:nth-child(3) {
  width: 60px; height: 60px;
  border-color: #6c63ff transparent transparent transparent;
  left: 30px; top: 30px;
  animation-delay: 0.8s;
}

.circle-white:nth-child(4) {
  width: 40px; height: 40px;
  border-color: white transparent transparent transparent;
  left: 40px; top: 40px;
  animation-delay: 1.2s;
}

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

.loader-text {
  margin-top: 32px;
  color: #fff;
  font-family: 'Poppins', monospace, sans-serif;
  font-size: 1.2rem;
  letter-spacing: 2px;
  opacity: 0.8;
}

.loader-text span {
  background: linear-gradient(90deg, #6c63ff, #fff, #6c63ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== VARIABLES ===== */
:root {
  --primary-color: #6c63ff;
  --secondary-color: #4a40e2;
  --accent-color: #ff6584;
  --dark-color: #2d2b55;
  --light-color: #f8f9fa;
  --text-color: #333;
  --text-light: #6c757d;
  --background-color: #ffffff;
  --card-bg: #ffffff;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --border-radius: 8px;
  --font-primary: 'Poppins', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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


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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

section {
  padding: 100px 0;
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  color: var(--dark-color);
}

.section-title::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.highlight {
  color: var(--primary-color);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  outline: none;
  text-align: center;
  font-size: 1rem;
}

.btn.primary {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

.btn.primary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(108, 99, 255, 0.4);
}

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

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

.btn i {
  margin-left: 8px;
}

/* ===== PARTICLES BACKGROUND ===== */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
  opacity: 0.5;
}

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 1000;
  background-color: var(--header-bg, rgba(255, 255, 255, 0.95));
  box-shadow: var(--header-shadow, 0 2px 10px rgba(0, 0, 0, 0.1));
  transition: var(--transition);
}

nav.scrolled {
  padding: 15px 0;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  position: relative;
  font-weight: 500;
  transition: var(--transition);
}

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  cursor: pointer;
}

.hamburger {
  width: 25px;
  height: 3px;
  background-color: var(--dark-color);
  position: relative;
  transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 3px;
  background-color: var(--dark-color);
  transition: var(--transition);
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

/* ===== HERO SECTION ===== */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-content {
  max-width: 800px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 3s forwards 0.5s;
}

.hero h2 {
  font-size: 2rem;
  color: var(--text-light);
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 3s forwards 0.7s;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 3s forwards 0.9s;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 3s forwards 1.1s;
}

.social-icons {
  display: flex;
  gap: 15px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 3s forwards 1.3s;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--light-color);
  color: var(--dark-color);
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-5px);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  animation: fadeIn 1s forwards 1.5s;
}

.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid var(--text-light);
  border-radius: 20px;
  position: relative;
  margin-bottom: 10px;
}

.wheel {
  width: 6px;
  height: 10px;
  background-color: var(--primary-color);
  border-radius: 3px;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 1.5s infinite;
}

.arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.arrow span {
  display: block;
  width: 10px;
  height: 10px;
  border-bottom: 2px solid var(--text-light);
  border-right: 2px solid var(--text-light);
  transform: rotate(45deg);
  animation: arrowDown 1.5s infinite;
}

.arrow span:nth-child(2) {
  animation-delay: 0.2s;
}

.arrow span:nth-child(3) {
  animation-delay: 0.4s;
}

/* Typewriter effect */
.typewriter {
  overflow: hidden;
  border-right: 3px solid var(--primary-color);
  white-space: nowrap;
  margin: 0 auto;
  letter-spacing: 2px;
  animation: 
    typing 3.5s steps(40, end),
    blink-caret 0.75s step-end infinite;
}

/* ===== ABOUT SECTION ===== */
.about-content {
  display: flex;
  gap: 50px;
  align-items: center;
}

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

.image-container {
  position: relative;
  width: 300px;
  height: 300px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.image-container:hover {
  transform: translateY(-10px) rotate(3deg);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.image-container::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--primary-color), transparent);
  opacity: 0.3;
  z-index: 1;
  transition: var(--transition);
}

.image-container:hover::before {
  opacity: 0.5;
}

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

.image-container:hover img {
  transform: scale(1.05);
}

.about-text {
  flex: 1.5;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.about-details {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 30px 0;
}

.detail {
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

/* ===== SKILLS SECTION ===== */
.skills-container {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.skill-category h3 {
  font-size: 1.5rem;
  margin-bottom: 30px;
  color: var(--dark-color);
  position: relative;
  display: inline-block;
}

.skill-category h3::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 3px;
  background: var(--primary-color);
  bottom: -8px;
  left: 0;
  border-radius: 2px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 30px;
}

.skill-item {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: var(--card-shadow);
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.skill-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.skill-item::before {
  content: attr(data-skill);
  position: absolute;
  top: -60px;
  right: -60px;
  width: 120px;
  height: 120px;
  background-color: rgba(108, 99, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0;
  transition: var(--transition);
}

.skill-item:hover::before {
  opacity: 1;
  top: -50px;
  right: -50px;
}

.skill-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.skill-item h4 {
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.skill-level {
  width: 100%;
  height: 8px;
  background-color: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
}

.progress {
  height: 100%;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 4px;
  transition: width 1.5s ease-in-out;
}

/* ===== PROJECTS SECTION ===== */
.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  background-color: var(--light-color);
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

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

/* ======================================
   GRILLE DE PROJETS
   ====================================== */
   .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); /* Colonnes responsives */
    gap: 30px; /* Espacement entre les cartes */
  }
  
  /* ======================================
     CARTE DE PROJET - BASE
     ====================================== */
  .project-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden; /* Empêche le débordement du contenu */
    box-shadow: var(--card-shadow);
    transition: var(--transition);
  }
  
  .project-card:hover {
    transform: translateY(-10px); /* Effet de soulèvement au survol */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15); /* Ombre plus prononcée au survol */
  }
  
  /* ======================================
     IMAGE DU PROJET
     ====================================== */
  .project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
  }
  
  .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Couvre la zone sans déformer l'image */
    transition: var(--transition);
  }
  
  .project-card:hover .project-image img {
    transform: scale(1.1); /* Zoom sur l'image au survol */
  }
  
  /* ======================================
     OVERLAY DU PROJET
     ====================================== */
  .project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 43, 85, 0.8); /* Fond semi-transparent */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; /* Invisible par défaut */
    transition: var(--transition);
  }
  
  .project-card:hover .project-overlay {
    opacity: 1; /* Visible au survol */
  }
  
  /* Message "En développement" pour tous les projets SAUF le premier ET le troisième */
.project-card:not(:nth-child(1)):not(:nth-child(3)) .project-overlay::after {
  content: "En développement";
  color: white;
  font-size: 1.2rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}
.project-card:not(:nth-child(1)):not(:nth-child(3)):hover .project-overlay::after {
  opacity: 1;
  transform: translateY(0);
}

  
  .project-card:not([data-category="web"]:first-child):hover .project-overlay::after {
    opacity: 1;
    transform: translateY(0); /* Animation du texte au survol */
  }
  
  /* ======================================
     LIENS DU PROJET
     ====================================== */
  /* Animation des liens au survol */
  .project-card:hover .project-links a {
    opacity: 1;
    transform: translateY(0);
  }
  
  .project-card:hover .project-links a:nth-child(1) {
    transition-delay: 0.1s; /* Délai pour effet cascade */
  }
  
  .project-card:hover .project-links a:nth-child(2) {
    transition-delay: 0.2s; /* Délai plus long pour le second lien */
  }
  
  .project-links a:hover {
    background-color: var(--primary-color);
    color: white;
  }
  
  /* ======================================
     SPÉCIFICITÉS POUR LE PREMIER PROJET WEB
     ====================================== */
  /* Configuration spéciale pour le premier projet web */
  .project-card[data-category="web"]:first-child .project-links {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .project-card[data-category="web"]:first-child .project-links a {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
  }
  
  .project-card[data-category="web"]:first-child .project-links a:hover {
    background-color: transparent;
  }
  
  /* Style de l'icône pour le premier projet web */
  .project-card[data-category="web"]:first-child .project-links a i {
    background-color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem; /* Taille augmentée de l'icône */
  }
  
  .project-card[data-category="web"]:first-child .project-links a:hover i {
    background-color: var(--primary-color);
    color: white;
  }
  
  /* Masquer les liens pour tous les projets sauf le premier web */
  .project-card:not([data-category="web"]:first-child) .project-links {
    display: none;
  }
  
  /* Masquer le lien GitHub pour le premier projet */
.project-card[data-category="web"]:first-child .project-links a:nth-child(2) {
  display: none;
}

/* Masquer le lien GitHub pour le troisième projet */
.project-card:nth-child(3) .project-links a:nth-child(2) {
  display: none;
}

  /* ===== Projet 3 : Animation œil au hover, toute l'image cliquable ===== */

/* On cible le 3e .project-card de la grille */
.projects-grid .project-card:nth-child(3) .project-image {
  position: relative;
}

.projects-grid .project-card:nth-child(3) .project-eye-link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}

.projects-grid .project-card:nth-child(3) .project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(45, 43, 85, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  z-index: 2;
}

.projects-grid .project-card:nth-child(3):hover .project-overlay,
.projects-grid .project-card:nth-child(3) .project-eye-link:focus .project-overlay {
  opacity: 1;
}

.projects-grid .project-card:nth-child(3) .project-links {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.projects-grid .project-card:nth-child(3) .project-links i {
  font-size: 1.8rem;
  background: white;
  color: var(--primary-color);
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.projects-grid .project-card:nth-child(3):hover .project-links i,
.projects-grid .project-card:nth-child(3) .project-eye-link:focus .project-links i {
  background: var(--primary-color);
  color: white;
}

/* Mode sombre pour le projet 3 */
[data-theme="dark"] .projects-grid .project-card:nth-child(3) .project-links i {
  background: var(--dark-color);
  color: var(--background-color);
}
[data-theme="dark"] .projects-grid .project-card:nth-child(3):hover .project-links i,
[data-theme="dark"] .projects-grid .project-card:nth-child(3) .project-eye-link:focus .project-links i {
  background: var(--primary-color);
  color: white;
}

  /* ======================================
     ADAPTATIONS POUR LE THÈME SOMBRE
     ====================================== */
  [data-theme="dark"] .project-card[data-category="web"]:first-child .project-links a i {
    background-color: var(--dark-color);
    color: var(--background-color);
  }
  
  [data-theme="dark"] .project-card[data-category="web"]:first-child .project-links a:hover i {
    background-color: var(--primary-color);
    color: white;
  }
  
  /* ======================================
     INFORMATIONS DU PROJET
     ====================================== */
  .project-info {
    padding: 20px;
  }
  
  .project-info h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
  }
  
  .project-info p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 0.95rem;
  }
  
  /* ======================================
     TECHNOLOGIES DU PROJET
     ====================================== */
  .project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .project-tech span {
    background-color: rgba(108, 99, 255, 0.1);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
  }
  

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scrollWheel {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
}

@keyframes arrowDown {
  0% {
    opacity: 0;
    transform: rotate(45deg) translate(-5px, -5px);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(45deg) translate(5px, 5px);
  }
}

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

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: var(--primary-color) }
}
/* ===== FRMULAIRE ===== */
.contact-form .form-group input,
.contact-form .form-group textarea {
  width: 100%;
  padding: 12px 15px;
  font-size: 1rem;
  border: 1px solid #e0e0e0;
  border-radius: var(--border-radius);
  background-color: transparent;
  transition: var(--transition);
}

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

.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.2);
}
.contact-form .form-group {
  position: relative;
  margin-bottom: 25px;
  margin-top: 25px
}

.contact-form .form-group label {
  position: absolute;
  top: -25x;
  left: 0;
  font-size: 0.9rem;
  color: var(--text-light);
  transition: var(--transition);
}

.contact-form .form-group input,
.contact-form .form-group textarea {
  margin-top: 25px;

}
@media (max-width: 480px) {
  .projects-grid, .skills-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  section {
    padding: 50px 0;
  }
  .container {
    width: 95%;
  }
}
@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 10px;
  }
  
  .hero h2 {
    font-size: 1.2rem;
    margin-bottom: 15px;
  }
}
@media (max-width: 480px) {
  section {
    padding: 40px 0;
  }
  
  .hero {
    height: auto;
    min-height: 90vh;
  }
  
  .hero-content {
    padding-top: 60px;
  }
}
@media (max-width: 480px) {
  .cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }
  
  .btn {
    width: 100%;
    padding: 12px 20px;
  }
}
@media (max-width: 768px) {
  .nav-links {
    display: none; /* Masquer les liens par défaut */
  }
  
  .menu-toggle {
    display: block; /* Afficher le menu hamburger */
  }
  
  /* Style pour le menu mobile déplié */
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }
}
.theme-toggle {
  margin-left: auto; /* Au lieu de margin-left: 20px */
}

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

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center; /* Ajouter cette ligne */
}


.theme-toggle button {
  background: transparent;
  border: none;
  color: var(--text-color);
  font-size: 1.2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.theme-toggle button:hover {
  background-color: rgba(108, 99, 255, 0.1);
}

/* Variables pour le mode sombre */
[data-theme="dark"] {
  --primary-color: #8c83ff;
  --secondary-color: #6a60ff;
  --dark-color: #f8f9fa;
  --light-color: #2d2b55;
  --text-color: #f8f9fa;
  --text-light: #b4b4b4;
  --background-color: #1a1a2e;
  --card-bg: #252542;
 /* Nouvelles variables pour le header */
 --header-bg: rgba(26, 26, 46, 0.95);
 --header-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
[data-theme="dark"] .contact-form .form-group input,
[data-theme="dark"] .contact-form .form-group textarea {
  color: white;
  border-color: #3a3a5e;
}

[data-theme="dark"] .contact-form .form-group input::placeholder,
[data-theme="dark"] .contact-form .form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

/* Styles existants... */

/* ===== RESPONSIVE DESIGN ===== */

/* Grands écrans (1200px et plus) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Tablettes et petits ordinateurs (992px à 1199px) */
@media (max-width: 1199px) {
  .container {
    max-width: 960px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablettes (768px à 991px) */
@media (max-width: 991px) {
  .container {
    max-width: 720px;
  }

  .about-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .about-text {
    flex: 1;
  }

  .about-details {
    justify-content: center;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobiles et petites tablettes (576px à 767px) */
@media (max-width: 767px) {
  .container {
    max-width: 540px;
    padding: 0 20px;
  }

  nav {
    padding: 15px 0;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--background-color);
    flex-direction: column;
    padding: 40px 20px;
    transition: 0.3s;
    z-index: 999;
  }

  .nav-links.active {
    left: 0;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    padding-top: 100px;
    text-align: center;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero h2 {
    font-size: 1.5rem;
  }

  .cta-buttons {
    justify-content: center;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .contact-container {
    flex-direction: column;
    gap: 40px;
  }
}

/* Petits mobiles (moins de 576px) */
@media (max-width: 575px) {
  .container {
    width: 100%;
    padding: 0 15px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero h2 {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .about-image .image-container {
    width: 250px;
    height: 250px;
  }

  .contact-form .form-group {
    margin-bottom: 20px;
  }
}

/* Ajustements pour le menu mobile */
@media (max-width: 767px) {
  .menu-toggle.active .hamburger {
    background-color: transparent;
  }

  .menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
  }

  .menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 15px 0;
  }

  .theme-toggle {
    margin: 20px 0;
  }
}

/* Ajustements pour le mode sombre sur mobile */
@media (max-width: 767px) {
  [data-theme="dark"] .nav-links {
    background-color: var(--background-color);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
}