/* ============================================================
   quiz.css — Test des 5 langages de l'amour + Page résultats
   Préfixe : qz-   |   Aucun conflit avec new-styles.css
   DA : #8C00FF → #FF3F7F → #FFC400   |   Couleur thématique ambre #FF9A3C
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --qz-bg:          #0A0F1E;
  --qz-surface:     #13192E;
  --qz-border:      rgba(255,255,255,0.08);
  --qz-violet:      #8C00FF;
  --qz-pink:        #FF3F7F;
  --qz-gold:        #FFC400;
  --qz-amber:       #FF9A3C;
  --qz-gradient:    linear-gradient(135deg, #8C00FF, #FF3F7F, #FFC400);
  --qz-gradient-r:  linear-gradient(135deg, #FFC400, #FF3F7F, #8C00FF);
  --qz-text:        #F0F0F8;
  --qz-muted:       rgba(240,240,248,0.55);
  --qz-radius:      16px;
  --qz-radius-sm:   10px;
  --qz-shadow:      0 8px 32px rgba(0,0,0,0.4);
}
/* ── Thème clair pour le wizard ─────────────────────────────────
   Les variables suivantes écrasent les valeurs sombres uniquement
   dans la section wizard, sans toucher à la page résultats.
   ─────────────────────────────────────────────────────────────── */
.qz-wizard {
  --qz-bg:      #FAFBFF;
  --qz-surface: #FFFFFF;
  --qz-border:  rgba(0,0,0,0.08);
  --qz-text:    #1A1A2E;
  --qz-muted:   rgba(26,26,46,0.50);
  --qz-shadow:  0 8px 32px rgba(0,0,0,0.10);
}

/* ── Reset & base ───────────────────────────────────────────── */
.qz-page * { box-sizing: border-box; }

/* ============================================================
   WIZARD — Page du test
   ============================================================ */

.qz-wizard {
  min-height: 100svh;
  background: var(--qz-bg);
  display: flex;
  flex-direction: column;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}
/* Glows décoratifs (très subtils en thème clair) */
.qz-wizard::before,
.qz-wizard::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.qz-wizard::before {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -200px;
  background: radial-gradient(circle, rgba(140,0,255,0.07) 0%, transparent 70%);
}
.qz-wizard::after {
  width: 500px;
  height: 500px;
  bottom: -150px;
  left: -150px;
  background: radial-gradient(circle, rgba(255,63,127,0.06) 0%, transparent 70%);
}

.qz-wizard__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ── En-tête du test ─────────────────────────────────────────── */
.qz-header {
  text-align: center;
}

.qz-header__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,154,60,0.5);
  background: rgba(255,154,60,0.12);
  color: #C26000;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.qz-header__title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--qz-text);
  line-height: 1.2;
  margin: 0 0 0.75rem;
  font-family: 'Poppins', sans-serif;
}

.qz-header__title .qz-gradient-text {
  background: var(--qz-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.qz-header__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  color: var(--qz-muted);
  font-size: 0.85rem;
  flex-wrap: wrap;
}

.qz-header__meta span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.qz-header__meta span::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--qz-amber);
}

.qz-header__meta span:first-child::before {
  display: none;
}

/* ── Barre de progression ─────────────────────────────────────── */
.qz-progress {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.qz-progress__track {
  height: 6px;
  background: rgba(0,0,0,0.08);
  border-radius: 999px;
  overflow: hidden;
}

.qz-progress__fill {
  display: block;
  height: 100%;
  background: var(--qz-gradient);
  border-radius: 999px;
  width: 0%;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.qz-progress__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--qz-muted);
}

.qz-progress__count {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--qz-text);
}

.qz-progress__pct {
  font-variant-numeric: tabular-nums;
}

/* ── Carte de conversation ─────────────────────────────────────── */
.qz-chat-card {
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--qz-radius);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.05);
}

/* Bandeau supérieur de la carte */
.qz-chat-card__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  background: #F7F8FC;
}

.qz-chat-card__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.qz-chat-card__dot:nth-child(1) { background: rgba(255,63,127,0.6); }
.qz-chat-card__dot:nth-child(2) { background: rgba(255,196,0,0.6); }
.qz-chat-card__dot:nth-child(3) { background: rgba(140,0,255,0.6); }

.qz-chat-card__label {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--qz-muted);
  letter-spacing: 0.05em;
}

/* ── Neutralisation des styles globaux new-styles.css ────────────
   new-styles.css impose height:150px, couleurs blanches, etc.
   On surcharge via le scope .qz-wizard avec une spécificité >= */

.qz-wizard .tester-conversation {
  height: 420px !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 1.5rem 1.25rem !important;
  background: transparent !important;
}

.qz-wizard .tester-conversation .avatar {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  flex: none !important;
  box-shadow: none !important;
}

.qz-wizard .tester-conversation .avatar.assistant {
  background: var(--qz-gradient) !important;
}

.qz-wizard .tester-conversation .avatar.user {
  background: rgba(26,26,46,0.08) !important;
  border: 1px solid rgba(26,26,46,0.12) !important;
}

.qz-wizard .tester-conversation .bubble {
  background: #F0F2FA !important;
  border: 1px solid rgba(0,0,0,0.07) !important;
  border-radius: 16px !important;
  padding: 0.75rem 1rem !important;
  color: #1A1A2E !important;
  font-size: 0.95rem !important;
  box-shadow: none !important;
}

.qz-wizard .tester-conversation .msg.user .bubble {
  background: rgba(140,0,255,0.1) !important;
  border: 1px solid rgba(140,0,255,0.2) !important;
  border-bottom-right-radius: 4px !important;
  border-top-right-radius: 16px !important;
}

.qz-wizard .tester-conversation .msg.assistant .bubble {
  background: #F0F2FA !important;
  border: 1px solid rgba(0,0,0,0.07) !important;
  border-bottom-left-radius: 4px !important;
  border-top-left-radius: 16px !important;
}

.qz-wizard .typing .dot {
  background: rgba(26,26,46,0.3) !important;
  animation: qzTypingDot 1.2s ease-in-out infinite !important;
}
.qz-wizard .typing .dot:nth-child(2) { animation-delay: 0.2s !important; }
.qz-wizard .typing .dot:nth-child(3) { animation-delay: 0.4s !important; }

/* ── Zone de conversation (injectée par ll-wizard.js) ─────────── */
/* On stylise les classes générées dynamiquement par JS */
.tester-conversation {
  height: 420px;
  overflow-y: auto;
  padding: 1.5rem 1.25rem;
  scroll-behavior: smooth;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tester-conversation::-webkit-scrollbar {
  width: 4px;
}
.tester-conversation::-webkit-scrollbar-track {
  background: transparent;
}
.tester-conversation::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.15);
  border-radius: 2px;
}

/* Messages */
.tester-conversation .msg {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  animation: qzMsgIn 0.3s ease forwards;
}

@keyframes qzMsgIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Avatar */
.tester-conversation .avatar {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.tester-conversation .avatar.assistant {
  background: var(--qz-gradient);
}
.tester-conversation .avatar.assistant::before {
  content: '✦';
  color: #fff;
  font-size: 0.75rem;
}

.tester-conversation .avatar.user {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}
.tester-conversation .avatar.user::before {
  content: '→';
  color: var(--qz-amber);
  font-size: 0.8rem;
}

/* Bulles */
.tester-conversation .bubble {
  max-width: 75%;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--qz-text);
}

.tester-conversation .msg.assistant .bubble {
  background: #F0F2FA;
  border: 1px solid rgba(0,0,0,0.07);
  border-bottom-left-radius: 4px;
}

.tester-conversation .msg.user .bubble {
  background: rgba(140,0,255,0.1);
  border: 1px solid rgba(140,0,255,0.2);
  border-bottom-right-radius: 4px;
}

/* Message user = direction inversée */
.tester-conversation .msg.user {
  flex-direction: row-reverse;
}

/* Groupe de choix (choice-group) */
.tester-conversation .msg.choice-group {
  flex-direction: column;
  align-items: flex-end;
}

.tester-conversation .msg.choice-group .avatar {
  display: none;
}

/* Boutons de choix */
.tester-conversation .choice-bubbles {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
  width: 100%;
}

.tester-conversation .choice-bubbles button {
  cursor: pointer;
  padding: 0.7rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(140,0,255,0.2);
  background: rgba(140,0,255,0.05);
  color: #1A1A2E;
  font-size: 0.9rem;
  line-height: 1.4;
  font-family: 'Poppins', sans-serif;
  text-align: left;
  max-width: 90%;
  transition: all 0.18s ease;
  position: relative;
  overflow: hidden;
}

.tester-conversation .choice-bubbles button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--qz-gradient);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.tester-conversation .choice-bubbles button:hover {
  border-color: rgba(140,0,255,0.5);
  background: rgba(140,0,255,0.1);
  transform: translateX(-3px);
  box-shadow: 0 4px 16px rgba(140,0,255,0.12);
}

.tester-conversation .choice-bubbles button:hover::before {
  opacity: 0.08;
}

.tester-conversation .choice-bubbles button:focus-visible {
  outline: 2px solid var(--qz-amber);
  outline-offset: 2px;
}

.tester-conversation .choice-bubbles button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* Typing indicator */
.tester-conversation .typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 0;
}

.tester-conversation .typing .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(26,26,46,0.3);
  animation: qzTypingDot 1.2s ease-in-out infinite;
}
.tester-conversation .typing .dot:nth-child(2) { animation-delay: 0.2s; }
.tester-conversation .typing .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes qzTypingDot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30%            { opacity: 1;   transform: translateY(-5px); }
}

/* Raccourcis clavier hint */
.qz-shortcuts-hint {
  text-align: center;
  color: var(--qz-muted);
  font-size: 0.78rem;
  padding: 0.6rem 1.25rem;
  border-top: 1px solid rgba(0,0,0,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.qz-shortcuts-hint kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(0,0,0,0.04);
  font-size: 0.72rem;
  font-family: monospace;
  color: var(--qz-text);
  min-width: 22px;
}

/* ============================================================
   RÉSULTATS — Page des résultats
   ============================================================ */

.qz-result {
  min-height: 100svh;
  background: #F7F7FC;
  padding-top: 80px;
  position: relative;
}

/* Hero résultats */
.qz-result__hero {
  background: var(--qz-bg);
  padding: 3rem 1.5rem 5rem;
  position: relative;
  overflow: hidden;
}

.qz-result__hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  top: -200px;
  right: -100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,154,60,0.22) 0%, transparent 70%);
  pointer-events: none;
}

.qz-result__hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  bottom: -100px;
  left: -50px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(140,0,255,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.qz-result__hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.qz-result__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(255,154,60,0.12);
  border: 1px solid rgba(255,154,60,0.4);
  color: #FFCF8A;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 1.25rem;
}

.qz-result__title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 1rem;
  font-family: 'Poppins', sans-serif;
  line-height: 1.2;
}

.qz-result__title span {
  background: var(--qz-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.qz-result__lead {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* Badges langages dominants */
.qz-result__badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.qz-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
}

.qz-badge--dominant {
  background: var(--qz-gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255,63,127,0.35);
}

.qz-badge--secondary {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85);
}

.qz-badge--confidence {
  background: rgba(255,196,0,0.12);
  border: 1px solid rgba(255,196,0,0.35);
  color: #FFDC6A;
}

/* Corps des résultats */
.qz-result__body {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  position: relative;
  z-index: 1;
}

/* Carte de score — remontée dans le héro */
.qz-score-card {
  background: #fff;
  border-radius: var(--qz-radius);
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
  padding: 2rem;
  margin-top: -2.5rem;
  margin-bottom: 1.5rem;
}

.qz-score-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1A1A2E;
  margin: 0 0 1.5rem;
  font-family: 'Poppins', sans-serif;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qz-score-card__title::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 3px;
  background: var(--qz-gradient);
  border-radius: 2px;
}

/* Liste de scores */
.qz-score-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.qz-score-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.qz-score-item--top .qz-score-label {
  color: #1A1A2E;
}

.qz-score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.qz-score-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: #2A2A3E;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qz-score-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--qz-gradient);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.qz-score-rank--low {
  background: #EFEFEF;
  color: #888;
}

.qz-score-value {
  font-size: 0.85rem;
  font-family: 'Poppins', sans-serif;
  color: #888;
  white-space: nowrap;
}

.qz-score-bar {
  height: 8px;
  background: #F0F0F8;
  border-radius: 999px;
  overflow: hidden;
}

.qz-score-fill {
  display: block;
  height: 100%;
  background: var(--qz-gradient);
  border-radius: 999px;
  width: 0%;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.qz-score-item:nth-child(2) .qz-score-fill {
  background: linear-gradient(135deg, #FF3F7F, #FFC400);
  transition-delay: 0.1s;
}
.qz-score-item:nth-child(3) .qz-score-fill {
  background: linear-gradient(135deg, #FFC400, #FF9A3C);
  transition-delay: 0.2s;
}
.qz-score-item:nth-child(4) .qz-score-fill,
.qz-score-item:nth-child(5) .qz-score-fill {
  background: #E8E8F0;
  transition-delay: 0.3s;
}

/* Grille basse : email + actions */
.qz-result__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* Carte email */
.qz-email-card {
  background: var(--qz-bg);
  border-radius: var(--qz-radius);
  padding: 1.75rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.qz-email-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(140,0,255,0.3) 0%, rgba(255,63,127,0.2) 100%);
  pointer-events: none;
}

.qz-email-card__inner {
  position: relative;
  z-index: 1;
}

.qz-email-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
  font-family: 'Poppins', sans-serif;
}

.qz-email-card__text {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.55;
  margin: 0 0 1.25rem;
}

.qz-email-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.qz-email-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--qz-radius-sm);
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 0.9rem;
  font-family: 'Poppins', sans-serif;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.qz-email-input::placeholder {
  color: rgba(255,255,255,0.35);
}

.qz-email-input:focus {
  border-color: rgba(255,154,60,0.6);
  box-shadow: 0 0 0 3px rgba(255,154,60,0.15);
}

.qz-email-btn {
  padding: 0.75rem 1.25rem;
  border-radius: var(--qz-radius-sm);
  background: var(--qz-gradient);
  border: none;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.qz-email-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.qz-email-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.qz-email-msg {
  font-size: 0.82rem;
  line-height: 1.4;
  margin: 0;
  min-height: 1.2em;
}

.qz-email-msg[data-state="success"] { color: #6EE7B7; }
.qz-email-msg[data-state="error"]   { color: #FCA5A5; }

/* Carte actions (retenter + landing) */
.qz-actions-card {
  background: #fff;
  border-radius: var(--qz-radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

.qz-actions-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: #1A1A2E;
  margin: 0 0 0.25rem;
  font-family: 'Poppins', sans-serif;
}

.qz-actions-card__text {
  font-size: 0.875rem;
  color: #888;
  line-height: 1.5;
  margin: 0 0 0.5rem;
}

.qz-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--qz-radius-sm);
  background: var(--qz-gradient);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.qz-btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,63,127,0.3);
}

.qz-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--qz-radius-sm);
  background: transparent;
  border: 1px solid #E0E0F0;
  color: #555;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.qz-btn-secondary:hover {
  border-color: var(--qz-pink);
  color: var(--qz-pink);
  background: rgba(255,63,127,0.04);
}

/* État "résultat non disponible" */
.qz-result__empty {
  max-width: 560px;
  margin: 3rem auto;
  text-align: center;
  padding: 3.5rem 2.5rem;
  background: #fff;
  border-radius: var(--qz-radius);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.qz-empty-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  display: block;
}
.qz-empty-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1A1A2E;
  margin: 0 0 0.75rem;
  font-family: 'Poppins', sans-serif;
}
.qz-empty-desc {
  color: #666;
  font-size: 1rem;
  line-height: 1.65;
  margin: 0 0 2rem;
}
.qz-empty-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}
.qz-result__empty p {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 1.5rem;
}

/* ── Animation reveal ─────────────────────────────────────────── */
.qz-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.qz-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .qz-shortcuts-hint {
    display: none;
  }

  .qz-wizard__inner {
    padding: 1.5rem 1rem 2.5rem;
  }

  .tester-conversation {
    height: 350px;
  }

  .tester-conversation .bubble {
    max-width: 88%;
    font-size: 0.9rem;
  }

  .tester-conversation .choice-bubbles button {
    max-width: 100%;
    font-size: 0.85rem;
  }

  .qz-result__hero {
    padding: 2rem 1rem 4rem;
  }

  .qz-result__body {
    padding: 0 1rem 2rem;
  }

  .qz-score-card {
    padding: 1.5rem 1.25rem;
  }

  .qz-result__grid {
    grid-template-columns: 1fr;
  }
  /* Sur mobile, la card email doit être visible immédiatement sans attendre le scroll */
  .qz-result__grid.qz-reveal {
    opacity: 1;
    transform: none;
  }

  .qz-email-card {
    padding: 2rem 1.5rem;
    order: -1; /* toujours en premier sur mobile */
    box-shadow: 0 0 0 1.5px rgba(255,63,127,0.45), 0 8px 32px rgba(140,0,255,0.18);
  }

  .qz-email-card::after {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1.5px;
    border-radius: var(--qz-radius);
    background: var(--qz-gradient);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
  }

  .qz-email-card__title {
    font-size: 1.2rem;
    background: var(--qz-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
  }

  .qz-email-card__title::before {
    content: '✉️ ';
    -webkit-text-fill-color: initial;
  }

  .qz-email-card__text {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
  }

  .qz-email-btn {
    padding: 0.9rem 1.25rem;
    font-size: 1rem;
  }

  .qz-actions-card {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .qz-header__title {
    font-size: 1.5rem;
  }

  .qz-header__meta {
    font-size: 0.8rem;
    gap: 0.75rem;
  }

  .tester-conversation {
    height: 300px;
  }

  .qz-result__title {
    font-size: 1.8rem;
  }
}

/* =============================================
   OVERLAY D'ANALYSE DES RÉSULTATS
   ============================================= */
@keyframes qzOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes qzHeartPulse {
  0%, 100% { transform: scale(1);    filter: drop-shadow(0 0 8px rgba(255,63,127,0.5)); }
  50%       { transform: scale(1.18); filter: drop-shadow(0 0 24px rgba(255,63,127,0.9)); }
}
@keyframes qzBarGrow {
  from { width: 0%; }
  to   { width: 100%; }
}
@keyframes qzStepIn {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes qzCheckPop {
  0%   { transform: scale(0) rotate(-30deg); opacity: 0; }
  70%  { transform: scale(1.3) rotate(4deg); opacity: 1; }
  100% { transform: scale(1) rotate(0);      opacity: 1; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.qz-analysis-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0A0F1E;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: qzOverlayIn 0.4s ease forwards;
}
.qz-analysis-overlay[hidden] { display: none; }

.qz-analysis-overlay::before,
.qz-analysis-overlay::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.qz-analysis-overlay::before {
  width: 520px; height: 520px;
  top: -120px; right: -100px;
  background: radial-gradient(circle, rgba(140,0,255,0.18) 0%, transparent 70%);
}
.qz-analysis-overlay::after {
  width: 400px; height: 400px;
  bottom: -80px; left: -80px;
  background: radial-gradient(circle, rgba(255,63,127,0.14) 0%, transparent 70%);
}

.qz-analysis__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
  max-width: 440px;
  padding: 2rem 1.5rem;
  width: 100%;
}

.qz-analysis__icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(255,63,127,0.1);
  border: 1px solid rgba(255,63,127,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FF3F7F;
  animation: qzHeartPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

.qz-analysis__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.25;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.75) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

.qz-analysis__subtitle {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.5);
  margin: -0.75rem 0 0;
}

.qz-analysis__bar-wrap {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 99px;
  overflow: hidden;
}
.qz-analysis__bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, #8C00FF, #FF3F7F, #FFC400);
}
.qz-analysis__bar-fill.is-animating {
  animation: qzBarGrow 3.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.qz-analysis__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.qz-analysis__step {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.35);
  font-size: 0.9rem;
  opacity: 0;
  transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.qz-analysis__step.is-visible {
  animation: qzStepIn 0.4s ease forwards;
}
.qz-analysis__step.is-done {
  color: rgba(255,255,255,0.9);
  background: rgba(255,63,127,0.08);
  border-color: rgba(255,63,127,0.2);
}

.qz-analysis__step-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.qz-analysis__step.is-visible .qz-analysis__step-icon {
  border-color: rgba(255,63,127,0.5);
  border-top-color: #FF3F7F;
  animation: spin 0.8s linear infinite;
}
.qz-analysis__step.is-done .qz-analysis__step-icon {
  animation: none;
  background: linear-gradient(135deg, #8C00FF, #FF3F7F);
  border-color: transparent;
}
.qz-analysis__step.is-done .qz-analysis__step-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='2,6 5,9 10,3'/%3E%3C/svg%3E") center/12px no-repeat;
  animation: qzCheckPop 0.35s ease forwards;
}

@media (max-width: 480px) {
  .qz-analysis__title { font-size: 1.3rem; }
  .qz-analysis__icon  { width: 72px; height: 72px; }
  .qz-analysis__inner { gap: 1.25rem; }
}
