@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
body {
    background: #222 url('https://www.transparenttextures.com/patterns/8bit.png');
    color: #fff;
    font-family: 'Press Start 2P', cursive;
    margin: 0;
    padding: 0;
    font-size: 18px;
}
header {
    background: #111;
    padding: 20px 0;
    text-align: center;
    border-bottom: 4px solid #44d;
    box-shadow: 0 4px 0 #222;
}
.header-logo-title {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
}
.site-logo {
    display: inline-block;
    margin: 0;
    height: auto;
    max-width: 100%;
    width: 120px;
    min-width: 32px;
    box-sizing: border-box;
}
@media (max-width: 900px) {
    .site-logo {
        width: 70px;
        min-width: 24px;
        height: auto;
        max-width: 100%;
    }
}
@media (max-width: 600px) {
    .site-logo {
        width: 40px;
        min-width: 16px;
        height: auto;
        max-width: 100%;
    }
}
h1 {
    font-size: 2.5rem;
    letter-spacing: 2px;
    margin: 0 0 12px 0;
    color: #44d;
    text-shadow: 2px 2px 0 #000;
    width: 100%;
    text-align: center;
    position: static;
    top: auto;
    left: auto;
    transform: none;
    z-index: 2;
}
.index{
    font-size: 2.5rem;
    letter-spacing: 2px;
    margin: 40px 0 24px 0;
@media (min-width: 900px) {
    .index {
        margin-top: 90px;
    }
}
}
h2 {
    color: #fff;
    font-size: 1.5rem;
    margin-top: 0;
    text-shadow: 1px 1px 0 #44d;
    text-align: center;
}
nav {
    margin: 20px 0;
    text-align: center;
}
nav a {
    color: #fff;
    background: #44d;
    padding: 8px 16px;
    margin: 0 8px;
    text-decoration: none;
    border-radius: 4px;
    box-shadow: 2px 2px 0 #222;
    font-size: 1.1rem;
    transition: background 0.2s;
}
nav a:hover {
    background: #88f;
}
.container {
    max-width: 800px;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 8px 0 #222;
    padding: 32px;
}
.index-container {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
}
.avatar {
    display: block;
    margin: 0 auto 24px auto;
    width: 96px;
    height: 96px;
    image-rendering: pixelated;
    border: 4px solid #44d;
    border-radius: 8px;
    background: #222;
}
h2 {
    color: #fff;
    font-size: 1.2rem;
    margin-top: 0;
    text-shadow: 1px 1px 0 #44d;
}
ul.skills {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
ul.skills li {
    background: transparent;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 1rem;
    box-shadow: none;
}
.projects {
    display: flex;
    flex-direction: column;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 24px;
}
.project-card {
    background: #333;
    border: 2px solid #44d;
    border-radius: 6px;
    padding: 16px;
    box-shadow: 2px 2px 0 #222;
    font-size: 1.1rem;
    word-break: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
}
.project-card h3 {
    margin: 0 0 8px 0;
    color: #88f;
    font-size: 1.2rem;
    text-shadow: 1px 1px 0 #222;
}
footer {
    text-align: center;
    padding: 16px 0;
    background: #111;
    color: #44d;
    font-size: 1rem;
    border-top: 4px solid #44d;
    box-shadow: 0 -4px 0 #222;
}
/* Menu déroulant principal */
.menu-dropdown {
    display: inline-block;
    position: relative;
    margin: 0 8px;
    z-index: 10;
}
.menu-dropdown > a {
    color: #fff;
    background: #44d;
    padding: 8px 16px;
    border-radius: 4px;
    box-shadow: 2px 2px 0 #222;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s;
}
.menu-dropdown > a:hover {
    background: #88f;
}

.hello{
    cursor:none;
}
/* Sous-menu */
.dropdown-content {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 220px;
    background: #222;
    border: 2px solid #44d;
    border-radius: 6px;
    box-shadow: 2px 2px 0 #111;
    z-index: 100;
    padding: 8px 0;
}
.menu-dropdown:hover .dropdown-content,
.menu-dropdown:focus-within .dropdown-content {
    display: block;
}
.dropdown-content a {
    display: block;
    color: #fff;
    background: none;
    padding: 8px 16px;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    font-size: 1rem;
    text-align: left;
    text-decoration: none;
    transition: background 0.2s;
}
.dropdown-content a:hover {
    background: #44d;
    color: #fff;
}
/* Menu principal centré */
.menu-principal {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 260px;
    font-family: 'Press Start 2P', cursive;
}
.menu-principal > div {
    margin: 0;
    position: relative;
}
.menu-principal a {
    color: #bbb;
    font-size: 1.1rem;
    text-decoration: none;
    padding: 16px 32px 16px 48px;
    border-radius: 12px;
    transition: background 0.2s, color 0.2s;
    text-shadow: 2px 2px 0 #222, 1px 1px 0 #fff;
    position: relative;
    display: block;
    background: none;
    /* touch-action et user-select supprimés pour permettre le clic rapide sur mobile */
}
.menu-principal a:hover {
    color: #bbb !important;
    background: none !important;
    pointer-events: none;
}
.menu-principal a.selected {
    color: #fff !important;
    outline: none !important;
    box-shadow: none !important;
}
.menu-principal a.selected .menu-cursor {
    opacity: 1;
}
.menu-principal a:hover .menu-cursor {
    opacity: 0;
}
.menu-cursor {
    content: '';
    display: block;
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: url('https://www.videogamesprites.net/FinalFantasy4/Objects/HandCursor.gif') no-repeat center center;
    background-size: contain;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}
/* Responsive Design */
@media (max-width: 900px) {
    .container {
        max-width: 95vw;
        padding: 16px;
    }
    .projects {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    nav, .menu-dropdown {
        font-size: 1rem;
    }
    .avatar {
        width: 72px;
        height: 72px;
    }
     .menu-principal a {
        text-align: left;
     }
}

@media (max-width: 600px) {
    body {
        font-size: 13px;
        padding: 0;
        margin: 0;
    }
    header {
        padding: 8px 0;
    }
    h1, .index {
        font-size: 1.1rem;
        margin: 12px 0 18px 0;
        word-break: break-word;
        text-align: center;
        position: static !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
    }
    h2 {
        font-size: 1rem;
    }
    .menu-principal {
        position: static !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        min-width: 0 !important;
        width: 100%;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin: 0 auto;
    }
    .menu-principal > div {
        width: 100%;
        margin: 0;
        text-align: center;
    }
    .menu-principal a {
        font-size: 1.1rem;
        padding: 18px 10vw 18px 48px;
        width: 90vw;
        max-width: 340px;
        box-sizing: border-box;
        display: block;
        border-radius: 16px;
        margin: 8px auto;
        text-align: left;
        /* touch-action et user-select supprimés pour permettre le clic rapide sur mobile */
    }
    nav, .cv-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        width: 100%;
    }
    nav a, .menu-dropdown > a {
        padding: 6px 10px;
        font-size: 0.95rem;
        margin: 2px 2px;
        width: 90vw;
        max-width: 320px;
        box-sizing: border-box;
        display: inline-block;
    }
    .container {
        padding: 4px;
        margin: 0 auto;
        width: 100vw;
        box-sizing: border-box;
    }
    .avatar {
        width: 40px;
        height: 40px;
    }
    .projects {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .project-card {
        padding: 4px;
        font-size: 0.85rem;
    }
    ul.skills {
        gap: 3px;
        font-size: 0.85rem;
        word-break: break-word;
        max-width: 95vw;
    }
    ul.skills li {
        word-break: break-word;
        overflow-wrap: break-word;
        max-width: 95vw;
    }
    footer {
        font-size: 0.8rem;
        padding: 4px 0;
    }
}
body.index-page {
    cursor: none !important;
}

 ul.skills li a {
        word-break: break-all;
        overflow-wrap: break-word;
        max-width: 90vw;
        font-size: 0.8em;
        display: inline-block;
    }

    /* Menu burger pour mobile */
#burger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: #222;
    border: 2px solid #44d;
    border-radius: 8px;
    cursor: pointer;
    margin-left: 0;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
}
#burger-menu .burger-bar {
    display: block;
    width: 28px;
    height: 4px;
    background: #44d;
    margin: 4px 0;
    border-radius: 2px;
    transition: all 0.3s;
}
#burger-menu.active .burger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
#burger-menu.active .burger-bar:nth-child(2) {
    opacity: 0;
}
#burger-menu.active .burger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 1840px) {
    #burger-menu {
        display: flex;
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        margin-left: 0;
    }
    .site-logo {
        margin-left: auto;
        margin-right: auto;
        display: block;
    }
    header nav {
        display: none;
        flex-direction: column;
        background: #222;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100vw;
        z-index: 1000;
        box-shadow: 0 4px 16px #111;
        border-bottom: 2px solid #44d;
        padding: 16px 0;
    }
    header nav.open {
        display: flex;
    }
    .menu-dropdown, .menu-dropdown > a, .dropdown-content, header nav > a {
        width: 90vw !important;
        max-width: 340px;
        margin: 8px auto !important;
        text-align: left;
        font-size: 1.1rem;
    }
    .dropdown-content {
        position: static !important;
        min-width: 0 !important;
        box-shadow: none !important;
        border: none !important;
        background: #222 !important;
        padding: 0 !important;
    }
}

/* Boîtes de compétences */
.competence-box {
    background: #222;
    border: 2px solid #44d;
    border-radius: 12px;
    box-shadow: 0 4px 16px #111;
    margin: 32px 0;
    padding: 24px 18px;
}
.competence-box h2 {
    color: #88f;
    margin-top: 0;
    font-size: 1.3rem;
    text-align: center;
}
.competence-box h3 {
    color: #44d;
    margin-bottom: 8px;
    font-size: 1.1rem;
}
.competence-box ul {
    margin-bottom: 18px;
    margin-top: 0;
    padding-left: 24px;
}

/* Retro contact form styling */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: linear-gradient(180deg,#222,#2a2a2a);
    border: 4px solid #44d;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 8px 0 #111;
}

.contact-form label {
    font-size: 0.9rem;
    color: #88f;
    margin-bottom: 4px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    background: #111;
    color: #fff;
    border: 2px solid #44d;
    padding: 12px;
    border-radius: 6px;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.9rem;
    box-shadow: inset 0 -4px 0 rgba(0,0,0,0.6);
    resize: vertical;
    outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #667;
    opacity: 0.9;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #88f;
    box-shadow: 0 4px 0 #111, 0 0 8px rgba(136,136,255,0.12);
}

.contact-form button[type="submit"] {
    background: #44d;
    color: #fff;
    padding: 12px 18px;
    border: 0;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 4px 4px 0 #111;
    transition: transform 0.06s ease, box-shadow 0.06s ease;
    font-family: 'Press Start 2P', cursive; /* use same retro font */
    letter-spacing: 1px;
    text-transform: none;
}

.contact-form button[type="submit"]:active {
    transform: translateY(3px);
    box-shadow: 1px 1px 0 #111;
}

.contact-form #form-status {
    font-size: 0.85rem;
    margin-top: 6px;
}

@media (max-width: 600px) {
    .contact-form {
        padding: 12px;
        gap: 8px;
    }
    .contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea {
        padding: 10px;
        font-size: 0.8rem;
    }
    .contact-form button[type="submit"] {
        padding: 10px;
        font-size: 0.85rem;
    }
}