/* Espace fondateur · Clients & revendeurs. Scoped to the active screen. */
#a_clients .content { min-width: 0; }
#a_clients .clients-page {
  --client-ink: #173d34;
  --client-muted: #66736d;
  --client-line: #e3e9e4;
  --client-soft: #f4f7f4;
  box-sizing: border-box;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 0 56px;
  color: var(--client-ink);
}
#a_clients .clients-page *, #a_clients .clients-page *::before,
#a_clients .clients-page *::after { box-sizing: border-box; }
#a_clients .clients-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
#a_clients .clients-header > div:first-child { min-width: 0; }
#a_clients .clients-eyebrow { color: #829088; font-size: 11px; font-weight: 750; letter-spacing: .12em; }
#a_clients .clients-header h1 { margin: 6px 0 5px; font-family: Georgia, serif; font-size: clamp(29px, 3vw, 40px); line-height: 1.08; font-weight: 600; }
#a_clients .clients-header p { margin: 0; color: var(--client-muted); font-size: 14px; line-height: 1.45; }
#a_clients .clients-header-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 9px; flex: 0 0 auto; }
#a_clients .clients-header-actions button,
#a_clients .client-card-actions button { min-height: 42px; border-radius: 11px; font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
#a_clients .clients-primary { border: 1px solid #c83d22; padding: 0 18px; background: #ce4226; color: #fff; }
#a_clients .clients-secondary { border: 1px solid #cfdcd3; padding: 0 16px; background: #fff; color: var(--client-ink); }
#a_clients .clients-text-action { border: 0; padding: 0 8px; background: none; color: var(--client-ink); text-decoration: underline; text-underline-offset: 3px; }
#a_clients .clients-feedback, #a_clients .clients-alert { padding: 12px 15px; border-radius: 13px; margin-bottom: 18px; font-size: 13px; line-height: 1.45; }
#a_clients .clients-feedback > div, #a_clients .clients-alert { display: flex; align-items: flex-start; gap: 9px; }
#a_clients .clients-feedback.is-ok { background: #edf6ee; border: 1px solid #d3e6d6; }
#a_clients .clients-feedback.is-error { background: #fff3ee; border: 1px solid #f0d6c8; }
#a_clients .clients-alert { background: #fbf7ed; border: 1px solid #eadfbe; }
#a_clients .clients-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 26px; }
#a_clients .clients-overview > div { display: grid; gap: 5px; min-width: 0; padding: 17px 19px; background: #fff; border: 1px solid var(--client-line); border-radius: 16px; }
#a_clients .clients-overview span { font-size: 12px; color: var(--client-muted); }
#a_clients .clients-overview strong { font-size: 26px; line-height: 1; }
#a_clients .clients-overview small { font-size: 11px; color: #839088; }
#a_clients .clients-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 13px; }
#a_clients .clients-section-heading h2 { margin: 0; font-family: Georgia, serif; font-size: 25px; font-weight: 600; }
#a_clients .clients-section-heading span { color: var(--client-muted); font-size: 12px; }
#a_clients .clients-empty { padding: 26px; border: 1px dashed var(--client-line); border-radius: 16px; color: var(--client-muted); }
#a_clients .clients-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 12px; margin-bottom: 24px; }
#a_clients .client-card, #a_clients .clients-extra { min-width: 0; background: #fff; border: 1px solid var(--client-line); border-radius: 17px; overflow: hidden; }
#a_clients .client-card[open] { border-color: #bdd2c2; box-shadow: 0 6px 24px rgba(15, 55, 44, .06); }
#a_clients .client-card summary { display: grid; gap: 8px; min-height: 145px; padding: 19px; cursor: pointer; list-style: none; }
#a_clients .client-card summary::-webkit-details-marker, #a_clients .clients-extra summary::-webkit-details-marker { display: none; }
#a_clients .client-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; min-width: 0; }
#a_clients .client-card-top strong { font-size: 18px; line-height: 1.2; overflow-wrap: anywhere; }
#a_clients .client-card-top em { flex: 0 0 auto; padding: 6px 9px; border-radius: 999px; font-size: 11px; font-style: normal; font-weight: 700; white-space: nowrap; }
#a_clients .client-card-top em.is-ready { background: #eaf4ed; color: #286143; }
#a_clients .client-card-top em.is-waiting { background: #fbf2e5; color: #8b5b22; }
#a_clients .client-card-kind, #a_clients .client-card-contact { color: var(--client-muted); font-size: 12px; overflow-wrap: anywhere; }
#a_clients .client-card-open { align-self: end; color: #b94328; font-size: 12px; font-weight: 700; }
#a_clients .client-card-open span { display: inline-block; margin-left: 4px; transition: transform .2s; }
#a_clients .client-card[open] .client-card-open span { transform: rotate(180deg); }
#a_clients .client-card-body { border-top: 1px solid var(--client-line); padding: 16px 19px 19px; }
#a_clients .client-card-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin: 0 0 17px; }
#a_clients .client-card-facts > div { min-width: 0; }
#a_clients .client-card-facts dt { color: var(--client-muted); font-size: 11px; }
#a_clients .client-card-facts dd { margin: 3px 0 0; font-size: 12px; font-weight: 650; overflow-wrap: anywhere; }
#a_clients .client-card-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
#a_clients .client-card-actions button { min-width: 0; padding: 8px 11px; text-align: left; border: 1px solid #d8e2da; background: #f9fbf9; color: var(--client-ink); white-space: normal; line-height: 1.3; }
#a_clients .client-card-actions button:first-child { background: var(--client-ink); border-color: var(--client-ink); color: #fff; }
#a_clients .clients-extra { margin-top: 12px; }
#a_clients .clients-extra summary { display: flex; justify-content: space-between; gap: 10px; align-items: center; min-height: 62px; padding: 15px 19px; cursor: pointer; list-style: none; font-weight: 700; }
#a_clients .clients-extra summary small { color: var(--client-muted); font-size: 12px; font-weight: 400; }
#a_clients .clients-extra-content { border-top: 1px solid var(--client-line); padding: 0 19px; }
#a_clients .clients-extra-row, #a_clients .clients-price-row { padding: 15px 0; border-bottom: 1px solid var(--client-line); font-size: 12px; line-height: 1.5; }
#a_clients .clients-extra-row:last-child, #a_clients .clients-price-row:last-child { border-bottom: 0; }
#a_clients .clients-extra-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
#a_clients .clients-extra-row b { flex: 1 1 180px; }
#a_clients .clients-extra-row button { min-height: 38px; border: 0; background: transparent; color: #ae4028; cursor: pointer; text-decoration: underline; }
#a_clients .clients-extra-note { flex-basis: 100%; color: var(--client-muted); font-size: 11px; overflow-wrap: anywhere; }
#a_clients .clients-price-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px 15px; }
#a_clients .clients-price-line b, #a_clients .clients-price-ref { font-family: 'JetBrains Mono', monospace; font-size: 11px; }
#a_clients .clients-price-ref { margin-left: auto; color: var(--client-muted); }
#a_clients .clients-page > .card { max-width: 100%; margin: 0 0 22px; border: 1px solid var(--client-line); border-radius: 17px; box-shadow: none; }
#a_clients .clients-page input, #a_clients .clients-page select, #a_clients .clients-page textarea { max-width: 100%; }
#a_clients .clients-page button:focus-visible, #a_clients .clients-page summary:focus-visible { outline: 3px solid #f1a18d; outline-offset: 2px; }
@media (max-width: 800px) {
  #a_clients .clients-page { padding: 18px 0 116px; }
  #a_clients .clients-header { align-items: stretch; flex-direction: column; gap: 15px; }
  #a_clients .clients-header-actions { justify-content: flex-start; }
  #a_clients .clients-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  #a_clients .clients-page { padding-top: 8px; }
  #a_clients .clients-header h1 { font-size: 29px; }
  #a_clients .clients-header-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  #a_clients .clients-header-actions button { width: 100%; min-height: 44px; }
  #a_clients .clients-overview { gap: 8px; }
  #a_clients .clients-overview > div { padding: 12px 10px; }
  #a_clients .clients-overview span { font-size: 11px; line-height: 1.2; }
  #a_clients .clients-overview strong { font-size: 22px; }
  #a_clients .clients-overview small { display: none; }
  #a_clients .client-card summary { min-height: 0; padding: 16px; }
  #a_clients .client-card-top { align-items: flex-start; }
  #a_clients .client-card-top strong { font-size: 16px; }
  #a_clients .client-card-top em { white-space: normal; max-width: 120px; text-align: center; line-height: 1.2; }
  #a_clients .client-card-body { padding: 15px 16px 17px; }
  #a_clients .client-card-actions { grid-template-columns: 1fr; }
  #a_clients .client-card-actions button { min-height: 44px; }
  #a_clients .clients-page .grid2 { grid-template-columns: 1fr; }
}
