/* ==========================================================================
   Ferfahren — site public, pages d'authentification, espace candidat
   (s'appuie sur les jetons et composants de ausbildung/app.css)
   ========================================================================== */

/* ---------- En-tête public ---------- */
body.public{background:var(--panel)}
body.public > main{display:block;padding:0}
.wrap{max-width:1120px;margin:0 auto;padding:0 24px}
.pubbar{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.86);-webkit-backdrop-filter:saturate(180%) blur(14px);backdrop-filter:saturate(180%) blur(14px);border-bottom:1px solid rgba(227,231,236,.8)}
.pubbar-in{max-width:1120px;margin:0 auto;padding:0 24px;height:68px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.pubnav{display:flex;align-items:center;gap:8px}
.pubnav .langs{margin-right:8px}
.pub-burger{display:none}
.drawer{position:fixed;top:0;left:0;bottom:0;z-index:80;width:min(86vw,340px);height:100%;height:100dvh;background:var(--panel);box-shadow:var(--shadow-lg);
  display:flex;flex-direction:column;padding:14px 16px 20px;transform:translateX(-102%);visibility:hidden;transition:transform .28s var(--ease),visibility 0s linear .28s}
.drawer.is-open{transform:none;visibility:visible;transition:transform .28s var(--ease),visibility 0s}
.drawer .side-head{padding:2px 0 22px 4px}
.drawer-body{display:flex;flex-direction:column;gap:10px}
.drawer-foot{margin-top:auto;display:flex;align-items:center;gap:10px;color:var(--muted);padding-top:16px;border-top:1px solid var(--line)}
/* « Le menu public » n'est jamais visible au-delà de 900px */
@media (min-width:900px){.drawer,.scrim[data-drawer-scrim="pub-nav"]{display:none}}

/* ---------- Hero ---------- */
.hero-band{position:relative;overflow:hidden;border-bottom:1px solid var(--line);
  background:radial-gradient(900px 420px at 85% 10%,#eceef6 0,rgba(236,238,246,0) 70%),linear-gradient(180deg,#fff 0,var(--bg) 100%)}
.hero-band:before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.55;
  background-image:linear-gradient(var(--line) 1px,transparent 1px),linear-gradient(90deg,var(--line) 1px,transparent 1px);background-size:56px 56px;
  -webkit-mask-image:radial-gradient(ellipse 70% 60% at 70% 30%,#000 0,transparent 75%);mask-image:radial-gradient(ellipse 70% 60% at 70% 30%,#000 0,transparent 75%)}
.hero{position:relative;display:grid;grid-template-columns:1.15fr 1fr;gap:56px;align-items:center;max-width:1120px;margin:0 auto;padding:80px 24px 96px}
.hero h1{font-family:var(--display);font-weight:400;font-size:clamp(46px,6.2vw,76px);line-height:.98;letter-spacing:.01em;margin:0 0 22px;color:var(--ink)}
.hero p.lead{font-size:18px;line-height:1.6;color:var(--ink-2);max-width:560px;margin:0 0 32px}
.hero .row{gap:12px}
.hero > img{width:100%;max-width:420px;justify-self:center}
.hero-trust{display:flex;flex-wrap:wrap;gap:8px 20px;margin-top:28px;color:var(--muted);font-size:14px}
.hero-trust span{display:inline-flex;align-items:center;gap:8px}
.hero-trust .ic{color:var(--ok)}

/* Visuel « parcours » */
.journey{position:relative;background:var(--panel);border:1px solid var(--line);border-radius:20px;box-shadow:0 30px 60px -20px rgba(16,24,40,.18),0 2px 6px rgba(16,24,40,.04);padding:24px;max-width:440px;justify-self:end;width:100%}
.journey-top{display:flex;align-items:center;gap:12px;padding-bottom:18px;margin-bottom:6px;border-bottom:1px solid var(--line)}
.journey-top img{width:34px;height:40px;object-fit:cover;object-position:left center}
.journey-top .bars{flex:1;display:flex;flex-direction:column;gap:6px}
.journey-top .bars i{display:block;height:8px;border-radius:999px;background:var(--muted-bg)}
.journey-top .bars i:first-child{width:60%;background:#dfe2ea}.journey-top .bars i:last-child{width:38%}
.journey ol{list-style:none;padding:0;margin:0}
.journey li{position:relative;display:flex;align-items:center;gap:14px;padding:11px 0;font-size:14px;font-weight:500;color:var(--ink-2)}
.journey li:not(:last-child):after{content:"";position:absolute;left:13px;top:38px;height:calc(100% - 30px);width:2px;background:var(--line)}
.journey li.done:after{background:#bfe0cb}
.journey .jd{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;flex-shrink:0;border:2px solid var(--line);color:var(--subtle);font-size:12px;font-weight:700;background:var(--panel)}
.journey .done .jd{background:var(--ok);border-color:var(--ok);color:#fff}
.journey .now .jd{border-color:var(--brand);color:var(--brand);box-shadow:0 0 0 4px rgba(5,3,26,.08)}
.journey .now{color:var(--ink);font-weight:600}
.journey .todo{color:var(--muted)}
.journey-badge{position:absolute;right:-14px;bottom:28px;display:flex;align-items:center;gap:10px;background:var(--brand);color:#fff;border-radius:14px;padding:12px 16px;box-shadow:var(--shadow-lg);font-size:13px;font-weight:600}
.journey-badge .ic{color:#9be3b7}

/* ---------- Sections ---------- */
.section{max-width:1120px;margin:0 auto;padding:88px 24px}
.section + .section{padding-top:0}
.section > h2,.section-head h2{font-family:var(--display);font-weight:400;font-size:clamp(36px,4.4vw,48px);line-height:1;letter-spacing:.02em;margin:0 0 12px}
.section-head{max-width:640px;margin:0 0 40px}
.section-head p{color:var(--muted);font-size:17px;margin:0}
.section > h2{margin-bottom:36px}
.band{background:var(--bg);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.band > .section{padding-top:88px;padding-bottom:88px}

.stepsline{counter-reset:st;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;list-style:none;padding:0;margin:0}
.stepsline li{position:relative;background:var(--panel);border:1px solid var(--line);border-radius:var(--radius-lg);padding:24px;counter-increment:st;box-shadow:var(--shadow-xs);transition:box-shadow .2s,border-color .2s}
.stepsline li:hover{box-shadow:var(--shadow-md);border-color:var(--line-strong)}
.stepsline li:before{content:counter(st,decimal-leading-zero);display:block;font-family:var(--display);font-size:28px;letter-spacing:.04em;line-height:1;color:var(--subtle);margin:0 0 16px}
.stepsline li b{display:block;font-size:16px;margin-bottom:6px}
.stepsline li br{display:none}
.stepsline li .small{font-size:14px;line-height:1.55;display:block}

.offer{display:flex;flex-direction:column;padding:32px}
.offer .offer-ic{width:48px;height:48px;border-radius:12px;display:grid;place-items:center;background:var(--brand);color:#fff;margin-bottom:20px}
.offer h2{font-family:var(--display);font-weight:400;font-size:34px;letter-spacing:.03em;line-height:1;margin:0 0 10px}
.offer > p{color:var(--ink-2);font-size:16px}
.offer .ticks{flex:1;margin-bottom:24px}
.offer .btn{align-self:flex-start}

.price-card{display:flex;flex-direction:column;padding:32px}
.price-card .muted.small{font-size:13px;font-weight:600;text-transform:uppercase;letter-spacing:.06em}
.price{font-family:var(--display);font-size:52px;letter-spacing:.02em;line-height:1.05;margin:8px 0 4px;color:var(--ink)}
.price-card.featured{background:var(--brand);border-color:var(--brand);color:#e9e9f1;box-shadow:0 30px 60px -24px rgba(5,3,26,.55)}
.price-card.featured .price{color:#fff}
.price-card.featured .muted{color:#a9a8bd}
.price-card.featured .ticks li:before{background-color:#9be3b7}
.price-card.featured .ticks li{color:#e9e9f1}
.price-card .ticks{border-top:1px solid var(--line);padding-top:20px;margin-top:20px}
.price-card.featured .ticks{border-color:rgba(255,255,255,.14)}
.note{display:flex;gap:12px;align-items:flex-start;color:var(--muted);font-size:14px;margin-top:8px;max-width:820px}
.note .ic{margin-top:2px;color:var(--ok)}

.ticks{list-style:none;padding:0;margin:16px 0}
.ticks li{padding:5px 0 5px 28px;position:relative;line-height:1.5}
.ticks li:before{content:"";position:absolute;left:0;top:8px;width:18px;height:18px;background-color:var(--ok);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m8 12.5 2.8 2.8L16.5 9.5'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m8 12.5 2.8 2.8L16.5 9.5'/%3E%3C/svg%3E") center/contain no-repeat}

.faq-list{max-width:820px}
details.faq{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius-lg);margin-bottom:12px;transition:border-color .2s,box-shadow .2s}
details.faq[open]{border-color:var(--line-strong);box-shadow:var(--shadow-md)}
details.faq summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 22px;font-weight:600;font-size:16px;cursor:pointer;border-radius:var(--radius-lg)}
details.faq summary::-webkit-details-marker{display:none}
details.faq summary:after{content:"";width:20px;height:20px;flex-shrink:0;background-color:var(--muted);transition:transform .2s var(--ease);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat}
details.faq[open] summary:after{transform:rotate(180deg)}
details.faq summary:hover{color:var(--ink)}
details.faq summary:focus-visible{outline:0;box-shadow:var(--ring)}
details.faq p{margin:0;padding:0 22px 20px;color:var(--ink-2);line-height:1.65}

.cta-band{max-width:1120px;margin:0 auto 96px;padding:0 24px}
.cta-box{background:var(--brand);color:#fff;border-radius:24px;padding:56px 48px;display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;position:relative;overflow:hidden}
.cta-box:after{content:"";position:absolute;right:-80px;top:-120px;width:360px;height:360px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.12),transparent 70%)}
.cta-box h2{font-family:var(--display);font-weight:400;font-size:clamp(34px,4vw,46px);letter-spacing:.02em;line-height:1;margin:0;max-width:640px}
.cta-box .btn{background:#fff;color:var(--brand);border-color:#fff;position:relative;z-index:1}
.cta-box .btn:hover{background:#eceef4}

/* ---------- Pied de page ---------- */
.pubfoot{border-top:1px solid var(--line);background:var(--bg)}
.pubfoot-in{max-width:1120px;margin:0 auto;padding:56px 24px 40px;display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:40px}
.pubfoot-brand p{color:var(--muted);font-size:14px;max-width:360px;margin:16px 0 0}
.pubfoot-links{display:flex;flex-direction:column;gap:12px;font-size:14px}
.pubfoot-links a{color:var(--ink-2);font-weight:500}
.pubfoot-contact{display:flex;flex-direction:column;align-items:flex-start;gap:16px;font-size:14px;color:var(--ink-2)}
.mailto{display:inline-flex;align-items:center;gap:8px}
.mailto .ic{color:var(--muted)}
.pubfoot-bottom{max-width:1120px;margin:0 auto;padding:20px 24px 32px;border-top:1px solid var(--line);color:var(--muted);font-size:13px}

/* ---------- Pages légales ---------- */
.legal{max-width:820px}
.legal .card{padding:40px}
.legal h3{font-size:17px;margin:28px 0 8px}
.legal p{color:var(--ink-2);line-height:1.7}

/* ---------- Authentification ---------- */
.auth{max-width:480px;margin:0 auto;padding:56px 16px 88px}
.auth-head{text-align:center;margin-bottom:28px}
.auth-head img{width:44px;height:52px;object-fit:cover;object-position:left center;margin-bottom:16px}
.auth-head h1{font-size:28px}
.auth-head .sub{margin:8px auto 0}
.auth > .card,.auth form.card{padding:32px}
.auth .foot-note{text-align:center;margin-top:20px}
.radio-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.radio-cards label,.radio-cards label.card{display:flex;gap:10px;align-items:center;font-weight:500;font-size:14px;margin:0;padding:14px;border:1.5px solid var(--line);border-radius:var(--radius);cursor:pointer;box-shadow:none;transition:border-color .15s,background .15s}
.radio-cards label:hover{border-color:var(--line-strong)}
.radio-cards label:has(input:checked){border-color:var(--brand);background:#f6f6fa;box-shadow:0 0 0 1px var(--brand)}
.radio-cards input{margin:0;flex-shrink:0}

/* ---------- Tableau de bord candidat ---------- */
.next-card{position:relative;overflow:hidden;background:var(--brand);color:#e9e9f1;border:0;border-radius:18px;padding:32px;margin-bottom:20px;box-shadow:0 20px 40px -24px rgba(5,3,26,.6)}
.next-card:after{content:"";position:absolute;right:-120px;top:-160px;width:420px;height:420px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.10),transparent 68%);pointer-events:none}
.next-card .eyebrow{color:#a9a8bd;display:flex;align-items:center;gap:8px}
.next-card h2{color:#fff;font-size:24px;letter-spacing:-.02em;margin:10px 0 10px}
.next-card p{color:#cfcfe0;max-width:640px}
.next-card .small.muted{color:#b4b3c8}
.next-card .btn{position:relative;z-index:1;margin-top:8px}
.next-card .btn.pri{background:#fff;color:var(--brand);border-color:#fff}
.next-card .btn.pri:hover{background:#eceef4}
.next-card .btn:not(.pri){background:transparent;color:#fff;border-color:rgba(255,255,255,.35)}
.next-card .btn:not(.pri):hover{background:rgba(255,255,255,.08)}
.next-card .btn:focus-visible{box-shadow:0 0 0 3px rgba(255,255,255,.4)}
.next-card .progress-row{display:flex;align-items:center;gap:12px;margin-top:24px;font-size:13px;color:#b4b3c8;max-width:520px}
.next-card .progress{flex:1;background:rgba(255,255,255,.14)}
.next-card .progress span{background:#9be3b7}

.timeline{list-style:none;padding:0;margin:0}
.timeline li{position:relative;display:flex;gap:14px;padding:0 0 22px}
.timeline li:last-child{padding-bottom:0}
.timeline li:not(:last-child):after{content:"";position:absolute;left:13px;top:32px;bottom:4px;width:2px;border-radius:2px;background:var(--line)}
.timeline li.done:not(:last-child):after{background:#bfe0cb}
.timeline .dot{position:relative;z-index:1;flex-shrink:0;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:700;border:2px solid var(--line-strong);color:var(--muted);background:var(--panel)}
.timeline .dot .ic{width:15px;height:15px;stroke-width:2.6}
.timeline li > div{padding-top:3px;min-width:0}
.timeline li > div b{font-weight:600}
.timeline .done .dot{background:var(--ok);border-color:var(--ok);color:#fff}
.timeline .in_progress .dot{border-color:var(--brand);color:var(--brand);box-shadow:0 0 0 4px rgba(5,3,26,.08)}
.timeline .in_progress b{color:var(--ink)}
.timeline .todo b,.timeline .pending b{color:var(--ink-2);font-weight:500}
.timeline .skipped{opacity:.55}
.timeline .st{display:inline-block;margin-left:6px;font-size:12px;color:var(--muted)}
.timeline .done .st{color:var(--ok)}.timeline .in_progress .st{color:var(--brand);font-weight:600}
.timeline .note{font-size:13px;color:var(--muted);margin-top:4px}
.card.guide .timeline{margin:12px 0 20px}
.progress{height:8px;background:var(--muted-bg);border-radius:999px;overflow:hidden}.progress span{display:block;height:100%;background:var(--ok);border-radius:999px;transition:width .4s var(--ease)}
.kpi .progress{margin-top:6px}

.side-card h2{display:flex;align-items:center;gap:10px}
.side-card h2 .ic{color:var(--subtle)}
.pay-lines{display:flex;flex-direction:column;gap:10px;margin:0 0 16px}
.pay-lines > div{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px}

/* ---------- Documents ---------- */
.checklist{list-style:none;padding:0;margin:0 0 16px;display:flex;flex-direction:column;gap:2px}
.checklist li{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--line);font-size:14px}
.checklist li:last-child{border-bottom:0}
.checklist .ok{color:var(--ink)}.checklist .ok .ic{color:var(--ok)}
.checklist .missing{color:var(--muted)}.checklist .missing .ic{color:var(--line-strong)}
.doc-links{display:flex;flex-wrap:wrap;gap:4px 14px;margin-top:8px;font-size:13px}
.doc-links a{display:inline-flex;align-items:center;gap:5px;font-weight:500}
.doc-links .ic{width:15px;height:15px}

/* ---------- Paiement ---------- */
.pay-card{display:flex;flex-direction:column}
.pay-card .price{font-size:46px;margin-top:6px}
.pay-card .ticks{flex:1}
.pay-wait{max-width:520px;margin:24px auto;text-align:center;padding:40px 32px}
.pay-wait .pw-ic{width:72px;height:72px;border-radius:50%;margin:0 auto 20px;display:grid;place-items:center;background:var(--muted-bg);color:var(--brand);position:relative}
.pay-wait .pw-ic:after{content:"";position:absolute;inset:-6px;border-radius:50%;border:2px solid var(--line);border-top-color:var(--brand);animation:spin 1.2s linear infinite}
.pay-wait h1{font-size:22px;margin-bottom:12px}
.pay-wait #state{margin:8px 0 16px}
@keyframes spin{to{transform:rotate(360deg)}}

/* ---------- Questionnaire / entraînement (classes partagées) ---------- */
.wizard{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:24px}
.wizard a{display:inline-flex;align-items:center;height:32px;padding:0 12px;border-radius:999px;font-size:13px;font-weight:500;border:1px solid var(--line);color:var(--muted);background:var(--panel)}
.wizard a:hover{text-decoration:none;border-color:var(--line-strong);color:var(--ink)}
.wizard a.on{background:var(--brand);color:#fff;border-color:var(--brand)}.wizard a.done{color:var(--ok);border-color:#bfe0cb;background:var(--ok-bg)}
.fs-row{border:1px solid var(--line);background:#fbfcfd;border-radius:var(--radius);padding:16px;margin-bottom:12px}
.fs-row .grid{gap:12px}
.fs-row .field{margin-bottom:0}
.chat{display:flex;flex-direction:column;gap:12px}
.bubble{max-width:80%;padding:12px 16px;border-radius:16px;line-height:1.55;font-size:15px}
.bubble.recruiter{background:var(--muted-bg);align-self:flex-start;border-bottom-left-radius:4px}
.bubble.candidate{background:var(--brand);color:#f2f2f2;align-self:flex-end;border-bottom-right-radius:4px}
.bubble.feedback{background:var(--ok-bg);color:var(--ink);align-self:stretch;max-width:100%;font-size:14px;border:1px solid #c6e6d1}
.bubble .de{font-style:italic}
.card.guide{padding:32px;line-height:1.65}
.card.guide h2{margin-top:24px}.card.guide h2:first-child{margin-top:0}
.card.guide ul,.card.guide ol:not(.timeline){padding-left:20px}
.card.guide li{margin-bottom:6px}

/* ---------- Responsive ---------- */
@media (max-width:1000px){.stepsline{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:899.98px){
  .pubnav{display:none}
  .pub-burger{display:inline-grid;margin-right:-8px}
  .pubbar-in{height:60px;padding:0 16px}
  .pubbar .brand img{width:26px;height:30px}.pubbar .brand span{font-size:22px}
  .hero{grid-template-columns:1fr;gap:40px;padding:40px 16px 56px}
  .hero h1{font-size:clamp(42px,12vw,56px)}
  .hero p.lead{font-size:16px;margin-bottom:24px}
  .hero .row .btn{flex:1 1 auto}
  .journey{justify-self:stretch;max-width:none}
  .journey-badge{right:12px;bottom:-16px}
  .section,.band > .section{padding:56px 16px}
  .section + .section{padding-top:0}
  .section > h2{margin-bottom:24px}
  .section-head{margin-bottom:24px}
  .stepsline{grid-template-columns:1fr;gap:12px}
  .stepsline li{padding:20px}
  .offer,.price-card{padding:24px}
  .price{font-size:44px}
  .cta-band{padding:0 16px;margin-bottom:56px}
  .cta-box{padding:36px 24px}
  .cta-box .btn{width:100%}
  .pubfoot-in{grid-template-columns:1fr;gap:28px;padding:40px 16px 28px}
  .pubfoot-bottom{padding:20px 16px 28px}
  .wrap{padding:0 16px}
  .legal .card{padding:24px 20px}
  .auth{padding:32px 16px 56px}
  .auth > .card,.auth form.card{padding:24px 20px}
  .radio-cards{grid-template-columns:1fr}
  .next-card{padding:24px 20px;border-radius:16px}
  .next-card h2{font-size:20px}
  .next-card .btn{width:100%}
  .bubble{max-width:92%}
  .card.guide{padding:20px}
  .pay-wait{padding:32px 20px}
}
@media (prefers-reduced-motion:reduce){.pay-wait .pw-ic:after{animation:none}}
.timeline .current .dot{border-color:var(--brand);color:var(--brand);box-shadow:0 0 0 4px rgba(5,3,26,.08)}
.timeline .current b{color:var(--ink)}
.timeline .current .st{color:var(--brand);font-weight:600}
@media (min-width:900px){.dash-cols{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr)}}
.pay-wait:has(#state.t-ok) .pw-ic:after,.pay-wait:has(#state.t-bad) .pw-ic:after{animation:none;border-color:transparent}
.pay-wait:has(#state.t-ok) .pw-ic{background:var(--ok-bg);color:var(--ok)}
@media (max-width:899.98px){.stepsline li:before{font-size:22px;margin-bottom:10px}.stepsline li{padding:18px 20px}}
