/* ══════════════════════════════════════════════════════════════════════
   LE TUNNEL D'OFFRE PAR ÉTAPES (23/11/2026) — repères d'étapes, métier ROME,
   analyse IA, barre d'actions. Les mêmes écrans que sur Whilo, aux couleurs
   de Whileresume. Chargée par les vues du tunnel et par le formulaire d'offre
   de l'espace recruteur.
   ══════════════════════════════════════════════════════════════════════ */

/* ── Les repères d'étapes ─────────────────────────────────────────────── */
.wr-etapes-offre {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 10px;
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
}
.wr-etapes-offre__e { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.wr-etapes-offre__t {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--wr-muted-2, #9CA3AF);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}
a.wr-etapes-offre__t:hover { color: var(--wr-violet-dark, #6B47A6); text-decoration: underline; }
.wr-etapes-offre__barre { height: 4px; border-radius: 4px; background: var(--wr-line-2, #E5E9F0); }
.wr-etapes-offre__e.est-faite .wr-etapes-offre__t { color: var(--wr-ink-2, #374151); }
.wr-etapes-offre__e.est-faite .wr-etapes-offre__barre { background: var(--wr-violet-2, #A98AD3); }
.wr-etapes-offre__e.est-actif .wr-etapes-offre__t { color: var(--wr-violet-dark, #6B47A6); font-weight: 700; }
.wr-etapes-offre__e.est-actif .wr-etapes-offre__barre { background: var(--wr-violet-dark, #6B47A6); }
button.wr-etapes-offre__t { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font-family: inherit; }
button.wr-etapes-offre__t:focus-visible, a.wr-etapes-offre__t:focus-visible { outline: 2px solid var(--wr-violet, #8A63C1); outline-offset: 3px; border-radius: 4px; }

@media (max-width: 720px) {
  .wr-etapes-offre { gap: 6px; }
  /* Sur petit écran, seul le libellé de l'étape en cours est écrit. */
  .wr-etapes-offre__e:not(.est-actif) .wr-etapes-offre__t { font-size: 0; height: 16px; }
  .wr-etapes-offre__e.est-actif { grid-column: span 3; }
}

/* ── La barre d'actions d'une étape ───────────────────────────────────── */
.wr-offre-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.wr-offre-actions__droite { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-left: auto; }
.wr-offre-actions .wr-btn { text-decoration: none; }
.wr-offre-pourquoi { margin: -6px 0 16px; }

/* ── Le métier ROME ───────────────────────────────────────────────────── */
.wr-rome { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.wr-rome legend { padding: 0; }
.wr-rome__liste { display: grid; gap: 8px; margin: 8px 0 10px; }
.wr-rome__choix {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--wr-line-2, #E5E9F0);
  border-radius: 12px;
  background: var(--wr-card, #fff);
  cursor: pointer;
  font-size: 14px;
  color: var(--wr-ink-2, #374151);
  line-height: 1.45;
}
.wr-rome__choix:hover { border-color: var(--wr-violet-2, #A98AD3); }
.wr-rome__choix:has(input:checked) { border-color: var(--wr-violet, #8A63C1); background: var(--wr-violet-softer, #F8F4FD); }
.wr-rome__choix input { margin-top: 3px; accent-color: var(--wr-violet-dark, #6B47A6); flex: none; }
.wr-rome__choix strong { color: var(--wr-ink, #1E1B2E); font-variant-numeric: tabular-nums; }
.wr-rome__choix em { color: var(--wr-muted, #6B7280); font-style: normal; font-size: 13px; }
.wr-rome__chercher { margin-top: 10px; }

/* ── Le récapitulatif avant l'analyse ─────────────────────────────────── */
.wr-recap-offre { margin: 0 0 18px; }
.wr-recap-offre dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px 22px; margin: 0; }
.wr-recap-offre dt { font-size: 12px; font-weight: 600; color: var(--wr-muted, #6B7280); margin-bottom: 2px; }
.wr-recap-offre dd { margin: 0; font-size: 14.5px; color: var(--wr-ink, #1E1B2E); font-weight: 600; overflow-wrap: anywhere; }
.wr-recap-offre__liens { display: flex; gap: 16px; flex-wrap: wrap; margin: 16px 0 0; font-size: 13.5px; }
.wr-recap-offre__liens a, .wr-recap-offre__liens button { color: var(--wr-violet-dark, #6B47A6); font-weight: 600; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; font-size: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ── L'analyse IA ─────────────────────────────────────────────────────── */
.wr-ao-carte { margin: 0 0 18px; }
.wr-ao-carte__tete { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.wr-ao-carte__ico {
  flex: none; width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--wr-violet-soft, #F2EDFA); color: var(--wr-violet-dark, #6B47A6);
}
.wr-ao-carte__t { margin: 0; font-size: 17px; color: var(--wr-ink, #1E1B2E); }
.wr-ao-carte__x { margin: 3px 0 0; font-size: 13.5px; color: var(--wr-muted, #6B7280); }
.wr-ao-carte__refaire { margin-top: 14px; }

.wr-ao-attente { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--wr-muted, #6B7280); font-size: 14px; }
.wr-ao-attente__rond {
  width: 16px; height: 16px; border-radius: 50%; flex: none;
  border: 2px solid var(--wr-line-2, #E5E9F0); border-top-color: var(--wr-violet, #8A63C1);
  animation: wr-ao-tourne .8s linear infinite;
}
@keyframes wr-ao-tourne { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .wr-ao-attente__rond { animation: none; } }

.wr-ao__indispo { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--wr-bg-2, #F4F6FB); color: var(--wr-ink-2, #374151); font-size: 14px; }

.wr-ao__tete { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.wr-ao__score {
  flex: none; width: 92px; height: 92px; border-radius: 50%; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
  border: 6px solid var(--wr-line-2, #E5E9F0);
  color: var(--wr-ink, #1E1B2E);
}
.wr-ao__score strong { font-size: 28px; line-height: 1; font-weight: 800; }
.wr-ao__score span { font-size: 12px; line-height: 1; color: var(--wr-muted, #6B7280); margin: 10px 0 0 2px; }
.wr-ao--haut .wr-ao__score { border-color: #10B981; }
.wr-ao--moyen .wr-ao__score { border-color: #F59E0B; }
.wr-ao--bas .wr-ao__score { border-color: #EF4444; }
.wr-ao__txt { min-width: 0; }
.wr-ao__source {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
  background: var(--wr-bg-2, #F4F6FB); color: var(--wr-ink-2, #374151);
}
.wr-ao__source.est-ia { background: var(--wr-violet-soft, #F2EDFA); color: var(--wr-violet-dark, #6B47A6); }
.wr-ao__resume { margin: 8px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--wr-ink, #1E1B2E); }
.wr-ao__note { margin: 6px 0 0; font-size: 13px; color: var(--wr-muted, #6B7280); }

.wr-ao__criteres { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wr-ao__critere {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--wr-line-2, #E5E9F0); background: var(--wr-card, #fff);
}
.wr-ao__puce { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px; }
.wr-ao__critere.est-ok .wr-ao__puce { background: #D1FAE5; color: #047857; }
.wr-ao__critere.est-ko .wr-ao__puce { background: #FEF3C7; color: #92400E; }
.wr-ao__corps { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wr-ao__corps strong { font-size: 13.5px; color: var(--wr-ink, #1E1B2E); }
.wr-ao__corps span { font-size: 13.5px; line-height: 1.5; color: var(--wr-ink-2, #374151); overflow-wrap: anywhere; }

.wr-ao__duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.wr-ao__bloc { padding: 14px 16px; border-radius: 12px; background: #ECFDF5; }
.wr-ao__bloc--plus { background: #FFFBEB; }
.wr-ao__bloc h3 { margin: 0 0 8px; font-size: 14px; color: var(--wr-ink, #1E1B2E); }
.wr-ao__bloc ul { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.55; color: var(--wr-ink-2, #374151); }
.wr-ao__bloc li + li { margin-top: 4px; }

@media (max-width: 720px) {
  .wr-ao__criteres, .wr-ao__duo { grid-template-columns: 1fr; }
  .wr-ao__tete { align-items: flex-start; }
  .wr-ao__score { width: 76px; height: 76px; }
  .wr-ao__score strong { font-size: 23px; }
}

/* ── Le formulaire d'offre de l'espace recruteur, par étapes ──────────── */
.wr-offre-etapes[data-offre-etapes-pret] [data-etape-panneau][hidden] { display: none; }
.wr-offre-etapes__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.wr-offre-etapes__nav [hidden] { display: none; }
[data-analyse-bloc][hidden] { display: none; }
[data-etape-panneau][hidden] { display: none; }
.wr-ao__sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.wr-ao__critere { position: relative; }
.wr-ao__bloc ul { list-style: disc; }
