/* Body & Pages */

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #252525;
    color: #fff;
    overflow-x: hidden;
    max-width: 2550px;
    height: 100%;
            --s: 75px;

            --tree-color: #d86c6c;
            --ornament-color: #ff0000;
            --snowflake-color: #ffffff;
            --background-color: #222;

            --_c: var(--tree-color), var(--background-color) 2deg 79deg,
                var(--background-color) 81deg;

            --g0: conic-gradient(from 140deg at 50% 87.5%, var(--_c));
            --g1: conic-gradient(from 140deg at 50% 81.25%, var(--_c));
            --g2: conic-gradient(from 140deg at 50% 75%, var(--_c));

            --g3: conic-gradient(at 10% 20%, #0000 75%, var(--snowflake-color) 0);
            --g4: repeating-conic-gradient(
                from 45deg,
                var(--ornament-color) 0 25%,
                #fff 0 50%
            );

            background:
            var(--g0) 0 calc(var(--s) / -4),
            var(--g0) var(--s) calc(3 * var(--s) / 4),
            var(--g1),
            var(--g1) var(--s) var(--s),
            var(--g2) 0 calc(var(--s) / 4),
            var(--g2) var(--s) calc(5 * var(--s) / 4),
            var(--g3) calc(var(--s) / -10) var(--s),
            var(--g3) calc(9 * var(--s) / 10) calc(2 * var(--s)),
            var(--g4) calc(var(--s) / 2) var(--s);

        background-size: calc(2 * var(--s)) calc(2 * var(--s));
        background-position: center center;
        background-repeat: repeat;
}

.a {
    text-decoration: none;
}

@media (max-width: 340px) {
    body {
        display: none;
    }
}

/*Loader*/

.loader {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid rgb(255,255,255,.2);
    border-top-color: transparent;
    animation: rot1 1.2s linear infinite;
  }
  
  @keyframes rot1 {
    to {
      transform: rotate(360deg);
    }
  }

/* Header & logo */

.french-banner {
    width: 800px;
    user-select: none;
}

@media (max-width: 768px) {
    .french-banner{
        width: 300px;
    } 
}

/* Tags */

.tags-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    position: relative;
}

.tag {
    display: flex; 
    align-items: center;
    gap: 5px; 
    background-color: #979797;
    color: #1f1f1f;
    font-weight: bolder;
    border-radius: 8px;
    padding: 10px 15px;
    margin: 0;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
}

.tag img {
    width: 16px; 
    height: 16px;
    object-fit: contain;
}

.tags {
    max-width: 250px; 
    overflow: hidden;
}

.more-tags-container {
    position: relative;
}

.more-tags-btn {
    align-items: center;
    gap: 5px;
    background-color: #5B54C2;
    color: #cecece;
    font-weight: bolder;
    border-radius: 8px;
    padding: 14px;
    cursor: pointer;
    border: none;
    white-space: nowrap;
    font-size: 19px;
}

.more-tags-btn img {
    width: 16px; 
    height: 16px;
    object-fit: contain;
}

.more-tags-dropdown {
    position: absolute;
    z-index: 3;
    top: 100%;
    right: 0px;
    background-color: #333;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    width: 220px;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    margin-top: 5px;
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    flex-direction: column;
}

.more-tags-dropdown.hidden {
    display: none;
}

.more-tags-dropdown .tag {
    background-color: #979797;
    color: #1f1f1f;
    font-weight: bolder;
    user-select: none;
}

.more-tags-dropdown .tag:hover {
    background-color: #616161;
    color: #1f1f1f;
    font-weight: bolder;
}

.more-tags-dropdown::-webkit-scrollbar {
    width: 8px;
    background-color: #2c2c2c;
    border-radius: 8px;
}

.more-tags-dropdown::-webkit-scrollbar-thumb {
    background-color: #5b54c2;
    border-radius: 8px;
    border: 2px solid #2c2c2c;
}

.more-tags-dropdown::-webkit-scrollbar-thumb:hover {
    background-color: #453f9e;
}

.more-tags-dropdown::-webkit-scrollbar-track {
    background-color: #1f1f1f;
    border-radius: 8px;
}

.more-tags-dropdown {
    scrollbar-width: thin;
    scrollbar-color: #5b54c2 #2c2c2c;
}

/* Serveur Container */

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


/*Sorting server*/
.sorting-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0; 
    background-color: #333; 
    border-radius: 8px; 
    padding: 10px; 
    width: 25%; 
    height: 35px;
    margin: 0 auto; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); 
    gap:4px;
    min-width: min-content;
    margin-top: 34px;
}

.sorting-option {
    display:inline-flex;
    flex: 1;
    text-align: center;
    padding: 10px 15px;
    cursor: pointer;
    border: none;
    background-color: transparent;
    color: #696969;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.4s ease;
    border-radius: 6px; 
    align-items: center;
    justify-content: space-evenly;
    user-select: none;
}

.sorting-option:hover {
    background-color: #444; 
    color: #fff; 
}

.sorting-option.active {
    background-color: #797979; 
    color: #333; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); 
    font-weight: bold; 
}

.sorting-container img {
    display: flex;
    height: 17px;
    width: 17px;
    margin:2px
}

.server-inf br {
    user-select: none;
}

.fade-out {
    opacity: 0.5; 
    transition: opacity 0.5s ease-in-out;
}
.fade-out:hover {
    opacity: 1;
}
.view-more {
    display: block;
    text-align: center;
    margin-top: 20px;
    font-size: 18px;
    color: #65ace9;
    text-decoration: none;
    font-weight: bold;
}
.view-more:hover {
    text-decoration: underline;
}

/*Responsaive*/
@media (max-width: 768px) {

    #search-bar {
        width: 85%;
        margin: 10px 0;
        padding: 12px;
        font-size: 14px;
    }

    .tags-container {
        width: 45%; 
        display: flex;
        flex-wrap: wrap; 
        gap: 10px;
        justify-content: center; 
    }

    .tag {
        flex: 0; 
        font-size: 12px;
        text-align: center;
        padding: 8px;
        background-color: #979797;
        color: #1f1f1f;
        border-radius: 8px;
    }

    .more-tags-container {
        width: min-content;
    }

    .more-tags-btn { 
        gap: 0px;
        font-size: 0px;
        padding:16px;
        margin:1px;
    }
    .more-tags-dropdown {
        z-index: 99;
    }
}

/* Section de découverte */
.discovery-header {
    text-align: center;
    margin: 30px auto;
    color: white;
    padding: 10px;
}

.discovery-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px; 
}

.discord-logo {
    width: 70px; 
    user-select: none;
}

.discovery-title {
    text-align: center;
    font-size: 48px;
    font-weight: bold;
    user-select: none;
}

.search-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    width: 90%;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .discord-logo {
        display: none;
    }

    .search-section {
        flex-direction: row;
    }
}

#main-search-bar {
    padding: 13.5px;
    font-size: 18px;
    border-radius: 5px;
    border: 1px solid #444;
    width: 70%;
    background-color: #333;
    color: white;
    outline: none;
    transition: border 0.3s;
    max-width: 680px; 
}

#main-search-bar:focus {
    border: 1px solid #614caf;
}

/* Carrouseul pour les explains */

.carousel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 85%;
    min-height: 500px;
    margin: 20px auto;
    padding: 20px;
    padding-left: 50px;
    padding-right: 50px;
    background-color: #0000004d;
    border-radius: 10px;
}

.carousel-text {
    width: 40%;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 250px; /* Hauteur minimum fixée */
}

.carousel-text h1 {
    font-size: 2em;
    margin-bottom: 10px;
    min-height: 50px; /* Garde la place pour les titres longs */
    user-select: none;
}

.carousel-text p {
    font-size: 1.2em;
    color: #aaa;
    min-height: 200px;
    max-height: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.carousel-controls {
    display: flex;
    align-items: center;
    margin-top: 20px;
    user-select: none;
}

.carousel-controls button {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2em;
    cursor: pointer;
    padding: 10px;
}

.carousel-dots {
    display: flex;
    align-items: center;
    margin: 0 15px;
}

.dot {
    width: 12px;
    height: 12px;
    background: #555;
    border-radius: 50%;
    margin: 0 5px;
    transition: background 0.3s;
}

.dot.active {
    background: #2A3089;
}

.carousel-image {
    width: 60%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-image img {
    width: 100%;
    border-radius: 10px;
    max-height: 450px; 
    object-fit: cover; 
    user-select: none;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .carousel {
        flex-direction: column;
        text-align: center;
        width: auto;
    }

    .carousel-text {
        width: 100%;
        min-height: auto;
    }

    .carousel-image {
        width: 100%;
        margin-top: 20px;
    }
    
    .carousel-controls {
        justify-content: center;
    }
}

.btn-view-more {
    display: flex;
    justify-content: center;
    user-select: none;
}

.btn-view-more a {
    text-decoration: none;
    padding: 20px;
    font-size: 22px;
    font-weight: bold;
    background-color: #fff;
    color: #111;
    border-radius: 8px;
    box-shadow: 7px 5px 40px -14px #ffffff;
}

.btn-view-more a:hover {
    transform: scale(1.05);
    transition-duration: 0.2s;
    cursor: pointer;
}

/*Server*/

.server-inf {
    border: #a1a6e12e solid;
    position: relative;
    background-color: #151515;
    width: 350px;
    height: 400px;
    border-radius: 15px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    text-align: left;
    justify-content: space-between;
}

.badge-discord {
    height: 20px;
    width: 20px;
    position: absolute;
    z-index: 2;
    left: 8%;
    top: 7%;
    background-color: #111;
    padding: 2px;
    border-radius: 13px;
}

.server-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; 
    height: 150px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 11px;
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    mask-size: 100% 100%;
    mask-repeat: no-repeat;
    user-select: none;
}

.server-inf .header {
    display: flex;
    align-items: center;
    background-color: #151515d6;
    border-radius: 12px;
    margin-bottom: 2px;
    z-index: 1;
}

.server-inf .server-icon {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    margin: 15px;
    z-index: 1;
    user-select: none;
}

.server-inf .info {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.server-inf.premium {
    border: 0.5px solid rgb(199, 184, 99);
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.5);
}

.server-inf .premium-badge {
    width: 25px;
    height: 25px;
    vertical-align: middle;
    user-select: none;
}

.server-inf .official-badge {
    width: 30px;
    height: 30px;
    vertical-align: middle;
    filter: drop-shadow(0px 0px 4px #dfce71);
    user-select: none;
}

.server-inf .verified-badge {
    width: 30px;
    height: 30px;
    vertical-align: middle;
    filter: drop-shadow(0px 0px 4px #3a8540);
    user-select: none;
}

.server-inf .partner-badge {
    width: 30px;
    height: 30px;
    vertical-align: middle;
    filter: drop-shadow(0px 0px 4px #417bbe);
    user-select: none;
}

.server-group-icon {
    width: 20px; 
    height: 20px;
    border-radius: 5px;
    border: 1px solid #ffffff8c;
    background-color: #ffffff45;
    vertical-align: middle;
}

.server-inf h2 {
    display: flex;
    margin: 0;
    gap: 5px;
    font-size: 18px;
    z-index: 1;
    align-items: center;
}

.server-inf .members {
    font-size: 14px;
    font-style: italic;
    color: #dddddd;
    z-index: 1;
    margin:6px;
    margin-left:0px;
    user-select: none;
}

.server-inf .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
    margin-bottom: 8px;
    user-select: none;
}

.server-inf .tags .tag {
    background-color: #2f67ffc4;
    color: #111;
    border-radius: 5px;
    font-size: 12px;
    height: 20px;
    line-height: 20px;
    padding: 0 10px;
    white-space: nowrap;
    z-index: 1;
    user-select: none;
}

.server-inf .description {
    max-height: 240px;
    overflow-y: auto; 
    padding-right: 5px; 
    line-height: 1.5; 
    user-select: none;
}

#popup-description {
    white-space: pre-line;
}

/* Appliquer un style correct au Markdown */
.description.markdown {
    font-size: 16px;
    color: #ddd; /* Couleur du texte */
    line-height: 1.5;
}

.description.markdown p {
    margin-bottom: 8px;
}

.description.markdown strong {
    color: #fff;
}

.description.markdown a {
    color: #1d9bf0;
    text-decoration: none;
}

.description.markdown ul {
    padding-left: 20px;
}

.description.markdown code {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 3px 6px;
    border-radius: 5px;
    font-family: monospace;
}

.server-inf .description::-webkit-scrollbar {
    width: 6px; 
    border-radius: 4px; 
}

.server-inf .description::-webkit-scrollbar-thumb {
    background: #555; 
    border-radius: 4px; 
}

.server-inf .description::-webkit-scrollbar-thumb:hover {
    background: #777; 
    border-radius: 4px; 
}

.server-inf .description::-webkit-scrollbar-track {
    background: #222; 
    border-radius: 4px; 
}

.join-btn {
    background: #16752c; /*#428450*/
    text-align: center;
    width: 45%;
    color: white;
    padding: 10px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    margin-top: 10px;
    font-weight: bold;
}

.join-btn:hover {
    box-shadow: 7px 5px 56px -14px #1b7e32;
}

.server-actions {
    user-select: none;
}

.more-btn {
    background: #555;
    width: 45%;
    color: white;
    padding: 10px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    margin-top: 10px;
    font-weight: bold;
    border: none;
    font-size: 16px;
}

.more-btn:hover {
    background: #999;
}

@media (max-width: 580px) {

    .sorting-container {
        width: 75%;
    }

    .server-inf {
        min-width: 170px;
        max-width: 350px;
        width: 90%;
        height: 250px;
    }

    .server-inf .server-icon {
        width: 50px;
        height: 50px;
        margin: 10px;
    }

    .server-inf h2 {
        font-size: 14px;
    }

    .server-inf .members {
        font-size: 11px;
        font-style: italic;
        color: #dddddd;
        z-index: 1;
        margin: 2px;
        margin-left: 0px;
        user-select: none;
    }

    .server-inf .tags .tag {
        background-color: #2f67ffc4;
        color: #111;
        border-radius: 5px;
        font-size: 10px;
        height: 16px;
        line-height: 20px;
        padding: 0 7px;
        white-space: nowrap;
        z-index: 1;
        user-select: none;
    }

    .server-inf .official-badge {
        width: 20px;
        height: 20px;
    }

    .server-inf .premium-badge {
        width: 15px;
        height: 15px;
    }
    
    .server-inf .partner-badge {
        width: 20px;
        height: 20px;
    }

    .badge-discord {
        height: 13px;
        width: 13px;
        left: 9.5%;
        top: 9%;
    }

    .server-banner {
        height: 110px;
    }

    .description.markdown {
        font-size: 12px;
        color: #ddd;
        line-height: 1.5;
    }
}

@media (min-width:703px) {
    @media (max-width: 881px) {
        .sorting-container {
            width: 75%;
        }
    
        .server-inf {
            border: #a1a6e12e solid;
            position: relative;
            background-color: #151515;
            min-width: 190px;
            max-width: 280px;
            height: 300px;
            border-radius: 15px;
            padding: 15px;
            display: flex;
            flex-direction: column;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
            text-align: left;
            justify-content: space-between;
        }
    
        .server-inf .server-icon {
            width: 55px;
            height: 55px;
            border-radius: 10px;
            margin: 15px;
            z-index: 1;
            user-select: none;
        }
    
        .server-inf h2 {
            margin: 0;
            font-size: 14px;
            z-index: 1;
        }
    
        .server-inf .members {
            font-size: 11px;
            font-style: italic;
            color: #dddddd;
            z-index: 1;
            margin: 6px;
            margin-left: 0px;
            user-select: none;
        }
    
        .server-banner {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 120px;
            background-position: center;
            background-size: cover;
            background-repeat: no-repeat;
            border-radius: 11px;
            -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
            mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
            mask-size: 100% 100%;
            mask-repeat: no-repeat;
            user-select: none;
        }
    
        .server-inf .tags .tag {
            background-color: #2f67ffc4;
            color: #111;
            border-radius: 5px;
            font-size: 9px;
            height: 20px;
            line-height: 20px;
            padding: 0 10px;
            white-space: nowrap;
            z-index: 1;
            user-select: none;
        }
    
        .badge-discord {
            height: 15px;
            width: 15px;
            position: absolute;
            z-index: 2;
            left: 6%;
            top: 7%;
            background-color: #111;
            padding: 2px;
            border-radius: 13px;
        }
    
        .description.markdown {
            font-size: 12px;
            color: #ddd;
            line-height: 1.5;
        }
    
        .server-inf .description {
            max-height: 240px;
            overflow-y: auto;
            padding-right: 5px;
            line-height: 1.5;
            user-select: none;
        }
    
        .server-inf .official-badge {
            width: 20px;
            height: 20px;
        }
    
        .server-inf .premium-badge {
            width: 15px;
            height: 15px;
        }
        
        .server-inf .partner-badge {
            width: 20px;
            height: 20px;
        }
    }
}

.join-btn.large {
    display: block;
    width: 88%;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    background: #1b7e32;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
    position: absolute;
    bottom: 4%;
}

@media (max-width: 881px) {
    .more-btn {
        width: 45%;
    }

    .join-btn {
        width: 45%;
    }
}

/* BETA Message - Alert */

.mesalert {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #d69791;
    width: 80%;
    padding: 15px;
    border: solid 2px #e74c3c;
    border-radius: 10px;
    font-size: 16px;
}

.mesalert h4 {
    font-size:20px;
}

.mesalert h5 {
    font-size: 15px;
}


/* Pagination */

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 20px;
}

.pagination-btn {
    font-weight: 900;
    padding: 8px 12px;
    margin: 0 5px;
    background-color: transparent;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.pagination-btn:hover {
    background-color: #5b54c2;
}

.pagination-btn.active {
    background-color: #5b54c2;
    font-weight: bold;
    color: white;
}

.pagination-btn:disabled {
    background-color: #999;
    cursor: not-allowed;
}

/* Serveur Groupe */

.beta-button {
    background-color: #746dde;
    padding: 10px;
    border: solid 1px #574fdac9;
    border-radius: 6px;
}

.group-section {
    margin-top: 40px;
}

.group-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: center;
    margin-bottom: 10px;
    padding-left: 10%;
    max-width: 80%;
}

.group-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.grp-desc h4 {
    max-width: 80%;
    padding-left: 10%;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.note-container {
    position: relative;
    display: inline-block;
}

.note-container .tooltip {
    visibility: hidden;
    background-color: #00000036;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 5px;
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.note-container:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

.group-divider {
    display: flex;
    width: 65%;
    height: 2px;
    background: #444;
    border: none;
    margin-top: 10px;
    flex-direction: row;
    justify-content: flex-start;
}

.group-servers-container {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.group-servers-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    width: 100%;
    padding: 10px 0;
}

.group-servers {
    display: flex;
    gap: 15px;
    min-width: 100%;
    justify-content: center;
}

.scroll-btn {
    background-color: transparent;
    color: white;
    border: none;
    font-size: 32px;
    padding: 10px;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.scroll-btn.prev {
    left: 4%;
}

.scroll-btn.next {
    right: 4%;
}

.scroll-btn.prev:disabled {
    display: none;
}

.scroll-btn.next:disabled {
    display: none;
}

.scroll-btn:hover {
    background-color: transparent;
    font-size: 35px;
}

.group-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.server-inf2 {
    border: #a1a6e12e solid;
    position: relative;
    background-color: #151515;
    min-width: 300px;
    width: 20%;
    max-width: 450px;
    height: 300px;
    border-radius: 15px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    text-align: left;
    justify-content: space-between;
}

@media (max-width: 764px) {
    .group-divider {
        display: flex;
        width: 25%;
        height: 2px;
        background: #444;
        border: none;
        margin-top: 10px;
        flex-direction: row;
        justify-content: flex-start;
    }
}

@media (max-width: 450px) {
    .server-inf2 {
        background-color: #151515;
        width: 65%;
        min-width: 270px;
        max-width: 300px;
        height: 267px;
        border-radius: 10px;
        padding: 25px;
        display: flex;
        flex-direction: column;
        box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.5);
        text-align: left;
        display: inline-flex;
    }

}

.server-inf2 .header {
    display: flex;
    align-items: center;
    background-color: #151515d6;
    border-radius: 12px;
    margin-bottom: 2px;
    z-index: 1;
}

.server-inf2 .server-icon {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    margin: 15px;
    z-index: 1;
    user-select: none;
}

.server-inf2 .info {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.server-inf2.premium {
    border: 0.5px solid rgb(199, 184, 99);
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.5);
}

.server-inf2 .premium-badge {
    width: 25px;
    height: 25px;
    margin-left: 2px;
    vertical-align: middle;
    user-select: none;
}

.server-inf2 .official-badge {
    width: 30px;
    height: 30px;
    margin-left: 2px;
    vertical-align: middle;
    filter: drop-shadow(0px 0px 4px #dfce71);
    user-select: none;
}

.server-inf2 .verified-badge {
    width: 30px;
    height: 30px;
    margin-left: 2px;
    vertical-align: middle;
    filter: drop-shadow(0px 0px 4px #3a8540);
    user-select: none;
}

.server-inf2 .partner-badge {
    width: 30px;
    height: 30px;
    margin-left: 2px;
    vertical-align: middle;
    filter: drop-shadow(0px 0px 4px #417bbe);
    user-select: none;
}

.server-inf2 h2 {
    margin: 0;
    font-size: 18px;
    z-index: 1;
}

.server-inf2 .members {
    font-size: 14px;
    font-style: italic;
    color: #dddddd;
    z-index: 1;
    margin:6px;
    margin-left:0px;
    user-select: none;
}

.server-inf2 .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
    margin-bottom: 8px;
    user-select: none;
}

.server-inf2 .tags .tag {
    background-color: #2f67ffc4;
    color: #111;
    border-radius: 5px;
    font-size: 12px;
    height: 20px;
    line-height: 20px;
    padding: 0 10px;
    white-space: nowrap;
    z-index: 1;
    user-select: none;
}

.server-inf2 .description {
    max-height: 95px;
    overflow-y: auto; 
    padding-right: 5px; 
    line-height: 1.5; 
    user-select: none;
}

.server-inf2 .description p {
    margin: 0px;
}
.server-inf2 .description::-webkit-scrollbar {
    width: 6px; 
    border-radius: 4px; 
}

.server-inf2 .description::-webkit-scrollbar-thumb {
    background: #555; 
    border-radius: 4px; 
}

.server-inf2 .description::-webkit-scrollbar-thumb:hover {
    background: #777; 
    border-radius: 4px; 
}

.server-inf2 .description::-webkit-scrollbar-track {
    background: #222; 
    border-radius: 4px; 
}

/* Ils nous font confiance */

.trusted-servers-section {
    width: fit-content;
    text-align: center;
    margin: 50px auto;
    padding: 20px;
    background-color: #1f1f1f; /*#1e1e1e*/
    border-radius: 15px;
    max-width: 90%;
}

.trusted-servers-section h1 {
    margin: 0px;
    margin-bottom: 20px;
}

.trusted-servers-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.trusted-server-a {
    display: flex; /* ou block selon ton layout */
    flex-direction: row;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    background-color: #1e1e1e;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.2s;
    user-select: none;
}

.trusted-server-a:hover {
    background-color: #292929;
}

.trusted-server-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #fff;
}

.trusted-server-title {
    display: flex;
    flex-direction: row;
    gap: 5px;
    align-items: center;
    justify-content: center;
}

.trusted-server-name {
    color: #fff;
    user-select: all;
}

.server-card {
    background: #35353552;
    border: solid 1px #333;
    padding: 15px;
    border-radius: 8px;
    width: 235px;
    height: 85px;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.server-card:hover {
    transform: scale(1.05);
    background-color: #222;
}

.server-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

/* FAIRE LE TEXT DECORATION : NONE */

@media (min-width: 645px) {

    .server-name {
        display: flex;
        position: absolute;
        left: 35%;
        top: 20%;
        align-items: center;
        color: #fff;
        font-weight: bold;
        margin-top: 10px;
        font-size: 16px;
    }
    
    .server-members {
        margin-left: 5px;
        color: #b7b7b7;
        font-size: 14px;
        align-items: center;
    }
}

.badge-container {
    position: relative;
    display: inline-block;
}

.server-badge {
    width: 20px;
    height: 20px;
    margin-left: 5px;
    cursor: pointer;
}

@media (max-width:  644px) {
    .a {
        text-decoration: none;
    }

    .trusted-servers-section {
        max-width: 100%;
    }

    .server-card {
        background: #35353552;
        border: solid 1px #333;
        padding: 10px;
        border-radius: 8px;
        width: 40%;
        height: 120px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        position: relative;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        transition: transform 0.2s ease;
    }

    .server-members {
        display: flex;
        color: #b7b7b7;
        font-size: 14px;
        align-items: center;
        justify-content: center;
    }

    .server-icon {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        object-fit: cover;
    }

    .server-name {
        display: flex;
        align-items: center;
        color: #fff;
        font-weight: bold;
        margin-top: 10px;
        font-size: 12px;
    }
}

/* Tooltip */
.badge-container .tooltip {
    visibility: hidden;
    background-color: rgba(0, 0, 0, 0.897);
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 5px;
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.badge-container:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

.badge-container .tooltip-verif {
    visibility: hidden;
    background-color: rgba(0, 0, 0, 0.897);
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 5px;
    position: absolute;
    bottom: 55%;
    left: 210%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.badge-container:hover .tooltip-verif {
    visibility: visible;
    opacity: 1;
}

/* Users ( Discord ) */

.profile-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 5%;
    padding-right: 5%;
}

.profile-card {
    width: 480px;
    height: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    padding: 15px;
    display: flex;
    flex-direction: column;
    position: relative;
    color: #fff;
    background: linear-gradient(to bottom, #26314b, #282828 275px);
    border: solid #9592c591 3px;
    overflow: hidden;
}

.profile-banner {
    position: absolute;
    top: -6px;
    left: 0;
    width: 100%;
    height: 100px;
    background-size: cover;
    background-position: center;
    border-radius: 7px 7px 0 0;
    z-index: 0;
    opacity: 50%;
}

.profile-banner-overlay {
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, #263048 100px);
}

.profile-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    z-index: 2;
}

.profile-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    user-select: none;
}

.icon-with-banner {
    background-color: #1d1d1d;
    z-index: 2;
}

.profile-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.profile-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}

.profile-badges {
    display: flex;
    align-items: center;
    gap: 5px;
    user-select: none;
}

.badge-icon {
    width: 25px;
    height: 25px;
    vertical-align: middle;
    user-select: none;
}

.badge-icon-booster {
    height: 25px;
    vertical-align: middle;
    user-select: none;
}

.badge-verif {
    width: 22px;
    height: 22px;
    vertical-align: middle;
    user-select: none;
}

.verifiede-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: #333;
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 14px;
}

.verifiede-badge img {
    width: 21px;
    height: 21px;
    vertical-align: middle;
    user-select: none;
}

.profile-age {
    font-size: 14px;
    color: #aaa;
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 2px;
    user-select: none;
}

.profile-description {
    margin-top: 15px;
    font-size: 14px;
    line-height: 1.3;
    color: #ddd;
    text-align: left;
    max-height: 135px; 
    overflow-y: auto;
    padding-right: 5px;
    user-select: none;
}

.profile-description::-webkit-scrollbar {
    width: 6px; 
    border-radius: 4px; 
}

.profile-description::-webkit-scrollbar-thumb {
    background: #555; 
    border-radius: 4px; 
}

.profile-description::-webkit-scrollbar-thumb:hover {
    background: #777; 
    border-radius: 4px; 
}

.profile-description::-webkit-scrollbar-track {
    background: #222; 
    border-radius: 4px; 
}

.profile-links {
    position: absolute;
    bottom: 10px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-links img {
    width: 22px;
    height: 22px;
    cursor: pointer;
    transition: transform 0.2s ease;
    user-select: none;
}

.profile-links img:hover {
    transform: scale(1.1);
}

.profile-likes {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    color: #e74c3c;
    display: flex;
    align-items: center;
    user-select: none;
}

.profile-description h1 {
    font-size: 1.5em;
    margin-bottom: 0.5em;
}
.profile-description blockquote {
    font-style: italic;
    color: gray;
    border-left: 4px solid #ddd;
    padding-left: 1em;
    margin: 0.5em 0;
}
.profile-description code {
    background: #f4f4f4;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-family: monospace;
}
.profile-description pre {
    background: #f4f4f4;
    padding: 1em;
    border-radius: 4px;
    overflow-x: auto;
}
.profile-description ul {
    padding-left: 1.5em;
}
.profile-description a {
    color: #007bff;
    text-decoration: none;
}
.profile-description a:hover {
    text-decoration: underline;
}

.profile-buttons a {
    background: #bebebe0a;
    text-align: center;
    width: 30%;
    color: white;
    padding: 6px;
    text-decoration: none;
    border-radius: 9px;
    display: inline-block;
    position: absolute;
    bottom: 10px;
    font-weight: 600;
    border: none;
    font-size: 14px;
    user-select: none;
}

.profile-buttons a:hover {
    background: #bebebe49;
}

/* Badges infos */

.features-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding: 10px 7%;
    background-color: #1c1c1c;
    width: 86%;
}

.feature-box {
    width: 45%;
    padding: 30px;
    border-radius: 10px;
}

.feature-box h2 {
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    color: #e1e1e1;
    margin-bottom: 20px;
    font-weight: 800;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    user-select: none;
}

.feature-item h3 {
    font-size: 20px;
    color: #b7b7b7;
    margin: 0;
    font-weight: 800;
    user-select: none;
}

.feature-item p {
    font-size: 17px;
    color: #6d6d6d;
    margin: 5px 0;
    font-style: italic;
}

@media (max-width: 768px) {
    .features-container {
        flex-direction: column;
        align-items: center;
        padding: 20px 7%;
        gap: 20px;
    }

    .feature-box {
        width: 100%;
        padding: 20px;
        text-align: center;
    }

    .feature-box h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
    }

    .feature-item h3 {
        font-size: 18px;
    }

    .feature-item p {
        font-size: 16px;
    }
}

/* Tableau avantages */

.avantage-container {
    margin-top: 30px;
}

.advantages-table {
    display: flex;
    flex-direction: column;
    background: #1d1d1d;
    border-radius: 8px;
    overflow: hidden;
    width: 85%;
    max-width: 1500px;
    margin: auto;
    font-family: Arial, sans-serif;
    border: 3px solid #333;
  }
  
  .advantages-header,
  .advantages-row {
    display: grid;
    grid-template-columns: 1fr repeat(4, 1fr);
    padding: 15px;
    border-bottom: 1px solid #333;
    align-items: center;
  }
  
  .advantages-header {
    background-color: #2a2a2a;
    font-weight: bold;
  }
  
  .adv-label {
    text-align: left;
    padding-left: 10px;
    color: #fff;
  }
  
  .adv-badge,
  .adv-value {
    text-align: center;
    color: #fff;
  }
  
  .adv-badge img {
    height: 28px;
    margin-bottom: 4px;
  }
  
  .adv-text {
    font-size: 14px;
    color: #bbb;
  }

/* FAQ */
.faq-container {
    width: 80% ;
    margin: 50px auto;
    padding: 20px;
    background-color: #252525;
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    font-family: Arial, sans-serif;
}

.faq-title {
    text-align: center;
    font-size: 40px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
    user-select: none;
}

.faq-subtitle {
    text-align: center;
    font-size: 16px;
    color: #aaa;
    margin-bottom: 20px;
}

.faq-subtitle a {
    color: #5b54c2;
    text-decoration: none;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background-color: #353535;
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-icon {
    height: 25px;
    width: 25px;
}

.faq-item:hover {
    background-color: #444;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-question {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-answer {
    font-size: 15px;
    color: #aaa;
    margin-top: 10px;
    display: none;
    user-select: all;
}

.faq-answer a {
    color: #5b54c2;
    text-decoration: none;
}