:root {
    --bg-primary: #1e1e2d;
    --bg-secondary: #2a2a3a;
    --text-primary: #f8f9fa;
    --text-secondary: #adb5bd;
    --accent: #7289da;
    --accent-hover: #677bc4;
    --card-bg: #191925;
    --success: #43b581;
    --danger: #f04747;
}

[data-theme="light"] {
    --bg-primary: #f8f9fa;
    --bg-secondary: #e9ecef;
    --text-primary: #212529;
    --text-secondary: #495057;
    --card-bg: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

a {
    color: var(--accent)
}

a:hover {
    color: var(--accent-hover)
}

.container {
    max-width: 90vw;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

h1 {
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: var(--bg-secondary);
    border: none;
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-section {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.authenticated {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.api-key-section {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.api-key-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

#api-key {
    flex-grow: 1;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.75rem;
    border-radius: 4px;
    word-break: break-all;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

#api-key span {
    filter: blur(3px);
    transition: all .2s;
}

#api-key span:hover {
    filter: blur(0);
}

.btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn:hover {
    background: var(--accent-hover);
}

.btn-danger {
    background: var(--danger);
}

.discord-login {
    background: #7289da;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s;
}

.discord-login:hover {
    background: #677bc4;
}

.api-docs {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
}

.endpoint {
    background: var(--card-bg);
    padding: 1rem;
    border-left: 4px solid var(--accent);
    margin: 1rem 0;
    border-radius: 0 4px 4px 0;
}

.progress-container {
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    margin: 0.5rem 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--success);
    width: 0%;
    transition: width 0.3s;
}

.usage-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .api-key-box {
        flex-direction: column;
    }

    #api-key {
        width: 100%;
    }
}

/* Ajoutez ces styles à la fin de votre fichier CSS */

.api-nav {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.api-nav h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-link {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s;
}

.nav-link:hover {
    background: var(--accent);
}

.section-title {
    background: var(--bg-primary);
    padding: 0.5rem 1rem;
    border-radius: 0 8px 8px 0;
    margin: 2rem 0 1rem 0;
    border-left: 4px solid var(--accent);
}

.section-title h3 {
    margin: 0;
}

.response {
    background: rgba(0, 0, 0, 0.1);
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
    overflow-x: auto;
    border: 1px solid var(--accent);
}

.response pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-link {
        width: 100%;
        text-align: center;
    }
}

.twitch-color {
    border-color: #a970ff
}

.youtube-color {
    border-color: #fa1010
}

.hunt-color {
    border-color: #6dff50
}

.dbd-color {
    border-color: #c5c5c5
}

.destiny-color {
    border-color: #34e4fc
}

.d-none {
    display: none
}

.endpoint-url {
    display: flex;
    align-items: center;
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
}

.method {
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    margin-right: 0.5rem;
    font-weight: bold;
    color: rgb(0, 0, 0);
}

.method.get {
    background-color: #66d831;
}

.url {
    color: #333;
    white-space: nowrap;
    word-spacing: -0.5em;
}

.path {
    color: #3e8acc;
}

.query {
    color: #6b6b6b;
}

.param {
    color: #f37726;
    font-weight: bold;
}

/* Alternance des couleurs pour les paramètres */
.param:nth-child(odd) {
    color: #f37726;
    /* orange */
}

.param:nth-child(even) {
    color: #49cc90;
    /* vert */
}

code.boxed {
    background: #00000066;
    padding: 0.1em 0.5em;
    border-radius: 3px;
    border: 1px solid #ffffff0f;
}

code.example {
    background: #00000066;
    padding: 0.1em 0.5em;
    border-radius: 3px;
    border: 1px solid #ffffff0f;
    color: #ff0048;
}