/* RESET */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* LIENS */
a {
    color: #ff0008;
    text-decoration: none;
}

a:hover {
    color: #720006;
}

/* HEADER */
#mpktr-header {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.95);
    padding: 10px 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.header-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* LOGO */
.header-left {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 30px;
}

/* NAV PC */
.header-center {
    text-align: center;
}

.nav-links {
    display: inline-flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 999px;
    transition: background 0.25s, color 0.25s;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.nav-links a.active {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

/* HEADER RIGHT */
.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

/* SOCIAL ICONS */
.socials,
.mobile-socials {
    display: flex;
    gap: 15px;
    align-items: center;
}

.socials .icon,
.mobile-socials .icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    background: transparent;
    transition: 0.25s;
}

.socials .icon svg,
.mobile-socials .icon svg {
    width: 22px;
    height: 22px;
    fill: white;
}

.socials .icon:hover,
.mobile-socials .icon:hover {
    background: rgba(255, 255, 255, 0.13);
}

/* ACCOUNT */
.account-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    background: transparent;
    transition: 0.25s;
    color: white;
}

.account-btn svg {
    width: 22px;
    height: 22px;
    fill: white;
}

.account-btn:hover {
    background: rgba(255, 255, 255, 0.13);
}

/* MODAL */
.account-modal {
    display: none;
    position: absolute;
    top: 50px;
    padding: 15px;
    width: 100%;
    max-width: 1200px;
    z-index: 1000;
}

.account-modal.open {
    display: block;
}

.modal-content {
    background: #141414;
    color: white;
    padding: 30px;
    border-radius: 20px;
    width: 250px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transform: scale(0.8);
    opacity: 0;
    transition: 0.25s ease;
    margin-left: auto;
}

.account-modal.open .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-content a {
    color: white;
    text-decoration: none;
    padding: 10px;
    border-radius: 12px;
    transition: 0.2s;
}

.modal-content a:hover {
    background: rgba(255, 90, 95, 0.2);
}

.modal-content .modal-btn {
    background: #1f1f1f;
    padding: 12px 15px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s;
}

.modal-content .modal-btn:hover {
    background: #7e7e7e;
}

/* BURGER MENU */
#burger {
    display: none;
}

.burger-label {
    position: absolute;
    top: 50%;
    right: 20px;
    width: 20px;
    height: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1005;
    transform: translateY(-50%);
}

.burger-label span {
    display: block;
    height: 2px;
    width: 100%;
    background: white;
    border-radius: 2px;
    transition: 0.4s;
}

#burger:checked+.burger-label span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

#burger:checked+.burger-label span:nth-child(2) {
    opacity: 0;
}

#burger:checked+.burger-label span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* NAV MOBILE */
.nav-links-mobile {
    display: flex;
    /* Flex au lieu de block */
    flex-direction: column;
    /* Colonnes */
    justify-content: center;
    /* Centre verticalement */
    align-items: center;
    /* Centre horizontalement */
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.97);
    padding-top: 0;
    /* plus besoin du padding pour le top */
    padding-left: 0;
    padding-right: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 998;
}

#burger:checked~.nav-links-mobile {
    transform: translateX(0);
}

.nav-links-mobile ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* un peu plus d’espace entre les liens */
    align-items: center;
    /* centre les liens horizontalement */
}

.nav-links-mobile li a {
    color: white;
    font-size: 22px;
    /* un peu plus gros pour mobile */
    font-weight: 600;
    display: block;
    width: auto;
    /* ne prend plus toute la largeur */
    text-align: center;
}

.mobile-socials {
    margin-top: 30px;
    /* espace entre liens et icônes */
    gap: 20px;
}

/* RESPONSIVE */
@media(max-width:800px) {
    #mpktr-header {
        padding: 10px 25px;
    }

    .burger-label {
        right: 15px;
    }

    .header-container {
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
    }

    .header-center,
    .header-right {
        display: none !important;
    }

    .logo img {
        max-height: 35px !important;
    }
}

@media(min-width:801px) {
    .burger-label {
        display: none;
    }
}