/* RenfortPro v59 — tags libres */
#home .search,#search .search{max-width:1200px}
#home .search{grid-template-columns:1.05fr 1.25fr 1.35fr 1.05fr .85fr 1fr auto}
#search .search{grid-template-columns:1fr 1.1fr 1.25fr 1fr .85fr .9fr auto}
.rpKeywordSearchField59 input{font-weight:700}
.rpMissionKeywords59{margin:18px 0;padding:20px;border:1px solid #dde1da;border-radius:16px;background:#fafbf8}
.rpKeywordEditorHead59{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.rpKeywordEditorHead59 small{font-size:9px;letter-spacing:.12em;font-weight:800;color:#73827d}.rpKeywordEditorHead59 small span{font-weight:600;letter-spacing:0}.rpKeywordEditorHead59 h3{margin:6px 0 4px;font:22px Georgia}.rpKeywordEditorHead59 p{margin:0;color:#6a7974;font-size:12px}.rpKeywordEditorHead59>span{font-size:10px;color:#6a7974;white-space:nowrap}
.rpKeywordEntry59{display:flex;gap:9px;margin-top:16px}.rpKeywordEntry59 input{flex:1;min-width:0;padding:12px 14px;border:1px solid #d5dad5;border-radius:10px;background:#fff}.rpKeywordEntry59 button{border:0;border-radius:10px;padding:0 15px;background:#173f35;color:#fff;font-weight:800}
.rpKeywordChips59{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.rpKeywordChips59>span{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border-radius:999px;background:#edf3ef;color:#173f35;font-size:10px;font-weight:750}.rpKeywordChips59>span button{width:17px;height:17px;border:0;border-radius:50%;padding:0;background:#dbe8e1;display:grid;place-items:center;font-size:12px}
.rpKeywordHint59{display:block;margin-top:10px;color:#73827d;font-size:10px}.rpProfileKeywords59{margin-top:18px}.rpProfileKeywordChips59>span{font-size:11px;padding:8px 12px}.rpProfileKeywords59 .sectionTitle p{margin:4px 0 0}
.rpSearchKeywords59{margin-top:9px}.rpSearchKeywords59>span{font-size:9px;padding:5px 8px;background:#f0f2ed}.workerMissionCard .rpSearchKeywords59{padding:0 24px 16px;margin-top:-5px}.missionCardOpen>.rpSearchKeywords59{margin-top:13px}
.rpWorkerKeywordFilter59{min-width:230px;padding:10px 12px;border:1px solid #dde1da;border-radius:10px;background:#fff}
.rpKeywordMissionBlock59{margin:15px 0;padding:15px;border-radius:14px;background:#f3f6f2}.rpKeywordMissionBlock59>b{font-size:11px}.rpKeywordMissionBlock59 .rpKeywordChips59{margin-top:9px}
@media(max-width:1100px){#home .search,#search .search{grid-template-columns:repeat(2,minmax(0,1fr))}#home .search button,#search .search button{min-height:48px}.workerToolbar{flex-wrap:wrap}.rpWorkerKeywordFilter59{min-width:180px;flex:1}}
@media(max-width:650px){#home .search,#search .search{grid-template-columns:1fr}.rpKeywordEditorHead59{display:block}.rpKeywordEditorHead59>span{display:block;margin-top:8px}.rpKeywordEntry59{flex-direction:column}.rpKeywordEntry59 button{min-height:42px}}

/* v59.1 — bandeau de recherche compact et aligné */
#home .search,
#search .search{
  width:min(100%,1400px);
  max-width:1400px;
  grid-template-columns:minmax(105px,.82fr) minmax(150px,1.08fr) minmax(170px,1.18fr) minmax(135px,.88fr) minmax(125px,.8fr) minmax(205px,1.28fr) 138px;
  align-items:stretch;
  padding:6px;
  border-radius:18px;
  overflow:hidden;
}
#home .search label,
#search .search label{
  min-width:0;
  padding:10px 14px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
#home .search label:nth-last-of-type(1),
#search .search label:nth-last-of-type(1){border-right:1px solid #e6e8e3}
#home .search small,
#search .search small{white-space:nowrap;font-size:8px;margin-bottom:8px}
#home .search input,
#home .search select,
#search .search input,
#search .search select{font-size:14px;min-width:0;text-overflow:ellipsis}
#home .search .rpKeywordSearchField59 input,
#search .search .rpKeywordSearchField59 input{font-size:13px}
#home .search>button,
#search .search>button{
  min-width:138px;
  min-height:70px;
  padding:0 18px;
  margin:0;
  border-radius:14px;
  align-self:stretch;
  white-space:nowrap;
  background:var(--orange);
}

/* On conserve une seule barre sur les largeurs desktop usuelles. */
@media (min-width:981px) and (max-width:1100px){
  #home .search,#search .search{
    grid-template-columns:minmax(92px,.78fr) minmax(130px,1.02fr) minmax(145px,1.1fr) minmax(122px,.86fr) minmax(112px,.78fr) minmax(175px,1.2fr) 124px;
  }
  #home .search label,#search .search label{padding:9px 10px}
  #home .search>button,#search .search>button{min-width:124px;padding:0 12px}
}

/* Tablette : deux lignes équilibrées, jamais un bouton seul. */
@media (min-width:651px) and (max-width:980px){
  #home .search,#search .search{
    grid-template-columns:repeat(3,minmax(0,1fr));
    overflow:visible;
  }
  #home .search>button,#search .search>button{
    grid-column:3;
    min-width:0;
    min-height:58px;
  }
  #home .search label:nth-child(3),#search .search label:nth-child(3),
  #home .search .rpKeywordSearchField59,#search .search .rpKeywordSearchField59{border-right:0}
}

@media (max-width:650px){
  #home .search,#search .search{grid-template-columns:1fr;overflow:visible}
  #home .search label,#search .search label{border-right:0;border-bottom:1px solid #e6e8e3}
  #home .search>button,#search .search>button{min-width:0;min-height:52px}
}

/* v59.2 — correctif réel du bandeau : neutralise les anciennes règles v39-v42 en !important */
#home .homeHero .search{
  width:100%!important;
  max-width:1170px!important;
  display:grid!important;
  grid-template-columns:minmax(0,.78fr) minmax(0,1.12fr) minmax(0,1.38fr) minmax(0,1fr) minmax(0,.94fr) minmax(0,1.34fr) 142px!important;
  align-items:stretch!important;
  gap:0!important;
  padding:6px!important;
  border-radius:18px!important;
  overflow:hidden!important;
}
#home .homeHero .search>label{
  min-width:0!important;
  padding:12px 14px!important;
  justify-content:flex-start!important;
}
#home .homeHero .search>label>small{
  min-height:11px!important;
  font-size:8px!important;
  line-height:1.15!important;
  margin-bottom:8px!important;
  white-space:nowrap!important;
}
#home .homeHero .search input,
#home .homeHero .search select{
  min-width:0!important;
  width:100%!important;
  font-size:14px!important;
  min-height:30px!important;
  text-overflow:ellipsis!important;
}
#home .homeHero .search .rpKeywordSearchField59 input{
  font-size:13px!important;
}
#home .homeHero .search>button{
  grid-column:auto!important;
  grid-row:auto!important;
  min-width:142px!important;
  min-height:76px!important;
  height:auto!important;
  margin:0!important;
  padding:0 18px!important;
  align-self:stretch!important;
  border-radius:14px!important;
  white-space:nowrap!important;
}

/* Écran intermédiaire : 4 éléments puis 3, le bouton reste avec les champs. */
@media (min-width:781px) and (max-width:1100px){
  #home .homeHero .search{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    overflow:hidden!important;
  }
  #home .homeHero .search>button{
    min-width:0!important;
    min-height:60px!important;
  }
  #home .homeHero .search>label:nth-child(4){border-right:0!important}
}

/* Petit écran/tablette : deux colonnes, bouton pleine largeur. */
@media (min-width:651px) and (max-width:780px){
  #home .homeHero .search{grid-template-columns:repeat(2,minmax(0,1fr))!important;overflow:hidden!important}
  #home .homeHero .search>button{grid-column:1/-1!important;min-width:0!important;min-height:54px!important}
}
@media (max-width:650px){
  #home .homeHero .search{grid-template-columns:1fr!important;overflow:hidden!important}
  #home .homeHero .search>label{border-right:0!important;border-bottom:1px solid #e6e8e3!important}
  #home .homeHero .search>button{grid-column:auto!important;min-width:0!important;min-height:52px!important}
}
