/**
 * Candidature ambassadeur — style aligné sur /vae-formulaire/ (hero navy + or).
 */

body.u4p-apply-page .rh-outer-wrap > .u4pa-wrap,
body.u4p-apply-page .content-area > .u4pa-wrap,
body.u4p-apply-page #main > .u4pa-wrap {
  width: 100%;
}

.u4pa-wrap {
  --u4pa-navy: #0a1228;
  --u4pa-navy-2: #131e3f;
  --u4pa-blue: #1e3a8a;
  --u4pa-gold: #fbbf24;
  --u4pa-text: #111827;
  --u4pa-muted: #64748b;
  --u4pa-border: #d1d5db;
  --u4pa-font: "Plus Jakarta Sans", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  width: auto;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0;
  font-family: var(--u4pa-font);
  color: var(--u4pa-text);
  box-sizing: border-box;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

.u4pa-wrap *,
.u4pa-wrap *::before,
.u4pa-wrap *::after {
  box-sizing: border-box;
}

.u4pa-card {
  background: #fff;
  border: none;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  width: 100%;
}

/* ─── Hero pleine largeur ─── */
.u4pa-head {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--u4pa-navy) 0%, var(--u4pa-navy-2) 100%);
  color: #fff;
  padding: 110px 24px 90px;
  text-align: center;
  border-bottom: 4px solid var(--u4pa-gold);
}

.u4pa-head-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(251, 191, 36, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251, 191, 36, .06) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: .55;
  pointer-events: none;
}

.u4pa-head::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -180px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, .18), transparent 70%);
  pointer-events: none;
}

.u4pa-head::after {
  content: "";
  position: absolute;
  bottom: -220px;
  left: -200px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, .22), transparent 70%);
  pointer-events: none;
}

.u4pa-head-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  text-align: center;
}

.u4pa-head-title {
  margin: 0 0 28px;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #fff;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .4);
  width: 100%;
}

.u4pa-head-accent {
  position: relative;
  display: inline-block;
  color: var(--u4pa-gold);
  white-space: nowrap;
  margin-left: .2em;
}

.u4pa-head-accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 5px;
  background: linear-gradient(90deg, transparent, var(--u4pa-gold), transparent);
  border-radius: 999px;
  opacity: .75;
}

.u4pa-head-sub-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0 16px;
}

.u4pa-head-sub {
  display: block;
  width: 100%;
  max-width: 720px;
  margin: 10px 0 28px;
  padding: 0;
  color: rgba(255, 255, 255, .85);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  text-align: center;
}

.u4pa-head-badges {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.u4pa-head-badges li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .18);
  padding: 9px 16px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.u4pa-head-badges li i {
  color: var(--u4pa-gold);
  font-size: 12px;
}

/* ─── Formulaire ─── */
.u4pa-form,
.u4pa-body {
  padding: 0 0 60px;
  background: #fff;
}

.u4pa-form > *,
.u4pa-body > * {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 48px;
  padding-right: 48px;
}

.u4pa-section {
  margin: 0 auto;
  padding: 56px 48px 20px;
  max-width: 980px;
  font-size: 13px;
  color: var(--u4pa-blue);
  text-transform: uppercase;
  letter-spacing: 2.4px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  position: relative;
}

.u4pa-section::before,
.u4pa-section::after {
  content: "";
  flex: 1;
  height: 2px;
  max-width: 120px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--u4pa-blue));
}

.u4pa-section::after {
  background: linear-gradient(90deg, var(--u4pa-blue), transparent);
}

.u4pa-section + * {
  margin-top: 8px;
}

.u4pa-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 8px;
}

.u4pa-group {
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.u4pa-group--full {
  flex: 1 1 100%;
}

.u4pa-label {
  font-size: 13.5px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 7px;
}

.u4pa-req {
  color: #ef4444;
  font-weight: 700;
}

.u4pa-input {
  width: 100%;
  padding: 13px 16px;
  font-size: 14.5px;
  color: #0f172a;
  background: #fff;
  border: 1.5px solid var(--u4pa-border);
  border-radius: 10px;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
}

select.u4pa-input {
  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 fill='%2364748b' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.u4pa-input:focus {
  outline: none;
  border-color: var(--u4pa-blue);
  box-shadow: 0 0 0 4px rgba(30, 58, 138, .12);
}

textarea.u4pa-input {
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}

.u4pa-engagements {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 22px 26px;
  margin-top: 36px;
}

.u4pa-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: #334155;
  cursor: pointer;
  line-height: 1.55;
}

.u4pa-check input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--u4pa-blue);
}

.u4pa-actions {
  margin: 32px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
}

.u4pa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 36px;
  background: var(--u4pa-blue);
  color: #fff !important;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(30, 58, 138, .3);
  transition: all .2s;
  letter-spacing: .3px;
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  text-decoration: none !important;
  font-family: inherit;
}

.u4pa-btn:hover {
  background: #1e40af;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(30, 58, 138, .4);
  color: #fff !important;
}

.u4pa-foot-link {
  text-align: center;
  margin: 0;
  font-size: 14px;
}

.u4pa-foot-link a {
  color: var(--u4pa-blue);
  font-weight: 600;
  text-decoration: none;
}

.u4pa-foot-link a:hover {
  text-decoration: underline;
}

/* Alerts */
.u4pa-alert {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 28px auto 0;
  max-width: 980px;
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 14.5px;
  line-height: 1.55;
}

.u4pa-alert i {
  margin-top: 2px;
  font-size: 18px;
  flex-shrink: 0;
}

.u4pa-alert strong {
  display: block;
  margin-bottom: 4px;
}

.u4pa-alert p {
  margin: 0;
}

.u4pa-alert--ok {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}

.u4pa-alert--ok i {
  color: #16a34a;
}

.u4pa-alert--err {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 4px solid #ef4444;
  color: #991b1b;
}

.u4pa-alert--err i {
  color: #dc2626;
}

.u4pa-body .u4pa-actions {
  padding-left: 48px;
  padding-right: 48px;
}

@media (max-width: 720px) {
  .u4pa-head {
    padding: 70px 20px 56px;
  }

  .u4pa-head-title {
    font-size: 1.85rem;
  }

  .u4pa-head-sub {
    font-size: 15px;
    line-height: 1.65;
  }

  .u4pa-head-badges li {
    font-size: 12px;
    padding: 7px 12px;
  }

  .u4pa-form > *,
  .u4pa-body > *,
  .u4pa-section,
  .u4pa-alert {
    padding-left: 20px;
    padding-right: 20px;
  }

  .u4pa-section {
    padding-top: 40px;
    letter-spacing: 1.6px;
    font-size: 12px;
  }

  .u4pa-section::before,
  .u4pa-section::after {
    max-width: 48px;
  }

  .u4pa-body .u4pa-actions {
    padding-left: 20px;
    padding-right: 20px;
  }
}
