body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f7f9fb;
    /*background: #f5f5f5;
    color: #333;*/
    color: #1f2937;
  }
  
  h1, h2, h3 {
  color: #111827;
}

p, li, label, input, select, textarea {
  color: #1f2937;
}

a { color: #0b5cab; }
a:hover { color: #094b8d; }


 header { all: unset; display: block; }

 .muted, .hero-sub, .cta-sub, .form-sub {
  color: rgba(31,41,55,0.78);
}
  
  .services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
  }
  
  .service-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    width: 300px;
    padding: 1.5rem;
    text-align: center;
  }
  
  .cta {
    text-align: center;
    margin: 2rem;
  }
  
  .btn {
    box-sizing: border-box;
    background-color: #0057e7;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
  }
  
  .btn:hover {
    background-color: #0045b8;
  }
  .reservation-form {
    max-width: 600px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }
  
  .reservation-form h2 {
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  .reservation-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .reservation-form label {
    font-weight: bold;
  }
  
  .reservation-form input,
  .reservation-form select {
    padding: 0.7rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
  }
  .resultats {
    max-width: 600px;
    margin: 2rem auto;
    background: #eef;
    padding: 1rem;
    border-radius: 8px;
  }
  
  .carte-prestataire {
    background: white;
    padding: 1rem;
    margin: 1rem 0;
    border: 1px solid #ccc;
    border-radius: 5px;
  }
  .auth-links {
    margin-top: 1rem;
    text-align: center;
  }
  
  .auth-links button {
    margin: 0 0.5rem;
    padding: 0.5rem 1rem;
    background-color: white;
    color: #0057e7;
    border: 2px solid #0057e7;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
  }
  
  .auth-form {
    max-width: 500px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  
  .auth-form input,
  .auth-form select {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
  }
  .dashboard {
    width: min(1440px, calc(100vw - 48px));
    max-width: none;
    box-sizing: border-box;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }
  
  .dashboard {
    width: min(1440px, calc(100vw - 48px));
    max-width: none;
    box-sizing: border-box;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }

  @media (max-width: 900px) {
    .dashboard {
      width: min(100%, calc(100vw - 24px));
      padding: 1.5rem;
    }
  }
  
  #liste-missions li {
    background: #f9f9f9;
    margin-bottom: 1rem;
    padding: 1rem;
    border-left: 4px solid #0057e7;
    border-radius: 5px;
  }
  #liste-missions button {
    padding: 4px 8px;
    border: none;
    background-color: #2ecc71;
    color: white;
    border-radius: 4px;
    cursor: pointer;
  }
  
  #liste-missions button:hover {
    background-color: #27ae60;
  }

#liste-missions-attente button {
  padding: 4px 8px;
  border: none;
  background-color: #2ecc71;
  color: white;
  border-radius: 4px;
  cursor: pointer;
}

#liste-missions-attente button:hover {
  background-color: #27ae60;
}

/* Statuts */
.statut-en-attente {
  color: #f39c12;
  font-weight: bold;
}

.statut-acceptee {
  color: #27ae60;
  font-weight: bold;
}

.statut-annulee {
  color: #e74c3c;
  font-weight: bold;
  text-decoration: line-through;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-left: 8px;
}

.badge-en-attente { background: #f39c12; color: white; }
.badge-acceptee   { background: #27ae60; color: white; }
.badge-annulee    { background: #e74c3c; color: white; }

.btn-refuser {
  padding: 4px 8px;
  border: none;
  background-color: #e74c3c;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 8px;
}

.btn-refuser:hover { background-color: #c0392b; }


.badge-terminee {
  background: #3498db;
  color: white;
}



#estimation-message {
  background: #f3f7ff;
  border: 1px solid #d6e4ff;
  color: #0b2559;
}

#estimation-message.estimation-focus-pulse {
  border-color: #8ab4ff;
  box-shadow: 0 0 0 3px rgba(0, 87, 231, 0.18);
  animation: estimationFocusPulse 1.8s ease;
}

@keyframes estimationFocusPulse {
  0% {
    transform: translateY(0);
    box-shadow: 0 0 0 0 rgba(0, 87, 231, 0.24);
  }
  35% {
    transform: translateY(-1px);
    box-shadow: 0 0 0 4px rgba(0, 87, 231, 0.2);
  }
  100% {
    transform: translateY(0);
    box-shadow: 0 0 0 0 rgba(0, 87, 231, 0);
  }
}

.service-card { cursor: pointer; }


/* J22 – Sous-textes CTA / formulaire */
.cta-sub {
  margin-top: 10px;
  opacity: 0.9;
  font-size: 0.95rem;
}

.form-sub {
  text-align: center;
  margin-top: -8px;
  margin-bottom: 18px;
  opacity: 0.9;
}

/* J22 – Bouton "Espace professionnel" (plus discret) */
.btn-pro {
  background: transparent !important;
  color: white !important;
  border-color: white !important;
}


/* J22 – Message fin de parcours */
.success-box {
  margin-top: 14px;
  padding: 14px;
  border-radius: 10px;
}

.success-title {
  font-weight: 800;
  margin-bottom: 6px;
}

.success-text {
  margin-bottom: 10px;
  opacity: 0.95;
}

.success-estimation {
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(0,0,0,0.04);
  line-height: 1.4;
  word-break: break-word;
}

.success-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn.btn-secondary {
  background: white;
  color: #0057e7;
  border: 2px solid #0057e7;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  padding: 0.8rem 1.2rem;
}

.btn.btn-secondary:hover {
  background: rgba(0, 87, 231, 0.08);
}

/* Bouton CDC compact (évite de masquer le contenu sur petits écrans) */
.btn.btn-cdc-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  white-space: nowrap;
  padding: 0.45rem 0.75rem;
  font-size: 0.95rem;
  line-height: 1.15;
  border-width: 1px;
}

.muted {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-top: 6px;
}


/* J23 – Cartes demandes client */
.demande-card {
  background: white;
  padding: 14px;
  border-radius: 10px;
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.demande-header {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.demande-meta {
  margin-top: 6px;
  font-size: 0.95rem;
  opacity: 0.9;
}

.next-step {
  margin-top: 10px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(0,0,0,0.04);
  font-size: 0.95rem;
}

/* Badge "Nouveau" */
.badge-new {
  background: #6c5ce7;
  color: white;
}




/* J23.1 – Bloc proposition client */
.proposition-box {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 10px;
  background: #fff;
}

.proposition-actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-refuser-lite {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 5px;
  cursor: pointer;
}

.btn-refuser-lite:hover {
  background: #c0392b;
}

.demande-card {
  background: white;
  padding: 14px;
  border-radius: 10px;
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  cursor: pointer;
}

.demande-details {
  cursor: default;
}

.proposition-box {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 10px;
  background: #fff;
}

.proposition-actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-refuser-lite {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 5px;
  cursor: pointer;
}

.btn-refuser-lite:hover {
  background: #c0392b;
}



/* J24 – Cartes "fiche demande" */
.card {
  background: white;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.card-header {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.card-meta {
  margin-top: 6px;
  opacity: 0.9;
  font-size: 0.95rem;
}

.card-section {
  margin-top: 12px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(0,0,0,0.04);
}

.card-section-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.card-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.proposal-client-box {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.9) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.proposal-client-summary {
  margin-top: 10px;
  border-style: solid;
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.92);
}

.proposal-client-note {
  margin-top: 8px;
  font-size: 0.9rem;
}

.proposal-client-actions {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(15, 23, 42, 0.14);
}

/* Détails repliables */
.card-details {
  margin-top: 10px;
  display: none;
}

/* Légère indication "cliquable" */
.card.clickable {
  cursor: pointer;
}


/* J24 – Zone pro plus "premium" */
#zone-auth {
  margin-top: 16px;
}

#zone-auth .auth-form {
  border: 1px solid rgba(0,0,0,0.08);
}

/* Petit titre plus lisible */
#zone-auth #auth-title {
  font-weight: 800;
}



/* J24 bis — Formulaire plus propre */
.reservation-form form {
  gap: 1.1rem;
}

#wizard-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wizard-progress-shell {
  display: block;
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: #f8fbff;
}

.wizard-screen {
  width: 100%;
}

.wizard-legacy-hidden {
  display: none !important;
}

.wizard-screen .step {
  display: block;
  margin: 0;
  padding: 0;
}

.wizard-screen-intro {
  margin: 0 0 14px;
  color: rgba(31, 41, 55, 0.78);
  line-height: 1.5;
}

.wizard-grid {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

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

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

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

.wizard-panel {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.92) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.wizard-panel-hero {
  border-color: rgba(11, 92, 171, 0.18);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.92) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.wizard-panel-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 6px;
}

.wizard-panel-note,
.wizard-inline-note {
  margin: 0 0 10px;
  color: rgba(31, 41, 55, 0.72);
  line-height: 1.45;
  font-size: 0.94rem;
}

.wizard-checkbox-grid,
.day-grid {
  display: grid;
  gap: 10px;
}

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

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

.wizard-checkbox-grid .check,
.day-grid .check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  min-height: 44px;
}

.wizard-checkbox-grid .check input,
.day-grid .check input {
  width: auto;
  margin: 0;
}

#bloc-poubelles-details.is-emphasis {
  border-color: rgba(11, 92, 171, 0.18);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.92) 0%, rgba(255, 255, 255, 0.98) 100%);
}

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

#wizard-nav-shell {
  position: sticky;
  bottom: 0;
  background: #ffffff;
  padding-top: 10px;
  /* LOT 10A-3 : barre sticky bas (Suivant/Valider) au-dessus du home indicator iOS (additif, no-op ailleurs) */
  padding-bottom: env(safe-area-inset-bottom, 0px);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

#wizard-nav-shell button {
  min-height: 44px;
}

#wizard-progress-step {
  font-variant-numeric: tabular-nums;
}

#wizard-progress-label {
  font-weight: 600;
}

.reservation-form .step h3 {
  margin: 10px 0 14px !important;
  font-size: 1.1rem;
}

.reservation-form label {
  display: block;
  margin-top: 10px;
  margin-bottom: 6px;
  font-weight: 700;
}

.reservation-form input,
.reservation-form select,
.reservation-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.85rem;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 8px;
  font-size: 1rem;
  background: white;
}

.reservation-form textarea {
  min-height: 90px;
  resize: vertical;
}

.reservation-form input:focus,
.reservation-form select:focus,
.reservation-form textarea:focus {
  outline: none;
  border-color: rgba(0, 87, 231,0.6);
  box-shadow: 0 0 0 3px rgba(0, 87, 231,0.15);
}

/* Petits blocs “encadrés” (coordonnées / récap…) plus clean */
#contact-block, #recap-box {
  background: rgba(0,0,0,0.02);
}

.recap-box {
  border-color: rgba(0, 0, 0, 0.12) !important;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.92) 0%, rgba(255, 255, 255, 0.96) 100%) !important;
}

.recap-head {
  margin-bottom: 8px;
}

.recap-sub {
  margin: 0;
}

.recap-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 10px;
}

.recap-link {
  border: none;
  background: transparent;
  color: #0b5cab;
  text-decoration: underline;
  font-size: 0.92rem;
  cursor: pointer;
  padding: 0;
}

.recap-link:hover {
  color: #094b8d;
}

.recap-list {
  display: block;
  margin-top: 8px;
}

.recap-section {
  margin-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 6px;
}

.recap-section-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: rgba(31, 41, 55, 0.9);
  margin: 4px 0;
}

.recap-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 10px;
  align-items: start;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.recap-k {
  font-size: 0.92rem;
  color: rgba(31, 41, 55, 0.8);
  font-weight: 700;
}

.recap-v {
  font-size: 1.02rem;
  font-weight: 500;
  color: #111827;
  line-height: 1.4;
  word-break: break-word;
}

.recap-warning {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(180, 35, 24, 0.35);
  border-radius: 8px;
  background: rgba(180, 35, 24, 0.06);
  color: #8d1f13;
  font-weight: 600;
}

@media (max-width: 640px) {
  .wizard-grid-2,
  .wizard-grid-3,
  .wizard-grid-4,
  .wizard-checkbox-grid,
  .day-grid,
  .time-range-row {
    grid-template-columns: 1fr;
  }

  .reservation-form {
    margin: 1rem;
    padding: 1rem;
  }

  #wizard-nav-shell > div {
    flex-direction: column;
    align-items: stretch;
  }

  #wizard-nav-shell > div > div {
    margin-left: 0 !important;
    width: 100%;
  }

  #wizard-nav-shell button {
    width: 100%;
  }

  .recap-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}



.btn-save-edit, .admin-save-edit {
  background: #0057e7;
  color: white;
  border: none;
  padding: 0.7rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
}
.btn-save-edit:hover, .admin-save-edit:hover { opacity: 0.92; }

.btn-refuser-lite {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  cursor: pointer;
}



/* J25 – Edition : textarea plus clean */
.edit-comment, .admin-edit-comment {
  min-height: 110px;
  resize: vertical;
  padding: 0.85rem;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
}



/* Polish UX – Toast */
.toast {
  position: sticky;
  top: 0;
  z-index: 50;
  margin: 10px auto;
  max-width: 900px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.08);
  background: white;
  box-shadow: 0 6px 16px rgba(0,0,0,0.10);
  font-weight: 700;
}

.toast.success { border-color: rgba(0, 87, 231,0.35); }
.toast.error { border-color: rgba(231,76,60,0.45); }
.toast.muted { opacity: 0.92; }


/* Polish UX – Toast (global, visible partout) */
.toast {
  box-sizing: border-box;
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;

  width: min(920px, calc(100% - 24px));
  padding: 12px 14px;
  border-radius: 10px;
  background: white;
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 10px 24px rgba(0,0,0,0.14);

  font-weight: 700;
}

.toast.success { border-color: rgba(0, 87, 231,0.45); }
.toast.error { border-color: rgba(231,76,60,0.55); }



.client-billing-panel{
  margin: 8px 0 16px;
  padding: 12px;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 12px;
  background: rgba(0,0,0,0.02);
}

.client-billing-head h3{
  margin: 0;
}

.client-billing-controls{
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.client-billing-kpis{
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.client-bill-kpi{
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}

.client-bill-kpi-value{
  font-size: 1.15rem;
  line-height: 1.1;
  font-weight: 900;
}

.client-bill-kpi-label{
  margin-top: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(31,41,55,0.78);
}



p, li, label, input, select, textarea {
  color: #1f2937;
}

a { color: #0b5cab; }
a:hover { color: #094b8d; }


 header { all: unset; display: block; }

 .muted, .hero-sub, .cta-sub, .form-sub {
  color: rgba(31,41,55,0.78);
}
  
  .services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
  }
  
  .service-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    width: 300px;
    padding: 1.5rem;
    text-align: center;
  }
  
  .cta {
    text-align: center;
    margin: 2rem;
  }
  
  .btn {
    box-sizing: border-box;
    background-color: #0057e7;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
  }
  
  .btn:hover {
    background-color: #0045b8;
  }
  .reservation-form {
    max-width: 600px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }
  
  .reservation-form h2 {
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  .reservation-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .reservation-form label {
    font-weight: bold;
  }
  
  .reservation-form input,
  .reservation-form select {
    padding: 0.7rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
  }
  .resultats {
    max-width: 600px;
    margin: 2rem auto;
    background: #eef;
    padding: 1rem;
    border-radius: 8px;
  }
  
  .carte-prestataire {
    background: white;
    padding: 1rem;
    margin: 1rem 0;
    border: 1px solid #ccc;
    border-radius: 5px;
  }
  .auth-links {
    margin-top: 1rem;
    text-align: center;
  }
  
  .auth-links button {
    margin: 0 0.5rem;
    padding: 0.5rem 1rem;
    background-color: white;
    color: #0057e7;
    border: 2px solid #0057e7;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
  }
  
  .auth-form {
    max-width: 500px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  
  .auth-form input,
  .auth-form select {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
  }
  .dashboard {
    width: min(1440px, calc(100vw - 48px));
    max-width: none;
    box-sizing: border-box;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }
  
  .dashboard {
    width: min(1440px, calc(100vw - 48px));
    max-width: none;
    box-sizing: border-box;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }

  @media (max-width: 900px) {
    .dashboard {
      width: min(100%, calc(100vw - 24px));
      padding: 1.5rem;
    }
  }
  
  #liste-missions li {
    background: #f9f9f9;
    margin-bottom: 1rem;
    padding: 1rem;
    border-left: 4px solid #0057e7;
    border-radius: 5px;
  }
  #liste-missions button {
    padding: 4px 8px;
    border: none;
    background-color: #2ecc71;
    color: white;
    border-radius: 4px;
    cursor: pointer;
  }
  
  #liste-missions button:hover {
    background-color: #27ae60;
  }

#liste-missions-attente button {
  padding: 4px 8px;
  border: none;
  background-color: #2ecc71;
  color: white;
  border-radius: 4px;
  cursor: pointer;
}

#liste-missions-attente button:hover {
  background-color: #27ae60;
}

/* Statuts */
.statut-en-attente {
  color: #f39c12;
  font-weight: bold;
}

.statut-acceptee {
  color: #27ae60;
  font-weight: bold;
}

.statut-annulee {
  color: #e74c3c;
  font-weight: bold;
  text-decoration: line-through;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-left: 8px;
}

.badge-en-attente { background: #f39c12; color: white; }
.badge-acceptee   { background: #27ae60; color: white; }
.badge-annulee    { background: #e74c3c; color: white; }

.btn-refuser {
  padding: 4px 8px;
  border: none;
  background-color: #e74c3c;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 8px;
}

.btn-refuser:hover { background-color: #c0392b; }


.badge-terminee {
  background: #3498db;
  color: white;
}



#estimation-message {
  background: #f3f7ff;
  border: 1px solid #d6e4ff;
  color: #0b2559;
}

#estimation-message.estimation-focus-pulse {
  border-color: #8ab4ff;
  box-shadow: 0 0 0 3px rgba(0, 87, 231, 0.18);
  animation: estimationFocusPulse 1.8s ease;
}

@keyframes estimationFocusPulse {
  0% {
    transform: translateY(0);
    box-shadow: 0 0 0 0 rgba(0, 87, 231, 0.24);
  }
  35% {
    transform: translateY(-1px);
    box-shadow: 0 0 0 4px rgba(0, 87, 231, 0.2);
  }
  100% {
    transform: translateY(0);
    box-shadow: 0 0 0 0 rgba(0, 87, 231, 0);
  }
}

.service-card { cursor: pointer; }


/* J22 – Sous-textes CTA / formulaire */
.cta-sub {
  margin-top: 10px;
  opacity: 0.9;
  font-size: 0.95rem;
}

.form-sub {
  text-align: center;
  margin-top: -8px;
  margin-bottom: 18px;
  opacity: 0.9;
}

/* J22 – Bouton "Espace professionnel" (plus discret) */
.btn-pro {
  background: transparent !important;
  color: white !important;
  border-color: white !important;
}


/* J22 – Message fin de parcours */
.success-box {
  margin-top: 14px;
  padding: 14px;
  border-radius: 10px;
}

.success-title {
  font-weight: 800;
  margin-bottom: 6px;
}

.success-text {
  margin-bottom: 10px;
  opacity: 0.95;
}

.success-estimation {
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(0,0,0,0.04);
  line-height: 1.4;
  word-break: break-word;
}

.success-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn.btn-secondary {
  background: white;
  color: #0057e7;
  border: 2px solid #0057e7;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  padding: 0.8rem 1.2rem;
}

.btn.btn-secondary:hover {
  background: rgba(0, 87, 231, 0.08);
}

/* Bouton CDC compact (évite de masquer le contenu sur petits écrans) */
.btn.btn-cdc-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  white-space: nowrap;
  padding: 0.45rem 0.75rem;
  font-size: 0.95rem;
  line-height: 1.15;
  border-width: 1px;
}

.muted {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-top: 6px;
}


/* J23 – Cartes demandes client */
.demande-card {
  background: white;
  padding: 14px;
  border-radius: 10px;
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.demande-header {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.demande-meta {
  margin-top: 6px;
  font-size: 0.95rem;
  opacity: 0.9;
}

.next-step {
  margin-top: 10px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(0,0,0,0.04);
  font-size: 0.95rem;
}

/* Badge "Nouveau" */
.badge-new {
  background: #6c5ce7;
  color: white;
}




/* J23.1 – Bloc proposition client */
.proposition-box {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 10px;
  background: #fff;
}

.proposition-actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-refuser-lite {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 5px;
  cursor: pointer;
}

.btn-refuser-lite:hover {
  background: #c0392b;
}

.demande-card {
  background: white;
  padding: 14px;
  border-radius: 10px;
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  cursor: pointer;
}

.demande-details {
  cursor: default;
}

.proposition-box {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 10px;
  background: #fff;
}

.proposition-actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-refuser-lite {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 5px;
  cursor: pointer;
}

.btn-refuser-lite:hover {
  background: #c0392b;
}



/* J24 – Cartes "fiche demande" */
.card {
  background: white;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.card-header {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.card-meta {
  margin-top: 6px;
  opacity: 0.9;
  font-size: 0.95rem;
}

.card-section {
  margin-top: 12px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(0,0,0,0.04);
}

.card-section-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.card-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.proposal-client-box {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.9) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.proposal-client-summary {
  margin-top: 10px;
  border-style: solid;
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.92);
}

.proposal-client-note {
  margin-top: 8px;
  font-size: 0.9rem;
}

.proposal-client-actions {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(15, 23, 42, 0.14);
}

/* Détails repliables */
.card-details {
  margin-top: 10px;
  display: none;
}

/* Légère indication "cliquable" */
.card.clickable {
  cursor: pointer;
}


/* J24 – Zone pro plus "premium" */
#zone-auth {
  margin-top: 16px;
}

#zone-auth .auth-form {
  border: 1px solid rgba(0,0,0,0.08);
}

/* Petit titre plus lisible */
#zone-auth #auth-title {
  font-weight: 800;
}



/* J24 bis — Formulaire plus propre */
.reservation-form form {
  gap: 1.1rem;
}

#wizard-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wizard-progress-shell {
  display: block;
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: #f8fbff;
}

.wizard-screen {
  width: 100%;
}

.wizard-legacy-hidden {
  display: none !important;
}

.wizard-screen .step {
  display: block;
  margin: 0;
  padding: 0;
}

.wizard-screen-intro {
  margin: 0 0 14px;
  color: rgba(31, 41, 55, 0.78);
  line-height: 1.5;
}

.wizard-grid {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

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

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

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

.wizard-panel {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.92) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.wizard-panel-hero {
  border-color: rgba(11, 92, 171, 0.18);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.92) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.wizard-panel-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 6px;
}

.wizard-panel-note,
.wizard-inline-note {
  margin: 0 0 10px;
  color: rgba(31, 41, 55, 0.72);
  line-height: 1.45;
  font-size: 0.94rem;
}

.wizard-checkbox-grid,
.day-grid {
  display: grid;
  gap: 10px;
}

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

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

.wizard-checkbox-grid .check,
.day-grid .check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  min-height: 44px;
}

.wizard-checkbox-grid .check input,
.day-grid .check input {
  width: auto;
  margin: 0;
}

#bloc-poubelles-details.is-emphasis {
  border-color: rgba(11, 92, 171, 0.18);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.92) 0%, rgba(255, 255, 255, 0.98) 100%);
}

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

#wizard-nav-shell {
  position: sticky;
  bottom: 0;
  background: #ffffff;
  padding-top: 10px;
  /* LOT 10A-3 : barre sticky bas (Suivant/Valider) au-dessus du home indicator iOS (additif, no-op ailleurs) */
  padding-bottom: env(safe-area-inset-bottom, 0px);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

#wizard-nav-shell button {
  min-height: 44px;
}

#wizard-progress-step {
  font-variant-numeric: tabular-nums;
}

#wizard-progress-label {
  font-weight: 600;
}

.reservation-form .step h3 {
  margin: 10px 0 14px !important;
  font-size: 1.1rem;
}

.reservation-form label {
  display: block;
  margin-top: 10px;
  margin-bottom: 6px;
  font-weight: 700;
}

.reservation-form input,
.reservation-form select,
.reservation-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.85rem;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 8px;
  font-size: 1rem;
  background: white;
}

.reservation-form textarea {
  min-height: 90px;
  resize: vertical;
}

.reservation-form input:focus,
.reservation-form select:focus,
.reservation-form textarea:focus {
  outline: none;
  border-color: rgba(0, 87, 231,0.6);
  box-shadow: 0 0 0 3px rgba(0, 87, 231,0.15);
}

/* Petits blocs “encadrés” (coordonnées / récap…) plus clean */
#contact-block, #recap-box {
  background: rgba(0,0,0,0.02);
}

.recap-box {
  border-color: rgba(0, 0, 0, 0.12) !important;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.92) 0%, rgba(255, 255, 255, 0.96) 100%) !important;
}

.recap-head {
  margin-bottom: 8px;
}

.recap-sub {
  margin: 0;
}

.recap-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 10px;
}

.recap-link {
  border: none;
  background: transparent;
  color: #0b5cab;
  text-decoration: underline;
  font-size: 0.92rem;
  cursor: pointer;
  padding: 0;
}

.recap-link:hover {
  color: #094b8d;
}

.recap-list {
  display: block;
  margin-top: 8px;
}

.recap-section {
  margin-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 6px;
}

.recap-section-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: rgba(31, 41, 55, 0.9);
  margin: 4px 0;
}

.recap-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 10px;
  align-items: start;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.recap-k {
  font-size: 0.92rem;
  color: rgba(31, 41, 55, 0.8);
  font-weight: 700;
}

.recap-v {
  font-size: 1.02rem;
  font-weight: 500;
  color: #111827;
  line-height: 1.4;
  word-break: break-word;
}

.recap-warning {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(180, 35, 24, 0.35);
  border-radius: 8px;
  background: rgba(180, 35, 24, 0.06);
  color: #8d1f13;
  font-weight: 600;
}

@media (max-width: 640px) {
  .wizard-grid-2,
  .wizard-grid-3,
  .wizard-grid-4,
  .wizard-checkbox-grid,
  .day-grid,
  .time-range-row {
    grid-template-columns: 1fr;
  }

  .reservation-form {
    margin: 1rem;
    padding: 1rem;
  }

  #wizard-nav-shell > div {
    flex-direction: column;
    align-items: stretch;
  }

  #wizard-nav-shell > div > div {
    margin-left: 0 !important;
    width: 100%;
  }

  #wizard-nav-shell button {
    width: 100%;
  }

  .recap-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}



.btn-save-edit, .admin-save-edit {
  background: #0057e7;
  color: white;
  border: none;
  padding: 0.7rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
}
.btn-save-edit:hover, .admin-save-edit:hover { opacity: 0.92; }

.btn-refuser-lite {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  cursor: pointer;
}



/* J25 – Edition : textarea plus clean */
.edit-comment, .admin-edit-comment {
  min-height: 110px;
  resize: vertical;
  padding: 0.85rem;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
}



/* Polish UX – Toast */
.toast {
  position: sticky;
  top: 0;
  z-index: 50;
  margin: 10px auto;
  max-width: 900px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.08);
  background: white;
  box-shadow: 0 6px 16px rgba(0,0,0,0.10);
  font-weight: 700;
}

.toast.success { border-color: rgba(0, 87, 231,0.35); }
.toast.error { border-color: rgba(231,76,60,0.45); }
.toast.muted { opacity: 0.92; }


/* Polish UX – Toast (global, visible partout) */
.toast {
  box-sizing: border-box;
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;

  width: min(920px, calc(100% - 24px));
  padding: 12px 14px;
  border-radius: 10px;
  background: white;
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 10px 24px rgba(0,0,0,0.14);

  font-weight: 700;
}

.toast.success { border-color: rgba(0, 87, 231,0.45); }
.toast.error { border-color: rgba(231,76,60,0.55); }



.client-billing-panel{
  margin: 8px 0 16px;
  padding: 12px;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 12px;
  background: rgba(0,0,0,0.02);
}

.client-billing-head h3{
  margin: 0;
}

.client-billing-controls{
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.client-billing-kpis{
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.client-bill-kpi{
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}

.client-bill-kpi-value{
  font-size: 1.15rem;
  line-height: 1.1;
  font-weight: 900;
}

.client-bill-kpi-label{
  margin-top: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(31,41,55,0.78);
}



p, li, label, input, select, textarea {
  color: #1f2937;
}

a { color: #0b5cab; }
a:hover { color: #094b8d; }


 header { all: unset; display: block; }

 .muted, .hero-sub, .cta-sub, .form-sub {
  color: rgba(31,41,55,0.78);
}
  
  .services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
  }
  
  .service-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    width: 300px;
    padding: 1.5rem;
    text-align: center;
  }
  
  .cta {
    text-align: center;
    margin: 2rem;
  }
  
  .btn {
    box-sizing: border-box;
    background-color: #0057e7;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
  }
  
  .btn:hover {
    background-color: #0045b8;
  }
  .reservation-form {
    max-width: 600px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }
  
  .reservation-form h2 {
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  .reservation-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .reservation-form label {
    font-weight: bold;
  }
  
  .reservation-form input,
  .reservation-form select {
    padding: 0.7rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
  }
  .resultats {
    max-width: 600px;
    margin: 2rem auto;
    background: #eef;
    padding: 1rem;
    border-radius: 8px;
  }
  
  .carte-prestataire {
    background: white;
    padding: 1rem;
    margin: 1rem 0;
    border: 1px solid #ccc;
    border-radius: 5px;
  }
  .auth-links {
    margin-top: 1rem;
    text-align: center;
  }
  
  .auth-links button {
    margin: 0 0.5rem;
    padding: 0.5rem 1rem;
    background-color: white;
    color: #0057e7;
    border: 2px solid #0057e7;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
  }
  
  .auth-form {
    max-width: 500px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  
  .auth-form input,
  .auth-form select {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
  }
  .dashboard {
    width: min(1440px, calc(100vw - 48px));
    max-width: none;
    box-sizing: border-box;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }
  
  .dashboard {
    width: min(1440px, calc(100vw - 48px));
    max-width: none;
    box-sizing: border-box;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }

  @media (max-width: 900px) {
    .dashboard {
      width: min(100%, calc(100vw - 24px));
      padding: 1.5rem;
    }
  }
  
  #liste-missions li {
    background: #f9f9f9;
    margin-bottom: 1rem;
    padding: 1rem;
    border-left: 4px solid #0057e7;
    border-radius: 5px;
  }
  #liste-missions button {
    padding: 4px 8px;
    border: none;
    background-color: #2ecc71;
    color: white;
    border-radius: 4px;
    cursor: pointer;
  }
  
  #liste-missions button:hover {
    background-color: #27ae60;
  }

#liste-missions-attente button {
  padding: 4px 8px;
  border: none;
  background-color: #2ecc71;
  color: white;
  border-radius: 4px;
  cursor: pointer;
}

#liste-missions-attente button:hover {
  background-color: #27ae60;
}

/* Statuts */
.statut-en-attente {
  color: #f39c12;
  font-weight: bold;
}

.statut-acceptee {
  color: #27ae60;
  font-weight: bold;
}

.statut-annulee {
  color: #e74c3c;
  font-weight: bold;
  text-decoration: line-through;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-left: 8px;
}

.badge-en-attente { background: #f39c12; color: white; }
.badge-acceptee   { background: #27ae60; color: white; }
.badge-annulee    { background: #e74c3c; color: white; }

.btn-refuser {
  padding: 4px 8px;
  border: none;
  background-color: #e74c3c;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 8px;
}

.btn-refuser:hover { background-color: #c0392b; }


.badge-terminee {
  background: #3498db;
  color: white;
}



#estimation-message {
  background: #f3f7ff;
  border: 1px solid #d6e4ff;
  color: #0b2559;
}

#estimation-message.estimation-focus-pulse {
  border-color: #8ab4ff;
  box-shadow: 0 0 0 3px rgba(0, 87, 231, 0.18);
  animation: estimationFocusPulse 1.8s ease;
}

@keyframes estimationFocusPulse {
  0% {
    transform: translateY(0);
    box-shadow: 0 0 0 0 rgba(0, 87, 231, 0.24);
  }
  35% {
    transform: translateY(-1px);
    box-shadow: 0 0 0 4px rgba(0, 87, 231, 0.2);
  }
  100% {
    transform: translateY(0);
    box-shadow: 0 0 0 0 rgba(0, 87, 231, 0);
  }
}

.service-card { cursor: pointer; }


/* J22 – Sous-textes CTA / formulaire */
.cta-sub {
  margin-top: 10px;
  opacity: 0.9;
  font-size: 0.95rem;
}

.form-sub {
  text-align: center;
  margin-top: -8px;
  margin-bottom: 18px;
  opacity: 0.9;
}

/* J22 – Bouton "Espace professionnel" (plus discret) */
.btn-pro {
  background: transparent !important;
  color: white !important;
  border-color: white !important;
}


/* J22 – Message fin de parcours */
.success-box {
  margin-top: 14px;
  padding: 14px;
  border-radius: 10px;
}

.success-title {
  font-weight: 800;
  margin-bottom: 6px;
}

.success-text {
  margin-bottom: 10px;
  opacity: 0.95;
}

.success-estimation {
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(0,0,0,0.04);
  line-height: 1.4;
  word-break: break-word;
}

.success-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn.btn-secondary {
  background: white;
  color: #0057e7;
  border: 2px solid #0057e7;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  padding: 0.8rem 1.2rem;
}

.btn.btn-secondary:hover {
  background: rgba(0, 87, 231, 0.08);
}

/* Bouton CDC compact (évite de masquer le contenu sur petits écrans) */
.btn.btn-cdc-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  white-space: nowrap;
  padding: 0.45rem 0.75rem;
  font-size: 0.95rem;
  line-height: 1.15;
  border-width: 1px;
}

.muted {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-top: 6px;
}


/* J23 – Cartes demandes client */
.demande-card {
  background: white;
  padding: 14px;
  border-radius: 10px;
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.demande-header {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.demande-meta {
  margin-top: 6px;
  font-size: 0.95rem;
  opacity: 0.9;
}

.next-step {
  margin-top: 10px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(0,0,0,0.04);
  font-size: 0.95rem;
}

/* Badge "Nouveau" */
.badge-new {
  background: #6c5ce7;
  color: white;
}




/* J23.1 – Bloc proposition client */
.proposition-box {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 10px;
  background: #fff;
}

.proposition-actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-refuser-lite {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 5px;
  cursor: pointer;
}

.btn-refuser-lite:hover {
  background: #c0392b;
}

.demande-card {
  background: white;
  padding: 14px;
  border-radius: 10px;
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  cursor: pointer;
}

.demande-details {
  cursor: default;
}

.proposition-box {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 10px;
  background: #fff;
}

.proposition-actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-refuser-lite {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 5px;
  cursor: pointer;
}

.btn-refuser-lite:hover {
  background: #c0392b;
}



/* J24 – Cartes "fiche demande" */
.card {
  background: white;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.card-header {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.card-meta {
  margin-top: 6px;
  opacity: 0.9;
  font-size: 0.95rem;
}

.card-section {
  margin-top: 12px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(0,0,0,0.04);
}

.card-section-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.card-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.proposal-client-box {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.9) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.proposal-client-summary {
  margin-top: 10px;
  border-style: solid;
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.92);
}

.proposal-client-note {
  margin-top: 8px;
  font-size: 0.9rem;
}

.proposal-client-actions {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(15, 23, 42, 0.14);
}

/* Détails repliables */
.card-details {
  margin-top: 10px;
  display: none;
}

/* Légère indication "cliquable" */
.card.clickable {
  cursor: pointer;
}


/* J24 – Zone pro plus "premium" */
#zone-auth {
  margin-top: 16px;
}

#zone-auth .auth-form {
  border: 1px solid rgba(0,0,0,0.08);
}

/* Petit titre plus lisible */
#zone-auth #auth-title {
  font-weight: 800;
}



/* J24 bis — Formulaire plus propre */
.reservation-form form {
  gap: 1.1rem;
}

#wizard-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wizard-progress-shell {
  display: block;
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: #f8fbff;
}

.wizard-screen {
  width: 100%;
}

.wizard-legacy-hidden {
  display: none !important;
}

.wizard-screen .step {
  display: block;
  margin: 0;
  padding: 0;
}

.wizard-screen-intro {
  margin: 0 0 14px;
  color: rgba(31, 41, 55, 0.78);
  line-height: 1.5;
}

.wizard-grid {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

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

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

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

.wizard-panel {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.92) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.wizard-panel-hero {
  border-color: rgba(11, 92, 171, 0.18);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.92) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.wizard-panel-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 6px;
}

.wizard-panel-note,
.wizard-inline-note {
  margin: 0 0 10px;
  color: rgba(31, 41, 55, 0.72);
  line-height: 1.45;
  font-size: 0.94rem;
}

.wizard-checkbox-grid,
.day-grid {
  display: grid;
  gap: 10px;
}

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

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

.wizard-checkbox-grid .check,
.day-grid .check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  min-height: 44px;
}

.wizard-checkbox-grid .check input,
.day-grid .check input {
  width: auto;
  margin: 0;
}

#bloc-poubelles-details.is-emphasis {
  border-color: rgba(11, 92, 171, 0.18);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.92) 0%, rgba(255, 255, 255, 0.98) 100%);
}

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

#wizard-nav-shell {
  position: sticky;
  bottom: 0;
  background: #ffffff;
  padding-top: 10px;
  /* LOT 10A-3 : barre sticky bas (Suivant/Valider) au-dessus du home indicator iOS (additif, no-op ailleurs) */
  padding-bottom: env(safe-area-inset-bottom, 0px);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

#wizard-nav-shell button {
  min-height: 44px;
}

#wizard-progress-step {
  font-variant-numeric: tabular-nums;
}

#wizard-progress-label {
  font-weight: 600;
}

.reservation-form .step h3 {
  margin: 10px 0 14px !important;
  font-size: 1.1rem;
}

.reservation-form label {
  display: block;
  margin-top: 10px;
  margin-bottom: 6px;
  font-weight: 700;
}

.reservation-form input,
.reservation-form select,
.reservation-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.85rem;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 8px;
  font-size: 1rem;
  background: white;
}

.reservation-form textarea {
  min-height: 90px;
  resize: vertical;
}

.reservation-form input:focus,
.reservation-form select:focus,
.reservation-form textarea:focus {
  outline: none;
  border-color: rgba(0, 87, 231,0.6);
  box-shadow: 0 0 0 3px rgba(0, 87, 231,0.15);
}

/* Petits blocs “encadrés” (coordonnées / récap…) plus clean */
#contact-block, #recap-box {
  background: rgba(0,0,0,0.02);
}

.recap-box {
  border-color: rgba(0, 0, 0, 0.12) !important;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.92) 0%, rgba(255, 255, 255, 0.96) 100%) !important;
}

.recap-head {
  margin-bottom: 8px;
}

.recap-sub {
  margin: 0;
}

.recap-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 10px;
}

.recap-link {
  border: none;
  background: transparent;
  color: #0b5cab;
  text-decoration: underline;
  font-size: 0.92rem;
  cursor: pointer;
  padding: 0;
}

.recap-link:hover {
  color: #094b8d;
}

.recap-list {
  display: block;
  margin-top: 8px;
}

.recap-section {
  margin-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 6px;
}

.recap-section-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: rgba(31, 41, 55, 0.9);
  margin: 4px 0;
}

.recap-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 10px;
  align-items: start;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.recap-k {
  font-size: 0.92rem;
  color: rgba(31, 41, 55, 0.8);
  font-weight: 700;
}

.recap-v {
  font-size: 1.02rem;
  font-weight: 500;
  color: #111827;
  line-height: 1.4;
  word-break: break-word;
}

.recap-warning {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(180, 35, 24, 0.35);
  border-radius: 8px;
  background: rgba(180, 35, 24, 0.06);
  color: #8d1f13;
  font-weight: 600;
}

@media (max-width: 640px) {
  .wizard-grid-2,
  .wizard-grid-3,
  .wizard-grid-4,
  .wizard-checkbox-grid,
  .day-grid,
  .time-range-row {
    grid-template-columns: 1fr;
  }

  .reservation-form {
    margin: 1rem;
    padding: 1rem;
  }

  #wizard-nav-shell > div {
    flex-direction: column;
    align-items: stretch;
  }

  #wizard-nav-shell > div > div {
    margin-left: 0 !important;
    width: 100%;
  }

  #wizard-nav-shell button {
    width: 100%;
  }

  .recap-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}



.btn-save-edit, .admin-save-edit {
  background: #0057e7;
  color: white;
  border: none;
  padding: 0.7rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
}
.btn-save-edit:hover, .admin-save-edit:hover { opacity: 0.92; }

.btn-refuser-lite {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  cursor: pointer;
}



/* J25 – Edition : textarea plus clean */
.edit-comment, .admin-edit-comment {
  min-height: 110px;
  resize: vertical;
  padding: 0.85rem;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
}



/* Polish UX – Toast */
.toast {
  position: sticky;
  top: 0;
  z-index: 50;
  margin: 10px auto;
  max-width: 900px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.08);
  background: white;
  box-shadow: 0 6px 16px rgba(0,0,0,0.10);
  font-weight: 700;
}

.toast.success { border-color: rgba(0, 87, 231,0.35); }
.toast.error { border-color: rgba(231,76,60,0.45); }
.toast.muted { opacity: 0.92; }


/* Polish UX – Toast (global, visible partout) */
.toast {
  box-sizing: border-box;
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;

  width: min(920px, calc(100% - 24px));
  padding: 12px 14px;
  border-radius: 10px;
  background: white;
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 10px 24px rgba(0,0,0,0.14);

  font-weight: 700;
}

.toast.success { border-color: rgba(0, 87, 231,0.45); }
.toast.error { border-color: rgba(231,76,60,0.55); }



.client-billing-panel{
  margin: 8px 0 16px;
  padding: 12px;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 12px;
  background: rgba(0,0,0,0.02);
}

.client-billing-head h3{
  margin: 0;
}

.client-billing-controls{
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.client-billing-kpis{
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.client-bill-kpi{
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}

.client-bill-kpi-value{
  font-size: 1.15rem;
  line-height: 1.1;
  font-weight: 900;
}

.client-bill-kpi-label{
  margin-top: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(31,41,55,0.78);
}

@media (max-width: 740px){
.client-billing-kpis{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.suivi-box{
  margin-top: 12px;
  margin-bottom: 10px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.06);
}

.suivi-title{
  font-weight: 800;
  margin-bottom: 6px;
}



/* J27 – Profil prestataire (client, post-acceptation) */
.profil-presta-box{
  margin-top: 12px;
  padding: 14px 14px;
  border-radius: 12px;
  border: 1px solid rgba(10, 40, 80, 0.14);
  background: linear-gradient(180deg, rgba(245,250,255,0.92) 0%, rgba(238,246,255,0.92) 100%);
}

.profil-presta-card{
  box-shadow: 0 6px 16px rgba(14, 40, 85, 0.08);
}

.profil-presta-header{
  display: flex;
  align-items: center;
  gap: 12px;
}

.profil-presta-avatar{
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid rgba(11, 92, 171, 0.25);
  background: #d8e9ff;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.profil-presta-avatar-fallback{
  font-weight: 900;
  font-size: 1.08rem;
  color: #0b3a77;
}

.profil-presta-header-main{
  min-width: 0;
}

.profil-presta-title{
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(17, 34, 56, 0.72);
  margin-bottom: 2px;
}
.profil-presta-line{
  margin-top: 0;
  font-weight: 900;
  font-size: 1.06rem;
  color: #10243f;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.profil-presta-badge-inline{
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(12, 95, 176, 0.24);
  background: #fff;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.76rem;
  font-weight: 800;
  color: #0b4a8d;
}

.profil-presta-meta{
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.profil-presta-meta-item{
  border: 1px solid rgba(16, 53, 96, 0.12);
  border-radius: 10px;
  background: rgba(255,255,255,0.8);
  padding: 9px 10px;
}

.profil-presta-meta-label{
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(16, 43, 73, 0.68);
  margin-bottom: 2px;
}

.profil-presta-meta-value{
  display: block;
  font-size: 0.96rem;
  font-weight: 700;
  color: #152f52;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.profil-presta-note{
  margin-top: 10px;
  font-size: 0.88rem;
  color: rgba(24, 46, 74, 0.82);
  line-height: 1.34;
}
.profil-presta-badges{
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.profil-presta-badge{
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.10);
  background: white;
  font-weight: 800;
  font-size: 0.92rem;
}

@media (min-width: 640px) {
  .profil-presta-meta{
    grid-template-columns: 1fr 1fr;
  }
}



/* Header (Lot 1) */
.site-header{
  background: #0057e7;
  color: white;
  padding: 1rem 1.6rem;
}


.header-row{
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
}

.header-main{
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand{
  display: inline-flex;
  align-items: center;
  color: white;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.45rem;
  letter-spacing: 0.08em;
  line-height: 1;
}

.brand-logo{
  display: block;
  height: 64px;
  width: auto;
  max-width: min(360px, 34vw);
}

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


.brand:hover{ opacity: 0.92; }

.top-nav{
  display: flex;
  align-items: center;
  gap: 14px;
}

.top-nav-primary{
  justify-content: flex-start;
  flex-wrap: wrap;
}

.top-nav-secondary{
  margin-left: auto;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.nav-link{
  background: transparent;
  color: rgba(255,255,255,0.92);
  border: none;
  min-height: 32px;
  padding: 0;
  border-radius: 0;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 0.95rem;
  line-height: 1.3;
  text-decoration: none;
  opacity: 0.9;
  transition: color 160ms ease, opacity 160ms ease, font-weight 160ms ease;
}

.nav-link:hover,
.nav-link:focus-visible{
  color: #ffffff;
  opacity: 1;
  font-weight: 700;
}

.nav-link:focus-visible{
  outline: 2px solid rgba(255,255,255,0.7);
  outline-offset: 4px;
  border-radius: 4px;
}

.nav-label-desktop{
  display: inline;
}

.nav-label-mobile{
  display: none;
}

.mobile-nav{
  display: none;
  margin-left: auto;
  position: relative;
}

.mobile-nav summary{
  list-style: none;
}

.mobile-nav summary::-webkit-details-marker{
  display: none;
}

.mobile-nav-trigger{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0;
  border-radius: 0;
  border: none;
  background: transparent;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  cursor: pointer;
  opacity: 0.9;
  transition: color 160ms ease, opacity 160ms ease, font-weight 160ms ease;
}

.mobile-nav-trigger:hover,
.mobile-nav-trigger:focus-visible{
  color: #ffffff;
  opacity: 1;
  font-weight: 700;
}

.mobile-nav-panel{
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(320px, calc(100vw - 32px));
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  display: grid;
  gap: 8px;
  z-index: 30;
}

/* Home hero split layout: copy left, service choices right */
#hero-home {
  padding: 44px 20px 64px;
  text-align: left;
  background:
    radial-gradient(circle at top right, rgba(0, 87, 231, 0.16), transparent 32%),
    linear-gradient(180deg, #dbeef8 0%, #ebf5fa 48%, #f7fbfd 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

#hero-home .hero-container {
  max-width: 1240px;
}

#hero-home .hero-home-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(400px, 0.96fr);
  gap: 32px;
  align-items: stretch;
  padding: 34px;
  border-radius: 40px;
  background:
    radial-gradient(circle at top right, rgba(0, 87, 231, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(223, 241, 251, 0.82));
  border: 1px solid rgba(17, 38, 61, 0.08);
  box-shadow: 0 24px 64px rgba(17, 38, 61, 0.12);
  overflow: hidden;
}

#hero-home .hero-home-copy {
  max-width: 580px;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
  text-align: left;
}

#hero-home .hero-home-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 38px;
  margin-bottom: 18px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(17, 38, 61, 0.08);
  color: rgba(14, 56, 88, 0.88);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#hero-home h1 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(2.3rem, 3.8vw, 3.5rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  font-weight: 900;
  color: #11263d;
}

#hero-home .hero-lead {
  max-width: 30ch;
  margin: 22px 0 0;
  font-size: 1.08rem;
  line-height: 1.56;
  color: rgba(17, 38, 61, 0.74);
}

#hero-home .hero-home-points {
  margin-top: 24px;
  display: grid;
  gap: 10px;
  max-width: 29rem;
}

#hero-home .hero-home-point {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  color: rgba(14, 56, 88, 0.82);
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.4;
}

#hero-home .hero-home-point::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #0057e7;
  box-shadow: 0 0 0 5px rgba(0, 87, 231, 0.14);
}

#hero-home .hero-home-point strong {
  color: #0e3858;
}

#hero-home .hero-home-note {
  margin-top: 22px;
  color: rgba(14, 56, 88, 0.74);
  font-size: 0.92rem;
  line-height: 1.5;
}

#hero-home .hero-home-services {
  min-width: 0;
  display: flex;
  align-items: center;
}

#hero-home .hero-home-services-head {
  padding-top: 8px;
}

#hero-home .hero-home-services-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(17, 38, 61, 0.08);
  color: rgba(14, 56, 88, 0.84);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#hero-home .hero-home-services-head p {
  margin: 10px 0 0;
  max-width: 34ch;
  color: rgba(17, 38, 61, 0.68);
  line-height: 1.45;
  font-size: 0.9rem;
}

#hero-home .hero-home-service-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-content: start;
  width: 100%;
  padding: 0;
  overflow: visible;
}

#hero-home .hero-home-service-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 144px;
  gap: 16px;
  align-items: stretch;
  min-height: 214px;
  width: auto;
  max-width: none;
  padding: 16px;
  border-radius: 24px;
  border: 1px solid rgba(17, 38, 61, 0.08);
  box-shadow: 0 20px 52px rgba(17, 38, 61, 0.1);
  background: rgba(255, 255, 255, 0.96);
  text-align: left;
}

#hero-home .hero-home-service-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  border-radius: 24px 0 0 24px;
  background: linear-gradient(180deg, rgba(0, 87, 231, 0.95), rgba(0, 87, 231, 0.35));
}

#hero-home .hero-home-service-body {
  min-width: 0;
  padding: 0 0 0 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#hero-home .hero-home-service-tag {
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(17, 38, 61, 0.04);
  border: 1px solid rgba(17, 38, 61, 0.08);
  color: rgba(14, 56, 88, 0.84);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

#hero-home .hero-home-service-body h2 {
  margin: 12px 0 0;
  font-size: 1.4rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #11263d;
}

#hero-home .hero-home-service-body p {
  margin: 10px 0 0;
  color: rgba(17, 38, 61, 0.72);
  line-height: 1.45;
  font-size: 0.92rem;
}

#hero-home .hero-home-service-media {
  height: auto;
  min-height: 100%;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(17, 38, 61, 0.12);
}

#hero-home .hero-home-service-media::after {
  display: none;
}

#hero-home .hero-home-service-card .btn-card-cta {
  width: fit-content;
  margin-top: 14px;
  min-height: 42px;
  padding: 0 18px;
  border: none;
  appearance: none;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(0, 87, 231, 0.2);
}

#hero-home .hero-home-services-note {
  color: rgba(14, 56, 88, 0.72);
  font-size: 0.88rem;
  line-height: 1.5;
}

@media (max-width: 980px) {
  #hero-home .hero-home-shell {
    grid-template-columns: minmax(0, 1fr) minmax(272px, 0.84fr);
    gap: 22px;
    padding: 26px;
  }

  #hero-home h1 {
    font-size: clamp(2.45rem, 5vw, 3.6rem);
    max-width: 9ch;
  }

  #hero-home .hero-lead {
    font-size: 1rem;
    max-width: 28ch;
  }

  #hero-home .hero-home-points {
    max-width: 25rem;
  }

  #hero-home .hero-home-service-card {
    grid-template-columns: minmax(0, 1fr) 116px;
    min-height: 188px;
    padding: 14px;
  }

  #hero-home .hero-home-service-body h2 {
    font-size: 1.24rem;
  }

  #hero-home .hero-home-service-body p {
    font-size: 0.86rem;
  }

  #hero-home .hero-home-service-media {
    border-radius: 16px;
  }
}

@media (max-width: 680px) {
  #hero-home {
    padding: 32px 16px 46px;
  }

  #hero-home .hero-home-shell {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 24px;
  }

  #hero-home .hero-home-copy {
    max-width: none;
    padding: 0;
  }

  #hero-home h1 {
    max-width: 11ch;
  }

  #hero-home .hero-home-services {
    display: block;
  }

  #hero-home .hero-home-service-card {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 0;
    padding: 14px;
  }

  #hero-home .hero-home-service-media {
    height: 168px;
    min-height: 0;
  }

  #hero-home .hero-home-service-card .btn-card-cta {
    width: 100%;
  }
}

@media (max-width: 540px) {
  #hero-home h1 {
    font-size: clamp(2.15rem, 10vw, 3rem);
    max-width: none;
  }

  #hero-home .hero-lead {
    max-width: none;
    font-size: 1.03rem;
  }
}

.mobile-nav-link{
  appearance: none;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 42px;
  padding: 0.75rem 0;
  border-radius: 0;
  border: none;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: transparent;
  color: #163250;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.mobile-nav-panel > :first-child{
  border-top: none;
}

.mobile-nav-link-strong{
  color: #163250;
  font-weight: 800;
}

@media (max-width: 980px){
  .site-header{
    padding: 0.9rem 1rem;
  }

  .header-row{
    gap: 16px;
  }

  .header-main{
    gap: 16px;
  }

  .brand-logo{
    height: 58px;
    max-width: min(320px, 38vw);
  }
}

@media (max-width: 860px){
  .site-header{
    padding: 0.85rem 0.95rem;
  }

  .header-row{
    gap: 12px;
    min-height: 56px;
  }

  .header-main{
    flex: 1 1 auto;
    min-width: 0;
  }

  .brand-logo{
    height: 50px;
    max-width: min(270px, 62vw);
  }

  .top-nav-primary,
  .top-nav-secondary{
    display: none;
  }

  .mobile-nav{
    display: block;
  }
}

.tagline{
  margin-top: 8px;
  max-width: 720px;
  opacity: 0.95;
  font-size: 0.98rem;
  line-height: 1.35;
}


/* On garde ton style .btn-pro mais on l'aligne avec la nav */
.btn-pro{
  border-color: transparent !important;
}




.pro-gate{
  padding: 12px;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 12px;
  background: rgba(0,0,0,0.02);
}


/* Espace pro — formulaire candidature (clean/pro) */
.form-group { margin-top: 12px; }

.label-strong{
  font-weight: 800;
  margin-bottom: 6px;
}

.checkbox-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 8px;
}

.check{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  min-height: 44px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 10px;
  background: rgba(0,0,0,0.02);
  cursor: pointer;
}

.check input{
  width: auto;
  margin: 0;
  transform: scale(1.15);
}

.input-like{
  width: 100%;
  box-sizing: border-box;
  padding: 0.85rem;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 8px;
  font-size: 1rem;
  background: white;
}

.pro-entry-card,
.pro-network-card,
.pro-apply-card{
  width: min(760px, calc(100vw - 32px));
  max-width: 760px;
  box-sizing: border-box;
  padding: 32px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.10);
}

.pro-entry-card{
  max-width: 620px;
}

.pro-apply-card{
  max-width: 680px;
}

.pro-eyebrow{
  margin: 0 0 8px;
  color: #007fa8;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.pro-entry-card h2,
.pro-network-card h2,
.pro-apply-card h2{
  margin: 0;
  color: #00122f;
  font-size: 2rem;
  line-height: 1.15;
}

.pro-lead{
  margin: 10px 0 0;
  color: rgba(15, 23, 42, 0.68);
  font-size: 1.04rem;
  line-height: 1.55;
}

.pro-choice-list,
.pro-network-grid,
.pro-process-block,
.pro-apply-form{
  margin-top: 22px;
}

.pro-choice-list{
  display: grid;
  gap: 12px;
}

.pro-choice-row{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.10);
}

.pro-choice-row:last-child{
  border-bottom: 1px solid rgba(15, 23, 42, 0.10);
}

.pro-choice-row strong,
.pro-network-item strong{
  color: #00122f;
  font-size: 1rem;
}

.pro-choice-row p,
.pro-network-item p{
  margin: 5px 0 0;
  color: rgba(15, 23, 42, 0.64);
  line-height: 1.45;
}

.pro-choice-row .btn,
.pro-action-stack .btn{
  min-width: 170px;
  text-align: center;
  box-sizing: border-box;
}

.pro-back-btn{
  width: 100%;
  margin-top: 18px;
}

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

.pro-network-item{
  padding: 14px 0 0;
  border-top: 3px solid #0057e7;
}

.pro-process-block{
  padding-top: 18px;
  border-top: 1px solid rgba(15, 23, 42, 0.10);
}

.pro-process-block h3,
.pro-form-section h3{
  margin: 0 0 12px;
  color: #00122f;
  font-size: 1.08rem;
}

.pro-process-block ol{
  margin: 0;
  padding-left: 20px;
  color: rgba(15, 23, 42, 0.82);
  line-height: 1.6;
}

.pro-action-stack{
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.pro-action-stack .btn{
  width: 100%;
  display: inline-block;
}

.pro-apply-form{
  display: grid;
  gap: 18px;
}

.pro-form-section{
  padding-top: 18px;
  border-top: 1px solid rgba(15, 23, 42, 0.10);
}

.pro-form-section label{
  display: block;
  color: #00122f;
  font-weight: 700;
  margin-top: 10px;
}

.pro-form-section input,
.pro-form-section select,
.pro-form-section textarea{
  margin-top: 6px;
  margin-bottom: 0;
  box-sizing: border-box;
}

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

.pro-field-hint,
.pro-submit-note{
  line-height: 1.45;
}

.pro-submit-note{
  margin-top: 14px;
}

@media (max-width: 720px){
  .pro-entry-card,
  .pro-network-card,
  .pro-apply-card{
    width: min(100%, calc(100vw - 20px));
    padding: 22px;
  }

  .pro-entry-card h2,
  .pro-network-card h2,
  .pro-apply-card h2{
    font-size: 1.62rem;
  }

  .pro-choice-row,
  .pro-network-grid,
  .pro-form-grid{
    grid-template-columns: 1fr;
  }

  .pro-choice-row .btn,
  .pro-action-stack .btn{
    width: 100%;
    min-width: 0;
  }
}


/* Lot 2 — Progress bar bleue */
#wizard-progress-bar,
#progress-bar{
  background: #0057e7 !important; /* bleu Coflex, cohérent header & boutons */
  transition: width 180ms ease;
}




/* Lot 2 — Sous-titre CTA en encadré doux */
.premium-note{
  margin-top: 10px;
  display: inline-block;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(29, 124, 255, 0.10);
  border: 1px solid rgba(29, 124, 255, 0.20);
  color: rgba(0,0,0,0.82);
  font-size: 0.98rem;
}

.premium-note strong{
  font-weight: 900;
}


/* Lot 2 — CTA unifié */

.btn-cta .cta-subtext{
  display: block;              /* 🔴 C’EST ÇA QUI MANQUAIT */
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.85;
}


/* Lot 2 — CTA largeur maîtrisée */
.cta-block{
  display: flex;
  justify-content: center;
}

.btn-cta{
  width: auto;
  min-width: 260px;
  max-width: 420px;
  text-align: center;
}



.fin-mission-box{
  background: rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 12px;
  padding: 12px;
}


.precontract-section .pc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.precontract-section .pc-field label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

.precontract-section input,
.precontract-section select,
.precontract-section textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #e3e3e3;
  border-radius: 10px;
  font: inherit;
}

.precontract-section textarea {
  resize: vertical;
}

@media (max-width: 720px) {
  .precontract-section .pc-grid {
    grid-template-columns: 1fr;
  }
}


.pc-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pc-days {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 6px 0;
}

.pc-days label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.pc-grid-inner{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 720px){
  .pc-grid-inner{ grid-template-columns: 1fr; }
}
.mission-block{
  padding: 12px;
  border: 1px solid #eee;
  border-radius: 14px;
  margin-bottom: 12px;
}

.mission-title{
  font-weight: 900;
  margin-bottom: 6px;
}

.mission-header{
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 10px;
  margin: 8px 0 10px;
}

.mh-row{ margin: 4px 0; }
.mh-label{ font-weight: 800; }
.mh-sub{ margin-top: 4px; opacity: 0.9; }
.occ-row{
  display:flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.occ-row:first-child{ border-top: none; }

.client-timeline{
  margin-top: 10px;
  font-size: 0.92rem;
  opacity: 0.92;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.client-timeline .tl-step{
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(0,0,0,0.03);
  font-weight: 700;
}

.client-timeline .tl-sep{
  opacity: 0.6;
  font-weight: 700;
}

.client-timeline .tl-active{
  background: rgba(0, 87, 231,0.14);
  border-color: rgba(0, 87, 231,0.45);
}

.client-timeline .tl-done{
  opacity: 0.75;
}

.day-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}
.day-grid .check{
  width: 100%;
  min-height: 44px;
  margin: 0;
  justify-content: flex-start;
  user-select: none;
  box-sizing: border-box;
}

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

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

.time-range-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.time-range-label {
  margin-top: 0 !important;
  margin-bottom: 6px !important;
}

.btn-chip {
  border: 1px solid rgba(0,0,0,0.18);
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn-chip:hover {
  background: rgba(0,0,0,0.04);
}

.btn-chip.is-active {
  background: rgba(0, 87, 231,0.14);
  border-color: rgba(0, 87, 231,0.45);
}

.reservation-form .input-error {
  border-color: rgba(220, 53, 69, 0.75) !important;
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.15) !important;
}

.reservation-form .group-error {
  border-color: rgba(220, 53, 69, 0.5) !important;
}

.field-error {
  margin-top: 6px;
  color: #b42318;
  font-size: 0.9rem;
  font-weight: 600;
}

#wizard-screen-4 .step label {
  margin-top: 8px;
}

#wizard-screen-4 .step input,
#wizard-screen-4 .step select {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

@media (max-width: 640px) {
  .day-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .time-range-row {
    grid-template-columns: 1fr;
  }
}


/* =========================
   HOME — Cartes univers (pro)
   ========================= */

/* Layout header (index.html utilise .site-header/.header-row) */



.nav-link.btn-pro {
  border-color: transparent;
}



/* Card univers */
.service-card {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  background: #fff;
  padding: 0;            /* important: ton ancien CSS met padding 1.5rem */
  text-align: left;      /* important: ton ancien CSS centre tout */
}

.service-media {
  height: 170px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.service-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.35));
}

.service-body {
  padding: 16px 16px 18px;
}

.service-body .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.06);
  color: rgba(0,0,0,0.78);
}

.service-body h2 {
  margin: 10px 0 6px;
  font-size: 20px;
  line-height: 1.1;
}

.service-body p {
  margin: 0;
  opacity: 0.85;
  line-height: 1.4;
}

/* Images par univers (à remplacer par tes vrais fichiers) */
.card-communs .service-media { background-image: url("../img/communs.png"); }
.card-vitres  .service-media { background-image: url("../img/vitres.png"); }

/* CTA bloc */
.cta-block {
  max-width: 1100px;
  margin: 6px auto 0;
  padding: 0 18px;
}



/* ===== SERVICES: toujours 2 cartes côte à côte (même en mobile) ===== */

.services{
  display: flex;
  gap: 18px;
  align-items: stretch;
  justify-content: center;
  flex-wrap: nowrap;          /* ne pas passer en ligne suivante */
  overflow-x: auto;           /* si écran trop petit -> scroll horizontal */
  padding-bottom: 10px;       /* laisse la place au scroll */
  -webkit-overflow-scrolling: touch;
}

.services::-webkit-scrollbar{
  height: 10px;
}

.service-card{
  flex: 0 0 420px;            /* largeur fixe de carte */
  max-width: 420px;
}

@media (max-width: 460px){
  .service-card{
    flex-basis: 360px;        /* un peu plus petit sur très petit écran */
    max-width: 360px;
  }
}


/* Bloc Pourquoi Coflex */
.why-coflex {
  background: white;
  padding: 3rem 1.5rem;
}

.why-container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.why-coflex h2 {
  font-size: 1.6rem;
  margin-bottom: 2rem;
  font-weight: 900;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.why-item {
  background: rgba(0,0,0,0.03);
  padding: 1.5rem;
  border-radius: 14px;
}

.why-item strong {
  display: block;
  margin-bottom: 0.6rem;
  font-weight: 800;
}

@media (max-width: 900px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

/* HERO PREMIUM STRUCTURÉ */

.hero-coflex {

  /*background: white;*/
  background: #e6f2f8;
  padding: 2.1rem 1.2rem 2.4rem;
  text-align: center;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

.hero-coflex.is-hidden {
  display: none;
}

.hero-container {
  max-width: 980px;
  margin: 0 auto;
}

.hero-coflex h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.22;
  margin-bottom: 0.85rem;
  color: #222;
}

.hero-coflex h1 span {
  color: inherit;
}

.hero-coflex h1:empty {
  display: none;
}

.hero-sub {
  font-size: 1.02rem;
  opacity: 0.9;
  margin-bottom: 0.65rem;
}

.hero-prompt {
  margin: 0 auto 1rem;
  font-weight: 700;
  opacity: 0.9;
}

.hero-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0;
}

.hero-service-grid .service-card {
  width: auto;
  max-width: none;
  flex: initial;
  text-align: left;
}

.hero-service-grid .btn-card-cta {
  margin-top: 12px;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .hero-coflex h1 {
    font-size: 1.7rem;
  }

  .hero-lead {
    font-size: 0.95rem;
  }

  .hero-coflex {
    padding: 1.9rem 1rem 1.55rem;
  }

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

  .hero-service-grid .service-media {
    height: 150px;
  }

  .hero-service-grid .btn-card-cta {
    width: 100%;
  }
}

/* ===== HOME SECTIONS (Pourquoi / Comment / Engagement) ===== */

.home-section{
  padding: 34px 18px;
  background: #f5f5f5; /* cohérent avec ton fond */
}

.home-section.home-alt{
  background: #ffffff;
}

.home-container{
  max-width: 1100px;
  margin: 0 auto;
}

.home-bottom-cta{
  padding: 10px 18px 42px;
  background: #f5f5f5;
}

.home-bottom-cta-inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 28px;
  border-radius: 24px;
  background: #e6f2f8;
  border: 1px solid rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.home-bottom-cta-copy{
  max-width: 720px;
}

.home-bottom-cta-copy h2{
  margin: 0;
  font-size: 1.35rem;
  color: #16202a;
}

.home-bottom-cta-copy p{
  margin: 10px 0 0;
  color: rgba(0,0,0,0.72);
  line-height: 1.5;
}

@media (max-width: 768px){
  .home-bottom-cta{
    padding: 8px 16px 34px;
  }

  .home-bottom-cta-inner{
    padding: 20px 18px;
    align-items: flex-start;
    flex-direction: column;
  }

  .home-bottom-cta-copy h2{
    font-size: 1.2rem;
  }

  .home-bottom-cta-inner .btn{
    width: 100%;
    text-align: center;
    box-sizing: border-box; /* LOT 10A-3 : padding inclus → plus de débordement viewport */
    max-width: 100%;
    min-width: 0;
  }
}

/* Public facade refonte */
.top-nav{
  gap: 18px;
}

.top-nav-primary{
  justify-content: flex-start;
}

.top-nav-secondary{
  margin-left: auto;
}

.nav-link-anchor{
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.nav-menu{
  position: relative;
}

.nav-menu summary{
  list-style: none;
}

.nav-menu summary::-webkit-details-marker{
  display: none;
}

.nav-menu-trigger{
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-menu-trigger::after{
  content: none;
}

.nav-menu[open] .nav-menu-trigger{
  color: #ffffff;
  opacity: 1;
  font-weight: 700;
}

.nav-menu-panel{
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  padding: 10px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(16, 24, 40, 0.16);
  border: 1px solid rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 6px;
  z-index: 20;
}

.nav-menu-link{
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #163250;
  text-decoration: none;
  font-weight: 700;
}

.nav-menu-link:hover{
  background: rgba(11, 92, 171, 0.08);
  color: #0b5cab;
}

.hero-copy{
  max-width: 680px;
  margin: 0 auto 22px;
  text-align: center;
}

.hero-lead{
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.02rem;
  line-height: 1.6;
  color: rgba(22, 32, 42, 0.78);
}

.service-body .btn-card-cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  border: none;
  appearance: none;
}

.section-heading{
  max-width: 760px;
  margin: 0 auto 22px;
  text-align: center;
}

.section-intro{
  margin: 0;
  color: rgba(17,24,39,0.78);
  line-height: 1.6;
}

.home-section-actions{
  margin-top: 22px;
  display: flex;
  justify-content: center;
}

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

.audience-grid,
.resources-grid,
.faq-grid{
  display: grid;
  gap: 16px;
}

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

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

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

.audience-card,
.resource-card,
.faq-item,
.public-page-card{
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.audience-card,
.resource-card{
  padding: 20px;
}

.resource-card{
  display: grid;
  gap: 12px;
  min-height: 100%;
  align-content: start;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,251,255,0.96) 100%);
}

[data-resource-tone="brief"]{
  background:
    linear-gradient(180deg, rgba(240,249,255,0.98) 0%, rgba(255,255,255,0.96) 100%);
}

[data-resource-tone="cadence"]{
  background:
    linear-gradient(180deg, rgba(236,253,245,0.96) 0%, rgba(255,255,255,0.98) 100%);
}

[data-resource-tone="launch"]{
  background:
    linear-gradient(180deg, rgba(255,247,237,0.98) 0%, rgba(255,255,255,0.96) 100%);
}

.resource-card-kicker{
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(14,165,233,0.12);
  color: #0f447a;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.audience-card h3,
.resource-card h3{
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.audience-card p,
.resource-card p{
  margin: 0;
  line-height: 1.55;
  color: rgba(17,24,39,0.78);
}

.resource-card a{
  display: inline-flex;
  margin-top: auto;
  font-weight: 800;
  text-decoration: none;
}

.resource-card-list{
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: rgba(17,24,39,0.82);
  line-height: 1.55;
}

.resource-card-list li::marker{
  color: #0b5cab;
}

.faq-item{
  padding: 0;
  overflow: hidden;
}

.faq-item summary{
  cursor: pointer;
  list-style: none;
  padding: 18px 20px;
  font-weight: 800;
}

.faq-item summary::-webkit-details-marker{
  display: none;
}

.faq-item p{
  margin: 0;
  padding: 0 20px 20px;
  color: rgba(17,24,39,0.78);
  line-height: 1.55;
}

.public-page-surface{
  padding: 24px 18px 10px;
}

.public-page-shell{
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.public-page-hero{
  padding: 28px;
  border-radius: 28px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(135deg, #edf7ff 0%, #ffffff 100%);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.public-page-hero-communs{
  background: linear-gradient(135deg, rgba(14,165,233,0.14) 0%, rgba(255,255,255,0.98) 70%);
}

.public-page-hero-vitres{
  background: linear-gradient(135deg, rgba(6,182,212,0.14) 0%, rgba(255,255,255,0.98) 70%);
}

.public-page-hero-neutral{
  background: linear-gradient(135deg, rgba(59,130,246,0.10) 0%, rgba(255,255,255,0.98) 72%);
}

.public-page-eyebrow{
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.76);
  border: 1px solid rgba(15,23,42,0.08);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f447a;
}

.public-page-hero h1{
  margin: 16px 0 10px;
  font-size: 2rem;
  line-height: 1.18;
}

.public-page-hero p{
  max-width: 760px;
  margin: 0;
  color: rgba(17,24,39,0.8);
  line-height: 1.6;
}

.public-page-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.public-page-grid{
  display: grid;
  gap: 16px;
}

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

.public-page-grid-3{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.public-page-card{
  padding: 22px;
}

.public-page-card h2{
  margin: 0 0 14px;
  font-size: 1.08rem;
}

.public-page-card p{
  margin: 0;
  color: rgba(17,24,39,0.78);
  line-height: 1.6;
}

.public-page-list{
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: rgba(17,24,39,0.8);
  line-height: 1.55;
}

.public-page-card-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.public-page-cta-block{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px;
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(135deg, rgba(14,165,233,0.12) 0%, #ffffff 100%);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.public-page-cta-block-neutral{
  background: linear-gradient(135deg, rgba(59,130,246,0.12) 0%, #ffffff 100%);
}

.public-page-cta-copy{
  max-width: 680px;
}

.public-page-cta-copy h2{
  margin: 0;
  font-size: 1.25rem;
  color: #16202a;
}

.public-page-cta-copy p{
  margin: 10px 0 0;
  color: rgba(17,24,39,0.78);
  line-height: 1.55;
}

.public-page-cta-actions{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer{
  padding: 18px 18px 40px;
  background: #eef4f6;
}

.site-footer-inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 34px 36px 24px;
  border-radius: 30px;
  background: #f9fcfd;
  color: #163250;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.site-footer-grid{
  display: grid;
  grid-template-columns: minmax(160px, 0.9fr) repeat(4, minmax(0, 1fr));
  gap: 28px 24px;
  align-items: start;
}

.site-footer-title{
  margin-bottom: 14px;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #133558;
}

.site-footer-column{
  display: grid;
  gap: 12px;
}

.site-footer-column-brand{
  gap: 6px;
  padding-right: 10px;
}

.site-footer-wordmark{
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-size: 1.42rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #163250;
}

.site-footer-address{
  color: rgba(22, 50, 80, 0.72);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 22ch;
}

.site-footer-link{
  display: inline-flex;
  color: rgba(22, 50, 80, 0.9);
  text-decoration: none;
  font-weight: 600;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  line-height: 1.5;
}

.site-footer-link:hover{
  color: #0b5cab;
}

.site-footer-button{
  font: inherit;
}

.site-footer-link-muted{
  color: rgba(22, 50, 80, 0.5);
  cursor: default;
}

.site-footer-meta{
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.92rem;
  color: rgba(22, 50, 80, 0.62);
}

.coflex-turnstile-block{
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.03);
}

.coflex-turnstile-label{
  margin-bottom: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #163250;
}

.coflex-turnstile-block [data-coflex-turnstile]{
  min-height: 68px;
}

.coflex-turnstile-fallback{
  font-size: 0.93rem;
  line-height: 1.4;
  color: #6c4f00;
}

@media (max-width: 980px){
  .nav-menu-panel{
    left: auto;
    right: 0;
  }

  .steps.steps-4,
  .audience-grid,
  .site-footer-grid{
    grid-template-columns: minmax(180px, 1fr) repeat(2, minmax(0, 1fr));
  }

  .resources-grid,
  .faq-grid,
  .public-page-grid-2{
    grid-template-columns: 1fr;
  }

  .public-page-grid-3{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px){
  .hero-copy{
    margin-bottom: 18px;
  }

  .steps.steps-4,
  .audience-grid,
  .faq-grid,
  .resources-grid,
  .site-footer-grid{
    grid-template-columns: 1fr;
  }

  .site-footer{
    padding: 14px 14px 30px;
  }

  .site-footer-inner{
    padding: 26px 20px 22px;
    border-radius: 24px;
  }

  .public-page-hero{
    padding: 22px 18px;
  }

  .public-page-cta-block{
    padding: 20px 18px;
    flex-direction: column;
    align-items: flex-start;
  }

  .public-page-cta-actions{
    flex-direction: column;
    width: 100%;
  }

  .public-page-cta-actions .btn{
    width: 100%;
    text-align: center;
  }

  .site-footer-column{
    gap: 10px;
  }

  .site-footer-wordmark{
    font-size: 1.35rem;
    letter-spacing: 0.2em;
  }

  .site-footer-meta{
    flex-direction: column;
  }
}

.home-title{
  text-align: center;
  font-size: 1.35rem;
  font-weight: 900;
  margin: 0 0 18px;
}

/* Piliers */
.pillars{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.pillar{
  background: #fff;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.pillar-title{
  font-weight: 900;
  margin-bottom: 6px;
}

.pillar-text{
  opacity: 0.9;
  line-height: 1.35;
}

/* Steps */
.steps{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.step-card{
  background: #f9f9f9;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.step-num{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0057e7;
  color: white;
  /*
  background: rgba(0, 87, 231,0.12);
  color: #0057e7;
  */
  font-weight: 900;
  flex: 0 0 auto;
}

.step-title{
  font-weight: 900;
  margin-bottom: 4px;
}

.step-text{
  opacity: 0.9;
  line-height: 1.35;
}

/* Engagement list */
.checks{
  max-width: 760px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.checks li{
  background: #fff;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  font-weight: 700;
}

/* Responsive */
@media (max-width: 980px){
  .pillars{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px){
  .steps{ grid-template-columns: 1fr; }
}

@media (max-width: 560px){
  .pillars{ grid-template-columns: 1fr; }
}

/* J3 — Précontractuel en sous-blocs (accordéon léger) */
.precontract-section .pc-progress{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin: 6px 0 12px;
}

.precontract-section .pc-chip{
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(0,0,0,0.03);
  font-weight: 800;
  font-size: 0.9rem;
}

.precontract-section .pc-chip{
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.precontract-section .pc-chip:hover{
  background: rgba(0,0,0,0.05);
}

.precontract-section .pc-chip-on{
  background: rgba(0, 87, 231,0.12);
  border-color: rgba(0, 87, 231,0.35);
}

.precontract-section .pc-acc{
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 12px;
  background: #fff;
  margin-top: 10px;
  overflow: hidden;
}

.precontract-section .pc-acc summary{
  cursor: pointer;
  padding: 12px;
  background: rgba(0,0,0,0.03);
  list-style: none;
}

.precontract-section .pc-acc summary::-webkit-details-marker{ display:none; }

.precontract-section .pc-acc-body{
  padding: 12px;
}

.precontract-section .pc-note{
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 87, 231,0.10);
  border: 1px solid rgba(0, 87, 231,0.25);
  font-weight: 700;
}

.precontract-section .pc-guarantee{
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(0, 87, 231,0.10);
  border: 1px solid rgba(0, 87, 231,0.25);
}

.precontract-section .pc-guarantee-title{
  font-weight: 900;
  margin-bottom: 8px;
}

.precontract-section .pc-guarantee-list{
  margin: 0;
  padding-left: 18px;
}

.precontract-section .pc-final-actions{
  margin-top: 14px;
}

.precontract-section .pc-service-block{
  padding: 12px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  background: rgba(0,0,0,0.02);
}

.precontract-section .pc-subtitle{
  font-weight: 900;
  margin-bottom: 10px;
}

.pc-recap-block{
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.pc-recap-block:first-child{
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.pc-recap-block-title{
  font-weight: 900;
  margin-bottom: 6px;
  color: rgba(17,24,39,0.92);
}

.pc-check{
  display:flex;
  gap:10px;
  align-items:flex-start;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(0,0,0,0.02);
  font-weight: 600;
}

.pc-check input{
  width: auto;
  margin-top: 3px;
}




/* Step 5 - détails optionnels plus légers */
.precontract-section .pc-lite-details summary{
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.08);
  list-style: none;
  font-weight: 800;
}

.precontract-section .pc-lite-details summary::-webkit-details-marker { display:none; }

/* Récap Step 5 : rendu “léger” proche de l’aperçu des passages */
/* Récap Step 5 - version fine et compacte */
.pc-recap-minimal{
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px dashed rgba(0,0,0,0.18);
  border-radius: 10px;
  background: rgba(0,0,0,0.02);
}

.pc-recap-line{
  margin: 2px 0;
  font-size: 0.92rem;              /* légèrement plus petit */
  line-height: 1.3;                /* plus compact */
  color: rgba(31,41,55,0.78);
}

.pc-recap-k{
  font-weight: 585;                /* plus semi-bold */
  color: rgba(17,24,39,0.75);
}

.pc-recap-sep{
  opacity: 0.45;
  padding: 0 5px;
}

.pc-recap-v{
  font-weight: 400;
  color: rgba(31,41,55,0.78);
}


.pc-recap-row:last-child{ border-bottom:none; }


/* Confirmation post-validation premium */
.pc-success-box{
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(16,185,129,0.28);
  background: rgba(16,185,129,0.08);
}

.pc-success-title{
  font-weight: 700;
  font-size: 1.02rem;
  color: rgba(6,95,70,0.95);
  margin-bottom: 6px;
}

.pc-success-sub{
  color: rgba(17,24,39,0.80);
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.pc-success-list{
  margin: 0;
  padding-left: 18px;
  color: rgba(17,24,39,0.86);
  line-height: 1.5;
}

.timeline-section .tl-subtitle{
  font-weight: 800;
  margin: 6px 0 6px 0;
}

.cl-oc-line{
  margin: 3px 0;
  line-height: 1.35;
  color: rgba(31,41,55,0.82);
}

.cl-oc-date{ font-weight: 600; color: rgba(17,24,39,0.86); }
.cl-oc-sep{ opacity: .5; padding: 0 6px; }
.cl-oc-label{ font-weight: 600; }
.cl-oc-dot{ opacity: .5; padding: 0 8px; }
.cl-oc-status{ color: rgba(31,41,55,0.72); }


.tarif-line{
  margin-top:6px;
  font-size:0.95rem;
  color:#1f2937;
  line-height:1.4;
  word-break:break-word;
}

.tarif-hint{
  margin-top:4px;
  font-size:0.86rem;
  line-height:1.35;
}

/* =========================
   Prestataire – Onboarding banner
   ========================= */
@media (max-width: 640px){
  .success-estimation{
    padding: 8px;
  }

  .tarif-line{
    font-size: 0.92rem;
  }

  .tarif-hint{
    font-size: 0.82rem;
  }
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}


.address-autocomplete-panel {
  margin-top: 6px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  max-height: 240px;
  overflow: auto;
}

.address-autocomplete-list {
  list-style: none;
  margin: 0;
  padding: 4px 0;
}

.address-autocomplete-item {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 10px 12px;
  cursor: pointer;
  font: inherit;
}

.address-autocomplete-item:hover,
.address-autocomplete-item:focus-visible {
  background: rgba(14, 165, 233, 0.1);
  outline: none;
}

.address-autocomplete-main {
  display: block;
  color: #0f172a;
}

.address-autocomplete-meta {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 0.9em;
}

.client-app-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0 14px;
}

.client-app-nav-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.client-app-nav-actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
}

@media (max-width: 760px) {
  .client-app-nav-actions {
    margin-left: 0;
    width: 100%;
    justify-content: flex-end;
  }
}

.client-app-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: #0f172a;
  text-decoration: none;
  font-weight: 700;
}

.client-app-nav-link.is-active {
  background: #0057e7;
  color: #fff;
  border-color: #0057e7;
}

.client-shell-dashboard {
  --client-shell-left-top-band-height: 90px;
  width: min(1680px, calc(100vw - 28px));
  min-height: calc(100vh - 36px);
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas:
    "client-shell-sidebar client-shell-header"
    "client-shell-sidebar client-shell-content";
  gap: 0;
  box-sizing: border-box;
  margin: 14px auto;
  padding: 0;
  overflow: hidden;
  background: #f5f8fb;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.client-shell-status-banner {
  grid-column: 1 / -1;
}

.client-shell-sidebar {
  grid-area: client-shell-sidebar;
  min-height: 100%;
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: start;
  gap: 14px;
  padding: 14px 10px;
  border-right: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(
    to bottom,
    #0057e7 0,
    #0057e7 var(--client-shell-left-top-band-height),
    #fff var(--client-shell-left-top-band-height),
    #fff 100%
  );
}

.client-shell-brand {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: transparent;
  padding: 0 8px;
  overflow: visible;
  text-decoration: none;
}

.client-shell-brand-logo {
  display: block;
  width: min(176px, 100%);
  height: auto;
}

.client-shell-brand-mark,
.client-shell-nav-icon,
.client-shell-icon-button,
.client-shell-avatar,
.client-shell-notification-icon {
  display: inline-grid;
  place-items: center;
}

.client-shell-brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #0057e7;
  color: #fff;
}

.client-shell-sidebar svg,
.client-shell-header svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.client-shell-nav {
  display: grid;
  align-content: start;
  gap: 6px;
}

.client-shell-nav-group-label {
  padding: 8px 12px 4px;
  color: #64748b;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}

.client-shell-nav-link {
  min-height: 38px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 0 10px;
  border-radius: 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.client-shell-nav-link:hover,
.client-shell-nav-link:focus-visible {
  background: #f8fafc;
  color: #0f172a;
  outline: none;
}

.client-shell-nav-link.client-shell-is-active {
  background: rgba(0, 87, 231, 0.1);
  color: #0057e7;
}

.client-shell-sidebar-help {
  display: grid;
  gap: 8px;
  margin-top: clamp(120px, 22vh, 220px);
  padding: 10px;
  border: 1px solid rgba(0, 87, 231, 0.14);
  border-radius: 8px;
  background: rgba(0, 87, 231, 0.05);
}

.client-shell-sidebar-help strong {
  color: #172554;
  font-size: 13px;
  line-height: 1.25;
}

.client-shell-sidebar-help span {
  color: #334155;
  font-size: 12px;
  line-height: 1.4;
}

.client-shell-sidebar-help-link {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(0, 87, 231, 0.22);
  border-radius: 8px;
  background: #fff;
  color: #0057e7;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.client-shell-header {
  grid-area: client-shell-header;
  position: sticky;
  top: 0;
  z-index: 20;
  min-width: 0;
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 12px 22px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.client-shell-header-leading {
  min-width: 0;
  display: flex;
  align-items: center;
}

.client-shell-title-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.client-shell-breadcrumbs {
  display: flex;
  gap: 7px;
  align-items: center;
  color: #64748b;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
}

.client-shell-page-heading {
  display: grid;
  gap: 5px;
  margin: 4px 0 18px;
}

.client-shell-page-heading h2 {
  margin: 0;
  color: #111a3a;
  font-size: 26px;
  line-height: 1.18;
  letter-spacing: 0;
}

.client-shell-page-heading + .client-page-view > .client-page-header h3 {
  display: none;
}

.client-shell-header-actions {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.client-shell-icon-button,
.client-shell-profile-button,
.client-shell-menu-item {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #fff;
  color: #334155;
  font: inherit;
  cursor: pointer;
}

.client-shell-icon-button {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 8px;
}

.client-shell-icon-button:hover,
.client-shell-profile-button:hover,
.client-shell-icon-button:focus-visible,
.client-shell-profile-button:focus-visible {
  border-color: rgba(0, 87, 231, 0.24);
  color: #0057e7;
  outline: none;
}

.client-shell-sidebar-toggle {
  display: none;
}

.client-shell-notification-count {
  position: absolute;
  top: 5px;
  right: 5px;
  min-width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
}

.client-shell-profile-button {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px 0 6px;
  border-radius: 8px;
}

.client-shell-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 87, 231, 0.1);
  color: #0057e7;
  font-size: 12px;
  font-weight: 900;
}

.client-shell-profile-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
  text-align: left;
}

.client-shell-profile-copy strong {
  max-width: 170px;
  overflow: hidden;
  color: #0f172a;
  font-size: 13px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-shell-profile-copy span {
  color: #64748b;
  font-size: 11px;
  line-height: 1.15;
}

.client-shell-profile-chevron {
  display: grid;
  place-items: center;
}

.client-shell-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(320px, calc(100vw - 32px));
  display: none;
  padding: 8px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.16);
}

.client-shell-popover.client-shell-is-open {
  display: grid;
}

.client-shell-popover-head {
  padding: 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.client-shell-popover-head strong,
.client-shell-notification strong {
  display: block;
  color: #111827;
  font-size: 13px;
  line-height: 1.3;
}

.client-shell-popover-head span,
.client-shell-notification span span {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}

.client-shell-notification-list,
.client-shell-menu-list {
  display: grid;
  gap: 4px;
  padding: 6px 0 0;
}

.client-shell-notification,
.client-shell-menu-item {
  min-height: 42px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  color: #334155;
  text-align: left;
  text-decoration: none;
}

.client-shell-notification:hover,
.client-shell-menu-item:hover,
.client-shell-notification:focus-visible,
.client-shell-menu-item:focus-visible {
  background: #f8fafc;
  color: #0057e7;
  outline: none;
}

.client-shell-notification-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(0, 87, 231, 0.1);
  color: #0057e7;
}

.client-shell-notification-empty {
  cursor: default;
}

.client-shell-menu-item {
  width: 100%;
  grid-template-columns: 20px minmax(0, 1fr);
  font-size: 13px;
  font-weight: 800;
}

.client-shell-menu-item.client-shell-is-danger {
  color: #b91c1c;
}

.client-shell-content {
  grid-area: client-shell-content;
  min-width: 0;
  padding: 22px 22px 32px;
  background: #f5f8fb;
}

@media (max-width: 980px) {
  .client-shell-dashboard {
    width: min(100%, calc(100vw - 18px));
    min-height: calc(100vh - 18px);
    grid-template-columns: 1fr;
    grid-template-areas:
      "client-shell-header"
      "client-shell-content";
    margin: 9px auto;
  }

  .client-shell-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 60;
    width: min(296px, 88vw);
    min-height: 100vh;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    box-shadow: 18px 0 40px rgba(15, 23, 42, 0.16);
  }

  .client-shell-sidebar.client-shell-is-open {
    transform: translateX(0);
  }

  .client-shell-header {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .client-shell-sidebar-toggle {
    display: inline-grid;
  }

  .client-shell-header-actions {
    justify-content: space-between;
  }

  .client-shell-content {
    padding: 18px 14px 28px;
  }
}

@media (max-width: 620px) {
  .client-shell-header h2 {
    font-size: 20px;
  }

  .client-shell-profile-copy,
  .client-shell-profile-chevron {
    display: none;
  }

  .client-shell-popover {
    right: auto;
    left: 0;
    width: calc(100vw - 36px);
  }
}

.client-page-view {
  display: grid;
  container-type: inline-size;
  gap: 14px;
  margin-bottom: 18px;
}

.client-page-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.client-page-header h3 {
  margin: 0 0 4px;
}

.client-page-muted {
  color: rgba(15, 23, 42, 0.68);
}

.client-page-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  padding: 16px;
}

.client-page-card h4 {
  margin: 0 0 12px;
}

.client-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.client-kpi-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  padding: 14px;
}

.client-kpi-value {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}

.client-home-v1-page {
  gap: 18px;
}

.client-home-v1-header h3 {
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 8px;
}

.client-home-v1-primary-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  border: 1px solid #0057e7;
  border-radius: 8px;
  background: #0057e7;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(0, 87, 231, 0.18);
  white-space: nowrap;
}

.client-home-v1-primary-action:hover {
  background: #0045b8;
  color: #fff;
}

.client-home-v1-alert {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px 16px;
  border: 1px solid rgba(217, 119, 6, 0.26);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.94), rgba(255, 255, 255, 0.98));
}

.client-home-v1-alert-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #d97706;
}

.client-home-v1-alert-icon svg,
.client-home-v1-kpi-icon svg,
.client-home-v1-row-icon svg {
  width: 18px;
  height: 18px;
}

.client-home-v1-alert-eyebrow,
.client-home-v1-service-caption {
  color: rgba(15, 23, 42, 0.54);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
}

.client-home-v1-alert h4 {
  margin: 0 0 7px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
}

.client-home-v1-action-list {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(15, 23, 42, 0.68);
  font-size: 13px;
  line-height: 1.42;
}

.client-home-v1-action-list strong {
  color: #0f172a;
  font-weight: 700;
}

.client-home-v1-action-cta {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.client-home-v1-action-cta:hover {
  border-color: rgba(0, 87, 231, 0.28);
  color: #0057e7;
}

.client-home-v1-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #0057e7;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.client-home-v1-link:hover {
  color: #004ed0;
  text-decoration: underline;
}

.client-home-v1-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.client-home-v1-kpi {
  min-height: 116px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
  color: inherit;
  text-decoration: none;
}

.client-home-v1-kpi:hover,
.client-home-v1-panel:hover {
  border-color: rgba(0, 87, 231, 0.24);
}

.client-home-v1-kpi-icon,
.client-home-v1-row-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.client-home-v1-kpi.is-blue .client-home-v1-kpi-icon,
.client-home-v1-row-icon.is-blue {
  background: rgba(0, 87, 231, 0.1);
  color: #0057e7;
}

.client-home-v1-kpi.is-green .client-home-v1-kpi-icon,
.client-home-v1-row-icon.is-green {
  background: rgba(22, 163, 74, 0.12);
  color: #16a34a;
}

.client-home-v1-kpi.is-violet .client-home-v1-kpi-icon {
  background: rgba(124, 58, 237, 0.12);
  color: #7c3aed;
}

.client-home-v1-kpi.is-orange .client-home-v1-kpi-icon {
  background: rgba(217, 119, 6, 0.14);
  color: #d97706;
}

.client-home-v1-kpi-label {
  display: block;
  margin-bottom: 8px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
}

.client-home-v1-kpi-value {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.client-home-v1-kpi.is-blue .client-home-v1-kpi-value {
  color: #2563eb;
}

.client-home-v1-kpi.is-green .client-home-v1-kpi-value {
  color: #16a34a;
}

.client-home-v1-kpi.is-violet .client-home-v1-kpi-value {
  color: #8b5cf6;
}

.client-home-v1-kpi.is-orange .client-home-v1-kpi-value {
  color: #f59e0b;
}

.client-home-v1-kpi-meta {
  color: rgba(15, 23, 42, 0.66);
  font-size: 13px;
  line-height: 1.42;
}

.client-home-v1-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 0.72fr);
  gap: 16px;
  align-items: start;
}

.client-home-v1-main-column,
.client-home-v1-side-column,
.client-home-v1-panel,
.client-home-v1-list {
  display: grid;
  gap: 16px;
}

.client-home-v1-panel {
  border-radius: 8px;
}

.client-home-v1-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.client-home-v1-panel-head h4 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0;
}

.client-home-v1-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.client-home-v1-service-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1.05fr) minmax(150px, 0.68fr) minmax(132px, 0.55fr) auto;
  gap: 13px;
  align-items: center;
  min-height: 74px;
  padding: 12px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.client-home-v1-service-item:first-child,
.client-home-v1-request-item:first-child,
.client-home-v1-intervention-item:first-child,
.client-home-v1-billing-row:first-child {
  border-top: 0;
}

.client-home-v1-service-title,
.client-home-v1-item-title,
.client-home-v1-service-schedule,
.client-home-v1-service-billing {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.client-home-v1-service-title strong,
.client-home-v1-item-title strong,
.client-home-v1-service-schedule strong,
.client-home-v1-service-billing strong {
  color: #0f172a;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.client-home-v1-service-title .client-status-badge {
  justify-self: start;
  width: auto;
}

.client-home-v1-service-title span,
.client-home-v1-item-title span {
  color: rgba(15, 23, 42, 0.66);
  font-size: 13px;
  line-height: 1.35;
}

.client-home-v1-request-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  min-height: 62px;
  padding: 10px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  color: inherit;
  text-decoration: none;
}

.client-home-v1-request-item:hover .client-home-v1-item-title strong {
  color: #0057e7;
}

.client-home-v1-row-icon {
  width: 40px;
  height: 40px;
}

.client-home-v1-date-tile {
  width: 58px;
  min-height: 66px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #f8fafc;
  display: grid;
  place-items: center;
  padding: 6px 0;
  text-align: center;
}

.client-home-v1-date-tile span {
  color: #475569;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
}

.client-home-v1-date-tile strong {
  color: #0f172a;
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
}

.client-home-v1-intervention-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  min-height: 78px;
  padding: 12px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.client-home-v1-chip {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  min-height: 25px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.client-home-v1-chip.is-success {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.client-home-v1-chip.is-info {
  background: rgba(0, 87, 231, 0.1);
  color: #0057e7;
}

.client-home-v1-chip.is-warning,
.client-home-v1-chip.is-orange {
  background: rgba(217, 119, 6, 0.14);
  color: #d97706;
}

.client-home-v1-billing-summary {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 13px;
}

.client-home-v1-billing-total {
  display: grid;
  gap: 9px;
  padding: 15px;
  border: 1px solid rgba(0, 87, 231, 0.12);
  border-radius: 8px;
  background: rgba(0, 87, 231, 0.04);
}

.client-home-v1-billing-month {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.client-home-v1-billing-amount {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0;
}

.client-home-v1-billing-list {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  overflow: hidden;
}

.client-home-v1-billing-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  color: #172554;
  font-size: 13px;
}

.client-home-v1-billing-row strong {
  color: #0f172a;
  font-weight: 700;
  white-space: nowrap;
}

.client-home-v1-billing-row.is-total {
  font-weight: 800;
}

@media (max-width: 1100px) {
  .client-home-v1-grid,
  .client-home-v1-billing-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .client-home-v1-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .client-home-v1-header,
  .client-home-v1-panel-head,
  .client-home-v1-alert {
    display: grid;
  }

  .client-home-v1-alert {
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: start;
  }

  .client-home-v1-action-cta {
    grid-column: 1 / -1;
    width: 100%;
    justify-self: stretch;
  }

  .client-home-v1-header h3 {
    font-size: 26px;
  }

  .client-home-v1-primary-action,
  .client-home-v1-kpi-grid {
    width: 100%;
  }

  .client-home-v1-kpi-grid {
    grid-template-columns: 1fr;
  }

  .client-home-v1-service-item {
    grid-template-columns: 46px minmax(0, 1fr) auto;
  }

  .client-home-v1-service-schedule,
  .client-home-v1-service-billing {
    grid-column: 2 / -1;
  }

  .client-home-v1-request-item,
  .client-home-v1-intervention-item {
    grid-template-columns: 1fr;
  }

  .client-home-v1-date-tile {
    width: 100%;
    min-height: 52px;
    display: flex;
    justify-content: center;
    gap: 6px;
  }
}

.client-billing-contract-card {
  display: grid;
  gap: 12px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.88) 0%, rgba(255, 255, 255, 0.98) 100%);
  border-color: rgba(15, 23, 42, 0.12);
}

.client-billing-contract-eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.54);
}

.client-billing-contract-card h4 {
  margin: -4px 0 0;
}

.client-billing-contract-summary .client-page-summary-item {
  background: rgba(255, 255, 255, 0.9);
}

.client-page-two-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.client-proposal-panel {
  align-self: start;
}

.client-proposal-entries {
  display: grid;
  gap: 10px;
}

.client-proposal-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.82) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.client-proposal-entry-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px 14px;
  min-width: 0;
}

.client-proposal-entry-metric {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.client-proposal-entry-label {
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(15, 23, 42, 0.62);
}

.client-proposal-entry-value {
  display: block;
  min-width: 0;
  font-size: 16px;
  line-height: 1.3;
  color: #0f172a;
}

.client-proposal-entry-cta {
  justify-self: start;
  min-width: auto;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .client-proposal-entry {
    grid-template-columns: 1fr;
  }

  .client-proposal-entry-summary {
    grid-template-columns: 1fr;
  }
}

.client-page-list-grid {
  display: grid;
  gap: 14px;
}

.client-page-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.client-page-list-item {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  padding: 12px;
  background: rgba(248, 250, 252, 0.7);
}

.client-page-list-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 6px;
}

.client-page-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.client-detail-panel-actions {
  margin-top: 12px;
}

.client-page-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 0;
}

.client-page-summary-item {
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.8);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.client-page-summary-item dt {
  font-weight: 700;
  color: rgba(15, 23, 42, 0.62);
  margin-bottom: 4px;
}

.client-page-summary-item dd {
  margin: 0;
}

.client-workspace-card-section {
  display: grid;
  gap: 12px;
}

.client-workspace-proposal-content {
  gap: 16px;
}

.client-workspace-provider-name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  padding-bottom: 4px;
}

.client-workspace-card-footer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.client-workspace-support-footer {
  margin-top: 22px;
}

/* Lot correctif: prefilled field styles */
.client-form-field-prefilled {
  border-left: 3px solid rgba(59, 130, 246, 0.5);
  padding-left: 10px;
  background: rgba(59, 130, 246, 0.03);
  border-radius: 6px;
}

.client-form-prefill-badge {
  display: inline-block;
  font-size: 0.7em;
  font-weight: 600;
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 4px;
  vertical-align: middle;
  letter-spacing: 0.02em;
}

.client-form-prefill-banner {
  font-size: 0.92em;
  line-height: 1.5;
}

/* Lot canonique: inline error styles */
.client-form-field-error {
  border-left: 3px solid #dc2626;
  padding-left: 10px;
  background: rgba(220, 38, 38, 0.04);
  border-radius: 6px;
}

.client-form-inline-error {
  color: #dc2626;
  font-size: 0.85em;
  margin-top: 2px;
  display: block;
}

.client-form-impact-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.75em;
  font-weight: 600;
}

.client-form-impact-badge--quote {
  background: rgba(245, 158, 11, 0.14);
  color: #9a3412;
}

.client-form-impact-badge--provider {
  background: rgba(14, 116, 144, 0.12);
  color: #155e75;
}

.client-form-submit-preview-active {
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255, 247, 237, 0.92);
  border: 1px solid rgba(217, 119, 6, 0.24);
}

.client-form-submit-preview-impact {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(217, 119, 6, 0.18);
}

.client-form-submit-preview-impact-label {
  color: #9a3412;
  font-size: 0.84em;
  font-weight: 700;
}

.client-form-submit-preview-impact-previous {
  color: #7c2d12;
  font-size: 0.84em;
}

.client-form-submit-preview-impact-action {
  justify-self: flex-start;
  border: 0;
  background: transparent;
  color: #b45309;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
  text-decoration-line: underline;
}

.client-submit-preview-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1200;
}

.client-submit-preview-modal {
  width: min(760px, 100%);
  max-height: min(88vh, 920px);
  overflow: auto;
  background: #fffaf2;
  border: 1px solid rgba(217, 119, 6, 0.24);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.22);
  padding: 24px;
}

.client-submit-preview-group + .client-submit-preview-group {
  margin-top: 18px;
}

.client-submit-preview-list {
  display: grid;
  gap: 10px;
}

.client-submit-preview-item {
  border: 1px solid rgba(217, 119, 6, 0.16);
  background: rgba(255, 247, 237, 0.86);
  border-radius: 12px;
  padding: 12px 14px;
}

.client-submit-preview-item-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.client-submit-preview-item-values {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

.client-workspace-card-footer .client-page-actions {
  margin: 0;
}

.client-workspace-v1-page {
  width: min(1080px, 100%);
  margin: 0 auto 18px;
  display: grid;
  gap: 16px;
}

.client-workspace-v1-header {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.client-workspace-v1-header h3 {
  margin: 0 0 8px;
  color: #111a3a;
  font-size: 27px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0;
}

.client-workspace-v1-back {
  text-decoration: none;
  font-size: 18px;
  font-weight: 900;
}

.client-workspace-v1-card {
  display: grid;
  gap: 14px;
  padding: 17px;
  border-color: rgba(20, 35, 80, 0.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(17, 26, 58, 0.04);
}

.client-workspace-v1-card h4 {
  margin: 0;
  color: #111a3a;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0;
}

.client-workspace-v1-overview {
  align-items: stretch;
}

.client-workspace-v1-summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.client-workspace-v1-page .client-page-summary-item {
  min-height: 58px;
  display: grid;
  gap: 5px;
  align-content: start;
  padding: 10px 12px;
  border-radius: 8px;
  border-color: rgba(20, 35, 80, 0.12);
  background: #f8faff;
}

.client-workspace-v1-page .client-page-summary-item dt,
.client-workspace-v1-field-label,
.client-workspace-v1-readonly-field dt {
  color: #66728f;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 800;
}

.client-workspace-v1-page .client-page-summary-item dd,
.client-workspace-v1-readonly-field dd {
  margin: 0;
  color: #111a3a;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.client-workspace-v1-form {
  display: grid;
  gap: 14px;
}

.client-workspace-v1-fieldset {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  border: 0;
}

.client-workspace-v1-form-card {
  min-width: 0;
  align-content: start;
}

.client-workspace-v1-form-card .client-page-two-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.client-workspace-v1-field,
.client-workspace-v1-readonly-field {
  min-width: 0;
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
}

.client-workspace-v1-field:last-child,
.client-workspace-v1-readonly-field:last-child {
  margin-bottom: 0;
}

.client-workspace-v1-field-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.client-workspace-v1-page input,
.client-workspace-v1-page select,
.client-workspace-v1-page textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid rgba(20, 35, 80, 0.16);
  border-radius: 8px;
  background: #fff;
  color: #111a3a;
  font: inherit;
  font-size: 13px;
  line-height: 1.35;
}

.client-workspace-v1-page textarea {
  min-height: 78px;
  resize: vertical;
}

.client-workspace-v1-page input:focus,
.client-workspace-v1-page select:focus,
.client-workspace-v1-page textarea:focus {
  outline: 0;
  border-color: rgba(0, 87, 231, 0.5);
  box-shadow: 0 0 0 3px rgba(0, 87, 231, 0.1);
}

.client-workspace-v1-page input:disabled,
.client-workspace-v1-page select:disabled,
.client-workspace-v1-page textarea:disabled {
  background: #f8fafc;
  color: #64748b;
  cursor: not-allowed;
}

.client-workspace-v1-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

.client-workspace-v1-check-grid-days {
  grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));
}

.client-workspace-v1-checkbox {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(20, 35, 80, 0.12);
  border-radius: 8px;
  background: #fbfcff;
  color: #111a3a;
  font-size: 12px;
  font-weight: 800;
}

.client-workspace-v1-checkbox input {
  width: 16px;
  min-height: 16px;
  margin: 0;
  padding: 0;
  border-radius: 4px;
  box-shadow: none;
}

.client-workspace-v1-readonly-field {
  padding: 10px 12px;
  border-left: 1px solid rgba(20, 35, 80, 0.12);
}

.client-workspace-v1-actions {
  justify-content: flex-end;
}

.client-workspace-v1-actions .btn,
.client-workspace-v1-page .client-page-actions .btn {
  min-height: 38px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.client-workspace-v1-page .btn:not(.btn-secondary) {
  background: #0057e7;
  border-color: #0057e7;
  box-shadow: 0 12px 24px rgba(0, 87, 231, 0.18);
}

.client-workspace-v1-page .btn-secondary {
  border-color: rgba(15, 23, 42, 0.12);
  background: #fff;
  color: #334155;
}

.client-workspace-v1-page .client-workspace-card-footer {
  margin-top: 2px;
  padding-top: 14px;
  border-color: rgba(20, 35, 80, 0.12);
}

.client-workspace-v1-page .client-form-impact-badge {
  min-height: 22px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 800;
}

@media (max-width: 1120px) {
  .client-workspace-v1-fieldset,
  .client-workspace-v1-form-card .client-page-two-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .client-workspace-v1-header {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .client-workspace-v1-header .app-status-badge {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .client-workspace-v1-summary-grid,
  .client-workspace-v1-overview {
    grid-template-columns: 1fr;
  }

  .client-workspace-v1-actions,
  .client-workspace-v1-actions .btn,
  .client-workspace-v1-page .client-page-actions .btn {
    width: 100%;
  }
}

.client-page-summary-inline {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: rgba(15, 23, 42, 0.72);
}

.client-page-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.client-page-filters input,
.client-page-filters select {
  min-width: 180px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.client-page-breadcrumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  color: rgba(15, 23, 42, 0.62);
}

.client-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.client-status-badge.tone-info {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

.client-status-badge.tone-warning {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}

.client-status-badge.tone-success {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.client-status-badge.tone-danger {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.client-status-badge.tone-neutral {
  background: rgba(15, 23, 42, 0.08);
  color: #334155;
}

@media (max-width: 720px) {
  .client-page-header,
  .client-page-list-head {
    flex-direction: column;
  }

  .client-page-filters {
    flex-direction: column;
  }
}

.client-page-header-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  flex-shrink: 0;
}

.client-page-filter-context {
  font-size: 13px;
  color: rgba(15, 23, 42, 0.62);
  font-weight: 600;
}

.btn-sm {
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 8px;
}

.provider-app-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0 14px;
}

.provider-app-nav-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.provider-app-nav-actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}

.provider-app-nav-primary-action {
  white-space: nowrap;
}

@media (max-width: 760px) {
  .provider-app-nav-actions {
    margin-left: 0;
    width: 100%;
    justify-content: flex-end;
  }
}

.provider-app-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: #0f172a;
  text-decoration: none;
  font-weight: 700;
}

.provider-app-nav-link.is-active {
  background: #0057e7;
  color: #fff;
  border-color: #0057e7;
}

.provider-onboarding-workspace {
  display: grid;
  grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.provider-onboarding-rail {
  display: grid;
  gap: 8px;
}

.provider-onboarding-rail-item {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  color: #0f172a;
  text-decoration: none;
  background: rgba(248, 250, 252, 0.78);
  font-weight: 700;
}

.provider-onboarding-rail-item small {
  color: rgba(15, 23, 42, 0.62);
  font-size: 0.78rem;
  font-weight: 600;
}

.provider-onboarding-rail-item.is-active {
  background: #0057e7;
  border-color: #0057e7;
  color: #fff;
}

.provider-onboarding-rail-item.is-active small {
  color: rgba(255, 255, 255, 0.76);
}

.provider-onboarding-rail-item.is-complete:not(.is-active) {
  border-color: rgba(34, 197, 94, 0.32);
  background: rgba(240, 253, 244, 0.7);
}

.provider-onboarding-panel {
  min-width: 0;
}

.provider-onboarding-summary {
  display: grid;
  gap: 14px;
}

.provider-onboarding-summary-intro {
  margin: 0;
  line-height: 1.6;
}

.provider-onboarding-summary-list {
  display: grid;
  gap: 10px;
}

.provider-onboarding-summary-item {
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 12px;
  background: #fff;
}

.provider-onboarding-summary-item-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.provider-onboarding-summary-hint {
  margin: 8px 0 0;
  color: rgba(15, 23, 42, 0.66);
}

.provider-onboarding-summary-actions {
  margin-top: 2px;
}

.provider-onboarding-summary-actions > div {
  margin-top: 0 !important;
}

.provider-onboarding-review {
  display: grid;
  gap: 14px;
}

.provider-onboarding-review-hero {
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.11);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.015));
}

.provider-onboarding-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.provider-onboarding-review-card {
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 12px;
  background: #fff;
}

.provider-onboarding-review-card-body {
  margin-top: 8px;
  color: rgba(15, 23, 42, 0.86);
  line-height: 1.52;
}

@media (max-width: 760px) {
  .provider-onboarding-workspace {
    grid-template-columns: 1fr;
  }

  .provider-onboarding-rail {
    grid-template-columns: 1fr;
  }
}

.provider-page-view {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.provider-page-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.provider-page-header h3 {
  margin: 0 0 4px;
}

.provider-page-muted {
  color: rgba(15, 23, 42, 0.68);
}

.provider-page-card,
.provider-inline-panel {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  padding: 16px;
}

.provider-page-card h4 {
  margin: 0 0 12px;
}

.provider-inline-panel summary {
  cursor: pointer;
  font-weight: 700;
}

.provider-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.provider-kpi-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  padding: 14px;
}

.provider-kpi-value {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}

.provider-page-two-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.provider-page-list-grid {
  display: grid;
  gap: 14px;
}

.provider-planning-column {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.provider-planning-column-list {
  max-height: min(68vh, 980px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  align-content: start;
}

@media (max-width: 900px) {
  .provider-planning-column-list {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}

.provider-page-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.provider-page-list-item {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  padding: 12px;
  background: rgba(248, 250, 252, 0.7);
}

.provider-page-list-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 6px;
}

.provider-page-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.provider-page-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 0;
}

.provider-page-summary-item {
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.8);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.provider-page-summary-item dt {
  font-weight: 700;
  color: rgba(15, 23, 42, 0.62);
  margin-bottom: 4px;
}

.provider-page-summary-item dd {
  margin: 0;
}

.provider-page-summary-inline {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: rgba(15, 23, 42, 0.72);
}

.provider-page-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.provider-page-filters input,
.provider-page-filters select,
.provider-page-filters textarea {
  min-width: 180px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.provider-revenue-view {
  gap: 18px;
}

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

.provider-revenue-kpi-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.provider-revenue-kpi-card.is-blue {
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.92), #fff 80%);
}

.provider-revenue-kpi-card.is-green {
  background: linear-gradient(180deg, rgba(240, 253, 244, 0.92), #fff 80%);
}

.provider-revenue-kpi-card.is-orange {
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.95), #fff 80%);
}

.provider-revenue-kpi-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: #2563eb;
}

.provider-revenue-kpi-card.is-green .provider-revenue-kpi-icon {
  color: #16a34a;
}

.provider-revenue-kpi-card.is-orange .provider-revenue-kpi-icon {
  color: #f97316;
}

.provider-revenue-kpi-icon svg {
  width: 24px;
  height: 24px;
}

.provider-revenue-kpi-content {
  display: grid;
  gap: 6px;
}

.provider-revenue-kpi-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(15, 23, 42, 0.58);
}

.provider-revenue-kpi-value {
  font-size: clamp(28px, 3vw, 34px);
  line-height: 1;
  font-weight: 800;
  color: #0f172a;
}

.provider-revenue-kpi-value.is-blue {
  color: #1d4ed8;
}

.provider-revenue-kpi-value.is-green {
  color: #15803d;
}

.provider-revenue-kpi-value.is-orange {
  color: #ea580c;
}

.provider-revenue-kpi-text {
  color: rgba(15, 23, 42, 0.68);
  line-height: 1.5;
}

.provider-revenue-main-grid,
.provider-revenue-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 16px;
}

.provider-revenue-panel {
  display: grid;
  gap: 16px;
}

.provider-revenue-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.provider-revenue-panel-head h4 {
  margin: 0;
}

.provider-revenue-progress-layout {
  display: grid;
  grid-template-columns: minmax(140px, 180px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.provider-revenue-donut-wrap {
  display: grid;
  place-items: center;
}

.provider-revenue-donut {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
}

.provider-revenue-donut::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: #fff;
}

.provider-revenue-donut-center {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  gap: 2px;
}

.provider-revenue-donut-center strong {
  font-size: 20px;
  line-height: 1;
}

.provider-revenue-donut-center span {
  color: rgba(15, 23, 42, 0.62);
  font-size: 13px;
}

.provider-revenue-metric-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.provider-revenue-metric-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.provider-revenue-metric-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #d4dce9;
}

.provider-revenue-metric-dot.is-green {
  background: #22c55e;
}

.provider-revenue-metric-label {
  color: rgba(15, 23, 42, 0.72);
}

.provider-revenue-metric-value {
  font-weight: 700;
  text-align: right;
}

.provider-revenue-divider {
  height: 1px;
  background: rgba(15, 23, 42, 0.08);
  margin: 12px 0;
}

.provider-revenue-info-note {
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(37, 99, 235, 0.06);
  color: #33527f;
  line-height: 1.5;
}

.provider-revenue-adjustment-list,
.provider-revenue-event-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
}

.provider-revenue-adjustment-item,
.provider-revenue-event-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.provider-revenue-event-item {
  grid-template-columns: 1fr;
  align-items: start;
}

.provider-revenue-adjustment-item:first-child,
.provider-revenue-event-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.provider-revenue-adjustment-icon,
.provider-revenue-event-badge {
  min-width: 28px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}

.provider-revenue-adjustment-icon.is-red,
.provider-revenue-event-badge.is-red {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.provider-revenue-adjustment-icon.is-amber,
.provider-revenue-event-badge.is-amber {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
}

.provider-revenue-adjustment-icon.is-green,
.provider-revenue-event-badge.is-green {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}

.provider-revenue-adjustment-icon.is-blue,
.provider-revenue-event-badge.is-blue {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
}

.provider-revenue-adjustment-copy,
.provider-revenue-event-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.provider-revenue-adjustment-title,
.provider-revenue-empty-title {
  font-weight: 700;
}

.provider-revenue-adjustment-subtitle,
.provider-revenue-empty-text {
  color: rgba(15, 23, 42, 0.58);
  font-size: 13px;
  line-height: 1.5;
}

.provider-revenue-adjustment-value {
  font-weight: 700;
  text-align: right;
}

.provider-revenue-inline-note {
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.04);
  color: rgba(15, 23, 42, 0.78);
}

.provider-revenue-adjustment-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  font-weight: 800;
}

.provider-revenue-adjustment-total .amount {
  color: #ea580c;
}

.provider-revenue-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.provider-revenue-tab {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 0 8px;
  border-bottom: 2px solid transparent;
  color: rgba(15, 23, 42, 0.56);
  font-weight: 700;
  text-decoration: none;
}

.provider-revenue-tab.is-active {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

.provider-revenue-event-head {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.provider-revenue-empty-state {
  min-height: 190px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.9), rgba(255, 255, 255, 1));
  display: grid;
  place-items: center;
  text-align: center;
  padding: 22px;
}

.provider-revenue-empty-inner {
  display: grid;
  gap: 10px;
  justify-items: center;
  max-width: 340px;
}

.provider-revenue-empty-icon,
.provider-revenue-payout-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
}

.provider-revenue-empty-icon svg,
.provider-revenue-payout-icon svg {
  width: 22px;
  height: 22px;
}

.provider-revenue-payout-body {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.provider-revenue-payout-copy {
  display: grid;
  gap: 8px;
}

.provider-revenue-payout-copy strong {
  font-size: 22px;
  line-height: 1.1;
}

.provider-revenue-payout-eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(15, 23, 42, 0.56);
}

.provider-revenue-footer-note {
  display: flex;
  justify-content: center;
  gap: 8px;
  align-items: center;
  text-align: center;
  color: rgba(15, 23, 42, 0.6);
  font-size: 13px;
}

.provider-revenue-footer-note svg {
  width: 16px;
  height: 16px;
  color: rgba(15, 23, 42, 0.48);
}

@media (max-width: 1100px) {
  .provider-revenue-kpi-grid,
  .provider-revenue-main-grid,
  .provider-revenue-bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .provider-revenue-kpi-card,
  .provider-revenue-payout-body {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .provider-revenue-progress-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .provider-revenue-adjustment-item,
  .provider-revenue-metric-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .provider-revenue-event-item {
    grid-template-columns: 1fr;
  }

  .provider-revenue-adjustment-value,
  .provider-revenue-metric-value {
    grid-column: 2;
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .provider-revenue-kpi-card {
    grid-template-columns: 1fr;
  }

  .provider-revenue-kpi-icon {
    width: 48px;
    height: 48px;
  }
}

.provider-page-breadcrumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  color: rgba(15, 23, 42, 0.62);
}

.provider-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.provider-status-badge.tone-info {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

.provider-status-badge.tone-warning {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}

.provider-status-badge.tone-success {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.provider-status-badge.tone-danger {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.provider-status-badge.tone-neutral {
  background: rgba(15, 23, 42, 0.08);
  color: #334155;
}

@media (max-width: 720px) {
  .provider-page-header,
  .provider-page-list-head {
    flex-direction: column;
  }

  .provider-page-filters {
    flex-direction: column;
  }
}

.admin-app-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0 14px;
  align-items: center;
}

.admin-app-nav-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-app-nav-actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
}

.admin-app-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: #0f172a;
  text-decoration: none;
  font-weight: 700;
}

.admin-app-nav-link.is-active {
  background: #0057e7;
  color: #fff;
  border-color: #0057e7;
}

@media (max-width: 760px) {
  .admin-app-nav-actions {
    margin-left: 0;
    width: 100%;
    justify-content: flex-end;
  }
}

.admin-page-view {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

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

.admin-page-header h3 {
  margin: 0 0 4px;
}

.admin-page-muted {
  color: rgba(15, 23, 42, 0.68);
}

.admin-page-card,
.admin-inline-panel {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  padding: 16px;
}

.admin-page-card h4 {
  margin: 0 0 12px;
}

.admin-inline-panel summary {
  cursor: pointer;
  font-weight: 700;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.admin-kpi-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  padding: 14px;
}

.admin-kpi-value {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}

.admin-page-two-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

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

.admin-page-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.admin-page-list-item {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  padding: 12px;
  background: rgba(248, 250, 252, 0.7);
}

.admin-page-list-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 6px;
}

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

.admin-page-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 0;
}

.admin-page-summary-item {
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.8);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.admin-page-summary-item dt {
  font-weight: 700;
  color: rgba(15, 23, 42, 0.62);
  margin-bottom: 4px;
}

.admin-page-summary-item dd {
  margin: 0;
}

.admin-page-summary-inline {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: rgba(15, 23, 42, 0.72);
}

.admin-page-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-page-filters input,
.admin-page-filters select,
.admin-page-filters textarea {
  min-width: 180px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

/* LOT D2 — formulaire de curation du profil public prestataire (vrai formulaire inline). */
.admin-curation-form {
  display: flex;
  flex-direction: column;
}
.admin-curation-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}
.admin-curation-field:first-child {
  border-top: none;
}
.admin-curation-label {
  font-size: 14px;
  font-weight: 500;
  color: #0f172a;
}
.admin-curation-field input[type="number"] {
  width: 120px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
}
.admin-curation-field select {
  width: 150px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
}
.admin-curation-trace {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
  font-size: 12px;
}
.admin-curation-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex: 0 0 auto;
}
.admin-curation-toggle input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.admin-curation-toggle-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.5);
  transition: background 0.15s ease;
}
.admin-curation-toggle-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s ease;
}
.admin-curation-toggle input:checked + .admin-curation-toggle-track {
  background: #16a34a;
  border-color: transparent;
}
.admin-curation-toggle input:checked + .admin-curation-toggle-track::after {
  transform: translateX(20px);
}

.admin-page-breadcrumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  color: rgba(15, 23, 42, 0.62);
}

.admin-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.admin-status-badge.tone-info {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

.admin-status-badge.tone-warning {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}

.admin-status-badge.tone-success {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.admin-status-badge.tone-danger {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.admin-status-badge.tone-neutral {
  background: rgba(15, 23, 42, 0.08);
  color: #334155;
}

@media (max-width: 720px) {
  .admin-page-header,
  .admin-page-list-head {
    flex-direction: column;
  }

  .admin-page-filters {
    flex-direction: column;
  }
}

/* ================================================================
   LOT 10 — UI Grammar: unified design tokens & transverse patterns
   ================================================================ */

/* -- Spacing tokens (applied via gap/padding on containers) --
   xs  = 6px    sm  = 10px    md  = 14px
   lg  = 18px   xl  = 24px    2xl = 32px
*/

/* -- Typography hierarchy -- */
.app-page-title,
.client-page-header h3,
.provider-page-header h3 {
  margin: 0;
  font-size: clamp(1.25rem, 1.65vw, 1.55rem);
  font-weight: 800;
  line-height: 1.2;
  color: #0f172a;
}

.app-section-title,
.client-page-card > h4,
.provider-page-card > h4 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: #0f172a;
}

.app-eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.54);
}

.app-meta-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.54);
}

/* -- Action hierarchy -- */
.app-action-group,
.client-page-actions,
.provider-page-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.app-action-group .btn:first-child,
.client-page-actions .btn:first-child,
.provider-page-actions .btn:first-child {
  /* Primary action is always the first non-secondary button */
}

.btn.btn-tertiary {
  background: transparent;
  color: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(15, 23, 42, 0.12);
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.92rem;
}

.btn.btn-tertiary:hover {
  background: rgba(15, 23, 42, 0.04);
  color: #0f172a;
}

/* -- Unified situation card (board priority block) -- */
.app-situation-card,
.client-home-situation-card,
.provider-home-situation-card {
  display: grid;
  gap: 18px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.app-situation-eyebrow,
.client-home-situation-eyebrow,
.provider-home-situation-eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.54);
}

.app-situation-title,
.client-home-situation-title,
.provider-home-situation-title {
  margin: 0;
  font-size: clamp(1.18rem, 1.55vw, 1.48rem);
  line-height: 1.2;
}

.app-situation-grid,
.client-home-situation-grid,
.provider-home-situation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.app-situation-line,
.client-home-situation-line,
.provider-home-situation-line {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.provider-onboarding-guide {
  display: grid;
  gap: 16px;
  padding: 18px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.provider-onboarding-guide-header,
.provider-onboarding-guide-support {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.provider-onboarding-guide-eyebrow {
  display: inline-flex;
  margin-bottom: 4px;
  color: rgba(15, 23, 42, 0.56);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.provider-onboarding-guide h4,
.provider-onboarding-guide h5,
.provider-onboarding-guide p {
  margin: 0;
}

.provider-onboarding-guide-status {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.1);
  color: #166534;
  font-size: 12px;
  font-weight: 800;
}

.provider-onboarding-guide-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.provider-onboarding-guide-step {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.82);
  font-size: 0.92rem;
  font-weight: 700;
}

.provider-onboarding-guide-step-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.28);
  flex: 0 0 auto;
}

.provider-onboarding-guide-step.is-done .provider-onboarding-guide-step-dot {
  background: #16a34a;
}

.provider-onboarding-guide-step.is-current .provider-onboarding-guide-step-dot {
  background: #2563eb;
}

.provider-onboarding-guide-next {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 10px;
  background: rgba(239, 246, 255, 0.72);
  border: 1px solid rgba(37, 99, 235, 0.16);
}

.provider-onboarding-guide-next > span,
.provider-onboarding-guide-block h5,
.provider-onboarding-guide-support h5 {
  color: rgba(15, 23, 42, 0.6);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.provider-onboarding-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.provider-onboarding-guide-block {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.72);
}

.provider-onboarding-guide-block--wide {
  grid-column: 1 / -1;
}

.provider-onboarding-guide-block ul,
.provider-onboarding-guide-checklist {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.provider-onboarding-guide-empty-states {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.provider-onboarding-guide-empty-state {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
}

.provider-onboarding-guide-empty-state.is-active {
  border-color: rgba(37, 99, 235, 0.24);
  background: rgba(239, 246, 255, 0.72);
}

.provider-onboarding-guide-empty-state span,
.provider-onboarding-guide-support p {
  color: rgba(15, 23, 42, 0.68);
}

.provider-onboarding-guide-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

/* -- Unified work card (opportunity/mission card) -- */
.app-work-card,
.provider-work-card,
.client-request-card {
  display: grid;
  gap: 14px;
}

.app-work-card-header,
.provider-work-card-header {
  align-items: flex-start;
}

.app-work-card-meta,
.provider-work-card-meta,
.client-request-card-meta {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.app-work-card-meta > div,
.provider-work-card-meta > div,
.client-request-card-meta > div {
  display: grid;
  gap: 4px;
}

.provider-work-card-rhythm,
.client-service-rhythm {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.provider-work-card-rhythm > div,
.client-service-rhythm > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.72);
}

.client-service-rhythm span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.54);
}

.provider-work-card-rhythm strong,
.client-service-rhythm strong {
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.coflex-scroll-panel {
  min-height: 0;
}

.coflex-scroll-list {
  max-height: min(58vh, 640px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}

@media (max-width: 900px) {
  .coflex-scroll-list {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}

.app-work-card-label,
.provider-work-card-label,
.client-home-situation-label,
.client-request-card-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.54);
}

/* -- Unified card section (subsection within a card) -- */
.app-card-section,
.provider-work-card-section {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(248, 250, 252, 0.78);
}

.app-card-section-title,
.provider-work-card-section-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.56);
}

/* -- Unified signals/tags -- */
.app-signal-row,
.provider-work-card-signals {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.app-signal,
.provider-work-card-signal {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.06);
  color: #1f2937;
}

.app-signal.tone-info,
.provider-work-card-signal.tone-info {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

.app-signal.tone-warning,
.provider-work-card-signal.tone-warning {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
}

.app-signal.tone-success {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.app-signal.tone-danger {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

/* -- Unified hint block -- */
.app-hint,
.provider-work-card-hint {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.72);
  color: rgba(15, 23, 42, 0.68);
}

/* -- Snapshot chips (compact card listing) -- */
.provider-work-card-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.provider-work-card-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.84rem;
  line-height: 1.2;
  font-weight: 500;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: rgba(15, 23, 42, 0.78);
  white-space: nowrap;
}

/* -- Unified KPI card -- */
.app-kpi-card,
.client-kpi-card,
.provider-kpi-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.app-kpi-value,
.client-kpi-value,
.provider-kpi-value {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
  color: #0f172a;
}

/* -- Unified info card (contractual, non-KPI) -- */
.app-info-card,
.client-billing-contract-card {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.95), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

/* -- Unified inline action link -- */
.app-inline-action,
.client-page-inline-action,
.provider-page-inline-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0f172a;
  font-weight: 700;
  text-decoration: none;
}

.app-inline-action:hover,
.app-inline-action:focus-visible,
.client-page-inline-action:hover,
.client-page-inline-action:focus-visible,
.provider-page-inline-action:hover,
.provider-page-inline-action:focus-visible {
  opacity: 0.82;
}

/* -- Unified empty/error state -- */
.app-empty-state,
.app-error-state {
  display: grid;
  gap: 10px;
  padding: 24px 18px;
  text-align: center;
}

.app-empty-state h3,
.app-error-state h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.app-empty-state .app-page-muted,
.app-error-state .app-page-muted {
  margin: 0;
}

/* -- Replacement form styling (remove inline styles from JS) -- */
.provider-replacement-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.provider-replacement-full {
  grid-column: 1 / -1;
}

.provider-replacement-form label {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.provider-replacement-form label > span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.54);
}

.provider-replacement-form input,
.provider-replacement-form select,
.provider-replacement-form textarea {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #fff;
  padding: 10px 12px;
  font: inherit;
  color: #0f172a;
}

.provider-replacement-form textarea {
  min-height: 78px;
  resize: vertical;
}

.provider-replacement-form .provider-page-actions {
  margin-top: 4px;
}

.provider-replacement-actions {
  grid-column: 1 / -1;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
}

.provider-planning-card {
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.provider-planning-card-title {
  margin: 0 0 4px;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.provider-planning-card-meta {
  margin-bottom: 12px;
}

.provider-planning-card-actions .provider-page-actions {
  margin-top: 0;
}

.provider-planning-primary-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.provider-planning-primary-actions .btn {
  min-height: 48px;
  border-radius: 10px;
  border: 1px solid transparent;
}

.provider-planning-primary-actions .btn:first-child {
  background: linear-gradient(135deg, #0057e7, #0045b8);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 87, 231, 0.25);
}

.provider-planning-primary-actions .btn:first-child:hover,
.provider-planning-primary-actions .btn:first-child:focus-visible {
  background: linear-gradient(135deg, #004fda, #003ea5);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 87, 231, 0.3);
}

.provider-planning-primary-actions .provider-replacement-toggle {
  background: #ecf7fb;
  border-color: #b9deea;
  color: #2a4e5d;
}

.provider-planning-replacement-panel {
  margin-top: 12px;
  border: 1px solid #f2d1a2;
  border-radius: 12px;
  background: linear-gradient(180deg, #fffaf3 0%, #fffdf9 100%);
  padding: 0;
  overflow: hidden;
}

.provider-planning-replacement-panel[hidden] {
  display: none;
}

.provider-planning-replacement-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 12px;
  background: #fff2db;
}

.provider-planning-replacement-title {
  font-size: 13px;
  font-weight: 800;
  color: #6f4300;
  letter-spacing: 0.02em;
}

.provider-planning-replacement-subtitle {
  font-size: 12px;
  font-weight: 700;
  color: #946311;
}

.provider-planning-replacement-panel .provider-replacement-form {
  padding: 12px;
  margin-top: 0;
}

@media (max-width: 900px) {
  .provider-replacement-form {
    grid-template-columns: 1fr;
  }

  .provider-replacement-full {
    grid-column: auto;
  }

  .provider-replacement-actions {
    justify-content: stretch;
  }

  .provider-planning-primary-actions {
    align-items: stretch;
  }
}

/* -- Proposal legacy inline form styling -- */
.provider-proposal-inline-form {
  display: grid;
  gap: 10px;
}

.provider-proposal-inline-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.provider-proposal-inline-form input,
.provider-proposal-inline-form textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #fff;
  padding: 10px 12px;
  font: inherit;
  color: #0f172a;
}

.provider-proposal-inline-form textarea {
  min-height: 60px;
  resize: vertical;
}

.provider-proposal-inline-form .provider-page-actions {
  margin-top: 4px;
}

/* -- Brief/access panel styling -- */
.app-brief-panel {
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
}

.app-brief-panel-title {
  font-weight: 800;
  margin-bottom: 6px;
  color: #0f172a;
}

.app-brief-panel-body {
  line-height: 1.45;
  color: rgba(15, 23, 42, 0.68);
}

/* -- Reconfirm block styling -- */
.app-reconfirm-block {
  padding: 14px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 14px;
  background: rgba(255, 247, 237, 0.85);
}

.app-reconfirm-block-title {
  font-weight: 900;
  margin-bottom: 6px;
  color: #92400e;
}

.app-reconfirm-block-body {
  line-height: 1.35;
  color: rgba(15, 23, 42, 0.72);
}

.app-reconfirm-block .provider-page-actions {
  margin-top: 10px;
}

.app-reconfirm-diff-summary {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.app-reconfirm-diff-group {
  display: grid;
  gap: 8px;
}

.app-reconfirm-diff-group-title {
  font-weight: 800;
  color: #7c2d12;
}

.app-reconfirm-diff-list {
  display: grid;
  gap: 8px;
}

.app-reconfirm-diff-item {
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  padding: 10px 12px;
}

.app-reconfirm-diff-item-title {
  font-weight: 700;
  color: #111827;
}

.app-reconfirm-diff-item-block {
  color: rgba(15, 23, 42, 0.6);
  font-size: 0.88rem;
  margin-top: 2px;
}

.app-reconfirm-diff-item-values {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  color: rgba(15, 23, 42, 0.78);
}

/* -- Pricing preview -- */
.app-pricing-preview {
  margin-top: 8px;
  line-height: 1.45;
  color: rgba(15, 23, 42, 0.68);
  font-size: 0.95rem;
}

/* ================================================================
   End LOT 10 UI Grammar
   ================================================================ */

/* Front migration transverse consolidation */

.app-page-view,
.client-page-view,
.provider-page-view,
.admin-page-view {
  display: grid;
  gap: 20px;
}

.app-page-header,
.client-page-header,
.provider-page-header,
.admin-page-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.app-page-muted,
.client-page-muted,
.provider-page-muted,
.admin-page-muted {
  color: rgba(15, 23, 42, 0.68);
}

.app-page-card,
.client-page-card,
.provider-page-card,
.admin-page-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.app-kpi-grid,
.client-kpi-grid,
.provider-kpi-grid,
.admin-kpi-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.app-page-two-columns,
.client-page-two-columns,
.provider-page-two-columns,
.admin-page-two-columns {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.app-page-list-grid,
.client-page-list-grid,
.provider-page-list-grid,
.admin-page-list-grid {
  display: grid;
  gap: 14px;
}

.app-page-list,
.client-page-list,
.provider-page-list,
.admin-page-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.app-page-list-item,
.client-page-list-item,
.provider-page-list-item,
.admin-page-list-item {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
}

.app-page-list-head,
.client-page-list-head,
.provider-page-list-head,
.admin-page-list-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.client-page-list-head h4 {
  margin: 0;
}

.app-page-actions,
.client-page-actions,
.provider-page-actions,
.admin-page-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.app-page-summary-grid,
.client-page-summary-grid,
.provider-page-summary-grid,
.admin-page-summary-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.app-page-summary-inline,
.client-page-summary-inline,
.provider-page-summary-inline,
.admin-page-summary-inline {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: rgba(15, 23, 42, 0.72);
}

.app-page-filters,
.client-page-filters,
.provider-page-filters,
.admin-page-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.app-page-breadcrumbs,
.client-page-breadcrumbs,
.provider-page-breadcrumbs,
.admin-page-breadcrumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  color: rgba(15, 23, 42, 0.62);
}

.app-shell-nav,
.client-app-nav,
.provider-app-nav,
.admin-app-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0;
}

.app-shell-nav-link,
.client-app-nav-link,
.provider-app-nav-link,
.admin-app-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(248, 250, 252, 0.9);
  color: #0f172a;
  text-decoration: none;
  font-weight: 700;
}

.app-shell-nav-link.is-active,
.client-app-nav-link.is-active,
.provider-app-nav-link.is-active,
.admin-app-nav-link.is-active {
  background: #0057e7;
  color: #fff;
  border-color: #0057e7;
}

/* client-home-situation / provider-home-situation: unified in LOT 10 UI Grammar above */

.client-kpi-card-action:hover,
.client-kpi-card-action:focus-visible {
  opacity: 0.82;
}

.client-kpi-card-action {
  display: block;
  color: inherit;
  text-decoration: none;
}

.client-kpi-card-action.is-active {
  border-color: rgba(15, 23, 42, 0.48);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.22);
}

.client-requests-v1-page,
.client-requests-v1-column,
.client-requests-v1-list,
.client-requests-v1-stage-list,
.client-request-detail-v1-page,
.client-request-detail-v1-main-column,
.client-request-detail-v1-side-column,
.client-request-detail-v1-steps,
.client-request-detail-v1-doc-grid,
.client-request-detail-v1-tab-panel {
  display: grid;
  gap: 14px;
}

.client-requests-v1-page {
  gap: 18px;
}

.client-services-v1-page {
  gap: 18px;
}

.client-request-detail-v1-page {
  width: min(1080px, 100%);
  margin: 0 auto 18px;
  gap: 16px;
}

.client-requests-v1-header h3,
.client-services-v1-header h3 {
  margin: 0 0 7px;
  color: #0f172a;
  font-size: 34px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0;
}

.client-request-detail-v1-header h3 {
  margin: 0 0 8px;
  color: #111a3a;
  font-size: 27px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0;
}

.client-requests-v1-header-actions,
.client-services-v1-header-actions,
.client-request-detail-v1-header-actions,
.client-request-detail-v1-band-actions,
.client-request-detail-v1-action-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.client-requests-v1-primary-action,
.client-requests-v1-secondary-action,
.client-request-detail-v1-action,
.client-request-detail-v1-action-secondary {
  box-sizing: border-box;
  min-height: 44px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.client-requests-v1-primary-action,
.client-request-detail-v1-action {
  border: 1px solid #0057e7;
  background: #0057e7;
  color: #fff;
  box-shadow: 0 12px 24px rgba(0, 87, 231, 0.18);
}

.client-requests-v1-primary-action:hover,
.client-request-detail-v1-action:hover {
  background: #0045b8;
  color: #fff;
}

.client-requests-v1-secondary-action,
.client-request-detail-v1-action-secondary {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: #334155;
}

.client-requests-v1-secondary-action:hover,
.client-request-detail-v1-action-secondary:hover {
  background: #fff;
  border-color: rgba(0, 87, 231, 0.28);
  color: #0057e7;
}

.client-requests-v1-alert {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px 17px;
  border: 1px solid rgba(217, 119, 6, 0.26);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.82), rgba(255, 255, 255, 0.98));
}

.client-requests-v1-alert-icon,
.client-request-detail-v1-action-band-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #d97706;
  background: rgba(217, 119, 6, 0.1);
}

.client-requests-v1-alert h4,
.client-requests-v1-panel h4,
.client-request-detail-v1-action-band h4,
.client-request-detail-v1-card h4 {
  margin: 0;
  color: #111a3a;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0;
}

.client-requests-v1-alert-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.client-requests-v1-alert-list li {
  color: #172554;
  font-size: 13px;
  line-height: 1.42;
}

.client-requests-v1-kpi-grid,
.client-services-v1-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.client-requests-v1-kpi,
.client-services-v1-kpi {
  min-height: 96px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 15px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.035);
}

.client-requests-v1-kpi-icon,
.client-requests-v1-row-icon,
.client-services-v1-kpi-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.client-requests-v1-item .client-requests-v1-row-icon {
  width: 36px;
  height: 36px;
}

.client-requests-v1-kpi-icon svg,
.client-requests-v1-row-icon svg,
.client-services-v1-kpi-icon svg,
.client-requests-v1-primary-action svg,
.client-requests-v1-secondary-action svg,
.client-request-detail-v1-service-pill svg,
.client-request-detail-v1-action-band-icon svg,
.client-request-detail-v1-doc-icon svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.client-requests-v1-kpi.is-blue .client-requests-v1-kpi-icon,
.client-requests-v1-row-icon.is-blue,
.client-services-v1-kpi.is-blue .client-services-v1-kpi-icon {
  background: rgba(0, 87, 231, 0.1);
  color: #0057e7;
}

.client-requests-v1-kpi.is-green .client-requests-v1-kpi-icon,
.client-requests-v1-row-icon.is-green,
.client-services-v1-kpi.is-green .client-services-v1-kpi-icon {
  background: rgba(22, 163, 74, 0.12);
  color: #16a34a;
}

.client-requests-v1-kpi.is-orange .client-requests-v1-kpi-icon,
.client-requests-v1-row-icon.is-orange,
.client-services-v1-kpi.is-orange .client-services-v1-kpi-icon {
  background: rgba(217, 119, 6, 0.14);
  color: #d97706;
}

.client-requests-v1-kpi.is-violet .client-requests-v1-kpi-icon,
.client-requests-v1-row-icon.is-violet,
.client-services-v1-kpi.is-violet .client-services-v1-kpi-icon {
  background: rgba(124, 58, 237, 0.12);
  color: #7c3aed;
}

.client-services-v1-kpi.is-neutral .client-services-v1-kpi-icon {
  background: rgba(100, 116, 139, 0.12);
  color: #64748b;
}

.client-requests-v1-kpi-label,
.client-services-v1-kpi-label {
  display: block;
  margin-bottom: 7px;
  color: #172554;
  font-size: 12px;
  font-weight: 800;
}

.client-requests-v1-kpi-value,
.client-services-v1-kpi-value {
  display: block;
  margin-bottom: 7px;
  color: #0f172a;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0;
}

.client-requests-v1-muted,
.client-requests-v1-kpi-meta,
.client-services-v1-muted,
.client-services-v1-kpi-meta {
  color: rgba(15, 23, 42, 0.66);
  font-size: 13px;
  line-height: 1.42;
}

.client-requests-v1-main,
.client-services-v1-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 280px);
  gap: 12px;
  align-items: start;
}

.client-requests-v1-main > *,
.client-services-v1-main > *,
.client-services-v1-planning-layout > * {
  min-width: 0;
}

.client-page-card.client-requests-v1-panel,
.client-page-card.client-services-v1-panel,
.client-page-card.client-request-detail-v1-card,
.client-proposal-panel.client-request-detail-v1-card,
.client-request-detail-v1-page .client-proposal-panel,
.client-request-detail-v1-page .client-proposal-entry {
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(17, 26, 58, 0.04);
}

.client-page-card.client-request-detail-v1-card,
.client-request-detail-v1-page .client-proposal-panel {
  display: grid;
  gap: 14px;
  padding: 17px;
  border-color: rgba(20, 35, 80, 0.12);
}

.client-requests-v1-panel-head,
.client-services-v1-panel-head,
.client-request-detail-v1-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.client-requests-v1-list {
  gap: 10px;
}

.client-services-v1-list,
.client-services-v1-side,
.client-services-v1-activity-list {
  display: grid;
  gap: 10px;
}

.client-requests-v1-item {
  display: grid;
  grid-template-columns: 36px minmax(180px, 260px) minmax(300px, 1fr) minmax(136px, 172px) 22px;
  gap: 8px;
  align-items: center;
  padding: 11px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.client-services-v1-table,
.client-services-v1-title-group,
.client-services-v1-deadline,
.client-services-v1-overview,
.client-services-v1-activities,
.client-services-v1-planning-panel,
.client-services-v1-planning-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.client-services-v1-view-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 4px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 10px;
  background: #f8fafc;
}

.client-services-v1-view-tab {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-radius: 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.client-services-v1-view-tab.is-active {
  background: #0057e7;
  color: #fff;
  box-shadow: 0 10px 20px rgba(0, 87, 231, 0.16);
}

.client-services-v1-planning-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 280px);
  gap: 12px;
  align-items: start;
}

.client-services-v1-planning-count,
.client-services-v1-planning-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  background: rgba(0, 87, 231, 0.08);
  color: #0057e7;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.client-services-v1-next-planning {
  padding: 10px;
  border: 1px solid rgba(0, 87, 231, 0.14);
  border-radius: 8px;
  background: rgba(0, 87, 231, 0.04);
}

.client-services-v1-planning-item {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) minmax(84px, 0.32fr) auto 36px;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.client-services-v1-planning-item:first-child,
.client-services-v1-planning-item.is-next {
  border-top: 0;
}

.client-services-v1-planning-main,
.client-services-v1-planning-time {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.client-services-v1-planning-main strong {
  color: #0f172a;
  font-size: 15px;
  line-height: 1.25;
}

.client-services-v1-planning-main span,
.client-services-v1-planning-main small,
.client-services-v1-planning-time small {
  color: rgba(15, 23, 42, 0.58);
  font-size: 12px;
  font-weight: 700;
}

.client-services-v1-planning-time strong {
  color: #0f172a;
  font-size: 14px;
}

.client-services-v1-table-head,
.client-services-v1-item {
  display: grid;
  grid-template-columns: minmax(140px, 1.08fr) minmax(76px, 0.32fr) minmax(128px, 0.74fr) minmax(108px, 0.5fr) minmax(96px, 0.4fr);
  gap: 7px;
  align-items: center;
}

.client-services-v1-table-head {
  padding: 0 14px 2px;
  color: rgba(15, 23, 42, 0.52);
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
}

.client-services-v1-item {
  padding: 11px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 8px;
  background: #fff;
}

.client-services-v1-item:hover {
  border-color: rgba(0, 87, 231, 0.22);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}
@container (max-width: 900px) {
  .client-requests-v1-main,
  .client-services-v1-main,
  .client-services-v1-planning-layout {
    grid-template-columns: 1fr;
  }
}
@container (max-width: 920px) {
  .client-requests-v1-item,
  .client-services-v1-table-head,
  .client-services-v1-item,
  .client-services-v1-planning-item,
  .client-requests-v1-meta-grid {
    grid-template-columns: 1fr;
  }

  .client-services-v1-table-head {
    display: none;
  }

  .client-services-v1-actions,
  .client-services-v1-planning-time,
  .client-services-v1-planning-item .client-services-v1-row-action {
    justify-self: start;
    justify-content: flex-start;
  }
}

.client-services-v1-title-line {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  min-width: 0;
}

.client-services-v1-title-group strong,
.client-services-v1-activity strong {
  color: #0f172a;
  font-size: 16px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.client-services-v1-title-group > span,
.client-services-v1-activity small {
  color: rgba(15, 23, 42, 0.58);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.client-services-v1-status {
  min-width: 0;
}

.client-services-v1-deadline strong {
  color: #0f172a;
  font-size: 14px;
  line-height: 1.3;
}

.client-services-v1-meta-label {
  color: rgba(15, 23, 42, 0.52);
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
}

.client-services-v1-frequency-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}

.client-services-v1-frequency-list span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(0, 87, 231, 0.07);
  color: #172554;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.client-services-v1-site {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
  color: rgba(15, 23, 42, 0.72);
  font-size: 13px;
  line-height: 1.35;
}

.client-services-v1-site span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.client-services-v1-site-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 87, 231, 0.1);
  color: #0057e7;
}

.client-services-v1-site-icon svg,
.client-services-v1-row-action svg,
.client-services-v1-icon-action svg,
.client-services-v1-assistance-action svg,
.client-services-v1-activity-icon svg {
  width: 16px;
  height: 16px;
}

.client-services-v1-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
}

.client-services-v1-row-action,
.client-services-v1-icon-action {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 87, 231, 0.18);
  border-radius: 8px;
  background: #fff;
  color: #0057e7;
  text-decoration: none;
}

.client-services-v1-icon-action {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.client-services-v1-assistance-action {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  padding: 0 10px;
  border: 1px solid rgba(0, 87, 231, 0.18);
  border-radius: 8px;
  background: #fff;
  color: #0057e7;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
  max-width: 100px;
}

.client-services-v1-assistance-action span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.client-services-v1-row-action:hover,
.client-services-v1-icon-action:hover,
.client-services-v1-assistance-action:hover {
  color: #0057e7;
  background: rgba(0, 87, 231, 0.08);
  border-color: rgba(0, 87, 231, 0.34);
}

.client-services-v1-row-action:focus-visible,
.client-services-v1-icon-action:focus-visible,
.client-services-v1-assistance-action:focus-visible {
  outline: 3px solid rgba(0, 87, 231, 0.22);
  outline-offset: 2px;
}

.client-services-v1-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef2f7;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.client-services-v1-chip.is-success {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.client-services-v1-chip.is-blue,
.client-services-v1-chip.is-info {
  background: rgba(0, 87, 231, 0.1);
  color: #0057e7;
}

.client-services-v1-chip.is-warning,
.client-services-v1-chip.is-orange {
  background: rgba(217, 119, 6, 0.14);
  color: #d97706;
}

.client-services-v1-donut-wrap {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 6px 0;
}

.client-services-v1-donut {
  width: 120px;
  aspect-ratio: 1;
  border-radius: 50%;
  position: relative;
}

.client-services-v1-donut::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.client-services-v1-donut-wrap strong {
  color: #0f172a;
  font-size: 16px;
}

.client-services-v1-segments {
  display: grid;
  gap: 8px;
}

.client-services-v1-segment,
.client-services-v1-activity {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.client-services-v1-segment {
  padding: 8px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  color: rgba(15, 23, 42, 0.68);
  font-size: 13px;
}

.client-services-v1-segment strong {
  color: #0f172a;
}

.client-services-v1-segment span::before {
  content: "";
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 50%;
  background: #64748b;
}

.client-services-v1-segment.is-green span::before { background: #16a34a; }
.client-services-v1-segment.is-orange span::before { background: #d97706; }
.client-services-v1-segment.is-blue span::before { background: #0057e7; }

.client-services-v1-activity {
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  padding: 10px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.client-services-v1-activity:first-child {
  border-top: 0;
}

.client-services-v1-activity-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 87, 231, 0.1);
  color: #0057e7;
}

.client-services-v1-activity-icon.is-success {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.client-services-v1-activity-icon.is-warning,
.client-services-v1-activity-icon.is-orange {
  background: rgba(217, 119, 6, 0.14);
  color: #d97706;
}

.client-services-v1-empty {
  padding: 18px;
  border: 1px dashed rgba(15, 23, 42, 0.16);
  border-radius: 8px;
  background: #f8fafc;
}

.client-service-detail-v1-page {
  width: min(1120px, 100%);
  margin: 0 auto 18px;
  display: grid;
  gap: 16px;
}

.client-service-detail-v1-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.client-service-detail-v1-backline {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.client-service-detail-v1-back {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  color: #334155;
  background: #fff;
  text-decoration: none;
}

.client-service-detail-v1-header h3 {
  margin: 0 0 8px;
  color: #111a3a;
  font-size: 34px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.client-service-detail-v1-subline {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  color: #334155;
  font-size: 14px;
  line-height: 1.45;
}

.client-service-detail-v1-pin,
.client-service-detail-v1-action-icon,
.client-service-detail-v1-status-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
}

.client-service-detail-v1-pin {
  width: 30px;
  height: 30px;
  background: rgba(0, 87, 231, 0.1);
  color: #0057e7;
}

.client-service-detail-v1-header-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.client-service-detail-v1-primary-action,
.client-service-detail-v1-secondary-action {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.client-service-detail-v1-primary-action {
  border: 1px solid #0057e7;
  background: #0057e7;
  color: #fff;
  box-shadow: 0 12px 24px rgba(0, 87, 231, 0.18);
}

.client-service-detail-v1-primary-action:hover {
  background: #0045b8;
  color: #fff;
}

.client-service-detail-v1-secondary-action {
  border: 1px solid #0057e7;
  background: #0057e7;
  color: #fff;
  box-shadow: 0 12px 24px rgba(0, 87, 231, 0.18);
}

.client-service-detail-v1-secondary-action:hover {
  background: #0045b8;
  color: #fff;
}

.client-service-detail-v1-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef2f7;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.client-service-detail-v1-chip.is-success {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.client-service-detail-v1-chip.is-blue,
.client-service-detail-v1-chip.is-info {
  background: rgba(0, 87, 231, 0.1);
  color: #0057e7;
}

.client-service-detail-v1-chip.is-warning,
.client-service-detail-v1-chip.is-orange {
  background: rgba(217, 119, 6, 0.14);
  color: #d97706;
}

.client-service-detail-v1-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.client-service-detail-v1-kpi {
  min-height: 112px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 15px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.035);
}

.client-service-detail-v1-kpi-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.client-service-detail-v1-kpi-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 87, 231, 0.1);
  color: #0057e7;
}

.client-service-detail-v1-kpi.is-success .client-service-detail-v1-kpi-icon,
.client-service-detail-v1-kpi.is-green .client-service-detail-v1-kpi-icon {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.client-service-detail-v1-kpi.is-warning .client-service-detail-v1-kpi-icon,
.client-service-detail-v1-kpi.is-orange .client-service-detail-v1-kpi-icon {
  background: rgba(217, 119, 6, 0.14);
  color: #d97706;
}

.client-service-detail-v1-kpi.is-neutral .client-service-detail-v1-kpi-icon {
  background: rgba(100, 116, 139, 0.12);
  color: #64748b;
}

.client-service-detail-v1-kpi-label {
  color: #172554;
  font-size: 12px;
  font-weight: 800;
}

.client-service-detail-v1-kpi-value {
  color: #0f172a;
  font-size: 21px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: 0;
}

.client-service-detail-v1-kpi-action {
  justify-self: start;
  margin-top: 6px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border: 1px solid rgba(0, 87, 231, 0.16);
  border-radius: 8px;
  background: #fff;
  color: #0057e7;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.client-service-detail-v1-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(292px, 330px);
  gap: 16px;
  align-items: start;
}

.client-service-detail-v1-main,
.client-service-detail-v1-side,
.client-service-detail-v1-stack {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.client-service-detail-v1-side {
  position: sticky;
  top: 74px;
}

.client-page-card.client-service-detail-v1-panel {
  display: grid;
  gap: 14px;
  padding: 17px;
  border-radius: 8px;
  border-color: rgba(20, 35, 80, 0.12);
  box-shadow: 0 16px 36px rgba(17, 26, 58, 0.04);
}

.client-service-detail-v1-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.client-service-detail-v1-panel-head h4,
.client-service-detail-v1-provider-card h4 {
  margin: 0;
  color: #111a3a;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0;
}

.client-page-card.client-service-detail-v1-contract-card {
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.client-service-detail-v1-contract-section {
  display: grid;
  gap: 14px;
  padding: 18px 17px;
  border-top: 1px solid rgba(20, 35, 80, 0.1);
}

.client-service-detail-v1-contract-section:first-child {
  border-top: 0;
}

.client-service-detail-v1-contract-summary {
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
}

.client-service-detail-v1-contract-section--with-icon {
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

.client-service-detail-v1-section-body {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.client-service-detail-v1-contract-summary-icon,
.client-service-detail-v1-section-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
}

.client-service-detail-v1-contract-summary-icon {
  color: #15803d;
  background: rgba(22, 163, 74, 0.12);
}

.client-service-detail-v1-section-icon {
  color: #0057e7;
  background: rgba(0, 87, 231, 0.1);
}

.client-service-detail-v1-section-icon.is-indigo {
  color: #4f46e5;
  background: rgba(79, 70, 229, 0.1);
}

.client-service-detail-v1-contract-summary-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.client-service-detail-v1-contract-summary-copy h4,
.client-service-detail-v1-section-title h4 {
  margin: 0;
  color: #111a3a;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 800;
}

.client-service-detail-v1-contract-summary-copy p {
  max-width: 760px;
  margin: 0;
  color: #334155;
  font-size: 13px;
  line-height: 1.55;
}

.client-request-detail-v1-mission-heading {
  margin: 3px 0 0;
  color: #111a3a;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 800;
}

.client-service-detail-v1-contract-facts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.client-service-detail-v1-contract-facts span,
.client-service-detail-v1-group-note {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: #eef2f7;
  color: #475569;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
}

.client-service-detail-v1-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  margin-top: 2px;
  border-top: 1px solid rgba(20, 35, 80, 0.1);
}

.client-service-detail-v1-summary-fact {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 11px 13px 0 0;
}

.client-service-detail-v1-service-groups,
.client-service-detail-v1-site-groups {
  display: grid;
  row-gap: 16px;
  min-width: 0;
}

.client-service-detail-v1-service-groups {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.client-service-detail-v1-site-groups {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.client-request-detail-v1-service-groups {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.client-request-detail-v1-site-groups {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.client-request-detail-v1-service-groups .client-request-detail-v1-resume-group[data-request-resume-group="poubelles"] {
  grid-column: 1 / -1;
  padding: 14px 0 0;
  border-left: 0;
  border-top: 1px solid rgba(20, 35, 80, 0.1);
}

.client-service-detail-v1-source-group {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 2px 17px 0;
  border-left: 1px solid rgba(20, 35, 80, 0.12);
}

.client-service-detail-v1-source-group:first-child {
  border-left: 0;
  padding-left: 0;
}

.client-service-detail-v1-source-group:last-child {
  padding-right: 0;
}

.client-service-detail-v1-group-head {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.client-service-detail-v1-group-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #0057e7;
  background: rgba(0, 87, 231, 0.1);
}

.client-service-detail-v1-group-icon.is-green {
  color: #15803d;
  background: rgba(22, 163, 74, 0.12);
}

.client-service-detail-v1-group-icon.is-purple {
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.1);
}

.client-service-detail-v1-group-icon.is-indigo {
  color: #4f46e5;
  background: rgba(79, 70, 229, 0.1);
}

.client-service-detail-v1-group-icon.is-cyan {
  color: #0891b2;
  background: rgba(8, 145, 178, 0.1);
}

.client-service-detail-v1-group-head h5 {
  margin: 0;
  color: #111a3a;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.client-service-detail-v1-line-list {
  display: grid;
  gap: 0;
  min-width: 0;
}

.client-service-detail-v1-line {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(112px, 0.38fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 10px 0;
  border-top: 1px solid rgba(20, 35, 80, 0.1);
}

.client-service-detail-v1-line:first-child {
  border-top: 0;
  padding-top: 0;
}

.client-service-detail-v1-summary-fact span,
.client-service-detail-v1-line span {
  color: #66728f;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 800;
}

.client-service-detail-v1-summary-fact strong,
.client-service-detail-v1-line strong {
  min-width: 0;
  color: #111a3a;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.client-service-detail-v1-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.client-service-detail-v1-info-row {
  min-height: 64px;
  display: grid;
  gap: 5px;
  align-content: start;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #f8fafc;
}

.client-service-detail-v1-info-row span,
.client-service-detail-v1-row span {
  color: #66728f;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 800;
}

.client-service-detail-v1-info-row strong,
.client-service-detail-v1-row strong,
.client-service-detail-v1-doc-card strong,
.client-service-detail-v1-management-card strong {
  min-width: 0;
  color: #111a3a;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.client-service-detail-v1-table {
  display: grid;
  gap: 0;
  min-width: 0;
}

.client-service-detail-v1-table-head,
.client-service-detail-v1-history-row {
  display: grid;
  grid-template-columns: minmax(108px, 0.28fr) minmax(180px, 1fr) minmax(86px, 0.22fr) minmax(132px, 0.34fr);
  gap: 12px;
  align-items: center;
}

.client-service-detail-v1-table-head {
  padding: 0 10px 8px;
  color: rgba(15, 23, 42, 0.52);
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
}

.client-service-detail-v1-history-row {
  padding: 12px 10px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  color: #334155;
  font-size: 13px;
  line-height: 1.35;
}

.client-service-detail-v1-report-action {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  padding: 0 10px;
  border: 1px solid rgba(0, 87, 231, 0.18);
  border-radius: 8px;
  background: #fff;
  color: #0057e7;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.client-service-detail-v1-provider-card,
.client-service-detail-v1-doc-card {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.client-service-detail-v1-provider-top,
.client-service-detail-v1-doc-card,
.client-service-detail-v1-management-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #f8fafc;
}

.client-service-detail-v1-provider-top {
  grid-template-columns: 38px minmax(0, 1fr);
  padding: 0;
  border: 0;
  background: transparent;
}

.client-service-detail-v1-status-icon,
.client-service-detail-v1-action-icon {
  width: 36px;
  height: 36px;
  background: rgba(0, 87, 231, 0.1);
  color: #0057e7;
}

.client-service-detail-v1-management-card {
  width: 100%;
  border-color: rgba(15, 23, 42, 0.08);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.client-service-detail-v1-management-card.is-primary,
.client-service-detail-v1-management-card.is-blue {
  border-color: rgba(0, 87, 231, 0.18);
  background: rgba(239, 246, 255, 0.62);
}

.client-service-detail-v1-management-card.is-warning,
.client-service-detail-v1-management-card.is-orange {
  border-color: rgba(217, 119, 6, 0.18);
  background: rgba(255, 251, 235, 0.78);
}

.client-service-detail-v1-management-card.is-red {
  border-color: rgba(220, 38, 38, 0.18);
  background: rgba(254, 242, 242, 0.72);
}

.client-service-detail-v1-management-card.is-orange .client-service-detail-v1-action-icon {
  color: #d97706;
  background: rgba(217, 119, 6, 0.12);
}

.client-service-detail-v1-management-card.is-red .client-service-detail-v1-action-icon {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.11);
}

.client-service-detail-v1-management-card.is-disabled {
  border-color: rgba(15, 23, 42, 0.1);
  background: #f8fafc;
  cursor: not-allowed;
  opacity: 1;
}

.client-service-detail-v1-management-card:not(.is-disabled):hover,
.client-service-detail-v1-doc-card:hover {
  border-color: rgba(0, 87, 231, 0.22);
}

.client-service-detail-v1-management-card:focus-visible,
.client-service-detail-v1-report-action:focus-visible {
  outline: 3px solid rgba(0, 87, 231, 0.22);
  outline-offset: 2px;
}

.client-service-detail-v1-action-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.client-service-detail-v1-action-copy small {
  color: rgba(15, 23, 42, 0.62);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.client-service-detail-v1-action-copy .client-service-detail-v1-action-reason {
  color: #92400e;
}

.client-service-detail-v1-state-pill {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  max-width: 128px;
  padding: 0 8px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #eef2f7;
  color: rgba(15, 23, 42, 0.66);
  font-size: 11px;
  line-height: 1.1;
  font-weight: 900;
  text-align: center;
}

.client-service-detail-v1-state-pill.is-warning {
  border-color: rgba(217, 119, 6, 0.18);
  background: rgba(255, 251, 235, 0.95);
  color: #92400e;
}

.client-service-detail-v1-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.client-service-detail-v1-report-action:hover {
  background: rgba(239, 246, 255, 0.74);
}

.client-service-detail-v1-row strong {
  text-align: right;
}

.client-service-detail-v1-doc-card > span:nth-child(2) {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.client-service-detail-v1-doc-card small {
  color: rgba(15, 23, 42, 0.62);
  font-size: 12px;
  line-height: 1.35;
}

.client-service-detail-v1-link {
  color: #0057e7;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.client-service-detail-v1-muted {
  color: rgba(15, 23, 42, 0.66);
  font-size: 13px;
  line-height: 1.42;
}

.client-account-v1-page {
  gap: 16px;
}

.client-account-v1-header h3 {
  margin: 0 0 6px;
  color: #111a3a;
  font-size: 34px;
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: 0;
}

.client-account-v1-header p {
  max-width: 720px;
  margin: 0;
  color: #334155;
  font-size: 15px;
  line-height: 1.5;
}

.client-account-v1-primary-action {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid #0057e7;
  background: #0057e7;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 12px 24px rgba(0, 87, 231, 0.18);
}

.client-account-v1-primary-action:disabled {
  border-color: rgba(148, 163, 184, 0.32);
  background: #f8fafc;
  color: #64748b;
  box-shadow: none;
  cursor: not-allowed;
}

.client-account-v1-primary-action svg,
.client-account-v1-tab svg,
.client-account-v1-list-icon svg,
.client-account-v1-info-icon svg,
.client-account-v1-connection-icon svg,
.client-account-v1-note-icon svg,
.client-account-v1-empty-icon svg,
.client-account-v1-row-action svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.client-account-v1-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 4px;
}

.client-account-v1-tab {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.client-account-v1-tab.is-active {
  border-color: rgba(0, 87, 231, 0.28);
  background: rgba(0, 87, 231, 0.08);
  color: #0057e7;
}

.client-account-v1-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  align-items: start;
}

.client-account-v1-main-column,
.client-account-v1-side-column,
.client-account-v1-side-stack {
  display: grid;
  gap: 16px;
}

.client-page-card.client-account-v1-card {
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
  border-color: rgba(20, 35, 80, 0.12);
  box-shadow: 0 16px 36px rgba(17, 26, 58, 0.04);
}

.client-account-v1-card-head {
  min-height: 58px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.client-account-v1-card-head h4 {
  margin: 0;
  color: #111a3a;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0;
}

.client-account-v1-card-head p {
  margin: 4px 0 0;
  color: rgba(15, 23, 42, 0.66);
  font-size: 13px;
  line-height: 1.45;
}

.client-account-v1-card-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.client-account-v1-card-body {
  padding: 16px;
}

.client-account-v1-person {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.client-account-v1-avatar {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 87, 231, 0.16), rgba(0, 87, 231, 0.1));
  color: #0057e7;
  font-size: 32px;
  line-height: 1;
  font-weight: 900;
}

.client-account-v1-person-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.client-account-v1-person-copy h4 {
  margin: 0 0 2px;
  color: #111a3a;
  font-size: 20px;
  line-height: 1.18;
  letter-spacing: 0;
}

.client-account-v1-person-copy p {
  margin: 0;
  color: #334155;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.client-account-v1-chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.client-account-v1-chip {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.1);
  color: #334155;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}

.client-account-v1-chip.is-blue {
  background: rgba(0, 87, 231, 0.1);
  color: #0057e7;
}

.client-account-v1-chip.is-green {
  background: rgba(22, 163, 74, 0.1);
  color: #15803d;
}

.client-account-v1-chip.is-orange {
  background: rgba(217, 119, 6, 0.12);
  color: #a16207;
}

.client-account-v1-ref-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.client-account-v1-ref-table {
  width: 100%;
  border-collapse: collapse;
}

.client-account-v1-ref-table th {
  padding: 0 12px 9px;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-align: left;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.client-account-v1-ref-table td {
  padding: 12px;
  vertical-align: middle;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  color: #334155;
  font-size: 13px;
  line-height: 1.35;
}

.client-account-v1-ref-table tbody tr:last-child td {
  border-bottom: 0;
}

.client-account-v1-ref-person {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.client-account-v1-ref-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 87, 231, 0.1);
  color: #0057e7;
  font-size: 12px;
  font-weight: 900;
}

.client-account-v1-ref-person strong,
.client-account-v1-row-copy strong,
.client-account-v1-connection-state strong {
  display: block;
  color: #111a3a;
  font-size: 14px;
  line-height: 1.28;
  font-weight: 800;
}

.client-account-v1-ref-person span span,
.client-account-v1-row-copy span,
.client-account-v1-connection-state span span {
  display: block;
  margin-top: 4px;
  color: rgba(15, 23, 42, 0.66);
  font-size: 12px;
  line-height: 1.35;
}

.client-account-v1-note {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(0, 87, 231, 0.14);
  border-radius: 8px;
  background: rgba(0, 87, 231, 0.05);
  color: #172554;
  font-size: 12px;
  line-height: 1.45;
}

.client-account-v1-note-icon,
.client-account-v1-list-icon,
.client-account-v1-info-icon,
.client-account-v1-empty-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(0, 87, 231, 0.08);
  color: #0057e7;
}

.client-account-v1-empty-state {
  min-height: 170px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 24px;
  border: 1px dashed rgba(148, 163, 184, 0.44);
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.client-account-v1-empty-state h4 {
  margin: 0;
  color: #111a3a;
  font-size: 17px;
  line-height: 1.25;
}

.client-account-v1-empty-state p {
  max-width: 520px;
  margin: 0;
  color: rgba(15, 23, 42, 0.66);
  font-size: 14px;
  line-height: 1.5;
}

.client-account-v1-connection-state {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.client-account-v1-connection-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.12);
  color: #16a34a;
}

.client-account-v1-info-item {
  min-height: 64px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  background: #fff;
}

.client-account-v1-info-label {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
}

.client-account-v1-info-value {
  display: block;
  margin-top: 4px;
  color: #111827;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 800;
}

.client-account-v1-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}

.client-account-v1-preference-row,
.client-account-v1-exchange-row {
  min-height: 56px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  color: inherit;
  text-decoration: none;
}

.client-account-v1-list > li:last-child .client-account-v1-preference-row,
.client-account-v1-list > li:last-child .client-account-v1-exchange-row {
  border-bottom: 0;
}

.client-account-v1-toggle-control {
  position: relative;
  width: 42px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.client-account-v1-toggle-input {
  position: absolute;
  inset: 0;
  width: 42px;
  height: 24px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.client-account-v1-toggle {
  width: 42px;
  height: 24px;
  position: relative;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.38);
  background: #e2e8f0;
  pointer-events: none;
}

.client-account-v1-toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.22);
  transition: transform 0.18s ease;
}

.client-account-v1-toggle-input:checked + .client-account-v1-toggle {
  border-color: rgba(22, 163, 74, 0.36);
  background: #16a34a;
}

.client-account-v1-toggle-input:checked + .client-account-v1-toggle::after {
  transform: translateX(18px);
}

.client-account-v1-toggle-input:focus-visible + .client-account-v1-toggle {
  outline: 3px solid rgba(0, 87, 231, 0.22);
  outline-offset: 2px;
}

.client-account-v1-exchange-row:hover {
  color: #0057e7;
}

.client-account-v1-row-action {
  color: #64748b;
}

.client-account-v1-row-actions {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.client-account-v1-modal-layer {
  position: fixed;
  inset: 0;
  z-index: 92;
  display: grid;
  place-items: center;
  padding: 24px;
}

.client-account-v1-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.34);
}

.client-account-v1-modal {
  position: relative;
  width: min(680px, calc(100vw - 36px));
  max-height: calc(100vh - 42px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 28px 64px rgba(15, 23, 42, 0.24);
  overflow: hidden;
}

.client-account-v1-modal-head {
  min-height: 64px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.client-account-v1-modal-head h4 {
  margin: 0;
  color: #111a3a;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 900;
}

.client-account-v1-modal-body {
  min-height: 0;
  padding: 16px;
  display: grid;
  gap: 12px;
  overflow: auto;
}

.client-account-v1-form-field {
  display: grid;
  gap: 6px;
}

.client-account-v1-form-field > span {
  color: #334155;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
}

.client-account-v1-form-field input[type="text"],
.client-account-v1-form-field input[type="email"],
.client-account-v1-form-field input[type="tel"] {
  min-height: 40px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font-size: 14px;
}

.client-account-v1-form-field input:focus-visible {
  outline: 3px solid rgba(0, 87, 231, 0.22);
  outline-offset: 1px;
  border-color: rgba(0, 87, 231, 0.45);
}

.client-account-v1-scope-list {
  display: grid;
  gap: 8px;
}

.client-account-v1-scope-option {
  min-height: 52px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 8px;
  background: #fff;
}

.client-account-v1-scope-option strong {
  display: block;
  color: #111a3a;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 800;
}

.client-account-v1-scope-option small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.3;
}

.client-account-v1-modal-actions {
  margin-top: 2px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

@media (max-width: 1080px) {
  .client-account-v1-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .client-account-v1-header {
    display: grid;
  }

  .client-account-v1-header h3 {
    font-size: 28px;
  }

  .client-account-v1-primary-action,
  .client-account-v1-card-actions {
    width: 100%;
  }

  .client-account-v1-person,
  .client-account-v1-preference-row,
  .client-account-v1-exchange-row,
  .client-account-v1-info-item {
    grid-template-columns: 1fr;
  }

  .client-account-v1-ref-table,
  .client-account-v1-ref-table thead,
  .client-account-v1-ref-table tbody,
  .client-account-v1-ref-table tr,
  .client-account-v1-ref-table th,
  .client-account-v1-ref-table td {
    display: block;
    width: 100%;
  }

  .client-account-v1-ref-table thead {
    display: none;
  }

  .client-account-v1-ref-table tr {
    padding: 12px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  }

  .client-account-v1-ref-table td {
    padding: 6px 0;
    border-bottom: 0;
  }

  .client-account-v1-modal-layer {
    padding: 12px;
  }

  .client-account-v1-modal {
    width: min(680px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px); /* LOT 10A-3 : hauteur correcte avec les barres mobiles (fallback dvh) */
  }

  .client-account-v1-modal-actions .btn {
    width: 100%;
  }
}

.client-service-action-center-layer {
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100dvh;
  z-index: 90;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  overflow: hidden;
  pointer-events: none;
}

html.client-service-action-center-open,
body.client-service-action-center-open,
html:has(.client-service-action-center-layer),
body:has(.client-service-action-center-layer) {
  overflow: hidden;
  overscroll-behavior: none;
}

.client-service-action-center-backdrop {
  grid-column: 1 / -1;
  grid-row: 1;
  border: 0;
  background: rgba(15, 23, 42, 0.34);
  cursor: pointer;
  pointer-events: auto;
}

.client-service-action-center-panel {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  min-height: 0;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  background: #fff;
  box-shadow: -24px 0 50px rgba(15, 23, 42, 0.18);
  pointer-events: auto;
  overflow: hidden;
  overscroll-behavior: contain;
}

.client-service-action-center-panel,
.client-service-action-center-panel * {
  box-sizing: border-box;
}

.client-service-action-center-header,
.client-service-action-center-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

.client-service-action-center-footer {
  justify-content: flex-end;
  flex-wrap: wrap;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  border-bottom: 0;
  background: #fff;
  /* LOT 10A-3 : footer CTA (Confirmer) au-dessus du home indicator iOS — base 12px + inset (additif) */
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}

.client-service-action-center-eyebrow,
.client-service-action-center-context small,
.client-service-action-center-selected-occurrence small {
  color: rgba(15, 23, 42, 0.52);
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}

.client-service-action-center-header h3 {
  margin: 4px 0 0;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.18;
}

.client-service-action-center-close,
.client-service-action-center-secondary,
.client-service-action-center-primary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
}

.client-service-action-center-primary {
  border-color: #0057e7;
  background: #0057e7;
  color: #fff;
}

.client-service-action-center-close {
  width: 44px;
  padding: 0;
  color: rgba(15, 23, 42, 0.58);
}

.client-service-action-center-close svg,
.client-service-action-center-choice-icon svg,
.client-service-action-center-chevron svg {
  width: 16px;
  height: 16px;
}

.client-service-action-center-context {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
}

.client-service-action-center-context span,
.client-service-action-center-selected-occurrence {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.client-service-action-center-context strong,
.client-service-action-center-selected-occurrence strong {
  min-width: 0;
  color: #111a3a;
  font-size: 12px;
  line-height: 1.24;
  overflow-wrap: anywhere;
}

.client-service-action-center-body {
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 16px;
}

.client-service-action-center-choices,
.client-service-action-center-form-shell {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.client-service-action-center-choice {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.client-service-action-center-choice.is-blue {
  border-color: rgba(0, 87, 231, 0.18);
  background: rgba(239, 246, 255, 0.64);
}

.client-service-action-center-choice.is-orange {
  border-color: rgba(217, 119, 6, 0.18);
  background: rgba(255, 251, 235, 0.78);
}

.client-service-action-center-choice.is-red {
  border-color: rgba(220, 38, 38, 0.18);
  background: rgba(254, 242, 242, 0.72);
}

.client-service-action-center-choice.is-disabled {
  background: #f8fafc;
  cursor: not-allowed;
}

.client-service-action-center-choice:not(.is-disabled):hover {
  border-color: rgba(0, 87, 231, 0.24);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.client-service-action-center-choice:focus-visible,
.client-service-action-center-close:focus-visible,
.client-service-action-center-primary:focus-visible,
.client-service-action-center-secondary:focus-visible,
.client-service-action-center-backdrop:focus-visible {
  outline: 3px solid rgba(0, 87, 231, 0.22);
  outline-offset: 2px;
}

.client-service-action-center-choice-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 87, 231, 0.1);
  color: #0057e7;
}

.client-service-action-center-choice.is-orange .client-service-action-center-choice-icon {
  background: rgba(217, 119, 6, 0.12);
  color: #d97706;
}

.client-service-action-center-choice.is-red .client-service-action-center-choice-icon {
  background: rgba(220, 38, 38, 0.11);
  color: #dc2626;
}

.client-service-action-center-choice-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.client-service-action-center-choice-copy strong {
  min-width: 0;
  color: #0f172a;
  font-size: 13px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.client-service-action-center-choice-copy small {
  color: rgba(15, 23, 42, 0.62);
  font-size: 11px;
  line-height: 1.35;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.client-service-action-center-choice-copy .client-service-action-center-reason {
  color: #92400e;
}

.client-service-action-center-state {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 126px;
  padding: 0 8px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #eef2f7;
  color: rgba(15, 23, 42, 0.66);
  font-size: 11px;
  line-height: 1.1;
  font-weight: 900;
  text-align: center;
}

.client-service-action-center-state.is-warning {
  border-color: rgba(217, 119, 6, 0.18);
  background: rgba(255, 251, 235, 0.95);
  color: #92400e;
}

.client-service-action-center-chevron {
  min-width: 16px;
  color: rgba(15, 23, 42, 0.44);
}

.client-service-action-center-selected-occurrence {
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #f8fafc;
}

.client-service-action-center-form,
.client-service-action-center-form-grid,
.client-service-action-center-review {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.client-service-action-center-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.client-service-action-center-field {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.client-service-action-center-field.is-wide {
  grid-column: 1 / -1;
}

.client-service-action-center-field span,
.client-service-action-center-confirmation span {
  color: #0f172a;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 900;
}

.client-service-action-center-field input,
.client-service-action-center-field select,
.client-service-action-center-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
}

.client-service-action-center-field input,
.client-service-action-center-field select {
  min-height: 44px;
  padding: 0 10px;
}

.client-service-action-center-field textarea {
  min-height: 78px;
  padding: 9px 10px;
  resize: vertical;
}

.client-service-action-center-field input:focus,
.client-service-action-center-field select:focus,
.client-service-action-center-field textarea:focus {
  border-color: #0057e7;
  outline: 3px solid rgba(0, 87, 231, 0.14);
}

.client-service-action-center-field [aria-invalid="true"] {
  border-color: #dc2626;
  background: #fff7f7;
}

.client-service-action-center-error {
  color: #b91c1c;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 800;
}

.client-service-action-center-form-status {
  padding: 11px 12px;
  border: 1px solid rgba(22, 163, 74, 0.18);
  border-radius: 8px;
  background: rgba(240, 253, 244, 0.9);
  color: #166534;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 900;
}

.client-service-action-center-form-status.is-error {
  border-color: rgba(220, 38, 38, 0.18);
  background: rgba(254, 242, 242, 0.9);
  color: #b91c1c;
}

.client-service-action-center-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.client-service-action-center-review-row {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 11px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #f8fafc;
}

.client-service-action-center-review-row small {
  color: rgba(15, 23, 42, 0.52);
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}

.client-service-action-center-review-row strong {
  min-width: 0;
  color: #0f172a;
  font-size: 13px;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.client-service-action-center-confirmation {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(217, 119, 6, 0.2);
  border-radius: 8px;
  background: rgba(255, 251, 235, 0.82);
}

.client-service-action-center-confirmation input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #0057e7;
}

.client-service-action-center-confirmation .client-service-action-center-error {
  grid-column: 2;
}

.client-service-detail-v1-empty {
  padding: 18px;
  border: 1px dashed rgba(15, 23, 42, 0.16);
  border-radius: 8px;
  background: #f8fafc;
}

.client-service-detail-v1-back svg,
.client-service-detail-v1-primary-action svg,
.client-service-detail-v1-secondary-action svg,
.client-service-detail-v1-pin svg,
.client-service-detail-v1-kpi-icon svg,
.client-service-detail-v1-contract-summary-icon svg,
.client-service-detail-v1-section-icon svg,
.client-service-detail-v1-group-icon svg,
.client-service-detail-v1-action-icon svg,
.client-service-detail-v1-status-icon svg {
  width: 17px;
  height: 17px;
}

.client-requests-v1-item.is-action {
  border-color: rgba(0, 87, 231, 0.2);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.64), rgba(255, 255, 255, 0.98));
}

.client-requests-v1-item:hover {
  border-color: rgba(0, 87, 231, 0.24);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.client-requests-v1-title-group,
.client-requests-v1-meta-grid,
.client-requests-v1-state,
.client-requests-v1-focus-card,
.client-requests-v1-focus-meta {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.client-requests-v1-meta-grid {
  grid-template-columns: minmax(104px, 0.3fr) minmax(210px, 0.7fr);
  align-items: center;
  column-gap: 14px;
}

.client-requests-v1-meta-grid > span {
  display: grid;
  gap: 5px;
}

.client-requests-v1-meta-grid .client-requests-v1-meta-label,
.client-requests-v1-meta-grid .client-requests-v1-meta-value {
  display: block;
}

.client-requests-v1-state {
  align-content: center;
  justify-items: end;
  text-align: right;
}

.client-requests-v1-title-group strong,
.client-requests-v1-focus-card strong {
  color: #0f172a;
  font-size: 16px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.client-requests-v1-title-group span,
.client-requests-v1-focus-card p {
  margin: 0;
  color: rgba(15, 23, 42, 0.66);
  font-size: 13px;
  line-height: 1.35;
}

.client-requests-v1-reference {
  color: rgba(15, 23, 42, 0.52);
  font-size: 12px;
  font-weight: 800;
}

.client-requests-v1-meta-label,
.client-requests-v1-eyebrow {
  color: rgba(15, 23, 42, 0.52);
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
}

.client-requests-v1-meta-value {
  color: #0f172a;
  font-size: 13px;
  line-height: 1.32;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.client-requests-v1-progress {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.client-requests-v1-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: rgba(15, 23, 42, 0.58);
  font-size: 12px;
  font-weight: 700;
}

.client-requests-v1-progress-head span:last-child {
  white-space: nowrap;
}

.client-requests-v1-progress-track {
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.08);
}

.client-requests-v1-progress-fill {
  display: block;
  height: 100%;
  width: var(--progress, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, #0057e7, #16a34a);
}

.client-requests-v1-chip {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.client-requests-v1-chip.is-success {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.client-requests-v1-chip.is-info,
.client-requests-v1-chip.is-blue {
  background: rgba(0, 87, 231, 0.1);
  color: #0057e7;
}

.client-requests-v1-chip.is-warning,
.client-requests-v1-chip.is-orange {
  background: rgba(217, 119, 6, 0.14);
  color: #d97706;
}

.client-requests-v1-chip.is-danger {
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
}

.client-requests-v1-row-action {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  justify-self: end;
  border-radius: 999px;
  color: rgba(15, 23, 42, 0.48);
}

.client-requests-v1-row-action svg {
  width: 16px;
  height: 16px;
}

.client-requests-v1-item:hover .client-requests-v1-row-action {
  color: #0057e7;
  background: rgba(0, 87, 231, 0.08);
}

.client-requests-v1-stage-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.client-requests-v1-stage-item:first-child {
  border-top: 0;
}

.client-requests-v1-focus-card {
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(0, 87, 231, 0.18);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.74), rgba(255, 255, 255, 0.98));
}

.client-requests-v1-focus-actions {
  display: grid;
  gap: 8px;
}

.client-requests-v1-focus-actions .client-requests-v1-primary-action,
.client-requests-v1-focus-actions .client-requests-v1-secondary-action {
  width: 100%;
}

.client-requests-v1-focus-actions .client-requests-v1-secondary-action {
  min-height: 34px;
  border-color: transparent;
  box-shadow: none;
}

.client-requests-v1-focus-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 13px;
}

.client-requests-v1-focus-row span {
  color: rgba(15, 23, 42, 0.66);
}

.client-requests-v1-focus-row b {
  text-align: right;
  overflow-wrap: anywhere;
}

.client-requests-v1-empty {
  padding: 18px;
  border: 1px dashed rgba(15, 23, 42, 0.16);
  border-radius: 8px;
  background: #f8fafc;
}

.client-request-detail-v1-service-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 7px;
}

.client-request-detail-v1-service-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(0, 87, 231, 0.14);
  border-radius: 999px;
  background: rgba(0, 87, 231, 0.06);
  color: #172554;
  font-size: 12px;
  font-weight: 800;
}

.client-request-detail-v1-tabs {
  display: flex;
  gap: 10px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(20, 35, 80, 0.12);
  border-radius: 0;
  background: transparent;
  overflow-x: auto;
}

.client-request-detail-v1-tab {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  color: #394565;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.client-request-detail-v1-tab svg {
  width: 18px;
  height: 18px;
}

.client-request-detail-v1-tab.is-active {
  border-color: #0057e7;
  background: transparent;
  color: #0057e7;
  box-shadow: none;
}

.client-request-detail-v1-action-band {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px 16px;
  border-radius: 8px;
  border: 1px solid rgba(0, 87, 231, 0.16);
  background: linear-gradient(90deg, rgba(239, 246, 255, 0.96), rgba(255, 255, 255, 0.98));
}

.client-request-detail-v1-action-band.is-warning {
  border-color: rgba(217, 119, 6, 0.26);
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 255, 255, 0.98));
}

.client-request-detail-v1-action-band:not(.is-warning) .client-request-detail-v1-action-band-icon {
  color: #0057e7;
  background: rgba(0, 87, 231, 0.1);
}

.client-request-detail-v1-action-band p,
.client-request-detail-v1-action-card p {
  margin: 4px 0 0;
}

.client-request-detail-v1-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 330px);
  gap: 16px;
  align-items: start;
}

.client-request-detail-v1-header {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.client-request-detail-v1-back {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(20, 35, 80, 0.12);
  border-radius: 8px;
  background: #fff;
  color: #0057e7;
  text-decoration: none;
}

.client-request-detail-v1-back svg {
  width: 18px;
  height: 18px;
}

.client-request-detail-v1-header .client-page-breadcrumbs {
  margin-bottom: 8px;
}

.client-request-detail-v1-header .client-detail-meta,
.client-request-detail-v1-header > div > .client-page-muted {
  color: #66728f;
  font-size: 13px;
  font-weight: 700;
}

.client-request-detail-v1-side-column {
  position: sticky;
  top: 74px;
}

.client-request-detail-v1-text {
  margin: 0;
  color: #34405f;
  font-size: 13px;
  line-height: 1.65;
}

.client-request-detail-v1-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.client-request-detail-v1-info-item {
  min-height: 70px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 10px;
  border-radius: 8px;
  background: #f8faff;
}

.client-request-detail-v1-info-icon,
.client-request-detail-v1-doc-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(0, 87, 231, 0.09);
  color: #0057e7;
}

.client-request-detail-v1-info-item > span:last-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.client-request-detail-v1-info-item small,
.client-request-detail-v1-side-row span,
.client-request-detail-v1-field span {
  color: #66728f;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 800;
}

.client-request-detail-v1-info-item strong,
.client-request-detail-v1-side-row strong,
.client-request-detail-v1-field strong {
  color: #111a3a;
  font-size: 12px;
  line-height: 1.35;
}

.client-request-detail-v1-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.client-request-detail-v1-field {
  min-height: 58px;
  display: grid;
  gap: 5px;
  align-content: start;
  padding: 10px 12px;
  border-left: 1px solid rgba(20, 35, 80, 0.12);
}

.client-request-detail-v1-steps {
  gap: 0;
}

.client-request-detail-v1-step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  padding: 0 0 14px;
  position: relative;
}

.client-request-detail-v1-step:before {
  content: "";
  position: absolute;
  left: 13px;
  top: 26px;
  bottom: 0;
  width: 2px;
  background: rgba(15, 23, 42, 0.1);
}

.client-request-detail-v1-step:last-child {
  padding-bottom: 0;
}

.client-request-detail-v1-step:last-child:before {
  display: none;
}

.client-request-detail-v1-step-dot {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  z-index: 1;
}

.client-request-detail-v1-step.is-done .client-request-detail-v1-step-dot {
  background: rgba(22, 163, 74, 0.12);
  color: #16a34a;
}

.client-request-detail-v1-step.is-current .client-request-detail-v1-step-dot {
  background: rgba(0, 87, 231, 0.12);
  color: #0057e7;
  box-shadow: 0 0 0 4px rgba(0, 87, 231, 0.08);
}

.client-request-detail-v1-step strong {
  display: block;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.35;
}

.client-request-detail-v1-doc-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #f8fafc;
  color: inherit;
  text-decoration: none;
}

.client-request-detail-v1-doc-item:hover {
  border-color: rgba(0, 87, 231, 0.22);
}

.client-request-detail-v1-action-card {
  border-color: rgba(0, 87, 231, 0.2);
  background: linear-gradient(180deg, #f4f8ff, #fff);
}

.client-request-detail-v1-action-card h4 {
  color: #0057e7;
}

.client-request-detail-v1-action-card.is-warning {
  border-color: rgba(217, 119, 6, 0.28);
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.82), #fff);
}

.client-request-detail-v1-action-buttons {
  display: grid;
  justify-content: stretch;
  margin-top: 12px;
}

.client-request-detail-v1-action-buttons .client-request-detail-v1-action,
.client-request-detail-v1-action-buttons .client-request-detail-v1-action-secondary {
  width: 100%;
}

.client-request-detail-v1-tab-panel {
  gap: 16px;
}

.client-request-detail-v1-tab-panel > #propositions,
.client-request-detail-v1-tab-panel .client-proposal-panel,
.client-request-detail-v1-empty-panel {
  display: grid;
  gap: 14px;
}

.client-request-detail-v1-doc-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(20, 35, 80, 0.12);
  border-radius: 8px;
  background: #fbfcff;
}

.client-request-detail-v1-doc-card .client-request-detail-v1-doc-icon {
  width: 36px;
  height: 36px;
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}

.client-request-detail-v1-doc-card > span:nth-child(2) {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.client-request-detail-v1-doc-card strong {
  color: #111a3a;
  font-size: 13px;
  line-height: 1.35;
}

.client-request-detail-v1-side-rows {
  display: grid;
}

.client-request-detail-v1-side-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(20, 35, 80, 0.12);
}

.client-request-detail-v1-side-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.client-request-detail-v1-side-row strong {
  text-align: right;
}

.client-request-detail-v1-step {
  grid-template-columns: 26px minmax(0, 1fr);
  padding-bottom: 16px;
}

.client-request-detail-v1-step:before {
  left: 12px;
  top: 28px;
  background: rgba(20, 35, 80, 0.12);
}

.client-request-detail-v1-step-dot {
  width: 26px;
  height: 26px;
  background: #e9eef7;
  color: #7b879f;
  font-weight: 900;
}

.client-request-detail-v1-step.is-done .client-request-detail-v1-step-dot {
  background: #16a34a;
  color: #fff;
}

.client-request-detail-v1-step.is-current .client-request-detail-v1-step-dot {
  background: #0057e7;
  color: #fff;
  box-shadow: none;
}

.client-request-detail-v1-page .client-proposal-panel h4 {
  margin: 0;
  color: #111a3a;
  font-size: 17px;
  line-height: 1.25;
}

.client-request-detail-v1-page .client-proposal-entries {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.client-request-detail-v1-page .client-proposal-entry {
  align-items: stretch;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 15px;
  border-color: rgba(20, 35, 80, 0.12);
  background: #fff;
}

.client-request-detail-v1-page .client-proposal-entry-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.client-request-detail-v1-page .client-proposal-entry-metric {
  padding: 10px;
  border-radius: 8px;
  background: #f8faff;
}

.client-request-detail-v1-page .client-proposal-entry-label {
  color: #66728f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.client-request-detail-v1-page .client-proposal-entry-value {
  color: #111a3a;
  font-size: 12px;
}

.client-request-detail-v1-page .client-proposal-entry-cta {
  justify-self: start;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.client-request-detail-v1-offer-summary,
.client-request-detail-v1-proposal-card {
  display: grid;
  gap: 14px;
}

/* LOT E2 — « Offre retenue » : 2 cartes côte-à-côte (hauteurs égales), repli ≤560px. */
.client-request-detail-v1-offer-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.client-request-detail-v1-provider-profile {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 2px;
}

.client-request-detail-v1-provider-avatar {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  overflow: hidden;
  background: #d8e9ff;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(20, 35, 80, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand, #0057e7);
}

.client-request-detail-v1-provider-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.client-request-detail-v1-provider-avatar svg {
  width: 26px;
  height: 26px;
}

.client-request-detail-v1-provider-body {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.client-request-detail-v1-provider-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.client-request-detail-v1-provider-name-row strong {
  font-size: 17px;
  color: #111a3a;
  overflow-wrap: anywhere;
}

.client-request-detail-v1-provider-trust,
.client-request-detail-v1-provider-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.client-request-detail-v1-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(12, 95, 176, 0.24);
  background: #fff;
  color: #0b4a8d;
  font-size: 0.76rem;
  font-weight: 800;
}

.client-request-detail-v1-provider-tag {
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(20, 35, 80, 0.12);
  background: rgba(248, 250, 252, 0.92);
  font-size: 0.84rem;
  color: #334155;
}

.client-request-detail-v1-slots {
  display: grid;
  gap: 6px;
  margin-top: 4px;
}

.client-request-detail-v1-slot-heading {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.62);
}

.client-request-detail-v1-slot-subtitle {
  font-size: 12px;
  font-weight: 800;
  color: #0b4a8d;
  margin-top: 4px;
}

.client-request-detail-v1-slot {
  font-size: 13px;
  color: #111a3a;
}

/* LOT F1 — carte proposition board : 2 colonnes (profil anonyme | metrics). */
.client-request-detail-v1-proposal-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 14px;
  align-items: start;
}

.client-request-detail-v1-proposal-profile {
  min-width: 0;
  display: grid;
  gap: 8px;
  align-content: start;
}

.client-request-detail-v1-proposal-profile-line {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #111a3a;
}

.client-request-detail-v1-proposal-profile-line.client-page-muted {
  font-weight: 500;
}

.client-request-detail-v1-proposal-anon-note {
  font-size: 12px;
  margin: 2px 0 0;
}

@media (max-width: 560px) {
  .client-request-detail-v1-offer-summary {
    grid-template-columns: 1fr;
  }
  .client-request-detail-v1-proposal-cols {
    grid-template-columns: 1fr;
  }
}

/* Icônes sprite client (.ic) — règle GLOBALE, identique à la maquette (taille via font-size = 1em,
   trait currentColor). Couvre le board « Propositions reçues » + l'écran « Examiner » + toute surface
   client via renderClientIcon. (Avant : scopée au seul board → icônes Examiner non dimensionnées = bug.) */
.ic {
  width: 1em;
  height: 1em;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.15em;
}
/* LOT P1 : bandeau pleine largeur (trust gauche, pill ranking à l'extrême droite) au-dessus de la grille. */
.client-request-detail-v1-proposal-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.client-request-detail-v1-provider-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #15803d;
}
/* trust = texte vert + icône (style maquette), pas une pill bordée. */
.client-request-detail-v1-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 0;
  color: #15803d;
  font-size: 12px;
  font-weight: 500;
}
.client-request-detail-v1-ranking-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}
.client-request-detail-v1-ranking-pill.is-best {
  background: #eaf1ff;
  color: #0045b8;
}
.client-request-detail-v1-ranking-pill.is-new {
  background: #e7f6ed;
  color: #125c3c;
}
.client-request-detail-v1-proposal-profile-exp {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #111a3a;
}
.client-request-detail-v1-proposal-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.client-request-detail-v1-proposal-tag {
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 8px;
  background: #eef1f7;
  color: #5b6580;
  font-size: 12px;
}
.client-request-detail-v1-offer-metric > .ic {
  margin-right: 5px;
  color: #66728f;
  vertical-align: -0.15em;
}
.client-request-detail-v1-offer-card--best {
  border: 1.5px solid #0057e7;
}
/* LOT P1 — box « Créneaux proposés » (fusion Jours + Créneau), pleine largeur, 1 jour/ligne. */
.client-request-detail-v1-proposal-slots {
  grid-column: 1 / -1;
}
.client-request-detail-v1-proposal-slot-lines {
  display: grid;
  gap: 2px;
  margin-top: 4px;
}
.client-request-detail-v1-proposal-slot {
  font-size: 13px;
  color: #111a3a;
}
.client-request-detail-v1-proposal-slot-scope {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.62);
  margin-top: 4px;
}

/* LOT F2 — carte profil anonyme sur l'écran « Examiner » (workspace, C1). */
.client-workspace-anon-provider {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(20, 35, 80, 0.12);
  border-radius: 8px;
  background: #f8faff;
  margin-bottom: 12px;
}
.client-workspace-anon-provider-head {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

/* LOT F2P — écran « Examiner » au design maquette (profil pleine largeur + disclosure + 2-col + coches + note). */
.client-workspace-exam-trust {
  margin-bottom: 12px;
}
.client-workspace-exam-locked {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #66728f;
  font-size: 12px;
  font-weight: 600;
}
.client-workspace-exam-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 16px;
}
.client-workspace-exam-profile-right {
  border-left: 1px solid rgba(20, 35, 80, 0.12);
  padding-left: 16px;
}
.client-workspace-exam-exp {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: #111a3a;
}
.client-workspace-anon-provider-price {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #111a3a;
}
.client-workspace-exam-disclose {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #eaf1ff;
  border-radius: 8px;
  padding: 11px 14px;
  margin-bottom: 16px;
  font-size: 12.5px;
  color: #0045b8;
}
.client-workspace-exam-compare {
  margin-bottom: 16px;
}
.client-workspace-exam-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #f8faff;
  border: 1px solid rgba(20, 35, 80, 0.12);
  border-radius: 8px;
  padding: 11px 15px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #66728f;
}
/* Icône en tête des barres flex (disclosure / note) : flex-item qui ne doit pas rétrécir (parité maquette). */
.client-workspace-exam-disclose > .ic,
.client-workspace-exam-note > .ic {
  flex: 0 0 auto;
  margin-top: 1px;
}
.client-workspace-exam-match {
  color: #15803d;
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
}
.client-workspace-exam-foot .client-page-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
@media (max-width: 560px) {
  .client-workspace-exam-profile-grid {
    grid-template-columns: 1fr;
  }
  .client-workspace-exam-profile-right {
    border-left: 0;
    padding-left: 0;
  }
}

.client-request-detail-v1-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
/* LOT P1 : liste de propositions = 1 colonne (chaque carte PLEINE LARGEUR, empilée — design maquette). */
.client-request-detail-v1-offer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.client-request-detail-v1-form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.client-request-detail-v1-form-grid.is-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.client-request-detail-v1-offer-card,
.client-request-detail-v1-form-card {
  min-width: 0;
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 15px;
  border: 1px solid rgba(20, 35, 80, 0.12);
  border-radius: 8px;
  background: #fff;
}

.client-request-detail-v1-offer-card.is-selected {
  border-color: rgba(22, 163, 74, 0.34);
  background: linear-gradient(180deg, rgba(240, 253, 244, 0.9), #fff);
}

.client-request-detail-v1-offer-card .client-request-detail-v1-card-head,
.client-request-detail-v1-form-card .client-request-detail-v1-card-head {
  gap: 10px;
}

.client-request-detail-v1-offer-card h4,
.client-request-detail-v1-form-card h4 {
  margin: 0;
  color: #111a3a;
  font-size: 15px;
  line-height: 1.25;
}

.client-request-detail-v1-offer-card .client-request-detail-v1-action {
  justify-self: start;
  min-height: 38px;
  padding: 0 15px;
  font-size: 13px;
}

.client-request-detail-v1-offer-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.client-request-detail-v1-offer-metric {
  min-height: 58px;
  display: grid;
  gap: 5px;
  align-content: start;
  padding: 10px;
  border-radius: 8px;
  background: #f8faff;
}

.client-request-detail-v1-offer-metric span,
.client-request-detail-v1-form-row span {
  color: #66728f;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 800;
}

.client-request-detail-v1-offer-metric strong,
.client-request-detail-v1-form-row strong {
  min-width: 0;
  color: #111a3a;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.client-request-detail-v1-form-card {
  min-height: 168px;
}

.client-request-detail-v1-form-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(20, 35, 80, 0.12);
}

.client-request-detail-v1-form-row:first-of-type {
  margin-top: 2px;
}

.client-request-detail-v1-form-row strong {
  text-align: right;
}

.client-request-detail-v1-tab-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.client-request-detail-v1-tab-actions .client-request-detail-v1-action,
.client-request-detail-v1-tab-actions .client-request-detail-v1-action-secondary {
  min-height: 38px;
  padding: 0 15px;
  font-size: 13px;
}

.client-request-detail-v1-start-actions {
  margin-top: 12px;
}

.client-request-detail-v1-start-actions .client-page-actions {
  margin-top: 0;
}

.client-request-detail-v1-empty-panel p {
  margin: 0;
}

.client-request-detail-v1-empty-panel .client-request-detail-v1-action {
  justify-self: start;
}

@media (max-width: 1240px) {
  .client-requests-v1-main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1120px) {
  .client-requests-v1-main,
  .client-services-v1-main,
  .client-services-v1-planning-layout,
  .client-service-detail-v1-layout,
  .client-request-detail-v1-layout {
    grid-template-columns: 1fr;
  }

  .client-service-detail-v1-side,
  .client-request-detail-v1-side-column {
    position: static;
  }

  .client-requests-v1-kpi-grid,
  .client-services-v1-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .client-request-detail-v1-info-grid,
  .client-service-detail-v1-info-grid,
  .client-service-detail-v1-site-groups,
  .client-request-detail-v1-page .client-proposal-entries,
  .client-request-detail-v1-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .client-service-detail-v1-site-groups .client-service-detail-v1-source-group:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }

  .client-service-detail-v1-site-groups .client-service-detail-v1-source-group:nth-child(even) {
    border-left: 1px solid rgba(20, 35, 80, 0.12);
    padding-left: 15px;
  }
}

@media (max-width: 760px) {
  .client-requests-v1-header,
  .client-services-v1-header,
  .client-service-detail-v1-header,
  .client-requests-v1-alert,
  .client-requests-v1-panel-head,
  .client-services-v1-panel-head,
  .client-service-detail-v1-panel-head,
  .client-requests-v1-item,
  .client-services-v1-item,
  .client-request-detail-v1-header,
  .client-request-detail-v1-action-band,
  .client-request-detail-v1-card-head,
  .client-request-detail-v1-doc-card,
  .client-request-detail-v1-doc-item {
    display: grid;
  }

  .client-requests-v1-header h3,
  .client-services-v1-header h3,
  .client-service-detail-v1-header h3,
  .client-request-detail-v1-header h3 {
    font-size: 27px;
  }

  .client-requests-v1-header-actions,
  .client-services-v1-header-actions,
  .client-service-detail-v1-header-actions,
  .client-requests-v1-primary-action,
  .client-requests-v1-secondary-action,
  .client-service-detail-v1-primary-action,
  .client-service-detail-v1-secondary-action,
  .client-request-detail-v1-header-actions,
  .client-request-detail-v1-band-actions,
  .client-request-detail-v1-action,
  .client-request-detail-v1-action-secondary {
    width: 100%;
  }

  .client-requests-v1-kpi-grid,
  .client-services-v1-kpi-grid,
  .client-service-detail-v1-kpi-grid,
  .client-requests-v1-item,
  .client-services-v1-table-head,
  .client-services-v1-item,
  .client-services-v1-planning-item,
  .client-requests-v1-meta-grid,
  .client-service-detail-v1-info-grid,
  .client-service-detail-v1-contract-summary,
  .client-service-detail-v1-summary-grid,
  .client-service-detail-v1-service-groups,
  .client-service-detail-v1-site-groups,
  .client-service-detail-v1-table-head,
  .client-service-detail-v1-history-row,
  .client-request-detail-v1-info-grid,
  .client-request-detail-v1-field-grid,
  .client-request-detail-v1-offer-grid,
  .client-request-detail-v1-form-grid,
  .client-request-detail-v1-page .client-proposal-entries,
  .client-request-detail-v1-page .client-proposal-entry-summary {
    grid-template-columns: 1fr;
  }

  .client-services-v1-table-head {
    display: none;
  }

  .client-service-detail-v1-table-head {
    display: none;
  }

  .client-services-v1-actions {
    justify-content: flex-start;
  }

  .client-services-v1-view-switch,
  .client-services-v1-view-tab,
  .client-services-v1-planning-count,
  .client-services-v1-planning-reset {
    width: 100%;
  }

  .client-services-v1-planning-time,
  .client-services-v1-planning-item .client-services-v1-row-action {
    justify-self: start;
  }

  .client-requests-v1-alert {
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: start;
  }

  .client-requests-v1-alert .client-requests-v1-secondary-action,
  .client-request-detail-v1-band-actions {
    grid-column: 1 / -1;
  }

  .client-request-detail-v1-action-band {
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: start;
  }

  .client-request-detail-v1-header {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .client-service-detail-v1-header {
    grid-template-columns: 1fr;
  }

  .client-request-detail-v1-header-actions {
    grid-column: 1 / -1;
  }

  .client-service-detail-v1-header-actions {
    justify-content: stretch;
  }

  .client-service-detail-v1-source-group,
  .client-service-detail-v1-source-group:first-child,
  .client-service-detail-v1-source-group:last-child,
  .client-service-detail-v1-site-groups .client-service-detail-v1-source-group:nth-child(even) {
    padding: 12px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(20, 35, 80, 0.1);
  }

  .client-service-detail-v1-source-group:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .client-service-detail-v1-line {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .client-service-detail-v1-doc-card,
  .client-service-detail-v1-management-card {
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: start;
  }

  .client-service-detail-v1-doc-card .client-service-detail-v1-link,
  .client-service-detail-v1-doc-card > .client-service-detail-v1-muted:last-child,
  .client-service-detail-v1-management-card .client-service-detail-v1-link,
  .client-service-detail-v1-management-card .client-service-detail-v1-state-pill {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .client-service-action-center-layer {
    grid-template-columns: 1fr;
  }

  .client-service-action-center-panel {
    grid-column: 1;
    width: 100%;
    max-width: 100vw;
  }

  .client-service-action-center-header,
  .client-service-action-center-footer {
    padding: 10px 12px;
  }

  .client-service-action-center-header h3 {
    font-size: 17px;
  }

  .client-service-action-center-context,
  .client-service-action-center-body {
    padding-left: 12px;
    padding-right: 12px;
  }

  .client-service-action-center-context {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 10px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .client-service-action-center-form-grid,
  .client-service-action-center-review-grid {
    grid-template-columns: 1fr;
  }

  .client-service-action-center-body {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .client-service-action-center-choice {
    grid-template-columns: 30px minmax(0, 1fr) 16px;
    gap: 8px;
    padding: 9px;
  }

  .client-service-action-center-choice-icon {
    width: 28px;
    height: 28px;
  }

  .client-service-action-center-footer {
    align-items: stretch;
  }

  .client-service-action-center-secondary,
  .client-service-action-center-primary {
    flex: 1 1 0;
    min-width: 0;
  }

  .client-service-action-center-field input,
  .client-service-action-center-field select {
    min-height: 32px;
  }

  .client-service-action-center-field textarea {
    min-height: 68px;
  }

  .client-service-action-center-choice-icon,
  .client-service-action-center-state,
  .client-service-action-center-chevron {
    justify-self: start;
  }

  .client-request-detail-v1-doc-card {
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: start;
  }

  .client-request-detail-v1-doc-card .client-request-detail-v1-action-secondary,
  .client-request-detail-v1-doc-card > .client-page-muted:last-child {
    grid-column: 1 / -1;
    justify-self: start;
  }


@media (min-width: 520px) and (max-width: 760px) {
  .client-service-action-center-context {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-height: 700px) {
  .client-service-action-center-header,
  .client-service-action-center-footer {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .client-service-action-center-header h3 {
    margin-top: 3px;
    font-size: 16px;
  }

  .client-service-action-center-eyebrow,
  .client-service-action-center-context small,
  .client-service-action-center-selected-occurrence small {
    font-size: 9px;
  }

  .client-service-action-center-close,
  .client-service-action-center-secondary,
  .client-service-action-center-primary {
    min-height: 30px;
  }

  .client-service-action-center-close {
    width: 30px;
  }

  .client-service-action-center-context {
    gap: 5px 10px;
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .client-service-action-center-context strong,
  .client-service-action-center-selected-occurrence strong {
    font-size: 11px;
    line-height: 1.16;
  }

  .client-service-action-center-body {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .client-service-action-center-choices,
  .client-service-action-center-form-shell,
  .client-service-action-center-form,
  .client-service-action-center-form-grid,
  .client-service-action-center-review {
    gap: 7px;
  }

  .client-service-action-center-choice {
    min-height: 0;
    padding: 8px;
  }

  .client-service-action-center-choice-copy {
    gap: 2px;
  }

  .client-service-action-center-choice-copy strong {
    font-size: 12px;
  }

  .client-service-action-center-choice-copy small {
    font-size: 10px;
    line-height: 1.2;
  }

  .client-service-action-center-field {
    gap: 4px;
  }

  .client-service-action-center-field span,
  .client-service-action-center-confirmation span {
    font-size: 11px;
  }

  .client-service-action-center-field input,
  .client-service-action-center-field select {
    min-height: 30px;
  }

  .client-service-action-center-field textarea {
    min-height: 52px;
  }
}
  .client-request-detail-v1-tab-actions .client-request-detail-v1-action,
  .client-request-detail-v1-tab-actions .client-request-detail-v1-action-secondary,
  .client-request-detail-v1-offer-card .client-request-detail-v1-action {
    width: 100%;
  }
}

.client-detail-meta {
  margin-top: 8px;
  color: rgba(15, 23, 42, 0.58);
  font-size: 0.95rem;
}

/* provider-work-card: unified in LOT 10 UI Grammar above */

/* ── LOT 4 — Wizard proposal flow (mobile-first) ──────────────────────── */

html.provider-proposal-flow-scroll-lock,
body.provider-proposal-flow-scroll-lock {
  overflow: hidden;
  overscroll-behavior: none;
}

.provider-proposal-flow-overlay {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(3px);
  overflow: hidden;
  padding: 12px;
}

.provider-proposal-flow-panel {
  width: min(820px, calc(100% - 24px));
  max-height: calc(100dvh - 40px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.provider-proposal-flow-panel:focus {
  outline: none;
}

.provider-proposal-flow-panel button:focus-visible,
.provider-proposal-flow-panel input:focus-visible,
.provider-proposal-flow-panel textarea:focus-visible,
.provider-proposal-flow-panel select:focus-visible,
.provider-proposal-flow-panel [tabindex]:focus-visible {
  outline: 2px solid #0b5cab;
  outline-offset: 2px;
}

.provider-proposal-flow-header {
  display: flex;
  flex-wrap: nowrap; /* E3-03 : la × reste épinglée en haut à droite (le titre wrappe dans sa colonne) */
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px 16px;
  position: static;
  z-index: auto;
  background: transparent;
  margin: 0;
  padding: 0;
  border-bottom: none;
}

.provider-proposal-flow-header > .btn {
  align-self: flex-start;
}

.provider-proposal-flow-close-btn {
  min-width: 0; /* E3-03 : croix discrète (simple fermeture ; le « Retour » est en bas) */
  min-height: 0;
  width: 26px;
  height: 26px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  border-radius: 7px;
}

.provider-proposal-flow-heading {
  display: grid;
  gap: 2px;
  min-width: 0; /* E3-03 : le titre long wrappe au lieu de pousser la × à la ligne */
}

.provider-proposal-flow-heading h4 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
}

.provider-proposal-flow-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.54);
}

.provider-proposal-flow-steps {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.provider-proposal-flow-step {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(15, 23, 42, 0.06);
  color: rgba(15, 23, 42, 0.72);
  font-size: 11px;
  font-weight: 700;
}

.provider-proposal-flow-step.is-active {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
}

.provider-proposal-flow-step.is-done {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.18);
  color: #047857;
}

.provider-proposal-flow-alert {
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 13px;
}

.provider-proposal-flow-alert.tone-warning {
  background: rgba(245, 158, 11, 0.14);
  color: #92400e;
}

.provider-proposal-flow-alert.tone-error {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

/* LOT 50 — compact dialog: no grid, no sidebar, no cadre blocks */

.provider-proposal-flow-mission-facts {
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.provider-proposal-flow-mission-facts-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.50);
  margin-bottom: 2px;
}

.provider-proposal-flow-mission-facts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  margin: 0;
  padding: 0;
}

.provider-proposal-flow-mission-facts-item {
  display: flex;
  gap: 8px;
  padding: 2px 0;
}

.provider-proposal-flow-mission-facts-item dt {
  font-size: 11px;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.56);
  min-width: 110px;
  flex-shrink: 0;
  margin: 0;
}

.provider-proposal-flow-mission-facts-item dd {
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
}

.provider-proposal-flow-step-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* E3-03 — Modale flottante compacte SANS scroll desktop, filet mobile toléré.
   Le panel reste borné + overflow:hidden (cadre flottant, jamais plein écran) ;
   header / steps / footer sont ÉPINGLÉS (flex:0 0 auto) ; « L'essentiel » + le corps
   vivent dans -scroll-region. overflow-y:AUTO ⇒ aucune barre quand le contenu tient
   (desktop = zéro scroll, intention d'origine), barre uniquement s'il déborde (mobile).
   Aucun padding propre ici : le panel porte déjà padding-bottom + safe-area. */
.provider-proposal-flow-header,
.provider-proposal-flow-steps,
.provider-proposal-flow-footer {
  flex: 0 0 auto;
}

.provider-proposal-flow-scroll-region {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* E3-03 compaction — créneaux début|fin côte à côte (compacte service + bacs). */
.provider-proposal-flow-time-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* E3-03 compaction — blocs bacs : mobile-first 1 colonne (lisible), 2 colonnes ≥721px. */
.provider-proposal-flow-trash-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.provider-proposal-flow-trash-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(15, 23, 42, 0.03);
}

.provider-inline-trash-days {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.provider-inline-trash-day {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
}

.provider-proposal-flow-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  padding-top: 6px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.provider-proposal-flow-footer > .btn {
  flex: 0 0 auto;
  min-width: 120px;
  text-align: center;
  /* E3-03 : boutons d'action plus compacts (la base .btn = padding 1rem 2rem est trop haute ici) */
  padding: 9px 18px;
  font-size: 14px;
  min-height: 0;
}

.provider-proposal-flow-amount-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.provider-proposal-flow-amount-wrap input {
  flex: 1;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #fff;
  padding: 10px 12px;
  font: inherit;
  font-size: 16px;
  color: #0f172a;
}

.provider-proposal-flow-amount-suffix {
  font-weight: 700;
  color: rgba(15, 23, 42, 0.54);
  font-size: 14px;
}

.provider-proposal-flow-note-toggle {
  background: none;
  border: none;
  padding: 0;
  color: #3b82f6;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  text-decoration-line: underline;
}

.provider-proposal-flow-note-toggle:hover {
  color: #1d4ed8;
}

.provider-proposal-flow-note-field textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #fff;
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
  color: #0f172a;
  min-height: 44px;
  max-height: 60px;
  resize: none;
}

.provider-proposal-flow-help {
  font-size: 12px;
  color: rgba(15, 23, 42, 0.48);
  line-height: 1.35;
}

.provider-proposal-flow-conformity {
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.08);
  font-size: 12px;
  font-weight: 600;
  color: #92400e;
}

.provider-proposal-flow-review-block {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.provider-proposal-flow-review-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.50);
  margin-bottom: 4px;
}

.provider-proposal-flow-copy {
  line-height: 1.45;
  color: #1f2937;
  font-size: 13px;
}

.provider-proposal-flow-field {
  display: grid;
  gap: 3px;
  min-width: 0; /* E3-03 : cellule grille peut rétrécir (pas de débordement horizontal) */
}

.provider-proposal-flow-field span {
  font-weight: 700;
  color: #0f172a;
  font-size: 12px;
}

.provider-proposal-flow-field input {
  width: 100%;
  min-width: 0; /* E3-03 : rétrécit dans la cellule grille */
  box-sizing: border-box; /* E3-03 : padding inclus → pas de débordement horizontal */
  border-radius: 9px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #fff;
  padding: 6px 10px; /* E3-03 : champs plus compacts (date + créneaux) */
  font: inherit;
  font-size: 14px;
  color: #0f172a;
}

.provider-proposal-flow-note {
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 12px;
}

/* LOT 50 — legacy .provider-proposal-flow-actions removed, replaced by .provider-proposal-flow-footer */

.provider-proposal-flow-coflex-tarif {
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 13px;
}

.provider-proposal-flow-coflex-tarif {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.16);
  color: #047857;
}

/* provider-page-inline-action: unified in LOT 10 UI Grammar above */

/* LOT 50 — compact dialog: responsive tweaks */

/* ── Tablet/Desktop (≥721px) — centered, slightly wider ── */
@media (min-width: 721px) {
  .provider-proposal-flow-panel {
    width: min(780px, calc(100% - 48px));
    padding: 20px;
  }

  .provider-proposal-flow-mission-facts-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* E3-03 — blocs bacs côte à côte sur tablette/desktop (réduit la hauteur ⇒ no-scroll). */
  .provider-proposal-flow-trash-grid {
    grid-template-columns: 1fr 1fr;
  }

  .provider-proposal-flow-heading h4 {
    font-size: 1.15rem;
  }

  .provider-proposal-flow-footer > .btn {
    min-width: 160px;
  }
}

/* ── Desktop (>900px) — final size ── */
@media (min-width: 901px) {
  .provider-proposal-flow-overlay {
    padding: 24px;
  }

  .provider-proposal-flow-panel {
    width: min(800px, calc(100% - 48px));
    padding: 22px;
    border-radius: 20px;
  }

  .provider-proposal-flow-heading h4 {
    font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  }

  .provider-proposal-flow-steps {
    gap: 10px;
  }

  .provider-proposal-flow-step {
    padding: 8px 12px;
    font-size: 12px;
    gap: 6px;
  }
}

@media (max-width: 720px) {
  .client-home-situation-grid,
  .client-request-card-meta,
  .provider-home-situation-grid,
  .provider-work-card-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .provider-proposal-flow-overlay {
    padding: 10px;
  }

  .provider-proposal-flow-panel {
    width: min(100%, calc(100% - 20px));
    max-height: calc(100dvh - 40px); /* E3-03 : marge haut/bas visible aussi en mobile (~20px/côté) */
    gap: 6px;
    padding: 14px;
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    border-radius: 16px;
  }

  .provider-proposal-flow-header {
    gap: 8px 12px;
  }

  .provider-proposal-flow-heading h4 {
    font-size: 1rem;
    line-height: 1.25;
  }

  .provider-proposal-flow-steps {
    gap: 4px;
  }

  .provider-proposal-flow-step {
    padding: 4px 8px;
    font-size: 10px;
  }

  .provider-proposal-flow-mission-facts,
  .provider-proposal-flow-review-block {
    padding: 7px 8px;
  }

  .provider-proposal-flow-mission-facts-title,
  .provider-proposal-flow-review-title {
    margin-bottom: 3px;
  }

  .provider-proposal-flow-mission-facts-item {
    gap: 6px;
    padding: 1px 0;
  }

  .provider-proposal-flow-mission-facts-item dt {
    min-width: 96px;
    font-size: 10px;
  }

  .provider-proposal-flow-mission-facts-item dd {
    font-size: 11px;
  }

  .provider-proposal-flow-step-body {
    gap: 6px;
  }

  .provider-proposal-flow-copy,
  .provider-proposal-flow-field span,
  .provider-proposal-flow-coflex-tarif,
  .provider-inline-planning-selection,
  .provider-proposal-flow-conformity {
    font-size: 12px;
  }

  .provider-proposal-flow-help {
    font-size: 11px;
  }

  .provider-proposal-flow-amount-wrap input,
  .provider-proposal-flow-field input {
    padding: 9px 10px;
  }

  .provider-proposal-flow-note-field textarea {
    min-height: 40px;
    max-height: 52px;
    padding: 7px 9px;
  }

  .provider-proposal-flow-footer {
    gap: 6px;
    padding-top: 4px;
  }

  .provider-proposal-flow-footer > .btn {
    min-width: 118px;
  }

  .provider-inline-day-grid {
    gap: 5px;
  }

  .provider-inline-day-btn {
    min-width: 40px;
    padding: 7px 8px;
    font-size: 12px;
  }
}

/* ── Inline planning picker (mobile-first) ─────────────────────────── */
.provider-inline-planning-picker {
  display: grid;
  gap: 10px;
}

.provider-inline-day-grid {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.provider-inline-day-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 2px solid rgba(15, 23, 42, 0.14);
  background: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 13px;
  color: #0f172a;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.provider-inline-day-btn:hover:not(:disabled) {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.06);
}

.provider-inline-day-btn.provider-inline-day-selected {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

.provider-inline-day-btn.provider-inline-day-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: rgba(248, 250, 252, 0.6);
}

.provider-inline-planning-selection {
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.14);
  font-size: 13px;
  color: #1e40af;
}

@media (min-width: 901px) {
  .provider-inline-day-grid {
    gap: 8px;
  }

  .provider-inline-day-btn {
    min-width: 48px;
    padding: 8px 12px;
    border-radius: 10px;
  }

  .provider-inline-planning-selection {
    padding: 10px 14px;
    border-radius: 14px;
  }
}

.app-status-badge,
.client-status-badge,
.provider-status-badge,
.admin-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.app-status-badge.tone-info,
.client-status-badge.tone-info,
.provider-status-badge.tone-info,
.admin-status-badge.tone-info {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

.app-status-badge.tone-warning,
.client-status-badge.tone-warning,
.provider-status-badge.tone-warning,
.admin-status-badge.tone-warning {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}

.app-status-badge.tone-success,
.client-status-badge.tone-success,
.provider-status-badge.tone-success,
.admin-status-badge.tone-success {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.app-status-badge.tone-danger,
.client-status-badge.tone-danger,
.provider-status-badge.tone-danger,
.admin-status-badge.tone-danger {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.app-status-badge.tone-neutral,
.client-status-badge.tone-neutral,
.provider-status-badge.tone-neutral,
.admin-status-badge.tone-neutral {
  background: rgba(15, 23, 42, 0.08);
  color: #334155;
}

.shell-mode-banner {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  font-size: 0.93rem;
  line-height: 1.4;
}

.shell-mode-banner.tone-info {
  background: rgba(14, 116, 144, 0.08);
  color: #0f4c5c;
  border-color: rgba(14, 116, 144, 0.18);
}

.shell-mode-banner.tone-success {
  background: rgba(22, 101, 52, 0.08);
  color: #166534;
  border-color: rgba(22, 101, 52, 0.18);
}

.shell-mode-banner.tone-warning {
  background: rgba(180, 83, 9, 0.08);
  color: #92400e;
  border-color: rgba(180, 83, 9, 0.18);
}

.shell-mode-banner.tone-danger {
  background: rgba(153, 27, 27, 0.08);
  color: #991b1b;
  border-color: rgba(153, 27, 27, 0.18);
}

@media (max-width: 720px) {
  .app-page-header,
  .client-page-header,
  .provider-page-header,
  .admin-page-header,
  .app-page-list-head,
  .client-page-list-head,
  .provider-page-list-head,
  .admin-page-list-head {
    flex-direction: column;
  }

  .app-page-filters,
  .client-page-filters,
  .provider-page-filters,
  .admin-page-filters {
    flex-direction: column;
  }
}

/* ----------------------------------------------------------------
   Billing admin — scrollable tables, inline filters
   ---------------------------------------------------------------- */
.admin-billing-scroll-container {
  max-height: 340px;
  overflow-y: auto;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  margin-top: 8px;
}

.admin-billing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  line-height: 1.4;
}

.admin-billing-table thead {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
}

.admin-billing-table th {
  padding: 6px 8px;
  text-align: left;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.68);
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
  white-space: nowrap;
}

.admin-billing-table td {
  padding: 5px 8px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  vertical-align: top;
}

.admin-billing-table tbody tr:hover {
  background: rgba(15, 23, 42, 0.02);
}

.admin-billing-table tbody tr.tone-error {
  background: rgba(220, 38, 38, 0.06);
}

.admin-billing-table tbody tr.tone-warning {
  background: rgba(245, 158, 11, 0.06);
}

.admin-billing-table.admin-billing-nested {
  font-size: 0.78rem;
}

.admin-billing-table.admin-billing-nested th {
  background: #f1f5f9;
}

.admin-billing-detail {
  margin: 4px 0;
}

.admin-billing-detail summary {
  cursor: pointer;
  user-select: none;
}

.admin-billing-inline-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin: 8px 0;
}

.admin-billing-filter-input {
  font-size: 0.82rem;
  padding: 4px 8px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 6px;
  min-width: 100px;
  max-width: 180px;
}

/* ---- A2: Queue tabs (Sales + Execution) ---- */

.admin-queue-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.admin-queue-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 20px;
  background: #fff;
  font-size: 0.84rem;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.admin-queue-tab:hover {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.25);
}

.admin-queue-tab.is-active {
  background: #1e293b;
  color: #fff;
  border-color: #1e293b;
}

.admin-queue-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.08);
  color: #475569;
}

.admin-queue-tab.is-active .admin-queue-count {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* ---- A2: Context line ---- */

.admin-context-line {
  font-size: 0.82rem;
  color: #64748b;
  padding: 6px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  margin-bottom: 10px;
}

/* ---- A2: Age indicator ---- */

.admin-age-indicator {
  font-weight: 600;
  color: #b45309;
}

/* ---- A2: Card variants ---- */

.admin-card-warning {
  border-left: 3px solid #f59e0b;
}

.admin-card-info {
  border-left: 3px solid #3b82f6;
}

/* ---- A2: Day group headers (Execution interventions) ---- */

.admin-day-group {
  margin-bottom: 8px;
}

.admin-day-group-title {
  margin: 0 0 8px 0;
  font-size: 0.92rem;
}

/* Header public (strict style-only polish, structure unchanged) */
.site-header {
  background: #0057e7;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 76px;
  padding: 0;
}

.header-row {
  max-width: 1240px;
  min-height: 76px;
  padding: 0 24px;
  gap: 28px;
}

.header-main {
  gap: 24px;
}

.brand {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-logo {
  height: 52px;
  max-width: min(320px, 32vw);
}

.top-nav {
  gap: 8px;
}

.top-nav-primary {
  justify-content: flex-start;
}

.top-nav-secondary {
  margin-left: auto;
  gap: 12px;
}

.nav-link {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 600;
  color: #ffffff;
  opacity: 1;
  transition: background 140ms ease, color 140ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 600;
}

.billing-v1-page {
  gap: 18px;
}

.billing-v1-header {
  gap: 18px;
  align-items: center;
}

.billing-v1-header h3 {
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}

.billing-v1-header .client-page-muted {
  max-width: 760px;
  font-size: 15px;
}

.billing-v1-toolbar {
  display: flex;
  justify-content: flex-end;
}

.billing-v1-month-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.billing-v1-month-picker {
  position: relative;
  min-width: 178px;
}

.billing-v1-month-trigger,
.billing-v1-month-nav {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #0f172a;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.billing-v1-month-trigger {
  width: 100%;
  padding: 0 14px;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  text-transform: lowercase;
}

.billing-v1-month-nav {
  width: 42px;
  text-decoration: none;
}

.billing-v1-month-trigger:hover,
.billing-v1-month-trigger:focus-visible,
.billing-v1-month-nav:hover,
.billing-v1-month-nav:focus-visible {
  background: rgba(15, 23, 42, 0.04);
}

.billing-v1-month-trigger svg,
.billing-v1-month-nav svg {
  width: 18px;
  height: 18px;
  color: rgba(15, 23, 42, 0.72);
  flex: 0 0 auto;
}

.billing-v1-month-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.billing-v1-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.billing-v1-kpi {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
  display: grid;
  gap: 12px;
}

.billing-v1-kpi.is-green {
  background: linear-gradient(180deg, rgba(240, 253, 244, 0.96), #fff 60%);
}

.billing-v1-kpi.is-blue {
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.96), #fff 60%);
}

.billing-v1-kpi.is-violet {
  background: linear-gradient(180deg, rgba(245, 243, 255, 0.98), #fff 60%);
}

.billing-v1-kpi.is-orange {
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.98), #fff 60%);
}

.billing-v1-kpi.is-slate {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), #fff 60%);
}

.billing-v1-kpi-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.billing-v1-kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
}

.billing-v1-kpi-icon svg {
  width: 22px;
  height: 22px;
}

.billing-v1-kpi.is-green .billing-v1-kpi-icon {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}

.billing-v1-kpi.is-blue .billing-v1-kpi-icon {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
}

.billing-v1-kpi.is-violet .billing-v1-kpi-icon {
  background: rgba(139, 92, 246, 0.12);
  color: #8b5cf6;
}

.billing-v1-kpi.is-orange .billing-v1-kpi-icon {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
}

.billing-v1-kpi.is-slate .billing-v1-kpi-icon {
  background: rgba(71, 85, 105, 0.1);
  color: #475569;
}

.billing-v1-kpi-label {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.billing-v1-kpi-amount {
  margin: 0;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0;
}

.billing-v1-kpi.is-green .billing-v1-kpi-amount {
  color: #16a34a;
}

.billing-v1-kpi.is-blue .billing-v1-kpi-amount {
  color: #2563eb;
}

.billing-v1-kpi.is-violet .billing-v1-kpi-amount {
  color: #8b5cf6;
}

.billing-v1-kpi.is-orange .billing-v1-kpi-amount {
  color: #f59e0b;
}

.billing-v1-kpi.is-slate .billing-v1-kpi-amount {
  color: #334155;
}

.billing-v1-kpi-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  color: rgba(15, 23, 42, 0.68);
  font-size: 13px;
}

.billing-v1-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.billing-v1-chip.is-success {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

.billing-v1-chip.is-info {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
}

.billing-v1-chip.is-neutral {
  background: rgba(15, 23, 42, 0.08);
  color: #334155;
}

.billing-v1-chip.is-warning {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
}

.billing-v1-chip.is-danger {
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
}

.billing-v1-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(320px, 0.92fr);
  gap: 16px;
  align-items: start;
}

.billing-v1-card {
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.04);
  display: grid;
  gap: 16px;
}

.billing-v1-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.billing-v1-card-head h4 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0;
}

.billing-v1-card-lead {
  margin: -4px 0 0;
  color: rgba(15, 23, 42, 0.68);
  font-size: 14px;
  line-height: 1.55;
}

.billing-v1-card-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.billing-v1-table-wrap {
  overflow-x: auto;
}

.billing-v1-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.billing-v1-table th,
.billing-v1-table td {
  padding: 14px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.billing-v1-table th {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.54);
}

.billing-v1-table tbody tr:hover {
  background: rgba(248, 250, 252, 0.92);
}

.billing-v1-actions {
  display: inline-flex;
  gap: 8px;
}

.billing-v1-icon-button {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  background: #fff;
  color: #475569;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.billing-v1-icon-button svg {
  width: 16px;
  height: 16px;
}

.billing-v1-icon-button:disabled {
  opacity: 0.4;
  cursor: default;
}

.billing-v1-table-footer {
  padding-top: 6px;
  text-align: center;
}

.billing-v1-empty-state {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px dashed rgba(15, 23, 42, 0.16);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.82);
}

.billing-v1-empty-state strong {
  font-size: 15px;
}

.billing-v1-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 700;
}

.billing-v1-link:hover,
.billing-v1-link:focus-visible {
  text-decoration: none;
}

.billing-v1-contract-list {
  display: grid;
  gap: 12px;
}

.billing-v1-impact-note {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
}

.billing-v1-contract-item {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.8), rgba(255, 255, 255, 0.98));
}

.billing-v1-contract-item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.billing-v1-contract-item-title {
  display: grid;
  gap: 2px;
}

.billing-v1-contract-item-title strong {
  font-size: 16px;
  line-height: 1.2;
}

.billing-v1-contract-item-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.95), rgba(255, 255, 255, 0.96));
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.billing-v1-contract-item-meta svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.billing-v1-contract-item-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.billing-v1-contract-cell {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.billing-v1-contract-cell-label {
  color: rgba(15, 23, 42, 0.56);
  font-size: 12px;
}

.billing-v1-contract-cell-value {
  font-size: 14px;
  line-height: 1.5;
  color: #0f172a;
}

.billing-v1-adjustment-counters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.billing-v1-adjustment-counter {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
}

.billing-v1-adjustment-counter strong {
  font-size: 20px;
  line-height: 1;
}

.billing-v1-adjustment-counter span {
  color: rgba(15, 23, 42, 0.58);
  font-size: 12px;
}

.billing-v1-adjustment-list {
  display: grid;
  gap: 10px;
}

.billing-v1-adjustment-item {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  background: rgba(255, 251, 235, 0.58);
}

.billing-v1-adjustment-item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.billing-v1-adjustment-title {
  display: grid;
  gap: 4px;
}

.billing-v1-adjustment-title strong {
  font-size: 15px;
}

.billing-v1-adjustment-meta,
.billing-v1-adjustment-note {
  color: rgba(15, 23, 42, 0.64);
  font-size: 13px;
  line-height: 1.45;
}

.billing-v1-adjustment-amount {
  color: #92400e;
  font-size: 14px;
  font-weight: 800;
}

.billing-v1-cycle-list {
  display: grid;
  gap: 12px;
}

.billing-v1-cycle-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.billing-v1-cycle-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.billing-v1-cycle-row span {
  color: rgba(15, 23, 42, 0.62);
  font-size: 13px;
}

.billing-v1-cycle-row strong {
  max-width: 58%;
  text-align: right;
  font-size: 14px;
  line-height: 1.45;
}

.billing-v1-card-actions {
  padding-top: 4px;
  display: flex;
  justify-content: flex-start;
}

.billing-v1-manage-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  text-align: center;
  border-radius: 12px;
  border: 1px solid #2563eb;
  background: #fff;
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}

.billing-v1-manage-link:hover,
.billing-v1-manage-link:focus-visible {
  background: rgba(37, 99, 235, 0.06);
}

.billing-v1-footer-note {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: rgba(15, 23, 42, 0.62);
  font-size: 13px;
}

.billing-v1-footer-note svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 1100px) {
  .billing-v1-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .billing-v1-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .billing-v1-header {
    align-items: stretch;
  }

  .billing-v1-toolbar {
    justify-content: flex-start;
  }

  .billing-v1-month-switcher {
    width: 100%;
  }

  .billing-v1-month-picker {
    flex: 1 1 auto;
    min-width: 0;
  }

  .billing-v1-kpis {
    grid-template-columns: 1fr;
  }

  .billing-v1-card-head h4 {
    font-size: 20px;
  }

  .billing-v1-adjustment-counters {
    grid-template-columns: 1fr;
  }

  .billing-v1-cycle-row {
    display: grid;
    gap: 4px;
  }

  .billing-v1-cycle-row strong {
    max-width: none;
    text-align: left;
  }

  .billing-v1-contract-item-grid {
    grid-template-columns: 1fr;
  }
}

.nav-link:focus-visible {
  outline: 2px solid #31c6ee;
  outline-offset: 2px;
}

.nav-link.btn-pro,
.btn-pro {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: #ffffff !important;
  color: #0057e7 !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  font-weight: 700 !important;
}

.nav-link.btn-pro:hover,
.btn-pro:hover,
.nav-link.btn-pro:focus-visible,
.btn-pro:focus-visible {
  background: #f2f7fb !important;
  color: #0057e7 !important;
}

.mobile-nav-trigger {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.92);
}

.mobile-nav-trigger:hover,
.mobile-nav-trigger:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 600;
}

@media (max-width: 980px) {
  .site-header {
    min-height: 70px;
  }

  .header-row {
    min-height: 70px;
    padding: 0 16px;
    gap: 14px;
  }

  .brand-logo {
    height: 46px;
    max-width: min(280px, 42vw);
  }
}

@media (max-width: 860px) {
  .site-header {
    min-height: 64px;
  }

  .header-row {
    min-height: 64px;
    padding: 0 14px;
    gap: 10px;
  }

  .brand-logo {
    height: 42px;
    max-width: min(230px, 62vw);
  }
}

/* ============================================================
   PUB-09 (QA Lot C) — Mobile CTA legibility & containment
   ------------------------------------------------------------
   The home hero card CTAs, service-card CTAs, and public CTA
   action rows historically inherited "white-space: nowrap"
   from their button base styles. On narrow screens (≤ 640px),
   the labels overflowed or got clipped (e.g. "Lancer ma
   demande", "Voir le service"). We allow the text to wrap
   gracefully, keep it within the parent width, and centre it
   so the buttons still look polished on small screens.
   No layout change above 640px. */
@media (max-width: 640px) {
  #hero-home .hero-home-service-card .btn-card-cta,
  .service-body .btn-card-cta,
  .public-page-cta-actions .btn {
    white-space: normal;
    word-break: break-word;
    text-align: center;
    line-height: 1.25;
    max-width: 100%;
    min-width: 0;
  }

  /* Stack public CTA actions on phones so the buttons keep
     their full width and stay tappable instead of squashing. */
  .public-page-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .public-page-cta-actions .btn {
    width: 100%;
  }
}


/* =========================================================================
   LOT 10A-1 — plancher anti-zoom iOS : contrôles de formulaire >= 16px sur mobile.
   iOS Safari (moteur WebKit, tous navigateurs iOS) zoome au focus d'un champ <16px.
   Plancher global (cat. A sans font-size + cat. C inline sans font-size) + override
   des 6 règles <16px (mobile-bound : desktop garde 12/13/14px). Placé en fin de fichier
   => gagne par ordre source à spécificité égale. 0 migration. Voir docs/chantier-lot10*.
   ========================================================================= */
@media (max-width: 640px) {
  input, select, textarea { font-size: 16px; }
  .client-workspace-v1-page input,
  .client-workspace-v1-page select,
  .client-workspace-v1-page textarea,
  .client-account-v1-form-field input[type="text"],
  .client-account-v1-form-field input[type="email"],
  .client-account-v1-form-field input[type="tel"],
  .client-service-action-center-field input,
  .client-service-action-center-field select,
  .client-service-action-center-field textarea,
  .provider-proposal-flow-field input,
  .provider-proposal-flow-note-field textarea,
  .admin-billing-filter-input { font-size: 16px; }
}
