/* Font custom */
@font-face {
  font-family: "Minecraft Ten";
  src: url("./assets/Minecraft Ten.ttf") format("truetype");
}

/* == Style principal == */
* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', Courier, monospace;
    background-color: #111210;
    color: white;
}

.content {
    text-align: center;
    padding-top: 75px;
    padding-left: 7%;
    padding-right: 7%;
    padding-bottom: 56px;
}

.title {
    font-family: monospace;
}

#bio-box {
    padding-top: 2%;
    cursor: pointer;
}

/* == Barre de navigation == */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.94);
    border-bottom: 1px solid #252525;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    z-index: 3000;
    backdrop-filter: blur(8px);
}

.nav-container {
    width: 100%;
    min-height: 64px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.brand {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    color: white;
    text-decoration: none;
}

.brand:hover {
    color: white;
}

.logo {
    width: 44px;
    height: 44px;
    display: block;
    object-fit: contain;
    border-radius: 9px;
    transition: transform 0.2s ease;
}

.brand:hover .logo {
    transform: scale(1.06);
}

.brand-name {
    font-family: "Minecraft Ten", "Courier New", monospace;
    font-size: 18px;
    white-space: nowrap;
}

.nav-menu {
    flex: 1;
    min-width: 0;
    list-style: none;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 4px;
}

.nav-item {
    position: relative;
}

.nav-link {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 16px;
    color: white;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
    color: #49e600;
    border-bottom-color: #49e600;
    background: rgba(55, 173, 0, 0.06);
}

.arrow {
    font-size: 9px;
    transition: transform 0.2s ease;
}

.dropdown.is-open > .nav-link .arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 1px);
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    width: max-content;
    min-width: 210px;
    max-width: 320px;
    list-style: none;
    padding: 7px;
    background: #080808;
    border: 1px solid #292929;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.dropdown.is-open > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 10px 13px;
    color: white;
    text-decoration: none;
    border-radius: 7px;
    line-height: 1.3;
}

.dropdown-menu a:hover {
    color: #49e600;
    background: #151515;
}

.support-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    color: white;
    text-decoration: none;
    border: 1px solid #303030;
    border-radius: 9px;
    background: #101010;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    margin-left: auto;
}

.support-link:hover {
    color: #ff6a26;
    border-color: #ff5a16;
    transform: translateY(-1px);
}

.kofi {
    width: 24px;
    height: 24px;
    display: block;
    object-fit: contain;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    border: 1px solid #303030;
    border-radius: 8px;
    background: #101010;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: white;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* == Barre de licence en bas de page == */
.license-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    color: #cccccc;
    text-align: center;
    padding: 8px 12px;
    font-size: 14px;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.5);
    z-index: 2000;
}

.license-bar a {
    color: #309700;
    text-decoration: none;
    margin-left: 6px;
}

.license-bar a:hover {
    text-decoration: underline;
}

.ligne {
    height: 1.4px;
    background: #2168009d;
    width: 100%;
    max-width: 1500px;
    margin: 30px auto 15px auto;
}

.section-title,
.project-title {
    font-family: "Minecraft Ten", sans-serif;
    font-size: 25px;
    margin: 30px auto 15px auto;
}

.section-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

/* == Cartes (Projets & Support) == */
.project-card,
.minestrator-card,
.kofi-card {
    display: flex;
    align-items: center;
    width: 550px;
    max-width: 100%;
    min-height: 100px;
    height: auto;
    padding: 12px 0;

    background: #1e1e1e;
    border-radius: 15px;
    text-decoration: none;
    color: white;

    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-img {
    width: 70px;
    height: 70px;
    border-radius: 5px;
    margin-left: 20px;
    object-fit: cover;
    flex-shrink: 0;
}

.section-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    margin-left: 20px;
    gap: 5px;
    margin-right: 25px;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.minestrator-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px #009B72;
}

.kofi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px #FF5A16;
}

/* == Responsive == */
@media (max-width: 1050px) {
    .nav-container {
        min-height: 58px;
        padding: 0 20px;
        gap: 10px;
    }

    .brand-name {
        font-size: 16px;
    }

    .logo {
        width: 40px;
        height: 40px;
    }

    .nav-toggle {
        display: block;
        order: 3;
    }

    .support-link {
        order: 2;
        margin-left: auto;
        padding: 8px;
        gap: 0;
    }

    .support-link span {
        display: none;
    }

    .nav-menu {
        order: 4;
        position: absolute;
        top: 100%;
        left: 3%;
        right: 3%;
        display: none;
        flex-direction: column;
        gap: 0;
        padding: 8px;
        background: #080808;
        border: 1px solid #292929;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 12px 25px rgba(0, 0, 0, 0.45);
    }

    .nav-menu.is-open {
        display: flex;
    }

    .nav-link {
        min-height: 48px;
        justify-content: flex-start;
        padding: 0 14px;
        font-size: 15px;
        border-bottom: 1px solid #202020;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        max-width: none;
        min-width: 0;
        padding: 4px 0 6px 12px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        display: none;
        background: transparent;
    }

    .dropdown-menu li + li {
        margin-top: 4px;
    }

    .dropdown:hover > .dropdown-menu {
        display: none;
    }

    .dropdown.is-open > .dropdown-menu {
        display: block;
        transform: none;
    }

    .dropdown-menu a {
        padding: 8px 13px;
        font-size: 14px;
        color: #d0d0d0;
        border-radius: 5px;
    }
}

@media (max-width: 500px) {
    .brand-name {
        display: none;
    }

    .nav-container {
        padding: 0 14px;
    }

    .nav-link {
        font-size: 14px;
    }

    .dropdown-menu a {
        font-size: 13px;
    }

    .project-card,
    .minestrator-card,
    .kofi-card {
        min-height: 90px;
        height: auto;
        padding: 10px 0;
    }

    .card-img {
        width: 60px;
        height: 60px;
        margin-left: 14px;
        flex-shrink: 0;
    }

    .section-text {
        margin-left: 14px;
        margin-right: 14px;
    }
}