* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fa;
    color: #2d3436;
    display: flex;
    min-height: 100vh;
    line-height: 1.6;
}

.top-right-buttons {
    position: fixed;
    top: 1em;
    right: 1em;
    display: flex;
    gap: 0.5em;
    z-index: 1000;
}

.top-right-buttons a {
    padding: 0.55em 1.2em;
    border-radius: 8px;
    font-weight: 600;
    color: white;
    text-decoration: none;
    font-size: 0.95em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    transition: all 0.25s ease;
}

.top-right-buttons a.invite {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.top-right-buttons a.invite:hover {
    background: linear-gradient(135deg, #27ae60, #1e874b);
    transform: translateY(-2px);
}

.top-right-buttons a.logout {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.top-right-buttons a.logout:hover {
    background: linear-gradient(135deg, #c0392b, #992d22);
    transform: translateY(-2px);
}

#sidebar {
    width: 280px;
    background-color: #1e2a38;
    color: #ecf0f1;
    padding: 2em 1.5em;
    border-radius: 0 0 0 12px;
    display: flex;
    flex-direction: column;
    gap: 1.5em;
    box-shadow: 3px 0 8px rgba(0, 0, 0, 0.05);
}

#sidebar h2 {
    font-size: 1.4em;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5em;
    margin-bottom: 1em;
}

ul.guild-list {
    list-style: none;
    overflow-y: auto;
    flex-grow: 1;
    padding-right: 4px;
}

ul.guild-list li {
    background: #2c3e50;
    margin-bottom: 0.5em;
    padding: 0.65em 1em;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
}

ul.guild-list li:hover,
ul.guild-list li.selected {
    background-color: #3498db;
    color: #fff;
}

#main {
    flex-grow: 1;
    padding: 2.5em 3em;
    background: white;
    border-radius: 0 0 12px 0;
    display: flex;
    flex-direction: column;
    gap: 1.5em;
    box-shadow: inset 0 0 0 transparent;
}

#main h1 {
    font-size: 2em;
    color: #2c3e50;
}

#main p {
    color: #666;
}

#guild-info {
    background: #f0f4f8;
    padding: 1.5em;
    border-radius: 10px;
    border: 1px solid #dde3ec;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
    font-size: 1em;
    color: #333;
    min-height: 120px;
}

footer {
    text-align: center;
    padding: 5px;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(245, 245, 245, 0.8);
    /* corrigé */
    color: #000000;
    font-size: 14px;
  }

/* Scrollbar */
ul.guild-list::-webkit-scrollbar {
    width: 6px;
}
ul.guild-list::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 3px;
}

/* Responsive */
@media (max-width: 800px) {
    body {
        flex-direction: column;
    }

    #sidebar {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        padding: 1em;
        border-radius: 0;
    }

    ul.guild-list {
        display: flex;
        gap: 1em;
    }

    ul.guild-list li {
        flex-shrink: 0;
        border-radius: 5px;
        padding: 0.4em 0.8em;
    }

    #main {
        padding: 1.5em;
        border-radius: 0;
    }
}