/* ============================================================
   CANADA IMMIGRATION — BEGIN-PROCESS.CSS
   Formulaire multi-étapes luxe | Navy + Or + Crème
   ============================================================ */

/* ── HERO ─────────────────────────────────────────────────── */
.bp-hero {
  position: relative;
  background: var(--navy);
  padding: 72px 0 110px;
  overflow: hidden;
}
.bp-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1517935706615-2717063c2225?w=1600&q=80');
  background-size: cover;
  background-position: center 55%;
  opacity: 0.09;
}
.bp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11,31,58,0.7) 0%, transparent 100%);
  pointer-events: none;
}
/* Particules décoratives */
.bp-hero::after {
  content: '🍁';
  position: absolute;
  right: -30px; top: 50%;
  transform: translateY(-50%) rotate(-15deg);
  font-size: 28rem;
  opacity: 0.03;
  pointer-events: none;
  line-height: 1;
}
.bp-hero .container { position: relative; z-index: 2; }

.bp-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.bp-hero-eyebrow-line { width: 36px; height: 1px; background: var(--gold); flex-shrink: 0; }
.bp-hero-eyebrow span {
  font-size: .7rem; font-weight: 700;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold);
}
.bp-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  color: var(--white);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 18px;
  max-width: 680px;
}
.bp-hero h1 em { font-style: italic; color: var(--gold-light); font-weight: 600; }
.bp-hero-sub {
  color: rgba(255,255,255,0.5);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 540px;
  margin-bottom: 36px;
}
.bp-hero-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.bp-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  font-size: .8rem; color: rgba(255,255,255,0.7);
}
.bp-badge i { color: var(--gold); }

/* Breadcrumb */
.breadcrumb-nav {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 26px;
}
.breadcrumb-nav a, .breadcrumb-nav span { font-size: .82rem; color: rgba(255,255,255,0.36); transition: color .25s; }
.breadcrumb-nav a:hover  { color: var(--gold-light); }
.breadcrumb-nav .sep     { color: rgba(255,255,255,0.14); font-size: .7rem; }
.breadcrumb-nav .current { color: var(--gold-light); font-weight: 500; }


/* ── PAGE PRINCIPALE ──────────────────────────────────────── */
.bp-page { background: var(--cream); padding: 0 0 100px; }

/* ── STEPPER CARD ─────────────────────────────────────────── */
.bp-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 32px 80px rgba(11,31,58,0.14);
  overflow: hidden;
  margin-top: -56px;
  position: relative;
  z-index: 10;
}

/* ── STEPPER HEADER ───────────────────────────────────────── */
.bp-steps-header {
  background: var(--navy);
  padding: 0 40px;
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow-x: auto;
  scrollbar-width: none;
}
.bp-steps-header::-webkit-scrollbar { display: none; }

.bp-step-tab {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 28px;
  white-space: nowrap;
  position: relative;
  cursor: pointer;
  transition: background .3s;
  flex-shrink: 0;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}
.bp-step-tab:hover { background: rgba(255,255,255,0.04); }
.bp-step-tab.active {
  border-bottom-color: var(--gold);
  background: rgba(201,168,76,0.05);
}
.bp-step-tab.done .bp-step-num  { background: rgba(37,211,102,0.15); border-color: #25d366; color: #25d366; }
.bp-step-tab.done .bp-step-label { color: rgba(255,255,255,0.5); }

.bp-step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: .82rem; font-weight: 700;
  color: rgba(255,255,255,0.4);
  flex-shrink: 0;
  transition: all .3s;
}
.bp-step-tab.active .bp-step-num {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}
.bp-step-info {}
.bp-step-sublabel {
  display: block;
  font-size: .65rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 2px;
}
.bp-step-label {
  display: block;
  font-size: .88rem; font-weight: 600;
  color: rgba(255,255,255,0.55);
  transition: color .3s;
}
.bp-step-tab.active .bp-step-label { color: var(--gold-light); }

/* Séparateur entre onglets */
.bp-step-tab + .bp-step-tab::before {
  content: '';
  position: absolute;
  left: 0; top: 30%; bottom: 30%;
  width: 1px;
  background: rgba(255,255,255,0.06);
}

/* Progression barre mobile */
.bp-progress-bar {
  height: 3px;
  background: rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}
.bp-progress-fill {
  height: 100%;
  background: var(--gold);
  transition: width .5s cubic-bezier(.4,0,.2,1);
  width: 20%; /* mis à jour par JS */
}


/* ── FORMULAIRE PRINCIPAL ─────────────────────────────────── */
.bp-form-body { padding: 48px 52px; }

/* Panneau d'étape */
.bp-step-panel { display: none; }
.bp-step-panel.active { display: block; }

.bp-panel-header { margin-bottom: 36px; }
.bp-panel-eyebrow {
  font-size: .7rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px;
}
.bp-panel-eyebrow::before {
  content: '';
  display: inline-block; width: 18px; height: 1px;
  background: var(--gold); flex-shrink: 0;
}
.bp-panel-header h2 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); color: var(--navy); margin-bottom: 6px; }
.bp-panel-header p  { font-size: .9rem; color: var(--text-light); line-height: 1.65; }

/* Grille formulaire */
.bp-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.bp-form-row.col-3 { grid-template-columns: repeat(3, 1fr); }
.bp-form-row.col-1 { grid-template-columns: 1fr; }

.bp-form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }

.bp-label {
  font-size: .74rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--navy);
  display: flex; align-items: center; gap: 7px;
}
.bp-label i   { color: var(--gold); font-size: .72rem; }
.bp-label .req { color: #e53e3e; }

/* Champs */
.bp-input, .bp-select, .bp-textarea {
  width: 100%;
  background: #f8f7f4;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: .92rem;
  color: var(--navy);
  outline: none;
  transition: border-color .25s, background .25s, box-shadow .25s;
  appearance: none; -webkit-appearance: none;
}
.bp-input::placeholder, .bp-textarea::placeholder { color: rgba(80,90,110,0.42); }
.bp-input:focus, .bp-select:focus, .bp-textarea:focus {
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}
.bp-input.err, .bp-select.err, .bp-textarea.err {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229,62,62,0.09);
}
.bp-select-wrap { position: relative; }
.bp-select-wrap::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: .65rem; color: var(--gold);
  position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%); pointer-events: none;
}
.bp-textarea { resize: vertical; min-height: 110px; line-height: 1.65; }
.bp-field-err { font-size: .74rem; color: #e53e3e; display: none; align-items: center; gap: 5px; }
.bp-field-err.show { display: flex; }

/* Radio/Checkbox custom */
.bp-radio-group, .bp-check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.bp-radio-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: #f8f7f4;
  cursor: pointer;
  font-size: .88rem;
  color: var(--text);
  transition: all .25s;
  user-select: none;
}
.bp-radio-btn input[type="radio"],
.bp-radio-btn input[type="checkbox"] { display: none; }
.bp-radio-btn .rb-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all .25s;
}
.bp-radio-btn:hover { border-color: var(--gold); background: var(--gold-pale); }
.bp-radio-btn.selected {
  border-color: var(--navy);
  background: rgba(11,31,58,0.05);
  color: var(--navy);
  font-weight: 600;
}
.bp-radio-btn.selected .rb-dot {
  border-color: var(--navy);
  background: var(--navy);
  box-shadow: inset 0 0 0 3px #f8f7f4;
}

/* Consent */
.bp-consent { display: flex; align-items: flex-start; gap: 12px; margin: 6px 0 24px; cursor: pointer; }
.bp-consent input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--navy); flex-shrink: 0; margin-top: 3px; }
.bp-consent-text { font-size: .82rem; color: var(--text-light); line-height: 1.55; }

/* Info box */
.bp-info-box {
  display: flex; gap: 16px;
  background: rgba(11,31,58,0.04);
  border: 1px solid rgba(11,31,58,0.1);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 16px 0 24px;
}
.bp-info-box i { color: var(--gold); font-size: 1rem; flex-shrink: 0; margin-top: 2px; }
.bp-info-box p { font-size: .86rem; color: var(--text-light); line-height: 1.65; margin: 0; }
.bp-info-box p strong { color: var(--navy); }


/* ── NAVIGATION ÉTAPES ────────────────────────────────────── */
.bp-step-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 52px;
  border-top: 1px solid var(--border);
  background: var(--white);
  gap: 16px;
  flex-wrap: wrap;
}
.bp-nav-left  { display: flex; align-items: center; gap: 12px; }
.bp-nav-right { display: flex; align-items: center; gap: 12px; }

.bp-btn-prev {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: transparent;
  font-family: var(--font-body);
  font-size: .88rem; font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  transition: all .25s;
}
.bp-btn-prev:hover { border-color: var(--navy); color: var(--navy); }
.bp-btn-prev:disabled { opacity: .4; cursor: not-allowed; }

.bp-btn-next, .bp-btn-submit {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 34px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--navy);
  background: var(--navy);
  font-family: var(--font-body);
  font-size: .88rem; font-weight: 600;
  color: var(--white);
  cursor: pointer;
  transition: all .35s ease;
  position: relative; overflow: hidden;
}
.bp-btn-next::before, .bp-btn-submit::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--gold);
  transform: translateX(-101%);
  transition: transform .35s ease;
  z-index: 0;
}
.bp-btn-next:hover::before, .bp-btn-submit:hover::before { transform: translateX(0); }
.bp-btn-next:hover, .bp-btn-submit:hover  { color: var(--navy); border-color: var(--gold); }
.bp-btn-next span, .bp-btn-next i,
.bp-btn-submit span, .bp-btn-submit i { position: relative; z-index: 1; }
.bp-btn-submit:disabled { opacity: .6; cursor: not-allowed; }

/* États loading */
.bp-btn-submit .txt-send    { display: flex; align-items: center; gap: 10px; }
.bp-btn-submit .txt-loading { display: none; align-items: center; gap: 10px; }
.bp-btn-submit.loading .txt-send    { display: none; }
.bp-btn-submit.loading .txt-loading { display: flex; }

/* Indicateur étape courante */
.bp-step-indicator {
  font-size: .82rem;
  color: var(--text-light);
}
.bp-step-indicator strong { color: var(--navy); }

/* Sauvegarde WhatsApp */
.bp-wa-hint {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; color: var(--text-light);
}
.bp-wa-hint i { color: #25d366; }
.bp-wa-hint a { color: #25d366; text-decoration: none; font-weight: 600; }


/* ── RÉCAPITULATIF (étape 5) ──────────────────────────────── */
.bp-recap {
  background: var(--cream);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 24px;
}
.bp-recap-section {
  padding: 22px 28px;
  border-bottom: 1px solid var(--border);
}
.bp-recap-section:last-child { border-bottom: none; }
.bp-recap-section-title {
  font-size: .72rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.bp-recap-section-title i { font-size: .8rem; }
.bp-recap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.bp-recap-item {}
.bp-recap-item .ri-label {
  font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-light); margin-bottom: 3px; display: block;
}
.bp-recap-item .ri-value {
  font-size: .93rem; color: var(--navy); font-weight: 500;
}
.bp-recap-edit {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; color: var(--gold); font-weight: 600;
  text-decoration: none; cursor: pointer; border: none; background: none;
  font-family: var(--font-body);
  transition: opacity .2s;
  padding: 4px 0;
}
.bp-recap-edit:hover { opacity: .7; }


/* ── SUCCÈS ───────────────────────────────────────────────── */
.bp-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 40px;
}
.bp-success.show { display: flex; }
.bp-success-icon {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: rgba(37,211,102,0.09);
  border: 2px solid rgba(37,211,102,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; color: #25d366;
  margin-bottom: 28px;
  animation: popIn .45s ease;
}
@keyframes popIn {
  0%   { transform: scale(.4); opacity: 0; }
  70%  { transform: scale(1.12); }
  100% { transform: scale(1); opacity: 1; }
}
.bp-success h3 { font-size: 2rem; color: var(--navy); margin-bottom: 12px; }
.bp-success p  { font-size: 1rem; color: var(--text-light); line-height: 1.75; max-width: 480px; margin-bottom: 32px; }
.bp-success-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.bp-success-num {
  display: inline-block;
  background: var(--gold-pale);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: var(--radius-sm);
  padding: 6px 18px;
  font-size: .82rem; font-weight: 700; color: var(--navy);
  margin-bottom: 20px;
  font-family: var(--font-body);
}


/* ── SECTION AVANTAGES ────────────────────────────────────── */
.bp-why {
  padding: 72px 0 80px;
  background: var(--cream);
}
.bp-why-header { text-align: center; margin-bottom: 52px; }
.bp-why-eyebrow {
  display: block;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
}
.bp-why-header h2 { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--navy); }
.bp-why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.bp-why-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 24px; text-align: center;
  transition: box-shadow .3s, transform .3s, border-color .3s;
  position: relative; overflow: hidden;
}
.bp-why-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s ease;
}
.bp-why-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
  border-color: rgba(201,168,76,0.28);
}
.bp-why-card:hover::after { transform: scaleX(1); }
.bp-why-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md); background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1.2rem;
  margin: 0 auto 18px;
  box-shadow: 0 8px 22px rgba(11,31,58,0.18);
}
.bp-why-card h4 { font-size: 1rem; color: var(--navy); margin-bottom: 8px; }
.bp-why-card p  { font-size: .85rem; color: var(--text-light); line-height: 1.65; margin: 0; }

/* ── FADE-IN ──────────────────────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .bp-why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .bp-form-body { padding: 36px 28px; }
  .bp-step-nav  { padding: 22px 28px; }
  .bp-form-row  { grid-template-columns: 1fr; }
  .bp-form-row.col-3 { grid-template-columns: 1fr 1fr; }
  .bp-recap-grid { grid-template-columns: 1fr 1fr; }
  .bp-steps-header { padding: 0 20px; }
  .bp-step-tab { padding: 20px 18px; }
}
@media (max-width: 600px) {
  .bp-hero h1 { font-size: 2rem; }
  .bp-form-body { padding: 28px 20px; }
  .bp-step-nav  { padding: 18px 20px; flex-direction: column; align-items: stretch; }
  .bp-nav-left, .bp-nav-right { justify-content: center; }
  .bp-btn-next, .bp-btn-submit, .bp-btn-prev { justify-content: center; width: 100%; }
  .bp-form-row.col-3 { grid-template-columns: 1fr; }
  .bp-recap-grid { grid-template-columns: 1fr; }
  .bp-why-grid   { grid-template-columns: 1fr; }
  .bp-success { padding: 48px 24px; }
  .bp-step-sublabel { display: none; }
  .bp-step-tab { padding: 18px 12px; gap: 8px; }
}