/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 50%, #000000 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: #e0e0e0;
    overflow-x: hidden;
}

/* Effet de texture Minecraft */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(128, 128, 128, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(64, 64, 64, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(96, 96, 96, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Container principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Titre principal */
.main-title {
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 3px 3px 0px #000000;
    color: #e0e0e0;
    text-transform: uppercase;
    letter-spacing: 3px;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 3px 3px 0px #000000, 0 0 10px #e0e0e0;
    }
    to {
        text-shadow: 3px 3px 0px #000000, 0 0 20px #e0e0e0, 0 0 30px #e0e0e0;
    }
}

/* Grille des personnages */
.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1000px;
    margin-top: 2rem;
}

/* Carte de personnage */
.character-card {
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border: 3px solid #4a4a4a;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
}

.character-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
    opacity: 0;
}

.character-card:hover::before {
    animation: shine 0.6s ease-in-out;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
        opacity: 0;
    }
}

.character-card:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: #6a6a6a;
    box-shadow: 0 15px 30px rgba(106, 106, 106, 0.4);
}

.character-card:active {
    transform: translateY(-5px) scale(1.02);
}

/* Image du personnage */
.character-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid #4a4a4a;
    margin: 0 auto 15px;
    display: block;
    transition: all 0.3s ease;
    object-fit: contain;
    background: linear-gradient(45deg, #2a2a2a, #1a1a1a);
}

.character-card:hover .character-image {
    transform: scale(1.1);
    border-color: #6a6a6a;
    box-shadow: 0 0 20px rgba(106, 106, 106, 0.6);
}

/* Nom du personnage */
.character-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e0e0e0;
    margin-bottom: 10px;
    text-shadow: 2px 2px 0px #000000;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Description */
.character-description {
    font-size: 0.9rem;
    color: #b0b0b0;
    line-height: 1.4;
}

/* Page de candidature */
.candidate-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.candidate-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #e0e0e0;
    margin-bottom: 2rem;
    text-shadow: 3px 3px 0px #000000;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.candidate-description {
    font-size: 1.2rem;
    color: #b0b0b0;
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Bouton de candidature */
.candidate-button {
    display: inline-block;
    background: linear-gradient(145deg, #666666, #444444);
    color: white;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    border: 3px solid #4a4a4a;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
}

.candidate-button:hover {
    background: linear-gradient(145deg, #777777, #555555);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(106, 106, 106, 0.4);
}

.candidate-button:active {
    transform: translateY(-1px);
}

/* Bouton de retour */
.back-button {
    display: inline-block;
    background: linear-gradient(145deg, #666666, #444444);
    color: white;
    padding: 10px 25px;
    font-size: 1rem;
    text-decoration: none;
    border: 2px solid #666666;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.back-button:hover {
    background: linear-gradient(145deg, #777777, #555555);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .characters-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 1rem;
    }
    
    .character-card {
        padding: 15px;
    }
    
    .character-image {
        width: 120px;
        height: 120px;
    }
    
    .character-name {
        font-size: 1.2rem;
    }
    
    .candidate-title {
        font-size: 2rem;
    }
    
    .candidate-description {
        font-size: 1rem;
    }
    
    .candidate-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .main-title {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    
    .character-image {
        width: 100px;
        height: 100px;
    }
    
    .character-name {
        font-size: 1rem;
    }
    
    .candidate-title {
        font-size: 1.5rem;
    }
}

/* Carte de groupe séparée */
.group-card {
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border: 4px solid #9C27B0;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
    max-width: 400px;
    margin: 0 auto;
}

.group-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(156, 39, 176, 0.2), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
    opacity: 0;
}

.group-card:hover::before {
    animation: shine 0.6s ease-in-out;
}

.group-card:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: #BA68C8;
    box-shadow: 0 20px 40px rgba(156, 39, 176, 0.4);
}

.group-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid #9C27B0;
    margin: 0 auto 20px;
    display: block;
    transition: all 0.3s ease;
    object-fit: contain;
}

.group-card:hover .group-image {
    transform: scale(1.1);
    border-color: #BA68C8;
    box-shadow: 0 0 25px rgba(156, 39, 176, 0.6);
}

.group-name {
    font-size: 1.8rem;
    font-weight: bold;
    color: #9C27B0;
    margin-bottom: 15px;
    text-shadow: 2px 2px 0px #000000;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.group-description {
    font-size: 1.1rem;
    color: #b0b0b0;
    line-height: 1.5;
}

/* Animation d'entrée */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.character-card {
    animation: fadeInUp 0.6s ease-out;
}

.character-card:nth-child(1) { animation-delay: 0.1s; }
.character-card:nth-child(2) { animation-delay: 0.2s; }
.character-card:nth-child(3) { animation-delay: 0.3s; }

.group-card {
    animation: fadeInUp 0.8s ease-out;
    animation-delay: 0.5s;
}
