/* ===========================================
   PORTFOLIO BRUNO HENRY - VERSION SPECTACULAIRE
   =========================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
    --bg-primary: #0f111a;
    --bg-secondary: #161a27;
    --card-bg: rgba(22, 26, 39, 0.6);
    --glass-border: rgba(80, 120, 200, 0.1);
    --text-light: #e0e6f0;
    --text-muted: #8a95a7;
    --accent: #3a8cff;
    --accent-light: #5fa8ff;
    --accent-glow: rgba(58, 140, 255, 0.2);
    --cyber-green: #64ffda;
    --cyber-pink: #ff0080;
    --cyber-blue: #00ff80;
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.2, 0, 0.2, 1);
    --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.3);
    --neon-glow: 0 0 20px var(--cyber-green), 0 0 40px var(--cyber-green), 0 0 80px var(--cyber-green);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    touch-action: manipulation;
}

/* ===========================================
   BACKGROUND CYBERPUNK GRID
   =========================================== */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background:
        linear-gradient(90deg, transparent 98%, rgba(100, 255, 218, 0.1) 100%),
        linear-gradient(180deg, transparent 98%, rgba(100, 255, 218, 0.1) 100%);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
    z-index: -3;
    pointer-events: none;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

body::after {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(100, 255, 218, 0.05) 0%,
        transparent 50%);
    z-index: -2;
    pointer-events: none;
    transition: background 0.1s ease;
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -4;
    background-color: var(--bg-primary);
    pointer-events: none;
}

/* ===========================================
   SECURITY SCAN ANIMATION
   =========================================== */
.security-scan {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle, var(--cyber-green) 0%, transparent 70%);
    animation: security-sweep 3s ease-out forwards;
    z-index: 9998;
    pointer-events: none;
    opacity: 0.3;
}

@keyframes security-sweep {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.5) rotate(180deg);
        opacity: 0.4;
    }
    100% {
        transform: scale(3) rotate(360deg);
        opacity: 0;
        visibility: hidden;
    }
}

/* ===========================================
   BOOT SCREEN AMÉLIORÉ
   =========================================== */
.boot-screen {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(145deg, #000000, #0a0a0a);
    color: var(--cyber-green);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    font-family: 'Space Mono', monospace;
    padding: 20px;
    text-align: center;
    overflow: hidden;
    letter-spacing: 1px;
    transition: opacity 1s ease-out;
}

#bootLinesContainer {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.boot-screen::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(100, 255, 218, 0.03) 2px,
        rgba(100, 255, 218, 0.03) 4px
    );
    animation: scan-lines-boot 1s linear infinite;
}

@keyframes scan-lines-boot {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.boot-line {
    font-size: 1.1em;
    margin: 10px 0;
    opacity: 0;
    transform: translateY(20px);
    text-shadow: 0 0 10px var(--cyber-green);
}

.boot-line:nth-child(1) { animation: fadeInUp 0.8s forwards; animation-delay: 0.5s; }
.boot-line:nth-child(2) { animation: fadeInUp 0.8s forwards; animation-delay: 1.5s; }
.boot-line:nth-child(3) { animation: fadeInUp 0.8s forwards; animation-delay: 2.5s; }
.boot-line:nth-child(4) { animation: fadeInUp 0.8s forwards; animation-delay: 3.5s; }
.boot-line:nth-child(5) { animation: fadeInUp 0.8s forwards; animation-delay: 4.5s; }
.boot-line:nth-child(6) { animation: fadeInUp 0.8s forwards; animation-delay: 5.5s; }

.boot-line-module {
    font-size: 0.9em;
    color: rgba(100, 255, 218, 0.8);
    margin-left: 20px;
}

.spinner {
    animation: spin 1s linear infinite;
    color: #ffa500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.checkmark {
    color: #4ade80;
    text-shadow: 0 0 10px #4ade80;
}

.progress-bar-container {
    display: inline-block;
    width: 200px;
    height: 8px;
    background: #333;
    border-radius: 4px;
    overflow: hidden;
    margin: 0 10px;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--cyber-green), #4ade80);
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px var(--cyber-green);
}

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

.boot-complete {
    font-size: 1.4em;
    color: #4ade80;
    margin-top: 30px;
    opacity: 0;
    transform: scale(0.8);
    text-shadow: var(--neon-glow);
    animation: popIn 0.6s forwards;
    animation-delay: 6.8s;
}

@keyframes popIn {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.glitch-effect {
    animation: glitch-screen 0.3s ease-in-out;
}

@keyframes glitch-screen {
    0%, 100% { transform: translate(0); filter: hue-rotate(0deg); }
    10% { transform: translate(-2px, 2px); filter: hue-rotate(90deg); }
    20% { transform: translate(-3px, -1px); filter: hue-rotate(180deg); }
    30% { transform: translate(3px, 2px); filter: hue-rotate(270deg); }
    40% { transform: translate(-1px, -1px); filter: hue-rotate(360deg); }
    50% { transform: translate(2px, -2px); filter: hue-rotate(90deg); }
    60% { transform: translate(-3px, 1px); filter: hue-rotate(180deg); }
    70% { transform: translate(1px, 1px); filter: hue-rotate(270deg); }
    80% { transform: translate(-1px, -1px); filter: hue-rotate(0deg); }
    90% { transform: translate(2px, 2px); filter: hue-rotate(90deg); }
}

/* ===========================================
   NETWORK SCAN EFFECT
   =========================================== */
@media (min-width: 768px) {
    .network-scan {
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background: radial-gradient(circle, transparent 10%, rgba(100, 255, 218, 0.03) 50%, rgba(100, 255, 218, 0.08) 70%, transparent 80%);
        pointer-events: none;
        z-index: -1;
        opacity: 0.7;
        animation: scanRotate 8s linear infinite;
    }
    @keyframes scanRotate {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
}

/* ===========================================
   GLITCH NAME - VERSION SPECTACULAIRE
   =========================================== */
.glitch-name {
    position: relative;
    font-size: 3.8em;
    font-weight: 700;
    letter-spacing: -1px;
    color: transparent;
    background: linear-gradient(90deg, #e0e6f0, var(--cyber-green), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: var(--neon-glow);
    opacity: 0;
    animation: glitchSlide 0.8s ease forwards;
    animation-delay: 6.5s;
    cursor: pointer;
}

.glitch-name::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(100, 255, 218, 0.1) 2px,
        rgba(100, 255, 218, 0.1) 4px
    );
    animation: scan-lines 2s linear infinite;
    pointer-events: none;
}

@keyframes scan-lines {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.glitch-name:hover {
    animation: glitch-hover 0.3s ease-in-out;
}

@keyframes glitch-hover {
    0%, 100% {
        transform: translate(0);
        filter: hue-rotate(0deg);
        text-shadow: var(--neon-glow);
    }
    10% {
        transform: translate(-2px, 2px);
        filter: hue-rotate(90deg);
        text-shadow: 0 0 20px var(--cyber-pink), 0 0 40px var(--cyber-pink);
    }
    20% {
        transform: translate(-3px, -1px);
        filter: hue-rotate(180deg);
        text-shadow: 0 0 20px var(--cyber-blue), 0 0 40px var(--cyber-blue);
    }
    30% {
        transform: translate(3px, 2px);
        filter: hue-rotate(270deg);
        text-shadow: var(--neon-glow);
    }
    40% {
        transform: translate(-1px, -1px);
        filter: hue-rotate(360deg);
    }
    50% {
        transform: translate(2px, -2px);
        filter: hue-rotate(90deg);
    }
    60% {
        transform: translate(-3px, 1px);
        filter: hue-rotate(180deg);
    }
    70% {
        transform: translate(1px, 1px);
        filter: hue-rotate(270deg);
    }
    80% {
        transform: translate(-1px, -1px);
        filter: hue-rotate(0deg);
    }
    90% {
        transform: translate(2px, 2px);
        filter: hue-rotate(90deg);
    }
}

@keyframes glitchSlide {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

.glitch-name::before {
    content: "Bruno Henry";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, var(--cyber-pink), var(--cyber-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    z-index: -1;
    opacity: 0;
    animation: glitchLayers 5s infinite alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    transform: translate(-2px, -2px);
}

@keyframes glitchLayers {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.3; }
}

/* ===========================================
   PORTFOLIO CONTAINER
   =========================================== */
.portfolio-container {
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-in, transform 1s ease-in;
}

body:not(.booting) .portfolio-container {
    opacity: 1;
}

.portfolio-container.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================================
   HEADER SPECTACULAIRE
   =========================================== */
header {
    text-align: center;
    padding: 80px 20px 60px;
    position: relative;
    border-radius: var(--border-radius);
    background: linear-gradient(145deg,
        rgba(22, 26, 39, 0.8),
        rgba(15, 17, 26, 0.9)
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--cyber-green);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    margin-bottom: 40px;
    transform: translateZ(0);
    transition: transform 0.1s ease-out;
}

/* ===========================================
   LOGO HOLOGRAMME
   =========================================== */
.logo-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 28px;
    cursor: pointer;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: logo-morph 2s ease-out;
    animation-delay: 6.8s;
    animation-fill-mode: both;
}

@keyframes logo-morph {
    0% {
        clip-path: circle(0%);
        filter: hue-rotate(180deg) blur(10px);
        transform: scale(0.5) rotate(180deg);
    }
    50% {
        clip-path: circle(50%);
        filter: hue-rotate(90deg) blur(5px);
        transform: scale(1.1) rotate(90deg);
    }
    100% {
        clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
        filter: hue-rotate(0deg) blur(0px);
        transform: scale(1) rotate(0deg);
    }
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0;
    transform: scale(0.9);
    animation: appear 0.6s ease forwards;
    animation-delay: 7.5s;
    filter: drop-shadow(0 0 20px var(--cyber-green));
}

.profile-img:hover {
    animation: glitch-photo 0.6s ease-in-out;
    transform: scale(1.05);
}

@keyframes glitch-photo {
    0%, 100% {
        filter: hue-rotate(0deg) drop-shadow(0 0 20px var(--cyber-green));
    }
    25% {
        filter: hue-rotate(90deg) drop-shadow(-5px 0 20px var(--cyber-pink));
        transform: scale(1.08) skew(2deg);
    }
    50% {
        filter: hue-rotate(180deg) drop-shadow(0 5px 20px var(--cyber-blue));
        transform: scale(1.1) skew(-1deg);
    }
    75% {
        filter: hue-rotate(270deg) drop-shadow(5px 0 20px var(--cyber-green));
        transform: scale(1.06) skew(1deg);
    }
}

.logo-container::before {
    content: '';
    position: absolute;
    top: -10px; left: -10px; right: -10px; bottom: -10px;
    background: conic-gradient(from 0deg,
        transparent, var(--cyber-green),
        transparent, var(--accent),
        transparent
    );
    border-radius: 50%;
    animation: rotate 3s linear infinite;
    z-index: -1;
    opacity: 0.8;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.logo-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    fill: transparent;
    stroke: var(--cyber-green);
    stroke-width: 4px;
    stroke-dasharray: 540;
    stroke-dashoffset: 540;
    transition: stroke-dashoffset 0.8s cubic-bezier(0.23, 1, 0.32, 1), filter 0.8s ease;
    filter: drop-shadow(0 0 5px var(--cyber-green));
}

.logo-container:hover .logo-border {
    stroke-dashoffset: 0;
    filter: drop-shadow(0 0 15px var(--accent-light));
}

@keyframes appear {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===========================================
   TEXTE AMÉLIORÉ
   =========================================== */
h2 {
    font-size: 1.4em;
    font-weight: 500;
    color: var(--accent-light);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeUp 0.6s ease forwards;
    animation-delay: 7.2s;
    text-shadow: 0 0 10px var(--accent);
}

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

.profile-description {
    max-width: 800px;
    margin: 0 auto 30px;
    padding: 0 20px;
    font-size: 1.1em;
    color: var(--text-muted);
    opacity: 0;
    animation: fadeUp 0.7s ease forwards;
    animation-delay: 7.4s;
    line-height: 1.7;
    letter-spacing: 0.2px;
}

/* ===========================================
   BOUTONS FUTURISTES
   =========================================== */
.cta-buttons, .quick-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin: 20px auto;
    max-width: 320px;
    opacity: 0;
    animation: fadeUp 0.6s ease forwards;
}

.cta-buttons { animation-delay: 7.6s; }
.quick-nav { animation-delay: 7.8s; }

.btn {
    width: 100%;
    padding: 14px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1em;
    text-decoration: none;
    text-align: center;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(100, 255, 218, 0.4),
        transparent
    );
    transition: left 0.5s ease;
    z-index: 0;
}

.btn span, .btn i {
    position: relative;
    z-index: 1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(145deg, #2c3e50, #34495e);
    border: 2px solid #64ffda;
    color: #e0e6f0;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    background: transparent;
    color: #64ffda;
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-secondary:hover {
    background: rgba(79, 156, 249, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 0 20px var(--accent);
}

.btn-demo {
    background: linear-gradient(145deg, var(--cyber-green), #4ade80);
    color: var(--bg-primary);
    border: 2px solid var(--cyber-green);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(100, 255, 218, 0.3);
}

.btn-demo:hover {
    background: transparent;
    color: var(--cyber-green);
    transform: translateY(-3px);
    box-shadow:
        0 6px 20px rgba(100, 255, 218, 0.4),
        0 0 30px var(--cyber-green);
}

/* ===========================================
   SECTION CYBERQWIZ SPECTACULAIRE
   =========================================== */
.featured-project-reworked {
    padding: 40px 0;
    margin: 40px auto;
    border-radius: var(--border-radius);
    background: linear-gradient(145deg,
        rgba(22, 26, 39, 0.9),
        rgba(15, 17, 26, 0.8)
    );
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    border: 1px solid rgba(100, 255, 218, 0.2);
    position: relative;
    overflow: hidden;
}

.featured-project-reworked::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(100, 255, 218, 0.02) 10px,
        rgba(100, 255, 218, 0.02) 20px
    );
    pointer-events: none;
}

.featured-project-reworked .section-title {
    text-align: center;
    color: #e6f1ff;
    margin-bottom: 30px;
    font-family: 'Space Mono', monospace;
    text-shadow: 0 0 20px var(--cyber-green);
    position: relative;
}

.project-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.project-description h3, .project-deliverable h3 {
    color: var(--cyber-green);
    margin-bottom: 15px;
    border-left: 3px solid var(--cyber-green);
    padding-left: 10px;
    text-shadow: 0 0 10px var(--cyber-green);
}

.project-description ul {
    list-style: none;
    padding-left: 0;
}

.project-description ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: #a8b2d1;
}

.project-description ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--cyber-green);
    text-shadow: 0 0 5px var(--cyber-green);
}

.project-deliverable {
    background: linear-gradient(145deg,
        rgba(23, 42, 69, 0.8),
        rgba(15, 25, 45, 0.9)
    );
    border: 1px solid var(--cyber-green);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow:
        0 0 30px rgba(100, 255, 218, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ===========================================
   CONTACT SECTION
   =========================================== */
.contact-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 40px 20px;
    opacity: 0;
    animation: fadeUp 0.6s ease forwards;
    animation-delay: 8s;
}

.contact-item {
    background: linear-gradient(145deg,
        rgba(22, 26, 39, 0.8),
        rgba(15, 17, 26, 0.9)
    );
    backdrop-filter: blur(14px);
    padding: 18px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(100, 255, 218, 0.3);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.contact-item:hover::before {
    left: 100%;
}

.contact-item:hover {
    transform: translateY(-4px);
    border-color: var(--cyber-green);
    box-shadow:
        var(--shadow-lg),
        0 0 20px rgba(100, 255, 218, 0.3);
}

.contact-item span {
    display: block;
    font-size: 0.9em;
    color: var(--text-muted);
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}

.contact-item a {
    color: var(--text-light);
    font-weight: 500;
    text-decoration: none;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.contact-item:hover a {
    color: var(--cyber-green);
    text-shadow: 0 0 5px var(--cyber-green);
}

/* ===========================================
   NAVIGATION
   =========================================== */
.navigation {
    background: linear-gradient(145deg,
        rgba(22, 26, 39, 0.8),
        rgba(15, 17, 26, 0.9)
    );
    backdrop-filter: blur(14px);
    padding: 16px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 30px 20px;
    opacity: 0;
    animation: fadeUp 0.6s ease forwards;
    animation-delay: 8.2s;
    border: 1px solid rgba(100, 255, 218, 0.2);
}

.navigation a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.95em;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(100, 255, 218, 0.2);
    min-width: 90px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.navigation a::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg,
        transparent,
        var(--cyber-green),
        transparent
    );
    transition: left 0.4s ease;
    opacity: 0.2;
}

.navigation a:hover::before {
    left: 100%;
}

.navigation a:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 156, 249, 0.3);
    border-color: var(--accent);
}

/* ===========================================
   FOOTER - VERSION MOBILE OPTIMISÉE
   =========================================== */
footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: var(--text-muted);
    font-size: 0.9em;
    border-top: 1px solid rgba(100, 255, 218, 0.2);
    opacity: 0;
    animation: fadeUp 0.5s ease forwards;
    animation-delay: 8.4s;
    width: 100%;
    background: linear-gradient(145deg,
        rgba(15, 17, 26, 0.8),
        rgba(22, 26, 39, 0.6)
    );
    backdrop-filter: blur(10px);
}

.navigation-footer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px;
    margin: 0 auto;
    max-width: 1200px;
}

.navigation-footer a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(145deg, rgba(22, 26, 39, 0.9), rgba(15, 17, 26, 0.95));
    border: 2px solid rgba(100, 255, 218, 0.3);
    border-radius: 10px;
    color: #e0e6f0;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
    white-space: nowrap;
    min-width: 120px;
    text-align: center;
}

.navigation-footer a:hover {
    background: transparent;
    color: #64ffda;
    border-color: #64ffda;
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.4);
    transform: translateY(-3px);
}

footer .footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    padding: 0 20px;
}

.visitor-counter {
    font-family: 'Space Mono', monospace;
    color: var(--text-muted);
    font-size: 0.9em;
}

.visitor-counter .fas {
    color: var(--cyber-green);
    margin-right: 8px;
    animation: pulse-signal 2s infinite;
    text-shadow: 0 0 5px var(--cyber-green);
}

@keyframes pulse-signal {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
        text-shadow: 0 0 10px var(--cyber-green);
    }
    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}

/* ===========================================
   PAGES INTÉRIEURES
   =========================================== */
.container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.header-section {
    text-align: center;
    padding: 60px 30px;
    background: linear-gradient(145deg,
        rgba(22, 26, 39, 0.8),
        rgba(15, 17, 26, 0.9)
    );
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: var(--border-radius);
    box-shadow:
        var(--shadow-sm),
        0 0 30px rgba(100, 255, 218, 0.1);
    border: 1px solid rgba(100, 255, 218, 0.3);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.header-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 20px,
        rgba(100, 255, 218, 0.02) 20px,
        rgba(100, 255, 218, 0.02) 40px
    );
    pointer-events: none;
}

.header-section h1 {
    font-size: 2.8em;
    font-weight: 700;
    background: linear-gradient(90deg, #e0e6f0, var(--cyber-green), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    text-shadow: 0 0 20px var(--cyber-green);
    position: relative;
    z-index: 1;
}

/* ===========================================
   CARDS SPECTACULAIRES
   =========================================== */
.creation-card, .project-card, .experience-card, .education-card, .skill-card {
    background: linear-gradient(145deg,
        rgba(22, 26, 39, 0.8),
        rgba(15, 17, 26, 0.9)
    );
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 35px;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    border: 1px solid rgba(100, 255, 218, 0.2);
    margin-bottom: 35px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.6s ease-out, transform 0.6s ease-out;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    overflow: hidden;
}

.creation-card.is-visible, .project-card.is-visible, .experience-card.is-visible, .education-card.is-visible, .skill-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.creation-card:hover, .project-card:hover, .experience-card:hover, .education-card:hover {
    transform: translateY(-6px);
    box-shadow:
        var(--shadow-lg),
        0 0 30px rgba(100, 255, 218, 0.2);
    border-color: var(--cyber-green);
}

.skill-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow:
        var(--shadow-lg),
        0 0 20px rgba(79, 156, 249, 0.2);
}

.creation-card h2, .project-card h2 {
    font-size: 2em;
    color: var(--accent-light);
    margin: 0 0 16px 0;
    font-weight: 600;
    position: relative;
    display: inline-block;
    text-shadow: 0 0 10px var(--accent);
}

.creation-card h2::after, .project-card h2::after {
    content: '';
    position: absolute;
    bottom: -6px; left: 0;
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--cyber-green));
    filter: blur(1px);
    opacity: 0.7;
    box-shadow: 0 0 10px var(--accent);
}

/* ===========================================
   DÉTAILS ET LISTES
   =========================================== */
.creation-details p, .project-details p, .profile-summary p {
    color: var(--text-light);
    font-size: 1.1em;
    margin-bottom: 24px;
    line-height: 1.7;
    letter-spacing: 0.2px;
}

.creation-details h3, .project-details h3 {
    font-size: 1.4em;
    color: #fff;
    margin: 28px 0 14px 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 0 5px var(--cyber-green);
}

.creation-details h3::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1em;
    content: '\f085';
    color: var(--cyber-green);
    text-shadow: 0 0 5px var(--cyber-green);
}

.project-details h3::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1.1em;
    content: '\f0ad';
    color: var(--cyber-green);
    text-shadow: 0 0 5px var(--cyber-green);
}

.tech-list, .features-list, .project-details ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0;
    padding-left: 0;
}

.tech-list li, .features-list li, .project-details li {
    background: linear-gradient(145deg,
        rgba(255, 255, 255, 0.08),
        rgba(255, 255, 255, 0.05)
    );
    color: var(--text-light);
    padding: 10px 18px;
    border-radius: 24px;
    font-size: 0.95em;
    border: 1px solid rgba(100, 255, 218, 0.2);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.tech-list li::before, .features-list li::before, .project-details li::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg,
        transparent,
        var(--cyber-green),
        transparent
    );
    transition: left 0.4s ease;
    opacity: 0.1;
}

.tech-list li:hover::before, .features-list li:hover::before, .project-details li:hover::before {
    left: 100%;
}

.tech-list li {
    font-family: 'Space Mono', monospace;
}

.tech-list li:hover, .features-list li:hover, .project-details li:hover {
    background: rgba(100, 255, 218, 0.2);
    transform: scale(1.05);
    border-color: var(--cyber-green);
    box-shadow: 0 0 15px rgba(100, 255, 218, 0.3);
}

/* ===========================================
   BACK TO TOP
   =========================================== */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(145deg, var(--accent), var(--accent-light));
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2em;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s, visibility 0.4s, transform 0.4s;
    z-index: 1000;
    border: 2px solid var(--cyber-green);
    box-shadow: 0 0 20px rgba(79, 156, 249, 0.3);
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    background: linear-gradient(145deg, var(--accent-light), var(--cyber-green));
    transform: scale(1.1);
    box-shadow: 0 0 30px var(--cyber-green);
}

/* ===========================================
   RESPONSIVE DESIGN - MOBILE OPTIMISÉ
   =========================================== */
@media (max-width: 900px) {
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .navigation-footer {
        gap: 12px;
        padding: 15px;
    }
    
    .navigation-footer a {
        min-width: 110px;
        padding: 10px 16px;
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    .glitch-name {
        font-size: 2.5em;
    }

    h2 {
        font-size: 1.1em;
    }

    .profile-description {
        font-size: 0.95em;
    }

    .contact-item {
        padding: 16px;
    }

    .header-section h1 {
        font-size: 2.3em;
    }

    .profile-summary, .skill-card {
        padding: 24px;
    }

    .section-title {
        font-size: 1.8em;
    }

    .cta-buttons, .quick-nav {
        flex-direction: row;
        max-width: none;
        width: 100%;
        justify-content: center;
    }

    .cta-buttons .btn, .quick-nav .btn {
        width: auto;
        flex-grow: 1;
        font-size: 0.9em;
    }

    /* FOOTER MOBILE - GRILLE 2 COLONNES */
    .navigation-footer {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 15px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .navigation-footer a {
        width: 100%;
        min-width: unset;
        padding: 12px 10px;
        font-size: 13px;
        gap: 6px;
    }
    
    .navigation-footer a i {
        font-size: 14px;
        flex-shrink: 0;
    }

    footer .footer-content {
        flex-direction: column;
        gap: 10px;
        font-size: 0.85em;
    }
    
    #back-to-top {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
        font-size: 1.1em;
    }
}

/* TRÈS PETITS ÉCRANS - 1 COLONNE */
@media (max-width: 400px) {
    .navigation-footer {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .navigation-footer a {
        padding: 14px 12px;
        font-size: 14px;
    }
}

/* ===========================================
   SCROLL PARALLAX EFFECT
   =========================================== */
.parallax-element {
    transform: translateZ(0);
    transition: transform 0.1s ease-out;
}

/* ===========================================
   MOUSE FOLLOW EFFECT
   =========================================== */
.interactive-element {
    transition: var(--transition);
}

.interactive-element:hover {
    transform: translateZ(10px);
}

/* ===========================================
   ADDITIONAL SPECTACULAR EFFECTS
   =========================================== */
.data-rain {
    display: none;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

.typing-effect {
    overflow: hidden;
    border-right: .15em solid var(--cyber-green);
    white-space: nowrap;
    margin: 0 auto;
    animation:
        typing 3.5s steps(40, end),
        blink-caret .75s step-end infinite;
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--cyber-green); }
}

/* ===========================================
   TUTORIEL STYLES
   =========================================== */
.tutoriel-article {
    background: linear-gradient(145deg,
        rgba(22, 26, 39, 0.8),
        rgba(15, 17, 26, 0.9)
    );
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 25px 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(100, 255, 218, 0.2);
    margin-bottom: 35px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: hidden;
}

.tutoriel-article::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 30px,
        rgba(100, 255, 218, 0.01) 30px,
        rgba(100, 255, 218, 0.01) 60px
    );
    pointer-events: none;
}

.tutoriel-article h2, .tutoriel-article h3, .tutoriel-article h4 {
    color: var(--cyber-green);
    margin-top: 40px;
    margin-bottom: 20px;
    border-left: 3px solid var(--cyber-green);
    padding-left: 15px;
    font-family: 'Space Mono', monospace;
    text-shadow: 0 0 10px var(--cyber-green);
    position: relative;
    z-index: 1;
}

.tutoriel-article h2 { font-size: 2em; }
.tutoriel-article h3 { font-size: 1.6em; color: var(--accent-light); }
.tutoriel-article h4 { font-size: 1.3em; }

/* ===========================================
   FINAL TOUCHES
   =========================================== */
::selection {
    background: var(--cyber-green);
    color: var(--bg-primary);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--cyber-green), var(--accent));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent), var(--cyber-green));
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;