/* Mode vidéo « kiosque » : présentatrice en haut, écran question-par-question dessous,
   en une colonne centrée (format mobile partout). */

/* L'attribut hidden doit RÉELLEMENT masquer (overlay/contrôles ont un display propre
   qui sinon l'emporte sur [hidden]) — d'où le bouton « Connexion… » qui restait affiché. */
.cq-video-pane [hidden] { display: none !important; }
.cq-cache { display: none !important; }

/* Colonne étroite centrée (le calculateur plafonne sinon à 560px via .cq-wrap). */
.cq-wrap:has(.cq-video-layout) { max-width: 624px; }
.cq-video-layout { display: flex; flex-direction: column; gap: 16px; max-width: 624px; margin: 0 auto; }
.cq-video-pane { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.cq-ecran-pane { width: 100%; }

/* Présentatrice au format paysage 16:9. */
.cq-video-cadre {
  position: relative; aspect-ratio: 16 / 9; background: #16263F; border-radius: 14px;
  overflow: hidden; box-shadow: 0 6px 24px rgba(22, 38, 63, .18);
}
.cq-video-el { width: 100%; height: 100%; object-fit: cover; display: block; background: #16263F; }

.cq-video-badge {
  position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px;
  background: rgba(214, 64, 69, .92); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .02em;
}
.cq-video-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(22,38,63,.35), rgba(22,38,63,.75)); padding: 16px; text-align: center;
}
.cq-video-start { font-size: 15px; }
.cq-video-ctrls { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

/* Menu « Personnaliser » (options de test : narration + moteur) — discret, replié par défaut. */
.cq-perso { text-align: center; margin-top: 8px; }
.cq-perso-toggle { background: none; border: none; color: #b5ac9c; font-size: 12px; cursor: pointer; padding: 6px 8px; }
.cq-perso-toggle:hover { color: #8B8A86; text-decoration: underline; }
.cq-perso-panneau { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }

/* Sélecteurs de test (narration / moteur), à l'intérieur du panneau « Personnaliser ». */
.cq-mode { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; justify-content: center; }
.cq-mode-label { font-size: 12px; color: #6b6256; }
.cq-mode-btn { padding: 4px 10px; border: 1px solid #D8CDBA; border-radius: 999px; background: #fff; color: #16263F; font-size: 12px; cursor: pointer; }
.cq-mode-btn.cq-mode-on { background: #16263F; color: #fff; border-color: #16263F; }

/* Écran « question par question ». */
.cq-kiosque { display: flex; flex-direction: column; gap: 12px; }
.cq-k-tete { display: flex; justify-content: space-between; align-items: baseline; }
.cq-k-eco-label { font-size: 13px; color: #8B8A86; }
.cq-k-eco-val { font-size: 17px; font-weight: 600; color: #16263F; }
.cq-k-progress { height: 4px; background: #EDE6D8; border-radius: 999px; overflow: hidden; }
.cq-k-progress-barre { height: 100%; width: 0; background: #D6A24E; transition: width .3s ease; }
.cq-k-question { font-size: 16px; line-height: 1.45; color: #16263F; min-height: 44px; }
.cq-k-reponse { display: flex; flex-direction: column; gap: 10px; }
.cq-k-reponse > div { display: flex; flex-direction: column; gap: 8px; }
.cq-k-reponse .cq-btn { width: 100%; }
.cq-k-contact { margin-top: 8px; font-size: 13px; }
.cq-k-liens { display: flex; gap: 14px; justify-content: center; }

@media (max-width: 720px) {
  .cq-wrap:has(.cq-video-layout) { max-width: none; }
  .cq-video-layout { max-width: none; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .cq-k-progress-barre { transition: none; }
}

/* Hub d'accueil de l'assistante. */
.cq-hub { max-width: 480px; margin: 0 auto; }
.cq-hub-id { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cq-hub-ava { position: relative; width: 48px; height: 48px; border-radius: 50%; background: #D6A24E; color: #16263F; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 500; flex: none; }
.cq-hub-dot { position: absolute; right: 0; bottom: 2px; width: 11px; height: 11px; border-radius: 50%; background: #3FA66A; border: 2px solid #F5F0E8; }
.cq-hub-nom { font-size: 16px; font-weight: 500; color: #16263F; line-height: 1.2; }
.cq-hub-role { font-size: 12px; color: #8B8A86; }
.cq-hub-bienvenue { font-size: 15px; line-height: 1.5; color: #16263F; margin: 0 0 16px; }
.cq-hub-cartes { display: flex; flex-direction: column; gap: 10px; }
.cq-carte { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: #fff; border: 1px solid #E0D6C4; border-radius: 14px; padding: 14px 16px; }
.cq-carte-actif { border: 2px solid #D6A24E; cursor: pointer; }
.cq-carte-ic { flex: none; width: 40px; height: 40px; border-radius: 10px; background: #FBF1DF; color: #9a6b16; display: flex; align-items: center; justify-content: center; }
.cq-carte-bientot .cq-carte-ic { background: #ECE5D7; color: #8B8A86; }
.cq-carte-txt { flex: 1; }
.cq-carte-titre { display: block; font-size: 15px; font-weight: 500; color: #16263F; }
.cq-carte-desc { display: block; font-size: 13px; color: #8B8A86; }
.cq-carte-fleche { flex: none; color: #D6A24E; font-size: 22px; line-height: 1; }
.cq-carte-bientot { opacity: 0.62; }
.cq-carte-badge { flex: none; font-size: 11px; font-weight: 500; color: #7c7468; background: #ECE5D7; border-radius: 999px; padding: 3px 9px; }
.cq-hub-pied { text-align: center; margin-top: 14px; }
/* Bouton retour vers l'accueil (depuis un scénario). */
.cq-retour { align-self: flex-start; background: none; border: none; color: #8B8A86; font-size: 13px; cursor: pointer; padding: 4px 2px; }
.cq-retour:hover { color: #16263F; }
