/* CSS pour le formulaire CV avec transparence d'arrière-plan uniquement */

/* ============================================
   STYLES DE BASE POUR LE FORMULAIRE CV
   ============================================ */

.cv-form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.cv-form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #374151;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.cv-form-group input,
.cv-form-group textarea,
.cv-form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s ease;
  background-color: #ffffff;
  box-sizing: border-box;
}

.cv-form-group input:focus,
.cv-form-group textarea:focus,
.cv-form-group select:focus {
  outline: none;
  border-color: #5431c8;
  box-shadow: 0 0 0 3px rgba(84, 49, 200, 0.1);
}

.cv-form-group input::placeholder,
.cv-form-group textarea::placeholder {
  color: #9ca3af;
  font-style: italic;
}

/* ============================================
   STYLES POUR LES MESSAGES D'ERREUR
   ============================================ */

.cv-form-error-message {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  color: #E52054 !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  margin-top: 0.5rem !important;
  padding: 0.5rem 0.75rem !important;
  background-color: #fef2f2 !important;
  border: 1px solid #fecaca !important;
  border-radius: 6px !important;
  position: relative !important;
  z-index: 1001 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  visibility: visible !important;
  opacity: 1 !important;
  overflow: visible !important;
}

.cv-form-input-error {
  border-color: #E52054 !important;
  background-color: #fef2f2 !important;
  box-shadow: 0 0 0 3px rgba(229, 32, 84, 0.1) !important;
}

.cv-form-label-error {
  color: #E52054 !important;
}

/* ============================================
   STYLES POUR LE WIDGET STICKY
   ============================================ */

/* 
.widget-job-overview {
  position: relative;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  z-index: 100;
}
 */
/* ===========================================================
   WIDGET JOB OVERVIEW — VERSION COMPACTE
   =========================================================== */
.widget-job-overview {
  padding: 14px 16px !important;
  border-radius: 8px !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12) !important;
  font-size: 0.9rem !important;
}

.widget-job-overview .job-overview-title-text {
  font-size: 16px !important;
  margin-bottom: 10px !important;
  font-weight: 600 !important;
}

.widget-job-overview .job-overview-item {
  margin-bottom: 8px !important;
  padding: 4px 0 !important;
}

.widget-job-overview .job-overview-item .icon {
  width: 16px !important;
  height: 16px !important;
  font-size: 0.9rem !important;
  margin-right: 8px !important;
}

.widget-job-overview .job-overview-item .text {
  font-size: 13px !important;
  line-height: 1.3 !important;
}

.widget-job-overview .application_button {
  padding: 10px 18px !important;
  font-size: 0.9rem !important;
  box-shadow: 0 2px 6px rgba(84, 49, 200, 0.25) !important;
}

/* Version transparente */
.widget-job-overview.widget-background-transparent {
  background-color: rgba(255,255,255,0.6) !important;
  backdrop-filter: blur(6px) !important;
  border-color: rgba(230,230,230,0.6) !important;
}
/* ============================================
   CLASSES POUR LA TRANSPARENCE D'ARRIÈRE-PLAN UNIQUEMENT
   ============================================ */

/* État normal : arrière-plan opaque */
.widget-job-overview.widget-background-opaque {
  background-color: rgba(255, 255, 255, 1) !important;
  backdrop-filter: none;
}

/* État transparent : arrière-plan semi-transparent, contenu opaque */
.widget-job-overview.widget-background-transparent {
  background-color: rgba(255, 255, 255, 0.6) !important;
  backdrop-filter: blur(10px);
  border-color: rgba(229, 231, 235, 0.6) !important;
}

/* S'assurer que TOUT le contenu du widget reste opaque */
.widget-job-overview.widget-background-transparent * {
  opacity: 1 !important;
  color: inherit !important;
}

/* S'assurer que les textes restent lisibles */
.widget-job-overview.widget-background-transparent h2,
.widget-job-overview.widget-background-transparent h3,
.widget-job-overview.widget-background-transparent h4,
.widget-job-overview.widget-background-transparent p,
.widget-job-overview.widget-background-transparent span,
.widget-job-overview.widget-background-transparent div {
  opacity: 1 !important;
  color: #1f2937 !important;
}

/* S'assurer que les icônes restent visibles */
.widget-job-overview.widget-background-transparent i,
.widget-job-overview.widget-background-transparent .icon,
.widget-job-overview.widget-background-transparent svg {
  opacity: 1 !important;
  color: #5431c8 !important;
}

/* S'assurer que les boutons restent entièrement opaques */
.widget-job-overview.widget-background-transparent button,
.widget-job-overview.widget-background-transparent .btn,
.widget-job-overview.widget-background-transparent a.application_button {
  opacity: 1 !important;
  background-color: #5431c8 !important;
  color: #ffffff !important;
  border: none !important;
}

/* S'assurer que les liens restent visibles */
.widget-job-overview.widget-background-transparent a {
  opacity: 1 !important;
  color: #5431c8 !important;
}

.widget-job-overview.widget-background-transparent a:hover {
  opacity: 1 !important;
  color: #4338ca !important;
}

/* ============================================
   STYLES POUR LES DÉTAILS DU WIDGET
   ============================================ */

/* 
.single-job-overview-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
padding: 0.75rem 0;
}

.single-job-overview-detail .icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f3f4f6;
  border-radius: 8px;
  color: #5431c8;
  font-size: 1.25rem;
}

.single-job-overview-detail .content {
  flex: 1;
}

.single-job-overview-detail .content h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
  margin: 0 0 0.25rem 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.single-job-overview-detail .content span {
  font-size: 1rem;
  font-weight: 500;
  color: #1f2937;
  line-height: 1.4;
}
 */

/* ============================================
   STYLES POUR LE TITRE DU WIDGET
   ============================================ */

/* 
.job-overview-title {
	
  border-bottom: 1px solid #e5e7eb;
}

.job-overview-title-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
  line-height: 1.3;
}
 */

/* ============================================
   STYLES POUR LE BOUTON DE CANDIDATURE
   ============================================ */

.job_application {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.application_button {
  display: block;
  width: 100%;
  padding: 1rem 1.5rem;
  background-color: #5431c8;
  color: #ffffff;
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 50px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.application_button:hover {
  background-color: #4338ca;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(84, 49, 200, 0.3);
}

.application_button:active {
  transform: translateY(0);
}

/* ============================================
   STYLES POUR LES CATÉGORIES
   ============================================ */

/* 
.categories {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.categories li {
  display: inline-block;
}

.categories li a {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: #f3f4f6;
  color: #5431c8;
  text-decoration: none;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.categories li a:hover {
  background-color: #5431c8;
  color: #ffffff;
}
 */

/* ============================================
   STYLES POUR LE COLLAPSE
   ============================================ */

.cv-form-collapse-toggle {
  background: none;
  border: none;
  color: #5431c8;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: underline;
  padding: 0;
  margin: 0.5rem 0;
}

.cv-form-collapse-toggle:hover {
  color: #4338ca;
}

.collapse-icon {
  margin-left: 0.25rem;
}

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

@media (max-width: 768px) {
  .widget-job-overview {
    position: static !important;
    transform: none !important;
    margin-bottom: 2rem;
  }
  
  .widget-job-overview.widget-background-transparent {
    background-color: rgba(255, 255, 255, 1) !important;
    backdrop-filter: none;
  }
  
  .single-job-overview-detail {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .single-job-overview-detail .icon {
    align-self: flex-start;
  }
}

/* ============================================
   UTILITAIRES
   ============================================ */

.show {
  display: block !important;
}

.hide {
  display: none !important;
}

/* Assurer la visibilité des messages d'erreur */
.cv-form-error-message,
.error-message {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 1001 !important;
}

/* Éviter que les conteneurs parent masquent les messages d'erreur */
.cv-form-group,
.form-group,
div[class*="form"] {
  overflow: visible !important;
}

/* ============================================
   ANIMATIONS ET TRANSITIONS
   ============================================ */

.widget-job-overview {
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.cv-form-error-message {
  animation: slideInError 0.3s ease-out;
}

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