/* Merchant layout */
.layout-merchant .merchant-wrap {
  display: grid;
  gap: 0;
  min-height: 100dvh;
}
@media (min-width: 900px) {
  .layout-merchant .merchant-wrap {
    grid-template-columns: 240px 1fr;
  }
}

.merchant-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
}
@media (min-width: 900px) {
  .merchant-nav {
    border-bottom: none;
    border-right: 1px solid var(--border);
    padding: 24px 16px;
    position: sticky;
    top: 0;
    align-self: start;
    min-height: 100dvh;
  }
}
.merchant-nav__brand {
  font-weight: 800;
  margin-bottom: 16px;
  display: block;
  color: var(--text);
  text-decoration: none;
}
.merchant-nav__logo {
  display: block;
  max-width: 124px;
  height: auto;
  max-height: 32px;
  object-fit: contain;
}
.merchant-nav__brand span {
  color: var(--brand);
}
.merchant-nav__brand:hover {
  text-decoration: none;
}
.merchant-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
@media (min-width: 900px) {
  .merchant-nav ul {
    flex-direction: column;
    flex-wrap: nowrap;
  }
}
.merchant-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}
.merchant-nav a:hover,
.merchant-nav a.is-active {
  background: rgba(210, 242, 120, 0.55);
  color: var(--forest);
  font-weight: 600;
}

.merchant-main {
  padding: 20px 16px 48px;
  max-width: 900px;
  width: 100%;
}
.merchant-main h1 {
  font-size: 1.5rem;
  margin: 0 0 8px;
}
.subtitle {
  color: var(--muted);
  margin: 0 0 20px;
  font-size: 0.95rem;
}

.merchant-widget-embed-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.merchant-widget-copy-line {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.merchant-widget-copy-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.merchant-widget-copy-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 8px;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 100%;
}
.merchant-widget-copy-input {
  flex: 1 1 0;
  min-width: 0;
  padding: 10px 12px;
  font-size: 0.8rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: #062d20;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.merchant-widget-copy-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}
.merchant-widget-copy-btn__ico {
  flex-shrink: 0;
  display: block;
}

.merchant-main .merchant-est-code {
  font-size: 0.85rem;
}

/* Tableau établissements : ligne sans accès public — voile + actions au-dessus */
.merchant-main tr.merchant-est-row--inactive td {
  position: relative;
  vertical-align: middle;
}
/* Voile sur les colonnes « contenu » : lecture atténuée, pas de clic à travers */
.merchant-main tr.merchant-est-row--inactive td:not(.merchant-est-actions)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(248, 250, 252, 0.82);
  z-index: 1;
  pointer-events: auto;
}
.merchant-main tr.merchant-est-row--inactive td:not(.merchant-est-actions) > * {
  position: relative;
  z-index: 0;
}
.merchant-main tr.merchant-est-row--inactive td:not(.merchant-est-actions) > a.merchant-est-fiche-link {
  z-index: 2;
}
.merchant-main tr.merchant-est-row--inactive td:not(.merchant-est-actions) > a.merchant-jobs-table__title-link {
  position: relative;
  z-index: 2;
}
.merchant-main a.merchant-est-fiche-link {
  color: inherit;
  text-decoration: none;
}
.merchant-main a.merchant-est-fiche-link:hover {
  text-decoration: underline;
}
/* Dernière colonne : même voile mais clics réservés au bloc actions */
.merchant-main tr.merchant-est-row--inactive td.merchant-est-actions::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(248, 250, 252, 0.55);
  z-index: 1;
  pointer-events: none;
}
.merchant-main tr.merchant-est-row--inactive .merchant-est-actions-floating {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  min-width: 11rem;
}
/* CTA « Activer la diffusion » — charte lime portail (#c5e641) comme la carte tarifs */
.merchant-wrap--apy .merchant-diffusion-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  min-width: 13.75rem;
  box-sizing: border-box;
  min-height: 46px;
  padding: 12px 18px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  border: none;
  border-radius: 999px;
  background: #c5e641;
  color: #1a2b23 !important;
  box-shadow: 0 4px 20px rgba(20, 34, 23, 0.2);
  transition: transform 0.08s ease, filter 0.15s ease, box-shadow 0.15s ease;
}
.merchant-wrap--apy .merchant-diffusion-cta:hover {
  filter: brightness(0.97);
  text-decoration: none;
  box-shadow: 0 6px 26px rgba(20, 34, 23, 0.26);
  color: #1a2b23 !important;
}
.merchant-wrap--apy .merchant-diffusion-cta:active {
  transform: scale(0.985);
}
.merchant-main tr.merchant-est-row--inactive .merchant-est-actions-floating .merchant-diffusion-cta.merchant-est-reactivate {
  width: 100%;
  min-width: 0;
}
.merchant-main tr.merchant-est-row--inactive .merchant-diffusion-cta.merchant-est-reactivate {
  text-align: center;
}
.merchant-main .merchant-est-actions {
  white-space: nowrap;
}
.merchant-est-card-list {
  display: grid;
  gap: 14px;
}
.merchant-est-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 106px;
  padding: 20px 22px;
  border: 1px solid #eef0ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(15, 31, 19, 0.05);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.merchant-est-card:hover,
.merchant-est-card:focus-within {
  border-color: rgba(6, 45, 32, 0.18);
  background: linear-gradient(0deg, rgba(212, 233, 94, 0.14), rgba(212, 233, 94, 0.14)), #fff;
  box-shadow: 0 6px 24px rgba(15, 31, 19, 0.09);
  transform: translateY(-1px);
}
.merchant-est-card__main {
  flex: 1 1 auto;
  min-width: 0;
}
.merchant-main a.merchant-est-card__main-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.merchant-main a.merchant-est-card__main-link:hover .merchant-est-card__title {
  color: #062d20;
}
.merchant-est-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 8px;
}
.merchant-est-card__title {
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text, #0f1f13);
}
.merchant-est-card__address {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted, #64748b);
  line-height: 1.35;
}
.merchant-est-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 16px;
  color: #4b5563;
  font-size: 0.86rem;
}
.merchant-est-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.merchant-est-card__meta strong {
  color: var(--text, #0f1f13);
  font-weight: 800;
}
.merchant-est-card__actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
@media (max-width: 720px) {
  .merchant-est-card {
    display: block;
    min-height: 0;
    padding: 18px;
  }
  .merchant-est-card__actions {
    justify-content: flex-start;
    margin-top: 16px;
  }
}

/* Simulateur tarifs (billing / diffusion — mêmes styles que le portail, scope marchand) */
.merchant-main .portal-pricing-estimator {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(15, 31, 19, 0.04);
  border: 1px solid #e8ebe8;
}

.merchant-main .portal-pricing-estimator__label {
  margin: 0 0 10px;
  font-size: 0.88rem;
  line-height: 1.35;
}

.merchant-main .portal-pricing-estimator__controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.merchant-main .portal-pricing-estimator__step {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1;
  color: #0f1f13;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.merchant-main .portal-pricing-estimator__step:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.merchant-main .portal-pricing-estimator__value {
  min-width: 7.5rem;
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
  color: #0f1f13;
}

.merchant-main .portal-pricing-estimator__result {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #374151;
}

.merchant-main .portal-pricing-estimator--disabled {
  opacity: 0.68;
}

.merchant-main .portal-pricing-estimator--disabled .portal-pricing-estimator__step {
  cursor: not-allowed;
  pointer-events: none;
}

/* Compte marchand — bloc paiement (abonnement vs campagne) */
.billing-pay-options {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 2px solid rgba(15, 31, 19, 0.12);
}

.billing-pay-options__head {
  margin-bottom: 18px;
}

.billing-pay-options__title {
  margin: 0 0 10px;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f1f13;
}

.billing-pay-options__intro {
  margin: 0;
  max-width: 52rem;
  font-size: 0.93rem;
  line-height: 1.55;
  color: #4b5563;
}

.billing-current-offer {
  margin-bottom: 22px;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(16, 185, 129, 0.38);
  background: linear-gradient(145deg, rgba(236, 253, 245, 0.98) 0%, rgba(248, 250, 252, 0.96) 55%, rgba(240, 253, 250, 0.35) 100%);
  box-shadow: 0 1px 0 rgba(15, 31, 19, 0.05);
}

.billing-current-offer__title {
  margin: 10px 0 6px;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f1f13;
  line-height: 1.25;
}

.billing-current-offer__line {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #374151;
}

.billing-pay-actions-head {
  margin-bottom: 16px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(15, 31, 19, 0.08);
}

.billing-pay-actions-head__title {
  margin: 0 0 6px;
  font-size: 1.02rem;
  font-weight: 700;
  color: #0f1f13;
}

.billing-pay-actions-head__intro {
  margin: 0;
  max-width: 48rem;
  font-size: 0.89rem;
  line-height: 1.52;
}

.billing-pay-establishment-context__name {
  display: block;
  color: #0f1f13;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.merchant-payment-pane__kicker {
  margin: 0 0 10px;
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #065f46;
  background: rgba(16, 185, 129, 0.14);
  padding: 5px 11px;
  border-radius: 999px;
}

.merchant-payment-pane__kicker--campaign {
  color: #9a3412;
  background: rgba(251, 146, 60, 0.22);
}

.merchant-payment-pane--campaign {
  border-color: rgba(154, 52, 18, 0.16);
  background: linear-gradient(165deg, rgba(255, 247, 237, 0.75) 0%, rgba(248, 250, 252, 0.92) 52%);
}

.merchant-payment-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 900px) {
  .merchant-payment-split {
    grid-template-columns: 1fr;
  }
}

.merchant-payment-pane {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(15, 31, 19, 0.1);
  background: rgba(248, 250, 252, 0.85);
}

.merchant-payment-pane__title {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 700;
}

.billing-offer-choice {
  max-width: 52rem;
}

.billing-offer-choice__switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.billing-offer-choice__tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 16px 16px;
  border-radius: 14px;
  border: 2px solid rgba(15, 31, 19, 0.12);
  background: linear-gradient(165deg, #fff 0%, #f7faf8 100%);
  color: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(15, 31, 19, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.billing-offer-choice__tab:hover {
  border-color: rgba(6, 45, 32, 0.28);
  box-shadow: 0 4px 18px rgba(15, 31, 19, 0.08);
}

.billing-offer-choice__tab.is-active {
  border-color: #062d20;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(6, 45, 32, 0.15), 0 8px 28px rgba(6, 45, 32, 0.12);
}

.billing-offer-choice__tab-kicker {
  color: #6b7280;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.billing-offer-choice__tab-main {
  color: #0f1f13;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
}

.billing-offer-choice__tab-meta {
  color: #4b5563;
  font-size: 0.82rem;
  line-height: 1.4;
}

.billing-offer-choice__panel {
  margin-top: 16px;
}

.billing-offer-choice__panel[hidden] {
  display: none !important;
}

.billing-offer-choice__card {
  background: #fff;
  box-shadow: 0 10px 40px rgba(15, 31, 19, 0.06);
}

.billing-offer-choice__lead {
  margin: 0 0 14px;
  line-height: 1.5;
}

.billing-tier-option--current {
  color: #6b7280;
  background: #f3f4f6;
}

.billing-checkout-actions__pay.is-current-tier,
.billing-checkout-actions__pay.is-current-tier:disabled {
  color: #4b5563;
  background: #e5e7eb;
  border-color: #d1d5db;
  cursor: not-allowed;
  box-shadow: none;
}

.billing-est-summary-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.billing-est-summary-card__action {
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .billing-offer-choice__switch {
    grid-template-columns: 1fr;
  }

  .billing-est-summary-card__head {
    display: block;
  }

  .billing-est-summary-card__action {
    margin-top: 12px;
    width: 100%;
    justify-content: center;
  }
}

/* Page diffusion — choix formule abonnement / campagne */
.diffusion-pay-v2 {
  margin: 8px 0 24px;
  max-width: 46rem;
}

.diffusion-pay-v2__subtitle {
  max-width: 46rem;
}

.diffusion-pay-v2__title {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f1f13;
}

.diffusion-pay-v2__intro {
  margin: 0 0 18px;
  font-size: 0.94rem;
  line-height: 1.55;
  color: #374151;
}

.diffusion-pay-v2__switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 640px) {
  .diffusion-pay-v2__switch {
    grid-template-columns: 1fr;
  }
}

.diffusion-pay-v2__tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 16px 16px;
  border-radius: 14px;
  border: 2px solid rgba(15, 31, 19, 0.12);
  background: linear-gradient(165deg, #fff 0%, #f7faf8 100%);
  color: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(15, 31, 19, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.diffusion-pay-v2__tab:hover {
  border-color: rgba(6, 45, 32, 0.28);
  box-shadow: 0 4px 18px rgba(15, 31, 19, 0.08);
}

.diffusion-pay-v2__tab.is-active {
  border-color: #062d20;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(6, 45, 32, 0.15), 0 8px 28px rgba(6, 45, 32, 0.12);
}

.diffusion-pay-v2__tab-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
}

.diffusion-pay-v2__tab-main {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f1f13;
  line-height: 1.25;
}

.diffusion-pay-v2__tab-meta {
  font-size: 0.82rem;
  line-height: 1.4;
  color: #4b5563;
}

.diffusion-pay-v2__panel {
  margin-top: 16px;
}

.diffusion-pay-v2__panel[hidden] {
  display: none !important;
}

.diffusion-pay-v2__card {
  padding: 20px 20px 22px;
  border-radius: 16px;
  border: 1px solid rgba(15, 31, 19, 0.1);
  background: #fff;
  box-shadow: 0 10px 40px rgba(15, 31, 19, 0.06);
}

.diffusion-pay-v2__card--done {
  border-color: rgba(22, 163, 74, 0.35);
  background: linear-gradient(180deg, #f0fdf4 0%, #fff 55%);
}

.diffusion-pay-v2__card--muted {
  background: #f9fafb;
  border-style: dashed;
}

.diffusion-pay-v2__card-lead {
  margin: 0 0 12px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #1f2937;
}

.diffusion-pay-v2__form-group {
  margin-top: 10px;
  max-width: 26rem;
}

.diffusion-pay-v2__price-tag {
  margin: 0 0 16px;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #111827;
}

.diffusion-pay-v2__price-num {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #062d20;
}

.diffusion-pay-v2__price-hint {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #6b7280;
}

.diffusion-pay-v2__cta {
  margin-top: 6px;
  width: 100%;
  max-width: 26rem;
  justify-content: center;
}

.diffusion-pay-v2__cta:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.diffusion-pay-v2__cta.is-current-tier,
.diffusion-pay-v2__cta.is-current-tier:disabled {
  color: #4b5563;
  background: #e5e7eb;
  border-color: #d1d5db;
  opacity: 1;
  cursor: default;
}

.diffusion-pay-v2__cta--campaign {
  max-width: none;
}

.diffusion-pay-v2__gate-hint {
  margin: 0 0 12px;
  padding: 10px 14px;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #4b5563;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.diffusion-pay-v2__foot {
  margin-top: 8px;
}

/* ——— Espace commerçant APYJOB (sidebar, topbar, dashboard) ——— */
.layout-merchant .merchant-wrap--apy {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  align-items: stretch;
}
@media (min-width: 900px) {
  .layout-merchant .merchant-wrap--apy {
    display: grid;
    grid-template-columns: 268px minmax(0, 1fr);
    gap: 0;
  }
}

.merchant-shell__main {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  min-width: 0;
  background: #fff;
}

.merchant-wrap--apy .merchant-nav.merchant-sidebar {
  background: #f9fafb;
  border-bottom: 1px solid var(--border);
  padding: 20px 14px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
@media (min-width: 900px) {
  .merchant-wrap--apy .merchant-nav.merchant-sidebar {
    border-bottom: none;
    border-right: 1px solid var(--border);
    position: sticky;
    top: 0;
    align-self: start;
    min-height: 100dvh;
    padding: 24px 12px 28px;
  }
}

.merchant-sidebar__top {
  margin-bottom: 8px;
}
.merchant-sidebar__brand {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
}
.merchant-sidebar__logo {
  display: block;
  max-width: 180px;
  height: auto;
  max-height: 52px;
  object-fit: contain;
}
.merchant-sidebar__wordmark {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #062d20;
}
.merchant-sidebar__wordmark span {
  color: #c9e94a;
  position: relative;
}
.merchant-sidebar__wordmark span::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid #d4e95e;
  border-radius: 50%;
  right: -2px;
  top: 2px;
  opacity: 0.9;
}

.merchant-sidebar__estab-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 6px 4px;
}
.merchant-sidebar__select {
  width: 100%;
  padding: 10px 32px 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235c6860' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 12px center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  appearance: none;
  margin-bottom: 20px;
  cursor: pointer;
}

.merchant-sidebar__nav {
  flex: 1;
}
.merchant-sidebar__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.merchant-wrap--apy .merchant-sidebar__list a.merchant-sidebar__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px 11px 14px;
  border-radius: 10px;
  color: #1a2e24;
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none;
  border-left: 3px solid transparent;
}
.merchant-wrap--apy .merchant-sidebar__list a.merchant-sidebar__link:hover {
  background: rgba(212, 233, 94, 0.22);
  text-decoration: none;
}
.merchant-wrap--apy .merchant-sidebar__list a.merchant-sidebar__link.is-active {
  background: rgba(212, 233, 94, 0.38);
  font-weight: 600;
  color: #062d20;
  border-left-color: #062d20;
}
.merchant-sidebar__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #3d5246;
}
.merchant-sidebar__link.is-active .merchant-sidebar__icon {
  color: #062d20;
}

.merchant-sidebar__bottom {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.merchant-wrap--apy .merchant-sidebar__bottom a.merchant-sidebar__account-link {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  padding: 11px 12px 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.merchant-wrap--apy .merchant-sidebar__account-link .merchant-sidebar__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #4b5563;
}

.merchant-sidebar__account-link .merchant-sidebar__icon svg {
  display: block;
}

.merchant-sidebar__account-label {
  flex: 1;
  min-width: 0;
  line-height: 1.25;
}

.merchant-sidebar__account-link:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #062d20;
  text-decoration: none;
}

.merchant-sidebar__account-link:hover .merchant-sidebar__icon {
  color: #3d5246;
}

.merchant-wrap--apy .merchant-sidebar__account-link.is-active {
  background: rgba(212, 233, 94, 0.38);
  border-color: #062d20;
  color: #062d20;
  font-weight: 600;
}

.merchant-wrap--apy .merchant-sidebar__account-link.is-active .merchant-sidebar__icon {
  color: #062d20;
}

.merchant-sidebar__muted-link {
  font-size: 0.88rem;
  color: var(--muted);
  padding: 0 4px;
}
.merchant-sidebar__muted-link:hover {
  color: var(--text);
}
.merchant-sidebar__help-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 1px 3px rgba(15, 31, 19, 0.05);
}
.merchant-sidebar__help-title {
  margin: 0 0 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}
.merchant-sidebar__help-btn {
  width: 100%;
  justify-content: center;
}
.merchant-sidebar__logout {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 4px;
}
.merchant-sidebar__logout:hover {
  color: var(--danger);
}

.merchant-topbar {
  flex-shrink: 0;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #eef0ef;
  background: #fff;
}
.merchant-topbar--dashboard {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 24px;
}
.merchant-topbar__title {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 700;
  color: #062d20;
  letter-spacing: -0.02em;
}
.merchant-topbar__wave {
  font-weight: 500;
}
.merchant-topbar__subtitle {
  margin: 6px 0 0;
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 36rem;
}
.merchant-topbar__right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.merchant-topbar--minimal {
  display: flex;
  justify-content: flex-end;
  padding: 16px 24px;
}
.merchant-topbar__spacer {
  flex: 1;
}
.merchant-topbar__icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.merchant-topbar__icon-btn:hover {
  background: #f9fafb;
}
.merchant-topbar__profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fafafa;
}
.merchant-topbar__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4e95e 0%, #a8c940 100%);
  color: #062d20;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.merchant-topbar__profile-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.merchant-topbar__profile-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}
.merchant-topbar__profile-role {
  font-size: 0.75rem;
  color: var(--muted);
}
.merchant-topbar__chip {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.85rem;
  color: var(--muted);
  cursor: default;
}
.merchant-topbar__cta.btn--primary,
.merchant-topbar__invoices.btn--primary {
  background: #062d20;
  border: none;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
}
.merchant-topbar__cta.btn--primary:hover,
.merchant-topbar__invoices.btn--primary:hover {
  filter: brightness(1.12);
  color: #fff;
  text-decoration: none;
}
.merchant-topbar__invoices.btn--primary.btn--sm {
  padding: 8px 15px;
  font-size: 0.85rem;
}

.merchant-wrap--apy .merchant-main {
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  padding: 8px 22px 56px;
}
@media (min-width: 1100px) {
  .merchant-wrap--apy .merchant-main {
    padding-left: 28px;
    padding-right: 32px;
  }
}

/* Établissement : photo / logo (aperçu + dropzone) */
.merchant-wrap--apy .merchant-est-logo-upload__label {
  display: block;
  font-weight: 600;
}
.merchant-wrap--apy .merchant-logo-stage {
  margin-top: 10px;
}
.merchant-wrap--apy .merchant-logo-display {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.merchant-wrap--apy .merchant-logo-display__frame {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border, #e2e8f0);
  background: #fff;
  max-width: 100%;
}
.merchant-wrap--apy .merchant-logo-display__img {
  display: block;
  max-width: min(280px, 100%);
  max-height: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}
.merchant-wrap--apy .merchant-logo-display__delete {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--danger, #b91c1c);
  border-color: rgba(220, 38, 38, 0.35);
}
.merchant-wrap--apy .merchant-logo-display__delete:hover {
  background: rgba(220, 38, 38, 0.06);
  border-color: rgba(220, 38, 38, 0.5);
  color: var(--danger, #991b1b);
}

.merchant-wrap--apy .merchant-logo-dropzone-wrap {
  margin-top: 0;
}
.merchant-wrap--apy .merchant-logo-dropzone {
  position: relative;
  margin-top: 0;
  border: 2px dashed var(--border, #cbd5e1);
  border-radius: 12px;
  padding: 28px 18px 24px;
  text-align: center;
  background: rgba(248, 250, 252, 0.9);
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
  outline: none;
}
.merchant-wrap--apy .merchant-logo-dropzone:hover,
.merchant-wrap--apy .merchant-logo-dropzone:focus-visible {
  border-color: var(--brand, #0f766e);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}
.merchant-wrap--apy .merchant-logo-dropzone.is-dragover {
  border-color: var(--brand, #0f766e);
  border-style: solid;
  background: rgba(15, 118, 110, 0.06);
}
.merchant-wrap--apy .merchant-logo-dropzone.is-busy {
  cursor: default;
}
.merchant-wrap--apy .merchant-logo-dropzone.is-busy .merchant-logo-dropzone__surface {
  display: none;
}
.merchant-wrap--apy .merchant-logo-dropzone__busy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 140px;
  padding: 24px 16px;
  pointer-events: none;
  color: var(--muted, #64748b);
  font-size: 0.95rem;
}
.merchant-wrap--apy .merchant-logo-dropzone__spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border, #e2e8f0);
  border-top-color: var(--brand, #0f766e);
  border-radius: 50%;
  animation: merchant-logo-spin 0.75s linear infinite;
}
@keyframes merchant-logo-spin {
  to {
    transform: rotate(360deg);
  }
}
.merchant-wrap--apy .merchant-logo-dropzone__file-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.merchant-wrap--apy .merchant-logo-dropzone__surface {
  pointer-events: none;
}
.merchant-wrap--apy .merchant-logo-dropzone__icon {
  display: flex;
  justify-content: center;
  margin: 0 0 10px;
  color: var(--muted, #64748b);
}
.merchant-wrap--apy .merchant-logo-dropzone:hover .merchant-logo-dropzone__icon,
.merchant-wrap--apy .merchant-logo-dropzone:focus-visible .merchant-logo-dropzone__icon,
.merchant-wrap--apy .merchant-logo-dropzone.is-dragover .merchant-logo-dropzone__icon {
  color: var(--brand, #0f766e);
}
.merchant-wrap--apy .merchant-logo-dropzone__title {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--text, #0f172a);
}
.merchant-wrap--apy .merchant-logo-dropzone__sub {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted, #64748b);
}

/* Supervision admin : même coque que l’espace commerçant (sidebar + zone blanche) */
a.merchant-sidebar__brand {
  text-decoration: none;
  color: inherit;
}
a.merchant-sidebar__brand:hover {
  opacity: 0.92;
}
.admin-sidebar__zone-label {
  margin: -4px 0 0 4px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #3d5246;
}

.admin-notif-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--text, #0f1f13);
  text-decoration: none;
  border: 1px solid var(--border, #dbe5df);
  background: #fff;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.admin-notif-bell:hover {
  background: rgba(197, 230, 65, 0.12);
  border-color: rgba(15, 31, 19, 0.12);
}
.admin-notif-bell__ico {
  display: inline-flex;
  line-height: 0;
}
.admin-notif-bell__badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 800;
  line-height: 19px;
  text-align: center;
  border-radius: 999px;
  background: #b45309;
  color: #fff;
  border: 2px solid #fff;
  box-sizing: border-box;
}

/* Supervision : largeur / flex pour que sidebar + contenu restent visibles */
.layout-merchant .admin-supervision-wrap.merchant-wrap--apy {
  width: 100%;
  max-width: 100%;
}
.layout-merchant .admin-supervision-wrap .merchant-shell__main {
  flex: 1 1 auto;
  min-width: 0;
}
@media (max-width: 899px) {
  .layout-merchant .admin-supervision-wrap .merchant-nav.merchant-sidebar {
    flex-shrink: 0;
  }
}

/* Recherche supervision (tableau de bord commerçants / établissements) */
.admin-dash-search {
  margin: 0 0 22px;
  padding: 18px 20px 20px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 31, 19, 0.06);
}
.admin-dash-search__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin: 0 0 12px 4px;
}
.admin-dash-search__bar {
  display: flex;
  align-items: stretch;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid #d8e0dc;
  background: #f6f8f7;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.admin-dash-search__bar:focus-within {
  border-color: #062d20;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(212, 233, 94, 0.45);
}
.admin-dash-search__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 52px;
  color: #3d5246;
  background: linear-gradient(180deg, rgba(212, 233, 94, 0.35) 0%, rgba(212, 233, 94, 0.12) 100%);
  border-right: 1px solid #e0e8e4;
}
.admin-dash-search__icon svg {
  display: block;
}
.admin-dash-search__input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 14px 18px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  -webkit-appearance: none;
  appearance: none;
}
.admin-dash-search__input::placeholder {
  color: #8a9690;
}
.admin-dash-search__input:focus {
  border: none !important;
  outline: none !important;
  background: transparent !important;
}
.admin-dash-search__clear {
  flex: 0 0 auto;
  align-self: stretch;
  margin: 0;
  padding: 0 20px;
  border: none;
  border-left: 1px solid #e0e8e4;
  border-radius: 0;
  background: #fff;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  color: #5c6860;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.admin-dash-search__clear:hover {
  background: #f0f4f2;
  color: #062d20;
}
@media (max-width: 520px) {
  .admin-dash-search__bar {
    flex-wrap: wrap;
  }
  .admin-dash-search__icon {
    flex: 0 0 48px;
  }
  .admin-dash-search__input {
    flex: 1 1 calc(100% - 48px);
    min-width: 140px;
  }
  .admin-dash-search__clear {
    flex: 1 1 100%;
    border-left: none;
    border-top: 1px solid #e0e8e4;
    padding: 12px 16px;
  }
}

body.layout-admin-auth {
  min-height: 100dvh;
  background: linear-gradient(165deg, #f4f7f4 0%, #eef1ee 48%, #e6eae7 100%);
}
body.layout-admin-auth .site-header--admin-auth {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.merchant-dash__kpi-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin: 18px 0 0;
}
.merchant-dash__kpi-toolbar-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.merchant-dash__kpi-pills {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}
.merchant-dash__kpi-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: #062d20;
  background: #f1f5f4;
  border: 1px solid #e5ebe8;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.merchant-dash__kpi-pill:hover {
  background: rgba(210, 242, 120, 0.35);
  border-color: #cfe88a;
}
.merchant-dash__kpi-pill.is-active {
  background: #062d20;
  color: #fff;
  border-color: #062d20;
}

.merchant-dash__kpi-toolbar--establishment {
  margin-top: 0;
}
.merchant-dash__kpi-est-select {
  min-width: min(100%, 280px);
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #062d20;
  background: #fff;
  border: 1px solid #e5ebe8;
  cursor: pointer;
}
.merchant-dash__kpi-est-select:focus {
  outline: 2px solid rgba(6, 45, 32, 0.25);
  outline-offset: 1px;
}

.merchant-dash__kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 10px 0 24px;
}
@media (min-width: 800px) {
  .merchant-dash__kpis {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}
.merchant-kpi-card {
  background: #f9fafb;
  border: 1px solid #eef0ef;
  border-radius: 12px;
  padding: 18px 16px;
  box-shadow: 0 1px 2px rgba(15, 31, 19, 0.04);
}
.merchant-kpi-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.merchant-kpi-card__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.merchant-kpi-card__ico {
  color: #5a6b62;
  opacity: 0.85;
}
.merchant-kpi-card__value {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: #062d20;
  letter-spacing: -0.02em;
}
.merchant-kpi-card__value--muted {
  color: #8a9690;
}
.merchant-kpi-card__trend {
  margin: 8px 0 0;
  font-size: 0.78rem;
  font-weight: 600;
}
.merchant-kpi-card__trend--up {
  color: #15803d;
}
.merchant-kpi-card__trend--down {
  color: #b91c1c;
}
.merchant-kpi-card__trend--neutral {
  color: var(--muted);
  font-weight: 500;
}

.merchant-dash__grid {
  display: grid;
  gap: 18px;
  align-items: start;
}
@media (min-width: 960px) {
  .merchant-dash__grid {
    grid-template-columns: 1fr minmax(260px, 320px);
    gap: 22px;
  }
}
.merchant-dash__panel {
  background: #fff;
  border: 1px solid #eef0ef;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(15, 31, 19, 0.05);
}
.merchant-dash__panel-head {
  padding: 18px 20px 12px;
  border-bottom: 1px solid #f0f2f1;
}
.merchant-dash__panel-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #062d20;
}
.merchant-dash__empty {
  margin: 0;
  padding: 24px 20px;
  color: var(--muted);
  font-size: 0.92rem;
}
.merchant-dash__empty--boxed {
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: #fafafa;
}
.merchant-dash__table-wrap {
  overflow-x: auto;
}
.merchant-dash__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.merchant-dash__table th {
  text-align: left;
  padding: 10px 16px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: #fafbfb;
  border-bottom: 1px solid #eef0ef;
}
.merchant-dash__table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f4f5f4;
  vertical-align: middle;
}
.merchant-dash__table.merchant-apps-table tbody tr.merchant-apps-row {
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.merchant-dash__table.merchant-apps-table tbody tr.merchant-apps-row:hover {
  background: rgba(210, 242, 120, 0.28);
}
.merchant-dash__table.merchant-apps-table tbody tr.merchant-apps-row:hover .merchant-apps-td-date {
  color: var(--text);
}
.merchant-dash__table.merchant-apps-table .merchant-apps-td-date {
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.15s ease;
}
.merchant-dash__table.merchant-apps-table td.merchant-apps-empty-colspan {
  padding: 22px 18px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}
.merchant-dash__table.merchant-apps-table td.merchant-apps-empty-colspan a {
  font-weight: 600;
}
.merchant-dash__table.merchant-apps-table .merchant-apps-th-action,
.merchant-dash__table.merchant-apps-table .merchant-apps-td-action {
  width: 1%;
  white-space: nowrap;
  text-align: right;
}
.merchant-dash__table.merchant-apps-table .merchant-apps-row__link {
  position: relative;
  z-index: 1;
  font-weight: 600;
  color: #062d20;
  text-decoration: none;
}
.merchant-dash__table.merchant-apps-table .merchant-apps-row__link:hover {
  text-decoration: underline;
}
.merchant-dash__table.merchant-apps-table .merchant-apps-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  position: relative;
  z-index: 2;
}
.merchant-dash__table.merchant-apps-table .merchant-apps-delete-form {
  display: inline;
  margin: 0;
}
.merchant-dash__table.merchant-apps-table .merchant-apps-btn-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  margin: 0;
  border: 1px solid var(--border, rgba(148, 163, 184, 0.45));
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--muted, #64748b);
  cursor: pointer;
  line-height: 0;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.merchant-dash__table.merchant-apps-table .merchant-apps-btn-delete:hover {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fef2f2;
}
.merchant-dash__table.merchant-apps-table .merchant-apps-btn-delete:focus-visible {
  outline: 2px solid var(--primary, #0d9488);
  outline-offset: 2px;
}

.app-fiche-btn-delete {
  color: #b91c1c;
  border-color: #fecaca;
}
.app-fiche-btn-delete:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}

.merchant-apps-intro {
  margin-bottom: 6px;
}
.merchant-apps-toolbar {
  margin-bottom: 18px;
  padding: 0;
  overflow: hidden;
}
.merchant-apps-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid #eef0ef;
  padding: 0 4px;
  background: #fafbfb;
}
.merchant-apps-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 12px 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.merchant-apps-tab:hover {
  color: #062d20;
  background: rgba(210, 242, 120, 0.22);
}
.merchant-apps-tab.is-active {
  color: #062d20;
  border-bottom-color: #062d20;
}
.merchant-apps-tab-count {
  font-weight: 600;
  color: #64748b;
  font-size: 0.82rem;
}
.merchant-apps-tab.is-active .merchant-apps-tab-count {
  color: #475569;
}
.merchant-apps-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 16px 16px 18px;
}
.merchant-apps-filter-label--grow {
  flex: 1 1 55%;
  min-width: min(100%, 320px);
  max-width: 100%;
}
@media (min-width: 720px) {
  .merchant-apps-filter-label--grow {
    flex: 1 1 auto;
    min-width: 380px;
    max-width: calc(100% - 340px);
  }
}
.merchant-apps-filters-right {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
  flex: 0 0 auto;
  margin-left: auto;
}
.merchant-apps-search {
  position: relative;
  width: 100%;
}
.merchant-apps-search__ico {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  display: flex;
  pointer-events: none;
}
.merchant-apps-search__input,
.merchant-apps-select {
  min-height: 42px;
  box-sizing: border-box;
  line-height: 1.35;
}
.merchant-apps-search__input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.9rem;
  background: #fff;
}
.merchant-apps-search__input:focus {
  outline: none;
  border-color: #94a89a;
  box-shadow: 0 0 0 3px rgba(210, 242, 120, 0.35);
}
.merchant-apps-filter-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 0 0 auto;
}
.merchant-apps-filter-label__text {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.merchant-apps-select {
  min-width: 11rem;
  padding: 10px 32px 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235c6860' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 12px center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  appearance: none;
  cursor: pointer;
}
@media (max-width: 640px) {
  .merchant-apps-filters {
    flex-direction: column;
    align-items: stretch;
  }
  .merchant-apps-filter-label--grow {
    min-width: 0;
    flex: 1 1 auto;
    max-width: none;
  }
  .merchant-apps-filters-right {
    margin-left: 0;
    width: 100%;
  }
}

.merchant-dash__th-wave {
  width: 88px;
}
.merchant-dash__candidate {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
}
.merchant-dash__candidate:hover .merchant-dash__c-name {
  text-decoration: underline;
}
.merchant-dash__c-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #eef6e8;
  color: #062d20;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.merchant-dash__c-name {
  color: var(--text);
}
.merchant-dash__job {
  display: block;
  font-weight: 600;
  color: var(--text);
}
.merchant-dash__est {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 2px;
}
.merchant-dash__date {
  color: var(--muted);
  white-space: nowrap;
}
.merchant-dash__no-audio {
  color: #c5cbc7;
}

.dash-wave {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 28px;
  padding: 0 4px;
}
.dash-wave__bar {
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, #d4e95e 0%, #062d20 100%);
  opacity: 0.85;
}

.dash-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}
.dash-badge--new {
  background: #ffedd5;
  color: #9a3412;
}
.dash-badge--contact {
  background: #fef9c3;
  color: #854d0e;
}
.dash-badge--meet {
  background: #dcfce7;
  color: #166534;
}
.dash-badge--refused {
  background: #fee2e2;
  color: #991b1b;
}
.dash-badge--archived {
  background: #f1f5f9;
  color: #64748b;
}

.merchant-dash__panel-foot {
  margin: 0;
  padding: 14px 20px 18px;
  border-top: 1px solid #f0f2f1;
  font-size: 0.88rem;
  font-weight: 600;
}
.merchant-dash__panel-foot a {
  color: #062d20;
  text-decoration: none;
}
.merchant-dash__panel-foot a:hover {
  text-decoration: underline;
}

.merchant-dash__panel--aside {
  display: flex;
  flex-direction: column;
}
.merchant-dash__joblist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.merchant-dash__joblist li {
  border-bottom: 1px solid #f4f5f4;
}
.merchant-dash__joblist li:last-child {
  border-bottom: none;
}
.merchant-dash__jobrow {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s ease;
}
.merchant-dash__jobrow:hover {
  background: #fafcfb;
  text-decoration: none;
}
.merchant-dash__jobrow-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
}
.merchant-dash__jobrow-meta {
  font-size: 0.8rem;
  color: var(--muted);
}
.merchant-dash__jobrow-count {
  font-size: 0.78rem;
  font-weight: 600;
  color: #3d5246;
  margin-top: 4px;
}
.merchant-dash__aside-cta {
  margin: auto 16px 16px;
  text-align: center;
  justify-content: center;
  background: #062d20 !important;
  border-radius: 10px;
  font-weight: 600;
}
.merchant-dash__aside-cta:hover {
  filter: brightness(1.1);
}

.merchant-dash__estab-block {
  margin-top: 28px;
  padding-top: 8px;
}
.merchant-dash__estab-head {
  margin-bottom: 22px;
}
.merchant-dash__estab-panel-title {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0;
}
.merchant-dash__estab-title-count {
  font-weight: 600;
  font-size: 0.92em;
  color: #64748b;
}
.merchant-dash__estab-block--teaser .merchant-dash__estab-head {
  margin-bottom: 20px;
}

/* Parcours établissement (étapes — ne pas mélanger avec Enregistrer) */
.estab-wizard-jobs-notify-anchor {
  margin-bottom: 20px;
}
.estab-wizard {
  margin-bottom: 24px;
}
.estab-wizard__config-bar {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 0;
}
.estab-wizard__config-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0;
  white-space: nowrap;
}
.estab-wizard-spontaneous {
  position: relative;
}
.estab-wizard-spontaneous__summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border-radius: var(--radius, 10px);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  box-shadow: var(--shadow);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.estab-wizard-spontaneous__summary::-webkit-details-marker {
  display: none;
}
.estab-wizard-spontaneous__summary:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
}
.estab-wizard-spontaneous[open] .estab-wizard-spontaneous__summary {
  border-color: var(--brand);
  color: var(--brand-dark);
}
.estab-wizard-spontaneous__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  width: min(100vw - 32px, 380px);
  padding: 16px 18px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(15, 31, 19, 0.12);
}
.estab-wizard-spontaneous__lead {
  margin: 0 0 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.estab-wizard-spontaneous__submit {
  margin-top: 16px;
}
.estab-wizard__context {
  margin: 0 0 12px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}
.estab-wizard__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.estab-wizard__item {
  flex: 0 0 auto;
}
.estab-wizard__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--shadow);
}
a.estab-wizard__pill:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
  text-decoration: none;
}
.estab-wizard__item.is-current .estab-wizard__pill {
  background: var(--brand);
  border-color: transparent;
  color: var(--forest);
  box-shadow: 0 2px 10px rgba(210, 242, 120, 0.45);
}
.estab-wizard__item.is-locked .estab-wizard__pill {
  opacity: 0.42;
  cursor: not-allowed;
  box-shadow: none;
}
.estab-wizard__num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.07);
}
.estab-wizard__item.is-current .estab-wizard__num {
  background: rgba(15, 31, 19, 0.12);
  color: var(--forest);
}
.estab-wizard__progress {
  margin-top: 14px;
  width: 100%;
  max-width: none;
}
.estab-wizard__progress-meta {
  margin-bottom: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.estab-wizard__progress-track {
  height: 8px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(15, 31, 19, 0.06);
}
.estab-wizard__progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset;
  transition: width 0.35s ease;
}
.estab-wizard__hint {
  margin: 10px 0 0;
  max-width: 520px;
}
.estab-wizard__actions {
  margin: 16px 0 0;
}
.estab-wizard__actions .btn {
  width: 100%;
  justify-content: center;
  max-width: 360px;
}
.form-save-bar {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.form-save-bar .hint {
  margin-top: 10px;
  margin-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
th,
td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
th {
  background: #fafbfc;
  font-weight: 600;
}
tr:last-child td {
  border-bottom: none;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}
.badge--ok {
  background: #d1fae5;
  color: #065f46;
}
.badge--muted {
  background: #f1f5f9;
  color: #475569;
}
.badge--meet {
  background: #ecfdf5;
  color: #047857;
}
.badge--refused {
  background: #fef2f2;
  color: #b91c1c;
}
.badge--wait {
  background: #fef3c7;
  color: #92400e;
}
.badge--closed {
  background: #ede9fe;
  color: #5b21b6;
  border: 1px solid #c4b5fd;
}
.badge--archived {
  background: #e2e8f0;
  color: #334155;
  border: 1px solid #cbd5e1;
}

/* Fiche candidature (commerçant) */
.app-fiche-back {
  margin: 0 0 16px;
}
.app-fiche-back__link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.app-fiche-back__link:hover {
  text-decoration: underline;
}
.app-fiche-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 20px;
  margin-bottom: 20px;
  padding: 20px 18px;
}
.app-fiche-header__main {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  min-width: 0;
  flex: 1;
}
.app-fiche-header__avatar {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(145deg, #e8f5e4 0%, #d4e95e55 100%);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #062d20;
}
.app-fiche-header__text {
  min-width: 0;
}
.app-fiche-header__name {
  margin: 0 0 6px;
  font-size: 1.35rem;
  line-height: 1.2;
}
.app-fiche-header__job {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: var(--muted);
}
.app-fiche-header__meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}
.app-fiche-header__badge {
  font-size: 0.72rem;
}
.app-fiche-header__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.app-fiche-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 24px;
  align-items: start;
}
@media (min-width: 900px) {
  .app-fiche-layout {
    grid-template-columns: 1fr minmax(240px, 300px);
  }
}
.app-fiche-section-title {
  margin: 0 0 16px;
  font-size: 1.05rem;
  font-weight: 700;
}
.app-fiche-answers,
.app-fiche-aside {
  padding: 18px 18px 20px;
}
.app-fiche-qa-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.app-fiche-qa-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.app-fiche-qa-item:first-child {
  padding-top: 0;
}
.app-fiche-qa-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.app-fiche-qa-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin-top: 2px;
}
.app-fiche-qa-body {
  min-width: 0;
  flex: 1;
}
.app-fiche-qa-q {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}
.app-fiche-qa-a {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
}
.app-fiche-audio__row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 440px;
}
.app-fiche-audio__player {
  flex: 1 1 220px;
  min-width: 180px;
  width: 100%;
  max-width: 420px;
  vertical-align: middle;
}
.app-fiche-audio__dl {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--muted, #64748b);
  border: 1px solid var(--border, rgba(148, 163, 184, 0.45));
  background: rgba(255, 255, 255, 0.5);
  line-height: 0;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.app-fiche-audio__dl:hover {
  color: var(--forest, #062d20);
  border-color: rgba(6, 45, 32, 0.25);
  background: rgba(210, 242, 120, 0.25);
}
.app-fiche-audio__dl:focus-visible {
  outline: 2px solid var(--primary, #0d9488);
  outline-offset: 2px;
}
.app-fiche-photo-block {
  margin: 0;
}
.app-fiche-photo-thumb-btn {
  display: inline-block;
  padding: 0;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fafc;
  cursor: zoom-in;
  overflow: hidden;
  line-height: 0;
  vertical-align: top;
}
.app-fiche-photo-thumb-btn:focus-visible {
  outline: 2px solid var(--primary, #0d9488);
  outline-offset: 2px;
}
.app-fiche-photo-thumb {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: cover;
}
.app-fiche-photo-block__hint {
  margin: 8px 0 0;
  font-size: 0.85rem;
}
.app-fiche-attachment {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fafafa;
  max-width: 100%;
}
.app-fiche-attachment__clip {
  flex-shrink: 0;
  color: var(--muted);
  margin-top: 2px;
}
.app-fiche-attachment__body {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
}
.app-fiche-attachment__link {
  font-weight: 600;
  color: var(--primary, #0f766e);
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-word;
}
.app-fiche-attachment__size {
  font-size: 0.85rem;
}
.app-fiche-photo-dialog {
  padding: 0;
  border: none;
  border-radius: 12px;
  max-width: calc(100vw - 24px);
  background: transparent;
}
.app-fiche-photo-dialog::backdrop {
  background: rgba(15, 23, 42, 0.55);
}
.app-fiche-photo-dialog__box {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}
.app-fiche-photo-dialog__close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: #334155;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.app-fiche-photo-dialog__close:hover {
  background: #f1f5f9;
}
.app-fiche-photo-dialog__img {
  display: block;
  max-width: min(90vw, 720px);
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}
.app-fiche-files-safety {
  font-size: 0.88rem;
  line-height: 1.45;
}
.app-fiche-dl {
  margin: 0;
}
.app-fiche-dl__row {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.app-fiche-dl__row:first-child {
  padding-top: 0;
}
.app-fiche-dl__row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.app-fiche-dl dt {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.app-fiche-dl dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  word-break: break-word;
}
.app-fiche-dl dd a {
  color: inherit;
}
.app-fiche-decisions {
  padding: 20px 18px 22px;
}
.app-fiche-decisions__intro {
  margin: 0 0 16px;
}
.app-fiche-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 18px;
}
.app-fiche-decision-block {
  margin: 0 0 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.app-fiche-decision-block__title,
.app-fiche-decision-card__title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
}
.app-fiche-decision-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) {
  .app-fiche-decision-grid {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}
.app-fiche-decision-card {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fafbfc;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.app-fiche-decision-card .form-group {
  flex: 1;
}
.app-fiche-decision-card .btn {
  align-self: flex-start;
  margin-top: 4px;
}
.app-fiche-btn-refuse {
  border-color: #fecaca !important;
  color: #991b1b !important;
}

/* Public establishment */
.estab-hero {
  background: linear-gradient(165deg, #002c1f 0%, #0f1f13 100%);
  color: #fff;
  padding: 28px 16px 32px;
  border-radius: 0 0 var(--radius) var(--radius);
  margin: 0 -16px 20px;
}
@media (min-width: 600px) {
  .estab-hero {
    margin: 0 0 24px;
    border-radius: var(--radius);
  }
}
.estab-hero__inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.estab-logo {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}
.estab-hero h1 {
  margin: 0 0 8px;
  font-size: 1.4rem;
  line-height: 1.2;
}
.estab-meta {
  font-size: 0.9rem;
  opacity: 0.92;
  margin: 0;
}

.job-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.job-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.job-card:hover {
  border-color: var(--brand);
  box-shadow: 0 4px 14px rgba(15, 31, 19, 0.1);
  text-decoration: none;
}
.job-card h2 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}
.job-card .meta {
  font-size: 0.88rem;
  color: var(--muted);
}

/* Audio recorder (candidat) */
.audio-box {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  background: #fafbfc;
}
.audio-box__help {
  margin: 12px auto 0;
  max-width: 42rem;
}
.audio-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.audio-meter {
  margin: 12px 0 8px;
  overflow: visible;
}
.audio-meter__label {
  margin: 0 0 8px !important;
  font-size: 0.82rem !important;
  color: var(--brand-dark) !important;
  font-weight: 600;
}
.audio-meter__bars {
  display: flex;
  align-items: flex-end;
  justify-content: stretch;
  gap: 3px;
  height: 76px;
  padding: 12px 12px 10px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--border);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: visible;
}
.audio-meter__bar {
  flex: 1 1 0;
  min-width: 2px;
  max-width: none;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(180deg, #e8f9a8 0%, #d2f278 45%, #b8d865 100%);
  transform-origin: bottom center;
  transform: scaleY(0.12);
  transition: transform 0.14s ease-out;
  will-change: transform;
}
.audio-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 0 !important;
  font-weight: 600;
  color: var(--brand-dark) !important;
}
.audio-status__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  animation: audio-pulse 1s ease-in-out infinite;
}
@keyframes audio-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.65;
    transform: scale(0.85);
  }
}
.audio-preview {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  text-align: left;
}
.audio-preview-player {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 16px;
  margin-top: 4px;
  text-align: left;
}
.audio-preview-player__media {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.audio-preview-player__play {
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  background: rgba(210, 242, 120, 0.95);
  color: var(--forest, #1a2421);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(15, 31, 19, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.audio-preview-player__play:hover {
  transform: scale(1.04);
}
.audio-preview-player__play:focus-visible {
  outline: 2px solid var(--forest-mid, #2d5a40);
  outline-offset: 3px;
}
.audio-preview-player__svg {
  display: block;
}
.audio-preview-player__play .audio-preview-player__svg--pause {
  display: none;
}
.audio-preview-player__play--playing .audio-preview-player__svg--play {
  display: none;
}
.audio-preview-player__play--playing .audio-preview-player__svg--pause {
  display: block;
}
.audio-preview-player__svg--play {
  margin-left: 3px;
}
.audio-preview-player__panel {
  flex: 1 1 200px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.audio-preview-player__track {
  height: 10px;
  border-radius: 999px;
  background: rgba(26, 36, 33, 0.1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.audio-preview-player__track-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  border-radius: inherit;
  background: var(--brand-dark, #14532d);
  pointer-events: none;
}
.audio-preview-player__times {
  font-size: 0.82rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.audio-preview-player__sep {
  margin: 0 0.2em;
  opacity: 0.55;
}
.audio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}
.audio-actions--recstart {
  margin-top: 14px;
}
.audio-btn-stop {
  flex: 1 1 auto;
  min-height: 48px;
  max-width: 100%;
  width: 100%;
  font-weight: 600;
  border: 2px solid #dc2626 !important;
  background: #fff !important;
  color: #b91c1c !important;
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(220, 38, 38, 0.12);
}
.audio-btn-stop:hover {
  background: #fef2f2 !important;
  border-color: #b91c1c !important;
  color: #991b1b !important;
}
/* Bouton rond enregistrement (style APYJOB : accent vert) */
.rec-circle-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid var(--forest-mid);
  background: rgba(210, 242, 120, 0.35);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 4px 16px rgba(15, 31, 19, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.rec-circle-btn:hover:not(:disabled) {
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(210, 242, 120, 0.45);
}
.rec-circle-btn:disabled {
  cursor: default;
  opacity: 1;
}
.rec-circle-btn:focus-visible {
  outline: 2px solid var(--forest-mid);
  outline-offset: 3px;
}
.rec-circle-btn__disc {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--forest);
  display: block;
}
.rec-circle-btn--recording {
  animation: rec-ring-pulse 1.2s ease-in-out infinite;
}
@keyframes rec-ring-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(210, 242, 120, 0.55);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(210, 242, 120, 0);
  }
}
.audio-recorded-mark {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin: 0 0 12px;
  padding: 10px 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 600;
  color: #14532d;
}
.audio-recorded-mark__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #dc2626;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.25);
}
.audio-recorded-mark__text {
  flex: 1 1 160px;
  min-width: 0;
}
.audio-recorded-mark__redo {
  flex-shrink: 0;
  margin-left: auto;
}
.estab-meta--phone a {
  font-weight: 600;
  color: var(--brand-dark);
  text-decoration: none;
}
.estab-meta--phone a:hover {
  text-decoration: underline;
}

.job-edit-back {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.job-edit-back__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.job-edit-close-cta {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  background: var(--surface-alt, #fafafa);
  box-sizing: border-box;
}
.job-edit-close-cta__text {
  flex: 1 1 220px;
  min-width: 0;
}
.job-edit-close-cta__title {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text, #1a1a1a);
}
.job-edit-close-cta__hint {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted, #6b7280);
  line-height: 1.45;
}
.job-edit-close-cta__btn {
  flex-shrink: 0;
}

/* Notifications (édition offre) — interrupteur */
.job-edit-notify {
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--border, rgba(148, 163, 184, 0.35));
}
.job-notify-switch-row {
  margin-top: 4px;
}
.job-notify-switch {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  margin: 0;
}
.job-notify-switch__input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.job-notify-switch__track {
  flex-shrink: 0;
  position: relative;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background 0.18s ease;
  margin-top: 2px;
}
.job-notify-switch__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
  transition: transform 0.18s ease;
}
.job-notify-switch__input:focus-visible + .job-notify-switch__track {
  outline: 2px solid #062d20;
  outline-offset: 2px;
}
.job-notify-switch__input:checked + .job-notify-switch__track {
  background: #062d20;
}
.job-notify-switch__input:checked + .job-notify-switch__track .job-notify-switch__thumb {
  transform: translateX(18px);
}
.job-notify-switch__text {
  display: block;
  flex: 1;
  min-width: 0;
}
.job-notify-switch__title {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text, #1a1a1a);
  margin: 0 0 6px;
}
.job-notify-switch__desc {
  display: block;
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--muted, #6b7280);
  line-height: 1.45;
}

.tapcv-recaptcha-group {
  margin-top: 8px;
  margin-bottom: 4px;
}
.tapcv-recaptcha-group .g-recaptcha {
  display: inline-block;
}

.merchant-job-close-dialog {
  max-width: min(92vw, 440px);
  width: 100%;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
  background: var(--surface, #fff);
  color: var(--text, #1a1a1a);
}
.merchant-job-close-dialog::backdrop {
  background: rgba(0, 0, 0, 0.45);
}
.merchant-job-close-dialog__inner {
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.merchant-job-close-dialog__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}
.merchant-job-close-dialog__intro {
  margin: 0;
}
.merchant-job-close-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
  padding-top: 4px;
}

.merchant-main .label-like {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text, #1a1a1a);
}
.merchant-main .job-work-days {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
}
.merchant-main .job-work-days__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  user-select: none;
}
.merchant-main .job-work-days__item input {
  margin: 0;
  flex-shrink: 0;
}

.merchant-main .job-edit-hf-line {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px 12px;
}
.merchant-main .job-edit-hf-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  cursor: pointer;
  flex: 1;
  min-width: 0;
  margin: 0;
  line-height: 1.4;
}
.merchant-main .job-edit-hf-check input {
  margin-top: 3px;
  flex-shrink: 0;
}
.merchant-main .job-edit-hf-info {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border, #d1d5db);
  border-radius: 50%;
  background: var(--surface-alt, #f4f5f6);
  color: var(--muted, #6b7280);
  font-size: 0.7rem;
  font-weight: 800;
  font-style: italic;
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.merchant-main .job-edit-hf-info:hover {
  border-color: var(--brand, #1d4ed8);
  color: var(--brand-dark, #1e3a8a);
  background: #fff;
}
.merchant-main .job-edit-hf-panel {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border, #e5e7eb);
  background: var(--surface-alt, #fafafa);
  max-width: 40rem;
}
.merchant-main .job-edit-hf-panel__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text, #374151);
}

.merchant-main .job-edit-title-preview {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border, #e5e7eb);
  background: var(--surface-alt, #fafafa);
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted, #6b7280);
}
.merchant-main .job-edit-title-preview__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted, #6b7280);
  margin-bottom: 4px;
}
.merchant-main .job-edit-title-preview__value {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text, #111827);
}

/* Abonnement : paiement + code promo repliable à droite */
.merchant-main .billing-checkout-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.merchant-main .billing-checkout-actions__pay {
  flex-shrink: 0;
}
.merchant-main .billing-promo-disclosure {
  flex: 0 1 auto;
  min-width: min(100%, 220px);
  margin: 0;
  text-align: right;
}
.merchant-main .billing-promo-disclosure__summary {
  list-style: none;
  cursor: pointer;
  display: inline-block;
  margin: 0 0 0 auto;
  padding: 6px 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand, #1d4ed8);
  text-decoration: underline;
  text-underline-offset: 3px;
  user-select: none;
}
.merchant-main .billing-promo-disclosure__summary::-webkit-details-marker {
  display: none;
}
.merchant-main .billing-promo-disclosure__body {
  margin-top: 10px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border, #e5e7eb);
  background: var(--surface-alt, #fafafa);
  text-align: left;
}
.merchant-main .billing-promo-disclosure__label {
  display: block;
  margin: 0 0 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted, #6b7280);
}
.merchant-main .billing-promo-disclosure__input {
  display: block;
  width: 100%;
  max-width: 16rem;
  box-sizing: border-box;
}
.merchant-main .billing-promo-disclosure[data-disabled="1"] .billing-promo-disclosure__summary {
  pointer-events: none;
  opacity: 0.55;
  cursor: not-allowed;
  text-decoration: none;
  color: var(--muted, #9ca3af);
}
@media (max-width: 520px) {
  .merchant-main .billing-checkout-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .merchant-main .billing-checkout-actions__pay {
    width: 100%;
  }
  .merchant-main .billing-promo-disclosure {
    align-self: flex-end;
  }
}

.job-row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: stretch;
  gap: 8px;
}
/* Boîte identique dans la colonne Actions : lien, <button> et submit. */
.merchant-main .job-row-actions > a.btn.btn--sm,
.merchant-main .job-row-actions > button.btn.btn--sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 152px;
  height: 38px;
  min-height: 38px;
  padding: 0 14px;
  line-height: 1.2;
  white-space: nowrap;
  font-family: inherit;
}
.merchant-main .job-row-actions > button.btn.btn--sm {
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
}
.merchant-main .job-row-actions__form {
  display: flex;
  margin: 0;
  padding: 0;
  border: none;
  align-items: stretch;
  align-self: stretch;
  width: 152px;
  height: 38px;
  min-height: 38px;
}
.merchant-main .job-row-actions__form button.btn.btn--sm {
  margin: 0;
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 38px;
  min-height: 38px;
  padding: 0 14px;
  line-height: 1.2;
  white-space: nowrap;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}
.merchant-main .merchant-jobs-table th.merchant-jobs-table__diff-col,
.merchant-main .merchant-jobs-table td.merchant-jobs-diff-cell {
  text-align: left;
}

.merchant-main .merchant-jobs-table td.merchant-jobs-diff-cell {
  vertical-align: middle;
  max-width: 17rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #374151;
}

.merchant-main .merchant-jobs-table .merchant-jobs-diff-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
}

.merchant-main .merchant-jobs-table .merchant-jobs-diff-stack--has-action {
  transform: translateY(20px);
}

.merchant-main .merchant-jobs-table td.merchant-jobs-diff-cell .merchant-jobs-diff-line {
  display: block;
  text-align: left;
}

.merchant-main .merchant-jobs-table .merchant-jobs-prolong-campaign {
  margin-top: 8px;
  display: inline-flex;
  justify-content: center;
}

.merchant-main .merchant-jobs-table th.merchant-jobs-table__published-col,
.merchant-main .merchant-jobs-table td.merchant-jobs-table__published-col {
  text-align: center;
  vertical-align: middle;
}

.merchant-jobs-table th.merchant-jobs-table__public-col,
.merchant-jobs-table td.merchant-jobs-table__public-col {
  text-align: center;
  width: 1%;
  white-space: nowrap;
  vertical-align: middle;
}
.merchant-jobs-table th.merchant-jobs-table__public-col {
  position: relative;
  color: var(--muted, #6b7280);
}
.merchant-jobs-table__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;
}
.merchant-jobs-table .merchant-jobs-table__public-heading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

.merchant-main .merchant-dash__table th.merchant-dash-estab__public-col,
.merchant-main .merchant-dash__table td.merchant-dash-estab__public-col {
  text-align: center;
  width: 1%;
  white-space: nowrap;
  vertical-align: middle;
}
.merchant-main .merchant-dash__table th.merchant-dash-estab__public-col {
  position: relative;
  color: var(--muted, #6b7280);
}
.merchant-main .merchant-dash__table .merchant-dash-estab__public-heading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}
.merchant-job-public-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  box-sizing: border-box;
  border-radius: 999px;
  border: 1px solid var(--border, #e5e7eb);
  color: var(--brand-dark, #1a1a1a);
  background: var(--surface, #fff);
  text-decoration: none;
  line-height: 0;
}
.merchant-job-public-icon-link:hover {
  background: var(--surface-alt, #f9fafb);
}
.merchant-job-public-icon-link--off {
  width: auto;
  height: auto;
  min-width: 1.25em;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--muted, #9ca3af);
  font-size: 0.95rem;
  cursor: default;
  pointer-events: none;
}
.merchant-jobs-table th.merchant-jobs-table__actions-col,
.merchant-jobs-table td.merchant-jobs-table__actions-col {
  text-align: right;
  width: 1%;
  white-space: nowrap;
  vertical-align: middle;
}
.merchant-jobs-table__title-link {
  color: inherit;
  text-decoration: none;
  font-weight: inherit;
}
.merchant-jobs-table__title-link:hover {
  color: var(--brand-dark, #1a2e1f);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.merchant-jobs-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 14px;
}
.merchant-jobs-tabs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
  margin: 2px 0 14px;
}
.merchant-jobs-tabs-row__tabs {
  flex: 1 1 auto;
  min-width: 0;
}
.merchant-jobs-tabs-row__tabs .merchant-jobs-tabs {
  margin: 0;
}
.merchant-jobs-tabs-row__config {
  flex: 0 0 auto;
}
.merchant-jobs-tabs-row__config .estab-wizard-jobs-notify-anchor {
  margin-bottom: 0;
}
.merchant-jobs-tabs-row--setup-only {
  justify-content: flex-end;
}
.merchant-jobs-tabs__link {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border, #e5e7eb);
  background: var(--surface, #fff);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text, #1a1a1a);
  text-decoration: none;
}
.merchant-jobs-tabs__link:hover {
  background: var(--surface-alt, #f9fafb);
}
.merchant-jobs-tabs__link.is-active {
  background: var(--forest, #1a2e1f);
  color: #fff;
  border-color: var(--forest, #1a2e1f);
}
.merchant-jobs-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 12px;
}
.merchant-jobs-section-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}
.form-group__legend {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text, #1a1a1a);
}
.job-edit-legal-details {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-bottom: 12px;
}
.job-edit-legal-details__summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--forest, #1a2e1f);
  list-style: none;
  user-select: none;
  padding: 4px 0;
  align-self: flex-end;
  text-align: right;
}
.job-edit-legal-details__summary::-webkit-details-marker {
  display: none;
}
.job-edit-legal-details__summary:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.job-edit-legal-details .job-edit-legal-info {
  margin-top: 10px;
  margin-bottom: 0;
}
.job-edit-legal-info {
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 12px;
}
.job-edit-legal-info strong {
  color: inherit;
}
.job-edit-legal-info > strong:first-child {
  display: block;
  margin-bottom: 10px;
  font-size: 0.95rem;
}
.job-edit-legal-info p {
  margin: 0.55em 0 0;
}
.job-edit-legal-info ul {
  margin: 0.35em 0 0;
  padding-left: 1.2rem;
}
.job-edit-legal-info li {
  margin: 0.2em 0;
}
.merchant-jobs-row--closed td {
  background: rgba(237, 233, 254, 0.22);
}

/* Paiements : en-tête carte avec lien factures (visible à côté du contexte établissement) */
.billing-pay-block__head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}
.billing-pay-block__head-main {
  min-width: 0;
  flex: 1 1 12rem;
}
.billing-pay-block__head-actions {
  flex: 0 0 auto;
}
.merchant-jobs-row--archived td {
  background: rgba(241, 245, 249, 0.55);
}
.rec-timer {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--brand-dark);
}

.qr-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 28px;
  text-align: center;
}
.qr-box img {
  margin: 12px auto;
  max-width: 220px;
}

.sticker-qr-download {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: left;
}
.sticker-qr-download__title {
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.sticker-qr-download__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-bottom: 12px;
}
.sticker-qr-download__row--svg {
  margin-bottom: 0;
  align-items: flex-start;
}
.sticker-qr-download__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-dark, #062d20);
}
.sticker-qr-download__select {
  min-width: 140px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #062d20;
  background: #fff;
  border: 1px solid var(--border);
  cursor: pointer;
}
.sticker-qr-download__select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.sticker-qr-download__btn {
  flex-shrink: 0;
}
.sticker-qr-download__svg-hint {
  flex: 1;
  min-width: 180px;
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
}
.sticker-qr-download__btn--disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.admin-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0 0 20px;
  padding: 10px 0 16px;
  border-bottom: 1px solid var(--border);
}
.admin-subnav__link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
}
.admin-subnav__link:hover {
  color: var(--brand-dark);
  background: rgba(210, 242, 120, 0.28);
}
.admin-subnav__link.is-active {
  color: var(--brand-dark);
  background: rgba(210, 242, 120, 0.4);
}

/* Padding vertical commun ; la largeur suit .container (max-width 1100px) — plus de max-width inline par page */
main.admin-supervision-main {
  box-sizing: border-box;
  padding-top: 20px;
  padding-bottom: 48px;
}

.footer-mini {
  text-align: center;
  padding: 24px 16px;
  color: var(--muted);
  font-size: 0.85rem;
}

.empty-state {
  text-align: center;
  padding: 40px 16px;
  color: var(--muted);
}

.grid-2 {
  display: grid;
  gap: 16px;
}
@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.billing-status {
  margin: 0 0 8px;
  font-size: 1rem;
}
.billing-status--ok {
  color: var(--brand-dark);
}
.billing-pay-card .billing-price-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.55;
}

.invoice-sheet {
  max-width: 720px;
}
.invoice-sheet__head {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}
.invoice-sheet__title {
  margin: 0;
  font-size: 1.5rem;
}
.invoice-sheet__meta {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.invoice-sheet__grid {
  display: grid;
  gap: 24px;
  margin-bottom: 24px;
}
@media (min-width: 640px) {
  .invoice-sheet__grid {
    grid-template-columns: 1fr 1fr;
  }
}
.invoice-sheet__party h2 {
  margin: 0 0 10px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.invoice-sheet__party p {
  margin: 0 0 6px;
  line-height: 1.45;
}
.invoice-sheet__pre {
  margin: 0;
  font-family: inherit;
  font-size: 0.9rem;
  white-space: pre-wrap;
  line-height: 1.45;
  color: var(--text);
}
.invoice-sheet__table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.95rem;
}
.invoice-sheet__table th,
.invoice-sheet__table td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
}
.invoice-sheet__table th {
  background: #f8fafc;
}
.invoice-sheet__num {
  text-align: right;
  white-space: nowrap;
}
.invoice-sheet__total {
  margin: 16px 0 0;
  font-size: 1.05rem;
}

/* Catégorie métier — champ recherche + suggestions (édition annonce) */
.job-category-ac__field {
  position: relative;
}
.job-category-ac input[type='text'] {
  width: 100%;
  max-width: 100%;
}
.job-category-ac__list {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  position: absolute;
  left: 0;
  right: 0;
  z-index: 40;
  max-height: 240px;
  overflow-y: auto;
  background: var(--surface, #fff);
  border: 1px solid var(--border, #d1d5db);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 31, 19, 0.12);
}
.job-category-ac__item {
  margin: 0;
  padding: 8px 12px;
  font-size: 0.9rem;
  line-height: 1.35;
  cursor: pointer;
}
.job-category-ac__item:hover,
.job-category-ac__item.is-active {
  background: rgba(210, 242, 120, 0.35);
}

@media print {
  .skip-link,
  .merchant-nav,
  .merchant-topbar,
  .impersonation-bar {
    display: none !important;
  }
  .layout-merchant .merchant-wrap {
    display: block;
  }
  .layout-merchant .merchant-main {
    max-width: none;
    padding: 0;
  }
  .invoice-sheet {
    box-shadow: none;
    border: 0;
  }
}

/* ============================================================
   PORTAL SAAS — MODERNISATION DESIGN
   ============================================================ */

/* Icônes colorées par variante */
body.portal-saas .portal-card__icon {
  border-radius: 14px;
  transition: transform 0.15s ease;
}
body.portal-saas .portal-card:hover .portal-card__icon {
  transform: scale(1.08);
}
body.portal-saas .portal-card__icon--blue   { background: rgba(210, 242, 120, 0.45); color: #0f1f13; }
body.portal-saas .portal-card__icon--purple { background: #EDE9FE; color: #5b21b6; }
body.portal-saas .portal-card__icon--amber  { background: #FEF3C7; color: #D97706; }
body.portal-saas .portal-card__icon--teal   { background: rgba(210, 242, 120, 0.35); color: #002c1f; }
body.portal-saas .portal-card__icon--rose   { background: #FFE4E6; color: #E11D48; }
body.portal-saas .portal-card__icon--indigo { background: #e8f5e0; color: #0f1f13; }
body.portal-saas .portal-card__icon--lime {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--portal-lime-solid);
  color: var(--portal-ink);
}

/* Hero — titre maquette */
body.portal-saas .portal-hero h1,
body.portal-saas .portal-hero #portal-hero-title {
  background: none;
  -webkit-text-fill-color: unset;
  color: var(--portal-ink);
  font-size: clamp(2.35rem, 6vw, 3.55rem);
  line-height: 1.08;
  margin-bottom: 16px;
}

body.portal-saas .portal-hero h1 .portal-highlight,
body.portal-saas .portal-hero #portal-hero-title .portal-highlight {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: var(--portal-lime-solid);
  color: var(--portal-lime-solid);
  font-weight: 800;
}

/* Pills avec checkmark */
body.portal-saas .portal-pills li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
body.portal-saas .portal-pills li::before {
  content: '';
  display: inline-flex;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Ccircle cx='8' cy='8' r='8' fill='%23d2f278' opacity='.35'/%3E%3Cpath d='M4.5 8 L7 10.5 L11.5 5.5' stroke='%230f1f13' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}

/* Barre de statistiques hero */
.portal-hero__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 4px;
  margin-top: 28px;
  padding: 18px 20px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
}
body.portal-saas .portal-hero__stats {
  background: #f8fafc;
  border-color: #e5e7eb;
}
.portal-hero__stat {
  flex: 1 1 120px;
  text-align: center;
  padding: 4px 12px;
}
.portal-hero__stat strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #111827;
  line-height: 1.15;
}
body.portal-saas .portal-hero__stat strong {
  background: linear-gradient(135deg, #0f1f13 0%, #3d5c26 85%, #6b8f2b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.portal-hero__stat span {
  display: block;
  font-size: 0.78rem;
  color: #6b7280;
  margin-top: 2px;
  font-weight: 500;
}
.portal-hero__stat-divider {
  width: 1px;
  height: 36px;
  background: #e5e7eb;
  flex-shrink: 0;
  align-self: center;
}
@media (max-width: 599px) {
  .portal-hero__stat-divider {
    display: none;
  }
  .portal-hero__stat {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 12px;
  }
  .portal-hero__stat:last-child {
    border-bottom: none;
  }
}

/* Cards : accent sur le bord supérieur */
body.portal-saas .portal-card {
  position: relative;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
body.portal-saas .portal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background 0.18s ease;
  border-radius: 16px 16px 0 0;
}
body.portal-saas .portal-card:hover {
  transform: translateY(-3px);
}
body.portal-saas .portal-card:hover::before {
  background: var(--portal-lime);
}

/* Étapes : badge numéroté amélioré + connecteur */
body.portal-saas .portal-step {
  transition: box-shadow 0.18s ease, transform 0.18s ease;
  /* Espace sous le badge numéroté (position absolute) */
  padding-top: 4.75rem;
}
body.portal-saas .portal-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(15, 31, 19, 0.12);
}
body.portal-saas .portal-step__num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  top: 1.25rem;
  background: var(--portal-accent);
  box-shadow: 0 2px 8px rgba(15, 31, 19, 0.2);
}
body.portal-saas .portal-step h3 {
  margin-top: 0;
}
@media (min-width: 720px) {
  body.portal-saas .portal-steps {
    position: relative;
    align-items: stretch;
  }
  body.portal-saas .portal-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: calc(16.66% + 16px);
    right: calc(16.66% + 16px);
    height: 2px;
    background: repeating-linear-gradient(
      90deg,
      var(--portal-lime-solid) 0,
      var(--portal-lime-solid) 6px,
      transparent 6px,
      transparent 14px
    );
    z-index: 0;
    pointer-events: none;
  }
  body.portal-saas .portal-step {
    position: relative;
    z-index: 1;
  }
}

/* FAQ : ouverture avec animation */
body.portal-saas .portal-faq__item {
  transition: box-shadow 0.18s ease;
}
body.portal-saas .portal-faq__item[open] {
  box-shadow: 0 4px 24px rgba(15, 31, 19, 0.08);
}
body.portal-saas .portal-faq__item summary {
  transition: background 0.15s ease;
}
body.portal-saas .portal-faq__item summary:hover {
  background: #f9fafb;
}

/* Pricing card : bandeau lime */
body.portal-saas .portal-pricing__card {
  position: relative;
  overflow: hidden;
}
body.portal-saas .portal-pricing__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--portal-lime) 0%, var(--portal-accent) 100%);
  border-radius: 20px 20px 0 0;
}

/* Bandeau CTA */
body.portal-saas .portal-cta-band {
  background: linear-gradient(135deg, #0f1f13 0%, #002c1f 55%, #152818 100%);
  position: relative;
  overflow: hidden;
}
body.portal-saas .portal-cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
}

/* Illustration héro : ombre douce (sauf variante coins large maquette) */
body.portal-saas figure.portal-illu.portal-illu--hero:not(.portal-illu--hero-curve) {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(15, 31, 19, 0.12), 0 4px 16px rgba(197, 230, 65, 0.14);
  border: 1px solid #e5e7eb;
}

/* Logo : légère amélioration typographique */
body.portal-saas .logo {
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  font-weight: 800;
}

/* Scroll-into-view animation pour les sections */
@media (prefers-reduced-motion: no-preference) {
  body.portal-saas .portal-card,
  body.portal-saas .portal-step,
  body.portal-saas .portal-faq__item {
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  }
}

/* Parcours candidat (apply) — mobile-first APYJOB */
body.apply-flow {
  background: var(--bg);
}
body.apply-flow main#main.container {
  padding-bottom: 2.5rem;
}
body.apply-flow .card.card--flat {
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border) !important;
}
body.apply-flow .site-header {
  box-shadow: 0 1px 3px rgba(15, 31, 19, 0.06);
}

/* ——— Candidat (scan QR / fiche / formulaire) — charte apyjob mobile ——— */
:root {
  --cx-lime: #d1f03c;
  --cx-ink: #1a2421;
  --cx-muted: #6b756f;
  --cx-line: #e8ebe8;
  --cx-radius: 18px;
  --cx-radius-lg: 22px;
}

body.candidate-flow,
body.apply-flow {
  background: #fff !important;
  color: var(--cx-ink);
}

body.candidate-flow .candidate-header,
body.apply-flow .candidate-header {
  background: #fff;
  border-bottom: 1px solid var(--cx-line);
  position: sticky;
  top: 0;
  z-index: 50;
}
body.candidate-flow .candidate-header__inner,
body.apply-flow .candidate-header__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 8px 16px;
}
body.candidate-flow .candidate-header--sub .candidate-header__inner,
body.apply-flow .candidate-header--sub .candidate-header__inner {
  justify-content: flex-start;
}
body.candidate-flow .candidate-brand,
body.apply-flow .candidate-brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
body.candidate-flow .candidate-brand--mark-only,
body.apply-flow .candidate-brand--mark-only {
  cursor: default;
}
body.candidate-flow .candidate-brand__img,
body.apply-flow .candidate-brand__img {
  height: 30px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  display: block;
}
body.candidate-flow .candidate-brand__text,
body.apply-flow .candidate-brand__text {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--cx-ink);
}
body.candidate-flow .candidate-brand__j,
body.apply-flow .candidate-brand__j {
  position: relative;
  display: inline-block;
}
body.candidate-flow .candidate-brand__j::after,
body.apply-flow .candidate-brand__j::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border: 2px solid var(--cx-lime);
  border-radius: 50%;
  right: -1px;
  top: 0;
  opacity: 0.95;
}
body.apply-flow .candidate-header__back,
body.candidate-flow .candidate-header__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--cx-ink);
  text-decoration: none;
  padding: 4px 10px 4px 4px;
  border-radius: 12px;
}
body.apply-flow .candidate-header__back:hover,
body.candidate-flow .candidate-header__back:hover {
  background: rgba(209, 240, 60, 0.2);
  text-decoration: none;
  color: var(--cx-ink);
}
body.apply-flow .candidate-header__back-ico,
body.candidate-flow .candidate-header__back-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 999px;
  background: rgba(209, 240, 60, 0.26);
  color: var(--cx-ink);
}
body.candidate-flow .candidate-app {
  position: relative;
  padding-bottom: 2.5rem;
}
body.candidate-flow .candidate-est-card {
  background: #fafafa;
  border: 1px solid var(--cx-line);
  border-radius: var(--cx-radius-lg);
  padding: 16px 18px;
  margin: 16px 0 20px;
  box-shadow: 0 2px 12px rgba(26, 36, 33, 0.04);
}
body.candidate-flow .candidate-est-card__row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
body.candidate-flow .candidate-est-card__logo {
  /* Affichage ; export logo commerçant limité à 2× pour Retina (voir merchant/establishment-edit.php) */
  width: 84px;
  height: 84px;
  border-radius: 18px;
  object-fit: cover;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--cx-line);
}
body.candidate-flow .candidate-est-card__logo--ph {
  background: linear-gradient(145deg, rgba(209, 240, 60, 0.35), #eef0ee);
}
body.candidate-flow .candidate-est-card__name {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cx-ink);
}
body.candidate-flow .candidate-est-card__meta {
  margin: 0;
  font-size: 0.88rem;
  color: var(--cx-muted);
  line-height: 1.45;
}
body.candidate-flow .candidate-est-card__meta--phone a {
  color: var(--cx-ink);
  font-weight: 600;
}
body.candidate-flow .candidate-est-card__social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
body.candidate-flow .candidate-est-card__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #fff;
  border: 1px solid var(--cx-line);
  color: var(--cx-muted);
  box-sizing: border-box;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
body.candidate-flow .candidate-est-card__social-link:hover {
  color: var(--cx-ink);
  border-color: rgba(26, 36, 33, 0.35);
  background: #f6f7f6;
}
body.candidate-flow .candidate-est-card__social-svg {
  display: block;
}
body.candidate-flow .candidate-welcome {
  text-align: center;
  padding: 8px 8px 24px;
  position: relative;
  z-index: 1;
}
body.candidate-flow .candidate-welcome__title {
  margin: 0 0 12px;
  font-size: clamp(1.45rem, 5vw, 1.85rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--cx-ink);
}
body.candidate-flow .candidate-welcome__accent {
  color: var(--cx-lime);
  text-shadow: 0 0 1px rgba(26, 36, 33, 0.08);
}
body.candidate-flow .candidate-welcome__kicker {
  margin: 0 0 22px;
  font-size: 0.92rem;
  color: var(--cx-muted);
  font-weight: 500;
}
body.candidate-flow .candidate-welcome__cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 340px;
  margin: 0 auto;
}
body.candidate-flow .candidate-welcome__hint {
  margin: 20px 0 0;
  font-size: 0.85rem;
}
body.candidate-flow .candidate-welcome__hint a {
  color: var(--cx-muted);
  font-weight: 500;
}
body.candidate-flow .candidate-welcome__hint a:hover {
  color: var(--cx-ink);
}
body.candidate-flow .candidate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: filter 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
body.candidate-flow .candidate-btn--primary {
  background: var(--cx-lime);
  color: var(--cx-ink);
  box-shadow: 0 4px 18px rgba(209, 240, 60, 0.45);
}
body.candidate-flow .candidate-btn--primary:hover {
  filter: brightness(0.97);
  text-decoration: none;
  color: var(--cx-ink);
}
body.candidate-flow .candidate-btn--secondary {
  background: #fff;
  color: var(--cx-ink);
  border: 1.5px solid var(--cx-ink);
  box-shadow: none;
}
body.candidate-flow .candidate-btn--secondary:hover {
  background: rgba(209, 240, 60, 0.12);
  text-decoration: none;
  color: var(--cx-ink);
}
body.candidate-flow .candidate-btn__ico {
  flex-shrink: 0;
  opacity: 0.85;
}
body.apply-flow .candidate-consent-box {
  display: grid;
  gap: 10px;
  margin: 20px 0;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.72);
}
body.apply-flow .candidate-consent-box__row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--cx-ink, var(--text));
  cursor: pointer;
}
body.apply-flow .candidate-consent-box__row input {
  margin-top: 3px;
  flex: 0 0 auto;
}
body.apply-flow .candidate-consent-box__row a {
  font-weight: 700;
}
body.apply-flow .candidate-consent-box__hint {
  margin: 2px 0 0 24px;
  font-size: 0.82rem;
  color: var(--cx-muted, var(--muted));
}
/* Anneau décoratif : derrière le compteur et le haut de la première offre */
body.candidate-flow .candidate-offres::before {
  content: "";
  position: absolute;
  top: -16px;
  right: -50px;
  width: 118px;
  height: 124px;
  border: 14px solid rgba(209, 240, 60, 0.45);
  border-radius: 50%;
  box-sizing: border-box;
  pointer-events: none;
  z-index: -1;
  opacity: 0.78;
}
@media (max-width: 520px) {
  body.candidate-flow .candidate-offres::before {
    top: 4px;
    right: -32px;
    width: 124px;
    height: 124px;
    border-width: 14px;
    opacity: 0.78;
  }
}
body.candidate-flow .candidate-offres {
  position: relative;
  z-index: 1;
  margin-top: 8px;
}
body.candidate-flow .candidate-offres__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}
body.candidate-flow .candidate-offres__spontaneous-pill-wrap {
  margin: 0 0 14px;
  display: flex;
  align-items: center;
}
body.candidate-flow .candidate-offres__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--cx-ink);
}
body.candidate-flow .candidate-offres__badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(209, 240, 60, 0.35);
  color: var(--cx-ink);
}
body.candidate-flow .candidate-empty {
  padding: 28px 20px;
  text-align: center;
  color: var(--cx-muted);
  border: 1px dashed var(--cx-line);
  border-radius: var(--cx-radius-lg);
  background: #fafafa;
}
body.candidate-flow .job-list--candidate {
  gap: 14px;
  isolation: isolate;
}
body.candidate-flow .job-card--candidate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 16px 18px 18px;
  border-radius: var(--cx-radius-lg);
  border: 1px solid var(--cx-line);
  background: #fff;
  box-shadow: 0 2px 10px rgba(26, 36, 33, 0.05);
}
body.candidate-flow .job-card--candidate:hover {
  border-color: rgba(209, 240, 60, 0.85);
  box-shadow: 0 6px 22px rgba(26, 36, 33, 0.08);
  text-decoration: none;
}
/* Même carte que les offres, ton légèrement différent pour la candidature spontanée */
body.candidate-flow .job-card--candidate-spontaneous {
  border-style: solid;
  background: linear-gradient(135deg, #fff 0%, rgba(209, 240, 60, 0.08) 100%);
}
body.candidate-flow .job-card--candidate-spontaneous .job-card__title {
  letter-spacing: -0.02em;
}
body.candidate-flow .job-card__apply-pill--spontaneous {
  background: var(--cx-ink);
  color: #fff;
}
body.candidate-flow .candidate-offres__badge--spontaneous {
  background: rgba(26, 36, 33, 0.08);
  color: var(--cx-ink);
  border: 1px solid rgba(26, 36, 33, 0.12);
}
body.candidate-flow .job-card__main {
  min-width: 0;
  text-align: left;
}
body.candidate-flow .job-card__tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--cx-lime);
  color: var(--cx-ink);
  margin-bottom: 8px;
}
body.candidate-flow .job-card__title {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cx-ink);
}
body.candidate-flow .job-card__est {
  margin: 0 0 6px;
  font-size: 0.85rem;
  color: var(--cx-muted);
}
body.candidate-flow .job-card__meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--cx-muted);
}
body.candidate-flow .job-card__dot {
  margin: 0 4px;
}
body.candidate-flow .job-card__aside {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
}
body.candidate-flow .job-card__apply-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--cx-lime);
  color: var(--cx-ink);
  white-space: nowrap;
  line-height: 1.2;
}
body.candidate-flow .job-card__chev {
  flex-shrink: 0;
  color: #9aa39a;
  display: flex;
}
body.candidate-flow .footer-mini--candidate,
body.apply-flow .footer-mini--candidate {
  text-align: center;
  padding: 20px 16px 28px;
  font-size: 0.8rem;
  color: var(--cx-muted);
  background: #fff;
  border-top: 1px solid var(--cx-line);
}
body.candidate-flow .footer-mini__attribution,
body.apply-flow .footer-mini__attribution {
  font-weight: 500;
  letter-spacing: normal;
  color: var(--cx-muted);
}
body.candidate-flow .footer-mini__brand-link,
body.apply-flow .footer-mini__brand-link {
  color: var(--cx-ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
body.candidate-flow .footer-mini__brand-link:hover,
body.apply-flow .footer-mini__brand-link:hover {
  text-decoration-thickness: 2px;
}
body.candidate-flow .footer-mini__brand-link strong,
body.apply-flow .footer-mini__brand-link strong {
  font-weight: 700;
}

/* Formulaire candidature */
body.apply-flow .apply-main {
  padding-bottom: 3rem !important;
}
body.apply-flow .apply-main--wide {
  max-width: 1040px !important;
}
body.apply-flow {
  background:
    radial-gradient(circle at 50% -120px, rgba(209, 240, 60, 0.24), transparent 360px),
    linear-gradient(180deg, #ffffff 0%, #fbfcfb 42%, #ffffff 100%) !important;
}
body.apply-flow .apply-job-hero {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 22px;
  align-items: start;
  margin-bottom: 18px;
}
@media (max-width: 720px) {
  body.apply-flow .apply-job-hero {
    grid-template-columns: 1fr;
  }
}
body.apply-flow .apply-job-hero__aside {
  padding: 20px;
  border-radius: 28px;
  border: 1px solid var(--cx-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 252, 251, 0.98)),
    radial-gradient(circle at 16% 0%, rgba(209, 240, 60, 0.28), transparent 170px);
  box-shadow: 0 18px 48px rgba(26, 36, 33, 0.08);
  position: sticky;
  top: 76px;
}
@media (max-width: 720px) {
  body.apply-flow .apply-job-hero__aside {
    position: relative;
    top: auto;
  }
}
body.apply-flow .apply-job-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(209, 240, 60, 0.28);
  color: var(--cx-ink);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
body.apply-flow .apply-job-hero__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7fad00;
  box-shadow: 0 0 0 4px rgba(209, 240, 60, 0.45);
}
body.apply-flow .apply-job-hero__announce-date {
  margin: 0 0 6px;
  padding: 0;
  font-size: 0.6875rem;
  line-height: 1.35;
  color: var(--cx-muted);
  font-weight: 500;
}
body.apply-flow .apply-job-hero__announce-date time {
  font-weight: 600;
  color: var(--cx-ink);
}
body.apply-flow .apply-job-hero__date {
  margin: 0 0 8px;
  font-size: 0.82rem;
  color: var(--cx-muted);
}
body.apply-flow .apply-job-hero__title {
  margin: 0 0 16px;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--cx-ink);
}
body.apply-flow .apply-job-hero__facts {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--cx-ink);
  font-weight: 700;
}
body.apply-flow .apply-job-hero__facts li {
  margin: 0;
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(26, 36, 33, 0.09);
  box-shadow: 0 3px 10px rgba(26, 36, 33, 0.04);
}
body.apply-flow .apply-job-hero__facts li::before {
  content: none;
}
body.apply-flow .apply-place-card {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  align-items: stretch;
  margin: 0 0 16px;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid rgba(26, 36, 33, 0.1);
  background: #fff;
  box-shadow: 0 8px 24px rgba(26, 36, 33, 0.07);
}
body.apply-flow .apply-place-card__map {
  position: relative;
  min-height: 92px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(209, 240, 60, 0.42), rgba(255, 255, 255, 0.24)),
    #eef5e9;
}
body.apply-flow .apply-place-card__map::before,
body.apply-flow .apply-place-card__map::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  z-index: 3;
}
body.apply-flow .apply-place-card__map::before {
  width: 120px;
  height: 16px;
  left: -20px;
  top: 34px;
  transform: rotate(-28deg);
}
body.apply-flow .apply-place-card__map::after {
  width: 92px;
  height: 12px;
  right: -30px;
  bottom: 16px;
  transform: rotate(34deg);
}
body.apply-flow .apply-place-card__road {
  position: absolute;
  border-radius: 999px;
  background: rgba(26, 36, 33, 0.08);
  z-index: 1;
}
body.apply-flow .apply-place-card__road--one {
  width: 12px;
  height: 120px;
  left: 18px;
  top: -18px;
  transform: rotate(22deg);
}
body.apply-flow .apply-place-card__road--two {
  width: 84px;
  height: 8px;
  left: 14px;
  top: 64px;
  transform: rotate(-12deg);
}
body.apply-flow .apply-place-card__road--three {
  width: 74px;
  height: 7px;
  left: 8px;
  bottom: 12px;
  transform: rotate(18deg);
}
body.apply-flow .apply-place-card__pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--cx-lime);
  color: var(--cx-ink);
  box-shadow: 0 10px 22px rgba(26, 36, 33, 0.22);
  z-index: 2;
}
body.apply-flow .apply-place-card__body {
  min-width: 0;
  padding: 3px 0;
}
body.apply-flow .apply-place-card__label {
  margin: 0 0 2px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--cx-muted);
}
body.apply-flow .apply-place-card__title {
  margin: 0;
  color: var(--cx-ink);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.25;
}
body.apply-flow .apply-place-card__address {
  margin: 4px 0 0;
  color: var(--cx-muted);
  font-size: 0.78rem;
  line-height: 1.3;
}
body.apply-flow .apply-place-card__link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--cx-ink);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
body.apply-flow .apply-job-hero__cta {
  display: flex;
  width: 100%;
  justify-content: center;
  text-align: center;
}
body.apply-flow .apply-job-hero__body .apply-progress-wrap {
  margin: 0 0 12px;
}
body.apply-flow .apply-job-hero__body .apply-desc-card {
  margin-bottom: 0;
}
body.apply-flow .apply-job-head {
  margin-bottom: 18px;
}
body.apply-flow .apply-job-head__title {
  margin: 0 0 4px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--cx-ink);
  letter-spacing: -0.02em;
}
body.apply-flow .apply-job-head__meta {
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: var(--cx-muted);
  font-weight: 500;
}
body.apply-flow .apply-progress {
  height: 4px;
  border-radius: 999px;
  background: rgba(26, 36, 33, 0.08);
  overflow: hidden;
}
body.apply-flow .apply-progress__fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--cx-lime);
  transition: width 0.2s ease;
}
body.apply-flow .apply-desc-card {
  border-radius: var(--cx-radius-lg) !important;
  border: 1px solid var(--cx-line) !important;
  box-shadow: 0 2px 12px rgba(26, 36, 33, 0.04) !important;
}
body.apply-flow .apply-form-card {
  border-radius: 28px !important;
  border: 1px solid var(--cx-line) !important;
  box-shadow: 0 18px 50px rgba(26, 36, 33, 0.08) !important;
  padding: 24px 20px 26px !important;
}
body.apply-flow .apply-form-section-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 18px;
}
body.apply-flow .apply-form-section-head--questions {
  margin-top: 20px;
  padding-top: 22px;
  border-top: 1px solid var(--cx-line);
}
body.apply-flow .apply-form-section-head__step {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cx-lime);
  color: var(--cx-ink);
  font-size: 0.9rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(209, 240, 60, 0.38);
}
body.apply-flow .apply-form-section-head h2 {
  margin: 0;
  color: var(--cx-ink);
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
body.apply-flow .apply-form-section-head p {
  margin: 4px 0 0;
  color: var(--cx-muted);
  font-size: 0.84rem;
  line-height: 1.35;
}
body.apply-flow .apply-form-card .form-group label {
  font-weight: 600;
  color: var(--cx-ink);
}
body.apply-flow .apply-form-card input[type="text"],
body.apply-flow .apply-form-card input[type="email"],
body.apply-flow .apply-form-card input[type="tel"],
body.apply-flow .apply-form-card textarea,
body.apply-flow .apply-form-card select {
  border-radius: 14px !important;
  border-color: var(--cx-line) !important;
}
body.apply-flow .apply-form-card select {
  background-color: #fff;
}
body.apply-flow .yn-choice--candidate .yn-choice__btn {
  border-radius: 16px !important;
  border: 1.5px solid var(--cx-line) !important;
  background: #f4f5f4 !important;
  color: var(--cx-ink) !important;
  box-shadow: none !important;
  min-height: 52px;
}
body.apply-flow .yn-choice--candidate .yn-choice__input:checked + .yn-choice__btn {
  background: var(--cx-lime) !important;
  border-color: var(--cx-lime) !important;
  color: var(--cx-ink) !important;
}
body.apply-flow .audio-box .rec-circle-btn__disc {
  background: transparent !important;
  border: none !important;
}
body.apply-flow .audio-box .rec-circle-btn:hover:not(:disabled) .rec-circle-btn__disc {
  filter: brightness(0.96);
}
body.apply-flow .audio-box {
  border-radius: var(--cx-radius) !important;
  border-color: var(--cx-line) !important;
  background: #fafafa !important;
}
body.apply-flow .audio-box__help {
  max-width: 760px;
  margin: 18px auto 0 !important;
  text-align: center;
  line-height: 1.5;
}
body.apply-flow .audio-actions--recstart {
  width: 100%;
  max-width: 380px;
  margin: 12px auto 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: none;
  background: transparent;
  box-shadow: none;
}
body.apply-flow .rec-circle-btn {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: none;
  background: var(--cx-lime);
  color: var(--cx-ink);
  box-shadow: 0 8px 18px rgba(209, 240, 60, 0.42);
}
body.apply-flow .rec-circle-btn:hover:not(:disabled) {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 10px 22px rgba(209, 240, 60, 0.55);
}
body.apply-flow .rec-circle-btn__disc {
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  border-radius: inherit !important;
  background: transparent !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  color: currentColor;
}
body.apply-flow .rec-circle-btn__disc svg {
  display: block;
  width: 36px;
  height: 36px;
}
body.apply-flow .apply-photo-field {
  position: relative;
}
body.apply-flow .apply-photo-dropzone,
body.apply-flow .apply-attach-dropzone {
  display: block;
  margin: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
body.apply-flow .apply-photo-input,
body.apply-flow .apply-attach-input {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  font-size: 0;
}
body.apply-flow .apply-photo-dropzone__inner,
body.apply-flow .apply-attach-dropzone__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 16px;
  min-height: 64px;
  border: 2px dashed var(--cx-line);
  border-radius: 16px;
  background: #fafafa;
  transition: border-color 0.15s ease, background 0.15s ease;
  position: relative;
  z-index: 0;
}
body.apply-flow .apply-photo-dropzone--drag .apply-photo-dropzone__inner,
body.apply-flow .apply-attach-dropzone--drag .apply-attach-dropzone__inner {
  border-color: var(--cx-lime);
  background: #f4f7ef;
}
body.apply-flow .apply-photo-dropzone--has-file .apply-photo-dropzone__inner,
body.apply-flow .apply-attach-dropzone--has-file .apply-attach-dropzone__inner {
  border-style: solid;
  border-color: rgba(26, 36, 33, 0.22);
}
body.apply-flow .apply-photo-dropzone__icon,
body.apply-flow .apply-attach-dropzone__icon {
  flex-shrink: 0;
  color: var(--cx-muted);
  pointer-events: none;
}
body.apply-flow .apply-photo-dropzone__text,
body.apply-flow .apply-attach-dropzone__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  pointer-events: none;
}
body.apply-flow .apply-photo-dropzone__title,
body.apply-flow .apply-attach-dropzone__title {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--cx-ink);
}
body.apply-flow .apply-photo-dropzone__sub,
body.apply-flow .apply-attach-dropzone__sub {
  font-size: 0.88rem;
  color: var(--cx-muted);
  font-weight: 500;
  line-height: 1.35;
}
body.apply-flow .apply-attach-dropzone__sub--desktop {
  display: none;
}
@media (min-width: 768px) {
  body.apply-flow .apply-attach-dropzone__sub--mobile {
    display: none;
  }
  body.apply-flow .apply-attach-dropzone__sub--desktop {
    display: block;
  }
}
body.apply-flow .apply-photo-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
  position: relative;
  z-index: 3;
}
body.apply-flow .apply-photo-preview__img {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--cx-line);
}
body.apply-flow .apply-attach-filename {
  margin: 12px 0 0;
  font-size: 0.9rem;
  word-break: break-word;
  color: var(--cx-ink);
}
body.apply-flow .audio-meter__bars {
  border-radius: 14px !important;
  width: 100% !important;
  justify-content: stretch !important;
}
body.apply-flow .audio-meter__bar {
  background: var(--cx-ink) !important;
  opacity: 0.88;
}
body.apply-flow .audio-preview-player__play {
  width: 64px;
  height: 64px;
  background: var(--cx-lime);
  color: var(--cx-ink);
  box-shadow: 0 8px 22px rgba(209, 240, 60, 0.42);
}
body.apply-flow .audio-preview-player__play:hover {
  box-shadow: 0 10px 26px rgba(209, 240, 60, 0.52);
}
body.apply-flow .audio-preview-player__track-fill {
  background: var(--cx-ink);
}
body.apply-flow .audio-preview-player__times {
  color: var(--cx-muted);
}
body.apply-flow a.candidate-btn,
body.apply-flow button.candidate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  box-sizing: border-box;
  cursor: pointer;
  border: none;
}
body.apply-flow .candidate-btn--primary {
  background: var(--cx-lime) !important;
  color: var(--cx-ink) !important;
  box-shadow: 0 8px 22px rgba(209, 240, 60, 0.48);
}
body.apply-flow .candidate-btn--primary:hover {
  filter: brightness(0.97);
  text-decoration: none;
  color: var(--cx-ink) !important;
}
body.apply-flow .candidate-btn--block {
  width: 100%;
  max-width: 100%;
}
body.apply-flow .candidate-btn--submit {
  margin-top: 8px;
  padding: 16px 24px;
  font-size: 1rem;
}
body.apply-flow .candidate-btn--dark {
  background: var(--cx-ink);
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(26, 36, 33, 0.2);
}
body.apply-flow .candidate-btn--dark:hover {
  filter: brightness(1.08);
  text-decoration: none;
  color: #fff !important;
}
body.apply-flow .candidate-btn--secondary {
  background: #fff !important;
  color: var(--cx-ink) !important;
  border: 1.5px solid var(--cx-ink) !important;
  box-shadow: none !important;
}
body.apply-flow .candidate-btn--secondary:hover {
  background: rgba(209, 240, 60, 0.12) !important;
  text-decoration: none;
  color: var(--cx-ink) !important;
}
body.apply-flow .apply-success--apy {
  padding: 2.2rem 0.75rem 2.6rem;
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 0%, rgba(209, 240, 60, 0.2), transparent 220px),
    #fff;
}
body.apply-flow .apply-success__icon {
  width: 82px;
  height: 82px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--cx-lime);
  color: var(--cx-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 0;
  box-shadow: 0 16px 36px rgba(209, 240, 60, 0.22);
}
body.apply-flow .apply-success h1 {
  color: var(--cx-ink);
  font-weight: 800;
  letter-spacing: -0.035em;
}
body.apply-flow .apply-success__lead {
  color: var(--cx-muted);
  margin: 0 auto 1.45rem;
  max-width: 300px;
  font-weight: 600;
  line-height: 1.45;
}
body.apply-flow .apply-success__box {
  text-align: left;
  background: #fff;
  border: 1px solid var(--cx-line);
  border-radius: 20px;
  padding: 18px;
  margin: 0 auto 1.5rem;
  max-width: 380px;
  box-shadow: 0 14px 34px rgba(26, 36, 33, 0.07);
}
body.apply-flow .apply-success__box-title {
  margin: 0 0 12px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--cx-ink);
}
body.apply-flow .apply-success__list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  color: var(--cx-muted);
  line-height: 1.5;
}
body.apply-flow .apply-success__list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
}
body.apply-flow .apply-success__list li:last-child {
  margin-bottom: 0;
}
body.apply-flow .apply-success__check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(209, 240, 60, 0.28);
  color: var(--cx-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
body.apply-flow .apply-success__actions {
  max-width: 360px;
  gap: 12px;
}

body.apply-flow .apply-success-pref {
  margin: 1.35rem auto 0;
  max-width: 420px;
  text-align: left;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  border: 1px solid var(--border, rgba(148, 163, 184, 0.35));
  background: rgba(255, 255, 255, 0.6);
}
body.apply-flow .apply-success-pref__saved {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--forest, #062d20);
  margin: 0 0 0.75rem;
}
body.apply-flow .apply-success-pref__switch.job-notify-switch {
  margin: 0;
  align-items: flex-start;
}
body.apply-flow .apply-success-pref + .apply-success__actions {
  margin-top: 1.25rem;
}

.apply-success {
  text-align: center;
  padding: 2rem 1rem 2.5rem;
}
.apply-success__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: rgba(210, 242, 120, 0.45);
  color: var(--forest);
  font-size: 2.25rem;
  line-height: 72px;
  font-weight: 800;
}
.apply-success h1 {
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
  color: var(--forest);
}
.apply-success p {
  color: var(--muted);
  margin: 0 0 1.5rem;
}
.apply-success__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 320px;
  margin: 0 auto;
}

/* ——— Aide commerçant (widget type chat) ——— */
button.merchant-sidebar__help-trigger {
  font: inherit;
  font-size: 0.88rem;
  color: var(--muted);
  padding: 8px 4px;
  margin: 0;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
  border-radius: 6px;
}
button.merchant-sidebar__help-trigger:hover {
  color: var(--text);
}

.merchant-help-widget {
  position: fixed;
  z-index: 10050;
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  right: max(20px, env(safe-area-inset-right, 0px));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  font-family: var(--font-sans, "Plus Jakarta Sans", system-ui, sans-serif);
  pointer-events: auto;
}
.merchant-help-widget[hidden] {
  display: none !important;
}

.merchant-help-widget__peek {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid #062d20;
  background: #062d20;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(15, 31, 19, 0.22);
}
.merchant-help-widget__peek:hover {
  filter: brightness(1.06);
}

.merchant-help-widget--min .merchant-help-widget__peek {
  display: inline-flex;
}
.merchant-help-widget--min .merchant-help-widget__panel {
  display: none;
}

.merchant-help-widget:not(.merchant-help-widget--min) .merchant-help-widget__peek {
  display: none;
}

.merchant-help-widget__panel {
  display: flex;
  flex-direction: column;
  width: min(380px, calc(100vw - 32px));
  max-height: min(560px, calc(100vh - 120px));
  border-radius: 16px;
  border: 1px solid var(--border, #e5e7eb);
  background: #fff;
  box-shadow: 0 18px 50px rgba(15, 31, 19, 0.18);
  overflow: hidden;
}

.merchant-help-widget__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 12px 16px;
  background: linear-gradient(180deg, #f8faf8 0%, #fff 100%);
  border-bottom: 1px solid var(--border, #eef0ef);
}

.merchant-help-widget__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text, #0f1f13);
  line-height: 1.25;
}

.merchant-help-widget__head-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.merchant-help-widget__icon-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #4b5563;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.merchant-help-widget__icon-btn:hover {
  background: #f3f4f6;
  color: #062d20;
}

.merchant-help-widget__body {
  padding: 14px 16px 16px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.merchant-help-widget__bubble {
  margin-bottom: 14px;
}
.merchant-help-widget__bubble--bot {
  background: #f3f4f6;
  border-radius: 14px 14px 14px 4px;
  padding: 12px 14px;
}
.merchant-help-widget__bubble-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text, #1f2937);
}

.merchant-help-widget__label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.merchant-help-widget__textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border, #d1d5db);
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.45;
  resize: vertical;
  min-height: 96px;
  margin-bottom: 10px;
}
.merchant-help-widget__textarea:focus {
  outline: 2px solid rgba(6, 45, 32, 0.25);
  outline-offset: 1px;
  border-color: #062d20;
}

.merchant-help-widget__error {
  margin: 0 0 10px;
  font-size: 0.85rem;
  color: var(--danger, #b91c1c);
}
.merchant-help-widget__ok {
  margin: 0 0 10px;
  font-size: 0.88rem;
  color: #065f46;
  font-weight: 500;
}

.merchant-help-widget__send {
  width: 100%;
  justify-content: center;
}
.merchant-help-widget__send:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
