/* --- UTILITAIRES (CRUCIAL POUR LE FONCTIONNEMENT) --- */
.hidden {
    display: none !important;
}

/* --- BOUTON FLOTTANT --- */
#furzo-feedback-trigger {
    position: fixed;
    bottom: 20px !important;
    right: 90px !important; 
    z-index: 99990;
    width: 50px; height: 50px; border-radius: 50%;
    background-color: #e74c3c; color: white;
    display: flex; justify-content: center; align-items: center;
    cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, background-color 0.3s;
}
#furzo-feedback-trigger:hover { transform: scale(1.1); background-color: #c0392b; }
#furzo-feedback-trigger .dashicons { font-size: 24px; width: 24px; height: 24px; }

/* BADGE FLASH (Le rond jaune) */
#furzo-flash-badge {
    position: absolute;
    top: 0; right: 0;
    width: 14px; height: 14px;
    background-color: #f1c40f; 
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(241, 196, 15, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(241, 196, 15, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(241, 196, 15, 0); }
}

/* --- MODALE --- */
#furzo-feedback-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); z-index: 99999;
    display: flex; justify-content: center; align-items: center;
}

.furzo-modal-content {
    background: #fff; padding: 25px; border-radius: 12px;
    width: 90%; max-width: 450px; position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2); font-family: sans-serif;
    max-height: 90vh; overflow-y: auto;
}

/* FLASH BOX (La boîte jaune) */
#furzo-flash-box {
    background: #fff3cd; border: 1px solid #ffeeba; color: #856404;
    padding: 10px 15px; border-radius: 6px; margin-bottom: 20px;
    font-size: 13px; display: flex; align-items: flex-start; gap: 10px;
    line-height: 1.4;
}
#furzo-flash-box .dashicons { font-size: 20px; color: #856404; margin-top: 2px; }

/* Croix de fermeture améliorée (Zone de clic plus grande) */
#furzo-flash-close { 
    cursor: pointer; font-size: 20px; font-weight: bold; opacity: 0.6; 
    padding: 0 5px; /* Plus facile à cliquer */
}
#furzo-flash-close:hover { opacity: 1; color: #533f03; }

/* RESTE DU CSS STANDARD */
#furzo-close-modal { position: absolute; top: 15px; right: 15px; cursor: pointer; color: #999; font-size: 20px; }
.furzo-modal-content h3 { margin: 0 0 10px 0; color: #333; font-size: 20px; text-align: center; }
.furzo-subtitle { margin: 0 0 15px 0; color: #666; font-size: 13px; text-align: center; }

/* Outils */
.ff-quick-tools { display: flex; gap: 10px; justify-content: center; margin-bottom: 15px; }
.ff-quick-tools button, .ff-quick-tools a {
    background: #f1f1f1; border: none; padding: 8px 12px;
    border-radius: 6px; font-size: 12px; color: #555; cursor: pointer;
    display: flex; align-items: center; gap: 5px; text-decoration: none;
    transition: background 0.2s;
}
.ff-quick-tools button:hover, .ff-quick-tools a:hover { background: #e0e0e0; color: #333; }
.ff-divider { border: 0; border-top: 1px solid #eee; margin: 15px 0; }

/* Privacy */
.ff-privacy-toggle { display: flex; align-items: center; background: #f9f9f9; padding: 8px; border-radius: 6px; margin-bottom: 10px; font-size: 12px; color: #555; }
.ff-checkbox-container { display: flex; align-items: center; cursor: pointer; }
.ff-checkbox-container input { margin-right: 8px; }

/* Target */
.ff-target-wrapper { margin-bottom: 15px; }
#ff-target-btn {
    background: #fff; border: 2px dashed #bbb; color: #555;
    padding: 8px; width: 100%; border-radius: 6px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-weight: 500; transition: all 0.2s;
}
#ff-target-btn:hover { border-color: #e74c3c; color: #e74c3c; background: #fff5f5; }
#ff-target-result { margin-top: 5px; background: #e8f8f5; border: 1px solid #2ecc71; color: #27ae60; padding: 10px; border-radius: 4px; font-size: 12px; }

/* Form */
#furzo-feedback-form label { display: block; margin-top: 10px; font-weight: 600; font-size: 13px; color: #444; margin-bottom: 4px; }
#furzo-feedback-form select, #furzo-feedback-form textarea { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 6px; background: #f9f9f9; color: #333; box-sizing: border-box; }
#ff-submit-btn { margin-top: 15px; background: #333; color: white; border: none; padding: 12px; border-radius: 6px; cursor: pointer; width: 100%; font-size: 15px; font-weight: 600; }
#ff-response-msg { margin-top: 10px; text-align: center; font-weight: bold; font-size: 13px; }

/* Sniper */
#furzo-sniper-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 999999; cursor: crosshair; background: rgba(255, 255, 255, 0.1); pointer-events: auto; }
.sniper-controls { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 1000000; pointer-events: auto; width: 90%; max-width: 300px; }
.sniper-text { background: rgba(0,0,0,0.8); color: white; padding: 8px 16px; border-radius: 20px; font-weight: bold; font-size: 14px; text-align: center; }
#sniper-cancel-btn { background: #e74c3c; color: white; border: none; padding: 8px 16px; border-radius: 20px; font-weight: bold; cursor: pointer; font-size: 14px; box-shadow: 0 2px 5px rgba(0,0,0,0.3); }
.furzo-element-highlight { outline: 2px solid #e74c3c !important; background-color: rgba(231, 76, 60, 0.2) !important; cursor: crosshair !important; }

/* Dark Mode */
body.wp-dark-mode-active .furzo-modal-content { background: #1e1e1e; color: #eee; border: 1px solid #444; }
body.wp-dark-mode-active .furzo-modal-content h3 { color: #fff; }
body.wp-dark-mode-active .ff-privacy-toggle { background: #2d2d2d; color: #ccc; }
body.wp-dark-mode-active #ff-target-btn, body.wp-dark-mode-active .ff-quick-tools button, body.wp-dark-mode-active .ff-quick-tools a { background: #2d2d2d; border-color: #555; color: #ccc; }
body.wp-dark-mode-active #furzo-feedback-form label { color: #ddd; }
body.wp-dark-mode-active #furzo-feedback-form select, body.wp-dark-mode-active #furzo-feedback-form textarea { background: #2d2d2d; border-color: #555; color: #fff; }
body.wp-dark-mode-active #furzo-flash-box { background: #4d3d00; border-color: #665200; color: #ffd966; }
body.wp-dark-mode-active #furzo-flash-box .dashicons { color: #ffd966; }