/* RESET */
* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
:root {
    --primary: #6e48aa;
    --secondary: #9d50bb;
    --accent: #ff6b6b;
    --dark: #0f0f1a;
    --darker: #080810;
    --light: #f8f9fa;
    --gray: #2a2a3a;
    cursor: none;
}
body {
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}
/* === Glitch === */
.logo.glitch {
  position: relative;
  font-weight: 900;
  font-size: 2rem;
  color: var(--primary);
  user-select: none;
  letter-spacing: 2px;
}

.logo.glitch::before,
.logo.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  color: var(--secondary);
  user-select: none;
  animation: glitch 3s infinite linear alternate-reverse;
  pointer-events: none;
}

.logo.glitch::before {
  left: 2px;
  text-shadow: -2px 0 rgb(234, 0, 255);
  animation-delay: 0.1s;
}

.logo.glitch::after {
  left: -2px;
  text-shadow: -2px 0 blue;
  animation-delay: 0.2s;
}

@keyframes glitch {
  0%, 100% {
    clip-path: inset(0);
    transform: translate(0);
  }
  20% {
    clip-path: inset(10% 0 45% 0);
    transform: translate(-3px, 2px);
  }
  40% {
    clip-path: inset(20% 0 20% 0);
    transform: translate(2px, -2px);
  }
  60% {
    clip-path: inset(15% 0 35% 0);
    transform: translate(-2px, 1px);
  }
  80% {
    clip-path: inset(0);
    transform: translate(0);
  }
}


.logo.glitch {
  color: rgb(0, 38, 255);
  text-shadow:
    0 0 5px rgb(0, 4, 255),
    0 0 10px rgb(0, 60, 255),
    0 0 20px rgb(0, 26, 255),
    0 0 40px rgb(0, 26, 255);

}


/* === HEADER === */
header {
  background: rgba(15, 15, 26, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 2rem;
  border-bottom: none; 
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); 
  transition: all 0.3s ease;
}

header.scrolled {
  padding: 0.8rem 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
}

/* === NAVBAR ARRONDIE AVEC ICONES === */
.nav-links {
  background-color: #0a0a0a;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links li {
  list-style: none;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: 1.5rem;
  transition: background 0.3s ease, color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background-color: #f9f9f9;
  color: #000;
}

.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.hamburger .line {
  width: 25px;
  height: 2px;
  background: var(--light);
  transition: all 0.3s ease;
}

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

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

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

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    position: relative;
    overflow: hidden;
}
.hero-content {
    max-width: 800px;
    margin: 0 auto;
}
.profile-pic {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary);
    box-shadow: 0 0 30px rgba(110, 72, 170, 0.6);
    animation: float 6s ease-in-out infinite;
    margin-bottom: 2rem;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
}
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}
.social-links a {
    color: var(--light);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}
.social-links a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

/* SECTIONS */
.section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}
.section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 3px;
}
.neon-text {
  color: rgb(0, 4, 255);
  text-shadow:
    0 0 5px rgb(0, 17, 255),
    0 0 10px rgb(0, 60, 255),
    0 0 20px rgb(0, 26, 255); /* ← point-virgule ajouté ici */
  
  animation: flicker 3s infinite;
}

@keyframes flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    text-shadow:
      0 0 5px rgb(93, 76, 153),
      0 0 10px rgb(0, 17, 255),
      0 0 20px rgb(93, 76, 160),
  }
  20%, 24%, 55% {
    text-shadow: none;
  }
}


/* SKILLS GRID with 3D flip cards */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    perspective: 1500px;
}

.skill-card {
    width: 100%;
    height: 220px;
    cursor: pointer;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(110, 72, 170, 0.3);
}
.skill-card:hover {
    transform: rotateY(180deg);
}
.skill-front, .skill-back {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 2rem;
    border-radius: 15px;
    backface-visibility: hidden;
    background: rgba(30, 30, 60, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(110, 72, 170, 0.4);
}
.skill-front {
    color: var(--primary);
}
.skill-front i {
    margin-bottom: 1rem;
}
.skill-front h3 {
    font-size: 1.5rem;
}
.skill-back {
    color: var(--light);
    transform: rotateY(180deg);
    text-align: center;
}
.skill-back p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* PROJECTS */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.project-card {
    background: rgba(30, 30, 60, 0.5);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
}
.project-media {
    position: relative;
    display: block;
    overflow: hidden;
    border-bottom: 1px solid rgba(110, 72, 170, 0.2);
}
.project-media img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.project-media:hover img {
    transform: scale(1.05);
}
.overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(110, 72, 170, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.project-media:hover .overlay {
    opacity: 1;
}
.overlay i {
    color: white;
    font-size: 1.5rem;
}
.project-info {
    padding: 1.5rem;
}
.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--light);
}
.project-info p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}
.badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.badge {
    background: var(--primary);
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.badge.python {
    background: #3572A5;
}

/* CONTACT */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-card {
    background: rgba(30, 30, 60, 0.5);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(110, 72, 170, 0.3);
    cursor: default;
}

.contact-card:hover {
    transform: translateY(-5px);
    background: rgba(110, 72, 170, 0.2);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.contact-card i {
    font-size: 2rem;
    color: #9b58f2;  
    margin-bottom: 1rem;
}

.contact-card h3 {
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.btn, .btn-discord {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.btn {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: var(--light);
    border: none; 
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(30, 30, 60, 0.5);
}

.btn-discord {
    background: #9b58f2;
    color: white;
}

.btn-discord:hover {
    background: #5a47c4;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(110, 72, 170, 0.3);
}


.contact-info-box {
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  margin-top: 2rem;
  color: #fff;
  max-width: 400px;
}
.contact-info-box h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}
.info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: center;
}
.info-item i {
  font-size: 1.5rem;
}


/* === FOOTER === */
footer {
  text-align: center;
  padding: 2rem;
  background: var(--darker);
  margin-top: 3rem;
}
footer p {
  color: rgba(255, 255, 255, 0.6);
}


/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--darker);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: all 0.3s ease;
        z-index: 9999;
    }
    .nav-links.active {
        left: 0;
    }
    .hamburger {
        display: flex;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .section {
        padding: 4rem 1.5rem;
    }
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    .profile-pic {
        width: 140px;
        height: 140px;
    }
    .skills-grid {
        grid-template-columns: 1fr;
    }
    .contact-methods {
        grid-template-columns: 1fr;
    }
}

/* --- CURSEUR PERSONNALISÉ --- */

/* Cache le curseur natif */
body {
    cursor: none;
}

/* Curseur principal : petit point violet avec effets néon */
#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #5f00cc, #6200ff);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    box-shadow:
        0 0 8px rgba(111, 0, 255, 0.7),
        0 0 15px rgba(178, 111, 255, 0.8),
        inset 0 0 8px rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    transition: 
        transform 0.15s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s ease,
        background 0.3s ease;
}


#custom-cursor.clicking {
    transform: translate(-50%, -50%) scale(0.6);
    background: linear-gradient(135deg, #5f00cc, #6200ff);
    box-shadow:
        0 0 12px rgba(111, 0, 255, 0.7),
        0 0 25px rgba(178, 111, 255, 0.8),
        inset 0 0 12px rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.9);
}


a:hover ~ #custom-cursor {
    transform: translate(-50%, -50%) scale(1.5);
    box-shadow:
        0 0 20px rgba(111, 0, 255, 0.7),
        0 0 40px rgba(178, 111, 255, 0.8),
        inset 0 0 15px rgba(255, 255, 255, 0.7);
}

/* --- BULLE FLOTTANTE --- */
#cursor-bubble {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    background: rgba(140, 0, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 10px rgba(190, 150, 255, 0.2);
    backdrop-filter: blur(3px);
    transform: translate(-50%, -50%);
    transition: background 0.3s ease, border 0.3s ease;
}


.skill-card:hover {
    transform: rotateY(180deg);
}

.skill-front, .skill-back {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 2rem;
    border-radius: 15px;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.skill-front {
    color: var(--primary);
    z-index: 2;
}

.skill-back {
    color: var(--light);
    background: rgba(20, 20, 50, 0.95);
    transform: rotateY(180deg);
    text-align: center;
    border: 1px solid rgba(110,72,170,0.6);
    z-index: 1;
}
:root {
  --primary: #7f5af0;
  --secondary: #ff6b6b;
  --bg-card: rgba(20, 17, 40, 0.65);
  --radius: 14px;
  --transition: 0.6s cubic-bezier(.23,.43,.23,1);
  --glow: 0 0 18px rgba(127,90,240,0.7);
}

:root {
  --primary: #7f5af0;
  --secondary: #ff6b6b;
  --bg-card: rgba(18, 13, 50, 0.85);
  --radius: 16px;
  --text: #e8e8f9;
  --muted: #999;
  --shadow: 0 25px 60px -10px rgba(127,90,240,0.3);
  --transition: 0.45s cubic-bezier(.25,.8,.25,1);
  --glow: 0 0 35px rgba(127,90,240,0.5);
}

#parcours {
  max-width: 1000px;
  margin: 4rem auto 6rem;
  padding: 0 1rem;
  position: relative;
}

#parcours h2 {
  font-size: 2.1rem;
  margin-bottom: 1.75rem;
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
}
.neon-text {
  position: relative;
  color: var(--primary);
  font-weight: 700;
}
.neon-text::after {
  content: attr(data-text);
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.timeline-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .6s ease, transform .6s ease;
  position: relative;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.bullet-wrapper {
  position: relative;
  flex: 0 0 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bullet {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: 3px solid rgba(255,255,255,0.08);
  position: relative;
  box-shadow:
    0 0 18px var(--primary),
    0 0 25px var(--secondary);
  transition: transform var(--transition), box-shadow .3s ease;
}

.bullet::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  filter: blur(20px);
  background: radial-gradient(circle at 50% 50%, var(--primary) 0%, transparent 60%);
  opacity: 0.7;
}

.timeline-item:hover .bullet,
.timeline-item:focus-within .bullet {
  transform: scale(1.1);
  box-shadow:
    0 0 28px var(--secondary),
    0 0 45px var(--primary);
}

.vertical-line {
  position: absolute;
  top: 32px;
  left: 50%;
  width: 4px;
  height: calc(100% + 10px);
  transform: translateX(-50%);
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  border-radius: 3px;
  z-index: 0;
  filter: drop-shadow(0 0 12px var(--primary));
}

.card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius);
  position: relative;
  flex: 1;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 35px 80px -10px rgba(127,90,240,0.35);
}

.timeline-date {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
  color: var(--muted);
  font-weight: 600;
}

.card h3 {
  margin: 0.3rem 0 6px;
  font-size: 1.45rem;
  line-height: 1.1;
  display: flex;
  gap: 6px;
  align-items: center;
}

.small-tag {
  background: rgba(255,255,255,0.05);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-left: 4px;
}

.desc {
  margin: 0;
  line-height: 1.5;
  font-size: 0.95rem;
  color: #dcdcee;
}

/* apparition glow subtle */
.timeline-item.visible .card {
  --tmp: 1;
}

/* responsive */
@media (max-width: 940px) {
  .timeline-item {
    flex-direction: column;
    gap: 1rem;
  }
  .bullet-wrapper {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
  }
  .vertical-line {
    top: 28px;
    left: 22px;
    height: calc(100% + 4px);
  }
}
/* ===== COMPETENCES CARTES ===== */
.skill-card {
  position: relative;
  width: 100%;
  height: 230px;
  cursor: pointer;
  perspective: 1200px;
  background-color: #101070; 
  border-radius: 15px;
  overflow: hidden;
}

.skill-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(20, 25, 70, 0.7);
  background-color: transparent; 
}

.skill-card:hover .skill-inner {
  transform: rotateY(180deg);
}

.skill-front, .skill-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  color: #e1dfff;
  background-color: #2b2672; 
  box-sizing: border-box;
}

.skill-back {
  background-color: #1a1b4a; 
  transform: rotateY(180deg);
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 500;
  text-align: center;
}



.code-showcase-wrapper {
  position: relative;
  max-width: 720px;
  margin: 3rem auto;
  padding: 2rem 1rem 3.5rem;
  font-family: "Fira Code", "JetBrains Mono", monospace;
  color: #e5e7ff;
}

.code-window {
  background: linear-gradient(135deg,#0f0c2d 0%,#1f1b4f 60%);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 40px 90px -10px rgba(127,90,240,0.45), 0 10px 30px -5px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.08);
}

.code-header {
  display: flex;
  align-items: center;
  padding: 0.65rem 1rem;
  background: rgba(20,16,60,0.9);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  gap: 0.75rem;
}

.circles {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.circle {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

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

.filename {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 600;
  color: #d0d4ff;
}

.code-block {
  padding: 1rem 1.25rem;
  margin: 0;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.35;
  position: relative;
  white-space: pre-wrap;
  word-break: break-word;
}

/* syntax highlighting simple */
.keyword { color: #c792ea; }
.type { color: #82aaff; }
.classname { color: #ffcb6b; font-weight:600; }
.string { color: #c3e88d; }
.method { color: #f78c6c; }
.desc { color: #abb2bf; }
.comment { color: #6272a4; font-style: italic; }

/* floating purple dot */
.floating-dot {
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background: #a362ff;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(163,98,255,0.6);
  animation: pulse-dot 2.8s infinite;
}

@keyframes pulse-dot {
  0% { transform: translateY(-50%) scale(1); opacity: 1; }
  50% { transform: translateY(-50%) scale(1.4); opacity: 0.4; }
  100% { transform: translateY(-50%) scale(1); opacity: 1; }
}

/* scroll indicator at bottom-left */
.scroll-indicator {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 1.2rem;
  color: #aaa;
  user-select: none;
}

.mouse {
  width: 28px;
  height: 44px;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 16px;
  position: relative;
  display: flex;
  justify-content: center;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,0.6);
  border-radius: 2px;
  margin-top: 6px;
  animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
  0% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(6px); opacity: 0.5; }
  100% { transform: translateY(0); opacity: 1; }
}

.arrow {
  font-size: 1.1rem;
  margin-top: 2px;
  animation: bounce 2s infinite;
  color: #d0d4ff;
}

@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
.skill-front i, .skill-front svg {
  display: block;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 6px #a362ff);
}
/* === NAVBAR RONDE ET ICÔNES === */
:root {
  --primary: #7f5af0;
  --bg-card: rgba(13, 20, 50, 0.85);
  --radius: 16px;
  --text: #e8e8f9;
  --muted: #999;
  --shadow: 0 25px 50px -15px rgba(78, 2, 201, 0.7);
  --transition: 0.35s ease;
  --glow: 0 0 20px rgba(127,90,240,0.5);
  --electric-blue: #f87171;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 2rem 1rem;
  max-width: 960px;
  margin: 0 auto;

  align-items: start;
  grid-auto-rows: 1fr;
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  border: 1px solid transparent;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  max-width: 100%;
  margin: 0;

  animation: fadeUp 0.5s ease forwards;
  opacity: 0;
  animation-delay: var(--delay, 0s);
}

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

.service-card h3 {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  transition: color var(--transition);
}

.service-card p {
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.3;
  flex-grow: 1;
}

/* Prix en bleu électrique */
.service-card .price {
  font-size: 1rem;
  font-weight: 600;
  color: var(--electric-blue);
  margin-bottom: 1rem;
}

.service-card .btn {
  align-self: center;
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  padding: 0.4rem 1rem;
  border-radius: calc(var(--radius) / 1.5);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition), box-shadow var(--transition);
  box-shadow: none;
  min-width: 110px;
  font-size: 0.9rem;
  text-align: center;
}

.service-card .btn:hover {
  background: var(--primary);
  color: var(--text);
  box-shadow: var(--glow);
}

@media (max-width: 768px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}


#valcoria-popup {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 20, 30, 0.75);
  backdrop-filter: blur(8px);
  z-index: 10000;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#valcoria-popup.show {
  display: flex;
  animation: popupFadeIn 0.3s ease forwards;
}

@keyframes popupFadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

.popup-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
}

.popup-content {
  position: relative;
  background: rgba(21, 15, 35, 0.95);
  border-radius: 15px;
  padding: 1.5rem 2rem;
  width: 380px;
  max-width: 95vw;
  box-shadow: 0 0 20px rgb(111, 0, 255);
  color: #c1aaff;
  box-sizing: border-box;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  user-select: text;
  outline: none;
}

.popup-content header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(4, 0, 255, 0.2);
  padding-bottom: 0.3rem;
  font-weight: 700;
  font-size: 1.4rem;
}

.popup-content header button {
  background: transparent;
  border: none;
  color: rgb(98, 0, 255);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

.popup-content header button:hover {
  color: #7a33ff;
}

/* Onglets */
.tabs {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.tabs button {
  flex: 1;
  background: rgba(4, 0, 255, 0.15);
  border: none;
  padding: 0.6rem 1rem;
  color: rgb(76, 0, 255);
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.tabs button[aria-selected="true"] {
  background: rgb(89, 0, 255);
  color: rgb(0, 5, 51);
  cursor: default;
  box-shadow: 0 0 8px rgb(111, 0, 255);
}

.tabs button:hover:not([aria-selected="true"]) {
  background: rgba(4, 0, 255, 0.3);
}

/* Sections tab */
main > section {
  display: block;
}

main > section[hidden] {
  display: none;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.info-table th, .info-table td {
  text-align: left;
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid rgba(0, 26, 255, 0.133);
}

.info-table th {
  color: #3347ff;
  width: 50%;
}

/* Footer */
footer {
  display: flex;
  justify-content: flex-end;
}

#clear-data-btn {
  background: rgb(0, 47, 255);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  color: rgb(20, 0, 51);
  font-weight: 700;
  transition: background-color 0.2s ease;
}

#clear-data-btn:hover {
  background: #8133ff;
}
/* SECTION "À propos de moi" */
#about.section {
  padding: 40px 20px;
  background: transparent;
  text-align: center;
}

#about h2 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 10px;
  text-align: center;
  text-decoration: none; 
  position: relative;
  display: block;
}

#about .underline {
  width: 0px;  
  height: 3px;
  margin: 8px auto 0 auto;  
  background: linear-gradient(90deg, #a855f7, #00ffe7);
  border-radius: 2px;
}

.neon-text {
  background: linear-gradient(90deg, #a855f7, #00ffe7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
}

/* Texte principal */
.about-content {
  max-width: 600px;
  margin: 0 auto 40px auto;
  background: rgba(255, 255, 255, 0.03);
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 30px;
  color: #d1d5db;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  animation: fadeInUp 1s ease-in-out;
}

/* Cartes stats */
.client-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin-top: 20px;
}

.stat-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px 30px;
  min-width: 200px;
  color: #fff;
  box-shadow: 0 0 10px rgba(142, 85, 247, 0.2);
  transition: transform 0.3s ease;
  backdrop-filter: blur(6px);
}

.stat-item:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(89, 0, 255, 0.3);
}

.stat-item h4 {
  font-size: 1rem;
  color: #5900ff;
  margin-bottom: 10px;
}

.stat-item .count {
  font-size: 1.8rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 8px rgba(0, 255, 231, 0.3);
}

/* Animations */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section Contactez-moi */
/* Section Contactez-moi - fond transparent */
#formulaire.section {
  background: rgba(14, 14, 27, 0.3); /* très transparent */
  backdrop-filter: blur(10px);
  padding: 60px 20px;
  text-align: center;
  border-radius: 15px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
}

/* Titre harmonisé avec le reste */
#formulaire.section h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  left: auto;
  transform: none;
}

/* Utilise le même effet néon que les autres */
#formulaire.section .neon-text {
  color: rgb(0, 4, 255);
  text-shadow:
    0 0 5px rgb(98, 43, 248),
    0 0 10px rgb(98, 43, 248),
    0 0 20px rgb(98, 43, 248);
}

/* Formulaire transparent */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(26, 26, 46, 0.2); /* transparent */
  backdrop-filter: blur(12px);
  padding: 30px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(142, 36, 170, 0.2);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form label {
  text-align: left;
  font-weight: bold;
  color: var(--light);
}

.contact-form input,
.contact-form textarea {
  background: rgba(15, 15, 28, 0.15); 
  border: 1px solid rgba(202, 191, 255, 0.3);
  color: var(--light);
  padding: 12px;
  border-radius: 8px;
  font-size: 1rem;
  resize: vertical;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  background: rgba(15, 15, 28, 0.3);
  outline: none;
}

.contact-form button {
  background: linear-gradient(135deg, rgba(106, 27, 154, 0.9), rgba(74, 20, 140, 0.9));
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 25px;
  padding: 14px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-form button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(126, 87, 194, 0.6);
}
