/* ============================================================
   DECLIC — design system
   ============================================================ */

:root {
  --bg: #f8f6f6;
  --surface: #ffffff;
  --surface-2: #f7f3f3;
  --surface-3: #efe8e9;
  --border: #ede5e6;
  --border-strong: #dfd4d5;
  --text: #1b1314;
  --text-2: #4f4446;
  --muted: #918587;
  --accent: #e5102d;
  --accent-2: #ff4b5c;
  --accent-strong: #b80a22;
  --accent-soft: #fdedef;
  --accent-text: #ffffff;
  --ring-color: rgba(229, 16, 45, .2);
  --good: #0f9d58;
  --good-soft: #e3f5ea;
  --warn: #c27100;
  --warn-soft: #fff3d6;
  --bad: #be123c;
  --bad-soft: #ffe4e9;
  --info: #5b6474;
  --info-soft: #eff1f4;
  --shadow-sm: 0 1px 2px rgba(60, 10, 15, .05);
  --shadow-md: 0 1px 2px rgba(60, 10, 15, .04), 0 8px 24px -8px rgba(60, 10, 15, .10);
  --shadow-lg: 0 24px 60px -20px rgba(150, 10, 30, .30);
  --gradient: linear-gradient(135deg, #c40c26 0%, #e5102d 50%, #ff4b5c 100%);
  --hero: linear-gradient(135deg, #5a0710 0%, #a60c22 48%, #e5102d 100%);
  --brand-glow: rgba(229, 16, 45, .45);
  --radius: 16px;
  --radius-sm: 10px;
  --sidebar: 256px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0a0b;
    --surface: #161112;
    --surface-2: #1d1718;
    --surface-3: #282021;
    --border: #2b2224;
    --border-strong: #3b3032;
    --text: #f8f2f2;
    --text-2: #d2c6c7;
    --muted: #978a8c;
    --accent: #ff4757;
    --accent-2: #ff7a86;
    --accent-strong: #ff6b78;
    --accent-soft: rgba(255, 71, 87, .14);
    --accent-text: #ffffff;
    --ring-color: rgba(255, 71, 87, .32);
    --good: #3fd68b;
    --good-soft: rgba(63, 214, 139, .12);
    --warn: #f2b14c;
    --warn-soft: rgba(242, 177, 76, .13);
    --bad: #fb7185;
    --bad-soft: rgba(251, 113, 133, .13);
    --info: #a3aab8;
    --info-soft: rgba(163, 170, 184, .13);
    --shadow-sm: none;
    --shadow-md: 0 0 0 1px rgba(255, 255, 255, .02), 0 10px 30px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 30px 70px -25px rgba(0, 0, 0, .8);
    --brand-glow: rgba(255, 71, 87, .5);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0e0a0b;
  --surface: #161112;
  --surface-2: #1d1718;
  --surface-3: #282021;
  --border: #2b2224;
  --border-strong: #3b3032;
  --text: #f8f2f2;
  --text-2: #d2c6c7;
  --muted: #978a8c;
  --accent: #ff4757;
  --accent-2: #ff7a86;
  --accent-strong: #ff6b78;
  --accent-soft: rgba(255, 71, 87, .14);
  --accent-text: #ffffff;
  --ring-color: rgba(255, 71, 87, .32);
  --good: #3fd68b;
  --good-soft: rgba(63, 214, 139, .12);
  --warn: #f2b14c;
  --warn-soft: rgba(242, 177, 76, .13);
  --bad: #fb7185;
  --bad-soft: rgba(251, 113, 133, .13);
  --info: #a3aab8;
  --info-soft: rgba(163, 170, 184, .13);
  --shadow-sm: none;
  --shadow-md: 0 0 0 1px rgba(255, 255, 255, .02), 0 10px 30px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 70px -25px rgba(0, 0, 0, .8);
  --brand-glow: rgba(255, 71, 87, .5);
  color-scheme: dark;
}

/* Compteur animé (score, chiffres clés) */
@property --n {
  syntax: '<integer>';
  inherits: false;
  initial-value: 0;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14.5px/1.55 'Inter Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}

/* Les composants en display:flex/grid ne doivent pas annuler l'attribut hidden. */
[hidden] { display: none !important; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { letter-spacing: -.02em; margin: 0; }
code { font: 12.5px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; }
kbd { font: 11.5px ui-monospace, monospace; padding: 1px 6px; border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 6px; background: var(--surface); }
svg.lucide { width: 18px; height: 18px; stroke-width: 2; flex: none; }
::selection { background: var(--accent-soft); }

.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mt { margin-top: 14px; }
p.muted { margin: 0 0 14px; }

/* ============================================================
   Layout
   ============================================================ */

.app { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }

.sidebar {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 22px;
  padding: 20px 14px;
  background: var(--surface);
  border-right: 1px solid var(--border);
}

.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-text strong { display: block; font-size: 15px; letter-spacing: -.01em; }
.brand-text small { color: var(--muted); font-size: 12px; }

.logo-img { display: block; width: 40px; height: 40px; flex: none; border-radius: 11px; box-shadow: 0 8px 20px -8px var(--brand-glow); transition: transform .4s var(--ease); }
.brand:hover .logo-img { transform: rotate(-6deg) scale(1.05); }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-sep { margin: 16px 10px 6px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 11px;
  padding: 9px 12px; border-radius: 10px;
  color: var(--text-2); font-weight: 500;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav-item:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav-item svg.lucide { color: var(--muted); transition: color .2s, transform .3s var(--ease); }
.nav-item:hover svg.lucide { transform: translateX(1px); }
.nav-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav-item.active svg.lucide { color: var(--accent); }
.nav-item.active::before {
  content: ''; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--gradient);
  animation: grow .35s var(--ease);
}
.nav-badge {
  margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 99px;
  font-size: 11.5px; font-weight: 600; text-align: center;
  background: var(--surface-3); color: var(--text-2);
}
.nav-badge:empty { display: none; }
.nav-item.active .nav-badge { background: var(--accent); color: var(--accent-text); }

.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.status-card {
  padding: 14px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 9px; font-size: 13px;
}
.status-card .status-row { display: flex; align-items: center; gap: 8px; color: var(--text-2); cursor: pointer; }
.status-card .status-row:hover { color: var(--text); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.ok { background: var(--good); box-shadow: 0 0 0 3px var(--good-soft); }
.dot.ko { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); animation: pulse 2s infinite; }

.theme-toggle, .icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 500; color: var(--text-2);
  background: transparent; border: 1px solid var(--border); border-radius: 10px;
  cursor: pointer; transition: all .2s var(--ease);
}
.theme-toggle { padding: 9px 12px; justify-content: flex-start; }
.icon-btn { width: 36px; height: 36px; padding: 0; }
.theme-toggle:hover, .icon-btn:hover { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }
.theme-toggle svg.lucide, .icon-btn svg.lucide { transition: transform .5s var(--ease); }
.theme-toggle:hover svg.lucide { transform: rotate(-20deg); }

.main { min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 16px;
  /* Mêmes marges que le contenu centré, pour que le titre reste aligné avec lui sur grand écran. */
  padding: 18px max(36px, calc((100% - 1240px) / 2 + 36px));
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.topbar.scrolled { border-bottom-color: var(--border); }
.topbar-title { flex: 1; min-width: 0; }
.topbar h1 { font-size: 22px; font-weight: 700; }
.topbar p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.topbar-actions { display: flex; gap: 8px; }
.mobile-logo, .mobile-theme { display: none; }

.content { padding: 8px 36px 60px; max-width: 1240px; width: 100%; margin-inline: auto; }

.panel { display: flex; flex-direction: column; gap: 20px; }
.panel.enter { animation: rise .45s var(--ease); }

/* ============================================================
   Cards & common blocks
   ============================================================ */

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-md);
}
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head.pad { padding: 20px 20px 0; }
.card-head h3 { display: flex; align-items: center; gap: 9px; font-size: 15.5px; font-weight: 650; }
.card-head h3 svg.lucide { color: var(--accent); }
.link { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; }
.link svg.lucide { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.link:hover svg.lucide { transform: translateX(3px); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-2.tight { gap: 12px; }

.tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 99px; background: var(--accent-soft); color: var(--accent);
}
.tag.soft { background: var(--surface-2); color: var(--muted); }
.tag.good { background: var(--good-soft); color: var(--good); }
.badge { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--surface-2); border-radius: 99px; padding: 1px 8px; }
.badge:empty { display: none; }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font: inherit; font-weight: 600; font-size: 13.5px; line-height: 1; white-space: nowrap;
  padding: 10px 15px; border-radius: 10px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  cursor: pointer; text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s, color .2s;
}
.btn svg.lucide { width: 16px; height: 16px; }
.btn:hover { text-decoration: none; border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:focus-visible, .nav-item:focus-visible, .seg:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ring-color); }
.btn.primary {
  background: var(--gradient); background-size: 150% 150%; background-position: 0% 50%;
  border-color: transparent; color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 8px 20px -8px var(--brand-glow);
}
.btn.primary:hover { color: #fff; background-position: 100% 50%; box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 12px 26px -8px var(--brand-glow); }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--text-2); }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.btn.glass { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .22); color: #fff; backdrop-filter: blur(8px); }
.btn.glass:hover { background: rgba(255, 255, 255, .2); color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn.lg { padding: 12px 18px; font-size: 14px; border-radius: 12px; }
.btn.sm { padding: 7px 11px; font-size: 12.5px; border-radius: 9px; }
.btn.sm svg.lucide { width: 14px; height: 14px; }
.btn.good { color: var(--good); border-color: color-mix(in srgb, var(--good) 35%, transparent); background: var(--good-soft); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn.done { color: var(--good); border-color: var(--good); }

.spinner { width: 15px; height: 15px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }

/* ============================================================
   Forms
   ============================================================ */

.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span:first-child { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.field small { font-weight: 400; color: var(--muted); margin-left: 4px; }

input, select, textarea {
  width: 100%; font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px;
  padding: 10px 12px; transition: border-color .2s, box-shadow .2s, background .2s;
}
input::placeholder, textarea::placeholder { color: var(--muted); }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--border-strong)); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--ring-color); }
textarea { resize: vertical; line-height: 1.6; }
select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a85a1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}

.input-icon { position: relative; display: block; }
.input-icon > svg.lucide { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 16px; height: 16px; pointer-events: none; }
.input-icon > input { padding-left: 37px; }
.input-icon.small > input { padding-top: 8px; padding-bottom: 8px; }

.inline-form { display: flex; gap: 8px; margin-top: 16px; }
.inline-form .input-icon { flex: 1; }

/* Interrupteur */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; color: var(--text-2); user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .slider { position: relative; width: 38px; height: 22px; border-radius: 99px; background: var(--surface-3); border: 1px solid var(--border-strong); transition: background .25s var(--ease); flex: none; }
.switch .slider::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .3s var(--ease); }
.switch input:checked + .slider { background: var(--accent); border-color: var(--accent); }
.switch input:checked + .slider::after { transform: translateX(16px); }
.switch input:focus-visible + .slider { box-shadow: 0 0 0 4px var(--ring-color); }

input[type="range"] { padding: 0; border: 0; background: none; accent-color: var(--accent); width: 110px; box-shadow: none; }

/* ============================================================
   Accueil
   ============================================================ */

.hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; gap: 30px;
  padding: 34px 36px; border-radius: 22px;
  background: var(--hero); color: #fff;
  box-shadow: var(--shadow-lg);
}
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-bg span { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .55; animation: float 14s ease-in-out infinite; }
.hero-bg span:nth-child(1) { width: 340px; height: 340px; background: #ff4b5c; top: -120px; right: 8%; }
.hero-bg span:nth-child(2) { width: 260px; height: 260px; background: #ff9a62; bottom: -140px; right: 30%; animation-delay: -5s; opacity: .35; }
.hero-bg span:nth-child(3) { width: 220px; height: 220px; background: #ffd0d5; top: 20%; left: -80px; animation-delay: -9s; opacity: .22; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px);
  background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.hero-content { flex: 1; min-width: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600; padding: 5px 12px; border-radius: 99px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2);
}
.eyebrow svg.lucide { width: 14px; height: 14px; }
.hero h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 750; margin: 16px 0 8px; letter-spacing: -.03em; }
.hero p { margin: 0 0 22px; color: rgba(255, 255, 255, .78); font-size: 15px; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero .btn.primary { background: #fff; color: #b80a22; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); }
.hero .btn.primary:hover { color: #b80a22; }
.hero-goal {
  flex: none; display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 20px 24px; border-radius: 18px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(10px);
}
.hero-goal .goal-label { font-size: 12.5px; color: rgba(255, 255, 255, .75); text-align: center; }
.hero-goal .ring-track { stroke: rgba(255, 255, 255, .16); }
.hero-goal .ring-val { color: #fff; }
.hero-goal .ring-bar { stroke: #fff; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .55)); }

/* Chiffres clés */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.kpi {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px 18px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.kpi-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.kpi-icon.good { background: var(--good-soft); color: var(--good); }
.kpi-icon.warn { background: var(--warn-soft); color: var(--warn); }
.kpi-icon.info { background: var(--info-soft); color: var(--info); }
.kpi-icon.bad { background: var(--bad-soft); color: var(--bad); }
.kpi-value { font-size: 28px; font-weight: 750; letter-spacing: -.03em; line-height: 1; }
.kpi-label { color: var(--muted); font-size: 13px; }

.count { animation: count 1.1s var(--ease) both; counter-reset: num var(--n); }
.count::after { content: counter(num); }

/* Progression */
.progress { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin-bottom: 16px; }
.progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--gradient); transition: width 1s var(--ease); }

.steps { display: flex; flex-direction: column; gap: 6px; }
.step {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
  color: var(--text); cursor: pointer; transition: background .2s;
}
.step:hover { background: var(--surface-2); text-decoration: none; }
.step-check {
  display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%;
  border: 2px dashed var(--border-strong); color: var(--muted); font-size: 12px; font-weight: 700;
}
.step.done .step-check { border: 0; background: var(--good); color: #fff; animation: pop .45s var(--ease) both; }
.step.done .step-check svg.lucide { width: 15px; height: 15px; stroke-width: 3; }
.step b { display: block; font-weight: 600; font-size: 14px; }
.step.done b { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--border-strong); }
.step small { color: var(--muted); font-size: 12.5px; }
.step > svg.lucide { margin-left: auto; color: var(--muted); opacity: 0; transform: translateX(-4px); transition: all .2s var(--ease); }
.step:hover > svg.lucide { opacity: 1; transform: none; }

/* À faire */
.todo { display: flex; flex-direction: column; gap: 4px; }
.todo-row { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; transition: background .2s; }
.todo-row:hover { background: var(--surface-2); }
.todo-row .grow { flex: 1; min-width: 0; }
.todo-row b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.todo-row small { color: var(--muted); font-size: 12.5px; }
.todo-actions { display: flex; gap: 6px; }

/* Avatars d'entreprise */
.avatar {
  --h: 260;
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  border-radius: 12px; font-weight: 700; font-size: 14px; letter-spacing: -.02em;
  color: hsl(var(--h) 70% 42%); background: hsl(var(--h) 85% 95%);
  border: 1px solid hsl(var(--h) 60% 88%);
}
:root[data-theme="dark"] .avatar { color: hsl(var(--h) 85% 75%); background: hsl(var(--h) 40% 16%); border-color: hsl(var(--h) 35% 24%); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .avatar { color: hsl(var(--h) 85% 75%); background: hsl(var(--h) 40% 16%); border-color: hsl(var(--h) 35% 24%); }
}
.avatar.sm { width: 34px; height: 34px; border-radius: 10px; font-size: 12.5px; }
.avatar.xs { width: 20px; height: 20px; border-radius: 6px; font-size: 9px; }
/* Logo d'entreprise posé sur les initiales, visible une fois chargé */
.avatar.co { position: relative; overflow: hidden; }
.avatar.co img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 14%; object-fit: contain; background: #fff; opacity: 0; transition: opacity .3s var(--ease); }
.avatar.co.has-logo { box-shadow: inset 0 0 0 1px var(--border); }
.avatar.co.has-logo img { opacity: 1; }
.co-line { display: inline-flex; align-items: center; gap: 6px; }

/* Meilleures offres */
.top-offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.mini {
  display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--surface-2);
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.mini:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow-md); }
.mini-head { display: flex; gap: 12px; align-items: center; }
.mini-head .grow { min-width: 0; }
.mini b { display: block; font-size: 14px; line-height: 1.35; }
.mini small { color: var(--muted); }
.mini .chips { margin-top: auto; }
.mini-actions { display: flex; gap: 6px; }

/* ============================================================
   Score (anneau)
   ============================================================ */

.ring { --p: 0; --size: 56px; --stroke: 5.5; --c: 163.4; position: relative; width: var(--size); height: var(--size); flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: var(--stroke); }
.ring-track { stroke: var(--surface-3); }
.ring-bar {
  stroke: var(--ring-stroke, var(--accent)); stroke-linecap: round;
  stroke-dasharray: var(--c);
  stroke-dashoffset: calc(var(--c) * (1 - var(--p) / 100));
  animation: ring-draw 1.2s var(--ease) both;
  filter: drop-shadow(0 0 4px color-mix(in srgb, var(--ring-stroke, var(--accent)) 45%, transparent));
}
.ring.high { --ring-stroke: var(--good); }
.ring.mid { --ring-stroke: var(--warn); }
.ring.low { --ring-stroke: var(--muted); }
.ring-val { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 750; font-size: 16px; letter-spacing: -.02em; color: var(--text); }
.ring.lg { --size: 112px; --stroke: 4.6; }
.ring.lg .ring-val { font-size: 28px; }
.ring.sm { --size: 42px; --stroke: 6.5; }
.ring.sm .ring-val { font-size: 13px; }

/* ============================================================
   Offres
   ============================================================ */

.search { padding: 18px 20px; }
.search-row { display: grid; grid-template-columns: minmax(180px, 1.6fr) minmax(110px, .8fr) minmax(150px, 1fr) auto; gap: 12px; align-items: end; }
.romes { border: 0; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.romes legend { font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; padding: 0; }
.chip-check { position: relative; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check span {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 99px; cursor: pointer;
  font-size: 13px; font-weight: 500; color: var(--text-2);
  border: 1px solid var(--border-strong); background: var(--surface); transition: all .2s var(--ease);
}
.chip-check span svg.lucide { width: 15px; height: 15px; }
.chip-check span:hover { border-color: var(--accent); }
.chip-check input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.chip-check input:focus-visible + span { box-shadow: 0 0 0 4px var(--ring-color); }

.meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.meta:empty { display: none; }
.meta svg.lucide { width: 15px; height: 15px; }
.meta.error { color: var(--bad); background: var(--bad-soft); padding: 12px 14px; border-radius: 12px; }

.toolbar { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; justify-content: space-between; }
.segmented { display: inline-flex; padding: 4px; gap: 4px; border-radius: 12px; background: var(--surface-3); }
.seg {
  display: inline-flex; align-items: center; gap: 7px;
  font: inherit; font-weight: 600; font-size: 13px; color: var(--text-2);
  padding: 8px 13px; border: 0; border-radius: 9px; background: transparent; cursor: pointer;
  transition: all .25s var(--ease);
}
.seg svg.lucide { width: 15px; height: 15px; }
.seg:hover { color: var(--text); }
.seg.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-md); }
.seg .seg-count { color: var(--muted); font-weight: 600; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.range { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--text-2); }
.range svg.lucide { width: 15px; height: 15px; color: var(--muted); }
.range b { min-width: 22px; color: var(--accent); }
.filters .input-icon { width: 220px; }

.results { display: flex; flex-direction: column; gap: 14px; }
.results:empty { display: none; }

.offer {
  position: relative;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow-md);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.offer:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.offer-top { display: flex; gap: 16px; align-items: flex-start; }
.offer-main { flex: 1; min-width: 0; }
.offer-title { font-size: 16px; font-weight: 650; line-height: 1.35; margin-bottom: 6px; }
.offer-company { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 13.5px; }
.offer-company b { color: var(--text); font-weight: 600; }
.offer-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.meta-pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 8px;
  font-size: 12.5px; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border);
}
.meta-pill svg.lucide { width: 13px; height: 13px; color: var(--muted); }

.offer-skills { display: grid; gap: 8px; margin-top: 14px; }
.skill-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.skill-line > .label { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 500;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2);
}
.chip.good { background: var(--good-soft); border-color: transparent; color: var(--good); }
.chip.warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.chip button { border: 0; background: none; color: inherit; opacity: .55; cursor: pointer; font-size: 15px; line-height: 1; padding: 0 0 0 3px; transition: opacity .2s, transform .2s; }
.chip button:hover { opacity: 1; transform: scale(1.2); }

.offer-details { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.offer-details > div { overflow: hidden; }
.offer.open .offer-details { grid-template-rows: 1fr; }
.details-inner { display: flex; flex-direction: column; gap: 12px; padding-top: 14px; }
.reasons { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.reasons li { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--text-2); }
.reasons li svg.lucide { width: 16px; height: 16px; margin-top: 2px; color: var(--accent); }
.desc { font-size: 13.5px; color: var(--text-2); white-space: pre-line; max-height: 320px; overflow: auto; padding: 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }

.cv-reco {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px; padding: 11px 14px; border-radius: 12px;
  background: var(--accent-soft); color: var(--text);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}
.cv-reco svg.lucide { color: var(--accent); margin-top: 1px; }

.offer-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--border); }
.offer-actions .spacer { flex: 1; }
.offer-actions select { width: auto; padding: 7px 32px 7px 11px; font-size: 13px; font-weight: 600; border-radius: 9px; }
.toggle-details svg.lucide { transition: transform .35s var(--ease); }
.offer.open .toggle-details svg.lucide { transform: rotate(180deg); }

.show-more { align-self: center; }

/* Squelettes de chargement */
.skeleton { pointer-events: none; }
.sk { border-radius: 8px; background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; }
.sk.ring-sk { width: 56px; height: 56px; border-radius: 50%; flex: none; }
.sk.line { height: 12px; margin-bottom: 10px; }

/* État vide */
.empty {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  padding: 44px 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px dashed var(--border-strong); color: var(--muted);
}
.empty-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); animation: bob 3s ease-in-out infinite; }
.empty-icon svg.lucide { width: 26px; height: 26px; }
.empty b { color: var(--text); font-size: 15px; }
.empty p { margin: 0; max-width: 420px; }
.empty.compact { padding: 26px 16px; }

.links { display: flex; flex-wrap: wrap; gap: 8px; }

/* ============================================================
   Suivi
   ============================================================ */

.pipeline-bar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: var(--surface-3); gap: 2px; }
.pipeline-bar span { height: 100%; transform-origin: left; animation: grow-x .9s var(--ease) both; }
.pipeline-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: 13px; color: var(--text-2); }
.pipeline-legend span { display: inline-flex; align-items: center; gap: 7px; }
.pipeline-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.st-a-postuler { --st: var(--info); --st-soft: var(--info-soft); }
.st-postule { --st: var(--accent); --st-soft: var(--accent-soft); }
.st-relance { --st: var(--warn); --st-soft: var(--warn-soft); }
.st-entretien { --st: var(--good); --st-soft: var(--good-soft); }
.st-refuse { --st: var(--muted); --st-soft: var(--surface-3); }
.st-accepte { --st: #0bb39b; --st-soft: rgba(11, 179, 155, .14); }

/* Liste + fiche détaillée */
.crm { display: grid; grid-template-columns: minmax(270px, 340px) minmax(0, 1fr); gap: 20px; align-items: start; }
.crm-list { position: sticky; top: 92px; max-height: calc(100vh - 112px); display: flex; flex-direction: column; }
.crm-filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px; border-bottom: 1px solid var(--border); }
.filter-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; cursor: pointer;
  font: inherit; font-size: 12.5px; font-weight: 600; color: var(--text-2);
  background: var(--surface); border: 1px solid var(--border-strong); transition: all .2s var(--ease);
}
.filter-chip b { color: var(--muted); font-weight: 700; }
.filter-chip:hover { border-color: var(--accent); color: var(--accent); }
.filter-chip.active { background: var(--gradient); border-color: transparent; color: #fff; box-shadow: 0 6px 14px -6px var(--brand-glow); }
.filter-chip.active b { color: rgba(255, 255, 255, .85); }
.crm-items { overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.crm-item {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 10px 10px 12px;
  font: inherit; text-align: left; color: var(--text); cursor: pointer;
  background: transparent; border: 1px solid transparent; border-radius: 12px;
  transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.crm-item:hover { background: var(--surface-2); transform: translateX(2px); }
.crm-item.active { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 28%, transparent); }
.crm-item.active::before { content: ''; position: absolute; left: -1px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--gradient); animation: grow .3s var(--ease); }
.crm-item .grow { flex: 1; min-width: 0; }
.crm-item b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crm-item small { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crm-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.status-pill { font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 99px; color: var(--st, var(--text-2)); background: var(--st-soft, var(--surface-2)); white-space: nowrap; }

.detail { display: flex; flex-direction: column; gap: 22px; }
.detail-head { display: flex; align-items: center; gap: 16px; }
.detail-head .grow { flex: 1; min-width: 0; }
.detail-head h3 { font-size: 21px; font-weight: 700; }
.detail-head p { margin: 2px 0 4px; color: var(--text-2); }
.detail-head small { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12.5px; }
.detail-head small svg.lucide { width: 14px; height: 14px; }
.detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-bottom: 18px; border-bottom: 1px dashed var(--border-strong); }
.detail-meta .relance { margin-top: 0; }
.detail-meta .del-btn { margin-left: auto; }
.detail-section { display: flex; flex-direction: column; gap: 12px; }
.detail-section h4 { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 650; }
.detail-section h4 > svg.lucide { color: var(--accent); }
.avatar.lg { width: 58px; height: 58px; border-radius: 17px; font-size: 19px; }

.li-who { display: flex; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.li-who b { display: block; font-size: 13.5px; }
.li-who p { margin: 3px 0 10px; color: var(--text-2); font-size: 13.5px; }
.li-who .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.li-who .grow > p { margin: 0; }
.contacts { display: grid; gap: 8px; }
.contact { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); animation: rise .4s var(--ease); }
.contact .grow { gap: 0; }
.contact b { font-size: 14px; }
.contact small { color: var(--muted); font-size: 12.5px; }
.contact .btn.primary svg.lucide { color: #fff; }
@media (max-width: 560px) { .contact { flex-wrap: wrap; } }
.li-badge { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 11px; background: #0a66c2; color: #fff; box-shadow: 0 6px 16px -8px rgba(10, 102, 194, .8); }
.li-badge svg.lucide { width: 20px; height: 20px; }

.msg { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface); transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.msg:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.msg-head { display: flex; align-items: center; gap: 10px; padding: 9px 10px 9px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.msg-title { flex: 1; display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; }
.msg-title svg.lucide { width: 16px; height: 16px; color: var(--accent); }
.msg-head .char-count { margin-left: 0; }
.msg-body { padding: 14px 16px; font-size: 14px; line-height: 1.65; white-space: pre-wrap; color: var(--text); }
.tip { display: flex; gap: 8px; margin: 0; font-size: 12.5px; color: var(--muted); }
.tip svg.lucide { width: 15px; height: 15px; margin-top: 1px; }

.status-select {
  width: auto; font-weight: 600; font-size: 12.5px; padding: 6px 30px 6px 12px; border-radius: 99px;
  color: var(--st, var(--text)); background-color: var(--st-soft, var(--surface-2));
  border-color: color-mix(in srgb, var(--st, var(--border)) 30%, transparent);
}
.relance { display: inline-flex; align-items: center; gap: 5px; color: var(--warn); font-weight: 600; font-size: 12px; animation: pulse-text 2s infinite; }
.relance svg.lucide { width: 14px; height: 14px; }
.del-btn { color: var(--muted); }
.del-btn:hover { color: var(--bad); border-color: var(--bad); background: var(--bad-soft); }

/* ============================================================
   Profil
   ============================================================ */

.docs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.doc {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 18px; border-radius: var(--radius); cursor: pointer;
  background: var(--surface); border: 1.5px dashed var(--border-strong);
  transition: border-color .25s, background .25s, transform .25s var(--ease), box-shadow .25s;
}
.doc:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.doc.filled { border-style: solid; border-color: var(--border); box-shadow: var(--shadow-md); }
.doc.drag { border-color: var(--accent); background: var(--accent-soft); transform: scale(1.02); }
.doc.loading { pointer-events: none; }
.doc input { display: none; }
.doc-top { display: flex; align-items: center; gap: 12px; }
.doc-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); flex: none; }
.doc.filled .doc-icon { background: var(--good-soft); color: var(--good); }
.doc-title { font-weight: 650; }
.doc-file { font-size: 12.5px; color: var(--muted); word-break: break-word; }
.doc-help { font-size: 13px; color: var(--text-2); }
.doc-actions { display: flex; gap: 8px; margin-top: auto; }
.doc-drop { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--accent); font-weight: 600; margin-top: auto; }
.doc-drop svg.lucide { width: 15px; height: 15px; }

.skill-group { margin-bottom: 14px; }
.skill-group h4 { margin: 0 0 8px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 650; }

/* ============================================================
   Réglages
   ============================================================ */

.settings { display: flex; flex-direction: column; gap: 20px; max-width: 760px; }
.settings .card { display: flex; flex-direction: column; gap: 14px; }
.settings .card-head { margin-bottom: 0; }
.settings p.muted { margin: 0; }
.settings-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.settings-foot p { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.numbered { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 8px; color: var(--text-2); }
.numbered li { counter-increment: step; display: flex; gap: 10px; align-items: baseline; }
.numbered li::before { content: counter(step); display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; }

/* ============================================================
   Dialogue
   ============================================================ */

dialog {
  width: min(820px, calc(100% - 24px)); max-height: calc(100% - 32px); padding: 0;
  border: 1px solid var(--border); border-radius: 20px; background: var(--surface); color: var(--text);
  box-shadow: var(--shadow-lg);
}
dialog[open] { animation: dialog-in .35s var(--ease); }
dialog::backdrop { background: rgba(25, 5, 8, .45); backdrop-filter: blur(4px); animation: fade .3s ease; }
.dialog-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 14px; padding: 18px 22px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.dialog-head > div { flex: 1; min-width: 0; }
.dialog-head h3 { font-size: 16.5px; }
.dialog-head p { margin: 2px 0 0; }
.dialog-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--gradient); color: #fff; flex: none; }
.dialog-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 16px; }
.dialog-body #letterOut { min-height: 300px; }
.dialog-section { display: flex; flex-direction: column; gap: 10px; }
.dialog-section h4 { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.dialog-section h4 svg.lucide { color: var(--accent); }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.loading { display: flex; flex-direction: column; align-items: center; gap: 14px; color: var(--muted); padding: 40px 0; }
.loading .spinner { width: 28px; height: 28px; border-width: 3px; color: var(--accent); }

.ai-box {
  position: relative; overflow: hidden;
  padding: 18px; border-radius: 16px;
  background: linear-gradient(135deg, var(--accent-soft), color-mix(in srgb, var(--accent-soft) 40%, var(--surface)));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.ai-box::before { content: ''; position: absolute; top: -60%; right: -10%; width: 220px; height: 220px; border-radius: 50%; background: var(--accent); filter: blur(70px); opacity: .18; animation: float 10s ease-in-out infinite; }
.ai-box h4 { position: relative; display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 12px; }
.ai-box h4 svg.lucide { color: var(--accent); }
.ai-steps { position: relative; margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.ai-steps li { counter-increment: s; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 13.5px; color: var(--text-2); }
.ai-steps li::before { content: counter(s); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; flex: none; }

/* Fenêtre LinkedIn */
.li-btn svg.lucide, .li-target .btn svg.lucide:first-child { color: #0a66c2; }
.li-target p { margin: 0; color: var(--text-2); }
.li-target p.muted { color: var(--muted); }
.step-num { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--gradient); color: #fff; font-size: 12px; font-weight: 700; flex: none; }
.char-count { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--good); background: var(--good-soft); padding: 2px 9px; border-radius: 99px; }
.char-count.over { color: var(--bad); background: var(--bad-soft); }
.dialog-section h4 .char-count { font-weight: 600; }

.notice { display: flex; gap: 10px; font-size: 13.5px; padding: 12px 14px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); }

/* ============================================================
   Notifications
   ============================================================ */

.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: flex-start; gap: 10px; max-width: 420px;
  padding: 12px 16px; border-radius: 14px; font-weight: 500; font-size: 13.5px;
  background: var(--text); color: var(--bg); box-shadow: var(--shadow-lg);
  animation: toast-in .45s var(--ease) both;
}
.toast svg.lucide { margin-top: 1px; color: var(--good); }
.toast.error { background: var(--bad); color: #fff; }
.toast.error svg.lucide { color: #fff; }
.toast.out { animation: toast-out .3s ease both; }

/* ============================================================
   Habillage : fond animé, verre, reflets
   ============================================================ */

:root { --grid-line: rgba(229, 16, 45, .055); --plane: rgba(229, 16, 45, .10); }
:root[data-theme="dark"] { --grid-line: rgba(255, 255, 255, .035); --plane: rgba(255, 71, 87, .14); }

.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg .glow { position: absolute; border-radius: 50%; filter: blur(30px); animation: drift 26s ease-in-out infinite; }
.bg .g1 { width: 620px; height: 620px; top: -260px; right: -160px; background: radial-gradient(circle, rgba(229, 16, 45, .20), transparent 65%); }
.bg .g2 { width: 560px; height: 560px; bottom: -260px; left: 6%; background: radial-gradient(circle, rgba(255, 128, 92, .16), transparent 65%); animation-delay: -9s; }
.bg .g3 { width: 440px; height: 440px; top: 38%; left: 48%; background: radial-gradient(circle, rgba(255, 75, 92, .10), transparent 65%); animation-delay: -17s; }
:root[data-theme="dark"] .bg .g1 { background: radial-gradient(circle, rgba(255, 50, 70, .22), transparent 65%); }
:root[data-theme="dark"] .bg .g2 { background: radial-gradient(circle, rgba(255, 110, 80, .12), transparent 65%); }
.bg .grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 75% 55% at 75% 0%, #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse 75% 55% at 75% 0%, #000 15%, transparent 72%);
}
.bg .plane { position: absolute; color: var(--plane); animation: fly 32s linear infinite; }
.bg .p1 { width: 34px; top: 72%; left: -60px; }
.bg .p2 { width: 22px; top: 42%; left: -60px; animation-duration: 44s; animation-delay: -14s; }
.bg .p3 { width: 28px; top: 88%; left: -60px; animation-duration: 38s; animation-delay: -26s; }
.bg .noise {
  position: absolute; inset: 0; opacity: .045; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] .bg .noise { mix-blend-mode: screen; opacity: .03; }

@keyframes drift { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(-50px, 40px) scale(1.08); } 66% { transform: translate(40px, -30px) scale(.94); } }
@keyframes fly { from { transform: translate(0, 0) rotate(8deg); } to { transform: translate(calc(100vw + 140px), -42vh) rotate(8deg); } }

/* Surfaces en verre */
.sidebar { background: color-mix(in srgb, var(--surface) 78%, transparent); backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5); }
.card, .kpi, .offer, .doc { background: color-mix(in srgb, var(--surface) 90%, transparent); }
.mini { background: color-mix(in srgb, var(--surface-2) 85%, transparent); }

/* Lumière qui suit la souris */
/* .crm-list garde son position: sticky */
.card:not(.crm-list), .mini { position: relative; }
.card::after, .kpi::after, .offer::after, .mini::after, .doc::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity .35s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 8%, transparent), transparent 45%);
}
.card:hover::after, .kpi:hover::after, .offer:hover::after, .mini:hover::after, .doc:hover::after { opacity: 1; }
.card.flush::after { display: none; }
.offer:hover, .kpi:hover { border-color: color-mix(in srgb, var(--accent) 28%, var(--border)); }

/* Petite lueur dans le coin des chiffres clés */
.kpi::before { content: ''; position: absolute; top: -50px; right: -50px; width: 130px; height: 130px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 13%, transparent), transparent 70%); pointer-events: none; }

/* Reflet qui balaie les boutons principaux */
.btn.primary { overflow: hidden; }
.btn.primary::after { content: ''; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent); transform: skewX(-20deg); transition: left .7s var(--ease); pointer-events: none; }
.btn.primary:hover::after { left: 135%; }

/* Icône de page dans l'en-tête */
.title-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 13px; background: var(--accent-soft); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent); }
.title-icon svg.lucide { width: 21px; height: 21px; }
.topbar { background: color-mix(in srgb, var(--bg) 70%, transparent); }

/* Navigation : pastille active en dégradé */
.nav-item.active { background: linear-gradient(90deg, var(--accent-soft), color-mix(in srgb, var(--accent-soft) 30%, transparent)); }

/* Avions en papier dans la bannière d'accueil */
.hero-plane { position: absolute; z-index: -1; color: rgba(255, 255, 255, .16); animation: fly-hero 18s linear infinite; }
.hero-plane.a { width: 46px; top: 70%; left: -60px; }
.hero-plane.b { width: 26px; top: 40%; left: -60px; animation-duration: 24s; animation-delay: -10s; }
@keyframes fly-hero { from { transform: translate(0, 0) rotate(10deg); } to { transform: translate(1200px, -260px) rotate(10deg); } }

/* Barres de défilement fines */
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background-color: var(--muted); }

@media (max-width: 1100px) {
  .crm { grid-template-columns: 1fr; }
  .crm-list { position: static; max-height: 380px; }
}
@media (max-width: 900px) {
  .title-icon { display: none; }
  .bg .plane { display: none; }
  .detail-head h3 { font-size: 18px; }
}

/* ============================================================
   Écrans plein écran : chargement, configuration, connexion, onboarding
   ============================================================ */

.screen { min-height: 100vh; }
.splash { display: grid; place-content: center; justify-items: center; gap: 22px; }
.splash-logo { border-radius: 18px; box-shadow: 0 16px 40px -14px var(--brand-glow); animation: bob 2.4s ease-in-out infinite; }
.splash .spinner { width: 26px; height: 26px; border-width: 3px; color: var(--accent); }
.setup { display: grid; place-items: center; padding: 24px; }

/* Connexion */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-side {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: 44px clamp(28px, 5vw, 64px); color: #fff; background: var(--hero);
}
.auth-side-bg { position: absolute; inset: 0; z-index: -1; }
.auth-side-bg span { position: absolute; border-radius: 50%; filter: blur(60px); animation: float 14s ease-in-out infinite; }
.auth-side-bg span:nth-child(1) { width: 380px; height: 380px; background: #ff4b5c; top: -120px; right: -80px; opacity: .55; }
.auth-side-bg span:nth-child(2) { width: 300px; height: 300px; background: #ff9a62; bottom: -120px; left: -60px; opacity: .35; animation-delay: -6s; }
.auth-side::after { content: ''; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, #000, transparent 80%); }
.auth-brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-weight: 700; font-size: 17px; }
.auth-brand:hover { text-decoration: none; }
.auth-brand img { border-radius: 12px; box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .5); }
.auth-pitch h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 750; line-height: 1.15; letter-spacing: -.03em; margin-bottom: 30px; }
.auth-pitch ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.auth-pitch li { display: flex; gap: 14px; align-items: flex-start; animation: rise .6s var(--ease) both; }
.auth-pitch li:nth-child(2) { animation-delay: .1s; }
.auth-pitch li:nth-child(3) { animation-delay: .2s; }
.auth-pitch li > span { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 11px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .25); font-weight: 700; }
.auth-pitch b { display: block; font-size: 16px; }
.auth-pitch small { color: rgba(255, 255, 255, .75); font-size: 14px; }
.auth-foot { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .7); }
.auth-main { display: grid; place-items: center; padding: 32px 20px; }
.auth-card { width: min(440px, 100%); display: flex; flex-direction: column; gap: 6px; animation: rise .5s var(--ease); }
.auth-card h1 { font-size: 30px; font-weight: 750; }
.auth-card > p.muted { margin: 0 0 18px; font-size: 15px; }
.auth-tabs { width: 100%; margin-bottom: 18px; }
.auth-tabs .seg { flex: 1; justify-content: center; padding: 10px; font-size: 14px; }
.auth-mobile-brand { display: none; align-items: center; gap: 10px; color: var(--text); font-weight: 700; margin-bottom: 22px; }
.auth-mobile-brand img { border-radius: 11px; }
.input-icon.big > input { padding-top: 13px; padding-bottom: 13px; font-size: 15px; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
.pw-toggle:hover { color: var(--text); background: var(--surface-2); }
.pw-toggle svg.lucide { position: static; transform: none; }
.auth-links { display: flex; justify-content: center; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 6px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--accent); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.link-btn svg.lucide { width: 15px; height: 15px; }
.auth-msg { margin: 0; }
.auth-msg:empty { display: none; }
.auth-msg { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.auth-msg.error { background: var(--bad-soft); color: var(--bad); }
.auth-msg.info { background: var(--good-soft); color: var(--good); }
.auth-msg svg.lucide { margin-top: 2px; }
.auth-privacy { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 22px 0 0; font-size: 13px; color: var(--muted); }
.auth-privacy svg.lucide { width: 16px; height: 16px; color: var(--good); }

.btn.xl { padding: 15px 22px; font-size: 16px; border-radius: 14px; }
.btn.xl svg.lucide { width: 19px; height: 19px; }
.btn.block { width: 100%; }

/* Onboarding */
.onboarding { display: flex; flex-direction: column; }
.ob-top {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 18px; padding: 16px clamp(16px, 4vw, 40px);
  background: color-mix(in srgb, var(--bg) 75%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.ob-top img { border-radius: 10px; }
.ob-progress-wrap { flex: 1; max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: 6px; }
.ob-step-label { font-size: 12.5px; font-weight: 600; color: var(--muted); text-align: center; }
.ob-progress { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.ob-progress span { display: block; height: 100%; border-radius: inherit; background: var(--gradient); transition: width .6s var(--ease); box-shadow: 0 0 12px var(--brand-glow); }
.ob-body { flex: 1; display: grid; place-items: start center; padding: clamp(16px, 4vh, 48px) 16px 60px; }
.ob-body.ob-enter .ob-card { animation: rise .5s var(--ease); }
.ob-card {
  width: min(680px, 100%); display: flex; flex-direction: column; gap: 16px;
  padding: clamp(24px, 4vw, 44px); border-radius: 26px;
  background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.ob-card.center { align-items: center; text-align: center; }
.ob-card h1 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 750; letter-spacing: -.03em; }
.ob-lead { margin: 0; font-size: 16.5px; color: var(--text-2); max-width: 520px; }
.ob-emoji { font-size: 54px; line-height: 1; animation: pop .6s var(--ease) both; }
.ob-step-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 17px; background: var(--accent-soft); color: var(--accent); }
.ob-step-icon svg.lucide { width: 28px; height: 28px; }
.ob-hint { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: var(--muted); }
.ob-hint svg.lucide { width: 15px; height: 15px; }
.ob-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; width: 100%; }
.ob-actions.center { justify-content: center; }
.ob-label { display: block; font-size: 14px; font-weight: 650; color: var(--text); margin-top: 6px; }
.ob-form { width: 100%; }
.ob-field > span.ob-label { margin-bottom: 4px; }

.ob-how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; margin: 6px 0; }
.how { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 14px 18px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--border); }
.how-num { position: absolute; top: 10px; left: 12px; font-size: 12px; font-weight: 800; color: var(--accent); }
.how-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: var(--gradient); color: #fff; box-shadow: 0 10px 22px -10px var(--brand-glow); }
.how-icon svg.lucide { width: 24px; height: 24px; }
.how b { font-size: 15px; }
.how small { color: var(--muted); font-size: 13px; }

.drop {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; cursor: pointer;
  border: 2px dashed var(--border-strong); border-radius: 20px; background: var(--surface-2);
  transition: border-color .25s, background .25s, transform .25s var(--ease);
}
.drop input { display: none; }
.drop:hover, .drop.drag { border-color: var(--accent); background: var(--accent-soft); }
.drop.drag { transform: scale(1.02); }
.drop.big { padding: 40px 20px; }
.drop.big .drop-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--gradient); color: #fff; box-shadow: 0 14px 30px -12px var(--brand-glow); animation: bob 3s ease-in-out infinite; }
.drop.big .drop-icon svg.lucide { width: 30px; height: 30px; }
.drop.big b { font-size: 17px; }
.drop small { color: var(--muted); font-size: 13px; }
.drop.done { border-style: solid; border-color: color-mix(in srgb, var(--good) 45%, transparent); background: var(--good-soft); }
.drop.done .drop-icon { background: var(--good); animation: pop .5s var(--ease) both; box-shadow: none; }
.drop.loading { pointer-events: none; }
.drop .drop-icon .spinner { width: 26px; height: 26px; border-width: 3px; color: #fff; }
.drop.small { flex-direction: row; text-align: left; padding: 14px 16px; border-radius: 14px; }
.drop.small .drop-icon { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.drop.small.done .drop-icon { background: var(--good); color: #fff; }
.drop.small b { display: block; font-size: 14px; }
.drop.small .drop-icon .spinner { color: var(--accent); width: 18px; height: 18px; border-width: 2px; }
.ob-skills { display: flex; flex-direction: column; gap: 10px; }
.ob-more { border-radius: 14px; border: 1px solid var(--border); background: var(--surface); }
.ob-more summary, .more-filters summary, .ai-details summary {
  display: flex; align-items: center; gap: 8px; padding: 13px 16px; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 14px; color: var(--text-2);
}
.ob-more summary::-webkit-details-marker, .more-filters summary::-webkit-details-marker, .ai-details summary::-webkit-details-marker { display: none; }
.ob-more summary svg.lucide, .more-filters summary svg.lucide, .ai-details summary svg.lucide { width: 16px; height: 16px; color: var(--accent); }
.ob-more[open] summary, .more-filters[open] summary { color: var(--text); }
.drops-small { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 14px 14px; }

.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.choice {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px; text-align: left;
  font: inherit; color: var(--text); cursor: pointer; border-radius: 18px; background: var(--surface); border: 2px solid var(--border);
  transition: border-color .2s, background .2s, transform .2s var(--ease), box-shadow .2s;
}
.choice:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); transform: translateY(-2px); }
.choice.active { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 10px 24px -14px var(--brand-glow); }
.choice-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--surface-2); color: var(--accent); }
.choice.active .choice-icon { background: var(--gradient); color: #fff; }
.choice b { font-size: 15.5px; }
.choice small { color: var(--muted); font-size: 13px; }
.choice-check { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--border-strong); color: transparent; }
.choice-check svg.lucide { width: 14px; height: 14px; stroke-width: 3; }
.choice.active .choice-check { background: var(--accent); border-color: var(--accent); color: #fff; animation: pop .35s var(--ease); }

.pill-group { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-choice {
  display: inline-flex; align-items: center; gap: 7px; padding: 10px 18px; border-radius: 99px; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 14px; color: var(--text-2); background: var(--surface); border: 2px solid var(--border);
  transition: all .2s var(--ease);
}
.pill-choice svg.lucide { width: 16px; height: 16px; }
.pill-choice:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); color: var(--text); }
.pill-choice.active { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 8px 18px -10px var(--brand-glow); }

.ob-summary { list-style: none; margin: 4px 0; padding: 18px 22px; display: grid; gap: 10px; text-align: left; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--border); }
.ob-summary li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.ob-summary svg.lucide { color: var(--good); }
.ob-searching { padding-top: 56px; padding-bottom: 56px; }
.radar { position: relative; display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: var(--gradient); color: #fff; box-shadow: 0 18px 40px -14px var(--brand-glow); }
.radar svg.lucide { width: 38px; height: 38px; animation: bob 1.6s ease-in-out infinite; }
.radar::before, .radar::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); animation: ripple 2s var(--ease) infinite; }
.radar::after { animation-delay: 1s; }
@keyframes ripple { from { transform: scale(1); opacity: .7; } to { transform: scale(2.1); opacity: 0; } }

/* ============================================================
   Site : aides et actions claires
   ============================================================ */

.guide {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent-soft), color-mix(in srgb, var(--accent-soft) 35%, var(--surface)));
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}
.guide-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 11px; background: var(--gradient); color: #fff; }
.guide-text { flex: 1; }
.guide-text b { display: block; margin-bottom: 4px; }
.guide-text ol { margin: 0; padding-left: 20px; display: grid; gap: 3px; color: var(--text-2); font-size: 14px; }
.guide-close { border-color: transparent; }

.next-action {
  display: flex; align-items: center; gap: 18px; padding: 20px 22px; border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 92%, transparent); border: 2px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  box-shadow: 0 16px 40px -24px var(--brand-glow);
  animation: rise .5s var(--ease) .1s both;
}
.next-icon { display: grid; place-items: center; width: 54px; height: 54px; flex: none; border-radius: 16px; background: var(--gradient); color: #fff; box-shadow: 0 10px 24px -10px var(--brand-glow); }
.next-icon svg.lucide { width: 26px; height: 26px; }
.next-action .grow { flex: 1; min-width: 0; }
.next-kicker { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.next-action b { display: block; font-size: 18px; margin: 2px 0; }
.next-action p { margin: 0; color: var(--text-2); }

.todo-row { color: var(--text); }
.todo-row:hover { text-decoration: none; }
.todo-row .btn { flex: none; }

.match { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: none; width: 92px; }
.match-label { font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 99px; text-align: center; white-space: nowrap; }
.match-label.high { color: var(--good); background: var(--good-soft); }
.match-label.mid { color: var(--warn); background: var(--warn-soft); }
.match-label.low { color: var(--muted); background: var(--surface-2); }
.mini .match-label { align-self: flex-start; }
.offer-top > .status-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; }
.offer-top > .status-pill svg.lucide { width: 14px; height: 14px; }
.offer-actions .btn.primary { padding-left: 18px; padding-right: 18px; }

.info-banner { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--info-soft); color: var(--text-2); font-size: 14px; }
.info-banner svg.lucide { color: var(--info); margin-top: 1px; }

.more-filters { margin-top: 12px; border-top: 1px dashed var(--border); }
.more-filters summary { padding: 12px 0 0; }
.more-filters-body { display: grid; gap: 14px; padding-top: 14px; max-width: 520px; }
.search-row { grid-template-columns: minmax(200px, 2fr) minmax(110px, .8fr) auto; }

.elsewhere { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.elsewhere-text h3 { display: flex; align-items: center; gap: 9px; font-size: 15.5px; margin-bottom: 4px; }
.elsewhere-text h3 svg.lucide { color: var(--accent); }
.elsewhere-text p { margin: 0; }
.back-link { align-self: flex-start; }

/* Fenêtre « Je postule » */
.apply-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.apply-step { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); }
.apply-step-head { display: flex; gap: 12px; align-items: flex-start; }
.apply-step-head b { display: block; font-size: 15.5px; }
.apply-step-head small { color: var(--muted); font-size: 13.5px; }
.apply-step-head .step-num { width: 28px; height: 28px; font-size: 14px; margin-top: 1px; }
.apply-step .btn.good.xl { align-self: flex-start; }
.ai-details { border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.ai-details[open] { padding-bottom: 14px; }
.ai-details > *:not(summary) { margin: 0 14px; }
.ai-details .field + .field, .ai-details .field + .btn-row { margin-top: 10px; }
/* Lettre sur mesure */
.composer { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.composer .field > span { display: inline-flex; align-items: center; gap: 6px; }
.composer .field svg.lucide { width: 15px; height: 15px; color: var(--accent); }
.composer textarea { width: 100%; }
.letter-box { position: relative; }
.letter-box textarea { width: 100%; transition: opacity .25s; }
.letter-box.writing textarea { opacity: .25; }
.letter-box.writing::after {
  content: 'L’IA écrit ta lettre pour cette offre…'; position: absolute; inset: 0; display: grid; place-items: center;
  font-weight: 600; color: var(--accent); animation: pulse-text 1.4s ease-in-out infinite;
}
@keyframes pulse-text { 50% { opacity: .45; } }

/* Envoi en 1 clic */
.oneclick { display: flex; flex-direction: column; gap: 14px; }
.oneclick-hero { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.oneclick-hero b { display: block; font-size: 16px; }
.oneclick-hero p { margin: 2px 0 0; color: var(--text-2); font-size: 14px; }
.oneclick-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 13px; background: var(--accent); color: #fff; box-shadow: 0 12px 26px -12px var(--accent); }
.oneclick-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.oneclick-list li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; }
.oneclick-list li + li { border-top: 1px solid var(--border); }
.oneclick-list b { display: block; font-size: 14.5px; }
.oneclick-list small { color: var(--muted); font-size: 13px; }
.oneclick-list .romes, .oneclick-list .ai-details { margin-top: 8px; }
.oneclick-list textarea { width: 100%; }
.oneclick-dot { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 10px; background: var(--surface-2); color: var(--accent); }
.oneclick-dot svg.lucide { width: 16px; height: 16px; }
.oneclick-send { align-self: stretch; justify-content: center; }
.oneclick .tip { margin: -4px 0 0; text-align: center; justify-content: center; }
.oneclick-other { align-self: center; }
.success { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 26px 10px; }
.success-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; background: var(--good); color: #fff; animation: pop .6s var(--ease) both; box-shadow: 0 16px 34px -14px rgba(15, 157, 88, .7); }
.success-icon svg.lucide { width: 34px; height: 34px; }
.success h3 { font-size: 22px; }
.success p { margin: 0; max-width: 460px; }
.btn-row.center { justify-content: center; }

/* Abonnements */
.pricing { max-width: 1120px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.pricing-hero { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 6px 0 4px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 99px;
  font-size: 12.5px; font-weight: 700; color: var(--accent); background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}
.eyebrow svg.lucide { width: 14px; height: 14px; }
.pricing-hero h2 { font-size: clamp(28px, 4.2vw, 44px); line-height: 1.08; letter-spacing: -.035em; max-width: 720px; }
.grad { background: linear-gradient(120deg, var(--accent), #ff6a3d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pricing-hero p { margin: 0; max-width: 560px; color: var(--text-2); font-size: 16px; }
.pricing-hero .notice { text-align: left; }
.test-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 99px; font-size: 12.5px; font-weight: 600; color: var(--warn); background: var(--warn-soft); }
.test-pill svg.lucide { width: 15px; height: 15px; flex: none; }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; padding-top: 10px; }
.plan-card {
  position: relative; display: flex; flex-direction: column; padding: 26px 24px 26px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.plan-card.featured {
  border: 1.5px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(150deg, var(--accent), #ff7a45 45%, color-mix(in srgb, var(--accent) 25%, var(--border)) 100%) border-box;
  box-shadow: 0 34px 70px -34px var(--brand-glow), var(--shadow-md);
}
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.plan-icon { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 14px; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }
.plan-icon svg.lucide { width: 22px; height: 22px; }
.plan-free .plan-icon { color: var(--good); background: color-mix(in srgb, var(--good) 12%, transparent); border-color: color-mix(in srgb, var(--good) 25%, transparent); }
.plan-quarter .plan-icon, .plan-manage .plan-icon { background: var(--gradient); color: #fff; border-color: transparent; box-shadow: 0 10px 22px -10px var(--brand-glow); }
.plan-monthly .plan-icon { background: var(--accent-soft); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 22%, transparent); }
.plan-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; color: var(--good); background: color-mix(in srgb, var(--good) 14%, transparent); }
.plan-badge.hot { color: #fff; background: var(--gradient); box-shadow: 0 8px 18px -10px var(--brand-glow); }
.plan-badge svg.lucide { width: 13px; height: 13px; }
.plan-card h3 { font-size: 22px; letter-spacing: -.02em; }
.plan-pitch { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.plan-price { display: flex; align-items: baseline; margin: 20px 0 4px; }
.plan-price b { font-size: 50px; line-height: 1; letter-spacing: -.045em; }
.plan-cur { font-size: 26px; font-weight: 700; margin: 0 8px 0 2px; }
.plan-per { color: var(--muted); font-size: 15px; }
.plan-sub { color: var(--muted); font-size: 12.5px; margin-bottom: 20px; }
.plan-intro { margin: 24px 0 14px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.plan-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; align-content: start; }
.plan-features li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.4; color: var(--text); }
.ck { display: grid; place-items: center; width: 20px; height: 20px; flex: none; margin-top: 1px; border-radius: 50%; background: color-mix(in srgb, var(--good) 15%, transparent); color: var(--good); }
.ck svg.lucide { width: 12px; height: 12px; stroke-width: 3; }
.plan-quarter .ck { background: var(--accent-soft); color: var(--accent); }
.soon-tag { display: inline-block; margin-left: 4px; padding: 2px 7px; border-radius: 99px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; vertical-align: 1px; color: var(--warn); background: var(--warn-soft); }
.btn.dark { background: var(--text); color: var(--surface); border-color: transparent; }
.btn.dark:hover { color: var(--surface); opacity: .88; }
.btn.block { width: 100%; justify-content: center; }
.btn:disabled { cursor: default; opacity: .7; transform: none; }

.plan-manage { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.plan-manage b { display: block; }
.plan-manage small { color: var(--muted); }

.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.trust > div { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); }
.trust-icon { grid-row: span 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--surface); color: var(--accent); border: 1px solid var(--border); }
.trust-icon svg.lucide { width: 18px; height: 18px; }
.trust b { font-size: 14px; }
.trust small { color: var(--muted); font-size: 12.5px; }

.compare h3, .faq h3 { display: flex; align-items: center; gap: 9px; font-size: 18px; margin-bottom: 10px; }
.compare h3 svg.lucide, .faq h3 svg.lucide { width: 19px; height: 19px; color: var(--accent); }
.compare-scroll { overflow-x: auto; }
.compare table { width: 100%; min-width: 560px; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.compare th, .compare td { padding: 13px 12px; text-align: center; border-bottom: 1px solid var(--border); }
.compare th:first-child, .compare td:first-child { text-align: left; color: var(--text-2); padding-left: 2px; }
.compare thead th { font-size: 15px; vertical-align: bottom; }
.compare thead small { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; color: var(--muted); }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare .hl { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.compare thead .hl { border-radius: 12px 12px 0 0; color: var(--accent); }
.compare tbody tr:last-child .hl { border-radius: 0 0 12px 12px; }
.compare .yes { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; vertical-align: middle; color: var(--good); background: color-mix(in srgb, var(--good) 15%, transparent); }
.compare .yes svg.lucide { width: 13px; height: 13px; stroke-width: 3; }
.compare .no { color: var(--border-strong); }
.compare .no svg.lucide { width: 18px; height: 18px; vertical-align: middle; }
.compare td .soon-tag { margin-left: 6px; }

.faq details + details { border-top: 1px solid var(--border); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 2px; cursor: pointer; list-style: none; font-size: 15px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg.lucide { width: 18px; height: 18px; flex: none; color: var(--muted); transition: transform .25s var(--ease); }
.faq details[open] summary svg.lucide { transform: rotate(180deg); }
.faq details p { margin: -4px 0 16px; max-width: 760px; color: var(--text-2); font-size: 14.5px; }

/* Fonctions réservées à une formule payante */
.lock-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.lock-icon svg.lucide { width: 19px; height: 19px; }
.lock-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; background: var(--surface-2); border: 1px dashed color-mix(in srgb, var(--accent) 45%, var(--border)); }
.lock-card b { display: block; font-size: 15px; }
.lock-card p { margin: 2px 0 0; color: var(--text-2); font-size: 13.5px; }
.locked-line { align-self: flex-start; color: var(--muted); }
.plan-note { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 12px 16px; border-radius: 14px; font-size: 14px; background: var(--accent-soft); color: var(--text-2); }
.plan-note svg.lucide { color: var(--accent); flex: none; }
.plan-note.full { border: 1px solid var(--accent); }
.plan-chip { margin-left: auto; padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; color: var(--accent); background: var(--accent-soft); }
.plan-chip:empty { display: none; }
.upgrade { display: flex; flex-direction: column; gap: 14px; }
.upgrade > p { margin: 0; font-size: 15px; }
.upgrade .plan-intro { margin: 0; padding: 0; border: 0; }
#accountPlan .btn { margin-left: auto; }
/* La carte mise en avant est surélevée par une marge : l'animation d'apparition garde la main sur transform. */
@media (min-width: 901px) {
  .plan-card.featured { margin-top: -12px; }
}
@media (max-width: 900px) {
  .plans, .trust { grid-template-columns: 1fr; }
  .nav-item.desktop-only { display: none; }
  .lock-card, .plan-manage { flex-direction: column; align-items: flex-start; }
}

/* Mes candidatures : prochaine étape et statut */
.next-step { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; background: var(--st-soft, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--st, var(--border)) 30%, transparent); }
.next-step-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--st, var(--accent)); color: #fff; }
.next-step b { display: block; font-size: 15.5px; }
.next-step p { margin: 2px 0 0; color: var(--text-2); font-size: 14px; }
.status-steps { display: flex; flex-wrap: wrap; gap: 8px; }
.status-step {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 99px; cursor: pointer;
  font: inherit; font-size: 13.5px; font-weight: 600; color: var(--text-2); background: var(--surface); border: 2px solid var(--border);
  transition: all .2s var(--ease);
}
.status-step svg.lucide { width: 15px; height: 15px; stroke-width: 3; }
.status-step:hover { border-color: var(--st); color: var(--st); }
.status-step.active { background: var(--st); border-color: var(--st); color: #fff; box-shadow: 0 8px 18px -10px var(--st); }
.detail-section > small.muted { display: inline-flex; align-items: center; gap: 6px; }
.detail-section > small.muted svg.lucide { width: 14px; height: 14px; }
.detail-section > .btn.good { align-self: flex-start; }

/* Barre latérale : carte utilisateur */
.user-card { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); transition: border-color .2s, background .2s; }
.user-card:hover { text-decoration: none; border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.user-card .grow { flex: 1; min-width: 0; }
.user-card b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-card small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-card > svg.lucide { color: var(--muted); width: 16px; height: 16px; }

/* Mon compte */
.account-row { display: flex; align-items: center; gap: 14px; }
.account-row b { display: block; font-size: 16px; }
.account-row small { color: var(--muted); }
.danger-zone { border-color: color-mix(in srgb, var(--bad) 30%, var(--border)); }
.danger-zone .card-head h3 svg.lucide { color: var(--bad); }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.btn.danger:hover { background: var(--bad); color: #fff; border-color: var(--bad); }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-mobile-brand { display: inline-flex; }
  .ob-how { grid-template-columns: 1fr; }
  .drops-small { grid-template-columns: 1fr; }
  .ob-top .btn span, .ob-top .btn { font-size: 0; gap: 0; }
  .ob-top .btn svg.lucide { width: 18px; height: 18px; }
  .next-action { flex-direction: column; align-items: flex-start; }
  .next-action .btn { width: 100%; }
  .match { width: auto; }
  .offer-top { flex-wrap: wrap; }
  .offer-top > .status-pill { order: -1; width: 100%; justify-content: center; }
  .search-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .ob-actions { flex-direction: column-reverse; }
  .ob-actions .btn { width: 100%; }
  .offer-actions .btn { flex: 1 1 auto; }
  .guide-text ol { font-size: 13.5px; }
}

/* ============================================================
   Animations
   ============================================================ */

.reveal { animation: rise .55s var(--ease) both; animation-delay: calc(min(var(--i, 0), 12) * 55ms); }

@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes grow-x { from { transform: scaleX(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { from { background-position: 100% 50%; } to { background-position: 0 50%; } }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(30px, -20px) scale(1.08); } 66% { transform: translate(-20px, 15px) scale(.95); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 3px var(--warn-soft); } 50% { box-shadow: 0 0 0 6px transparent; } }
@keyframes pulse-text { 50% { opacity: .55; } }
@keyframes ring-draw { from { stroke-dashoffset: var(--c); } }
@keyframes count { from { --n: 0; } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(30px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1100px) {
  .docs { grid-template-columns: 1fr; }
  .search-row { grid-template-columns: 1fr 1fr; }
  .search-row .btn { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; z-index: 50; inset: auto 0 0 0; top: auto; height: auto;
    flex-direction: row; padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    border-right: 0; border-top: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  }
  .brand, .sidebar-foot, .nav-sep { display: none; }
  .nav { flex-direction: row; width: 100%; justify-content: space-around; }
  .nav-item { flex-direction: column; gap: 3px; padding: 6px 4px; font-size: 0; flex: 1; border-radius: 10px; }
  .nav-item::after { content: attr(data-short); font-size: 10.5px; font-weight: 600; }
  .nav-item .label { display: none; }
  .nav-item.active::before { left: 30%; right: 30%; top: 0; bottom: auto; width: auto; height: 3px; border-radius: 0 0 3px 3px; }
  .nav-badge { position: absolute; top: 2px; left: calc(50% + 6px); margin: 0; font-size: 10px; min-width: 18px; padding: 0 5px; }
  .main { padding-bottom: 76px; }
  .topbar { padding: 12px 16px; gap: 12px; }
  .topbar h1 { font-size: 18px; }
  .topbar p { display: none; }
  .mobile-logo { display: block; }
  .mobile-logo .logo-img { width: 34px; height: 34px; border-radius: 10px; }
  .mobile-theme { display: inline-flex; }
  .topbar-actions .btn span.hide-sm { display: none; }
  .content { padding: 8px 16px 40px; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero { flex-direction: column; align-items: stretch; padding: 26px 22px; }
  .hero-goal { flex-direction: row; justify-content: flex-start; }
  .hero-goal .ring.lg { --size: 84px; }
  .hero-goal .ring.lg .ring-val { font-size: 21px; }
  .hero-goal .goal-label { text-align: left; }
  .toasts { left: 16px; right: 16px; bottom: 86px; align-items: stretch; }
  .toast { max-width: none; }
}

@media (max-width: 560px) {
  .search-row { grid-template-columns: 1fr; }
  .grid-2.tight { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 14px; }
  .kpi-value { font-size: 24px; }
  .offer { padding: 16px; }
  .offer-top { gap: 12px; }
  .ring { --size: 48px; }
  .ring-val { font-size: 14px; }
  .filters, .filters .input-icon { width: 100%; }
  .segmented { width: 100%; }
  .seg { flex: 1; justify-content: center; padding: 8px 6px; font-size: 12px; }
  .offer-actions .spacer { display: none; }
  .inline-form { flex-direction: column; }
}
