/* Styles spécifiques pour le formulaire */
.topic-form-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.topic-form {
    background-color: var(--light-color);
    border: 4px solid transparent;
    border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath d='M0 0h8v1H0V0zm0 7h8v1H0V7zm0-1h1v1H0V6zm7 0h1v1H7V6zM0 1h1v5H0V1zm7 0h1v5H7V1z' fill='%23ff7700'/%3E%3C/svg%3E") 2 stretch;
    padding: 30px;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.2);
    image-rendering: pixelated;
    position: relative;
}

.topic-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='M0 0h4v4H0V0zm8 0h4v4H8V0zm8 0h4v4h-4V0zm-16 8h4v4H0V8zm8 0h4v4H8V8zm8 0h4v4h-4V8zm-16 8h4v4H0v-4zm8 0h4v4H8v-4zm8 0h4v4h-4v-4z' fill='%23000000' fill-opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

.topic-form h2 {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--primary-color);
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--dark-color);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 3px solid var(--secondary-color);
    background-color: var(--light-color);
    color: var(--dark-color);
    font-family: inherit;
    font-size: 1rem;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
}

textarea.form-control {
    min-height: 200px;
    resize: vertical;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.action-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--secondary-color);
    color: var(--light-color);
    border: none;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.9rem;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.action-button:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.2);
}

.action-button:active {
    transform: translateY(0);
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
}

.cancel-button {
    background-color: var(--dark-color);
}

.cancel-button:hover {
    background-color: #444;
}

/* Responsive */
@media (max-width: 768px) {
    .topic-form {
        padding: 20px;
    }
    
    .topic-form h2 {
        font-size: 1.2rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .action-button {
        width: 100%;
        font-size: 0.8rem;
        padding: 10px 20px;
    }
}