/* Modal pour la soumission d'idées */

.ideas-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.ideas-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.ideas-modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 90%;
    animation: slideIn 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.ideas-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0ad4e;
    padding-bottom: 15px;
}

.ideas-modal-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
}

.ideas-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.ideas-modal-close:hover {
    color: #333;
}

.ideas-modal-form {
    display: flex;
    flex-direction: column;
}

.ideas-form-group {
    margin-bottom: 15px;
}

.ideas-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.ideas-form-group label .required {
    color: #e74c3c;
}

.ideas-form-group input,
.ideas-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.ideas-form-group input:focus,
.ideas-form-group textarea:focus {
    outline: none;
    border-color: #f0ad4e;
    box-shadow: 0 0 5px rgba(240, 173, 78, 0.3);
}

.ideas-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.ideas-char-count {
    font-size: 0.85rem;
    color: #999;
    margin-top: 5px;
}

.ideas-char-count.warning {
    color: #e74c3c;
}

.ideas-form-error {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.ideas-form-error.active {
    display: block;
}

.ideas-form-group.error input,
.ideas-form-group.error textarea {
    border-color: #e74c3c;
}

.ideas-modal-footer {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.ideas-btn {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.ideas-btn-submit {
    background-color: #f0ad4e;
    color: #fff;
}

.ideas-btn-submit:hover:not(:disabled) {
    background-color: #ec971f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(240, 173, 78, 0.3);
}

.ideas-btn-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.ideas-btn-cancel {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.ideas-btn-cancel:hover {
    background-color: #e8e8e8;
}

.ideas-success-message {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    display: none;
}

.ideas-success-message.active {
    display: block;
}

.ideas-info-text {
    background-color: #e7f3ff;
    border-left: 4px solid #2196F3;
    padding: 10px 12px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #0c5aa0;
    border-radius: 2px;
}
