/* ==========================================================================
   Guide d'employabilité × IA , styles spécifiques (mode conversationnel only).
   Layered on top of ada-tokens.css + app.css.
   ========================================================================== */

/* Remonter le bloc (intro / résultat) au lieu de centrer verticalement */
.app .stage { align-items: flex-start; padding-top: 36px; }

/* Radar en pleine largeur, badges (profil + point fort) centrés en dessous */
.app .scan-result { grid-template-columns: 1fr; gap: 14px; text-align: center; }
.app .scan-result .profile-tags { justify-content: center; margin: 4px 0 8px; }
.app .radar-wrap svg { max-width: 460px; overflow: visible; }

/* Ressources : lien vidéo + ressource d'aperçu */
.res-list .res-ytb { font-size: 12px; font-weight: 700; color: var(--red-500); white-space: nowrap; }
.prio-card .prio-res { font-size: 13px; margin: 8px 0 0; padding-top: 8px; border-top: 1px dashed var(--red-200); }
.prio-card .prio-res a { color: var(--red-500); font-weight: 700; }

/* ---------- Conversation ---------- */
.chat .bubble { animation: none; }                 /* pas de ré-animation à chaque repaint */
.bubble .bubble-help { opacity: .7; font-size: 13px; }
.chat-answers { animation: screen-in 0.32s var(--ease-out) both; }
.chat-answers .chips { margin-top: 6px; }
.chat-answers .nav-row { margin-top: 16px; }
.chat-cta { display: inline-flex; margin-left: auto; }   /* .btn--full (rouge plein) comme les CTA principaux ; toujours calé à droite, même quand « Retour » est masqué (1re question) */
.chat-cta[disabled] { pointer-events: none; }  /* l'atténuation vient de .btn[disabled] (opacity .4) */

/* ---------- Chips compactes (options du chat) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border: 2px solid var(--red-200);
  border-radius: var(--radius-pill);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--black);
  cursor: pointer;
  line-height: 1.15;
  text-align: left;   /* libellés qui reviennent à la ligne : gauche, pas centrés (défaut UA <button>) */
  transition: border-color .15s linear, background .15s linear, transform .15s var(--ease-out), box-shadow .15s linear;
}
.chip:hover { border-color: var(--red-500); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.chip.on { background: var(--red-100); border-color: var(--red-500); }
.chip-emoji { font-size: 16px; line-height: 1; flex-shrink: 0; }
.chip-label { font-family: var(--font-title); font-weight: 600; }
.chip.shake { animation: chip-shake .34s; }
@keyframes chip-shake { 0%,100% { transform: none; } 20% { transform: translateX(-4px); } 60% { transform: translateX(4px); } }

@media (max-width: 640px) { .chip { font-size: 13px; padding: 8px 12px; } }

/* — Gate multi-champs (prénom / nom / email) : surcharge le gate mono-email d'app.css — */
.gate form { flex-direction: column; align-items: stretch; }
.gate-row { display: flex; gap: 10px; }
.gate-row input { flex: 1; min-width: 0; }
.gate input[type=text] {
  font-family: var(--font-body); font-size: 15px; padding: 14px 16px;
  border: 2px solid var(--red-500); border-radius: 8px; background: var(--white);
}
.gate input[type=text]:focus { outline: none; border-color: var(--red-700); }

/* — Lien « être recontacté » (section 6) stylé comme un bouton — */
.cta-callback { margin-top: 14px; text-align: center; }
a.btn { display: inline-block; text-decoration: none; }

/* — CTA : autoriser le retour à la ligne, ne jamais déborder du conteneur.
   (surcharge le white-space:nowrap de .btn dans ada-tokens.css) — */
.btn { white-space: normal; text-align: center; max-width: 100%; }

/* — Loader « vivant » (narration + chiffres pendant l'attente IA) — */
.load-step { font-family: var(--font-title); font-weight: 600; color: var(--grey-700); font-size: 15px; margin: 4px 0 14px; }
.load-msg { min-height: 58px; display: flex; align-items: center; justify-content: center; }
.load-msg .scan-step { animation: load-fade .45s ease; margin: 0; }
.load-fact {
  max-width: 480px; margin: 0 auto; padding: 14px 18px;
  background: var(--white); border: 1px solid var(--red-200, #f6d9d2); border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,.05);
  font-size: 14px; line-height: 1.5; color: var(--grey-700); animation: load-fade .45s ease;
}
.load-tag {
  display: block; font-family: var(--font-title); font-weight: 600; text-transform: uppercase;
  font-size: 11px; letter-spacing: .04em; color: var(--red-500); margin-bottom: 4px;
}
.load-src { color: var(--grey-500, #9a9a9a); font-size: 12px; white-space: nowrap; }
@keyframes load-fade { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.loader-radar { width: 150px; height: 150px; display: block; margin: 0 auto 12px; overflow: visible; }
.loader-radar .lr-el { opacity: 0; animation: lr-appear .5s ease forwards; }
@keyframes lr-appear { to { opacity: 1; } }

/* ---------- Compteur + barre de progression du paragraphe d'intro (min 250 caractères) ---------- */
.brief-field .optional { transition: color .15s linear; }
.brief-field .optional.ok { color: #1f8a4c; }
.brief-field .optional.ok #brief-count { font-weight: 700; }
.brief-field .brief-label { display: block; font-size: 14px; font-weight: 600; color: var(--grey-700); margin: 0 0 6px; }
.brief-field .brief-req { font-weight: 400; color: #8a8079; }
.brief-field .brief-guide { font-size: 13.5px; line-height: 1.5; color: var(--grey-700); margin: 0 0 9px; }
.brief-field .brief-bar { height: 5px; border-radius: 999px; background: #efe7e4; overflow: hidden; margin: 9px 0 7px; }
.brief-field .brief-bar-fill { height: 100%; width: 0; background: var(--red-500); border-radius: 999px; transition: width .12s linear, background .15s linear; }
.brief-field .brief-bar-fill.ok { background: #1f8a4c; }

/* ---------- Top 3 : par où commencer (actions classées) ---------- */
.top3-list { list-style: none; counter-reset: t3; margin: 4px 0 10px; padding: 0; }
.top3-item { counter-increment: t3; display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid #f1e9e6; }
.top3-item:last-child { border-bottom: 0; }
.top3-item::before {
  content: counter(t3); flex: 0 0 26px; width: 26px; height: 26px; margin-top: 1px;
  border-radius: 50%; background: var(--red-500); color: #fff;
  font-family: var(--font-title); font-weight: 700; font-size: 14px; line-height: 26px; text-align: center;
}
.top3-action { margin: 0; font-weight: 600; }
.top3-meta { margin: 3px 0 0; font-size: 13px; color: #8a8079; }

/* ---------- Libellé d'action hyperlié sur les ressources (Voir la vidéo / Voir l'étude / Lire l'article / Découvrir) ---------- */
.res-list .res-note { display: block; margin-top: 3px; }   /* description sur sa propre ligne */
.res-list .res-action {
  display: inline-block; margin-top: 9px;                   /* CTA sur sa propre ligne, plus collé au texte */
  font-family: var(--font-title); font-weight: 700; font-size: 13px;
  color: var(--red-500); text-decoration: none; white-space: nowrap;
}
.res-list .res-action:hover { color: var(--red-700); text-decoration: underline; }
.res-list .res-action .arrow { display: inline-block; transition: transform .15s var(--ease-out); }
.res-list .res-action:hover .arrow { transform: translateX(3px); }

/* ---------- Multi-select : cases à cocher pour rendre le multi ÉVIDENT ---------- */
.chip--multi { padding-left: 11px; }
.chip-box {
  width: 17px; height: 17px; flex-shrink: 0;
  border: 2px solid #c4bcb8; border-radius: 5px; background: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .12s linear, border-color .12s linear;
}
.chip--multi:hover .chip-box { border-color: var(--red-500); }
.chip--multi.on .chip-box { background: var(--red-500); border-color: var(--red-500); }
.chip--multi.on .chip-box::after { content: '✓'; color: #fff; font-size: 11px; font-weight: 800; line-height: 1; }

/* ---------- Mobile : confort du parcours ---------- */
@media (max-width: 640px) {
  .chat-answers .nav-row { gap: 10px; }
  .chat-cta { padding: 11px 16px; }
  .res-list .res-action { font-size: 13.5px; }
  .btn { font-size: 15px; }   /* labels longs (CTA rapport / recontact) tiennent mieux */
}

/* ---------- Titre « Mon Bilan IA » (logo Fondation) ---------- */
/* Logo détouré (PNG transparent) : rien à blender. */
.bilan-logo {
  display: block;
  margin: 0 auto;
  height: auto;
  width: clamp(150px, 42vw, 196px);
  aspect-ratio: 600 / 211;   /* réserve la hauteur AVANT chargement -> pas de reflow (clipping iframe) */
}
.bilan-title { text-align: center; margin: 2px 0 24px; }
.bilan-title-name {
  font-family: var(--font-title);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(21px, 2.9vw, 28px);
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--black);
  margin-top: 10px;
}
/* Intro : logo seul (l'eyebrow porte déjà « Mon Bilan IA »), un peu plus grand. */
.bilan-logo--intro { width: clamp(168px, 48vw, 220px); margin-bottom: 16px; }

/* ---------- Intro : liste « obtenez » + bloc crédibilité ---------- */
.intro-list {
  list-style: none; padding: 0; margin: 0 auto 18px;
  max-width: 440px; text-align: left;
}
.intro-list li {
  position: relative; padding-left: 26px; margin: 8px 0;
  font-size: 15px; line-height: 1.5; color: var(--grey-700);
}
.intro-list li::before {
  content: "→"; position: absolute; left: 0; top: 0;
  color: var(--red-500); font-weight: 700;
}
.cred-block {
  margin-top: 34px; padding: 22px 22px 8px;
  border: 1px solid #FADAD3; border-radius: 14px; background: #fff; text-align: left;
}
.cred-title {
  font-family: var(--font-title); font-weight: 700; text-transform: uppercase;
  font-size: 17px; letter-spacing: 0.01em; margin: 0 0 10px; color: var(--black);
}
.cred-text { font-size: 14.5px; line-height: 1.55; color: var(--grey-700); margin: 0 0 14px; }
.cred-list { list-style: none; padding: 0; margin: 0; }
.cred-list li {
  position: relative; padding-left: 24px; margin: 7px 0;
  font-size: 14px; line-height: 1.5; color: var(--grey-700);
}
.cred-list li::before {
  content: "→"; position: absolute; left: 0; top: 0;
  color: var(--red-500); font-weight: 700;
}
