:root {
  --accent: #fb5c57;
  --accent-dark: #e04944;
  --tint: #fff0ef;
  --bg: #f6f5f1;
  --ink: #1b2733;
  --muted: #5a6472;
  --soft: #8a94a2;
  --line: #e7e6e0;
  --line-soft: #e2e1da;
  --chip: #f3f4f6;
  --white: #fff;
  --max: 1180px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: "Instrument Sans", system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

h1, h2, h3, .brand { font-family: "Bricolage Grotesque", sans-serif; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

::selection { background: var(--accent); color: #fff; }

.msym {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  display: inline-block;
}

@keyframes pulsering {
  0% { box-shadow: 0 0 0 0 rgba(251, 92, 87, .5); }
  70% { box-shadow: 0 0 0 7px rgba(251, 92, 87, 0); }
  100% { box-shadow: 0 0 0 0 rgba(251, 92, 87, 0); }
}

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 245, 241, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  height: 66px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -.02em;
  color: var(--ink);
}

.brand span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}

.brand em {
  font-style: normal;
  color: var(--accent);
}

.brand.light {
  background: transparent;
  color: #fff;
}
.brand.light em { color: #fff; }

.site-header nav {
  display: flex;
  gap: 2px;
  margin-left: 6px;
}

.site-header nav a {
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  padding: 9px 13px;
  border-radius: 8px;
  color: var(--muted);
}

.site-header nav a:hover,
.site-header nav a.is-active {
  color: var(--accent);
  background: var(--tint);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.link {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  padding: 9px 12px;
  border-radius: 8px;
}

.link:hover,
.link.is-active { color: var(--ink); }

.space-switcher {
  position: relative;
}

.space-switcher-trigger {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  padding: 9px 12px;
  border-radius: 8px;
  user-select: none;
}

.space-switcher-trigger::-webkit-details-marker { display: none; }

.space-switcher-trigger:hover,
.space-switcher[open] .space-switcher-trigger {
  color: var(--ink);
  background: var(--tint);
}

.space-switcher-trigger .msym { font-size: 18px; }

.space-switcher-caret {
  font-size: 18px !important;
  transition: transform .15s ease;
}

.space-switcher[open] .space-switcher-caret {
  transform: rotate(180deg);
}

.space-switcher-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 220px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 12px 32px rgba(20, 24, 33, .12);
  z-index: 60;
  display: grid;
  gap: 2px;
}

.space-switcher-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.space-switcher-item .msym {
  font-size: 20px;
  color: var(--muted);
}

.space-switcher-item:hover,
.space-switcher-item.is-active {
  background: var(--tint);
  color: var(--accent);
}

.space-switcher-item:hover .msym,
.space-switcher-item.is-active .msym {
  color: var(--accent);
}

.btn,
button {
  border: 0;
  border-radius: 11px;
  padding: 12px 18px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn.pill,
.pill { border-radius: 999px; }

.primary { background: var(--accent); color: #fff; }
.primary:hover { background: var(--accent-dark); color: #fff; }
.secondary,
.ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line-soft);
}
.btn.sm {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 9px;
}
.danger,
.btn.danger,
.btn-danger {
  background: #c0392b;
  color: #fff;
}
.danger:hover,
.btn.danger:hover,
.btn-danger:hover {
  background: #a93226;
  color: #fff;
}
.light { background: #fff; color: var(--ink); }
.ink { background: var(--ink); color: #fff; }

/* ─── Hero ─── */
.hero {
  padding: 62px 28px 48px;
  text-align: center;
  background: radial-gradient(120% 85% at 50% 0%, #fff0ef 0%, #f6f5f1 58%);
}

.hero.compact { padding: 60px 28px 40px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--tint);
  color: var(--accent);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 26px;
}

.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulsering 2s infinite;
}

.hero h1 {
  font-weight: 700;
  font-size: clamp(36px, 5.5vw, 54px);
  line-height: 1.03;
  letter-spacing: -.035em;
  max-width: 660px;
  margin: 0 auto 16px;
}

.hero p {
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 30px;
}

.searchbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
  padding: 6px 6px 6px 22px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(27, 39, 51, .1);
}

.searchbar .msym { font-size: 22px; color: var(--soft); flex: none; }

.searchbar input {
  flex: 1;
  border: 0;
  outline: none;
  box-shadow: none;
  font-size: 16px;
  padding: 12px 0;
  background: transparent;
  color: var(--ink);
  min-width: 0;
}

.searchbar button {
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.hero-tags {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

.chip {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid #e2e4e7;
  color: #3a4553;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
}

.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.chip.active:hover { color: #fff; }

/* ─── Sections ─── */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 52px 28px 4px;
}

.section.pad-lg { padding: 64px 28px 4px; }
.section.pad-md { padding: 60px 28px; }
.section.pad-bottom { padding-bottom: 72px; }

.section-band {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-band .section { padding: 64px 28px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.section-head.baseline { align-items: baseline; }

.eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-head h2,
.section-intro h2 {
  font-weight: 700;
  font-size: 32px;
  margin: 0;
  letter-spacing: -.02em;
}

.section-intro {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 32px;
}

.section-intro p {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 10px 0 0;
}

.link-accent {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  text-decoration: none;
  padding: 0;
}

.link-accent:hover { color: var(--accent-dark); }

.btn-outline-accent {
  background: #fff;
  border: 1px solid var(--line-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 18px;
  border-radius: 9px;
  white-space: nowrap;
  text-decoration: none;
}

.btn-outline-accent:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

/* ─── Expert cards ─── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

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

.expert-card {
  text-align: left;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 18px;
  padding: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .16s ease, border-color .16s ease;
}

.expert-card:hover {
  border-color: var(--ink);
  box-shadow: 0 14px 32px rgba(27, 39, 51, .1);
  color: inherit;
}

.expert-card .fav {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 22px;
  color: #d4d8dd;
}

.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--chip);
  color: var(--ink);
  font-weight: 700;
  font-size: 18px;
  overflow: hidden;
  flex: none;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar.sm { width: 58px; height: 58px; }
.avatar.lg {
  width: 104px;
  height: 104px;
  border-radius: 24px;
  font-size: 32px;
  background: #eceadf;
}

.expert-card .name {
  font-weight: 700;
  font-size: 16px;
  margin-top: 12px;
  color: var(--ink);
}

.expert-card .title {
  font-size: 13px;
  color: var(--muted);
  margin: 2px 0 12px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.tag {
  font-size: 11.5px;
  font-weight: 600;
  color: #3a4553;
  background: var(--chip);
  padding: 5px 10px;
  border-radius: 7px;
}

.tag.accent {
  color: var(--accent);
  background: var(--tint);
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 6px;
}

.tag.outline {
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line-soft);
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 6px;
}

.card-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f0f0f0;
  padding-top: 14px;
  font-size: 13px;
  font-weight: 700;
}

.card-meta .soft { color: var(--soft); font-weight: 400; }
.star { color: var(--accent); }
.star.gold { color: #e0a800; }

/* ─── Domain / service / CRM cards ─── */
.domain-card,
.service-card,
.crm-card,
.case-card,
.guide-card,
.plan-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  display: flex;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.domain-card {
  gap: 16px;
  align-items: flex-start;
  text-align: left;
  cursor: pointer;
}

.domain-card:hover,
.case-card:hover,
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(20, 26, 23, .08);
  border-color: #f0d3d1;
  color: inherit;
}

.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--tint);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.icon-circle .msym { font-size: 25px; color: var(--accent); }

.domain-card h3 {
  font-size: 16.5px;
  font-weight: 700;
  margin: 0 0 5px;
  letter-spacing: -.01em;
}

.domain-card p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 9px;
}

.domain-card .more {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
}

.crm-card {
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  cursor: pointer;
}

.crm-card:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(251, 92, 87, .09);
  color: inherit;
}

.crm-mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 17px;
  font-family: "Bricolage Grotesque", sans-serif;
}

.eu-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-dark);
  background: var(--tint);
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: .04em;
}

.crm-card .crm-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.crm-card .crm-origin {
  font-size: 12.5px;
  color: var(--soft);
  margin-top: 2px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  text-align: center;
}

.step-n {
  width: 50px;
  height: 50px;
  margin: 0 auto 18px;
  border-radius: 13px;
  background: var(--tint);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 21px;
}

.steps h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
}

.steps p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 auto;
  max-width: 300px;
}

.service-card {
  flex-direction: column;
  background: var(--bg);
  border-color: #ece9e0;
}

.service-card .icon-circle { margin-bottom: 16px; }

.service-card h3 {
  font-size: 16.5px;
  font-weight: 700;
  margin: 0 0 7px;
}

.service-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

.guide-card {
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.guide-card .thumb {
  height: 160px;
  background: #eceadf;
  overflow: hidden;
}

.guide-card .thumb img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.guide-card .body { padding: 20px; }

.guide-card .tag-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.guide-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 8px 0;
  line-height: 1.3;
}

.guide-card p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

/* ─── CTA band ─── */
.cta-band {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 28px 72px;
}

.cta-panel {
  background: var(--ink);
  border-radius: 20px;
  padding: 48px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  overflow: hidden;
  position: relative;
}

.cta-panel::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -40px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 92, 87, .4), transparent 70%);
}

.cta-panel > * { position: relative; }

.cta-panel h2 {
  font-weight: 700;
  font-size: 30px;
  margin: 0 0 10px;
  color: #fff;
  letter-spacing: -.02em;
}

.cta-panel p {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .72);
  margin: 0;
  max-width: 560px;
}

.cta-panel .btn { white-space: nowrap; }

/* ─── Page shell (annuaire, etc.) ─── */
.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 44px 28px 72px;
}

.page h1 {
  font-weight: 700;
  font-size: 40px;
  margin: 0 0 8px;
  letter-spacing: -.03em;
}

.page > .lead {
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 680px;
}

.static-body {
  font-size: 16px;
  line-height: 1.65;
  color: #3a4553;
  max-width: 720px;
}

.static-body h2 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.02em;
  margin: 2em 0 .65em;
}

.static-body h2:first-of-type {
  margin-top: 1.2em;
}

.static-body p,
.static-body ul {
  margin: 0 0 1em;
}

.static-body ul {
  padding-left: 1.25em;
}

.static-body li + li {
  margin-top: .35em;
}

.static-body a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.static-body a:hover {
  color: var(--accent);
}

.page-title {
  text-align: center;
  padding: 70px 24px 24px;
}

.page-title h1 {
  font-size: 40px;
  margin: 0 0 8px;
  letter-spacing: -.03em;
}

.page-title p {
  font-size: 16px;
  color: var(--muted);
  max-width: 660px;
  margin: 0 auto;
}

.search-inline {
  display: flex;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line-soft);
  padding: 7px;
  border-radius: 13px;
  max-width: 520px;
  margin-bottom: 20px;
}

.search-inline input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  padding: 10px 13px;
  background: transparent;
}

.filter-block { margin-bottom: 16px; }
.filter-block + .filter-block { margin-bottom: 24px; }

.filter-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--soft);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 9px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.result-count {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
}

.result-count strong { color: var(--ink); }

/* ─── Directory filters ─── */
.directory-page > .directory-head {
  margin-bottom: 28px;
}

.directory-page > .directory-head .lead {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
  max-width: 680px;
}

.directory-filters {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 22px;
  display: grid;
  gap: 16px;
  box-shadow: 0 10px 28px rgba(27, 39, 51, .04);
}

.directory-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 8px 8px 8px 16px;
}

.directory-search .msym {
  color: var(--soft);
  font-size: 22px;
  flex: none;
}

.directory-search input {
  flex: 1;
  min-width: 0;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent;
  font-size: 15px;
  padding: 10px 0;
  width: auto;
}

.directory-search .btn {
  flex: none;
  border-radius: 11px;
  padding: 11px 18px;
  white-space: nowrap;
}

.directory-filter-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.filter-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.filter-field-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.filter-field select {
  width: 100%;
  appearance: none;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238a94a2' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 11px 36px 11px 13px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}

.filter-field select:hover {
  border-color: #d0cfc8;
}

.filter-field select:focus {
  outline: 2px solid #ffd5d2;
  border-color: var(--accent);
  background-color: #fff;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
}

.active-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--tint);
  color: var(--accent-dark);
  border: 1px solid #ffd5d2;
  border-radius: 999px;
  padding: 6px 10px 6px 12px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  max-width: 100%;
}

.active-filter:hover {
  background: #ffe4e2;
  color: var(--accent-dark);
}

.active-filter span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.active-filter .msym {
  font-size: 16px;
  opacity: .75;
}

.clear-filters {
  margin-left: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
}

.clear-filters:hover { color: var(--accent); }

.directory-toolbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.directory-toolbar .result-count { margin-bottom: 0; }

.result-count-hint {
  color: var(--soft);
  font-weight: 500;
}

.empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 4px;
}

.empty-actions .btn { margin-top: 0; }

.directory-card {
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.directory-card:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(251, 92, 87, .1);
  color: inherit;
}

.directory-card .head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.directory-card .name {
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.directory-card .loc {
  font-size: 13px;
  color: var(--soft);
}

.directory-card .title {
  font-size: 14px;
  color: #3a4553;
  line-height: 1.45;
  margin-bottom: 14px;
  min-height: 40px;
}

.directory-card .card-meta {
  border-top-color: #f0efe9;
  font-size: 13.5px;
}

.directory-card .rate { color: var(--accent); }

/* ─── Expert profile ─── */
.back-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 0;
  margin-bottom: 16px;
  text-decoration: none;
}

.back-link:hover { color: var(--ink); }

.profile-top {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.profile-top h1 {
  font-weight: 700;
  font-size: 31px;
  margin: 0;
  letter-spacing: -.02em;
}

.verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--tint);
  padding: 4px 10px;
  border-radius: 999px;
}

.profile-top .role {
  font-size: 16.5px;
  color: #3a4553;
  margin: 10px 0;
}

.profile-facts {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
}

.profile-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 200px;
  margin-left: auto;
}

.profile-cta .price {
  text-align: right;
  margin-bottom: 4px;
}

.profile-cta .price strong {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 27px;
  color: var(--accent);
}

.profile-cta .price span {
  font-size: 14px;
  color: var(--soft);
}

.profile-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

.panel,
.sidebox {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}

.sidebox { padding: 24px; }

.panel + .panel,
.profile-main > .panel { margin-top: 0; }
.profile-main { display: flex; flex-direction: column; gap: 24px; }
.profile-side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 84px; }

.panel h2 {
  font-weight: 700;
  font-size: 19px;
  margin: 0 0 12px;
}

.panel p {
  font-size: 15px;
  line-height: 1.65;
  color: #3a4553;
  margin: 0;
}

.help-box {
  background: var(--tint);
  border: 1px solid #ffd9d7;
  border-radius: 16px;
  padding: 24px;
}

.help-box h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--accent-dark);
}

.help-box p {
  font-size: 13.5px;
  line-height: 1.5;
  color: #7a3e3c;
  margin: 0 0 14px;
}

.help-box .btn { width: 100%; }

.fact-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  margin-bottom: 13px;
}

.fact-row:last-child { margin-bottom: 0; }
.fact-row span:first-child { color: var(--soft); }
.fact-row span:last-child { font-weight: 600; text-align: right; }

/* ─── Comparatif ─── */
.table-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.table-scroll { overflow-x: auto; }

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 760px;
  background: #fff;
}

.compare-table thead tr { background: var(--bg); text-align: left; }

.compare-table th {
  padding: 15px 18px;
  font-weight: 700;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: .03em;
  text-transform: uppercase;
  border: 0;
}

.compare-table td {
  padding: 16px 18px;
  border-bottom: 1px solid #f0efe9;
  color: #3a4553;
}

.compare-table tbody tr:nth-child(even) { background: #fbfbf9; }

.notice {
  margin-top: 22px;
  background: var(--tint);
  border: 1px solid #ffd9d7;
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.notice p {
  font-size: 13.5px;
  line-height: 1.6;
  color: #7a3e3c;
  margin: 0;
}

/* ─── Comparatif interactif ─── */
.compare-page { padding-bottom: 48px; }

.compare-hero {
  display: grid;
  gap: 28px;
  margin-bottom: 28px;
}

.compare-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px 28px;
}

.compare-hero-copy { min-width: 0; flex: 1; }

.compare-propose-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.compare-propose-btn .msym { font-size: 18px; }

.compare-hero .eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.compare-hero h1 { margin-bottom: 10px; }
.compare-hero .lead { margin: 0; max-width: 640px; }

.compare-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}

.compare-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.compare-stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
}

.compare-stat strong {
  display: block;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -.03em;
}

.compare-stat span {
  font-size: 12.5px;
  color: var(--soft);
}

.compare-wizard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 22px;
  overflow: hidden;
}

.wizard-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.wizard-toggle .icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--tint);
  color: var(--accent-dark);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.wizard-toggle strong {
  display: block;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 16px;
}

.wizard-toggle span:not(.msym):not(.icon-circle) {
  font-size: 13px;
  color: var(--soft);
}

.wizard-chevron {
  margin-left: auto;
  transition: transform .2s ease;
  color: var(--soft);
}

.wizard-toggle.is-open .wizard-chevron { transform: rotate(180deg); }

.wizard-body {
  border-top: 1px solid var(--line);
  padding: 20px 22px 22px;
}

.wizard-q {
  margin: 0 0 14px;
  font-weight: 600;
  font-size: 15px;
}

.wizard-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wizard-options button {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
  transition: border-color .15s, background .15s, color .15s;
}

.wizard-options button:hover,
.wizard-options button.is-selected {
  border-color: var(--accent);
  background: var(--tint);
  color: var(--accent-dark);
}

.wizard-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.wizard-progress {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--soft);
  font-weight: 600;
}

.compare-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.compare-filters {
  position: sticky;
  top: 82px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.filters-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filters-head strong {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 15px;
}

.linkish {
  border: 0;
  background: none;
  color: var(--accent-dark);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.filter-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-block select,
.sort-field select,
.compare-filters .compare-search-input,
input.compare-search-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 13.5px;
  background: #fff;
  color: var(--ink);
  box-shadow: none;
  outline: none;
}

.compare-filters .compare-search-input,
input.compare-search-input {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

.compare-filters .compare-search-input:focus,
input.compare-search-input:focus,
.filter-block select:focus {
  outline: 2px solid #ffd5d2;
  border-color: var(--accent);
  box-shadow: none;
}

.filter-toggles {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  cursor: pointer;
}

.toggle-row input { accent-color: var(--accent); }

.compare-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sort-field { margin: 0; min-width: 160px; }

.view-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.view-btn {
  border: 0;
  background: transparent;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--soft);
  display: grid;
  place-items: center;
}

.view-btn.is-active {
  background: var(--ink);
  color: #fff;
}

.filters-mobile-btn {
  display: none;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.compare-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.crm-result-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}

.crm-result-card:hover {
  border-color: #f0c4c1;
  box-shadow: 0 10px 28px rgba(27, 39, 51, .06);
  transform: translateY(-2px);
}

.crm-result-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.crm-result-id { flex: 1; min-width: 0; }
.crm-result-id h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -.02em;
}
.crm-result-id p {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--soft);
}

.compare-check {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  font-weight: 700;
  color: var(--soft);
  cursor: pointer;
  flex-shrink: 0;
}

.compare-check input { accent-color: var(--accent); }

.crm-result-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--chip);
  color: var(--muted);
  padding: 3px 8px;
  border-radius: 6px;
}

.tag-badge.tag-fr {
  background: #eef5ff;
  color: #2f5f9f;
}

.crm-result-best {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.45;
  flex: 1;
}

.crm-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 13px;
  color: var(--muted);
}

.crm-result-meta strong { color: var(--ink); }

.crm-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding-top: 4px;
}

.crm-result-actions .btn { padding: 9px 14px; font-size: 13px; }
.crm-result-actions .ghost {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  text-decoration: none;
  cursor: pointer;
}

.crm-name-link {
  color: inherit;
  text-decoration: none;
}
.crm-name-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.crm-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  white-space: nowrap;
}
.crm-table-actions .linkish {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.crm-mark.sm { width: 34px; height: 34px; font-size: 13px; border-radius: 9px; }
.crm-mark.xs { width: 28px; height: 28px; font-size: 11px; border-radius: 8px; }

.crm-cell { display: flex; align-items: center; gap: 10px; }
.crm-cell-name { font-weight: 700; font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crm-cell-sub { font-size: 12px; color: var(--soft); }
.fw { font-weight: 600; }
.nowrap { white-space: nowrap; }
.soft { color: var(--soft); }

.compare-table-wrap { margin-top: 0; }

.compare-empty { text-align: center; padding: 48px 20px; }

.compare-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: rgba(27, 39, 51, .96);
  color: #fff;
  backdrop-filter: blur(10px);
  box-shadow: 0 -10px 30px rgba(27, 39, 51, .18);
}

.compare-bar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.compare-bar-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}

.compare-bar-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.1);
  border-radius: 999px;
  padding: 6px 10px 6px 6px;
  font-size: 13px;
  font-weight: 600;
}

.compare-bar-chip button {
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}

.compare-bar-actions { display: flex; gap: 10px; align-items: center; }
.compare-bar .ghost {
  color: #fff;
  border-color: rgba(255,255,255,.25);
  background: transparent;
}
body.has-compare-bar { padding-bottom: 84px; }

.crm-dialog {
  border: 0;
  border-radius: 18px;
  padding: 0;
  max-width: min(860px, calc(100vw - 32px));
  width: 100%;
  background: #fff;
  box-shadow: 0 30px 80px rgba(27, 39, 51, .28);
}

.crm-dialog::backdrop { background: rgba(27, 39, 51, .45); }

.crm-compare-dialog { max-width: min(1100px, calc(100vw - 24px)); }

.crm-dialog-inner { padding: 22px 24px 24px; }

.crm-dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.crm-dialog-title-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.crm-dialog-head h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -.02em;
}

.crm-dialog-head p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--soft);
}

.icon-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--muted);
  flex-shrink: 0;
}

.crm-dialog-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.crm-dialog-lead { margin: 0 0 16px; color: var(--muted); font-size: 14.5px; }

.crm-fact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.crm-fact-grid > div {
  background: var(--bg);
  border-radius: 12px;
  padding: 12px;
}

.crm-fact-grid span {
  display: block;
  font-size: 11px;
  color: var(--soft);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 700;
  margin-bottom: 4px;
}

.crm-fact-grid strong {
  font-size: 13.5px;
  font-weight: 600;
}

.crm-dialog-cols {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 22px;
  margin-bottom: 16px;
}

.crm-dialog-cols h3,
.crm-alts h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

.crm-dialog-cols ul {
  margin: 0 0 14px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13.5px;
}

.crm-alt-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

.crm-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.side-compare-scroll { overflow-x: auto; margin-bottom: 16px; }

.side-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 560px;
}

.side-compare-table th,
.side-compare-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f0efe9;
  text-align: left;
  vertical-align: top;
}

.side-compare-table thead th {
  background: var(--bg);
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 14px;
}

.side-compare-table tbody th {
  color: var(--soft);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  width: 140px;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .compare-cards { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .compare-layout { grid-template-columns: 1fr; }
  .compare-filters {
    position: static;
    display: none;
  }
  .compare-filters.is-open { display: flex; }
  .filters-mobile-btn { display: inline-flex; }
  .compare-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crm-fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crm-dialog-cols { grid-template-columns: 1fr; }
  .compare-bar-inner { flex-direction: column; align-items: stretch; padding: 12px 16px; }
}

@media (max-width: 640px) {
  .compare-stats { grid-template-columns: 1fr 1fr; }
  .wizard-options button { width: 100%; text-align: center; }
  .compare-hero-top {
    flex-direction: column;
    align-items: stretch;
  }
  .compare-propose-btn { align-self: flex-start; }
}

/* ─── Cases ─── */
.cases-hero {
  margin-bottom: 28px;
}

.cases-hero .lead {
  max-width: 640px;
}

.cases-browse {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas:
    "head head ."
    "situations situations filters";
  gap: 14px 20px;
  margin-bottom: 22px;
  align-items: start;
}

.cases-situations-head {
  grid-area: head;
  margin-bottom: 0;
  min-width: 0;
}

.cases-situations-head h2,
.cases-filters-head h2 {
  margin: 4px 0 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.cases-filters-head {
  margin-bottom: 2px;
}

.situation-grid {
  grid-area: situations;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
  margin: 0;
}

.situation-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 16px 16px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.situation-card .icon-circle {
  width: 42px;
  height: 42px;
  flex: none;
}

.situation-card .msym { font-size: 22px; }

.situation-card strong {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 2px;
  letter-spacing: -.01em;
}

.situation-card span:last-child {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

.situation-card:hover {
  border-color: #f0d3d1;
  box-shadow: 0 10px 24px rgba(20, 26, 23, .06);
  transform: translateY(-2px);
  color: inherit;
}

.situation-card.is-active {
  border-color: var(--accent);
  background: var(--tint);
  box-shadow: 0 0 0 1px var(--accent);
}

.cases-filters {
  grid-area: filters;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 18px 20px;
  margin-bottom: 0;
  display: grid;
  gap: 16px;
  box-shadow: 0 10px 28px rgba(27, 39, 51, .04);
  position: sticky;
  top: 88px;
  align-self: start;
  min-width: 0;
}

.cases-filters .chip {
  font-size: 12.5px;
  padding: 7px 11px;
}

.cases-filter-group {
  display: grid;
  gap: 8px;
}

.cases-filter-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--soft);
}

.cases-empty {
  grid-column: 1 / -1;
}

.case-card {
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.case-card-main {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 26px 26px 8px;
  text-decoration: none;
  color: inherit;
  flex: 1;
}

.case-card-main:hover { color: inherit; }

.case-card .case-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.case-card .eyebrow {
  font-size: 11px;
  letter-spacing: .05em;
  margin: 0;
}

.case-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 2px 0 0;
  letter-spacing: -.01em;
}

.case-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.case-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 4px;
  color: var(--soft);
}

.case-label.result { color: var(--accent-dark); }

.case-card p {
  font-size: 14px;
  line-height: 1.55;
  color: #3a4553;
  margin: 0 0 12px;
}

.case-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 26px 20px;
  border-top: 1px solid #f0efe9;
}

.case-foot-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.case-foot .tag.accent {
  text-decoration: none;
}

.case-foot .tag.accent:hover {
  background: #ffe4e2;
}

/* Case detail */
.case-detail-hero {
  margin-bottom: 28px;
}

.case-detail-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.case-detail-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -.03em;
  max-width: 18ch;
}

.case-detail-hero .lead {
  max-width: 620px;
  margin-bottom: 18px;
}

.case-detail-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.case-detail-facts span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.case-detail-facts .msym {
  font-size: 18px;
  color: var(--accent);
}

.case-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.case-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, .9fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 40px;
}

.case-detail-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.case-detail-side {
  position: sticky;
  top: 84px;
}

.case-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.case-summary h2 {
  margin: 0 0 4px;
  font-size: 18px;
}

.case-summary-list {
  margin: 0 0 8px;
  display: grid;
  gap: 14px;
}

.case-summary-list dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 4px;
}

.case-summary-list dd {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: #3a4553;
}

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

.case-steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.case-step-n {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.case-steps p {
  margin: 2px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: #3a4553;
}

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

.case-outcomes li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.5;
  color: #3a4553;
}

.case-outcomes .msym {
  color: var(--accent);
  font-size: 22px;
  margin-top: -1px;
}

.case-experts-section,
.case-related-section {
  margin: 8px 0 36px;
}

.case-experts-section .section-head h2,
.case-related-section .section-head h2 {
  font-size: 26px;
}

.case-experts-empty {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
}

.case-experts-empty p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.case-related-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.case-related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(20, 26, 23, .07);
  border-color: #f0d3d1;
  color: inherit;
}

.case-related-card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.case-related-card p {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.5;
  color: #3a4553;
  flex: 1;
}

.cta-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: none;
}

.cta-panel.compact {
  border-radius: 18px;
  padding: 36px 40px;
  margin-top: 28px;
}

.cta-panel.compact h2 { font-size: 24px; }
.cta-panel.compact::before { display: none; }

.cta-panel.compact .btn.secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .28);
}

.cta-panel.compact .btn.secondary:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

/* ─── Blog ─── */
.blog-page > .blog-head {
  margin-bottom: 28px;
}

.blog-page > .blog-head .lead {
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 22px;
  max-width: 680px;
}

.blog-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 640px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px 8px 8px 16px;
  box-shadow: 0 10px 28px rgba(27, 39, 51, .04);
}

.blog-search .msym {
  color: var(--soft);
  font-size: 22px;
  flex: none;
}

.blog-search input {
  flex: 1;
  min-width: 0;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent;
  font-size: 15px;
  padding: 10px 0;
  width: auto;
}

.blog-search .btn {
  flex: none;
  border-radius: 11px;
  padding: 11px 18px;
  white-space: nowrap;
}

.blog-suggestions,
.search-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(27, 39, 51, .12);
  padding: 6px;
  max-height: 360px;
  overflow: auto;
  text-align: left;
}

.blog-suggestion,
.search-suggestion {
  display: grid;
  gap: 2px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

.blog-suggestion:hover,
.blog-suggestion.is-active,
.search-suggestion:hover,
.search-suggestion.is-active {
  background: var(--bg);
  color: inherit;
}

.blog-suggestion-tag,
.search-suggestion-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
}

.blog-suggestion-title,
.search-suggestion-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.blog-suggestion-excerpt,
.search-suggestion-excerpt {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-suggestion-empty,
.search-suggestion-empty {
  padding: 14px;
  font-size: 14px;
  color: var(--muted);
}

.blog-results-meta {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.blog-results-meta a {
  color: var(--accent);
  font-weight: 600;
}

.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 40px 0 8px;
  flex-wrap: wrap;
}

.blog-page-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-page-link,
.blog-page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.blog-page-link:hover,
.blog-page-num:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.blog-page-num.is-current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.blog-page-link.is-disabled {
  opacity: .4;
  pointer-events: none;
}

.blog-page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  color: var(--soft);
}

.blog-featured {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  margin-bottom: 36px;
  text-decoration: none;
  color: inherit;
}

.blog-featured:hover { color: inherit; }

.blog-featured .thumb {
  min-height: 300px;
  background: #eceadf;
  overflow: hidden;
}

.blog-featured .thumb img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  display: block;
}

.blog-featured .body {
  padding: 38px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-featured .tag-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.blog-featured h2 {
  font-weight: 700;
  font-size: 28px;
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -.02em;
}

.blog-featured p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 18px;
}

.blog-meta {
  font-size: 13px;
  color: var(--soft);
}

.blog-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.blog-card:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(251, 92, 87, .08);
  color: inherit;
}

.blog-card .thumb {
  height: 170px;
  background: #eceadf;
  overflow: hidden;
}

.blog-card .thumb img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.blog-card .body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card .tag-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.blog-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 8px 0 0;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.blog-card .blog-meta {
  margin-top: auto;
  padding-top: 16px;
  font-size: 12.5px;
}

/* ─── Pricing / become expert ─── */
.plans {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 28px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.plan-card {
  position: relative;
  border-radius: 20px;
  padding: 30px 26px;
  flex-direction: column;
  border: 1px solid #ececec;
}

.plan-card.featured {
  border: 2px solid var(--accent);
  box-shadow: 0 20px 46px rgba(251, 92, 87, .16);
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.plan-card .plan-name {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -.01em;
}

.plan-card .plan-tagline {
  font-size: 13.5px;
  color: var(--muted);
  margin: 4px 0 18px;
  min-height: 38px;
}

.plan-card .plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}

.plan-card .plan-price strong {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 40px;
  letter-spacing: -.02em;
}

.plan-card .plan-price span,
.plan-card .plan-month {
  font-size: 15px;
  color: var(--soft);
  font-weight: 500;
}

.plan-card .plan-month {
  font-size: 12.5px;
  margin-bottom: 20px;
}

.plan-card .btn { width: 100%; }

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}

.plan-features div {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: #3a4553;
  line-height: 1.4;
}

.plan-features .msym {
  font-size: 19px;
  color: var(--accent);
  flex: none;
}

.plans-note {
  text-align: center;
  font-size: 13px;
  color: var(--soft);
  margin: 24px auto 0;
  max-width: 560px;
}

.perks {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 28px 72px;
}

.perks-panel {
  background: var(--ink);
  border-radius: 20px;
  padding: 44px 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  color: #fff;
}

.perks-panel .icon-circle {
  background: rgba(251, 92, 87, .18);
  margin-bottom: 14px;
}

.perks-panel .icon-circle .msym { color: #ff9d99; font-size: 23px; }

.perks-panel h3 {
  font-size: 16.5px;
  font-weight: 700;
  margin: 0 0 6px;
}

.perks-panel p {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .68);
  margin: 0;
}

/* ─── Footer ─── */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .7);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 52px 28px 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-inner.bottom {
  padding: 20px 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .5);
  grid-template-columns: none;
}

.footer-brand { max-width: 280px; }
.footer-brand .brand { margin-bottom: 14px; }

.footer-brand p {
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0;
}

.footer-brand a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col strong {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 5px;
}

.footer-col a {
  font-size: 13.5px;
  color: rgba(255, 255, 255, .7);
  text-decoration: none;
}

.footer-col a:hover { color: #fff; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); }

/* Legacy alias */
.footer { text-align: center; padding: 50px 24px; }

/* ─── Cards generic / dashboard ─── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.card,
.empty,
.log,
.expert-row {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}

.empty {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 10px;
  min-height: 280px;
  padding: 48px 32px;
  grid-column: 1 / -1;
}

.empty[hidden] {
  display: none !important;
}

.empty h2 { margin: 0; }
.empty p { margin: 0; color: var(--muted); max-width: 360px; }
.empty .btn { margin-top: 8px; }

.card { transition: .2s transform, .2s box-shadow; }
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(27, 39, 51, .08);
}

.featured { border-color: var(--accent); }

.dark-cta {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 70px 24px;
}

.two-col {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
}

.filters,
.form-grid { display: grid; gap: 12px; }

.filters input,
.filters select,
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  background: #fff;
  font: inherit;
  color: var(--ink);
}

.searchbar input,
.search-inline input {
  width: auto;
  border: 0 !important;
  border-radius: 0;
  padding: 12px 0;
  box-shadow: none;
  outline: none;
}

.search-inline input { padding: 10px 13px; }

input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
select:focus,
textarea:focus {
  outline: 2px solid #ffd5d2;
  border-color: var(--accent);
}

/* Empêche le style global des inputs de doubler la bordure du champ recherche */
.compare-filters input.compare-search-input {
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  background: #fff !important;
  padding: 10px 12px !important;
  outline: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.compare-filters input.compare-search-input:focus {
  outline: 2px solid #ffd5d2 !important;
  border-color: var(--accent) !important;
  box-shadow: none !important;
}

.searchbar input:focus,
.search-inline input:focus {
  outline: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

textarea { min-height: 120px; }

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.check-grid label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
}

.check-grid input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.result-grid { display: grid; gap: 14px; }

.expert-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.profile-hero {
  max-width: var(--max);
  margin: 36px auto 0;
  padding: 40px 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.dashboard,
.install {
  max-width: var(--max);
  margin: auto;
  padding: 54px 24px;
}

/* Auth */
.auth {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 72px;
  min-height: calc(100vh - 220px);
  background: radial-gradient(circle at 50% 0%, #fff 0%, #fff7f6 42%, var(--bg) 78%);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 36px 32px;
  box-shadow: 0 18px 48px rgba(27, 39, 51, .06);
}

.auth-card.wide { max-width: 560px; }

.auth-card h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.1;
  text-align: center;
}

.auth-lead {
  margin: 0 0 28px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}

.pending-card .auth-lead { margin-bottom: 20px; }

.pending-points {
  display: grid;
  gap: 12px;
  margin: 0 0 8px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  text-align: left;
}

.pending-points p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
}

.pending-points strong {
  color: var(--ink);
  font-weight: 700;
}

.auth-step {
  margin: 0 0 18px;
  text-align: center;
  font-size: 14px;
}

.auth-step a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

.auth-step a:hover { color: var(--accent); }

.role-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.role-page-head {
  text-align: center;
  margin-bottom: 36px;
}

.role-page-head .badge { margin-bottom: 18px; }

.role-page-head h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.05;
}

.role-page-head p {
  margin: 0 auto;
  max-width: 520px;
  color: var(--muted);
  font-size: 18px;
}

.role-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

.role-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 4px 0;
  border: 0;
  background: transparent;
}

.role-panel + .role-panel {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}

.role-tag {
  display: inline-block;
  width: fit-content;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
}

.role-panel h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.1;
}

.role-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  max-width: 36ch;
}

.role-panel ul {
  margin: 8px 0 18px;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font-size: 15px;
  flex: 1;
}

.role-panel li {
  position: relative;
  margin: 0;
  padding: 8px 0 8px 22px;
}

.role-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.role-panel .btn { align-self: flex-start; text-align: center; }

.role-page-foot {
  margin: 40px 0 0;
  text-align: center;
}

.role-page-foot a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

.role-page-foot a:hover { color: var(--accent); }

.muted { color: var(--muted); margin: 0 0 20px; }

.alert.onboarding {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0 0 22px;
  padding: 16px 18px;
  background: #e8f7ee;
  border-color: #b7e4c7;
  color: #0f6b38;
}

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

.auth-card .btn {
  width: 100%;
  margin-top: 4px;
  padding: 14px 18px;
}

.btn.google {
  width: 100%;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line-soft);
  padding: 14px 18px;
}

.btn.google:hover {
  background: #fafafa;
  border-color: var(--line);
  color: var(--ink);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-divider span { line-height: 1; }

.role-oauth {
  max-width: 360px;
  margin: 0 auto 32px;
}

.role-oauth .btn.google { width: 100%; }

.role-oauth .auth-divider { margin: 22px 0 0; }

.auth-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  text-align: center;
}

.auth-links a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

.auth-links a:hover { color: var(--accent); }

.auth-links .btn.primary,
.auth-links .btn.primary:hover {
  color: #fff;
}

.auth-links .sep { color: var(--line); }

.tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 22px;
  padding: 4px;
  background: var(--bg);
  border-radius: 14px;
}

.tabs a {
  flex: 1;
  padding: 10px 14px;
  border-radius: 10px;
  background: transparent;
  text-decoration: none;
  text-align: center;
  font-weight: 700;
  color: var(--muted);
}

.tabs .active {
  background: var(--ink);
  color: #fff;
}

.install { max-width: 720px; }
.wide { max-width: 820px; }

.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}

.kpis div,
.kpis .kpi-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}

.kpis strong {
  display: block;
  font-size: 32px;
  font-family: "Bricolage Grotesque", sans-serif;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: var(--ink);
}

.kpis span {
  color: var(--muted);
  font-size: 14px;
}

a.kpi-card {
  color: inherit;
  text-decoration: none;
  transition: .2s border-color, .2s box-shadow, .2s transform;
}

a.kpi-card:hover {
  border-color: #ffc7c4;
  box-shadow: 0 12px 28px rgba(27, 39, 51, .06);
  transform: translateY(-2px);
  color: inherit;
}

/* ─── Admin shell ─── */
.admin-body {
  background: #f3f2ed;
}

.admin-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 16px;
  background: #fff;
  border-right: 1px solid var(--line);
}

.admin-sidebar-brand {
  display: grid;
  gap: 6px;
  padding: 4px 10px 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.admin-sidebar-brand .brand {
  font-size: 18px;
}

.admin-sidebar-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--soft);
}

.admin-nav {
  display: grid;
  gap: 4px;
  flex: 1;
  overflow: auto;
  padding: 4px 0;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--ink);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  transition: .15s background, .15s color;
}

.admin-nav-link .msym {
  font-size: 20px;
  color: var(--soft);
}

.admin-nav-link:hover {
  background: var(--tint);
  color: var(--accent-dark);
}

.admin-nav-link:hover .msym {
  color: var(--accent);
}

.admin-nav-link.is-active {
  background: var(--ink);
  color: #fff;
}

.admin-nav-link.is-active .msym {
  color: #fff;
}

.admin-sidebar-foot {
  display: grid;
  gap: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.admin-sidebar-foot form { margin: 0; }

.admin-sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
}

.admin-sidebar-link .msym { font-size: 20px; }

.admin-sidebar-link:hover {
  background: var(--chip);
  color: var(--ink);
}

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

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(243, 242, 237, .92);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.admin-topbar-title strong {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.admin-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}

.admin-user-chip .msym {
  font-size: 18px;
  color: var(--accent);
}

.admin-maintenance {
  margin: 16px 32px 0;
}

.admin-content {
  padding: 28px 32px 48px;
  max-width: 1080px;
}

.admin-page {
  display: grid;
  gap: 22px;
}

.admin-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.admin-page-head h1 {
  margin: 0 0 6px;
  font-size: clamp(28px, 3vw, 34px);
  letter-spacing: -.03em;
  line-height: 1.1;
}

.admin-page-lead {
  margin: 0;
  color: var(--muted);
  max-width: 54ch;
}

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

.admin-list .expert-row,
.admin-list .log {
  margin-bottom: 0;
}

.admin-row-main {
  min-width: 0;
  flex: 1;
}

.admin-row-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 4px;
}

.admin-row-title strong {
  font-size: 16px;
}

.admin-row-meta {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.admin-row-actions form {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-reject-form input {
  width: 160px;
  min-width: 140px;
  padding: 10px 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--chip);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .01em;
  text-transform: lowercase;
}

.status-pill.status-pending,
.status-pill.status-pending_review {
  background: #fff4e5;
  color: #9a6700;
}

.status-pill.status-active,
.status-pill.status-published,
.status-pill.status-paid {
  background: #e8f7ee;
  color: #0f6b38;
}

.status-pill.status-rejected,
.status-pill.status-closed {
  background: var(--tint);
  color: var(--accent-dark);
}

.admin-empty {
  min-height: 220px;
}

.admin-quick h2,
.admin-panel .settings-group {
  margin: 0 0 8px;
  font-size: 20px;
}

.admin-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.admin-quick-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
  transition: .2s border-color, .2s box-shadow, .2s transform;
}

.admin-quick-card:hover {
  border-color: #ffc7c4;
  box-shadow: 0 12px 28px rgba(27, 39, 51, .06);
  transform: translateY(-2px);
  color: inherit;
}

.admin-quick-card .msym {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--tint);
  color: var(--accent);
  font-size: 22px;
  flex-shrink: 0;
}

.admin-quick-card strong {
  display: block;
  margin-bottom: 2px;
}

.admin-quick-card span:last-child {
  color: var(--muted);
  font-size: 13.5px;
}

.admin-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
}

.admin-panel + .admin-panel {
  margin-top: 4px;
}

.system-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.system-panel-head h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
}

.system-panel-head .settings-lead {
  margin: 0;
}

.system-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: none;
  justify-content: flex-end;
}

.system-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.system-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--bg);
}

.system-list.compact li {
  padding: 8px 12px;
  background: transparent;
}

.system-list .msym {
  color: var(--soft);
  font-size: 20px;
  flex: none;
}

.system-list strong {
  display: block;
  font-size: 14.5px;
}

.system-meta {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--muted);
}

.system-badge {
  margin-left: auto;
  flex: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--chip);
  color: var(--muted);
}

.system-badge.is-pending {
  background: var(--tint);
  color: var(--accent-dark);
}

.system-empty {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

.system-done {
  margin-top: 16px;
}

.system-done summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.system-done .system-list {
  margin-top: 10px;
}

@media (max-width: 720px) {
  .system-panel-head {
    flex-direction: column;
  }

  .system-actions {
    width: 100%;
    justify-content: stretch;
  }

  .system-actions .btn {
    width: 100%;
  }
}

.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-editor {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.55;
  min-height: 420px;
}

.admin-log {
  display: block;
}

.status-sent {
  background: #e8f7ef;
  color: #17663a;
}

.status-failed {
  background: #fdecec;
  color: #9f1f1f;
}

.status-skipped {
  background: var(--chip);
  color: var(--muted);
}

.admin-email-body {
  margin: 12px 0 0;
  padding: 14px;
  border-radius: 14px;
  background: #f8fafc;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
  overflow-x: auto;
  white-space: pre-wrap;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
}

td, th {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

/* ─── Article reading experience ─── */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 80;
  background: transparent;
  pointer-events: none;
}
.reading-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), #ff8a7a);
  transform-origin: left center;
}

.article {
  max-width: 1120px;
  padding-top: 28px;
}

.article-cover {
  margin-top: 28px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #eceadf;
  aspect-ratio: 1200 / 630;
}

.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-hero {
  margin: 0 0 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.article > .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.article .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.article .back-link .msym { font-size: 18px; }
.article .back-link:hover { color: var(--accent); }

.article-kicker {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.article-hero h1 {
  font-size: clamp(2rem, 4vw, 2.65rem);
  line-height: 1.18;
  letter-spacing: -.035em;
  margin: 0 0 16px;
  max-width: none;
}

.article-lead {
  margin: 0 0 22px;
  max-width: 62ch;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--muted);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--muted);
  font-size: 14px;
}

.article-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.article-meta-item .msym {
  font-size: 17px;
  color: var(--soft);
}

.article-layout {
  display: block;
}
.article-layout.has-toc {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.article-aside {
  position: sticky;
  top: 88px;
}

.article-toc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 16px 16px;
  max-height: calc(100vh - 120px);
  overflow: auto;
}

.article-toc-head {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 12px;
  padding: 0 6px;
}

.article-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: article-toc;
}

.article-toc li { margin: 0; }
.article-toc .toc-main { counter-increment: article-toc; }

.article-toc a {
  display: block;
  padding: 7px 8px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
  line-height: 1.4;
  font-weight: 500;
  border-left: 2px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.article-toc .toc-main a::before {
  content: counter(article-toc) ". ";
  color: var(--soft);
  font-weight: 700;
}
.article-toc a:hover {
  background: var(--tint);
  color: var(--accent-dark);
}
.article-toc a.is-active {
  background: var(--tint);
  color: var(--accent-dark);
  border-left-color: var(--accent);
  font-weight: 600;
}

.article-main { min-width: 0; max-width: 720px; }

.md,
.article-body {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--ink);
}

.article-body > * + * { margin-top: 1.25em; }
.article-body > * + h2 { margin-top: 2.4em; }
.article-body > * + h3 { margin-top: 1.9em; }
.article-body > * + .md-callout,
.article-body > * + .md-quote,
.article-body > * + .md-table-wrap { margin-top: 1.6em; }

.article-body > p:first-child {
  font-size: 1.125rem;
  line-height: 1.75;
  color: #2a3642;
}

.md h2,
.article-body h2 {
  font-size: clamp(1.55rem, 2.4vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: -.02em;
  margin: 0 0 .65em;
  padding-top: .85em;
  border-top: 1px solid var(--line);
  scroll-margin-top: 96px;
}
.article-body > h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.md h3,
.article-body h3 {
  font-size: 1.25rem;
  line-height: 1.35;
  letter-spacing: -.015em;
  margin: 0 0 .45em;
  scroll-margin-top: 96px;
}

.md p { margin: 0; }
.md strong { font-weight: 700; }
.md em { font-style: italic; }
.md a {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(251, 92, 87, .45);
}
.md a:hover { text-decoration-color: var(--accent); }

.md code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em;
  background: #efece4;
  padding: .12em .4em;
  border-radius: 6px;
}

.md ul, .md ol {
  margin: .2em 0 0;
  padding-left: 1.3em;
}
.md li + li { margin-top: .45em; }
.md li::marker { color: var(--accent); }
.md li { padding-left: .15em; }

.md-rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.4em 0;
}

.md-toc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px;
  margin: 8px 0 32px;
}
.md-toc > strong {
  display: block;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 18px;
  margin-bottom: 12px;
}
.md-toc ol {
  margin: 0;
  padding-left: 1.2em;
  counter-reset: toc;
  list-style: none;
}
.md-toc li {
  counter-increment: toc;
  margin-top: .45em;
}
.md-toc li::before {
  content: counter(toc) ". ";
  color: var(--accent);
  font-weight: 700;
}
.md-toc .toc-sub {
  margin-left: 1rem;
  font-size: .95em;
}
.md-toc .toc-sub::before {
  content: "– ";
  color: var(--soft);
  font-weight: 500;
}
.md-toc a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.md-toc a:hover { color: var(--accent); }

.md-quote,
.md-callout {
  margin: 1.6em 0;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-left-color: var(--accent);
  background: #fff;
  font-size: 1rem;
  line-height: 1.65;
  box-shadow: 0 1px 0 rgba(27, 39, 51, .02);
}
.md-callout-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.md-callout--note {
  border-left-color: #3b82f6;
  background: #f5f9ff;
}
.md-callout--note .md-callout-label { color: #2563eb; }
.md-callout--tip {
  border-left-color: #16a34a;
  background: #f3fbf6;
}
.md-callout--tip .md-callout-label { color: #15803d; }
.md-callout--warning {
  border-left-color: #d97706;
  background: #fffaf0;
}
.md-callout--warning .md-callout-label { color: #b45309; }
.md-callout--checklist {
  border-left-color: var(--accent);
  background: #fff7f6;
}
.md-callout--checklist .md-callout-label { color: var(--accent-dark); }

.md-table-wrap {
  overflow-x: auto;
  margin: 1.6em 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(27, 39, 51, .02);
}
.md-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}
.md-table th,
.md-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.md-table th {
  background: #f3f2ed;
  font-weight: 700;
  white-space: nowrap;
}
.md-table tr:last-child td { border-bottom: 0; }
.md-table tbody tr:nth-child(even) td { background: rgba(246, 245, 241, .55); }

.article-footer {
  margin-top: 56px;
  padding-top: 8px;
}

.article-cta {
  display: grid;
  gap: 22px;
  padding: 28px 28px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(251, 92, 87, .16), transparent 42%),
    linear-gradient(160deg, #1b2733 0%, #243442 100%);
  color: #fff;
}
.article-cta .eyebrow {
  color: rgba(255, 255, 255, .65);
  margin-bottom: 8px;
}
.article-cta h2 {
  margin: 0 0 8px;
  font-size: 1.45rem;
  letter-spacing: -.02em;
  color: #fff;
  border: 0;
  padding: 0;
}
.article-cta p {
  margin: 0;
  max-width: 48ch;
  color: rgba(255, 255, 255, .78);
  line-height: 1.6;
}
.article-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.article-cta .btn.light {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  border-color: rgba(255, 255, 255, .22);
}
.article-cta .btn.light:hover {
  background: rgba(255, 255, 255, .18);
  color: #fff;
}
.article .footer-back { margin-top: 22px; }

.alert {
  padding: 12px;
  background: #fff0ef;
  border: 1px solid #ffd5d2;
  border-radius: 12px;
  margin: 12px 0;
}

.alert.success {
  background: #e8f7ee;
  border-color: #b7e4c7;
  color: #0f6b38;
}

.alert a {
  font-weight: 700;
  color: var(--ink);
}

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

.admin-users-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin: 0 0 18px;
}

.admin-users-filters .filter-field {
  display: grid;
  gap: 6px;
  min-width: 180px;
  flex: 1;
}

.admin-users-filters .filter-field span {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.admin-users-filters input,
.admin-users-filters select {
  width: 100%;
}

.admin-role-form select {
  min-width: 150px;
  padding: 10px 12px;
}

.admin-role-locked {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.status-pill.status-role-admin {
  background: #efe8ff;
  color: #5b3cc4;
  text-transform: none;
}

.status-pill.status-role-moderator {
  background: #e8f1ff;
  color: #1d4f91;
  text-transform: none;
}

.status-pill.status-role-expert {
  background: #fff4e5;
  color: #9a6700;
  text-transform: none;
}

.status-pill.status-role-client {
  background: var(--chip);
  color: var(--muted);
  text-transform: none;
}

.settings-group {
  margin: 28px 0 8px;
  font-size: 22px;
}

.settings-subgroup {
  margin: 18px 0 4px;
  font-size: 16px;
  color: var(--muted);
  font-weight: 700;
}

.settings-lead,
.field-help {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
}

.field-help { margin-top: -4px; }

.env-form,
.install-form {
  display: grid;
  gap: 4px;
  margin-bottom: 36px;
}

.env-form label,
.install-form label,
.admin-page .form-grid > label,
.admin-panel .form-grid > label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
}

.env-form code,
.install-form code {
  font-weight: 500;
  font-size: 12px;
  color: var(--muted);
}

.env-form .btn,
.install-form .btn {
  margin-top: 12px;
  justify-self: start;
}

.setting-check {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
}

.setting-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.maintenance-page {
  text-align: center;
  min-height: 50vh;
  display: grid;
  place-content: center;
  gap: 10px;
}

.maintenance-kicker {
  margin: 0;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 13px;
}

.maintenance-page h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 56px);
}

.maintenance-page p {
  max-width: 480px;
  margin: 0 auto 10px;
  color: var(--muted);
}

.messages {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

.message {
  max-width: 760px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

.message small { color: var(--muted); }

@media (max-width: 960px) {
  .grid-3,
  .grid-4,
  .plans,
  .perks-panel,
  .blog-featured,
  .profile-layout,
  .footer-inner:not(.bottom) {
    grid-template-columns: 1fr 1fr;
  }

  .grid-4 { grid-template-columns: 1fr 1fr; }
  .blog-featured { grid-template-columns: 1fr; }

  .blog-search {
    flex-wrap: wrap;
    padding: 10px;
  }

  .blog-search .msym { display: none; }

  .blog-search input {
    flex: 1 1 100%;
    padding: 8px 6px;
  }

  .blog-search .btn { width: 100%; }

  .blog-pagination { gap: 8px; }

  .article-layout.has-toc {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .article-aside { position: static; }
  .article-toc {
    max-height: none;
    padding: 16px;
  }
  .article-toc ol {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 12px;
  }
  .article-main { max-width: none; }
  .article-layout.has-toc .article-aside { order: -1; }

  .directory-filter-bar {
    grid-template-columns: 1fr 1fr;
  }

  .cases-browse {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "situations"
      "filters";
  }

  .cases-filters {
    position: static;
  }

  .situation-grid {
    grid-template-columns: 1fr 1fr;
  }

  .case-detail-layout {
    grid-template-columns: 1fr;
  }

  .case-detail-side { position: static; }
}

@media (max-width: 800px) {
  .header-inner {
    height: auto;
    min-height: 66px;
    padding: 14px 18px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand actions"
      "nav nav";
    gap: 12px 16px;
  }

  .site-header .brand { grid-area: brand; }

  .site-header nav {
    grid-area: nav;
    overflow-x: auto;
    width: 100%;
    margin-left: 0;
    -webkit-overflow-scrolling: touch;
  }

  .site-header nav a { white-space: nowrap; }

  .header-actions {
    grid-area: actions;
    margin-left: 0;
    justify-self: end;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .steps,
  .plans,
  .perks-panel,
  .two-col,
  .profile-layout,
  .footer-inner:not(.bottom) {
    grid-template-columns: 1fr;
  }

  .hero { padding: 48px 18px 40px; }
  .hero h1 { font-size: 36px; }

  .searchbar {
    flex-direction: column;
    border-radius: 22px;
    padding: 14px;
    align-items: stretch;
  }

  .searchbar button { width: 100%; }

  .section,
  .page,
  .cta-band,
  .plans,
  .perks { padding-left: 18px; padding-right: 18px; }

  .directory-filters { padding: 14px; gap: 14px; }

  .directory-search {
    flex-wrap: wrap;
    padding: 10px;
  }

  .directory-search .msym { display: none; }

  .directory-search input {
    flex: 1 1 100%;
    padding: 8px 6px;
  }

  .directory-search .btn {
    width: 100%;
  }

  .directory-filter-bar {
    grid-template-columns: 1fr 1fr;
  }

  .empty-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .empty-actions .btn {
    width: 100%;
  }

  .situation-grid {
    grid-template-columns: 1fr;
  }

  .case-detail-actions,
  .case-foot,
  .cta-panel-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .case-detail-actions .btn,
  .case-foot-actions .btn,
  .cta-panel-actions .btn {
    width: 100%;
  }

  .case-foot-actions {
    width: 100%;
    justify-content: space-between;
  }

  .cases-filters { padding: 14px; }

  .article-toc ol { grid-template-columns: 1fr; }
  .article-cta { padding: 24px 20px; }
  .article-cta-actions .btn { width: 100%; justify-content: center; }
  .article-body { font-size: 1.02rem; }
  .md-callout, .md-quote { padding: 16px; }

  .section-head { flex-direction: column; align-items: flex-start; }

  .cta-panel,
  .cta-panel.compact { padding: 32px 24px; }

  .profile-cta { margin-left: 0; width: 100%; }
  .profile-cta .price { text-align: left; }
  .profile-side { position: static; }

  .expert-row,
  .profile-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .auth {
    min-height: auto;
    padding: 28px 16px 48px;
    align-items: flex-start;
  }

  .auth-card { padding: 28px 22px; }

  .role-page { padding: 32px 18px 56px; }
  .role-choice { grid-template-columns: 1fr; gap: 36px; }

  .role-panel + .role-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 36px;
  }

  .role-panel .btn {
    align-self: stretch;
    width: 100%;
  }

  .check-grid { grid-template-columns: 1fr; }

  .page-title { padding: 48px 18px 16px; }

  .dashboard,
  .install { padding: 36px 18px; }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 16px;
  }

  .admin-sidebar-brand {
    padding-bottom: 14px;
    margin-bottom: 4px;
  }

  .admin-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .admin-nav-link {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .admin-sidebar-foot {
    display: none;
  }

  .admin-topbar,
  .admin-content,
  .admin-maintenance {
    padding-left: 18px;
    padding-right: 18px;
  }

  .admin-content { padding-top: 22px; }

  .admin-page-head {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-quick-grid {
    grid-template-columns: 1fr;
  }

  .admin-row-actions {
    width: 100%;
  }

  .admin-reject-form {
    flex: 1;
  }

  .admin-reject-form input {
    flex: 1;
    width: auto;
  }

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

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.7fr);
  gap: 32px;
  align-items: start;
  max-width: 880px;
  margin-top: 8px;
}

.contact-form { max-width: none; }

.contact-aside {
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.contact-aside strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--accent-dark);
}

.contact-aside p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
}

.contact-aside a { color: var(--ink); font-weight: 600; }

.propose-crm-page .eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
}

.propose-crm-page .eyebrow a {
  color: var(--soft);
  text-decoration: none;
  font-weight: 600;
}

.propose-crm-page .eyebrow a:hover { color: var(--ink); }

.propose-crm-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.propose-crm-form label.full { grid-column: 1 / -1; }

.propose-crm-form label span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
}

.propose-crm-form input,
.propose-crm-form select,
.propose-crm-form textarea {
  font-weight: 500;
  color: var(--ink);
}

.propose-crm-form input::placeholder,
.propose-crm-form textarea::placeholder {
  color: var(--soft);
  opacity: 1;
  font-weight: 400;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* —— Fiche CRM SEO —— */
.crm-show-page {
  padding-top: 28px;
  padding-bottom: 64px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  min-width: 0;
}
.crm-show-page > .panel,
.crm-show-page > .crm-show-grid,
.crm-show-page > .crm-show-facts,
.crm-show-page > .crm-show-next {
  margin: 0;
}
.crm-show-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  font-size: 13px;
  color: var(--soft);
}
.crm-show-breadcrumb a {
  color: var(--soft);
  text-decoration: none;
}
.crm-show-breadcrumb a:hover { color: var(--accent); }
.crm-show-breadcrumb .msym {
  font-size: 16px;
  opacity: .7;
}
.crm-show-breadcrumb [aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.crm-show-hero {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.crm-show-identity {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  min-width: 0;
  flex: 1 1 320px;
}
.crm-show-identity-copy {
  min-width: 0;
  flex: 1;
}
.crm-show-identity h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.crm-show-identity .lead {
  margin: 0 0 14px;
  max-width: 52ch;
  color: var(--soft);
  line-height: 1.55;
  overflow-wrap: break-word;
}
.crm-mark.lg {
  width: 64px;
  height: 64px;
  font-size: 22px;
  border-radius: 16px;
  flex-shrink: 0;
}
.crm-show-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: min(100%, 200px);
  flex: 0 0 auto;
}
.crm-show-cta .btn,
.crm-show-cta .ghost {
  width: 100%;
  justify-content: center;
  text-align: center;
  white-space: normal;
}
.crm-show-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.crm-show-badges .badge {
  margin-bottom: 0;
  border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  background: #fff;
  color: var(--ink);
}
.crm-show-badges .badge.ok {
  background: color-mix(in srgb, #2f9e6a 14%, #fff);
  color: #1f6b48;
  border-color: color-mix(in srgb, #2f9e6a 28%, transparent);
}
.crm-show-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.crm-show-fact-group {
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  border-radius: 16px;
  padding: 24px;
  min-width: 0;
}
.crm-show-fact-group h2 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--soft);
}
.crm-show-fact-group dl {
  margin: 0;
  display: grid;
  gap: 12px;
}
.crm-show-fact-group dl > div {
  display: grid;
  gap: 3px;
  padding-bottom: 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 6%, transparent);
  min-width: 0;
}
.crm-show-fact-group dl > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.crm-show-fact-group dt {
  font-size: 12px;
  color: var(--soft);
  font-weight: 600;
}
.crm-show-fact-group dd {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.crm-show-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  min-width: 0;
  align-items: start;
}
.crm-show-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.crm-show-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.crm-show-list li {
  position: relative;
  padding-left: 1.15rem;
  line-height: 1.5;
  overflow-wrap: break-word;
}
.crm-show-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.crm-show-list-plus li::before { background: #2f9e6a; }
.crm-show-list-minus li::before { background: #c45c4a; }
.crm-show-empty { margin: 0; color: var(--soft); }
.crm-show-hint {
  margin: 14px 0 0;
  font-size: 13.5px;
  color: var(--soft);
}
.crm-show-section-lead {
  margin: -4px 0 16px;
  color: var(--soft);
  max-width: 62ch;
}
.crm-show-more { margin-top: 16px; }
.crm-show-experts-empty .btn { margin-top: 8px; width: fit-content; }
.crm-show-page .tag-row,
.crm-show-page .crm-alt-row {
  margin-bottom: 0;
}
.crm-show-faq-list {
  display: grid;
  gap: 10px;
}
.crm-show-faq-item {
  border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  border-radius: 12px;
  padding: 0 16px;
  background: color-mix(in srgb, var(--ink) 2%, #fff);
}
.crm-show-faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 0;
  list-style: none;
  overflow-wrap: break-word;
}
.crm-show-faq-item summary::-webkit-details-marker { display: none; }
.crm-show-faq-item summary::after {
  content: "expand_more";
  font-family: "Material Symbols Outlined", sans-serif;
  float: right;
  font-weight: 400;
  color: var(--soft);
}
.crm-show-faq-item[open] summary::after { content: "expand_less"; }
.crm-show-faq-item p {
  margin: 0 0 14px;
  padding-right: 28px;
  color: #3a4553;
  line-height: 1.65;
  overflow-wrap: break-word;
}
.crm-show-guide-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.crm-show-guide-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 18px 18px 20px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  text-decoration: none;
  color: inherit;
  min-width: 0;
  background: #fff;
  transition: border-color .15s ease;
  height: 100%;
}
.crm-show-guide-card:hover {
  border-color: var(--accent);
  color: inherit;
}
.crm-show-guide-card strong {
  font-size: 15px;
  line-height: 1.35;
  overflow-wrap: break-word;
}
.crm-show-guide-card > span:last-child {
  font-size: 13.5px;
  color: var(--soft);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.crm-show-next {
  display: grid;
  gap: 18px;
  padding: 28px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, #fff), #fff 55%),
    #fff;
  border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
}
.crm-show-next-copy h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}
.crm-show-next-copy p {
  margin: 0;
  max-width: 58ch;
  color: #3a4553;
  line-height: 1.6;
}
.crm-show-next-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.crm-show-cite-inline {
  margin: 0;
  font-size: 13px;
  color: var(--soft);
  display: grid;
  gap: 6px;
}
.crm-show-cite-inline code {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--ink) 4%, #fff);
  font-size: 12.5px;
  overflow-wrap: anywhere;
  word-break: break-all;
}
.expert-mini-list {
  display: grid;
  gap: 10px;
}
.expert-mini {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.expert-mini:hover {
  border-color: var(--accent);
  color: inherit;
}
.expert-mini strong,
.expert-mini span {
  overflow-wrap: break-word;
}
.expert-mini span { color: var(--soft); font-size: 13px; }
@media (max-width: 960px) {
  .crm-show-facts { grid-template-columns: 1fr; }
  .crm-show-guide-list { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .crm-show-grid { grid-template-columns: 1fr; }
  .crm-show-cta { width: 100%; flex: 1 1 100%; }
}

/* —— Profil expert (édition) —— */
.profile-edit .muted { max-width: 52ch; }

.profile-edit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.7fr);
  gap: 32px;
  align-items: start;
  margin-top: 8px;
}

.profile-form {
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.profile-form > label,
.profile-form .availability-fieldset {
  display: grid;
  gap: 6px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  padding: 0;
  border: 0;
  min-width: 0;
}

.profile-form > label[hidden],
.profile-form [data-tjm-field][hidden] {
  display: none !important;
}

.profile-form > label.full,
.profile-form .availability-fieldset.full,
.profile-form .profile-form-row,
.profile-form .profile-photo-field,
.profile-form .full-btn {
  grid-column: 1 / -1;
}

.profile-form > label span,
.profile-form .availability-fieldset legend {
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  padding: 0;
}

.profile-form input::placeholder,
.profile-form textarea::placeholder {
  color: var(--soft);
  opacity: 1;
  font-weight: 400;
}

.profile-form input,
.profile-form select,
.profile-form textarea {
  font-weight: 500;
}

.field-hint {
  margin: 0;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.4;
}

.field-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
}

.char-count {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--soft);
  white-space: nowrap;
}

.char-count.is-near { color: #b45309; }
.char-count.is-full { color: #b42318; }

.profile-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

.profile-form-row > label {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 6px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  min-width: 0;
}

.profile-form-row > label > span {
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
}

.profile-form-row .field-hint {
  min-height: 1.4em;
}

.input-with-suffix {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.input-with-suffix input {
  border: 0 !important;
  border-radius: 0 !important;
  outline: none !important;
  box-shadow: none !important;
}

.input-with-suffix:focus-within {
  outline: 2px solid #ffd5d2;
  border-color: var(--accent);
}

.input-suffix {
  display: grid;
  place-items: center;
  padding: 0 14px;
  background: var(--bg);
  color: var(--soft);
  font-size: 13px;
  font-weight: 700;
  border-left: 1px solid var(--line);
  white-space: nowrap;
}

.profile-photo-field {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.profile-photo-preview {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  font-size: 28px;
}

.profile-photo-meta {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.profile-photo-label {
  display: grid;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.profile-photo-label input[type="file"] {
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 500;
}

.city-autocomplete { position: relative; }

.city-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(27, 39, 51, .12);
  padding: 4px;
  max-height: 240px;
  overflow: auto;
}

.city-suggestion {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 500;
}

.city-suggestion:hover,
.city-suggestion.is-active {
  background: var(--bg);
}

.city-suggestion small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.profile-edit-aside {
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  position: sticky;
  top: 96px;
}

.profile-edit-aside strong {
  display: block;
  margin: 0 0 8px;
  font-size: 15px;
}

.profile-edit-aside strong + p,
.profile-edit-aside ul {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
}

.profile-edit-aside ul {
  padding-left: 1.1em;
}

.profile-edit-aside li { margin-bottom: 6px; }

.profile-edit-aside p:last-child { margin-bottom: 0; }

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.profile-links a {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.profile-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

@media (max-width: 900px) {
  .profile-edit-layout {
    grid-template-columns: 1fr;
  }

  .profile-edit-aside {
    position: static;
    order: -1;
  }

  .profile-form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .profile-photo-field {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* —— Tunnel profil expert —— */
.profile-edit-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.profile-edit-head h1 { margin-bottom: 6px; }

.profile-completion {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.profile-completion-ring {
  --pct: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--accent) calc(var(--pct) * 1%), var(--bg) 0);
  flex-shrink: 0;
}

.profile-completion-ring span {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
}

.profile-completion-meta {
  display: grid;
  gap: 2px;
}

.profile-completion-meta strong {
  font-size: 14px;
}

.profile-completion-meta span {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
}

.profile-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 20px 0 28px;
}

.profile-step {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: border-color .15s, box-shadow .15s;
  min-width: 0;
}

.profile-step:hover { border-color: #f0b4b1; }

.profile-step.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #ffd5d2;
}

.profile-step-n {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--bg);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
  color: var(--ink);
  margin-top: 1px;
}

.profile-step.is-active .profile-step-n {
  background: var(--accent);
  color: #fff;
}

.profile-step-text {
  display: grid;
  gap: 1px;
  min-width: 0;
  text-align: left;
  justify-items: start;
}

.profile-step-text strong {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.profile-step-text small {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.profile-panel {
  grid-column: 1 / -1;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.profile-panel.is-active {
  display: grid;
}

.profile-panel-intro {
  grid-column: 1 / -1;
  margin-bottom: 4px;
}

.profile-panel-intro h2 {
  margin: 0 0 4px;
  font-size: 22px;
}

.profile-panel-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
}

.profile-panel > label,
.profile-panel .availability-fieldset,
.profile-panel .taxonomy-fieldset,
.profile-panel .chip-picker,
.profile-panel .strengths-editor {
  display: grid;
  gap: 6px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  min-width: 0;
}

.profile-panel .profile-photo-field {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  min-width: 0;
}

.profile-panel > label.full,
.profile-panel .availability-fieldset,
.profile-panel .taxonomy-fieldset,
.profile-panel .chip-picker,
.profile-panel .strengths-editor,
.profile-panel .profile-photo-field,
.profile-panel .profile-form-row,
.profile-panel .profile-panel-intro,
.profile-panel .proof-section {
  grid-column: 1 / -1;
}

.profile-panel .profile-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
  margin: 0;
  min-width: 0;
}

.profile-panel .profile-form-row.is-single {
  grid-template-columns: 1fr;
}

.profile-panel .profile-form-row > label {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 6px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  min-width: 0;
  align-content: start;
}

.profile-panel .profile-form-row > label[hidden],
.profile-panel [data-tjm-field][hidden] {
  display: none !important;
}

.profile-panel .profile-form-row .field-hint {
  min-height: 1.4em;
}

.profile-panel .input-with-suffix,
.profile-panel .profile-form-row select,
.profile-panel .profile-form-row input:not([type="checkbox"]):not([type="file"]) {
  min-height: 46px;
}

.profile-panel > label span,
.profile-panel .availability-fieldset legend,
.profile-panel .taxonomy-fieldset legend {
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  padding: 0;
}

.chip-picker-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.crm-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.crm-selected[hidden] {
  display: none !important;
}

.crm-selected-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 12px;
  border: 1px solid #f0b4b1;
  border-radius: 999px;
  background: #fff8f7;
  max-width: 100%;
}

.crm-selected-chip-text {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}

.crm-selected-chip-text strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.crm-selected-chip-text small {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent-dark);
  white-space: nowrap;
}

.crm-selected-remove {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.crm-selected-remove:hover {
  background: #ffe4e2;
  color: var(--accent-dark);
}

.chip-search {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-weight: 500;
  background: #fff;
}

.chip-counter {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

.taxonomy-fieldset legend .chip-counter {
  margin-left: 8px;
  font-weight: 700;
}

.crm-level-list {
  display: grid;
  gap: 8px;
  max-height: 420px;
  overflow: auto;
  padding: 4px 2px 4px 0;
}

.crm-level-row {
  display: grid;
  grid-template-columns: 1fr minmax(140px, 180px);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-weight: 500;
  cursor: pointer;
}

.crm-level-row.is-selected {
  border-color: #f0b4b1;
  background: #fff8f7;
}

.crm-level-row[hidden] { display: none !important; }

.crm-level-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.crm-level-check strong {
  font-size: 14px;
  font-weight: 700;
}

.crm-level-row select {
  margin: 0;
  font-weight: 600;
}

.crm-level-row select:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.taxonomy-fieldset {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.taxonomy-fieldset .chip-search {
  margin-bottom: 12px;
}

.taxonomy-grid {
  max-height: 280px;
  overflow: auto;
  padding-right: 4px;
}

.taxonomy-grid label[hidden] { display: none !important; }

.strengths-editor {
  gap: 12px !important;
}

.strength-row {
  display: grid;
  gap: 6px;
}

.strength-row[hidden] { display: none !important; }

.strength-add {
  justify-self: start;
}

.proof-section {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.proof-section + .proof-section {
  margin-top: 4px;
}

.proof-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.proof-section-head h3 {
  margin: 0 0 2px;
  font-size: 17px;
}

.proof-section-sub {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.4;
}

.proof-slot-meter {
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.proof-slot-meter strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}

.proof-empty {
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  text-align: center;
  background: var(--bg);
}

.proof-empty[hidden],
.proof-item[hidden],
.proof-summary[hidden],
.proof-editor[hidden] {
  display: none !important;
}

.proof-items {
  display: grid;
  gap: 8px;
}

.proof-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  overflow: hidden;
}

.proof-item.is-editing {
  border-color: #f0b4b1;
  background: #fff;
}

.proof-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
}

.proof-summary-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.proof-summary-text strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.proof-summary-text small {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.proof-summary-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.proof-mini-btn {
  padding: 7px 12px !important;
  font-size: 13px !important;
}

.proof-editor {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.proof-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.proof-card-top strong {
  font-size: 13px;
  font-weight: 800;
}

.proof-remove {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.proof-remove:hover {
  color: var(--accent-dark);
}

.proof-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.proof-editor .profile-form-row {
  grid-column: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.proof-editor > label.full,
.proof-editor .profile-form-row > label {
  display: grid;
  gap: 6px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.proof-editor > label span,
.proof-editor .profile-form-row > label > span {
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 560px) {
  .proof-editor .profile-form-row {
    grid-template-columns: 1fr;
  }

  .proof-summary {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Fiche publique preuves */
.experience-list,
.testimonial-list,
.reference-list {
  display: grid;
  gap: 14px;
}

.experience-item,
.testimonial-item,
.reference-item {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.experience-item:last-child,
.testimonial-item:last-child,
.reference-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.experience-item h3,
.testimonial-item h3,
.reference-item h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.experience-meta,
.testimonial-meta,
.reference-meta {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 8px;
}

.testimonial-quote {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
}

.testimonial-rating {
  color: #d4a017;
  font-weight: 700;
  letter-spacing: 1px;
}

.profile-wizard-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.profile-wizard-actions-right {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}

.completion-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}

.completion-checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
}

.completion-checklist li.is-done {
  color: var(--ink);
  font-weight: 600;
}

.completion-check {
  width: 18px;
  text-align: center;
  color: var(--soft);
  font-weight: 800;
}

.completion-checklist li.is-done .completion-check {
  color: #17803d;
}

/* Fiche publique enrichie */
.profile-strengths {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-strength-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.crm-skill-list {
  display: grid;
  gap: 10px;
}

.crm-skill-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.crm-skill-row strong {
  font-size: 14px;
}

.crm-skill-level {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-dark);
  background: #fff1f0;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .profile-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .profile-steps {
    grid-template-columns: 1fr 1fr;
  }

  .profile-step-text small { display: none; }

  .crm-level-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .profile-steps {
    grid-template-columns: 1fr;
  }

  .profile-wizard-actions-right {
    width: 100%;
  }

  .profile-wizard-actions-right .btn {
    flex: 1;
  }
}

/* ─── RGPD ─── */
.check-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}
.check-line input {
  margin-top: 3px;
  flex: none;
}
.check-line a { color: var(--ink); }
.proof-consent {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}
.gdpr-hub-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 8px;
}
.gdpr-panels {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}
.gdpr-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  background: #fff;
}
.gdpr-panel h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}
.gdpr-panel p { margin: 0 0 12px; color: var(--muted); }
.gdpr-panel--danger {
  border-color: rgba(192, 57, 43, .35);
  background: #fff5f4;
  box-shadow: inset 3px 0 0 #c0392b;
}
.gdpr-panel--danger h2 {
  color: #8e241c;
}
.gdpr-meta {
  font-size: 13px;
  color: var(--muted);
}
.gdpr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.gdpr-delete-form {
  margin-top: 12px;
  max-width: 420px;
}
.gdpr-delete-form .btn-danger {
  width: 100%;
  margin-top: 4px;
  padding: 14px 18px;
  font-weight: 700;
}
.gdpr-profile-link {
  margin-top: 24px;
  font-size: 14px;
}
.gdpr-admin-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.gdpr-admin-panels .admin-panel + .admin-panel { margin-top: 0; }
.admin-section-title {
  margin: 28px 0 12px;
  font-size: 1.1rem;
}
.cookie-notice {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(27, 39, 51, .12);
}
.cookie-notice p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}
.cookie-notice a { color: var(--ink); }
@media (max-width: 640px) {
  .gdpr-hub-head { flex-direction: column; }
  .cookie-notice {
    flex-direction: column;
    align-items: stretch;
  }
}
