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

:root {
    --bg: #0d0d0d;
    --text: #e8e4df;
    --accent: #ff6b35;
    --accent2: #4ecdc4;
    --muted: #6b6b6b;
    --card-bg: #1a1a1a;
}

body {
    font-family: 'Space Mono', monospace;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Texture de fond subtile */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 24px;
    position: relative;
    z-index: 1;
}

/* Header avec le nom */
.header {
    margin-bottom: 80px;
}

.name {
    font-family: 'Syne', sans-serif;
    font-size: clamp(3rem, 12vw, 7rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.name span {
    color: var(--accent);
}

.title {
    font-size: 0.9rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.title::before {
    content: '// ';
    color: var(--accent2);
}

/* Bio décontractée */
.bio {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    line-height: 1.5;
    margin-bottom: 60px;
    max-width: 600px;
}

.bio .highlight {
    color: var(--accent);
    font-weight: 600;
}

.bio .highlight2 {
    color: var(--accent2);
    font-weight: 600;
}

/* Section liens */
.links-section {
    margin-bottom: 80px;
}

.section-title {
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--muted);
    opacity: 0.3;
}

.links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.link-card {
    background: var(--card-bg);
    border: 1px solid #2a2a2a;
    padding: 20px 28px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.link-card:hover {
    background: #222;
    transform: translateX(4px);
}

.link-card:hover::before {
    transform: scaleY(1);
}

.link-card .label {
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.link-card .desc {
    font-size: 0.75rem;
    color: var(--muted);
}

.link-card.portfolio::before {
    background: var(--accent2);
}

.link-card.github::before {
    background: #fff;
}

/* Projets */
.projects-grid {
    display: grid;
    gap: 16px;
}

.project {
    background: var(--card-bg);
    border: 1px solid #2a2a2a;
    padding: 24px;
    text-decoration: none;
    color: var(--text);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    transition: all 0.2s ease;
}

.project:hover {
    background: #1f1f1f;
    border-color: var(--accent);
}

.project-number {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--muted);
    opacity: 0.5;
}

.project:hover .project-number {
    color: var(--accent);
    opacity: 1;
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.project-info h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0;
}

/* Badge projet indisponible */
.project-badge--offline {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    align-self: flex-start;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.35);
    padding: 0.35rem 0.55rem;
    border-radius: 4px;
}

.project-badge--offline::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
    flex-shrink: 0;
}

.project-info p {
    font-size: 0.8rem;
    color: var(--muted);
}

.project-arrow {
    font-size: 1.5rem;
    color: var(--muted);
    transition: all 0.2s ease;
}

.project:hover .project-arrow {
    color: var(--accent);
    transform: translateX(4px);
}

/* Footer */
.footer {
    margin-top: 100px;
    padding-top: 40px;
    border-top: 1px solid #2a2a2a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-text {
    font-size: 0.75rem;
    color: var(--muted);
}

.status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 40px 20px;
    }

    .project {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .project-number {
        font-size: 1.2rem;
    }

    .project-arrow {
        display: none;
    }

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

/* Easter egg cursor */
.link-card:hover, .project:hover {
    cursor: pointer;
}