/* style.css — design du site Chasseur. Les animations génériques vivent dans anim.css. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-variable.woff2") format("woff2-variations"),
       url("../fonts/archivo-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

/* ---------- Jetons ---------- */
:root {
  --night: #14213D;          /* bleu nuit de gala : en-tête, hero, pied de page */
  --on-night: #F3F5F9;
  --on-night-2: #A9B5CB;
  --paper: #EEF1F4;          /* papier à lettres bleuté */
  --card: #FFFFFF;           /* billet */
  --ink: #18202F;
  --ink-2: #586274;
  --line: #D3DAE3;
  --rope: #B3223A;           /* rouge cordon : actions, perforations, relances */
  --rope-hi: #96192E;
  --rope-ink: #FFFFFF;
  --ok: #2E7D5B;             /* vert « ouvert » */
  --ok-ink: #FFFFFF;
  --sel-bg: #14213D;         /* puce sélectionnée */
  --sel-ink: #FFFFFF;
  --st-todo: #B9C3D0; --st-sent: #6F7B90; --st-followup: #14213D;
  --st-interview: #2E7D5B; --st-offer: #1C5A40; --st-refused: #B3223A;
  --shadow: 0 1px 2px rgb(20 33 61 / .06), 0 10px 24px -16px rgb(20 33 61 / .28);
  --shadow-lg: 0 2px 4px rgb(20 33 61 / .06), 0 24px 48px -24px rgb(20 33 61 / .45);
  --accent: var(--rope);
  --header-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --night: #0A1121; --on-night: #EEF1F7; --on-night-2: #9AA7BF;
    --paper: #0F1729; --card: #18223A; --ink: #E8ECF3; --ink-2: #A0ABC0; --line: #2A3653;
    --rope: #F0627A; --rope-hi: #F5899B; --rope-ink: #1A0910;
    --ok: #5BC995; --ok-ink: #08180F;
    --sel-bg: #E8ECF3; --sel-ink: #0F1729;
    --st-todo: #4A5672; --st-sent: #8592AA; --st-followup: #C9D2E3; --st-interview: #5BC995; --st-offer: #8FE0B7; --st-refused: #F0627A;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 24px -16px rgb(0 0 0 / .6);
    --shadow-lg: 0 2px 4px rgb(0 0 0 / .3), 0 24px 48px -24px rgb(0 0 0 / .75);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --night: #0A1121; --on-night: #EEF1F7; --on-night-2: #9AA7BF;
  --paper: #0F1729; --card: #18223A; --ink: #E8ECF3; --ink-2: #A0ABC0; --line: #2A3653;
  --rope: #F0627A; --rope-hi: #F5899B; --rope-ink: #1A0910;
  --ok: #5BC995; --ok-ink: #08180F;
  --sel-bg: #E8ECF3; --sel-ink: #0F1729;
  --st-todo: #4A5672; --st-sent: #8592AA; --st-followup: #C9D2E3; --st-interview: #5BC995; --st-offer: #8FE0B7; --st-refused: #F0627A;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 24px -16px rgb(0 0 0 / .6);
  --shadow-lg: 0 2px 4px rgb(0 0 0 / .3), 0 24px 48px -24px rgb(0 0 0 / .75);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
@media (min-width: 720px) { .wrap { padding: 0 40px; } }
.small { font-size: 14px; color: var(--ink-2); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 2000; background: var(--card); color: var(--ink); padding: 12px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }
.noscript { padding-top: 24px; font-weight: 600; }

/* ---------- Boutons ---------- */
.btn {
  min-height: 48px; padding: 0 22px; border-radius: 10px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 650; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur-s) var(--ease-out), color var(--dur-s) var(--ease-out),
              border-color var(--dur-s) var(--ease-out), transform var(--dur-s) var(--ease-out);
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--rope); color: var(--rope-ink); border: 1px solid var(--rope); }
.btn-primary:hover { background: var(--rope-hi); border-color: var(--rope-hi); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-text {
  background: none; border: 0; padding: 0; min-height: 44px; cursor: pointer;
  color: var(--ink); font-weight: 600; font-size: 15px;
}
.btn-copy {
  min-height: 40px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: background-color var(--dur-s) var(--ease-out), color var(--dur-s) var(--ease-out), border-color var(--dur-s) var(--ease-out);
}
.btn-copy:hover { border-color: var(--ink-2); }
.btn-copy.is-done { background: var(--ok); border-color: var(--ok); color: var(--ok-ink); }
@media (pointer: coarse) { .btn-copy { min-height: 44px; } }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 950;
  background: var(--night); color: var(--on-night);
  transition: transform .35s var(--ease-out);
}
.site-header.is-hidden { transform: translateY(-100%); }
.bar { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.wordmark {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  color: inherit; text-decoration: none;
  font-stretch: 125%; font-weight: 800; font-size: 20px; letter-spacing: -.01em;
}
.wordmark-ticket { width: 28px; height: 18px; }
.nav-desk { display: none; gap: 32px; }
.nav-desk a { color: var(--on-night-2); font-weight: 600; padding: 10px 0; transition: color var(--dur-s) var(--ease-out); }
.nav-desk a:hover { color: var(--on-night); }
.burger { color: var(--on-night); margin-right: -10px; padding: 14px 10px; }
@media (min-width: 820px) {
  .nav-desk { display: flex; }
  .burger { display: none; }
}
.due-badge {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 8px;
  border-radius: 999px; background: var(--rope); color: var(--rope-ink);
  font-size: 12px; font-weight: 700; vertical-align: 2px;
}

/* ---------- Menu mobile plein écran ---------- */
.menu-panel {
  background: var(--night); color: var(--on-night);
  display: flex; align-items: center; padding: calc(var(--header-h) + 24px) 28px 40px;
  --menu-x: calc(100% - 39px); --menu-y: 32px;
}
.menu-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.menu-panel a {
  display: inline-block; padding: 6px 0; color: inherit; text-decoration: none;
  font-stretch: 125%; font-weight: 800; font-size: clamp(34px, 11vw, 56px); line-height: 1.1; letter-spacing: -.02em;
}
.menu-panel .due-badge { vertical-align: 12px; }
.menu-theme { margin-top: 28px; min-height: 44px; background: none; border: 1px solid rgb(255 255 255 / .25); color: var(--on-night-2); border-radius: 999px; padding: 0 18px; font-weight: 600; cursor: pointer; }
@media (min-width: 820px) { .menu-panel { display: none; } }

/* ---------- Hero ---------- */
.hero { background: var(--night); color: var(--on-night); padding-top: clamp(44px, 8vw, 96px); overflow: hidden; }
.hero-title {
  font-stretch: 125%; font-weight: 800;
  font-size: clamp(36px, 9.6vw, 124px); line-height: .94; letter-spacing: -.035em;
  margin: 0 0 clamp(22px, 3vw, 32px);
}
.h-line { display: block; }
.hero-lede { max-width: 50ch; font-size: clamp(17px, 1.9vw, 20px); line-height: 1.5; color: var(--on-night-2); margin: 0 0 32px; }
.modes { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .14); }
.mode {
  min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--on-night-2); font-weight: 650; font-size: 16px;
  transition: background-color var(--dur-s) var(--ease-out), color var(--dur-s) var(--ease-out);
}
.mode:hover { color: var(--on-night); }
.mode[aria-pressed="true"] { background: var(--on-night); color: var(--night); }
.hero-band {
  --gap: 2.25rem;
  margin-top: clamp(44px, 7vw, 88px); padding: 18px 0;
  border-top: 1px solid rgb(255 255 255 / .12);
}
.hero-band span {
  display: inline-flex; align-items: center; gap: var(--gap); white-space: nowrap;
  font-stretch: 112%; font-weight: 600; font-size: 17px; color: var(--on-night-2);
}
.hero-band span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--rope); }
html:not(.js) .hero-band { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-left: 20px; padding-right: 20px; }

/* ---------- Sections ---------- */
.sec { padding: clamp(56px, 8vw, 104px) 0; }
.sec + .sec { padding-top: 0; }
.sec-intro { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 44px); }
.sec-intro h2, .tips-sec h2 {
  font-stretch: 118%; font-weight: 800; font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.02; letter-spacing: -.025em; margin-bottom: 12px;
}
.sec-intro p { color: var(--ink-2); font-size: 17px; }

/* ---------- Constructeur de recherche ---------- */
.builder { display: grid; gap: 32px; }
@media (min-width: 900px) {
  .builder { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
}
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 44px; }
.step { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 16px; position: relative; }
.step:not(:last-child)::before {
  content: ""; position: absolute; left: 17px; top: 46px; bottom: -36px;
  border-left: 2px dashed var(--line);
}
.step-n {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--night); color: var(--on-night); font-weight: 700; font-stretch: 112%;
}
:root[data-theme="dark"] .step-n { background: var(--sel-bg); color: var(--sel-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .step-n { background: var(--sel-bg); color: var(--sel-ink); } }
@media (min-width: 720px) { .step { grid-template-columns: 44px minmax(0, 1fr); gap: 22px; } .step-n { width: 44px; height: 44px; } .step:not(:last-child)::before { left: 21px; top: 54px; } }
.step h3 { font-stretch: 112%; font-weight: 750; font-size: 22px; line-height: 1.2; margin: 4px 0 6px; }
.step-hint { color: var(--ink-2); font-size: 15px; margin-bottom: 16px; max-width: 62ch; }

/* raccourcis */
.presets { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; margin-bottom: 12px; }
.presets-label { color: var(--ink-2); font-size: 14px; }
.preset { background-color: transparent; border: 0; padding: 10px 0; min-height: 44px; cursor: pointer; font-weight: 650; font-size: 15px; color: var(--ink); }
.preset[aria-pressed="true"] { color: var(--rope); background-size: 100% 2px; }

/* puces */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font-size: 15px; font-weight: 550;
  transition: background-color var(--dur-s) var(--ease-out), color var(--dur-s) var(--ease-out),
              border-color var(--dur-s) var(--ease-out), transform var(--dur-s) var(--ease-out);
}
.chip:hover { border-color: var(--ink-2); }
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { background: var(--sel-bg); border-color: var(--sel-bg); color: var(--sel-ink); }
.chip .n { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] .n { color: inherit; opacity: .7; }
.chip-x { display: inline-flex; border-radius: 999px; border: 1px dashed var(--ink-2); background: var(--card); transition: background-color var(--dur-s) var(--ease-out), border-color var(--dur-s) var(--ease-out); }
.chip-x .chip { border: 0; background: transparent; padding-right: 6px; }
.chip-x .chip[aria-pressed="true"] { background: transparent; color: inherit; }
.chip-x-kill { min-width: 44px; min-height: 44px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; color: inherit; border-radius: 0 999px 999px 0; }
.chip-x-kill svg { width: 14px; height: 14px; }
.chip-x.on { background: var(--sel-bg); border-color: var(--sel-bg); border-style: solid; color: var(--sel-ink); }
.warn { margin-top: 14px; padding: 10px 14px; border-radius: 10px; background: color-mix(in srgb, var(--rope) 10%, var(--card)); color: var(--ink); font-size: 14px; max-width: 62ch; }
.add-row { display: flex; gap: 10px; margin-top: 16px; max-width: 480px; }
.add-row .field { flex: 1 1 auto; }

/* champs */
.field {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 16px;
  transition: border-color var(--dur-s) var(--ease-out), box-shadow var(--dur-s) var(--ease-out);
}
.field::placeholder { color: var(--ink-2); opacity: .75; }
.field:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 14%, transparent); }
textarea.field { padding: 12px 14px; min-height: 92px; resize: vertical; line-height: 1.5; }
select.field { appearance: none; padding-right: 40px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }

/* liste des villes */
.dd { position: relative; max-width: 480px; }
.dd-trigger {
  width: 100%; min-height: 52px; padding: 0 16px; border-radius: 10px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font-size: 17px; font-weight: 550; text-align: left;
}
.dd-trigger[data-chosen] { color: var(--ink); border-color: var(--ink); }
.dd-caret { width: 16px; height: 16px; flex: 0 0 auto; transition: transform var(--dur-s) var(--ease-out); }
.dd-trigger[aria-expanded="true"] .dd-caret { transform: rotate(180deg); }
.dd-panel {
  position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; right: 0;
  display: none; flex-direction: column; max-height: 360px; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
}
.dd-panel.open { display: flex; animation: pop .22s var(--ease-out); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } }
.dd-filter { margin: 10px; width: auto; }
.dd-list { overflow-y: auto; padding: 0 0 6px; overscroll-behavior: contain; }
.dd-opt {
  display: block; width: 100%; min-height: 44px; padding: 10px 16px; text-align: left; cursor: pointer;
  border: 0; background: transparent; color: var(--ink); font-size: 16px;
}
.dd-opt:hover, .dd-opt:focus { background: color-mix(in srgb, var(--ink) 7%, transparent); outline: none; }
.dd-opt[aria-selected="true"] { font-weight: 700; }
.dd-all { border-bottom: 1px solid var(--line); font-weight: 600; }
.dd-custom { border-top: 1px dashed var(--line); color: var(--rope); font-weight: 600; }

/* plateformes */
.platforms { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.pf {
  display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start;
  padding: 14px 16px; border-radius: 12px; cursor: pointer; text-align: left;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  transition: opacity var(--dur-s) var(--ease-out), border-color var(--dur-s) var(--ease-out);
}
.pf:hover { border-color: var(--ink-2); }
.pf[aria-pressed="false"] { opacity: .58; }
.pf-box {
  width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--ink-2); margin-top: 1px;
  display: grid; place-items: center; color: transparent;
  transition: background-color var(--dur-s) var(--ease-out), border-color var(--dur-s) var(--ease-out), color var(--dur-s) var(--ease-out);
}
.pf-box svg { width: 14px; height: 14px; }
.pf[aria-pressed="true"] .pf-box { background: var(--sel-bg); border-color: var(--sel-bg); color: var(--sel-ink); }
.pf-name { display: block; font-weight: 700; font-size: 16px; line-height: 1.3; }
.pf-kind { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-stretch: 85%; font-weight: 600; font-size: 13px; color: var(--ink-2); }
.pf-kind::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--k, var(--line)); flex: 0 0 auto; }
.pf-kind.pre { --k: var(--ok); }
.pf-kind.part { --k: var(--st-sent); }
.pf-kind.filter { --k: var(--line); }
.pf-kind .fresh { color: var(--ok); }
.pf-desc { display: block; margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.row-actions { display: flex; gap: 24px; margin-top: 10px; }

/* interrupteur 7 jours */
.switch-row {
  display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 14px; align-items: start;
  width: 100%; max-width: 560px; margin-top: 18px; padding: 14px 16px; border-radius: 12px; cursor: pointer; text-align: left;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
}
.switch { width: 46px; height: 28px; border-radius: 999px; background: var(--line); position: relative; transition: background-color var(--dur-s) var(--ease-out); }
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--card); box-shadow: 0 1px 3px rgb(0 0 0 / .25); transition: transform var(--dur-s) var(--ease-out);
}
.switch-row[aria-checked="true"] .switch { background: var(--ok); }
.switch-row[aria-checked="true"] .switch::after { transform: translateX(18px); }
.switch-label { display: block; font-weight: 650; }
.switch-hint { display: block; font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.reset-mobile { margin-top: 18px; color: var(--ink-2); }

/* ---------- Le billet récapitulatif ---------- */
.pass { position: relative; background: var(--card); border-radius: 16px; box-shadow: var(--shadow-lg); color: var(--ink); }
.pass-main { padding: 24px 24px 20px; }
.pass-title { font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; }
.pass-kw { font-stretch: 118%; font-weight: 800; font-size: 26px; line-height: 1.1; letter-spacing: -.015em; margin-bottom: 8px; overflow-wrap: anywhere; }
.pass-kw.is-empty, .pass-city.is-empty { color: var(--ink-2); font-weight: 600; }
.pass-city { font-size: 18px; font-weight: 650; margin-bottom: 12px; }
.pass-meta { font-size: 14px; color: var(--ink-2); font-stretch: 90%; }
.pass-stub { position: relative; display: grid; gap: 6px; padding: 20px 24px 18px; border-top: 2px dashed var(--line); }
.pass-stub::before, .pass-stub::after { content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); }
.pass-stub::before { left: -11px; }
.pass-stub::after { right: -11px; }
.pass .btn-primary { width: 100%; }
.reset-desk { justify-self: center; color: var(--ink-2); }
.err { margin: 0 24px 20px; padding: 10px 14px; border-radius: 10px; background: color-mix(in srgb, var(--rope) 12%, var(--card)); color: var(--ink); font-size: 14px; }
.pass.is-bump .pass-kw, .pass.is-bump .pass-city { animation: bump .45s var(--ease-out); }
@keyframes bump { from { opacity: .35; transform: translateY(4px); } }
@media (min-width: 900px) {
  .pass { position: sticky; top: calc(var(--header-h) + 24px); }
  .reset-mobile { display: none; }
}
@media (max-width: 899px) {
  /* sur téléphone, le billet devient une barre collée en bas, bouton à portée de pouce */
  .pass {
    position: sticky; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30;
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
    border-radius: 14px; box-shadow: 0 14px 34px -12px rgb(20 33 61 / .5);
  }
  .pass-main { padding: 10px 8px 10px 16px; min-width: 0; }
  .pass-title, .pass-meta, .reset-desk { display: none; }
  .pass-kw { font-size: 16px; font-stretch: 100%; font-weight: 750; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pass-city { font-size: 14px; font-weight: 500; color: var(--ink-2); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pass-stub { border-top: 0; border-left: 2px dashed var(--line); padding: 10px 12px; }
  .pass-stub::before, .pass-stub::after { display: none; }   /* barre flottante : pas d'encoches au-dessus du contenu */
  .pass .btn-primary { width: auto; padding: 0 16px; }
  .pass .err { grid-column: 1 / -1; margin: 0 12px 12px; }
}

/* ---------- Résultats : un billet par plateforme ---------- */
.results-sec { padding-top: 0; }
.res-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 24px; }
.res-head h2 { font-stretch: 118%; font-weight: 800; font-size: clamp(30px, 4.4vw, 48px); line-height: 1.02; letter-spacing: -.025em; }
.res-recap { color: var(--ink-2); margin-top: 8px; max-width: 62ch; }
.res-recap strong { color: var(--ink); font-weight: 650; }
.res-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.counter { font-weight: 650; font-variant-numeric: tabular-nums; margin-right: 6px; }
.counter b { color: var(--ok); }
.stale { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-bottom: 18px; padding: 10px 16px; border-radius: 10px; border: 1px dashed var(--ink-2); font-size: 15px; }
.tickets { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); gap: 14px; }
.ticket { display: grid; grid-template-columns: minmax(0, 1fr) 88px; background: var(--card); border-radius: 14px; box-shadow: var(--shadow); position: relative; }
.ticket-main { min-width: 0; display: flex; flex-direction: column; }
.ticket-link { display: block; padding: 18px 20px 16px; color: inherit; text-decoration: none; border-radius: 14px 0 0 14px; flex: 1 1 auto; }
.ticket-link:focus-visible { outline-offset: -4px; }
.ticket-name { display: block; font-stretch: 115%; font-weight: 800; font-size: 21px; line-height: 1.15; letter-spacing: -.01em; }
.ticket-kind { display: block; margin-top: 4px; font-stretch: 85%; font-weight: 600; font-size: 13px; color: var(--ink-2); }
.ticket-note { display: block; margin-top: 8px; font-size: 14.5px; line-height: 1.45; }
.ticket-host { display: block; margin-top: 8px; font-stretch: 85%; font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.ticket-copy { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 16px; }
.ticket-stub {
  position: relative; display: grid; place-items: center; align-content: center; gap: 10px; padding: 12px 6px;
  border-left: 2px dashed var(--line); color: var(--ink-2); text-decoration: none; font-size: 13px; font-weight: 650; text-align: center;
}
.ticket-stub::before, .ticket-stub::after { content: ""; position: absolute; left: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); }
.ticket-stub::before { top: -11px; }
.ticket-stub::after { bottom: -11px; }
.punch { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); }
.ticket:hover .punch { border-color: var(--ink-2); }
.ticket.is-punched { box-shadow: inset 0 0 0 1.5px var(--ok), var(--shadow); }
.ticket.is-punched .punch { border-color: var(--ok); background: var(--paper); box-shadow: inset 0 2px 3px rgb(0 0 0 / .18); animation: punch .45s var(--ease-out); }
.ticket.is-punched .stub-state { color: var(--ok); }
@keyframes punch { 0% { transform: scale(.3); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
@media (max-width: 599px) {
  .ticket { grid-template-columns: minmax(0, 1fr) 66px; }
  .ticket-link { padding: 16px 16px 14px; }
  .ticket-copy { padding: 0 16px 14px; }
  .ticket-stub { font-size: 12px; padding: 10px 4px; }
  .punch { width: 20px; height: 20px; }
  .res-tools .btn-text { flex-basis: 100%; text-align: left; }
}

/* ---------- Employeurs ---------- */
.filters { margin-bottom: 22px; }
.houses { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); column-gap: 40px; }
.house { display: grid; gap: 6px; align-content: start; padding: 22px 0 24px; border-top: 1px solid var(--line); }
.house-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.house h3 { font-stretch: 115%; font-weight: 800; font-size: 22px; line-height: 1.15; letter-spacing: -.01em; }
.near { flex: 0 0 auto; font-size: 13px; font-weight: 700; color: var(--rope); white-space: nowrap; }
.house-desc { font-size: 15.5px; }
.house-meta { font-size: 14px; color: var(--ink-2); }
.house-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.house-open { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; font-weight: 700; color: var(--ink); }
.house.is-seen .house-open { color: var(--ok); }
.house.is-seen .house-open::after { content: "\00a0(déjà ouvert aujourd'hui)"; font-weight: 500; }
.more-btn { margin-top: 18px; }
.house-open, .app-link { text-decoration: underline; text-decoration-color: var(--rope); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.house-open:hover, .app-link:hover { text-decoration-color: currentColor; }

/* ---------- Suivi ---------- */
.pipeline { margin-bottom: 28px; }
.pipe-bar { display: flex; gap: 3px; height: 14px; border-radius: 999px; overflow: hidden; background: var(--line); }
.pipe-bar span { display: block; min-width: 6px; background: var(--c); }
.pipe-legend { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 16px 0 0; padding: 0; list-style: none; }
.pipe-legend li { display: flex; align-items: baseline; gap: 8px; font-size: 15px; color: var(--ink-2); }
.pipe-legend li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); align-self: center; }
.pipe-legend b { font-stretch: 115%; font-weight: 800; font-size: 26px; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1; }
.track-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.track-tools .filters { margin-bottom: 0; }
.apps { display: grid; gap: 12px; }
.app {
  --c: var(--st-todo);
  background: var(--card); border-radius: 14px; padding: 16px 18px 14px 20px; box-shadow: var(--shadow);
  border-left: 5px solid var(--c);
}
.app.is-due { box-shadow: inset 0 0 0 1.5px var(--rope), var(--shadow); }
.app.is-closed { opacity: .6; }
.app-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 16px; }
.app-title { flex: 1 1 240px; min-width: 0; }
.app-name { font-stretch: 112%; font-weight: 800; font-size: 19px; line-height: 1.2; }
.app-role { display: block; color: var(--ink-2); font-weight: 550; margin-top: 2px; }
.app-meta { margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.due-flag { display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 999px; background: var(--rope); color: var(--rope-ink); font-size: 13px; font-weight: 700; }
.status-select { width: auto; min-height: 44px; border-radius: 999px; font-weight: 650; font-size: 15px; padding-left: 16px; }
.app-note { margin-top: 10px; font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.app-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 12px; }
.app-actions a { font-weight: 650; display: inline-flex; align-items: center; min-height: 44px; }
.danger:hover { color: var(--rope); }
.empty { padding: 26px 20px; border: 2px dashed var(--line); border-radius: 14px; color: var(--ink-2); font-size: 16px; max-width: 62ch; }
.track-io { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: 26px; }

/* ---------- Astuces ---------- */
.tips-sec h2 { margin-bottom: 24px; }
.acc-list { border-top: 1px solid var(--line); }
[data-acc] { border-bottom: 1px solid var(--line); }
.acc-head {
  width: 100%; min-height: 60px; padding: 16px 0; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: none; border: 0; cursor: pointer; text-align: left; color: var(--ink); font-weight: 700; font-size: 18px;
}
.acc-icon { font-size: 26px; font-weight: 400; line-height: 1; color: var(--rope); }
.acc-body p { padding-bottom: 20px; color: var(--ink-2); max-width: 64ch; }
html:not(.js) [data-acc] .acc-body { grid-template-rows: 1fr; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--night); color: var(--on-night-2); padding: 36px 0 calc(36px + env(safe-area-inset-bottom)); }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.site-footer .btn-text { color: var(--on-night); }

/* ---------- Fenêtre de saisie ---------- */
dialog.sheet {
  width: min(640px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 18px;
  background: var(--card); color: var(--ink); box-shadow: var(--shadow-lg); overflow: auto;
}
dialog.sheet form { padding: 22px 24px 24px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sheet-head h2 { font-stretch: 115%; font-weight: 800; font-size: 24px; letter-spacing: -.015em; }
.sheet-close { width: 44px; min-width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; border-radius: 50%; cursor: pointer; display: grid; place-items: center; color: var(--ink-2); }
.sheet-close svg { width: 18px; height: 18px; }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.f { display: grid; gap: 6px; font-size: 14px; font-weight: 650; color: var(--ink-2); }
.f.full { grid-column: 1 / -1; }
#fErr { margin: 16px 0 0; }
.sheet-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px; }
@media (max-width: 600px) {
  dialog.sheet { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 18px 18px 0 0; max-height: 92dvh; padding-bottom: env(safe-area-inset-bottom); }
  .f-grid { grid-template-columns: 1fr; }
  .sheet-head h2 { font-size: 21px; font-stretch: 105%; }
  .sheet-actions { flex-direction: column-reverse; }
  .sheet-actions .btn { width: 100%; }
}

/* ---------- Messages éphémères ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 1100;
  display: flex; align-items: center; gap: 16px; max-width: calc(100% - 32px); min-height: 48px; padding: 8px 10px 8px 18px;
  border-radius: 12px; background: var(--night); color: var(--on-night); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translate(-50%, 16px);
  transition: opacity var(--dur-s) var(--ease-out), transform var(--dur-s) var(--ease-out), visibility 0s var(--dur-s);
}
.toast.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.toast button { min-height: 44px; padding: 0 10px; border: 0; background: none; color: #FF9DAD; font-weight: 700; cursor: pointer; }
@media (max-width: 899px) {
  .toast { top: calc(var(--header-h) + 10px); bottom: auto; transform: translate(-50%, -16px); }
}
