/* Feedback Popup Styles */
.feedback-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000000; /* Augmenté pour être au-dessus des boutons "Je ne sais pas" */
    width: 320px;
    max-width: calc(100vw - 40px);
    background: linear-gradient(135deg, #116b76 0%, #2ca9ab 100%);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(17, 107, 118, 0.3);
    backdrop-filter: blur(10px);
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.feedback-popup.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.feedback-popup.minimized {
    display: none;
}

.feedback-popup.minimized .feedback-content {
    display: none;
}

.feedback-popup.minimized .feedback-toggle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    font-size: 20px;
}

.feedback-popup.minimized:hover .feedback-toggle {
    transform: translate(-50%, -50%) scale(1.1);
}

.feedback-popup.minimized:hover {
    box-shadow: 0 8px 32px rgba(17, 107, 118, 0.5);
}

.feedback-content {
    padding: 20px;
    color: white;
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.feedback-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    flex: 1;
    padding-right: 8px;
}

.feedback-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 6px;
    color: white;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
}

.feedback-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feedback-textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
    resize: vertical;
    backdrop-filter: blur(5px);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.feedback-textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
}

.feedback-textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.feedback-email-label {
    font-size: 13px;
    line-height: 1.4;
    margin: 4px 0 8px 0;
    opacity: 0.9;
}

.feedback-email {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
    backdrop-filter: blur(5px);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.feedback-email:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
}

.feedback-email::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Error states */
.feedback-email.error,
.feedback-textarea.error {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.feedback-email.error:focus,
.feedback-textarea.error:focus {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3);
}

.field-error {
    color: #fecaca;
    font-size: 12px;
    margin-top: 4px;
    padding: 4px 8px;
    background: rgba(239, 68, 68, 0.2);
    border-radius: 4px;
    border-left: 3px solid #ef4444;
    display: none;
    animation: errorShake 0.5s ease-in-out;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.feedback-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.feedback-submit {
    flex: 1;
    padding: 10px 16px;
    background: white;
    color: #116b76;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.feedback-submit:hover {
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.feedback-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.feedback-minimize {
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.feedback-minimize:hover {
    background: rgba(255, 255, 255, 0.3);
}

.feedback-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #116b76;
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000000; /* Augmenté pour être cohérent avec la popup */
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.feedback-popup.show + .feedback-toggle {
    transform: translateY(10px);
    opacity: 0;
    visibility: hidden;
}

.feedback-toggle i {
    font-size: 18px;
}

.feedback-toggle:hover {
    background: #22999f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.feedback-toggle-text {
    font-size: 14px;
    font-weight: 500;
}

.feedback-success {
    text-align: center;
    padding: 20px;
    color: white;
}

.feedback-success-icon {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
}

.feedback-success-message {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
}

.feedback-success-submessage {
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.9;
    color: white;
}

/* Mobile responsive adjustments */
@media (max-width: 480px) {
    .feedback-popup {
        bottom: 16px;
        right: 16px;
        left: 16px;
        width: auto;
        max-width: none;
    }
    
    .feedback-toggle {
        bottom: 16px;
        right: 16px;
    }
    
    .feedback-popup.minimized {
        width: 56px;
        height: 56px;
        left: auto;
        right: 16px;
    }
    
    .feedback-content {
        padding: 16px;
    }
    
    .feedback-title {
        font-size: 15px;
    }
}

/* Animation for fade in */
@keyframes feedbackFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.feedback-popup.animate-in {
    animation: feedbackFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
} 