/* Game Contact Form - Lighter Edition Styles */
.gcf-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.gcf-container h3 {
    color: #333;
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
}

/* Champs du formulaire */
.gcf-field {
    margin-bottom: 20px;
}

.gcf-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.gcf-field input,
.gcf-field textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.gcf-field input:focus,
.gcf-field textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

/* Section du jeu Lighter */
.gcf-lighter-section {
    background: linear-gradient(135deg, #FFFFFF 0%, #253e80 100%);
    color: black;
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}


.gcf-lighter-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
    position: relative;
    z-index: 2;
}

.gcf-lighter-instructions {
    margin-bottom: 20px;
    opacity: 0.9;
    line-height: 1.4;
    position: relative;
    z-index: 2;
}

/* Contrôles du jeu */
.gcf-lighter-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
    position: relative;
    z-index: 2;
}

.gcf-difficulty-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gcf-difficulty-selector label {
    font-weight: bold;
    margin-bottom: 0;
}

.gcf-difficulty-selector select {
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    background: white;
    color: #333;
    font-weight: bold;
    cursor: pointer;
}

#gcf-new-game {
    background: rgba(255,255,255,0.2);
    color: black;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

#gcf-new-game:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

/* Plateau de jeu Lighter */
#gcf-lighter-board {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    position: relative;
    z-index: 2;
}

.gcf-lighter-field {
    background: #333;
    border-collapse: separate;
    border-spacing: 2px;
    border-radius: 8px;
    padding: 8px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.gcf-lighter-cell {
    width: 35px;
    height: 35px;
    background: #666;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    position: relative;
    border: 2px solid #555;
}

.gcf-lighter-cell:hover {
    background: #777;
    transform: scale(1.05);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.gcf-lighter-cell.gcf-lighter-marked {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-color: #FF8C00;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.gcf-lighter-cell.gcf-lighter-marked:hover {
    background: linear-gradient(135deg, #FFA500, #FF8C00);
    transform: scale(1.05);
}

/* Animation de victoire */
.gcf-lighter-field.gcf-lighter-victory {
    animation: victoryPulse 1s ease-in-out;
}

@keyframes victoryPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.gcf-lighter-field.gcf-lighter-victory .gcf-lighter-cell.gcf-lighter-marked {
    animation: cellVictory 0.5s ease-in-out infinite alternate;
}

@keyframes cellVictory {
    0% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.6); }
    100% { box-shadow: 0 0 20px rgba(255, 215, 0, 1); }
}

/* Résultat du jeu */
.gcf-game-result {
    margin-top: 20px;
    position: relative;
    z-index: 2;
}

.gcf-lighter-win {
    background: rgba(76, 175, 80, 0.3);
    border: 2px solid #4CAF50;
    color: #2e7d32;
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 18px;
    animation: winPulse 2s ease-in-out;
}

@keyframes winPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.gcf-win-icon {
    font-size: 24px;
    margin-right: 10px;
}

/* Section de soumission */
.gcf-submit-section {
    text-align: center;
    margin-top: 30px;
}

#gcf-submit-btn {
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 250px;
    position: relative;
    overflow: hidden;
}

#gcf-submit-btn.gcf-disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
    transform: none;
}

#gcf-submit-btn.gcf-enabled {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    cursor: pointer;
}

#gcf-submit-btn.gcf-enabled:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.gcf-lock-icon, .gcf-unlock-icon, .gcf-loading {
    margin-right: 8px;
    font-size: 16px;
}

/* Messages du formulaire */
#gcf-form-messages {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
    display: none;
    position: relative;
}

#gcf-form-messages.gcf-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 2px solid #4CAF50;
    color: #155724;
}

#gcf-form-messages.gcf-error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    border: 2px solid #f44336;
    color: #721c24;
}

.gcf-message-icon {
    margin-right: 8px;
    font-size: 16px;
}

/* Feedback de jeu temporaire */
.gcf-game-feedback {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    z-index: 10;
    animation: feedbackSlide 0.5s ease-out;
}

@keyframes feedbackSlide {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.gcf-game-feedback.gcf-success {
    background: #4CAF50;
    color: white;
}

.gcf-game-feedback.gcf-error {
    background: #f44336;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .gcf-container {
        padding: 15px;
        margin: 10px;
    }
    
    .gcf-lighter-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .gcf-lighter-cell {
        width: 30px;
        height: 30px;
    }
    
    #gcf-submit-btn {
        width: 100%;
        min-width: auto;
        font-size: 16px;
    }
    
    .gcf-lighter-section h4 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .gcf-lighter-cell {
        width: 25px;
        height: 25px;
    }
    
    .gcf-lighter-field {
        padding: 6px;
        border-spacing: 1px;
    }
}
