/* ══════════════════════════════════════════════════════════════════════
   WHILO TALK — la simulation d'entretien (28/11/2026)
   /app/candidat/entretien, /entretien/passer, /entretien/historique/:id
   Violet Whileresume (--wr-violet), sphère animée en vocal.
   ══════════════════════════════════════════════════════════════════════ */

.wr-talk { max-width: 980px; margin: 0 auto; padding: 8px 0 48px; display: flex; flex-direction: column; gap: 22px; }
.wr-talk h1 { margin: 0; }
.wr-talk__muted { color: var(--wr-muted); }

/* ── En-tête ── */
.wr-talk__hero {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 28px 30px; border-radius: var(--wr-r-3xl, 24px);
  background: radial-gradient(120% 140% at 100% 0%, #B597E6 0%, var(--wr-violet) 45%, var(--wr-violet-dark) 100%);
  color: #fff; box-shadow: var(--wr-shadow-hover);
}
.wr-talk__hero h1 { color: #fff; font-size: clamp(24px, 3.2vw, 34px); }
.wr-talk__hero p { margin: 8px 0 0; opacity: .92; max-width: 560px; line-height: 1.5; }
.wr-talk__badge {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .18); margin-bottom: 10px;
}
.wr-talk__orb { position: relative; width: 110px; height: 110px; flex: none; }
.wr-talk__orb span, .wr-talk__sphere span {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0%, rgba(255, 255, 255, .55) 22%, rgba(255, 255, 255, 0) 62%);
  border: 2px solid rgba(255, 255, 255, .45); animation: wr-talk-souffle 3.2s ease-in-out infinite;
}
.wr-talk__orb span:nth-child(2), .wr-talk__sphere span:nth-child(2) { inset: 14px; animation-delay: .4s; opacity: .8; }
.wr-talk__orb span:nth-child(3), .wr-talk__sphere span:nth-child(3) { inset: 30px; animation-delay: .8s; opacity: .65; }
@keyframes wr-talk-souffle { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }

/* ── Étapes du choix ── */
.wr-talk__form { display: flex; flex-direction: column; gap: 22px; }
.wr-talk__step h2 { display: flex; align-items: center; gap: 10px; font-size: 19px; margin: 0 0 12px; }
.wr-talk__num {
  width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--wr-violet-soft); color: var(--wr-violet-dark); font-size: 14px; font-weight: 800;
}
.wr-talk__hint { font-size: 13px; color: var(--wr-muted); margin: 8px 0 0; }
.wr-talk__modes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wr-talk__scenarios { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.wr-talk__mode input, .wr-talk__sc input { position: absolute; opacity: 0; pointer-events: none; }
.wr-talk__mode, .wr-talk__sc { position: relative; display: block; cursor: pointer; }
.wr-talk__mode-card, .wr-talk__sc-card {
  display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 16px 18px;
  border-radius: var(--wr-r-xl, 18px); border: 2px solid var(--wr-line); background: var(--wr-card, #fff);
  transition: border-color var(--wr-t), box-shadow var(--wr-t), transform var(--wr-t);
}
.wr-talk__mode-card svg { width: 26px; height: 26px; color: var(--wr-violet); }
.wr-talk__mode-card small, .wr-talk__sc-card small { color: var(--wr-muted); line-height: 1.45; }
.wr-talk__mode:hover .wr-talk__mode-card, .wr-talk__sc:hover .wr-talk__sc-card { box-shadow: var(--wr-shadow-hover); transform: translateY(-1px); }
.wr-talk__mode input:checked + .wr-talk__mode-card, .wr-talk__sc input:checked + .wr-talk__sc-card {
  border-color: var(--wr-violet); background: var(--wr-violet-softer); box-shadow: 0 0 0 4px rgba(138, 99, 193, .14);
}
.wr-talk__mode input:focus-visible + .wr-talk__mode-card, .wr-talk__sc input:focus-visible + .wr-talk__sc-card { outline: 3px solid var(--wr-violet-2); outline-offset: 2px; }
.wr-talk__sc-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.wr-talk__sc-meta span { font-size: 12px; font-weight: 600; color: var(--wr-violet-dark); background: var(--wr-violet-soft); padding: 3px 9px; border-radius: 99px; }

.wr-talk__go {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 18px 20px; border-radius: var(--wr-r-xl, 18px); background: var(--wr-violet-softer); border: 1px solid var(--wr-violet-soft);
}
.wr-talk__cv { flex: 1 1 360px; font-size: 13.5px; }
.wr-talk__cv p { margin: 6px 0 0; color: var(--wr-muted); }
.wr-talk__cv a { margin-left: 8px; color: var(--wr-violet-dark); font-weight: 600; }
.wr-talk__cv-ok { font-weight: 700; color: var(--wr-success); }
.wr-talk__go-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.wr-talk__go-btn small { color: var(--wr-muted); }

/* ── Historique ── */
.wr-talk__hist h2, .wr-talk__transcript h2 { font-size: 19px; margin: 6px 0 12px; }
.wr-talk__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wr-talk__row {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: var(--wr-r-lg, 14px);
  background: var(--wr-card, #fff); border: 1px solid var(--wr-line); color: inherit; text-decoration: none;
}
.wr-talk__row:hover { border-color: var(--wr-violet-2); box-shadow: var(--wr-shadow); }
.wr-talk__row-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wr-talk__row-txt small { color: var(--wr-muted); }
.wr-talk__row-txt em { color: var(--wr-violet-dark); font-style: normal; font-size: 13px; }
.wr-talk__score { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; flex: none; }
.wr-talk__score.is-good { background: #DCFCE7; color: #15803D; }
.wr-talk__score.is-mid { background: #FEF3C7; color: #B45309; }
.wr-talk__score.is-low { background: #FEE2E2; color: #B91C1C; }
.wr-talk__score.is-none { background: var(--wr-bg-2); color: var(--wr-muted); }
.wr-talk__chev { font-size: 22px; color: var(--wr-muted-2); }
.wr-talk__pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; }

/* ── En direct ── */
.wr-talk--live { max-width: 820px; gap: 14px; }
.wr-talk__bar {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--wr-r-xl, 18px);
  background: var(--wr-card, #fff); border: 1px solid var(--wr-line); position: sticky; top: calc(var(--wr-header-h, 64px) + 8px); z-index: 5;
}
.wr-talk__bar > div:nth-child(2) { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.wr-talk__bar small { color: var(--wr-muted); }
.wr-talk__bar-actions { display: flex; gap: 6px; }
.wr-talk__back { font-size: 26px; text-decoration: none; color: var(--wr-violet-dark); padding: 0 6px; }
.wr-talk__notice {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px;
  border-radius: var(--wr-r-lg, 14px); background: #FFF7ED; border: 1px solid #FED7AA; color: #9A3412;
}

.wr-talk__stage {
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
  padding: 34px 20px 26px; border-radius: var(--wr-r-3xl, 24px);
  background: radial-gradient(110% 120% at 50% 0%, #fff 0%, var(--wr-violet-softer) 60%, var(--wr-violet-soft) 100%);
  border: 1px solid var(--wr-violet-soft);
}
.wr-talk__sphere { position: relative; width: 168px; height: 168px; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #C7AEF0 0%, var(--wr-violet) 55%, var(--wr-violet-dark) 100%);
  box-shadow: 0 18px 50px rgba(107, 71, 166, .35); }
.wr-talk__sphere span { animation-play-state: paused; }
.wr-talk__sphere[data-etat="parle"] span { animation: wr-talk-parle .9s ease-in-out infinite; }
.wr-talk__sphere[data-etat="ecoute"] { box-shadow: 0 0 0 10px rgba(138, 99, 193, .14), 0 18px 50px rgba(107, 71, 166, .35); }
.wr-talk__sphere[data-etat="ecoute"] span { animation: wr-talk-souffle 1.6s ease-in-out infinite; }
.wr-talk__sphere[data-etat="pense"] span { animation: wr-talk-souffle 2.4s ease-in-out infinite; opacity: .5; }
@keyframes wr-talk-parle { 0%, 100% { transform: scale(1); } 30% { transform: scale(1.12); } 60% { transform: scale(.96); } }
.wr-talk__state { font-weight: 600; color: var(--wr-violet-dark); min-height: 1.4em; margin: 0; }
.wr-talk__live { min-height: 1.5em; max-width: 600px; color: var(--wr-ink-2); font-size: 17px; line-height: 1.5; margin: 0; }
.wr-talk__mic-row { display: flex; align-items: center; gap: 12px; }
.wr-talk__mic {
  width: 64px; height: 64px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: #fff; color: var(--wr-violet-dark); box-shadow: var(--wr-shadow-hover);
}
.wr-talk__mic svg { width: 28px; height: 28px; }
.wr-talk__mic.is-on { background: var(--wr-violet); color: #fff; animation: wr-talk-souffle 1.4s ease-in-out infinite; }
.wr-talk__mic:disabled { opacity: .45; cursor: default; }
.wr-talk__link { background: none; border: 0; color: var(--wr-violet-dark); font-weight: 600; cursor: pointer; text-decoration: underline; }
.wr-talk__ready { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 10px; }
.wr-talk__ready p { margin: 0; color: var(--wr-muted); max-width: 460px; }

.wr-talk__chat { max-height: 58vh; overflow: auto; padding: 4px 2px; }
.wr-talk__msgs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.wr-talk__msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; }
.wr-talk__msg p { margin: 2px 0 0; white-space: pre-line; line-height: 1.5; }
.wr-talk__msg--ia { align-self: flex-start; background: var(--wr-violet-softer); border: 1px solid var(--wr-violet-soft); border-bottom-left-radius: 6px; }
.wr-talk__msg--moi { align-self: flex-end; background: var(--wr-violet); color: #fff; border-bottom-right-radius: 6px; }
.wr-talk__msg--moi .wr-talk__who { color: rgba(255, 255, 255, .8); }
.wr-talk__who { font-size: 12px; font-weight: 700; color: var(--wr-violet-dark); }
.wr-talk__state--chat { text-align: center; margin-top: 10px; font-size: 14px; }

.wr-talk__composer {
  display: flex; gap: 10px; align-items: flex-end; padding: 10px; border-radius: var(--wr-r-xl, 18px);
  background: var(--wr-card, #fff); border: 1px solid var(--wr-line); position: sticky; bottom: 12px;
}
.wr-talk__composer textarea { flex: 1; resize: vertical; min-height: 46px; border: 0; outline: 0; font: inherit; padding: 8px; background: transparent; }

/* ── Analyse ── */
.wr-talk__analyse { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--wr-r-2xl, 20px); background: var(--wr-card, #fff); border: 1px solid var(--wr-line); box-shadow: var(--wr-shadow); }
.wr-talk__analyse h3 { font-size: 15px; margin: 12px 0 4px; color: var(--wr-violet-dark); }
.wr-talk__res-titre { margin: 0; font-size: 20px; }
.wr-talk__note { display: flex; gap: 20px; align-items: center; }
.wr-talk__note h2 { margin: 0 0 4px; font-size: 20px; }
.wr-talk__note p { margin: 0; line-height: 1.55; }
.wr-talk__ring {
  --p: 0; flex: none; width: 108px; height: 108px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: radial-gradient(closest-side, #fff 79%, transparent 80% 100%), conic-gradient(var(--wr-violet) calc(var(--p) * 1%), var(--wr-violet-soft) 0);
}
.wr-talk__ring strong { font-size: 32px; line-height: 1; color: var(--wr-violet-dark); }
.wr-talk__ring small { color: var(--wr-muted); }
.wr-talk__crit { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.wr-talk__crit li { display: flex; flex-direction: column; gap: 4px; }
.wr-talk__crit-nom { display: flex; justify-content: space-between; font-weight: 600; }
.wr-talk__crit small { color: var(--wr-muted); }
.wr-talk__bar-bg { height: 8px; border-radius: 99px; background: var(--wr-violet-soft); overflow: hidden; }
.wr-talk__bar-bg span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--wr-violet-2), var(--wr-violet)); }
.wr-talk__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wr-talk__col { padding: 12px 16px; border-radius: var(--wr-r-lg, 14px); }
.wr-talk__col ul, .wr-talk__tips { margin: 0; padding-left: 20px; line-height: 1.55; list-style: disc; }
.wr-talk__col li, .wr-talk__tips li { margin: 2px 0; }
.wr-talk__col--ok { background: #F0FDF4; }
.wr-talk__col--ok h3 { color: #15803D; }
.wr-talk__col--up { background: #FFF7ED; }
.wr-talk__col--up h3 { color: #B45309; }
.wr-talk__better blockquote { margin: 6px 0 0; padding: 12px 16px; border-left: 4px solid var(--wr-violet); background: var(--wr-violet-softer); border-radius: 0 12px 12px 0; line-height: 1.55; }
.wr-talk__fin-liens { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 14px 0 0; }
.wr-talk__loader { display: flex; justify-content: center; gap: 8px; padding: 18px; }
.wr-talk__loader span { width: 12px; height: 12px; border-radius: 50%; background: var(--wr-violet); animation: wr-talk-souffle 1s ease-in-out infinite; }
.wr-talk__loader span:nth-child(2) { animation-delay: .2s; }
.wr-talk__loader span:nth-child(3) { animation-delay: .4s; }
.wr-talk__head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.wr-talk__crumb a { color: var(--wr-violet-dark); font-weight: 600; text-decoration: none; }

@media (max-width: 720px) {
  .wr-talk__hero { padding: 22px; }
  .wr-talk__orb { display: none; }
  .wr-talk__modes, .wr-talk__cols { grid-template-columns: 1fr; }
  .wr-talk__note { flex-direction: column; text-align: center; }
  .wr-talk__sphere { width: 132px; height: 132px; }
  .wr-talk__msg { max-width: 94%; }
}
@media (prefers-reduced-motion: reduce) {
  .wr-talk__orb span, .wr-talk__sphere span, .wr-talk__mic.is-on, .wr-talk__loader span { animation: none !important; }
}

/* ══════════════════════════════════════════════════════════════════════════
   01/12/2026 — LE RECRUTEUR À L'ÉCRAN : WHILO OU LA BULLE VOCALE
   `--niveau` (0 à 1) est posé par public/js/entretien.js : rythme de parole
   quand il parle, volume du micro quand le candidat parle, respiration sinon.
   data-etat : "" | parle | ecoute | pense ; data-vue : whilo | bulle.
   ══════════════════════════════════════════════════════════════════════════ */
.wt-perso { --niveau: .06; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.wt-perso__scene { position: relative; width: 240px; height: 236px; display: grid; place-items: center; }

/* Les ondes : elles s'écartent avec le volume. */
.wt-perso__onde {
  position: absolute; left: 50%; top: 50%; width: 168px; height: 168px; margin: -84px 0 0 -84px;
  border-radius: 50%; border: 2px solid rgba(138, 99, 192, .38); pointer-events: none;
  transform: scale(calc(1 + var(--niveau) * .32)); opacity: calc(.12 + var(--niveau) * .75);
}
.wt-perso__onde:nth-child(2) { width: 198px; height: 198px; margin: -99px 0 0 -99px; transform: scale(calc(1 + var(--niveau) * .5)); opacity: calc(.06 + var(--niveau) * .5); }
.wt-perso__onde:nth-child(3) { width: 228px; height: 228px; margin: -114px 0 0 -114px; transform: scale(calc(1 + var(--niveau) * .7)); opacity: calc(.03 + var(--niveau) * .3); }
.wt-perso[data-etat="ecoute"] .wt-perso__onde { border-color: rgba(16, 185, 129, .45); }

/* Whilo : il flotte, se penche pour écouter, se balance en parlant. */
.wt-perso__whilo { position: relative; z-index: 2; display: block; transform-origin: 50% 100%;
  transform: translateY(calc(var(--niveau) * -12px)) scale(calc(1 + var(--niveau) * .07), calc(1 - var(--niveau) * .035)); }
.wt-perso__corps { position: relative; display: block; width: 148px; transform-origin: 50% 85%;
  filter: drop-shadow(0 14px 18px rgba(46, 26, 71, .22)); animation: wt-flotte 3.4s ease-in-out infinite; }
.wt-perso__whilo img { display: block; width: 100%; height: auto; }
.wt-perso[data-etat="ecoute"] .wt-perso__corps { animation: wt-ecoute 2.6s ease-in-out infinite; }
.wt-perso[data-etat="parle"] .wt-perso__corps { animation: wt-parle .55s ease-in-out infinite alternate; }
.wt-perso[data-etat="pense"] .wt-perso__corps { animation: wt-pense 2.2s ease-in-out infinite; }

/* 01/12/2026 — LA BOUCHE QUI PARLE. Le sourire de l'image (centré à 50 % /
   48,2 % de sa hauteur) est recouvert de la couleur du visage pendant que
   Whilo parle, et une bouche s'ouvre et se ferme avec --niveau (le rythme de
   la parole, relancé à chaque mot). Au repos : le sourire d'origine. */
.wt-perso__bouche { position: absolute; left: 50%; top: 48.6%; width: 21%; height: 7.5%; transform: translate(-50%, -50%);
  border-radius: 50%; background: #987BC5; box-shadow: 0 0 4px 3px #987BC5; opacity: 0; transition: opacity .12s; pointer-events: none; }
.wt-perso__bouche i { position: absolute; left: 50%; top: 42%; width: 64%; height: 130%; overflow: hidden;
  border-radius: 45% 45% 55% 55% / 35% 35% 65% 65%; background: #2B1D3F;
  transform: translate(-50%, -50%) scaleY(calc(.14 + var(--bouche, 0) * .86)); transform-origin: 50% 20%; }
.wt-perso__bouche i::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: -12%; height: 52%; border-radius: 50% 50% 0 0; background: #E86F9A; }
.wt-perso[data-etat="parle"] .wt-perso__bouche { opacity: 1; }
.wt-perso__ombre { position: absolute; left: 50%; bottom: 20px; width: 96px; height: 12px; margin-left: -48px; border-radius: 50%;
  background: rgba(46, 26, 71, .16); filter: blur(2px); transform: scaleX(calc(1 - var(--niveau) * .3)); }

/* Il réfléchit : trois points dans une bulle de pensée. */
.wt-perso__pensee { position: absolute; z-index: 3; top: 10px; right: 8px; display: flex; gap: 5px; padding: 9px 12px;
  background: #fff; border-radius: 18px; box-shadow: 0 6px 18px rgba(46, 26, 71, .12); opacity: 0; transform: scale(.6); transition: opacity .2s, transform .2s; }
.wt-perso__pensee span { width: 7px; height: 7px; border-radius: 50%; background: var(--wr-violet); animation: wt-point 1.2s ease-in-out infinite; }
.wt-perso__pensee span:nth-child(2) { animation-delay: .15s; }
.wt-perso__pensee span:nth-child(3) { animation-delay: .3s; }
.wt-perso[data-etat="pense"] .wt-perso__pensee { opacity: 1; transform: scale(1); }

/* La bulle vocale (au choix) : un orbe qui respire au rythme de la voix. */
.wt-perso__orbe { display: none; position: relative; z-index: 2; width: 152px; height: 152px; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 34% 28%, #fff 0, #EFE6FD 14%, #B99BE6 42%, #8A63C0 68%, #3F2466 100%);
  box-shadow: 0 22px 54px rgba(138, 99, 192, .45), inset 0 -14px 34px rgba(46, 26, 71, .35);
  transform: scale(calc(.9 + var(--niveau) * .24)); }
.wt-perso__orbe span, .wt-perso__orbe i { position: absolute; inset: -30%; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 15%, rgba(255, 255, 255, .45) 25%, transparent 40% 60%, rgba(196, 167, 245, .6) 72%, transparent 85%);
  mix-blend-mode: soft-light; animation: wt-tourne 7s linear infinite; }
.wt-perso__orbe i { animation-direction: reverse; animation-duration: 11s; opacity: .7; }
.wt-perso[data-etat="parle"] .wt-perso__orbe span { animation-duration: 2.4s; }
.wt-perso[data-etat="ecoute"] .wt-perso__orbe { background: radial-gradient(circle at 34% 28%, #fff 0, #E6F7F1 14%, #9DDCC5 42%, #6FAE9A 64%, #8A63C0 100%); }
.wt-perso[data-vue="bulle"] .wt-perso__orbe { display: block; }
.wt-perso[data-vue="bulle"] .wt-perso__whilo, .wt-perso[data-vue="bulle"] .wt-perso__ombre { display: none; }

/* Ce qu'il dit, dans une bulle de BD sous lui. */
.wt-perso__replique { position: relative; max-width: 460px; margin: 0; padding: 10px 16px; border-radius: 16px;
  background: #fff; border: 1px solid var(--wr-line); box-shadow: 0 6px 18px rgba(46, 26, 71, .08);
  color: var(--wr-deep); font-size: 16px; line-height: 1.45; }
.wt-perso__replique::before { content: ''; position: absolute; top: -7px; left: 50%; width: 12px; height: 12px; margin-left: -6px;
  background: #fff; border-left: 1px solid var(--wr-line); border-top: 1px solid var(--wr-line); transform: rotate(45deg); }

/* Whilo ou la bulle. */
.wt-perso__vues { display: inline-flex; gap: 3px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .7); border: 1px solid var(--wr-violet-soft); }
.wt-perso__vues button { border: 0; background: transparent; padding: 5px 12px; border-radius: 999px; font: 600 13px var(--font); color: var(--wr-violet-dark); cursor: pointer; }
.wt-perso__vues button[aria-pressed="true"] { background: var(--wr-violet); color: #fff; }
.wt-perso__vues button:focus-visible { outline: 2px solid var(--wr-violet-2); outline-offset: 2px; }

/* À l'écrit : Whilo en avatar des messages du recruteur, et trois points tant qu'il écrit. */
.wr-talk__msg--ia { position: relative; margin-left: 44px; }
.wr-talk__msg--ia::before { content: ''; position: absolute; left: -44px; top: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--wr-violet-soft) url(/static/img/whilo.png) 50% 18% / 30px auto no-repeat; border: 1px solid var(--wr-line); }
.wr-talk__msg--ia p:empty::after { content: '•••'; letter-spacing: 3px; color: var(--wr-violet); animation: wt-clignote 1s ease-in-out infinite; }

.wr-talk__notice.is-info { background: var(--wr-violet-softer); border-color: var(--wr-violet-soft); color: var(--wr-violet-dark); }

/* Le choix des questions, au départ. */
.wt-questions { border: 0; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* 01/12/2026 — une étape numérotée (3), comme le mode et le type d'entretien. */
.wt-questions { margin-top: 26px; }
.wt-questions legend { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; color: var(--wr-deep); margin-bottom: 12px; padding: 0; }
.wt-questions__opt { position: relative; display: block; }
.wt-questions__opt input { position: absolute; opacity: 0; }
.wt-questions__opt span { display: block; padding: 12px 14px; border: 1.5px solid var(--wr-line); border-radius: 14px; background: #fff; cursor: pointer; }
.wt-questions__opt strong { display: block; color: var(--wr-deep); }
.wt-questions__opt small { display: block; color: var(--wr-muted); font-size: 13px; margin-top: 2px; }
.wt-questions__opt input:checked + span { border-color: var(--wr-violet); background: var(--wr-violet-softer); box-shadow: 0 0 0 3px var(--wr-violet-soft); }
.wt-questions__opt input:focus-visible + span { outline: 2px solid var(--wr-violet-2); outline-offset: 2px; }
@media (max-width: 560px) {
  .wt-questions { grid-template-columns: 1fr; }
  .wt-perso__scene { width: 200px; height: 200px; }
  .wt-perso__corps { width: 124px; }
  .wt-perso__orbe { width: 128px; height: 128px; }
}

@keyframes wt-flotte { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(.6deg); } }
@keyframes wt-ecoute { 0%, 100% { transform: rotate(-5deg) translateY(-2px); } 50% { transform: rotate(-2deg) translateY(-5px); } }
@keyframes wt-parle { from { transform: rotate(-2deg); } to { transform: rotate(2deg) translateY(-2px); } }
@keyframes wt-pense { 0%, 100% { transform: rotate(3deg) translateY(-2px); } 50% { transform: rotate(5deg) translateY(-6px); } }
@keyframes wt-point { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }
@keyframes wt-tourne { to { transform: rotate(360deg); } }
@keyframes wt-clignote { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .wt-perso__corps, .wt-perso__pensee span, .wt-perso__orbe span, .wt-perso__orbe i, .wr-talk__msg--ia p:empty::after { animation: none !important; }
}

/* ══════════════════════════════════════════════════════════════════════════
   01/12/2026 — LE HÉROS DE L'ESPACE « TABLEAU DE BORD » (maquette Espace A)
   La carte violette (titre, bouton, Whilo en bas à droite) et trois chiffres
   à côté : entretiens passés, meilleure note, CV.
   ══════════════════════════════════════════════════════════════════════════ */
.wt-tdb { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; }
.wt-tdb__carte { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px; min-height: 300px; padding: 36px 40px; border-radius: 28px; color: #fff; background: linear-gradient(120deg, var(--wr-violet-dark), var(--wr-violet) 60%, #A27FD6); box-shadow: 0 18px 44px rgba(107, 70, 168, .25); }
.wt-tdb__carte .wr-talk__badge { align-self: flex-start; }
.wt-tdb__carte h1 { margin: 0; color: #fff; font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -.02em; }
.wt-tdb__carte p { margin: 0; max-width: 520px; font-size: 17px; line-height: 1.55; color: #F3EEFF; }
.wt-tdb__actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: auto; padding-right: 150px; }
.wt-tdb__actions span { font-size: 14px; color: #F3EEFF; }
.wt-tdb__whilo { position: absolute; right: 36px; bottom: -14px; width: 150px; pointer-events: none; }
.wt-tdb__whilo img { width: 100%; height: auto; }
.wt-tdb__chiffres { list-style: none; margin: 0; padding: 0; display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 12px; }
.wt-tdb__chiffres li { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border: 1px solid var(--wr-line); border-radius: 20px; background: #fff; }
.wt-tdb__chiffres strong { display: block; font-size: 26px; line-height: 1.1; color: var(--wr-deep); }
.wt-tdb__chiffres strong em { font-style: normal; font-size: 15px; color: var(--wr-muted); font-weight: 600; }
.wt-tdb__chiffres small { display: block; font-size: 14px; color: var(--wr-muted); }
.wt-tdb__chiffres b { display: block; font-size: 16px; color: var(--wr-deep); }
.wt-tdb__ico { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--wr-violet-soft); color: var(--wr-violet); }
.wt-tdb__ico--or { background: #FEF3C7; color: #B45309; }
.wt-tdb__ico svg { width: 22px; height: 22px; }
.wt-tdb__anneau { --p: 0; flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#047857 calc(var(--p) * 1%), #D1FAE5 0); }
.wt-tdb__anneau span { width: 36px; height: 36px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 11.5px; font-weight: 800; color: #047857; }
@media (max-width: 900px) {
  .wt-tdb { grid-template-columns: 1fr; }
  .wt-tdb__chiffres { grid-template-rows: none; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}
@media (max-width: 560px) {
  .wt-tdb__carte { padding: 26px 22px; min-height: 0; }
  .wt-tdb__actions { padding-right: 0; }
  .wt-tdb__actions .wr-btn { flex: 1 1 100%; }
  .wt-tdb__whilo { width: 96px; right: 14px; bottom: auto; top: 18px; opacity: .9; }
  .wt-tdb__carte h1, .wt-tdb__carte p { padding-right: 70px; }
}
.wt-tdb__chiffres .wt-linkbtn { text-align: left; }

/* ══════════════════════════════════════════════════════════════════════════
   01/12/2026 — S'ENTRAÎNER SUR UN SUJET, NIVEAU D'EXIGENCE, ÉVOLUTION
   ══════════════════════════════════════════════════════════════════════════ */
.wt-ent__opt { margin-left: 8px; padding: 3px 9px; border-radius: 999px; background: var(--wr-violet-soft); color: var(--wr-violet-dark); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.wt-ent__lead { margin: 0 0 14px; }
.wt-ent__sujets { display: flex; flex-wrap: wrap; gap: 8px; }
.wt-ent__chip { position: relative; }
.wt-ent__chip input { position: absolute; opacity: 0; inset: 0; }
.wt-ent__chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--wr-line); background: #fff; font-size: 14px; font-weight: 600; color: var(--wr-ink-2); cursor: pointer; transition: border-color .15s, background .15s; }
.wt-ent__chip span::before { content: '+'; margin-right: 6px; color: var(--wr-violet); font-weight: 800; }
.wt-ent__chip input:checked + span { border-color: var(--wr-violet); background: var(--wr-violet-soft); color: var(--wr-violet-dark); }
.wt-ent__chip input:checked + span::before { content: '✓'; }
.wt-ent__chip input:focus-visible + span { outline: 3px solid rgba(138, 99, 192, .35); outline-offset: 2px; }
.wt-ent__max { margin: 8px 0 0; font-size: 13px; color: #B45309; font-weight: 600; }
.wt-ent__libre { display: block; margin-top: 16px; }
.wt-ent__libre span { display: block; font-weight: 700; font-size: 14px; color: var(--wr-deep); margin-bottom: 6px; }
.wt-ent__libre input { width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--wr-line); border-radius: 12px; font: inherit; font-size: 15px; }
.wt-ent__libre input:focus { outline: none; border-color: var(--wr-violet); box-shadow: 0 0 0 4px rgba(138, 99, 192, .14); }
.wt-ent__axes { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: #FFF7ED; border: 1px solid #FED7AA; cursor: pointer; }
.wt-ent__axes input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--wr-violet); flex: none; }
.wt-ent__axes strong { display: block; color: var(--wr-deep); }
.wt-ent__axes small { display: block; color: var(--wr-muted); margin: 2px 0 6px; }
.wt-ent__axes ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--wr-ink-2); }
.wt-niveaux { border: 0; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.wt-niveaux legend { font-weight: 700; color: var(--wr-deep); margin-bottom: 10px; padding: 0; font-size: 15px; }
.wt-niveaux legend small { font-weight: 600; color: var(--wr-violet-dark); margin-left: 6px; }
.wt-niveaux .wr-talk__hint { grid-column: 1 / -1; margin-top: 2px; }
.wt-niveaux__opt { position: relative; display: block; }
.wt-niveaux__opt input { position: absolute; opacity: 0; }
.wt-niveaux__opt span { display: flex; flex-direction: column; gap: 3px; height: 100%; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--wr-line); background: #fff; cursor: pointer; }
.wt-niveaux__opt strong { color: var(--wr-deep); }
.wt-niveaux__opt em { font-style: normal; color: var(--wr-violet); }
.wt-niveaux__opt small { color: var(--wr-muted); font-size: 13px; line-height: 1.4; }
.wt-niveaux__opt input:checked + span { border-color: var(--wr-violet); background: var(--wr-violet-softer); box-shadow: 0 0 0 4px rgba(138, 99, 193, .12); }
.wt-niveaux__opt input:focus-visible + span { outline: 3px solid rgba(138, 99, 192, .35); outline-offset: 2px; }
@media (max-width: 760px) { .wt-niveaux { grid-template-columns: 1fr 1fr; } }

.wt-tdb__evo { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.wt-hist__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wt-hist__head h2 { margin: 0; }
.wt-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.wt-tag { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; background: var(--wr-violet-soft); color: var(--wr-violet-dark); font-size: 12px; font-weight: 700; font-style: normal; }
.wt-tag--progres { background: #DCFCE7; color: #15803D; }
.wt-tag--stable { background: #EEF2FF; color: #4338CA; }
.wt-tag--recul { background: #FEE2E2; color: #B91C1C; }
.wt-tag--sujet { background: #FFF7ED; color: #9A3412; }
.wt-tag--up { background: #FEF3C7; color: #92400E; }
.wt-train { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 18px; padding: 12px 16px; border-radius: 14px; background: var(--wr-violet-softer); border: 1px solid var(--wr-line); }
.wt-train strong { color: var(--wr-deep); margin-right: 4px; }

/* L'analyse : sujets travaillés, évolution, question par question. */
.wt-ana-bloc { margin: 22px 0; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--wr-line); background: #fff; }
.wt-ana-bloc h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 8px; }
.wt-ana-bloc h3 b { margin-left: auto; color: var(--wr-violet-dark); }
.wt-ana-bloc p { margin: 0 0 8px; line-height: 1.6; }
.wt-ana-focus { background: #FFFBF5; border-color: #FED7AA; }
.wt-ana-evo { background: var(--wr-violet-softer); }
.wt-evo-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 10px 0; }
.wt-evo-col { padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--wr-line); }
.wt-evo-col h4 { margin: 0 0 6px; font-size: 14px; }
.wt-evo-col ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.5; }
.wt-evo-col--ok h4 { color: #15803D; }
.wt-evo-col--up h4 { color: #B45309; }
.wt-evo-col--new h4 { color: #4338CA; }
.wt-evo-obj { padding: 10px 14px; border-radius: 12px; background: #fff; border-left: 4px solid var(--wr-violet); }
.wt-qpq { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.wt-qpq__item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--wr-line); background: #fff; }
.wt-qpq__item strong { color: var(--wr-deep); line-height: 1.45; }
.wt-qpq__item p { margin: 4px 0 0; line-height: 1.5; color: var(--wr-ink-2); font-size: 14.5px; }
.wt-qpq__conseil { color: var(--wr-violet-dark) !important; font-weight: 600; }
.wt-qpq__meta { font-size: 13px !important; color: var(--wr-muted) !important; }
.wt-qpq__meta a { color: var(--wr-violet-dark); }
.wt-qpq__note { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; align-content: center; font-weight: 800; font-size: 18px; line-height: 1; }
.wt-qpq__note small { font-size: 11px; font-weight: 700; opacity: .8; }
.wt-qpq__note.is-good { background: #DCFCE7; color: #15803D; }
.wt-qpq__note.is-mid { background: #FEF3C7; color: #B45309; }
.wt-qpq__note.is-low { background: #FEE2E2; color: #B91C1C; }

/* « Mon évolution ». */
.wt-evo__head h1 { margin: 6px 0 6px; font-size: clamp(28px, 4vw, 38px); color: var(--wr-deep); }
.wt-evo__head p { margin: 0 0 22px; color: var(--wr-muted); max-width: 760px; line-height: 1.6; }
.wt-evo__vide { display: flex; gap: 22px; align-items: center; padding: 26px; border-radius: 22px; background: var(--wr-violet-softer); border: 1px solid var(--wr-line); }
.wt-evo__vide h2 { margin: 0 0 6px; }
.wt-evo__vide p { margin: 0 0 14px; color: var(--wr-ink-2); line-height: 1.6; }
.wt-evo__stats { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.wt-evo__stats li { padding: 16px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--wr-line); box-shadow: var(--wr-shadow); display: flex; flex-direction: column; gap: 2px; }
.wt-evo__stats strong { font-size: 30px; color: var(--wr-deep); line-height: 1.1; }
.wt-evo__stats strong em { font-style: normal; font-size: 14px; color: var(--wr-muted); font-weight: 600; }
.wt-evo__stats small { color: var(--wr-muted); }
.wt-delta { font-size: 12.5px; font-weight: 700; color: var(--wr-muted); margin-top: 4px; }
.wt-delta.is-up { color: #15803D; }
.wt-delta.is-down { color: #B91C1C; }
.wt-evo__carte { margin: 0 0 18px; padding: 22px 24px; border-radius: 20px; background: #fff; border: 1px solid var(--wr-line); box-shadow: var(--wr-shadow); }
.wt-evo__carte h2 { margin: 0 0 4px; font-size: 20px; color: var(--wr-deep); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wt-evo__carte h3 { margin: 20px 0 10px; font-size: 16px; color: var(--wr-deep); }
.wt-evo__carte > .wr-talk__muted { margin: 0 0 14px; }
.wt-evo__grille { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.wt-evo__grille .wt-evo__carte { margin: 0 0 18px; }
.wt-evo__bilan { background: var(--wr-violet-softer); }
.wt-evo__bilan-tete { display: flex; gap: 14px; align-items: center; }
.wt-evo__bilan-tete picture { flex: none; }
.wt-evo__bilan-tete img { width: 64px; height: auto; display: block; }
.wt-evo__bilan-tete .wr-talk__muted { margin: 2px 0 0; }
.wt-evo__bilan-txt { margin: 14px 0 6px; line-height: 1.65; font-size: 15.5px; }
.wt-evo__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 14px 0 0; }
/* La courbe : une série, ligne 2 px, voile 10 %, points cerclés, grille discrète. */
.wt-chart { position: relative; display: grid; grid-template-columns: 34px 1fr; grid-template-rows: 220px auto; column-gap: 10px; margin: 26px 0 4px; padding-right: 14px; }
.wt-chart__axe-y { position: relative; }
.wt-chart__axe-y span { position: absolute; right: 0; transform: translateY(-50%); font-size: 12px; color: var(--wr-muted); }
.wt-chart__zone { position: relative; }
.wt-chart__zone svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wt-chart__grille { stroke: #EFEAF6; stroke-width: 1; vector-effect: non-scaling-stroke; }
.wt-chart__voile { fill: #7B52B9; opacity: .1; }
.wt-chart__ligne { fill: none; stroke: #7B52B9; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.wt-chart__pt { position: absolute; width: 28px; height: 28px; margin: -14px 0 0 -14px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; border-radius: 50%; }
.wt-chart__pt span { width: 9px; height: 9px; border-radius: 50%; background: #7B52B9; box-shadow: 0 0 0 2px #fff; transition: transform .12s; }
.wt-chart__pt.is-actif span, .wt-chart__pt:focus-visible span { transform: scale(1.45); }
.wt-chart__pt:focus-visible { outline: 2px solid rgba(123, 82, 185, .45); }
.wt-chart__fin { position: absolute; transform: translate(-50%, -150%); font-size: 13px; font-weight: 800; color: var(--wr-deep); pointer-events: none; }
.wt-chart__axe-x { grid-column: 2; display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; color: var(--wr-muted); }
.wt-chart__axe-x span:only-child { margin: 0 auto; }
.wt-chart__bulle { position: absolute; z-index: 2; pointer-events: none; display: flex; flex-direction: column; gap: 1px; padding: 8px 12px; border-radius: 10px; background: var(--wr-deep); color: #fff; font-size: 13px; box-shadow: 0 8px 24px rgba(46, 26, 71, .25); white-space: nowrap; }
.wt-chart__bulle strong { font-size: 15px; }
.wt-chart__bulle small { color: #D9CCEF; }
.wt-evo__table { margin-top: 10px; }
.wt-evo__table summary { cursor: pointer; color: var(--wr-violet-dark); font-weight: 600; font-size: 14px; }
.wt-evo__table table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14px; }
.wt-evo__table th, .wt-evo__table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--wr-line); }
.wt-evo__table td:last-child, .wt-evo__table th:last-child { text-align: right; font-weight: 700; }
/* Les critères : au début (orange) → récemment (violet), sur 10. */
.wt-legende { display: flex; gap: 16px; margin: 0 0 12px; font-size: 13px; color: var(--wr-ink-2); }
.wt-legende span { display: inline-flex; align-items: center; gap: 6px; }
.wt-legende i { width: 10px; height: 10px; border-radius: 50%; }
.wt-legende__debut { background: #F47230; }
.wt-legende__recent { background: #7B52B9; }
.wt-crit2 { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.wt-crit2 li { display: grid; grid-template-columns: minmax(90px, 32%) 1fr auto; gap: 12px; align-items: center; }
.wt-crit2__nom { font-weight: 600; color: var(--wr-ink-2); font-size: 14px; }
.wt-crit2__piste { position: relative; height: 10px; border-radius: 999px; background: #F3EFF9; margin: 0 6px; }
.wt-crit2__lien { position: absolute; top: 4px; height: 2px; background: #CBB8E8; }
.wt-crit2__pt { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; border: 2px solid #fff; }
.wt-crit2__pt--debut { background: #F47230; }
.wt-crit2__pt--recent { background: #7B52B9; }
.wt-crit2__val { font-size: 13.5px; color: var(--wr-muted); white-space: nowrap; }
.wt-crit2__val b { color: var(--wr-deep); }
.wt-types, .wt-sujets { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.wt-types li { display: flex; align-items: center; gap: 12px; }
.wt-types__note { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; flex: none; }
.wt-types__note.is-good { background: #DCFCE7; color: #15803D; }
.wt-types__note.is-mid { background: #FEF3C7; color: #B45309; }
.wt-types__note.is-low { background: #FEE2E2; color: #B91C1C; }
.wt-types__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wt-types__txt small { color: var(--wr-muted); }
.wt-sujets { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.wt-sujets a { display: flex; flex-direction: column; padding: 10px 14px; border-radius: 12px; background: #FFF7ED; border: 1px solid #FED7AA; color: #9A3412; text-decoration: none; }
.wt-sujets a:hover { border-color: #F47230; }
.wt-sujets small { color: #9A3412; opacity: .85; }
@media (max-width: 900px) {
  .wt-evo__stats { grid-template-columns: 1fr 1fr; }
  .wt-evo__grille { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wt-evo__carte { padding: 18px 16px; }
  .wt-evo__vide { flex-direction: column; text-align: center; }
  .wt-crit2 li { grid-template-columns: 1fr auto; }
  .wt-crit2__piste { grid-column: 1 / -1; grid-row: 2; margin: 0 6px; }
  .wt-qpq__item { padding: 12px; gap: 10px; }
  .wt-qpq__note { width: 44px; height: 44px; font-size: 16px; }
}
