* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --bg-dark: #000000;
    --bg-secondary: #050505;
    --bg-card: rgba(8, 8, 12, 0.9);
    --text-primary: #ffffff;
    --text-secondary: #6b7280;
    --accent-blue: #2563eb;
    --accent-purple: #7c3aed;
    --accent-cyan: #0891b2;
    --accent-pink: #db2777;
    --accent-green: #059669;
    --accent-orange: #ea580c;
    --glow: rgba(37, 99, 235, 0.15);
}
body {
    background: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}
/* Animated background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}
.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.03;
    animation: floatSmooth 25s infinite ease-in-out;
}
.shape:nth-child(1) {
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple));
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}
.shape:nth-child(2) {
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-green));
    top: 70%;
    right: 10%;
    animation-delay: 8s;
}
.shape:nth-child(3) {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, var(--accent-pink), var(--accent-orange));
    bottom: 40%;
    left: 20%;
    animation-delay: 16s;
}
.shape:nth-child(4) {
    width: 120px;
    height: 120px;
    background: linear-gradient(45deg, var(--accent-purple), var(--accent-pink));
    top: 30%;
    right: 30%;
    animation-delay: 12s;
}
@keyframes floatSmooth {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.03;
    }
    25% {
        transform: translate(-30px, -20px) scale(1.1);
        opacity: 0.05;
    }
    50% {
        transform: translate(20px, -30px) scale(0.9);
        opacity: 0.02;
    }
    75% {
        transform: translate(-20px, 10px) scale(1.05);
        opacity: 0.04;
    }
}
/* Mouse effect - plus subtil et uniquement sur le fond */
.mouse-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(700px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(37, 99, 235, 0.12) 0%,
        rgba(124, 58, 237, 0.08) 28%,
        rgba(219, 39, 119, 0.05) 45%,
        transparent 65%);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}
.nav-links a:hover {
    color: var(--text-primary);
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: width 0.3s ease;
}
.nav-links a:hover::after {
    width: 100%;
}
/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}
.hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: fadeInUp 1s ease-out;
}
.hero-content .subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}
/* removed unused .cta-button styles */
/* Scroll indicator - flèche discrète */
.scroll-indicator {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    color: var(--text-secondary);
    opacity: 0.7;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.scroll-indicator:hover {
    transform: translateX(-50%) translateY(3px);
    opacity: 1;
}
.scroll-indicator svg {
    display: block;
}
@media (prefers-reduced-motion: no-preference) {
    .scroll-indicator {
        animation: scrollFloat 2.8s ease-in-out infinite;
    }
}
@keyframes scrollFloat {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}
/* About Section avec style JavaScript */
.about {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.code-bio {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.code-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.code-dots {
    display: flex;
    gap: 8px;
    margin-right: 1rem;
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27ca3f; }
.file-name {
    color: var(--text-secondary);
    font-family: 'Monaco', 'Menlo', monospace;
}
.code-content {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
}
.code-line {
    display: block;
    padding: 0.2rem 0;
    opacity: 0; /* invisible avant l'animation */
    animation: typeWriter 3s ease-in-out forwards; /* conserver l'état final */
}
.line-number {
    color: var(--text-secondary);
    margin-right: 1rem;
    user-select: none;
}
.keyword { color: var(--accent-purple); }
.string { color: var(--accent-green); }
.property { color: var(--accent-cyan); }
.value { color: var(--accent-orange); }
.comment { color: var(--text-secondary); }
/* Skills interactive */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}
.skill-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2rem;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.skill-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.1);
}
.skill-card:hover::before {
    opacity: 1;
}
.skill-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}
.skill-icon {
    font-size: 2rem;
    margin-right: 1rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
}
.skill-card:nth-child(1) .skill-icon {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(37, 99, 235, 0.1));
    color: var(--accent-blue);
}
.skill-card:nth-child(2) .skill-icon {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.2), rgba(5, 150, 105, 0.1));
    color: var(--accent-green);
}
.skill-card:nth-child(3) .skill-icon {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(124, 58, 237, 0.1));
    color: var(--accent-purple);
}
.skill-card:nth-child(4) .skill-icon {
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.2), rgba(234, 88, 12, 0.1));
    color: var(--accent-orange);
}
.skill-card:nth-child(5) .skill-icon {
    background: linear-gradient(135deg, rgba(219, 39, 119, 0.2), rgba(219, 39, 119, 0.1));
    color: var(--accent-pink);
}
.skill-card:nth-child(6) .skill-icon {
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.2), rgba(8, 145, 178, 0.1));
    color: var(--accent-cyan);
}
.skill-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}
.skill-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.skill-tag {
    padding: 0.2rem 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
/* Projects avec timeline verticale */
.projects {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}
.projects-timeline {
    position: relative;
    padding-left: 3rem;
}
.projects-timeline::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, 
        transparent, 
        var(--accent-blue) 20%, 
        var(--accent-purple) 50%, 
        var(--accent-cyan) 80%, 
        transparent);
    opacity: 0.3;
}
.project-item {
    position: relative;
    margin-bottom: 1rem;
}
.project-item::before {
    content: '';
    position: absolute;
    left: -3.75rem;
    top: 2rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-blue);
    border: 3px solid var(--bg-dark);
    box-shadow: 0 0 20px var(--glow);
    z-index: 2;
}
.project-item:nth-child(2)::before { background: var(--accent-purple); }
.project-item:nth-child(3)::before { background: var(--accent-cyan); }
.project-item:nth-child(4)::before { background: var(--accent-green); }
.project-card {
    background: var(--bg-card);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    display: grid;
    grid-template-columns: 300px 1fr;
    min-height: 200px;
}
.project-card:hover {
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.1);
}
.project-image {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    position: relative;
    overflow: hidden;
}
.project-image.has-cover::before {
    background: none;
}
.project-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.project-item:nth-child(2) .project-image {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
}
.project-item:nth-child(3) .project-image {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-green));
}
.project-item:nth-child(4) .project-image {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-orange));
}
.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(255,255,255,0.1) 0%, transparent 50%);
}
.project-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.project-meta {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 1rem;
}
.project-year {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.project-status {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-weight: 500;
}
.status-completed {
    background: rgba(5, 150, 105, 0.2);
    color: var(--accent-green);
    border: 1px solid rgba(5, 150, 105, 0.3);
}
.status-in-progress {
    background: rgba(234, 88, 12, 0.2);
    color: var(--accent-orange);
    border: 1px solid rgba(234, 88, 12, 0.3);
}
.project-title {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    font-weight: 600;
}
.project-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}
.project-tags .tag {
    padding: 0.28rem 0.6rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    user-select: none;
}
.project-tags .tag:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--text-primary);
}
.project-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}
.project-link:hover {
    color: var(--text-primary);
    transform: translateX(5px);
}
.project-link::after {
    content: '→';
    transition: transform 0.3s ease;
}
.project-link:hover::after {
    transform: translateX(3px);
}
/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes typeWriter {
    from { opacity: 0; }
    to { opacity: 1; }
}
/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .code-bio {
        padding: 1rem;
    }
    
    .project-card {
        grid-template-columns: 1fr;
    }
    .project-image {
        min-height: 160px;
    }
}