/* ============================================================
   SIGNUP-CORPORATE.CSS
   Split-panel corporate registration — left hero + right form
   5-step wizard: Entreprise → Beneficiaires → Gestionnaire → Paiement → Finalisation
   ============================================================ */

/* ═══════════════════════════════════════════
   SPLIT LAYOUT
   ═══════════════════════════════════════════ */

.signup-corp-split {
  display: grid;
  grid-template-columns: min(440px, 38%) 1fr;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ═══════════════════════════════════════════
   LEFT PANEL — Dark corporate hero
   ═══════════════════════════════════════════ */

.scl-panel {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  background:
    radial-gradient(ellipse 70% 50% at 25% 15%, rgba(30,6,74,0.5) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 75% 85%, rgba(96,4,61,0.2) 0%, transparent 55%),
    linear-gradient(170deg, #080318 0%, #0f0630 30%, #170c3a 60%, #0a0220 100%);
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  overflow: hidden;
}

/* Subtle grid pattern overlay */
.scl-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* ── Brand top ── */
.scl-top {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.scl-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.25s, transform 0.25s;
}
.scl-brand:hover { opacity: 0.75; transform: scale(0.97); }
.scl-logo {
  height: 56px;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

/* ── Center content ── */
.scl-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  position: relative;
  z-index: 1;
}

/* ── Decorative corporate building icon ── */
.scl-hero-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(96,4,61,0.25), rgba(30,6,74,0.4));
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  animation: scl-float 5s ease-in-out infinite;
}
.scl-hero-icon svg {
  width: 36px;
  height: 36px;
}

@keyframes scl-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.scl-hero-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  text-align: center;
  letter-spacing: -0.3px;
  line-height: 1.3;
}

.scl-hero-desc {
  /* Blanc à 35 % sur fond nuit ≈ 3:1 (mesuré sur les captures du tour 1) : relevé à 68 %
     (≥ 4,5:1 sur la teinte la plus claire du dégradé, #170c3a + voile prune). */
  color: rgba(255,255,255,0.68);
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
  max-width: 300px;
}

/* ═══════════════════════════════════════════
   LEFT PANEL — Stepper
   ═══════════════════════════════════════════ */

.scl-stepper {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
  padding-bottom: 24px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.scl-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-width: 48px;
}

/* Rangée des pastilles (lot 13, R1.11, correction tour 1). */
.scl-step-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
}

/* Lot 13 (R1.11, correction tour 1) — les cinq libellés en capitales ne tiennent pas, lisibles,
   dans la rangée (372 px à 1440) : ils tombaient à 9 px (1440 et plus), 8 px (768-1024) et
   6,5 px avec points de suspension (1025-1280). Ils restent dans le DOM pour les lecteurs
   d'écran (et en `title` sur chaque pastille), visuellement masqués à TOUTES les largeurs ;
   l'étape courante est dite en une ligne de 12 px par .scl-step-current. */
.scl-step-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.scl-step-current {
  margin: 14px 0 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.2px;
  color: rgba(255,255,255,0.92);
  text-align: center;
}

.scl-step-badge {
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  font-family: 'Bricolage Grotesque', sans-serif;
  transition: all 0.3s;
  flex-shrink: 0;
}
.scl-step-item.active .scl-step-badge {
  background: linear-gradient(135deg, #CD333E, #60043D);
  color: white;
  box-shadow: 0 4px 16px rgba(205,51,62,0.35);
}
.scl-step-item.inactive .scl-step-badge {
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.08);
}
.scl-step-item.done .scl-step-badge {
  background: rgba(52,211,153,0.15);
  color: #34d399;
  border: 1px solid rgba(52,211,153,0.2);
}

.scl-step-line {
  height: 2px;
  flex: 1;
  background: rgba(255,255,255,0.06);
  margin: 17px 4px 0;
  transition: background 0.3s;
  min-width: 6px;
}
.scl-step-line.active {
  background: linear-gradient(90deg, #CD333E, #60043D);
}

/* ═══════════════════════════════════════════
   RIGHT PANEL — Form area
   ═══════════════════════════════════════════ */

.scr-panel {
  background: rgba(255,255,255,0.03);
  overflow-y: auto;
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
}

/* ── Header ── */
.scr-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
  animation: scrFadeIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.scr-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.3px;
  margin: 0;
}

.scr-subtitle {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* ── Login button ── */
.scr-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px 10px 18px;
  border-radius: 50px;
  background: linear-gradient(135deg, #CD333E 0%, #60043D 55%, #1E064A 100%);
  border: none;
  color: white;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: 0.3px;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(205,51,62,0.2);
}
.scr-login-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s;
}
.scr-login-btn:hover::before { left: 100%; }
.scr-login-btn svg,
.scr-login-btn span { position: relative; z-index: 1; }
.scr-login-btn:hover {
  box-shadow: 0 8px 28px rgba(205,51,62,0.35);
  transform: translateY(-2px);
}

/* ── Entrance animation ── */
@keyframes scrFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════
   FORM STEP CARDS
   ═══════════════════════════════════════════ */

.scr-step {
  display: none;
  animation: scrFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.scr-step.active {
  display: block;
}

.scr-card {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(30,6,74,0.04);
  margin-bottom: 20px;
}

.scr-card-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 6px;
  padding-left: 16px;
  border-left: 3px solid #CD333E;
  line-height: 1.3;
}

.scr-card-hint {
  font-size: 12px;
  color: var(--text-dim);
  margin: 0 0 24px;
  padding-left: 16px;
}

/* Sub-section headings (blue accent like images) */
.scr-section-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--red-light);
  margin: 0 0 16px;
  padding: 10px 16px;
  background: rgba(96,4,61,0.03);
  border: 1px solid rgba(96,4,61,0.08);
  border-radius: 10px;
  letter-spacing: 0.2px;
}

/* ═══════════════════════════════════════════
   FORM — Labels, Inputs, Selects
   ═══════════════════════════════════════════ */

.scr-label {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
  margin-bottom: 6px;
}
.scr-label.required::after {
  content: ' *';
  color: #CD333E;
}

.scr-input,
.scr-select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: 10px;
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  transition: border-color 0.25s, box-shadow 0.25s;
  box-sizing: border-box;
}
.scr-input:focus,
.scr-select:focus {
  border-color: #CD333E;
  box-shadow: 0 0 0 3px rgba(205,51,62,0.08);
  outline: none;
}
.scr-input::placeholder {
  color: var(--text-dim);
}

.scr-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236b6578' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* Grid helpers */
.scr-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
}
.scr-grid-2 { grid-template-columns: 1fr 1fr; }
.scr-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.scr-grid-auto { grid-template-columns: auto 1fr; }

.scr-field { min-width: 0; }

/* ═══════════════════════════════════════════
   BENEFICIARY BLOCKS (Step 2)
   ═══════════════════════════════════════════ */

.scr-benef-block {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 16px;
  position: relative;
  transition: border-color 0.25s;
}
.scr-benef-block:hover {
  border-color: rgba(96,4,61,0.12);
}

.scr-benef-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.scr-benef-label {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--red-light);
}
.scr-benef-remove {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--navy-border);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.scr-benef-remove:hover {
  border-color: rgba(205,51,62,0.3);
  color: #CD333E;
  background: rgba(205,51,62,0.04);
}
.scr-benef-remove:focus-visible {
  outline: 2px solid #CD333E;
  outline-offset: 2px;
}
.scr-benef-remove svg {
  width: 14px;
  height: 14px;
}

/* Hidden fields when type=Aucun */
.scr-benef-fields {
  display: none;
}
.scr-benef-fields.visible {
  display: block;
}

/* Add beneficiary button */
.scr-add-benef-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 2px dashed var(--navy-border);
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  margin-bottom: 20px;
  /* 44 px à toutes les largeurs (lot 13, R1.11, correction tour 1 : mesuré 43,5 px). */
  min-height: 44px;
}
.scr-add-benef-btn:hover {
  border-color: rgba(96,4,61,0.25);
  color: var(--red-light);
  background: rgba(96,4,61,0.02);
}
.scr-add-benef-btn svg {
  width: 16px;
  height: 16px;
}

/* ═══════════════════════════════════════════
   DIRIGEANTS ET MANDATAIRES SOCIAUX (Step 2) — lot 13, R1.11
   Classes PROPRES (jamais scr-benef-*) ; CSS explicite (Tailwind du front client gelé).
   ═══════════════════════════════════════════ */

.scr-officers-card {
  margin-top: 16px;
}

/* <fieldset> remis à zéro : sans min-inline-size:0, padding et bordure par défaut,
   il était plus étroit que le bloc bénéficiaire voisin à 360 px (262 contre 282 px). */
.scr-officer-block {
  min-inline-size: 0;
  min-width: 0;
  margin: 0 0 16px;
  padding: 24px;
  border: 1px solid var(--navy-border);
  border-radius: 14px;
  background: var(--navy-card);
  position: relative;
  transition: border-color 0.25s;
}
.scr-officer-block:hover {
  border-color: rgba(96,4,61,0.12);
}

.scr-officer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  min-height: 30px;
}
.scr-officer-label {
  float: none;
  padding: 0;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--red-light);
}

.scr-officer-remove {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 8px;
  border: 1px solid var(--navy-border);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.scr-officer-remove:hover {
  border-color: rgba(205,51,62,0.3);
  color: #CD333E;
  background: rgba(205,51,62,0.04);
}
.scr-officer-remove:focus-visible {
  outline: 2px solid #CD333E;
  outline-offset: 2px;
}
.scr-officer-remove svg {
  width: 14px;
  height: 14px;
}
.scr-officer-remove[hidden] {
  display: none;
}

/* La rangée est un <label> qui contient la case : toute sa surface bascule la case. */
.scr-officer-legal {
  padding: 8px 0 0;
  align-items: flex-start;
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
}
.scr-officer-legal .scr-checkbox-text {
  cursor: pointer;
}
.scr-officer-legal.has-error .scr-checkbox-text {
  color: #fca5a5;
}
.scr-officer-legal-hint {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
}

.scr-officer-add:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* Erreur de la carte : #991B1B sur rgba(239,68,68,0.12) = 7,4:1. */
.scr-officers-error {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(239,68,68,0.12);
  color: #fca5a5;
  border: 1px solid rgba(239,68,68,0.35);
  font-size: 13px;
  line-height: 1.5;
}
.scr-officers-error[hidden] {
  display: none;
}

.scr-officers-privacy {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 4px 0 0;
}
.scr-officers-privacy svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Navigation de l'étape 2, sortie de la carte des bénéficiaires (deux cartes au-dessus). */
.scr-step-nav {
  margin-top: 8px;
}
.scr-step-nav .scr-nav-row {
  margin-top: 0;
}

/* Étape 5 : le compte existe mais le dossier n'est pas enregistré. #3D3652 sur #F8F7FB ≥ 10:1. */
.scr-signup-suivi {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--navy-border);
  color: var(--text-main);
  font-size: 13px;
  line-height: 1.6;
}
.scr-signup-suivi[hidden] {
  display: none;
}
.scr-signup-suivi a {
  display: inline-block;
  color: var(--red-light);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ═══════════════════════════════════════════
   FILE UPLOAD (Step 3 — Justificatifs)
   ═══════════════════════════════════════════ */

.scr-upload-zone {
  border: 2px dashed var(--navy-border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.25s;
  cursor: pointer;
  background: rgba(255,255,255,0.03);
  margin-bottom: 16px;
}
.scr-upload-zone:hover {
  border-color: rgba(96,4,61,0.2);
  background: rgba(96,4,61,0.02);
}
.scr-upload-zone.has-file {
  border-color: rgba(52,211,153,0.3);
  background: rgba(52,211,153,0.03);
}

.scr-upload-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
  border-radius: 10px;
  background: rgba(96,4,61,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red-light);
}
.scr-upload-icon svg {
  width: 20px;
  height: 20px;
}

.scr-upload-text {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 4px;
}
.scr-upload-hint {
  font-size: 11px;
  color: var(--text-dim);
  margin: 0;
}
.scr-upload-filename {
  font-size: 12px;
  font-weight: 700;
  color: var(--success);
  margin-top: 8px;
  display: none;
}
.scr-upload-zone.has-file .scr-upload-filename {
  display: block;
}
.scr-upload-zone.has-file .scr-upload-icon {
  background: rgba(52,211,153,0.1);
  color: var(--success);
}

.scr-upload-input {
  display: none;
}

/* ═══════════════════════════════════════════
   CHECKBOXES (Legal)
   ═══════════════════════════════════════════ */

.scr-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
}
.scr-checkbox-row + .scr-checkbox-row {
  border-top: 1px solid var(--navy-border);
}

.scr-checkbox {
  width: 20px;
  height: 20px;
  accent-color: #CD333E;
  flex-shrink: 0;
  margin-top: 1px;
  cursor: pointer;
  /* Lot 13 (R1.11, correction tour 1) — le reset « forms » de Tailwind (output.css) pose
     `appearance: none` (accent-color sans effet) et peint la case cochée avec `currentColor`,
     bleu #2563eb par défaut : la couleur de marque est donc portée par `color`, la bordure
     relevée à 3:1 au moins sur blanc, l'anneau de focus aux couleurs de la page. */
  color: #CD333E;
  border-color: var(--grey);
  border-radius: 5px;
}
.scr-checkbox:focus {
  --tw-ring-color: #CD333E;
}

.scr-checkbox-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.scr-checkbox-text a {
  color: var(--red-light);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.scr-checkbox-text a:hover {
  color: #CD333E;
}

/* Cases de consentement de l'étape 3 (lot 13, R1.11, correction tour 2) : le libellé ne
   contient AUCUN lien (un lien dans un <label> se dispute le clic avec la case) ; le
   document se lit par un lien propre, sous le libellé. */
.scr-consent-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.scr-consent-body > label.scr-checkbox-text {
  display: block;
  align-self: stretch;
  cursor: pointer;
}
.scr-consent-doc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--red-light);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.scr-consent-doc:hover {
  color: #CD333E;
}
.scr-consent-doc:focus-visible {
  outline: 2px solid #CD333E;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ═══════════════════════════════════════════
   FORM — Navigation buttons
   ═══════════════════════════════════════════ */

.scr-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  gap: 12px;
}

.scr-btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  border: 1px solid var(--navy-border);
  background: transparent;
  color: var(--text-muted);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}
.scr-btn-back:hover {
  border-color: rgba(205,51,62,0.3);
  color: #CD333E;
}
.scr-btn-back svg {
  width: 16px;
  height: 16px;
}

.scr-btn-next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #CD333E 0%, #60043D 55%, #1E064A 100%);
  color: white;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 24px rgba(205,51,62,0.18);
  position: relative;
  overflow: hidden;
}
.scr-btn-next::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transition: left 0.5s;
}
.scr-btn-next:hover::before { left: 100%; }
.scr-btn-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(205,51,62,0.28);
}
.scr-btn-next:active {
  transform: translateY(0) scale(0.97);
}
.scr-btn-next svg {
  width: 16px;
  height: 16px;
}

.scr-btn-cancel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  border: 1px solid var(--navy-border);
  background: transparent;
  color: var(--text-muted);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s;
}
.scr-btn-cancel:hover {
  border-color: rgba(205,51,62,0.3);
  color: #CD333E;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */

.scr-footer {
  color: var(--text-dim);
  font-size: 12px;
  margin-top: 32px;
  padding-bottom: 16px;
  text-align: center;
}

/* Hidden utility */
.hidden { display: none !important; }

/* ═══════════════════════════════════════════
   RESPONSIVE — Small desktop (1025–1280px)
   Left panel narrower, grids adapt, tighter spacing
   ═══════════════════════════════════════════ */

@media (min-width: 1025px) and (max-width: 1280px) {
  .signup-corp-split {
    grid-template-columns: min(400px, 37%) 1fr;
  }

  .scl-panel {
    padding: 24px 20px;
  }

  .scl-hero-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }
  .scl-hero-icon svg {
    width: 26px;
    height: 26px;
  }

  .scl-hero-title {
    font-size: 16px;
  }

  .scl-hero-desc {
    font-size: 11.5px;
    max-width: 240px;
  }

  .scl-center {
    gap: 18px;
  }

  /* Stepper — compact but fully visible */
  .scl-stepper {
    padding-bottom: 16px;
    margin-bottom: 4px;
  }
  .scl-step-item {
    min-width: 32px;
  }
  .scl-step-badge {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }
  .scl-step-line {
    margin-top: 14px;
    min-width: 6px;
  }

  .scr-panel {
    padding: 32px 32px;
  }

  .scr-card {
    padding: 26px 24px;
  }

  .scr-title {
    font-size: 22px;
  }

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

  .scr-grid {
    gap: 12px;
  }

  .scr-input,
  .scr-select {
    height: 42px;
    font-size: 13px;
  }

  .scr-label {
    font-size: 10px;
    letter-spacing: 1px;
  }

  .scr-benef-block {
    padding: 20px;
  }

  .scr-officer-block {
    padding: 20px;
  }

  .scr-btn-next,
  .scr-btn-back {
    padding: 10px 20px;
    font-size: 13px;
  }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — Medium desktop (1281–1440px)
   Slight compression, still 2-panel
   ═══════════════════════════════════════════ */

@media (min-width: 1281px) and (max-width: 1440px) {
  .signup-corp-split {
    grid-template-columns: min(420px, 36%) 1fr;
  }

  .scr-panel {
    padding: 36px 40px;
  }

  .scl-panel {
    padding: 28px 24px;
  }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — Tablet (< 1025px)
   ═══════════════════════════════════════════ */

@media (max-width: 1024px) {
  .signup-corp-split {
    grid-template-columns: 1fr;
  }

  .scl-panel {
    position: relative;
    height: auto;
    padding: 20px 24px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .scl-top { margin-bottom: 0; }
  .scl-logo { height: 32px; }

  .scl-center {
    flex: none;
    flex-direction: row;
    gap: 0;
    justify-content: flex-end;
    flex: 1;
  }

  .scl-hero-icon,
  .scl-hero-title,
  .scl-hero-desc {
    display: none;
  }

  .scl-stepper {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
  }

  .scl-step-current { margin-top: 6px; }
  .scl-step-badge { width: 28px; height: 28px; font-size: 11px; }
  .scl-step-line { margin-top: 14px; }

  .scr-panel {
    padding: 24px 20px;
  }

  .scr-header { flex-direction: column; gap: 12px; }

  .scr-grid-2,
  .scr-grid-3 {
    grid-template-columns: 1fr;
  }

  .scr-nav-row {
    flex-direction: column-reverse;
    gap: 10px;
  }
  .scr-btn-next,
  .scr-btn-back,
  .scr-btn-cancel {
    width: 100%;
    justify-content: center;
  }

  /* Cibles tactiles ≥ 44 px sous 1024 (lot 13, R1.11) — bénéficiaires compris (correction
     tour 1 : le bouton retirer d'un bénéficiaire restait à 30 × 30). */
  .scr-officer-remove,
  .scr-benef-remove {
    width: 44px;
    height: 44px;
  }
  .scr-officer-legal {
    min-height: 44px;
  }
  .scr-officer-legal .scr-checkbox {
    width: 22px;
    height: 22px;
  }
  /* Étape 3 (correction tour 2) : le libellé d'une case (CGVU, confidentialité) mesure
     44 px au moins sur toute la largeur de la rangée — son rembourrage haut fait partie de
     la zone qui coche — et le lien du document, HORS du libellé, porte sa propre zone de
     44 px. Le tour 1 agrandissait un lien placé DANS le libellé (inline-block, rembourrage
     14 px compensé par une marge négative) : passé à la ligne, il recouvrait de 14 px la
     ligne du dessus et un toucher sur « J'ai lu et j'accepte la » suivait le lien au lieu
     de cocher la case (360, 390 et 480 px). Aucune zone ne déborde plus sur une autre. */
  .scr-consent-row {
    padding: 4px 0;
  }
  .scr-consent-row > .scr-checkbox {
    margin-top: 13px;
  }
  .scr-consent-body {
    gap: 0;
  }
  .scr-consent-body > label.scr-checkbox-text {
    min-height: 44px;
    padding-top: 12px;
  }
  .scr-consent-doc {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .scr-officer-add {
    min-height: 44px;
  }
  .scr-signup-suivi a {
    min-height: 44px;
    line-height: 44px;
  }
}

@media (max-width: 480px) {
  .scr-card {
    padding: 22px 18px;
    border-radius: 14px;
  }

  .scl-panel {
    padding: 16px;
  }

  .scr-officer-block {
    padding: 16px;
  }
}

/* ============================================================================
 * Lot 19 (L14-291, L14-083) — aides de champ (SIRET, SIREN), mention « société
 * française » et bandeau de reprise (nouvelle version d'un dossier refusé).
 * Tailwind est gelé sur ce front : styles propres à la page, ici.
 * ========================================================================== */
.scr-field-aide {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-dim);
}
.scr-field.has-error .scr-field-aide { color: #fca5a5; }
.scr-label-opt {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}
.scr-reprise {
  margin: 0 0 20px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(154, 100, 16, 0.35);
  background: rgba(224,169,74,0.12);
  color: #E0A94A;
  font-size: 13.5px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.scr-reprise[hidden] { display: none; }
/* Lot 29 K (suite a) : zones de dépôt génériques masquées en reprise ciblée ; bloc des pièces refusées. */
.scr-field[hidden], #corp-reprise-pieces[hidden] { display: none; }
.scr-reprise strong { font-weight: 700; }

/* L14-260 (lot 23) : indicateur de focus visible partout — le champ date (focus porté par ses
   sous-champs) et le lien « Annuler » n'en avaient pas ; l'anneau à 8 % d'opacité se voyait à peine. */
.scr-input:focus,
.scr-input:focus-within,
.scr-select:focus {
  border-color: #CD333E;
  box-shadow: 0 0 0 3px rgba(205,51,62,0.28);
}
.scr-btn-cancel:focus-visible {
  outline: 2px solid #CD333E;
  outline-offset: 2px;
}

/* Lot 26 (L14-257) : charte sombre unique des portes publiques — contrôles natifs (radios, dates, listes) en sombre. */
body.auth-dark { color-scheme: dark; }
