/* Passe « unslop » (méthode de Damir Sokolovsky, @heydamir, CC BY 4.0 : github.com/heydamir/unslop).
   Chargée en dernier : elle ne casse rien, elle redline.
   Direction
   - Produit : chaque matin, Jobmind trouve les stages et alternances publiés sur les sites carrières, puis accompagne jusqu'au contrat.
   - Caractère : attentif, matinal, complice.
   - Univers : le courrier de 7 h avant les cours, la lumière du matin, l'écoute (« Keep your ears open »).
   - Moments riches : l'en-tête du tri du matin, l'anneau de score et « Pourquoi ce match », l'avatar d'Écho.
   - Signature : le tampon horaire, comme un cachet de la poste (« reçue 7:04 »), sur ce qui arrive le matin.
   Chrome calme : rampe neutre légèrement bleutée, un seul accent (pétrole), ocre réservé au « moyen », orange réservé à Écho. */

/* ---------- 1 · Espacement et rayons (grille de 4) ---------- */
:root {
  --radius: 16px; --r-ctl: 10px; --r-sm: 6px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1); --spring: cubic-bezier(0.22, 1, 0.36, 1);
  --card-shadow: 0 1px 2px rgba(13, 26, 36, 0.05);
  --glass-shadow: 0 8px 24px rgba(13, 26, 36, 0.06), 0 1px 2px rgba(13, 26, 36, 0.05);
  --line: rgba(13, 26, 36, 0.08);
  --stamp: #1b6c79;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --card-shadow: none; --glass-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); --line: rgba(233, 240, 245, 0.08); --stamp: #5cc8d2; --bg: #0a0f15; --surface: #10171f; --surface-2: #161e28; } }
:root[data-theme="dark"] { --card-shadow: none; --glass-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); --line: rgba(233, 240, 245, 0.08); --stamp: #5cc8d2; --bg: #0a0f15; --surface: #10171f; --surface-2: #161e28; }

/* ---------- 2 · Couleur : rien ne brille ---------- */
.avatar { background: var(--primary) !important; box-shadow: none !important; }
.meter .fill { background: var(--primary); }
.h2-float.f2 li i { background: linear-gradient(90deg, var(--primary) var(--v), var(--line) var(--v)); }
.h2-grid, .aurora, .cine-aurora, .grid-bg, .cine-giant, .marquee, .scroll-cue { display: none !important; }
.h2-title .accent-w, .hero-title .accent-w { color: inherit; }
.l-head.scrolled { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
/* Thème : une icône, pas un ciel animé */
.sm-toggle { background: transparent; border: 1px solid var(--line); }
.sm-toggle:hover { filter: none; background: color-mix(in oklab, var(--fg) 6%, transparent); }
.sm-sky { display: none; }
.sm-moon, .sm-sun { color: var(--fg); filter: none; }
/* Nav du bas : surface pleine, filet, pastille active en simple marche de surface */
.nimbus-glass { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--glass-shadow); }
.nimbus-water { display: none !important; }
.nimbus-drop { display: block !important; background: color-mix(in oklab, var(--fg) 7%, transparent); box-shadow: inset 0 0 0 1px var(--line); transition: transform 0.28s var(--ease), width 0.28s var(--ease); }
.nimbus-nav { --n-fg: var(--fg); --n-fg-soft: var(--muted); }
.nimbus-nav[data-tone="dark"] { --n-fg: var(--fg); --n-fg-soft: var(--muted); }
.nimbus-item { font-weight: 500; }
.nimbus-item:focus-visible { outline-color: var(--primary); }
.a-top-in.glass, .a-top-in { border-radius: 16px; box-shadow: var(--card-shadow); }
/* Écho : la couleur reste dans l'avatar, pas autour */
.fd-echo { background: var(--surface) !important; border-color: var(--line) !important; }
.fd-echo:hover { transform: none !important; box-shadow: none !important; border-color: color-mix(in oklab, var(--fg) 22%, transparent) !important; }
.ec-hero { background: var(--surface) !important; }
.ec-av .iva-body { box-shadow: 0 10px 24px -14px rgba(60, 24, 6, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.08) !important; }
.ec-av .iva-halo { opacity: 0.35; }

/* ---------- 3 · Icônes : une taille, la couleur du texte ---------- */
.nv-ico svg { width: 18px; height: 18px; stroke-width: 1.6; }
.nv-ico[data-fx] svg, .nimbus-item[aria-current="page"] .nv-ico svg { animation: none !important; transform: none !important; }
.nv-orb { animation: none; background: none; -webkit-mask: none; mask: none; width: auto; height: auto; }

/* ---------- 5 · Typo : la hiérarchie par la taille ---------- */
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; }
.view-head h1 { font-weight: 500; letter-spacing: -0.03em; }
.h2-title, .hero-title, .cine-title, .sec-title, .how-head h2 { font-weight: 500 !important; letter-spacing: -0.035em; }
.eyebrow { letter-spacing: 0; text-transform: none; font-size: 12px; color: var(--muted); }
.demo-tag { letter-spacing: 0; text-transform: none; font-size: 11.5px; border-radius: var(--r-sm); }
.btn { font-weight: 500; letter-spacing: 0; }
.fs-num, .sv-v, .ec-pipe b, .ec-q-num b { font-variant-numeric: tabular-nums; }
.brand-txt small { letter-spacing: 0; text-transform: none; font-size: 10px; }

/* ---------- 6 · Mise en page ---------- */
.h2-pill, .h2-copy .ticks { display: none !important; }
.h2-copy { padding-top: 24px; }
.l-signin { white-space: nowrap; }
.why-stats div:has(> [data-hidden-share]) { display: none; } /* chiffre « à mesurer » : pas de placeholder affiché */
.why-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 720px; }
.cine { min-height: 0 !important; padding-block: 96px 48px !important; }
.cine-center { padding-block: 0 !important; }
.cine-links .pill-sm { background: none !important; border: 0 !important; box-shadow: none !important; color: var(--muted); padding: 0 8px; height: 32px; }
.cine-links .pill-sm:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; }
.made { background: none !important; border: 0 !important; height: auto; padding: 0; font-family: var(--font-body); font-size: 13px; color: var(--muted); }

/* ---------- 7 · Détails : rayons imbriqués, contrôles à 10 px ---------- */
.btn { border-radius: var(--r-ctl); }
.btn-sm { border-radius: 8px; }
.seg { border-radius: 12px; }
.seg button, .seg .seg-thumb { border-radius: 8px; }
.chip, .ec-chip, .pf-chip, .ec-sim, .fd-f, .fd-refresh { border-radius: 8px; }
.card, .fd-echo, .ec-alert, .ec-demo { border-radius: var(--radius); }
.fd-echo { border-radius: 12px; }
.ec-how li, .ec-dl div, .ec-pipe li, .ec-to, .ec-next li > button, .ec-next li > div, .ec-field input, .ec-field textarea { border-radius: 10px; }
.card .card { border-radius: 12px; }
.toast { border-radius: 12px; }
.lock-card { border-radius: 14px; }
/* Signature : le tampon horaire */
.stamp { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: var(--r-sm); border: 1px solid color-mix(in oklab, var(--stamp) 45%, transparent);
  font-family: var(--font-mono); font-size: 11.5px; line-height: 1; color: var(--stamp); white-space: nowrap; font-variant-numeric: tabular-nums; }
.stamp::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
/* L'en-tête du tri du matin */
.mn-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 8px; color: var(--muted); font-size: 15px; }
.mn-line b { color: var(--fg); font-weight: 500; }
.mn-best { all: unset; cursor: pointer; color: var(--fg); font-weight: 500; text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--fg) 25%, transparent); text-underline-offset: 4px; }
.mn-best:hover { text-decoration-color: currentColor; }
.mn-best:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

/* ---------- 9 · Animation : seulement ce qui explique ---------- */
.h2-pill .dot, .live-pill .dot, .jr-node.rel .jr-dot::after, .bx-seal i, .made .h, .fs-arc-halo, .rq-inv-ic, .ec-pill.echo i, .jr-core::before, .jr-core::after { animation: none !important; }
.card { transition: border-color 0.16s var(--ease), background-color 0.16s var(--ease); }
.btn { transition: background-color 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease), transform 0.12s var(--ease); will-change: auto; }
.btn:active { transform: scale(0.98); }
.seg .seg-thumb { transition: transform 0.28s var(--ease), width 0.28s var(--ease); }
.toast { transition: opacity 0.2s var(--ease), transform 0.3s var(--ease); }
[data-magnetic] { transform: none !important; }

/* ---------- Îlot d'activité (en-tête) ---------- */
.isl { display: inline-flex; align-items: center; gap: 8px; height: 36px; max-width: min(360px, 46vw); margin-left: auto; padding: 0 12px 0 10px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--fg); font: inherit; font-size: 13px; cursor: pointer;
  transition: background-color 0.16s var(--ease), opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.isl[hidden] { display: none !important; }
.isl:hover { background: color-mix(in oklab, var(--fg) 6%, var(--surface-2)); }
.isl.enter { opacity: 0; transform: translateY(-4px); }
.isl-ic { width: 16px; height: 16px; flex: none; display: grid; place-items: center; }
.isl-ic .iv-spin { width: 14px; height: 14px; margin: 0; border-width: 2px; }
.isl-ic svg { width: 16px; height: 16px; color: var(--good); }
.isl-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.isl-txt b { font-weight: 500; }
.isl-txt em { font-style: normal; color: var(--muted); }
.isl-n { font-family: var(--font-mono); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.isl-x { all: unset; margin-left: 2px; font-size: 12.5px; font-weight: 500; color: var(--primary); cursor: pointer; padding: 4px 2px; }
.isl-x:focus-visible { outline: 2px solid var(--primary); border-radius: 4px; }
.a-top-in .isl:not([hidden]) ~ .lang-seg { margin-left: 0 !important; }
.isl-dot { width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff8 0 15%, transparent 40%), #df5f28; }
@media (max-width: 640px) { .isl { max-width: 52vw; padding: 0 10px; } .isl-n, .isl-txt em { display: none; } }

/* ---------- Fins mémorables ---------- */
.end-card { display: grid; gap: 12px; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); animation: end-in 0.4s var(--ease) both; }
.end-card h4 { font-size: 16px; font-weight: 600; }
.end-card p { color: var(--muted); font-size: 14px; }
.end-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.end-peak { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: color-mix(in oklab, var(--good) 8%, transparent); font-size: 14px; }
.end-peak svg { width: 18px; height: 18px; flex: none; color: var(--good); margin-top: 2px; }
.end-next { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: center; }
.end-next > span:first-child { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); color: var(--primary); }
.end-next svg { width: 18px; height: 18px; }
.end-next b { display: block; font-weight: 500; }
.end-next em { display: block; font-style: normal; font-size: 13px; color: var(--muted); }
.end-done { color: var(--good); font-size: 13.5px; display: inline-flex; gap: 6px; align-items: center; }
.end-done svg { width: 16px; height: 16px; }
@keyframes end-in { from { opacity: 0; transform: translateY(8px); } }
.burst { position: fixed; z-index: 95; width: 0; height: 0; pointer-events: none; }
.burst i { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 2px; background: var(--h); animation: burst 0.9s var(--ease) forwards; }
@keyframes burst { 0% { transform: rotate(var(--a)) translateX(0); opacity: 1; } 100% { transform: rotate(var(--a)) translateX(var(--d)) translateY(14px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .end-card { animation: none; } .burst { display: none; } }
.h2-sum { grid-template-columns: repeat(2, 1fr); }
.h2-head p { display: flex; align-items: center; gap: 8px; }
.h2-head .stamp, .h2-job-foot .stamp { height: 18px; font-size: 10px; padding: 0 6px; }
.btn:disabled, .btn[disabled] { opacity: 1; background: var(--surface-2) !important; color: var(--muted) !important; border: 1px solid var(--line) !important; }
@media (max-width: 640px) { .mn-line > span[aria-hidden] { display: none; } }
