   html {
        scroll-behavior: smooth;
    }

    body {
        margin: 0;
        color: #fa25cb;
        font-family: "Orbitron", sans-serif;
        background-color: black;
    }

    .container {
        scroll-snap-type: y mandatory;
        overflow-y: scroll;
        height: 100vh;
    }

    section {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100vh;
        scroll-snap-align: start;
        text-align: center;
        padding: 0 20px;
        opacity: 0.2;
        transition: opacity 0.6s ease-in-out;
    }

    section.active-section {
        opacity: 1;
    }

    section::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.6);
        z-index: 1;
    }

    .content-block, nav, .discord-button {
        z-index: 2;
        position: relative;
    }

    h1 {
        width: 620px;
        height: 150px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-family: "Orbitron", sans-serif;
        font-size: 3rem;
        text-transform: uppercase;
        color: #00ffff;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        background-image: url('title.png');
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
    }

    p {
        font-size: 1.2rem;
        max-width: 600px;
        line-height: 1.6;
        border: 30px solid transparent;
        border-image-source: url('purple.png');
        border-image-slice: 40 fill;
        border-image-repeat: stretch;
        color: #ff2f97;
    }

    #home, #about, #recruit, #contact {
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    #home { background-image: url('homepage.png'); }
    #about { background-image: url('Who we are.png'); }
    #recruit { background-image: url('Recruit.png'); }
    #contact {
        background-image: url('Social.png');
        padding-bottom: 5vh;
        box-sizing: border-box;
    }

    nav {
        position: fixed;
        top: 10px;
        right: 20px;
    }

    nav a {
        display: block;
        color: #00ffff;
        text-decoration: none;
        margin: 5px;
        transition: all 0.3s ease;
        font-family: "Orbitron", sans-serif;
        border: 20px solid transparent;
        border-image-source: url('menu.png');
        border-image-slice: 30 fill;
        border-image-repeat: stretch;
    }

    nav a:hover {
        color: white;
        transform: scale(1.05);
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    }

    .discord-button {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        padding: 0;
        color: #00ffff;
        text-decoration: none;
        font-family: "Orbitron", sans-serif;
        background-image: url('join.png');
        background-size: 100% 100%;
        background-position: center;
        background-repeat: no-repeat;
        transition: all 0.3s ease;
        width: 180px;
        height: 55px;
    }

    .discord-button:hover {
        transform: scale(1.05);
        color: white;
    }

    .fade-in {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }

    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .social-links {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 100px;
        margin-top: auto;
        z-index: 2;
        position: relative;
    }

    .deploy-button {
        position: relative;
        display: block;
        width: 64px;
        height: 64px;
    }

    .button-asset,
    .social-icon-hidden {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        transition: all 0.4s ease-in-out;
        max-width: 100%;
    }

    .social-icon-hidden {
        color: #00ffff;
        font-size: 32px;
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    
    .button-asset {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    
    .deploy-button:hover .social-icon-hidden {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    .deploy-button:hover .button-asset {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }

    .contact-content-wrapper {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .deploy-widget {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 80px;
        height: 80px;
        z-index: 1000;
        cursor: pointer;
    }

    .widget-asset {
        width: 100%;
        height: 100%;
    }

    .widget-asset,
    .widget-frame-wrapper {
    position: absolute;
    bottom: 0;
    right: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    }

    .widget-frame-wrapper {
        opacity: 0;
        transform: scale(0.5) translateY(20px);
        pointer-events: none; 
    }
    
    .widget-asset {
        opacity: 1;
        transform: scale(1);
    }

    .deploy-widget:hover .widget-frame-wrapper {
        opacity: 1;
        transform: scale(1) translateY(0);
        pointer-events: auto;
    }
    
    .deploy-widget:hover .widget-asset {
        opacity: 0;
        transform: scale(0.5);
    }

.twitch-responsive-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 pour la vidéo */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin-top: 30px;
}
.twitch-responsive-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.body-tv {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('carbonite-tv.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.body-market {
    background-color: #0c0c1e;
    background-image: url('your-market-background.png');
    background-size: cover;
    background-attachment: fixed;
    color: #a9a9c9;
}

.market-container {
    display: flex;
    gap: 20px;
    padding-top: 85px;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
    align-items: flex-start;

}

.market-filters {
    flex-basis: 280px;
    flex-shrink: 0;
    border: 40px solid transparent; 
    border-image-source: url('panel-frame.png');
    border-image-slice: 50 fill;
    border-image-repeat: stretch;
    padding: 20px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.market-filters h2 {
    font-family: 'Orbitron', sans-serif;
    color: #00ffff;
    margin-top: 0;
    text-align: center;
}
.filter-group {
    margin-bottom: 20px;
}
.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}
.filter-group input, .filter-group select, .search-button {
    width: 100%;
    padding: 8px;
    border-radius: 3px;
    border: 1px solid #4a4a8a;
    background-color: #0c0c1e;
    color: #a9a9c9;
    font-family: 'Lato', sans-serif;
}
.search-button {
    background-color: #00ffff;
    color: #0c0c1e;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

.market-listings {
    flex-grow: 1;
    margin-top: 180px; 
}

.market-listings {
    flex-grow: 1;

}

.market-listings h1 {
    text-align: center; 
    margin-top: -50px; 
    margin-bottom: 40px; 
    font-family: "Orbitron", sans-serif;
    font-size: 3rem; 
    text-transform: uppercase;
    color: white;
}

table {
    width: 100%;
    border-collapse: collapse;
    position: relative;
    background-color: transparent;
}

table::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: -25px;
    bottom: -10px;
    left: -330px;
    right: -50px;
    background-image: url('listing-bg.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px;
}

th, td {
    padding: 20px 35px;
    text-align: left;
    border-bottom: none;
    vertical-align: middle;
}

tbody .item-row {
    background-image: url('row-asset.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    transition: all 0.2s ease-in-out;
}

tbody tr:hover {
    transform: scale(1.02);
    filter: brightness(1.2);
    cursor: pointer;
}

.price {
    color: #FFD700;
    font-weight: bold;
    text-align: right;
}

.price::after {
    content: '';
    display: inline-block;
    background-image: url('credit-icon.png');
    background-size: contain;
    background-repeat: no-repeat;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    vertical-align: middle;
}

.pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* --- PAGINATION (VERSION CORRIGÉE AVEC BACKGROUND-IMAGE) --- */

.pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.pagination a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 160px;
    height: 50px;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: none;
    color: #a9a9c9;
    text-decoration: none;
    font-family: "Orbitron", sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pagination .pagination-prev {
    background-image: url('votre-asset-previous.png');
}

.pagination .pagination-next {
    background-image: url('votre-asset-next.png');
}

.pagination a:hover {
    color: white;
    filter: brightness(1.2);
    transform: scale(1.05);
}

.toggle-container {
    margin-bottom: -50px;
    border-bottom: 1px solid #4a4a8a;
    padding-bottom: -50x;
}

.sell-form {
    text-align: center;
    margin-top: 65px;
}

.sell-title {
    margin-top: -65px;
}


.sell-button-submit {
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    color: #00ffff;
    background-image: url('votre-asset-list-item.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    border: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 200px;
    height: 60px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.sell-button-submit:hover {
    color: white;
    filter: brightness(1.2);
}
.form-group {
    margin-bottom: 15px; /* Espace entre chaque champ du formulaire */
}

/* Le titre de chaque champ */
.form-group label {
    display: block; /* Force le titre à prendre toute la largeur et à passer sur sa propre ligne */
    margin-bottom: 8px; /* Espace entre le titre et le champ en dessous */
    font-size: 14px;
    text-align: left; /* On aligne le titre à gauche pour un look plus classique */
}

.filter-group input, 
.filter-group select, 
.form-group input {
    width: 100%;
    padding: 10px;
    border-radius: 3px;
    border: 1px solid #4a4a8a;
    background-color: #0c0c1e;
    color: #a9a9c9;
    font-family: 'Lato', sans-serif;
    box-sizing: border-box;
}

#view-toggle-btn {
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    font-weight: bold;
    color: #00ffff; /* Couleur du texte (cyan) */
    
    /* On enlève les anciens styles de fond et bordure */
    background-color: transparent;
    border: 25px solid transparent; /* Taille de la bordure (à ajuster) */
    
    /* On applique votre asset */
    border-image-source: url('votre-bouton-asset.png'); /* <<< METTEZ LE NOM DE VOTRE FICHIER ICI */
    border-image-slice: 30 fill; /* <<< AJUSTEZ CETTE VALEUR */
    border-image-repeat: stretch;
    
    /* Autres styles */
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
}

#view-toggle-btn:hover {
    /* Effet de survol subtil pour les images */
    transform: scale(1.02); /* Léger zoom */
    filter: brightness(1.2); /* Augmente la luminosité de l'asset */
    color: white;
}

.tab-pane {
    display: none;
}


.tab-pane.active {
    display: block;
}

@media (max-width: 768px) {
    /* Styles pour la page d'accueil sur mobile */
    .home-section h1 {
        width: 90%;
        font-size: 2rem;
        height: auto;
        min-height: 100px;
    }
    .home-section p {
        max-width: 90%;
        font-size: 1rem;
        border-width: 20px;
    }
    nav {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
    nav a {
        width: 180px;
    }
    
    /* Styles pour la page Market sur mobile */
    .market-container {
        flex-direction: column;
        padding: 80px 15px 15px 15px;
    }
    .market-filters {
        flex-basis: auto; /* La largeur s'adapte */
    }
    th, td {
        padding: 8px;
        font-size: 14px;
    }
    .market-listings h1 {
        font-size: 2rem;
    }

    .deploy-button {
        width: 50px;
        height: 50px;
    }

    .social-icon-hidden {
        font-size: 24px;
    }

    .deploy-widget { /* On utilise la classe du widget deployable */
        display: none; /* On cache le widget Discord sur mobile */
    }
}