/* --- VARIABLES CSS THÈME --- */
:root {
    --bg-color: #0a0a0a;
    --bg-secondary: #1e2a47;
    --text-color: #ffffff;
    --text-secondary: #a0a0a0;
    --card-bg: rgba(30, 42, 71, 0.6);
    --card-border: rgba(0, 255, 200, 0.2);
    --neon-color: #00ffc8;
    --neon-shadow: 0 0 20px rgba(0, 255, 200, 0.5);
    --header-bg: linear-gradient(135deg, #1e2a47, #0f1923);
    --button-bg: linear-gradient(135deg, #00ffc8, #00b3a0);
    --input-bg: rgba(30, 42, 71, 0.8);
    --scrollbar-thumb: #00ffc8;
}

/* --- NAV LINKS ANIMATED UNDERLINE --- */
.nav-links a {
    position: relative;
    display: inline-block;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}
.nav-links a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -4px;
    transform: translateX(-50%) scaleX(0);
    width: 70%;
    height: 3px;
    background: linear-gradient(90deg, #00ffc8 0%, #00b3a0 100%);
    border-radius: 2px;
    box-shadow: 0 0 8px 2px #00ffc8cc;
    opacity: 0.85;
    transition: transform 0.28s cubic-bezier(.4,1.6,.4,1), opacity 0.18s;
    pointer-events: none;
}
.nav-links a:hover::after,
.nav-links a:focus::after {
    transform: translateX(-50%) scaleX(1);
    opacity: 1;
}
.nav-links a:hover,
.nav-links a:focus {
    color: #00ffc8;
    text-shadow: 0 0 8px #00ffc8, 0 0 16px #00ffc8;
}

/* --- CURSEUR PERSONNALISÉ --- */
* {
    cursor: none !important;
}


/* Point central du curseur */
.custom-cursor {
    position: fixed;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #00ffc8;
    pointer-events: none;
    z-index: 99999;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 8px #00ffc8, 0 0 16px #00ffc8;
    transition: width 0.2s, height 0.2s, background 0.2s, box-shadow 0.2s;
}

/* Cercle externe */
.cursor-circle {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid #00ffc8;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    background: rgba(0,255,200,0.08);
    box-shadow: 0 0 24px 2px #00ffc844;
    transition: width 0.25s, height 0.25s, border 0.25s, box-shadow 0.25s, opacity 0.25s;
}

/* Trail */
.cursor-trail {
    position: fixed;
    width: 32px;
    height: 32px;
    border: 1.5px solid #00ffc855;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99997;
    transform: translate(-50%, -50%);
    opacity: 0.5;
    transition: width 0.3s, height 0.3s, border 0.3s, opacity 0.3s;
    background: transparent;
}

/* Hover bouton : scale + cyan */
.custom-cursor.cursor-btn-hover,
.cursor-circle.cursor-btn-hover {
    background: #00fff0;
    box-shadow: 0 0 24px #00fff0, 0 0 48px #00fff0;
}
.custom-cursor.cursor-btn-hover {
    width: 8px;
    height: 8px;
}
.cursor-circle.cursor-btn-hover {
    width: 32px;
    height: 32px;
    border-width: 2.5px;
}

/* Hover lien : glow + opacité réduite */
.custom-cursor.cursor-link-hover {
    box-shadow: 0 0 32px 8px #00ffc8, 0 0 64px 16px #00ffc8;
    background: #00ffc8;
    opacity: 0.7;
}
.cursor-circle.cursor-link-hover {
    border-color: #00ffc8;
    box-shadow: 0 0 48px 8px #00ffc8cc;
    opacity: 0.4;
    border-width: 1px;
}

@media (max-width: 768px) {
    .custom-cursor,
    .cursor-trail,
    .cursor-circle {
        display: none;
    }
    * {
        cursor: auto !important;
    }
}

@media (max-width: 768px) {
    .custom-cursor,
    .cursor-trail {
        display: none;
    }
    
    * {
        cursor: auto !important;
    }
}

/* --- GLOBAL --- */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    color: #e5e5e5;
    font-family: 'Inter', sans-serif;
    background-image: url("Assets/background.jpg"); /* ton image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

@media (max-width: 900px) {
    body {
        background-attachment: scroll !important; /* évite les bugs sur mobile */
        background-size: cover;
        background-position: center top;
    }
}

/* Safety: keep images within bounds */
img {
    max-width: 100%;
    height: auto;
}

/* --- NAVBAR --- */

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: linear-gradient(135deg, rgba(0, 20, 40, 0.95), rgba(0, 40, 70, 0.95));
    position: fixed;
    top: 0;
    width: 100%;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(0, 255, 200, 0.3);
    box-shadow: 0 4px 15px rgba(0, 100, 150, 0.3);
    z-index: 999;
    box-sizing: border-box;
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    color: #e5e5e5;
    text-decoration: none;
    font-size: 17px;
    transition: 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: #00ffc8;
    text-shadow: 0 0 8px #00ffc8;
}

.nav-links a.active {
    color: #00ffc8;
}

/* Boutons de toggle */
.nav-toggles {
    display: flex;
    gap: 10px;
    align-items: center;
}

#themeToggle,
#langToggle {
    background: rgba(0, 255, 200, 0.1);
    border: 1px solid rgba(0, 255, 200, 0.3);
    color: #00ffc8;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

#themeToggle:hover,
#langToggle:hover {
    background: rgba(0, 255, 200, 0.2);
    border-color: #00ffc8;
    box-shadow: 0 0 15px rgba(0, 255, 200, 0.3);
    transform: translateY(-2px);
}

/* Menu Burger */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
}

.burger-menu span {
    width: 100%;
    height: 3px;
    background: #00ffc8;
    border-radius: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(0, 255, 200, 0.5);
}

.burger-menu.active span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

/* Empêcher le scroll quand le menu est ouvert */
body.menu-open {
    overflow: hidden;
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 80px;
}

.hero h1 {
    font-size: 60px;
    margin-bottom: 10px;
}

.hero span {
    color: #00ffc8;
}

.hero p {
    font-size: 22px;
    opacity: 0.8;
}

.hero-cta {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    justify-content: flex-start;
}

.cta-btn {
    padding: 15px 35px;
    background: linear-gradient(135deg, #00ffc8, #00b3a0);
    color: #000;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    border-radius: 8px;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0, 255, 200, 0.3);
    border: none;
    cursor: pointer;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 255, 200, 0.5);
}

.cta-secondary {
    background: transparent;
    color: #00ffc8;
    border: 2px solid #00ffc8;
}

.cta-secondary:hover {
    background: rgba(0, 255, 200, 0.1);
}

/* Currently Section */
.currently-section {
    padding: 80px 50px;
    background: rgba(0, 10, 20, 0.5);
    text-align: center;
}

.currently-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: linear-gradient(135deg, rgba(0, 255, 200, 0.05), rgba(0, 100, 150, 0.05));
    border: 2px solid rgba(0, 255, 200, 0.3);
    border-radius: 15px;
    text-align: left;
}

.currently-card p {
    font-size: 16px;
    line-height: 1.8;
    margin: 15px 0;
    color: #e5e5e5;
}

.currently-card strong {
    color: #00ffc8;
}

/* --- SECTIONS --- */
section {
    padding: 120px 80px;
}

h2 {
    font-size: 40px;
    margin-bottom: 20px;
}

/* --- CARDS PROJECTS --- */
.project-card {
    background: #141414;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    border: 1px solid #1f1f1f;
    transition: 0.3s;
}

.project-card:hover {
    border-color: #00ffc8;
    box-shadow: 0 0 15px #00ffc8;
}

/* --- PROFILE PHOTO --- */
.profile {
    width: 120px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 2px solid #00ffc8;
}

/* --- ANIMATION FADE-IN --- */
/* .fade {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s forwards;
} */
section.fade, .photo-gallery.fade, .materiel.fade {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cards-container {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 40px 0;
}

.card {
  background: #0d0d0d;
  border: 1px solid #1a1a1a;
  padding: 25px;
  width: 280px;
  border-radius: 18px;
  color: white;
  transition: transform 0.2s ease-out, box-shadow 0.2s;
  box-shadow: 0 0 10px rgba(0,255,255,0.05);
}

.card:hover {
  box-shadow: 0 10px 40px rgba(0,255,255,0.2);
}

.music-controls {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 9999;
}

#volumeSlider {
    width: 0;
    opacity: 0;
    height: 6px;
    background: linear-gradient(to right, rgba(0,255,255,0.2), rgba(0,255,255,0.5));
    border-radius: 10px;
    outline: none;
    cursor: pointer;
    transition: width 0.3s ease, opacity 0.3s ease;
    -webkit-appearance: none;
}

.music-controls:hover #volumeSlider {
  width: 120px;
  opacity: 1;
}

#volumeSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: cyan;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0,255,255,0.5);
}

#volumeSlider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: cyan;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 10px rgba(0,255,255,0.5);
}

#musicBtn {
  border: none;
  background: #0f0f0f;
  color: cyan;
  font-size: 22px;
  padding: 12px 18px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0,255,255,0.15);
  transition: 0.2s;
  flex-shrink: 0;
}

#musicBtn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(0,255,255,0.4);
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 90px;
    right: 25px;
    width: 50px;
    height: 50px;
    border: none;
    background: linear-gradient(135deg, #00ffc8, #00b3a0);
    color: #000;
    font-size: 24px;
    font-weight: 900;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 255, 200, 0.4);
    transition: 0.3s;
    opacity: 0;
    visibility: hidden;
    z-index: 998;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 255, 200, 0.6);
}

/* Visit Counter */
.visit-counter {
    position: fixed;
    bottom: 25px;
    left: 25px;
    padding: 10px 18px;
    background: rgba(13, 13, 13, 0.9);
    border: 1px solid #00ffc8;
    border-radius: 8px;
    color: #00ffc8;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(0, 255, 200, 0.2);
    z-index: 998;
}

#visitCount {
    font-weight: 900;
    color: #00fff7;
}

/* Visually hidden for accessibility */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); border: 0;
}

/* Variables */
:root {
  --neon: #00ffc8;
  --neon-2: #00b3a0;
  --text: #eafaf6;
  --bg: transparent;
  --font-size: clamp(20px, 4.5vw, 40px);
  --weight: 700;
}

.neon-title {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  line-height: 1;

  background: linear-gradient(to bottom, #ffffff 0%, #c6ffff 60%, #9ef0ff 100%);
  -webkit-background-clip: text;
    background-clip: text;
  -webkit-text-fill-color: transparent; 

  /* glow */
  text-shadow:
    0 0 4px rgba(95, 252, 255, 0.35),
    0 0 10px rgba(53, 240, 255, 0.22),
    0 0 24px rgba(18, 224, 255, 0.16);
}

.neon-title::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  color: #00eaff;
  opacity: 0.55;
  filter: blur(14px);
  transform: translateZ(0);
  pointer-events: none;
}

/* pulsation */
@keyframes neonPulse {
  0%   { text-shadow: 0 0 4px rgba(95,252,255,0.28), 0 0 10px rgba(53,240,255,0.18); }
  50%  { text-shadow: 0 0 6px rgba(95,252,255,0.40), 0 0 14px rgba(53,240,255,0.28); }
  100% { text-shadow: 0 0 4px rgba(95,252,255,0.28), 0 0 10px rgba(53,240,255,0.18); }
}

.neon-title.pulse {
  animation: neonPulse 2.4s ease-in-out infinite;
}

@keyframes neonPulse {
  0% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.005); 
  }
  100% {
    filter: brightness(1);
  }
}

.neon-title.pulse {
  animation: neonPulse 3s ease-in-out infinite;
}

.prompt {
    color: #00ffc8;
}

.line {
    opacity: 0;
    transform: translateY(5px);
    animation: showLine 0.6s forwards;
}

.line:nth-child(1) { animation-delay: 0.3s; }
.line:nth-child(2) { animation-delay: 1s; }
.line:nth-child(3) { animation-delay: 1.8s; }
.line:nth-child(4) { animation-delay: 2.6s; }
.line:nth-child(5) { animation-delay: 3.4s; }
.blinking-cursor { animation-delay: 3.5s !important; }

@keyframes showLine {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blinking-cursor::after {
    content: "_";
    animation: blink 0.8s steps(1) infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Disable scroll while loading */
body.loading {
    overflow: hidden;
}

.glitch-logo-small {
    font-size: 20px;
    font-weight: 700;
    position: relative;
    color: #00f6ff;
}

.glitch-logo-small span {
    position: absolute;
    left: 0;
    top: 0;
}

.glitch-base { position: relative; }

.glitch-top {
    animation: glitchTop 1.6s infinite ease-in-out;
    color: #0ff;
    opacity: 0.6;
}

.glitch-bottom {
    animation: glitchBottom 1.6s infinite ease-in-out;
    color: #0ff;
    opacity: 0.4;
}

@keyframes glitchTop {
    0% { transform: translate(0,0); }
    20% { transform: translate(2px,-2px); }
    40% { transform: translate(0,0); }
    60% { transform: translate(-2px,2px); }
    100% { transform: translate(0,0); }
}
@keyframes glitchBottom {
    0% { transform: translate(0,0); }
    20% { transform: translate(-2px,2px); }
    40% { transform: translate(0,0); }
    60% { transform: translate(2px,-2px); }
    100% { transform: translate(0,0); }
}

.cv-section {
    text-align: center;
    color: #e9e9e9;
    margin-top: 50px;
}

.cv-title {
    font-size: 38px;
    color: #00ffe1;
    text-shadow: 0 0 10px #00ffe1;
    text-align: center;
}

.cv-sub {
    margin-top: -10px;
    margin-bottom: 25px;
    font-size: 17px;
    opacity: 0.7;
}

.btn-cv {
    display: inline-block;
    padding: 14px 30px;
    background: #00ffe5;
    color: #001b1b;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 0 15px #00ffe5;
    transition: 0.3s;
}

.btn-cv:hover {
    box-shadow: 0 0 25px #00fff7;
    transform: translateY(-2px);
}

.cv-frame {
    width: 80%;
    max-width: 900px;
    margin: 30px auto;
    padding: 10px;
    border: 1px solid #00fff7;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,255,255,0.25);
}

.scanline {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        transparent 0%, 
        rgba(0,255,255,0.15) 50%, 
        transparent 100%
    );
    animation: scan 3.5s infinite;
}

@keyframes scan {
    0% { top: -100%; }
    100% { top: 100%; }
}

.cv-viewer {
    width: 100%;
    height: 700px;
    border: none;
    border-radius: 8px;
}

.contact-section {
    text-align: center;
    margin-top: 70px;
    color: #e5e5e5;
}

.contact-title {
    font-size: 38px;
    color: #00ffe1;
    text-shadow: 0 0 12px #00ffe1;
/* Live Status Section */
.live-status-section {
    padding: 80px 50px;
    background: rgba(0, 5, 10, 0.5);
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 40px auto 0;
}

.status-card {
    background: rgba(0, 255, 200, 0.05);
    border: 1px solid rgba(0, 255, 200, 0.2);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.status-card:hover {
    transform: translateY(-5px);
    border-color: #00ffc8;
    box-shadow: 0 10px 30px rgba(0, 255, 200, 0.3);
}

.status-icon {
    font-size: 48px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(0, 255, 200, 0.5));
}

.status-card h3 {
    color: #00ffc8;
    font-size: 18px;
    margin: 10px 0;
}

.status-card p {
    color: #ffffff;
    font-size: 16px;
    margin: 15px 0;
    min-height: 48px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: absolute;
    top: 20px;
    right: 20px;
}

.status-indicator.online {
    background: #00ff64;
    box-shadow: 0 0 10px #00ff64;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* Dashboard Section */
.dashboard-section {
    padding: 80px 50px;
    background: rgba(0, 10, 20, 0.6);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto 0;
}

.dashboard-card {
    background: linear-gradient(135deg, rgba(0, 255, 200, 0.05), rgba(0, 180, 160, 0.05));
    border: 2px solid rgba(0, 255, 200, 0.2);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 200, 0.1), transparent);
    transition: left 0.5s ease;
}

.dashboard-card:hover::before {
    left: 100%;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    border-color: #00ffc8;
    box-shadow: 0 10px 40px rgba(0, 255, 200, 0.3);
}

.dashboard-card h3 {
    color: #00ffc8;
    font-size: 18px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dashboard-number {
    font-size: 48px;
    font-weight: bold;
    color: #ffffff;
    margin: 15px 0;
    text-shadow: 0 0 20px rgba(0, 255, 200, 0.5);
}

.dashboard-label {
    color: #a0a0a0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dashboard-page {
    font-size: 32px;
    font-weight: bold;
    color: #00ffc8;
    margin: 15px 0;
}

.dashboard-stat {
    color: #ffffff;
    font-size: 18px;
    margin-top: 10px;
}

.dashboard-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 80px;
    margin-top: 20px;
    gap: 5px;
}

.dashboard-chart .bar {
    flex: 1;
    background: linear-gradient(180deg, #00ffc8, #00b3a0);
    border-radius: 4px 4px 0 0;
    transition: all 0.3s ease;
    animation: growBar 1s ease-out;
}

.dashboard-chart .bar:hover {
    background: linear-gradient(180deg, #00ffff, #00ffc8);
    box-shadow: 0 0 15px rgba(0, 255, 200, 0.6);
}

@keyframes growBar {
    from {
        height: 0 !important;
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

}

.contact-sub {
    margin-top: -10px;
    opacity: 0.7;
}

.contact-note {
    margin: 0 auto 20px;
    color: #00ffe1;
    font-weight: 700;
}

.console-header {
    width: 80%;
    max-width: 700px;
    margin: 20px auto 30px auto;
    padding: 15px;
    background: #071919;
    border-left: 3px solid #00ffe1;
    font-family: monospace;
    text-align: left;
    opacity: 0.9;
}
.console-header p {
    margin: 4px 0;
    color: #00ffe1;
}

.contact-box {
    width: 80%;
    max-width: 700px;
    margin: auto;
    padding: 25px;
    background: rgba(0, 30, 30, 0.45);
    border: 1px solid #00ffe1;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 18px rgba(0,255,255,0.2);
}

.contact-box::before {
    content: "";
    position: absolute;
    top: -120%;
    left: 0;
    width: 100%;
    height: 200%;
    background: linear-gradient(transparent 0%, rgba(0,255,255,0.12) 50%, transparent 100%);
    animation: scan 4s infinite linear;
}

@keyframes scan {
    0% { top: -120%; }
    100% { top: 120%; }
}

.input-row {
    display: flex;
    gap: 15px;
}

.input-row input,
textarea {
    width: 100%;
    padding: 16px 18px;
    background: #021010;
    border: 2px solid #00ffe1;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    outline: none;
    transition: 0.3s;
    box-sizing: border-box;
    cursor: text;
}

textarea {
    height: 150px;
    margin-top: 15px;
}

input:focus,
textarea:focus {
    box-shadow: 0 0 15px #00ffe1, 0 0 30px rgba(0, 255, 225, 0.3);
    border-color: #00fff7;
    transform: scale(1.01);
}

input::placeholder,
textarea::placeholder {
    color: rgba(0, 255, 225, 0.5);
    font-size: 15px;
}

.btn-send {
    margin-top: 20px;
    width: 100%;
    padding: 16px 20px;
    background: #00ffe1;
    color: #002020;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 0 15px #00ffe1;
    transition: 0.3s;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.btn-send:hover {
    background: white;
    box-shadow: 0 0 25px #00fff7;
    transform: translateY(-3px) scale(1.02);
}

.btn-send:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 0 15px #00ffe1;
}

.btn-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.contact-social {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.contact-social a {
    color: #00ffe1;
    text-decoration: none;
    font-size: 18px;
    transition: 0.2s;
}

.contact-social a:hover {
    text-shadow: 0 0 10px #00ffe1;
}

/* Focus visible states for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.btn-send:focus-visible {
    outline: 2px solid #00ffe1;
    outline-offset: 3px;
    box-shadow: 0 0 8px rgba(0,255,225,0.6);
}

.success-message {
    opacity: 0;
    margin-top: 20px;
    color: #00ffe1;
    font-weight: bold;
    font-size: 18px;
    text-shadow: 0 0 15px #00ffe1;
    transition: opacity 0.5s ease-in-out;
}
.success-message.show {
    opacity: 1;
}

/* Tech Stack Section */
.tech-stack-section {
    padding: 80px 50px;
    background: rgba(0, 5, 10, 0.6);
}

.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.stack-item {
    background: rgba(0, 255, 200, 0.05);
    border: 1px solid rgba(0, 255, 200, 0.2);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: 0.3s;
}

.stack-item:hover {
    transform: translateY(-5px);
    border-color: #00ffc8;
    box-shadow: 0 5px 20px rgba(0, 255, 200, 0.3);
}

.stack-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 10px;
}

.stack-item h4 {
    color: #00ffc8;
    margin: 10px 0;
    font-size: 18px;
}

.proficiency-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 255, 200, 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin-top: 10px;
}

.proficiency-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ffc8, #00b3a0);
    border-radius: 5px;
    transition: width 1s ease;
}

/* Quiz interactif */
.skills-quiz {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: rgba(0, 255, 200, 0.05);
    border: 2px solid rgba(0, 255, 200, 0.3);
    border-radius: 15px;
}

.skills-quiz h3 {
    text-align: center;
    color: #00ffc8;
    margin-bottom: 25px;
}

.quiz-container {
    padding: 20px;
}

.quiz-question p {
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 25px;
    text-align: center;
}

.quiz-answers {
    display: grid;
    gap: 15px;
    margin-bottom: 20px;
}

.quiz-answer-btn {
    padding: 15px 20px;
    background: rgba(0, 255, 200, 0.1);
    border: 1px solid rgba(0, 255, 200, 0.3);
    color: #ffffff;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.quiz-answer-btn:hover:not(:disabled) {
    background: rgba(0, 255, 200, 0.2);
    border-color: #00ffc8;
    transform: translateX(5px);
}

.quiz-answer-btn.correct {
    background: rgba(0, 255, 100, 0.3);
    border-color: #00ff64;
    animation: correctPulse 0.5s ease;
}

.quiz-answer-btn.incorrect {
    background: rgba(255, 50, 50, 0.3);
    border-color: #ff3232;
    animation: incorrectShake 0.5s ease;
}

@keyframes correctPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes incorrectShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.quiz-controls {
    text-align: center;
    margin-top: 20px;
}

.quiz-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #00ffc8, #00b3a0);
    color: #0a0a0a;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quiz-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 200, 0.5);
}

.quiz-result {
    margin-top: 20px;
}

.quiz-score {
    text-align: center;
    padding: 20px;
}

.score-emoji {
    font-size: 60px;
    display: block;
    margin-bottom: 15px;
}

.quiz-score h3 {
    color: #00ffc8;
    font-size: 28px;
    margin: 10px 0;
}

.quiz-score p {
    color: #ffffff;
    font-size: 18px;
    margin: 10px 0;
}

.score-message {
    font-weight: bold;
    color: #00ffc8 !important;
}

/* Badges */
.skills-badges {
    max-width: 1000px;
    margin: 60px auto 40px;
    padding: 30px;
}

.skills-badges h3 {
    text-align: center;
    color: #00ffc8;
    margin-bottom: 30px;
    font-size: 24px;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 25px;
}

.badge-item {
    background: rgba(0, 255, 200, 0.05);
    border: 2px solid rgba(0, 255, 200, 0.2);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

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

.badge-item[data-earned="true"]:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: #00ffc8;
    box-shadow: 0 10px 30px rgba(0, 255, 200, 0.4);
}

.badge-icon {
    font-size: 50px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(0, 255, 200, 0.5));
}

.badge-icon.locked {
    filter: grayscale(100%) opacity(0.3);
}

.badge-item p {
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    margin: 10px 0;
}

.badge-status {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    margin-top: 5px;
}

.badge-status.earned {
    background: rgba(0, 255, 100, 0.2);
    color: #00ff64;
    border: 1px solid #00ff64;
}

.badge-status.locked {
    background: rgba(100, 100, 100, 0.2);
    color: #888;
    border: 1px solid #666;
}

/* Organizations Section */
.organizations-section {
    padding: 60px 50px;
    text-align: center;
    background: rgba(0, 10, 20, 0.4);
}

.organizations-section h3 {
    font-size: 32px;
    color: #00ffc8;
    margin-bottom: 40px;
}

.org-logos {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.org-logo {
    text-decoration: none;
    color: inherit;
}

.org-card {
    width: 120px;
    height: 120px;
    background: rgba(0, 255, 200, 0.05);
    border: 2px solid rgba(0, 255, 200, 0.3);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    cursor: pointer;
}

.org-card:hover {
    transform: translateY(-8px);
    border-color: #00ffc8;
    box-shadow: 0 5px 20px rgba(0, 255, 200, 0.3);
}

.org-emoji {
    font-size: 50px;
    margin-bottom: 10px;
}

.org-card p {
    color: #00ffc8;
    font-weight: 700;
    font-size: 14px;
    margin: 0;
}

.contact-box {
    transform-style: preserve-3d;
    transition: 0.2s;
    background: rgba(0, 25, 25, 0.5);
    border: 1px solid #00ffe1;
    border-radius: 15px;
    box-shadow: 0 0 25px rgba(0,255,255,0.3);
}

.contact-box:hover {
    box-shadow: 0 0 40px rgba(0,255,255,0.5);
}

/* GRID de projets */
#projects {
    padding: 80px 0;
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 40px;
}

/* Carte neon cyber */
.project-card {
    background: #0d0d0d;
    border: 1px solid #00ffc8;
    padding: 25px;
    border-radius: 12px;
    transition: 0.3s ease;
    box-shadow: 0 0 12px #00ffc84a;
    transform: translateY(0);
}

.project-card:hover {
    box-shadow: 0 0 22px #00ffc8aa, 0 0 60px #00ffc84a inset;
    transform: translateY(-6px);
}

/* Bouton */
.project-card .btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 22px;
    border: 1px solid #00ffc8;
    color: #00ffc8;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.2s;
}

.project-card .btn:hover {
    background: #00ffc8;
    color: black;
}

/* Lien actif dans la navbar */
nav a.active {
    color: #00ffc8;
}

/* PAGE A PROPOS MAIN HEADER */
#apropos-header {
    text-align: center;
    padding: 80px 20px;
    color: white;
}
#apropos-header h2 {
    font-size: 42px;
    color: #00ffc8;
}

/* ABOUT GRID */
.about-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: auto;
    padding: 50px 20px;
}

.about-left {
    flex: 1;
    min-width: 320px;
}

.about-right img {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid #00ffc8;
    box-shadow: 0 0 20px #00ffc866;
}

/* TIMELINE */
.timeline-section {
    max-width: 900px;
    margin: auto;
    padding: 40px 20px;
}
.timeline {
    border-left: 2px solid #00ffc8;
    padding-left: 30px;
}
.timeline-item {
    margin-bottom: 40px;
    position: relative;
}
.timeline-item .circle {
    width: 16px;
    height: 16px;
    background: #00ffc8;
    border-radius: 50%;
    position: absolute;
    left: -38px;
    top: 5px;
}
.timeline-item h4 {
    margin-bottom: 6px;
    color: #00ffc8;
}

/* ENGAGEMENT CARDS */
.engagement-section {
    padding: 60px 0;
    text-align: center;
}
.engagement-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}
.eng-card {
    background: #0f0f0f;
    border: 1px solid #00ffc822;
    border-radius: 10px;
    padding: 20px;
    width: 280px;
    text-align: left;
    transition: 0.3s;
}
.eng-card:hover {
    border-color: #00ffc8;
    box-shadow: 0 0 15px #00ffc844;
}
.eng-card h4 {
    color: #00ffc8;
    margin-bottom: 10px;
}

/* ----- PAGE PHOTOS ----- */

.subtitle {
    margin-top: -10px;
    color: #9aefff;
    font-size: 1.1rem;
    opacity: 0.8;
    text-align: center;
}

/* Masonry responsive */
/* Filtres photos */
.photo-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.filter-btn {
    padding: 10px 25px;
    background: rgba(0, 255, 200, 0.1);
    border: 1px solid rgba(0, 255, 200, 0.3);
    color: #00ffc8;
    border-radius: 25px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(0, 255, 200, 0.2);
    border-color: #00ffc8;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #00ffc8, #00b3a0);
    color: #0a0a0a;
    border-color: #00ffc8;
    font-weight: bold;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 0 40px 60px;
}

.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.photo-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    border: 1px solid rgba(0,255,255,0.15);
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

.photo-item:hover img {
    transform: scale(1.1);
}

.photo-zoom {
    font-size: 48px;
    color: #00ffc8;
    text-shadow: 0 0 20px rgba(0, 255, 200, 0.8);
}

/* Responsive */
@media (max-width: 1000px) {
    .photo-gallery {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .photo-gallery {
        column-count: 1;
    }
}

/* ----- LIGHTBOX ----- */
#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

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

#lightbox img {
    max-width: 85%;
    max-height: 80%;
    border-radius: 14px;
    box-shadow: 0 0 40px rgba(0,255,255,0.6);
    border: 2px solid rgba(0,255,255,0.3);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

#closeLB {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 2.5rem;
    color: #00ffc8;
    cursor: pointer;
    text-shadow: 0 0 15px #00ffc8;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 255, 200, 0.3);
}

#closeLB:hover {
    background: rgba(0, 255, 200, 0.2);
    transform: rotate(90deg);
}

#prevPhoto,
#nextPhoto {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 200, 0.3);
    color: #00ffc8;
    font-size: 2rem;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 10000;
}

#prevPhoto {
    left: 30px;
}

#nextPhoto {
    right: 30px;
}

#prevPhoto:hover,
#nextPhoto:hover {
    background: rgba(0, 255, 200, 0.2);
    box-shadow: 0 0 20px rgba(0, 255, 200, 0.5);
    transform: translateY(-50%) scale(1.1);
}

#lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #00ffc8;
    padding: 10px 25px;
    border-radius: 20px;
    font-size: 16px;
    border: 1px solid rgba(0, 255, 200, 0.3);
}

.photo-gallery img:hover {
    transform: scale(1.06);
    filter: brightness(1.15);
    box-shadow:
        0 0 10px rgba(0,255,255,0.4),
        0 0 20px rgba(0,255,255,0.25),
        0 0 40px rgba(0,255,255,0.15);
    border-color: rgba(0,255,255,0.35);
}

.materiel {
    text-align: center;
    padding: 50px 20px;
}

.materiel h3 {
    color: #9aefff;
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.materiel-box {
    display: inline-block;
    max-width: 650px;
    padding: 25px 30px;
    border-radius: 14px;
    border: 1px solid rgba(0,255,255,0.2);
    background: rgba(0, 20, 25, 0.35);
    box-shadow: 0 0 15px rgba(0,255,255,0.15);
    color: #d8ffff;
    line-height: 1.6;
    backdrop-filter: blur(3px);
}

.logo-neon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px #00f7ff);
    transition: 0.3s ease;
}

.logo-neon:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 0 20px #00f7ff);
}

/* ============= TESTIMONIALS ============= */
.testimonials-section {
    padding: 80px 40px;
    text-align: center;
}

.testimonials-section h2 {
    font-size: 42px;
    color: #00ffc8;
    margin-bottom: 50px;
    text-shadow: 0 0 10px #00ffc8;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: rgba(13, 13, 13, 0.8);
    border: 1px solid #00ffc8;
    border-radius: 15px;
    padding: 30px;
    transition: 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 255, 200, 0.2);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 60px;
    color: #00ffc8;
    opacity: 0.2;
    font-family: Georgia, serif;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 30px rgba(0, 255, 200, 0.4);
    border-color: #00fff7;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.7;
    color: #e5e5e5;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #00ffc8;
    box-shadow: 0 0 10px rgba(0, 255, 200, 0.3);
}

.author-info h4 {
    margin: 0;
    color: #00ffc8;
    font-size: 18px;
}

.author-info p {
    margin: 5px 0 0;
    color: #9aefff;
    font-size: 14px;
}

/* ============= TRANSITIONS DE PAGES ============= */
.page-transition {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(0, 20, 40, 0.98), rgba(0, 40, 70, 0.98));
        z-index: 10000;
        display: flex;
        justify-content: center;
        align-items: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.5s ease;
    }

    .page-transition.active {
        opacity: 1;
        pointer-events: all;
    }

    .transition-text {
        display: none; /* Masquer le texte 'Chargement...' */
    }

    /* ============= COMPTEURS ANIMÉS ============= */
    .stats-section {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 30px;
        padding: 80px 50px;
        background: rgba(0, 10, 20, 0.5);
    }

    .stat-card {
        text-align: center;
        padding: 30px;
        background: linear-gradient(135deg, rgba(0, 255, 200, 0.05), rgba(0, 100, 150, 0.05));
        border: 2px solid rgba(0, 255, 200, 0.3);
        border-radius: 15px;
        transition: 0.3s;
    }

    .stat-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 10px 30px rgba(0, 255, 200, 0.3);
        border-color: #00ffc8;
    }

    .stat-number {
        font-size: 48px;
        font-weight: 900;
        color: #00ffc8;
        margin-bottom: 10px;
        text-shadow: 0 0 20px rgba(0, 255, 200, 0.5);
    }

    .stat-label {
        font-size: 16px;
        color: #9aefff;
        text-transform: uppercase;
        letter-spacing: 2px;
    }

    /* ============= SECTION COMPÉTENCES ============= */
    .skills-section {
        padding: 80px 50px;
        background: rgba(0, 5, 10, 0.6);
    }

    .section-title {
        text-align: center;
        font-size: 42px;
        color: #00ffc8;
        margin-bottom: 60px;
        text-shadow: 0 0 20px rgba(0, 255, 200, 0.5);
    }

    .skill-category {
        margin-bottom: 50px;
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }

    .skill-category h3 {
        font-size: 24px;
        color: #00ffc8;
        margin-bottom: 25px;
    }

    .skill-bars {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .skill-item {
        width: 100%;
    }

    .skill-info {
        display: flex;
        justify-content: space-between;
        margin-bottom: 10px;
        color: #e5e5e5;
        font-size: 16px;
    }

    .skill-bar {
        width: 100%;
        height: 12px;
        background: rgba(0, 255, 200, 0.1);
        border-radius: 10px;
        overflow: hidden;
        border: 1px solid rgba(0, 255, 200, 0.3);
    }

    .skill-progress {
        height: 100%;
        background: linear-gradient(90deg, #00ffc8, #00b3a0);
        width: 0%;
        transition: width 1.5s ease;
        box-shadow: 0 0 10px rgba(0, 255, 200, 0.5);
        border-radius: 10px;
    }

    .skill-progress.animated {
        animation: glow 2s infinite;
    }

    @keyframes glow {
        0%, 100% { box-shadow: 0 0 10px rgba(0, 255, 200, 0.5); }
        50% { box-shadow: 0 0 20px rgba(0, 255, 200, 0.8); }
    }

    /* Grid Technologies */
    .tech-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 25px;
        margin-top: 30px;
    }

    .tech-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 20px;
        background: rgba(0, 255, 200, 0.05);
        border: 1px solid rgba(0, 255, 200, 0.2);
        border-radius: 12px;
        transition: 0.3s;
        cursor: pointer;
    }

    .tech-item:hover {
        transform: translateY(-8px);
        border-color: #00ffc8;
        box-shadow: 0 5px 20px rgba(0, 255, 200, 0.3);
    }

    .tech-item img,
    .tech-grid img,
    .skills-section img[src$=".svg"],
    .skills-section img[src*="devicon"],
    .skills-section img[src*="devicons"],
    .skills-section img[src*="kali.org"] {
        width: 48px !important;
        height: 48px !important;
        object-fit: contain;
        display: block;
    }

    .tech-item span {
        color: #9aefff;
        font-size: 14px;
        font-weight: 600;
    }

    /* ============= TIMELINE INTERACTIVE ============= */
    .timeline-interactive-section {
        padding: 80px 50px;
        background: rgba(0, 10, 20, 0.4);
    }

    .timeline-interactive {
        max-width: 900px;
        margin: 0 auto;
        position: relative;
        padding: 40px 0;
    }

    .timeline-interactive::before {
        content: '';
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: 3px;
        height: 100%;
        background: linear-gradient(to bottom, #00ffc8, rgba(0, 255, 200, 0.2));
        box-shadow: 0 0 10px rgba(0, 255, 200, 0.5);
    }

    .timeline-item-interactive {
        display: flex;
        justify-content: flex-start;
        margin-bottom: 50px;
        position: relative;
        opacity: 0;
        transform: translateX(-50px);
        transition: all 0.6s ease;
    }

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

    .timeline-item-interactive:nth-child(even) {
        justify-content: flex-end;
        transform: translateX(50px);
    }

    .timeline-item-interactive:nth-child(even).visible {
        transform: translateX(0);
    }

    .timeline-dot {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: 20px;
        height: 20px;
        background: #00ffc8;
        border-radius: 50%;
        border: 4px solid rgba(0, 40, 70, 1);
        box-shadow: 0 0 20px rgba(0, 255, 200, 0.8);
        z-index: 10;
        cursor: pointer;
        transition: 0.3s;
    }

    .timeline-dot:hover {
        transform: translateX(-50%) scale(1.5);
        box-shadow: 0 0 30px rgba(0, 255, 200, 1);
    }

    .timeline-content {
        width: 45%;
        padding: 25px;
        background: linear-gradient(135deg, rgba(0, 255, 200, 0.05), rgba(0, 100, 150, 0.05));
        border: 2px solid rgba(0, 255, 200, 0.3);
        border-radius: 15px;
        transition: 0.3s;
        cursor: pointer;
    }

    .timeline-content:hover {
        transform: scale(1.05);
        border-color: #00ffc8;
        box-shadow: 0 5px 30px rgba(0, 255, 200, 0.3);
    }

    .timeline-content h3 {
        color: #00ffc8;
        font-size: 20px;
        margin-bottom: 8px;
    }

    .timeline-date {
        color: #9aefff;
        font-size: 14px;
        display: block;
        margin-bottom: 10px;
    }

    .timeline-content p {
        color: #e5e5e5;
        font-size: 15px;
        line-height: 1.6;
    }

    /* Responsive Timeline */
    @media (max-width: 768px) {
        .stats-section {
            grid-template-columns: repeat(2, 1fr);
            padding: 50px 20px;
            gap: 20px;
        }

        .stat-number {
            font-size: 36px;
        }

        .skills-section {
            padding: 60px 20px;
        }

        .section-title {
            font-size: 32px;
        }

        .tech-grid {
            grid-template-columns: repeat(3, 1fr);
            gap: 15px;
        }

        .timeline-interactive::before {
            left: 20px;
        }

        .timeline-item-interactive,
        .timeline-item-interactive:nth-child(even) {
            justify-content: flex-end;
        }

        .timeline-dot {
            left: 20px;
        }

        .timeline-content {
            width: calc(100% - 60px);
            margin-left: 20px;
        }
    }

    @media (max-width: 480px) {
        .stats-section {
            grid-template-columns: 1fr;
        }

        .tech-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

.testimonial-stars {
    color: #ffb700;
    font-size: 18px;
    margin-bottom: 10px;
}

/* ============= RESPONSIVE DESIGN ============= */

/* Tablettes et écrans moyens */
@media (max-width: 1200px) {
    nav {
        padding: 15px 35px;
    }

    .hero h1 {
        font-size: 50px;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

/* Tablettes et petits écrans */
@media (max-width: 1024px) {
    nav {
        padding: 15px 30px;
    }

    .hero {
        padding-left: 40px;
        padding-right: 40px;
    }

    .hero h1 {
        font-size: 45px;
    }

    .hero p {
        font-size: 18px;
    }

    section {
        padding: 80px 40px;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        padding: 30px;
        gap: 25px;
    }

    .about-grid {
        flex-direction: column;
        text-align: center;
    }

    .about-right img {
        width: 220px;
        height: 220px;
    }

    .cv-frame {
        width: 90%;
    }

    .cv-viewer {
        height: 600px;
    }
}

/* Smartphones et menu burger */
@media (max-width: 768px) {
    
    /* Afficher le menu burger */
    .burger-menu {
        display: flex !important;
    }

    /* Navigation mobile */
    nav {
        padding: 15px 20px;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: flex-start;
        padding: 30px;
        gap: 25px;
        transition: right 0.4s ease;
        border-left: 1px solid #00ffc8;
        box-shadow: -5px 0 20px rgba(0, 255, 200, 0.2);
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 18px;
        width: 100%;
        padding: 10px 0;
        border-bottom: 1px solid rgba(0, 255, 200, 0.1);
    }

    /* Neon-bar supprimée */

    .neon-title {
        font-size: 16px;
    }

    .hero {
        padding: 20px;
        height: auto;
        min-height: 100vh;
        justify-content: center;
    }

    .hero h1 {
        font-size: 32px;
        text-align: center;
    }

    .hero p {
        font-size: 16px;
        text-align: center;
    }

    section {
        padding: 60px 20px;
    }

    h2 {
        font-size: 32px;
    }

    .cv-title {
        font-size: 32px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .project-card {
        padding: 20px;
    }

    .contact-box {
        width: 95%;
        padding: 20px;
    }

    .input-row {
        flex-direction: column;
        gap: 10px;
    }

    .contact-social {
        flex-direction: column;
        gap: 15px;
    }

}