:root {
  --primary-color: #2563eb;    /* Bleu plus moderne */
  --secondary-color: #1e40af;  /* Bleu foncé */
  --accent-color: #3b82f6;     /* Bleu clair */
  --text-color: #1f2937;
  --light-gray: #f3f4f6;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* Navigation */
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--white);
  box-shadow: var(--shadow);
  z-index: 1000;
  padding: 1rem 0;
}

.nav-scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
}

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

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

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: var(--transition);
}

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

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  position: relative;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.8rem;
  color: #ffffff;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  color: #ffffff;
  background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

/* Animations améliorées */
.animated-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.shape {
  position: absolute;
  background: linear-gradient(45deg, #4f46e5, #3b82f6);
  opacity: 0.15;
  animation: shapeFloat 20s infinite;
}

.shape-1 {
  width: 400px;
  height: 400px;
  top: -150px;
  right: -150px;
  border-radius: 43% 57% 70% 30% / 45% 45% 55% 55%;
  animation: morph1 15s linear infinite, shapeFloat 20s infinite;
}

.shape-2 {
  width: 300px;
  height: 300px;
  bottom: -100px;
  left: -100px;
  border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
  animation: morph2 12s linear infinite, shapeFloat 25s infinite;
  background: linear-gradient(45deg, #3b82f6, #8b5cf6);
}

.shape-3 {
  width: 200px;
  height: 200px;
  top: 50%;
  right: 15%;
  border-radius: 53% 47% 34% 66% / 45% 55% 45% 55%;
  animation: morph3 18s linear infinite, shapeFloat 30s infinite;
  background: linear-gradient(45deg, #6366f1, #3b82f6);
}

.shape-4 {
  width: 350px;
  height: 350px;
  bottom: 20%;
  left: 15%;
  border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
  animation: morph4 20s linear infinite, shapeFloat 35s infinite;
  background: linear-gradient(45deg, #8b5cf6, #6366f1);
}

/* Nouvelles animations de morphing */
@keyframes morph1 {
  0%, 100% {
    border-radius: 43% 57% 70% 30% / 45% 45% 55% 55%;
  }
  25% {
    border-radius: 57% 43% 30% 70% / 55% 55% 45% 45%;
  }
  50% {
    border-radius: 30% 70% 57% 43% / 45% 55% 55% 45%;
  }
  75% {
    border-radius: 70% 30% 43% 57% / 55% 45% 45% 55%;
  }
}

@keyframes morph2 {
  0%, 100% {
    border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
  }
  25% {
    border-radius: 37% 63% 46% 54% / 48% 55% 45% 52%;
  }
  50% {
    border-radius: 54% 46% 37% 63% / 52% 45% 55% 48%;
  }
  75% {
    border-radius: 46% 54% 63% 37% / 45% 52% 48% 55%;
  }
}

@keyframes morph3 {
  0%, 100% {
    border-radius: 53% 47% 34% 66% / 45% 55% 45% 55%;
  }
  25% {
    border-radius: 47% 53% 66% 34% / 55% 45% 55% 45%;
  }
  50% {
    border-radius: 34% 66% 53% 47% / 45% 55% 45% 55%;
  }
  75% {
    border-radius: 66% 34% 47% 53% / 55% 45% 55% 45%;
  }
}

@keyframes morph4 {
  0%, 100% {
    border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
  }
  25% {
    border-radius: 67% 33% 42% 58% / 68% 63% 37% 32%;
  }
  50% {
    border-radius: 58% 42% 33% 67% / 32% 37% 63% 68%;
  }
  75% {
    border-radius: 42% 58% 67% 33% / 37% 32% 68% 63%;
  }
}

@keyframes shapeFloat {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  25% {
    transform: translate(2%, 2%) rotate(5deg) scale(0.8);
  }
  50% {
    transform: translate(-1%, -3%) rotate(-5deg) scale(1.2);
  }
  75% {
    transform: translate(-2%, 1%) rotate(3deg) scale(0.9);
  }
}

/* Animation des formes géométriques */
.geometric-grid {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.geo-shape {
  position: absolute;
  border: 3px solid rgba(255, 255, 255, 0.5);
  animation: floatShape 10s ease-in-out infinite;
}

.diamond {
  width: 100px;
  height: 100px;
  transform: rotate(45deg);
  top: 20%;
  left: 15%;
  border-color: rgba(99, 102, 241, 0.8);
  animation-delay: 0s;
}

.circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  top: 60%;
  right: 20%;
  border-color: rgba(59, 130, 246, 0.8);
  animation-delay: -2s;
}

.square {
  width: 80px;
  height: 80px;
  top: 30%;
  right: 30%;
  border-color: rgba(147, 51, 234, 0.8);
  animation-delay: -4s;
}

.triangle {
  width: 0;
  height: 0;
  border-left: 50px solid transparent;
  border-right: 50px solid transparent;
  border-bottom: 86.6px solid rgba(76, 81, 191, 0.8);
  top: 70%;
  left: 30%;
  animation-delay: -6s;
}

.hexagon {
  width: 100px;
  height: 57.735px;
  background: rgba(59, 130, 246, 0.8);
  position: absolute;
  top: 40%;
  left: 50%;
  animation-delay: -8s;
}

.hexagon:before,
.hexagon:after {
  content: "";
  position: absolute;
  width: 0;
  border-left: 50px solid transparent;
  border-right: 50px solid transparent;
}

.hexagon:before {
  bottom: 100%;
  border-bottom: 28.8675px solid rgba(59, 130, 246, 0.4);
}

.hexagon:after {
  top: 100%;
  border-top: 28.8675px solid rgba(59, 130, 246, 0.4);
}

.rectangle {
  width: 150px;
  height: 75px;
  top: 15%;
  right: 15%;
  border-color: rgba(99, 102, 241, 0.8);
  animation-delay: -10s;
}

/* Lignes de connexion */
.connecting-lines {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.lines {
  width: 100%;
  height: 100%;
}

.line-path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 3;
  stroke-dasharray: 10;
  animation: dashMove 20s linear infinite;
}

/* Animations */
@keyframes floatShape {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(20px, -20px) rotate(5deg);
  }
  50% {
    transform: translate(-10px, 20px) rotate(-5deg);
  }
  75% {
    transform: translate(-20px, -10px) rotate(3deg);
  }
}

@keyframes dashMove {
  to {
    stroke-dashoffset: -1000;
  }
}

/* Effet de brillance */
.shape::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: rotate(45deg);
  animation: shine 10s linear infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) rotate(45deg);
  }
}

/* Effet de pulsation sur les formes */
.geo-shape {
  animation: pulse 4s ease-in-out infinite alternate;
}

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

/* Style du bouton CTA */
.cta-button {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  padding: 1.2rem 2.5rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.5);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards 0.4s;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.6);
  background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
}

/* Media Queries */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
  }

  .logo span {
    font-size: 1.2rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .copyright {
    font-size: 0.9rem;
    padding: 0 1rem;
    line-height: 1.4;
  }

  .geo-shape {
    transform: scale(0.7);
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 2rem;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: center;
  }
  
  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    cursor: pointer;
  }
  
  .hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    border-radius: 3px;
    transition: var(--transition);
  }

  .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);
  }
  
  .price-card.featured {
    transform: none;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .cta-button {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }

  .container {
    padding: 0 15px;
  }

  .logo span {
    font-size: 1.1rem;
  }

  .copyright {
    font-size: 0.8rem;
  }
}

/* Ajustements pour les très petits écrans */
@media (max-width: 320px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .logo span {
    font-size: 1rem;
  }
}

/* Animation styles */
.code-window {
  background: #1a1a1a;
  border-radius: 10px;
  padding: 1rem;
  width: 400px;
  box-shadow: var(--shadow);
  position: relative;
  animation: float 6s ease-in-out infinite;
}

.code-header {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

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

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.code-content {
  font-family: 'Fira Code', monospace;
  color: #fff;
}

.code-line {
  display: block;
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeInCode 0.5s forwards;
}

.floating-cube,
.floating-circle {
  position: absolute;
  opacity: 0.1;
  z-index: 1;
}

.floating-cube {
  width: 100px;
  height: 100px;
  background: var(--primary-color);
  right: 10%;
  top: 20%;
  animation: floatShape 8s ease-in-out infinite;
}

.floating-circle {
  width: 150px;
  height: 150px;
  background: var(--accent-color);
  border-radius: 50%;
  right: 25%;
  bottom: 20%;
  animation: floatShape 8s ease-in-out infinite reverse;
}

.floating-elements,
.element {
  display: none;
}

/* Services Section */
.services {
  padding: 6rem 0;
  background: var(--white);
}

.services h2 {
  text-align: center;
  margin-bottom: 3rem;
}

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

.service-card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
  border-color: var(--primary-color);
}

.service-card i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Skills Section */
.skills {
  padding: 6rem 0;
  background: var(--light-gray);
}

.skills h2 {
  text-align: center;
  margin-bottom: 3rem;
}

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

.skill-category h3 {
  margin-bottom: 1.5rem;
}

.skill-bar {
  height: 30px;
  background: var(--white);
  border-radius: 15px;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

.skill-bar::before {
  content: attr(data-skill);
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  color: var(--text-color);
}

.skill-bar::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: calc(var(--level) * 1%);
  background: var(--primary-color);
  border-radius: 15px;
  transition: width 1s ease-in-out;
}

/* Pricing Section */
.pricing {
  padding: 6rem 0;
  background: #0f172a;  /* Fond sombre comme le hero */
}

.pricing h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--white);
  font-size: 2.5rem;
  font-weight: 600;
}

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

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

.price-card.featured {
  transform: scale(1.05);
  border: 2px solid var(--primary-color);
}

.price-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary-color);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(37, 99, 235, 0.4);
}

.price-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(79, 70, 229, 0.2),
    rgba(59, 130, 246, 0.2),
    transparent
  );
  transition: 0.5s;
  opacity: 0;
}

.price-card:hover::before {
  left: 0;
  opacity: 1;
}

.price-card h3 {
  font-size: 1.8rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.price-card .price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 1.5rem 0;
  font-family: 'Poppins', sans-serif;
}

.price-card .price-subtitle {
  color: var(--accent-color);
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: 2rem;
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  position: relative;
  z-index: 1;
}

.price-card ul li {
  color: var(--white);
  opacity: 0.9;
  font-size: 1.1rem;
  margin: 1rem 0;
}

.price-card ul li i {
  color: var(--accent-color);
}

.price-card .cta-button {
  background: var(--gradient);
  width: 100%;
  margin-top: 2rem;
  font-weight: 500;
  font-size: 1.1rem;
}

.price-card.business {
  border-color: var(--primary-color);
  transform: scale(1.05);
}

.price-card.business:hover {
  transform: scale(1.05) translateY(-10px);
  border-color: rgba(79, 70, 229, 0.6);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(79, 70, 229, 0.4);
}

/* Contact Section */
.contact {
  padding: 6rem 0;
  background: var(--light-gray);
}

.contact h2 {
  text-align: center;
  margin-bottom: 3rem;
}

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

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid var(--primary-color);
  border-radius: 5px;
  font-size: 1rem;
  background: var(--white);
  color: var(--text-color);
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

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

.contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
}

.contact-info {
  padding-right: 2rem;
}

.contact-details {
  margin-top: 2rem;
}

.contact-details p {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Footer */
footer {
  background: var(--text-color);
  color: var(--white);
  padding: 3rem 0;
}

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

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

.social-links a {
  color: var(--white);
  font-size: 1.5rem;
  transition: var(--transition);
}

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

.copyright {
  text-align: center;
  color: var(--light-gray);
}

.contact-form button[type="submit"].loading {
  position: relative;
  color: transparent;
}

.contact-form button[type="submit"].loading::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.submit-button {
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
  color: #ffffff;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  margin-top: 1rem;
  display: block;
  position: relative;
  z-index: 2;
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}
