/* ===== FINORA RECRUTEMENT - POPUP PROFESSIONNELLE ===== */

/* Popup principale */
.recrutement-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  display: none;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.recrutement-popup.open {
  display: flex !important;
  opacity: 1;
}

/* Overlay */
.recrutement-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

/* Container principal */
.recrutement-container {
  position: relative;
  background: #ffffff;
  margin: auto;
  max-height: 95vh;
  overflow-y: auto;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 90%;
  max-width: 1000px;
}

.recrutement-popup.open .recrutement-container {
  transform: scale(1);
}

/* Bouton de fermeture */
.recrutement-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.recrutement-close:hover {
  background: #f3f4f6;
  transform: scale(1.1);
}

.recrutement-close i {
  font-size: 18px;
  color: #6b7280;
}

/* Header */
.recrutement-header {
  text-align: center;
  padding: 40px 40px 20px;
  background: linear-gradient(135deg, #1a237e 0%, #3366ff 100%);
  color: white;
  border-radius: 16px 16px 0 0;
}

.recrutement-logo {
  margin-bottom: 20px;
}

.recrutement-logo .logo-img {
  height: 50px;
  filter: brightness(0) invert(1);
}

.recrutement-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  font-family: 'Raleway', sans-serif;
}

.recrutement-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* Contenu principal */
.recrutement-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  padding: 40px;
}

/* Section info */
.recrutement-info h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a237e;
  margin-bottom: 20px;
  font-family: 'Raleway', sans-serif;
}

.recrutement-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.recrutement-benefits li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.5;
}

.recrutement-benefits i {
  color: #10b981;
  margin-right: 12px;
  margin-top: 2px;
  font-size: 16px;
  flex-shrink: 0;
}

.recrutement-benefits span {
  color: #374151;
}

.recrutement-contact-info {
  background: #f8fafc;
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid #3366ff;
}

.recrutement-contact-info p {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  font-size: 0.95rem;
}

.recrutement-contact-info i {
  margin-right: 8px;
  color: #3366ff;
  width: 16px;
}

.recrutement-contact-info a {
  color: #3366ff;
  text-decoration: none;
  font-weight: 500;
}

.recrutement-contact-info a:hover {
  text-decoration: underline;
}

/* Formulaire */
.recrutement-form-wrapper {
  background: #ffffff;
}

.recrutement-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.form-input,
.form-textarea {
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s ease;
  background: #ffffff;
  font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #3366ff;
  box-shadow: 0 0 0 3px rgba(51, 102, 255, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

/* Upload de fichier */
.file-input-wrapper {
  position: relative;
}

.form-file-input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.file-input-label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  background: #f9fafb;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.file-input-label:hover {
  border-color: #3366ff;
  background: #f0f4ff;
}

.file-input-label i {
  font-size: 24px;
  color: #6b7280;
  margin-right: 12px;
}

.file-input-text {
  color: #374151;
  font-weight: 500;
}

.file-input-info {
  margin-top: 8px;
  font-size: 0.875rem;
  color: #6b7280;
}

/* Checkbox personnalisée */
.checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  gap: 12px;
}

.checkbox-wrapper input[type="checkbox"] {
  position: absolute;
  opacity: 0;
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-top: 2px;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkbox-custom {
  background: #3366ff;
  border-color: #3366ff;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkbox-custom::after {
  content: '✓';
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.checkbox-text {
  font-size: 0.9rem;
  color: #374151;
  line-height: 1.4;
}

/* Bouton de soumission */
.btn-submit {
  background: linear-gradient(135deg, #3366ff 0%, #1a237e 100%);
  color: white;
  border: none;
  padding: 16px 24px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(51, 102, 255, 0.3);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-submit.loading {
  pointer-events: none;
}

/* Message de succès */
.recrutement-success {
  text-align: center;
  padding: 40px 20px;
  display: none;
}

.success-icon {
  margin-bottom: 20px;
}

.success-icon i {
  font-size: 4rem;
  color: #10b981;
}

.recrutement-success h3 {
  font-size: 1.5rem;
  color: #1a237e;
  margin-bottom: 16px;
  font-family: 'Raleway', sans-serif;
}

.recrutement-success p {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 12px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .recrutement-container {
    width: 95%;
    max-width: none;
    margin: 20px auto;
    max-height: calc(100vh - 40px);
  }
  
  .recrutement-content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px;
  }
  
  .recrutement-header {
    padding: 30px 30px 20px;
  }
  
  .recrutement-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 768px) {
  .recrutement-popup {
    align-items: flex-start;
    padding: 0;
  }
  
  .recrutement-container {
    width: 100%;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
    margin: 0;
  }
  
  .recrutement-header {
    padding: 25px 20px 15px;
    border-radius: 0;
  }
  
  .recrutement-title {
    font-size: 1.5rem;
  }
  
  .recrutement-subtitle {
    font-size: 1rem;
  }
  
  .recrutement-content {
    padding: 20px;
    gap: 25px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .recrutement-close {
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
  }
  
  .recrutement-close i {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .recrutement-content {
    padding: 15px;
  }
  
  .recrutement-header {
    padding: 20px 15px 10px;
  }
  
  .form-input,
  .form-textarea {
    padding: 10px 12px;
  }
  
  .btn-submit {
    padding: 14px 20px;
    font-size: 1rem;
  }
}

/* Prévention du scroll du body */
body.recrutement-modal-open {
  overflow: hidden;
}

/* Animation d'entrée */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* États de focus pour l'accessibilité */
.recrutement-popup:focus {
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.btn-submit:focus,
.recrutement-close:focus {
  outline: 2px solid #3366ff;
  outline-offset: 2px;
}

/* Mode sombre (si nécessaire) */
body.night-mode .recrutement-container {
  background: #1f2937;
  color: #f9fafb;
}

body.night-mode .recrutement-header {
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
}

body.night-mode .form-input,
body.night-mode .form-textarea {
  background: #374151;
  border-color: #4b5563;
  color: #f9fafb;
}

body.night-mode .form-input:focus,
body.night-mode .form-textarea:focus {
  border-color: #3366ff;
}

body.night-mode .recrutement-contact-info {
  background: #374151;
}

body.night-mode .file-input-label {
  background: #374151;
  border-color: #4b5563;
}

body.night-mode .checkbox-custom {
  background: #374151;
  border-color: #4b5563;
}
