/* © 2026 NAVYRO SAS. Tous droits réservés. Logiciel propriétaire : voir le fichier LICENCE. */
/* Questions utilisateurs (demande 76, Alain, 18/11/2026, maquettes « Questions-utilisateurs-*-v2 » validées) : module temporaire.
   Chargée après les deux thèmes : seules les couleurs du thème (--panel, --ink, --muted, --line, --brand2…) et celles des tuiles de
   réponse communes (cyan → violet, choisie en ambre) ; juste en style noir comme en style clair. */

/* En-tête de chaque écran */
.q-tete{display:contents}
.q-tete .btn{white-space:nowrap}
.q-poser{color:#fff!important;border:0!important;background:linear-gradient(120deg,#06b6d4,#7c3aed)!important;box-shadow:0 0 14px rgba(34,211,238,.35)}
.q-recues .q-nb{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;margin-left:4px;border-radius:10px;
  font:800 12px/1 Consolas,"Liberation Mono",monospace;color:#1e1b16;background:#f59e0b}
.q-ferme{align-self:center;font-size:12.5px;color:var(--muted);padding:0 6px}

/* Fenêtre « Poser une question » */
.q-fenetre{width:min(860px,96vw)}
.q-fenetre .fenetre-tete{display:flex;align-items:center;justify-content:space-between;gap:10px}
.q-corps{display:flex;flex-direction:column;gap:6px}
.q-intro{margin:0 0 4px;font-size:13px;color:var(--muted)}
.q-etape{margin:8px 0 2px;font-size:12.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--brand2)}
.q-etape small{text-transform:none;letter-spacing:0;color:var(--muted);font-weight:500}
.q-tuiles{display:flex;flex-wrap:wrap;gap:6px}
.q-tuile{min-height:36px;padding:6px 12px;border-radius:10px;cursor:pointer;font-weight:700;font-size:13.5px;color:#fff;
  border:1px solid rgba(165,243,252,.6);background:linear-gradient(120deg,#06b6d4,#7c3aed)}
.q-tuile.on{background:#fbbf24;color:#1e1b16;border-color:#fff;box-shadow:0 0 12px rgba(251,191,36,.5)}
.q-texte{width:100%;min-height:84px;padding:8px 10px;border-radius:10px;border:1px solid var(--line);background:var(--panel);color:var(--ink);font:inherit;resize:vertical}
.q-ajoute{margin:2px 0 0;padding:6px 10px;border-radius:8px;border:1px dashed var(--line);font-size:12px;color:var(--muted)}
.q-fenetre .fenetre-pied{display:flex;align-items:center;gap:10px}
.q-oblig{flex:1 1 auto;font-size:12px}
.q-fenetre [data-envoyer]{white-space:nowrap}
.requis{color:#ef4444}

/* Page Questions */
.q-onglets{margin:4px 0 10px}
.q-chiffres{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:10px}
.q-chiffre{padding:8px 12px;border-radius:12px;border:1px solid var(--line);background:var(--panel)}
.q-chiffre span{display:block;font-size:12px;letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}
.q-chiffre b{font:800 22px/1.2 Consolas,"Liberation Mono",monospace;color:var(--ink)}
.q-grille{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(320px,1fr);gap:14px;align-items:start}
.q-droite{display:flex;flex-direction:column;gap:12px}
.q-table{table-layout:fixed;width:100%}
.q-table th{white-space:normal;line-height:1.15}
.q-table td{font-size:13px}
.q-table td.q-coupe{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.q-table .q-c-date{width:52px}.q-table .q-c-auteur{width:17%}.q-table .q-c-fam{width:26%}.q-table .q-c-nat{width:66px}.q-table .q-c-et{width:112px}
.q-table tr.q-choisie td{background:rgba(251,191,36,.12)}
.q-pages{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:8px}
.q-pages .muted{margin-right:auto}
.q-etat{display:inline-block;padding:2px 8px;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap}
.q-et-attente{color:#1e1b16;background:#fbbf24}
.q-et-repondue{color:#fff;background:var(--green)}
.q-et-precision{color:#fff;background:var(--red)}
.q-et-retenue{color:#1e1b16;background:linear-gradient(120deg,#fde68a,#f59e0b)}
.q-et-transferee{color:#fff;background:var(--brand2)}
.q-echange h3{margin:0 0 2px}
.q-ref{margin:0 0 8px;font-size:12.5px}
.q-fil{display:flex;flex-direction:column;gap:8px;max-height:max(160px,calc(100vh - 470px));overflow-y:auto;padding-right:4px}
.q-avec-chiffres .q-fil{max-height:max(120px,calc(100vh - 640px))}   /* Questions reçues : la rangée des chiffres prend la place */
.q-msg{max-width:88%;padding:7px 10px;border-radius:12px;border:1px solid var(--line);background:var(--panel)}
.q-msg small{display:block;font-size:11.5px;color:var(--muted);margin-bottom:2px}
.q-msg p{margin:0;white-space:pre-wrap;font-size:13.5px;color:var(--ink)}
.q-msg.q-reponse{margin-left:auto;border-color:rgba(124,58,237,.55);background:linear-gradient(120deg,rgba(6,182,212,.14),rgba(124,58,237,.18))}
.q-msg.q-transfert,.q-msg.q-retenue{max-width:100%;border-style:dashed;font-style:italic}
.q-suivi{margin:8px 0 0;font-size:12.5px;color:var(--green)}
.q-suivi a{font-weight:700}
.q-attente{margin:8px 0 0;font-size:12.5px;text-align:center}
.q-saisie.q-texte{margin-top:8px;min-height:56px}
.q-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.q-retenir{border-color:#f59e0b!important}
.q-deja{align-self:center;font-size:13px;color:var(--muted)}
.q-graph .section-title{display:flex;align-items:baseline;gap:8px}
.q-barre{display:grid;grid-template-columns:110px minmax(0,1fr) auto;align-items:center;gap:8px;width:100%;padding:3px 0;border:0;background:none;
  color:var(--ink);font:inherit;font-size:13px;cursor:pointer;text-align:left}
.q-barre-p{height:12px;border-radius:6px;background:var(--line)}
.q-barre-p i{display:block;height:100%;border-radius:6px;background:linear-gradient(90deg,#06b6d4,#7c3aed)}
.q-barre.on .q-barre-p i{background:#fbbf24}
.q-barre-n{font:700 12.5px/1 Consolas,"Liberation Mono",monospace;white-space:nowrap}

/* Paramètres › Société › Questions utilisateurs */
.q-param{border:1.5px dashed #f59e0b!important}
.q-param .section-title{display:flex;align-items:center;gap:10px}
.q-nouveau{margin-left:auto;padding:2px 8px;border-radius:999px;font-size:11.5px;font-weight:800;color:#1e1b16;background:#fbbf24}
.q-pourquoi{margin:2px 0 10px;font-size:13px;color:var(--muted)}
.q-pourquoi b{color:var(--brand2)}
.q-param-grille{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 16px}
.q-param-grille label,.q-param-grille>div{display:flex;flex-direction:column;gap:4px;font-size:13px}
.q-lib{font-size:13px}
.q-ok{color:var(--green);font-weight:700;font-size:12px}
.q-etat-periode{display:inline-block;padding:7px 10px;border-radius:10px;font-weight:700;text-align:center;color:var(--muted);border:1px solid var(--line)}
.q-etat-periode.ouvert{color:#1e1b16;background:#fbbf24;border-color:#fbbf24}
.q-total b{font:800 20px/1 Consolas,"Liberation Mono",monospace}
.q-liaison{padding:7px 10px;border-radius:10px;font-size:12.5px;color:var(--muted);border:1px solid var(--line)}
.q-note{margin:10px 0 0;font-size:12px}

@media (max-width:1100px){.q-grille{grid-template-columns:minmax(0,1fr)}.q-param-grille{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:760px){.q-chiffres{grid-template-columns:repeat(2,minmax(0,1fr))}.q-param-grille{grid-template-columns:minmax(0,1fr)}
  .q-table .q-coupe{max-width:none;white-space:normal}.q-tuile{min-height:44px}.q-fenetre .fenetre-pied{flex-wrap:wrap}}
