  ============================================ */
:root {
  --primary: #6366f1;
  --secondary: #8b5cf6;
  --accent: #ec4899;
  --dark: #0f172a;
  --darker: #020617;
  --light: #f8fafc;
  --gray: #64748b;
  --success: #10b981;
  --warning: #f59e0b;
  --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 30px 90px rgba(0, 0, 0, 0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

section {
  scroll-margin-top: 100px; /* Pour compenser le header */
}

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

body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  overflow-x: hidden;
  background: var(--darker);
  color: var(--light);
  position: relative;
}

/* Fond animé avec particules */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
  z-index: -1;
  animation: backgroundMove 20s ease infinite;
}

@keyframes backgroundMove {
  0%, 100% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.1) translate(5%, 5%); }
}

/* ============================================
   HEADER & NAVIGATION - DESIGN MODERNE
   ============================================ */
header { 
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-list {
  margin: 0;
  padding: 15px 0;
}

.div-list {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.ul-list {
  list-style: none;
  display: flex;
  gap: 2rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  padding: 12px 30px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ul-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 30px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}

.ul-list li::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 30px;
  padding: 2px;
  background: var(--gradient-1);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
}

.ul-list li:hover::before,
.ul-list li.active::before {
  opacity: 1;
}

.ul-list li a {
  font-family: "Montserrat", sans-serif;
  text-decoration: none;
  color: var(--gray);
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ul-list li i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.ul-list li:hover a,
.ul-list li.active a {
  color: var(--light);
}

.ul-list li:hover i,
.ul-list li.active i {
  transform: scale(1.2);
}

.ul-list li.active {
  background: var(--gradient-1);
}
.ul-list li.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: var(--gradient-1);
  border-radius: 10px;
  animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 30px;
    opacity: 1;
  }
}

/* ============================================
   HOME SECTION - DESIGN ULTRA MODERNE
   ============================================ */
.home {
  min-height: 100vh;
  padding: 180px 8% 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Effet de lumière en arrière-plan */
.home::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.home::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite reverse;
}

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

.home-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.home-p {
  color: var(--success);
  background: rgba(16, 185, 129, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 30px;
  padding: 8px 18px;
  margin-bottom: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(16, 185, 129, 0.3);
  animation: slideInDown 1s ease;
}

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

.home-s {
  font-weight: bold;
  color: var(--success);
  font-size: 1.2rem;
  animation: pulse 2s ease infinite;
}

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

.info-home h1 {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 900;
  margin-bottom: 25px;
  line-height: 1.1;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideInLeft 1s ease;
  letter-spacing: -2px;
}

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

.info-home h3 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-family: "Playfair Display", serif;
  margin-bottom: 30px;
  min-height: 70px;
  color: var(--light);
  font-weight: 400;
  animation: slideInLeft 1.2s ease;
}

.info-p {
  margin-bottom: 30px;
  animation: fadeIn 1.5s ease;
}

.info-p p {
  color: var(--gray);
  font-size: 1.1rem;
  line-height: 1.9;
  margin-bottom: 8px;
}

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

.info-p2 {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 35px;
  animation: fadeIn 1.8s ease;
  flex-wrap: wrap;
}

.info-p2 p {
  color: var(--gray);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.btnn {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  animation: fadeInUp 2s ease;
  flex-wrap: wrap;
}

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

.btn-home1,
.btn-home2 {
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-home1 {
  background: var(--gradient-1);
  color: white;
  border: none;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.btn-home1::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-2);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: -1;
}

.btn-home1:hover::before {
  opacity: 1;
}

.btn-home1:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.5);
}

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

.btn-home2:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.hhr {
  margin: 40px 0;
  position: relative;
}

.hhr hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.follow {
  display: flex;
  align-items: center;
  gap: 25px;
  animation: fadeIn 2.2s ease;
}

.followw {
  color: var(--gray);
  font-size: 1rem;
  font-weight: 600;
}

.follow ul {
  display: flex;
  gap: 15px;
  list-style: none;
}

.follow ul li a {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--light);
  font-size: 1.3rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.follow ul li a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-1);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: -1;
}

.follow ul li a:hover::before {
  opacity: 1;
}

.follow ul li a:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.home-container img {
  width: 100%;
  max-width: 500px;
  border-radius: 30px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border: 3px solid rgba(99, 102, 241, 0.3);
  position: relative;
  animation: imageFloat 3s ease-in-out infinite;
}

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

.home-container img:hover {
  transform: scale(1.05) translateY(-10px);
  box-shadow: 0 40px 100px rgba(99, 102, 241, 0.4);
}

/* ============================================
   ABOUT SECTION - REDESIGN COMPLET
   ============================================ */
.about {
  min-height: 100vh;
  padding: 120px 8%;
  position: relative;
  background: linear-gradient(180deg, var(--darker) 0%, rgba(30, 41, 59, 0.5) 100%);
}

.about > p {
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 3px;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: 700;
  animation: slideInLeft 1s ease;
}

.title h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 15px;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideInLeft 1.2s ease;
}

.about .hrrr {
  margin: 30px 0 50px;
}

.about .hrrr hr {
  border: none;
  height: 4px;
  width: 120px;
  background: var(--gradient-1);
  border-radius: 10px;
  animation: expandWidth 1.5s ease;
}

@keyframes expandWidth {
  from { width: 0; }
  to { width: 120px; }
}

.about-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-info p {
  color: var(--gray);
  font-size: 1.1rem;
  line-height: 2;
  margin-bottom: 25px;
  animation: fadeIn 1.5s ease;
}

.about h2 {
  font-size: 2.5rem;
  margin: 50px 0 35px;
  color: var(--light);
  font-weight: 700;
  animation: slideInLeft 1.8s ease;
}

.card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
}

.c1 {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.c1::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-1);
  opacity: 0.1;
  transition: left 0.5s;
}

.c1:hover::before {
  left: 0;
}

.c1:hover {
  transform: translateY(-15px) scale(1.05);
  border-color: var(--primary);
  box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
}

.c1 h3 {
  font-size: 1.3rem;
  margin: 15px 0;
  color: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.c1 i {
  color: var(--primary);
  font-size: 2rem;
  transition: transform 0.4s;
}

.c1:hover i {
  transform: scale(1.3) rotate(10deg);
}

.c1 p {
  color: var(--gray);
  font-size: 1rem;
}

.about-container img {
  width: 100%;
  max-width: 450px;
  border-radius: 30px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  border: 3px solid var(--primary);
  object-fit: cover;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  animation: imageFloat 4s ease-in-out infinite;
}

.about-container img:hover {
  transform: scale(1.08) rotate(2deg);
  box-shadow: 0 40px 100px rgba(99, 102, 241, 0.5);
}

/* ============================================
   PROJECT SECTION - STYLE PREMIUM
   ============================================ */
.project {
  min-height: 100vh;
  padding: 120px 8%;
  text-align: center;
  background: var(--darker);
}

.project > p {
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 3px;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: 700;
}

.project h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  margin-bottom: 20px;
  background: var(--gradient-3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.project hr {
  width: 120px;
  height: 4px;
  background: var(--gradient-1);
  border: none;
  border-radius: 10px;
  margin: 0 auto 40px;
}

.info-pro p {
  color: var(--gray);
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto 60px;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 35px;
  max-width: 1300px;
  margin: 0 auto;
}

.project-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border-radius: 25px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-1);
  opacity: 0;
  transition: opacity 0.5s;
  z-index: 0;
}

.project-card:hover::before {
  opacity: 0.05;
}

.project-card:hover {
  transform: translateY(-15px);
  border-color: var(--primary);
  box-shadow: 0 25px 70px rgba(99, 102, 241, 0.4);
}

.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.project-card h3 {
  padding: 25px 25px 10px;
  font-size: 1.5rem;
  color: var(--light);
  position: relative;
  z-index: 1;
}

.project-card > p {
  padding: 0 25px 20px;
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.skills {
  padding: 0 25px 25px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.skills a {
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(99, 102, 241, 0.3);
  transition: all 0.3s;
}

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

.btns {
  padding: 0 25px 25px;
  display: flex;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.btn {
  flex: 1;
  background: rgba(99, 102, 241, 0.2);
  color: var(--light);
  padding: 12px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(99, 102, 241, 0.3);
  transition: all 0.3s;
}

.btn:hover {
  background: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

/* ============================================
   SERVICES SECTION - ULTRA MODERNE
   ============================================ */
.services {
  min-height: 100vh;
  padding: 120px 8%;
  text-align: center;
  background: linear-gradient(180deg, var(--darker) 0%, rgba(30, 41, 59, 0.5) 100%);
}

.services > p {
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 3px;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: 700;
}

.services h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  margin-bottom: 20px;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.services hr {
  width: 120px;
  height: 4px;
  background: var(--gradient-1);
  border: none;
  border-radius: 10px;
  margin: 0 auto 60px;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 35px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  padding: 40px 30px;
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: var(--gradient-1);
  opacity: 0;
  transition: all 0.6s;
  transform: rotate(45deg);
}

.service-card:hover::before {
  opacity: 0.1;
  top: -10%;
  left: -10%;
}

.service-card:hover {
  transform: translateY(-20px);
  border-color: var(--primary);
  box-shadow: 0 30px 80px rgba(99, 102, 241, 0.4);
}

.service-card img {
  width: 90px;
  height: 90px;
  margin-bottom: 25px;
  transition: all 0.5s;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.3));
}

.service-card:hover img {
  transform: scale(1.15) rotate(10deg);
  filter: drop-shadow(0 0 30px rgba(99, 102, 241, 0.6));
}

.service-card h3 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: var(--light);
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.service-card p {
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

/* ============================================
   CONTACT SECTION - DESIGN PREMIUM
   ============================================ */
.contact {
  min-height: 100vh;
  padding: 120px 8%;
  text-align: center;
  background: var(--darker);
}

.contact > p {
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 3px;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: 700;
}

.contact h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  margin-bottom: 60px;
  background: var(--gradient-3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  text-align: left;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info > p {
  font-size: 1.1rem;
  color: var(--gray);
  line-height: 1.9;
  margin-bottom: 40px;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 40px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s;
}

.contact-item:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--primary);
  transform: translateX(10px);
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--primary);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.15);
  border-radius: 12px;
}

.contact-item span {
  color: var(--light);
  font-size: 1rem;
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-link {
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--light);
  font-size: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-1);
  opacity: 0;
  transition: opacity 0.4s;
}

.social-link:hover::before {
  opacity: 1;
}

.social-link:hover {
  transform: translateY(-8px) scale(1.15);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.5);
}

.social-link i {
  position: relative;
  z-index: 1;
}

/* Formulaire ultra moderne */
.contact-form {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  padding: 50px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.form-group {
  margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 18px 25px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  color: var(--light);
  font-size: 1rem;
  font-family: "Montserrat", sans-serif;
  transition: all 0.4s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.05);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

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

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

.btn-send {
  width: 100%;
  padding: 18px;
  background: var(--gradient-1);
  color: rgb(18, 3, 3);
  border: none;
  border-radius: 15px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-send::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-2);
  opacity: 0;
  transition: opacity 0.4s;
}

.btn-send:hover::before {
  opacity: 1;
}

.btn-send:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(99, 102, 241, 0.5);
}

.btn-send span {
  position: relative;
  z-index: 1;
}

/* ============================================
   FOOTER - DESIGN PREMIUM
   ============================================ */
.footer {
  background: linear-gradient(180deg, var(--darker) 0%, #000 100%);
  padding: 80px 8% 40px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 100px;
}

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

.footer-logo {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 30px;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  padding: 0;
}

.footer-links a {
  color: var(--gray);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s;
  position: relative;
}

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

.footer-links a:hover::after {
  width: 100%;
}

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

.footer-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.footer-social a {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--light);
  font-size: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s;
}

.footer-social a:hover {
  background: var(--primary);
  transform: translateY(-8px) rotate(15deg);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.5);
}

.footer-copy {
  color: var(--gray);
  font-size: 0.95rem;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   ANIMATIONS & REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.active-reveal {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   LOADING SCREEN - ULTRA MODERNE
   ============================================ */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #000 0%, #1a1a2e 50%, #000 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  overflow: hidden;
  transition: opacity 0.5s ease;
}

#loading-screen::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle, rgba(99, 102, 241, 0.1) 2px, transparent 2px),
    radial-gradient(circle, rgba(139, 92, 246, 0.1) 1px, transparent 1px);
  background-size: 50px 50px, 30px 30px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

.loading-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.loading-content .main-icon {
  font-size: 5rem;
  color: var(--primary);
  margin-bottom: 30px;
  filter: drop-shadow(0 0 30px rgba(99, 102, 241, 0.8));
}

#loading-text {
  font-size: 3rem;
  font-weight: 900;
  margin: 20px 0;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 5px;
}

.sub-icons {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 30px 0;
}

.sub-icons i {
  font-size: 2rem;
  color: var(--primary);
  animation: iconBounce 2s ease infinite;
}

.sub-icons i:nth-child(2) {
  animation-delay: 0.2s;
}

.sub-icons i:nth-child(3) {
  animation-delay: 0.4s;
}

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

#designer-text {
  font-size: 1.5rem;
  color: var(--gray);
  font-weight: 300;
  margin-top: 20px;
}

.hidden {
  opacity: 0;
  transform: translateY(-100px);
}

.fall {
  animation: fall 0.9s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fall {
  0% {
    opacity: 0;
    transform: translateY(-100px);
  }
  60% {
    opacity: 1;
    transform: translateY(15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
  .home-container,
  .about-container,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }

  .home-container img,
  .about-container img {
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 1024px) {
  header {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    min-height: 60px;
  }

  .header-list {
    padding: 0;
  }

  .div-list {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
  }

  .ul-list {
    display: none !important;
  }

  .controls {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
    width: auto;
    padding: 0;
  }

  .language-switcher {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 25px;
    padding: 4px;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.15);
  }

  .lang-btn {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: var(--light);
    cursor: pointer;
    border-radius: 20px;
    font-size: 1.2rem;
    min-width: auto;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }

  .theme-toggle {
    min-width: 45px;
    min-height: 45px;
    width: 45px;
    height: 45px;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center;
    justify-content: center;
  }

  .home,
  .about,
  .project,
  .services,
  .contact {
    padding: 100px 5%;
  }
}

@media (max-width: 768px) {
  .home,
  .about,
  .project,
  .services,
  .contact {
    padding: 80px 20px;
  }

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

  .btn-home1,
  .btn-home2 {
    width: 100%;
  }

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

  .info-p2 {
    flex-direction: column;
    gap: 15px;
  }

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

  .contact-form {
    padding: 30px;
  }

  .footer-links {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  #loading-text {
    font-size: 2rem;
  }

  .loading-content .main-icon {
    font-size: 3rem;
  }

  .sub-icons i {
    font-size: 1.5rem;
  }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}
* ============================================
   ⚡ OPTIMISATIONS DE PERFORMANCE
   À AJOUTER À LA FIN DE VOTRE FICHIER stayle.css
   ============================================ */

/* Utiliser will-change avec parcimonie pour les animations */
.ul-list li,
.project-card,
.service-card,
.c1,
.btn-home1,
.btn-home2,
.social-link,
.follow ul li a {
  will-change: transform;
}

/* Enlever will-change après animation pour économiser la mémoire */
.ul-list li:hover,
.project-card:hover,
.service-card:hover,
.c1:hover,
.social-link:hover,
.follow ul li a:hover {
  will-change: auto;
}

/* Optimiser les sections avec contain */
section {
  contain: layout style paint;
}

/* CORRECTION CRITIQUE: Accélération GPU pour le header */
header {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Optimiser les images */
img {
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* ============================================
   🎯 CORRECTION: SCROLL-PADDING POUR LA NAVIGATION
   ============================================ */
html {
  scroll-padding-top: 80px; /* Compense la hauteur du header fixe */
}

@media (max-width: 1024px) {
  html {
    scroll-padding-top: 60px;
  }
}

@media (max-width: 480px) {
  html {
    scroll-padding-top: 50px;
  }
}

/* Améliorer la visibilité de la section active */
section:target {
  animation: highlightSection 1s ease;
}

@keyframes highlightSection {
  0% {
    background: rgba(99, 102, 241, 0.05);
  }
  100% {
    background: transparent;
  }
}

/* ============================================
   📱 OPTIMISATIONS MOBILE
   ============================================ */

/* Désactiver les animations pour économiser la batterie */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Réduire les animations coûteuses sur mobile */
@media (max-width: 768px) {
  body::before,
  .home::before,
  .home::after {
    animation: none;
    opacity: 0.3;
  }
  
  /* Simplifier les effets sur tactile */
  .ul-list li:hover::before,
  .ul-list li.active::before {
    transition: none;
  }
  
  /* Réduire les ombres complexes */
  .project-card,
  .service-card,
  .contact-form {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
  }
}

/* ============================================
   🔧 CORRECTIONS SUPPLÉMENTAIRES
   ============================================ */

/* Améliorer la fluidité du scroll */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Optimiser le rendu des transformations */
.btn-home1::before,
.btn-home2,
.project-card::before,
.service-card::before,
.c1::before,
.social-link::before {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Améliorer la performance des gradients */
.footer,
.about,
.services {
  background-attachment: fixed;
}

@media (max-width: 768px) {
  .footer,
  .about,
  .services {
    background-attachment: scroll; /* Plus performant sur mobile */
  }
}
/* ============================================
   MODE CLAIR - VARIABLES
   ============================================ */
[data-theme="light"] {
    --darker: #ffffff;
    --dark: #f8fafc;
    --light: #0f172a;
    --gray: #475569;
    --primary: #6366f1;
    --secondary: #8b5cf6;
    --accent: #ec4899;
}

[data-theme="light"] body {
    background: #ffffff;
    color: #0f172a;
}

[data-theme="light"] body::before {
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
}

[data-theme="light"] header {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .ul-list {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .ul-list li a {
    color: #475569;
}

[data-theme="light"] .ul-list li.active a,
[data-theme="light"] .ul-list li:hover a {
    color: #0f172a;
}

[data-theme="light"] .project-card,
[data-theme="light"] .service-card,
[data-theme="light"] .c1,
[data-theme="light"] .contact-form {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* ============================================
   CONTRÔLES (Langue + Theme)
   ============================================ */
.controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}

/* Switch Langue */
.language-switcher {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    padding: 4px;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-btn {
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: var(--gray);
    cursor: pointer;
    border-radius: 20px;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.lang-btn.active {
    background: var(--gradient-1);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.lang-btn:hover {
    transform: scale(1.05);
}

/* Switch Theme */
.theme-toggle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--light);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    background: var(--gradient-1);
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.4);
}

[data-theme="light"] .theme-toggle {
    border-color: rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.05);
    color: #f59e0b;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .controls {
        position: static;
        bottom: auto;
        right: auto;
        flex-direction: row;
        z-index: 999;
        gap: 10px;
        display: flex !important;
        width: auto;
        height: auto;
        visibility: visible !important;
        opacity: 1 !important;
        margin-left: auto;
        padding: 0 15px;
    }

    .language-switcher {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 25px;
        padding: 4px;
        gap: 5px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        min-width: auto;
        width: auto;
    }

    .lang-btn {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        padding: 8px 12px;
        border: none;
        background: transparent;
        cursor: pointer;
        border-radius: 20px;
        font-size: 1.2rem;
        min-width: auto;
        width: auto;
        height: auto;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }

    .theme-toggle {
        min-width: 45px;
        min-height: 45px;
        width: 45px;
        height: 45px;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        align-items: center;
        justify-content: center;
    }
}
/* ============================================
   MODE CLAIR - VARIABLES
   ============================================ */
[data-theme="light"] {
    --darker: #ffffff;
    --dark: #f8fafc;
    --light: #0f172a;
    --gray: #475569;
}

[data-theme="light"] body {
    background: #ffffff;
    color: #0f172a;
}

[data-theme="light"] body::before {
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
}

[data-theme="light"] header {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .ul-list {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .ul-list li a {
    color: #475569;
}

[data-theme="light"] .ul-list li.active a,
[data-theme="light"] .ul-list li:hover a {
    color: #0f172a;
}

[data-theme="light"] .project-card,
[data-theme="light"] .service-card,
[data-theme="light"] .c1,
[data-theme="light"] .contact-form {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .info-p p,
[data-theme="light"] .about-info p,
[data-theme="light"] .project-card > p,
[data-theme="light"] .service-card p {
    color: #475569;
}

/* ============================================
   CONTRÔLES
   ============================================ */
.controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}

.language-switcher {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    padding: 4px;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-btn {
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: var(--gray);
    cursor: pointer;
    border-radius: 20px;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.lang-btn.active {
    background: var(--gradient-1);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.lang-btn:hover {
    transform: scale(1.05);
}

.theme-toggle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--light);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    background: var(--gradient-1);
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.4);
}

[data-theme="light"] .theme-toggle {
    border-color: rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.05);
    color: #f59e0b;
}

@media (max-width: 1024px) {
    .ul-list {
        display: none !important;
    }

    .controls {
        position: relative;
        bottom: auto;
        right: auto;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        z-index: 999;
        gap: 10px;
        padding: 8px 12px;
        background: rgba(15, 23, 42, 0.94);
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
        margin-left: auto;
    }

    .language-switcher {
        background: rgba(255, 255, 255, 0.08);
        padding: 4px 6px;
    }

    .lang-btn {
        padding: 8px 10px;
        font-size: 1.3rem;
    }

    .theme-toggle {
        width: 42px !important;
        height: 42px !important;
    }
}


/* Force mobile language + theme buttons visible */
@media (max-width: 1024px) {
    .header-list,
    .div-list {
        justify-content: flex-end;
    }

    .ul-list {
        display: none !important;
    }

    .controls {
        display: flex !important;
        position: fixed !important;
        bottom: 20px !important;
        right: 20px !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 8px 12px !important;
        background: rgba(15, 23, 42, 0.95) !important;
        border-radius: 999px !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35) !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .language-switcher {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border-radius: 25px !important;
        padding: 4px !important;
        gap: 5px !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
    }

    .lang-btn {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        padding: 8px 12px !important;
        border: none !important;
        background: transparent !important;
        color: var(--light) !important;
        cursor: pointer !important;
        border-radius: 20px !important;
        font-size: 1.4rem !important;
        min-width: auto !important;
        width: auto !important;
        height: auto !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1 !important;
    }

    .theme-toggle {
        min-width: 45px !important;
        min-height: 45px !important;
        width: 45px !important;
        height: 45px !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
    }
}
