/* ══════════════════════════════════════
   AUTH PAGE (connexion / inscription)
══════════════════════════════════════ */
.bv-auth-page {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 60px;
  background: linear-gradient(135deg, #f0f4ff 0%, #E7EBEE 100%);
}

.bv-auth-container {
  display: flex;
  max-width: 900px;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(24,66,128,0.15);
}

/* ── Left brand side ── */
.bv-auth-brand {
  flex: 0 0 40%;
  background: linear-gradient(145deg, #0d1d3a 0%, #184280 65%, #1a4fa0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 52px 36px;
  position: relative;
  overflow: hidden;
}
.bv-auth-brand::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(242,186,63,0.12);
}
.bv-auth-brand::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.bv-auth-brand-content {
  text-align: center;
  color: #fff;
  position: relative;
  z-index: 1;
}
.bv-auth-brand-logo {
  height: 44px;
  margin-bottom: 28px;
  filter: brightness(0) invert(1);
}
.bv-auth-brand-content h2 {
  font-family: 'Jost', sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 14px;
  color: #fff;
}
.bv-auth-brand-content p {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
  margin-bottom: 0;
}
.bv-auth-brand-badge {
  display: inline-block;
  background: #F2BA3F;
  color: #0d1d3a;
  border-radius: 50px;
  padding: 8px 20px;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 700;
  margin-top: 24px;
}

/* ── Right form side ── */
.bv-auth-form-side {
  flex: 1;
  background: #fff;
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ── Tabs ── */
.bv-auth-tabs {
  display: flex;
  border-radius: 50px;
  background: #f0f4ff;
  padding: 4px;
  margin-bottom: 28px;
}
.bv-auth-tab {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: none;
  border-radius: 50px;
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #6B7A90;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.bv-auth-tab.active {
  background: #184280;
  color: #fff;
  box-shadow: 0 2px 10px rgba(24,66,128,0.25);
}

/* ── Tab content ── */
.bv-auth-tab-content { display: none; }
.bv-auth-tab-content.active { display: block; }

/* ── Errors ── */
.bv-auth-error-box {
  background: #fff0f0;
  border: 1px solid #ffcdd2;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 20px;
}
.bv-auth-error-box p {
  margin: 0;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  color: #c0392b;
  line-height: 1.5;
}

/* ── Form groups ── */
.bv-form-row { display: flex; gap: 14px; }
.bv-form-group { flex: 1; margin-bottom: 16px; }
.bv-form-group label {
  display: block;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 6px;
}
.bv-form-group label span { color: #e74c3c; }
.bv-form-group input,
.bv-form-group select {
  width: 100%;
  padding: 11px 14px !important;
  border: 1.5px solid #d0d8e8 !important;
  border-radius: 10px !important;
  font-family: 'Jost', sans-serif !important;
  font-size: 14px !important;
  color: #1a1a2e !important;
  background: #fafbfc !important;
  transition: border 0.2s, box-shadow 0.2s;
  box-sizing: border-box !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  resize: none !important;
  height: auto !important;
}
.bv-form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7A90' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  padding-right: 36px !important;
  background-size: 12px !important;
}
.bv-form-group input:focus,
.bv-form-group select:focus {
  outline: none !important;
  border-color: #184280 !important;
  box-shadow: 0 0 0 3px rgba(24,66,128,0.1) !important;
  background: #fff !important;
}
.bv-form-group input::placeholder,
.bv-form-group select::placeholder {
  color: #9BA8B5 !important;
  opacity: 1 !important;
}

/* ── OTP channel radio ── */
.bv-otp-channels { display: flex; gap: 10px; margin-top: 2px; }
.bv-otp-option { flex: 1; cursor: pointer; }
.bv-otp-option input[type="radio"] { display: none; }
.bv-otp-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  border: 1.5px solid #d0d8e8;
  border-radius: 10px;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  color: #6B7A90;
  transition: all 0.2s;
  user-select: none;
}
.bv-otp-option input[type="radio"]:checked + span {
  border-color: #184280;
  color: #184280;
  background: #f0f4ff;
  font-weight: 600;
}

/* ── Forgot password ── */
.bv-auth-forgot {
  display: block;
  text-align: right;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  color: #184280;
  text-decoration: none;
  margin-bottom: 20px;
  margin-top: -6px;
  transition: color 0.2s;
}
.bv-auth-forgot:hover { color: #0f2f60; text-decoration: underline; }

/* ── Submit button ── */
.bv-auth-submit {
  width: 100%;
  padding: 13px;
  background: #F5B935;
  color: #13294B;
  border: none;
  border-radius: 50px;
  font-family: 'Jost', sans-serif;
  font-size: 15.5px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 14px 28px -14px rgba(245,185,53,.6);
  margin-top: 6px;
  -webkit-appearance: none;
  appearance: none;
}
.bv-auth-submit:hover {
  background: #E5A91A;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -14px rgba(245,185,53,.7);
}

/* ── Alt link ── */
.bv-auth-alt {
  text-align: center;
  margin-top: 20px;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  color: #6B7A90;
}
.bv-auth-alt a {
  color: #184280;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.bv-auth-alt a:hover { text-decoration: underline; }

/* ── OTP verification view ── */
.bv-otp-view { text-align: center; }
.bv-otp-view h3 {
  font-family: 'Jost', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #184280;
  margin-bottom: 8px;
}
.bv-otp-view p {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  color: #6B7A90;
  line-height: 1.6;
  margin-bottom: 28px;
}
.bv-otp-view p strong { color: #1a1a2e; }
.bv-otp-input-wrap { position: relative; margin-bottom: 8px; }
.bv-otp-input {
  width: 100%;
  padding: 16px 14px;
  border: 2px solid #d0d8e8;
  border-radius: 14px;
  font-family: 'Jost', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #184280;
  text-align: center;
  letter-spacing: 12px;
  background: #fafbfc;
  box-sizing: border-box;
  transition: border 0.2s, box-shadow 0.2s;
}
.bv-otp-input:focus {
  outline: none;
  border-color: #184280;
  box-shadow: 0 0 0 3px rgba(24,66,128,0.1);
  background: #fff;
}
.bv-otp-hint {
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  color: #9BA8B5;
  text-align: center;
  margin-bottom: 20px;
}
.bv-otp-resend {
  margin-top: 16px;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  color: #6B7A90;
}
.bv-otp-resend button {
  background: none;
  border: none;
  color: #184280;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

/* ── Bouton Retour inscription (OTP) ── */
.bv-auth-page .bv-otp-back-wrap { margin-top: 20px; text-align: center; }
.bv-auth-page .bv-otp-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border: 1.5px solid #d0d8e8;
  border-radius: 50px;
  font-family: 'Jost', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: #6B7A90;
  text-decoration: none;
  background: #fff;
  transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.bv-auth-page .bv-otp-back-btn:hover {
  border-color: #184280;
  color: #184280;
  background: #f0f4ff;
  box-shadow: 0 2px 8px rgba(24,66,128,0.08);
}

/* ══════════════════════════════════════
   VUE FORK (post-inscription)
══════════════════════════════════════ */
.bv-auth-page .bv-fork-view { padding: 4px 0; }

.bv-auth-page .bv-fork-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3ECF8E, #2ba87b);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: #fff;
  box-shadow: 0 8px 24px rgba(62,207,142,0.3);
}

.bv-auth-page .bv-fork-options { display: flex; flex-direction: column; gap: 12px; }
.bv-auth-page .bv-fork-options > form { margin: 0; padding: 0; }

.bv-auth-page .bv-fork-opt {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px 16px;
  border: 1.5px solid #d0d8e8;
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.bv-auth-page .bv-fork-opt:hover {
  border-color: #184280;
  box-shadow: 0 4px 16px rgba(24,66,128,0.1);
  background: #fafcff;
}
.bv-auth-page .bv-fork-opt.primary {
  border-color: #F5B935;
  background: linear-gradient(135deg, #fffdf0 0%, #fff9e3 100%);
}
.bv-auth-page .bv-fork-opt.primary:hover {
  border-color: #E5A91A;
  box-shadow: 0 4px 16px rgba(245,185,53,0.2);
}

.bv-auth-page .fo-ic {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: #f0f4ff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #184280;
}
.bv-auth-page .bv-fork-opt.primary .fo-ic { background: #FEF3C7; color: #92400E; }

.bv-auth-page .fo-txt { flex: 1; }
.bv-auth-page .fo-txt strong {
  display: block;
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #13294B;
  margin-bottom: 2px;
}
.bv-auth-page .fo-txt span {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  color: #6B7A90;
  line-height: 1.4;
}

.bv-auth-page .fo-arr { color: #9BA8B5; flex-shrink: 0; }
.bv-auth-page .bv-fork-opt:hover .fo-arr { color: #184280; }
.bv-auth-page .bv-fork-opt.primary .fo-arr { color: #D97706; }

/* ══════════════════════════════════════
   VUE LISTING — Formulaire infofiche
══════════════════════════════════════ */
.bv-listing-page {
  min-height: calc(100vh - 68px);
  padding: 100px 20px 80px;
  background: linear-gradient(135deg, #f0f4ff 0%, #E7EBEE 100%);
}

.bv-listing-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 40px;
}
.bv-listing-eyebrow {
  display: inline-block;
  background: rgba(24,66,128,0.08);
  color: #184280;
  border-radius: 50px;
  padding: 6px 16px;
  font-family: 'Jost', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.bv-listing-header h1 {
  font-family: 'Jost', sans-serif;
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 800;
  letter-spacing: -.03em;
  color: #13294B;
  margin: 0 0 10px;
}
.bv-listing-header p {
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  color: #6B7A90;
  margin: 0;
  line-height: 1.6;
}

.bv-listing-errors {
  max-width: 720px;
  margin: 0 auto 20px;
  background: #fff0f0;
  border: 1px solid #ffcdd2;
  border-radius: 12px;
  padding: 12px 20px;
}
.bv-listing-errors p {
  margin: 0;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  color: #c0392b;
  line-height: 1.6;
}

.bv-listing-wrap {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 16px 50px rgba(24,66,128,0.12);
  overflow: hidden;
}

.bv-listing-form { padding: 40px 44px; }

/* Sections */
.bv-ls-section {
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid #eef1f7;
}
.bv-ls-section:nth-last-child(2) { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.bv-ls-section-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}
.bv-ls-num {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #184280;
  color: #fff;
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.bv-ls-section-head h2 {
  font-family: 'Jost', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #13294B;
  margin: 0 0 3px;
}
.bv-ls-section-head p {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  color: #6B7A90;
  margin: 0;
  line-height: 1.5;
}

/* Textarea in listing form */
.bv-listing-form textarea {
  width: 100% !important;
  padding: 11px 14px !important;
  border: 1.5px solid #d0d8e8 !important;
  border-radius: 10px !important;
  font-family: 'Jost', sans-serif !important;
  font-size: 14px !important;
  color: #1a1a2e !important;
  background: #fafbfc !important;
  resize: vertical !important;
  height: auto !important;
  min-height: 96px;
  box-sizing: border-box !important;
  transition: border 0.2s, box-shadow 0.2s;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.bv-listing-form textarea:focus {
  outline: none !important;
  border-color: #184280 !important;
  box-shadow: 0 0 0 3px rgba(24,66,128,0.1) !important;
  background: #fff !important;
}
.bv-listing-form textarea::placeholder {
  color: #9BA8B5 !important;
  opacity: 1 !important;
}

/* Optional label tag */
.bv-opt {
  font-family: 'Jost', sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  color: #9BA8B5;
  margin-left: 4px;
}

/* Actions bar */
.bv-ls-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  flex-wrap: wrap;
}
.bv-ls-skip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 20px;
  border: 1.5px solid #d0d8e8;
  border-radius: 50px;
  background: #fff;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #6B7A90;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.bv-ls-skip:hover { border-color: #184280; color: #184280; background: #f0f4ff; }

/* ── Responsive listing ── */
@media (max-width: 768px) {
  .bv-listing-form { padding: 28px 20px; }
  .bv-ls-actions { flex-direction: column-reverse; }
  .bv-ls-actions .bv-auth-submit { max-width: 100% !important; }
  .bv-ls-skip { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
  .bv-listing-page { padding: 90px 12px 60px; }
}

/* ── Auth head (titre + sous-titre sous les onglets) ── */
.bv-auth-head { margin-bottom: 20px; }
.bv-auth-head h1 {
  font-family: 'Jost', sans-serif;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #13294B;
  margin: 0 0 5px;
}
.bv-auth-head p {
  font-family: 'Jost', sans-serif;
  font-size: 13.5px;
  color: #6B7A90;
  margin: 0;
  line-height: 1.5;
}

/* ── Password eye toggle ── */
.bv-pw-wrap { position: relative; }
.bv-pw-wrap .bv-form-group input,
.bv-pw-wrap input { padding-right: 44px; }
.bv-pw-toggle {
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  border: 0; background: transparent; color: #9BA8B5;
  cursor: pointer; display: grid; place-items: center;
  border-radius: 8px;
  transition: background .15s, color .15s;
}
.bv-pw-toggle:hover { background: #f0f4ff; color: #184280; }

/* ── Password strength meter ── */
.bv-pw-meter { display: flex; gap: 4px; margin-top: 7px; }
.bv-pw-meter i { flex: 1; height: 4px; border-radius: 3px; background: #E4EAF3; transition: background .2s; }
.bv-pw-meter.w1 i:nth-child(1) { background: #C43D3D; }
.bv-pw-meter.w2 i:nth-child(-n+2) { background: #E5A91A; }
.bv-pw-meter.w3 i:nth-child(-n+3) { background: #3ECF8E; }
.bv-pw-hint {
  font-family: 'Jost', sans-serif;
  font-size: 11.5px;
  color: #9BA8B5;
  margin-top: 5px;
  transition: color .15s;
}
.bv-pw-hint.weak   { color: #C43D3D; }
.bv-pw-hint.medium { color: #B8860B; }
.bv-pw-hint.strong { color: #1F9D6B; }

/* ── Feedback en temps réel (email, confirmation mot de passe) ── */
.bv-field-feedback {
  font-family: 'Jost', sans-serif;
  font-size: 11.5px;
  margin-top: 5px;
  min-height: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.bv-field-feedback.loading { color: #9BA8B5; }
.bv-field-feedback.success { color: #1F9D6B; }
.bv-field-feedback.error   { color: #C43D3D; }

/* ── Terms / remember-me checkbox ── */
.bv-check-line {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  color: #6B7A90;
  line-height: 1.5;
  margin-bottom: 18px;
  cursor: pointer;
}
.bv-check-line input[type="checkbox"] {
  margin-top: 2px;
  accent-color: #184280;
  width: 16px; height: 16px;
  flex-shrink: 0;
  cursor: pointer;
}
.bv-check-line a { color: #184280; font-weight: 700; text-decoration: underline; }

/* ── Login row : remember + forgot ── */
.bv-login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 20px;
}
.bv-login-row .bv-check-line { margin: 0; }
.bv-login-row .bv-auth-forgot { margin: 0; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .bv-auth-brand { display: none; }
  .bv-auth-container {
    border-radius: 20px;
    max-width: 460px;
    box-shadow: 0 12px 40px rgba(24,66,128,0.15);
  }
  .bv-auth-form-side { padding: 32px 24px; }
  .bv-form-row { flex-direction: column; gap: 0; }
  .bv-auth-page { padding: 90px 16px 40px; }
}
@media (max-width: 400px) {
  .bv-auth-form-side { padding: 28px 18px; }
  .bv-otp-input { font-size: 22px; letter-spacing: 8px; }
}
