@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');
@import url('https://fonts.googleapis.com/css?family=Inter');
@import url('https://fonts.googleapis.com/css?family=JetBrains+Mono');
@import url('https://cdn.jsdelivr.net/npm/devicon@2.16.0/devicon.min.css');

.devicon {
  font-size: 1.75rem;
}

:root {
  --title-font: "Inter", sans-serif;
  --text-font: "Inter", sans-serif;
  --code-font: "JetBrains Mono", monospace;

  --main-bg-color: #0f0f12;

  --color-surface: #18181f;

  --color-text-primary: #f0eff6;
  --color-text-secondary: #a09aad;

  --color-primary: #7c6af7;
  --color-primary-dark: #5b4ed4;

  --color-accent: #a78bfa;

  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-section: 4rem;

  --card-glow: rgba(124, 106, 247, 0.25);
  --card-border: rgba(124, 106, 247, 0.3);
}

html {
  min-width: 100%;
  width: 100%;
  min-height: 100%;
  height: 100%;
}

* {
  margin: 0;
  padding: 0;

  color: var(--color-text-primary);
  font-family: var(--text-font);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--main-bg-color);
  position: relative;
  cursor:default;
}

main {
  flex: 1;
  margin-top: 100px;
  margin-bottom: 64px;
  position: relative;
  z-index: 1;
}

body a {
  cursor: pointer;
}

/* Background animated orbs (option 2) */
.orbs {
  position: fixed;
  inset: -25%;
  z-index: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 999px;
  opacity: 0.9;
  filter: blur(18px);
  will-change: transform;

  width: var(--size, 220px);
  height: var(--size, 220px);
  left: var(--x, 50%);
  top: var(--y, 50%);

  transform: translate3d(-50%, -50%, 0) scale(1);
  background: radial-gradient(
    circle at 30% 30%,
    rgba(124, 106, 247, 0.85),
    rgba(124, 106, 247, 0) 60%
  );

  animation: orbFloat var(--dur, 14s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.orb::after {
  content: "";
  position: absolute;
  inset: -10%;
  border-radius: inherit;
  background: radial-gradient(
    circle at 50% 50%,
    var(--glow, rgba(167, 139, 250, 0.4)),
    rgba(0, 0, 0, 0) 60%
  );
}

@keyframes orbFloat {
  0% {
    transform: translate3d(-50%, -50%, 0) scale(1);
  }
  50% {
    transform: translate3d(
        calc(-50% + var(--dx, 40px)),
        calc(-50% + var(--dy, -60px)),
        0
      )
      scale(var(--s, 1.08));
  }
  100% {
    transform: translate3d(-50%, -50%, 0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .orb {
    animation: none;
  }
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(15, 15, 18, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(124, 106, 247, 0.2);
}

.navbar-list {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 3rem;
}

.navbar-item {
  font-size: 1.2rem;
}

.navbar-item a {
  text-decoration: none;
  color: var(--color-text-primary);
  display: inline-block; /* permet un rendu fiable de transform/scale sur le lien */
  transform: translateY(0) scale(1);
  transition:
    transform 0.3s ease-in,
    color 0.3s ease-in,
    text-shadow 0.3s ease-in;
}

.navbar-item a:hover {
  color: var(--color-primary);
  text-shadow: var(--color-primary) 1px 0px 5px;
  transform: translateY(-3px) scale(1.1);
}

.navbar-item a.nav-active {
  color: var(--color-primary-dark);
  text-shadow: var(--color-primary-dark) 1px 0px 5px;
  transform: scale(1.1);
}

.navbar-item a.nav-disabled {
  opacity: 0.4;
  color: #6a6880;
  cursor: not-allowed;
  pointer-events: none;
}

.navbar-item a.nav-disabled:hover {
  transform: translateY(0) scale(1);
  color: #6a6880;
  text-shadow: none;
}

/* Hamburger menu */
.hamburger-btn {
  display: none;
  position: absolute;
  left: 1rem;
  background: none;
  border: none;
  color: var(--color-text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: all 0.3s ease;
}

.hamburger-btn:hover {
  color: var(--color-primary);
}

.hamburger-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.hamburger-btn .fa-times {
  display: none;
}

.hamburger-btn.is-active .fa-bars {
  display: none;
}

.hamburger-btn.is-active .fa-times {
  display: inline-block;
}

/* Mobile navigation */
@media (max-width: 768px) {
  .hamburger-btn {
    display: block;
  }

  .navbar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--color-surface);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
  }

  .navbar.navbar-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .navbar-list {
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 1rem 0;
  }

  .navbar-item {
    margin: 0;
    width: 100%;
    text-align: center;
  }

  .navbar-item a {
    display: block;
    padding: 1rem 0rem;
    width: 100%;
  }

  .navbar-item a:hover {
    background: var(--color-primary);
    color: var(--color-surface);
    text-shadow: none;
    transform: none;
  }
}

/* Focus indicators for keyboard navigation */
a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.navbar-item a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 4px;
}

*:focus {
  outline: none;
}

/* ============================================
   ANIMATED BACKGROUND ORBS
   ============================================ */
.hover-transition {
  display: flex;
  flex-direction: column;
  width: 100%;
  z-index: 999;
  margin-top: auto;
}

.copyright-container {
  display: flex;
  justify-content: center;
}

.copyright {
  color: var(--color-text-secondary);
  font-size: 1rem;
  margin: 16px 0px;
  text-align: center;
}

/* Individual orb placements/colors */
.orb-1 {
  --x: 20%;
  --y: 15%;
  --size: 240px;
  --dur: 16s;
  --delay: -6s;
  --dx: 35px;
  --dy: -55px;
  --s: 1.12;
  --glow: rgba(124, 106, 247, 0.35);
  background: radial-gradient(
    circle at 25% 30%,
    rgba(124, 106, 247, 0.85),
    rgba(124, 106, 247, 0) 60%
  );
}

.orb-2 {
  --x: 75%;
  --y: 20%;
  --size: 260px;
  --dur: 18s;
  --delay: -9s;
  --dx: -30px;
  --dy: -40px;
  --s: 1.1;
  --glow: rgba(167, 139, 250, 0.35);
  background: radial-gradient(
    circle at 35% 25%,
    rgba(167, 139, 250, 0.8),
    rgba(167, 139, 250, 0) 60%
  );
}

.orb-3 {
  --x: 35%;
  --y: 75%;
  --size: 220px;
  --dur: 15s;
  --delay: -3s;
  --dx: 30px;
  --dy: 45px;
  --s: 1.08;
  --glow: rgba(91, 78, 212, 0.35);
  background: radial-gradient(
    circle at 30% 40%,
    rgba(91, 78, 212, 0.75),
    rgba(91, 78, 212, 0) 60%
  );
}

.orb-4 {
  --x: 85%;
  --y: 70%;
  --size: 200px;
  --dur: 20s;
  --delay: -12s;
  --dx: -35px;
  --dy: 35px;
  --s: 1.06;
  --glow: rgba(124, 106, 247, 0.3);
  background: radial-gradient(
    circle at 30% 35%,
    rgba(124, 106, 247, 0.7),
    rgba(124, 106, 247, 0) 60%
  );
}

.orb-5 {
  --x: 10%;
  --y: 55%;
  --size: 180px;
  --dur: 17s;
  --delay: -8s;
  --dx: 25px;
  --dy: -20px;
  --s: 1.07;
  --glow: rgba(167, 139, 250, 0.28);
  background: radial-gradient(
    circle at 30% 30%,
    rgba(167, 139, 250, 0.65),
    rgba(167, 139, 250, 0) 60%
  );
}

.orb-6 {
  --x: 55%;
  --y: 45%;
  --size: 280px;
  --dur: 22s;
  --delay: -14s;
  --dx: -20px;
  --dy: 55px;
  --s: 1.1;
  --glow: rgba(91, 78, 212, 0.28);
  background: radial-gradient(
    circle at 30% 30%,
    rgba(91, 78, 212, 0.7),
    rgba(91, 78, 212, 0) 60%
  );
}
