:root{
  --iwf-blue:#163D73;
  --iwf-blue-dark:#0F2E59;
  --iwf-orange:#F28C28;
  --iwf-orange-dark:#D97412;
  --iwf-bg:#F7F8FC;
  --iwf-panel:#FFFFFF;
  --iwf-panel-soft:#EEF3FB;
  --iwf-text:#1C2430;
  --iwf-text-soft:#334155;
  --iwf-muted:#6B7280;
  --iwf-brume:rgba(22,61,115,.10);
  --iwf-soft:rgba(22,61,115,.08);
  --iwf-focus:rgba(242,140,40,.22);
  --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 18px 45px rgba(15,46,89,.10);
  --fbm-shadow-hover:0 24px 58px rgba(15,46,89,.16);
  --fbm-transition:all .25s 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(22,61,115,.10);
  border-radius:28px;
  background:
    radial-gradient(circle at 100% 0,rgba(242,140,40,.12),transparent 26%),
    radial-gradient(circle at 0 28%,rgba(22,61,115,.09),transparent 28%),
    var(--iwf-bg);
  color:var(--iwf-text);
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  line-height:1.6;
  box-shadow:0 28px 75px rgba(15,46,89,.10);
}

.fbm-multistep-container::before{
  content:"";
  position:absolute;
  z-index:-1;
  top:-130px;
  right:-130px;
  width:330px;
  height:330px;
  border:54px solid rgba(242,140,40,.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(22,61,115,.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(22,61,115,.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(242,140,40,.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(22,61,115,.15),rgba(242,140,40,.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;
  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,46,89,.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-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-formations-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(285px,1fr));
  gap:22px;
  margin-bottom:30px;
}

.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,46,89,.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(242,140,40,.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(242,140,40,.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,46,89,.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,46,89,.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(242,140,40,.28);background:rgba(242,140,40,.14);color:var(--iwf-orange-dark)}
.fbm-badge-distanciel{border-color:rgba(22,61,115,.20);background:var(--iwf-panel-soft);color:var(--iwf-blue)}
.fbm-badge-hybride{border-color:rgba(22,61,115,.25);background:linear-gradient(90deg,var(--iwf-panel-soft),rgba(242,140,40,.12));color:var(--iwf-blue-dark)}
.fbm-formation-excerpt{margin:0;color:var(--iwf-muted);font-size:.92rem;line-height:1.6}

.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(22,61,115,.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,46,89,.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(22,61,115,.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(22,61,115,.18);
  border-radius:12px;
  background:#fff;
  color:var(--iwf-text);
  font-size:.95rem;
  box-shadow:inset 0 1px 2px rgba(15,46,89,.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(22,61,115,.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(22,61,115,.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,46,89,.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(22,61,115,.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(22,61,115,.16)}
.fbm-badge-duree{background:var(--iwf-panel-soft);color:var(--iwf-blue)}
.fbm-badge-prix{background:rgba(242,140,40,.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,46,89,.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(22,61,115,.20);transition:var(--fbm-transition)}
.fbm-programme-download:hover{transform:translateY(-2px);box-shadow:0 15px 28px rgba(22,61,115,.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(22,61,115,.16);border-left:5px solid var(--iwf-orange);border-radius:14px;background:#fff;box-shadow:0 8px 20px rgba(15,46,89,.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;max-width:940px;align-items:flex-start;gap:14px;margin:0 auto 24px;padding:18px 20px;border:1px solid rgba(242,140,40,.34);border-left:5px solid var(--iwf-orange);border-radius:16px;background:linear-gradient(135deg,#fff8ef,#fff);color:var(--iwf-text-soft);box-shadow:0 10px 24px rgba(242,140,40,.08)}
.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(242,140,40,.24)}
.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-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(22,61,115,.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(242,140,40,.24)}
.fbm-btn-primary:hover{border-color:var(--iwf-orange-dark);background:linear-gradient(135deg,var(--iwf-orange-dark),#b95d08);color:#fff;transform:translateY(-2px);box-shadow:0 16px 30px rgba(242,140,40,.30)}
.fbm-btn-secondary{border-color:rgba(22,61,115,.22);background:#fff;color:var(--iwf-blue);box-shadow:0 9px 20px rgba(15,46,89,.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}
}
