/* =========================================================
   Job Suisse — HOME (Accueil)
   Scope: #js-home
   File: assets/css/home-hero-search.css (clean)
   ========================================================= */

/* -------------------------
   HERO SEARCH
-------------------------- */
#js-home .hero-search-form{
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

#js-home .hero-search-wrapper{
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 999px;
  padding: 4px;
  height: 72px;
  box-sizing: border-box;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  transition: box-shadow .3s ease, transform .3s ease;
}

#js-home .hero-search-wrapper:focus-within{
  box-shadow: 0 6px 24px rgba(255,255,255,.3);
  transform: translateY(-2px);
}

#js-home .hero-search-input{
  flex: 1;
  height: 64px;
  padding: 0 26px;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 16px;
  line-height: 24px;
  color: #0f172a;
  border-radius: 999px;
  margin: 0;
}

#js-home .hero-search-input::placeholder{
  color: #64748b;
  opacity: 1;
}

#js-home .hero-search-btn{
  width: 64px;
  height: 64px;
  padding: 0;
  border: none;
  outline: none;
  box-shadow: none;
  background: #000;
  color: #fff;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
  position: relative;
  top: 8px; /* (valeur que tu as validée) */
  transition: background .3s ease, transform .3s ease;
}

#js-home .hero-search-btn svg{
  display: block;
  width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  vertical-align: middle;
  transition: transform .3s ease;
}

#js-home .hero-search-btn:hover{
  background: #5462E6;
  transform: scale(1.05);
}

#js-home .hero-search-btn:hover svg{
  transform: translateX(4px);
}

/* -------------------------
   PREMIUM TITLES
-------------------------- */
#js-home .premium-section .premium-title{
  font-size: 45px;
  line-height: 55px;
  font-weight: 500;
  color: var(--text-color, #0f172a);
  margin: 0;
}

#js-home .premium-section .pack-title{
  font-size: 24px;
  line-height: 34px;
  font-weight: 500;
  color: var(--text-color, #0f172a);
  margin: 0;
}

@media (max-width: 968px){
  #js-home .premium-section .premium-title{
    font-size: 32px;
    line-height: 42px;
  }
}

/* -------------------------
   JOB ALERT
-------------------------- */

/* keyframes manquantes chez toi => on les ajoute */
@keyframes violet-pulse{
  0%,100%{ transform: scale(1); opacity: .9; }
  50%{ transform: scale(1.06); opacity: 1; }
}
@keyframes violet-wave{
  0%,100%{ transform: translateY(0) scale(1); opacity: .9; }
  50%{ transform: translateY(-18px) scale(1.05); opacity: 1; }
}

#js-home .job-alert-section{
  padding: 4rem 0;
  /* fallback si variable absente */
  background-color: var(--bg-alternative, #f5f5f5);
}

#js-home .job-alert-container{
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 24px;
  padding: 4rem;
  position: relative;
  overflow: hidden;

  /* fallback complet (si variables client absentes) */
  background-image:
    radial-gradient(circle at 80% 20%, rgba(138,43,226,.2) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(138,43,226,.15) 0%, transparent 50%),
    linear-gradient(135deg, #000 0%, #1a0a2e 50%, #2d0a4a 100%);

  box-shadow: inset 0 0 120px rgba(138,43,226,.15), 0 8px 32px rgba(0,0,0,.2);
}

#js-home .job-alert-container::before{
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(138,43,226,.3) 0%, rgba(138,43,226,.1) 50%, transparent 70%);
  animation: violet-pulse 8s ease-in-out infinite;
}

#js-home .job-alert-container::after{
  content: '';
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(138,43,226,.25) 0%, rgba(138,43,226,.08) 50%, transparent 70%);
  animation: violet-wave 10s ease-in-out infinite;
}

#js-home .job-alert-title{
  font-size: 36px;
  line-height: 46px;
  font-weight: 500;
  color: #fff;
  margin: 0 0 .5rem 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

#js-home .job-alert-subtitle{
  font-size: 16px;
  line-height: 26px;
  color: rgba(255,255,255,.8);
  margin: 0 0 2.5rem 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

#js-home .job-alert-form{
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

#js-home .job-alert-fields{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

#js-home .job-alert-field{
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

#js-home .job-alert-label{
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: rgba(255,255,255,.9);
}

#js-home .job-alert-input{
  width: 100%;
  padding: 1rem 1.5rem;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px;
  font-size: 16px;
  line-height: 26px;
  color: var(--text-color, #0f172a);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  transition: all .3s ease;
  font-family: inherit;
  box-sizing: border-box;
}

#js-home .job-alert-input:focus{
  outline: none;
  border-color: var(--color-periwinkle-blue, #5462E6);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(84,98,230,.2), 0 4px 12px rgba(0,0,0,.1);
  transform: translateY(-2px);
}

#js-home .job-alert-input::placeholder{
  color: rgba(15, 23, 42, 0.55) !important; /* gris doux */
  opacity: 1 !important;
}

#js-home .job-alert-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 50px;
  padding: 1.125rem 2.5rem;
  font-weight: 500;
  font-size: 17px;
  line-height: 27px;
  cursor: pointer;
  transition: all .3s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  text-transform: none !important;
  letter-spacing: 0 !important;
}

#js-home .job-alert-btn:hover{
  background: var(--color-periwinkle-blue, #5462E6);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(84,98,230,.3);
}

#js-home .job-alert-btn svg{
  transition: transform .3s ease;
}

#js-home .job-alert-btn:hover svg{
  transform: translateX(4px);
}

@media (max-width: 768px){
  #js-home .job-alert-title{
    font-size: 28px;
    line-height: 38px;
  }

  #js-home .job-alert-container{
    padding: 2.5rem 1.5rem;
    max-width: 100%;
    margin: 0 1rem;
  }

  #js-home .job-alert-fields{
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  #js-home .job-alert-btn{
    max-width: 100%;
  }
}

/* ==========================================
   Job Suisse — Resources cards (Accueil)
   Aligné CSS client + scoped
   ========================================== */

#js-home .resource-card-title{
  font-size: 28px !important;
  line-height: 40px !important;
  font-weight: 500 !important;
  margin: 0 0 2rem 0 !important;
  color: inherit !important; 
}

/* Responsive */
@media (max-width: 968px){
  #js-home .resource-card-title{
    font-size: 22px !important;
    line-height: 34px !important;
  }
}

/* Job Alert – Radios fréquence */
.job-alert-frequency,
.job-alert-frequency label,
.job-alert-frequency span {
  color: #ffffff;
}

.job-alert-frequency input[type="radio"] {
  accent-color: #ffffff; 
}

/* Réduire l'espace entre les champs Nom du poste / Email */
.job-alert-fields {
  margin-bottom: 2px; 
}

.job-alert-field {
  margin-bottom: 0; 
}

/* Réduire l'espace avant la fréquence */
.job-alert-frequency {
  margin-top: 2px; 
}

/* Message confirmation / erreur */
.job-alert-msg{
  margin-top: 16px;
  color: #fff;                 
  font-size: 14px;
  line-height: 1.5;
  opacity: .95;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.job-alert-msg.is-success{ opacity: .95; }
.job-alert-msg.is-error{ opacity: .95; }

.job-alert-msg-sub{
  margin-top: 6px;
  opacity: .9;
  font-size: 13px;
}