/* ============================================
   POSTULER PAGE
   ============================================ */

/* Form feedback */
.ap-feedback {
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 20px;
  font-weight: 500;
}
.ap-feedback--success {
  background: #ecfdf5;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.ap-feedback--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Hero */
.ap-hero {
  padding-top: 70px;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}

.ap-hero .container {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.ap-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.ap-breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.ap-breadcrumb a:hover { color: var(--accent); }
.ap-breadcrumb span { color: var(--text-tertiary); }

.ap-hero h1 {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

.ap-hero-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 1.5rem;
}

.ap-hero-badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ap-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid rgba(108, 63, 197, 0.2);
  border-radius: 20px;
  padding: 0.3rem 0.875rem;
}

/* Étapes */
.ap-steps {
  background: var(--bg-grey);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.ap-steps-row {
  display: flex;
  align-items: center;
  gap: 0;
}

.ap-step {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex: 1;
}

.ap-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ap-step-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.ap-step-text strong {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.ap-step-text span {
  font-size: 0.775rem;
  color: var(--text-tertiary);
}

.ap-step-connector {
  flex: 0 0 40px;
  height: 1px;
  background: var(--border);
  margin: 0 0.5rem;
}

/* Main */
.ap-main {
  padding: 60px 0 80px;
  background: var(--bg-grey);
}

.ap-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}

/* Form */
.ap-form-wrap {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.ap-form {
  display: flex;
  flex-direction: column;
}

.ap-form-section {
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  border-bottom: 1px solid var(--border);
}

.ap-form-section:last-of-type {
  border-bottom: none;
}

.ap-form-section-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}

.ap-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.ap-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ap-field label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}

.ap-required {
  color: var(--accent);
}

.ap-field input,
.ap-field select,
.ap-field textarea {
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.625rem 0.875rem;
  outline: none;
  transition: border-color 0.2s ease;
  width: 100%;
}

.ap-field input:focus,
.ap-field select:focus,
.ap-field textarea:focus {
  border-color: var(--accent);
}

.ap-field input::placeholder,
.ap-field textarea::placeholder {
  color: var(--text-tertiary);
}

.ap-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23A1A1A1' stroke-width='1.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.ap-field textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

.ap-form-footer {
  padding: 1.75rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: var(--bg-grey);
  border-top: 1px solid var(--border);
}

.ap-rgpd {
  font-size: 0.775rem;
  color: var(--text-tertiary);
  line-height: 1.5;
  max-width: 420px;
}

/* Sidebar */
.ap-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 90px;
}

.ap-sidebar-block {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
}

.ap-sidebar-block--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.ap-sidebar-block--light {
  background: var(--accent-light);
  border-color: rgba(108, 63, 197, 0.2);
}

.ap-sidebar-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  opacity: 0.7;
  margin-bottom: 0.4rem;
}

.ap-sidebar-block--accent .ap-sidebar-label {
  color: rgba(255,255,255,0.75);
  opacity: 1;
}

.ap-sidebar-big {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.25rem;
  color: #fff;
}

.ap-sidebar-sub {
  font-size: 0.8rem;
  color: #fff;
  opacity: 0.8;
}

.ap-sidebar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ap-sidebar-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.ap-sidebar-list li svg {
  color: var(--accent);
  flex-shrink: 0;
}

.ap-sidebar-contact-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.ap-sidebar-btn {
  width: 100%;
  text-align: center;
  justify-content: center;
}

.ap-sidebar-formations {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ap-sidebar-formations li a {
  font-size: 0.875rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: opacity 0.2s ease;
}

.ap-sidebar-formations li a::before {
  content: '→';
  font-size: 0.8rem;
}

.ap-sidebar-formations li a:hover {
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 1024px) {
  .ap-layout {
    grid-template-columns: 1fr;
  }

  .ap-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .ap-steps-row {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .ap-step-connector {
    display: none;
  }

  .ap-step {
    flex: 0 0 calc(50% - 0.5rem);
  }

  .ap-form-section {
    padding: 1.5rem;
  }

  .ap-form-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
  }

  .ap-field-row {
    grid-template-columns: 1fr;
  }

  .ap-sidebar {
    grid-template-columns: 1fr;
  }

  .ap-hero h1 {
    font-size: 1.9rem;
  }
}
