/* ============================================================
   SIGNUP-PARTICULIER.CSS
   Split-panel registration — left hero + right form
   Specific to frontendV2/signup-particulier.html
   ============================================================ */

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

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

/* ═══════════════════════════════════════════
   LEFT PANEL — Dark hero with card + stepper
   ═══════════════════════════════════════════ */

.spl-panel {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  background:
    radial-gradient(ellipse 80% 60% at 30% 20%, rgba(96,4,61,0.35) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(205,51,62,0.15) 0%, transparent 60%),
    linear-gradient(165deg, #0e0328 0%, #1a0a3e 35%, #120530 70%, #080215 100%);
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  overflow: hidden;
}

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

/* ── Center — card + description ── */
.spl-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

/* ── Decorative bank card ── */
.spl-card-wrapper {
  width: 100%;
  max-width: 320px;
  perspective: 800px;
}
.spl-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1.586 / 1; /* standard credit card ratio */
  background:
    linear-gradient(135deg,
      rgba(205,51,62,0.7) 0%,
      rgba(96,4,61,0.85) 40%,
      rgba(30,6,74,0.95) 100%);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.4),
    0 4px 16px rgba(0,0,0,0.2),
    inset 0 1px 0 rgba(255,255,255,0.08);
  transform: rotateY(-2deg) rotateX(1deg);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  animation: cardFloat 6s ease-in-out infinite;
}
.spl-card:hover {
  transform: rotateY(0deg) rotateX(0deg);
}

/* Floating animation */
@keyframes cardFloat {
  0%, 100% { transform: rotateY(-2deg) rotateX(1deg) translateY(0); }
  50%      { transform: rotateY(-1deg) rotateX(0.5deg) translateY(-6px); }
}

/* Shine sweep */
.spl-card-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255,255,255,0.04) 45%,
    rgba(255,255,255,0.08) 50%,
    rgba(255,255,255,0.04) 55%,
    transparent 70%
  );
  pointer-events: none;
}

/* Card top row */
.spl-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.spl-card-brand {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  letter-spacing: 2.5px;
  text-transform: uppercase;
}
.spl-card-contactless {
  opacity: 0.5;
}

/* Chip */
.spl-card-chip {
  margin: 8px 0;
}

/* Card number dots */
.spl-card-number {
  font-family: 'Plus Jakarta Sans', monospace;
  font-size: 15px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.5);
  margin: 4px 0;
}

/* Card bottom row */
.spl-card-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.spl-card-label {
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.3);
  margin-bottom: 2px;
}
.spl-card-value {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  letter-spacing: 1px;
}

/* Mastercard circles */
.spl-card-mc {
  display: flex;
  align-items: center;
}
.spl-mc-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
}
.spl-mc-red {
  background: rgba(235,0,27,0.7);
}
.spl-mc-orange {
  background: rgba(255,95,0,0.6);
  margin-left: -10px;
}

/* Description text */
.spl-desc {
  color: rgba(255,255,255,0.45);
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
  max-width: 280px;
}

/* ═══════════════════════════════════════════
   LEFT PANEL — Stepper with labels
   ═══════════════════════════════════════════ */

.spl-stepper {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  width: 100%;
  padding-bottom: 24px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  animation: none;
}

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

.step-label {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  white-space: nowrap;
  transition: color 0.3s;
}
.spl-step-item:has(.step-active) .step-label {
  color: rgba(255,255,255,0.75);
}

/* Step badges (on dark panel) */
.spl-panel .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;
}
.spl-panel .step-active {
  background: linear-gradient(135deg, #CD333E, #60043D);
  color: white;
  box-shadow: 0 4px 16px rgba(205,51,62,0.35);
}
.spl-panel .step-inactive {
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.25);
  border: 1px solid rgba(255,255,255,0.08);
}

/* Step lines (between items) */
.spl-stepper .step-line {
  height: 2px;
  flex: 1;
  background: rgba(255,255,255,0.06);
  margin: 17px 6px 0; /* vertically centered on badge */
  transition: background 0.3s;
  min-width: 16px;
}
.spl-stepper .step-line-active {
  background: linear-gradient(90deg, #CD333E, #60043D);
}

/* ═══════════════════════════════════════════
   RIGHT PANEL — White form area
   ═══════════════════════════════════════════ */

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

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

.signup-part-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;
}

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

/* ── "Se connecter" login button — gradient pill ── */
.spr-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);
}
.spr-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;
}
.spr-login-btn:hover::before {
  left: 100%;
}
.spr-login-btn svg,
.spr-login-btn span {
  position: relative;
  z-index: 1;
  transition: transform 0.3s;
}
.spr-login-btn:hover {
  box-shadow: 0 8px 28px rgba(205,51,62,0.35);
  transform: translateY(-2px);
}
.spr-login-btn:hover svg {
  transform: translateX(3px);
}
.spr-login-btn:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 2px 10px rgba(205,51,62,0.2);
}

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

/* ═══════════════════════════════════════════
   SECTION CARDS (form steps)
   ═══════════════════════════════════════════ */

.spr-panel .section-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);
  position: relative;
  overflow: hidden;
  animation: sprFadeIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

/* Left accent bar on h2 */
.spr-panel .section-card h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 24px;
  padding-left: 16px;
  border-left: 3px solid #CD333E;
  line-height: 1.3;
}

/* RESP-CLIENT-006 (lot 27) : le titre CENTRÉ de l'écran de succès n'hérite pas de la barre d'accent
   gauche des titres de section (elle le décentrait et flottait à gauche du texte). */
.spr-panel #step5-success h2 {
  border-left: 0;
  padding-left: 0;
}

/* Section sub-headings in red accent */
.spr-panel .section-card h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 15px;
  font-weight: 600;
  /* A11Y-008 (lot 27) : #CD333E sur #0e0328 = 3,89:1 ; --red-light (#e8707a) = 6,62:1. */
  color: var(--red-light);
  margin: 0 0 16px;
  letter-spacing: -0.1px;
}

.spr-panel .section-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

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

/* Labels */
.spr-panel .section-card label {
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
}
.spr-panel .section-card label.inline-flex,
.spr-panel .section-card label.flex {
  text-transform: none;
  letter-spacing: normal;
  font-size: 13px;
  font-weight: 500;
}

/* Required field indicator */
.field-required::after {
  content: ' *';
  color: var(--red-light);
}

/* Text inputs */
.spr-panel .section-card .form-input,
.spr-panel .section-card input[type="text"],
.spr-panel .section-card input[type="email"],
.spr-panel .section-card input[type="tel"],
.spr-panel .section-card input[type="number"] {
  background: var(--navy-card) !important;
  border: 1px solid var(--navy-border) !important;
  border-radius: 10px !important;
  color: var(--text-main) !important;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.spr-panel .section-card .form-input:focus,
.spr-panel .section-card input:focus {
  border-color: #CD333E !important;
  box-shadow: 0 0 0 3px rgba(205,51,62,0.08) !important;
  outline: none;
}
.spr-panel .section-card .form-input::placeholder,
.spr-panel .section-card input::placeholder {
  color: var(--text-dim) !important;
}

/* Selects */
.spr-panel .section-card select.form-input,
.spr-panel .section-card select {
  background: var(--navy-card) !important;
  border: 1px solid var(--navy-border) !important;
  border-radius: 10px !important;
  color: var(--text-main) !important;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
}
.spr-panel .section-card select:focus {
  border-color: #CD333E !important;
  box-shadow: 0 0 0 3px rgba(205,51,62,0.08) !important;
}
.spr-panel .section-card select option {
  background: var(--navy-card);
  color: var(--text-main);
}

/* File inputs */
.spr-panel .section-card input[type="file"] {
  background: rgba(255,255,255,0.03) !important;
  border: 2px dashed var(--navy-border) !important;
  border-radius: 10px !important;
  color: var(--text-muted) !important;
  padding: 10px 16px !important;
  cursor: pointer;
  transition: border-color 0.25s;
}
.spr-panel .section-card input[type="file"]:hover {
  border-color: #CD333E !important;
}
.spr-panel .section-card input[type="file"]::file-selector-button {
  background: linear-gradient(135deg, #CD333E, #60043D);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  margin-right: 12px;
}

/* Face preview */
.spr-panel #facePreview {
  border: 2px dashed var(--navy-border) !important;
  border-radius: 10px !important;
  background: rgba(255,255,255,0.03) !important;
}
.spr-panel #facePreview span {
  color: var(--text-dim) !important;
}

/* Radio buttons */
.spr-panel .section-card input[type="radio"] {
  accent-color: #CD333E;
}
.spr-panel .section-card span {
  color: var(--text-muted);
}
/* Campagne 27/10 : la règle ci-dessus atteignait aussi le texte de la bannière d'erreur
   (#a090b8 sur rouge : 1,73:1, mesuré). Le texte d'une bannière d'erreur reste blanc. */
.spr-panel .section-card .auth-error-banner-text {
  color: #fff;
}

/* Checkboxes */
.spr-panel .section-card input[type="checkbox"] {
  accent-color: #CD333E;
  border-color: var(--navy-border);
}
.spr-panel .section-card .text-red-500 {
  color: #fca5a5 !important;
}

/* ═══════════════════════════════════════════
   FORM — Buttons
   ═══════════════════════════════════════════ */

/* Primary / Next button */
.spr-panel .section-card .btn-tyche {
  background: linear-gradient(135deg, #CD333E 0%, #60043D 55%, #1E064A 100%) !important;
  border: none !important;
  color: white !important;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 10px !important;
  box-shadow: 0 6px 24px rgba(205,51,62,0.18);
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
.spr-panel .section-card .btn-tyche:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 14px 36px rgba(205,51,62,0.28) !important;
}

/* Back / Cancel buttons */
.spr-panel .section-card button[id^="back"],
.spr-panel .section-card button[id="cancelStep1"] {
  background: transparent !important;
  border: 1px solid var(--navy-border) !important;
  color: var(--text-muted) !important;
  border-radius: 10px !important;
  transition: all 0.25s;
}
.spr-panel .section-card button[id^="back"]:hover,
.spr-panel .section-card button[id="cancelStep1"]:hover {
  border-color: rgba(205,51,62,0.3) !important;
  color: var(--red-light) !important;
}

/* Step 5 links as buttons */
.spr-panel .section-card a.btn-tyche {
  background: linear-gradient(135deg, #CD333E 0%, #60043D 55%, #1E064A 100%) !important;
  color: white !important;
  border-radius: 10px !important;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.25s, box-shadow 0.25s;
}
.spr-panel .section-card a.btn-tyche:hover {
  transform: translateY(-2px) !important;
}
.spr-panel .section-card a[class*="border-bgray"] {
  border-color: var(--navy-border) !important;
  color: var(--text-muted) !important;
  background: transparent !important;
  border-radius: 10px !important;
  text-decoration: none;
}
.spr-panel .section-card a[class*="border-bgray"]:hover {
  border-color: rgba(205,51,62,0.3) !important;
  color: var(--red-light) !important;
}

/* "Same address" button */
.spr-panel #sameAddressBtn {
  background: rgba(255,255,255,0.03) !important;
  border: 1px solid var(--navy-border) !important;
  color: var(--text-muted) !important;
  border-radius: 10px !important;
  font-size: 13px;
  transition: all 0.25s;
}
.spr-panel #sameAddressBtn:hover {
  border-color: rgba(205,51,62,0.3) !important;
  color: var(--red-light) !important;
  background: rgba(205,51,62,0.04) !important;
}

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

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

/* Hidden utility (Tailwind safety) */
.hidden { display: none !important; }


/* ═══════════════════════════════════════════
   RESPONSIVE — Tablet (< 1025px)
   Split → single column
   ═══════════════════════════════════════════ */

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

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

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

  /* On tablet, center becomes a row container for stepper only */
  .spl-center {
    flex: none;
    flex-direction: row;
    gap: 0;
    justify-content: flex-end;
    flex: 1;
  }

  /* Hide card & description on tablet, keep stepper */
  .spl-card-wrapper,
  .spl-desc {
    display: none;
  }

  /* Stepper inline in the header strip */
  .spl-stepper {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
    gap: 0;
    width: auto;
    flex: 1;
    justify-content: flex-end;
  }
  .spl-step-item {
    gap: 4px;
    min-width: 36px;
  }
  .step-label {
    font-size: 8px;
  }
  .spl-stepper .step-line {
    margin: 17px 4px 0;
    min-width: 10px;
  }

  .spr-panel {
    padding: 32px 24px;
  }

  /* Login button responsive */
  .spr-login-btn {
    padding: 8px 16px 8px 14px;
    font-size: 12px;
  }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — Mobile (< 700px)
   ═══════════════════════════════════════════ */

@media (max-width: 700px) {
  .spl-panel {
    padding: 14px 16px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .spl-logo {
    height: 26px;
  }

  .spl-center {
    order: 1;
    width: 100%;
  }

  /* Stepper takes full width below logo */
  .spl-stepper {
    width: 100%;
    justify-content: center;
    flex: none;
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
  }
  .spl-top {
    order: 0;
  }

  .step-label {
    display: none;
  }
  .spl-panel .step-badge {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }
  .spl-stepper .step-line {
    margin: 14px 3px 0;
  }

  .spr-panel {
    padding: 24px 16px;
  }

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

  .spr-panel .section-card {
    padding: 24px 18px;
    border-radius: 14px;
  }

  .spr-panel .section-card h2 {
    font-size: 17px;
    padding-left: 14px;
  }

  .signup-part-title {
    font-size: 20px;
  }

  /* Login btn full width on mobile */
  .spr-login-btn {
    align-self: flex-start;
    padding: 8px 18px 8px 14px;
    font-size: 12px;
  }

  /* Force single column grid on mobile */
  .spr-panel .section-card .grid-cols-3 {
    grid-template-columns: 1fr !important;
  }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — Small phones (< 400px)
   ═══════════════════════════════════════════ */

@media (max-width: 400px) {
  .spl-panel {
    padding: 10px 12px;
  }
  .spl-logo {
    height: 22px;
  }
  .spr-panel {
    padding: 20px 14px;
  }
  .spr-panel .section-card {
    padding: 20px 14px;
  }
  .spl-panel .step-badge {
    width: 26px;
    height: 26px;
    font-size: 10px;
  }
  .signup-part-title {
    font-size: 18px;
  }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — Small desktop (1025–1280px)
   ═══════════════════════════════════════════ */

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

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

  .spl-logo {
    height: 44px;
  }

  .spl-center {
    gap: 16px;
  }

  .spl-card-wrapper {
    max-width: 240px;
  }

  .spl-card {
    padding: 18px;
    border-radius: 14px;
  }
  .spl-card-brand {
    font-size: 9px;
    letter-spacing: 2px;
  }
  .spl-card-number {
    font-size: 12px;
  }
  .spl-card-chip svg {
    width: 28px;
    height: 22px;
  }
  .spl-card-label {
    font-size: 7px;
  }
  .spl-card-value {
    font-size: 10px;
  }
  .spl-mc-circle {
    width: 20px;
    height: 20px;
  }
  .spl-mc-orange {
    margin-left: -8px;
  }

  .spl-desc {
    font-size: 11px;
    max-width: 240px;
    line-height: 1.6;
  }

  /* Stepper — compact but fully visible */
  .spl-stepper {
    padding-bottom: 14px;
    margin-bottom: 4px;
  }
  .spl-step-item {
    min-width: 30px;
    gap: 4px;
  }
  .step-label {
    font-size: 7px;
    letter-spacing: 0.4px;
  }
  .spl-panel .step-badge {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }
  .spl-stepper .step-line {
    margin: 14px 3px 0;
    min-width: 6px;
  }

  /* Right panel */
  .spr-panel {
    padding: 30px 30px;
  }

  .spr-panel .section-card {
    padding: 26px 22px;
  }

  .spr-panel .section-card h2 {
    font-size: 17px;
    margin-bottom: 18px;
  }

  .spr-panel .section-card h3 {
    font-size: 14px;
  }

  .spr-panel .section-card .form-input,
  .spr-panel .section-card input[type="text"],
  .spr-panel .section-card input[type="email"],
  .spr-panel .section-card input[type="tel"],
  .spr-panel .section-card select.form-input,
  .spr-panel .section-card select {
    font-size: 13px;
  }

  .spr-panel .section-card label {
    font-size: 10px;
    letter-spacing: 1px;
  }

  .spr-login-btn {
    padding: 8px 18px 8px 14px;
    font-size: 12px;
  }

  .signup-part-title {
    font-size: 22px;
  }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — Medium desktop (1281–1440px)
   ═══════════════════════════════════════════ */

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

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

  .spl-card-wrapper {
    max-width: 290px;
  }

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

/* RESP-CLIENT-010 (lot 27) : au-delà de 1280 px, le stepper demandait 396 px pour 352 (364 à 1600 et
   plus) et ses deux pas extrêmes sortaient de 22 px du panneau. Libellés un peu moins espacés, pas et
   traits moins larges au minimum : ~321 px au plus serré, et les traits (flex: 1) reprennent le reste. */
@media (min-width: 1281px) {
  .spl-step-item {
    min-width: 40px;
  }
  .step-label {
    letter-spacing: 0.4px;
  }
  .spl-stepper .step-line {
    margin: 17px 4px 0;
    min-width: 8px;
  }
}


/* ═══════════════════════════════════════════
   CANCEL CONFIRMATION MODAL
   ═══════════════════════════════════════════ */

.cancel-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26,26,46,0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background 0.3s ease, backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease;
  padding: 20px;
}
.cancel-modal-overlay.active {
  background: rgba(26,26,46,0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.cancel-modal-card {
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: 20px;
  padding: 36px 32px 28px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow:
    0 24px 80px rgba(30,6,74,0.12),
    0 8px 24px rgba(30,6,74,0.06),
    0 0 0 1px rgba(232,229,240,0.6);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.cancel-modal-overlay.active .cancel-modal-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Top accent line */
.cancel-modal-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 5%, #CD333E 30%, #60043D 70%, transparent 95%);
  opacity: 0.5;
}

.cancel-modal-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  background: rgba(205,51,62,0.06);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cancel-modal-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 8px;
  letter-spacing: -0.2px;
}

.cancel-modal-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 28px;
}

.cancel-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cancel-modal-btn-stay {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, #CD333E 0%, #60043D 55%, #1E064A 100%);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Bricolage Grotesque', sans-serif;
  letter-spacing: 0.5px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 6px 24px rgba(205,51,62,0.18);
}
.cancel-modal-btn-stay::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;
}
.cancel-modal-btn-stay:hover::before { left: 100%; }
.cancel-modal-btn-stay:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(205,51,62,0.28);
}
.cancel-modal-btn-stay:active {
  transform: translateY(0) scale(0.98);
}

.cancel-modal-btn-leave {
  width: 100%;
  height: 44px;
  background: transparent;
  border: 1px solid var(--navy-border);
  border-radius: 12px;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  transition: all 0.25s;
}
.cancel-modal-btn-leave:hover {
  border-color: rgba(205,51,62,0.3);
  color: var(--red-light);
  background: rgba(205,51,62,0.03);
}

/* Modal responsive */
@media (max-width: 400px) {
  .cancel-modal-card {
    padding: 28px 22px 22px;
    border-radius: 16px;
  }
  .cancel-modal-title { font-size: 18px; }
  .cancel-modal-text { font-size: 13px; }
}

/* ═══════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  .spl-card { animation: none; transform: none; }
  .spl-card:hover { transform: none; }
  .spr-panel .section-card,
  .spr-header { animation-duration: 0.01ms !important; }
  .cancel-modal-card { transition-duration: 0.01ms !important; }
  .cancel-modal-overlay { transition-duration: 0.01ms !important; }
}

/* Lot 26 (L14-257) : charte sombre unique des portes publiques — contrôles natifs (radios, dates, listes) en sombre. */
body.auth-dark { color-scheme: dark; }
/* Radios dessinés (le rendu natif reste blanc sur fond sombre) — même rouge que la connexion. */
.spr-panel .section-card input[type="radio"] {
  appearance: none; -webkit-appearance: none; margin: 0;
  width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--text-dim); background: transparent;
  display: inline-grid; place-content: center; cursor: pointer;
}
.spr-panel .section-card input[type="radio"]::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); transform: scale(0); transition: transform .12s ease;
}
.spr-panel .section-card input[type="radio"]:checked { border-color: var(--red); }
.spr-panel .section-card input[type="radio"]:checked::before { transform: scale(1); }
.spr-panel .section-card input[type="radio"]:focus-visible { outline: 2px solid var(--red-light); outline-offset: 2px; }

/* ── Lot 31 (D037) — PLANCHER TACTILE DE 44 px ───────────────────────────────────────────────
   Mesure du 15/10 à 390 px sur /signup-particulier (45 accès, même constat pour tous) :
   « Se connecter » 137×34, les deux boutons radio de civilité 18×18, et le logo-lien
   « Tyche Corp » 73×22.
   — Bouton et lien de marque : la hauteur minimale suffit, le dessin ne change pas.
   — Boutons radio : leur APPARENCE NATIVE est conservée (17 px), et seule la surface du
     geste est portée à 44 px par un pseudo-élément transparent, centré. Le harnais de mesure
     hit-teste un pseudo-élément comme son élément d'origine (vérifié à 390 px : surface
     effective 44×44, et un clic sur « F » coche toujours « F », pas « M »). Agrandir la boîte
     du radio aurait grossi le cercle ; l'élargir par padding ne marche pas sur un contrôle
     natif. */
.spr-login-btn { min-height: 44px; box-sizing: border-box; }
.spl-brand { min-height: 44px; }
label input[type="radio"] { position: relative; }
label input[type="radio"]::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 44px; height: 44px; transform: translate(-50%, -50%);
}
