/* ==========================================================================
   Kolytica Job, styles de la landing et de sa coquille applicative
   La charte, les tokens et les boutons viennent de kolytica-charte.css.
   ========================================================================== */

.jobs-page {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  overflow-x: clip;
  background:
    radial-gradient(720px 420px at 100% 16%, rgba(15, 157, 140, .08), transparent 68%),
    var(--ivory);
}

@supports (min-height: 100dvh) {
  .jobs-page { min-height: 100dvh; }
}

.jobs-page [hidden] {
  display: none !important;
}

.jobs-page:not(.is-authenticated) [data-auth-only] {
  display: none !important;
}

.jobs-page.is-authenticated [data-guest-only] {
  display: none !important;
}

.jobs-page :where([tabindex="-1"]):focus {
  outline: none;
}

.jobs-skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: .72rem 1rem;
  border-radius: 10px;
  color: #fff;
  background: var(--navy);
  font-weight: 750;
  transform: translateY(-160%);
}

.jobs-skip-link:focus {
  color: #fff;
  transform: translateY(0);
}

.jobs-noscript {
  padding: .8rem max(20px, calc((100% - var(--maxw)) / 2));
  border-bottom: 1px solid rgba(15, 157, 140, .42);
  color: var(--navy);
  background: #edf7f5;
  font-weight: 650;
}

/* En-tête */
.jobs-header {
  position: sticky;
  top: 0;
  z-index: 80;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid rgba(231, 225, 210, .92);
  background: rgba(251, 247, 236, .94);
  box-shadow: var(--sh-1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.jobs-header-row {
  display: flex;
  width: 100%;
  max-width: var(--maxw);
  min-width: 0;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-left: max(clamp(20px, 5vw, 44px), calc(12px + env(safe-area-inset-left, 0px)));
  padding-right: max(clamp(20px, 5vw, 44px), calc(12px + env(safe-area-inset-right, 0px)));
}

.jobs-brand,
.jobs-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.jobs-brand {
  flex: none;
  min-width: 0;
  min-height: 44px;
  color: var(--navy);
  text-decoration: none;
}

.jobs-brand:hover {
  color: var(--navy);
  text-decoration: none;
}

.jobs-brand img {
  width: 44px;
  height: 44px;
}

.jobs-brand-copy {
  display: grid;
  line-height: 1;
}

.jobs-brand-copy strong {
  font-size: 1.08rem;
  letter-spacing: -.02em;
}

.jobs-brand-copy small {
  margin-top: 5px;
  color: var(--teal-dark);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.jobs-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 30px);
}

.jobs-nav a,
.jobs-back-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--navy);
  font-size: .94rem;
  font-weight: 650;
  text-decoration: none;
}

.jobs-nav a:hover,
.jobs-back-link:hover {
  color: var(--teal-dark);
  text-decoration: none;
}

.jobs-header-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.jobs-header-cta,
.jobs-account-link {
  min-height: 44px;
  padding: .58em 1.05em;
  white-space: nowrap;
}

/* Logo image + menu deroulant (harmonise avec la page Formation en ligne) */
.jobs-brand-logo {
  display: grid;
  min-width: 0;
  gap: 2px;
  justify-items: start;
  align-content: center;
}
.jobs-brand-logo .jobs-logo {
  width: clamp(148px, 20vw, 190px);
  max-width: 100%;
  height: auto;
}
.jobs-brand-logo small {
  color: var(--teal-dark);
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.jobs-nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: rgba(15, 157, 140, .10);
  cursor: pointer;
  transition: background .15s;
}
.jobs-nav-toggle:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}
.jobs-nav-toggle:hover,
.jobs-nav-toggle[aria-expanded="true"] { background: rgba(15, 157, 140, .18); }
.jobs-nav-toggle span {
  display: block;
  width: 22px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--teal-dark);
  transition: transform .22s ease, opacity .18s ease;
}
.jobs-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.jobs-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.jobs-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.jobs-mnav {
  max-height: calc(100vh - 70px - env(safe-area-inset-top, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  border-top: 1px solid rgba(231, 225, 210, .92);
  background: rgba(251, 247, 236, .98);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.jobs-mnav a,
.jobs-mnav-logout {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  padding: 13px clamp(20px, 5vw, 44px);
  border: 0;
  border-top: 1px solid rgba(231, 225, 210, .92);
  color: var(--navy);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
}
.jobs-mnav a:first-child { border-top: 0; }
.jobs-mnav a:hover,
.jobs-mnav-logout:hover {
  color: var(--teal-dark);
  background: rgba(15, 157, 140, .06);
  text-decoration: none;
}

@supports (max-height: 100dvh) {
  .jobs-mnav {
    max-height: calc(100dvh - 70px - env(safe-area-inset-top, 0px));
  }
}

/* Cloche de notifications : meme gabarit que le hamburger (44x44, teinte teal)
   pour que les deux commandes de l'en-tete se lisent comme une paire. */
.jobs-notif-toggle {
  position: relative;
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: rgba(15, 157, 140, .10);
  color: var(--teal-dark);
  cursor: pointer;
  transition: background .15s;
}
.jobs-notif-toggle:hover,
.jobs-notif-toggle[aria-expanded="true"] { background: rgba(15, 157, 140, .18); }
.jobs-notif-toggle:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}
.jobs-notif-toggle svg { width: 22px; height: 22px; }

/* Pastille de comptage : rappel visuel seulement, l'information est portee par
   l'aria-label du bouton. */
.jobs-notif-dot {
  position: absolute;
  top: 1px;
  right: 1px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border: 1.5px solid var(--ivory);
  border-radius: 9px;
  background: var(--gold);
  color: var(--navy);
  font-size: .64rem;
  font-weight: 800;
  line-height: 14px;
  text-align: center;
}

/* Panneau plein largeur sous la ligne d'en-tete, comme .jobs-mnav : pas de
   positionnement absolu, donc aucun conflit d'empilement avec le header colle. */
.jobs-notif {
  max-height: calc(100vh - 70px - env(safe-area-inset-top, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  border-top: 1px solid rgba(231, 225, 210, .92);
  background: rgba(251, 247, 236, .98);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.jobs-notif-inner {
  padding-top: 16px;
  padding-bottom: 18px;
}
/* La landing heberge ici un composant du socle : la gouttiere est deja assuree
   par .wrap, et le bloc n'a plus a reserver de marge basse. */
.jobs-notif .app-counters {
  margin: 0;
  padding: 0;
}
.jobs-notif-title {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: .95rem;
  font-weight: 800;
}
.jobs-notif-note {
  margin: 12px 0 0;
  color: var(--slate);
  font-size: .88rem;
}
.jobs-notif-cta {
  margin-top: 14px;
  display: inline-flex;
}

@supports (max-height: 100dvh) {
  .jobs-notif {
    max-height: calc(100dvh - 70px - env(safe-area-inset-top, 0px));
  }
}

/* Hero */
.jobs-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(64px, 8vw, 112px);
  color: #fff;
  background:
    radial-gradient(640px 420px at 88% 28%, rgba(15, 157, 140, .25), transparent 70%),
    radial-gradient(520px 360px at 4% 110%, rgba(31, 182, 212, .11), transparent 70%),
    linear-gradient(148deg, var(--navy) 0%, var(--navy-deep) 58%, #0b3944 132%);
}

.jobs-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(36px, 6vw, 78px);
  align-items: center;
}

.jobs-hero-copy { max-width: 720px; }
.jobs-hero-lead { max-width: 58ch; }

/* Fond anime reseau de neurones (porte depuis la page Formation en ligne) */
.jobs-hero .const {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.jobs-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(115% 100% at 14% 42%, rgba(9, 18, 42, .74) 0%, rgba(9, 18, 42, .34) 44%, rgba(9, 18, 42, 0) 74%);
  pointer-events: none;
}
.k-pop {
  position: absolute;
  z-index: 4;
  width: 74px;
  height: 74px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: kpop 1.7s cubic-bezier(.2, 1.4, .4, 1) forwards;
  filter: drop-shadow(0 0 14px rgba(127, 216, 203, .55)) drop-shadow(0 0 30px rgba(217, 149, 33, .35));
}
.k-pop svg { display: block; width: 100%; height: 100%; }
@keyframes kpop {
  0% { transform: translate(-50%, -50%) scale(0) rotate(-50deg); opacity: 0; }
  32% { transform: translate(-50%, -50%) scale(1.18) rotate(6deg); opacity: 1; }
  46% { transform: translate(-50%, -50%) scale(.98) rotate(0deg); }
  58% { transform: translate(-50%, -50%) scale(1.04); }
  72% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}
.jobs-hero-badge {
  width: auto;
  height: 72px;
  margin-bottom: 22px;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .18));
}
.jobs-hero-actions { max-width: 620px; }

.jobs-eyebrow-on-dark {
  color: #8fe3d5;
}

.jobs-hero h1 {
  max-width: 15ch;
  margin-top: 14px;
  color: #fff;
}

.jobs-hero-lead {
  max-width: 61ch;
  margin-top: 22px;
  color: #e4ebf8;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
}

.jobs-hero-limit {
  max-width: 61ch;
  margin-top: 18px;
  padding-left: 15px;
  border-left: 3px solid #79d8cb;
  color: #d7e2f4;
  font-size: .98rem;
}

.jobs-hero-limit strong {
  color: #fff;
}

.jobs-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 30px;
}

.jobs-intention-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 25px 0 0;
  padding: 0;
  list-style: none;
}

.jobs-intention-pills li {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: .35rem .75rem;
  border: 1px solid rgba(255, 255, 255, .23);
  border-radius: 999px;
  color: #f4f7fd;
  background: rgba(255, 255, 255, .08);
  font-size: .84rem;
  font-weight: 700;
}

.jobs-hero-card {
  position: relative;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 24px;
  color: var(--ink);
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 28px 70px rgba(4, 12, 31, .34);
}

.jobs-hero-card-head,
.jobs-preview-offer-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.jobs-card-kicker,
.jobs-demo-label {
  color: var(--teal-dark);
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.jobs-match-chip {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: .25rem .68rem;
  border: 1px solid rgba(15, 157, 140, .3);
  border-radius: 999px;
  color: var(--navy);
  background: rgba(15, 157, 140, .12);
  font-size: .78rem;
  font-weight: 800;
}

.jobs-hero-card h2 {
  margin-top: 22px;
  color: var(--navy);
  font-size: clamp(1.52rem, 2.8vw, 2rem);
}

.jobs-offer-meta {
  display: flex;
  min-width: 0;
  /* Le libelle d'organisation peut tenir sur deux lignes : le logo reste
     aligne sur la premiere, pas centre au milieu du bloc. */
  align-items: flex-start;
  gap: 10px;
  margin-top: 7px;
  color: var(--slate);
  font-size: .93rem;
}
.jobs-offer-meta > span { min-width: 0; }

.jobs-card-rule {
  width: 58px;
  height: 3px;
  margin-block: 22px 18px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
}

.jobs-card-label {
  color: var(--navy);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .04em;
}

.jobs-reason-list {
  display: grid;
  gap: 11px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.jobs-reason-list li {
  position: relative;
  padding-left: 22px;
  color: var(--ink);
  font-size: .94rem;
}

.jobs-reason-list li::before {
  position: absolute;
  top: .58em;
  left: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  content: "";
}

.jobs-card-note {
  margin-top: 20px;
  color: var(--slate);
  font-size: .82rem;
}

/* Sections communes */
.jobs-section-lead {
  margin-top: 14px;
}

.jobs-section-heading {
  display: grid;
  min-width: 0;
  gap: 18px;
  align-items: end;
}

.jobs-section-heading h2,
.jobs-how h2,
.jobs-limits h2,
.jobs-access h2,
.jobs-workspace h1 {
  margin-top: 10px;
}

/* Parcours en trois étapes */
.jobs-how {
  background: var(--ivory);
}

.jobs-step-list {
  display: grid;
  gap: 18px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.jobs-step-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 15px;
  align-items: start;
}

.jobs-step-number,
.jobs-limit-number {
  display: grid;
  flex: none;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--teal-dark);
  font-weight: 850;
}

.jobs-step-number {
  width: 42px;
  height: 42px;
}

.jobs-step-card p {
  margin-top: 10px;
  color: var(--slate);
  font-size: .96rem;
}

/* Démonstration publique */
.jobs-preview {
  border-block: 1px solid var(--line);
  background: #fff;
}

.jobs-preview-frame,
.jobs-limit-list {
  border: 1px solid rgba(15, 157, 140, .42);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 100%, rgba(217, 149, 33, .10), transparent 26%),
    radial-gradient(circle at 88% 0, rgba(217, 149, 33, .07), transparent 20%),
    linear-gradient(145deg, #fff 0%, rgba(238, 250, 247, .92) 100%);
  box-shadow:
    0 14px 36px rgba(11, 111, 98, .10),
    0 0 0 5px rgba(15, 157, 140, .055),
    inset 0 1px 0 rgba(255, 255, 255, .98);
}

.jobs-preview-frame {
  display: grid;
  gap: 22px;
  margin-top: 32px;
  padding: clamp(20px, 4vw, 36px);
}

.jobs-fictional-profile,
.jobs-preview-offer {
  min-width: 0;
}

.jobs-fictional-profile {
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid rgba(15, 157, 140, .28);
  border-radius: 14px;
  background: rgba(255, 255, 255, .76);
}

.jobs-fictional-profile h3,
.jobs-preview-offer h3 {
  margin-top: 12px;
  color: var(--navy);
  font-size: clamp(1.25rem, 2.5vw, 1.58rem);
}

.jobs-fictional-profile dl {
  display: grid;
  gap: 0;
  margin: 20px 0 0;
}

.jobs-fictional-profile dl div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding-block: 11px;
  border-top: 1px solid var(--line);
}

.jobs-fictional-profile dt {
  color: var(--slate);
  font-size: .88rem;
}

.jobs-fictional-profile dd {
  margin: 0;
  color: var(--navy);
  font-size: .9rem;
  font-weight: 750;
  text-align: right;
}

.jobs-preview-offer {
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--sh-1);
}

.jobs-blocked-badge,
.jobs-source-state {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: .28rem .66rem;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 800;
}

.jobs-blocked-badge {
  color: #fff;
  background: var(--navy);
}

.jobs-source-state {
  border: 1px solid var(--line);
  color: var(--slate);
  background: var(--ivory);
}

.jobs-reason-details {
  margin-top: 22px;
  border-top: 1px solid var(--line);
}

.jobs-reason-details summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--navy);
  cursor: pointer;
  font-weight: 800;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}

.jobs-reason-details summary::-webkit-details-marker {
  display: none;
}

.jobs-reason-details summary::after {
  display: grid;
  width: 30px;
  height: 30px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--teal-dark);
  content: "+";
  font-size: 1.15rem;
  line-height: 1;
}

.jobs-reason-details[open] summary::after {
  color: #1d1608;
  background: var(--gold);
  content: "−";
}

.jobs-reason-content {
  padding: 4px 0 4px;
  color: var(--ink);
}

.jobs-reason-code {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 16px;
  color: var(--slate);
  font-size: .8rem;
}

.jobs-reason-code code {
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: .36rem .58rem;
  border-radius: 7px;
  color: #fff;
  background: var(--navy);
  font-size: .78rem;
}

.jobs-preview-note {
  margin-top: 18px;
  color: var(--slate);
  font-size: .86rem;
}

/* Limites */
.jobs-limits {
  background: var(--ivory);
}

.jobs-limits-grid {
  display: grid;
  gap: 30px;
  align-items: start;
}

.jobs-limit-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 8px clamp(18px, 3vw, 28px);
  list-style: none;
}

.jobs-limit-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding-block: 18px;
}

.jobs-limit-list li + li {
  border-top: 1px solid rgba(15, 157, 140, .2);
}

.jobs-limit-number {
  width: 34px;
  height: 34px;
  font-size: .85rem;
}

.jobs-limit-list strong {
  color: var(--navy);
}

.jobs-limit-list p {
  margin-top: 5px;
  color: var(--slate);
  font-size: .91rem;
}

/* Accès et authentification */
.jobs-access {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(600px 360px at 0 100%, rgba(15, 157, 140, .09), transparent 70%),
    #f5f1e7;
}

.jobs-access-grid {
  display: grid;
  min-width: 0;
  gap: clamp(32px, 6vw, 70px);
  align-items: start;
}

.jobs-access-copy {
  min-width: 0;
}

/* Cartes numerotees, style exact de la page Formation (learning-access-points) */
.jobs-access-points {
  display: grid;
  gap: 10px;
  max-width: 520px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.jobs-access-points li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: center;
  padding: 13px 15px;
  border: 1px solid rgba(231, 225, 210, .94);
  border-radius: 14px;
  background: #fff;
}

.jobs-access-points li > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, var(--teal-dark), var(--teal));
  font-weight: 900;
}

.jobs-access-points li div { display: grid; }
.jobs-access-points strong { color: var(--navy); font-size: .92rem; }
.jobs-access-points small { color: var(--slate); font-size: .78rem; }

/* Barre de recherche emploi, style exact de la recherche Formation
   (learning-catalog-search) */
.jobs-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.jobs-search {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  gap: 11px;
  margin: 0 0 16px;
  padding: 0 15px;
  border: 1px solid rgba(20, 34, 79, .20);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 13px 32px rgba(20, 34, 79, .065);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.jobs-search:focus-within {
  border-color: var(--teal-dark);
  box-shadow: 0 0 0 4px rgba(15, 157, 140, .13);
}

.jobs-search-icon {
  display: grid;
  width: 21px;
  height: 21px;
  flex: none;
  place-items: center;
  color: var(--teal-dark);
}

.jobs-search-icon svg { width: 19px; height: 19px; }

.jobs-search input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--navy);
  background: transparent;
  font: inherit;
  font-size: 1rem;
}

.jobs-search input::placeholder { color: #70798a; }

/* Cadre teal, style exact de la carte auth Formation (auth-card) */
.jobs-auth-card {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-width: 0;
  max-width: 500px;
  justify-self: end;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid rgba(15, 157, 140, .74);
  border-radius: 26px;
  background:
    radial-gradient(circle at 96% 4%, rgba(217, 149, 33, .15), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, .99), rgba(240, 251, 248, .98));
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, .98),
    0 0 0 6px rgba(15, 157, 140, .16),
    0 22px 58px rgba(11, 111, 98, .18),
    inset 0 1px 0 rgba(255, 255, 255, .98);
  overflow: hidden;
  /* L'en-tete est collant et mesure 71 px : sans cette marge, un defilement
     cale en haut glisse le haut de la carte, onglets compris, dessous. La
     valeur jumelle vit dans auth.mjs, sous le nom HEADER_CLEARANCE_PX. */
  scroll-margin-top: 88px;
  scroll-margin-bottom: 24px;
}

/* Meme raison pour la section qui la porte : un navigateur sans JavaScript
   suit l'ancre nativement, et doit lui aussi degager l'en-tete. */
.jobs-access {
  scroll-margin-top: 88px;
}

.jobs-auth-card-head > span {
  color: var(--teal-dark);
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.jobs-auth-card-head h2 {
  margin-top: 8px;
  color: var(--navy);
  font-size: clamp(1.5rem, 3vw, 1.9rem);
}

.jobs-auth-card-head p {
  margin-top: 8px;
  color: var(--slate);
  font-size: .93rem;
}

/* Onglets Connexion / Creer un compte, style exact Formation (auth-tabs) */
.jobs-auth-tabs {
  display: flex;
  width: 100%;
  min-width: 0;
  gap: 8px;
  margin: 24px 0 20px;
  padding: 8px;
  border: 1px solid rgba(15, 157, 140, .28);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(191, 233, 224, .72), rgba(15, 157, 140, .14)), #f6fcfa;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78), 0 14px 36px rgba(15, 157, 140, .10);
}

.jobs-auth-tabs button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 48px;
  border: 0;
  border-radius: 15px;
  color: var(--teal-dark);
  background: rgba(255, 255, 255, .58);
  cursor: pointer;
  font: inherit;
  font-size: .94rem;
  font-weight: 850;
  line-height: 1.25;
  overflow-wrap: anywhere;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.jobs-auth-tabs button:hover {
  color: var(--navy);
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 157, 140, .10);
}

.jobs-auth-tabs button.is-active,
.jobs-auth-tabs button[aria-selected="true"] {
  color: #fff;
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  box-shadow: 0 12px 26px rgba(15, 157, 140, .24);
}

.jobs-auth-tabs button.is-active::after,
.jobs-auth-tabs button[aria-selected="true"]::after {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(217, 149, 33, .18);
  content: "";
  vertical-align: middle;
}

.jobs-auth-status {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 157, 140, .3);
  border-radius: 10px;
  color: var(--navy);
  background: rgba(15, 157, 140, .09);
  font-size: .9rem;
}

.jobs-auth-form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.jobs-auth-form > p {
  color: var(--slate);
  font-size: .92rem;
}

.jobs-auth-field {
  display: grid;
  gap: 6px;
}

.jobs-auth-field label {
  color: var(--navy);
  font-size: .86rem;
  font-weight: 750;
}

.jobs-auth-field input {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: .72rem .82rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.jobs-auth-field input:hover {
  border-color: rgba(15, 157, 140, .55);
}

.jobs-auth-field input:focus {
  border-color: var(--teal);
  outline: 2px solid rgba(15, 157, 140, .22);
  outline-offset: 1px;
}

.jobs-auth-field small {
  color: var(--slate);
  font-size: .78rem;
}

/* Un echec ne doit pas se peindre comme une reussite. La zone de message porte
   deja `is-error` depuis le script, mais rien ne la distinguait : « Adresse ou
   mot de passe incorrect » s'affichait dans le meme vert que « Connexion
   reussie ». La couleur seule ne suffit pas, le fond et la bordure changent
   aussi, pour rester lisible en vision des couleurs atypique. */
.jobs-auth-status.is-error {
  border-color: rgba(168, 58, 50, .38);
  color: #70251f;
  background: rgba(168, 58, 50, .08);
}

/* Erreur attachee au champ concerne, annoncee par `aria-describedby`. Un
   message global ne dit pas QUEL champ reprendre. */
.jobs-auth-field-error {
  display: block;
  margin: 0;
  color: #70251f;
  font-size: .78rem;
  font-weight: 700;
}

.jobs-auth-field-error[hidden] {
  display: none !important;
}

.jobs-auth-field input[aria-invalid="true"] {
  border-color: rgba(168, 58, 50, .7);
}

.jobs-auth-field input[aria-invalid="true"]:focus {
  outline-color: rgba(168, 58, 50, .25);
}

.jobs-auth-row {
  display: flex;
  justify-content: flex-end;
}

.jobs-text-button {
  min-height: 44px;
  padding: .35rem .2rem;
  border: 0;
  color: var(--teal-dark);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: .88rem;
  font-weight: 750;
}

.jobs-text-button:hover {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.jobs-auth-submit,
.jobs-auth-oauth {
  width: 100%;
}

.jobs-auth-oauth {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  padding: .72rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  color: var(--navy);
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.jobs-oauth-logo { flex: none; }

.jobs-auth-oauth:hover {
  border-color: var(--teal);
  background: rgba(15, 157, 140, .06);
}

.jobs-auth-note {
  margin-top: 18px;
  color: var(--slate);
  font-size: .8rem;
}

/* Hôtes des lots onboarding et dashboard */
.jobs-workspace {
  min-height: calc(100vh - 76px);
  background: var(--ivory);
}

@supports (min-height: 100dvh) {
  .jobs-workspace {
    min-height: calc(100dvh - 76px - env(safe-area-inset-top, 0px));
  }
}

/* Depuis le lot notifications, cet en-tete ne porte plus de titre visible : le
   h1 reste pour l'arborescence et pour aria-labelledby, mais en lecture d'ecran
   seulement. Le bloc ne doit donc plus reserver de hauteur ni tracer de filet
   quand la zone de statut est vide. */
.jobs-workspace-head {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.jobs-workspace-status:empty {
  margin: 0;
  min-height: 0;
}

.jobs-workspace-status {
  min-width: 0;
  max-width: 40ch;
  color: var(--slate);
  font-size: .9rem;
}

[data-jobs-onboarding-root],
[data-jobs-dashboard-root] {
  margin-top: 28px;
}

.jobs-view,
[data-jobs-onboarding-root],
[data-jobs-dashboard-root] {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* Pied de page */
.jobs-footer {
  padding: 38px max(0px, env(safe-area-inset-right, 0px))
    calc(38px + env(safe-area-inset-bottom, 0px))
    max(0px, env(safe-area-inset-left, 0px));
}

.jobs-footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.jobs-footer-brand img {
  width: 40px;
  height: 40px;
}

.jobs-footer-brand div {
  display: grid;
  line-height: 1.1;
}

.jobs-footer-brand strong {
  color: #fff;
}

.jobs-footer-brand small {
  margin-top: 5px;
  font-size: .68rem;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.jobs-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.jobs-footer nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Responsive */
@media (min-width: 760px) {
  .jobs-step-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .jobs-section-heading {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  }
}

@media (min-width: 860px) {
  .jobs-preview-frame {
    grid-template-columns: minmax(240px, .72fr) minmax(0, 1.28fr);
  }

  .jobs-limits-grid {
    grid-template-columns: minmax(0, .82fr) minmax(460px, 1.18fr);
    gap: clamp(38px, 6vw, 78px);
  }
}

@media (min-width: 920px) {
  .jobs-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .jobs-access-grid {
    grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  }
}

/* Format PC de l'espace candidat (issue #203, lot G4). La coquille suit le
   socle .app- : largeurs de mesure bornées, alignement sur la grille du flux,
   aucun composant mobile étiré. Le socle vit dans kolytica-jobs-app.css,
   section 13, sous le même seuil de 920px. */
@media (min-width: 920px) {
  /* Barre de recherche bornée et alignée sur le bord gauche de la grille
     d'offres (les compteurs partagent la même largeur de mesure). */
  .jobs-search {
    max-width: var(--app-pc-lead, 620px);
    margin-bottom: 22px;
  }

  [data-jobs-onboarding-root],
  [data-jobs-dashboard-root] {
    margin-top: 30px;
  }
}

@media (max-width: 899px) {
  .jobs-nav {
    display: none;
  }

  .jobs-header-row {
    min-height: 70px;
  }

  .jobs-back-link {
    display: none;
  }

  .jobs-workspace {
    min-height: calc(100vh - 70px);
  }

  @supports (min-height: 100dvh) {
    .jobs-workspace {
      min-height: calc(100dvh - 70px - env(safe-area-inset-top, 0px));
    }
  }
}

@media (max-width: 620px) {
  .jobs-header-row {
    gap: 10px;
  }

  .jobs-brand img {
    width: 40px;
    height: 40px;
  }

  .jobs-brand-logo .jobs-logo {
    width: clamp(132px, 40vw, 148px);
    height: auto;
  }

  .jobs-brand-copy small {
    letter-spacing: .12em;
  }

  .jobs-header-cta,
  .jobs-account-link {
    min-height: 44px;
    padding: .52em .78em;
    font-size: .86rem;
  }

  .jobs-hero {
    padding-block: 54px 64px;
  }

  .jobs-hero-actions {
    display: grid;
  }

  .jobs-hero-actions .btn {
    width: 100%;
  }

  .jobs-hero-card {
    border-radius: 18px;
  }

  .jobs-fictional-profile dl div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .jobs-fictional-profile dd {
    text-align: left;
  }

  .jobs-auth-tabs {
    gap: 6px;
    padding: 6px;
  }

  .jobs-auth-tabs button {
    width: 100%;
  }

  .jobs-auth-card {
    padding: 20px 18px;
    border-radius: 20px;
  }

  .jobs-page.is-authenticated .jobs-workspace {
    padding-block: 16px 0;
  }

  .jobs-workspace > .wrap {
    padding-inline: 0;
  }

  .jobs-workspace-head {
    gap: 12px;
    margin-inline: 14px;
    padding-bottom: 0;
  }

  .jobs-workspace-head > *,
  .jobs-workspace-status {
    width: 100%;
    max-width: 100%;
  }

  .jobs-search {
    width: calc(100% - 24px);
    /* Jamais sous 44px : c'est une cible tactile (regle 5.1, --app-tap). */
    min-height: 44px;
    margin: 0 12px 8px;
    padding-inline: 13px;
    border-radius: 12px;
  }

  .jobs-search input {
    min-height: 42px;
    font-size: .95rem;
  }

  [data-jobs-onboarding-root],
  [data-jobs-dashboard-root] {
    margin-top: 12px;
  }

  /* Le titre et le contenu des etapes partagent desormais le meme bord :
     tant que la carte avait un cadre, l'ecart etait masque ; sans cadre, il
     sauterait aux yeux. */
  .jobs-onboarding__heading,
  .jobs-onboarding__form {
    padding-inline: 14px;
  }

  [data-jobs-view="enregistrees"] {
    padding-inline: 12px;
  }

  .jobs-footer-row,
  .jobs-footer nav {
    align-items: flex-start;
  }

  .jobs-footer-row {
    display: grid;
  }
}

@media (max-width: 390px) {
  .jobs-brand-copy {
    display: none;
  }

  .jobs-header-cta {
    font-size: .82rem;
  }

  /* Le lien rapide reste VISIBLE sur telephone : c'est le seul chemin
     apparent vers les offres, tout le reste vit dans le menu deroulant.
     Il se compacte plutot que de disparaitre. */
  .jobs-account-link {
    padding: .48em .7em;
    font-size: .8rem;
  }

  .jobs-brand-logo .jobs-logo {
    width: clamp(104px, 32vw, 120px);
  }
}

@media (max-width: 340px) {
  .jobs-auth-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .jobs-auth-tabs button {
    min-height: 46px;
  }

  .jobs-header-row {
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .jobs-page *,
  .jobs-page *::before,
  .jobs-page *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (forced-colors: active) {
  .jobs-reason-list li::before,
  .jobs-step-number,
  .jobs-limit-number,
  .jobs-reason-details summary::after {
    border: 1px solid CanvasText;
  }
}
