/* =========================================================
   Nexa Jobs — Front (PRO CLEAN)
   Scope: #js-jobs (évite conflits thème)
   ========================================================= */

:root{
  --nj-bg: #F5F5F5;
  --nj-card: #ffffff;
  --nj-border: #e9edf3;
  --nj-text: #0f172a;
  --nj-muted: #6b7280;
  --nj-primary: #1b74ff;
  --nj-hover: #5462E6;
  --nj-black: #0b0f19;
}

/* =========================================================
   BASE / BACKGROUND
   ========================================================= */
#js-jobs{
  background: var(--nj-bg) !important;
}

/* Listing zone */
#js-jobs .js-jobs-archive-section{
  background: var(--nj-bg) !important;
  padding: 44px 0 80px !important;
}

/* Archive container */
#js-jobs .nexa-jobs-archive{
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding: 0 18px 80px !important;
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, sans-serif !important;
}

#js-jobs .nexa-jobs-title{ display:none !important; }

/* =========================================================
   HERO — Débloquer la largeur des filtres (fix définitif)
   IMPORTANT: le hero avait un max-width:800px sur .hero-content-center
   ========================================================= */
#js-jobs .hero-content-center{
  max-width: none !important;
  width: 100% !important;
  align-items: stretch !important; /* clé : étire les enfants */
}

/* On garde titre + texte centrés en 800px */
#js-jobs .hero-content-center > h1,
#js-jobs .hero-content-center > p{
  max-width: 800px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  align-self: center !important;
}

/* Wrapper filtres = full width */
#js-jobs .hero-content-center > .js-hero-jobs-filters{
  width: 100% !important;
  align-self: stretch !important;
}

/* =========================================================
   FILTRES — Client-like (fusion bar) + version compacte
   ========================================================= */
#js-jobs .js-hero-jobs-filters form.nexa-jobs-filters{
  width: 60% !important;
  max-width: 1400px !important;     
  margin: 26px auto 0 !important;
  box-sizing: border-box !important;
  padding: 0 20px !important;        
}

/* Barre blanche fusionnée */
#js-jobs .nexa-jobs-filters-row{
  display:flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 0 !important;

  background:#fff !important;
  border-radius: 999px !important;

  padding: 6px !important;       
  min-height: 58px !important;     

  box-shadow: 0 16px 40px rgba(0,0,0,.10) !important;
  overflow: visible !important;
  position: relative !important;
  z-index: 50 !important;
}

/* Segments */
#js-jobs .nexa-jobs-filter-item{
  flex: 1 1 0 !important;
  min-width: 0 !important;
  display:flex !important;
  align-items:center !important;
  position: relative !important;
}

/* Séparateurs verticaux */
#js-jobs .nexa-jobs-filter-item + .nexa-jobs-filter-item::before{
  content:"";
  position:absolute;
  left:0;
  top:10px;
  bottom:10px;
  width:1px;
  background: rgba(15,23,42,.10);
}

/* Inputs */
#js-jobs .nexa-input-text{
  width:100% !important;
  height: 44px !important;     
  border: 0 !important;
  background: transparent !important;

  padding: 0 16px !important;
  font-size: 13px !important;       
  font-weight: 400 !important;
  color:#111827 !important;

  outline:none !important;
  box-shadow:none !important;
  margin:0 !important;

  appearance:none !important;
  -webkit-appearance:none !important;
}
#js-jobs .nexa-input-text::placeholder{
  color:#6b7280 !important;
}

/* Cantons trigger */
#js-jobs .nexa-canton-trigger{
  width:100% !important;
  height: 44px !important;        
  border:0 !important;
  background: transparent !important;

  padding: 0 16px !important;
  display:flex !important;
  align-items:center !important;
  gap:10px !important;

  margin:0 !important;
  cursor:pointer !important;

  appearance:none !important;
  -webkit-appearance:none !important;
}

#js-jobs .nexa-canton-label{
  flex:1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;

  font-size: 13px !important;     
  font-weight: 400 !important;
  color:#111827 !important;
  letter-spacing:0 !important;
  text-transform:none !important;
}

#js-jobs .nexa-canton-chevron{
  margin-left:auto !important;
  opacity:.9 !important;
  color:#111827 !important;
}

/* Bouton à droite */
#js-jobs .nexa-jobs-filter-item--button{
  flex: 0 0 auto !important;
  padding-left: 12px !important;
  display:flex !important;
  align-items:center !important;
  position: relative !important;
}
#js-jobs .nexa-jobs-filter-item--button::before{
  content:"";
  position:absolute;
  left:0;
  top:10px;
  bottom:10px;
  width:1px;
  background: rgba(15,23,42,.10);
}

#js-jobs .nexa-jobs-filter-item--button .nexa-btn{
  height: 44px !important;      
  padding: 0 16px !important;

  border:0 !important;
  border-radius:999px !important;
  background: var(--nj-black) !important;
  color:#fff !important;

  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:10px !important;

  font-size: 13px !important;      
  font-weight: 500 !important;
  letter-spacing:0 !important;
  text-transform:none !important;

  line-height: 1 !important;
  margin:0 !important;

  appearance:none !important;
  -webkit-appearance:none !important;
  vertical-align: middle !important;

  transition: background-color .18s ease, transform .12s ease, box-shadow .18s ease !important;
}
#js-jobs .nexa-jobs-filter-item--button .nexa-btn:hover{
  background: var(--nj-hover) !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(84,98,230,.25);
}

/* =========================================================
   DROPDOWN CANTONS (respecte [hidden])
   ========================================================= */
#js-jobs .nexa-canton-picker{ position: relative; width:100%; z-index: 9999; }

#js-jobs .nexa-canton-dropdown[hidden]{ display:none !important; }

#js-jobs .nexa-canton-dropdown{
  position:absolute;
  right:0;
  left:auto;
  top: calc(100% + 10px);

  width: min(360px, calc(100vw - 24px)) !important;

  background:#fff;
  border:1px solid #edf0f6;
  border-radius:16px;
  box-shadow:0 18px 45px rgba(12,35,64,.12);
  overflow:hidden;
  z-index:999999;
}

#js-jobs .nexa-canton-search{
  padding:10px;
  border-bottom:1px solid #edf0f6;
  background:#fff;
  position: sticky;
  top:0;
  z-index:2;
}
#js-jobs .nexa-canton-search-input{
  width:100%;
  height:44px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid #d3d7e0;
  outline:none;
}
#js-jobs .nexa-canton-search-input:focus{
  border-color: var(--nj-primary);
  box-shadow: 0 0 0 3px rgba(27,116,255,.12);
}

#js-jobs .nexa-canton-list{
  max-height:260px;
  overflow-y:auto;
  overflow-x:hidden;
  padding:6px;
  background:#fff;

  /* Empêche la page de scroller quand on est en haut/bas de la liste */
  overscroll-behavior: contain;

  /* Scroll fluide iOS */
  -webkit-overflow-scrolling: touch;
}

#js-jobs label.nexa-canton-item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px;
  border-radius:12px;
  cursor:pointer;
  user-select:none;
  margin:0;
}
#js-jobs label.nexa-canton-item:hover{ background: rgba(27,116,255,.06); }

#js-jobs .nexa-canton-item input[type="checkbox"]{
  appearance:auto !important;
  -webkit-appearance: checkbox !important;
  width:16px;
  height:16px;
  accent-color: var(--nj-primary);
}

#js-jobs .nexa-canton-actions{
  display:flex;
  gap:10px;
  padding:10px;
  border-top:1px solid #edf0f6;
  background:#fff;
}

#js-jobs .nexa-canton-reset,
#js-jobs .nexa-canton-apply{
  flex:1;
  border:none;
  border-radius:999px;
  padding:10px 12px;
  font-weight:800;
  font-size:13px;
  cursor:pointer;
  text-transform:none !important;
  letter-spacing:0 !important;
}

#js-jobs .nexa-canton-reset{ background:#eef2ff; color:#262556; }
#js-jobs .nexa-canton-apply{ background: var(--nj-primary); color:#fff; }

/* Fix overflow thème */
#js-jobs .rt-hero-gap{ overflow: visible !important; }

/* =========================================================
   GRID + CARDS
   ========================================================= */
#js-jobs .nexa-jobs-grid{
  display:grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 22px !important;
}

@media (max-width: 1100px){
  #js-jobs .nexa-jobs-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 860px){
  #js-jobs .nexa-jobs-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 520px){
  #js-jobs .nexa-jobs-grid{ grid-template-columns: 1fr !important; }
}

#js-jobs .nexa-job-card{
  background: var(--nj-card) !important;
  border: 1px solid var(--nj-border) !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 26px rgba(15, 23, 42, .06) !important;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease !important;
  height:100%;
  display:flex;
}

#js-jobs .nexa-job-card:hover{
  border-color: rgba(37, 99, 235, .55) !important;
  box-shadow: 0 14px 40px rgba(15, 23, 42, .09) !important;
  transform: translateY(-1px) !important;
}

#js-jobs .nexa-job-card-inner{
  padding: 20px 20px 18px !important;
  width:100%;
  display:flex;
  flex-direction:column;
  height:100%;
}

#js-jobs .nexa-job-logo{
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: 1px solid #eef2f7;
  background: #f7f8fb;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom: 12px;
  overflow:hidden;
}
#js-jobs .nexa-job-logo img{
  max-width: 44px !important;
  max-height: 44px !important;
  object-fit: contain !important;
}

#js-jobs .nexa-job-header{
  flex: 1 1 auto;
  display:flex;
  flex-direction:column;
}

#js-jobs .nexa-job-title{
  font-size: 14px !important;
  font-weight: 800 !important;
  color: var(--nj-text) !important;
  line-height: 1.35 !important;
  margin: 0 0 6px !important;

  min-height: 38px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#js-jobs .nexa-job-employer{
  font-size: 12px !important;
  color: var(--nj-muted) !important;
  margin-bottom: 12px !important;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

#js-jobs .nexa-job-location{
  margin-top:auto;
  margin-bottom: 12px !important;
  font-size: 12px !important;
  color: var(--nj-muted) !important;
  display:flex;
  align-items:center;
  gap:6px;
}

/* Kill switch pseudo-elements */
#js-jobs .nexa-job-location::before,
#js-jobs .nexa-job-location::after,
#js-jobs .nexa-job-location *::before,
#js-jobs .nexa-job-location *::after{
  content:none !important;
  display:none !important;
}

#js-jobs .nexa-job-footer{ margin-top: 0; }

#js-jobs .nexa-job-link{
  display:inline-flex !important;
  align-items:center !important;
  gap:10px !important;
  width: fit-content;

  padding: 9px 14px !important;
  border-radius: 999px !important;
  background: var(--nj-black) !important;
  color:#fff !important;

  font-size: 12px !important;
  font-weight: 500 !important;
  text-decoration:none !important;

  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease !important;
}
#js-jobs .nexa-job-link:hover{
  background: var(--nj-hover) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 10px 22px rgba(84,98,230,.25);
}
#js-jobs .nexa-job-link:visited{ color:#fff !important; }

#js-jobs .nexa-job-link svg{
  transition: transform .18s ease !important;
}
#js-jobs .nexa-job-link:hover svg{
  transform: translateX(3px);
}

/* =========================================================
   PAGINATION
   ========================================================= */
#js-jobs .nexa-pagination{
  margin: 28px 0 70px !important;
  display:flex !important;
  justify-content:center !important;
  flex-wrap:wrap !important;
  gap: 10px !important;
}

#js-jobs .nexa-page-link{
  padding: 8px 14px !important;
  border-radius: 999px !important;
  border: 1px solid #e5e7eb !important;
  background:#fff !important;
  color:#111827 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-decoration:none !important;
}
#js-jobs .nexa-page-link:hover{
  border-color: rgba(37, 99, 235, .55) !important;
}
#js-jobs .nexa-page-link.is-active{
  background: var(--nj-black) !important;
  border-color: var(--nj-black) !important;
  color:#fff !important;
}
#js-jobs .nexa-page-link.is-ellipsis{
  border:none !important;
  background:transparent !important;
}

/* Spacer */
#js-jobs .jobs-spacer{
  height: 60px;
  background: var(--nj-bg);
}

/* =========================================================
   MOBILE FIX — Filters bar + Cantons dropdown (bottom sheet)
   ========================================================= */
@media (max-width: 640px){

  #js-jobs .js-hero-jobs-filters form.nexa-jobs-filters{
    max-width: 100% !important;
    padding: 0 14px !important;
  }

  #js-jobs .nexa-jobs-filters-row{
    flex-wrap: wrap !important;
    border-radius: 22px !important;
    padding: 10px !important;
    gap: 10px !important;
    min-height: unset !important;
  }

  #js-jobs .nexa-jobs-filter-item{
    flex: 1 1 100% !important;
    min-width: 100% !important;
  }

  #js-jobs .nexa-jobs-filter-item + .nexa-jobs-filter-item::before,
  #js-jobs .nexa-jobs-filter-item--button::before{
    display:none !important;
    content:none !important;
  }

  #js-jobs .nexa-jobs-filter-item--button{
    width: 100% !important;
    padding-left: 0 !important;
  }

  #js-jobs .nexa-jobs-filter-item--button .nexa-btn{
    width: 100% !important;
  }

 /* Dropdown cantons : bottom sheet FIX anti “coupé” */
  #js-jobs .nexa-canton-dropdown{
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;

    top: 12px !important;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;

    width: auto !important;
    min-width: 0 !important;

    max-height: calc(100dvh - 24px - env(safe-area-inset-bottom, 0px)) !important;
    height: auto !important;

    border-radius: 18px !important;
    z-index: 9999999 !important;

    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

    /* Search reste en haut */
  #js-jobs .nexa-canton-search{
    flex: 0 0 auto !important;
  }

  #js-jobs .nexa-canton-search-input{
    height: 46px !important;
    border-radius: 14px !important;
  }

  #js-jobs .nexa-canton-list{
    flex: 1 1 auto !important;
    min-height: 0 !important; 
    max-height: none !important;
    overflow: auto !important;
    padding: 8px 10px !important;
    -webkit-overflow-scrolling: touch;
  }

  #js-jobs .nexa-canton-actions{
    flex: 0 0 auto !important;
    padding: 12px !important;
    background: #fff !important;
    border-top: 1px solid #edf0f6 !important;
  }

  #js-jobs label.nexa-canton-item{ padding: 12px 10px !important; }
  #js-jobs .nexa-canton-item input[type="checkbox"]{
    width: 18px !important;
    height: 18px !important;
  }
}


/* ===========================
   STEP 1 — Barre blanche premium (hauteur + ring)
   =========================== */

#js-jobs .nexa-jobs-filters-row{
  padding: 12px !important;         
  min-height: 74px !important;        
  border: 3px solid #ffffff !important;
  box-shadow: 0 18px 50px rgba(0,0,0,.14) !important; 
}

/* Option: arrondis encore plus “smooth” */
#js-jobs .nexa-jobs-filters-row{
  border-radius: 999px !important;
}


/* ===========================
   STEP 2 — Séparateurs soft + bouton CTA (client-like)
   =========================== */

/* Séparateurs plus discrets + un peu plus courts */
#js-jobs .nexa-jobs-filter-item + .nexa-jobs-filter-item::before,
#js-jobs .nexa-jobs-filter-item--button::before{
  top: 18px !important;             
  bottom: 18px !important;            
  background: rgba(15,23,42,.07) !important; 
}

/* Bouton: plus large, plus “CTA”, avec ring blanc */
#js-jobs .nexa-jobs-filter-item--button{
  padding-left: 16px !important;       
}

#js-jobs .nexa-jobs-filter-item--button .nexa-btn{
  height: 48px !important;             
  padding: 0 22px !important;           
  font-size: 14px !important;        
  font-weight: 700 !important;       
  border-radius: 999px !important;

  /* Ring blanc comme le client */
  box-shadow:
    0 0 0 3px #ffffff,                
    0 12px 30px rgba(0,0,0,.18) !important;
}

/* Hover plus “premium” mais doux */
#js-jobs .nexa-jobs-filter-item--button .nexa-btn:hover{
  transform: translateY(-1px) !important;
  box-shadow:
    0 0 0 3px #ffffff,
    0 16px 36px rgba(0,0,0,.22) !important;
}


/* ===========================
   MOBILE — rendre la zone filtres en "card" 
   =========================== */
@media (max-width: 640px){

  /* 1) Forcer le form à 100% */
  #js-jobs .js-hero-jobs-filters form.nexa-jobs-filters{
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 18px !important;
    padding: 0 14px !important;
  }

  /* 2) La barre devient une CARD  */
  #js-jobs .nexa-jobs-filters-row{
    border-radius: 20px !important;       
    padding: 16px !important;              
    gap: 12px !important;
    flex-wrap: wrap !important;

    border: 2px solid #ffffff !important; 
    min-height: unset !important;          
    box-shadow: 0 18px 45px rgba(0,0,0,.16) !important;
  }

  /* 3) Chaque item prend 100% */
  #js-jobs .nexa-jobs-filter-item{
    flex: 1 1 100% !important;
    min-width: 100% !important;
  }

  /* 4) Supprimer les séparateurs verticaux sur mobile */
  #js-jobs .nexa-jobs-filter-item + .nexa-jobs-filter-item::before,
  #js-jobs .nexa-jobs-filter-item--button::before{
    display: none !important;
    content: none !important;
  }

  /* 5) Inputs + trigger */
  #js-jobs .nexa-input-text,
  #js-jobs .nexa-canton-trigger{
    height: 52px !important;
    border-radius: 14px !important;
    background: #fff !important;
    border: 1px solid rgba(15,23,42,.14) !important;
    padding: 0 16px !important;
  }

  /* 6) Bouton full width, sans ring desktop trop fort */
  #js-jobs .nexa-jobs-filter-item--button{
    padding-left: 0 !important;
    width: 100% !important;
  }

  #js-jobs .nexa-jobs-filter-item--button .nexa-btn{
    width: 100% !important;
    height: 56px !important;
    font-size: 16px !important;
    font-weight: 800 !important;

    /* ring plus doux que desktop */
    box-shadow: 0 0 0 2px #ffffff, 0 16px 34px rgba(0,0,0,.18) !important;
  }
}


/* ===========================
   MOBILE — aligner "Cantons..." à gauche
   =========================== */
@media (max-width: 640px){

  #js-jobs .nexa-canton-trigger{
    justify-content: flex-start !important;
    text-align: left !important;
  }

  #js-jobs .nexa-canton-label{
    text-align: left !important;
  }

  /* Sécurité si un thème centre le texte */
  #js-jobs .nexa-canton-trigger *{
    text-align: left !important;
  }
}



/* =========================================================
   Nexa Job Detail — Switzerland-Jobs like
   Header card + Back button + Viewport + Fade + CTA + Modal
   ========================================================= */

:root{
  --nexa-violet:#6254e7;
  --nexa-black:#0b0f1a;
  --nexa-text:#0f172a;
  --nexa-muted:rgba(15,23,42,.62);
  --nexa-border:rgba(15,23,42,.08);
  --nexa-shadow:0 18px 45px rgba(12,35,64,.08);
  --nexa-shadow-strong:0 24px 80px rgba(15,23,42,.18);
}

/* =========================================================
   0) HARD RESET (anti thème)
   ========================================================= */
.nexa-job-detail,
.nexa-job-detail *{ box-sizing:border-box; }

.nexa-job-detail a,
.nexa-job-detail button{
  text-transform:none !important;
  letter-spacing:normal !important;
  box-shadow:none !important;
}

/* =========================================================
   1) PAGE LAYOUT (max-width + spacing)
   ========================================================= */
.nexa-job-detail{
  max-width: 980px;
  margin: 24px auto 60px;
  padding: 0 18px;
}

/* =========================================================
   2) BACK BUTTON
   ========================================================= */
.nexa-job-detail .nexa-job-backbar{
  margin: 6px 0 14px;
}

.nexa-job-detail .nexa-back-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(15,23,42,.10);
  background: #fff;
  color: rgba(15,23,42,.85) !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 13px;
  transition: background-color .15s ease, border-color .15s ease, transform .08s ease;
}

.nexa-job-detail .nexa-back-btn:hover{
  border-color: rgba(98,84,231,.30);
  background: rgba(98,84,231,.06);
  transform: translateY(-1px);
}

/* =========================================================
   3) HEADER CARD (logo + title + meta like Switzerland-Jobs)
   ========================================================= */
.nexa-job-detail .nexa-job-card-header{
  background:#fff;
  border: 1px solid var(--nexa-border);
  border-radius: 18px;
  box-shadow: var(--nexa-shadow);
  padding: 22px 22px 18px;
}

.nexa-job-detail .nexa-job-card-header__top{
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.nexa-job-detail .nexa-job-card-logo{
  width: 74px;
  height: 74px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  flex: 0 0 auto;
}

.nexa-job-detail .nexa-job-card-logo img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display:block;
}

.nexa-job-detail .nexa-job-card-headings{ flex: 1; }

.nexa-job-detail .nexa-job-card-title{
  margin: 0 0 10px !important;
  font-size: clamp(28px, 3.3vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--nexa-text) !important;
}

.nexa-job-detail .nexa-job-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 6px;
  color: rgba(15,23,42,.70);
  font-size: 14px;
}

.nexa-job-detail .nexa-meta-item{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(15,23,42,.72);
  font-weight: 600;
}

.nexa-job-detail .nexa-meta-ico{
  width: 20px;
  height: 20px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color: var(--nexa-violet);
}

.nexa-job-detail .nexa-meta-ico svg{
  display:block;
}

/* Mobile header */
@media (max-width: 640px){
  .nexa-job-detail{ padding: 0 14px; }
  .nexa-job-detail .nexa-job-card-header{ padding: 18px 16px; }
  .nexa-job-detail .nexa-job-card-header__top{ gap: 14px; }
  .nexa-job-detail .nexa-job-card-logo{ width: 62px; height: 62px; border-radius: 14px; }
  .nexa-job-detail .nexa-job-card-title{ font-size: 18px; }
}

/* =========================================================
   4) SECTION TITLE "Description du poste"
   ========================================================= */
.nexa-job-detail .nexa-job-detail-description-wrap{
  margin-top: 18px;
}

.nexa-job-detail .nexa-job-section-title{
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
  color: var(--nexa-text);
  padding: 6px 2px;
}

/* =========================================================
   5) VIEWPORT CONTRÔLÉ (UI FIXE)
   ========================================================= */
.nexa-job-detail .nexa-job-descViewport{
  position: relative;
  overflow: hidden;
  max-height: 480px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--nexa-border);
  box-shadow: var(--nexa-shadow);
  padding: 18px 18px 150px; 
}

/* voile léger */
.nexa-job-detail .nexa-job-descViewport::after{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(15,23,42,.035);
  pointer-events:none;
  z-index:5;
}

/* mobile */
@media (max-width: 640px){
  .nexa-job-detail .nexa-job-descViewport{
    max-height: 520px;
    padding: 16px 14px 150px;
    border-radius: 16px;
  }
}

/* =========================================================
   6) DESCRIPTION CONTENT — ANTI THEME + PUCE FIX
   ========================================================= */
.nexa-job-detail .nexa-job-descContent{
  position: relative;
  z-index: 6;
  color: var(--nexa-text);
  font-size: 15px;
  line-height: 1.75;
}

/* Titles */
.nexa-job-detail .nexa-job-descContent :where(h1,h2,h3,h4,h5,h6){
  margin: 18px 0 10px !important;
  line-height: 1.25 !important;
  color: #262556 !important;
  font-weight: 800 !important;
}

/* Paragraphs */
.nexa-job-detail .nexa-job-descContent :where(p){
  margin: 0 0 12px !important;
}

/* Lists */
.nexa-job-detail .nexa-job-descContent :where(ul,ol){
  margin: 0 0 14px 22px !important;
  padding: 0 !important;
  list-style-position: outside !important;
}

/* FORCE bullet visible  */
.nexa-job-detail .nexa-job-descContent ul{
  list-style: disc !important;
  margin: 0 0 14px 22px !important;
  padding: 0 !important;
}

.nexa-job-detail .nexa-job-descContent ol{
  list-style: decimal !important;
  margin: 0 0 14px 22px !important;
  padding: 0 !important;
}

.nexa-job-detail .nexa-job-descContent li{
  margin: 0 0 8px !important;
}

.nexa-job-detail .nexa-job-descContent li::marker{
  color: #6254e7 !important;
  font-size: 1.05em !important;
}

.nexa-job-detail .nexa-job-descContent ul li::marker,
.nexa-job-detail .nexa-job-descContent ol li::marker{
  color: var(--nexa-violet) !important;
  font-weight: 900 !important;
}

/* Links */
.nexa-job-detail .nexa-job-descContent :where(a){
  color: var(--nexa-violet) !important;
  text-decoration: underline !important;
}

/* =========================================================
   7) FADE / BLUR bas — comme Switzerland-Jobs
   ========================================================= */
.nexa-job-detail .nexa-job-descFade{
  position:absolute;
  left:0; right:0; bottom:0;
  height: 250px;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.28) 42%,
    rgba(255,255,255,.72) 78%,
    rgba(255,255,255,.96) 100%
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events:none;
  z-index: 7;
}

@media (max-width: 640px){
  .nexa-job-detail .nexa-job-descFade{
    height: 170px;
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
  }
}

/* =========================================================
   8) CTA OVERLAY — centré + stable (bottom)
   ========================================================= */
.nexa-job-detail .nexa-apply-overlay{
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: min(560px, calc(100% - 28px));
  z-index: 10;
  pointer-events: none;
}

.nexa-job-detail .nexa-apply-overlay .nexa-apply-card{
  pointer-events: auto;
}

/* Card CTA */
.nexa-job-detail .nexa-apply-card{
  width: 100%;
  background: #fff;
  border: 1px solid var(--nexa-border);
  border-radius: 18px;
  box-shadow: var(--nexa-shadow-strong);
  padding: 22px 22px 18px;
  text-align: center;
}

.nexa-job-detail .nexa-apply-icon{
  width: 46px;
  height: 46px;
  margin: 0 auto 10px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(98,84,231,.12);
  color: var(--nexa-violet);
  font-size: 18px;
  font-weight: 900;
}

.nexa-job-detail .nexa-apply-title{
  margin: 0 0 6px !important;
  font-size: 22px;
  font-weight: 900;
  color: var(--nexa-text);
}

.nexa-job-detail .nexa-apply-text{
  margin: 0 0 12px !important;
  font-size: 13.5px;
  color: rgba(15,23,42,.65);
  line-height: 1.45;
}

/* Button CTA — noir + hover violet + texte blanc */
.nexa-job-detail .nexa-apply-btn{
  width: 100%;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  background: var(--nexa-black);
  color:#fff !important;
  font-weight: 900;
  font-size: 13px;
  transition: transform .08s ease, background-color .15s ease, box-shadow .15s ease;
}

.nexa-job-detail .nexa-apply-btn:hover{
  background: var(--nexa-violet);
  color:#fff !important;
}

.nexa-job-detail .nexa-apply-btn:active{ transform: translateY(1px); }

.nexa-job-detail .nexa-apply-btn:focus{
  outline: none;
  box-shadow: 0 0 0 4px rgba(98,84,231,.18);
}

.nexa-job-detail .nexa-apply-safe{
  margin-top: 10px;
  font-size: 12px;
  color: rgba(15,23,42,.55);
}

/* =========================================================
   9) CAS DESCRIPTION COURTE (JS ajoute .is-short)
   ========================================================= */
.nexa-job-detail .nexa-job-descViewport.is-short{
  max-height: none;
  overflow: visible;
  padding-bottom: 16px;
}
.nexa-job-detail .nexa-job-descViewport.is-short .nexa-job-descFade{ display:none; }
.nexa-job-detail .nexa-job-descViewport.is-short .nexa-apply-overlay{
  position: static;
  transform: none;
  width: 100%;
  margin-top: 14px;
}

/* =========================================================
   10) MODAL EMAIL — premium + checkbox align
   ========================================================= */
.nexa-modal{ display:none; }

.nexa-modal.is-open{
  display:block;
  position:fixed;
  inset:0;
  z-index:9999;
}

.nexa-modal-backdrop{
  position:absolute;
  inset:0;
  background: rgba(15,23,42,.62);
  backdrop-filter: blur(3px);
}

.nexa-modal-dialog{
  position: relative;
  width: min(640px, calc(100% - 28px));
  margin: 9vh auto 0;
  background:#fff;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 40px 120px rgba(15,23,42,.40);
  padding: 26px 26px 20px;
}

.nexa-modal-close{
  position:absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.10);
  background:#fff;
  cursor:pointer;
  font-size: 22px;
  line-height: 1;
}

.nexa-modal-title{
  margin: 4px 0 6px !important;
  font-size: 28px;
  font-weight: 900;
  color: var(--nexa-text);
  text-align:center;
}

.nexa-modal-subtitle{
  margin: 0 0 16px !important;
  font-size: 14px;
  color: rgba(15,23,42,.62);
  text-align:center;
  line-height: 1.45;
}

.nexa-modal-field{ margin-top: 10px; }

.nexa-modal-label{
  display:block;
  font-size: 12px;
  font-weight: 900;
  color: var(--nexa-text);
  margin-bottom: 8px;
}

.nexa-modal-input{
  width: 100%;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.12);
  background:#fff;
  font-size: 14px;
  outline:none;
}

.nexa-modal-input:focus{
  border-color: var(--nexa-violet);
  box-shadow: 0 0 0 4px rgba(98,84,231,.18);
}

/* checkbox align clean */
.nexa-modal-optin{
  margin-top: 12px;
  display:flex;
  align-items:center;
  gap: 10px;
  font-size: 13px;
  color: rgba(15,23,42,.65);
  line-height: 1.35;
}
.nexa-modal-optin input[type="checkbox"]{
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--nexa-violet);
}

.nexa-modal-error{
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(239,68,68,.10);
  border: 1px solid rgba(239,68,68,.25);
  color:#b91c1c;
  font-size: 13px;
}

.nexa-modal-actions{
  margin-top: 16px;
  display:flex;
  gap: 12px;
}

.nexa-btn-secondary,
.nexa-btn-primary{
  flex: 1;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid rgba(15,23,42,.08);
}

.nexa-btn-secondary{
  background: #eef2ff;
  color: var(--nexa-text);
}

.nexa-btn-primary{
  background: var(--nexa-black);
  color:#fff;
  border-color: rgba(15,23,42,.10);
}

.nexa-btn-primary:hover{
  background: var(--nexa-violet);
  color:#fff;
}

/* bloque scroll */
html.nexa-modal-open,
html.nexa-modal-open body{ overflow:hidden; }


/* FIX: forcer la taille + gras du titre (anti thème) */
.nexa-job-detail h1.nexa-job-card-title{
  font-size: clamp(24px, 2.4vw, 34px) !important; 
  font-weight: 600 !important;                   
  line-height: 1.15 !important;
  letter-spacing: -0.01em !important;
  margin: 0 0 10px !important;
}


@media (max-width: 640px){
  .nexa-job-detail h1.nexa-job-card-title{
    font-size: 22px !important;
    font-weight: 600 !important;
    line-height: 1.12 !important;
  }
}




/* =========================================================
   FIX LISTES : puce + texte sur la même ligne (anti thème)
   ========================================================= */

/* 1) Les <p> dans les <li> cassent souvent la ligne */
.nexa-job-detail .nexa-job-descContent li > p{
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 2) Si parfois c’est <div><p>… */
.nexa-job-detail .nexa-job-descContent li > div > p{
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 3) Supprimer les <br> qui peuvent créer l’effet “puce seule” */
.nexa-job-detail .nexa-job-descContent li br{
  display: none !important;
}

/* 4) Assurer un rendu propre des listes */
.nexa-job-detail .nexa-job-descContent ul,
.nexa-job-detail .nexa-job-descContent ol{
  padding-left: 22px !important;
  margin: 0 0 14px !important;
}

.nexa-job-detail .nexa-job-descContent li{
  list-style-position: outside !important;
  margin: 0 0 10px !important;
  line-height: 1.65 !important;
}

.nexa-job-detail .nexa-job-descContent li::marker{
  color: var(--nexa-violet) !important;
  font-weight: 900 !important;
}



/* =========================================================
   FIX TITRES DANS LA DESCRIPTION (h1 → h6)
   ========================================================= */

/* Base commune */
.nexa-job-detail .nexa-job-descContent :where(h1,h2,h3,h4,h5,h6){
  margin: 22px 0 10px !important;
  line-height: 1.3 !important;
  color: #262556 !important;
  letter-spacing: -0.01em !important;
  font-weight: 700 !important; 
}

/* Hiérarchie claire */
.nexa-job-detail .nexa-job-descContent h1{
  font-size: 26px !important;
}

.nexa-job-detail .nexa-job-descContent h2{
  font-size: 22px !important;
}

.nexa-job-detail .nexa-job-descContent h3{
  font-size: 19px !important;
}

.nexa-job-detail .nexa-job-descContent h4{
  font-size: 17px !important;
}

.nexa-job-detail .nexa-job-descContent h5{
  font-size: 15px !important;
  font-weight: 600 !important;
}

.nexa-job-detail .nexa-job-descContent h6{
  font-size: 14px !important;
  font-weight: 600 !important;
  color: rgba(38,37,86,.75) !important;
}

/* Mobile */
@media (max-width: 640px){
  .nexa-job-detail .nexa-job-descContent h1{ font-size: 22px !important; }
  .nexa-job-detail .nexa-job-descContent h2{ font-size: 19px !important; }
  .nexa-job-detail .nexa-job-descContent h3{ font-size: 17px !important; }
}


.nexa-job-detail .nexa-job-descContent h2{
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(38,37,86,.12);
}



/* Désactiver la réservation bas */
.nexa-job-detail .nexa-job-descViewport{
  padding-bottom: 100px !important;
}

/* Limiter le texte visible */
.nexa-job-detail .nexa-job-descContent{
  max-height: 520px;   
  overflow: hidden;
  position: relative;
  z-index: 5;
}

/* Voile moderne */
.nexa-job-detail .nexa-job-maskZone::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(
      to bottom,
      rgba(255,255,255,0.10) 0%,
      rgba(255,255,255,0.35) 35%,
      rgba(255,255,255,0.70) 70%,
      rgba(255,255,255,0.92) 100%
    );
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  z-index: 10;
  pointer-events:none;
}

/* CTA flottant — position identique au site client */
.nexa-job-detail .nexa-apply-overlay{
  position: absolute;
  left: 50%;
  top: 58%;             
  transform: translate(-50%, -50%);
  width: min(560px, calc(100% - 28px));
  z-index: 20;
  pointer-events: none;
}

.nexa-job-detail .nexa-apply-overlay .nexa-apply-card{
  pointer-events: auto;
  border-radius: 22px;
  box-shadow: 0 28px 90px rgba(15,23,42,.22);
}

@media (max-width: 640px){

  .nexa-job-detail .nexa-job-descContent{
    max-height: 260px;
  }

  .nexa-job-detail .nexa-apply-overlay{
    top: 56%;
    width: calc(100% - 24px);
  }

  .nexa-job-detail .nexa-apply-title{
    font-size: 18px;
  }

  .nexa-job-detail .nexa-apply-text{
    font-size: 13px;
  }
}



/* =========================================
   FIX MOBILE — CTA "Prêt à postuler" toujours cliquable
   ========================================= */
@media (max-width: 640px){

  /* 1) Autoriser le clic + éviter que le viewport coupe le CTA */
  .nexa-job-detail .nexa-job-descViewport{
    overflow: visible !important;
    max-height: none !important;
    padding-bottom: 54px !important;
  }

  /* 2) On limite le texte, mais on ne doit pas piéger le CTA */
  .nexa-job-detail .nexa-job-descContent{
    max-height: 260px !important; 
    overflow: hidden !important;
  }

  /* 3) Remettre le CTA en bas (stable) au lieu de top:56% */
  .nexa-job-detail .nexa-apply-overlay{
    position: sticky !important;
    top: auto !important;
    bottom: 14px !important;
    left: 0 !important;
    transform: none !important;
    width: 100% !important;
    z-index: 999 !important;
  }

  .nexa-job-detail .nexa-apply-card{
    width: 100% !important;
  }
}


/* FIX MOBILE — texte bouton CTA lisible */
@media (max-width: 640px){
  .nexa-job-detail .nexa-apply-btn{
    white-space: normal !important;    
    line-height: 1.25 !important;     
    padding: 14px 16px !important;    
    font-size: 14px !important;        
    height: auto !important;      
    text-align: center !important;
  }
}


/* =========================================
   DESKTOP — bouton largeur auto (pas full width)
   ========================================= */
@media (min-width: 641px){
  .nexa-job-detail .nexa-apply-btn{
    width: auto !important;        
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;           
    padding: 12px 24px;            
  }

  .nexa-job-detail .nexa-apply-card{
    text-align: center;           
  }
}


/* FIX modal apply email — éviter input collé à gauche (thème override) */
.nexa-modal-form .nexa-modal-input{
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 14px 16px !important; 
  border-radius: 14px !important;
  border: 1px solid rgba(15,23,42,.12) !important;
  background: #fff !important;
  font-size: 14px !important;
  outline: none !important;
}

.nexa-modal-form .nexa-modal-input:focus{
  border-color: var(--nexa-violet) !important;
  box-shadow: 0 0 0 4px rgba(98,84,231,.18) !important;
}


