/* =========================================================
   CSS dyal site
   ========================================================= */

/* Themes*/
:root,
[data-theme="marine"] {
  --ink: #12234a;          /* fond du bandeau d'accueil */
  --primary: #1d3f7a;
  --primary-soft: #e7edf7;
  --accent: #e3a33b;       /* safran */
  --accent-ink: #2a1a00;
  --paper: #f3f5f9;
  --surface: #ffffff;
  --text: #121a2b;
  --muted: #5b6577;
  --line: #e1e5ed;
  --cours: #c9d3e6;
  --ok: #17784a;
  --ok-soft: #e1f3e9;
}
[data-theme="ardoise"] {
  --ink: #1f2937;
  --primary: #334155;
  --primary-soft: #eceff3;
  --accent: #2bb3a3;
  --accent-ink: #00241f;
  --paper: #f3f4f6;
  --surface: #ffffff;
  --text: #111827;
  --muted: #5f6b7a;
  --line: #e2e5e9;
  --cours: #cfd5dd;
  --ok: #0f766e;
  --ok-soft: #dff3f0;
}
[data-theme="emeraude"] {
  --ink: #0d3b31;
  --primary: #12614f;
  --primary-soft: #e3f0eb;
  --accent: #e9b949;
  --accent-ink: #2a1f00;
  --paper: #f2f6f4;
  --surface: #ffffff;
  --text: #10221c;
  --muted: #55695f;
  --line: #dbe6e0;
  --cours: #c7dbd2;
  --ok: #15803d;
  --ok-soft: #e0f3e6;
}
[data-theme="bordeaux"] {
  --ink: #4a1426;
  --primary: #7d2241;
  --primary-soft: #f6e9ee;
  --accent: #e0a63f;
  --accent-ink: #2b1900;
  --paper: #f8f4f5;
  --surface: #ffffff;
  --text: #24141a;
  --muted: #6e5b63;
  --line: #ecdfe4;
  --cours: #e3cdd5;
  --ok: #17784a;
  --ok-soft: #e1f3e9;
}
/* Mode sombre : une variante pour chaque thème (data-mode="dark" sur <html>) */
[data-theme="marine"][data-mode="dark"] {
  --ink: #0c1830;
  --primary: #7aa5ff;
  --primary-soft: #1a2844;
  --accent: #f0b54a;
  --accent-ink: #231600;
  --paper: #0a1120;
  --surface: #121c30;
  --text: #e6ebf5;
  --muted: #9aa7bd;
  --line: #22304a;
  --cours: #2c3c5c;
  --ok: #5ad48b;
  --ok-soft: #13301f;
}
[data-theme="ardoise"][data-mode="dark"] {
  --ink: #0f141b;
  --primary: #a5b4c8;
  --primary-soft: #1e2631;
  --accent: #3cc9b8;
  --accent-ink: #00241f;
  --paper: #0b0f14;
  --surface: #141a22;
  --text: #e5e8ec;
  --muted: #9ba5b2;
  --line: #252d38;
  --cours: #333d4a;
  --ok: #3fcfbf;
  --ok-soft: #0f2a27;
}
[data-theme="emeraude"][data-mode="dark"] {
  --ink: #071f1a;
  --primary: #4fc3a1;
  --primary-soft: #11291f;
  --accent: #f0c55e;
  --accent-ink: #2a1f00;
  --paper: #08130f;
  --surface: #0f1e18;
  --text: #e3efe9;
  --muted: #93aaa0;
  --line: #1e3329;
  --cours: #284538;
  --ok: #5ad48b;
  --ok-soft: #12301d;
}
[data-theme="bordeaux"][data-mode="dark"] {
  --ink: #250a14;
  --primary: #f08aab;
  --primary-soft: #2e1520;
  --accent: #ecb456;
  --accent-ink: #2b1900;
  --paper: #140a0e;
  --surface: #1f1117;
  --text: #f3e8ec;
  --muted: #b39ba5;
  --line: #3a2029;
  --cours: #4d2b37;
  --ok: #5ad48b;
  --ok-soft: #13301f;
}
[data-mode="dark"] { color-scheme: dark; }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -.01em;
}
p { margin: 0; }
a { color: var(--primary); }

.container { width: min(1160px, 92%); margin-inline: auto; }
.muted { color: var(--muted); font-size: .9rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* outons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: .65rem 1.1rem;
  font: inherit; font-weight: 600; font-size: .92rem;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: color-mix(in srgb, var(--primary) 85%, #000); }
[data-mode="dark"] .btn-primary { color: var(--paper); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); }

.link-btn {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--primary); font: inherit; font-size: .85rem; font-weight: 600;
}
.link-btn:hover { text-decoration: underline; }

/* Champs  */
input, select, textarea {
  width: 100%;
  font: inherit; font-size: .93rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .6rem .75rem;
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23778' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .8rem center;
  padding-right: 2.2rem;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent);
}

/* En-tête */
.header {
  background: var(--ink);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1rem 0;
}
.logo { display: flex; align-items: center; gap: .7rem; color: inherit; text-decoration: none; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 1.05rem;
}
.logo-text { font-weight: 700; font-size: 1rem; }
.logo-text em { font-style: normal; font-weight: 400; opacity: .7; margin-left: .25rem; }
.beta {
  font-size: .72rem; font-weight: 600;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px; padding: .05rem .5rem;
}

.header-actions { display: flex; align-items: center; gap: 1rem; }
.header .btn-primary { background: #fff; color: var(--ink); }
.header .btn-primary:hover { background: var(--primary-soft); }

.themes { display: flex; gap: .35rem; padding: .3rem; border-radius: 999px; background: rgba(255,255,255,.08); }
.swatch {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid transparent; cursor: pointer; padding: 0;
}
.swatch[data-theme-btn="marine"]   { background: linear-gradient(135deg, #1d3f7a 55%, #e3a33b 55%); }
.swatch[data-theme-btn="ardoise"]  { background: linear-gradient(135deg, #334155 55%, #2bb3a3 55%); }
.swatch[data-theme-btn="emeraude"] { background: linear-gradient(135deg, #12614f 55%, #e9b949 55%); }
.swatch[data-theme-btn="bordeaux"] { background: linear-gradient(135deg, #7d2241 55%, #e0a63f 55%); }
.swatch[aria-checked="true"] { border-color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.25); }

/* Bouton clair / sombre */
.mode-toggle {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  background: rgba(255,255,255,.08); color: #fff;
  border: 1px solid rgba(255,255,255,.15); cursor: pointer; padding: 0;
  transition: background .15s;
}
.mode-toggle:hover { background: rgba(255,255,255,.16); }
.mode-toggle svg { width: 18px; height: 18px; }
.mode-toggle .icon-sun { display: none; }
[data-mode="dark"] .mode-toggle .icon-sun { display: block; }
[data-mode="dark"] .mode-toggle .icon-moon { display: none; }

/* Accueil */
.hero { background: var(--ink); color: #fff; padding: 3.5rem 0 4.5rem; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -.025em;
  max-width: 13ch;
}
.lead { margin-top: 1.1rem; max-width: 52ch; font-size: 1.08rem; color: rgba(255,255,255,.78); }

.hero-search {
  margin-top: 1.8rem;
  display: flex; align-items: center; gap: .5rem;
  background: var(--surface); color: var(--muted);
  border-radius: 14px;
  padding: .4rem .4rem .4rem 1rem;
  max-width: 560px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.hero-search input {
  border: 0; padding: .55rem .2rem; background: transparent; color: var(--text); font-size: 1rem;
}
.hero-search input:focus { box-shadow: none; }
.hero-search:focus-within { box-shadow: 0 0 0 3px var(--accent), 0 10px 30px rgba(0,0,0,.18); }

.hero-stats { display: flex; gap: 2.5rem; margin: 2rem 0 0; }
.hero-stats div { display: flex; flex-direction: column-reverse; }
.hero-stats dt { font-size: .85rem; color: rgba(255,255,255,.65); }
.hero-stats dd { margin: 0; font-family: "Bricolage Grotesque", sans-serif; font-size: 1.7rem; font-weight: 700; }
.hero-stats small { font-size: .85rem; font-weight: 500; opacity: .7; }

/* Semaine type : l'élément signature */
.week {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  border-radius: 20px;
  padding: 1.3rem 1.3rem 1.1rem;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.45);
  transform: rotate(1.2deg);
}
.week figcaption {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1rem; font-size: .92rem;
}
.legend { display: flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--muted); }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: .5rem; }
.k-cours { background: var(--cours); }
.k-job { background: var(--accent); }

.week-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .45rem; }
.day { display: flex; flex-direction: column; gap: .4rem; }
.day span { font-size: .75rem; color: var(--muted); text-align: center; font-weight: 600; }
.day::after {
  content: "";
  display: block;
  height: 210px;
  border-radius: 8px;
  background: repeating-linear-gradient(to bottom, var(--paper) 0 16.5px, var(--line) 16.5px 17.5px);
  order: 2;
}
.day { position: relative; }
.slot {
  position: absolute;
  left: 0; right: 0;
  top: calc(1.6rem + var(--s) * 17.5px);
  height: calc(var(--h) * 17.5px - 3px);
  border-radius: 6px;
  z-index: 1;
}
.slot.cours { background: var(--cours); }
.slot.job {
  background: var(--accent);
  animation: grow .6s cubic-bezier(.2,.8,.2,1) both;
  animation-delay: .35s;
  transform-origin: top;
}
.week-total { margin-top: 1rem; font-size: .9rem; color: var(--muted); }
.week-total strong { color: var(--text); }

@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ---------- Mise en page ---------- */
.layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 2.5rem;
  padding: 2.5rem 0 4rem;
  align-items: start;
}

/* ---------- Filtres ---------- */
.filters { position: sticky; top: 1.5rem; }
.filters-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 1.2rem;
}
.filters-head h2 { font-size: 1.25rem; }

.field { margin: 0 0 1.4rem; border: 0; padding: 0; min-width: 0; }
.field > label, .field > legend {
  display: block; padding: 0;
  font-size: .88rem; font-weight: 600;
  margin-bottom: .45rem;
}

.pills { display: flex; flex-wrap: wrap; gap: .4rem; }
.pills label { cursor: pointer; }
.pills input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pills span {
  display: inline-block;
  padding: .38rem .8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: .86rem;
  transition: background .15s, border-color .15s, color .15s;
}
.pills label:hover span { border-color: var(--primary); }
.pills input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
[data-mode="dark"] .pills input:checked + span { color: var(--paper); }
.pills input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Double curseur */
.salary-values { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 1.15rem; margin-bottom: .5rem; }
.range-wrap { position: relative; height: 24px; }
.range-track { position: absolute; top: 10px; left: 0; right: 0; height: 4px; background: var(--line); border-radius: 4px; }
.range-fill { position: absolute; height: 100%; background: var(--primary); border-radius: 4px; }
.range-wrap input[type="range"] {
  position: absolute; inset: 0;
  width: 100%; margin: 0; padding: 0;
  background: none; border: 0; box-shadow: none;
  pointer-events: none;
  -webkit-appearance: none; appearance: none;
}
.range-wrap input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; pointer-events: auto;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--primary);
  cursor: grab;
}
.range-wrap input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--primary);
  cursor: grab;
}
.single-range { padding: 0; border: 0; background: none; accent-color: var(--primary); }
.single-range:focus { box-shadow: none; }

/* Interrupteur */
.toggle { display: flex; align-items: center; gap: .6rem; font-size: .92rem; cursor: pointer; position: relative; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle-ui {
  width: 38px; height: 22px; border-radius: 999px; flex: none;
  background: var(--line); position: relative; transition: background .2s;
}
.toggle-ui::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px; border-radius: 50%; background: #fff;
  transition: transform .2s;
  box-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.toggle input:checked + .toggle-ui { background: var(--primary); }
.toggle input:checked + .toggle-ui::after { transform: translateX(16px); }
.toggle input:focus-visible + .toggle-ui { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Résultats ---------- */
.results-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 1rem;
}
.results-bar h2 { font-size: 1.6rem; font-weight: 700; }
.results-tools { display: flex; gap: .5rem; }
.results-tools select { width: auto; }

.active-filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.active-filters:empty { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--primary-soft); color: var(--text);
  border: 0; border-radius: 999px;
  padding: .3rem .5rem .3rem .8rem;
  font: inherit; font-size: .82rem; font-weight: 600;
  cursor: pointer;
}
.chip::after {
  content: "×";
  display: grid; place-items: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--surface); font-size: .9rem; line-height: 1;
}

/* Liste d'offres en lignes */
.list {
  list-style: none; margin: 0; padding: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.row {
  display: grid;
  grid-template-columns: 48px 1fr auto 40px;
  gap: 1.1rem;
  align-items: center;
  padding: 1.15rem 1.25rem;
  border-top: 1px solid var(--line);
  cursor: pointer;
  transition: background .15s;
}
.row:first-child { border-top: 0; }
.row:hover { background: color-mix(in srgb, var(--primary-soft) 55%, var(--surface)); }

.avatar {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary);
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 1.05rem;
}
.row-main { min-width: 0; }
.row-title { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.row h3 { font-size: 1.08rem; font-weight: 700; }
.row h3 button {
  all: unset; cursor: pointer;
}
.row h3 button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.row-meta { margin-top: .15rem; font-size: .9rem; color: var(--muted); }
.row-meta strong { color: var(--text); font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .55rem; }
.tag {
  font-size: .78rem; font-weight: 500;
  padding: .15rem .55rem; border-radius: 6px;
  background: var(--paper); color: var(--muted);
}
.new {
  font-size: .72rem; font-weight: 700;
  padding: .1rem .5rem; border-radius: 999px;
  background: var(--ok-soft); color: var(--ok);
}

.pay { text-align: right; }
.pay-rate {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em;
  color: var(--text); line-height: 1;
}
.pay-rate small { font-family: "Instrument Sans", sans-serif; font-size: .78rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.pay-week { margin-top: .3rem; font-size: .8rem; color: var(--muted); }

.fav-btn {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: transparent; border: 1px solid transparent;
  cursor: pointer; color: var(--muted);
}
.fav-btn:hover { border-color: var(--line); background: var(--surface); }
.fav-btn svg { width: 20px; height: 20px; }
.fav-btn.active { color: var(--accent); }
.fav-btn.active svg path { fill: currentColor; }

.empty {
  text-align: center; padding: 3rem 1.5rem;
  background: var(--surface); border: 1px dashed var(--line); border-radius: 16px;
}
.empty h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.empty p { color: var(--muted); margin-bottom: 1rem; }

/* ---------- Fenêtres ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 1rem; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8, 14, 28, .6); backdrop-filter: blur(2px); }
.modal-box {
  position: relative;
  width: min(640px, 100%);
  max-height: 90vh; overflow-y: auto;
  background: var(--surface);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 30px 70px rgba(0,0,0,.3);
  animation: pop .2s ease-out both;
}
.modal-box h2 { font-size: 1.6rem; }
.modal-box > .muted { margin: .35rem 0 1.3rem; }
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--paper); border: 0; font-size: 1.4rem; line-height: 1;
  cursor: pointer; color: var(--muted);
}

.detail-head { display: flex; gap: 1rem; align-items: center; padding-right: 2.5rem; }
.detail-head .company { color: var(--muted); margin-top: .2rem; }
.detail-pay {
  display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap;
  margin: 1.5rem 0 1.2rem; padding: 1rem 1.2rem;
  background: var(--primary-soft); border-radius: 14px;
}
.detail-pay .pay-rate { font-size: 2rem; }
.detail-pay span { color: var(--muted); font-size: .92rem; }
.detail-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem 1.5rem; margin: 0 0 1.3rem; }
.detail-meta dt { font-size: .82rem; color: var(--muted); }
.detail-meta dd { margin: .1rem 0 0; font-weight: 600; }
.detail-desc { max-width: 60ch; }
.detail-actions { display: flex; gap: .5rem; margin-top: 1.5rem; flex-wrap: wrap; }
.warning {
  margin-top: 1.3rem; font-size: .85rem; color: var(--muted);
  border-left: 3px solid var(--accent); padding: .2rem 0 .2rem .8rem;
}

.form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.form .form-row.three { grid-template-columns: repeat(3, 1fr); }
.form .field { margin-bottom: 1rem; }
.form-actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: .5rem; }

/* ---------- Notification ---------- */
.toast {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  background: var(--text); color: var(--surface);
  padding: .7rem 1.2rem; border-radius: 12px;
  font-size: .92rem; font-weight: 600;
  z-index: 60; box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

/* ---------- Pied de page ---------- */
.footer { border-top: 1px solid var(--line); background: var(--surface); padding: 1.8rem 0; font-size: .9rem; }
.footer-inner { display: flex; flex-direction: column; gap: .3rem; }

@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Page d'accueil : choix candidat / employeur ---------- */
.eyebrow {
  display: inline-block; margin-bottom: .9rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent);
}

.créateur {
  font-weight: 900; font-size:medium;
  color:red;

}
.welcome { padding: 4rem 0 4.5rem; }
.welcome h1 { max-width: 16ch; }
.choice-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem;
  margin-top: 2.2rem; max-width: 880px;
}
.choice-card {
  display: flex; flex-direction: column; gap: .45rem;
  padding: 1.6rem;
  background: var(--surface); color: var(--text);
  border: 2px solid transparent; border-radius: 20px;
  text-decoration: none;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.45);
  transition: transform .18s, border-color .18s;
}
.choice-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.choice-icon {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: .4rem;
  display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary);
}
.choice-icon svg { width: 28px; height: 28px; }
.choice-kicker { font-size: .85rem; font-weight: 600; color: var(--muted); }
.choice-card strong { font-family: "Bricolage Grotesque", sans-serif; font-size: 1.6rem; font-weight: 800; line-height: 1.1; }
.choice-text { color: var(--muted); font-size: .95rem; }
.choice-cta { margin-top: auto; padding-top: .8rem; font-weight: 700; color: var(--primary); }

.steps { padding: 3rem 0 3.5rem; }
.steps h2 { font-size: 1.5rem; margin-bottom: 1.2rem; }
.steps-list {
  list-style: none; margin: 0; padding: 0; counter-reset: s;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.steps-list li {
  counter-increment: s; position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 3.2rem 1.2rem 1.2rem; color: var(--muted);
}
.steps-list li::before {
  content: counter(s);
  position: absolute; top: 1rem; left: 1.2rem;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-weight: 800;
}
.steps-list strong { color: var(--text); }

/* ---------- Espace employeur ---------- */
.hero-small { padding: 2.8rem 0 3.2rem; }
.hero-small h1 { font-size: clamp(2rem, 4.2vw, 3rem); max-width: 20ch; }
.emp-layout {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 1.8rem; padding: 2.5rem 0 4rem; align-items: start;
}
.emp-side { display: flex; flex-direction: column; gap: 1.2rem; }
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 1.6rem;
}
.panel h2 { font-size: 1.3rem; display: flex; align-items: center; gap: .5rem; }
.panel-note { margin: .3rem 0 1.3rem; }
.estimate {
  margin: -.2rem 0 1rem; padding: .6rem .9rem; border-radius: 10px;
  background: var(--primary-soft); font-size: .9rem; font-weight: 600;
}
.count-badge {
  font-family: "Instrument Sans", sans-serif; font-size: .8rem; font-weight: 700;
  padding: .1rem .55rem; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
}
.mine-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.mine-row {
  display: grid; grid-template-columns: 40px 1fr auto; gap: .8rem; align-items: center;
  padding: .9rem 0; border-top: 1px solid var(--line);
}
.mine-row:first-child { border-top: 0; padding-top: 0; }
.mine-row .avatar { width: 40px; height: 40px; font-size: .9rem; }
.mine-row h3 { font-size: 1rem; }
.mine-row .row-meta { font-size: .85rem; }
.btn-small { padding: .4rem .7rem; font-size: .82rem; }
#myEmpty { margin-top: .8rem; }
.tips ul { margin: .8rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: .92rem; display: grid; gap: .5rem; }

/* ---------- Responsive ---------- */
.mobile-only { display: none; }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .week { transform: none; max-width: 520px; }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .filters {
    position: static; display: none;
    background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem;
  }
  .filters.open { display: block; }
  .mobile-only { display: inline-flex; }
  .emp-layout { grid-template-columns: minmax(0, 1fr); }
  .steps-list { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .logo-text em, .beta { display: none; }
  .header-inner { gap: .6rem; }
  .header-actions { gap: .5rem; }
  .logo-text { font-size: .9rem; line-height: 1.15; max-width: 6.5rem; }
  .themes { gap: .2rem; }
  .swatch { width: 18px; height: 18px; }
  .mode-toggle { width: 30px; height: 30px; }
  .header .btn-primary { padding: .5rem .8rem; font-size: .85rem; }
  .hero { padding: 2.2rem 0 3rem; }
  .hero-search { flex-wrap: wrap; padding: .5rem; }
  .hero-search svg { margin-left: .4rem; }
  .hero-search input { flex: 1; min-width: 0; }
  .hero-search .btn { width: 100%; }
  .hero-stats { gap: 1.5rem; }
  .hero-stats dd { font-size: 1.35rem; }
  .row { grid-template-columns: 40px 1fr 36px; gap: .8rem; padding: 1rem; }
  .avatar { width: 40px; height: 40px; font-size: .9rem; }
  .row { align-items: start; }
  .pay { grid-column: 2 / 4; grid-row: 2; text-align: left; display: flex; gap: .7rem; align-items: baseline; }
  .pay-rate, .pay-week { white-space: nowrap; }
  .pay-rate { font-size: 1.3rem; }
  .pay-week { margin: 0; }
  .fav-btn { grid-column: 3; grid-row: 1; }
  .form .form-row, .form .form-row.three { grid-template-columns: 1fr; gap: 0; }
  .detail-meta { grid-template-columns: 1fr; }
  .modal-box { padding: 1.5rem; }
  .results-bar { flex-wrap: wrap; }
  .results-bar h2 { font-size: 1.35rem; }
  .choice-grid { grid-template-columns: 1fr; }
  .welcome { padding: 2.5rem 0 3rem; }
  .panel { padding: 1.2rem; }
  .mine-row { grid-template-columns: 1fr auto; }
  .mine-row .avatar { display: none; }
}

@media (max-width: 420px) {
  .logo-text { display: none; }
}
