/* ============================================
   Grand Calais RP - Module Enquêtes
   Constructeur, formulaire public, résultats
   ============================================ */

/* ====== UTILITAIRES COMMUNS ====== */
.eq-muted   { color: var(--text-muted); }
.eq-sec     { color: var(--text-secondary); }
.eq-mono    { font-family: var(--font-mono); }
.eq-row     { display: flex; align-items: center; gap: 0.75rem; }
.eq-row-wrap{ display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.eq-grow    { flex: 1; min-width: 0; }
.eq-title   { font-family: var(--font-heading); font-weight: 700; }

.eq-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    white-space: nowrap;
}
.eq-chip i { font-size: 0.7rem; }
.eq-chip-draft   { background: rgba(138, 143, 163, 0.15); color: var(--text-secondary); border-color: rgba(138,143,163,.25); }
.eq-chip-live    { background: rgba(0, 214, 143, 0.15);  color: var(--success); border-color: rgba(0,214,143,.25); }
.eq-chip-closed  { background: rgba(255, 71, 87, 0.12);  color: var(--danger);  border-color: rgba(255,71,87,.2); }
.eq-chip-accent  { background: rgba(0, 194, 255, 0.12);  color: var(--accent);  border-color: rgba(0,194,255,.25); }
.eq-chip-warn    { background: rgba(255, 192, 72, 0.12); color: var(--warning); border-color: rgba(255,192,72,.25); }

.eq-empty {
    text-align: center;
    padding: 3.5rem 1.5rem;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
}
.eq-empty i { font-size: 2.5rem; margin-bottom: 1rem; display: block; opacity: 0.5; }

.eq-toolbar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

/* Onglets */
.eq-tabs {
    display: flex;
    gap: 0.35rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.75rem;
    overflow-x: auto;
    scrollbar-width: thin;
}
.eq-tab {
    padding: 0.7rem 1.15rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}
.eq-tab:hover { color: var(--text-primary); }
.eq-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ====== LISTE DES ENQUÊTES (ADMIN) ====== */
.eq-list { display: grid; gap: 1rem; }

.eq-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    transition: var(--transition);
}
.eq-card:hover { background: var(--bg-card-hover); border-color: rgba(255,255,255,.12); }
.eq-card h3 { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; }
.eq-card-meta {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}
.eq-card-meta span { display: inline-flex; align-items: center; gap: 0.35rem; }

/* ====== CONSTRUCTEUR ====== */
.eq-builder {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) 300px;
    gap: 1.25rem;
    align-items: start;
}
@media (max-width: 1400px) {
    .eq-builder { grid-template-columns: 210px minmax(0, 1fr); }
    .eq-builder-settings { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
    .eq-builder { grid-template-columns: 1fr; }
}

.eq-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem;
}
.eq-panel-sticky { position: sticky; top: calc(var(--nav-height) + 1rem); max-height: calc(100vh - var(--nav-height) - 2rem); overflow-y: auto; }
.eq-panel h4 {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}
.eq-panel h4:not(:first-child) { margin-top: 1.5rem; }

/* Palette de types */
.eq-type-group { margin-bottom: 1rem; }
.eq-type-group-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    font-weight: 600;
}
.eq-type-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.55rem 0.7rem;
    margin-bottom: 0.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.83rem;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}
.eq-type-btn:hover {
    background: rgba(0, 194, 255, 0.08);
    border-color: var(--border-accent);
    color: var(--text-primary);
    transform: translateX(2px);
}
.eq-type-btn i { width: 18px; text-align: center; color: var(--accent); font-size: 0.9rem; }

/* Canevas des questions */
.eq-canvas { display: flex; flex-direction: column; gap: 0.9rem; min-height: 180px; }

.eq-q {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    padding: 1rem 1.15rem;
    transition: border-color 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.eq-q.eq-q-section  { border-left-color: var(--accent-secondary); background: rgba(124, 92, 252, 0.04); }
.eq-q.eq-q-inactive { opacity: 0.45; }
.eq-q.eq-q-open     { border-color: var(--border-accent); box-shadow: 0 0 0 3px rgba(0, 194, 255, 0.07); }
.eq-q.eq-dragging   { opacity: 0.35; }
.eq-q.eq-drop-before{ box-shadow: 0 -3px 0 0 var(--accent); }
.eq-q.eq-drop-after { box-shadow: 0  3px 0 0 var(--accent); }

.eq-q-head { display: flex; align-items: flex-start; gap: 0.75rem; }
.eq-q-handle {
    cursor: grab;
    color: var(--text-muted);
    padding: 0.25rem 0.15rem;
    font-size: 0.85rem;
    flex-shrink: 0;
    user-select: none;
}
.eq-q-handle:active { cursor: grabbing; }
.eq-q-num {
    flex-shrink: 0;
    width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(0, 194, 255, 0.12);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
}
.eq-q-info { flex: 1; min-width: 0; }
.eq-q-label {
    font-weight: 600;
    font-size: 0.98rem;
    word-break: break-word;
}
.eq-q-label .eq-req { color: var(--danger); margin-left: 0.2rem; }
.eq-q-sub {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}
.eq-q-sub span { display: inline-flex; align-items: center; gap: 0.3rem; }
.eq-q-actions { display: flex; gap: 0.25rem; flex-shrink: 0; }
.eq-icon-btn {
    width: 30px; height: 30px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.78rem;
    cursor: pointer;
    transition: var(--transition);
}
.eq-icon-btn:hover { background: rgba(255, 255, 255, 0.1); color: var(--text-primary); }
.eq-icon-btn.danger:hover { background: rgba(255, 71, 87, 0.18); color: var(--danger); border-color: rgba(255,71,87,.3); }

/* Corps d'édition d'une question */
.eq-q-body {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    display: none;
}
.eq-q.eq-q-open .eq-q-body { display: block; }

.eq-field { margin-bottom: 0.85rem; }
.eq-field > label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}
.eq-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.eq-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem; }
@media (max-width: 640px) { .eq-grid-2, .eq-grid-3 { grid-template-columns: 1fr; } }

.eq-input {
    width: 100%;
    padding: 0.55rem 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.88rem;
    transition: var(--transition);
}
.eq-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 194, 255, 0.1); }
.eq-input::placeholder { color: var(--text-muted); }
textarea.eq-input { min-height: 70px; resize: vertical; line-height: 1.5; }
select.eq-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%238b8fa3' d='M4.5 6l3.5 4 3.5-4z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.6rem center; padding-right: 2rem; }

.eq-check {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}
.eq-check input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }

/* Éditeur de choix */
.eq-choices { display: flex; flex-direction: column; gap: 0.4rem; }
.eq-choice-row { display: flex; align-items: center; gap: 0.5rem; }
.eq-choice-row .eq-choice-mark { color: var(--text-muted); font-size: 0.8rem; width: 16px; text-align: center; flex-shrink: 0; }
.eq-choice-row .eq-choice-drag { cursor: grab; color: var(--text-muted); font-size: 0.75rem; flex-shrink: 0; }

/* Aperçu inline dans le constructeur */
.eq-preview {
    margin-top: 0.75rem;
    padding: 0.85rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
}
.eq-preview-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* Barre d'état d'enregistrement */
.eq-savebar {
    position: sticky;
    bottom: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
    padding: 0.85rem 1.15rem;
    background: rgba(22, 24, 33, 0.94);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.eq-save-state { font-size: 0.82rem; color: var(--text-muted); display: inline-flex; align-items: center; gap: 0.45rem; }
.eq-save-state.dirty { color: var(--warning); }
.eq-save-state.saved { color: var(--success); }
.eq-save-state.error { color: var(--danger); }

/* ====== FORMULAIRE PUBLIC ====== */
.eq-form-wrap { max-width: 780px; margin: 0 auto; }

.eq-hero {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 1.25rem;
}
.eq-hero h1 { font-family: var(--font-heading); font-size: 1.75rem; font-weight: 700; margin-bottom: 0.5rem; }
.eq-hero p { color: var(--text-secondary); line-height: 1.7; }

.eq-progress {
    position: sticky;
    top: var(--nav-height);
    z-index: 40;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 1.25rem;
}
.eq-progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.eq-question {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.eq-question:focus-within { border-color: var(--border-accent); box-shadow: 0 0 0 3px rgba(0, 194, 255, 0.06); }
.eq-question.eq-invalid { border-color: rgba(255, 71, 87, 0.5); }
.eq-question.eq-hidden  { display: none; }

.eq-question > .eq-q-title {
    font-size: 1.02rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    line-height: 1.5;
}
.eq-question > .eq-q-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}
.eq-question .eq-error {
    display: none;
    margin-top: 0.6rem;
    font-size: 0.82rem;
    color: var(--danger);
}
.eq-question.eq-invalid .eq-error { display: block; }

.eq-block-section {
    background: rgba(124, 92, 252, 0.06);
    border-color: rgba(124, 92, 252, 0.2);
    border-left: 3px solid var(--accent-secondary);
}
.eq-block-section h3 { font-family: var(--font-heading); font-size: 1.25rem; margin-bottom: 0.4rem; }

/* Options cliquables (radio / checkbox) */
.eq-opts { display: flex; flex-direction: column; gap: 0.5rem; }
.eq-opt {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.92rem;
}
.eq-opt:hover { background: var(--bg-elevated); border-color: rgba(255, 255, 255, 0.14); }
.eq-opt input { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; flex-shrink: 0; }
.eq-opt.checked { border-color: var(--accent); background: rgba(0, 194, 255, 0.07); }
.eq-opt-autre { display: flex; align-items: center; gap: 0.6rem; }
.eq-opt-autre .eq-input { flex: 1; }

/* Oui / Non */
.eq-bool { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.eq-bool .eq-opt { flex: 1; min-width: 130px; justify-content: center; font-weight: 600; }

/* Échelle linéaire */
.eq-scale { display: flex; flex-direction: column; gap: 0.6rem; }
.eq-scale-items { display: flex; gap: 0.5rem; justify-content: space-between; flex-wrap: wrap; }
.eq-scale-item {
    flex: 1;
    min-width: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 0.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}
.eq-scale-item:hover { border-color: var(--border-accent); transform: translateY(-2px); }
.eq-scale-item.checked { background: rgba(0, 194, 255, 0.14); border-color: var(--accent); color: var(--accent); }
.eq-scale-item input { display: none; }
.eq-scale-labels { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--text-muted); }

/* NPS */
.eq-nps .eq-scale-item { min-width: 36px; padding: 0.55rem 0.2rem; font-size: 0.85rem; }
.eq-nps-legend { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-muted); margin-top: 0.35rem; }

/* Étoiles */
.eq-stars { display: flex; gap: 0.4rem; align-items: center; }
.eq-star {
    font-size: 1.85rem;
    color: rgba(255, 255, 255, 0.14);
    cursor: pointer;
    transition: transform 0.15s, color 0.15s;
    line-height: 1;
}
.eq-star:hover { transform: scale(1.15); }
.eq-star.on { color: var(--warning); text-shadow: 0 0 14px rgba(255, 192, 72, 0.35); }
.eq-star-value { margin-left: 0.65rem; font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-muted); }

/* Grilles */
.eq-grid-scroll { overflow-x: auto; }
.eq-grid-table { width: 100%; border-collapse: collapse; min-width: 460px; }
.eq-grid-table th {
    padding: 0.6rem 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.eq-grid-table th:first-child { text-align: left; }
.eq-grid-table td { padding: 0.65rem 0.5rem; text-align: center; border-bottom: 1px solid var(--border); }
.eq-grid-table td:first-child { text-align: left; font-size: 0.88rem; }
.eq-grid-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
.eq-grid-table input { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }

/* Classement */
.eq-rank { display: flex; flex-direction: column; gap: 0.5rem; }
.eq-rank-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: grab;
    transition: var(--transition);
}
.eq-rank-item:hover { border-color: var(--border-accent); }
.eq-rank-item.eq-dragging { opacity: 0.4; }
.eq-rank-item.eq-drop-target { border-color: var(--accent); }
.eq-rank-pos {
    width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(0, 194, 255, 0.14);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}
.eq-rank-item .fa-grip-vertical { color: var(--text-muted); font-size: 0.8rem; margin-left: auto; }

/* Compteur de caractères */
.eq-counter { text-align: right; font-size: 0.75rem; color: var(--text-muted); margin-top: 0.3rem; font-family: var(--font-mono); }
.eq-counter.warn { color: var(--warning); }
.eq-counter.over { color: var(--danger); }

/* Navigation multi-étapes */
.eq-steps-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }
.eq-step-count { font-size: 0.85rem; color: var(--text-muted); font-family: var(--font-mono); }
.eq-page { display: none; }
.eq-page.active { display: block; animation: eqFade 0.25s ease; }
@keyframes eqFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ====== RÉSULTATS ====== */
.eq-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
    gap: 1rem;
    margin-bottom: 1.75rem;
}
.eq-kpi {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}
.eq-kpi-value { font-family: var(--font-heading); font-size: 1.9rem; font-weight: 700; color: var(--accent); line-height: 1.1; }
.eq-kpi-label { font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.3rem; }
.eq-kpi-sub   { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.2rem; }

.eq-result {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
}
.eq-result-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.eq-result-head h3 { font-family: var(--font-heading); font-size: 1.08rem; font-weight: 600; line-height: 1.45; }
.eq-result-chart { position: relative; height: 280px; }
.eq-result-chart.tall { height: 340px; }

/* Barres horizontales (répartition) */
.eq-bars { display: flex; flex-direction: column; gap: 0.7rem; }
.eq-bar-row { display: grid; grid-template-columns: minmax(90px, 200px) 1fr auto; gap: 0.85rem; align-items: center; }
@media (max-width: 640px) { .eq-bar-row { grid-template-columns: 1fr; gap: 0.3rem; } }
.eq-bar-label { font-size: 0.86rem; color: var(--text-secondary); overflow-wrap: anywhere; }
.eq-bar-track { height: 10px; background: rgba(255, 255, 255, 0.05); border-radius: 999px; overflow: hidden; }
.eq-bar-fill  { height: 100%; border-radius: 999px; transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.eq-bar-value { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-primary); white-space: nowrap; min-width: 78px; text-align: right; }

/* Nuage de mots */
.eq-words { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: baseline; }
.eq-word {
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(0, 194, 255, 0.08);
    border: 1px solid rgba(0, 194, 255, 0.15);
    color: var(--accent);
    line-height: 1.5;
}

/* Réponses libres */
.eq-quotes { display: flex; flex-direction: column; gap: 0.6rem; max-height: 460px; overflow-y: auto; padding-right: 0.35rem; }
.eq-quote {
    padding: 0.85rem 1rem;
    background: var(--bg-secondary);
    border-left: 2px solid var(--accent);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* NPS */
.eq-nps-score { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.eq-nps-big { font-family: var(--font-heading); font-size: 3rem; font-weight: 700; line-height: 1; }
.eq-nps-split { display: flex; height: 26px; border-radius: var(--radius-sm); overflow: hidden; flex: 1; min-width: 220px; }
.eq-nps-split div { display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 700; color: #000; }

/* Grille de résultats */
.eq-heat { width: 100%; border-collapse: collapse; }
.eq-heat th { padding: 0.6rem 0.5rem; font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; text-align: center; border-bottom: 1px solid var(--border); }
.eq-heat th:first-child { text-align: left; }
.eq-heat td { padding: 0.55rem 0.5rem; text-align: center; border-bottom: 1px solid var(--border); font-family: var(--font-mono); font-size: 0.82rem; }
.eq-heat td:first-child { text-align: left; font-family: var(--font-body); font-size: 0.87rem; color: var(--text-secondary); }
.eq-heat-cell { display: inline-block; min-width: 42px; padding: 0.25rem 0.4rem; border-radius: var(--radius-sm); }

/* Réponses individuelles */
.eq-respondents { display: grid; gap: 0.6rem; }
.eq-respondent {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.85rem 1.1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    width: 100%;
    font-family: var(--font-body);
    color: inherit;
}
.eq-respondent:hover { background: var(--bg-card-hover); border-color: var(--border-accent); }
.eq-respondent img { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); flex-shrink: 0; }
.eq-respondent-name { font-weight: 600; font-size: 0.92rem; }
.eq-respondent-meta { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.15rem; }

.eq-answer {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}
.eq-answer:last-child { border-bottom: none; }
.eq-answer-q { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.35rem; }
.eq-answer-a { font-size: 0.94rem; color: var(--text-primary); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.eq-answer-a.empty { color: var(--text-muted); font-style: italic; }

/* Modale large */
.modal.eq-modal-lg { max-width: 760px; }

/* Lien de partage */
.eq-share {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.85rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-secondary);
    overflow: hidden;
}
.eq-share span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }

/* ====== LISTE PUBLIQUE ====== */
.eq-public-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.25rem; }
.eq-public-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: var(--transition);
    height: 100%;
}
.eq-public-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.12); box-shadow: var(--shadow); }
.eq-public-card h3 { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }
.eq-public-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; flex: 1; }
