/* ====== LAYOUT du formulaire (UL en ligne + espacements) ====== */
form#search-filter-form-889 ul {
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
  overflow: visible !important;
}

/*form#search-filter-form-889 ul *{
  overflow: visible !important;} */

form#search-filter-form-889 ul > li { margin: 0; }

/* Si le formulaire est dans un bloc blanc / card */
form#search-filter-form-889 { overflow: visible !important; }
form#search-filter-form-889 .uk-card,
form#search-filter-form-889 .uk-section,
form#search-filter-form-889 .uk-container { overflow: visible !important; }

/* ====== CHOICES : même skin que ton “image 2” ====== */
form#search-filter-form-889 .choices { width: 100%; font-size: 16px; position: relative; z-index: 2; }
form#search-filter-form-889 .choices .choices__inner {
  position: relative;
  background: #fff !important;
  border: 1px solid #1f1f1f;
  border-radius: 10px;
  min-height: 40px !important;
  padding: 8px 12px;
  padding-right: 44px; /* place pour chevron gris */
  box-shadow: none;
}
form#search-filter-form-889 .choices.is-focused .choices__inner,
form#search-filter-form-889 .choices.is-open .choices__inner {
  border-color: #1f1f1f;
  box-shadow: none;
}

/* Quand un select est ouvert, on le met tout au-dessus */
form#search-filter-form-889 .choices.is-open {
  z-index: 10000 !important;
}

/* === DROPDOWN Choices — bloc unique et définitif === */
form#search-filter-form-889 .choices__list--dropdown,
form#search-filter-form-889 .choices__list[aria-expanded] {
  position: absolute;
  left: 0; right: 0;                 /* même largeur que le champ */
  top: calc(100% + 8px);             /* décollée du champ */
  z-index: 10001;
  max-height: 320px;                 /* limite la hauteur */
  overflow: auto;                    /* scroll propre */
  background: #fff !important;       /* fond solide */
  background-clip: padding-box;      /* propre avec le radius */
  border: 1px solid #1f1f1f;
  border-radius: 10px;
  margin-top: 8px;
  box-shadow: 0 14px 28px rgba(0,0,0,.10), 0 8px 16px rgba(0,0,0,.08);
}

/* Items de la dropdown */
form#search-filter-form-889 .choices__list--dropdown .choices__item--selectable,
form#search-filter-form-889 .choices__list[aria-expanded] .choices__item--selectable {
  padding: 10px 12px;
  font-size: 16px;
  color: #111;
}
form#search-filter-form-889 .choices__list--dropdown .choices__item--selectable.is-highlighted,
form#search-filter-form-889 .choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
  background: #f5f5f5;
}
form#search-filter-form-889 .choices__list--dropdown .choices__item--selectable.is-selected,
form#search-filter-form-889 .choices__list[aria-expanded] .choices__item--selectable.is-selected {
  background: #2f6fed; color: #fff;
}

/* Texte sélectionné */
form#search-filter-form-889 .choices .choices__list--single .choices__item {
  font-weight: 600 !important;
  font-size: 16px;
  line-height: 1.25;
  color: #111;
}

/* Séparateur + chevron GRIS */
form#search-filter-form-889 .choices[data-type*="select-one"] .choices__inner::before {
  content: "";
  position: absolute;
  top: 7px; bottom: 7px;
  right: 34px;
  width: 1px;
  background: #d9d9d9;
}
form#search-filter-form-889 .choices[data-type*="select-one"] .choices__inner::after {
  content: "";
  position: absolute;
  right: 14px; top: 50%;
  width: 7px; height: 7px;
  border-right: 2px solid #9ca3af;
  border-bottom: 2px solid #9ca3af;
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
  transition: transform .2s ease;
}
form#search-filter-form-889 .choices[data-type*="select-one"].is-open .choices__inner::after {
  transform: translateY(-50%) rotate(-135deg);
}

/* Masquer le petit chevron noir natif de Choices */
form#search-filter-form-889 .choices[data-type*="select-one"] .choices__list--single::after,
form#search-filter-form-889 .choices[data-type*="select-one"] .choices__list--single .choices__item::after {
  content: none !important; display: none !important;
}

/* Nettoyage */
form#search-filter-form-889 .choices[data-type*="select-one"] .choices__list--multiple,
form#search-filter-form-889 .choices__input { display: none !important; }
form#search-filter-form-889 .sf-field,
form#search-filter-form-889 .choices { max-width: 100%; }
form#search-filter-form-889 .choices { overflow: visible !important; margin-bottom: 0 !important; }

/* ====== Bouton rechercher ====== */
form#search-filter-form-889 input[type="submit"],
form#search-filter-form-889 button[type="submit"] {
  height: 40px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 600;
}

/* ====== Responsive ====== */
@media (max-width: 1024px) {
  form#search-filter-form-889 ul { flex-wrap: wrap; }
}

/* ====== Vars (ajuste si besoin) ====== */
:root{
  --card-bg:#ffffff;
  --card-border:#e5dfd8;
  --card-shadow:0 4px 14px rgba(16,24,40,.08);
  --text:#0f172a;
  --muted:#020101;
  --brand:#7e9cc4;     /* vert du badge */
  --brand-ink:#ffffff; /* texte du badge */
  --radius-xl:22px;
  --radius-lg:18px;
}

/* ====== Carte ====== */
.cl-template--post.cl-template--image-top{
  display:flex;
  align-items:stretch;
  gap:10px;
  border-bottom:1px solid var(--card-border);
}

.cl-template--id-946 .cl-element--instance-1004 {
    border-radius: 20px 20px 20px 80px!important;
}

/* ====== Média ====== */
.cl-element-featured_media{
  min-width:260px;           /* largeur du bloc image */
  max-width:320px;
  border-radius:var(--radius-lg);
  overflow:hidden;
}
.cl-element-featured_media__anchor{
  display:block;
  height:175px;              /* hauteur fixe façon vignette */
  aspect-ratio:16/9;
}
.cl-element-featured_media__image{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transform:scale(1.001); /* anti ligne blanche */
}

.cl-template--id-946 .cl-element--instance-1002 .cl-element-title__anchor {
    font-family: Manrope;
	font-size: 22px;
	font-weight:800;
}

/* ====== Colonne texte ====== */
.cl-element-section{
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:10px;
  padding:6px 0;
}

/* “FILIÈRE : …” (ligne sobre au-dessus du titre) */
.cl-element-section .filiere{
  font-size:14px;
  color:var(--muted);
}
.cl-template--id-946 div.cl-element--instance-1001 .cl-element-taxonomy__term {
    color: #ffffff;
    background-color: #99ba73;
    margin: 0px 4px 4px 0px;
    padding: 0 25px;
    border-radius: 4px;
    border-width: 0px;
    font-weight: normal;
    font-style: normal;
    text-decoration: none!important;
    font-size: 16px;
    font-family: 'Manrope';
    line-height: 25px;
}
.cl-template--id-946 div.cl-element--instance-1001 .cl-element-taxonomy__term:hover{
    background-color: #d04f16;
}
.cl-element-section .filiere::before{
  content:"FILIÈRE : ";
  font-weight:600;
  letter-spacing:.02em;
  color:var(--muted);
	display:none;
}
.cl-element-section .filiere .cl-element-taxonomy__term{
  color:var(--muted);
  text-decoration:none;
  border-bottom:1px dotted transparent;
	
}
.cl-element-section .filiere .cl-element-taxonomy__term:hover{
  border-bottom-color:currentColor;
}

/* Titre */
.cl-element-title{
  margin:0;
}
.cl-element-title a{
  font-size:22px;
  line-height:1.25;
  font-weight:700;
  color:var(--text);
  text-decoration:none;
}
.cl-element-title a:hover{
  text-decoration:none;
  text-underline-offset:2px;
}
.cl-template--id-946 .cl-element--instance-1002 .cl-element-title__anchor:hover{text-decoration:none!important; font-weight:800; color:#000;}

/* ====== Badges “voie de formation” (ex: Par voie scolaire / Apprentissage) ====== */
.voie-de-formations{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}
/*.voie-de-formations::before{
  content:"Formation";
  padding:6px 10px;
  font-weight:700;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:var(--brand-ink);
  background:var(--brand);
  border-radius:9999px;
} */


.voie-de-formations .cl-element-taxonomy__term{
  display:inline-block;
  padding:6px 12px;
  font-weight:600;
  font-size:14px;
  color:var(--brand-ink);
  background:var(--brand);
  border-radius:9999px;
  text-decoration:none;
  white-space:nowrap;
}
.voie-de-formations .cl-element-taxonomy__term:hover{
  filter:brightness(.95);
}

/* ====== RWD ====== */
@media (max-width: 880px){
  .cl-template--post.cl-template--image-top{
    flex-direction:column;
    gap:16px;
    padding:16px;
  }
  .cl-element-featured_media{
    min-width:unset;
    max-width:none;
    border-radius:var(--radius-xl);
  }
  .cl-element-featured_media__anchor{ height:200px; }
  .cl-element-title a{ font-size:20px; }
}

@media (max-width: 640px){
	.cl-template--id-946 div.cl-element--instance-1001 .cl-element-taxonomy__term{
    font-size: 12px;
		font-weight:700;
}
}


@media (max-width: 480px){
  .cl-element-featured_media__anchor{ height:170px; }
  .cl-element-title a{ font-size:18px; }
}


label.sf-label-checkbox {
    font-family: "Manrope", Sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #000;
}
form#search-filter-form-937 input {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    margin-top: 0px;
    margin-right: 10px;
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    border-color: #98ba73;
}




@media (max-width: 456px){
  form#search-filter-form-889 ul {
  gap: 0px;
}
}


/* Reponsive module de recherche sur resulats-formation */

.filters-toggle:focus {
    outline: none !important;
}

.filters-toggle{display:none}@media (max-width:900px){.filters-toggle{display:flex;align-items:center;gap:.75rem;margin:20px auto 16px;padding:14px 18px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;border-radius:14px;border:none!important;background:0 0!important;cursor:pointer}.filters-toggle__icon{width:28px;height:18px;position:relative;display:inline-block}.filters-toggle__icon::after,.filters-toggle__icon::before{content:"";position:absolute;left:0;right:0;height:2px;background:#111;top:4px;box-shadow:0 6px 0 0 #111,0 12px 0 0 #111}#search-filter-form-937{max-height:0;overflow:hidden;opacity:0;transform:translateY(-6px);transition:max-height .35s,opacity .2s,transform .2s;border-radius:22px;background:transparent!important;padding-inline:0}#search-filter-form-937.is-open{max-height:5000px;opacity:1;transform:none;padding-inline:0}}@media (prefers-reduced-motion:reduce){#search-filter-form-937{transition:none}}