/* -----------------------------------------------------------------------------
assets/css/eda-sondages.css
Styles front-end et admin pour eda-sondages
----------------------------------------------------------------------------- */

/* Formulaire de sondage */
.eda-poll-form,
.eda-manage-responses {
    border: 1px solid #ccd0d4;
    padding: 20px;
    margin-bottom: 20px;
    background: #fff;
}

.eda-poll-form h2,
.eda-manage-responses h2 {
    margin-top: 0;
    font-size: 1.5em;
}

.eda-question {
    margin-bottom: 15px;
}

.eda-question-text {
    font-weight: bold;
    margin-bottom: 5px;
}

.eda-ajax-response .eda-success {
    color: #007c46;
}

.eda-ajax-response .eda-error {
    color: #d63638;
}

/* Résultats du sondage */
.eda-poll-results {
    background: #fff;
    padding: 20px;
    border: 1px solid #ccd0d4;
}

.eda-poll-results h2 {
    margin-top: 0;
}

/* Admin – liste des sondages */
.eda-sondages-admin .wp-list-table th,
.eda-sondages-admin .wp-list-table td {
    vertical-align: middle;
}

/* Admin – formulaire d’édition */
.eda-sondages-admin-edit .form-table th {
    width: 200px;
    padding: 10px;
}

.eda-choices p {
    margin: 5px 0;
}

/* Analyse */
.eda-poll-analysis {
    background: #fff;
    padding: 20px;
    border: 1px solid #ccd0d4;
}

.eda-poll-analysis h3 {
    margin-top: 1.5em;
}

/* Boutons */
.eda-add-question {
    margin-bottom: 15px;
}

/* Sondages ouverts : carte orange */
.eda-poll-list-open .eda-poll-card {
    border-left: 4px solid #f39c12;
    background: #fffbf5;
}
/* Bouton Répondre orange */
.eda-btn.eda-btn-respond {
    background: #f39c12;
    color: white;
}
.eda-btn.eda-btn-respond:hover {
    background: #d68910;
}

/* Bouton modifier vert */
.eda-btn.eda-btn-modify {
    background: #27ae60;
    color: white;
}
.eda-btn.eda-btn-modify:hover {
    background: #219a52;
}

/* Bouton détail bleu */
.eda-btn.eda-btn-detail {
    background: #3498db;
    color: white;
}
.eda-btn.eda-btn-detail.eda-detail-active {
    background: #2c3e50;
}

/* Badge nb réponses sondages fermés */
.eda-response-count {
    background: #e9ecef;
    color: #495057;
    border-radius: 15px;
    padding: 6px 12px;
    font-weight: bold;
    display: inline-block;
}

.eda-poll-list-empty {
    text-align: center;
    color: #666;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 40px 20px;
}

/* Responsive pour grilles et tableaux */
@media (max-width: 768px) {
    .eda-polls-grid {
        grid-template-columns: 1fr;
    }
    .eda-poll-actions,
    .eda-btn {
        width: 100%;
    }
    .eda-polls-table th,
    .eda-polls-table td {
        padding: 10px 8px;
    }
    .eda-btn.eda-btn-small { margin-bottom: 4px; }
}

.eda-btn-close-results {
    background: none;
    border: none;
    font-size: 1.5em;
    color: #aaa;
    cursor: pointer;
    margin-left: 10px;
}
.eda-btn-close-results:hover {
    color: #e74c3c;
}
