:root{
  /* Charte Instants Web : bleu marine, turquoise, crème */
  --iwf-blue:#172D7B;
  --iwf-blue-dark:#0F1F5C;
  --iwf-orange:#75C1BA;        /* accent turquoise (nom de variable conservé pour compatibilité) */
  --iwf-orange-dark:#172D7B;   /* v5.4 : bleu marine (le vert foncé est retiré de la charte) */
  --iwf-accent-hover:#5AAFA7;
  --iwf-accent-soft:#DDF1EE;
  --iwf-yellow:#75C1BA;
  --iwf-bg:#FFFFFF;
  --iwf-panel:#FFFFFF;
  --iwf-panel-soft:#FCF7EE;
  --iwf-line:#ECE6DA;
  --iwf-text:#2B2F3A;
  --iwf-text-soft:#3D4250;
  --iwf-muted:#5A5F6E;
  --iwf-brume:#ECE6DA;
  --iwf-soft:rgba(23,45,123,.06);
  --iwf-focus:rgba(117,193,186,.35);
  --iwf-font-title:"Montserrat","Segoe UI",system-ui,sans-serif;
  --iwf-font-text:"Nunito","Segoe UI",system-ui,sans-serif;
  --iwf-font-note:"Caveat","Segoe Print",cursive;
  --fbm-primary:var(--iwf-orange);
  --fbm-secondary:var(--iwf-blue);
  --fbm-dark:var(--iwf-text);
  --fbm-light:var(--iwf-panel);
  --fbm-radius:18px;
  --fbm-radius-sm:12px;
  --fbm-shadow:0 1px 0 #ECE6DA,0 12px 32px rgba(23,45,123,.08);
  --fbm-shadow-hover:0 18px 44px rgba(23,45,123,.14);
  --fbm-transition:all .2s ease;
}

.fbm-multistep-container,
.fbm-multistep-container *{box-sizing:border-box}

.fbm-multistep-container{
  position:relative;
  isolation:isolate;
  width:min(1240px,calc(100% - 32px));
  margin:42px auto;
  padding:32px;
  overflow:hidden;
  border:1px solid rgba(23,45,123,.10);
  border-radius:28px;
  background:
    radial-gradient(circle at 100% 0,rgba(117,193,186,.12),transparent 26%),
    radial-gradient(circle at 0 28%,rgba(23,45,123,.09),transparent 28%),
    var(--iwf-bg);
  color:var(--iwf-text);
  font-family:var(--iwf-font-text);
  line-height:1.6;
  box-shadow:0 28px 75px rgba(15,31,92,.10);
}

.fbm-multistep-container::before{
  content:"";
  position:absolute;
  z-index:-1;
  top:-130px;
  right:-130px;
  width:330px;
  height:330px;
  border:54px solid rgba(117,193,186,.06);
  border-radius:50%;
}

.fbm-multistep-container button,
.fbm-multistep-container input,
.fbm-multistep-container select,
.fbm-multistep-container textarea{font:inherit}

.fbm-progress-bar{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin:0 0 34px;
  padding:24px 22px;
  overflow:hidden;
  border:1px solid var(--iwf-brume);
  border-radius:22px;
  background:rgba(255,255,255,.92);
  box-shadow:var(--fbm-shadow);
  backdrop-filter:blur(12px);
}

.fbm-progress-bar::before{
  content:"";
  position:absolute;
  inset:0 0 auto;
  height:5px;
  background:linear-gradient(90deg,var(--iwf-blue),var(--iwf-orange));
}

.fbm-progress-step{
  position:relative;
  z-index:2;
  display:flex;
  flex:0 0 92px;
  flex-direction:column;
  align-items:center;
  gap:9px;
  transition:var(--fbm-transition);
}

.fbm-step-number{
  display:flex;
  width:46px;
  height:46px;
  align-items:center;
  justify-content:center;
  border:2px solid rgba(23,45,123,.18);
  border-radius:15px;
  background:var(--iwf-panel-soft);
  color:var(--iwf-blue);
  font-size:1rem;
  font-weight:800;
  box-shadow:0 7px 18px rgba(23,45,123,.08);
  transition:var(--fbm-transition);
}

.fbm-step-label{
  color:var(--iwf-muted);
  font-size:.78rem;
  font-weight:700;
  line-height:1.25;
  text-align:center;
}

.fbm-progress-step.active .fbm-step-number{
  border-color:var(--iwf-orange);
  background:linear-gradient(135deg,var(--iwf-orange),var(--iwf-orange-dark));
  color:#fff;
  transform:translateY(-2px) scale(1.07);
  box-shadow:0 10px 24px rgba(117,193,186,.30);
}

.fbm-progress-step.active .fbm-step-label{color:var(--iwf-blue-dark)}

.fbm-progress-step.completed .fbm-step-number{
  border-color:var(--iwf-blue);
  background:linear-gradient(135deg,var(--iwf-blue),var(--iwf-blue-dark));
  color:#fff;
}

.fbm-progress-line{
  flex:1;
  height:3px;
  min-width:10px;
  margin:0 -2px 25px;
  border-radius:999px;
  background:linear-gradient(90deg,rgba(23,45,123,.15),rgba(117,193,186,.18));
}

.fbm-step{display:none;animation:fbmFadeIn .38s ease}
.fbm-step.active{display:block}

@keyframes fbmFadeIn{
  from{opacity:0;transform:translateY(14px)}
  to{opacity:1;transform:translateY(0)}
}

.fbm-step-header{
  position:relative;
  display:flex;
  align-items:flex-start;
  gap:20px;
  margin:0 0 30px;
  padding:34px 30px;
  overflow:hidden;
  border:1px solid var(--iwf-brume);
  border-radius:22px;
  background:linear-gradient(135deg,var(--iwf-blue-dark),var(--iwf-blue));
  color:#fff;
  text-align:left;
  box-shadow:0 20px 45px rgba(15,31,92,.18);
}

.fbm-step-header::after{
  content:"";
  position:absolute;
  right:-65px;
  bottom:-90px;
  width:210px;
  height:210px;
  border:36px solid rgba(255,255,255,.06);
  border-radius:50%;
}

.fbm-step-icon-badge{
  position:relative;
  z-index:1;
  display:flex;
  flex:0 0 58px;
  width:58px;
  height:58px;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,255,255,.22);
  border-radius:16px;
  background:rgba(255,255,255,.14);
  font-size:1.7rem;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18);
}

.fbm-step-header-text{position:relative;z-index:1;min-width:0}
.fbm-step-header-text h2:focus{outline:3px solid rgba(255,255,255,.7);outline-offset:4px;border-radius:8px}

.fbm-step-header h2{
  position:relative;
  z-index:1;
  margin:0 0 8px;
  color:#fff;
  font-size:clamp(1.65rem,3vw,2.35rem);
  font-weight:800;
  letter-spacing:-.025em;
  line-height:1.15;
}

.fbm-subtitle{
  position:relative;
  z-index:1;
  max-width:780px;
  margin:0;
  color:rgba(255,255,255,.82);
  font-size:1rem;
  font-weight:500;
}

.fbm-category-filters{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 24px}
.fbm-category-chip{
  display:inline-flex;
  align-items:center;
  padding:10px 18px;
  border:1px solid rgba(23,45,123,.18);
  border-radius:999px;
  background:#fff;
  color:var(--iwf-text-soft);
  cursor:pointer;
  font-size:.88rem;
  font-weight:750;
  white-space:nowrap;
  transition:var(--fbm-transition);
  box-shadow:0 6px 16px rgba(15,31,92,.05);
}
.fbm-category-chip:hover{border-color:var(--iwf-orange);color:var(--iwf-orange-dark);transform:translateY(-1px)}
.fbm-category-chip.active{
  border-color:transparent;
  background:linear-gradient(135deg,var(--iwf-blue),var(--iwf-blue-dark));
  color:#fff;
  box-shadow:0 10px 22px rgba(23,45,123,.24);
}

.fbm-formations-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(285px,1fr));
  gap:22px;
  margin-bottom:30px;
}

.fbm-formation-card.fbm-hidden{display:none}

.fbm-formation-card{
  position:relative;
  overflow:hidden;
  border:1px solid var(--iwf-brume);
  border-radius:20px;
  background:var(--iwf-panel);
  cursor:pointer;
  box-shadow:0 12px 30px rgba(15,31,92,.08);
  transition:var(--fbm-transition);
}

.fbm-formation-card::before{
  content:"";
  position:absolute;
  z-index:3;
  inset:0 0 auto;
  height:5px;
  background:linear-gradient(90deg,var(--iwf-blue),var(--iwf-orange));
}

.fbm-formation-card:hover{
  border-color:rgba(117,193,186,.55);
  transform:translateY(-6px);
  box-shadow:var(--fbm-shadow-hover);
}

.fbm-formation-card.selected{
  border:2px solid var(--iwf-orange);
  transform:translateY(-4px);
  box-shadow:0 20px 48px rgba(117,193,186,.22);
}

.fbm-formation-card.selected::after{
  content:"✓";
  position:absolute;
  z-index:5;
  top:14px;
  right:14px;
  display:flex;
  width:38px;
  height:38px;
  align-items:center;
  justify-content:center;
  border:3px solid #fff;
  border-radius:50%;
  background:var(--iwf-orange);
  color:#fff;
  font-size:1.15rem;
  font-weight:900;
  box-shadow:0 8px 18px rgba(15,31,92,.22);
  animation:fbmCheck .32s ease;
}

@keyframes fbmCheck{
  from{opacity:0;transform:scale(.4) rotate(-20deg)}
  to{opacity:1;transform:scale(1) rotate(0)}
}

.fbm-formation-image{position:relative;height:205px;overflow:hidden;background:var(--iwf-panel-soft)}
.fbm-formation-image::after{content:"";position:absolute;inset:auto 0 0;height:45%;background:linear-gradient(to top,rgba(15,31,92,.42),transparent)}
.fbm-formation-image img{width:100%;height:100%;object-fit:cover;transition:transform .45s ease}
.fbm-formation-card:hover .fbm-formation-image img{transform:scale(1.055)}
.fbm-formation-content{padding:23px}
.fbm-formation-content h3{margin:0 0 13px;color:var(--iwf-blue-dark);font-size:1.25rem;font-weight:800;line-height:1.3}
.fbm-formation-meta{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:13px}

.fbm-badge,
.fbm-detail-badge{
  display:inline-flex;
  align-items:center;
  padding:6px 12px;
  border:1px solid transparent;
  border-radius:999px;
  font-size:.78rem;
  font-weight:800;
  line-height:1.2;
}

.fbm-badge-presentiel{border-color:rgba(117,193,186,.28);background:rgba(117,193,186,.14);color:var(--iwf-orange-dark)}
.fbm-badge-distanciel{border-color:rgba(23,45,123,.20);background:var(--iwf-panel-soft);color:var(--iwf-blue)}
.fbm-badge-hybride{border-color:rgba(23,45,123,.25);background:linear-gradient(90deg,var(--iwf-panel-soft),rgba(117,193,186,.12));color:var(--iwf-blue-dark)}
.fbm-badge-devis{border-color:rgba(23,45,123,.22);background:var(--iwf-panel-soft);color:var(--iwf-blue-dark)}
.fbm-badge-fourchette{border-color:rgba(117,193,186,.30);background:rgba(117,193,186,.10);color:var(--iwf-orange-dark)}

.fbm-urgency-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  width:fit-content;
  margin-top:12px;
  padding:9px 15px;
  border:0;
  border-radius:999px;
  background:linear-gradient(135deg,var(--iwf-orange),var(--iwf-orange-dark));
  color:#fff;
  font-size:.78rem;
  font-weight:800;
  line-height:1.3;
  box-shadow:0 8px 20px rgba(117,193,186,.30);
  animation:fbmUrgencyPulse 2.2s ease-in-out infinite;
}
.fbm-urgency-badge.fbm-urgency-low{
  background:linear-gradient(135deg,#e11d48,#b91c3c);
  box-shadow:0 8px 20px rgba(225,29,72,.32);
}
.fbm-urgency-badge.fbm-urgency-full{
  background:var(--iwf-panel-soft);
  color:var(--iwf-text-soft);
  box-shadow:none;
  animation:none;
}
.fbm-urgency-icon{font-size:.95rem;line-height:1}
.fbm-urgency-text strong{font-weight:900}
@keyframes fbmUrgencyPulse{
  0%,100%{transform:scale(1);box-shadow:0 8px 20px rgba(117,193,186,.30)}
  50%{transform:scale(1.035);box-shadow:0 10px 26px rgba(117,193,186,.42)}
}
.fbm-urgency-badge.fbm-urgency-low{animation:fbmUrgencyPulseLow 1.6s ease-in-out infinite}
@keyframes fbmUrgencyPulseLow{
  0%,100%{transform:scale(1);box-shadow:0 8px 20px rgba(225,29,72,.32)}
  50%{transform:scale(1.045);box-shadow:0 12px 28px rgba(225,29,72,.46)}
}
.fbm-hours-progress{
  margin:16px 0;
  padding:14px 16px;
  border-radius:14px;
  background:var(--iwf-panel-soft);
  border:1px solid rgba(23,45,123,.12);
}
.fbm-hours-progress-bar{
  width:100%;
  height:10px;
  border-radius:999px;
  background:rgba(23,45,123,.10);
  overflow:hidden;
}
.fbm-hours-progress-fill{
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,var(--iwf-orange),var(--iwf-orange-dark));
  transition:width .35s ease;
}
.fbm-hours-progress-fill.fbm-hours-progress-complete{
  background:linear-gradient(90deg,#16a34a,#15803d);
}
.fbm-hours-progress-text{
  margin:10px 0 0;
  font-size:.86rem;
  font-weight:700;
  color:var(--iwf-blue-dark);
  line-height:1.5;
}

.fbm-defer-planning{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  margin:16px 0;
  padding:14px 16px;
  border-radius:14px;
  background:rgba(117,193,186,.08);
  border:1px dashed rgba(117,193,186,.4);
}
.fbm-defer-planning p{margin:0;font-size:.86rem;color:var(--iwf-blue-dark);line-height:1.5;flex:1 1 260px}
.fbm-defer-planning .fbm-btn{white-space:nowrap}

.fbm-level-duration-info{margin-top:10px}
.fbm-level-duration-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 12px;
  border-radius:999px;
  background:var(--iwf-panel-soft);
  border:1px solid rgba(23,45,123,.14);
  color:var(--iwf-blue-dark);
  font-size:.8rem;
  font-weight:700;
}

.fbm-modal-overlay{
  position:fixed;
  inset:0;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:rgba(15,23,42,.55);
  backdrop-filter:blur(2px);
}
.fbm-modal{
  position:relative;
  width:100%;
  max-width:440px;
  padding:32px 28px 28px;
  border-radius:20px;
  background:#fff;
  text-align:center;
  box-shadow:0 30px 60px rgba(15,23,42,.35);
}
.fbm-modal-icon{font-size:2rem;margin-bottom:10px}
.fbm-modal h3{margin:0 0 12px;color:var(--iwf-orange-dark);font-size:1.2rem;font-weight:850}
.fbm-modal p{margin:0 0 22px;color:var(--iwf-text-soft);font-size:.92rem;line-height:1.6}
.fbm-modal-close{
  position:absolute;
  top:12px;
  right:14px;
  border:0;
  background:transparent;
  font-size:1.4rem;
  line-height:1;
  color:var(--iwf-muted);
  cursor:pointer;
}
.fbm-modal-close:hover{color:var(--iwf-blue-dark)}

.fbm-formation-excerpt{margin:0;color:var(--iwf-muted);font-size:.92rem;line-height:1.6}

.fbm-multi-test-note{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-top:16px;
  padding:14px 16px;
  border-radius:14px;
  background:var(--iwf-panel-soft);
  border:1px solid rgba(23,45,123,.12);
}
.fbm-multi-test-note-icon{font-size:1.1rem;line-height:1.4}
.fbm-multi-test-note p{margin:0;font-size:.86rem;color:var(--iwf-blue-dark);line-height:1.5}

.fbm-test-link{
  display:inline-block;
  margin-top:12px;
  font-size:1rem;
  font-weight:800;
  color:var(--iwf-orange-dark);
  text-decoration:underline;
  text-underline-offset:3px;
}
.fbm-test-link:hover{color:var(--iwf-orange)}
.fbm-test-link-email{
  display:block;
  margin:0 0 8px;
}

.fbm-formation-benefits{
  list-style:none;
  margin:10px 0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.fbm-formation-benefits li{
  font-size:.82rem;
  font-weight:700;
  color:var(--iwf-blue-dark);
}

.fbm-summary-participants{display:flex;flex-direction:column;gap:10px;margin-top:6px}
.fbm-summary-participant{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:12px 14px;
  border-radius:12px;
  background:var(--iwf-panel-soft);
  border:1px solid rgba(23,45,123,.08);
  flex-wrap:wrap;
}
.fbm-summary-participant-info{display:flex;flex-direction:column;gap:2px;font-size:.9rem;color:var(--iwf-blue-dark)}
.fbm-summary-participant-email{font-size:.8rem;color:var(--iwf-muted)}
.fbm-send-test-btn{padding:8px 14px;font-size:.8rem;white-space:nowrap}
.fbm-send-test-btn.fbm-send-test-done{border-color:rgba(22,163,74,.35);background:rgba(22,163,74,.12);color:#15803d}
.fbm-send-test-btn.fbm-send-test-done:hover{transform:none;background:rgba(22,163,74,.12);color:#15803d}
.fbm-summary-note{margin:12px 0 0;font-size:.82rem;color:var(--iwf-muted);line-height:1.5}

.fbm-select-wrapper{position:relative;max-width:520px;margin:0 auto 30px}
.fbm-select-large{
  width:100%;
  min-height:58px;
  padding:15px 54px 15px 18px;
  border:1px solid rgba(23,45,123,.22);
  border-radius:14px;
  appearance:none;
  background:#fff;
  color:var(--iwf-text);
  cursor:pointer;
  font-size:1rem;
  font-weight:650;
  box-shadow:0 10px 25px rgba(15,31,92,.07);
  transition:var(--fbm-transition);
}
.fbm-select-large:focus{outline:none;border-color:var(--iwf-orange);box-shadow:0 0 0 4px var(--iwf-focus)}
.fbm-select-arrow{position:absolute;right:18px;top:50%;color:var(--iwf-orange);font-weight:900;pointer-events:none;transform:translateY(-50%)}

.fbm-participants-details{margin-top:28px}
.fbm-participant-card,
.fbm-add-date-section,
.fbm-summary-section,
.fbm-formation-detail-card{
  position:relative;
  overflow:hidden;
  border:1px solid var(--iwf-brume);
  border-radius:20px;
  background:var(--iwf-panel);
  box-shadow:var(--fbm-shadow);
}

.fbm-participant-card{margin-bottom:20px;padding:28px}
.fbm-participant-card::before{content:"";position:absolute;inset:0 0 auto;height:5px;background:linear-gradient(90deg,var(--iwf-blue),var(--iwf-orange))}
.fbm-participant-number{position:absolute;top:18px;right:18px;display:flex;width:38px;height:38px;align-items:center;justify-content:center;border-radius:12px;background:var(--iwf-blue);color:#fff;font-weight:800;box-shadow:0 8px 18px rgba(23,45,123,.22)}
.fbm-participant-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:18px;padding-right:52px}
.fbm-form-group{margin-bottom:16px}
.fbm-form-group label{display:block;margin-bottom:7px;color:var(--iwf-text-soft);font-size:.9rem;font-weight:750}

.fbm-form-group input,
.fbm-form-group select,
.fbm-form-group textarea{
  width:100%;
  min-height:50px;
  padding:12px 14px;
  border:1px solid rgba(23,45,123,.18);
  border-radius:12px;
  background:#fff;
  color:var(--iwf-text);
  font-size:.95rem;
  box-shadow:inset 0 1px 2px rgba(15,31,92,.03);
  transition:var(--fbm-transition);
}
.fbm-form-group textarea{min-height:130px;resize:vertical}
.fbm-form-group input:hover,.fbm-form-group select:hover,.fbm-form-group textarea:hover{border-color:rgba(23,45,123,.36)}
.fbm-form-group input:focus,.fbm-form-group select:focus,.fbm-form-group textarea:focus{outline:none;border-color:var(--iwf-orange);box-shadow:0 0 0 4px var(--iwf-focus)}

.fbm-level-badges{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.fbm-level-badge,
.fbm-time-option{
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(23,45,123,.16);
  border-radius:14px;
  background:var(--iwf-panel-soft);
  color:var(--iwf-text-soft);
  cursor:pointer;
  text-align:center;
  transition:var(--fbm-transition);
}
.fbm-level-badge{min-height:104px;flex-direction:column;gap:5px;padding:14px}
.fbm-level-badge:hover,.fbm-time-option:hover{border-color:var(--iwf-orange);background:#fff;transform:translateY(-2px);box-shadow:0 10px 22px rgba(15,31,92,.08)}
.fbm-level-badge.selected,.fbm-time-option.selected{border-color:var(--iwf-blue);background:linear-gradient(135deg,var(--iwf-blue),var(--iwf-blue-dark));color:#fff;box-shadow:0 12px 26px rgba(23,45,123,.24)}
.fbm-level-badge input[type="radio"]{display:none}
.fbm-level-icon{font-size:1.55rem}
.fbm-level-name{font-size:.86rem;font-weight:800}

.fbm-formation-detail-card{padding:32px}
.fbm-formation-detail-header{margin-bottom:24px;padding-bottom:20px;border-bottom:1px solid var(--iwf-brume)}
.fbm-formation-detail-header h3{margin:0 0 14px;color:var(--iwf-blue-dark);font-size:clamp(1.55rem,3vw,2rem);font-weight:850;line-height:1.25}
.fbm-formation-badges{display:flex;flex-wrap:wrap;gap:9px}
.fbm-detail-badge{border-color:rgba(23,45,123,.16)}
.fbm-badge-duree{background:var(--iwf-panel-soft);color:var(--iwf-blue)}
.fbm-badge-prix{background:rgba(117,193,186,.14);color:var(--iwf-orange-dark)}
.fbm-badge-places{background:#f1f5f9;color:var(--iwf-text-soft)}
.fbm-formation-description{margin:24px 0;color:var(--iwf-text-soft);line-height:1.75}
.fbm-formation-adresse{display:flex;align-items:flex-start;gap:12px;margin-top:20px;padding:18px;border:1px solid var(--iwf-brume);border-radius:14px;background:var(--iwf-panel-soft);color:var(--iwf-text-soft)}

.fbm-programme-step-card{margin:0 0 26px;padding:24px;border:1px solid var(--iwf-brume);border-radius:18px;background:linear-gradient(145deg,#fff,var(--iwf-panel-soft));box-shadow:0 12px 28px rgba(15,31,92,.07)}
.fbm-programme-step-card h3{margin:0 0 12px;color:var(--iwf-blue-dark);font-size:1.3rem}
.fbm-programme-step-content{color:var(--iwf-text-soft);line-height:1.75}
.fbm-programme-download{display:inline-flex;align-items:center;gap:8px;margin-top:16px;padding:12px 18px;border-radius:12px;background:linear-gradient(135deg,var(--iwf-blue),var(--iwf-blue-dark));color:#fff!important;text-decoration:none;font-weight:800;box-shadow:0 10px 22px rgba(23,45,123,.20);transition:var(--fbm-transition)}
.fbm-programme-download:hover{transform:translateY(-2px);box-shadow:0 15px 28px rgba(23,45,123,.26)}

.fbm-dates-container{max-width:940px;margin:0 auto}
.fbm-add-date-section{margin-bottom:24px;padding:26px}
.fbm-add-date-section h3{margin:0 0 20px;color:var(--iwf-blue-dark);font-size:1.2rem;font-weight:800}
.fbm-date-horaire-form{display:grid;grid-template-columns:1fr 2fr;gap:20px;margin-bottom:16px}
.fbm-time-slots-compact{display:grid;grid-template-columns:repeat(3,1fr);gap:11px}
.fbm-time-option{min-height:92px;flex-direction:column;padding:12px}
.fbm-time-icon{display:block;margin-bottom:4px;font-size:1.45rem}
.fbm-time-text{font-size:.83rem;font-weight:800}
.fbm-time-text small{display:block;margin-top:3px;color:inherit;opacity:.75;font-weight:600}
.fbm-dates-list{display:flex;flex-direction:column;gap:11px}
.fbm-date-item{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 18px;border:1px solid rgba(23,45,123,.16);border-left:5px solid var(--iwf-orange);border-radius:14px;background:#fff;box-shadow:0 8px 20px rgba(15,31,92,.06)}
.fbm-date-info{flex:1}
.fbm-date-text{color:var(--iwf-blue-dark);font-size:1rem;font-weight:800}
.fbm-date-time{margin-top:2px;color:var(--iwf-muted);font-size:.88rem}
.fbm-date-remove{padding:8px 13px;border:0;border-radius:10px;background:#fff1f1;color:#b42318;cursor:pointer;font-weight:800;transition:var(--fbm-transition)}
.fbm-date-remove:hover{background:#b42318;color:#fff;transform:translateY(-1px)}
.fbm-empty-state{padding:34px;color:var(--iwf-muted);font-style:italic;text-align:center}

.fbm-deadline-notice{display:flex;width:100%;max-width:940px;align-items:center;gap:14px;margin:0 auto 24px;padding:18px 20px;border:1px solid rgba(117,193,186,.34);border-left:5px solid var(--iwf-orange);border-radius:16px;background:linear-gradient(135deg,#FCF7EE,#fff);color:var(--iwf-text-soft);box-shadow:0 10px 24px rgba(117,193,186,.08);cursor:pointer;text-align:left;transition:transform .2s ease,box-shadow .2s ease}
.fbm-deadline-notice:hover,.fbm-deadline-notice:focus-visible{transform:translateY(-2px);box-shadow:0 14px 30px rgba(117,193,186,.16)}
.fbm-deadline-notice-icon{display:flex;flex:0 0 40px;width:40px;height:40px;align-items:center;justify-content:center;border-radius:12px;background:var(--iwf-orange);color:#fff;font-size:1.15rem;box-shadow:0 8px 18px rgba(117,193,186,.24)}
.fbm-deadline-notice>div{flex:1}
.fbm-deadline-notice strong{display:block;margin:0 0 4px;color:var(--iwf-blue-dark);font-size:1rem;line-height:1.35}
.fbm-deadline-notice p{margin:0;color:var(--iwf-text-soft);line-height:1.6}
.fbm-deadline-notice-arrow{flex:0 0 auto;font-size:1.2rem;color:var(--iwf-orange-dark)}

.fbm-form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;max-width:940px;margin:0 auto}
.fbm-summary{max-width:860px;margin:0 auto}
.fbm-summary-section{margin-bottom:18px;padding:24px}
.fbm-summary-section h3{margin:0 0 16px;padding-bottom:12px;border-bottom:1px solid var(--iwf-brume);color:var(--iwf-blue-dark);font-size:1.18rem;font-weight:850}
.fbm-summary-row{display:flex;justify-content:space-between;gap:24px;padding:11px 0;border-bottom:1px solid rgba(23,45,123,.07)}
.fbm-summary-row:last-child{border-bottom:0}
.fbm-summary-label{color:var(--iwf-muted);font-weight:650}
.fbm-summary-value{color:var(--iwf-text);font-weight:750;text-align:right}

.fbm-btn{
  display:inline-flex;
  min-height:50px;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:13px 25px;
  border:1px solid transparent;
  border-radius:13px;
  cursor:pointer;
  font-size:.98rem;
  font-weight:800;
  line-height:1.2;
  text-decoration:none;
  transition:var(--fbm-transition);
}
.fbm-btn-primary{border-color:var(--iwf-orange);background:linear-gradient(135deg,var(--iwf-orange),var(--iwf-orange-dark));color:#fff;box-shadow:0 12px 25px rgba(117,193,186,.24)}
.fbm-btn-primary:hover{border-color:var(--iwf-accent-hover);background:var(--iwf-accent-hover);color:var(--iwf-blue-dark);transform:translateY(-2px);box-shadow:0 16px 30px rgba(117,193,186,.30)}
.fbm-btn-secondary{border-color:rgba(23,45,123,.22);background:#fff;color:var(--iwf-blue);box-shadow:0 9px 20px rgba(15,31,92,.07)}
.fbm-btn-secondary:hover{border-color:var(--iwf-blue);background:var(--iwf-blue);color:#fff;transform:translateY(-2px)}
.fbm-btn:disabled{opacity:.48;cursor:not-allowed;filter:grayscale(.15);transform:none!important;box-shadow:none!important}
.fbm-step-actions{display:flex;max-width:940px;justify-content:space-between;gap:18px;margin:34px auto 0}

@media(max-width:960px){
  .fbm-multistep-container{width:min(100% - 20px,1240px);margin:24px auto;padding:22px;border-radius:22px}
  .fbm-progress-bar{overflow-x:auto;justify-content:flex-start;padding:22px 16px}
  .fbm-progress-step{flex:0 0 84px}
  .fbm-progress-line{flex:0 0 24px}
  .fbm-date-horaire-form{grid-template-columns:1fr}
}

@media(max-width:700px){
  .fbm-multistep-container{width:100%;margin:0;padding:16px 14px;border:0;border-radius:0;box-shadow:none}
  .fbm-progress-bar{margin-bottom:22px;border-radius:16px}
  .fbm-progress-step{flex-basis:72px}
  .fbm-step-number{width:40px;height:40px;border-radius:12px}
  .fbm-step-label{font-size:.69rem}
  .fbm-progress-line{flex-basis:12px;margin-bottom:23px}
  .fbm-step-header{padding:26px 20px;border-radius:18px;text-align:left}
  .fbm-formations-grid,.fbm-form-grid,.fbm-participant-fields,.fbm-level-badges,.fbm-time-slots-compact{grid-template-columns:1fr}
  .fbm-formation-image{height:190px}
  .fbm-participant-fields{padding-right:0;padding-top:42px}
  .fbm-formation-detail-card,.fbm-participant-card,.fbm-add-date-section,.fbm-summary-section{padding:20px;border-radius:16px}
  .fbm-step-actions{flex-direction:column-reverse}
  .fbm-step-actions .fbm-btn{width:100%}
  .fbm-summary-row{flex-direction:column;gap:4px}
  .fbm-summary-value{text-align:left}
  .fbm-date-item{align-items:flex-start;flex-direction:column}
  .fbm-date-remove{align-self:flex-end}
  .fbm-deadline-notice{gap:11px;padding:16px}
  .fbm-toast-container{top:14px;right:14px;left:14px;width:auto}
  .fbm-step-icon-badge{width:46px;height:46px;border-radius:13px;font-size:1.35rem}
  .fbm-selected-recap{padding:12px 16px}
  .fbm-category-filters{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px;-webkit-overflow-scrolling:touch}
  .fbm-category-chip{flex:0 0 auto}
}

/* ============================================================
   Améliorations UX — récap formation, retours visuels, feedback
   ============================================================ */

.fbm-selected-recap{
  display:flex;
  align-items:center;
  gap:14px;
  margin:0 0 26px;
  padding:14px 20px;
  border:1px solid var(--iwf-brume);
  border-radius:16px;
  background:rgba(255,255,255,.9);
  box-shadow:0 10px 26px rgba(15,31,92,.07);
}
.fbm-selected-recap-icon{
  display:flex;
  flex:0 0 40px;
  width:40px;
  height:40px;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  background:var(--iwf-panel-soft);
  font-size:1.2rem;
}
.fbm-selected-recap-text{display:flex;flex-direction:column;gap:2px;min-width:0}
.fbm-selected-recap-text strong{overflow:hidden;color:var(--iwf-blue-dark);font-size:.98rem;font-weight:800;text-overflow:ellipsis;white-space:nowrap}
.fbm-selected-recap-text span{color:var(--iwf-muted);font-size:.84rem;font-weight:650}

.fbm-formation-skeleton{
  height:340px;
  border:1px solid var(--iwf-brume);
  border-radius:20px;
  background:linear-gradient(100deg,var(--iwf-panel-soft) 30%,#fff 50%,var(--iwf-panel-soft) 70%);
  background-size:200% 100%;
  animation:fbmSkeleton 1.4s ease-in-out infinite;
}
@keyframes fbmSkeleton{0%{background-position:200% 0}100%{background-position:-200% 0}}

.fbm-toast-container{
  position:fixed;
  top:20px;
  right:20px;
  z-index:99999;
  display:flex;
  flex-direction:column;
  gap:10px;
  width:min(360px,calc(100vw - 28px));
  pointer-events:none;
}
.fbm-toast{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:14px 16px;
  border-left:4px solid var(--iwf-orange);
  border-radius:14px;
  background:#fff;
  box-shadow:0 18px 40px rgba(15,31,92,.20);
  color:var(--iwf-text);
  font-size:.9rem;
  font-weight:650;
  line-height:1.4;
  pointer-events:auto;
  animation:fbmToastIn .3s ease;
}
.fbm-toast-success{border-left-color:#1a7f4b}
.fbm-toast-icon{flex:0 0 auto;font-size:1.05rem}
.fbm-toast-out{animation:fbmToastOut .25s ease forwards}
@keyframes fbmToastIn{from{opacity:0;transform:translateX(28px) scale(.97)}to{opacity:1;transform:translateX(0) scale(1)}}
@keyframes fbmToastOut{to{opacity:0;transform:translateX(28px)}}

.fbm-input-error{border-color:#e11d48!important;box-shadow:0 0 0 4px rgba(225,29,72,.14)!important;animation:fbmShake .35s ease}
.fbm-field-error-msg{margin-top:6px;color:#e11d48;font-size:.82rem;font-weight:700}
@keyframes fbmShake{
  10%,90%{transform:translateX(-1px)}
  20%,80%{transform:translateX(2px)}
  30%,50%,70%{transform:translateX(-4px)}
  40%,60%{transform:translateX(4px)}
}

.fbm-form-group select{
  appearance:none;
  -webkit-appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23172D7B' stroke-width='2' fill='none' fill-rule='evenodd' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 16px center;
  padding-right:42px;
  cursor:pointer;
}

.fbm-btn.is-loading{position:relative;color:transparent!important;pointer-events:none}
.fbm-btn.is-loading::after{
  content:"";
  position:absolute;
  width:20px;
  height:20px;
  border:3px solid rgba(255,255,255,.5);
  border-top-color:#fff;
  border-radius:50%;
  animation:fbmSpin .7s linear infinite;
}
.fbm-btn-secondary.is-loading::after{border-color:rgba(23,45,123,.3);border-top-color:var(--iwf-blue)}
@keyframes fbmSpin{to{transform:rotate(360deg)}}

.fbm-progress-line.filled{background:linear-gradient(90deg,var(--iwf-blue),var(--iwf-orange));box-shadow:0 2px 8px rgba(117,193,186,.22)}
.fbm-progress-step.completed{cursor:pointer}
.fbm-progress-step.completed .fbm-step-label{color:var(--iwf-blue)}
.fbm-progress-step.completed:hover .fbm-step-number,
.fbm-progress-step.completed:focus-visible .fbm-step-number{transform:translateY(-2px) scale(1.05);box-shadow:0 10px 22px rgba(23,45,123,.28)}

.fbm-multistep-container a:focus-visible,
.fbm-multistep-container button:focus-visible,
.fbm-multistep-container input:focus-visible,
.fbm-multistep-container select:focus-visible,
.fbm-progress-step:focus-visible{
  outline:3px solid var(--iwf-orange);
  outline-offset:2px;
  border-radius:8px;
}


/* =====================================================================
   DESIGN INSTANTS WEB (version 5.0)
   Couche de style : formes arrondies, crème, turquoise, typographie
   Montserrat / Nunito, formes décoratives. Les boutons et éléments
   turquoise portent un texte bleu marine foncé (contraste AA).
   ===================================================================== */
.fbm-multistep-container{border:1px solid var(--iwf-line);border-radius:28px;background:#fff;box-shadow:0 1px 0 var(--iwf-line),0 24px 60px rgba(23,45,123,.08)}
.fbm-multistep-container::before{top:-120px;right:-120px;width:300px;height:300px;border:2px solid rgba(117,193,186,.35);background:none}
.fbm-multistep-container::after{content:"";position:absolute;z-index:-1;left:-40px;bottom:60px;width:180px;height:120px;background-image:radial-gradient(rgba(117,193,186,.45) 1.6px,transparent 1.6px);background-size:18px 18px;opacity:.7;pointer-events:none}
.fbm-multistep-container h2,.fbm-multistep-container h3,.fbm-btn,.fbm-category-chip,.fbm-step-number,.fbm-step-label,.fbm-badge,.fbm-detail-badge,.fbm-urgency-badge,.fbm-summary-section h3,.fbm-time-text,.fbm-level-name,.fbm-participant-number{font-family:var(--iwf-font-title)}

/* Progression */
.fbm-progress-bar{border:1px solid var(--iwf-line);border-radius:20px;background:#fff;box-shadow:none}
.fbm-progress-bar::before{height:4px;background:linear-gradient(90deg,var(--iwf-blue),var(--iwf-orange))}
.fbm-step-number{border:2px solid var(--iwf-line);border-radius:50%;background:var(--iwf-panel-soft);color:var(--iwf-blue);box-shadow:none}
.fbm-step-label{font-size:.74rem;font-weight:700;color:var(--iwf-muted)}
.fbm-progress-step.active .fbm-step-number{border-color:var(--iwf-orange);background:var(--iwf-orange);color:var(--iwf-blue-dark);transform:scale(1.08);box-shadow:0 0 0 6px var(--iwf-accent-soft)}
.fbm-progress-step.active .fbm-step-label{color:var(--iwf-blue)}
.fbm-progress-step.completed .fbm-step-number{border-color:var(--iwf-blue);background:var(--iwf-blue);color:#fff}
.fbm-progress-line{height:3px;background:var(--iwf-line)}
.fbm-progress-line.filled{background:var(--iwf-orange);box-shadow:none}

/* En-tête d'étape : crème, titre bleu marine, formes */
.fbm-step-header{align-items:center;padding:30px 30px;border:1px solid var(--iwf-line);border-radius:22px;background:var(--iwf-panel-soft);color:var(--iwf-text);box-shadow:none}
.fbm-step-header::before{content:"";position:absolute;width:16px;height:16px;border-radius:50%;background:var(--iwf-yellow);right:150px;top:22px}
.fbm-step-header::after{right:-70px;bottom:-110px;width:240px;height:240px;border:0;background:var(--iwf-accent-soft)}
.fbm-step-icon-badge{border:0;border-radius:50%;background:#fff;box-shadow:0 0 0 6px var(--iwf-accent-soft);font-size:1.55rem}
.fbm-step-header h2{color:var(--iwf-blue);font-weight:800;letter-spacing:-.01em;font-size:clamp(1.5rem,2.6vw,2.05rem)}
.fbm-subtitle{color:var(--iwf-muted);font-weight:600}
.fbm-step-header-text h2:focus{outline:3px solid var(--iwf-orange)}

/* Filtres */
.fbm-category-chip{border:1.5px solid var(--iwf-line);font-weight:700;font-size:.84rem;color:var(--iwf-blue);box-shadow:none}
.fbm-category-chip:hover{border-color:var(--iwf-orange-dark);color:var(--iwf-orange-dark)}
.fbm-category-chip.active{background:var(--iwf-blue);border-color:var(--iwf-blue);color:#fff;box-shadow:none}

/* Cartes formations */
.fbm-formation-card{border:1px solid var(--iwf-line);border-radius:20px;box-shadow:var(--fbm-shadow)}
.fbm-formation-card::before{height:4px;background:var(--iwf-orange)}
.fbm-formation-card:hover{border-color:var(--iwf-orange);transform:translateY(-4px)}
.fbm-formation-card.selected{border:2px solid var(--iwf-orange-dark);box-shadow:0 0 0 5px var(--iwf-accent-soft),var(--fbm-shadow-hover)}
.fbm-formation-card.selected::after{border:3px solid #fff;background:var(--iwf-orange);color:var(--iwf-blue-dark)}
.fbm-formation-image{background:var(--iwf-panel-soft)}
.fbm-formation-image::after{background:linear-gradient(to top,rgba(15,31,92,.35),transparent)}
.fbm-formation-content h3{color:var(--iwf-blue);font-weight:800;font-size:1.15rem}
.fbm-badge,.fbm-detail-badge{font-weight:700;font-size:.74rem}
.fbm-badge-presentiel{border-color:transparent;background:var(--iwf-accent-soft);color:var(--iwf-orange-dark)}
.fbm-badge-distanciel{border-color:var(--iwf-line);background:var(--iwf-panel-soft);color:var(--iwf-blue)}
.fbm-badge-hybride{border-color:transparent;background:linear-gradient(90deg,var(--iwf-accent-soft),var(--iwf-panel-soft));color:var(--iwf-blue)}
.fbm-badge-devis{border-color:var(--iwf-line);background:#fff;color:var(--iwf-blue)}
.fbm-badge-fourchette,.fbm-badge-prix{border-color:transparent;background:rgba(117,193,186,.22);color:var(--iwf-blue-dark)}
.fbm-badge-duree{background:var(--iwf-accent-soft);color:var(--iwf-orange-dark)}
.fbm-badge-places{background:var(--iwf-panel-soft);color:var(--iwf-text-soft)}
.fbm-urgency-badge{background:var(--iwf-yellow);color:var(--iwf-blue-dark);box-shadow:none;animation:none}
.fbm-urgency-badge.fbm-urgency-low{animation:none;box-shadow:none}
.fbm-urgency-badge.fbm-urgency-full{background:var(--iwf-panel-soft);color:var(--iwf-text-soft)}

/* Blocs */
.fbm-participant-card,.fbm-add-date-section,.fbm-summary-section,.fbm-formation-detail-card{border:1px solid var(--iwf-line);border-radius:20px;box-shadow:var(--fbm-shadow)}
.fbm-participant-card::before{height:4px;background:var(--iwf-orange)}
.fbm-participant-number{border-radius:50%;background:var(--iwf-blue);box-shadow:none}
.fbm-programme-step-card{border:1px solid var(--iwf-line);background:var(--iwf-panel-soft);box-shadow:none}
.fbm-programme-step-card h3,.fbm-formation-detail-header h3,.fbm-add-date-section h3,.fbm-summary-section h3{color:var(--iwf-blue)}
.fbm-programme-download{border-radius:999px;background:var(--iwf-blue);box-shadow:none}
.fbm-programme-download:hover{background:var(--iwf-blue-dark)}
.fbm-formation-adresse,.fbm-multi-test-note,.fbm-hours-progress,.fbm-level-duration-badge,.fbm-summary-participant{border-color:var(--iwf-line);background:var(--iwf-panel-soft)}
.fbm-hours-progress-bar{background:var(--iwf-line)}
.fbm-hours-progress-fill{background:var(--iwf-orange)}
.fbm-hours-progress-fill.fbm-hours-progress-complete{background:var(--iwf-orange-dark)}
.fbm-defer-planning{border:1.5px dashed var(--iwf-orange);background:var(--iwf-accent-soft)}

/* Formulaires */
.fbm-form-group label{font-family:var(--iwf-font-title);font-size:.84rem;font-weight:700;color:var(--iwf-blue)}
.fbm-form-group input,.fbm-form-group select,.fbm-form-group textarea,.fbm-select-large{border:1.5px solid var(--iwf-line);border-radius:12px;box-shadow:none}
.fbm-form-group input:hover,.fbm-form-group select:hover,.fbm-form-group textarea:hover{border-color:var(--iwf-orange)}
.fbm-form-group input:focus,.fbm-form-group select:focus,.fbm-form-group textarea:focus,.fbm-select-large:focus{border-color:var(--iwf-orange-dark);box-shadow:0 0 0 4px var(--iwf-accent-soft)}
.fbm-select-arrow{color:var(--iwf-blue)}
.fbm-level-badge,.fbm-time-option{border:1.5px solid var(--iwf-line);background:#fff;color:var(--iwf-blue)}
.fbm-level-badge:hover,.fbm-time-option:hover{border-color:var(--iwf-orange);background:var(--iwf-panel-soft);box-shadow:none}
.fbm-level-badge.selected,.fbm-time-option.selected{border-color:var(--iwf-blue);background:var(--iwf-blue);color:#fff;box-shadow:0 0 0 4px var(--iwf-accent-soft)}

/* Créneaux */
.fbm-date-item{border:1px solid var(--iwf-line);border-left:5px solid var(--iwf-orange);box-shadow:none}
.fbm-date-text{color:var(--iwf-blue)}
.fbm-deadline-notice{border:1px solid var(--iwf-line);border-left:5px solid var(--iwf-yellow);background:var(--iwf-panel-soft);box-shadow:none}
.fbm-deadline-notice:hover,.fbm-deadline-notice:focus-visible{box-shadow:var(--fbm-shadow)}
.fbm-deadline-notice-icon{border-radius:50%;background:var(--iwf-yellow);color:var(--iwf-blue-dark);box-shadow:none}
.fbm-deadline-notice strong{color:var(--iwf-blue);font-family:var(--iwf-font-title)}
.fbm-deadline-notice-arrow{color:var(--iwf-blue)}

/* Récapitulatif */
.fbm-summary-label{color:var(--iwf-muted)}
.fbm-summary-value{color:var(--iwf-blue);font-weight:700}
.fbm-selected-recap{border:1px solid var(--iwf-line);background:var(--iwf-panel-soft);box-shadow:none}
.fbm-selected-recap-icon{border-radius:50%;background:#fff;box-shadow:0 0 0 4px var(--iwf-accent-soft)}
.fbm-selected-recap-text strong{color:var(--iwf-blue);font-family:var(--iwf-font-title)}
.fbm-test-link{color:var(--iwf-orange-dark);text-decoration-color:var(--iwf-orange);text-decoration-thickness:2px}
.fbm-test-link:hover{color:var(--iwf-blue)}

/* Boutons : pilules, turquoise avec texte bleu marine */
.fbm-btn{border-radius:999px;border-width:2px;font-weight:700;font-size:.95rem;padding:13px 26px}
.fbm-btn-primary{border-color:var(--iwf-orange);background:var(--iwf-orange);color:var(--iwf-blue-dark);box-shadow:none}
.fbm-btn-primary:hover{border-color:var(--iwf-accent-hover);background:var(--iwf-accent-hover);color:var(--iwf-blue-dark);transform:translateY(-1px);box-shadow:none}
.fbm-btn-secondary{border-color:var(--iwf-blue);background:#fff;color:var(--iwf-blue);box-shadow:none}
.fbm-btn-secondary:hover{background:var(--iwf-blue);border-color:var(--iwf-blue);color:#fff;transform:translateY(-1px)}
.fbm-btn.is-loading::after{border-color:rgba(15,31,92,.25);border-top-color:var(--iwf-blue-dark)}
.fbm-step-actions{padding-top:24px;border-top:1px dashed var(--iwf-line)}

/* Modale et notifications */
.fbm-modal-overlay{background:rgba(15,31,92,.55)}
.fbm-modal{border-radius:22px;border-top:6px solid var(--iwf-orange)}
.fbm-modal h3{color:var(--iwf-blue);font-family:var(--iwf-font-title);font-weight:800}
.fbm-toast{border-left-color:var(--iwf-orange);box-shadow:0 18px 40px rgba(15,31,92,.2)}
.fbm-toast-success{border-left-color:var(--iwf-orange-dark)}
.fbm-empty-state{color:var(--iwf-muted)}

/* Accessibilité */
.fbm-multistep-container a:focus-visible,.fbm-multistep-container button:focus-visible,.fbm-multistep-container input:focus-visible,.fbm-multistep-container select:focus-visible,.fbm-progress-step:focus-visible{outline:3px solid var(--iwf-orange-dark)}
@media(max-width:700px){
  .fbm-multistep-container::before,.fbm-multistep-container::after,.fbm-step-header::before{display:none}
  .fbm-step-header{padding:22px 18px}
  .fbm-step-icon-badge{border-radius:50%}
}
@media(prefers-reduced-motion:reduce){.fbm-multistep-container *{animation:none!important;transition:none!important}}

/* Polices des contrôles (le reset « font:inherit » des boutons est plus spécifique) */
.fbm-multistep-container .fbm-btn,.fbm-multistep-container .fbm-category-chip,.fbm-multistep-container .fbm-date-remove,.fbm-multistep-container .fbm-deadline-notice strong{font-family:var(--iwf-font-title)}
.fbm-multistep-container .fbm-btn{font-weight:700}
.fbm-multistep-container .fbm-category-chip{font-weight:700}
.fbm-step-actions .fbm-next-step:only-child{margin-left:auto}
.fbm-step-header-text h2:focus{outline:none}
.fbm-step-header-text h2:focus-visible{outline:3px solid var(--iwf-orange-dark);outline-offset:4px}
.fbm-selected-dates h3{color:var(--iwf-blue);font-size:1.15rem;font-weight:800}


/* =====================================================================
   Étape 1 en deux temps : catégorie, puis formation (version 5.1)
   ===================================================================== */
.fbm-substeps{display:flex;gap:10px;margin:-8px 0 22px;padding:0;list-style:none;flex-wrap:wrap}
.fbm-substep{display:inline-flex;align-items:center;gap:8px;padding:6px 14px 6px 6px;border-radius:999px;border:1.5px solid var(--iwf-line);background:#fff;color:var(--iwf-muted);font-family:var(--iwf-font-title);font-size:.82rem;font-weight:700}
.fbm-substep span{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--iwf-panel-soft);color:var(--iwf-blue);font-size:.78rem}
.fbm-substep.is-current{border-color:var(--iwf-orange);color:var(--iwf-blue)}
.fbm-substep.is-current span{background:var(--iwf-orange);color:var(--iwf-blue-dark)}
.fbm-substep.is-done{color:var(--iwf-blue)}
.fbm-substep.is-done span{background:var(--iwf-blue);color:#fff}

.fbm-category-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px;margin-bottom:10px}
.fbm-multistep-container .fbm-category-card{position:relative;display:flex;align-items:center;gap:14px;width:100%;padding:20px 18px;border:1.5px solid var(--iwf-line);border-radius:18px;background:#fff;color:var(--iwf-text);text-align:left;cursor:pointer;box-shadow:var(--fbm-shadow);transition:border-color .2s,transform .2s,box-shadow .2s;font-family:var(--iwf-font-text)}
.fbm-category-card:hover{border-color:var(--iwf-orange);transform:translateY(-3px);box-shadow:var(--fbm-shadow-hover)}
.fbm-category-card-icon{display:grid;place-items:center;flex:0 0 52px;width:52px;height:52px;border-radius:50%;background:var(--iwf-accent-soft);color:var(--iwf-orange-dark);font-family:var(--iwf-font-title);font-size:1.3rem;font-weight:800}
.fbm-category-card:nth-child(3n+2) .fbm-category-card-icon{background:var(--iwf-panel-soft);color:var(--iwf-blue)}
.fbm-category-card:nth-child(3n+3) .fbm-category-card-icon{background:rgba(117,193,186,.22);color:var(--iwf-blue-dark)}
.fbm-category-card-text{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.fbm-category-card-text strong{font-family:var(--iwf-font-title);font-size:1.02rem;font-weight:800;line-height:1.25;color:var(--iwf-blue)}
.fbm-category-card-count{font-size:.82rem;font-weight:700;color:var(--iwf-orange-dark)}
.fbm-category-card-desc{font-size:.84rem;line-height:1.45;color:var(--iwf-muted)}
.fbm-category-card-arrow{flex:none;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;border:1.5px solid var(--iwf-line);color:var(--iwf-blue);font-weight:700;transition:background-color .2s,color .2s,border-color .2s}
.fbm-category-card:hover .fbm-category-card-arrow{background:var(--iwf-orange);border-color:var(--iwf-orange);color:var(--iwf-blue-dark)}
.fbm-multistep-container .fbm-category-card-all{border-style:dashed;background:var(--iwf-panel-soft);box-shadow:none}
.fbm-category-card-all .fbm-category-card-icon{background:var(--iwf-blue)!important;color:#fff!important;font-size:1.1rem}

.fbm-formation-stage-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 14px}
.fbm-multistep-container .fbm-category-back{display:inline-flex;align-items:center;gap:6px;padding:8px 16px;border:1.5px solid var(--iwf-blue);border-radius:999px;background:#fff;color:var(--iwf-blue);font-family:var(--iwf-font-title);font-size:.85rem;font-weight:700;cursor:pointer;transition:background-color .2s,color .2s}
.fbm-category-back:hover{background:var(--iwf-blue);color:#fff}
.fbm-formation-stage-title{margin:0;font-size:.92rem;color:var(--iwf-muted)}
.fbm-formation-stage-title strong{color:var(--iwf-blue);font-family:var(--iwf-font-title)}
.fbm-formation-stage .fbm-category-filters{margin-bottom:20px}
.fbm-formation-stage .fbm-category-chip{padding:7px 14px;font-size:.8rem}
.fbm-category-stage[hidden],.fbm-formation-stage[hidden]{display:none!important}
@media(max-width:700px){.fbm-category-grid{grid-template-columns:1fr}.fbm-multistep-container .fbm-category-card{padding:16px 14px}.fbm-category-card-icon{flex-basis:44px;width:44px;height:44px}}
.fbm-step-1:has(#fbm-category-stage:not([hidden])) .fbm-step-actions{display:none}

/* Icônes de catégories (5.2) */
.fbm-category-card-icon svg{display:block;width:26px;height:26px}
.fbm-category-card-icon{transition:background-color .2s,color .2s,transform .2s}
.fbm-category-card:hover .fbm-category-card-icon{transform:scale(1.06)}

/* =====================================================================
   v5.4.0 — Nouveau design IWF
   Pleine largeur sans cadre, icônes vectorielles à la place des émojis,
   turquoise pastel et bleu marine (plus de vert foncé ni de rouge).
   ===================================================================== */
:root{--iwf-orange-dark:#172D7B;--iwf-on-accent:#0F1F5C}
body:has(.fbm-multistep-container){overflow-x:clip}
.fbm-multistep-container{width:100vw;max-width:none;position:relative;left:50%;margin:0 0 0 -50vw;padding:clamp(28px,5vw,56px) max(16px,calc((100vw - 1180px)/2));border:0;border-radius:0;box-shadow:none;background:#fff}
.fbm-multistep-container::before{top:-120px;right:-120px;width:360px;height:360px;border:0;background:var(--iwf-accent-soft);opacity:.7}
.fbm-multistep-container::after{content:"";position:absolute;z-index:-1;left:-10px;bottom:30px;width:130px;height:100px;background-image:radial-gradient(var(--iwf-orange) 2px,transparent 2.6px);background-size:18px 18px;opacity:.45;pointer-events:none}

/* Icônes */
.fbm-ico{width:1.15em;height:1.15em;flex:none;display:inline-block;vertical-align:-.2em;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.fbm-step-icon-badge{display:grid;place-items:center;color:var(--iwf-blue);background:var(--iwf-orange);box-shadow:0 0 0 6px var(--iwf-accent-soft)}
.fbm-step-icon-badge .fbm-ico{width:26px;height:26px;stroke-width:1.8}
.fbm-selected-recap-icon{display:grid;place-items:center;color:var(--iwf-blue)}
.fbm-selected-recap-icon .fbm-ico{width:20px;height:20px}
.fbm-time-icon,.fbm-level-icon{display:grid;place-items:center;width:42px;height:42px;margin:0 auto 6px;border-radius:12px;background:var(--iwf-accent-soft);color:var(--iwf-blue);font-size:0}
.fbm-time-icon .fbm-ico,.fbm-level-icon .fbm-ico{width:22px;height:22px}
.fbm-time-option.selected .fbm-time-icon,.fbm-level-option.selected .fbm-level-icon,.fbm-time-option.active .fbm-time-icon{background:var(--iwf-orange)}
.fbm-deadline-notice-icon,.fbm-multi-test-note-icon,.fbm-toast-icon,.fbm-urgency-icon{display:inline-grid;place-items:center;font-size:0}
.fbm-deadline-notice-icon .fbm-ico{width:20px;height:20px}
.fbm-multi-test-note-icon .fbm-ico,.fbm-toast-icon .fbm-ico,.fbm-urgency-icon .fbm-ico{width:18px;height:18px}
.fbm-modal-icon{display:grid;place-items:center;width:56px;height:56px;margin:0 auto 12px;border-radius:50%;background:var(--iwf-accent-soft);color:var(--iwf-blue);font-size:0}
.fbm-modal-icon .fbm-ico{width:28px;height:28px}
.fbm-adresse-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--iwf-accent-soft);color:var(--iwf-blue)}
.fbm-adresse-icon .fbm-ico{width:22px;height:22px}
.fbm-formation-benefits li,.fbm-summary-section h3,.fbm-date-text,.fbm-date-time,.fbm-detail-badge,.fbm-level-duration-badge,.fbm-test-link,.fbm-programme-download,.fbm-date-remove{display:inline-flex;align-items:center;gap:.45em}
.fbm-formation-benefits li .fbm-ico,.fbm-summary-section h3 .fbm-ico{color:var(--iwf-blue)}

/* En-têtes d'étape : bandeau crème, titre bleu marine */
.fbm-step-header{position:relative;overflow:hidden;border:0;border-radius:24px;background:var(--iwf-panel-soft)}
.fbm-step-header h2{color:var(--iwf-blue)}

/* Plus de vert foncé : textes et contours en bleu marine, accents en turquoise pastel */
.fbm-category-card-count,.fbm-test-link,.fbm-modal h3,.fbm-deadline-notice-arrow{color:var(--iwf-blue)}
.fbm-test-link{text-decoration-color:var(--iwf-orange)}
.fbm-formation-card.selected{border-color:var(--iwf-orange);box-shadow:0 0 0 5px var(--iwf-accent-soft),var(--fbm-shadow-hover)}
.fbm-hours-progress-fill.fbm-hours-progress-complete{background:var(--iwf-orange)}
.fbm-form-group input:focus,.fbm-form-group select:focus,.fbm-form-group textarea:focus,.fbm-select-large:focus{border-color:var(--iwf-orange)}
.fbm-toast-success{border-left-color:var(--iwf-orange)}

/* Boutons d'accent : turquoise pastel, texte bleu marine foncé */
.fbm-multistep-container .fbm-btn-primary,.fbm-modal .fbm-btn-primary{border-color:var(--iwf-orange);background:var(--iwf-orange);color:var(--iwf-on-accent)}
.fbm-multistep-container .fbm-btn-primary:hover,.fbm-modal .fbm-btn-primary:hover{border-color:var(--iwf-accent-hover);background:var(--iwf-accent-hover);color:var(--iwf-on-accent)}

/* Places restantes : sans rouge */
.fbm-urgency-badge,.fbm-urgency-badge.fbm-urgency-low{display:inline-flex;align-items:center;gap:8px;background:var(--iwf-yellow);color:var(--iwf-on-accent);border:0;box-shadow:none;animation:none}
.fbm-urgency-badge.fbm-urgency-low{background:var(--iwf-blue);color:#fff}
.fbm-urgency-badge.fbm-urgency-full{background:var(--iwf-panel-soft);color:var(--iwf-blue);border:1px solid var(--iwf-line)}

@media (max-width:767px){
  .fbm-multistep-container{padding:24px 16px}
  .fbm-step-icon-badge .fbm-ico{width:22px;height:22px}
}
@media (prefers-reduced-motion:reduce){.fbm-urgency-badge{animation:none!important}}
.fbm-hours-progress-fill{background:var(--iwf-orange)}
.fbm-send-test-btn.fbm-send-test-done,.fbm-send-test-btn.fbm-send-test-done:hover{border-color:var(--iwf-orange);background:var(--iwf-accent-soft);color:var(--iwf-blue)}
.fbm-date-remove{background:#fff;border:1.5px solid var(--iwf-line);color:var(--iwf-blue)}
.fbm-date-remove:hover{background:var(--iwf-blue);border-color:var(--iwf-blue);color:#fff}
/* Erreurs de saisie : seul usage d'une couleur d'alerte, plus sobre */
.fbm-input-error{border-color:#B8382F!important;box-shadow:0 0 0 4px rgba(184,56,47,.12)!important}
.fbm-field-error-msg{color:#B8382F}

/* v5.5.0 — Écran de fin : invitation au test de positionnement */
.fbm-done{max-width:860px;margin:0 auto;outline:none}
.fbm-done__ok{display:flex;gap:12px;align-items:center;padding:16px 20px;border-radius:16px;background:var(--iwf-accent-soft);color:var(--iwf-blue);font-family:var(--iwf-font-title);font-weight:700}
.fbm-done__ok .fbm-ico{width:26px;height:26px;flex:none}
.fbm-done__card{position:relative;overflow:hidden;margin-top:22px;padding:clamp(24px,4vw,40px);border-radius:24px;background:var(--iwf-panel-soft)}
.fbm-done__card::before{content:"";position:absolute;width:220px;height:220px;border-radius:50%;background:var(--iwf-accent-soft);right:-70px;top:-80px}
.fbm-done__card>*{position:relative}
.fbm-done__kicker{display:inline-flex;align-items:center;gap:10px;font-family:var(--iwf-font-title);font-weight:700;font-size:.8rem;letter-spacing:.1em;text-transform:uppercase;color:var(--iwf-blue)}
.fbm-done__kicker::before{content:"";width:26px;height:3px;border-radius:3px;background:var(--iwf-orange)}
.fbm-done__card h2{margin:10px 0 0;color:var(--iwf-blue);font-family:var(--iwf-font-title);font-weight:800;font-size:clamp(1.5rem,3vw,2.1rem);line-height:1.2}
.fbm-done__card p{margin:12px 0 0;color:var(--iwf-text-soft);max-width:62ch}
.fbm-done__list{list-style:none;margin:18px 0 0;padding:0;display:grid;gap:10px}
.fbm-done__list li{display:flex;gap:10px;align-items:center;font-weight:700;color:var(--iwf-blue)}
.fbm-done__list .fbm-ico{width:22px;height:22px;padding:3px;border-radius:50%;background:#fff;color:var(--iwf-blue)}
.fbm-done__actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}
.fbm-done__actions .fbm-btn{display:inline-flex;align-items:center;gap:8px;text-decoration:none}
@media (max-width:600px){.fbm-done__actions .fbm-btn{width:100%;justify-content:center}}

/* =====================================================================
   v5.5.2 — Couleurs protégées
   Les variables sont fixées sur le conteneur du formulaire : un :root défini
   ailleurs sur le site (en-tête, widget HTML…) ne peut plus les remplacer.
   ===================================================================== */
.fbm-multistep-container{
  --iwf-blue:#172D7B;--iwf-blue-dark:#0F1F5C;
  --iwf-orange:#75C1BA;--iwf-orange-dark:#172D7B;--iwf-accent-hover:#5AAFA7;--iwf-accent-soft:#DDF1EE;--iwf-on-accent:#0F1F5C;
  --iwf-yellow:#75C1BA;
  --iwf-bg:#FFFFFF;--iwf-panel:#FFFFFF;--iwf-panel-soft:#FCF7EE;--iwf-line:#ECE6DA;
  --iwf-text:#2B2F3A;--iwf-text-soft:#3D4250;--iwf-muted:#5A5F6E;--iwf-brume:#ECE6DA;
  --iwf-soft:rgba(23,45,123,.06);--iwf-focus:rgba(117,193,186,.35);
  --iwf-font-title:"Montserrat","Segoe UI",system-ui,sans-serif;--iwf-font-text:"Nunito","Segoe UI",system-ui,sans-serif;--iwf-font-note:"Caveat","Segoe Print",cursive;
  --fbm-primary:#75C1BA;--fbm-secondary:#172D7B;--fbm-dark:#2B2F3A;--fbm-light:#FFFFFF;
  font-family:var(--iwf-font-text);
}
