/* style1.css - CSS COMPLET MODIFIÉ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Orbitron', 'Rajdhani', 'Arial', sans-serif;
    background: #0a0e27;
    color: #fff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Fond spatial */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at top, #1b2735 0%, #090a0f 100%),
        radial-gradient(circle at 20% 80%, rgba(41, 128, 185, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(142, 68, 173, 0.2) 0%, transparent 50%);
    z-index: -3;
}

/* Étoiles */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 60px 70px, #fff, transparent),
        radial-gradient(1px 1px at 50px 50px, #ddd, transparent),
        radial-gradient(1px 1px at 130px 80px, #fff, transparent),
        radial-gradient(2px 2px at 90px 10px, #eee, transparent);
    background-size: 200px 200px;
    animation: stars 60s linear infinite;
    z-index: -2;
    opacity: 0.7;
}

@keyframes stars {
    from { transform: translateY(0); }
    to { transform: translateY(-200px); }
}

/* Nébuleuse */
.nebula {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 40%, rgba(138, 43, 226, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(0, 191, 255, 0.15) 0%, transparent 50%);
    animation: nebula-drift 30s ease-in-out infinite;
    z-index: -1;
}

@keyframes nebula-drift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(20px, 20px) rotate(5deg); }
}

/* Container principal */
.container {
    text-align: center;
    z-index: 10;
    padding: 40px;
    background: rgba(15, 20, 40, 0.85);
    border-radius: 20px;
    border: 2px solid rgba(100, 200, 255, 0.3);
    box-shadow: 
        0 0 60px rgba(0, 150, 255, 0.4),
        inset 0 0 30px rgba(0, 100, 200, 0.1);
    backdrop-filter: blur(10px);
    animation: float 8s ease-in-out infinite;
    max-width: 1200px;
    width: 95%;
    margin: 20px;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

/* Titres */
h1 {
    font-size: 3.5em;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(102, 126, 234, 0.6);
    letter-spacing: 3px;
    animation: title-glow 3s ease-in-out infinite;
}

h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

h3 {
    font-size: 1.5em;
    color: #64b5f6;
    margin-bottom: 10px;
}

@keyframes title-glow {
    0%, 100% { filter: brightness(1); text-shadow: 0 0 40px rgba(102, 126, 234, 0.6); }
    50% { filter: brightness(1.3); text-shadow: 0 0 60px rgba(102, 126, 234, 0.9); }
}

.subtitle {
    font-size: 1.3em;
    color: #64b5f6;
    margin-bottom: 30px;
    letter-spacing: 2px;
    opacity: 0.9;
}

/* Boutons principaux */
button[type="submit"] {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5em;
    font-weight: bold;
    padding: 20px 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: 3px solid #8b5cf6;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 25px rgba(102, 126, 234, 0.5),
        0 10px 30px rgba(0, 0, 0, 0.3);
    margin: 10px;
}

button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

button[type="submit"]:hover::before {
    left: 100%;
}

button[type="submit"]:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 0 50px rgba(102, 126, 234, 0.8),
        0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: #a78bfa;
}

button[type="submit"]:active {
    transform: translateY(-2px) scale(1.02);
}

/* Features box */
.features {
    background: rgba(30, 40, 70, 0.6);
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
    text-align: left;
    border: 1px solid rgba(100, 200, 255, 0.2);
}

.features ul {
    list-style: none;
    padding-left: 0;
}

.features li {
    margin: 15px 0;
    font-size: 1.1em;
    padding-left: 40px;
    position: relative;
}

.features li::before {
    content: '✨';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.3em;
}

/* Message */
.message {
    padding: 15px 25px;
    background: rgba(255, 152, 0, 0.2);
    border: 2px solid rgba(255, 152, 0, 0.5);
    border-radius: 12px;
    margin-bottom: 25px;
    color: #ffb74d;
    font-size: 1.1em;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Player stats */
.player-stats {
    background: rgba(20, 30, 60, 0.6);
    border-radius: 12px;
    padding: 20px;
    border: 2px solid rgba(100, 150, 255, 0.3);
    transition: all 0.3s;
}

.player-stats:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Info text */
.info-text {
    margin-top: 25px;
    font-size: 0.95em;
    color: #90caf9;
    opacity: 0.8;
}

/* ============================================ */
/* STYLES POUR choisir_joueur.php */
/* ============================================ */

.player-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 40px 0;
}

.player-card {
    background: rgba(20, 30, 60, 0.7);
    border: 2px solid rgba(100, 150, 255, 0.4);
    border-radius: 18px;
    padding: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    animation: slideIn 0.5s ease-out;
}

.player-card:nth-child(1) {
    animation-delay: 0.1s;
    border-color: rgba(33, 150, 243, 0.5);
}

.player-card:nth-child(2) {
    animation-delay: 0.2s;
    border-color: rgba(233, 30, 99, 0.5);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.player-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.player-card:nth-child(1):hover {
    border-color: #2196f3;
    box-shadow: 0 0 40px rgba(33, 150, 243, 0.6);
}

.player-card:nth-child(2):hover {
    border-color: #e91e63;
    box-shadow: 0 0 40px rgba(233, 30, 99, 0.6);
}

.player-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 35px;
    text-decoration: none;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.player-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.player-link:hover::before {
    left: 100%;
}

.player-info {
    flex: 1;
    text-align: left;
}

.player-name {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.player-id {
    font-size: 1em;
    color: #90caf9;
    opacity: 0.9;
    font-family: 'Rajdhani', sans-serif;
}

.player-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    border: 3px solid currentColor;
    box-shadow: 0 0 30px currentColor;
}

.player-card:nth-child(1) .player-icon {
    background: radial-gradient(circle, rgba(33, 150, 243, 0.3) 0%, transparent 70%);
    color: #2196f3;
}

.player-card:nth-child(2) .player-icon {
    background: radial-gradient(circle, rgba(233, 30, 99, 0.3) 0%, transparent 70%);
    color: #e91e63;
}

.info-box {
    background: rgba(41, 128, 185, 0.2);
    border: 2px solid rgba(41, 128, 185, 0.5);
    border-radius: 15px;
    padding: 25px;
    margin-top: 40px;
    font-size: 1.1em;
    line-height: 1.7;
    color: #90caf9;
    animation: pulse 3s ease-in-out infinite;
}

.back-button {
    display: inline-block;
    padding: 18px 45px;
    font-size: 1.2em;
    background: rgba(255, 255, 255, 0.15);
    color: #fff !important;
    border: 3px solid rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    transition: all 0.4s ease;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}

.back-button:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(255, 255, 255, 0.25);
    border-color: #fff;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.6);
}

/* ============================================ */
/* ANIMATIONS SPÉCIALES */
/* ============================================ */

@keyframes explosionEffect {
    0% { transform: scale(0); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.8; }
    100% { transform: scale(2.5); opacity: 0; }
}

@keyframes gravityWave {
    0% { transform: scale(0.5); opacity: 0.8; }
    100% { transform: scale(2); opacity: 0; }
}

@keyframes minePlacementAnim {
    0% { transform: scale(0); opacity: 0; }
    70% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(1); opacity: 0.7; }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 25px 15px;
        margin: 10px;
    }
    
    h1 {
        font-size: 2.2em;
    }
    
    h2 {
        font-size: 1.8em;
    }
    
    button[type="submit"] {
        font-size: 1.1em;
        padding: 15px 30px;
        margin: 8px;
    }
    
    .player-link {
        flex-direction: column;
        gap: 20px;
        padding: 25px;
    }
    
    .player-info {
        text-align: center;
    }
    
    .player-name {
        font-size: 1.4em;
    }
    
    .player-icon {
        width: 70px;
        height: 70px;
        font-size: 2.5em;
    }
    
    td {
        width: 50px;
        height: 50px;
        font-size: 25px;
    }
    
    .control-btn {
        padding: 12px 20px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8em;
    }
    
    .container {
        padding: 20px 10px;
    }
    
    .player-stats {
        min-width: 100%;
        margin-bottom: 15px;
    }
    
    td {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}