:root {
  --bg: #05060a;
  --panel: rgba(255, 255, 255, 0.04);
  --card: rgba(255, 255, 255, 0.06);
  --stroke: rgba(255, 255, 255, 0.12);
  --text: #e7ecf3;
  --muted: #9fb1c5;
  --accent: #6fffe9;
  --accent-2: #ff7ae6;
  --accent-3: #7da6ff;
  --glow: 0 0 30px rgba(111, 255, 233, 0.3);
  --radius: 18px;
  --shadow-1: 0 20px 60px rgba(0,0,0,0.35);
  --shadow-2: 0 10px 30px rgba(0,0,0,0.25);
}
* { box-sizing: border-box; }
body {
  margin: 0; padding: 0;
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  background: radial-gradient(120% 120% at 20% 20%, rgba(111,255,233,0.08), transparent),
              radial-gradient(120% 120% at 80% 0%, rgba(255,122,230,0.08), transparent),
              radial-gradient(120% 120% at 70% 70%, rgba(125,166,255,0.08), transparent),
              var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1,h2,h3,h4 { font-family: "Space Grotesk", "Manrope", sans-serif; margin: 0; }
p { line-height: 1.7; color: var(--muted); margin: 0; }
.page { width: 100%; position: relative; isolation: isolate; }

.orb {
  position: fixed; filter: blur(60px); opacity: 0.6; z-index: -1;
  background: radial-gradient(circle at 30% 30%, var(--accent), transparent 60%);
  width: 380px; height: 380px; top: -120px; left: -80px;
  animation: drift 20s ease-in-out infinite alternate;
}
.orb.two {
  background: radial-gradient(circle at 70% 70%, var(--accent-2), transparent 60%);
  width: 420px; height: 420px; right: -120px; bottom: -80px; left: auto; top: auto;
  animation-duration: 26s;
}
@keyframes drift {
  from { transform: translate3d(0,0,0) scale(1); }
  to { transform: translate3d(30px, -20px,0) scale(1.05); }
}

header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(5,6,10,0.7);
  border-bottom: 1px solid var(--stroke);
}
.nav {
  max-width: 1200px; margin: 0 auto; padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.brand {
  display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.6px;
}
.brand .logo {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--stroke);
  display: grid; place-items: center; background: var(--panel); color: var(--accent);
  box-shadow: var(--shadow-2);
}
.nav-links {
  display: flex; align-items: center; gap: 18px; list-style: none; padding: 0; margin: 0;
}
.nav-links a { color: var(--muted); font-weight: 600; }
.nav-links a:hover { color: var(--accent); }
.btn-ghost {
  border: 1px solid var(--stroke); color: var(--text); background: transparent;
  padding: 10px 14px; border-radius: 12px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700;
  transition: border 0.2s ease, transform 0.2s ease;
}
.btn-ghost:hover { border-color: var(--accent); transform: translateY(-2px); }

.hero {
  max-width: 1200px; margin: 0 auto; padding: 80px 20px 40px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px;
  align-items: center;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px;
  border-radius: 999px; background: var(--panel); border: 1px solid var(--stroke);
  color: var(--muted); font-weight: 600; margin-bottom: 14px;
}
.hero h1 { font-size: clamp(36px, 6vw, 56px); }
.hero .subtitle { font-size: clamp(18px, 3vw, 22px); color: var(--muted); margin: 12px 0 22px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  border: none; color: #05060a; font-weight: 800; padding: 12px 16px;
  border-radius: 14px; cursor: pointer; box-shadow: var(--glow), var(--shadow-2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 32px rgba(255,122,230,0.4); }
.btn-outline {
  border: 1px solid var(--stroke); background: transparent; color: var(--text);
  padding: 12px 16px; border-radius: 14px; cursor: pointer; font-weight: 700;
  transition: border 0.2s ease, transform 0.2s ease;
}
.btn-outline:hover { border-color: var(--accent); transform: translateY(-2px); }

.hero-visual {
  position: relative; width: 100%; height: 340px;
  border-radius: 24px; overflow: hidden; background: var(--panel);
  border: 1px solid var(--stroke); box-shadow: var(--shadow-1);
}
.hero-visual::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(111,255,233,0.18), transparent 40%),
              radial-gradient(circle at 80% 30%, rgba(255,122,230,0.18), transparent 42%),
              radial-gradient(circle at 60% 70%, rgba(125,166,255,0.14), transparent 48%);
  mix-blend-mode: screen;
}
.floating-card {
  position: absolute; inset: 16px; border-radius: 18px;
  background: linear-gradient(145deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
  border: 1px solid var(--stroke); box-shadow: var(--shadow-2);
  padding: 20px; display: grid; gap: 12px;
}
.floating-card-row {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.04); border: 1px solid var(--stroke);
  border-radius: 12px; padding: 12px;
}
.floating-card-row span { color: var(--muted); font-weight: 700; }
.floating-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 14px rgba(111,255,233,0.7);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.35); opacity: 1; } }

.section {
  max-width: 1200px; margin: 0 auto; padding: 40px 20px 70px;
}
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin-bottom: 24px;
}
.section-head h2 { font-size: clamp(26px, 4vw, 34px); }
.section-head p { max-width: 640px; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.project-card {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--stroke);
  padding: 18px;
  box-shadow: var(--shadow-2);
  transition: transform 0.15s ease, border-color 0.2s ease;
  cursor: pointer;
}
.project-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.project-meta {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.glyph {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(255,255,255,0.07); border: 1px solid var(--stroke); font-size: 20px;
}
.project-card h3 { margin: 0; font-size: 20px; }
.project-desc { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tag {
  padding: 6px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--stroke);
  color: var(--text); font-size: 12px; font-weight: 700;
}
.project-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.link {
  color: var(--accent); font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px;
}
.pill {
  padding: 8px 12px; border-radius: 12px; border: 1px solid var(--stroke);
  background: transparent; color: var(--text); font-weight: 700; cursor: pointer;
}

.rail {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(111,255,233,0.08), rgba(255,122,230,0.08));
  filter: blur(120px); opacity: 0.3; z-index: -1;
}

.tilt { transform-style: preserve-3d; }
.tilt:hover { transform: translateY(-3px) rotateX(2deg) rotateY(-2deg); }

footer {
  border-top: 1px solid var(--stroke); padding: 24px 20px 40px;
  background: rgba(5,6,10,0.65); backdrop-filter: blur(14px);
  margin-top: 40px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  color: var(--muted); font-size: 14px;
}

.mobile-toggle { display: none; }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .mobile-toggle { display: inline-flex; }
}
@media (max-width: 640px) {
  .hero { padding-top: 40px; }
  .hero-visual { height: 280px; }
}

/* ========================================
   FLÈCHE VERS PAGE JOVANY - ULTRA STYLÉE
   ======================================== */

.arrow-jovany {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 70px;
  height: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  cursor: pointer;
  z-index: 9999;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: float-arrow-jovany 3s ease-in-out infinite;
}

.arrow-jovany::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, 
    rgba(255, 255, 255, 0.15),
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.15)
  );
  border-radius: 21px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.arrow-jovany:hover {
  transform: translateX(-5px) translateY(-2px) scale(1.05);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 
    0 12px 48px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 30px rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 1);
}

.arrow-jovany:hover::before {
  opacity: 1;
}

.arrow-jovany:active {
  transform: translateX(-3px) translateY(0) scale(1.02);
}

.arrow-jovany svg {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.arrow-jovany:hover svg {
  transform: translateX(4px);
}

.arrow-jovany .arrow-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.arrow-jovany:hover .arrow-label {
  opacity: 1;
}

@keyframes float-arrow-jovany {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Effet de pulse subtle */
.arrow-jovany::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3), transparent 70%);
  opacity: 0;
  animation: pulse-glow-jovany 2s ease-in-out infinite;
}

@keyframes pulse-glow-jovany {
  0%, 100% {
    opacity: 0;
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
    transform: scale(1.1);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .arrow-jovany {
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
  }
  
  .arrow-jovany svg {
    width: 28px;
    height: 28px;
  }
  
  .arrow-jovany .arrow-label {
    font-size: 9px;
  }
}

/* Mode clair - ajustement pour garder le même style glassmorphism */
body:not([data-theme="dark"]) .arrow-jovany {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.02));
  border-color: rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.8);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

body:not([data-theme="dark"]) .arrow-jovany:hover {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.04));
  border-color: rgba(0, 0, 0, 0.2);
  color: rgba(0, 0, 0, 1);
}