/* Overlay du feedback */
.feedback-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(2px);
}

/* Modal du feedback */
.feedback-modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: feedbackSlideIn 0.3s ease-out;
}

@keyframes feedbackSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Header du feedback */
.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.feedback-header h3 {
    margin: 0;
    font-size: 1.2em;
}

.feedback-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.feedback-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Contenu du feedback */
.feedback-content {
    padding: 20px;
}

.rating-section,
.comment-section,
.category-section {
    margin-bottom: 20px;
}

.rating-section p,
.category-section p {
    margin: 0 0 10px 0;
    font-weight: 500;
    color: #333;
}

/* Boutons de notation */
.rating-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rating-btn {
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9em;
    white-space: nowrap;
}

.rating-btn:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.rating-btn.selected {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Zone de commentaire */
#feedback-comment {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s;
}

#feedback-comment:focus {
    outline: none;
    border-color: #667eea;
}

/* Sélecteur de catégorie */
#feedback-category {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: border-color 0.2s;
}

#feedback-category:focus {
    outline: none;
    border-color: #667eea;
}

/* Actions du feedback */
.feedback-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn-submit,
.btn-cancel {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-submit {
    background: #667eea;
    color: white;
}

.btn-submit:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

.btn-cancel {
    background: #f5f5f5;
    color: #666;
}

.btn-cancel:hover {
    background: #e0e0e0;
}

/* Toast de remerciement */
.thank-you-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4caf50;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    animation: toastSlideIn 0.3s ease-out;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-icon {
    font-size: 1.2em;
}

/* Responsive */
@media (max-width: 600px) {
    .feedback-modal {
        width: 95%;
        margin: 10px;
    }
    
    .rating-buttons {
        flex-direction: column;
    }
    
    .rating-btn {
        text-align: center;
    }
    
    .feedback-actions {
        flex-direction: column;
    }
    
    .btn-submit,
    .btn-cancel {
        width: 100%;
    }
}