/* Variables de couleur futuristes */
:root {
    --primary-color: #7289DA;
    --primary-dark: #5b6eae;
    --neon-blue: #00f3ff;
    --neon-pink: #ff00ff;
    --dark-bg: #0a0e17;
    --dark-card: #131a2b;
    --text-light: #ffffff;
    --text-muted: #8a93a8;
    --success-color: #43B581;
    --danger-color: #F04747;
    --warning-color: #FAA61A;
    --gradient-1: linear-gradient(45deg, #00f3ff, #ff00ff);
    --gradient-2: linear-gradient(45deg, #ff00ff, #00f3ff);
}

/* Animations */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 243, 255, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(0, 243, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 243, 255, 0); }
}

@keyframes neon {
    0%, 100% { text-shadow: 0 0 10px var(--neon-blue), 0 0 20px var(--neon-blue), 0 0 20px var(--neon-pink); }
    50% { text-shadow: 0 0 5px var(--neon-blue), 0 0 10px var(--neon-pink), 0 0 15px var(--neon-pink); }
}

/* Styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Orbitron', 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background: var(--dark-bg);
    background: linear-gradient(-45deg, #0a0e17, #131a2b, #1a1f3a, #2a1f3a);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* En-tête */
header {
    background: rgba(10, 14, 23, 0.8);
    backdrop-filter: blur(10px);
    color: var(--text-light);
    padding: 3rem 0;
    text-align: center;
    padding: 4rem 0 6rem;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 2rem;
    text-align: left;
}

.header-text {
    flex: 1;
    padding-right: 2rem;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: neon 3s ease-in-out infinite;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.2;
}

header .discord-logo {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(114, 137, 218, 0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

header .discord-logo:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 0 40px rgba(114, 137, 218, 0.5);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* Cartes */
.card {
    background: rgba(19, 26, 43, 0.8);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-1);
    animation: gradientBG 3s ease infinite;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

h2 {
    color: var(--neon-blue);
    margin-bottom: 2rem;
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-1);
    border-radius: 3px;
}

h3 {
    color: var(--text-light);
    margin: 2rem 0 1.5rem;
    font-size: 1.5rem;
    position: relative;
    display: inline-block;
}

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-1);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin: 0.5rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0, 243, 255, 0.3);
}

/* Styles pour la section support */
#support .btn-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

#support .btn {
    flex: 1 1 auto;
    min-width: 200px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

#support .btn i {
    margin-right: 8px;
}

#support .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(114, 137, 218, 0.4);
}

#support .btn.btn-discord {
    background: #7289DA;
}

#support .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-2);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn:hover::before {
    opacity: 1;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 243, 255, 0.4);
}

.btn:active {
    transform: translateY(1px);
}

/* Discord Button */
.discord-btn {
    background: #7289DA;
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    margin: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(114, 137, 218, 0.3);
    animation: pulse 2s infinite;
}

.discord-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(114, 137, 218, 0.5);
    animation: none;
}

.discord-btn img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

/* Section Discord */
.discord-section {
    text-align: center;
    padding: 3rem 0;
    background: rgba(114, 137, 218, 0.1);
    border-radius: 15px;
    margin: 3rem 0;
    border: 1px solid rgba(114, 137, 218, 0.2);
}

.discord-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    animation: float 3s ease-in-out infinite;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-shadow: 0 0 20px rgba(114, 137, 218, 0.3);
    transition: all 0.3s ease;
}

.discord-logo:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 30px rgba(114, 137, 218, 0.5);
}

.discord-section h3 {
    color: #7289DA;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Caractéristiques */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.feature:hover::before {
    opacity: 0.1;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.feature h3 {
    color: var(--text-light);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.feature p {
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

/* Commandes */
.command {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    font-family: 'Roboto Mono', monospace;
    margin: 0.8rem 0;
    display: block;
    color: var(--neon-blue);
    border-left: 3px solid var(--neon-blue);
    transition: all 0.3s ease;
}

.command:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

/* Niveaux de difficulté */
.difficulty {
    display: flex;
    gap: 2rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.difficulty-item {
    flex: 1;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.difficulty-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-1);
    animation: gradientBG 3s ease infinite;
}

.difficulty-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.difficulty-item h4 {
    color: var(--neon-blue);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.difficulty-item p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.difficulty-item p strong {
    color: var(--text-light);
}

/* Pied de page */
footer {
    text-align: center;
    padding: 1rem 0;
    margin-top: 0;
    background: rgba(10, 14, 23, 0.8);
    position: relative;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-credits {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    opacity: 0.8;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-1);
    animation: gradientBG 3s ease infinite;
}

/* Animation des éléments au défilement */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .header-text {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    header .discord-logo {
        margin: 0 auto 2rem;
    }
    
    header h1 {
        font-size: 2.8rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .difficulty {
        flex-direction: column;
    }
    
    .difficulty-item {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .features {
        grid-template-columns: 1fr;
    }
    
    header h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .card {
        padding: 1.5rem;
    }
}

/* Section de vote */
.vote-section {
    background: rgba(10, 14, 23, 0.9);
    padding: 2rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.vote-section .section-title {
    color: var(--neon-blue);
    font-size: 2.2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.vote-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-1);
    border-radius: 3px;
}

.vote-section .section-subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.vote-container {
    max-width: 500px;
    margin: 0 auto;
    background: rgba(19, 26, 43, 0.8);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.vote-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-1);
    animation: gradientBG 3s ease infinite;
}

.vote-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.vote-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.vote-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0.2;
    z-index: -1;
    transition: all 0.3s ease;
}

.vote-btn i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.vote-btn.upvote {
    background: rgba(67, 181, 129, 0.1);
    border: 2px solid var(--success-color);
}

.vote-btn.downvote {
    background: rgba(240, 71, 71, 0.1);
    border: 2px solid var(--danger-color);
}

.vote-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.vote-btn.upvote:hover {
    background: rgba(67, 181, 129, 0.2);
}

.vote-btn.downvote:hover {
    background: rgba(240, 71, 71, 0.2);
}

/* Styles pour les boutons actifs */
.vote-btn.upvote.active {
    background: rgba(67, 181, 129, 0.3);
    box-shadow: 0 0 15px rgba(67, 181, 129, 0.5);
    border-color: #43b581;
}

.vote-btn.downvote.active {
    background: rgba(240, 71, 71, 0.3);
    box-shadow: 0 0 15px rgba(240, 71, 71, 0.5);
    border-color: #f04747;
}

.vote-btn.active i {
    transform: scale(1.2);
    transition: all 0.3s ease;
}

.vote-btn.active:hover {
    transform: translateY(-5px) scale(1.05) !important;
}

.vote-btn:active {
    transform: translateY(0) scale(0.95);
}

.vote-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.vote-message {
    color: var(--neon-blue);
    font-size: 1.1rem;
    margin-top: 1rem;
    display: none;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Effets de particules */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    animation: float 15s infinite linear;
}

/* Effet de curseur personnalisé */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 243, 255, 0.3);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: width 0.3s, height 0.3s, background 0.3s;
}

.custom-cursor.active {
    width: 50px;
    height: 50px;
    background: rgba(0, 243, 255, 0.1);
}

/* Effet de survol sur les liens */
a {
    position: relative;
    color: var(--neon-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-blue);
    transition: width 0.3s ease;
}

a:hover {
    color: var(--neon-pink);
}

a:hover::after {
    width: 100%;
    background: var(--neon-pink);
}
