body {
    background: #282a36;
    color: #f8f8f2;
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.page {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 220px;
    background: #21222c;
    padding: 2rem 1rem 1rem 1rem;
    min-height: 100vh;
    box-sizing: border-box;
    position: sticky;
    top: 0;
}

main {
    flex: 1;
    padding: 2rem 2rem 2rem 2rem;
    background: #282a36;
    min-height: 100vh;
    box-sizing: border-box;
}

.nav-link {
    color: #bd93f9;
    text-decoration: none;
    display: block;
    padding: 0.5em 1em;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
    margin-bottom: 0.5em;
    position: relative;
    overflow: hidden;
}

.nav-link.active, .nav-link:hover {
    color: #50fa7b;
    background: #44475a;
    font-weight: bold;
}

/* Effet glitch sur le texte au survol */
.nav-link:hover {
    animation: glitch 0.4s linear;
}

@keyframes glitch {
    0% {
        text-shadow: 2px 0 #ff79c6, -2px 0 #8be9fd;
        transform: translateX(0);
    }
    20% {
        text-shadow: -2px 0 #ff79c6, 2px 0 #8be9fd;
        transform: translateX(-2px);
    }
    40% {
        text-shadow: 2px 2px #ffb86c, -2px -2px #8be9fd;
        transform: translateX(2px);
    }
    60% {
        text-shadow: -2px 2px #ff79c6, 2px -2px #8be9fd;
        transform: translateX(-1px);
    }
    80% {
        text-shadow: 2px -2px #ffb86c, -2px 2px #8be9fd;
        transform: translateX(1px);
    }
    100% {
        text-shadow: none;
        transform: translateX(0);
    }
}

.top-row {
    display: none; /* Cache la barre About en haut */
}

.project-card {
    background: #44475a;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px #0002;
}
.skill-badge {
    display: inline-block;
    background: #6272a4;
    color: #f8f8f2;
    border-radius: 12px;
    padding: 0.3em 1em;
    margin: 0.2em;
    font-size: 1em;
}
.console {
    background: #111;
    color: #39ff14;
    border-radius: 8px;
    padding: 1em;
    font-family: 'Fira Mono', 'Consolas', monospace;
    height: 420px;
    max-width: 100%;
    box-shadow: 0 0 16px #39ff1460;
    font-size: 1.1em;
    display: flex;
    flex-direction: column;
}
.console-input {
    width: 100%;
    background: #111;
    color: #39ff14;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 1em;
    margin-top: 0;
    margin-bottom: 0;
    padding: 0.2em 0 0.2em 0;
    caret-color: #39ff14;
    line-height: 1.4;
    vertical-align: middle;
    box-sizing: border-box;
    display: inline-block;
    /* Désactive correcteur, auto-capitalisation, autocomplétion */
    spellcheck: false;
    autocorrect: off;
    autocomplete: off;
    autocapitalize: off;
}
.console-output {
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    margin-bottom: 0.5em;
    white-space: pre-wrap;
    word-break: break-word;
}
.console-prompt {
    color: #39ff14;
    font-weight: bold;
    margin-right: 0.3em;
    font-size: 1em;
    line-height: 1.4;
    vertical-align: middle;
    display: inline-block;
}
.console-cmd {
    color: #fff;
}
.console-error {
    color: #ff5555;
}
.console-link {
    color: #00bfff;
    text-decoration: underline;
    cursor: pointer;
}

.console-fullpage {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.console-fullpage .console {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
    box-shadow: none;
}

.console-autocomplete {
    position: absolute;
    left: 0.5em;
    top: 0;
    color: #39ff1480;
    pointer-events: none;
    font-family: inherit;
    font-size: 1em;
    line-height: 1.4;
    user-select: none;
    z-index: 1;
    white-space: pre;
}

.console-output::-webkit-scrollbar {
    width: 10px;
    background: #111;
}
.console-output::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 8px;
    border: 2px solid #111;
    box-shadow: 0 0 4px #39ff14;
}
.console-output::-webkit-scrollbar-thumb:hover {
    background: #39ff14;
    box-shadow: 0 0 8px #39ff14;
}

/* Firefox */
.console-output {
    scrollbar-width: thin;
    scrollbar-color: #39ff14 #111;
}

@media (max-width: 800px) {
    .page {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        min-height: unset;
        position: static;
        padding: 1rem;
    }
    main {
        padding: 1rem;
    }
} 