/* =====================================================================
   FlexiJob — landing page
   Concept : le produit est la décoration. Deux motifs tirés du métier reviennent partout :
   la « semaine de tarifs » (7 jours, 1 tarif par jour) et la « fenêtre de 14 jours » (14 traits).
   Mise en page : colonne de 1160 px, bandes alternées papier / gris-vert, un seul accent vert profond,
   l'ambre réservé aux étoiles. Manrope (titres), Geist (texte), Geist Mono (chiffres, horaires, tarifs).
   Mouvement : transform / opacity / filter uniquement, courbes nommées, 160–700 ms,
   prefers-reduced-motion respecté (fondus courts à la place des déplacements).
   ===================================================================== */

:root {
  /* couleurs */
  --paper: #fafbfa;
  --surface: #ffffff;
  --sunken: #f1f5f3;
  --ink: #0c1612;
  --ink-2: #34433d;
  --muted: #64746d;
  --line: #e3e9e6;
  --line-strong: #cdd8d3;
  --accent: #0b6e4f;
  --accent-hover: #095b41;
  --accent-ink: #0b6e4f;
  --accent-wash: #e5f2ec;
  --on-accent: #ffffff;
  --star: #e3a008;
  --final-bg: #0b3a2c;
  --final-ink: #ffffff;
  --final-muted: #a9cdbf;
  --sh: 160 30% 12%;

  /* typographie */
  --font-display: "Manrope", "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Consolas, monospace;

  /* profondeur */
  --shadow-sm: 0 1px 2px hsl(var(--sh) / .06), 0 1px 1px hsl(var(--sh) / .04);
  --shadow-md: 0 1px 2px hsl(var(--sh) / .05), 0 10px 28px -8px hsl(var(--sh) / .16);
  --shadow-lg: 0 2px 6px hsl(var(--sh) / .05), 0 28px 64px -16px hsl(var(--sh) / .28);

  /* mouvement */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-std: cubic-bezier(.2, 0, 0, 1);
  --t-fast: 160ms;
  --t-med: 280ms;
  --t-slow: 700ms;

  /* mise en page */
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --radius: 16px;
  --radius-sm: 10px;
  color-scheme: light;
  interpolate-size: allow-keywords;
}
/* Mode clair par défaut ; le sombre s'applique seulement si l'utilisateur le choisit (icône lune / soleil). */
:root[data-theme="dark"] {
  --paper: #0a110e; --surface: #111a16; --sunken: #0d1512; --ink: #e9f0ec; --ink-2: #bccac3; --muted: #8b9b94;
  --line: #1e2925; --line-strong: #2c3a34; --accent: #149a6d; --accent-hover: #18b17e; --accent-ink: #5fd3a6;
  --accent-wash: #11302a; --star: #f2b632; --final-bg: #0d2a21; --final-muted: #8fbfac; --sh: 160 40% 2%;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.025em; text-wrap: balance; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
small { font-size: .75em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.wrap { max-width: 1160px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }

/* ---------- pictogrammes : le sens reste lisible même sans le texte ---------- */
.i {
  width: 1.1em; height: 1.1em; flex: none; vertical-align: -.18em;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
/* pastille d'icône : sections, tuiles, étapes, questions */
.section-ic, .tile-ic, .step-ic, .cl-ic, .q-ic, .tl-ic, .window-ic, .p-ic {
  display: inline-grid; place-items: center; flex: none;
  border-radius: 12px; background: var(--accent-wash); color: var(--accent-ink);
}
.section-ic { width: 48px; height: 48px; margin-bottom: 4px; }
.section-ic .i { width: 24px; height: 24px; }
.tile-ic { width: 42px; height: 42px; margin-bottom: 6px; }
.tile-ic .i { width: 21px; height: 21px; }
.step-ic { width: 44px; height: 44px; }
.step-ic .i { width: 22px; height: 22px; }
.cl-ic { width: 34px; height: 34px; border-radius: 10px; }
.cl-ic .i { width: 17px; height: 17px; }
.q-ic { width: 34px; height: 34px; border-radius: 10px; }
.q-ic .i { width: 17px; height: 17px; }
.tl-ic { width: 38px; height: 38px; margin-bottom: 6px; }
.tl-ic .i { width: 19px; height: 19px; }
.tl-end .tl-ic { background: var(--sunken); color: var(--muted); }
.window-ic { width: 46px; height: 46px; align-self: center; }
.window-ic .i { width: 24px; height: 24px; }
.p-ic { width: 36px; height: 36px; border-radius: 10px; }
.p-ic .i { width: 18px; height: 18px; }
.eyebrow { font-family: var(--font-mono); font-size: .78rem; font-weight: 500; letter-spacing: .02em; color: var(--accent-ink); }

/* ---------- boutons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 18px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; white-space: nowrap; cursor: pointer;
  transition: background-color var(--t-fast) var(--ease-std), border-color var(--t-fast) var(--ease-std),
              color var(--t-fast) var(--ease-std), transform var(--t-fast) var(--ease-std);
}
.btn:active { transform: scale(.97); }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 1rem; }
.btn-arrow { transition: transform var(--t-med) var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: inset 0 1px 0 rgb(255 255 255 / .14), var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--surface); border-color: var(--line-strong); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--ink-2); }
.btn-light { background: #ffffff; color: #0b3a2c; }
.btn-light:hover { background: #e5f2ec; }
.btn-outline-light { border-color: rgb(255 255 255 / .35); color: #ffffff; }
.btn-outline-light:hover { border-color: #ffffff; background: rgb(255 255 255 / .06); }

/* ---------- en-tête ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; }
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity var(--t-med) var(--ease-std);
}
.site-header.is-scrolled::before { opacity: 1; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--paper); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.brand img { border-radius: 8px; }

.header-right { display: flex; align-items: center; gap: 10px; }

/* bouton lune / soleil : lune en mode clair (passer en sombre), soleil en mode sombre */
.theme-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; flex: none; cursor: pointer;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--t-fast) var(--ease-std), transform var(--t-fast) var(--ease-std);
}
.theme-btn:hover { border-color: var(--line-strong); }
.theme-btn:active { transform: scale(.92); }
.theme-btn .i { width: 19px; height: 19px; grid-area: 1 / 1; }
.theme-btn .i-sun, [data-theme="dark"] .theme-btn .i-moon { display: none; }
[data-theme="dark"] .theme-btn .i-sun { display: block; }
@keyframes theme-icon-in { from { transform: rotate(-90deg) scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.theme-btn .i { animation: theme-icon-in 420ms var(--ease-out); }

/* fondu des couleurs pendant la bascule de thème uniquement */
.theme-switching, .theme-switching *, .theme-switching *::before, .theme-switching *::after {
  transition: background-color 300ms ease, color 300ms ease, border-color 300ms ease, fill 300ms ease, stroke 300ms ease !important;
}

/* navigation à deux entrées, avec indicateur qui glisse */
.switch-nav {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px;
  background: var(--sunken); border: 1px solid var(--line); border-radius: 12px;
}
.switch-nav a {
  position: relative; z-index: 1; padding: 8px 16px; border-radius: 8px; text-align: center;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-weight: 600; font-size: .92rem; color: var(--muted); transition: color var(--t-fast) var(--ease-std);
}
.switch-nav a:hover, .switch-nav a.is-active { color: var(--ink); }
.switch-pill {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  border-radius: 8px; background: var(--surface); box-shadow: var(--shadow-sm);
  opacity: 0; transform: translateX(var(--x, 0%));
  transition: transform var(--t-med) var(--ease-out), opacity var(--t-med) var(--ease-std);
}
.switch-nav[data-active="candidats"] .switch-pill { opacity: 1; --x: 0%; }
.switch-nav[data-active="recruteurs"] .switch-pill { opacity: 1; --x: 100%; }
@media (max-width: 480px) {
  .brand span { display: none; }
  .switch-nav a { padding: 8px 10px; gap: 5px; font-size: .86rem; }
  .header-right { gap: 8px; }
  .theme-btn { width: 38px; height: 38px; }
}

/* ---------- entrée du hero (au chargement) ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes word { from { transform: translateY(105%); } to { transform: none; } }
.enter { animation: rise var(--t-slow) var(--ease-out) both; animation-delay: calc(var(--d, 0) * 55ms + 60ms); }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: 56px 0; overflow: hidden; }
.hero-grid-bg {
  position: absolute; inset: 0; z-index: -1; opacity: .7; overflow: hidden;
  mask-image: radial-gradient(ellipse 70% 60% at 72% 30%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 72% 30%, #000 10%, transparent 70%);
}
/* la trame est portée par un pseudo-élément qui glisse lentement sous le masque (fixe) */
.hero-grid-bg::before {
  content: ""; position: absolute; inset: -56px 0 0 -56px;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
}
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.kicker {
  align-self: flex-start; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  font-size: .82rem; color: var(--ink-2); box-shadow: var(--shadow-sm);
}
.kicker-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.kicker-item .i { color: var(--accent-ink); }

/* trouver → travailler → se noter */
.promises { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.promises li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; }
.promises .p-sep { color: var(--line-strong); }
.hero-title { font-size: clamp(2.5rem, 5.6vw, 4.25rem); font-weight: 800; line-height: 1.02; letter-spacing: -.04em; }
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .1em; margin-bottom: -.1em; }
.hero-title .w > span { display: inline-block; animation: word 800ms var(--ease-out) both; animation-delay: calc(var(--d) * 45ms + 80ms); }
.hero-title .accent { color: var(--accent-ink); }
.lead { font-size: 1.15rem; line-height: 1.6; color: var(--ink-2); max-width: 54ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: .88rem; color: var(--muted); }
.fine a, .fine span { display: inline-flex; align-items: center; gap: 6px; }
.fine-sep { color: var(--line-strong); }
.fine a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; transition: text-decoration-color var(--t-fast); }
.fine a:hover { text-decoration-color: var(--ink); }

/* composition produit */
.hero-visual { position: relative; min-width: 0; padding: 8px 0 64px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.tilt {
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 600ms var(--ease-out);
}
.profile-panel { padding: 20px; max-width: 440px; }
.pp-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.pp-avatar { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent-wash); color: var(--accent-ink); font-weight: 700; font-size: .9rem; }
.pp-id { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pp-id span { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; color: var(--muted); }
.pp-id span .i { color: var(--accent-ink); }
.pp-compat { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-mono); font-size: .8rem; color: var(--accent-ink); border: 1px solid currentColor; padding: 2px 8px; border-radius: 6px; }
.pp-label, .pp-foot span, .rp-pill, .rp-meta, .mp-kicker, .mp-label, .mp-meta, .earn-sub, .window-scale span { display: inline-flex; align-items: center; gap: 6px; }
.mp-head strong { display: inline-flex; align-items: center; gap: 8px; }
.mp-head strong .i { color: var(--accent-ink); }
.pp-compat b { font-weight: 600; }
.pp-label { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); padding: 14px 0 6px; }
.week { font-family: var(--font-mono); font-size: .84rem; }
.week li { display: grid; grid-template-columns: 44px 1fr auto; gap: 8px; padding: 7px 0; align-items: center; }
.week li + li { border-top: 1px solid var(--line); }
.week .wd { font-family: var(--font-body); font-weight: 600; }
.week .wr { font-weight: 600; text-align: right; }
.week li.off { color: var(--muted); }
.week li.off .wd { font-weight: 400; }
.pp-foot { display: flex; justify-content: space-between; padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: .74rem; color: var(--muted); }

.review-panel { position: absolute; right: 0; bottom: 0; width: min(310px, 80%); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.review-panel p { font-size: .92rem; }
.rp-top { display: flex; justify-content: space-between; align-items: center; }
.rp-stars { color: var(--star); letter-spacing: 2px; }
.rp-pill { font-size: .72rem; font-weight: 600; color: var(--accent-ink); background: var(--accent-wash); padding: 2px 8px; border-radius: 6px; }
.rp-meta { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.float { animation: float 6s ease-in-out 1.2s infinite; }

/* fenêtre de 14 jours (motif) */
.ticks { display: grid; grid-template-columns: repeat(14, 1fr); gap: 3px; }
.ticks i { position: relative; height: 6px; border-radius: 2px; background: var(--line-strong); overflow: hidden; }
.ticks i.on, .ticks i::after { background: var(--accent); }
.ticks i::after { content: ""; position: absolute; inset: 0; transform: scaleX(0); transform-origin: left; }

/* bandeau défilant des domaines */
.marquee {
  display: flex; gap: 0; overflow: hidden; margin-top: 56px; padding-block: 22px;
  border-block: 1px solid var(--line);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; flex: none; gap: 40px; padding-right: 40px; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee li { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: 10px; }
.marquee li .i { width: 22px; height: 22px; color: var(--accent-ink); }
.marquee li::after { margin-left: 30px; }
.marquee li::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong); }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- sections ---------- */
.section { padding-block: 112px; }
.section-alt { background: var(--sunken); border-block: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 680px; margin-bottom: 48px; }
.section-head h2, .split-copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 800; line-height: 1.1; }
.section-head p:not(.eyebrow), .split-copy > p:not(.eyebrow) { color: var(--ink-2); font-size: 1.08rem; max-width: 60ch; }
.section-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

/* apparition au défilement (activée seulement si le script tourne) */
.js .reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* bento candidat */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 10px;
  padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); min-width: 0;
}
.tile::before { /* halo qui suit le pointeur */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), var(--accent-wash), transparent 60%);
  opacity: 0; transition: opacity var(--t-med) var(--ease-std);
}
.tile:hover::before { opacity: 1; }
.tile h3 { font-size: 1.15rem; font-weight: 700; }
.tile p { color: var(--muted); font-size: .95rem; }
.tile-rates { grid-column: span 2; grid-row: span 1; flex-direction: row; gap: 32px; align-items: stretch; }
.tile-rates .tile-copy { display: flex; flex-direction: column; gap: 10px; max-width: 240px; }
.tile-skills { grid-column: span 2; }

.bars { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; align-items: end; min-width: 0; }
.bar { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.bar-val { font-family: var(--font-mono); font-size: .72rem; font-weight: 500; color: var(--ink-2); min-height: 1.2em; }
.bar-fill {
  width: 100%; height: 132px; border-radius: 6px 6px 3px 3px; background: var(--accent);
  transform: scaleY(var(--v)); transform-origin: bottom;
  transition: transform 900ms var(--ease-out); transition-delay: calc(var(--n, 0) * 60ms + 200ms);
}
.bar.off .bar-fill { background: var(--line-strong); }
.bar-day { font-size: .78rem; font-weight: 600; color: var(--muted); }
.js .tile-rates:not(.is-in) .bar-fill { transform: scaleY(0); }

.earn { margin-top: auto; display: flex; flex-direction: column; gap: 2px; padding-top: 12px; }
.earn-num { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.earn-num small { font-family: var(--font-mono); font-weight: 500; font-size: .9rem; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.earn-sub { font-size: .85rem; color: var(--muted); }

.chips, .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 10px; }
.chips li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line-strong); font-size: .86rem; font-weight: 500; color: var(--muted); }
.chips li.on { border-color: var(--accent); background: var(--accent-wash); color: var(--accent-ink); }
.tags li { padding: 6px 12px; border-radius: 8px; background: var(--accent-wash); color: var(--accent-ink); font-size: .86rem; font-weight: 600; }
.tags li.ghost { background: transparent; border: 1px dashed var(--line-strong); color: var(--muted); font-weight: 500; }

/* recruteur */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.split-copy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.split-copy .btn { align-self: flex-start; margin-top: 8px; }
.checklist { display: grid; gap: 12px; margin-top: 4px; }
.checklist li { position: relative; padding-left: 48px; min-height: 34px; color: var(--muted); font-size: .96rem; }
.checklist li b { display: block; color: var(--ink); font-weight: 600; }
.checklist .cl-ic { position: absolute; left: 0; top: 2px; }

.match-panel { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.mp-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.mp-head > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mp-kicker, .mp-label { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); }
.mp-meta { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); }
.mp-rate { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mp-rate small { font-family: var(--font-mono); font-weight: 500; color: var(--muted); }
.matches { display: flex; flex-direction: column; }
.matches li {
  display: grid; grid-template-columns: 38px minmax(0, 1fr) 132px; gap: 12px; align-items: center; padding: 10px 0;
  border-top: 1px solid var(--line);
}
.matches li:first-child { border-top: 0; }
.m-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--sunken); font-weight: 700; font-size: .78rem; color: var(--ink-2); }
.m-name { display: flex; flex-direction: column; font-weight: 600; font-size: .94rem; min-width: 0; }
.m-name small { font-weight: 400; color: var(--muted); font-size: .8rem; }
.m-score { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: .85rem; }
.m-score b { font-weight: 600; min-width: 3ch; text-align: right; }
.m-bar { flex: 1; height: 6px; border-radius: 99px; background: var(--sunken); overflow: hidden; }
.m-bar > span {
  display: block; height: 100%; border-radius: inherit; background: var(--accent);
  transform: scaleX(var(--v)); transform-origin: left;
  transition: transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 120ms + 300ms);
}
.js .match-panel:not(.is-in) .m-bar > span { transform: scaleX(0); }
.mp-action {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border-radius: 8px;
  background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: .88rem;
}

/* avis */
.avis-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: end; margin-bottom: 56px; }
.avis-layout .section-head { margin-bottom: 0; }
.window { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-md); }
.window-count { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 18px; }
.window-num { font-family: var(--font-display); font-weight: 800; font-size: 5.5rem; line-height: .85; letter-spacing: -.05em; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.window-unit { font-size: .95rem; color: var(--muted); line-height: 1.3; padding-bottom: 6px; }
.ticks-lg { gap: 4px; }
.ticks-lg i { height: 28px; border-radius: 4px; background: var(--sunken); border: 1px solid var(--line); }
.ticks-lg i::after { transition: transform 360ms var(--ease-out); transition-delay: calc(var(--n, 0) * 55ms + 250ms); }
.window.is-in .ticks-lg i::after, html:not(.js) .ticks-lg i::after { transform: scaleX(1); }
.window-scale { display: flex; justify-content: space-between; margin-top: 10px; font-family: var(--font-mono); font-size: .72rem; color: var(--muted); }

.timeline { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 0; right: 0; top: 15px; height: 2px; }
.timeline::before { background: var(--line-strong); }
.timeline::after { background: var(--accent); right: 25%; transform-origin: left; transition: transform 1200ms var(--ease-out) 200ms; }
.js .timeline:not(.is-in)::after { transform: scaleX(0); }
.timeline li { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 44px 24px 0 0; min-width: 0; }
.timeline li::before {
  content: ""; position: absolute; top: 8px; left: 0; width: 16px; height: 16px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--accent);
  transition: transform 400ms var(--ease-out); transition-delay: calc(var(--i) * 250ms + 200ms);
}
.js .timeline:not(.is-in) li::before { transform: scale(0); }
.timeline .tl-end::before { border-color: var(--muted); }
.tl-day { font-family: var(--font-mono); font-size: .8rem; font-weight: 500; color: var(--accent-ink); }
.tl-end .tl-day { color: var(--muted); }
.timeline strong { font-family: var(--font-display); font-size: 1.08rem; }
.timeline li > span:last-child { color: var(--muted); font-size: .95rem; }

.blind { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 24px; align-items: center; margin-top: 72px; }
.blind-card { padding: 20px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-md); }
.blind-card .bc-stars, .blind-card .bc-text {
  transition: filter 600ms var(--ease-out), opacity 600ms var(--ease-out); transition-delay: 900ms;
}
.js .blind:not(.is-in) .bc-stars, .js .blind:not(.is-in) .bc-text { filter: blur(6px); opacity: .5; }
.bc-head { display: flex; align-items: center; gap: 10px; }
.bc-head div { display: flex; flex-direction: column; }
.bc-head span:not(.bc-avatar) { display: inline-flex; align-items: center; gap: 4px; font-size: .82rem; color: var(--muted); }
.bc-avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-wash); color: var(--accent-ink); font-size: .78rem; font-weight: 700; }
.bc-avatar.alt { background: var(--sunken); color: var(--ink-2); }
.bc-stars { color: var(--star); letter-spacing: 2px; font-size: 1.05rem; }
.bc-stars span { color: var(--line-strong); }
.bc-text { color: var(--ink-2); }
.blind-mid { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.lock { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--accent-ink); box-shadow: var(--shadow-sm); }
.lock .shackle { transform-origin: 16px 11px; transition: transform 500ms var(--ease-out) 800ms; }
.blind.is-in .shackle { transform: translateY(-2px) rotate(28deg); }
.blind-caption { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); white-space: nowrap; }

/* étapes */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps li { display: flex; flex-direction: column; gap: 8px; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.step-n { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); }
.steps strong { font-family: var(--font-display); font-size: 1.15rem; }
.steps li > span:last-child { color: var(--muted); font-size: .96rem; }

/* questions */
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
.faq-layout .section-head { margin-bottom: 0; position: sticky; top: 104px; }
.faq { border-top: 1px solid var(--line-strong); min-width: 0; }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  position: relative; cursor: pointer; list-style: none; padding: 18px 44px 18px 0;
  display: flex; align-items: center; gap: 14px;
  font-weight: 600; font-size: 1.04rem; transition: color var(--t-fast) var(--ease-std);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-ink); }
.faq summary::after { /* « + » qui pivote en « × » */
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat;
  color: var(--muted); transition: transform var(--t-med) var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details::details-content {
  block-size: 0; overflow: hidden;
  transition: block-size var(--t-med) var(--ease-out), content-visibility var(--t-med) allow-discrete;
}
.faq details[open]::details-content { block-size: auto; }
.faq-body p { padding: 0 0 22px 48px; color: var(--ink-2); max-width: 62ch; }

/* appel final */
.final { position: relative; overflow: hidden; background: var(--final-bg); color: var(--final-ink); padding-block: 104px; }
.ticks-bg { position: absolute; inset: auto -2% -96px -2%; gap: 10px; opacity: .07; pointer-events: none; }
.ticks-bg i { height: 150px; border-radius: 10px; background: #ffffff; }
.ticks-bg i::after { display: none; }
.final-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.final h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 800; line-height: 1.08; max-width: 18ch; }
.final p { color: var(--final-muted); font-size: 1.08rem; }
.final .cta-row { justify-content: center; margin-top: 10px; }

/* ---------- pied de page : 4 colonnes sur bande sombre, titres en ambre ---------- */
.site-footer {
  --footer-bg: #0d1f1a; --footer-ink: #e4ece8; --footer-muted: #a6bab1; --footer-accent: #f0a92b; --footer-line: rgb(255 255 255 / .14);
  background: var(--footer-bg); color: var(--footer-ink);
  padding-block: 84px calc(36px + env(safe-area-inset-bottom, 0px));
}
[data-theme="dark"] .site-footer { --footer-bg: #060c0a; }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1.15fr 1.15fr; gap: 48px; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.footer-logo img { border-radius: 12px; }
.footer-name { font-family: var(--font-display); font-weight: 800; font-size: 1.55rem; letter-spacing: -.02em; color: #ffffff; margin-top: 16px; }
.footer-tagline { color: var(--footer-muted); font-size: 1.05rem; line-height: 1.6; margin: 10px 0 24px; max-width: 34ch; }
.btn-amber { background: var(--footer-accent); color: #1f1604; font-weight: 700; }
.btn-amber:hover { background: #f5b94a; }
.footer-col { min-width: 0; }
.footer-col h2 {
  font-family: var(--font-body); font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--footer-accent); margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 14px; }
.footer-col a, .footer-col span { color: var(--footer-ink); font-size: 1.02rem; transition: color var(--t-fast); }
.footer-col a:hover { color: #ffffff; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--footer-accent); }
.footer-contact a, .footer-contact span { display: inline-flex; align-items: center; gap: 10px; }
.footer-contact .i { color: var(--footer-accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 18px 32px;
  margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--footer-line);
  font-size: .92rem; color: var(--footer-muted);
}
.footer-demo { color: var(--footer-accent); font-size: .86rem; margin-top: 10px; }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; }
.footer-legal a { color: var(--footer-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgb(255 255 255 / .35); transition: text-decoration-color var(--t-fast), color var(--t-fast); }
.footer-legal a:hover { color: #ffffff; text-decoration-color: var(--footer-accent); }
.footer-legal span a { font-weight: 600; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } .site-footer { padding-top: 64px; } }

/* ---------- adaptatif ---------- */
@media (max-width: 1000px) {
  .hero-layout { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 520px; }
  .split, .avis-layout, .faq-layout { grid-template-columns: 1fr; gap: 40px; }
  .faq-layout .section-head { position: static; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-rates, .tile-skills { grid-column: span 2; }
}
@media (max-width: 720px) {
  .hero { padding-top: 32px; }
  .section { padding-block: 72px; }
  .section-head { margin-bottom: 32px; }
  .bento { grid-template-columns: 1fr; }
  .tile-rates, .tile-skills { grid-column: auto; }
  .tile-rates { flex-direction: column; gap: 20px; }
  .tile-rates .tile-copy { max-width: none; }
  .bar-fill { height: 104px; }
  .timeline { grid-template-columns: 1fr; gap: 28px; padding-left: 30px; }
  .timeline::before, .timeline::after { left: 7px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; }
  .timeline::after { bottom: 25%; transform-origin: top; }
  .js .timeline:not(.is-in)::after { transform: scaleY(0); }
  .timeline li { padding: 0; }
  .timeline li::before, .timeline li::after { left: -30px; top: 2px; }
  .blind { grid-template-columns: 1fr; gap: 16px; margin-top: 48px; }
  .blind-mid { flex-direction: row; justify-content: center; }
  .steps { grid-template-columns: 1fr; }
  .matches li { grid-template-columns: 38px minmax(0, 1fr) 96px; }
  .window-num { font-size: 4.5rem; }
  .final { padding-block: 80px; }
}

/* =====================================================================
   Pages dédiées (candidats.html, recruteurs.html, legal.html)
   ===================================================================== */
.crumb {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 8px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink-2);
  font-size: .86rem; font-weight: 600; box-shadow: var(--shadow-sm); transition: border-color var(--t-fast), color var(--t-fast);
}
.crumb .i:first-child { transition: transform var(--t-med) var(--ease-out); }
.crumb:hover { border-color: var(--line-strong); color: var(--ink); }
.crumb:hover .i:first-child { transform: translateX(-3px); }
.role-badge { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--accent-ink); }
.perks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.perks li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; color: var(--ink-2); }
.perks .i { color: var(--accent-ink); }
.page-hero { padding-bottom: 72px; }
.page-hero .hero-title { font-size: clamp(2.3rem, 5vw, 3.8rem); }

/* téléphone (candidats) */
.phone {
  width: min(360px, 100%); margin-inline: auto; padding: 18px 16px 20px; border-radius: 34px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 12px;
}
.phone-notch { width: 88px; height: 6px; border-radius: 99px; background: var(--line-strong); align-self: center; margin-bottom: 4px; }
.phone-title { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; }
.offer-list { display: flex; flex-direction: column; gap: 8px; }
.offer-list li {
  position: relative; isolation: isolate; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper);
}
.offer-list li::after { /* surbrillance qui passe d'une offre à l'autre */
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; border: 1.5px solid var(--accent);
  background: var(--accent-wash); opacity: 0;
}
.offer-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-wash); color: var(--accent-ink); }
.offer-txt { display: flex; flex-direction: column; min-width: 0; }
.offer-txt strong { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.offer-txt small { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: .76rem; }
.offer-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.offer-rate { font-family: var(--font-mono); font-weight: 600; font-size: .84rem; white-space: nowrap; }
.offer-rate small { color: var(--muted); font-weight: 400; }
.offer-compat { font-family: var(--font-mono); font-size: .72rem; color: var(--accent-ink); border: 1px solid currentColor; border-radius: 6px; padding: 0 6px; }
.offer-compat.warn { color: #b7791f; }
.phone-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; border-radius: 12px; background: var(--accent); color: var(--on-accent); font-weight: 600; }

/* notification qui arrive (candidats, recruteurs) */
.notif {
  position: absolute; left: -8px; bottom: 6px; width: min(320px, 86%); padding: 12px 14px;
  display: flex; align-items: center; gap: 12px;
}
.notif strong { display: block; font-size: .92rem; }
.notif small { display: block; color: var(--muted); font-size: .78rem; }
.notif-ic { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #fdf1d8; color: #b7791f; }
.notif.ok .notif-ic { background: var(--accent-wash); color: var(--accent-ink); }
.hero-match { max-width: 460px; }
.live-pill { display: inline-flex; align-items: center; gap: 5px; margin-left: 6px; padding: 1px 8px; border-radius: 99px; background: var(--accent-wash); color: var(--accent-ink); font-weight: 600; }
.live-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* lignes de fonctionnalités alternées */
.feature-rows { display: flex; flex-direction: column; gap: 72px; }
.feature-row { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.feature-row.reverse .fr-copy { order: 2; }
.fr-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; }
.fr-copy h3 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); font-weight: 800; line-height: 1.2; }
.fr-copy p { color: var(--ink-2); font-size: 1.04rem; max-width: 48ch; }
.fr-n { font-family: var(--font-mono); font-size: .82rem; color: var(--muted); }
.fr-mock { padding: 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; box-shadow: var(--shadow-md); }
.mock-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.mock-label .i { color: var(--accent-ink); }
.mock-hint { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .84rem; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.chip-like { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 8px; background: var(--accent-wash); color: var(--accent-ink); font-weight: 600; font-size: .88rem; }

/* 1. domaines sélectionnés un à un */
.seq-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.seq-chips li {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px;
  border: 1px solid var(--line-strong); border-radius: 9px; font-size: .88rem; font-weight: 500; color: var(--ink-2);
}
.seq-chips li::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; border: 1.5px solid var(--accent); background: var(--accent-wash); opacity: 0; }
.seq-chips li:nth-child(-n+3)::before { opacity: 1; }

/* 2. saisie de compétences */
.mock-input { position: relative; display: flex; align-items: center; gap: 2px; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--accent); border-radius: 10px; box-shadow: 0 0 0 3px var(--accent-wash); }
.typing { position: relative; font-weight: 500; }
.typing::after { content: ""; position: absolute; inset: -2px -1px; background: var(--surface); transform: scaleX(0); transform-origin: right; }
.caret { width: 2px; height: 20px; background: var(--accent); }
.pop-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pop-tags li { padding: 6px 12px; border-radius: 8px; background: var(--accent-wash); color: var(--accent-ink); font-weight: 600; font-size: .88rem; }

/* 3. jours activés */
.day-switches { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.day-switches li { display: grid; grid-template-columns: 40px 90px 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; font-size: .9rem; }
.day-switches li + li { border-top: 1px solid var(--line); }
.day-switches .dh, .day-switches .dr { font-family: var(--font-mono); font-size: .82rem; }
.day-switches .dr { font-weight: 600; text-align: right; }
.day-switches li:not(.on) { color: var(--muted); }
.sw { position: relative; width: 34px; height: 20px; border-radius: 99px; background: var(--line-strong); overflow: hidden; }
.sw::before { content: ""; position: absolute; inset: 0; background: var(--accent); opacity: 0; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #ffffff; box-shadow: 0 1px 2px rgb(0 0 0 / .25); }
.day-switches li.on .sw::before { opacity: 1; }
.day-switches li.on .sw::after { transform: translateX(14px); }

/* 4. période et heures */
.period { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; font-family: var(--font-mono); font-size: .84rem; }
.period > span { display: inline-flex; align-items: center; gap: 6px; }
.period-bar, .hm-track { height: 8px; border-radius: 99px; background: var(--sunken); overflow: hidden; }
.period-bar > span, .hm-track > span { display: block; height: 100%; border-radius: inherit; background: var(--accent); transform-origin: left; }
.period-bar > span { transform: scaleX(1); }
.hm-track > span { transform: scaleX(var(--v)); }
.hours-meter { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; font-size: .9rem; }
.hm-label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.hours-meter b { font-family: var(--font-mono); }

/* recruteurs : formulaire d'annonce */
.form-mock .fm-field { display: grid; grid-template-columns: 80px 1fr; gap: 12px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.fm-label { color: var(--muted); font-size: .84rem; }
.fm-value { font-weight: 600; min-width: 0; }
.fm-value.chip-like { justify-self: start; }
.reveal-text { position: relative; display: inline-block; }
.reveal-text::after { content: ""; position: absolute; inset: -2px -1px; background: var(--surface); transform: scaleX(0); transform-origin: right; }
.fm-days { display: flex; gap: 5px; }
.fm-days i { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; font-style: normal; font-size: .76rem; font-weight: 700; background: var(--sunken); color: var(--muted); }
.fm-days i.on { background: var(--accent); color: var(--on-accent); }
.fm-submit { align-self: flex-end; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-weight: 600; }

/* recruteurs : filtres */
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.range { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; font-size: .88rem; }
.range-label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.range-track { position: relative; height: 6px; border-radius: 99px; background: var(--sunken); }
.range-knob { position: absolute; top: 50%; left: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); box-shadow: var(--shadow-sm); transform: translateX(var(--x, 120px)); }
.result-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.result-list li { display: grid; grid-template-columns: 34px 1fr auto auto; gap: 10px; align-items: center; padding: 9px 12px; font-size: .9rem; font-weight: 600; }
.result-list li + li { border-top: 1px solid var(--line); }
.result-list .m-avatar { width: 34px; height: 34px; }
.stars-sm { color: var(--star); font-size: .8rem; letter-spacing: 1px; }
.stars-sm.muted { color: var(--muted); font-weight: 500; letter-spacing: 0; }

/* recruteurs : proposition envoyée */
.pm-message { padding: 12px 14px; border-radius: 12px; background: var(--sunken); color: var(--ink-2); font-size: .94rem; }
.pm-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pm-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-weight: 600; overflow: visible; }
.pm-sent { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-ink); font-weight: 600; font-size: .9rem; }

/* recruteurs : statut de mission */
.status-steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.status-steps::before { content: ""; position: absolute; left: 12%; right: 12%; top: 18px; height: 2px; background: var(--line-strong); }
.status-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; color: var(--muted); text-align: center; }
.st-dot { position: relative; isolation: isolate; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--line-strong); color: var(--muted); }
.st-dot::before { content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: 50%; background: var(--accent); opacity: 0; }
.st-review { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--sunken); font-size: .9rem; }

/* parcours en 5 étapes */
.flow { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.flow::before { content: ""; position: absolute; left: 28px; right: 28px; top: 27px; height: 2px; background: var(--line-strong); }
.flow::after { content: ""; position: absolute; left: 28px; right: 28px; top: 27px; height: 2px; background: var(--accent); transform-origin: left; }
.flow li { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.flow-ic { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--accent-ink); box-shadow: var(--shadow-sm); margin-bottom: 8px; }
.flow-ic .i { width: 24px; height: 24px; }
.flow strong { font-family: var(--font-display); font-size: 1.02rem; }
.flow li > span:last-child { color: var(--muted); font-size: .92rem; }

/* avantages */
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.why {
  display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform var(--t-med) var(--ease-out), border-color var(--t-fast);
}
.why:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.why-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-wash); color: var(--accent-ink); margin-bottom: 6px; }
.why-ic .i { width: 24px; height: 24px; }
.why h3 { font-size: 1.15rem; font-weight: 700; }
.why p { color: var(--muted); }

/* page légale */
.legal { padding-block: 40px 96px; }
.legal-wrap { max-width: 820px; display: flex; flex-direction: column; gap: 24px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; }
.legal-note { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: #fdf1d8; color: #7a4f0e; font-size: .94rem; }
[data-theme="dark"] .legal-note { background: #2e2310; color: #f2c46d; }
.legal-note .i { margin-top: 3px; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 10px; }
.legal-toc a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-weight: 600; font-size: .92rem; transition: border-color var(--t-fast); }
.legal-toc a:hover { border-color: var(--accent); }
.legal-toc .i { color: var(--accent-ink); }
.legal-section { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 96px; }
.legal-section h2 { display: flex; align-items: center; gap: 10px; font-size: 1.4rem; font-weight: 800; }
.legal-section h2 .i { color: var(--accent-ink); }
.legal-section h3 { font-size: 1.02rem; font-weight: 700; margin-top: 8px; }
.legal-section p, .legal-section li, .legal-section dd { color: var(--ink-2); }
.legal-section ul { list-style: disc; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.legal-section dl { display: grid; grid-template-columns: 220px 1fr; gap: 10px 20px; margin: 0; }
.legal-section dt { font-weight: 600; }
.legal-section dd { margin: 0; }

@media (max-width: 1000px) {
  .feature-row { grid-template-columns: 1fr; gap: 28px; }
  .feature-row.reverse .fr-copy { order: 0; }
  .flow { grid-template-columns: 1fr; gap: 22px; padding-left: 0; }
  .flow::before, .flow::after { left: 27px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; }
  .flow::after { transform-origin: top; }
  .flow.is-live::after { animation-name: flow-line-y !important; }
  .flow li { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; }
  .flow-ic { grid-row: span 2; margin: 0; }
  .why-grid { grid-template-columns: 1fr; }
  .notif { left: 0; }
}
@media (max-width: 560px) {
  .legal-section dl { grid-template-columns: 1fr; gap: 2px; }
  .legal-section dd { margin-bottom: 10px; }
  .day-switches li { grid-template-columns: 40px 76px 1fr auto; font-size: .84rem; }
  .status-steps li { font-size: .74rem; }
}

/* =====================================================================
   Animations permanentes
   Elles tournent en boucle tant que leur bloc est à l'écran (.is-live, posé par landing.js)
   et se mettent en pause dès qu'il en sort. Transform / opacity / filter uniquement.
   ===================================================================== */

/* trame du hero qui dérive lentement */
@keyframes grid-drift { to { transform: translate(56px, 56px); } }
.hero.is-live .hero-grid-bg::before { animation: grid-drift 28s linear infinite; }

/* Trouver → Travailler → Se noter : chaque étape s'allume à son tour */
@keyframes step-glow {
  0%, 26%, 100% { transform: none; }
  8% { transform: translateY(-4px) scale(1.12); }
  16% { transform: none; }
}
.hero.is-live .promises li:nth-child(1) .p-ic { animation: step-glow 4.5s var(--ease-std) .6s infinite; }
.hero.is-live .promises li:nth-child(3) .p-ic { animation: step-glow 4.5s var(--ease-std) 2.1s infinite; }
.hero.is-live .promises li:nth-child(5) .p-ic { animation: step-glow 4.5s var(--ease-std) 3.6s infinite; }

/* reflet qui traverse les boutons principaux */
.btn-primary { overflow: hidden; isolation: isolate; }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / .22) 50%, transparent 70%);
  transform: translateX(-120%);
}
@keyframes shine { 0% { transform: translateX(-120%); } 28%, 100% { transform: translateX(120%); } }
.is-live .btn-primary::after { animation: shine 5.5s var(--ease-std) 1.5s infinite; }

/* fenêtre de 14 jours : une vague remplit puis vide les jours, en continu */
@keyframes tick-wave {
  0%, 4% { transform: scaleX(0); }
  14%, 72% { transform: scaleX(1); }
  86%, 100% { transform: scaleX(0); }
}
.window.is-live .ticks-lg i::after { animation: tick-wave 8s var(--ease-std) calc(var(--n, 0) * 160ms + 300ms) infinite both; }
.hero.is-live .ticks-sm i:not(.on)::after { animation: tick-wave 7s var(--ease-std) calc(var(--n, 0) * 140ms + 1s) infinite both; }

/* sablier qui se retourne */
@keyframes flip { 0%, 80% { transform: rotate(0); } 92%, 100% { transform: rotate(180deg); } }
.window.is-live .window-ic .i, .hero.is-live .rp-meta .i { animation: flip 3.2s var(--ease-out) infinite; }

/* barres de tarifs qui « respirent » après leur montée */
@keyframes bar-breathe { from { transform: scaleY(var(--v)); } to { transform: scaleY(calc(var(--v) * .86)); } }
.tile-rates.is-live .bar:not(.off) .bar-fill { animation: bar-breathe 2.8s ease-in-out calc(var(--n, 0) * 220ms + 1.3s) infinite alternate; }

/* lueur qui parcourt les scores de compatibilité */
.m-bar > span { position: relative; overflow: hidden; }
.m-bar > span::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / .45), transparent);
}
@keyframes sweep { 0% { transform: translateX(-100%); } 40%, 100% { transform: translateX(100%); } }
.match-panel.is-live .m-bar > span::after { animation: sweep 3s var(--ease-std) calc(var(--i, 0) * 300ms + 1.4s) infinite; }

/* compteur de compatibilité du hero : la cible pulse */
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
.hero.is-live .pp-compat .i { animation: pulse 2.4s ease-in-out infinite; }

/* frise : chaque étape émet une onde, l'une après l'autre */
.timeline li::after {
  content: ""; position: absolute; top: 8px; left: 0; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--accent); opacity: 0; pointer-events: none;
}
.timeline .tl-end::after { border-color: var(--muted); }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 60%, 100% { transform: scale(2.6); opacity: 0; } }
.timeline.is-live li::after { animation: ping 2.8s var(--ease-out) calc(var(--i, 0) * 700ms + 1.4s) infinite; }

/* avis à l'aveugle : masqués, puis publiés ensemble, en boucle (le cadenas s'ouvre en même temps) */
@keyframes blind-cycle {
  0%, 28% { filter: blur(6px); opacity: .5; }
  38%, 86% { filter: blur(0); opacity: 1; }
  96%, 100% { filter: blur(6px); opacity: .5; }
}
@keyframes shackle-cycle {
  0%, 30% { transform: none; }
  38%, 84% { transform: translateY(-2px) rotate(28deg); }
  94%, 100% { transform: none; }
}
.blind.is-live .bc-stars, .blind.is-live .bc-text { animation: blind-cycle 7s var(--ease-std) 1s infinite both; }
.blind.is-live .shackle { animation: shackle-cycle 7s var(--ease-std) 1s infinite both; }

/* pictogrammes de section qui flottent doucement */
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.is-live > .section-ic .i, .is-live .tile-ic .i, .steps .is-live .step-ic .i { animation: bob 3.4s ease-in-out infinite; }
.is-live .tile:nth-child(2) .tile-ic .i { animation-delay: .5s; }
.is-live .tile:nth-child(3) .tile-ic .i { animation-delay: 1s; }
.is-live .tile:nth-child(4) .tile-ic .i { animation-delay: 1.5s; }

/* ---------- pages dédiées : animations en boucle ---------- */
@keyframes notif-cycle {
  0% { opacity: 0; transform: translateY(18px) scale(.96); }
  10%, 72% { opacity: 1; transform: none; }
  82%, 100% { opacity: 0; transform: translateY(-6px); }
}
@keyframes ring { 0%, 70%, 100% { transform: rotate(0); } 74% { transform: rotate(-14deg); } 78% { transform: rotate(14deg); } 82% { transform: rotate(-8deg); } 86% { transform: rotate(0); } }
.hero.is-live .float-in { animation: notif-cycle 7s var(--ease-std) 1.2s infinite both; }
.hero.is-live .notif-ic .i { animation: ring 7s ease-in-out 1.2s infinite; }

@keyframes offer-focus { 0%, 4% { opacity: 0; } 10%, 28% { opacity: 1; } 34%, 100% { opacity: 0; } }
.hero.is-live .offer-list li::after { animation: offer-focus 6s var(--ease-std) calc(var(--i, 0) * 2s) infinite both; }

@keyframes live-dot { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.live-pill::before { animation: live-dot 1.6s ease-in-out infinite; }

/* domaines qui se cochent un à un */
@keyframes chip-on { 0%, 4% { opacity: 0; } 10%, 72% { opacity: 1; } 80%, 100% { opacity: 0; } }
.feature-row.is-live .seq-chips li::before { animation: chip-on 8s var(--ease-std) calc(var(--n, 0) * 350ms) infinite both; }

/* compétence tapée au clavier, puis étiquettes qui apparaissent */
@keyframes type-reveal { 0% { transform: scaleX(1); } 40%, 86% { transform: scaleX(0); } 100% { transform: scaleX(1); } }
@keyframes blink { 50% { opacity: 0; } }
.feature-row.is-live .typing::after { animation: type-reveal 5s steps(7, end) infinite; }
.feature-row.is-live .caret { animation: blink 1s steps(1) infinite; }
@keyframes tag-pop { 0%, 4% { opacity: 0; transform: scale(.6); } 12%, 80% { opacity: 1; transform: none; } 88%, 100% { opacity: 0; transform: scale(.92); } }
.feature-row.is-live .pop-tags li { animation: tag-pop 7s var(--ease-out) calc(var(--n, 0) * 450ms) infinite both; }

/* jours qui s'activent */
@keyframes sw-bg { 0%, 6% { opacity: 0; } 14%, 82% { opacity: 1; } 90%, 100% { opacity: 0; } }
@keyframes sw-knob { 0%, 6% { transform: none; } 14%, 82% { transform: translateX(14px); } 90%, 100% { transform: none; } }
.feature-row.is-live .day-switches li.on .sw::before,
.feature-row.is-live .day-switches li.on .dh,
.feature-row.is-live .day-switches li.on .dr { animation: sw-bg 7s var(--ease-std) calc(var(--n, 0) * 400ms) infinite both; }
.feature-row.is-live .day-switches li.on .sw::after { animation: sw-knob 7s var(--ease-out) calc(var(--n, 0) * 400ms) infinite both; }

/* période et heures qui se remplissent */
@keyframes grow-loop { 0% { transform: scaleX(0); } 40%, 92% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes grow-loop-v { 0% { transform: scaleX(0); } 40%, 92% { transform: scaleX(var(--v)); } 100% { transform: scaleX(0); } }
.feature-row.is-live .period-bar > span { animation: grow-loop 6s var(--ease-out) infinite; }
.feature-row.is-live .hm-track > span { animation: grow-loop-v 6s var(--ease-out) .4s infinite both; }

/* formulaire d'annonce qui se remplit puis se publie */
@keyframes field-in { 0%, 3% { opacity: .25; transform: translateX(-6px); } 10%, 86% { opacity: 1; transform: none; } 95%, 100% { opacity: .25; } }
@keyframes press { 0%, 62%, 70%, 100% { transform: none; } 66% { transform: scale(.94); } }
.feature-row.is-live .fm-field { animation: field-in 8s var(--ease-out) calc(var(--n, 0) * 600ms) infinite both; }
.feature-row.is-live .reveal-text::after { animation: type-reveal 8s steps(14, end) infinite; }
.feature-row.is-live .fm-submit { animation: press 8s var(--ease-std) infinite; }

/* curseur du tarif maximum et résultats */
@keyframes knob { from { transform: translateX(14px); } to { transform: translateX(150px); } }
.feature-row.is-live .range-knob { animation: knob 3.2s ease-in-out infinite alternate; }
.feature-row.is-live .result-list li { animation: field-in 6.4s var(--ease-out) calc(var(--n, 0) * 400ms) infinite both; }

/* avion en papier : la proposition s'envoie */
@keyframes fly {
  0%, 30% { transform: none; opacity: 1; }
  48% { transform: translate(70px, -46px) rotate(12deg); opacity: 0; }
  50%, 62% { transform: translate(-12px, 10px); opacity: 0; }
  76%, 100% { transform: none; opacity: 1; }
}
@keyframes sent { 0%, 44% { opacity: 0; transform: translateX(-6px); } 52%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.feature-row.is-live .plane { animation: fly 4.5s var(--ease-std) infinite; }
.feature-row.is-live .pm-sent { animation: sent 4.5s var(--ease-out) infinite both; }

/* statut de mission qui avance jusqu'à l'avis */
@keyframes st-on { 0%, 4% { opacity: 0; } 10%, 82% { opacity: 1; } 92%, 100% { opacity: 0; } }
@keyframes st-ic { 0%, 4% { color: var(--muted); } 10%, 82% { color: #ffffff; } 92%, 100% { color: var(--muted); } }
@keyframes review-in { 0%, 46% { opacity: 0; transform: translateY(6px); } 56%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
.feature-row.is-live .st-dot::before { animation: st-on 8s var(--ease-std) calc(var(--n, 0) * 1.1s) infinite both; }
.feature-row.is-live .st-dot .i { animation: st-ic 8s var(--ease-std) calc(var(--n, 0) * 1.1s) infinite both; }
.feature-row.is-live .st-review { animation: review-in 8s var(--ease-out) infinite both; }

/* parcours : la ligne se trace et chaque étape réagit au passage */
@keyframes flow-line { 0% { transform: scaleX(0); } 70%, 92% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes flow-line-y { 0% { transform: scaleY(0); } 70%, 92% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes flow-pop { 0%, 2% { transform: none; } 7% { transform: scale(1.14); } 12%, 100% { transform: none; } }
.flow.is-live::after { animation: flow-line 6s var(--ease-std) infinite; }
.flow.is-live .flow-ic { animation: flow-pop 6s var(--ease-out) calc(var(--i, 0) * 840ms) infinite; }
.why.is-live .why-ic .i { animation: bob 3.4s ease-in-out infinite; }

/* ---------- mouvement réduit : on garde les fondus, on retire les déplacements ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .enter, .hero-title .w > span { animation: rise-fade 200ms ease-out both; animation-delay: 0ms; }
  @keyframes rise-fade { from { opacity: 0; } to { opacity: 1; } }
  .js .reveal { transform: none; transition: opacity 200ms ease-out; transition-delay: 0ms; }
  .float, .marquee-track { animation: none; }
  .marquee { mask-image: none; -webkit-mask-image: none; }
  .marquee-track[aria-hidden="true"] { display: none; }
  .marquee-track { flex-wrap: wrap; justify-content: center; row-gap: 12px; }
  .tilt { transform: none !important; }
  .bar-fill, .m-bar > span, .ticks-lg i::after, .timeline::after, .timeline li::before, .shackle,
  .blind-card .bc-stars, .blind-card .bc-text { transition-duration: 1ms; transition-delay: 0ms; }
  .btn:active { transform: none; }
  /* aucune boucle permanente : chaque élément reste dans son état final, lisible */
  .hero-grid-bg::before, .p-ic, .btn-primary::after, .ticks i::after, .i, .bar-fill, .m-bar > span::after,
  .timeline li::after, .bc-stars, .bc-text, .shackle { animation: none !important; }
  .ticks-lg i::after { transform: scaleX(1); }
  .float-in, .offer-list li::after, .live-pill::before, .seq-chips li::before, .typing::after, .caret, .pop-tags li,
  .sw::before, .sw::after, .day-switches .dh, .day-switches .dr, .period-bar > span, .hm-track > span, .fm-field,
  .reveal-text::after, .fm-submit, .range-knob, .result-list li, .plane, .pm-sent, .st-dot::before, .st-review,
  .flow::after, .flow-ic { animation: none !important; }
  .why:hover { transform: none; }
}
