/* ================================================================
   AstroVisa — Simulateur d'entretien Campus France
   Reprend les tokens du site (css/style.css) : identité cyan/bleu,
   Poppins pour les titres, Manrope pour le texte.
================================================================ */
#cf-app {
  --cf-accent: #0d9bf2;
  --cf-cyan: #19c8e0;
  --cf-navy: #072033;
  --cf-ink: #10222f;
  --cf-sub: #68849a;
  --cf-line: #dcebf4;
  --cf-paper: #f3f9fc;
  --cf-good: #12b886;
  --cf-mid: #d97706;
  --cf-low: #dc2626;
  --cf-r: 16px;
  --cf-r-lg: 22px;
  --cf-shadow: 0 18px 40px -14px rgba(7, 32, 51, .18);
  min-height: 60vh;
  font-family: 'Manrope', sans-serif;
  color: var(--cf-ink);
}
#cf-app * { box-sizing: border-box; }

.cf-wrap { max-width: 860px; margin: 0 auto; }
.cf-card {
  background: #fff; border: 1px solid var(--cf-line); border-radius: var(--cf-r-lg);
  box-shadow: var(--cf-shadow); padding: 34px 32px;
}
.cf-card h2 {
  font-family: 'Poppins', 'Manrope', sans-serif; font-size: 26px; font-weight: 800;
  color: var(--cf-navy); margin: 0 0 10px; line-height: 1.25;
}
.cf-h3 {
  font-family: 'Poppins', 'Manrope', sans-serif; font-size: 18px; font-weight: 800;
  color: var(--cf-navy); margin: 30px 0 14px; padding-bottom: 9px;
  border-bottom: 2px solid var(--cf-line);
}
.cf-h4 { font-size: 14.5px; font-weight: 800; color: var(--cf-navy); margin: 22px 0 10px; }
.cf-sub { font-size: 15px; line-height: 1.65; color: #33505f; margin: 0 0 18px; }
.cf-note { font-size: 13px; color: var(--cf-sub); line-height: 1.55; margin: 10px 0 0; }
.cf-signed { font-size: 12.5px; color: var(--cf-sub); margin: 16px 0 0; }
.cf-eyebrow {
  display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--cf-accent); margin-bottom: 10px;
}
.cf-lock { font-size: 40px; margin-bottom: 8px; }
.cf-disc {
  font-size: 11.5px; line-height: 1.6; color: var(--cf-sub);
  margin: 20px 4px 0; text-align: center;
}
.cf-err {
  margin-top: 12px; padding: 10px 13px; border-radius: 10px; font-size: 13px;
  color: #9a1212; background: #fef2f2; border: 1px solid #fecaca;
}

/* ─── Boutons ───────────────────────────────────────────────── */
.cf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border: 0; border-radius: 999px; cursor: pointer;
  font-family: 'Manrope', sans-serif; font-size: 14.5px; font-weight: 800;
  text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s;
}
.cf-btn-primary {
  background: linear-gradient(120deg, #19c8e0 0%, #0d9bf2 100%); color: #fff;
  box-shadow: 0 12px 34px -8px rgba(16, 170, 225, .55);
}
.cf-btn-primary:hover { transform: translateY(-1px); }
.cf-btn-rec { background: #fff; color: var(--cf-navy); border: 1.5px solid var(--cf-line); }
.cf-btn-rec:hover { border-color: var(--cf-accent); }
.cf-btn-rec.on { background: #fef2f2; border-color: #fca5a5; color: #b91c1c; }
.cf-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.cf-link {
  display: inline-block; margin-top: 14px; padding: 0; border: 0; background: none;
  color: var(--cf-accent); font-family: inherit; font-size: 13px; font-weight: 700;
  cursor: pointer; text-decoration: underline;
}
.cf-abandon { color: var(--cf-sub); margin: 14px 0 0; }

/* ─── Intro ─────────────────────────────────────────────────── */
.cf-bullets { list-style: none; margin: 4px 0 24px; padding: 0; }
.cf-bullets li {
  display: flex; gap: 11px; align-items: flex-start; padding: 11px 14px;
  margin-bottom: 8px; border-radius: 12px; background: var(--cf-paper);
  font-size: 14px; line-height: 1.6; color: #33505f;
}
.cf-bullets span { flex: none; font-size: 16px; }

/* ─── Members-only gate ─────────────────────────────────────────
   The sign-in card replaces the simulation, so it is narrower than a
   full step and centred: nothing else on screen competes with it. */
.cf-card-gate { max-width: 470px; margin-inline: auto; text-align: center; }
.cf-gate-logo { font-size: 34px; margin-bottom: 10px; }
.cf-card-gate .cf-sub { text-align: start; }
.cf-gate-notice {
  margin: 0 0 16px; padding: 10px 14px; border-radius: 11px; text-align: start;
  font-size: 13px; font-weight: 700; line-height: 1.55;
  color: #92400e; background: #fffbeb; border: 1px solid #fcd34d;
}
.cf-auth-tabs {
  display: flex; gap: 6px; padding: 5px; margin-bottom: 18px;
  border-radius: 12px; background: var(--cf-paper);
}
.cf-auth-tab {
  flex: 1; padding: 9px 12px; border: none; border-radius: 9px; cursor: pointer;
  font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 700;
  color: var(--cf-sub); background: transparent; transition: background .15s, color .15s;
}
.cf-auth-tab.active { background: #fff; color: var(--cf-navy); box-shadow: 0 1px 3px rgba(13, 42, 66, .1); }
.cf-auth-form { display: flex; flex-direction: column; gap: 14px; text-align: start; }
.cf-auth-form .cf-btn { margin-top: 4px; }

/* ─── Dossier ───────────────────────────────────────────────── */
.cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin-bottom: 16px; }
.cf-field { display: flex; flex-direction: column; gap: 6px; }
.cf-field > span { font-size: 12.5px; font-weight: 700; color: var(--cf-navy); }
.cf-field > span b { color: var(--cf-low); }
.cf-field input, .cf-field select, .cf-field textarea {
  width: 100%; padding: 11px 13px; border: 1.5px solid var(--cf-line); border-radius: 10px;
  font-family: 'Manrope', sans-serif; font-size: 14px; color: var(--cf-ink);
  background: #fff; transition: border-color .15s;
}
.cf-field input:focus, .cf-field select:focus, .cf-field textarea:focus {
  outline: none; border-color: var(--cf-accent);
}
.cf-field textarea { resize: vertical; line-height: 1.6; }
.cf-field-wide { margin-bottom: 18px; }
.cf-field-narrow { max-width: 220px; margin-bottom: 20px; }

/* Notice on the dossier form: answers are spoken, so a microphone is needed. */
.cf-mode-note {
  margin: 6px 0 20px; padding: 11px 15px; border-radius: 11px;
  font-size: 12.8px; line-height: 1.55; color: #0b5f96;
  background: #e8f5fe; border: 1px solid #bfe3fb;
}

/* ─── Entretien ─────────────────────────────────────────────── */
.cf-itw-head { margin-bottom: 14px; }
.cf-itw-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; flex-wrap: wrap; }
.cf-badge {
  font-size: 12.5px; font-weight: 800; color: #0b5f96; background: #e8f5fe;
  border: 1px solid #bfe3fb; border-radius: 999px; padding: 5px 14px;
}
.cf-count { font-size: 12.5px; font-weight: 700; color: var(--cf-sub); }
.cf-progress { height: 7px; border-radius: 999px; background: var(--cf-line); overflow: hidden; }
.cf-progress-fill {
  height: 100%; border-radius: 999px; transition: width .4s ease;
  background: linear-gradient(120deg, #19c8e0 0%, #0d9bf2 100%);
}
.cf-card-itw { padding: 28px 30px; }

.cf-agent-head { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.cf-avatar {
  flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-size: 13px; font-weight: 800; color: #fff;
  background: linear-gradient(120deg, #19c8e0 0%, #0d9bf2 100%);
}
.cf-agent-head b { display: block; font-size: 14px; color: var(--cf-navy); }
.cf-agent-head small { font-size: 12px; color: var(--cf-sub); }

/* Voice controls: replay and mute. Pushed to the far end of the agent header
   so the question itself stays the focus. */
.cf-voice-ctrl { margin-inline-start: auto; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.cf-icon-btn {
  border: 1.5px solid var(--cf-line); background: #fff; color: var(--cf-navy);
  border-radius: 999px; padding: 6px 12px; cursor: pointer;
  font-family: 'Manrope', sans-serif; font-size: 12px; font-weight: 700;
  transition: border-color .15s, background .15s;
}
.cf-icon-btn:hover { border-color: var(--cf-accent); }
.cf-icon-btn:disabled { opacity: .5; cursor: default; }
.cf-icon-btn.off { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.cf-speak-state { font-size: 11.5px; font-weight: 700; color: var(--cf-sub); }
.cf-speak-state:empty { display: none; }
.cf-speak-loading { color: var(--cf-accent); }
.cf-speak-playing { color: var(--cf-good); }
.cf-speak-error { color: var(--cf-mid); }
.cf-field-hint { font-size: 11.5px; color: var(--cf-sub); line-height: 1.45; }
.cf-reply { font-size: 13.5px; color: var(--cf-sub); font-style: italic; margin: 0 0 8px; }
.cf-question {
  font-family: 'Poppins', 'Manrope', sans-serif; font-size: 19px; font-weight: 700;
  line-height: 1.5; color: var(--cf-navy); margin: 0 0 22px;
}
.cf-current { padding-bottom: 4px; }

/* Answers are spoken only: the transcript is shown back for confirmation, not
   as an editable field. */
.cf-said {
  margin-top: 12px; padding: 13px 16px; border-radius: 12px;
  background: rgba(13, 155, 242, .06); border: 1px solid #bfe3fb;
}
.cf-said-label {
  display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .6px;
  text-transform: uppercase; color: var(--cf-accent); margin-bottom: 5px;
}
.cf-said-text { margin: 0; font-size: 15px; line-height: 1.65; color: var(--cf-ink); }
.cf-transcribing {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin-top: 12px; padding: 14px; border-radius: 12px;
  background: var(--cf-paper); border: 1px dashed var(--cf-line);
  font-size: 13.5px; color: var(--cf-sub);
}
.cf-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

.cf-rec-panel {
  background: var(--cf-navy); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px;
  transition: box-shadow .2s;
}
.cf-rec-panel.on { box-shadow: 0 0 0 2px #ef4444; }
/* Conversation continue : le micro est ouvert en permanence, donc le liseré
   rouge d'un enregistrement classique serait alarmant pour rien. Bleu quand
   l'agent écoute, vert dès qu'il détecte de la parole. */
.cf-rec-panel.live.on { box-shadow: 0 0 0 2px var(--cf-accent); }
.cf-rec-panel.live.hearing { box-shadow: 0 0 0 2px var(--cf-good); }
.cf-rec-panel canvas { display: block; width: 100%; height: 46px; }
.cf-rec-row { display: flex; align-items: center; gap: 10px; margin-top: 7px; }
.cf-rec-dot {
  width: 9px; height: 9px; border-radius: 50%; background: #ef4444; flex: none;
  animation: cf-pulse 1.2s infinite;
}
@keyframes cf-pulse { 0%, 100% { opacity: 1 } 50% { opacity: .25 } }
.cf-rec-time { font-size: 12.5px; font-weight: 700; color: #e2e8f0; font-variant-numeric: tabular-nums; }
.cf-rec-hint { font-size: 11.5px; color: #94a3b8; line-height: 1.45; }
.cf-rec-panel.live.hearing .cf-rec-hint { color: #86efac; }
/* Sous-titre direct : les mots du candidat, au fil de sa réponse. Sert de
   preuve que le micro le capte — la vraie transcription arrive après. */
.cf-caption {
  display: none; margin: 9px 0 0; padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 13.5px; line-height: 1.55; color: #e2e8f0;
  max-height: 4.7em; overflow: hidden;
}
.cf-caption.on { display: block; }
.cf-live-toggle { display: block; margin-top: 11px; font-size: 12px; }

.cf-thinking {
  display: flex; align-items: center; gap: 7px; padding: 18px 4px;
  font-size: 14px; color: var(--cf-sub);
}
.cf-thinking-lg { justify-content: center; padding: 50px 4px; font-size: 15px; }
.cf-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--cf-accent);
  animation: cf-bounce 1.2s infinite;
}
.cf-dot:nth-child(2) { animation-delay: .15s; }
.cf-dot:nth-child(3) { animation-delay: .3s; }
@keyframes cf-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .45 } 30% { transform: translateY(-5px); opacity: 1 } }

/* ─── Historique des échanges ───────────────────────────────── */
.cf-history { margin-top: 16px; }
.cf-history summary {
  cursor: pointer; font-size: 13px; font-weight: 700; color: var(--cf-accent);
  padding: 10px 0;
}
.cf-thread { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.cf-exchange { display: flex; flex-direction: column; gap: 7px; }
.cf-bubble { padding: 12px 15px; border-radius: 14px; font-size: 14px; line-height: 1.6; }
.cf-bubble p { margin: 0; }
.cf-bubble .cf-who {
  display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .6px;
  text-transform: uppercase; margin-bottom: 5px; opacity: .7;
}
.cf-bubble-agent { background: var(--cf-paper); border: 1px solid var(--cf-line); color: var(--cf-navy); }
.cf-bubble-you { background: rgba(13, 155, 242, .07); border: 1px solid #bfe3fb; color: #33505f; margin-inline-start: 26px; }

/* ─── Bilan ─────────────────────────────────────────────────────
   Le compte rendu est long : il est découpé en sections-cartes
   empilées plutôt qu'en une seule carte fleuve, pour que le
   candidat puisse s'arrêter là où il veut. */
.cf-report-wrap { display: flex; flex-direction: column; gap: 18px; }
.cf-sec { padding: 26px 28px; }
.cf-sec-title {
  font-family: 'Poppins', 'Manrope', sans-serif; font-size: 17px; font-weight: 800;
  color: var(--cf-navy); margin: 0 0 4px;
}
.cf-sec-sub { font-size: 13px; line-height: 1.6; color: var(--cf-sub); margin: 0 0 18px; }

/* En-tête : verdict à gauche, note et chiffres clés à droite. */
.cf-hero {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 26px; flex-wrap: wrap; padding: 28px 30px; border-width: 2px;
}
.cf-hero-favorable { border-color: #86efac; background: linear-gradient(135deg, #f0fdf4 0%, #fff 62%); }
.cf-hero-reserve { border-color: #fcd34d; background: linear-gradient(135deg, #fffbeb 0%, #fff 62%); }
.cf-hero-defavorable { border-color: #fca5a5; background: linear-gradient(135deg, #fef2f2 0%, #fff 62%); }
.cf-hero-main { flex: 1 1 300px; min-width: 0; }
.cf-hero-verdict {
  display: block; margin: 8px 0 2px;
  font-family: 'Poppins', 'Manrope', sans-serif; font-size: 27px; font-weight: 800;
  line-height: 1.2; color: var(--cf-navy);
}
.cf-hero-label {
  display: block; font-size: 11px; font-weight: 800; letter-spacing: .8px;
  text-transform: uppercase; color: var(--cf-sub);
}
.cf-hero-detail { font-size: 14.5px; line-height: 1.7; color: #33505f; margin: 14px 0 0; }
.cf-hero-side { flex: 0 0 auto; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

/* Anneau de score, tracé en SVG pour rester net à l'impression. */
.cf-ring { position: relative; width: 116px; height: 116px; flex: none; }
.cf-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.cf-ring circle { fill: none; stroke-width: 11; stroke-linecap: round; }
.cf-ring-bg { stroke: var(--cf-line); }
.cf-ring-fg { transition: stroke-dashoffset .9s cubic-bezier(.4, 0, .2, 1); }
.cf-ring-good .cf-ring-fg { stroke: var(--cf-good); }
.cf-ring-mid .cf-ring-fg { stroke: var(--cf-mid); }
.cf-ring-low .cf-ring-fg { stroke: var(--cf-low); }
.cf-ring-text {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0;
}
.cf-ring-text b {
  font-family: 'Poppins', 'Manrope', sans-serif; font-size: 32px; font-weight: 800;
  line-height: 1; color: var(--cf-navy); font-variant-numeric: tabular-nums;
}
.cf-ring-text small { font-size: 11.5px; font-weight: 700; color: var(--cf-sub); }

.cf-stats { display: flex; flex-direction: column; gap: 9px; }
.cf-stat {
  min-width: 118px; padding: 9px 13px; border-radius: 11px;
  background: rgba(255, 255, 255, .72); border: 1px solid var(--cf-line);
}
.cf-stat b {
  display: block; font-family: 'Poppins', 'Manrope', sans-serif; font-size: 18px;
  font-weight: 800; line-height: 1.15; color: var(--cf-navy); font-variant-numeric: tabular-nums;
}
.cf-stat b small { font-size: 11.5px; font-weight: 700; color: var(--cf-sub); }
.cf-stat span { font-size: 11px; font-weight: 700; color: var(--cf-sub); }

/* Une carte par critère, la note en pastille et une barre fine. */
.cf-crit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 13px; }
.cf-crit-card {
  padding: 15px 17px; border-radius: 13px; border: 1px solid var(--cf-line);
  background: var(--cf-paper); border-inline-start-width: 4px;
}
.cf-crit-good { border-inline-start-color: var(--cf-good); }
.cf-crit-mid { border-inline-start-color: var(--cf-mid); }
.cf-crit-low { border-inline-start-color: var(--cf-low); }
.cf-crit-card header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.cf-crit-name { font-size: 13.5px; font-weight: 800; color: var(--cf-navy); }
.cf-crit-score {
  flex: none; font-family: 'Poppins', 'Manrope', sans-serif; font-size: 19px; font-weight: 800;
  color: var(--cf-navy); font-variant-numeric: tabular-nums;
}
.cf-crit-score small { font-size: 11px; font-weight: 700; color: var(--cf-sub); }
.cf-crit-track { height: 6px; margin: 9px 0 10px; border-radius: 999px; background: var(--cf-line); overflow: hidden; }
.cf-crit-track span { display: block; height: 100%; border-radius: 999px; transition: width .6s ease; }
.cf-crit-good .cf-crit-track span { background: var(--cf-good); }
.cf-crit-mid .cf-crit-track span { background: var(--cf-mid); }
.cf-crit-low .cf-crit-track span { background: var(--cf-low); }
.cf-crit-card p { font-size: 13px; line-height: 1.65; color: #33505f; margin: 0; }

/* Question par question : la partie qui fait progresser. */
.cf-ans-grid { display: flex; flex-direction: column; gap: 14px; }
.cf-ans-card {
  padding: 17px 19px; border-radius: 14px; border: 1px solid var(--cf-line);
  background: #fff; border-inline-start-width: 4px;
}
.cf-ans-good { border-inline-start-color: var(--cf-good); }
.cf-ans-mid { border-inline-start-color: var(--cf-mid); }
.cf-ans-low { border-inline-start-color: var(--cf-low); }
.cf-ans-head { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.cf-ans-num {
  flex: none; width: 25px; height: 25px; border-radius: 8px; display: grid; place-items: center;
  font-size: 12px; font-weight: 800; color: #fff; background: var(--cf-navy);
}
.cf-ans-verdict {
  font-size: 10.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px;
}
.cf-vtag-solide { color: #166534; background: #dcfce7; }
.cf-vtag-passable { color: #92400e; background: #fef3c7; }
.cf-vtag-faible { color: #9a3412; background: #ffedd5; }
.cf-vtag-hors_sujet { color: #b91c1c; background: #fee2e2; }
.cf-vtag-sans_reponse { color: #475569; background: #e2e8f0; }
.cf-ans-score {
  margin-inline-start: auto; flex: none;
  font-family: 'Poppins', 'Manrope', sans-serif; font-size: 17px; font-weight: 800;
  color: var(--cf-navy); font-variant-numeric: tabular-nums;
}
.cf-ans-score small { font-size: 10.5px; font-weight: 700; color: var(--cf-sub); }
.cf-ans-q { font-size: 14.5px; font-weight: 700; line-height: 1.5; color: var(--cf-navy); margin: 0 0 10px; }
.cf-ans-said {
  margin: 0 0 11px; padding: 10px 14px; border-radius: 11px;
  background: var(--cf-paper); border-inline-start: 3px solid #cbd5e1;
  font-size: 13.5px; line-height: 1.65; color: #33505f; font-style: italic;
}
.cf-ans-said cite {
  display: block; margin-top: 5px; font-size: 11px; font-style: normal;
  font-weight: 700; color: var(--cf-sub);
}
.cf-ans-none {
  margin: 0 0 11px; font-size: 13px; font-weight: 700; color: #b91c1c;
}
.cf-ans-line { font-size: 13px; line-height: 1.65; margin: 0 0 7px; color: #33505f; }
.cf-ans-line b {
  display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .4px;
  text-transform: uppercase; margin-inline-end: 7px;
}
.cf-ans-good-line { }
.cf-ans-good b { color: #15803d; }
.cf-ans-miss b { color: #c2410c; }
.cf-ans-model {
  margin-top: 11px; padding: 12px 15px; border-radius: 11px;
  background: rgba(13, 155, 242, .06); border: 1px dashed #7dd3fc;
}
.cf-ans-model span {
  display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .5px;
  text-transform: uppercase; color: #0369a1; margin-bottom: 5px;
}
.cf-ans-model p { margin: 0; font-size: 13.5px; line-height: 1.7; color: #0c4a6e; }

.cf-criteria { display: flex; flex-direction: column; gap: 16px; }
.cf-criteria-compact { gap: 9px; }
.cf-criterion { padding-bottom: 14px; border-bottom: 1px dashed var(--cf-line); }
.cf-criterion:last-child { border-bottom: 0; padding-bottom: 0; }
.cf-bar-row { display: flex; align-items: center; gap: 12px; }
.cf-bar-label { flex: 0 0 200px; font-size: 13.5px; font-weight: 700; color: var(--cf-navy); }
.cf-bar-track { flex: 1; height: 9px; border-radius: 999px; background: var(--cf-line); overflow: hidden; }
.cf-bar-fill { display: block; height: 100%; border-radius: 999px; transition: width .5s ease; }
.cf-bar-fill.cf-good { background: var(--cf-good); }
.cf-bar-fill.cf-mid { background: var(--cf-mid); }
.cf-bar-fill.cf-low { background: var(--cf-low); }
.cf-bar-val { flex: none; font-size: 12.5px; font-weight: 800; color: var(--cf-sub); font-variant-numeric: tabular-nums; }
.cf-crit-note { font-size: 13.5px; line-height: 1.65; color: #33505f; margin: 9px 0 0 0; }

.cf-level {
  display: flex; align-items: center; gap: 15px; padding: 15px 18px; margin-bottom: 16px;
  border-radius: var(--cf-r); background: var(--cf-paper); border: 1px solid var(--cf-line);
}
.cf-level-badge {
  flex: none; width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  font-family: 'Poppins', 'Manrope', sans-serif; font-size: 19px; font-weight: 800; color: #fff;
  background: linear-gradient(120deg, #19c8e0 0%, #0d9bf2 100%);
}
.cf-level b { font-size: 13.5px; color: var(--cf-navy); }
.cf-level p { font-size: 13.5px; line-height: 1.6; color: #33505f; margin: 4px 0 0; }

.cf-corrections { display: flex; flex-direction: column; gap: 12px; }
.cf-corr { padding: 13px 16px; border-radius: 12px; background: var(--cf-paper); border: 1px solid var(--cf-line); }
.cf-corr p { margin: 0; font-size: 13.8px; line-height: 1.6; }
.cf-corr span {
  display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .5px;
  text-transform: uppercase; margin-inline-end: 7px;
}
.cf-corr-bad { color: #9a3412; }
.cf-corr-bad span { color: #c2410c; }
.cf-corr-good { color: #166534; margin-top: 6px !important; }
.cf-corr-good span { color: #15803d; }
.cf-corr-why { margin-top: 7px !important; font-size: 12.5px !important; color: var(--cf-sub); font-style: italic; }

.cf-expr { list-style: none; margin: 0; padding: 0; }
.cf-expr li {
  padding: 11px 15px; margin-bottom: 8px; border-radius: 11px;
  background: rgba(13, 155, 242, .05); border: 1px solid #bfe3fb;
}
.cf-expr b { font-size: 14px; color: var(--cf-navy); }
.cf-expr small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--cf-sub); line-height: 1.5; }

.cf-take-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); gap: 14px; margin-bottom: 6px; }
.cf-take {
  padding: 15px 17px; border-radius: 13px; border: 1px solid var(--cf-line);
  background: var(--cf-paper); border-top-width: 3px;
}
.cf-take-good { border-top-color: var(--cf-good); }
.cf-take-work { border-top-color: var(--cf-mid); }
.cf-take-tip { border-top-color: var(--cf-accent); }
.cf-take h4 { font-size: 13px; font-weight: 800; color: var(--cf-navy); margin: 0 0 9px; }
.cf-list { margin: 0; padding-inline-start: 19px; }
.cf-list li { font-size: 13px; line-height: 1.65; color: #33505f; margin-bottom: 7px; }
.cf-list li:last-child { margin-bottom: 0; }

.cf-report-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.cf-btn-ghost {
  background: #fff; color: var(--cf-navy); border: 1.5px solid var(--cf-line);
}
.cf-btn-ghost:hover { border-color: var(--cf-accent); }

/* ─── Mobile ────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .cf-card, .cf-card-itw, .cf-sec { padding: 22px 17px; }
  .cf-hero { padding: 22px 18px; }
  .cf-card h2 { font-size: 22px; }
  .cf-grid { grid-template-columns: 1fr; }
  .cf-question { font-size: 17px; }
  .cf-bar-row { flex-wrap: wrap; gap: 6px 10px; }
  .cf-bar-label { flex: 1 1 100%; }
  .cf-hero-verdict { font-size: 23px; }
  .cf-hero-side { width: 100%; }
  .cf-stats { flex: 1; flex-direction: row; flex-wrap: wrap; }
  .cf-stat { flex: 1 1 90px; min-width: 0; }
  .cf-crit-grid { grid-template-columns: 1fr; }
  .cf-bubble-you { margin-inline-start: 12px; }
  .cf-actions .cf-btn { flex: 1 1 100%; }
  .cf-report-actions .cf-btn { flex: 1 1 100%; }
  /* The agent header stacks on a phone, so the voice controls move onto their
     own full-width row instead of being squeezed beside the avatar. */
  .cf-agent-head { flex-wrap: wrap; }
  .cf-voice-ctrl { margin-inline-start: 0; width: 100%; }
}

/* ─── Impression du bilan ───────────────────────────────────────
   Le candidat imprime souvent son compte rendu pour le relire avant
   le vrai entretien : on retire tout ce qui n'a pas de sens sur
   papier et on déplie la transcription. */
@media print {
  .site-header, .site-footer, .to-top, .wa-float,
  .cf-report-actions, .cf-disc { display: none !important; }
  .cf-report-wrap { gap: 10px; }
  .cf-card, .cf-sec, .cf-hero {
    box-shadow: none; border: 1px solid #cbd5e1;
    break-inside: avoid; page-break-inside: avoid;
  }
  .cf-ans-card, .cf-crit-card, .cf-take { break-inside: avoid; page-break-inside: avoid; }
  .cf-history[open] summary { display: none; }
  .cf-history { break-before: page; page-break-before: always; }
}

/* ─── RTL (version arabe du site : l'entretien reste en français) ─ */
[dir="rtl"] #cf-app .cf-question,
[dir="rtl"] #cf-app .cf-answer textarea,
[dir="rtl"] #cf-app .cf-bubble p,
[dir="rtl"] #cf-app .cf-ans-q,
[dir="rtl"] #cf-app .cf-ans-said,
[dir="rtl"] #cf-app .cf-ans-model p,
[dir="rtl"] #cf-app .cf-corr p { direction: ltr; text-align: start; }
