/* ========================================================================
   CP x CP — RECRUTEMENT
   Formulaire candidature dark mode premium
   ======================================================================== */

/* ===== HERO SECTION ===== */

.cp-recrutement-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 3rem;
  background: linear-gradient(135deg, #0a0a0a 0%, #050505 100%);
  overflow: hidden;
  margin-top: 70px;
}

.cp-recrutement-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 60%;
  filter: blur(1px) brightness(0.4) saturate(1.1);
  z-index: 0;
}

.cp-recrutement-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(182, 255, 71, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.45) 0%, rgba(10, 10, 10, 0.65) 60%, rgba(10, 10, 10, 0.85) 100%);
  z-index: 1;
}

.cp-recrutement-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  opacity: 0;
  animation: slideInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) 0.3s forwards;
}

.cpcat-label-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 2rem;
  opacity: 0;
  animation: slideInDown 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) 0.2s forwards;
}

.cpcat-line {
  width: 40px;
  height: 1px;
  background: #B6FF47;
}

.cpcat-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #B6FF47;
  font-weight: 500;
}

.cp-recrutement-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  letter-spacing: -1px;
  color: #fff;
  margin: 0 0 1.5rem;
  line-height: 1.1;
}

.cp-recrutement-hero-title em {
  color: #B6FF47;
  font-style: italic;
}

.cp-recrutement-hero-sub {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  letter-spacing: 0.5px;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== SECTION FORMULAIRE ===== */

.cp-recrutement-section {
  background: #0a0a0a;
  padding: 80px 20px;
  min-height: auto;
}

.cp-recrutement-container {
  max-width: 700px;
  margin: 0 auto;
}

/* ===== SUCCESS MESSAGE ===== */

.cp-recrutement-success {
  background: rgba(182, 255, 71, 0.05);
  border: 1px solid rgba(182, 255, 71, 0.3);
  border-radius: 16px;
  padding: 60px 40px;
  text-align: center;
  animation: slideUp 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cp-success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: #B6FF47;
  color: #0a0a0a;
  font-size: 48px;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 32px rgba(182, 255, 71, 0.3);
}

.cp-recrutement-success h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  color: #ffffff;
  margin: 0 0 12px;
}

.cp-recrutement-success p {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* ===== ERROR MESSAGES ===== */

.cp-recrutement-errors {
  background: rgba(255, 77, 77, 0.1);
  border: 1px solid rgba(255, 77, 77, 0.3);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 32px;
}

.cp-error-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: rgba(255, 100, 100, 0.9);
  margin-bottom: 8px;
}

.cp-error-item:last-child {
  margin-bottom: 0;
}

.cp-error-icon {
  flex-shrink: 0;
  font-weight: bold;
  color: #ff4d4d;
}

/* ===== FORM STYLES ===== */

.cp-recrutement-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cp-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.cp-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cp-form-label {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cp-form-input,
.cp-form-textarea {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(182, 255, 71, 0.15) !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 14px !important;
  color: #ffffff !important;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
  font-weight: 300 !important;
}

.cp-form-input::placeholder,
.cp-form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.4) !important;
}

.cp-form-input:focus,
.cp-form-textarea:focus {
  outline: none !important;
  border-color: #B6FF47 !important;
  background: rgba(182, 255, 71, 0.05) !important;
  box-shadow: 0 0 16px rgba(182, 255, 71, 0.2) !important;
}

.cp-form-input {
  height: 48px;
}

.cp-form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* ===== CUSTOM SELECT DROPDOWN ===== */

.cp-recrutement-select {
  position: relative;
  width: 100%;
}

.cp-recrutement-select-trigger {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(182, 255, 71, 0.15);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cp-recrutement-select-trigger:hover {
  border-color: rgba(182, 255, 71, 0.3);
  background: rgba(182, 255, 71, 0.03);
}

.cp-recrutement-select-trigger.is-open {
  border-color: #B6FF47;
  background: rgba(182, 255, 71, 0.05);
}

.cp-recrutement-select-trigger::after {
  content: '';
  width: 12px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23B6FF47' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.cp-recrutement-select-trigger.is-open::after {
  transform: rotate(180deg);
}

.cp-recrutement-select-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(20, 20, 20, 0.95);
  border: 1px solid rgba(182, 255, 71, 0.2);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  z-index: 999;
  max-height: 320px;
  overflow-y: auto;
  backdrop-filter: blur(20px);
}

.cp-recrutement-select-menu.is-open {
  display: block;
}

.cp-recrutement-select-option {
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  border-bottom: 1px solid rgba(182, 255, 71, 0.05);
}

.cp-recrutement-select-option:last-child {
  border-bottom: none;
}

.cp-recrutement-select-option:hover {
  background: rgba(182, 255, 71, 0.1);
  color: #B6FF47;
}

.cp-recrutement-select-option.is-selected {
  background: rgba(182, 255, 71, 0.15);
  color: #B6FF47;
  font-weight: 500;
}

/* ===== FILE INPUT ===== */

.cp-form-file-input {
  position: relative;
}

#cp-cv-input {
  display: none;
}

.cp-file-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 2px dashed rgba(182, 255, 71, 0.2);
  border-radius: 8px;
  padding: 32px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.cp-file-label:hover {
  border-color: rgba(182, 255, 71, 0.4);
  background: rgba(182, 255, 71, 0.05);
}

.cp-file-icon {
  font-size: 24px;
}

.cp-file-text {
  font-weight: 500;
}

.cp-file-name {
  display: block;
  margin-top: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #B6FF47;
  font-weight: 500;
}

/* ===== BUTTONS ===== */

.cp-btn {
  padding: 14px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cp-btn-primary {
  background: #B6FF47;
  color: #0a0a0a;
  font-weight: 600;
  width: 100%;
  height: 48px;
}

.cp-btn-primary:hover {
  box-shadow: 0 12px 32px rgba(182, 255, 71, 0.3);
  transform: translateY(-2px);
}

.cp-btn-primary:active {
  transform: translateY(0);
}

.cp-btn-secondary {
  background: transparent;
  color: #B6FF47;
  border: 1px solid #B6FF47;
}

.cp-btn-secondary:hover {
  background: rgba(182, 255, 71, 0.1);
  box-shadow: 0 8px 24px rgba(182, 255, 71, 0.15);
}

.cp-btn-large {
  padding: 16px 40px;
  font-size: 16px;
  height: 56px;
}

/* ===== CTA SECTION ===== */

.cp-recrutement-cta {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  padding: 80px 20px;
  text-align: center;
  border-top: 1px solid rgba(182, 255, 71, 0.1);
  position: relative;
  overflow: hidden;
}

.cp-recrutement-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -30%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(182, 255, 71, 0.03) 0%, transparent 70%);
  border-radius: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.cp-recrutement-cta-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.cp-recrutement-cta-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(24px, 5vw, 42px);
  color: #ffffff;
  margin: 0 0 12px;
}

.cp-recrutement-cta-content p {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 24px;
}

/* ===== LABEL LINE ===== */

.cp-label-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.cp-label-line--center {
  justify-content: center;
}

.cp-line {
  flex: 1;
  height: 1px;
  background: rgba(182, 255, 71, 0.2);
  max-width: 60px;
}

.cp-label-text {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: #B6FF47;
  text-transform: uppercase;
}


/* ===== DEVIS STYLE STEPS ===== */

.cp-devis-step {
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(182, 255, 71, 0.1);
}

.cp-devis-step:last-of-type {
  border-bottom: none;
  margin-bottom: 2rem;
  padding-bottom: 0;
}

.cp-devis-step-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 2rem;
}

.cp-devis-step-num {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #B6FF47;
  min-width: 40px;
}

.cp-devis-step-label span:last-child {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 300;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.cp-devis-fields {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.cp-devis-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cp-devis-field--full {
  grid-column: 1 / -1;
}

.cp-devis-label {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #B6FF47;
}

.cp-required {
  color: #ff4d4d;
  margin-left: 4px;
}

.cp-form-input,
.cp-form-textarea {
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(182, 255, 71, 0.15) !important;
  border-radius: 8px !important;
  padding: 16px 16px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 15px !important;
  color: #ffffff !important;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.cp-form-textarea {
  min-height: 140px !important;
  resize: vertical !important;
}

.cp-form-input::placeholder,
.cp-form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.35) !important;
}

.cp-form-input:focus,
.cp-form-textarea:focus {
  outline: none !important;
  border-color: #B6FF47 !important;
  background: rgba(182, 255, 71, 0.05) !important;
  box-shadow: 0 0 16px rgba(182, 255, 71, 0.2) !important;
}

/* ===== CUSTOM SELECT FOR DEVIS ===== */

.cp-devis-select {
  position: relative;
  width: 100%;
}

.cp-devis-select-trigger {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(182, 255, 71, 0.15);
  border-radius: 8px;
  padding: 16px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cp-devis-select-trigger:hover {
  border-color: rgba(182, 255, 71, 0.3);
  background: rgba(182, 255, 71, 0.03);
}

.cp-devis-select-trigger.is-open {
  border-color: #B6FF47;
  background: rgba(182, 255, 71, 0.05);
}

.cp-devis-select-trigger::after {
  content: '';
  width: 12px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23B6FF47' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.cp-devis-select-trigger.is-open::after {
  transform: rotate(180deg);
}

.cp-devis-select-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(20, 20, 20, 0.98);
  border: 1px solid rgba(182, 255, 71, 0.2);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  z-index: 999;
  max-height: 320px;
  overflow-y: auto;
  backdrop-filter: blur(20px);
}

.cp-devis-select-menu.is-open {
  display: block;
  animation: slideDown 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cp-devis-select-option {
  padding: 14px 16px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 15px;
  border-bottom: 1px solid rgba(182, 255, 71, 0.05);
  font-family: 'Inter', sans-serif;
}

.cp-devis-select-option:last-child {
  border-bottom: none;
}

.cp-devis-select-option:hover {
  background: rgba(182, 255, 71, 0.1);
  color: #B6FF47;
}

.cp-devis-select-option.is-selected {
  background: rgba(182, 255, 71, 0.15);
  color: #B6FF47;
  font-weight: 500;
}

/* ===== SUBMIT ===== */

.cp-devis-submit {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 2rem;
}

.cp-devis-btn {
  padding: 16px 32px !important;
  min-height: 56px !important;
}

.cp-devis-legal {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  margin: 0;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
  .cp-form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cp-recrutement-section {
    padding: 60px 16px;
  }

  .cp-recrutement-cta {
    padding: 60px 16px;
  }

  .cp-recrutement-container {
    max-width: 100%;
  }

  .cp-file-label {
    padding: 24px 16px;
  }

  .cp-recrutement-hero-title {
    font-size: 28px;
  }

  .cp-recrutement-cta-content h2 {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .cp-recrutement-hero {
    height: 40vh;
    padding: 4rem 1.5rem;
  }

  .cp-recrutement-section {
    padding: 40px 16px;
  }

  .cp-recrutement-form {
    gap: 16px;
  }

  .cp-form-row {
    gap: 12px;
  }

  .cp-form-input,
  .cp-form-textarea {
    font-size: 16px;
    padding: 10px 12px;
  }

  .cp-file-label {
    padding: 20px 12px;
    font-size: 13px;
  }

  .cp-file-icon {
    font-size: 20px;
  }

  .cp-btn-large {
    padding: 12px 24px;
    font-size: 14px;
    height: 48px;
  }
}