/* Import des polices */
@font-face {
    font-family: 'ChineseRocks';
    src: url('../font/chinese-rocks-rg.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Outfit';
    src: url('../font/Outfit-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Outfit';
    src: url('../font/Outfit-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Outfit';
    src: url('../font/Outfit-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../font/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* Reset et variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --neon-green: #00ff88;
    --dark-bg: #0a0a0a;
    --dark-card: #151515;
    --text-white: #ffffff;
    --border-color: #2a2a2a;
}

html {
    background-color: var(--dark-bg);
    background-image: url('../image/base_background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: transparent;
    color: var(--text-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

/* Animations de transition de page */
body.fade-out {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

body.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* =========
   Ancienne navbar / layout
   (laissez pour les autres pages)
   ========= */
.navbar {
    background-color: transparent;
    border-bottom: 2px solid var(--border-color);
    padding: 0;
    position: relative;
    top: 0;
    z-index: 1000;
    height: 120px;
    margin: 0;
}

.navbar-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
}

.login-section {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    display: flex;
    align-items: center;
}

.login-section .user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-login {
    background-color: var(--neon-green);
    color: var(--dark-bg);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 10px rgba(0, 255, 136, 0.3),
        0 0 20px rgba(0, 255, 136, 0.2);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 0 15px rgba(0, 255, 136, 0.5),
        0 0 30px rgba(0, 255, 136, 0.3);
}

.btn-logout {
    background-color: transparent;
    color: var(--text-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}

.btn-logout:hover {
    background-color: var(--dark-card);
    border-color: var(--neon-green);
}

.logo {
    position: absolute;
    left: 2rem;
}

.logo-img {
    width: 200px;
    height: 100px;
    object-fit: contain;
    display: block;
}

.nav-links {
    position: relative;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-white);
    text-decoration: none;
    font-family: 'ChineseRocks', sans-serif;
    font-weight: normal;
    font-size: 25px;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: var(--dark-card);
}

.nav-link.active {
    color: var(--text-white);
}

.nav-icon {
    width: 25px;
    height: 25px;
    object-fit: contain;
}

.user-section {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 1001;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #000000;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-white);
}

.user-role {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 0.875rem;
    color: #999;
}

/* Style spécial pour le rôle Administrateur */
.user-role:contains("Administrateur"),
.user-role[data-role="Administrateur"] {
    color: var(--neon-green);
    font-weight: 600;
}

/* Alternative avec JavaScript pour le style Administrateur */
.user-role.admin-role {
    color: var(--neon-green);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.cart-icon {
    width: 25px;
    height: 25px;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-icon:hover {
    transform: scale(1.1);
}

.cart-icon img {
    width: 25px;
    height: 25px;
    object-fit: contain;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 1rem 2rem 3rem 2rem;
    display: flex;
    align-items: center;
    min-height: calc(100vh - 120px);
}

.content-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    width: 100%;
}

.section-title {
    font-family: 'ChineseRocks', sans-serif;
    font-weight: normal;
    font-size: 2.5rem;
    color: var(--text-white);
    margin-bottom: 0.25rem;
    letter-spacing: 1px;
}

/* Left Column */
.left-column {
    display: flex;
    flex-direction: column;
}

.text-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.text-content p {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-white);
}

.text-content strong {
    font-weight: 600;
    color: var(--neon-white);
}

/* Right Column */
.right-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.server-box {
    background-color: var(--dark-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.server-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.server-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 2rem;
    color: var(--text-white);
}

.server-players {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 1.25rem;
    color: var(--text-white);
}

.server-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    color: var(--text-white);
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--neon-green);
    box-shadow: 
        0 0 10px var(--neon-green),
        0 0 20px var(--neon-green);
    animation: pulse 2s infinite;
}

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

.join-button {
    background-color: var(--neon-green);
    color: var(--dark-bg);
    border: none;
    border-radius: 8px;
    padding: 1rem 2rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 10px rgba(0, 255, 136, 0.3),
        0 0 20px rgba(0, 255, 136, 0.2);
}

.join-button:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 0 15px rgba(0, 255, 136, 0.5),
        0 0 30px rgba(0, 255, 136, 0.3);
}

.join-button:active {
    transform: translateY(0);
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

.social-link {
    width: 75px;
    height: 75px;
    background-color: var(--dark-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-link:hover {
    background-color: var(--border-color);
    transform: translateY(-3px);
}

.social-link img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

/* Footer */
.footer {
    background-color: var(--dark-bg);
    border-top: 1px solid var(--border-color);
    padding: 2rem;
    text-align: center;
}

.footer p {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 0.875rem;
    color: var(--text-white);
}

/* =========
   ACCUEIL : FULLSCREEN HOME
   ========= */

.home-screen {
    min-height: 100vh;
    padding: 0;
}

.home-layout {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    overflow: hidden;
}

/* Barre latérale gauche */
.home-sidebar {
    width: 96px; /* un peu plus large que 59.64 pour le padding */
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.sidebar-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.sidebar-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.sidebar-card {
    width: 59.64px;
    height: 59.64px;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.10);
    border: 1.07px solid rgba(255, 255, 255, 0.09);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0.5;
    transition: opacity 0.2s ease;
    position: relative;
    margin: 0 auto;
    transform: translateX(-4px); /* décalage de 14px vers la droite comme sur le Figma */
}

.sidebar-card-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

/* Pour les cartes du bas (panier et user), le inner doit être circulaire */
.sidebar-card-bottom .sidebar-card-inner {
    border-radius: 50%;
    overflow: hidden;
}

/* Label flottant à droite des icônes (Jūden, Accueil, Boutique, etc.) */
.sidebar-label {
    position: absolute;
    left: 76px;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px 22px;
    background: #000000;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.14em;
    color: #FFFFFF;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.sidebar-card:hover .sidebar-label {
    opacity: 1;
    transform: translate(4px, -50%);
}

/* Carte principale Jūden */
.sidebar-card-main {
    background-color: rgba(0, 0, 0, 0.30);
}

.sidebar-icon-main {
    width: 24px;
    height: 41px;
    object-fit: contain;
}

/* Icônes de navigation */
.sidebar-card-nav {
    background-color: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.09);
}

.sidebar-card-nav.active {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
}

.sidebar-card img {
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.sidebar-card:hover,
.sidebar-card.active {
    opacity: 1;
}

.sidebar-card:hover img,
.sidebar-card.active img {
    opacity: 1;
}

/* Icône Jūden + cercles panier / user toujours à 100% d'opacité */
.sidebar-card-main,
.sidebar-card-main img,
.sidebar-card-bottom,
.sidebar-card-bottom img {
    opacity: 1;
}

.sidebar-icon-nav {
    object-fit: contain;
    max-width: 28px;
    max-height: 28px;
}

.sidebar-icon-signalement {
    width: 30px;
    height: 31px;
    object-fit: contain;
}

/* Séparateur vertical entre J et les icônes */
.sidebar-separator {
    width: 43px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.09);
    border-radius: 999px;
    margin: 4px auto;
    transform: translateX(-4px); /* même décalage que les icônes pour l'alignement */
}

/* Icônes panier / user en bas */
.sidebar-card-bottom {
    background-color: rgba(0, 0, 0, 0.30);
    border-color: rgba(255, 255, 255, 0.09);
    border-width: 1.07px;
    border-style: solid;
    border-radius: 50%;
}

.sidebar-icon-bottom {
    object-fit: contain;
}

.sidebar-icon-cart {
    width: 22.56px;
    height: 23.44px;
}

.sidebar-icon-user {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* Avatar Steam dans la sidebar - circulaire et remplissant le cercle */
.sidebar-profile-avatar.steam-avatar {
    border-radius: 50%;
    object-fit: cover;
    width: 59.64px;
    height: 59.64px;
}

/* Badge du panier dans la sidebar */
.sidebar-card-bottom {
    position: relative;
}

.sidebar-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #0486FB;
    color: #FFFFFF;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 11px;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    z-index: 10;
}

/* Zone principale (fond déjà défini sur html) */
.home-main {
    position: relative;
    flex: 1;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px 40px;
}

/* Titre ACCUEIL en haut gauche */
.home-header-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: 0.18em;
    font-size: 22px;
    color: #FFFFFF;
}

/* Colonne réseaux à droite */
.home-social-column {
    position: absolute;
    top: 50%;
    right: 32px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.social-pill {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.30);
    border: 1px solid rgba(255, 255, 255, 0.09);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.social-pill img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Bouton "Rejoindre l'aventure" en bas droite */
.home-cta-wrapper {
    position: absolute;
    right: 40px;
    bottom: 40px;
}

.home-cta-button {
    width: 317px;
    height: 62px;
    border-radius: 12px;
    border: none;
    background: #0486FB;
    color: #FFFFFF;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.08em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

.home-cta-button::after {
    content: '➜';
    font-size: 16px;
}

.home-cta-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 28px rgba(0, 0, 0, 0.8);
}

.home-cta-button:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .content-container {
        grid-template-columns: 1fr;
    }
    
    .navbar-container {
        flex-wrap: wrap;
    }
    
    .nav-links {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .logo h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .nav-link {
        font-size: 0.875rem;
        padding: 0.4rem 0.8rem;
    }
}

