/* --- VARIABLES GLOBALES --- */
:root {
    --bg-dark: #0a0a0c;
    --card-bg: rgba(20, 20, 25, 0.8);
    --accent-blue: #00a8ff;
    --accent-red: #ff4d4d;
    --text-white: #ffffff;
    --text-dim: #a0a0a0;
    --discord-blurple: #5865F2;
}

/* --- RESET & BASE --- */
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.9)), url('background.webp');
    background-size: cover;
    background-attachment: fixed;
    color: var(--text-white);
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

#body-container {
    width: 95%;
    max-width: 800px;
    padding: 50px 0;
}

h1 { 
    text-align: center; 
    font-size: 2.5rem; 
    margin-bottom: 40px; 
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- BOUTONS DU MENU (INDEX) --- */
#body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#body a {
    text-decoration: none; /* Enlève le soulignement bleu */
    color: inherit;
    display: block;
    width: 100%;
}

.menu-btn {
    all: unset; /* Supprime le style gris par défaut des boutons */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    text-align: center;
}

.menu-btn:hover {
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.btn-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--text-white);
    margin-bottom: 5px;
    display: block;
}

.btn-desc {
    font-size: 0.9rem;
    color: var(--accent-blue);
    opacity: 0.8;
    display: block;
}

/* --- BOUTON DISCORD --- */
#discord {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: rgba(88, 101, 242, 0.1);
    border: 1px solid rgba(88, 101, 242, 0.3);
    padding: 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

#discord:hover {
    background: var(--discord-blurple);
    border-color: var(--discord-blurple);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(88, 101, 242, 0.4);
}

#discord svg {
    width: 30px;
    height: 30px;
    fill: white;
}

#discord .text {
    font-weight: bold;
    font-size: 1.1rem;
    color: white;
}

/* --- MODALE (ATTENTION & DOWNLOADS) --- */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: #111;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--accent-red);
    width: 100%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 0 40px rgba(255, 77, 77, 0.2);
}

.modal-title {
    color: var(--accent-red);
    margin-top: 0;
    font-size: 1.8rem;
}

.modal-text {
    color: var(--text-white);
    margin: 20px 0;
    line-height: 1.5;
}

.modal-subtext {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-bottom: 30px;
}

/* --- BOUTONS DE LA MODALE --- */
.modal-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.btn-ok, .btn-cancel {
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: 0.2s;
    border: none;
}

.btn-ok {
    background: var(--accent-red);
    color: white;
}

.btn-ok:hover {
    background: #ff3333;
    transform: scale(1.05);
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* --- LIEN RETOUR --- */
.back-link {
    display: block;
    text-align: center;
    margin-top: 30px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
}

.back-link:hover {
    color: var(--text-white);
}