*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: #f7fbff; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

/* (M10) Lien d'évitement clavier/lecteur d'écran — visible au focus seulement. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 10px 16px;
  background: #0f172a;
  color: #fff;
  border-radius: 0 0 8px 0;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

:root {
  --bg: #f7fbff;
  --bg2: #ffffff;
  --bg3: #eff8ff;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --border: rgba(14, 34, 54, 0.12);
  --border-strong: rgba(14, 34, 54, 0.22);
  --text: #102033;
  --text-muted: #51647b;
  --text-faint: #8796a8;
  --cyan: #29d8e8;
  --cyan-soft: #d7fbff;
  --pink: #ff7ac8;
  --pink-soft: #ffe0f2;
  --yellow: #ffe66d;
  --green: #21c78f;
  --orange: #ff9f43;
  --red: #ff5f7e;
  --accent: #00bfd6;
  --accent-hover: #009fb3;
  --accent-light: rgba(41, 216, 232, 0.16);
  --accent-2: #ff7ac8;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 18px 50px rgba(41, 216, 232, 0.16), 0 10px 24px rgba(16, 32, 51, 0.08);
  --shadow-soft: 0 10px 30px rgba(16, 32, 51, 0.08);
  --sans: "Inter", "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Geist Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --gutter: clamp(14px, 2.2vw, 40px);
  --max: 1680px;
}

body {
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(41, 216, 232, 0.18) 0 20%, transparent 20% 100%),
    linear-gradient(315deg, rgba(255, 122, 200, 0.18) 0 18%, transparent 18% 100%),
    radial-gradient(circle at 12% 18%, rgba(255, 230, 109, 0.55), transparent 24%),
    radial-gradient(circle at 78% 8%, rgba(41, 216, 232, 0.28), transparent 26%),
    radial-gradient(circle at 80% 78%, rgba(255, 122, 200, 0.22), transparent 28%),
    var(--bg);
  background-attachment: fixed;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.42;
  z-index: 0;
  background-image:
    linear-gradient(rgba(16, 32, 51, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 32, 51, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, black, transparent 74%);
}

body > * { position: relative; z-index: 1; }
::selection { background: var(--pink); color: #ffffff; }
:focus-visible { outline: 3px solid rgba(255, 122, 200, 0.55); outline-offset: 3px; }
button, select, input, .btn-search, .btn-apply, .header-link, .nav-link { min-height: 0; }
[hidden] { display: none !important; }

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(16, 32, 51, 0.08);
  background: rgba(247, 251, 255, 0.82);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03), 0 12px 24px -22px rgba(15, 23, 42, 0.18);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px var(--gutter);
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-inner > .site-nav {
  margin-left: auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  grid-column: 1;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  grid-column: 1;
  color: inherit;
  text-decoration: none;
}

.logo-link .logo {
  grid-column: auto;
}

.logo-img {
  height: clamp(36px, 4.4vw, 48px);
  width: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
@media (max-width: 768px) {
  .logo-img { height: 34px; }
}

.header-actions {
  grid-column: 4;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-link,
.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.74);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.header-link:hover,
.back-link:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 122, 200, 0.55);
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(255, 122, 200, 0.16);
}

.header-link-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 16px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 999px;
  color: var(--text);
  background: transparent;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.header-link-ghost:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 23, 42, 0.38);
  background: rgba(15, 23, 42, 0.04);
}

.header-link-ghost.active {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.28);
}

.overview-section {
  padding: clamp(24px, 3.6vw, 48px) var(--gutter) 16px;
  overflow: hidden;
}

.overview-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(420px, 0.9fr) minmax(320px, 0.48fr);
  gap: clamp(18px, 3vw, 42px);
  align-items: stretch;
}

.overview-copy {
  max-width: 780px;
  align-self: end;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 12px;
  border: 1px solid rgba(41, 216, 232, 0.38);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: #077e8e;
  font-size: 12px;
  font-weight: 800;
}

.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(33, 199, 143, 0.14);
}

.overview-copy h1 {
  font-family: var(--display);
  font-size: clamp(34px, 4.6vw, 62px);
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--text);
  max-width: 16ch;
}

.overview-subtitle {
  margin-top: 14px;
  max-width: 58ch;
  color: var(--text-muted);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.55;
  font-weight: 650;
}

.overview-copy h1 em,
.overview-copy h1 i {
  font-style: normal;
  color: transparent;
  background: linear-gradient(95deg, #00b8d0, #ff66be 60%, #ffb300);
  -webkit-background-clip: text;
  background-clip: text;
}

.overview-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-content: end;
}

.metric {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-soft);
}

.metric-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.metric-value {
  display: block;
  font-family: var(--display);
  font-size: clamp(27px, 3.5vw, 42px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--text);
  font-feature-settings: "tnum";
}

.search-section {
  padding: 12px var(--gutter) 14px;
  position: relative;
  z-index: 10;
}

.search-section.has-open-dropdown {
  z-index: 90;
}

.page-home .overview-section {
  padding-bottom: 18px;
}

.page-home .overview-copy h1 {
  max-width: 18ch;
}

.page-home .home-search-section {
  padding-top: 0;
}

.page-home .filters-row,
.page-home .alert-search-actions,
.page-home .stats-section,
.page-home .main-content {
  display: none;
}

.search-box {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px;
  border: 1.5px solid rgba(15, 23, 42, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 46px rgba(16, 32, 51, 0.11);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  overflow: visible;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(220px, 0.8fr) minmax(140px, auto);
  gap: 10px;
  align-items: stretch;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
}

.search-icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
}

.search-input-wrap:nth-child(2) .search-icon {
  border-radius: 12px 12px 12px 3px;
  border-color: var(--pink);
  transform: rotate(-45deg);
}

.search-input-wrap:nth-child(2) .search-icon::after {
  inset: 4px auto auto 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink);
  transform: rotate(45deg);
}

.search-input {
  width: 100%;
  min-height: 56px;
  padding: 0 16px 0 46px;
  border: 1.5px solid rgba(15, 23, 42, 0.16);
  border-radius: 10px;
  background: #ffffff;
  color: var(--text);
  outline: none;
  font-size: 16px;
  font-weight: 650;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.03);
}

.search-input:focus {
  border-color: rgba(41, 216, 232, 0.7);
  box-shadow: 0 0 0 4px rgba(41, 216, 232, 0.14);
}

.search-input::placeholder {
  color: var(--text-faint);
  font-weight: 520;
}

.home-value-section,
.home-steps-section {
  padding: 34px var(--gutter);
}

.home-value-grid,
.home-steps-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.home-value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.home-value-card {
  padding: 22px;
  border: 1px solid rgba(16, 32, 51, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-soft);
}

.home-value-kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.home-value-card h2,
.home-steps-inner h2 {
  font-family: var(--display);
  color: var(--text);
  letter-spacing: -0.025em;
}

.home-value-card h2 {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.08;
}

.home-value-card p,
.home-steps p {
  color: var(--text-muted);
  line-height: 1.55;
  font-weight: 600;
}

.home-steps-section {
  padding-top: 18px;
  padding-bottom: 64px;
}

.home-steps-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
}

.home-steps-inner h2 {
  max-width: 12ch;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1;
}

.home-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-steps li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid rgba(16, 32, 51, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
}

.home-steps span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-weight: 850;
}

.page-home {
  background:
    linear-gradient(180deg, #f7fbff 0%, #eef7fb 48%, #ffffff 100%);
}

.page-home::before {
  opacity: 0.22;
  background-size: 44px 44px;
}

.home-hero-v2 {
  padding: clamp(30px, 4vw, 54px) var(--gutter) 24px;
  min-height: calc(100vh - 68px);
  display: grid;
  align-items: center;
}

.home-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(280px, 0.42fr);
  gap: clamp(18px, 3vw, 40px);
  align-items: center;
}

.home-hero-copy {
  min-width: 0;
}

.home-hero-copy h1 {
  max-width: 12ch;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(52px, 7.4vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.home-hero-subtitle {
  max-width: 58ch;
  margin-top: 16px;
  color: var(--text-muted);
  font-size: clamp(16px, 1.55vw, 20px);
  line-height: 1.55;
  font-weight: 650;
}

.home-search-section {
  margin-top: 32px;
  padding: 0;
}

.home-search-box {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 16px;
  border-color: rgba(15, 23, 42, 0.14);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(16, 32, 51, 0.14);
}

.home-search-box .search-row {
  grid-template-columns: minmax(320px, 1.38fr) minmax(240px, 0.72fr) minmax(170px, auto);
}

.home-search-box .search-input {
  min-height: 64px;
  font-size: 18px;
}

.home-search-box .btn-search {
  min-height: 64px;
  padding-left: 28px;
  padding-right: 28px;
}

.home-kpi-panel {
  min-width: 0;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  background: transparent;
  color: var(--text);
  box-shadow: none;
}

.home-kpi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.home-kpi-grid div {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.home-kpi-grid strong {
  display: block;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1;
  letter-spacing: -0.035em;
}

.home-kpi-grid span {
  display: block;
  margin-top: 7px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.home-hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 840px;
  margin-top: 20px;
}

.home-hero-proof div {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.home-hero-proof strong {
  display: block;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1;
  letter-spacing: -0.035em;
}

.home-hero-proof span {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
}

.home-live-panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.9)),
    #ffffff;
  box-shadow: 0 30px 90px rgba(16, 32, 51, 0.18);
}

.home-live-top,
.home-live-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.home-live-kicker {
  display: block;
  margin-bottom: 3px;
  color: #047481;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-live-top strong {
  color: var(--text);
  font-size: 18px;
}

.home-live-status,
.home-fresh-pill,
.home-gift-pill,
.home-seen-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
}

.home-live-status {
  padding: 5px 9px;
  background: #ecfdf5;
  color: #047857;
}

.home-live-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin: 18px 0;
  padding: 12px;
  border-radius: 10px;
  background: #0f172a;
  color: #fff;
}

.home-live-search span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.home-live-list {
  display: grid;
  gap: 10px;
}

.home-live-list article {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 13px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  background: #ffffff;
}

.home-live-list strong {
  display: block;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-live-list p {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-company-dot {
  width: 12px;
  height: 38px;
  border-radius: 999px;
}

.dot-cyan { background: var(--cyan); }
.dot-pink { background: var(--pink); }
.dot-yellow { background: var(--yellow); }

.home-fresh-pill {
  padding: 5px 8px;
  background: #e0f2fe;
  color: #0369a1;
}

.home-gift-pill {
  padding: 5px 8px;
  background: #fff7ed;
  color: #c2410c;
}

.home-seen-pill {
  padding: 5px 8px;
  background: #f1f5f9;
  color: #475569;
}

.home-live-footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 750;
}

.home-live-footer a {
  color: #0f172a;
  font-weight: 850;
  text-decoration: none;
}

.home-source-strip {
  padding: 18px var(--gutter) 34px;
}

.home-source-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.home-source-inner > span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.home-source-inner div {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.home-source-inner strong {
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 12px;
  font-weight: 850;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

.home-showcase-section {
  padding: 46px var(--gutter);
  background: rgba(255, 255, 255, 0.54);
}

.home-section-head,
.home-showcase-grid,
.home-premium-band {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.home-section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 20px;
}

.home-section-head h2,
.home-premium-band h2 {
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(32px, 4.6vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.home-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.home-showcase-card {
  min-height: 250px;
  padding: 22px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.home-showcase-number {
  display: block;
  margin-bottom: 46px;
  color: #94a3b8;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 850;
}

.home-showcase-card h3 {
  margin-bottom: 10px;
  color: var(--text);
  font-family: var(--display);
  font-size: 28px;
  line-height: 1;
}

.home-showcase-card p,
.home-premium-band p {
  color: var(--text-muted);
  line-height: 1.55;
  font-weight: 620;
}

.home-premium-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
  margin-bottom: 20px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 14px;
  background: #0f172a;
  color: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
}

.home-premium-band h2 {
  max-width: 15ch;
  color: #fff;
}

.home-premium-band p {
  max-width: 70ch;
  margin-top: 12px;
  color: #cbd5e1;
}

.home-premium-band .btn-primary {
  flex: 0 0 auto;
  background: #ffffff;
  color: #0f172a;
}

.home-account-preview-section {
  padding: 48px var(--gutter);
}

.home-account-preview {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 34px 90px rgba(16, 32, 51, 0.16);
}

.home-preview-sidebar {
  min-height: 480px;
  padding: 22px;
  background: #0f172a;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.home-preview-sidebar strong {
  margin-bottom: 16px;
  font-size: 20px;
}

.home-preview-sidebar span {
  padding: 10px 12px;
  border-radius: 9px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 800;
}

.home-preview-sidebar span.is-active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.home-preview-main {
  min-width: 0;
  padding: 22px;
  background: linear-gradient(180deg, #f8fafc, #ffffff);
}

.home-preview-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.home-preview-topbar span {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.home-preview-topbar strong {
  display: block;
  margin-top: 3px;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
}

.home-preview-topbar a {
  flex: 0 0 auto;
  padding: 9px 12px;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 850;
}

.home-preview-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.home-preview-kpis div,
.home-preview-content section {
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 10px;
  background: #fff;
}

.home-preview-kpis strong {
  display: block;
  color: var(--text);
  font-family: var(--display);
  font-size: 34px;
  line-height: 1;
}

.home-preview-kpis span {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
}

.home-preview-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.home-preview-content h3 {
  margin: 7px 0 9px;
  color: var(--text);
  font-family: var(--display);
  font-size: 28px;
  line-height: 1;
}

.home-preview-content p {
  color: var(--text-muted);
  font-weight: 620;
  line-height: 1.55;
}

.home-preview-pipeline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.home-preview-pipeline span {
  padding: 7px 9px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 850;
}

.btn-search,
.btn-apply,
.btn-apply-large {
  color: #082336;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  border: 0;
  box-shadow: 0 12px 26px rgba(41, 216, 232, 0.24);
}

.btn-search {
  min-height: 56px;
  padding: 0 24px;
  border-radius: var(--radius);
  color: #082336;
  font-weight: 900;
  white-space: nowrap;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.btn-search:hover,
.btn-apply:hover,
.btn-apply-large:hover {
  filter: saturate(1.06) brightness(1.02);
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(255, 122, 200, 0.22), 0 10px 24px rgba(41, 216, 232, 0.18);
}

.btn-search:active,
.btn-apply:active,
.btn-apply-large:active {
  transform: translateY(0) scale(0.99);
}

.source-pill,
.filter-chip,
.tag,
.meta-pill,
.source-badge-detail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.tag:nth-child(odd) { background: var(--cyan-soft); border-color: rgba(41, 216, 232, 0.28); }
.tag:nth-child(even) { background: var(--pink-soft); border-color: rgba(255, 122, 200, 0.28); }
.source-pill:hover,
.filter-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(16, 32, 51, 0.2);
}

.filters-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  align-items: start;
  gap: 10px;
  margin-top: 14px;
  overflow: visible;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  overflow: visible;
}

.filter-group label,
.filter-label {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.filter-group select {
  width: 100%;
  min-height: 42px;
  padding: 0 34px 0 12px;
  border: 1.5px solid rgba(15, 23, 42, 0.14);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(45deg, transparent 50%, var(--text-muted) 50%) calc(100% - 16px) 18px / 6px 6px no-repeat,
    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%) calc(100% - 11px) 18px / 6px 6px no-repeat,
    #ffffff;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  outline: none;
  appearance: none;
}

.filter-group select:focus {
  border-color: rgba(255, 122, 200, 0.62);
  box-shadow: 0 0 0 4px rgba(255, 122, 200, 0.12);
}

.source-select-native {
  display: none;
}

.source-dropdown {
  position: relative;
  z-index: 1;
  width: 100%;
}

.source-dropdown.open {
  z-index: 120;
}

.source-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1.5px solid rgba(15, 23, 42, 0.14);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text);
  font-weight: 750;
  text-align: left;
  outline: none;
}

.source-dropdown-toggle span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-dropdown-toggle:hover,
.source-dropdown.open .source-dropdown-toggle {
  border-color: rgba(15, 23, 42, 0.24);
  background: #f8fafc;
}

.source-dropdown-toggle:focus-visible {
  border-color: rgba(255, 122, 200, 0.62);
  box-shadow: 0 0 0 4px rgba(255, 122, 200, 0.12);
}

.source-dropdown-caret {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.15s ease;
}

.source-dropdown.open .source-dropdown-caret {
  transform: rotate(225deg) translateY(-1px);
}

.source-dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  bottom: auto;
  left: 0;
  z-index: 121;
  width: max(100%, 260px);
  max-width: min(360px, calc(100vw - 32px));
  max-height: 320px;
  overflow: auto;
  padding: 6px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.18);
}

.source-dropdown-option {
  display: block;
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.source-dropdown-option:hover,
.source-dropdown-option[aria-selected="true"] {
  background: #f8fafc;
}

.location-suggest-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 121;
  max-height: 280px;
  overflow: auto;
  padding: 6px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.18);
}

.location-suggest-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.location-suggest-option:hover,
.location-suggest-option.is-active {
  background: #f8fafc;
}

.location-suggest-type {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted, #8796a8);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.contract-dropdown {
  position: relative;
  z-index: 1;
  width: 100%;
}

.contract-dropdown.open {
  z-index: 100;
}

.contract-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1.5px solid rgba(15, 23, 42, 0.14);
  border-radius: 10px;
  background: #ffffff;
  color: var(--text);
  font-weight: 750;
  text-align: left;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.contract-dropdown-toggle span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contract-dropdown-toggle:hover,
.contract-dropdown.open .contract-dropdown-toggle {
  border-color: rgba(15, 23, 42, 0.24);
  background: #f8fafc;
}

.contract-dropdown-toggle:focus-visible {
  border-color: rgba(255, 122, 200, 0.62);
  box-shadow: 0 0 0 4px rgba(255, 122, 200, 0.12);
}

.contract-dropdown-toggle.has-selection {
  border-color: rgba(15, 23, 42, 0.26);
}

.contract-dropdown-caret {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.15s ease;
}

.contract-dropdown.open .contract-dropdown-caret {
  transform: rotate(225deg) translateY(-1px);
}

.contract-dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 101;
  width: max(100%, 240px);
  max-width: min(300px, calc(100vw - 32px));
  padding: 6px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.18);
}

.contract-dropdown-panel label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 7px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}

.contract-dropdown-panel label:hover {
  background: #f8fafc;
}

.contract-dropdown-panel input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #0f172a;
}

.contract-dropdown-panel input:checked + span {
  font-weight: 850;
}

.stats-section {
  padding: 0 var(--gutter) 8px;
}

.stats-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--text-muted);
}

.stat-item {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #086b79;
  background: rgba(215, 251, 255, 0.88);
  font-size: 12px;
  font-weight: 900;
}

.sources-pills {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.source-pill.active {
  border-color: rgba(41, 216, 232, 0.26);
  background: rgba(255, 255, 255, 0.78);
}

.main-content {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--gutter) 70px;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

#resultsCount {
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.08;
  font-weight: 850;
  letter-spacing: -0.045em;
}

#resultsCount:empty::before {
  content: "Rechercher des offres";
  color: var(--text);
}

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

.filter-chip {
  border-color: rgba(255, 122, 200, 0.28);
  background: var(--pink-soft);
}

.chip-remove {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: #9c286d;
  line-height: 1;
}

.chip-remove:hover { background: rgba(255, 122, 200, 0.22); }

mark.highlight {
  background: linear-gradient(transparent 48%, rgba(255, 230, 109, 0.72) 48%);
  color: inherit;
  padding: 0 2px;
  border-radius: 3px;
}

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.job-card {
  position: relative;
  min-height: 196px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 26px rgba(16, 32, 51, 0.06);
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.job-card:focus-visible {
  outline: 3px solid rgba(255, 122, 200, 0.55);
  outline-offset: 3px;
}

.job-card:hover {
  transform: translateY(-4px);
  border-color: rgba(41, 216, 232, 0.45);
  box-shadow: var(--shadow);
  background: #ffffff;
}

/* ===== Offre déjà vue ===== */
.job-card.is-seen {
  border-color: rgba(100, 116, 139, 0.22);
  box-shadow: none;
}

.job-card.is-seen::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(248, 250, 252, 0.44);
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.job-card.is-seen::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(100, 116, 139, 0.24);
  border-radius: 999px;
  background:
    linear-gradient(135deg, transparent 50%, rgba(100, 116, 139, 0.08) 50%),
    rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.job-card.is-seen .job-card-header::after {
  content: "";
  position: absolute;
  top: 21px;
  right: 20px;
  z-index: 3;
  width: 9px;
  height: 5px;
  border-left: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: rotate(-45deg);
  pointer-events: none;
}

.job-card.is-seen:hover::before,
.job-card.is-seen:hover::after,
.job-card.is-seen:hover .job-card-header::after {
  opacity: 0;
}

.job-card-header {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  min-width: 0;
}

.company-logo-wrap {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--cyan-soft), var(--pink-soft));
}

.company-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  background: #ffffff;
  image-rendering: -webkit-optimize-contrast;
}

.company-logo-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #0d6b7b;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 900;
}

.job-card-info { flex: 1; min-width: 0; }

.job-title {
  margin-bottom: 6px;
  color: var(--text);
  font-family: var(--display);
  font-size: 19px;
  line-height: 1.14;
  font-weight: 850;
  letter-spacing: -0.035em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.job-company {
  margin-bottom: 8px;
  color: #008da0;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.job-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}

.job-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-badge-source {
  color: #155e75;
  background: rgba(41, 216, 232, 0.12);
  border-color: rgba(41, 216, 232, 0.26);
}

.job-badge-new {
  color: #047857;
  background: #ecfdf5;
  border-color: #bbf7d0;
}

.job-badge-gift {
  color: #92400e;
  background: #fffbeb;
  border-color: #fde68a;
}

.job-detail-gift {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 12px;
  font-weight: 850;
}

.job-meta {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.job-location,
.job-contract {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--text-muted);
  background: var(--bg3);
  font-size: 12px;
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-contract {
  color: #9c286d;
  background: var(--pink-soft);
}

.job-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.job-tags[hidden] { display: none; }

.tag {
  min-height: 26px;
  padding: 4px 9px;
  font-size: 11px;
}

.job-card-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.job-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  justify-content: space-between;
  min-width: 0;
}

.job-date {
  min-width: 0;
  flex: 1 1 auto;
  color: var(--text-faint);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-apply {
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #082336;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.loading-state,
.empty-state {
  grid-column: 1 / -1;
  min-height: 280px;
  padding: 56px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
}

.spinner,
.spinner-sm {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(41, 216, 232, 0.2);
  border-top-color: var(--pink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner-sm {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-width: 2px;
  vertical-align: middle;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-state p {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 800;
}

.empty-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--cyan-soft), var(--pink-soft));
  color: transparent;
  font-size: 0 !important;
}

.empty-icon::before {
  content: "?";
  color: #0d6b7b;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 900;
}

.empty-state h3 {
  font-family: var(--display);
  font-size: 25px;
  line-height: 1.1;
  font-weight: 850;
  letter-spacing: -0.035em;
  color: var(--text);
}

.empty-state p { max-width: 44ch; }
.empty-suggestions {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 720px;
}

.empty-suggestion-btn {
  min-height: 32px;
  padding: 7px 12px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.empty-suggestion-btn:hover {
  background: #dbeafe;
}
.empty-state code {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--bg3);
  font-family: var(--mono);
  font-size: 12px;
}

.quota-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 12px;
}
.quota-banner--warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}
.quota-banner--exhausted {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}
.quota-banner-link {
  white-space: nowrap;
  font-weight: 600;
  color: inherit;
  text-decoration: underline;
}
.quota-exceeded-state {
  padding: 48px 24px;
  text-align: center;
}
.quota-exceeded-state h3 { margin-bottom: 12px; }
.quota-exceeded-state p { margin-bottom: 8px; color: var(--muted); }
.quota-exceeded-state .btn-primary { margin-top: 20px; display: inline-block; }

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.page-btn,
.nav-btn {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.page-btn:hover:not(:disabled),
.nav-btn:hover:not(.disabled) {
  transform: translateY(-1px);
  border-color: rgba(41, 216, 232, 0.5);
}

.page-btn.active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  color: #082336;
}

.page-btn:disabled,
.nav-btn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pagination > span {
  color: var(--text-muted);
  font-weight: 800;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 300;
  max-width: min(380px, calc(100vw - 40px));
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text);
  box-shadow: var(--shadow);
  font-weight: 800;
  animation: slideIn 0.24s ease both;
}

.toast.success { border-color: rgba(33, 199, 143, 0.35); }
.toast.error { border-color: rgba(255, 95, 126, 0.38); }

@keyframes slideIn {
  from { transform: translateY(12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Shared detail page polish */
.job-detail-page {
  max-width: 920px !important;
  padding: 28px var(--gutter) 80px !important;
}

.job-detail-card {
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-soft);
  background: rgba(255, 255, 255, 0.88) !important;
}

.job-detail-title {
  font-family: var(--display);
  letter-spacing: -0.035em;
}

.job-detail-company { color: #008da0 !important; }
.desc-preview { background: var(--bg3) !important; border-left-color: var(--pink) !important; }

@media (prefers-reduced-motion: no-preference) {
  .overview-copy,
  .overview-metrics,
  .search-box,
  .job-card {
    animation: rise 0.5s ease both;
  }
  .overview-metrics { animation-delay: 0.08s; }
  .search-box { animation-delay: 0.12s; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 960px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .logo,
  .logo-link { grid-column: 1; justify-self: start; }
  .header-actions { grid-column: 2; }
  .overview-inner { grid-template-columns: 1fr; align-items: start; }
  .overview-copy h1 { max-width: 18ch; }
  .overview-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric { padding: 14px; }
  .metric-value { font-size: 28px; }
  .home-value-grid,
  .home-steps-inner { grid-template-columns: 1fr; }
  .home-steps-inner h2 { max-width: 18ch; }
  .home-hero-inner,
  .home-section-head,
  .home-showcase-grid {
    grid-template-columns: 1fr;
  }
  .home-live-panel {
    max-width: 720px;
  }
  .home-kpi-panel {
    max-width: none;
  }
  .home-account-preview {
    grid-template-columns: 1fr;
  }
  .home-preview-sidebar {
    min-height: 0;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .home-preview-sidebar strong {
    width: 100%;
    margin-bottom: 6px;
  }
  .home-preview-kpis,
  .home-preview-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-premium-band {
    align-items: flex-start;
    flex-direction: column;
  }
  .search-row { grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); }
  .btn-search { grid-column: 1 / -1; }
  .filters-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .header-inner { padding-top: 10px; padding-bottom: 10px; }
  .overview-section { padding-top: 26px; }
  .overview-copy h1 { font-size: clamp(34px, 11vw, 52px); max-width: 12.5ch; }
  .page-home .overview-copy h1 { max-width: 13ch; }
  .home-hero-v2 {
    padding-top: 28px;
  }
  .home-hero-copy h1 {
    max-width: 12ch;
    font-size: clamp(46px, 15vw, 72px);
  }
  .home-hero-proof,
  .home-source-inner {
    grid-template-columns: 1fr;
  }
  .home-kpi-grid,
  .home-preview-kpis,
  .home-preview-content {
    grid-template-columns: 1fr;
  }
  .home-preview-main,
  .home-preview-sidebar {
    padding: 16px;
  }
  .home-preview-sidebar span {
    padding: 8px 10px;
    font-size: 12px;
  }
  .home-live-list article {
    grid-template-columns: 10px minmax(0, 1fr);
  }
  .home-live-list article > span:last-child {
    grid-column: 2;
    justify-self: start;
  }
  .home-showcase-card {
    min-height: 0;
  }
  .home-showcase-number {
    margin-bottom: 28px;
  }
  .overview-metrics { grid-template-columns: 1fr; }
  .search-row { grid-template-columns: 1fr; }
  .btn-search { width: 100%; justify-content: center; }
  .filters-row { display: grid; grid-template-columns: 1fr; }
  .stats-inner { align-items: flex-start; }
  .home-value-section,
  .home-steps-section { padding-left: var(--gutter); padding-right: var(--gutter); }
  .home-value-card { padding: 18px; }
  .home-steps li { grid-template-columns: 36px minmax(0, 1fr); }
  .home-steps span { width: 36px; height: 36px; }
  .jobs-grid { grid-template-columns: 1fr; }
  .job-card-footer { align-items: flex-start; flex-direction: column; }
  .job-actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    justify-content: stretch;
  }
  .btn-apply { padding-left: 12px; padding-right: 12px; }
  .toast { left: 14px; right: 14px; bottom: 14px; max-width: none; }
}

@media (max-width: 430px) {
  :root { --gutter: 14px; }
  .header-actions .header-link { padding-left: 10px; padding-right: 10px; }
  .overview-copy h1 { letter-spacing: -0.055em; }
  .home-hero-proof {
    grid-template-columns: 1fr;
  }
  .home-live-panel,
  .home-showcase-card,
  .home-premium-band {
    border-radius: 10px;
  }
  .home-live-top,
  .home-live-footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .home-live-search {
    grid-template-columns: 1fr;
  }
  .search-box { border-radius: 12px; }
  .search-input { min-height: 52px; font-size: 15px; }
  .job-card { padding: 15px; }
  .company-logo-wrap { width: 44px; height: 44px; }
  .pagination {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
  }
  .page-btn {
    flex: 0 0 auto;
    min-width: 34px;
    padding: 7px 10px;
  }
}

/* Professional public site refresh */
body:not(.page-monitor) {
  --bg: #f6f7f9;
  --bg2: #ffffff;
  --bg3: #eef1f5;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --border: rgba(15, 23, 42, 0.11);
  --border-strong: rgba(15, 23, 42, 0.2);
  --text: #101828;
  --text-muted: #586174;
  --text-faint: #858d9d;
  --cyan: #1f6feb;
  --cyan-soft: #eef5ff;
  --pink: #7c3aed;
  --pink-soft: #f4f1ff;
  --yellow: #f2c94c;
  --green: #17a56b;
  --accent: #1f6feb;
  --accent-hover: #1759c7;
  --accent-light: rgba(31, 111, 235, 0.1);
  --accent-2: #0f172a;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.06);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: #f6f7f9;
}

body:not(.page-monitor)::before {
  display: none;
}

body:not(.page-monitor) .header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03), 0 14px 36px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
}

body:not(.page-monitor) .header-inner {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  min-height: 72px;
  padding-top: 6px;
  padding-bottom: 6px;
  gap: clamp(12px, 1.7vw, 24px);
  align-items: center;
}

body:not(.page-monitor) .logo-link {
  min-width: 0;
  padding: 4px 0;
}

body:not(.page-monitor) .logo {
  position: relative;
  min-width: 0;
}

body:not(.page-monitor) .logo-img {
  height: clamp(58px, 5.4vw, 76px);
  max-width: min(260px, 30vw);
  object-fit: contain;
  object-position: left center;
  transition: transform 0.22s ease, filter 0.22s ease;
}
body:not(.page-monitor) .logo-link:hover .logo-img {
  transform: translateY(-1px) scale(1.02);
  filter: drop-shadow(0 6px 14px rgba(15, 23, 42, 0.12));
}

.header-tagline {
  grid-column: 2;
  justify-self: start;
  font-family: "Caveat", "Bradley Hand", "Segoe Script", cursive;
  font-style: normal;
  font-weight: 600;
  font-size: clamp(18px, 1.75vw, 24px);
  line-height: 1;
  letter-spacing: 0;
  color: var(--text);
  opacity: 0.85;
  padding-left: 6px;
  white-space: nowrap;
  user-select: none;
  transform: rotate(-2deg);
  transform-origin: left center;
}
.header-tagline::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.95em;
  background: rgba(15, 23, 42, 0.18);
  vertical-align: -0.16em;
  margin-right: 14px;
}
@media (max-width: 960px) {
  .header-tagline { font-size: 22px; }
  .header-tagline::before { margin-right: 10px; }
}
@media (max-width: 760px) {
  .header-tagline { display: none; }
}

.site-nav {
  grid-column: 3;
  justify-self: end;
  margin-right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 2px;
  border-radius: 0;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  position: relative;
  transition: color 0.16s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: transparent;
  box-shadow: none;
}

.nav-link.active::after,
.nav-link:hover::after {
  transform: scaleX(1);
}

.header-link.active {
  color: var(--text);
}

body:not(.page-monitor) .header-link,
body:not(.page-monitor) .back-link {
  min-height: 34px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
  font-weight: 700;
}

body:not(.page-monitor) .header-link:hover,
body:not(.page-monitor) .back-link:hover {
  transform: translateY(-1px);
  background: #1e293b;
  border-color: #1e293b;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.24);
}

body:not(.page-monitor) .header-link.active {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.16);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.auth-layout,
.site-footer {
  width: min(var(--max), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

body:not(.page-monitor) .eyebrow {
  margin-bottom: 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body:not(.page-monitor) .eyebrow::before {
  display: none;
}

.auth-copy h1 {
  max-width: 13ch;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: var(--text);
}

.auth-copy p {
  max-width: 62ch;
  margin-top: 22px;
  color: var(--text-muted);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.65;
}

.auth-free-callout {
  display: grid;
  gap: 4px;
  width: min(100%, 420px);
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid rgba(31, 111, 235, 0.22);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.auth-free-callout strong {
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
}

.auth-free-callout span {
  color: #475569;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.auth-card input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  outline: none;
}

.auth-card input:focus {
  border-color: rgba(31, 111, 235, 0.55);
  box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.12);
}

.auth-card button[type="submit"],
.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  background: #0f172a;
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}

.auth-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.site-footer {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: clamp(34px, 4vw, 50px) 0 28px;
  margin-top: clamp(32px, 5vw, 64px);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(120px, 18vw, 200px);
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.18), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(250px, 1.15fr) repeat(3, minmax(150px, 1fr));
  column-gap: clamp(22px, 4vw, 56px);
  row-gap: 28px;
  align-items: start;
}
@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

.footer-brand {
  max-width: 340px;
  align-self: start;
}

.footer-logo {
  width: 148px;
  height: auto;
  margin-bottom: 12px;
  transition: transform 0.22s ease, filter 0.22s ease;
}
.footer-brand a:hover .footer-logo {
  transform: translateY(-1px) scale(1.02);
  filter: drop-shadow(0 6px 14px rgba(15, 23, 42, 0.12));
}

.footer-brand p {
  margin: 0;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.55;
  font-size: 13px;
}

.footer-col {
  min-width: 0;
}

.footer-col-title {
  margin: 0 0 12px;
  font-family: var(--display, var(--sans));
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.16s ease, transform 0.16s ease;
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  position: relative;
}
.footer-col a::before {
  content: "";
  width: 0;
  height: 1px;
  background: currentColor;
  margin-right: 0;
  transition: width 0.2s ease, margin-right 0.2s ease;
  opacity: 0.7;
}
.footer-col a:hover {
  color: var(--text);
}
.footer-col a:hover::before {
  width: 16px;
  margin-right: 8px;
}

.footer-meta {
  display: grid;
  grid-template-columns: minmax(180px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding-top: 18px;
  margin-top: 4px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}
.footer-meta span:first-child {
  font-weight: 700;
  color: var(--text);
}
.footer-meta span:last-child {
  justify-self: end;
  text-align: right;
}

.auth-layout {
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(48px, 7vw, 90px) 0;
}

.auth-copy h1 {
  font-size: clamp(38px, 5.4vw, 68px);
}

.auth-note {
  max-width: 520px;
  margin-top: 28px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
  color: var(--text-muted);
}

.auth-note strong,
.auth-note span {
  display: block;
}

.auth-note strong {
  margin-bottom: 4px;
  color: var(--text);
}

.auth-card {
  padding: 28px;
}

.auth-card h2 {
  margin-bottom: 22px;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.auth-card form {
  display: grid;
  gap: 10px;
}

.auth-card label {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-card input {
  padding: 0 12px;
}

.auth-card button[type="submit"] {
  width: 100%;
  margin-top: 12px;
}

.auth-status {
  min-height: 22px;
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}

.auth-secondary {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.auth-secondary button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font-size: 13px;
  font-weight: 750;
}

.subscription-layout {
  width: min(var(--max), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
  gap: clamp(28px, 5vw, 76px);
  align-items: start;
  padding: clamp(20px, 3vw, 40px) 0 clamp(40px, 6vw, 72px);
}

.subscription-copy {
  grid-column: 1 / -1;
}

.subscription-copy h1 {
  max-width: 13ch;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.subscription-copy p {
  max-width: 62ch;
  margin-top: 22px;
  color: var(--text-muted);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.65;
}

.subscription-benefits {
  display: grid;
  gap: 10px;
  max-width: 540px;
  margin-top: 24px;
}

.subscription-benefits span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font-weight: 700;
}

.subscription-benefits span::before {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(23, 165, 107, 0.12);
}

.pricing-card {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.pricing-kicker {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pricing-card h2 {
  font-size: 28px;
  letter-spacing: -0.025em;
}

.price {
  margin: 20px 0;
  color: var(--text);
  font-size: 48px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.price span {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
}

.pricing-card ul {
  display: grid;
  gap: 11px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.pricing-card li {
  color: var(--text-muted);
  font-weight: 650;
}

.pricing-card li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--green);
  vertical-align: 1px;
}

.pricing-card button {
  width: 100%;
  min-height: 48px;
  margin-top: 10px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
}

#subscribeBtn {
  background: #0f172a;
  color: #ffffff;
}

.secondary-plan {
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
}

.premium-lock {
  display: none;
}

.job-card.is-premium-locked {
  overflow: hidden;
  cursor: pointer;
}

/* Flou "frosted" sur les offres verrouillées : logo, nom d'entreprise et lieu
   restent voilés (impossible d'identifier/Googler l'employeur sans s'abonner).
   Le TITRE et le CONTRAT restent nets pour donner envie. */
.job-card.is-premium-locked .company-logo-wrap,
.job-card.is-premium-locked .job-badge-source,
.job-card.is-premium-locked .job-company,
.job-card.is-premium-locked .job-location {
  filter: blur(6px);
  opacity: 0.55;
  user-select: none;
  pointer-events: none;
}

/* Bandeau premium en FLUX NORMAL en haut de la carte : compact, ne recouvre
   jamais le titre (le CTA est le bouton « Débloquer » du pied de carte). */
.job-card.is-premium-locked .premium-lock {
  position: static;
  inset: auto;
  width: auto;
  z-index: auto;
  order: -1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 6px 10px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.04);
  box-shadow: none;
  backdrop-filter: none;
}
.job-card.is-premium-locked .premium-lock .premium-lock-meta {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.premium-lock-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #0f172a;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.premium-lock strong {
  color: var(--text);
  font-size: 16px;
  line-height: 1.2;
}

.premium-lock span:not(.premium-lock-badge) {
  max-width: 100%;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}
.premium-lock .premium-lock-line {
  color: var(--text);
  font-weight: 700;
  font-size: 13.5px;
}
.premium-lock .premium-lock-meta {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 12.5px;
  opacity: 0.9;
}

.premium-lock a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin-top: 2px;
  padding: 0 12px;
  border-radius: 8px;
  background: #0f172a;
  color: #ffffff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}

.job-card.is-premium-locked .job-badges,
.job-card.is-premium-locked .job-meta {
  opacity: 0.92;
}

.detail-lock-panel {
  margin: 18px;
  padding: 22px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 10px;
  background: #f8fafc;
}

.detail-lock-panel h2 {
  margin-top: 10px;
  font-size: 25px;
  letter-spacing: -0.025em;
}

.detail-lock-panel p {
  max-width: 68ch;
  margin: 8px 0 16px;
  color: var(--text-muted);
  line-height: 1.65;
}

.is-premium-locked-detail .job-detail-body {
  position: relative;
  max-height: 280px;
  overflow: hidden;
}

.is-premium-locked-detail .job-detail-body > * {
  filter: blur(5px);
  opacity: 0.38;
  user-select: none;
}

.is-premium-locked-detail .job-detail-logo,
.is-premium-locked-detail .job-detail-logo-fallback {
  filter: blur(6px);
  opacity: 0.55;
  user-select: none;
  pointer-events: none;
}

.is-premium-locked-detail .job-detail-body::after {
  content: "Description complete reservee aux abonnes";
  position: absolute;
  inset: auto 24px 24px;
  display: grid;
  place-items: center;
  min-height: 46px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-weight: 800;
}

body:not(.page-monitor) .overview-section {
  padding-top: 34px;
}

body:not(.page-monitor) .overview-section.compact {
  padding-bottom: 8px;
}

body:not(.page-monitor) .overview-inner {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
}

body:not(.page-monitor) .overview-copy h1 {
  max-width: 16ch;
  font-family: var(--sans);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

body:not(.page-monitor) .metric,
body:not(.page-monitor) .search-box,
body:not(.page-monitor) .job-card,
body:not(.page-monitor) .loading-state,
body:not(.page-monitor) .empty-state {
  border-radius: 10px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body:not(.page-monitor) .metric-value {
  font-family: var(--sans);
  letter-spacing: -0.03em;
}

body:not(.page-monitor) .search-box {
  padding: 14px;
  border: 1.5px solid rgba(15, 23, 42, 0.16);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 16px 40px rgba(16, 32, 51, 0.1);
}

body:not(.page-monitor) .search-input {
  min-height: 52px;
  border: 1.5px solid rgba(15, 23, 42, 0.16);
  border-radius: 10px;
  font-weight: 600;
}

body:not(.page-monitor) .search-icon {
  border-color: var(--text-faint);
}

body:not(.page-monitor) .search-icon::after,
body:not(.page-monitor) .search-input-wrap:nth-child(2) .search-icon::after {
  background: var(--text-faint);
}

body:not(.page-monitor) .search-input-wrap:nth-child(2) .search-icon {
  border-color: var(--text-faint);
}

body:not(.page-monitor) .btn-search,
body:not(.page-monitor) .btn-apply,
body:not(.page-monitor) .btn-apply-large {
  color: #ffffff;
  background: #0f172a;
  border-radius: 8px;
  box-shadow: none;
}

body:not(.page-monitor) .btn-search:hover,
body:not(.page-monitor) .btn-apply:hover,
body:not(.page-monitor) .btn-apply-large:hover {
  background: #1e293b;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.16);
}
body:not(.page-monitor) .btn-apply.is-loading,
body:not(.page-monitor) .btn-apply-large.is-loading {
  opacity: 0.78;
  pointer-events: none;
}
body:not(.page-monitor) .btn-apply.is-applied,
body:not(.page-monitor) .btn-apply-large.is-applied {
  background: #15803d;
}

body:not(.page-monitor) .tag,
body:not(.page-monitor) .filter-chip,
body:not(.page-monitor) .job-location,
body:not(.page-monitor) .job-contract,
body:not(.page-monitor) .stat-item {
  border-color: var(--border);
  background: #f8fafc;
  color: var(--text-muted);
}

body:not(.page-monitor) .tag:nth-child(odd),
body:not(.page-monitor) .tag:nth-child(even) {
  background: #f8fafc;
  border-color: var(--border);
}

body:not(.page-monitor) .filter-group select {
  border: 1.5px solid rgba(15, 23, 42, 0.14);
  border-radius: 10px;
}

body:not(.page-monitor) #resultsCount,
body:not(.page-monitor) .job-title,
body:not(.page-monitor) .empty-state h3 {
  font-family: var(--sans);
  letter-spacing: -0.025em;
}

body:not(.page-monitor) .job-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 23, 42, 0.24);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
}

body:not(.page-monitor) .job-card.is-seen {
  border-color: rgba(100, 116, 139, 0.22);
  background: #ffffff;
  box-shadow: none;
}

body:not(.page-monitor) .job-card.is-seen:hover {
  border-color: rgba(15, 23, 42, 0.24);
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
}

body:not(.page-monitor) .company-logo-wrap {
  border-radius: 10px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.04);
}

body:not(.page-monitor) .company-logo {
  padding: 9px;
  object-fit: contain;
  background: #ffffff;
}

body:not(.page-monitor) .job-company,
body:not(.page-monitor) .job-detail-company {
  color: var(--accent) !important;
}

body:not(.page-monitor) .page-btn.active {
  background: #0f172a;
  color: #ffffff;
}

@media (max-width: 960px) {
  .header-tagline { display: none; }
  body:not(.page-monitor) .header-inner {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 58px;
  }
  body:not(.page-monitor) .logo-img {
    height: 52px;
    max-width: 198px;
  }
  body:not(.page-monitor) .header-actions {
    grid-column: 2;
    justify-self: end;
    min-width: 0;
  }
  .site-nav {
    order: 3;
    grid-column: 1 / -1;
    justify-self: stretch;
    justify-content: flex-start;
    margin-right: 0;
    overflow-x: auto;
    max-width: 100%;
    width: 100%;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .auth-layout,
  .subscription-layout {
    grid-template-columns: 1fr;
  }
  body:not(.page-monitor) .overview-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body:not(.page-monitor) .header {
    position: sticky;
  }
  body:not(.page-monitor) .header-inner {
    grid-template-columns: auto minmax(0, 1fr);
    row-gap: 10px;
    column-gap: 12px;
  }
  body:not(.page-monitor) .logo-img {
    display: none;
  }
  body:not(.page-monitor) .logo::before {
    content: "";
    display: block;
    width: 36px;
    height: 36px;
    background: url("/logo_mark.png?v=20260707") center / contain no-repeat;
  }
  body:not(.page-monitor) .header-actions {
    justify-self: end;
    gap: 6px;
  }
  body:not(.page-monitor) #navRegisterAction {
    display: none;
  }
  body:not(.page-monitor) .header-link {
    min-height: 32px;
    padding: 7px 11px;
    font-size: 13px;
    white-space: nowrap;
  }
  .site-nav {
    gap: 16px;
  }
  .nav-link {
    flex: 0 0 auto;
    font-size: 13.5px;
  }
  .auth-copy h1 {
    max-width: 12ch;
    font-size: clamp(38px, 12vw, 58px);
  }
  .site-footer {
    align-items: stretch;
  }
  .site-footer {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-meta {
    grid-template-columns: 1fr;
    align-items: flex-start;
    text-align: left;
  }
  .footer-meta span:last-child {
    justify-self: start;
    text-align: left;
  }
  .primary-link {
    width: 100%;
  }
  .auth-card {
    padding: 22px;
  }
  .pricing-card {
    padding: 22px;
  }
  .subscription-copy h1 {
    max-width: 12ch;
    font-size: clamp(38px, 12vw, 58px);
  }
}

/* ===== Auth / Account / Pre-roll / Pricing v2 ===== */
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 12px 16px; margin-bottom: 12px;
  background: #fff; color: #1f2937; border: 1px solid #e5e7eb;
  border-radius: 10px; font-weight: 600; cursor: pointer; transition: background .15s;
}
.btn-google:hover { background: #f9fafb; }
.btn-google-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; background: #4285F4; color: #fff;
  font-weight: 700; font-size: 14px;
}
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 16px 0; color: #9ca3af; font-size: 13px;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: #e5e7eb;
}
.auth-hint { color: #6b7280; font-size: 13px; margin-bottom: 12px; }
.auth-bullets { padding-left: 20px; color: #475569; line-height: 1.7; }
.auth-switch { text-align: center; margin-top: 16px; font-size: 14px; color: #475569; }
.auth-switch a { color: #2563eb; font-weight: 600; }
.auth-secondary-toggle { margin-top: 18px; }
.auth-secondary-toggle summary {
  cursor: pointer; color: #6b7280; font-size: 13px; padding: 6px 0;
}
.auth-secondary { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.auth-secondary button {
  flex: 1 1 auto; padding: 8px 12px; background: #f3f4f6;
  border: 1px solid #e5e7eb; border-radius: 8px; cursor: pointer; font-size: 13px;
}

/* Account page */
.account-layout {
  width: calc(100% - 64px);
  max-width: none;
  margin: 40px 32px;
  padding: 0;
}
.account-header {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 24px;
  margin-bottom: 28px;
}
.account-header h1 { margin: 4px 0 6px; font-size: clamp(28px, 4vw, 38px); }
.account-header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.account-success {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 0 0 18px;
  padding: 16px 18px;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  color: #065f46;
  font-size: 14px;
}
.account-success[hidden] { display: none; }
.account-success strong {
  display: block;
  margin-bottom: 2px;
  color: #047857;
}
.account-cockpit {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.account-impact {
  margin: 18px 0 20px;
}
.account-impact-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.account-impact-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.2;
}
.account-impact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 14px;
}
.account-metric {
  min-width: 0;
  padding: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.account-metric-label {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.account-metric strong {
  color: #0f172a;
  font-size: 30px;
  line-height: 1;
}
.account-metric span:last-child {
  color: #64748b;
  font-size: 13px;
  line-height: 1.35;
}
.account-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 18px;
}
.account-card {
  min-width: 0;
  min-height: 0;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 18px;
  display: flex; flex-direction: column; gap: 12px;
}
.account-card header {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.account-card h2 { margin: 0; font-size: 18px; }
.account-card p,
.account-empty,
.account-meta {
  overflow-wrap: anywhere;
}
.account-card-subscription {
  border-color: rgba(37, 99, 235, 0.28);
}
.account-badge {
  background: #f3f4f6; color: #475569; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
}
.account-badge.is-premium { background: #e0f2fe; color: #0369a1; }
.premium-benefits-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.premium-benefits-list li {
  position: relative;
  padding-left: 18px;
  color: #334155;
  font-size: 13px;
  line-height: 1.35;
}
.premium-benefits-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2563eb;
}
.account-list {
  list-style: none;
  margin: 0;
  padding: 0 4px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 260px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.account-list:empty { display: none; }
.account-list::-webkit-scrollbar { width: 8px; }
.account-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}
.account-list::-webkit-scrollbar-track { background: transparent; }
.account-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 10px;
  padding: 10px 12px; background: #f9fafb; border-radius: 8px;
  min-width: 0;
  flex: 0 0 auto;
}
.account-list li > a {
  min-width: 0;
  max-width: 100%;
  font-weight: 600;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-list li .account-meta {
  grid-column: 1 / -1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-list li > .btn-link {
  white-space: nowrap;
}
.account-list li > .btn-link:only-of-type {
  grid-row: 1;
  grid-column: 2;
}
.account-list-actions {
  grid-row: 1;
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 12px;
}
.account-list-actions .btn-link {
  white-space: nowrap;
}
.account-meta { color: #64748b; font-size: 13px; }
.account-empty { color: #6b7280; font-size: 14px; }
.account-empty[hidden] + .account-empty-action {
  display: none;
}
.account-empty-action {
  align-self: flex-start;
  margin-top: auto;
  color: #2563eb;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.account-empty-action:hover {
  text-decoration: underline;
}
.account-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Buttons partagés */
.btn-primary {
  display: inline-block; padding: 10px 18px; border-radius: 10px;
  background: #2563eb; color: #fff; font-weight: 600; border: 0; cursor: pointer;
  text-decoration: none;
}
.btn-primary:hover { background: #1d4ed8; }
.btn-primary:disabled { background: #9ca3af; cursor: not-allowed; }
.btn-secondary {
  display: inline-block; padding: 10px 18px; border-radius: 10px;
  background: #fff; color: #2563eb; border: 1px solid #2563eb; font-weight: 600;
  cursor: pointer; text-decoration: none;
}
.btn-secondary:hover { background: #eff6ff; }
.btn-danger {
  display: inline-block; padding: 10px 18px; border-radius: 10px;
  background: #dc2626; color: #fff; font-weight: 600; border: 0; cursor: pointer;
  text-decoration: none;
}
.btn-danger:hover { background: #b91c1c; }
.btn-link {
  background: none; border: 0; color: #2563eb; cursor: pointer; padding: 4px 6px;
  font-size: 13px; font-weight: 500;
}
.btn-link:hover { text-decoration: underline; }

/* Bouton favori carte */
.btn-fav {
  background: none; border: 0; cursor: pointer; font-size: 18px; color: #cbd5e1;
  padding: 4px 8px; border-radius: 6px; transition: color .15s, background .15s;
}
.btn-fav:hover { background: #fef2f2; color: #ef4444; }
.btn-fav.is-active { color: #ef4444; }

/* Bouton "Suivre" sur card */
.btn-track {
  display: inline-flex; align-items: center; gap: 4px;
  background: transparent; border: 1px solid rgba(15, 23, 42, 0.14);
  color: var(--text-muted); cursor: pointer;
  font-size: 12px; font-weight: 700;
  padding: 5px 10px; border-radius: 999px;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-track:hover {
  background: rgba(15, 23, 42, 0.04);
  color: var(--text);
  border-color: rgba(15, 23, 42, 0.28);
}
.btn-track.is-active {
  background: rgba(33, 199, 143, 0.12);
  color: #15803d;
  border-color: rgba(33, 199, 143, 0.45);
  cursor: default;
}
.btn-track:disabled { opacity: 0.85; cursor: default; }

/* ===== Tracker (espace candidat) ===== */
.tracker-section {
  margin: 18px 0;
  padding: 28px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.tracker-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.tracker-header h2 { margin: 0 0 6px; font-size: 20px; }
.tracker-subtitle { margin: 0; color: var(--text-muted); font-size: 13.5px; line-height: 1.5; }
.tracker-stats {
  display: flex; align-items: center; gap: 14px;
  font-size: 13px; color: var(--text-muted);
}
.tracker-count strong {
  font-size: 22px; color: var(--text); font-weight: 800; margin-right: 4px;
}
.tracker-quota {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.04);
  font-weight: 700;
  font-size: 12px;
}
.tracker-empty {
  padding: 24px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  background: rgba(248, 250, 252, 0.7);
  text-align: center;
}
.tracker-empty p { margin: 4px 0; }

.tracker-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
.tracker-summary[hidden] { display: none; }
.tracker-summary-chip,
.tracker-status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #f8fafc;
  color: #475569;
  font-size: 11.5px;
  font-weight: 800;
}
.tracker-summary-chip.s-applied,
.tracker-status-pill.s-applied { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.tracker-summary-chip.s-interview,
.tracker-status-pill.s-interview { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.tracker-summary-chip.s-positive,
.tracker-status-pill.s-positive { background: #ecfdf5; color: #047857; border-color: #bbf7d0; }
.tracker-summary-chip.s-rejected,
.tracker-status-pill.s-rejected { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.tracker-summary-chip.s-ghosted,
.tracker-status-pill.s-ghosted { background: #f1f5f9; color: #64748b; border-color: #cbd5e1; }

.tracker-list {
  display: flex; flex-direction: column; gap: 12px;
}
.tracker-row {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 2.4fr);
  gap: 22px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
  transition: border-color .16s ease, box-shadow .16s ease;
  min-width: 0;
}
.tracker-row:hover {
  border-color: rgba(15, 23, 42, 0.2);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
}

.tracker-row-main {
  display: flex; gap: 12px; align-items: flex-start; min-width: 0;
}
.tracker-logo {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 8px; background: #f1f5f9; padding: 4px;
  object-fit: contain; border: 1px solid var(--border);
}
.tracker-info { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.tracker-title {
  display: block; color: var(--text); font-weight: 700;
  text-decoration: none; font-size: 14.5px; line-height: 1.3;
  max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tracker-title:hover { color: var(--accent, #2563eb); }
.tracker-company,
.tracker-meta {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tracker-company { margin: 4px 0 0; font-size: 13px; color: var(--text-muted); font-weight: 600; }
.tracker-meta { margin: 2px 0 0; font-size: 12px; color: var(--text-faint, #94a3b8); }

.tracker-controls {
  display: grid;
  grid-template-columns: 150px 140px minmax(280px, 1fr) auto;
  gap: 12px;
  align-items: end;
}
.tracker-field {
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
}
.tracker-field > span {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text-muted);
}
.tracker-status,
.tracker-date,
.tracker-notes {
  width: 100%;
  min-width: 0;
  font-family: inherit;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 13px;
  color: var(--text);
  transition: border-color .15s;
}
.tracker-status:focus, .tracker-date:focus, .tracker-notes:focus {
  outline: none; border-color: var(--accent, #2563eb);
}
.tracker-notes {
  resize: vertical;
  min-height: 36px;
  max-height: 120px;
  font-size: 13px;
  line-height: 1.5;
}

/* Statut couleur sur la row */
.tracker-row.s-applied   { border-left: 4px solid #2563eb; }
.tracker-row.s-interview { border-left: 4px solid #f59e0b; }
.tracker-row.s-positive  { border-left: 4px solid #16a34a; background: rgba(34, 197, 94, 0.04); }
.tracker-row.s-rejected  { border-left: 4px solid #ef4444; opacity: 0.8; }
.tracker-row.s-ghosted   { border-left: 4px solid #94a3b8; opacity: 0.78; }
.tracker-row.s-tracked   { border-left: 4px solid #cbd5e1; }

.tracker-delete {
  align-self: center;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--border); background: #fff;
  color: var(--text-muted); cursor: pointer;
  font-size: 18px; line-height: 1;
  transition: all .15s;
}
.tracker-delete:hover { background: #fef2f2; color: #ef4444; border-color: #fecaca; }

.tracker-upsell {
  margin-top: 16px; padding: 16px 18px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(254, 243, 199, 0.5);
  border-radius: var(--radius-sm);
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  flex-wrap: wrap;
}
.tracker-upsell[hidden] { display: none; }
.tracker-upsell p { margin: 0; color: #92400e; font-size: 13.5px; }

@media (max-width: 980px) {
  .account-cockpit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tracker-row { grid-template-columns: 1fr; }
  .tracker-controls { grid-template-columns: 1fr 1fr; }
  .tracker-field-notes { grid-column: 1 / -1; }
  .tracker-delete { justify-self: end; }
}
@media (max-width: 720px) {
  .account-layout {
    width: calc(100% - 32px);
    margin-left: 16px;
    margin-right: 16px;
    margin-top: 28px;
  }
  .account-header {
    flex-direction: column;
    align-items: stretch;
  }
  .account-success {
    flex-direction: column;
    align-items: stretch;
  }
  .account-cockpit { grid-template-columns: 1fr; }
  .account-grid { grid-template-columns: 1fr; }
  .tracker-controls { grid-template-columns: 1fr; }
  .tracker-section { padding: 16px; }
  .tracker-row { padding: 14px; gap: 14px; }
  .tracker-row-main { gap: 10px; }
  .tracker-logo { width: 34px; height: 34px; border-radius: 7px; }
  .tracker-delete {
    justify-self: end;
    align-self: end;
  }
}

@media (max-width: 430px) {
  body:not(.page-monitor) .header-inner {
    padding-left: 12px;
    padding-right: 12px;
  }
  .site-nav {
    gap: 14px;
  }
  .nav-link {
    font-size: 13px;
  }
  .account-layout {
    width: calc(100% - 24px);
    margin-left: 12px;
    margin-right: 12px;
  }
  .account-card,
  .tracker-section {
    padding: 14px;
  }
}

/* Account app shell */
.account-shell {
  width: min(1440px, calc(100% - 40px));
  margin: 24px auto 56px;
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.account-shell[hidden] {
  display: none;
}

.account-sidebar {
  position: sticky;
  top: 18px;
  min-height: calc(100vh - 36px);
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.account-sidebar-brand {
  padding: 8px 8px 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.account-sidebar-kicker,
.account-section-kicker,
.account-card-kicker {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.account-sidebar-brand strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-nav {
  display: grid;
  gap: 5px;
}

.account-nav a,
.account-bottom-nav a {
  text-decoration: none;
}

.account-nav a {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 9px;
  color: #475569;
  font-size: 14px;
  font-weight: 750;
}

.account-nav a:hover {
  background: rgba(15, 23, 42, 0.045);
  color: var(--text);
}

.account-nav a.is-active {
  background: #0f172a;
  color: #fff;
}

.account-nav-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(15, 23, 42, 0.06);
  color: inherit;
  font-size: 14px;
}

.account-nav a.is-active .account-nav-icon {
  background: rgba(255, 255, 255, 0.14);
}

.account-nav-count {
  min-width: 24px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: inherit;
  text-align: center;
  font-size: 11px;
  font-weight: 850;
}

.account-nav a.is-active .account-nav-count {
  background: rgba(255, 255, 255, 0.16);
}

.account-sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.account-workspace {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.account-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.account-topbar h1 {
  margin: 4px 0 7px;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -0.035em;
}

.account-topbar p:not(.eyebrow) {
  max-width: 70ch;
  margin: 0;
  color: var(--text-muted);
  font-weight: 650;
  line-height: 1.45;
}

.account-panel {
  display: none;
  min-width: 0;
}

.account-panel.is-active {
  display: grid;
  gap: 16px;
}

.account-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.account-section-heading h2,
.account-card h3 {
  margin: 5px 0 8px;
  color: var(--text);
  font-family: var(--display);
  letter-spacing: -0.025em;
}

.account-section-heading h2 {
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1;
}

.account-section-heading p,
.account-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.5;
  font-weight: 600;
}

.account-cockpit {
  margin-bottom: 0;
}

.account-metric {
  color: inherit;
  text-decoration: none;
  border-radius: 10px;
}

.account-metric:hover {
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
}

.account-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 16px;
}

.account-card {
  border-radius: 10px;
}

.account-card-wide {
  min-height: 420px;
}

.account-card-primary {
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(236, 253, 245, 0.9));
  border-color: rgba(37, 99, 235, 0.18);
}

.account-action-banner {
  width: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.account-action-banner h3 {
  margin-top: 3px;
  margin-bottom: 6px;
}

.account-action-banner p {
  max-width: none;
}

.account-action-banner .account-actions {
  justify-content: flex-end;
  margin: 0;
}

.account-card h3 {
  font-size: 25px;
  line-height: 1.08;
}

.account-settings-list {
  display: grid;
  gap: 10px;
  margin: 6px 0 10px;
}

.account-settings-list > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: #f8fafc;
}

.dashboard-tracking-card {
  min-height: 0;
}

.dashboard-tracking-card header {
  align-items: flex-start;
}

.dashboard-tracking-empty {
  padding: 24px;
  border: 1px dashed rgba(15, 23, 42, 0.14);
  border-radius: 10px;
  background: #f8fafc;
}

.dashboard-tracking-empty p {
  margin: 0 0 5px;
}

.dashboard-tracking-empty[hidden] {
  display: none;
}

.dashboard-tracking-list {
  display: grid;
  gap: 10px;
}

.dashboard-tracking-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 10px;
  background: #fff;
}

.dashboard-tracking-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  padding: 5px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 9px;
  background: #f8fafc;
}

.dashboard-tracking-main {
  min-width: 0;
}

.dashboard-tracking-title {
  display: block;
  max-width: 100%;
  color: var(--text);
  font-weight: 850;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-tracking-title:hover {
  color: #2563eb;
}

.dashboard-tracking-main p {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tracker-section {
  margin: 0;
  border-radius: 10px;
}

.account-bottom-nav {
  display: none;
}

@media (max-width: 1180px) {
  .account-shell {
    grid-template-columns: 86px minmax(0, 1fr);
  }
  .account-sidebar {
    padding: 12px;
  }
  .account-sidebar-brand strong,
  .account-sidebar-kicker,
  .account-nav a span:not(.account-nav-icon):not(.account-nav-count),
  .account-sidebar-footer .btn-secondary {
    display: none;
  }
  .account-nav a {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 8px;
  }
  .account-nav-count {
    position: absolute;
    transform: translate(16px, -12px);
  }
}

@media (max-width: 980px) {
  .account-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .account-shell {
    width: calc(100% - 24px);
    margin: 16px 12px 88px;
    display: block;
  }
  .account-sidebar {
    display: none;
  }
  .account-workspace {
    gap: 12px;
  }
  .account-topbar,
  .account-section-heading {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }
  .account-topbar h1 {
    font-size: clamp(30px, 11vw, 44px);
  }
  .account-bottom-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 250;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 6px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(14px);
  }
  .account-bottom-nav a {
    min-width: 0;
    padding: 9px 4px;
    border-radius: 10px;
    color: #64748b;
    text-align: center;
    font-size: 11px;
    font-weight: 850;
  }
  .account-bottom-nav a.is-active {
    background: #0f172a;
    color: #fff;
  }
  .account-card-wide {
    min-height: 0;
  }
  .account-action-banner {
    grid-template-columns: 1fr;
  }
  .account-action-banner .account-actions {
    justify-content: flex-start;
  }
  .dashboard-tracking-row {
    grid-template-columns: 38px minmax(0, 1fr);
  }
  .dashboard-tracking-row .tracker-status-pill {
    grid-column: 2;
    justify-self: start;
  }
  .dashboard-tracking-logo {
    width: 38px;
    height: 38px;
  }
}

/* ===== Modale upsell tracker ===== */
.tracking-upsell-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.tracking-upsell-backdrop {
  position: absolute; inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}
.tracking-upsell-card {
  position: relative;
  max-width: 440px; width: 100%;
  background: #fff;
  border-radius: 16px;
  padding: 28px 28px 24px;
  box-shadow: 0 30px 60px -20px rgba(15, 23, 42, 0.35);
}
.tracking-upsell-card h3 { margin: 0 0 10px; font-size: 22px; }
.tracking-upsell-card p { margin: 8px 0; font-size: 14px; color: var(--text-muted); line-height: 1.55; }
.tracking-upsell-meta { font-size: 12.5px; color: var(--text-faint, #94a3b8); }
.tracking-upsell-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: 0; font-size: 24px; line-height: 1;
  color: var(--text-muted); cursor: pointer;
}
.tracking-upsell-close:hover { color: var(--text); }
.tracking-upsell-actions {
  display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap;
}
.tracking-upsell-actions .btn-primary,
.tracking-upsell-actions .btn-secondary { flex: 1 1 140px; text-align: center; padding: 10px 16px; border-radius: 999px; }

/* ===== Modale sortie offre ===== */
.job-exit-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.job-exit-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(6px);
}
.job-exit-card {
  position: relative;
  width: min(100%, 460px);
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 28px 70px -24px rgba(15, 23, 42, 0.45);
}
.job-exit-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ecfeff;
  color: #0e7490;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.job-exit-card h3 {
  margin: 0 28px 10px 0;
  color: var(--text);
  font-size: 22px;
  line-height: 1.18;
}
.job-exit-main {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.45;
}
.job-exit-meta {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}
.job-exit-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  color: #334155;
  font-size: 13.5px;
  font-weight: 650;
  cursor: pointer;
}
.job-exit-check input {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  accent-color: #2563eb;
  flex: 0 0 auto;
}
.job-exit-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.job-exit-close:hover,
.job-exit-close:focus-visible {
  background: #e2e8f0;
  color: #0f172a;
}
.job-exit-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.job-exit-actions .btn-primary,
.job-exit-actions .btn-secondary {
  flex: 1 1 150px;
  min-height: 44px;
  text-align: center;
  border-radius: 999px;
}

@media (max-width: 520px) {
  .job-exit-modal {
    align-items: flex-end;
    padding: 12px;
  }
  .job-exit-card {
    padding: 24px 20px 20px;
    border-radius: 16px;
  }
  .job-exit-card h3 {
    font-size: 20px;
  }
  .job-exit-actions .btn-primary,
  .job-exit-actions .btn-secondary {
    flex-basis: 100%;
  }
}

.alert-search-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.btn-alert-search {
  margin-left: auto;
  align-self: center;
  color: #1d4ed8;
}

/* Admin clients */
.page-admin-customers {
  background: #f6f8fb;
}
.admin-shell {
  width: min(1440px, calc(100% - 32px));
  margin: 32px auto;
}
.admin-header,
.admin-token-row,
.admin-controls,
.admin-layout,
.admin-actions,
.admin-detail-head {
  display: flex;
  gap: 12px;
}
.admin-header {
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.admin-header h1 {
  margin: 0;
  font-size: 34px;
}
.admin-token-panel,
.admin-table-wrap,
.admin-detail,
.admin-stats-grid > div,
.admin-controls {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}
.admin-token-panel {
  padding: 18px;
  margin-bottom: 16px;
}
.admin-token-panel label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}
.admin-token-row {
  align-items: center;
}
.admin-token-row input,
.admin-controls input,
.admin-controls select,
.admin-edit-grid input,
.admin-edit-grid select {
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
}
.admin-token-row input {
  flex: 1;
}
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.admin-stats-grid > div {
  padding: 16px;
}
.admin-stats-grid span {
  display: block;
  color: var(--text-muted);
  font-size: 13px;
}
.admin-stats-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 28px;
}
.admin-controls {
  align-items: center;
  padding: 12px;
  margin-bottom: 16px;
}
.admin-controls input {
  flex: 1;
}
.admin-layout {
  align-items: flex-start;
}
.admin-table-wrap {
  flex: 1 1 64%;
  overflow: auto;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table th,
.admin-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #e8eef5;
  text-align: left;
  vertical-align: top;
}
.admin-table th {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  background: #f8fbff;
}
.admin-table tr {
  cursor: pointer;
}
.admin-table tr:hover,
.admin-table tr.is-selected {
  background: #eef8ff;
}
.admin-table td span,
.admin-table td small {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
}
.admin-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #edf2f7;
  color: #51647b;
  font-size: 12px;
  font-weight: 800;
}
.admin-badge.is-premium {
  background: #dcfce7;
  color: #16794a;
}
.admin-detail {
  flex: 0 0 420px;
  padding: 18px;
  position: sticky;
  top: 88px;
}
.admin-detail-head {
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}
.admin-detail h2 {
  margin: 0;
  font-size: 20px;
  overflow-wrap: anywhere;
}
.admin-detail h3 {
  margin: 18px 0 8px;
  font-size: 14px;
}
.admin-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.admin-edit-grid label {
  display: grid;
  gap: 5px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 700;
}
.admin-edit-grid .admin-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-actions {
  margin: 14px 0;
}
.admin-kv {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}
.admin-kv div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px;
}
.admin-kv dt {
  color: var(--text-muted);
  font-size: 12px;
}
.admin-kv dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.admin-detail-list ul {
  list-style: none;
  display: grid;
  gap: 8px;
}
.admin-detail-list li {
  padding: 9px 10px;
  border: 1px solid #e8eef5;
  border-radius: 8px;
  background: #f8fbff;
}
.admin-detail-list small {
  display: block;
  color: var(--text-muted);
}
.admin-empty {
  text-align: center;
  color: var(--text-muted);
}

@media (max-width: 980px) {
  .admin-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-layout { flex-direction: column; }
  .admin-detail { position: static; flex-basis: auto; width: 100%; }
}

/* Pricing v2 */
.pricing-grid {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px; margin-top: 32px;
  align-items: stretch;
}
.pricing-card { padding: 28px; border-radius: 16px; background: #fff; border: 1px solid #e5e7eb; }
.pricing-card.pricing-premium {
  position: relative;
  border: 2px solid #2563eb; box-shadow: 0 12px 30px -10px rgba(37,99,235,.35);
}
.pricing-kicker { color: #2563eb; font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: .08em; }
.pricing-card h2 { font-size: 28px; margin: 4px 0 12px; }
.pricing-card .price { font-size: 38px; font-weight: 800; margin: 0 0 18px; color: #0f172a; }
.pricing-card .price span { font-size: 14px; font-weight: 500; color: #6b7280; }
.pricing-card ul { margin: 0 0 22px; padding-left: 20px; line-height: 1.8; color: #334155; }
.pricing-fineprint { color: #94a3b8; font-size: 12px; margin-top: 12px; }
.subscription-promise {
  margin-top: 18px; color: #16a34a; font-weight: 600;
}
.subscription-note {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 12px;
  background: #eff6ff;
  color: #1e3a8a;
}

.subscription-note strong {
  flex: 0 0 auto;
  color: #1d4ed8;
}
.subscription-note span {
  color: #334155;
  line-height: 1.5;
}

/* ===== Auth — interactions enrichies (login/register) ===== */
.auth-already {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 18px; padding: 12px 14px;
  background: var(--accent-light); border: 1px solid rgba(0, 191, 214, 0.32);
  border-radius: 10px; color: var(--text); font-size: 14px;
}
.auth-already strong { font-weight: 700; }
.auth-link-button {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--accent-hover); font-weight: 600; font-size: 14px; text-decoration: underline;
}
.auth-link-button:hover { color: var(--text); }

.auth-password-wrap {
  position: relative; display: block;
}
.auth-password-wrap input { padding-right: 44px; }
.auth-toggle-password {
  position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  z-index: 2;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 8px;
  cursor: pointer;
  color: #334155;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.auth-toggle-password:hover {
  background: #eef6ff;
  border-color: rgba(31, 111, 235, 0.28);
  color: #1d4ed8;
}
.auth-toggle-password:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.auth-eye {
  display: block;
  width: 18px;
  height: 18px;
}

.auth-card input[aria-invalid="true"] {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}
.auth-field-error {
  margin: 4px 2px 0; color: #b91c1c; font-size: 12.5px; font-weight: 600;
}

.auth-forgot {
  margin: 4px 2px 0; text-align: right; font-size: 13px;
}
.auth-forgot a { color: var(--accent-hover); font-weight: 600; text-decoration: none; }
.auth-forgot a:hover { text-decoration: underline; }

.auth-status-error { color: #b91c1c !important; }
.auth-status-success { color: #047857 !important; }

.auth-strength {
  margin: 2px 2px 0; display: grid; gap: 6px;
}
.auth-strength-bar {
  width: 100%; height: 6px; background: #e5e7eb; border-radius: 999px; overflow: hidden;
}
.auth-strength-fill {
  display: block; height: 100%; width: 0%; background: #ef4444;
  transition: width .2s ease, background .2s ease;
}
.auth-strength-fill[data-level="2"] { background: #f59e0b; }
.auth-strength-fill[data-level="3"] { background: #10b981; }
.auth-strength-fill[data-level="4"] { background: var(--green); }
.auth-strength-label { margin: 0; color: var(--text-muted); font-size: 12px; font-weight: 600; }

.auth-card .auth-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 6px;
  color: var(--text-secondary, #94a3b8);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}

.auth-card .auth-terms input[type="checkbox"] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--accent, #2563eb);
}

.auth-card .auth-terms a {
  color: var(--accent-hover, #1d4ed8);
  font-weight: 800;
}

/* ============ Pages statiques (CGU / À propos / Contact) ============ */
.static-page {
  width: min(var(--max), calc(100% - (var(--gutter) * 2)));
  margin: clamp(28px, 5vw, 64px) auto clamp(48px, 8vw, 96px);
  padding: 0;
}

.static-page-head {
  max-width: 880px;
  margin: 0 auto clamp(28px, 4vw, 48px);
  text-align: left;
}

.static-page-head h1 {
  max-width: 22ch;
  margin-top: 14px;
  font-family: var(--display);
  font-size: clamp(34px, 5.2vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--text);
}

.static-page-lead {
  margin-top: 18px;
  max-width: 62ch;
  color: var(--text-muted);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.65;
}

.page-highlights,
.page-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.page-highlights span,
.page-toc a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.page-highlights strong {
  margin-right: 6px;
  color: var(--text);
  font-weight: 800;
}

.page-toc a:hover {
  border-color: rgba(15, 23, 42, 0.24);
  color: var(--text);
}

.static-page-body {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 44px) clamp(20px, 3.5vw, 44px);
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
}

.static-page-body section + section {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px dashed var(--border);
}

.static-page-body h2 {
  font-family: var(--display);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 12px;
}

.static-page-body p {
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.7;
}

.static-page-body p + p {
  margin-top: 12px;
}

.static-page-body ul {
  margin: 14px 0 0;
  padding-left: 22px;
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.7;
}

.static-page-body ul li + li {
  margin-top: 8px;
}

.static-page-body a {
  color: var(--accent-hover);
  font-weight: 600;
  text-decoration: none;
}

.static-page-body a:hover {
  text-decoration: underline;
}

/* ============ Page Contact ============ */
.contact-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}

.contact-info {
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(6px);
}

.contact-info h2 {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text);
}

.contact-reasons {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.contact-reasons li {
  position: relative;
  padding-left: 20px;
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.55;
}

.contact-reasons li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-light);
}

.contact-reasons li strong {
  color: var(--text);
  font-weight: 700;
}

.contact-delay {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}

.contact-shortcut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 14px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.contact-shortcut:hover {
  border-color: rgba(15, 23, 42, 0.24);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.contact-form-card {
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
}

.contact-form-card h2 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--text);
}

.contact-form-card form {
  display: grid;
  gap: 6px;
}

.contact-form-card label {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
}

.contact-form-card input,
.contact-form-card select,
.contact-form-card textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.contact-form-card textarea {
  min-height: 140px;
  padding-top: 12px;
  resize: vertical;
  font-family: var(--sans);
  line-height: 1.5;
}

.contact-form-card input:focus,
.contact-form-card select:focus,
.contact-form-card textarea:focus {
  border-color: rgba(31, 111, 235, 0.55);
  box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.12);
}

.contact-form-card input[aria-invalid="true"],
.contact-form-card select[aria-invalid="true"],
.contact-form-card textarea[aria-invalid="true"] {
  border-color: #b91c1c;
  box-shadow: 0 0 0 4px rgba(185, 28, 28, 0.12);
}

.contact-form-card button[type="submit"] {
  margin-top: 16px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  background: #0f172a;
  color: #ffffff;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: background .15s, opacity .15s;
}

.contact-form-card button[type="submit"]:hover {
  background: #1e293b;
}

.contact-form-card button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 760px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .subscription-note {
    align-items: flex-start;
    flex-direction: column;
  }
  .account-header-actions {
    justify-content: flex-start;
    width: 100%;
  }
  .account-header-actions .btn-secondary {
    flex: 1 1 160px;
    text-align: center;
  }
}

/* ===== Responsive hardening global ===== */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

main,
section,
article,
aside,
header,
footer,
.header-inner,
.main-content,
.static-page,
.subscription-layout,
.auth-layout,
.account-shell,
.account-workspace,
.admin-shell,
.contact-grid,
.jobs-grid,
.job-card,
.pricing-card,
.auth-card,
.account-card,
.tracker-row,
.admin-detail {
  min-width: 0;
}

input,
select,
textarea,
button {
  max-width: 100%;
}

@media (max-width: 1180px) {
  .header-inner {
    gap: 12px;
  }

  .site-nav {
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    white-space: nowrap;
  }

  .jobs-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  }

  .admin-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .admin-detail {
    position: static;
    width: 100%;
  }
}

@media (max-width: 900px) {
  body {
    background-attachment: scroll;
  }

  body:not(.page-monitor) .header-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }

  body:not(.page-monitor) .logo-link {
    grid-column: 1;
  }

  body:not(.page-monitor) .header-actions {
    grid-column: 2;
    justify-self: end;
    min-width: 0;
  }

  body:not(.page-monitor) .site-nav {
    grid-column: 1 / -1;
    order: 3;
    width: 100%;
    margin-left: 0;
    padding-bottom: 2px;
  }

  .auth-layout,
  .subscription-layout,
  .job-detail-unlock,
  .static-page,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .subscription-layout,
  .auth-layout {
    padding-top: 34px;
    padding-bottom: 56px;
  }

  .pricing-grid,
  .account-cockpit,
  .account-impact-grid,
  .account-grid,
  .account-dashboard-grid,
  .admin-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tracker-row,
  .dashboard-tracking-row {
    grid-template-columns: 1fr;
  }

  .tracker-controls {
    grid-template-columns: 1fr 1fr;
  }

  .tracker-field-notes {
    grid-column: 1 / -1;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 14px;
  }

  body {
    font-size: 14px;
  }

  body:not(.page-monitor) .header-inner {
    padding: 8px var(--gutter) 10px;
  }

  body:not(.page-monitor) .logo-img {
    max-width: 126px;
    height: 38px;
  }

  body:not(.page-monitor) .header-actions {
    gap: 6px;
  }

  body:not(.page-monitor) .header-link,
  body:not(.page-monitor) .header-link-ghost {
    min-height: 36px;
    padding: 8px 11px;
    font-size: 12px;
    border-radius: 999px;
  }

  .site-nav {
    gap: 6px;
  }

  .nav-link {
    padding: 8px 6px;
    font-size: 13px;
  }

  .static-page,
  .subscription-layout,
  .auth-layout,
  .account-layout,
  .admin-shell,
  .main-content,
  .job-detail-page {
    width: 100%;
    padding-left: var(--gutter) !important;
    padding-right: var(--gutter) !important;
  }

  .static-page-head h1,
  .subscription-copy h1,
  .auth-copy h1,
  .job-detail-title,
  .account-topbar h1,
  .admin-header h1 {
    max-width: 100%;
    font-size: clamp(32px, 10vw, 46px);
    line-height: 1;
    overflow-wrap: anywhere;
  }

  .static-page-lead,
  .subscription-copy p,
  .auth-copy p,
  .job-detail-meta,
  .account-topbar p:not(.eyebrow) {
    max-width: 100%;
    font-size: 15px;
  }

  .page-highlights,
  .subscription-benefits,
  .pricing-grid,
  .account-cockpit,
  .account-impact-grid,
  .account-grid,
  .account-dashboard-grid,
  .admin-stats-grid,
  .admin-edit-grid,
  .tracker-controls,
  .footer-grid,
  .footer-meta,
  .alert-search-actions,
  .account-header-actions {
    grid-template-columns: 1fr;
  }

  .search-row,
  .filters-row {
    grid-template-columns: 1fr !important;
  }

  .btn-search,
  .btn-primary,
  .btn-secondary,
  .auth-card button[type="submit"],
  .contact-form-card button[type="submit"],
  .pricing-card .btn-primary,
  .pricing-card .btn-secondary,
  .pricing-card button {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .jobs-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .job-card {
    padding: 16px;
  }

  .job-card-header {
    gap: 12px;
  }

  .job-actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .job-actions .btn-apply {
    grid-column: 1 / -1;
    width: 100%;
  }

  .job-date {
    min-width: 0;
  }

  .job-detail-card,
  .auth-card,
  .pricing-card,
  .account-card,
  .tracker-section,
  .contact-form-card,
  .admin-token-panel,
  .admin-table-wrap,
  .admin-detail {
    border-radius: 14px;
    padding: 18px;
  }

  .tracker-row {
    padding: 14px;
    gap: 14px;
  }

  .tracker-row-main {
    gap: 10px;
  }

  .tracker-title,
  .tracker-company,
  .tracker-meta,
  .dashboard-tracking-title,
  .dashboard-tracking-main p,
  .account-list li > a,
  .account-list li .account-meta {
    white-space: normal;
  }

  .account-list li {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-list li > .btn-link,
  .account-list-actions {
    grid-row: auto;
    grid-column: 1;
    justify-content: flex-start;
  }

  .account-shell {
    display: block;
    width: 100%;
    margin: 0;
  }

  .account-sidebar {
    display: none;
  }

  .account-workspace {
    padding: 22px var(--gutter) 92px;
  }

  .account-bottom-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow-x: auto;
  }

  .account-bottom-nav a {
    min-width: 68px;
  }

  .admin-controls,
  .admin-token-row,
  .admin-actions,
  .admin-detail-head {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-table-wrap {
    overflow-x: auto;
    padding: 0;
  }

  .admin-table {
    min-width: 720px;
  }

  .admin-kv div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .footer-brand {
    max-width: 100%;
  }
}

@media (max-width: 420px) {
  body:not(.page-monitor) .header-inner {
    grid-template-columns: 1fr;
  }

  body:not(.page-monitor) .logo-link,
  body:not(.page-monitor) .header-actions,
  body:not(.page-monitor) .site-nav {
    grid-column: 1;
    justify-self: stretch;
  }

  body:not(.page-monitor) .header-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .company-logo-wrap,
  .tracker-logo,
  .dashboard-tracking-logo {
    flex-basis: auto;
  }

  .job-card-header {
    align-items: flex-start;
  }

  .job-title,
  .job-detail-title {
    overflow-wrap: anywhere;
  }

  .pagination {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 4px;
  }

  .page-btn {
    min-width: 36px;
    flex: 0 0 auto;
  }
}

/* Mobile header: stable two-row layout across all public pages. */
@media (max-width: 760px) {
  body:not(.page-monitor) .header {
    overflow: hidden;
  }

  body:not(.page-monitor) .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand actions"
      "nav nav";
    align-items: center;
    row-gap: 8px;
    column-gap: 10px;
    min-height: 0;
    padding: 8px var(--gutter) 9px;
  }

  body:not(.page-monitor) .logo-link {
    grid-area: brand;
    grid-column: 1;
    min-width: 0;
    justify-self: start;
    padding: 0;
  }

  body:not(.page-monitor) .logo {
    min-width: 0;
  }

  body:not(.page-monitor) .logo::before {
    content: none;
  }

  body:not(.page-monitor) .logo-img {
    display: block;
    width: auto;
    height: 36px;
    max-width: min(148px, 46vw);
    object-fit: contain;
  }

  body:not(.page-monitor) .header-tagline {
    display: none;
  }

  body:not(.page-monitor) .header-actions {
    grid-area: actions;
    grid-column: 2;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
  }

  body:not(.page-monitor) #navRegisterAction {
    display: none;
  }

  body:not(.page-monitor) .header-link,
  body:not(.page-monitor) .header-link-ghost {
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
  }

  body:not(.page-monitor) .site-nav {
    grid-area: nav;
    grid-column: 1 / -1;
    order: initial;
    justify-self: stretch;
    display: flex;
    width: 100%;
    max-width: 100%;
    gap: 6px;
    margin: 0;
    padding: 5px;
    overflow-x: auto;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  body:not(.page-monitor) .site-nav::-webkit-scrollbar {
    display: none;
  }

  body:not(.page-monitor) .nav-link {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 7px 11px;
    border-radius: 999px;
    color: #475569;
    font-size: 12.5px;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
  }

  body:not(.page-monitor) .nav-link::after {
    display: none;
  }

  body:not(.page-monitor) .nav-link:hover,
  body:not(.page-monitor) .nav-link.active {
    color: #0f172a;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  }
}

@media (max-width: 380px) {
  body:not(.page-monitor) .logo-img {
    height: 32px;
    max-width: 122px;
  }

  body:not(.page-monitor) .header-link,
  body:not(.page-monitor) .header-link-ghost {
    min-height: 32px;
    padding: 7px 10px;
  }

  body:not(.page-monitor) .nav-link {
    padding-inline: 10px;
    font-size: 12px;
  }
}

/* Account mobile bottom nav: keep it away from footer content. */
@media (max-width: 760px) {
  .page-account .account-workspace {
    padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px));
  }

  .page-account .account-bottom-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
    padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
    background: #ffffff;
  }

  .page-account .account-bottom-nav a {
    min-width: 0;
  }

  .page-account .site-footer {
    padding-bottom: calc(170px + env(safe-area-inset-bottom, 0px));
  }

  .page-account .footer-meta {
    margin-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }
}

/* ===== Login centered experience ===== */
.page-login {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 18%, rgba(31, 111, 235, 0.10), transparent 34%),
    linear-gradient(180deg, #f8fafc 0%, #eef4fb 100%);
}

.page-login .auth-layout {
  width: min(100%, 520px);
  min-height: calc(100vh - 84px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: clamp(32px, 6vh, 70px) var(--gutter);
}

.page-login .auth-copy {
  text-align: center;
}

.page-login .auth-copy .eyebrow {
  margin-bottom: 10px;
  color: #1d4ed8;
}

.page-login .auth-copy h1 {
  max-width: 100%;
  margin: 0 auto;
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.05;
  letter-spacing: 0;
}

.page-login .auth-copy p {
  max-width: 42ch;
  margin: 12px auto 0;
  font-size: 15px;
  line-height: 1.55;
}

.page-login .auth-free-callout {
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-login .auth-card {
  width: 100%;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
}

.page-login .auth-card h2 {
  margin-bottom: 20px;
  text-align: center;
  font-size: 24px;
}

.page-login .site-footer {
  display: none;
}

@media (max-width: 640px) {
  .page-login .auth-layout {
    min-height: calc(100vh - 126px);
    padding-top: 26px !important;
    padding-bottom: 34px !important;
  }

  .page-login .auth-card {
    padding: 22px;
    border-radius: 14px;
  }
}

/* ===== Pop-up de connexion / inscription (auth-modal.js) ===== */
.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 5vh 16px 24px;
  overflow-y: auto;
  background: rgba(8, 15, 30, 0.62);
  backdrop-filter: blur(3px);
}
.auth-modal-backdrop.is-open { display: flex; }
body.auth-modal-locked { overflow: hidden; }

.auth-modal-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 16px;
  padding: 30px 28px 26px;
  box-shadow: 0 24px 70px -12px rgba(8, 15, 30, 0.5);
  animation: authModalIn 0.18s ease-out;
}
@keyframes authModalIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
.auth-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
}
.auth-modal-close:hover { background: #f1f5f9; color: #334155; }
.auth-modal-brand { text-align: center; margin-bottom: 12px; }
.auth-modal-brand img { height: 30px; width: auto; }
.auth-modal-title { font-size: 21px; font-weight: 800; text-align: center; margin: 0 0 16px; color: var(--text, #0f172a); }
.auth-modal-community { margin: -7px 0 16px; color: #64748b; font-size: 13px; line-height: 1.45; text-align: center; }
.auth-modal-message {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(41, 216, 232, 0.1);
  border: 1px solid rgba(41, 216, 232, 0.28);
  color: #0e7490;
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
}
.auth-modal-google { width: 100%; justify-content: center; }
.auth-modal-divider { margin: 16px 0; }
.auth-modal-field { margin-bottom: 12px; display: flex; flex-direction: column; gap: 5px; }
.auth-modal-field label { font-size: 13px; font-weight: 700; color: #475569; }
.auth-modal-opt { font-weight: 500; color: #94a3b8; }
.auth-modal-field input {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  border: 1.5px solid rgba(15, 23, 42, 0.16);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-modal-field input:focus {
  border-color: rgba(41, 216, 232, 0.65);
  box-shadow: 0 0 0 4px rgba(41, 216, 232, 0.14);
}
.auth-modal-terms {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 12.5px;
  color: #51647b;
  line-height: 1.45;
  margin: 4px 0 12px;
  cursor: pointer;
}
.auth-modal-terms input { margin-top: 2px; width: 16px; height: 16px; flex-shrink: 0; accent-color: #29d8e8; }
.auth-modal-terms a { color: #1d4ed8; }
.auth-modal-forgot { margin: 2px 0 14px; text-align: right; }
.auth-modal-submit {
  width: 100%;
  min-height: 46px;
  border: none;
  border-radius: 11px;
  background: linear-gradient(135deg, #29d8e8, #36e0c4);
  color: #06222b;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.auth-modal-submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 24px -8px rgba(41, 216, 232, 0.6); }
.auth-modal-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.auth-modal-status { margin: 12px 0 0; text-align: center; font-size: 13.5px; min-height: 18px; }
.auth-modal-switch { margin: 16px 0 0; text-align: center; font-size: 13.5px; color: #51647b; }
.auth-modal-switch .auth-link-button { font-weight: 700; }
@media (max-width: 480px) {
  .auth-modal-backdrop { padding: 0; align-items: stretch; }
  .auth-modal-card { max-width: none; border-radius: 0; min-height: 100%; padding-top: 48px; }
}

/* Modale de confirmation custom (ui.js:customConfirm) — remplace confirm() */
.confirm-modal-backdrop { align-items: center; }
.confirm-modal-card { max-width: 380px; text-align: center; }
.confirm-modal-message { margin: 0 0 22px; color: var(--text, #0f172a); font-size: 14.5px; line-height: 1.5; }
.confirm-modal-actions { display: flex; gap: 10px; justify-content: center; }
.confirm-modal-actions button { flex: 1; }
