/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

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

/* Animations de fond */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.floating-shape:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-shape:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.floating-shape:nth-child(3) {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Header moderne */
.header-modern {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-modern .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 2rem;
    color: #667eea;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.nav-modern {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link:hover {
    color: #667eea;
    transform: translateY(-2px);
}

/* Contenu principal */
.main-content {
    padding: 4rem 0;
}

/* Section héro pour la page d'accueil */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    color: #fff;
}

.title-highlight {
    display: block;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); }
    to { text-shadow: 2px 2px 20px rgba(255, 215, 0, 0.5); }
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Grille des fonctionnalités */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.feature-card i {
    font-size: 2rem;
    color: #ffd700;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Section de connexion */
.login-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.login-header h3 {
    font-size: 1.5rem;
    color: #333;
    font-weight: 600;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.input-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.btn-modern {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

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

.error-message {
    background: #fee;
    color: #c33;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #fcc;
}

/* Section comment jouer */
.how-to-play {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    margin-top: 4rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.how-to-play h3 {
    text-align: center;
    color: #fff;
    font-size: 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin: 0 auto 1rem;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.step h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.step p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

/* Section de bienvenue pour la page de choix */
.welcome-section {
    margin-bottom: 3rem;
}

.welcome-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-width: 600px;
    margin: 0 auto;
}

.user-avatar {
    margin-bottom: 1.5rem;
}

.user-avatar i {
    font-size: 4rem;
    color: #667eea;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.welcome-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.user-name {
    background: linear-gradient(45deg, #667eea, #764ba2);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.welcome-subtitle {
    font-size: 1.2rem;
    color: #666;
    font-weight: 400;
}

/* Section des modes pour la page de choix */
.modes-section {
    margin-bottom: 3rem;
}

.modes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.mode-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--mode-color), var(--mode-color-light));
}

.create-mode {
    --mode-color: #4CAF50;
    --mode-color-light: #81C784;
}

.join-mode {
    --mode-color: #2196F3;
    --mode-color-light: #64B5F6;
}

.solo-mode {
    --mode-color: #FF9800;
    --mode-color-light: #FFB74D;
}

.mode-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.mode-icon {
    text-align: center;
    margin-bottom: 1.5rem;
}

.mode-icon i {
    font-size: 3rem;
    color: var(--mode-color);
    transition: all 0.3s ease;
}

.mode-card:hover .mode-icon i {
    transform: scale(1.1) rotate(5deg);
}

.mode-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
}

.mode-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
}

.mode-features {
    list-style: none;
    margin-bottom: 2rem;
}

.mode-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.5rem;
    color: #555;
    font-size: 0.9rem;
}

.mode-features i {
    color: var(--mode-color);
    width: 16px;
}

.mode-action {
    text-align: center;
}

.mode-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--mode-color), var(--mode-color-light));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.mode-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    color: white;
}

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

/* Section actions rapides */
.quick-actions {
    margin-top: 3rem;
}

.quick-actions-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.quick-actions-card h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.quick-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.quick-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.quick-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Styles pour la page Lobby */
.lobby-header {
    margin-bottom: 3rem;
}

.lobby-welcome {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.user-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 1rem;
}

.user-info i {
    font-size: 3rem;
    color: #667eea;
}

.user-info h2 {
    font-size: 2rem;
    color: #333;
    font-weight: 700;
}

.player-name {
    background: linear-gradient(45deg, #667eea, #764ba2);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.lobby-subtitle {
    font-size: 1.2rem;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.lobby-subtitle i {
    color: #667eea;
}

/* Formulaires de lobby */
.form-section {
    margin-bottom: 3rem;
}

.form-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-width: 500px;
    margin: 0 auto;
}

.create-form {
    border-top: 4px solid #4CAF50;
}

.join-form {
    border-top: 4px solid #2196F3;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.create-form .form-header i {
    color: #4CAF50;
}

.join-form .form-header i {
    color: #2196F3;
}

.form-header h3 {
    font-size: 1.8rem;
    color: #333;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: #666;
    font-size: 1rem;
}

.lobby-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
    font-weight: 600;
    font-size: 1rem;
}

.form-group label i {
    color: #667eea;
    width: 16px;
}

.form-group select,
.form-group input {
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    width: 100%;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.form-group select:hover,
.form-group input:hover {
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.9);
}

.number-input {
    text-align: center;
    font-weight: 600;
    cursor: text;
}

.number-input::-webkit-inner-spin-button,
.number-input::-webkit-outer-spin-button {
    opacity: 1;
    height: 30px;
    cursor: pointer;
}

.code-input {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    text-align: center;
    cursor: text;
}

.btn-create,
.btn-join {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: white;
    position: relative;
    overflow: hidden;
}

.btn-create {
    background: linear-gradient(135deg, #4CAF50, #81C784);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.btn-join {
    background: linear-gradient(135deg, #2196F3, #64B5F6);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);
}

.btn-create:hover,
.btn-join:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Salle d'attente */
.waiting-room {
    margin-bottom: 3rem;
}

.room-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-width: 600px;
    margin: 0 auto;
}

.room-header {
    text-align: center;
    margin-bottom: 2rem;
}

.room-header i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.room-header h3 {
    font-size: 2rem;
    color: #333;
    font-weight: 700;
}

.room-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.code-display {
    text-align: center;
}

.code-display label {
    display: block;
    color: #666;
    font-weight: 600;
    margin-bottom: 1rem;
}

.code-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 1rem 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.code-text {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    letter-spacing: 3px;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Statut de connexion */
.connection-status {
    background: rgba(102, 126, 234, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.connection-status h4 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.connection-status h4 i {
    color: #667eea;
}

.status-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
    font-size: 1rem;
}

.status-item i {
    color: #667eea;
    width: 16px;
}

.status-item strong {
    color: #333;
    font-weight: 700;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.8rem;
    border-radius: 10px;
    font-weight: 600;
    margin-top: 0.5rem;
}

.status-indicator.ready {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4CAF50;
}

.status-indicator.waiting {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #FFC107;
}

.status-indicator i {
    font-size: 1.2rem;
}

.players-section h4 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.players-section h4 i {
    color: #667eea;
}

.players-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.player-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.8rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.player-item.waiting {
    background: rgba(255, 193, 7, 0.1);
    border-left-color: #FFC107;
    opacity: 0.7;
}

.player-item i {
    color: #667eea;
    width: 16px;
}

.player-item.waiting i {
    color: #FFC107;
}

.player-item span {
    color: #333;
    font-weight: 500;
}

.player-item.waiting span {
    color: #666;
    font-style: italic;
}

.you-badge {
    background: #4CAF50;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: auto;
}

.waiting-badge {
    background: #FFC107;
    color: #333;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: auto;
}

.host-actions {
    text-align: center;
}

.btn-start {
    background: linear-gradient(135deg, #4CAF50, #81C784);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.btn-start:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(76, 175, 80, 0.4);
}

.btn-start.disabled {
    background: linear-gradient(135deg, #ccc, #ddd);
    color: #999;
    cursor: not-allowed;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: none;
}

.btn-start.disabled:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-start.disabled i {
    opacity: 0.5;
}

.waiting-info {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 193, 7, 0.3);
    margin-top: 1rem;
}

.waiting-info i {
    font-size: 1.5rem;
    color: #FFC107;
    margin-bottom: 0.5rem;
}

.waiting-info p {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

.waiting-info small {
    color: #888;
    font-size: 0.9rem;
}

.waiting-message {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.waiting-message i {
    font-size: 2rem;
    color: #FFC107;
    margin-bottom: 1rem;
}

.waiting-message p {
    color: #666;
    font-size: 1.1rem;
    font-weight: 500;
}

.error-card {
    background: #fee;
    color: #c33;
    padding: 1.5rem;
    border-radius: 15px;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #fcc;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.error-card i {
    font-size: 1.5rem;
}

/* Styles pour la page Game */
.game-header {
    margin-bottom: 3rem;
}

.game-info {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.player-info i {
    font-size: 2.5rem;
    color: #667eea;
}

.player-info h2 {
    font-size: 1.8rem;
    color: #333;
    font-weight: 700;
}

.game-mode {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 152, 0, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.game-mode i {
    color: #FF9800;
}

.game-mode span {
    color: #FF9800;
    font-weight: 600;
}

/* Sélection de lettre */
.letter-selection {
    margin-bottom: 3rem;
}

.letter-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-width: 800px;
    margin: 0 auto;
}

.letter-header {
    text-align: center;
    margin-bottom: 2rem;
}

.letter-header i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.letter-header h3 {
    font-size: 2rem;
    color: #333;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.letter-header p {
    color: #666;
    font-size: 1.1rem;
}

.letter-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.letter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.letter-option {
    cursor: pointer;
}

.letter-option input[type="radio"] {
    display: none;
}

.letter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.letter-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.letter-option input[type="radio"]:checked + .letter-btn {
    background: linear-gradient(135deg, #4CAF50, #81C784);
    transform: scale(1.2);
    box-shadow: 0 15px 30px rgba(76, 175, 80, 0.4);
}

.btn-validate-letter {
    background: linear-gradient(135deg, #4CAF50, #81C784);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
    max-width: 200px;
    margin: 0 auto;
}

.btn-validate-letter:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(76, 175, 80, 0.4);
}

/* Interface de jeu */
.game-interface {
    margin-bottom: 3rem;
}

.game-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-width: 800px;
    margin: 0 auto;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e1e5e9;
}

.letter-display {
    display: flex;
    align-items: center;
    gap: 10px;
}

.letter-display i {
    font-size: 2rem;
    color: #ffd700;
}

.letter-display h3 {
    font-size: 1.5rem;
    color: #333;
    font-weight: 700;
}

.current-letter {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: 800;
    font-size: 1.8rem;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}




.game-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.category-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
    font-weight: 600;
    font-size: 1rem;
}

.category-label i {
    color: #667eea;
    width: 16px;
}

.category-input {
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.category-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.game-actions {
    text-align: center;
    margin-top: 2rem;
}

.btn-stop {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    border: none;
    padding: 1.5rem 3rem;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.4);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn-stop:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.5);
}

/* Footer moderne */
.footer-modern {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}

.footer-modern p {
    color: rgba(255, 255, 255, 0.8);
}

.footer-modern i {
    color: #ff6b6b;
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .modes-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .welcome-title {
        font-size: 2rem;
    }
    
    .mode-card {
        padding: 1.5rem;
    }
    
    .quick-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-modern {
        display: none;
    }
    
    .how-to-play {
        padding: 2rem 1rem;
    }
    
    .game-info {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .letter-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .game-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Animations d'entrée */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content, .login-card, .feature-card, .step, .welcome-card, .mode-card, .quick-actions-card,
.lobby-welcome, .form-card, .room-card, .game-info, .letter-card, .game-card {
    animation: fadeInUp 0.8s ease-out;
}

.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.4s; }
.step:nth-child(2) { animation-delay: 0.2s; }
.step:nth-child(3) { animation-delay: 0.4s; }
.step:nth-child(4) { animation-delay: 0.6s; }
.mode-card:nth-child(2) { animation-delay: 0.2s; }
.mode-card:nth-child(3) { animation-delay: 0.4s; }

/* Effet ripple */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.mode-btn, .quick-btn, .nav-link, .btn-modern, .btn-create, .btn-join, .btn-start, 
.btn-validate-letter, .btn-stop, .copy-btn {
    position: relative;
    overflow: hidden;
}

/* Styles spécifiques pour les formulaires de lobby */
.lobby-form .form-group {
    position: relative;
    z-index: 10;
}

.lobby-form input[type="number"],
.lobby-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2.5rem;
}

.lobby-form input[type="number"] {
    background-image: none;
    padding-right: 1rem;
}

.lobby-form select:focus {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667eea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
}

/* Styles pour la page de création de partie */
.create-header {
    margin-bottom: 3rem;
}

.create-welcome {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.create-welcome .user-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 1rem;
}

.create-welcome .user-info i {
    font-size: 3rem;
    color: #4CAF50;
}

.create-welcome .user-info h2 {
    font-size: 2rem;
    color: #333;
    font-weight: 700;
}

.create-subtitle {
    font-size: 1.2rem;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.create-subtitle i {
    color: #667eea;
}

.create-form-section {
    margin-bottom: 3rem;
}

.create-form-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-width: 600px;
    margin: 0 auto;
    border-top: 4px solid #4CAF50;
}

.create-form-card .form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.create-form-card .form-header i {
    font-size: 3rem;
    color: #4CAF50;
    margin-bottom: 1rem;
}

.create-form-card .form-header h3 {
    font-size: 1.8rem;
    color: #333;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.create-form-card .form-header p {
    color: #666;
    font-size: 1rem;
}

.create-game-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.create-game-form .form-group {
    position: relative;
    z-index: 10;
}

.create-game-form .input-wrapper {
    position: relative;
}

.create-game-form .input-info {
    margin-top: 0.5rem;
    text-align: center;
}

.create-game-form .input-info small {
    color: #888;
    font-size: 0.9rem;
    font-style: italic;
}

.manches-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2.5rem;
}

.manches-select:focus {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667eea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
}

.form-actions {
    text-align: center;
    margin-top: 1rem;
}

.btn-create-game {
    background: linear-gradient(135deg, #4CAF50, #81C784);
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-create-game:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(76, 175, 80, 0.4);
}

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

.simulation-controls {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 193, 7, 0.3);
    text-align: center;
}

.btn-simulate {
    background: linear-gradient(135deg, #FF9800, #FFB74D);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 3px 10px rgba(255, 152, 0, 0.3);
    margin-bottom: 0.5rem;
}

.btn-simulate:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.4);
}

.simulation-controls small {
    display: block;
    color: #999;
    font-size: 0.8rem;
    font-style: italic;
}

/* Styles pour la page de validation */
.validation-header {
    margin-bottom: 3rem;
}

.validation-welcome {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.validation-welcome .user-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 1rem;
}

.validation-welcome .user-info i {
    font-size: 3rem;
    color: #FF9800;
}

.validation-welcome .user-info h2 {
    font-size: 2rem;
    color: #333;
    font-weight: 700;
}

.validation-subtitle {
    font-size: 1.2rem;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.validation-subtitle i {
    color: #667eea;
}

.letter-display {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    color: #333;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.letter-display i {
    color: #333;
}

.current-letter {
    font-size: 1.5rem;
    font-weight: 800;
}

.validation-section {
    margin-bottom: 3rem;
}

.validation-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-width: 1000px;
    margin: 0 auto;
}

.validation-card .validation-header {
    text-align: center;
    margin-bottom: 2rem;
}

.validation-card .validation-header i {
    font-size: 3rem;
    color: #4CAF50;
    margin-bottom: 1rem;
}

.validation-card .validation-header h3 {
    font-size: 1.8rem;
    color: #333;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.validation-card .validation-header p {
    color: #666;
    font-size: 1rem;
}

.validation-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.responses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.response-item {
    background: rgba(102, 126, 234, 0.05);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.response-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.1);
}

.response-item.validated-valid {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.05);
}

.response-item.validated-invalid {
    border-color: #f44336;
    background: rgba(244, 67, 54, 0.05);
}

.response-item.empty-response {
    border-color: #ccc;
    background: rgba(204, 204, 204, 0.1);
    opacity: 0.7;
}

.response-item.empty-response .response-text.empty {
    background: rgba(204, 204, 204, 0.3);
    color: #888;
    font-style: italic;
}

.response-item.empty-response .response-text.empty i {
    color: #ccc;
}

.response-item.empty-response .validation-buttons {
    justify-content: center;
}

.response-item.empty-response .validation-option {
    flex: none;
}

.response-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
}

.response-header i {
    color: #667eea;
    font-size: 1.2rem;
}

.response-header h4 {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.response-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.response-text {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.response-text i {
    color: #FF9800;
    font-size: 1.1rem;
}

.response-text span {
    color: #333;
    font-weight: 500;
    font-size: 1rem;
}

.validation-buttons {
    display: flex;
    gap: 1rem;
}

.validation-option {
    flex: 1;
    cursor: pointer;
}

.validation-option input[type="radio"] {
    display: none;
}

.validation-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.valid-btn {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    border-color: rgba(76, 175, 80, 0.3);
}

.valid-btn:hover {
    background: rgba(76, 175, 80, 0.2);
    transform: translateY(-2px);
}

.valid-btn.selected {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.invalid-btn {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border-color: rgba(244, 67, 54, 0.3);
}

.invalid-btn:hover {
    background: rgba(244, 67, 54, 0.2);
    transform: translateY(-2px);
}

.invalid-btn.selected {
    background: #f44336;
    color: white;
    border-color: #f44336;
    box-shadow: 0 5px 15px rgba(244, 67, 54, 0.3);
}

.validation-summary {
    background: rgba(33, 150, 243, 0.05);
    border: 1px solid rgba(33, 150, 243, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
}

.summary-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.summary-info i {
    color: #2196F3;
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.summary-info span {
    color: #333;
    font-weight: 600;
    font-size: 1rem;
}

.summary-info ul {
    margin: 0.5rem 0 0 0;
    padding-left: 1.5rem;
    color: #666;
    font-size: 0.9rem;
}

.summary-info li {
    margin-bottom: 0.3rem;
}

.summary-info strong {
    color: #333;
}

.form-actions {
    text-align: center;
    margin-top: 1rem;
}

.btn-validate-all {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-validate-all:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-validate-all.ready {
    background: linear-gradient(135deg, #4CAF50, #81C784);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
    animation: pulse 2s infinite;
}

.btn-validate-all.ready:hover {
    box-shadow: 0 10px 25px rgba(76, 175, 80, 0.4);
}

/* Responsive pour la validation */
@media (max-width: 768px) {
    .responses-grid {
        grid-template-columns: 1fr;
    }
    
    .validation-buttons {
        flex-direction: column;
    }
    
    .validation-welcome .user-info h2 {
        font-size: 1.5rem;
    }
    
    .validation-card {
        padding: 1.5rem;
    }
}

/* Menu déroulant validation amélioré */
.menu-dropdown-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 1rem;
}
.menu-btn {
    background: #fff;
    border: none;
    color: #667eea;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.3rem 0.7rem;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(102,126,234,0.10);
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    outline: none;
    position: relative;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
}
.menu-btn:active {
    transform: scale(0.95);
    background: #f5f7fa;
}
.menu-btn:hover, .menu-btn:focus {
    background: #f5f7fa;
    box-shadow: 0 4px 16px rgba(102,126,234,0.18);
}
.menu-btn .fa-bars,
.menu-btn .fa-xmark {
    transition: transform 0.3s, opacity 0.3s;
}
.menu-btn.open .fa-bars {
    transform: rotate(90deg) scale(0.7);
    opacity: 0;
}
.menu-btn.open .fa-xmark {
    opacity: 1;
    transform: scale(1.1);
}
.menu-btn .fa-xmark {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%) scale(0.7);
    opacity: 0;
    color: #f44336;
    pointer-events: none;
}
.menu-btn.open .fa-xmark {
    opacity: 1;
    transform: translate(-50%,-50%) scale(1.1);
}
.menu-dropdown {
    display: none;
    position: absolute;
    top: 120%;
    right: 0;
    min-width: 200px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(102,126,234,0.15);
    z-index: 1000;
    flex-direction: column;
    padding: 0.5rem 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px) scale(0.98);
    transition: opacity 0.25s, transform 0.25s;
}
.menu-dropdown.open {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}
.menu-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    font-weight: 500;
    font-size: 1rem;
    transition: background 0.2s, color 0.2s;
    border-radius: 10px;
}
.menu-dropdown a:hover, .menu-dropdown a:focus {
    background: #f5f7fa;
    color: #667eea;
}
@media (max-width: 600px) {
    .menu-dropdown {
        min-width: 140px;
        right: 0;
    }
    .menu-btn {
        font-size: 1.5rem;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fadeIn {
    animation: fadeIn 0.5s;
}
#joinForm {
    background: rgba(255,255,255,0.95);
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(102,126,234,0.10);
    padding: 1.5rem 1rem 1rem 1rem;
    margin-top: 1rem;
    border: 1px solid #e1e5e9;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
}
#joinForm .form-group label {
    font-size: 1rem;
    color: #555;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
#joinForm .form-group input {
    font-size: 1.1rem;
    padding: 1rem;
    border-radius: 10px;
    border: 2px solid #e1e5e9;
    width: 100%;
    margin-bottom: 0.5rem;
    background: rgba(255,255,255,0.8);
    transition: border 0.2s;
}
#joinForm .form-group input:focus {
    border-color: #667eea;
    outline: none;
}
#joinForm .btn-join {
    width: 100%;
    margin-top: 0.5rem;
    font-size: 1.1rem;
    padding: 1rem 0;
    border-radius: 50px;
    background: linear-gradient(135deg, #2196F3, #64B5F6);
    color: white;
    border: none;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.15);
    transition: background 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
#joinForm .btn-join:hover {
    background: linear-gradient(135deg, #1976D2, #42A5F5);
    transform: translateY(-2px);
}

/* Attente de lettre */
.waiting-letter {
    margin-top: 2rem;
}

.waiting-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.waiting-header {
    margin-bottom: 2rem;
}

.waiting-header i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.waiting-header h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.waiting-content {
    max-width: 600px;
    margin: 0 auto;
}

.waiting-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.waiting-content .your-turn {
    color: #4CAF50;
    font-weight: 600;
    font-size: 1.2rem;
}

.players-order {
    margin-top: 2rem;
    text-align: left;
}

.players-order h4 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
}

.players-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.players-list .player-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

.players-list .player-item.current {
    background: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.3);
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.2);
}

.players-list .player-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.player-number {
    background: #667eea;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.players-list .player-item.current .player-number {
    background: #4CAF50;
}

.player-name {
    flex: 1;
    font-weight: 500;
    color: #333;
}

.current-badge {
    background: #4CAF50;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    animation: pulse 2s infinite;
}

/* Responsive pour l'attente de lettre */
@media (max-width: 768px) {
    .waiting-card {
        padding: 1.5rem;
    }
    
    .waiting-header i {
        font-size: 2.5rem;
    }
    
    .waiting-header h3 {
        font-size: 1.5rem;
    }
    
    .players-list .player-item {
        padding: 0.6rem 0.8rem;
    }
    
    .player-number {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }
} 