/* Le verre, la langue commune du téléphone et de l'ordinateur.

   Un panneau blanc laiteux à grand rayon (.verre), une pastille (.chip), un rond pour
   un geste (.rond), un libellé en serif (.lab), les étapes d'une candidature (.etapes,
   .pts), un anneau de progression (.anneau-p), une courbe (.spark), les quatre chiffres
   (.kpi), la carte du CV (.carte-cv), la page d'une candidature (.candidature-page).
   Tout vient des jetons ; ce fichier ne déclare aucune couleur de la charte. Les
   tailles sont celles du téléphone ; ordi.css les élargit. */

.verre {
  position: relative;
  background: var(--verre);
  -webkit-backdrop-filter: blur(34px) saturate(125%); backdrop-filter: blur(34px) saturate(125%);
  border: 1px solid var(--verre-bord);
  border-radius: 28px;
  box-shadow: var(--verre-ombre);
}
.verre::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, 0.25) 100%);
}
.verre > * { position: relative; z-index: 1; }
.verre .verre { -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 10px 24px -20px rgba(20, 20, 22, 0.25); }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--verre2); border: 1px solid rgba(255, 255, 255, 0.95); font-size: 11px; font-weight: 500; color: var(--ink); text-transform: none; letter-spacing: 0; line-height: 1.2; white-space: nowrap; text-decoration: none; min-height: 0; }
.chip.noir { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.bleu { background: var(--accent-wash); color: var(--accent); border-color: rgba(255, 255, 255, 0.8); }
.chip.vert { background: color-mix(in srgb, var(--ok) 12%, #fff); color: var(--ok); }
.chip.rouge { background: color-mix(in srgb, var(--bad) 10%, #fff); color: var(--bad); }
button.chip { cursor: pointer; }
button.chip:disabled { opacity: 0.55; }
.rond { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--verre2); border: 1px solid rgba(255, 255, 255, 0.95); color: var(--ink); font-style: normal; text-decoration: none; font-size: 18px; line-height: 1; padding: 0; min-height: 0; }
.rond.noir { background: var(--ink); color: #fff; border-color: var(--ink); }
.rond.vide { visibility: hidden; }
.lab { margin: 0; font-family: var(--serif); font-size: 14px; color: var(--muted); font-weight: 500; letter-spacing: 0; text-transform: none; }
.lab b { color: var(--ink); font-weight: 500; }
.k { margin: 0; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* ---- les étapes : un rail vertical, un point par étape, la ligne se remplit de bleu
   jusqu'à l'étape en cours. ok : faite. encours : MAXX y est. att : à venir (pointillé).
   stop : arrêtée (rouge). v : la bonne nouvelle (vert). ici : la dernière faite. ---- */
.etapes { list-style: none; margin: 0; padding: 0; position: relative; }
.etapes li { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; column-gap: 12px; align-items: start; padding: 0 0 18px; }
.etapes li:last-child { padding-bottom: 0; }
.etapes li::before { content: ""; position: absolute; left: 16px; top: 22px; bottom: -2px; width: 2px; background: var(--accent); border-radius: 2px; }
.etapes li:last-child::before { display: none; }
.etapes li.att::before, .etapes li.encours::before { background: none; border-left: 2px dashed var(--line-strong); }
.etapes li.stop::before { background: var(--bad); }
.etapes li > i { position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; border: 2px solid #fff; box-shadow: 0 6px 16px -8px rgba(20, 30, 50, 0.5); font-style: normal; font-size: 12px; font-weight: 600; }
.etapes li > i::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; rotate: -45deg; translate: 0 -1px; }
.etapes li.v > i { background: var(--ok); }
.etapes li.stop > i { background: var(--bad); }
.etapes li.stop > i::after { width: 10px; height: 2px; border: 0; background: #fff; rotate: 0deg; translate: 0 0; }
.etapes li.att > i { background: #fff; border-color: var(--line-strong); box-shadow: none; }
.etapes li.att > i::after { display: none; }
.etapes li.encours > i { background: #fff; border: 2px solid var(--accent); box-shadow: 0 0 0 4px var(--accent-wash); animation: etape-souffle 1.6s ease-in-out infinite; }
.etapes li.encours > i::after { width: 8px; height: 8px; border: 0; background: var(--accent); border-radius: 50%; rotate: 0deg; translate: 0 0; }
.etapes li.ici > i { background: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-wash); }
.etapes li.ici > i::after { border-color: var(--accent); }
.etapes li.v.ici > i { border-color: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 14%, transparent); }
.etapes li.v.ici > i::after { border-color: var(--ok); }
.etapes li.stop.ici > i { background: var(--bad); border-color: #fff; box-shadow: none; }
.etapes li > span { display: grid; gap: 2px; padding-top: 6px; min-width: 0; }
.etapes li > span b { font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.etapes li.att > span b { color: var(--muted); font-weight: 500; }
.etapes li > span small { font-size: 12px; line-height: 1.4; color: var(--muted); }
.etapes li > em { font-style: normal; font-size: 11.5px; color: var(--muted); padding-top: 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.etapes li.ici > em, .etapes li.encours > em { color: var(--ink); font-weight: 600; }
@keyframes etape-souffle { 0%, 100% { box-shadow: 0 0 0 4px var(--accent-wash); } 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 10%, transparent); } }
/* les étapes numérotées de la vitrine : un chiffre dans le point, pas de coche */
.etapes.etapes-vitrine-tel li > i::after, .etapes.mini li > i::after { display: none; }
.etapes.etapes-vitrine-tel li > i { font-family: var(--serif); font-size: 15px; font-weight: 500; }
.etapes.etapes-vitrine-tel li.ici > i, .etapes.etapes-vitrine-tel li.att > i { color: var(--ink); }
.etapes.etapes-vitrine-tel li.ici > i { color: var(--accent); }

/* les points d'une ligne : une étape, un point */
.pts { display: inline-flex; gap: 4px; align-items: center; }
.pts i { width: 7px; height: 7px; border-radius: 50%; background: rgba(20, 20, 22, 0.14); display: block; }
.pts i.ok { background: var(--accent); }
.pts i.v { background: var(--ok); }
.pts i.stop { background: var(--bad); }
.pts i.encours { background: #fff; box-shadow: 0 0 0 1.5px var(--accent) inset; animation: pts-souffle 1.4s ease-in-out infinite; }
@keyframes pts-souffle { 50% { opacity: 0.4; } }

/* l'anneau de progression : un conique, le chiffre dedans */
.anneau-p { position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; font-style: normal; background: conic-gradient(var(--accent) var(--p, 0%), rgba(20, 20, 22, 0.1) 0); }
.anneau-p::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #fff; }
.anneau-p b { position: relative; font-size: 11px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

/* la courbe */
.spark { display: block; width: 100%; height: 30px; color: var(--accent); overflow: visible; }
.spark.vert { color: var(--ok); }
.spark .ligne { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.spark circle { fill: currentColor; }

/* ---- les quatre chiffres ---- */
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi { display: grid; gap: 4px; align-content: start; padding: 14px 14px 12px; border-radius: 24px; text-decoration: none; color: inherit; min-width: 0; }
.kpi .lab { font-size: 12.5px; }
.kpi .val { margin: 2px 0 0; display: flex; align-items: baseline; gap: 5px; font-family: var(--serif); font-weight: 500; color: var(--ink); line-height: 1; letter-spacing: -0.02em; }
.kpi .val b { font-size: 34px; font-weight: 500; font-variant-numeric: tabular-nums; }
.kpi .val span { font-size: 14px; color: var(--muted); }
.kpi .spark { margin-top: 6px; height: 26px; }
.kpi .sous { margin: 4px 0 0; font-size: 11px; line-height: 1.35; color: var(--muted); }
.kpi .tuiles-serie { margin: 12px 0 2px; display: flex; gap: 4px; }
.kpi .tuiles-serie i { flex: 1; height: 12px; border-radius: 4px; background: rgba(20, 20, 22, 0.08); }
.kpi .tuiles-serie i.ok { background: var(--accent); }

/* ---- la carte du CV ---- */
.carte-cv { display: grid; grid-template-columns: minmax(0, 1fr) 118px; gap: 12px; padding: 16px 16px 14px; overflow: hidden; }
.carte-cv .cv-texte { display: grid; gap: 6px; align-content: start; min-width: 0; }
.carte-cv h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.12; letter-spacing: -0.01em; color: var(--ink); text-transform: none; }
.carte-cv .sous { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.4; }
.carte-cv .cv-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.carte-cv .mots, .cand-mots .mots { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 5px; }
.carte-cv .mots span, .cand-mots .mots span { padding: 4px 9px; border-radius: 999px; font-size: 11px; color: var(--ink); background: #fff; border: 1px solid var(--line); text-transform: capitalize; }
.carte-cv .ouvrir { position: absolute; right: 14px; bottom: 12px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; text-decoration: none; font-size: 15px; }
.carte-cv .chip.noir { justify-self: start; margin-top: 6px; }
.carte-cv .val { margin: 0; display: flex; align-items: baseline; gap: 6px; font-family: var(--serif); font-size: 44px; font-weight: 500; color: var(--ink); line-height: 1; }
.carte-cv .val span { font-size: 22px; color: var(--muted); }
.carte-cv .primary { justify-self: start; margin-top: 8px; }
.pile { position: relative; height: 138px; align-self: center; }
.pile .doc { position: absolute; left: 12px; top: 6px; width: 92px; height: 120px; border-radius: 12px; background: #fff; border: 1px solid rgba(20, 20, 22, 0.08); box-shadow: 0 14px 30px -18px rgba(20, 30, 50, 0.45); padding: 12px 10px; display: block; }
.pile .doc.a { rotate: -9deg; translate: -6px 4px; opacity: 0.8; }
.pile .doc.c { rotate: 7deg; translate: 8px 2px; opacity: 0.9; }
.pile .doc.b { rotate: -1deg; }
.pile .doc span { display: block; font-family: var(--serif); font-size: 12px; font-weight: 500; color: var(--ink); line-height: 1.1; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pile .doc em { display: block; height: 4px; border-radius: 3px; background: rgba(20, 20, 22, 0.1); margin: 5px 0; }
.pile .doc em.c { width: 70%; }
.pile .doc em.mod { background: var(--accent); }

/* ---- les prochaines : une ligne, les logos, une flèche ---- */
.prochaines-acc { display: grid; grid-template-columns: minmax(0, 1fr) auto 40px; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border-radius: 24px; }
.prochaines-acc[hidden] { display: none; }
.prochaines-acc .pro-texte { display: grid; gap: 2px; min-width: 0; }
.prochaines-acc .pro-texte .lab { font-size: 12.5px; }
.prochaines-acc .pro-texte .sous { margin: 0; font-size: 13px; color: var(--ink); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prochaines-acc .pro-logos { display: flex; }
.prochaines-acc .lettre { position: relative; width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 2px solid #fff; box-shadow: 0 4px 12px -6px rgba(20, 30, 50, 0.4); display: grid; place-items: center; overflow: hidden; margin-left: -8px; font-style: normal; }
.prochaines-acc .lettre:first-child { margin-left: 0; }
.prochaines-acc .lettre img { position: absolute; inset: 6px; width: 18px; height: 18px; object-fit: contain; opacity: 0; }
.prochaines-acc .lettre.a-logo img { opacity: 1; }
.prochaines-acc .lettre.a-logo em { opacity: 0; }
.prochaines-acc .lettre em { font-style: normal; font-weight: 700; font-size: 12px; color: var(--ink); }
.prochaines-acc .lettre.plus { background: var(--accent-wash); }
.prochaines-acc .lettre.plus em { color: var(--accent); font-size: 11px; }

/* ---- une candidature ---- */
.candidature-page { padding: calc(8px + env(safe-area-inset-top)) 16px 40px; display: grid; gap: 12px; max-width: 560px; margin: 0 auto; }
.candidature-page > * { min-width: 0; }
.cand-tete { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; padding: 6px 0 4px; }
.cand-tete .k { text-align: center; }
.cand-tete .retour { font-size: 24px; padding-bottom: 3px; }
.cand-id { display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; align-items: center; padding: 6px 4px 8px; }
.cand-id .lettre { position: relative; width: 52px; height: 52px; border-radius: 16px; background: #fff; border: 1px solid rgba(255, 255, 255, 0.95); display: grid; place-items: center; overflow: hidden; grid-row: 1 / span 2; box-shadow: 0 10px 24px -14px rgba(20, 30, 50, 0.45); }
.cand-id .lettre img { position: absolute; inset: 9px; width: 34px; height: 34px; object-fit: contain; opacity: 0; }
.cand-id .lettre.a-logo img { opacity: 1; }
.cand-id .lettre.a-logo em { opacity: 0; }
.cand-id .lettre em { font-style: normal; font-weight: 700; font-size: 20px; color: var(--ink); }
.cand-id h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.1; letter-spacing: -0.01em; color: var(--ink); text-transform: none; }
.cand-id p { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.cand-progress { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 14px; border-radius: 999px; }
.cand-progress .chip { font-size: 12.5px; padding: 8px 14px; }
.cand-process, .cand-mots, .cand-reponse { padding: 18px 16px 16px; display: grid; gap: 14px; }
.cand-mots { gap: 8px; }
.cand-reponse { gap: 10px; }
.cand-reponse .choix { display: flex; flex-wrap: wrap; gap: 6px; }
.cand-reponse .chip { padding: 9px 14px; font-size: 12.5px; }
.cand-reponse .sous { margin: 0; font-size: 11.5px; line-height: 1.4; color: var(--muted); }
/* Les messages du recruteur et le compte ouvert chez lui, sur la fiche. */
.cand-courrier, .cand-compte { padding: 18px 16px 16px; display: grid; gap: 10px; }
.cand-courrier .sous, .cand-compte .sous { margin: 0; font-size: 11.5px; line-height: 1.4; color: var(--muted); }
.cand-courrier .courrier { list-style: none; margin: 0; padding: 0; }
.cand-courrier .courrier li { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid color-mix(in srgb, var(--ink) 6%, transparent); }
.cand-courrier .courrier li:first-child { border-top: 0; padding-top: 0; }
.cand-courrier .courrier em { font-style: normal; font-size: 11px; color: var(--muted); }
.cand-courrier .courrier li.interview_invited em, .cand-courrier .courrier li.offer em { color: var(--ok); }
.cand-courrier .courrier li.rejected em { color: var(--bad); }
.cand-courrier .courrier b { font-size: 14px; font-weight: 500; }
.cand-courrier .courrier small { font-size: 12px; color: var(--muted); }
.cand-courrier details { margin-top: 4px; }
.cand-courrier summary { cursor: pointer; font-size: 12.5px; color: var(--accent); }
.cand-courrier pre { margin: 8px 0 0; white-space: pre-wrap; word-break: break-word; font: inherit; font-size: 13px; line-height: 1.45; }
.cand-compte .compte { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; font-size: 13.5px; align-items: center; }
.cand-compte dt { color: var(--muted); font-size: 12px; }
.cand-compte dd { margin: 0; overflow-wrap: anywhere; }
.cand-compte .cand-mdp { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.cand-compte .cand-mdp i { font-style: normal; font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.cand-compte .chip { padding: 6px 12px; font-size: 12px; }
.cand-actes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 4px; }
.cand-actes .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.cand-actes .btn.clair { background: var(--verre2); border: 1px solid rgba(255, 255, 255, 0.95); color: var(--ink); }
.cand-actes .btn.bleu { background: linear-gradient(180deg, var(--accent), var(--accent-hover)); color: #fff; box-shadow: 0 14px 30px -18px var(--accent); }
.cand-actes .btn:only-child { grid-column: 1 / -1; }
/* Relire avant d'envoyer : ce que MAXX a écrit, puis le bouton. Et l'échec, en mots,
   avec ses deux portes. Même verre, même rythme que le reste de la fiche. */
.cand-relire, .cand-echec { padding: 18px 16px 16px; display: grid; gap: 12px; }
.cand-relire .sous, .cand-echec .sous { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.cand-relire .sous b { color: var(--ink); font-weight: 600; }
.cand-echec .sous small { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); opacity: 0.8; }
.cand-echec .chip.vert { justify-self: start; font-size: 12px; padding: 7px 12px; }
.cand-echec .sous.conseil { color: var(--ink); font-size: 13px; }
.cand-relire .relire-corriger { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.55); }
.relire-actes .btn small { font-size: 11px; font-weight: 400; opacity: 0.85; margin-left: 5px; }
.relire-corps { max-height: 46svh; overflow: auto; -webkit-overflow-scrolling: touch; border-radius: 16px; background: rgba(255, 255, 255, 0.5); padding: 4px 12px; }
.relire-corps h5 { margin: 12px 0 4px; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.relire-corps dl { margin: 0; }
.relire-corps dl > div { display: grid; gap: 2px; padding: 9px 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 7%, transparent); }
.relire-corps dl > div:last-child { border-bottom: 0; }
.relire-corps dt { font-size: 11.5px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.relire-corps dt em { font-style: normal; font-size: 10px; letter-spacing: 0.04em; color: var(--accent); white-space: nowrap; }
.relire-corps dd { margin: 0; font-size: 14px; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; }
.relire-actes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.relire-actes .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; border-radius: 999px; border: 0; font: inherit; text-decoration: none; font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; cursor: pointer; }
.relire-actes .btn.clair { background: var(--verre2); border: 1px solid rgba(255, 255, 255, 0.95); color: var(--ink); }
.relire-actes .btn.bleu { background: linear-gradient(180deg, var(--accent), var(--accent-hover)); color: #fff; box-shadow: 0 14px 30px -18px var(--accent); }
.relire-actes .btn:disabled { opacity: 0.55; cursor: default; box-shadow: none; }
.relire-actes .btn:only-child { grid-column: 1 / -1; }
.relire-etat:empty { display: none; }
/* la ligne « à relire » dans les listes : la lettre respire comme quand MAXX remplit,
   mais le mot est à la personne */
.direct-tel li.ready > .etat em, .suivi-liste li.ready > .etat em { color: var(--accent); font-weight: 600; }
.direct-tel li.ready .lettre { box-shadow: 0 0 0 3px var(--accent-wash); }
.cand-vide, .cand-attente { margin: 40px 16px; text-align: center; color: var(--muted); font-size: 14px; }
.cand-vide a { color: var(--ink); }
/* la page d'une candidature n'a pas de dock : ses gestes sont en bas */
html.detail-candidature .dock { display: none !important; }
html.detail-candidature .view .home-top { display: none !important; }
.cand-echec .cand-partie { margin-top: 2px; }
.cand-echec .cand-envoyee { background: none; border: 0; padding: 0; font: inherit; font-size: 12.5px; color: var(--accent, #2563eb); text-decoration: underline; cursor: pointer; }
.cand-echec .cand-envoyee:disabled { opacity: 0.6; }
.cand-relire .relire-corriger-ligne { background: none; border: 0; padding: 0 0 0 6px; font: inherit; font-size: 11.5px; color: var(--accent, #2563eb); text-decoration: underline; cursor: pointer; vertical-align: baseline; }
.cand-relire .relire-corriger-ligne:disabled { opacity: 0.6; }
