﻿* {
  box-sizing: border-box;
}

@font-face {
  font-family: "Audiowide";
  src: url("fonts/Audiowide-Regular.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body {
  background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%)
    no-repeat;
  margin: 0 auto;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  font-family: "Audiowide", sans-serif;
  position: relative;
  color: #ffffff;
  cursor: none; /* Masquer le curseur par défaut */
}

/* Curseur personnalisé avec effet néon */
.custom-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border: 2px solid #ad45c6;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition:
    transform 0.2s ease,
    opacity 0.15s ease; /* Transition uniquement pour scale/opacity */
  box-shadow:
    0 0 15px rgba(173, 69, 198, 0.6),
    0 0 30px rgba(173, 69, 198, 0.4),
    inset 0 0 10px rgba(173, 69, 198, 0.3);
  transform: translate(-50%, -50%);
  will-change: transform; /* Optimisation GPU */
}

/* Halo lumineux qui suit la souris */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(173, 69, 198, 0.15) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  will-change: transform;
  /* Pas de transition pour suivi instantané */
}

/* Animation du curseur au hover sur éléments interactifs */
.custom-cursor.hover {
  transform: translate(-50%, -50%) scale(1.5);
  background: rgba(173, 69, 198, 0.2);
  box-shadow:
    0 0 25px rgba(173, 69, 198, 0.8),
    0 0 50px rgba(173, 69, 198, 0.6),
    inset 0 0 15px rgba(173, 69, 198, 0.5);
}

/* menu */
.menu {
  position: relative;
  width: 100%;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  background: rgba(23, 17, 39, 0.8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: position 0s;
}

.menu.sticky {
  position: fixed;
  top: 0;
  max-width: inherit;
}

.logo {
  width: 200px;
  height: auto;
  filter: drop-shadow(0 0 10px #ad45c6);
  position: relative;
  z-index: 102;
}

.logo:hover {
  transform: scale(1.08) rotate(-3deg);
  transition: transform 0.2s ease;
}
/* Navigation desktop */
.nav-desktop ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-desktop a {
  color: #ad45c6;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  position: relative;
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #ad45c6;
  transition: width 0.3s ease;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: #ffffff;
  text-shadow: 0 0 20px #ad45c6;
}

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

/* Bouton hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 102;
  position: relative;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background: #ad45c6;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 0 8px rgba(173, 69, 198, 0.5);
}

.hamburger:hover .hamburger-line {
  background: #ffffff;
  box-shadow: 0 0 15px #ad45c6;
}

/* Animation du bouton hamburger vers X */
.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(10.5px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-10.5px) rotate(-45deg);
}

/* Menu mobile overlay */
.nav-mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  max-width: 100%;
  height: 100vh;
  background: linear-gradient(
    135deg,
    rgba(23, 17, 39, 0.98) 0%,
    rgba(36, 27, 59, 0.98) 100%
  );
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  z-index: 101;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
  box-sizing: border-box;
  overflow-x: hidden;
}

.nav-mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Bouton de fermeture (croix) */
.close-menu {
  position: absolute;
  top: 20px;
  right: 30px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 2px solid #ad45c6;
  border-radius: 50%;
  cursor: pointer;
  z-index: 103;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 0 15px rgba(173, 69, 198, 0.3);
}

.nav-mobile-overlay.active .close-menu {
  opacity: 1;
  transform: rotate(0deg) scale(1);
  transition-delay: 0.3s;
}

.close-menu:hover {
  background: rgba(173, 69, 198, 0.2);
  border-color: #ffffff;
  box-shadow:
    0 0 25px #ad45c6,
    0 0 40px rgba(173, 69, 198, 0.5);
  transform: rotate(90deg) scale(1.1);
}

.close-line {
  position: absolute;
  width: 20px;
  height: 2px;
  background: #ad45c6;
  border-radius: 2px;
  transition: background 0.3s ease;
}

.close-menu:hover .close-line {
  background: #ffffff;
}

.close-line:first-child {
  transform: rotate(45deg);
}

.close-line:last-child {
  transform: rotate(-45deg);
}

.nav-mobile-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Navigation mobile */
.nav-mobile ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.nav-mobile li {
  margin: 30px 0;
  opacity: 0;
  transform: translateY(30px) scale(0.9);
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.nav-mobile li:nth-child(1) {
  transition-delay: 0s;
}
.nav-mobile li:nth-child(2) {
  transition-delay: 0.1s;
}
.nav-mobile li:nth-child(3) {
  transition-delay: 0.2s;
}
.nav-mobile li:nth-child(4) {
  transition-delay: 0.3s;
}
.nav-mobile li:nth-child(5) {
  transition-delay: 0.4s;
}

.nav-mobile-overlay.active .nav-mobile li {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.nav-mobile a {
  color: #ad45c6;
  text-decoration: none;
  font-size: clamp(2rem, 5vw, 3rem);
  font-family: "Audiowide", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
  position: relative;
  transition: all 0.3s ease;
}

.nav-mobile a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(
    circle,
    rgba(173, 69, 198, 0.3) 0%,
    transparent 70%
  );
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition:
    width 0.4s ease,
    height 0.4s ease;
  z-index: -1;
}

.nav-mobile a:hover,
.nav-mobile a.active {
  color: #ffffff;
  text-shadow:
    0 0 30px #ad45c6,
    0 0 50px rgba(173, 69, 198, 0.5);
  transform: scale(1.1);
}

.nav-mobile a:hover::before,
.nav-mobile a.active::before {
  width: 200px;
  height: 200px;
}

/* Particules décoratives */
.nav-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  background: #ad45c6;
  border-radius: 50%;
  opacity: 0;
  box-shadow:
    0 0 10px #ad45c6,
    0 0 20px rgba(173, 69, 198, 0.5);
  animation: particleFloat 3s ease-in-out infinite;
}

.particle:nth-child(1) {
  left: 10%;
  top: 20%;
  width: 4px;
  height: 4px;
  animation-duration: 3s;
}
.particle:nth-child(2) {
  left: 80%;
  top: 15%;
  width: 3px;
  height: 3px;
  animation-duration: 4s;
}
.particle:nth-child(3) {
  left: 20%;
  top: 70%;
  width: 5px;
  height: 5px;
  animation-duration: 5s;
}
.particle:nth-child(4) {
  left: 90%;
  top: 60%;
  width: 4px;
  height: 4px;
  animation-duration: 3.5s;
}
.particle:nth-child(5) {
  left: 50%;
  top: 40%;
  width: 6px;
  height: 6px;
  animation-duration: 4.5s;
}
.particle:nth-child(6) {
  left: 15%;
  top: 85%;
  width: 3px;
  height: 3px;
  animation-duration: 5.5s;
}
.particle:nth-child(7) {
  left: 70%;
  top: 80%;
  width: 4px;
  height: 4px;
  animation-duration: 4s;
}

@keyframes particleFloat {
  0%,
  100% {
    opacity: 0;
    transform: translateY(0) scale(0.5);
  }
  50% {
    opacity: 0.8;
    transform: translateY(-30px) scale(1);
  }
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-title {
  font-family: "Audiowide", sans-serif;
  font-size: clamp(2.5rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  max-width: 90%;
  perspective: 1000px;
  position: relative;
  z-index: 10;
}

.hero-title .title-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3em;
  text-align: center;
}

.hero-title .word {
  display: inline-block;
  white-space: nowrap;
}

.hero-title .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(120px) rotateX(-90deg);
  transform-origin: 0% 50% -50px;
  will-change: transform, opacity;
  vertical-align: baseline;
}

/* ===== ÉTOILE FLOTTANTE ===== */
.floating-star {
  position: absolute;
  width: 120px;
  height: 120px;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 0 15px #ad45c6);
  will-change: transform, opacity;
  z-index: 10;
}

/* ===== GLOBE TOURNANT ===== */
.globe-container {
  position: absolute;
  width: 300px;
  height: 300px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

.rotating-globe {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(173, 69, 198, 0.5));
  will-change: transform;
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #ad45c6;
  font-size: 0.9rem;
  letter-spacing: 2px;
  opacity: 0;
  animation: fadeInUp 1s ease 2s forwards;
}

.arrow-down {
  width: 2px;
  height: 30px;
  background: linear-gradient(to bottom, #ad45c6, transparent);
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
  }
}

@keyframes scrollDown {
  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(10px);
    opacity: 0.5;
  }
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

/* ===== SECTIONS ===== */
section {
  min-height: 100vh;
  padding: 100px 0;
  position: relative;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  margin-bottom: 80px;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0;
  transform: translateY(50px);
}

/* ===== SECTION À PROPOS ===== */
.about-section {
  background: rgba(23, 17, 39, 0.3);
  position: relative;
  overflow: hidden;
}

/* ===== ÉLÉMENTS FLOTTANTS ANIMÉS ===== */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.float-globe {
  position: absolute;
  width: 200px;
  height: 200px;
  top: 20%;
  left: -100px;
  object-fit: contain;
  opacity: 0;
  filter: drop-shadow(0 0 20px rgba(173, 69, 198, 0.5));
  will-change: transform, opacity;
}

.float-circle {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(173, 69, 198, 0.4);
  opacity: 0;
  will-change: transform, opacity;
  transition: all 0.3s ease;
}

.float-circle:hover {
  border-color: #ad45c6;
  box-shadow:
    0 0 30px rgba(173, 69, 198, 0.6),
    0 0 60px rgba(173, 69, 198, 0.4);
}

.circle-1 {
  width: 150px;
  height: 150px;
  top: 60%;
  right: -75px;
  background: radial-gradient(circle, rgba(173, 69, 198, 0.1), transparent);
}

.circle-2 {
  width: 100px;
  height: 100px;
  top: 40%;
  right: 10%;
  background: radial-gradient(circle, rgba(58, 43, 88, 0.3), transparent);
}

.float-shape {
  position: absolute;
  font-family: "Audiowide", sans-serif;
  font-size: 120px;
  font-weight: bold;
  color: transparent;
  -webkit-text-stroke: 2px rgba(173, 69, 198, 0.6);
  top: 10%;
  right: 15%;
  opacity: 0;
  will-change: transform, opacity;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text {
  opacity: 0;
  transform: translateX(-50px);
}

.reveal-text {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: #e0e0e0;
  font-family: Arial, sans-serif;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 30px;
  opacity: 0;
  transform: translateX(50px);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background: rgba(173, 69, 198, 0.1);
  border-radius: 10px;
  border: 1px solid rgba(173, 69, 198, 0.3);
  transition: all 0.3s ease;
}

.stat-item:hover {
  border-color: #ad45c6;
  box-shadow:
    0 0 30px rgba(173, 69, 198, 0.6),
    0 0 60px rgba(173, 69, 198, 0.4),
    inset 0 0 20px rgba(173, 69, 198, 0.1);
}

.stat-number {
  font-size: 3rem;
  color: #ad45c6;
  font-weight: bold;
}

.stat-label {
  font-size: 1rem;
  color: #e0e0e0;
  margin-top: 10px;
  font-family: Arial, sans-serif;
}

h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  color: #ad45c6;
  margin-bottom: 30px;
}

/* ===== ANIMATION VER ET CERCLE 3D ===== */
.worm-animation-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 100px 50px;
  max-width: 1400px;
  margin: 0 auto;
}

.worm-text-content {
  flex: 1;
  max-width: 600px;
  padding-right: 50px;
}

.worm-text-content h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  color: #ad45c6;
  margin-bottom: 30px;
}

.worm-text-content p {
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: #ffffff;
  line-height: 1.6;
  font-family: Arial, sans-serif;
}

.worm-wrap {
  position: relative;
  width: 400px;
  height: 900px;
  display: block;
  flex-shrink: 0;
}

.worm-path-svg {
  position: relative;
  z-index: 1;
  display: block;
  margin: 0 auto;
  width: 400px !important;
  height: 900px !important;
}

#wormPath,
#wormPathContact {
  filter: drop-shadow(0 2px 4px rgba(173, 69, 198, 0.3));
}

/* Dégradé 3D des vers */
.worm-stop-1 {
  stop-color: #6a1b9a;
  stop-opacity: 1;
}

.worm-stop-2 {
  stop-color: #8a2ba8;
  stop-opacity: 1;
}

.worm-stop-3 {
  stop-color: #ad45c6;
  stop-opacity: 1;
}

.worm-stop-4 {
  stop-color: #d98fe0;
  stop-opacity: 1;
}

.circle-3d {
  position: fixed !important;
  width: 60px !important;
  height: 60px !important;
  border-radius: 50% !important;
  z-index: 9999 !important;
  background: radial-gradient(
    circle at 30% 30%,
    #ad45c6,
    #ff69d4,
    #ad45c6
  ) !important;
  box-shadow:
    0 0 50px rgba(173, 69, 198, 1),
    0 0 30px rgba(173, 69, 198, 1);
  opacity: 1 !important;
  pointer-events: none;
}

@media (max-width: 768px) {
  .worm-animation-section {
    min-height: 100vh;
  }

  .worm-wrap {
    width: 250px;
    height: 400px;
  }

  .circle-3d {
    width: 35px;
    height: 35px;
  }
}

/* ===== SECTION PROJETS ===== */
.projects-section {
  background: transparent;
  padding: 100px 0;
}

/* Mesmerising Projects Animation Style */
.mesmerising-projects {
  display: flex;
  flex-direction: column;
  gap: 120px;
  margin-top: 80px;
  transform-style: preserve-3d;
}

.project-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  min-height: 500px;
  perspective: 1000px;
  transition: all 0.3s ease;
}

.project-item:nth-child(even) {
  direction: rtl;
}

.project-item:nth-child(even) > * {
  direction: ltr;
}

.project-visual {
  position: relative;
  height: 500px;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-number {
  position: absolute;
  top: -40px;
  left: -20px;
  font-size: clamp(8rem, 15vw, 12rem);
  font-weight: 900;
  color: rgba(173, 69, 198, 0.1);
  line-height: 1;
  z-index: 1;
  font-family: "Audiowide", sans-serif;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  transform: translateZ(30px);
}

.project-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 20px;
  transform-style: preserve-3d;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.project-reveal-image {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ad45c6 0%, #3a2b58 50%, #171127 100%);
  background-size: cover;
  background-position: center;
  transform-origin: center center;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  border: 1px solid #ad45c6;
  border-radius: 20px;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.85) translateY(30px);
  filter: blur(10px);
}

.project-reveal-image.is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
  filter: blur(0px);
}

.project-reveal-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: hue-rotate(290deg) saturate(1.2);
  z-index: 1;
  transition: filter 0.6s ease;
}

.project-image-wrapper {
  transition: all 0.3s ease;
}

.project-image-wrapper:hover {
  box-shadow:
    0 0 25px rgba(173, 69, 198, 0.4),
    0 0 50px rgba(173, 69, 198, 0.25),
    0 0 80px rgba(173, 69, 198, 0.15),
    0 30px 80px rgba(0, 0, 0, 0.4);
  transform: translateZ(20px) scale(1.05);
}

.project-image-wrapper:hover .project-reveal-image::before {
  filter: hue-rotate(290deg) saturate(1.2) brightness(1.08);
}

/* Images individuelles pour chaque projet */
.project-item:nth-child(1) .project-reveal-image.bg-loaded::before {
  background-image: url("./images/quezaco-pringles.webp");
}

.project-item:nth-child(2) .project-reveal-image.bg-loaded::before {
  background-image: url("./images/hellorecet-new.webp");
}

.project-item:nth-child(3) .project-reveal-image.bg-loaded::before {
  background-image: url("./images/cafe-site.webp");
}

.project-item:nth-child(4) .project-reveal-image.bg-loaded::before {
  background-image: url("./images/site-blog-rev.webp");
}

.project-item:nth-child(5) .project-reveal-image.bg-loaded::before {
  background-image: url("./images/audit-projet.webp");
  background-position: bottom;
}

.project-item:nth-child(5) .project-reveal-image::before {
  filter: none;
}

.project-item:nth-child(5)
  .project-image-wrapper:hover
  .project-reveal-image::before {
  filter: none;
}

.project-content {
  padding: 40px;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  transform-style: preserve-3d;
}

.project-content h3 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
  color: #ad45c6;
  font-weight: 700;
}

.project-content p {
  color: #e0e0e0;
  line-height: 1.8;
  margin-bottom: 30px;
  font-family: Arial, sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.project-tech {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.project-tech span {
  background: rgba(173, 69, 198, 0.2);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  border: 1px solid rgba(173, 69, 198, 0.4);
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  transform-style: preserve-3d;
}

.project-tech span:hover {
  background: rgba(173, 69, 198, 0.3);
  border-color: rgba(173, 69, 198, 0.6);
  transform: translateZ(10px) scale(1.05);
  box-shadow: 0 5px 15px rgba(173, 69, 198, 0.3);
}

.project-links {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.project-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(23, 17, 39, 0.6);
  border: 2px solid rgba(173, 69, 198, 0.3);
  border-radius: 10px;
  color: #ad45c6;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.project-btn svg {
  width: 18px;
  height: 18px;
}

.project-btn:hover {
  background: rgba(173, 69, 198, 0.15);
  border-color: #ad45c6;
  box-shadow:
    0 0 20px rgba(173, 69, 198, 0.5),
    0 0 40px rgba(173, 69, 198, 0.3),
    inset 0 0 15px rgba(173, 69, 198, 0.1);
  transform: translateY(-3px);
  color: #ff69d4;
}

/* Responsive */
@media (max-width: 768px) {
  .project-item {
    grid-template-columns: 1fr;
    gap: 40px;
    min-height: unset;
  }

  .project-item:nth-child(even) {
    direction: ltr;
  }

  .project-visual {
    height: 350px;
  }

  .project-number {
    font-size: 6rem;
  }
}

/* ===== SECTION COMPÉTENCES ===== */
.skills-section {
  background: rgba(23, 17, 39, 0.3);
  padding: 100px 0;
  overflow: hidden;
  position: relative;
}

.container-fluid {
  width: 100%;
  padding: 0 50px;
  position: relative;
  z-index: 1;
}

/* Horizontal scroll wrapper */
.skills-horizontal-wrapper {
  position: relative;
  height: 600px;
  margin-top: 80px;
}

.skills-horizontal-container {
  display: flex;
  gap: 60px;
  position: absolute;
  left: 0;
  will-change: transform;
}

/* Skill Cards */
.skill-card {
  min-width: 450px;
  background: rgba(58, 43, 88, 0.4);
  border: 2px solid rgba(173, 69, 198, 0.3);
  border-radius: 30px;
  padding: 50px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.skill-card:hover {
  border-color: #ad45c6;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(173, 69, 198, 0.6),
    0 0 60px rgba(173, 69, 198, 0.4),
    inset 0 0 20px rgba(173, 69, 198, 0.1);
}

.skill-card-header {
  margin-bottom: 40px;
  position: relative;
}

.skill-number {
  position: absolute;
  top: -30px;
  right: -20px;
  font-size: 8rem;
  font-weight: 900;
  color: rgba(173, 69, 198, 0.1);
  font-family: "Audiowide", sans-serif;
  line-height: 1;
}

.skill-card-header h3 {
  font-size: 2.5rem;
  color: #ad45c6;
  margin: 0;
  font-weight: 700;
}

.skill-card-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.skill-item-modern {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: rgba(23, 17, 39, 0.5);
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.skill-item-modern:hover {
  transform: translateX(10px);
  background: rgba(173, 69, 198, 0.1);
}

.skill-icon {
  font-size: 2.5rem;
  min-width: 60px;
  text-align: center;
}

.skill-info {
  flex: 1;
}

.skill-name {
  display: block;
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.skill-level {
  margin-top: 8px;
}

.skill-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(173, 69, 198, 0.2);
  border: 2px solid rgba(173, 69, 198, 0.3);
  transition: all 0.3s ease;
}

.dot:hover {
  border-color: #ad45c6;
  box-shadow:
    0 0 15px rgba(173, 69, 198, 0.8),
    0 0 30px rgba(173, 69, 198, 0.5);
  transform: scale(1.2);
}

.dot.filled {
  background: linear-gradient(135deg, #ad45c6, #ff69d4);
  border-color: #ad45c6;
  box-shadow: 0 0 10px rgba(173, 69, 198, 0.5);
}

.dot.filled:hover {
  box-shadow:
    0 0 20px rgba(173, 69, 198, 0.8),
    0 0 40px rgba(173, 69, 198, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
  /* .skill-card {
    min-width: 350px;
    padding: 30px;
  }

  .skill-card-header h3 {
    font-size: 2rem;
  }

  .skill-number {
    font-size: 5rem;
  } */
  .skill-card {
    min-width: 100%;
    max-width: 100%;
    width: 100%;
    padding: 30px;
    box-sizing: border-box;
  }

  .skill-card-header h3 {
    font-size: 2rem;
  }

  .skill-number {
    font-size: 5rem;
  }

  .skills-horizontal-wrapper {
    height: auto;
    position: relative;
  }

  .skills-horizontal-container {
    position: static;
    flex-direction: column;
    gap: 30px;
    transform: none !important;
  }

  .container-fluid {
    padding: 0 20px;
  }

  .project-item {
    grid-template-columns: 1fr;
    gap: 40px;
    min-height: unset;
  }

  .project-visual {
    height: 580px;
  }

  .project-item:nth-child(even) {
    direction: ltr;
  }

  .project-number {
    font-size: 6rem;
  }
}

/* ===== SECTION CONTACT ===== */
.contact-section {
  background: transparent;
  position: relative;
  overflow: visible;
  padding: 150px 0;
  min-height: 100vh;
}

/* Ver compact dans la section contact */
.worm-wrap-contact {
  position: absolute;
  right: 50px;
  top: 50px;
  width: 300px;
  height: 600px;
  display: block;
  z-index: 1;
  pointer-events: none;
}

.worm-path-svg-contact {
  position: relative;
  z-index: 1;
  display: block;
  margin: 0 auto;
  width: 300px !important;
  height: 600px !important;
}

.circle-3d-contact {
  position: fixed !important;
  width: 55px !important;
  height: 55px !important;
  border-radius: 50% !important;
  z-index: 99999 !important;
  background: radial-gradient(
    circle at 30% 30%,
    #ad45c6,
    #ff69d4,
    #ad45c6
  ) !important;
  box-shadow:
    0 0 20px rgba(173, 69, 198, 0.6),
    0 0 15px rgba(173, 69, 198, 0.5),
    0 0 10px rgba(255, 105, 212, 0.4) !important;
  opacity: 1 !important;
  pointer-events: none !important;
  display: block !important;
  transform: translate(-50%, -50%) !important;
}

.black-hole {
  position: fixed !important;
  width: 100px;
  height: 100px;
  z-index: 99998;
  pointer-events: none;
  opacity: 0;
  display: none;
  transform: translate(-50%, -50%);
}

.black-hole svg {
  width: 100%;
  height: 100%;
  animation: rotateHole 2s linear infinite;
}

@keyframes rotateHole {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 60px;
  height: 60px;
  background: rgba(23, 17, 39, 0.9);
  border: 2px solid rgba(173, 69, 198, 0.4);
  border-radius: 50%;
  color: #ad45c6;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: rgba(173, 69, 198, 0.2);
  border-color: #ad45c6;
  box-shadow:
    0 0 30px rgba(173, 69, 198, 0.6),
    0 0 60px rgba(173, 69, 198, 0.4),
    inset 0 0 20px rgba(173, 69, 198, 0.2);
  transform: translateY(-5px);
}

.scroll-to-top svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.scroll-to-top:hover svg {
  transform: translateY(-3px);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info {
  opacity: 0;
  transform: translateX(-50px);
}

.contact-info h3 {
  font-size: 2rem;
  color: #ad45c6;
  margin-bottom: 20px;
}

.contact-info p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 40px;
  color: #e0e0e0;
  font-family: Arial, sans-serif;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.1rem;
  color: #e0e0e0;
  font-family: Arial, sans-serif;
}

.contact-icon {
  font-size: 1.5rem;
}

.contact-form {
  opacity: 0;
  transform: translateX(50px);
}

.form-group {
  margin-bottom: 25px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.8rem;
  color: rgba(173, 69, 198, 0.35);
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px 20px;
  background: rgba(58, 43, 88, 0.3);
  border: 1px solid rgba(173, 69, 198, 0.3);
  border-radius: 10px;
  color: #ffffff;
  font-size: 1rem;
  font-family: Arial, sans-serif;
  transition: all 0.3s ease;
}

.form-group input:hover,
.form-group textarea:hover {
  border-color: rgba(173, 69, 198, 0.6);
  box-shadow:
    0 0 20px rgba(173, 69, 198, 0.4),
    0 0 40px rgba(173, 69, 198, 0.2);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ad45c6;
  box-shadow:
    0 0 30px rgba(173, 69, 198, 0.6),
    0 0 60px rgba(173, 69, 198, 0.4),
    inset 0 0 20px rgba(173, 69, 198, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.submit-btn {
  width: 100%;
  padding: 15px 30px;
  background: linear-gradient(135deg, #ad45c6, #3a2b58);
  border: none;
  border-radius: 10px;
  color: #ffffff;
  font-size: 1.1rem;
  font-family: "Audiowide", sans-serif;
  letter-spacing: 2px;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.submit-btn:hover:not(:disabled) {
  transform: scale(1.05);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-loader {
  display: none;
}

.btn-loader svg,
.btn-loader-svg {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.form-message {
  display: none;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  text-align: center;
}

#honeypot {
  display: none !important;
}

/* ===== CONTACT EXTRA ===== */
.contact-extra {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 80px;
  padding: 40px;
  background: rgba(23, 17, 39, 0.4);
  border-radius: 20px;
  border: 1px solid rgba(173, 69, 198, 0.2);
}

.availability h3,
.social-links h3 {
  color: #ad45c6;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.availability p {
  color: #e0e0e0;
  margin-bottom: 15px;
  line-height: 1.6;
}

.availability strong {
  color: #ff69d4;
}

.social-icons {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.social-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(173, 69, 198, 0.1);
  border: 2px solid rgba(173, 69, 198, 0.3);
  border-radius: 50%;
  color: #ad45c6;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: rgba(173, 69, 198, 0.2);
  border-color: #ad45c6;
  box-shadow: 0 0 20px rgba(173, 69, 198, 0.5);
  transform: translateY(-5px);
}

.social-icon svg {
  width: 24px;
  height: 24px;
}

/* ===== FOOTER ===== */
.footer {
  padding: 40px 0;
  text-align: center;
  background: rgba(23, 17, 39, 0.8);
  border-top: 1px solid rgba(173, 69, 198, 0.2);
}

.footer p {
  color: #e0e0e0;
  font-family: Arial, sans-serif;
}

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

/* Menu responsive - Tablette et mobile */
@media (max-width: 1080px) {
  .menu {
    padding: 15px 30px;
  }

  .logo {
    width: 150px;
  }

  /* Masquer navigation desktop */
  .nav-desktop {
    display: none;
  }

  /* Afficher bouton hamburger */
  .hamburger {
    display: flex;
  }
}

@media (max-width: 1607px) {
  .hero-title {
    font-size: clamp(2rem, 5vw, 4.5rem);
  }

  .hero-title .title-line {
    gap: 0.25em;
  }
}

@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
  }

  .menu {
    padding: 12px 20px;
  }

  .logo {
    width: 120px;
  }

  .hero-title {
    font-size: clamp(1.8rem, 6vw, 3.5rem);
  }

  .hero-title .title-line {
    gap: 0.2em;
  }

  .nav-mobile a {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
  }

  .nav-mobile li {
    margin: 25px 0;
  }

  .close-menu {
    top: 15px;
    right: 20px;
    width: 36px;
    height: 36px;
  }

  .close-line {
    width: 18px;
  }

  /* Bouton scroll to top */
  .scroll-to-top {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 15px;
  }

  .scroll-to-top svg {
    width: 20px;
    height: 20px;
  }
}

/* ===== RESPONSIVE MOBILE 480PX ===== */
@media (max-width: 480px) {
  /* Empêcher le débordement horizontal */
  html,
  body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  /* Menu mobile optimisé */
  .menu {
    padding: 10px 15px;
    width: 100%;
    box-sizing: border-box;
  }

  .menu.sticky {
    padding: 8px 15px;
    width: 100%;
  }

  /* Overlay mobile */
  .nav-mobile-overlay {
    width: 100vw;
    max-width: 100%;
    left: 0;
    right: 0;
  }

  .logo {
    width: 100px;
    height: auto;
  }

  .hamburger {
    width: 26px;
    height: 20px;
  }

  .hamburger-line {
    height: 2.5px;
  }

  .hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(8.75px) rotate(45deg);
  }

  .hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-8.75px) rotate(-45deg);
  }

  /* Navigation mobile */
  .nav-mobile a {
    font-size: clamp(1.2rem, 5vw, 2rem);
  }

  .nav-mobile li {
    margin: 20px 0;
  }

  .close-menu {
    width: 32px;
    height: 32px;
    top: 12px;
    right: 15px;
  }

  .close-line {
    width: 16px;
  }

  /* Hero section */
  .hero {
    min-height: 100vh;
    padding: 20px 15px;
  }

  .hero-title {
    font-size: clamp(1.5rem, 7vw, 2.5rem);
  }

  .hero-title .title-line {
    gap: 0.15em;
  }

  .floating-star {
    width: 60px;
    height: auto;
  }

  .globe-container {
    width: 180px;
    height: 180px;
  }

  .rotating-globe {
    width: 100%;
    height: 100%;
  }

  /* Section À propos */
  .about-section {
    padding: 60px 0 30px;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 15px;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 20px;
  }

  .reveal-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
  }

  /* Stats et compteurs */
  .stat-item {
    padding: 15px;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .stat-label {
    font-size: 0.9rem;
  }

  /* Éléments flottants réduits */
  .float-globe {
    width: 120px;
    height: 120px;
    top: 10%;
    left: -60px;
  }

  .circle-1 {
    width: 100px;
    height: 100px;
    right: -50px;
  }

  .circle-2 {
    width: 70px;
    height: 70px;
  }

  .float-shape {
    font-size: 60px;
    -webkit-text-stroke: 1.5px rgba(173, 69, 198, 0.6);
  }

  /* Animation du ver en mode colonne */
  .worm-animation-section {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 40px 15px 20px;
    min-height: unset;
    gap: 30px;
  }

  .worm-text-content {
    max-width: 100%;
    padding-right: 0;
    text-align: center;
    order: 1;
  }

  .worm-text-content h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }

  .worm-text-content p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .worm-wrap {
    width: 180px;
    height: 350px;
    order: 2;
    margin-top: 20px;
  }

  .worm-path-svg {
    width: 180px !important;
    height: 350px !important;
  }

  .circle-3d {
    width: 28px !important;
    height: 28px !important;
  }

  /* Contact */
  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Section Projets */
  .projects-section {
    padding: 40px 0 60px;
  }

  .mesmerising-projects {
    gap: 50px;
    margin-top: 30px;
  }

  .project-item {
    gap: 30px;
  }

  .project-visual {
    height: 280px;
  }

  .project-number {
    font-size: 4rem;
    opacity: 0.2;
  }

  .project-content {
    padding: 20px 15px;
  }

  .project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  .project-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  .project-tech {
    gap: 10px;
  }

  .project-tech span {
    padding: 6px 14px;
    font-size: 0.8rem;
  }

  .project-links {
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
  }

  .project-btn {
    padding: 10px 18px;
    font-size: 0.85rem;
    gap: 6px;
  }

  .project-btn svg {
    width: 16px;
    height: 16px;
  }

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

  /* Section Compétences en mode vertical */
  .skills-section {
    padding: 60px 0;
  }

  .container-fluid {
    padding: 0 15px;
  }

  .skills-horizontal-wrapper {
    height: auto;
    margin-top: 40px;
    position: relative;
  }

  .skills-horizontal-container {
    position: relative;
    flex-direction: column;
    gap: 30px;
    transform: none !important;
  }

  .skill-card {
    min-width: 100%;
    max-width: 100%;
    width: 100%;
    padding: 30px 20px;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(60px) scale(0.95);
  }

  .skill-card-header {
    margin-bottom: 25px;
  }

  .skill-number {
    font-size: 5rem;
    top: -20px;
    right: -10px;
    opacity: 0.15;
  }

  .skill-card-header h3 {
    font-size: 1.8rem;
  }

  .skill-card-content {
    gap: 20px;
  }

  .skill-item-modern {
    padding: 15px;
    gap: 15px;
  }

  .skill-icon {
    font-size: 2rem;
    min-width: 50px;
  }

  .skill-name {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }

  .skill-level {
    font-size: 0.85rem;
  }

  .skill-dots {
    gap: 6px;
  }

  .skill-dot {
    width: 8px;
    height: 8px;
  }

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

  /* Section Contact - Ver en colonne en haut */
  .contact-section {
    padding: 20px 0 150px;
    min-height: unset;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .worm-wrap-contact {
    position: relative;
    right: auto;
    top: auto;
    width: 180px;
    height: 350px;
    margin: 0 auto 80px;
    order: 1;
  }

  .worm-path-svg-contact {
    width: 180px !important;
    height: 350px !important;
  }

  .circle-3d-contact {
    width: 28px !important;
    height: 28px !important;
  }

  .black-hole {
    width: 60px;
    height: 60px;
  }

  /* Contenu du contact */
  .contact-section .container {
    order: 2;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .contact-section h2 {
    margin-top: 0px;
    margin-bottom: 30px;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  .contact-info p {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .contact-item {
    font-size: 0.95rem;
  }

  .contact-icon {
    font-size: 1.3rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 12px 15px;
    font-size: 0.95rem;
  }

  .submit-btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
  }

  .availability h3,
  .social-links h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
  }

  .availability {
    font-size: 0.95rem;
  }

  .contact-extra {
    padding: 10px;
    gap: 30px;
  }

  /* Bouton scroll to top */
  #scrollToTop {
    width: 40px;
    height: 40px;
    bottom: 18px;
    right: 15px;
  }

  #scrollToTop svg {
    width: 16px;
    height: 16px;
  }

  /* Footer */
  .footer {
    padding: 30px 15px;
  }

  .footer p {
    font-size: 0.85rem;
    line-height: 1.5;
  }
}
