/* ============================================================
   Partner Application — /devenir-partenaire
   Style scoped .pa-* — n'affecte aucune autre page.
   ============================================================ */

/* ---------- HERO ---------- */
.pa-hero {
  background: #f5f7fa;
  padding: 48px 0 40px;
  border-bottom: 1px solid #e6ebf2;
}
.pa-hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.pa-hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 1.6px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 14px;
}
.pa-hero-copy h1 {
  font-size: 40px;
  line-height: 1.15;
  margin: 0 0 18px;
  color: #0f172a;
  font-weight: 700;
}
.pa-accent { color: var(--primary); }
.pa-hero-lead {
  color: #4a5567;
  font-size: 16px;
  line-height: 1.6;
  max-width: 500px;
}

/* Hero visual — image + overlay */
.pa-hero-visual {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}
.pa-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pa-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 143, 139, 0.55), rgba(8, 115, 111, 0.45));
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 6px;
  padding: 32px 36px;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.3px;
}
.pa-hero-underline {
  margin-top: 12px;
  width: 60px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  opacity: 0.9;
}

/* ---------- LAYOUT 2 COLONNES ---------- */
.pa-main {
  background: #f7f9fc;
  padding: 40px 0 56px;
}
.pa-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

/* ---------- GRANDE CARTE FORMULAIRE ---------- */
.pa-card {
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 14px;
  padding: 32px 34px 26px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

/* ---------- STEPPER ---------- */
.pa-stepper {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  position: relative;
}
.pa-stepper::before {
  /* Ligne grise reliant les 5 étapes */
  content: "";
  position: absolute;
  top: 16px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: #e2e8f0;
  z-index: 0;
}
.pa-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
  text-align: center;
  cursor: pointer;
}
.pa-step-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #94a3b8;
  border: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.15s;
}
.pa-step-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}
.pa-step.is-active .pa-step-circle {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.pa-step.is-active .pa-step-label {
  color: var(--primary);
  font-weight: 600;
}
.pa-step.is-done .pa-step-circle {
  background: var(--primary-light);
  color: var(--primary-dark);
  border-color: var(--primary);
}

/* ---------- PANEL D'UNE ÉTAPE ---------- */
.pa-step-panel { display: none; }
.pa-step-panel.is-active { display: block; }

.pa-panel-title {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--primary-soft, #f5fbfa);
  border-radius: 10px;
  margin-bottom: 20px;
}
.pa-panel-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pa-panel-title h2 {
  margin: 0 0 4px;
  font-size: 16px;
  color: #0f172a;
  font-weight: 600;
}
.pa-panel-title p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

/* ---------- FORM ---------- */
.pa-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Compteur textarea */
.pa-textarea-wrap { position: relative; }
.pa-textarea-counter {
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-size: 11px;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.85);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Note info dans l'étape Documents */
.pa-doc-note {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  background: #fef3c7;
  color: #92400e;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  margin-top: 14px;
}

/* ---------- REVIEW (étape 5) ---------- */
.pa-review {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
}
.pa-review-block {
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.pa-review-block h3 {
  margin: 0 0 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  font-weight: 600;
}
.pa-review-block dl {
  margin: 0;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 6px 12px;
  font-size: 13px;
}
.pa-review-block dt {
  color: #64748b;
  font-weight: 500;
}
.pa-review-block dd {
  margin: 0;
  color: #0f172a;
  word-break: break-word;
}

/* ---------- CONSENTEMENT ---------- */
.pa-consent {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  background: var(--primary-soft, #f5fbfa);
  border-radius: 10px;
  margin-bottom: 6px;
}
.pa-consent label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  font-size: 14px;
  color: #334155;
}
.pa-consent input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; }

/* ---------- BOUTONS FORMULAIRE ---------- */
.pa-form-actions {
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.pa-form-actions #pa-btn-next,
.pa-form-actions #pa-btn-submit { margin-left: auto; }
.pa-form-actions #pa-btn-prev { margin-right: auto; }

/* HTML `hidden` attribute must beat `.btn { display: inline-flex }`. */
.pa-form-actions [hidden] { display: none !important; }

/* ---------- SIDEBAR ---------- */
.pa-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pa-side-card {
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 12px;
  padding: 18px 18px 16px;
}
.pa-side-card h3 {
  margin: 0 0 14px;
  font-size: 14px;
  color: #0f172a;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pa-side-card h4 {
  margin: 0 0 6px;
  font-size: 14px;
  color: #0f172a;
  font-weight: 600;
}
.pa-side-card p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}
.pa-side-star { color: #f59e0b; display: inline-flex; }

/* Avantages */
.pa-benefit {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}
.pa-benefit:last-child { border-bottom: 0; }
.pa-benefit-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pa-benefit strong {
  display: block;
  font-size: 12px;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.pa-benefit p { font-size: 13px; color: #64748b; line-height: 1.4; }

/* Card "Qui peut devenir partenaire ?" en fond teal clair */
.pa-side-highlight { background: var(--primary-soft, #f5fbfa); border-color: #cbeae8; }
.pa-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pa-check-list li {
  font-size: 13px;
  color: #0f766e;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.pa-check-list li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------- BANDEAU SÉCURITÉ ---------- */
.pa-security-band {
  background: #fff;
  border-top: 1px solid #e6ebf2;
  padding: 18px 0;
}
.pa-security-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #64748b;
  font-size: 13px;
}
.pa-security-inner strong {
  display: block;
  color: #0f172a;
  font-size: 14px;
  margin-bottom: 2px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablette */
@media (max-width: 1024px) {
  .pa-hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .pa-hero-copy h1 { font-size: 34px; }
  .pa-layout { grid-template-columns: 1fr; }
  .pa-sidebar { flex-direction: row; flex-wrap: wrap; }
  .pa-side-card { flex: 1 1 260px; }
}

/* Mobile */
@media (max-width: 640px) {
  .pa-hero { padding: 32px 0 24px; }
  .pa-hero-copy h1 { font-size: 28px; }
  .pa-hero-overlay { padding: 20px 24px; font-size: 20px; }
  .pa-card { padding: 20px 18px; }

  /* Stepper mobile — cache la ligne + réduit les cercles */
  .pa-stepper { grid-template-columns: repeat(5, 1fr); gap: 2px; }
  .pa-stepper::before { display: none; }
  .pa-step-circle { width: 28px; height: 28px; font-size: 12px; }
  .pa-step-label { font-size: 10px; }

  .pa-grid-2 { grid-template-columns: 1fr; }
  .pa-review-block dl { grid-template-columns: 1fr; }

  .pa-sidebar { flex-direction: column; }

  .pa-form-actions { flex-wrap: wrap; }
}