/* -------------- General -------------- */
@font-face {
  font-family: "PPNeue Montreal Regular";
  src: url("/font/PPNeueMontreal-Regular.otf") format("opentype");
  font-weight: 400;
}

:root {
  --Black: #121212;
  --Grey: #1f1f1f;
  --LightGrey: #a6a6a6;
  --White: #ffffff;
  --Accent: #3a9cf2;

  --text-size-0: clamp(0.8rem, 5vw + 0.5rem, 1.2vw);
  --text-size-1: clamp(1rem, 5vw + 0.5rem, 1.5vw);
  --text-size-2: clamp(1.25rem, 5vw + 0.5rem, 2.5vw);
  --text-size-3: clamp(1.5rem, 5vw + 0.5rem, 3.5vw);
  --text-size-4: clamp(2.5rem, 5vw + 0.5rem, 2.5vw);
  --text-size-5: clamp(3rem, 5vw + 0.5rem, 4vw);
  --text-size-6: clamp(3.5rem, 5vw + 0.5rem, 4.5vw);
  --text-size-SubTitle: clamp(2rem, 8vw + 0.5rem, 4.5vw);
  --text-size-Title: clamp(4rem, 8vw + 0.5rem, 9vw);
}

@media (max-width: 850px) {
  :root {
    --text-size-1: clamp(0.8rem, 5vw + 0.5rem, 1.2vw);
    --text-size-3: clamp(1rem, 5vw + 0.5rem, 3vw);
    --text-size-SubTitle: clamp(1.8rem, 8vw + 0.5rem, 4vw);
    --text-size-Title: clamp(3rem, 8vw + 0.5rem, 7vw);
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-align: start;
  font-family: "PPNeue Montreal Regular", monospace;
}

body {
  background: #000000;
  cursor: none;
  position: relative;
  overflow-x: hidden;
  box-shadow: inset 0 0 300px rgba(0, 0, 0, 0.9);
}

/* Grille cyberpunk en perspective */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(0deg, transparent 24%, rgba(0, 255, 255, 0.08) 25%, rgba(0, 255, 255, 0.08) 26%, transparent 27%, transparent 74%, rgba(0, 255, 255, 0.08) 75%, rgba(0, 255, 255, 0.08) 76%, transparent 77%, transparent),
    linear-gradient(90deg, transparent 24%, rgba(0, 255, 255, 0.08) 25%, rgba(0, 255, 255, 0.08) 26%, transparent 27%, transparent 74%, rgba(0, 255, 255, 0.08) 75%, rgba(0, 255, 255, 0.08) 76%, transparent 77%, transparent);
  background-size: 60px 60px;
  animation: gridMove 25s linear infinite;
  transform: perspective(600px) rotateX(65deg);
  transform-origin: center bottom;
  opacity: 0.4;
}

/* Scanlines effet */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15) 0px,
    transparent 1px,
    transparent 2px,
    rgba(0, 0, 0, 0.15) 3px
  );
  opacity: 0.1;
  animation: scanlines 8s linear infinite;
}

@keyframes gridMove {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 50px 50px;
  }
}

@keyframes scanlines {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(10px);
  }
}

/* Curseur personnalisé */
.cursor-container {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 200;
  mix-blend-mode: difference;
}

.cursor {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: white;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, opacity 0.2s;
}

.cursor-follower {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid white;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, opacity 0.3s, transform 0.3s;
}

.hoverable {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* -------- Pages Réalisations -------- */

.conteneur-principal {
  min-height: 100vh;
  padding: 5vh 5vw;
  background-color: transparent;
  position: relative;
  z-index: 1;
}

/* Particules cyberpunk */
.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  animation: float linear infinite, pulse 3s ease-in-out infinite;
}

.particle:nth-child(3n) {
  background: rgba(0, 255, 255, 0.6);
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.7),
              0 0 24px rgba(0, 255, 255, 0.3);
}

.particle:nth-child(3n+1) {
  background: rgba(255, 0, 255, 0.6);
  box-shadow: 0 0 12px rgba(255, 0, 255, 0.7),
              0 0 24px rgba(255, 0, 255, 0.3);
}

.particle:nth-child(3n+2) {
  background: rgba(138, 43, 226, 0.6);
  box-shadow: 0 0 12px rgba(138, 43, 226, 0.7),
              0 0 24px rgba(138, 43, 226, 0.3);
}

@keyframes float {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(50px);
    opacity: 0;
  }
}

@keyframes pulse {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.2);
  }
}

.section-projet {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 5vh 0;
  position: relative;
  z-index: 2;
}

.section-projet:not(:last-child) {
  margin-bottom: 15vh;
}

.hidden {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1.2s cubic-bezier(0.65, 0, 0.35, 1);
}

.visible {
  opacity: 1;
  transform: translateY(0);
}

.titre-projet {
  font-size: var(--text-size-3);
  margin-bottom: 3vh;
  text-align: center;
  color: var(--White);
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.15),
               0 0 16px rgba(0, 255, 255, 0.1);
}

.lien-projet {
  color: rgba(0, 255, 255, 0.9);
  text-decoration: none;
  font-size: var(--text-size-1);
  margin-bottom: 5vh;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 1.2vh 2.5vw;
  border-radius: 1.2vh;
  background: rgba(15, 15, 26, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(0, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.lien-projet:hover {
  background: rgba(15, 15, 26, 0.8);
  border: 1px solid rgba(0, 255, 255, 0.4);
  box-shadow: 0 8px 32px rgba(0, 255, 255, 0.3),
              0 0 48px rgba(0, 255, 255, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* Section WordPress */
.conteneur-screenshots {
  display: flex;
  gap: 4vw;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 5vh;
}

.screenshot-wordpress {
  width: 45vw;
  max-width: 600px;
  height: auto;
  border-radius: 12px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 1px solid rgba(0, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.screenshot-wordpress:hover {
  transform: translateY(-10px);
  border: 1px solid rgba(0, 255, 255, 0.3);
  box-shadow: 0 16px 48px rgba(0, 255, 255, 0.2),
              0 0 64px rgba(0, 255, 255, 0.1);
}

/* Section Application - Carrousel */
.conteneur-carrousel {
  position: relative;
  width: 90vw;
  max-width: 1200px;
  height: 75vh;
  margin-top: 5vh;
  overflow: hidden;
}

.carrousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
  align-items: center;
}

.diapo-carrousel {
  min-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3vw;
  flex-wrap: wrap;
}

.screenshot-mobile {
  height: 60vh;
  max-height: 700px;
  width: auto;
  border-radius: 2vh;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.screenshot-mobile:hover {
  transform: scale(1.05);
  border: 1px solid rgba(0, 255, 255, 0.3);
  box-shadow: 0 16px 48px rgba(0, 255, 255, 0.2),
              0 0 64px rgba(0, 255, 255, 0.1);
}

/* Boutons carrousel */
.bouton-carrousel {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 15, 26, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color: rgba(0, 255, 255, 0.8);
  border: 1px solid rgba(0, 255, 255, 0.15);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 2.5rem;
  line-height: 1;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  font-weight: 300;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bouton-carrousel:hover {
  background: rgba(15, 15, 26, 0.8);
  border: 1px solid rgba(0, 255, 255, 0.4);
  color: rgba(0, 255, 255, 1);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 32px rgba(0, 255, 255, 0.3),
              0 0 48px rgba(0, 255, 255, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.bouton-carrousel:active {
  color: rgba(0, 255, 255, 1);
  transform: translateY(-50%) scale(0.95);
}

.bouton-precedent {
  left: 2vw;
}

.bouton-suivant {
  right: 2vw;
}

/* Indicateurs */
.indicateurs-carrousel {
  display: flex;
  justify-content: center;
  gap: 1.5vw;
  margin-top: 4vh;
}

.point-indicateur {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.8), rgba(58, 156, 242, 0.8));
  opacity: 0.3;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 0 rgba(0, 255, 255, 0);
}

.point-indicateur:hover {
  opacity: 0.8;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.4),
              0 0 18px rgba(0, 255, 255, 0.2);
  transform: scale(1.3);
}

.point-indicateur.actif {
  opacity: 1;
  box-shadow: 0 0 14px rgba(0, 255, 255, 0.6),
              0 0 24px rgba(0, 255, 255, 0.3);
  transform: scale(1.3);
}

/* Responsive */
@media (max-width: 768px) {
  .titre-projet {
    font-size: var(--text-size-2);
  }

  .lien-projet {
    font-size: var(--text-size-0);
    padding: 1vh 2vw;
  }

  .screenshot-wordpress {
    width: 85vw;
  }

  .screenshot-mobile {
    height: 45vh;
  }

  .diapo-carrousel {
    gap: 3vw;
  }

  .bouton-carrousel {
    width: 50px;
    height: 50px;
    font-size: 2rem;
  }

  .bouton-precedent {
    left: 1vw;
  }

  .bouton-suivant {
    right: 1vw;
  }
}

@media (max-width: 550px) {
  .screenshot-mobile {
    height: 40vh;
  }
}