
  @import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Share+Tech+Mono&display=swap');

  :root {
    --cyan: #00f5ff;
    --magenta: #ff00aa;
    --dark: #050a0e;
    --dark2: #0a1520;
    --grid: rgba(0,245,255,0.05);
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  html { scroll-behavior: smooth; }

  body {
    background: var(--dark);
    color: #e0e0e0;
    font-family: 'Share Tech Mono', monospace;
    overflow-x: hidden;
    cursor: none;
  }

  /* CUSTOM CURSOR */
  .cursor {
    width: 12px; height: 12px;
    border: 2px solid var(--cyan);
    border-radius: 50%;
    position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 9999;
    transition: transform 0.1s;
    box-shadow: 0 0 10px var(--cyan);
  }
  .cursor-trail {
    width: 30px; height: 30px;
    border: 1px solid rgba(0,245,255,0.3);
    border-radius: 50%;
    position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 9998;
    transition: transform 0.25s ease, opacity 0.25s;
  }

  /* CANVAS 3D */
  #bg-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
  }

  /* NAV */
  nav {
    position: fixed; top: 0; width: 100%;
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 60px;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(5,10,14,0.9), transparent);
    backdrop-filter: blur(2px);
  }

  .nav-logo {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    color: var(--cyan);
    text-shadow: 0 0 20px var(--cyan);
    letter-spacing: 4px;
  }

  .nav-links { display: flex; gap: 40px; list-style: none; }
  .nav-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: all 0.3s;
    position: relative;
  }
  .nav-links a::after {
    content: '';
    position: absolute; bottom: -4px; left: 0;
    width: 0; height: 1px;
    background: var(--cyan);
    transition: width 0.3s;
    box-shadow: 0 0 10px var(--cyan);
  }
  .nav-links a:hover { color: var(--cyan); }
  .nav-links a:hover::after { width: 100%; }

  /* SECTIONS */
  section {
    position: relative; z-index: 10;
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 100px 60px;
  }

  /* HERO */
  #hero {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  gap: 200px;
  margin: -50px;
}
.skill-icons-right {
  display: flex;
  gap: 8px;
  align-items: center;
}
.hero-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.hero-greeting {
  font-family: 'Orbitron', monospace;
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 4px;
}

.hero-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-photo {
  width: 100%;
  max-width: 450px;
  height: 410px;
  object-fit: cover;
  border: 1px solid rgba(0,245,255,0.3);
  box-shadow: 0 0 40px rgba(0,245,255,0.15);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

  .glitch-wrapper { position: relative; }

  .hero-name {
    font-family: 'Orbitron', monospace;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 10px;
    line-height: 1;
    position: relative;
    animation: glitch 3s infinite;
  }

  .hero-name::before, .hero-name::after {
    content: attr(data-text);
    position: absolute; top: 0; left: 0; width: 100%;
    background: var(--dark);
  }
  .hero-name::before {
    color: var(--cyan);
    animation: glitch-1 3s infinite;
    clip-path: polygon(0 30%, 100% 30%, 100% 50%, 0 50%);
  }
  .hero-name::after {
    color: var(--magenta);
    animation: glitch-2 3s infinite;
    clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%);
  }

  @keyframes glitch {
    0%, 90%, 100% { transform: none; }
    92% { transform: skewX(2deg); }
    94% { transform: skewX(-2deg); }
  }
  @keyframes glitch-1 {
    0%, 90%, 100% { transform: none; opacity: 0; }
    92% { transform: translateX(-4px); opacity: 0.8; }
    94% { transform: translateX(4px); opacity: 0.8; }
    96% { opacity: 0; }
  }
  @keyframes glitch-2 {
    0%, 88%, 100% { transform: none; opacity: 0; }
    90% { transform: translateX(4px); opacity: 0.7; }
    92% { transform: translateX(-4px); opacity: 0.7; }
    94% { opacity: 0; }
  }

  .hero-sub {
    font-family: 'Orbitron', monospace;
    font-size: clamp(0.8rem, 2vw, 1.1rem);
    color: var(--cyan);
    letter-spacing: 8px;
    text-transform: uppercase;
    text-shadow: 0 0 20px var(--cyan);
    margin-top: 10px;
  }

  .hero-desc {
    max-width: 500px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.8;
    letter-spacing: 1px;
  }

  .btn-cyber {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 40px;
    font-family: 'Orbitron', monospace;
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--cyan);
    border: 1px solid var(--cyan);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(0,245,255,0.2), inset 0 0 20px rgba(0,245,255,0.05);
    clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  }
  .btn-cyber:hover {
    background: var(--cyan);
    color: var(--dark);
    box-shadow: 0 0 40px rgba(0,245,255,0.6);
  }

.skill-level {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-family: monospace;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.level-maitrise {
  background: rgba(0, 245, 255, 0.15);
  border: 1px solid #00f5ff;
  color: #00f5ff;
}

.level-bon {
  background: rgba(0, 245, 255, 0.08);
  border: 1px solid rgba(0, 245, 255, 0.5);
  color: rgba(0, 245, 255, 0.8);
}

.level-maitre {
  background: rgba(255, 200, 0, 0.1);
  border: 1px solid rgba(255, 200, 0, 0.6);
  color: rgba(255, 200, 0, 0.9);
}
  
  /* TYPING EFFECT */
  .typing {
    display: inline-block;
    border-right: 2px solid var(--cyan);
    padding-right: 4px;
    animation: blink 0.8s step-end infinite;
    color: var(--cyan);
  }
  @keyframes blink { 50% { border-color: transparent; } }

  
  #about .about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1100px;
    margin: auto;
    align-items: center;
  }

  .section-label {
    font-family: 'Orbitron', monospace;
    font-size: 0.65rem;
    letter-spacing: 6px;
    color: var(--magenta);
    text-transform: uppercase;
    margin-bottom: 10px;
    text-shadow: 0 0 15px var(--magenta);
  }

  
  .section-label2 {
    font-family: 'Orbitron', monospace;
    font-size: 0.65rem;
    letter-spacing: 6px;
    color: var(--magenta);
    text-transform: uppercase;
    margin-top: 50px;
    text-shadow: 0 0 15px var(--magenta);
  }


  .section-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 30px;
  }

  .about-text {
    font-size: 0.85rem;
    line-height: 2;
    color: rgba(255,255,255,0.55);
  }

  .about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .stat-card {
    border: 1px solid rgba(0,245,255,0.15);
    padding: 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    background: rgba(0,245,255,0.03);
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  }
  .stat-card:hover {
    border-color: var(--cyan);
    box-shadow: 0 0 30px rgba(0,245,255,0.15);
    background: rgba(0,245,255,0.07);
  }
  .stat-card::before {
    content: '';
    position: absolute; top: 0; right: 0;
    width: 12px; height: 12px;
    border-right: 1px solid var(--cyan);
    border-top: 1px solid var(--cyan);
  }
  .stat-num {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--cyan);
    text-shadow: 0 0 20px var(--cyan);
    display: block;
  }
  .stat-label {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    margin-top: 5px;
    display: block;
  }

  /* SKILLS */
  #skills { flex-direction: column; gap: 60px; }
  .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1100px;
    width: 100%;
  }

  .skill-card {
    border: 1px solid rgba(0,245,255,0.1);
    padding: 30px;
    background: rgba(0,245,255,0.02);
    position: relative;
    transition: all 0.4s;
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
  }
  .skill-card:hover {
    border-color: rgba(0,245,255,0.4);
    box-shadow: 0 0 40px rgba(0,245,255,0.1), inset 0 0 40px rgba(0,245,255,0.03);
    transform: translateY(-5px);
  }
  .skill-card::before {
    content: '';
    position: absolute; top: 0; right: 0;
    width: 15px; height: 15px;
    border-right: 1px solid var(--cyan);
    border-top: 1px solid var(--cyan);
  }
  .skill-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
    filter: grayscale(0.3);
  }
  .skill-name {
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 15px;
    letter-spacing: 2px;
  }
  .skill-bar {
    height: 3px;
    background: rgba(255,255,255,0.08);
    position: relative;
    overflow: hidden;
  }
  .skill-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--cyan), var(--magenta));
    box-shadow: 0 0 10px var(--cyan);
    width: 0%;
    transition: width 1.5s cubic-bezier(0.1,0.5,0.5,1);
  }
  .skill-percent {
    font-size: 0.7rem;
    color: var(--cyan);
    text-align: right;
    margin-top: 6px;
    display: block;
  }

  /* PROJECTS */
  #projects { flex-direction: column; gap: 60px; }
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    max-width: 1100px;
    width: 100%;
  }

  .project-card {
    border: 1px solid rgba(0,245,255,0.1);
    overflow: hidden;
    position: relative;
    transition: all 0.4s;
    background: var(--dark2);
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
  }
  .project-card::before {
    content: '';
    position: absolute; top: 0; right: 0;
    width: 20px; height: 20px;
    border-right: 1px solid var(--cyan);
    border-top: 1px solid var(--cyan);
  }
  .project-card:hover {
    border-color: var(--cyan);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,245,255,0.15);
  }

  .project-thumb img {
  width: 350px;
  height: 350px;
  object-fit: cover; 
}

  .project-thumb {
    height: 180px;
    position: relative;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    font-size: 4rem;
  }
  .project-thumb::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, transparent, var(--dark2));
  }
  .p-bg-1 { background: linear-gradient(135deg, #0a1a2e, #001a33); }
  .p-bg-2 { background: linear-gradient(135deg, #1a0a2e, #2d0040); }
  .p-bg-3 { background: linear-gradient(135deg, #0a2020, #003333); }

  .project-info { padding: 25px; }
  .project-num {
    font-family: 'Orbitron', monospace;
    font-size: 0.6rem;
    color: var(--magenta);
    letter-spacing: 4px;
    margin-bottom: 8px;
  }
  .project-title {
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: 2px;
  }
  .project-desc {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.8;
    margin-bottom: 20px;
  }
  .tags { display: flex; flex-wrap: wrap; gap: 8px; }
  .tag {
    padding: 4px 12px;
    border: 1px solid rgba(0,245,255,0.3);
    font-size: 0.65rem;
    color: var(--cyan);
    letter-spacing: 2px;
    text-transform: uppercase;
  }

  /* CONTACT */
  #contact { flex-direction: column; gap: 50px; text-align: center; }
  .contact-content { max-width: 600px; }
  .contact-email {
    font-family: 'Orbitron', monospace;
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--cyan);
    text-shadow: 0 0 30px var(--cyan);
    letter-spacing: 4px;
    text-decoration: none;
    display: block;
    margin: 30px 0;
    transition: all 0.3s;
  }
  .contact-email:hover { text-shadow: 0 0 60px var(--cyan); letter-spacing: 6px; }

  .social-links { display: flex; gap: 20px; justify-content: center; margin-top: 30px; }
  .social-link {
    padding: 12px 28px;
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: all 0.3s;
    clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  }
  .social-link:hover {
    border-color: var(--magenta);
    color: var(--magenta);
    box-shadow: 0 0 20px rgba(255,0,170,0.3);
  }

  /* FOOTER */
  footer {
    position: relative; z-index: 10;
    text-align: center;
    padding: 30px;
    font-size: 0.65rem;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.2);
    border-top: 1px solid rgba(0,245,255,0.05);
  }

  /* SCANLINE OVERLAY */
  body::after {
    content: '';
    position: fixed; inset: 0;
    background: repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0,0,0,0.03) 2px,
      rgba(0,0,0,0.03) 4px
    );
    pointer-events: none;
    z-index: 1000;
  }

  /* SECTION DIVIDER */
  .section-header { text-align: center; max-width: 1100px; width: 100%; }
  .divider {
    display: flex; align-items: center; gap: 20px;
    margin-bottom: 60px; justify-content: center;
  }
  .divider-line {
    height: 1px; flex: 1; max-width: 200px;
    background: linear-gradient(90deg, transparent, var(--cyan));
  }
  .divider-line.right { background: linear-gradient(90deg, var(--cyan), transparent); }

  /* SCROLL INDICATOR */
  .scroll-indicator {
    position: absolute; bottom: 40px; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    animation: float 2s ease-in-out infinite;
  }
  .scroll-text { font-size: 0.6rem; letter-spacing: 4px; color: rgba(255,255,255,0.3); }
  .scroll-arrow {
    width: 1px; height: 50px;
    background: linear-gradient(to bottom, var(--cyan), transparent);
    box-shadow: 0 0 10px var(--cyan);
  }
  @keyframes float { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }

  /* FADE IN */
  .fade-in { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
  .fade-in.visible { opacity: 1; transform: translateY(0); }

 @import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Share+Tech+Mono&display=swap');

  /* SCANLINES */
  body::after {
    content: '';
    position: fixed; inset: 0;
    background: repeating-linear-gradient(
      0deg, transparent, transparent 2px,
      rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px
    );
    pointer-events: none;
    z-index: 1000;
  }

  /* CURSOR */
  .cursor {
    width: 12px; height: 12px;
    border: 2px solid var(--cyan);
    border-radius: 50%;
    position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 9999;
    box-shadow: 0 0 10px var(--cyan);
    transition: transform 0.1s;
  }
  .cursor-trail {
    width: 30px; height: 30px;
    border: 1px solid rgba(0,245,255,0.3);
    border-radius: 50%;
    position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 9998;
    transition: transform 0.25s ease;
  }

  /* CANVAS */
  #bg-canvas {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
  }

  /* BACK BUTTON */
  .back-btn {
    position: fixed;
    top: 30px; left: 40px;
    z-index: 100;
    display: flex; align-items: center; gap: 10px;
    text-decoration: none;
    color: rgba(255,255,255,0.5);
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: all 0.3s;
    padding: 10px 20px;
    border: 1px solid rgba(0,245,255,0.15);
    clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  }
  .back-btn:hover {
    color: var(--cyan);
    border-color: var(--cyan);
    box-shadow: 0 0 20px rgba(0,245,255,0.2);
  }
  .back-btn::before { content: '←'; font-size: 1rem; }

  /* MAIN CONTENT */
  .container {
    position: relative; z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 40px 80px;
  }

  /* HEADER */
  .page-header {
    text-align: center;
    margin-bottom: 70px;
  }
  .section-label {
    font-family: 'Orbitron', monospace;
    font-size: 0.65rem;
    letter-spacing: 6px;
    color: var(--magenta);
    text-transform: uppercase;
    margin-bottom: 12px;
    text-shadow: 0 0 15px var(--magenta);
  }
  .page-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: 6px;
    text-transform: uppercase;
    line-height: 1;
  }
  .title-line {
    display: flex; align-items: center; gap: 20px;
    justify-content: center;
    margin-top: 20px;
  }
  .t-line {
    height: 1px; width: 100px;
    background: linear-gradient(90deg, transparent, var(--cyan));
  }
  .t-line.r { background: linear-gradient(90deg, var(--cyan), transparent); }
  .title-dot {
    width: 6px; height: 6px;
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan);
    transform: rotate(45deg);
  }

  /* FILTER TABS */
  .filters {
    display: flex; gap: 12px; justify-content: center;
    margin-bottom: 50px; flex-wrap: wrap;
  }
  .filter-btn {
    padding: 8px 24px;
    border: 1px solid rgba(0,245,255,0.2);
    background: transparent;
    color: rgba(255,255,255,0.4);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: none;
    transition: all 0.3s;
    clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  }
  .filter-btn:hover, .filter-btn.active {
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: 0 0 20px rgba(0,245,255,0.2);
    background: rgba(0,245,255,0.05);
  }

  /* GALLERY GRID */
  .gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
  }

  .gallery-item {
    width: calc(25% - 12px);
    aspect-ratio: 1;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,245,255,0.1);
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
    cursor: none;
    transition: all 0.4s;
    background: var(--dark2);
  }

  .gallery-item::before {
    content: '';
    position: absolute; top: 0; right: 0;
    width: 14px; height: 14px;
    border-right: 1px solid var(--cyan);
    border-top: 1px solid var(--cyan);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s;
  }
  .gallery-item::after {
    content: '';
    position: absolute; bottom: 0; left: 0;
    width: 14px; height: 14px;
    border-left: 1px solid var(--magenta);
    border-bottom: 1px solid var(--magenta);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s;
  }

  .gallery-item:hover {
    border-color: var(--cyan);
    box-shadow: 0 0 30px rgba(0,245,255,0.2);
    transform: scale(1.03);
    z-index: 2;
  }
  .gallery-item:hover::before,
  .gallery-item:hover::after { opacity: 1; }

  .gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(0.2) brightness(0.8);
    transition: all 0.4s;
  }
  .gallery-item:hover img {
    filter: grayscale(0) brightness(1);
    transform: scale(1.08);
  }

  /* PLACEHOLDER si pas d'image */
  .gallery-placeholder {
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #0a1520, #050a0e);
    border: 2px dashed rgba(0,245,255,0.15);
    transition: all 0.3s;
    position: relative;
  }
  .gallery-placeholder input[type="file"] {
    position: absolute; inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%; height: 100%;
  }
  .gallery-placeholder:hover {
    border-color: rgba(0,245,255,0.4);
    background: rgba(0,245,255,0.03);
  }
  .placeholder-icon {
    font-size: 2rem;
    opacity: 0.3;
    transition: all 0.3s;
  }
  .gallery-placeholder:hover .placeholder-icon { opacity: 0.7; transform: scale(1.1); }
  .placeholder-text {
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: rgba(0,245,255,0.3);
    text-transform: uppercase;
  }

  /* OVERLAY AU HOVER */
  .item-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(5,10,14,0.9) 0%, transparent 60%);
    display: flex; flex-direction: column;
    justify-content: flex-end;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
  }
  .gallery-item:hover .item-overlay { opacity: 1; }
  .item-title {
    font-family: 'Orbitron', monospace;
    font-size: 0.65rem;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
  }
  .item-tag {
    font-size: 0.55rem;
    color: var(--cyan);
    letter-spacing: 2px;
    margin-top: 4px;
  }

  /* LIGHTBOX */
  .lightbox {
    position: fixed; inset: 0;
    background: rgba(5,10,14,0.95);
    z-index: 500;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s;
    backdrop-filter: blur(10px);
  }
  .lightbox.open { opacity: 1; pointer-events: all; }
  .lightbox img {
    max-width: 85vw; max-height: 85vh;
    object-fit: contain;
    border: 1px solid rgba(0,245,255,0.3);
    box-shadow: 0 0 60px rgba(0,245,255,0.2);
  }
  .lightbox-close {
    position: absolute; top: 30px; right: 40px;
    font-family: 'Orbitron', monospace;
    font-size: 0.7rem;
    letter-spacing: 4px;
    color: rgba(255,255,255,0.5);
    cursor: none;
    transition: color 0.3s;
    text-transform: uppercase;
  }
  .lightbox-close:hover { color: var(--magenta); }

  /* RESPONSIVE */
  @media (max-width: 900px) {
    .gallery-item { width: calc(33.33% - 12px); }
  }
  @media (max-width: 600px) {
    .gallery-item { width: calc(50% - 8px); }
    .container { padding: 100px 20px 60px; }
  }

  /* FADE IN */
  .fade-in { opacity: 0; transform: translateY(20px); transition: all 0.6s ease; }
  .fade-in.visible { opacity: 1; transform: translateY(0); }

  @import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Share+Tech+Mono&display=swap');
  :root { --cyan: #00f5ff; --magenta: #ff00aa; --dark: #050a0e; }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  body { background: var(--dark); font-family: 'Share Tech Mono', monospace; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 100px 20px 60px; }
  .back-btn {
    position: fixed; top: 30px; left: 40px; z-index: 100;
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: rgba(255,255,255,0.5);
    font-size: 0.7rem; letter-spacing: 3px; text-transform: uppercase;
    transition: all 0.3s; padding: 10px 20px;
    border: 1px solid rgba(0,245,255,0.15);
    clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  }
  .back-btn:hover { color: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 20px rgba(0,245,255,0.2); }
  .section-label {
    font-family: 'Orbitron', monospace; font-size: 0.65rem;
    letter-spacing: 6px; color: var(--magenta); text-transform: uppercase;
    margin-bottom: 12px; text-shadow: 0 0 15px var(--magenta); text-align: center;
  }
  .page-title {
    font-family: 'Orbitron', monospace; font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900; color: #fff; letter-spacing: 6px;
    text-transform: uppercase; text-align: center; margin-bottom: 40px;
  }
  .cv-frame {
    border: 1px solid rgba(0,245,255,0.3);
    box-shadow: 0 0 40px rgba(0,245,255,0.15), 0 0 80px rgba(255,0,170,0.05);
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
    position: relative; max-width: 800px; width: 100%;
  }
  .cv-frame::before {
    content: ''; position: absolute; top: 0; right: 0;
    width: 20px; height: 20px;
    border-right: 2px solid var(--cyan); border-top: 2px solid var(--cyan);
  }
  .cv-frame::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 20px; height: 20px;
    border-left: 2px solid var(--magenta); border-bottom: 2px solid var(--magenta);
  }
  .cv-frame img { width: 100%; display: block; }
  .download-btn {
    margin-top: 30px;
    display: inline-block; padding: 14px 40px;
    font-family: 'Orbitron', monospace; font-size: 0.75rem;
    letter-spacing: 4px; text-transform: uppercase;
    color: var(--cyan); border: 1px solid var(--cyan);
    text-decoration: none; transition: all 0.3s;
    box-shadow: 0 0 20px rgba(0,245,255,0.2);
    clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  }
  .download-btn:hover { background: var(--cyan); color: var(--dark); box-shadow: 0 0 40px rgba(0,245,255,0.6); }
.CV {
  position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 60px;
}
#contact { flex-direction: column; align-items: center; }

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1100px;
  width: 100%;
  align-items: start;
}

.contact-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.8;
  margin-bottom: 40px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border: 1px solid rgba(0,245,255,0.1);
  text-decoration: none;
  transition: all 0.3s;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  background: rgba(0,245,255,0.02);
}
.contact-item:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(0,245,255,0.1);
  background: rgba(0,245,255,0.05);
}
.contact-item-icon { font-size: 1.5rem; }
.contact-item-label {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 3px;
  color: var(--magenta);
  text-transform: uppercase;
  margin-bottom: 4px;
  text-align: start;
}
.contact-item-value {
  display: block;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
}
.contact-form .btn-cyber {
  background: linear-gradient(90deg, rgba(0,245,255,0.15), rgba(255,0,170,0.15));
  color: #fff;
  border: 1px solid rgba(0,245,255,0.4);
  cursor: none;
}

.contact-form .btn-cyber:hover {
  background: linear-gradient(90deg, rgba(0,245,255,0.3), rgba(255,0,170,0.3));
  box-shadow: 0 0 30px rgba(0,245,255,0.2);
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label {
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: var(--cyan);
  text-transform: uppercase;
}
.form-input {
  background: rgba(0,245,255,0.03);
  border: 1px solid rgba(0,245,255,0.15);
  color: #fff;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.85rem;
  padding: 14px 18px;
  outline: none;
  transition: all 0.3s;
  width: 100%;
}
.form-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(0,245,255,0.1);
}
.form-input::placeholder { color: rgba(255,255,255,0.2); }
.form-textarea { min-height: 150px; resize: vertical; }

  .cursor {
    width: 12px; height: 12px;
    border: 2px solid var(--cyan);
    border-radius: 50%;
    position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 9999;
    box-shadow: 0 0 10px var(--cyan);
    transition: transform 0.1s;
  }
  .cursor-trail {
    width: 30px; height: 30px;
    border: 1px solid rgba(0,245,255,0.3);
    border-radius: 50%;
    position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 9998;
    transition: transform 0.25s ease;
  }
 
  /* CANVAS */
  #bg-canvas {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
  }
 
  /* BACK BUTTON */
  .back-btn {
    position: fixed;
    top: 30px; left: 40px;
    z-index: 200;
    display: flex; align-items: center; gap: 10px;
    text-decoration: none;
    color: rgba(255,255,255,0.5);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: all 0.3s;
    padding: 10px 20px;
    border: 1px solid rgba(0,245,255,0.15);
    clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
    background: rgba(5,10,14,0.8);
    backdrop-filter: blur(5px);
  }
  .back-btn:hover {
    color: var(--cyan);
    border-color: var(--cyan);
    box-shadow: 0 0 20px rgba(0,245,255,0.2);
  }
  .back-btn::before { content: '←'; font-size: 1rem; }
 
  /* CONTAINER */
  .container {
    position: relative; z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 40px 80px;
  }
 
  /* HEADER */
  .page-header {
    text-align: center;
    margin-bottom: 70px;
  }
  .section-label {
    font-family: 'Orbitron', monospace;
    font-size: 0.65rem;
    letter-spacing: 6px;
    color: var(--magenta);
    text-transform: uppercase;
    margin-bottom: 12px;
    text-shadow: 0 0 15px var(--magenta);
    display: block;
  }
  .page-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: 6px;
    text-transform: uppercase;
    line-height: 1;
  }
  .title-line {
    display: flex; align-items: center; gap: 20px;
    justify-content: center;
    margin-top: 20px;
  }
  .t-line {
    height: 1px; width: 100px;
    background: linear-gradient(90deg, transparent, var(--cyan));
  }
  .t-line.r { background: linear-gradient(90deg, var(--cyan), transparent); }
  .title-dot {
    width: 6px; height: 6px;
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan);
    transform: rotate(45deg);
  }
 
  /* PROJECTS GRID */
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
  }
 
  /* PROJECT CARD */
  .project-card {
    border: 1px solid rgba(0,245,255,0.1);
    overflow: hidden;
    position: relative;
    transition: all 0.4s;
    background: var(--dark2);
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
    text-decoration: none;
    color: inherit;
    display: block;
  }
  .project-card::before {
    content: '';
    position: absolute; top: 0; right: 0;
    width: 20px; height: 20px;
    border-right: 1px solid var(--cyan);
    border-top: 1px solid var(--cyan);
    z-index: 2;
  }
  .project-card:hover {
    border-color: var(--cyan);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,245,255,0.15);
  }
 
  .project-thumb {
    height: 200px;
    position: relative;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
  }
  .project-thumb::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, transparent 50%, var(--dark2));
    z-index: 1;
  }
  .project-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    transition: all 0.4s;
  }
  .project-card:hover .project-thumb img {
    filter: brightness(0.9);
    transform: scale(1.05);
  }
 
  .p-bg-1 { background: linear-gradient(135deg, #0a1a2e, #001a33); }
  .p-bg-2 { background: linear-gradient(135deg, #1a0a2e, #2d0040); }
  .p-bg-3 { background: linear-gradient(135deg, #0a2020, #003333); }
  .p-bg-4 { background: linear-gradient(135deg, #1a1a0a, #2a2000); }
 

 .external-badge {
  position: absolute;
  top: 15px; left: 15px;
  z-index: 3;
  font-family: 'Orbitron', monospace;
  font-size: 0.55rem;
  letter-spacing: 2px;
  color: var(--cyan);
  border: 1px solid rgba(0,245,255,0.4);
  padding: 4px 10px;
  background: rgba(5,10,14,0.75);
  backdrop-filter: blur(4px);
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}
 
  .project-info { padding: 25px; }
  .project-num {
    font-family: 'Orbitron', monospace;
    font-size: 0.6rem;
    color: var(--magenta);
    letter-spacing: 4px;
    margin-bottom: 8px;
    text-shadow: 0 0 10px var(--magenta);
  }
  .project-title {
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: 2px;
  }
  .project-desc {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.8;
    margin-bottom: 20px;
  }
  .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
  .tag {
    padding: 4px 12px;
    border: 1px solid rgba(0,245,255,0.3);
    font-size: 0.65rem;
    color: var(--cyan);
    letter-spacing: 2px;
    text-transform: uppercase;
  }
 
  /* LIEN PROJET */
  .project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Orbitron', monospace;
    font-size: 0.65rem;
    letter-spacing: 3px;
    color: var(--cyan);
    text-transform: uppercase;
    transition: all 0.3s;
    text-decoration: none;
  }
  .project-link:hover { text-shadow: 0 0 20px var(--cyan); gap: 14px; }
  .project-link::after { content: '→'; }
 
  /* PLACEHOLDER CARD */
  .project-card-placeholder {
    border: 1px dashed rgba(0,245,255,0.1);
    background: rgba(0,245,255,0.01);
    display: flex; align-items: center; justify-content: center;
    flex-direction: column;
    gap: 15px;
    min-height: 300px;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
    transition: all 0.3s;
  }
  .project-card-placeholder:hover {
    border-color: rgba(0,245,255,0.2);
    background: rgba(0,245,255,0.02);
  }
  .placeholder-icon { font-size: 2rem; opacity: 0.2; }
  .placeholder-text {
    font-size: 0.65rem;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.2);
    text-transform: uppercase;
  }
 
  /* FADE IN */
  .fade-in { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
  .fade-in.visible { opacity: 1; transform: translateY(0); }
 
 
  @media (max-width: 768px) {
    .container { padding: 100px 20px 60px; }
    .back-btn { left: 20px; }
    .projects-grid { grid-template-columns: 1fr; }
  }

  /* ===== PAGE DETAIL PROJET ===== */
.pd-hero { margin-bottom: 60px; }

.pd-type {
  font-family: 'Orbitron', monospace;
  font-size: 0.65rem; letter-spacing: 6px;
  color: var(--magenta); text-transform: uppercase;
  text-shadow: 0 0 15px var(--magenta);
  margin-bottom: 15px; display: block;
}

.pd-title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900; color: #fff;
  letter-spacing: 4px; line-height: 1.1;
  margin-bottom: 20px;
}
.pd-title span { color: var(--cyan); text-shadow: 0 0 20px var(--cyan); }

.pd-desc {
  font-size: 0.9rem; color: rgba(255,255,255,0.55);
  line-height: 1.9; max-width: 650px; margin-bottom: 30px;
}

.pd-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 35px; }
.pd-badge {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(0,245,255,0.2);
  font-size: 0.65rem; letter-spacing: 3px;
  color: rgba(255,255,255,0.6); text-transform: uppercase;
  background: rgba(0,245,255,0.03);
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}
.pd-badge span { font-size: 0.8rem; }

.pd-btns { display: flex; gap: 15px; flex-wrap: wrap; margin-bottom: 60px; }

.pd-btn-live {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 30px;
  font-family: 'Orbitron', monospace; font-size: 0.7rem;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--dark); background: var(--cyan);
  text-decoration: none; transition: all 0.3s;
  box-shadow: 0 0 30px rgba(0,245,255,0.4);
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  font-weight: 700;
}
.pd-btn-live:hover { box-shadow: 0 0 50px rgba(0,245,255,0.7); transform: translateY(-2px); }

.pd-btn-github {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 30px;
  font-family: 'Orbitron', monospace; font-size: 0.7rem;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--cyan); border: 1px solid var(--cyan);
  text-decoration: none; transition: all 0.3s;
  box-shadow: 0 0 20px rgba(0,245,255,0.1);
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  background: rgba(0,245,255,0.05);
}
.pd-btn-github:hover { background: rgba(0,245,255,0.1); box-shadow: 0 0 30px rgba(0,245,255,0.3); transform: translateY(-2px); }

.pd-screenshot {
  width: 100%; margin-bottom: 70px;
  border: 1px solid rgba(0,245,255,0.2);
  box-shadow: 0 0 60px rgba(0,245,255,0.1);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  position: relative;
}
.pd-screenshot::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: 20px; height: 20px;
  border-right: 2px solid var(--cyan); border-top: 2px solid var(--cyan);
  z-index: 2;
}
.pd-screenshot img { width: 100%; display: block; filter: brightness(0.9); }

.pd-block { margin-bottom: 60px; }

.pd-heading {
  display: flex; align-items: center; gap: 15px;
  margin-bottom: 25px;
}
.pd-heading::before {
  content: '';
  width: 3px; height: 30px;
  background: linear-gradient(to bottom, var(--cyan), var(--magenta));
  box-shadow: 0 0 10px var(--cyan);
  flex-shrink: 0;
}
.pd-heading h2 {
  font-family: 'Orbitron', monospace;
  font-size: 1.2rem; font-weight: 700;
  color: #fff; letter-spacing: 3px;
}

.pd-text {
  font-size: 0.85rem; color: rgba(255,255,255,0.55);
  line-height: 2; padding-left: 18px;
}

.pd-list { list-style: none; padding-left: 18px; }
.pd-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 0.85rem; color: rgba(255,255,255,0.55);
  line-height: 1.8; margin-bottom: 14px;
}
.pd-list li::before {
  content: '→';
  color: var(--cyan); font-size: 0.8rem;
  flex-shrink: 0; margin-top: 2px;
  text-shadow: 0 0 10px var(--cyan);
}

.pd-learned-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; padding-left: 18px;
}
.pd-learned-card {
  border: 1px solid rgba(0,245,255,0.1);
  padding: 25px;
  background: rgba(0,245,255,0.02);
  transition: all 0.3s;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  position: relative;
}

.pd-learned-card::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: 12px; height: 12px;
  border-right: 1px solid var(--cyan); border-top: 1px solid var(--cyan);
}
.pd-learned-card:hover {
  border-color: rgba(0,245,255,0.3);
  box-shadow: 0 0 20px rgba(0,245,255,0.08);
  background: rgba(0,245,255,0.04);
}
.pd-learned-icon { font-size: 1.5rem; margin-bottom: 12px; display: block; }
.pd-learned-title {
  font-family: 'Orbitron', monospace;
  font-size: 0.65rem; letter-spacing: 3px;
  color: var(--cyan); text-transform: uppercase;
  margin-bottom: 10px; display: block;
}
.pd-learned-text {
  font-size: 0.78rem; color: rgba(255,255,255,0.45); line-height: 1.8;
}

.pd-tags { display: flex; flex-wrap: wrap; gap: 10px; padding-left: 18px; }

.pd-screens-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-left: 18px;
}


.pd-learned-card .pd-learned-icon {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
}

.pd-screen-item {
  border: 1px solid rgba(0,245,255,0.15);
  overflow: hidden;
  position: relative;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: all 0.3s;
  background: var(--dark2);
}

.pd-screen-item::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 10px; height: 10px;
  border-right: 1px solid var(--cyan);
  border-top: 1px solid var(--cyan);
  z-index: 2;
}

.pd-screen-item:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 25px rgba(0,245,255,0.15);
  transform: scale(1.02);
}

.pd-screen-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  filter: brightness(0.8);
  transition: all 0.3s;
}

.pd-screen-item:hover img {
  filter: brightness(1);
}

.area {
  background: #050a0e;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Share Tech Mono', monospace;
  margin: 0;
  overflow: hidden;
}

.grid-bg {
  position: fixed; inset: 0;
  background-image: linear-gradient(rgba(0,245,255,0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(0,245,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.area::after {
  content: '';
  position: fixed; inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.04) 2px, rgba(0,0,0,0.04) 4px);
  pointer-events: none;
  z-index: 1000;
}
.card {
  position: relative; z-index: 2;
  border: 1px solid rgba(0,245,255,0.3);
  background: rgba(5,10,14,0.9);
  padding: 50px 60px;
  max-width: 500px;
  width: 100%;
  text-align: center;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
  box-shadow: 0 0 60px rgba(0,245,255,0.08);
}
.card::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 24px; height: 24px;
  border-right: 1px solid #00f5ff;
  border-top: 1px solid #00f5ff;
}
.card::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 24px; height: 24px;
  border-left: 1px solid #ff00aa;
  border-bottom: 1px solid #ff00aa;
}
.corner-tag {
  position: absolute; top: 10px; left: 14px;
  font-size: 0.55rem; letter-spacing: 3px;
  color: rgba(0,245,255,0.3);
}
.icon-wrap {
  margin: 0 auto 28px;
  width: 64px; height: 64px;
  border: 1px solid rgba(0,245,255,0.4);
  display: flex; align-items: center; justify-content: center;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: rgba(0,245,255,0.06);
  position: relative;
}
.ping {
  position: absolute; top: -4px; right: -4px;
  width: 8px; height: 8px;
  background: #00f5ff; border-radius: 50%;
  animation: ping 1.5s infinite;
}
@keyframes ping {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:0.4; transform:scale(1.4); }
}
.check {
  width: 28px; height: 28px; position: relative;
}
.check::before {
  content: '';
  position: absolute; top: 50%; left: 50%;
  width: 20px; height: 10px;
  border-left: 2px solid #00f5ff;
  border-bottom: 2px solid #00f5ff;
  transform: translate(-50%, -60%) rotate(-45deg);
  box-shadow: 0 0 10px rgba(0,245,255,0.5);
}
.label {
  font-family: 'Orbitron', monospace;
  font-size: 0.6rem; letter-spacing: 6px;
  color: #ff00aa; text-transform: uppercase;
  margin-bottom: 10px;
  text-shadow: 0 0 15px #ff00aa;
}
.title {
  font-family: 'Orbitron', monospace;
  font-size: 1.8rem; font-weight: 900;
  color: #fff; letter-spacing: 4px;
  margin-bottom: 16px; line-height: 1.1;
}
.title span { color: #00f5ff; text-shadow: 0 0 20px #00f5ff; }
.desc {
  font-size: 0.78rem; color: rgba(255,255,255,0.45);
  line-height: 1.9; margin-bottom: 36px; letter-spacing: 0.5px;
}
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,245,255,0.3), transparent);
  margin: 0 0 32px;
}
.btn {
  display: inline-block; padding: 13px 36px;
  font-family: 'Orbitron', monospace;
  font-size: 0.7rem; letter-spacing: 4px; text-transform: uppercase;
  color: #00f5ff; border: 1px solid #00f5ff;
  text-decoration: none; background: rgba(0,245,255,0.05);
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  transition: all 0.3s;
  box-shadow: 0 0 20px rgba(0,245,255,0.1);
}
.btn:hover {
  background: rgba(0,245,255,0.15);
  box-shadow: 0 0 30px rgba(0,245,255,0.3);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 200;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cyan);
  transition: all 0.3s;
  box-shadow: 0 0 6px var(--cyan);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ===== TABLETTE (≤ 1024px) ===== */
@media (max-width: 1024px) {

  nav {
    padding: 18px 30px;
  }

  .nav-links {
    gap: 20px;
  }

  #hero {
    gap: 60px;
    padding: 100px 30px;
    margin: 0;
  }

  .hero-photo {
    max-width: 320px;
    height: 300px;
  }

  #about .about-container {
    gap: 40px;
  }

  .contact-wrapper {
    gap: 40px;
  }
}


/* ===== MOBILE (≤ 768px) ===== */
@media (max-width: 768px) {

  /* --- Curseur custom désactivé sur tactile --- */
  body {
    cursor: auto;
  }
  .cursor,
  .cursor-trail {
    display: none;
  }

  /* --- NAV --- */
  nav {
    padding: 16px 20px;
    position: fixed;
    background: rgba(5, 10, 14, 0.95);
    backdrop-filter: blur(10px);
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(5, 10, 14, 0.97);
    border-top: 1px solid rgba(0, 245, 255, 0.1);
    padding: 10px 0;
    backdrop-filter: blur(10px);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    border-bottom: 1px solid rgba(0, 245, 255, 0.05);
  }

  .nav-links a {
    display: block;
    padding: 14px 24px;
    font-size: 0.8rem;
    letter-spacing: 3px;
  }

  /* --- SECTIONS générales --- */
  section {
    padding: 80px 20px 60px;
    min-height: auto;
  }

  /* --- HERO --- */
  #hero {
    flex-direction: column-reverse;
    text-align: center;
    gap: 40px;
    padding: 100px 20px 60px;
    margin: 0;
    align-items: center;
  }

  .hero-left {
    align-items: center;
  }

  .hero-right {
    width: 100%;
    justify-content: center;
  }

  .hero-photo {
    width: 240px;
    height: 240px;
    max-width: 100%;
    object-fit: cover;
  }

  .hero-name {
    font-size: clamp(2.5rem, 12vw, 4rem);
    letter-spacing: 6px;
  }

  .hero-desc {
    max-width: 100%;
    font-size: 0.8rem;
    text-align: center;
  }

  .hero-sub {
    font-size: 0.75rem;
    letter-spacing: 4px;
  }

  /* --- ABOUT --- */
  #about .about-container {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 100%;
  }

  .about-stats {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .stat-num {
    font-size: 1.8rem;
  }

  /* --- SKILLS --- */
  #skills {
    gap: 30px;
    padding: 80px 20px 60px;
  }

  .skills-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .skill-card {
    padding: 20px;
  }

  .skill-name {
    font-size: 0.75rem;
  }

  /* --- PROJECTS --- */
  #projects {
    gap: 30px;
    padding: 80px 20px 60px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 100%;
  }

  .project-thumb {
    height: 160px;
  }

  .project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* --- CV --- */
  .cv {
    padding: 60px 20px;
  }

  /* --- CONTACT --- */
  #contact {
    padding: 80px 20px 60px;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 100%;
  }

  .contact-item {
    padding: 14px;
  }

  .contact-item-value {
    font-size: 0.72rem;
    word-break: break-all;
  }

  .form-input {
    font-size: 0.8rem;
    padding: 12px 14px;
  }

  /* --- SECTION HEADERS --- */
  .section-title {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }

  .section-header {
    text-align: left;
  }

  /* --- BOUTON CYBER --- */
  .btn-cyber {
    padding: 12px 28px;
    font-size: 0.7rem;
    letter-spacing: 3px;
  }

  /* --- FOOTER --- */
  footer {
    padding: 20px 14px;
    font-size: 0.6rem;
    letter-spacing: 2px;
    line-height: 1.8;
  }
}


/* ===== PETIT MOBILE (≤ 420px) ===== */
@media (max-width: 420px) {

  .hero-photo {
    width: 200px;
    height: 200px;
  }

  .about-stats {
    grid-template-columns: 1fr 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .stat-num {
    font-size: 1.5rem;
  }

  .hero-name {
    font-size: clamp(2rem, 13vw, 3rem);
    letter-spacing: 4px;
  }

  .contact-item-value {
    font-size: 0.65rem;
  }
}