/* ============================================================
   AUTH-COMMON.CSS
   Shared dark-theme foundation for all auth pages
   (signin, signup, signup-particulier)
   ============================================================ */

/* ── 1. GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* ── 2. CSS VARIABLES ── */
body.auth-dark {
  --red: #CD333E;
  --red-light: #e8707a;
  --red-dim: #9b2530;
  --mauve: #60043D;
  --mauve-light: #8a2066;
  --navy: #1E064A;
  --navy-deep: #080215;
  --navy-card: #0e0328;
  --navy-border: #261055;
  --orange: #CD333E;
  --orange-dark: #a02832;
  --orange-deep: #7c1d26;
  --grey: #8a8fa0;
  --grey-dark: #5c6070;
  --grey-light: #b0b4c0;
  --text-main: #f2eaf5;
  --text-muted: #a090b8;
  /* ÉTAIT #5a4870, mesuré par axe-core à 2,44:1 sur le fond #0e0328 de cette page —
     très loin du seuil WCAG AA de 4,5:1. Elle habille le pied de page de la CONNEXION
     (« Pas encore de compte ? », le badge de sécurité), donc la première page du produit.
     #8f80ac donne 5,51:1 et reste distinct de --text-muted (6,76:1), ce qui préserve la
     hiérarchie des trois niveaux de texte au lieu de les confondre. */
  --text-dim: #8f80ac;
  --success: #34d399;
  --danger: #ef4444;
}

/* ── 3. BASE RESET ── */
body.auth-dark {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--navy-deep);
  color: var(--text-main);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  min-height: 100dvh;
}
body.auth-dark * ,
body.auth-dark *::before,
body.auth-dark *::after {
  box-sizing: border-box;
}

/* Ensure hidden class works (Tailwind provides this, but as safety) */
body.auth-dark .hidden { display: none !important; }

/* ── 4. MESH GRADIENT BACKGROUND ── */
.auth-bg {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse 70% 50% at 40% 8%, rgba(160,20,55,0.7) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 85% 70%, rgba(140,30,30,0.5) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 75% 15%, rgba(25,10,80,0.6) 0%, transparent 70%),
    radial-gradient(ellipse 80% 60% at 30% 50%, rgba(80,5,55,0.5) 0%, transparent 70%),
    radial-gradient(ellipse 100% 80% at 50% 100%, rgba(10,3,25,0.9) 0%, transparent 70%),
    linear-gradient(160deg, #2a0530 0%, #1a0420 30%, #120320 60%, #0a0118 100%);
  overflow-x: hidden;
}

/* ── 5. AURORA BLOBS ── */
.mob-immersive {
  display: none;
}
.mob-aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.2;
  animation: auroraShift 12s ease-in-out infinite alternate;
}
.mob-aurora-1 {
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(205,51,62,0.6), transparent 70%);
  top: -40px; left: -30px;
}
.mob-aurora-2 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(40,15,100,0.5), transparent 70%);
  top: 20%; right: -40px;
  animation-delay: -5s;
}
.mob-aurora-3 {
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(140,30,30,0.4), transparent 70%);
  bottom: 5%; right: 10%;
  animation-delay: -8s;
}
@keyframes auroraShift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(15px, -10px) scale(1.08); }
}

/* ── 6. DARK FORM INPUTS ── */
.auth-dark .field { margin-bottom: 18px; }
.auth-dark .field label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 7px;
  font-weight: 600;
}
.auth-dark .input-wrap { position: relative; }
.auth-dark .input-wrap input,
.auth-dark .auth-input {
  width: 100%;
  height: 50px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--navy-border);
  border-radius: 12px;
  color: var(--text-main);
  font-size: 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 500;
  padding: 0 46px 0 16px;
  outline: none;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.auth-dark .input-wrap input::placeholder,
.auth-dark .auth-input::placeholder {
  color: var(--text-dim);
}
.auth-dark .input-wrap input:focus,
.auth-dark .auth-input:focus {
  border-color: var(--red);
  background: rgba(205,51,62,0.03);
  box-shadow: 0 0 0 3px rgba(205,51,62,0.08), 0 0 24px rgba(205,51,62,0.03);
}
.auth-dark .input-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  transition: color 0.3s;
  display: flex;
}
.auth-dark .input-wrap input:focus ~ .input-icon { color: var(--red); }
.auth-dark .eye-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: inherit;
  display: flex;
  align-items: center;
}

/* Dark selects */
.auth-dark select,
.auth-dark .auth-select {
  width: 100%;
  height: 50px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--navy-border);
  border-radius: 12px;
  color: var(--text-main);
  font-size: 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 500;
  padding: 0 16px;
  outline: none;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238f80ac' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.auth-dark select:focus,
.auth-dark .auth-select:focus {
  border-color: var(--red);
  background-color: rgba(205,51,62,0.03);
  box-shadow: 0 0 0 3px rgba(205,51,62,0.08);
}
.auth-dark select option {
  background: var(--navy-card);
  color: var(--text-main);
}

/* ── 7. BUTTONS ── */
/* Primary — gradient */
.auth-dark .btn-login,
.auth-dark .auth-btn-primary {
  width: 100%;
  height: clamp(50px, 6.5vh, 56px);
  background: linear-gradient(135deg, var(--red) 0%, var(--mauve) 55%, var(--navy) 100%);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Bricolage Grotesque', sans-serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  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);
}
.auth-dark .btn-login::before,
.auth-dark .auth-btn-primary::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;
}
.auth-dark .btn-login:hover::before,
.auth-dark .auth-btn-primary:hover::before { left: 100%; }
.auth-dark .btn-login:hover,
.auth-dark .auth-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(205,51,62,0.28);
}
.auth-dark .btn-login:active,
.auth-dark .auth-btn-primary:active {
  transform: translateY(0) scale(0.98);
}

/* Loading state */
.auth-dark .btn-login.loading { pointer-events: none; }
.auth-dark .btn-login.loading .btn-text { opacity: 0; }
.auth-dark .btn-login.loading::after {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  border: 2.5px solid rgba(255,255,255,0.2);
  border-top-color: white;
  border-radius: 50%;
  animation: authSpin 0.7s linear infinite;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
}

/* Secondary — outlined */
.auth-dark .auth-btn-secondary {
  width: 100%;
  height: clamp(50px, 6.5vh, 56px);
  background: transparent;
  border: 1px solid var(--navy-border);
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}
.auth-dark .auth-btn-secondary:hover {
  border-color: rgba(205,51,62,0.3);
  color: var(--red-light);
  background: rgba(205,51,62,0.04);
}

/* ── 8. CHECKBOX ── */
.auth-dark .options-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 4px 0 26px;
}
.auth-dark .remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}
.auth-dark .remember input[type=checkbox] { display: none; }
.auth-dark .checkbox-box {
  width: 17px; height: 17px;
  border: 1.5px solid var(--navy-border);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
  flex-shrink: 0;
  /* Touch target: visual stays 17px, tappable area is larger via label */
}
.auth-dark .remember:has(input:checked) .checkbox-box {
  background: linear-gradient(135deg, var(--red), var(--mauve));
  border-color: var(--red);
}
.auth-dark .checkbox-check {
  width: 10px; height: 10px;
  display: none;
}
.auth-dark .remember:has(input:checked) .checkbox-check { display: block; }

/* ── 9. LINKS ── */
.auth-dark .forgot {
  font-size: 12px;
  color: var(--red-light);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.auth-dark .forgot:hover { color: var(--red); }

.auth-dark .signup-row {
  text-align: center;
  margin-top: 16px;
}
.auth-dark .signup-row span {
  font-size: 12px;
  color: var(--text-dim);
}
.auth-dark .signup-link {
  font-size: 12px;
  /* A11Y-008 (lot 27) : var(--orange) (#CD333E) sur #0e0328 = 3,9:1 ; --red-light = 6,62:1. */
  color: var(--red-light);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s;
  margin-left: 4px;
}
.auth-dark .signup-link:hover {
  color: var(--text-main);
  text-decoration: underline;
}

.auth-dark .auth-link {
  color: var(--red-light);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.auth-dark .auth-link:hover { color: var(--red); text-decoration: underline; }

.auth-dark .auth-link-muted {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}
.auth-dark .auth-link-muted:hover { color: var(--text-muted); }

/* ── 10. DIVIDER, BIOMETRIC, SECURE BADGE ── */
.auth-dark .divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
}
.auth-dark .divider-line {
  flex: 1;
  height: 1px;
  background: var(--navy-border);
}
.auth-dark .divider span {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

.auth-dark .biometric-btn {
  width: 100%;
  height: 46px;
  background: transparent;
  border: 1px solid var(--navy-border);
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 13px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.25s;
}
.auth-dark .biometric-btn:hover {
  border-color: rgba(205,51,62,0.3);
  color: var(--red-light);
  background: rgba(205,51,62,0.04);
}

.auth-dark .secure-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.8px;
  font-weight: 500;
}
.auth-dark .secure-dot {
  width: 6px; height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: authDotPulse 2s ease-in-out infinite;
}

/* Error states */
.auth-dark .error-msg {
  font-size: 12px;
  color: var(--danger);
  margin-top: 6px;
  display: none;
  padding-left: 2px;
  font-weight: 500;
}
.auth-dark .field.error .error-msg { display: block; }
.auth-dark .field.error input { border-color: var(--danger); }

/* Required asterisk */
.auth-dark .field-required::after { content: ' *'; color: var(--danger); }

/* ── 11. MOBILE BRAND HEADER ── */
.auth-dark .mob-form-brand { display: none; }

/* ── 12. AUTH FOOTER ── */
.auth-dark .auth-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 40px;
}
.auth-dark .auth-footer a {
  font-size: 12px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.auth-dark .auth-footer a:hover { color: var(--text-muted); }

.auth-dark .auth-copyright {
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 16px;
}

.auth-dark .language-selector {
  display: flex;
  gap: 8px;
  align-items: center;
}
.auth-dark .language-flag {
  cursor: pointer;
  transition: transform 0.2s;
  opacity: 0.6;
}
.auth-dark .language-flag:hover {
  transform: scale(1.15);
  opacity: 1;
}
.auth-dark .language-flag img {
  width: 20px;
  height: 15px;
  border: none;
  background: transparent;
}

/* Security logos */
.auth-dark .security-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
  opacity: 0.4;
}
.auth-dark .security-logos img {
  height: 20px;
  /* RESP-CLIENT-005 (lot 27) : le logo Mastercard est un SVG sur tuile blanche ; le filtre
     brightness(0) invert(1) le rendait en carré gris uni. Le logo est montré tel quel. */
  border-radius: 4px;
  opacity: 0.9;
}
.auth-dark .security-logos .ssl-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-dim);
}

/* ── 13. ANIMATION KEYFRAMES ── */
@keyframes mobFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes cardEntrance {
  from { opacity: 0; transform: translateY(40px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes authDotPulse {
  0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(52,211,153,0.4); }
  50%     { opacity: 0.7; box-shadow: 0 0 0 6px rgba(52,211,153,0); }
}
@keyframes authSpin {
  to { transform: translate(-50%,-50%) rotate(360deg); }
}

/* ── 14. PASSWORD RESET MODAL — DARK OVERRIDE ── */
.auth-dark #multi-step-modal {
  z-index: 50;
}
.auth-dark #multi-step-modal .modal-overlay {
  background: rgba(4,1,12,0.85) !important;
  opacity: 1 !important;
}
.auth-dark #multi-step-modal .modal-content {
  z-index: 51;
  position: relative;
}
.auth-dark #multi-step-modal .step-content > div {
  background: var(--navy-card) !important;
  border: 1px solid var(--navy-border) !important;
  border-radius: 16px !important;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4) !important;
}
/* Modal headings & text */
.auth-dark #multi-step-modal h3 {
  color: var(--text-main) !important;
}
.auth-dark #multi-step-modal p {
  color: var(--text-muted) !important;
}
.auth-dark #multi-step-modal a {
  color: var(--red-light) !important;
}
/* Modal inputs */
.auth-dark #multi-step-modal input[type="text"],
.auth-dark #multi-step-modal input[type="email"],
.auth-dark #multi-step-modal input[type="password"] {
  background: rgba(255,255,255,0.03) !important;
  border: 1px solid var(--navy-border) !important;
  color: var(--text-main) !important;
  border-radius: 12px !important;
}
.auth-dark #multi-step-modal input:focus {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 3px rgba(205,51,62,0.08) !important;
}
.auth-dark #multi-step-modal input::placeholder {
  color: var(--text-dim) !important;
}
/* Modal close buttons */
.auth-dark #multi-step-modal button[id$="-cancel"] {
  background: transparent !important;
}
.auth-dark #multi-step-modal button[id$="-cancel"] svg {
  stroke: var(--text-muted);
}
/* Modal CTA buttons — gradient instead of green */
.auth-dark #multi-step-modal button[id$="-next"],
.auth-dark #multi-step-modal button[id$="-verify"],
.auth-dark #multi-step-modal button[id$="-confirm"],
.auth-dark #multi-step-modal a#step-4-cancel {
  background: linear-gradient(135deg, var(--red) 0%, var(--mauve) 55%, var(--navy) 100%) !important;
  border: none !important;
  border-radius: 12px !important;
  color: white !important;
  font-weight: 600 !important;
  transition: transform 0.25s, box-shadow 0.25s !important;
  box-shadow: 0 6px 24px rgba(205,51,62,0.18) !important;
}
.auth-dark #multi-step-modal button[id$="-next"]:hover,
.auth-dark #multi-step-modal button[id$="-verify"]:hover,
.auth-dark #multi-step-modal button[id$="-confirm"]:hover,
.auth-dark #multi-step-modal a#step-4-cancel:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 14px 36px rgba(205,51,62,0.28) !important;
}
/* Modal resend code button */
.auth-dark #multi-step-modal .step-2 button:not([id]) {
  color: var(--red-light) !important;
}
/* Modal logo images */
.auth-dark #multi-step-modal img {
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
/* Modal password toggle buttons */
.auth-dark #multi-step-modal .step-3 button.absolute svg {
  stroke: var(--text-dim);
}

/* ── 15. RESPONSIVE — SHARED BREAKPOINTS ── */

/* --- Marque du formulaire (<=900px) ---
   RESP-CLIENT-009 (lot 27) : signin.css affiche .mob-form-brand jusqu'à 900 px, mais l'icône et le
   texte n'étaient habillés que sous 700 px : entre 701 et 900, une icône nue et un texte sans style. */
@media (max-width: 900px) {
  .auth-dark .mob-form-brand {
    align-items: center;
    gap: 10px;
  }
  .auth-dark .mob-form-brand .mfb-icon {
    width: 42px; height: 42px;
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
  }
  .auth-dark .mob-form-brand .mfb-icon svg { height: 22px; }
  .auth-dark .mob-form-brand .mfb-text {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: white;
    letter-spacing: -0.3px;
  }
}

/* --- Mobile (<=700px) --- */
@media (max-width: 700px) {
  body.auth-dark {
    overflow-y: auto;
  }

  .mob-immersive {
    display: block;
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
  }

  .auth-dark .mob-form-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 36px;
    animation: mobFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
  }

  .auth-dark .input-wrap input,
  .auth-dark .auth-input {
    height: 52px;
    font-size: 15px;
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.1);
    border-radius: 14px;
  }
  .auth-dark .input-wrap input:focus,
  .auth-dark .auth-input:focus {
    border-color: var(--red);
    background: rgba(205,51,62,0.06);
    box-shadow: 0 0 0 3px rgba(205,51,62,0.12), 0 0 30px rgba(205,51,62,0.05);
  }

  .auth-dark select {
    height: 52px;
    font-size: 15px;
    border-color: rgba(255,255,255,0.1);
    border-radius: 14px;
  }

  .auth-dark .btn-login,
  .auth-dark .auth-btn-primary {
    height: 54px;
    font-size: 13px;
    border-radius: 14px;
    margin-top: 4px;
  }

  .auth-dark .biometric-btn {
    height: 48px;
    border-color: rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    border-radius: 14px;
  }

  .auth-dark .divider { margin: 16px 0; }
  .auth-dark .secure-badge { margin-top: 14px; margin-bottom: 8px; }

  /* Modal full-width on mobile */
  .auth-dark #multi-step-modal .modal-content {
    max-width: 100%;
    padding: 0 16px;
  }
}

/* --- Small phone (<=400px) --- */
@media (max-width: 400px) {
  .auth-dark .mob-form-brand .mfb-text { font-size: 22px; }
}

/* --- Tiny phone (<=350px) --- */
@media (max-width: 350px) {
  .auth-dark .btn-login,
  .auth-dark .auth-btn-primary {
    height: 50px;
  }
}

/* --- Tablet portrait (701px-900px) --- */
@media (min-width: 701px) and (max-width: 900px) {
  .mob-immersive {
    display: block;
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
  }
  .mob-aurora { opacity: 0.15; }
}

/* ═══════════════════════════════════════════════════════════════
   LIGHT THEME  —  signup.html  &  signup-particulier.html
   signin.html stays .auth-dark (untouched)
   ═══════════════════════════════════════════════════════════════ */

/* ── L1. CSS VARIABLES — LIGHT ── */
body.auth-light {
  --red: #CD333E;
  --red-light: #B82D37;
  --red-dim: #E8A0A6;
  --mauve: #60043D;
  --mauve-light: #8a2066;
  --navy: #1E064A;
  --navy-deep: #F8F7FB;
  --navy-card: #FFFFFF;
  --navy-border: #E8E5F0;
  --orange: #CD333E;
  --orange-dark: #a02832;
  --orange-deep: #7c1d26;
  --grey: #8a8fa0;
  --grey-dark: #5c6070;
  --grey-light: #b0b4c0;
  --text-main: #1A1A2E;
  --text-muted: #6B6580;
  /* MÊME DÉFAUT, EN PIRE, et il ne venait d aucun signalement : #9B95A8 ne donnait que
     2,89:1 sur blanc, 2,77 sur #fafafa, 2,67 sur #f7f5fb. C est le thème des TROIS pages
     d inscription (`body.auth-light`), donc l autre moitié du parcours d entrée.
     axe ne l avait pas vu parce que mon harnais ne visitait que la connexion — je l ai
     trouvé en calculant le contraste de TOUTES les variables de texte de ce fichier, et
     non seulement de celle qui était signalée. #6b6578 donne 5,59 / 5,35 / 5,16. */
  --text-dim: #6b6578;
  --success: #16a34a;
  --danger: #dc2626;
}

/* ── L2. BASE RESET — LIGHT ── */
body.auth-light {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--navy-deep);
  color: var(--text-main);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  min-height: 100dvh;
}
body.auth-light *,
body.auth-light *::before,
body.auth-light *::after {
  box-sizing: border-box;
}
body.auth-light .hidden { display: none !important; }

/* ── L3. BACKGROUND — LIGHT ── */
body.auth-light .auth-bg {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse 60% 40% at 30% 5%, rgba(205,51,62,0.04) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 10%, rgba(96,4,61,0.03) 0%, transparent 70%),
    #F8F7FB;
  overflow-x: hidden;
}

/* ── L4. AURORA BLOBS — LIGHT ── */
body.auth-light .mob-aurora-1 {
  background: radial-gradient(circle, rgba(205,51,62,0.06), transparent 70%);
}
body.auth-light .mob-aurora-2 {
  background: radial-gradient(circle, rgba(96,4,61,0.04), transparent 70%);
}
body.auth-light .mob-aurora-3 {
  background: radial-gradient(circle, rgba(205,51,62,0.04), transparent 70%);
}

/* ── L5. FORM INPUTS — LIGHT ── */
body.auth-light .field { margin-bottom: 18px; }
body.auth-light .field label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 7px;
  font-weight: 600;
}
body.auth-light .input-wrap { position: relative; }
body.auth-light .input-wrap input,
body.auth-light .auth-input {
  width: 100%;
  height: 50px;
  background: #FFFFFF;
  border: 1px solid var(--navy-border);
  border-radius: 12px;
  color: var(--text-main);
  font-size: 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 500;
  padding: 0 46px 0 16px;
  outline: none;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
body.auth-light .input-wrap input::placeholder,
body.auth-light .auth-input::placeholder {
  color: var(--text-dim);
}
body.auth-light .input-wrap input:focus,
body.auth-light .auth-input:focus {
  border-color: var(--red);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(205,51,62,0.08), 0 0 24px rgba(205,51,62,0.03);
}
body.auth-light .input-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  transition: color 0.3s;
  display: flex;
}
body.auth-light .input-wrap input:focus ~ .input-icon { color: var(--red); }
body.auth-light .eye-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: inherit;
  display: flex;
  align-items: center;
}

/* Light selects */
body.auth-light select,
body.auth-light .auth-select {
  width: 100%;
  height: 50px;
  background: #FFFFFF;
  border: 1px solid var(--navy-border);
  border-radius: 12px;
  color: var(--text-main);
  font-size: 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 500;
  padding: 0 16px;
  outline: none;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b6578' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
body.auth-light select:focus,
body.auth-light .auth-select:focus {
  border-color: var(--red);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(205,51,62,0.08);
}
body.auth-light select option {
  background: #FFFFFF;
  color: var(--text-main);
}

/* ── L6. BUTTONS — LIGHT ── */
body.auth-light .btn-login,
body.auth-light .auth-btn-primary {
  width: 100%;
  height: clamp(50px, 6.5vh, 56px);
  background: linear-gradient(135deg, var(--red) 0%, var(--mauve) 55%, var(--navy) 100%);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Bricolage Grotesque', sans-serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  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);
}
body.auth-light .btn-login::before,
body.auth-light .auth-btn-primary::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;
}
body.auth-light .btn-login:hover::before,
body.auth-light .auth-btn-primary:hover::before { left: 100%; }
body.auth-light .btn-login:hover,
body.auth-light .auth-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(205,51,62,0.28);
}
body.auth-light .btn-login:active,
body.auth-light .auth-btn-primary:active {
  transform: translateY(0) scale(0.98);
}

body.auth-light .btn-login.loading { pointer-events: none; }
body.auth-light .btn-login.loading .btn-text { opacity: 0; }
body.auth-light .btn-login.loading::after {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  border: 2.5px solid rgba(255,255,255,0.2);
  border-top-color: white;
  border-radius: 50%;
  animation: authSpin 0.7s linear infinite;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
}

body.auth-light .auth-btn-secondary {
  width: 100%;
  height: clamp(50px, 6.5vh, 56px);
  background: transparent;
  border: 1px solid var(--navy-border);
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}
body.auth-light .auth-btn-secondary:hover {
  border-color: rgba(205,51,62,0.3);
  color: var(--red);
  background: rgba(205,51,62,0.04);
}

/* ── L7. CHECKBOX — LIGHT ── */
body.auth-light .options-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 4px 0 26px;
}
body.auth-light .remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}
body.auth-light .remember input[type=checkbox] { display: none; }
body.auth-light .checkbox-box {
  width: 17px; height: 17px;
  border: 1.5px solid var(--navy-border);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
  flex-shrink: 0;
}
body.auth-light .remember:has(input:checked) .checkbox-box {
  background: linear-gradient(135deg, var(--red), var(--mauve));
  border-color: var(--red);
}
body.auth-light .checkbox-check { width: 10px; height: 10px; display: none; }
body.auth-light .remember:has(input:checked) .checkbox-check { display: block; }

/* ── L8. LINKS — LIGHT ── */
body.auth-light .forgot {
  font-size: 12px;
  color: var(--red);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
body.auth-light .forgot:hover { color: var(--red-light); }

body.auth-light .signup-row {
  text-align: center;
  margin-top: 16px;
}
body.auth-light .signup-row span {
  font-size: 12px;
  color: var(--text-dim);
}
body.auth-light .signup-link {
  font-size: 12px;
  color: var(--red);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s;
  margin-left: 4px;
}
body.auth-light .signup-link:hover {
  color: var(--red-light);
  text-decoration: underline;
}

body.auth-light .auth-link {
  color: var(--red);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
body.auth-light .auth-link:hover { color: var(--red-light); text-decoration: underline; }

body.auth-light .auth-link-muted {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}
body.auth-light .auth-link-muted:hover { color: var(--text-muted); }

/* ── L9. DIVIDER, BIOMETRIC, SECURE BADGE — LIGHT ── */
body.auth-light .divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
}
body.auth-light .divider-line {
  flex: 1;
  height: 1px;
  background: var(--navy-border);
}
body.auth-light .divider span {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

body.auth-light .biometric-btn {
  width: 100%;
  height: 46px;
  background: transparent;
  border: 1px solid var(--navy-border);
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 13px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.25s;
}
body.auth-light .biometric-btn:hover {
  border-color: rgba(205,51,62,0.3);
  color: var(--red);
  background: rgba(205,51,62,0.04);
}

body.auth-light .secure-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.8px;
  font-weight: 500;
}
body.auth-light .secure-dot {
  width: 6px; height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: authDotPulse 2s ease-in-out infinite;
}

/* ── L10. ERROR STATES, REQUIRED — LIGHT ── */
body.auth-light .error-msg {
  font-size: 12px;
  color: var(--danger);
  margin-top: 6px;
  display: none;
  padding-left: 2px;
  font-weight: 500;
}
body.auth-light .field.error .error-msg { display: block; }
body.auth-light .field.error input { border-color: var(--danger); }
body.auth-light .field-required::after { content: ' *'; color: var(--danger); }

/* ── L11. MOBILE BRAND HEADER — LIGHT ── */
body.auth-light .mob-form-brand { display: none; }

/* ── L12. AUTH FOOTER — LIGHT ── */
body.auth-light .auth-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 40px;
}
body.auth-light .auth-footer a {
  font-size: 12px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}
body.auth-light .auth-footer a:hover { color: var(--text-main); }

body.auth-light .auth-copyright {
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 16px;
}

body.auth-light .language-selector {
  display: flex;
  gap: 8px;
  align-items: center;
}
body.auth-light .language-flag {
  cursor: pointer;
  transition: transform 0.2s;
  opacity: 0.7;
}
body.auth-light .language-flag:hover {
  transform: scale(1.15);
  opacity: 1;
}
body.auth-light .language-flag img {
  width: 20px;
  height: 15px;
  border: none;
  background: transparent;
}

/* ── L13. SECURITY LOGOS — LIGHT (fix gray squares) ── */
body.auth-light .security-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
  opacity: 0.7;
}
body.auth-light .security-logos img {
  height: 20px;
  filter: none;
  opacity: 1;
}
body.auth-light .security-logos .ssl-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-dim);
}

/* ── L14. RESPONSIVE — LIGHT ── */

@media (max-width: 700px) {
  body.auth-light {
    overflow-y: auto;
  }

  body.auth-light .mob-immersive {
    display: block;
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
  }

  body.auth-light .mob-form-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 36px;
    animation: mobFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
  }
  body.auth-light .mob-form-brand .mfb-icon {
    width: 42px; height: 42px;
    background: rgba(30,6,74,0.06);
    border-radius: 12px;
    border: 1px solid var(--navy-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mauve);
  }
  body.auth-light .mob-form-brand .mfb-icon svg { height: 22px; }
  body.auth-light .mob-form-brand .mfb-text {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.3px;
  }

  body.auth-light .input-wrap input,
  body.auth-light .auth-input {
    height: 52px;
    font-size: 15px;
    background: #FFFFFF;
    border-color: var(--navy-border);
    border-radius: 14px;
  }
  body.auth-light .input-wrap input:focus,
  body.auth-light .auth-input:focus {
    border-color: var(--red);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(205,51,62,0.10), 0 0 30px rgba(205,51,62,0.03);
  }

  body.auth-light select {
    height: 52px;
    font-size: 15px;
    border-color: var(--navy-border);
    border-radius: 14px;
  }

  body.auth-light .btn-login,
  body.auth-light .auth-btn-primary {
    height: 54px;
    font-size: 13px;
    border-radius: 14px;
    margin-top: 4px;
  }

  body.auth-light .biometric-btn {
    height: 48px;
    border-color: var(--navy-border);
    background: rgba(30,6,74,0.03);
    border-radius: 14px;
  }

  body.auth-light .divider { margin: 16px 0; }
  body.auth-light .secure-badge { margin-top: 14px; margin-bottom: 8px; }
}

@media (max-width: 400px) {
  body.auth-light .mob-form-brand .mfb-text { font-size: 22px; }
}

@media (max-width: 350px) {
  body.auth-light .btn-login,
  body.auth-light .auth-btn-primary {
    height: 50px;
  }
}

@media (min-width: 701px) and (max-width: 900px) {
  body.auth-light .mob-immersive {
    display: block;
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
  }
  body.auth-light .mob-aurora { opacity: 0.1; }
}

/* ═══════════════════════════════════════════
   FORM VALIDATION — Error states
   Shared by signup-corporate & signup-particulier
   ═══════════════════════════════════════════ */

/* Error banner at top of step card */
.auth-error-banner {
  background: linear-gradient(135deg, #CD333E 0%, #a02832 100%);
  color: #fff;
  padding: 14px 18px;
  border-radius: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  box-shadow:
    0 4px 16px rgba(205,51,62,0.2),
    inset 0 1px 0 rgba(255,255,255,0.1);
  animation: authBannerSlideIn 0.45s cubic-bezier(0.16,1,0.3,1);
  position: relative;
  overflow: hidden;
}
.auth-error-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}
.auth-error-banner-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  opacity: 0.9;
}
.auth-error-banner-text {
  flex: 1;
}

/* Field-level error */
.field-error {
  border-color: #CD333E !important;
  box-shadow: 0 0 0 3px rgba(205,51,62,0.1), 0 1px 3px rgba(205,51,62,0.08) !important;
  animation: authFieldPulse 0.45s ease;
}

/* Label turns red when sibling input has error */
.scr-field.has-error .scr-label,
.has-error > .field-required,
.has-error > label {
  color: #CD333E !important;
}

/* Shake animation on the card */
@keyframes authFormShake {
  0%, 100% { transform: translateX(0); }
  12% { transform: translateX(-8px); }
  25% { transform: translateX(6px); }
  37% { transform: translateX(-5px); }
  50% { transform: translateX(4px); }
  62% { transform: translateX(-3px); }
  75% { transform: translateX(2px); }
  87% { transform: translateX(-1px); }
}
.auth-shake {
  animation: authFormShake 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

/* Field pulse glow */
@keyframes authFieldPulse {
  0% { box-shadow: 0 0 0 0 rgba(205,51,62,0.25); }
  40% { box-shadow: 0 0 0 6px rgba(205,51,62,0.12); }
  100% { box-shadow: 0 0 0 3px rgba(205,51,62,0.1), 0 1px 3px rgba(205,51,62,0.08); }
}

/* Banner slide in */
@keyframes authBannerSlideIn {
  from { opacity: 0; transform: translateY(-12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .auth-dark *,
  .auth-dark *::before,
  .auth-dark *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  body.auth-light *,
  body.auth-light *::before,
  body.auth-light *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* L14-256 (lot 23) : l'œil du mot de passe a une zone de toucher de 44 px. */
.eye-btn { position: relative; }
.eye-btn::before { content: ""; position: absolute; inset: -10px; }

/* ═══════════════════════════════════════════════════════════════
   PORTES PUBLIQUES — UNE SEULE CHARTE (lot 26, L14-257, décision de l'utilisateur :
   « même logo, mêmes couleurs, mêmes polices »). Connexion, nouveau mot de passe, suivi KYB,
   compléments KYB, invitation porteur et « Compléter mon dossier » portent tous
   `body.auth-dark` : fond sombre de la connexion, Bricolage Grotesque (titres) et Plus Jakarta
   Sans (texte), marque « T » + « Tyche Corp ». Les pages écrites à variables (--bg, --ink,
   --serif…) les reçoivent ici par `body.auth-dark.porte` : elles n'ont plus de palette propre.
   Tailwind est gelé sur ce front : tout est dans cette feuille.
   ═══════════════════════════════════════════════════════════════ */
body.auth-dark.porte {
  --bg: #080215; --surface: #0e0328; --surface-2: #170a3a; --inset: #0b0322;
  --ink: #f2eaf5; --ink-2: #d6cbe2; --sub: #a090b8; --sub-2: #8f80ac;
  --line: #261055; --line-2: #3d2a6e;
  --plum: #E7A9CE; --wine: #EFAAC7; --nav: #C9BEF5;
  --ochre: #E0A94A; --ochre-bg: #2C2110; --green: #5FD3A0; --green-bg: #12301F;
  --rust: #E88C7E; --rust-bg: #2F1612; --plum-bg: #2A1526;
  --seal: #60043D;
  --serif: 'Bricolage Grotesque', sans-serif;
  --sans: 'Plus Jakarta Sans', -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Plus Jakarta Sans', -apple-system, 'Segoe UI', sans-serif;
  background:
    radial-gradient(ellipse 70% 50% at 30% 0%, rgba(160, 20, 55, 0.35) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 90% 100%, rgba(25, 10, 80, 0.55) 0%, transparent 70%),
    var(--navy-deep);
  background-attachment: fixed;
  color-scheme: dark;
}
/* La marque, identique partout : le « T » de la connexion et « Tyche Corp ». */
body.auth-dark .porte-marque {
  display: inline-flex; align-items: center; gap: 10px; color: var(--text-main);
  text-decoration: none; min-width: 0;
}
body.auth-dark .porte-marque svg { width: 22px; height: 22px; flex-shrink: 0; }
body.auth-dark .porte-marque span {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 16px; letter-spacing: 0.2px; white-space: nowrap;
}
body.auth-dark .porte-marque-sous { font-size: 12.5px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Une page d'erreur de lien a toujours une ISSUE (lien vers la connexion, ou « Réessayer »). */
body.auth-dark .porte-issues { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }
body.auth-dark .porte-issue {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px;
  border-radius: 12px; border: 1px solid transparent; font-family: inherit; font-size: 14px; font-weight: 600;
  text-decoration: none; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, var(--red) 0%, var(--mauve) 100%);
}
body.auth-dark .porte-issue:hover { filter: brightness(1.08); }
body.auth-dark .porte-issue--sec { background: transparent; border-color: #6b5a8e; color: var(--text-main); }
body.auth-dark .porte-issue--sec:hover { border-color: var(--text-dim); filter: none; }
body.auth-dark .porte-issue:focus-visible { outline: 2px solid var(--red-light); outline-offset: 3px; }
@media (max-width: 480px) { body.auth-dark .porte-issue { flex: 1 1 100%; } }
body.auth-dark .porte-issue[hidden] { display: none; }
/* Carte centrée d'une porte (« Compléter mon dossier », états de lien) — même gabarit que
   « Nouveau mot de passe ». */
body.auth-dark .porte-racine { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 16px; }
body.auth-dark .porte-carte {
  width: min(100%, 540px); padding: 28px; border-radius: 16px; background: var(--navy-card);
  border: 1px solid var(--navy-border); box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45); min-width: 0;
}
body.auth-dark .porte-titre { margin: 22px 0 8px; font-family: 'Bricolage Grotesque', sans-serif; font-size: 24px; font-weight: 700; line-height: 1.2; color: var(--text-main); }
body.auth-dark .porte-titre:focus { outline: none; }
body.auth-dark .porte-texte { margin: 0 0 12px; font-size: 14px; line-height: 1.6; color: var(--text-muted); overflow-wrap: anywhere; }
body.auth-dark .porte-texte strong { color: var(--text-main); font-weight: 600; }
body.auth-dark .porte-pastille {
  display: inline-flex; align-items: center; gap: 8px; min-height: 28px; padding: 4px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; background: rgba(255, 255, 255, 0.06); color: var(--text-main); border: 1px solid var(--navy-border);
}
body.auth-dark .porte-pastille::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pastille, var(--text-dim)); }
body.auth-dark .porte-liste { margin: 4px 0 14px; padding-left: 20px; font-size: 14px; line-height: 1.6; color: var(--text-muted); }
@media (max-width: 480px) { body.auth-dark .porte-carte { padding: 22px 18px; } body.auth-dark .porte-titre { font-size: 21px; } }

/* ── Lot 31 (D037) — PLANCHER TACTILE DE 44 px SUR LES LIENS DE TEXTE NU ────────────────────
   Mesure du 15/10 à 390 px sur /signup : « Se connecter » du bas de page faisait 78×15 px, et
   les trois liens du pied de page 26×18, 122×18 et 153×18 px. Ce sont des liens dans une
   ligne de texte : on élargit la surface par le REMPLISSAGE (padding), jamais par une hauteur
   de boîte, pour ne pas casser la ligne — le remplissage vertical d'un élément en ligne entre
   dans son rectangle (donc dans la mesure du geste) sans changer la hauteur de la ligne.
   Les règles ci-dessus ne posent aucun padding sur ces sélecteurs : pas de conflit. */
.signup-link { padding: 15px 8px; }
.auth-footer a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
