.inscription-wizard {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 30, 18, 0.72);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.inscription-wizard.is-open {
  opacity: 1;
  visibility: visible;
}
.inscription-wizard__panel {
  background: #fff;
  border-radius: 16px;
  width: min(720px, 100%);
  max-height: min(92vh, 900px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0,0,0,.25);
  transform: translateY(12px) scale(.98);
  opacity: 0;
  transition: transform .28s ease, opacity .28s ease;
}
.inscription-wizard.is-open .inscription-wizard__panel {
  transform: none;
  opacity: 1;
}
.inscription-wizard__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid #eee;
  background: #f8faf8;
}
.inscription-wizard__head h2 {
  font-size: 1.05rem;
  color: var(--green-dark, #004225);
  margin: 0;
}
.inscription-wizard__steps {
  display: flex;
  gap: 8px;
  padding: 12px 22px;
  background: #fafafa;
  border-bottom: 1px solid #eee;
  font-size: .72rem;
  color: #888;
}
.inscription-wizard__step {
  display: flex;
  align-items: center;
  gap: 6px;
}
.inscription-wizard__step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ddd;
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .68rem;
}
.inscription-wizard__step.is-active .inscription-wizard__step-num,
.inscription-wizard__step.is-done .inscription-wizard__step-num {
  background: var(--green-dark, #004225);
}
.inscription-wizard__step.is-done { color: var(--green-dark, #004225); }
.inscription-wizard__step.is-active { color: var(--green-dark, #004225); font-weight: 600; }
.inscription-wizard__body {
  padding: 22px;
  overflow-y: auto;
  flex: 1;
}
.inscription-wizard__close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #666;
  padding: 4px 8px;
}
.inscription-wizard__close:hover { color: #000; }

.wizard-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.wizard-type-btn {
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  background: #fff;
  font-family: inherit;
  transition: border-color .2s, background .2s;
}
.wizard-type-btn:hover,
.wizard-type-btn.is-selected {
  border-color: var(--green-dark, #004225);
  background: rgba(0, 66, 37, .04);
}
.wizard-type-btn strong {
  display: block;
  font-size: .92rem;
  color: var(--green-dark, #004225);
  margin-bottom: 6px;
}
.wizard-type-btn span {
  font-size: .75rem;
  color: #666;
  line-height: 1.5;
}

.wizard-filiere-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.wizard-filiere-card {
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  background: #fff;
  padding: 0;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.wizard-filiere-card:hover,
.wizard-filiere-card.is-selected {
  border-color: var(--green-dark, #004225);
  box-shadow: 0 4px 16px rgba(0,66,37,.12);
}
.wizard-filiere-card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
}
.wizard-filiere-card__body { padding: 10px 12px; }
.wizard-filiere-card__body strong {
  display: block;
  font-size: .8rem;
  color: var(--green-dark, #004225);
  margin-bottom: 4px;
}
.wizard-filiere-card__body span {
  font-size: .7rem;
  color: #666;
}

.wizard-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wizard-form .form-group { margin-bottom: 12px; }
.wizard-form .form-group span {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 4px;
}
.wizard-form input,
.wizard-form select,
.wizard-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: .85rem;
  font-family: inherit;
}
.wizard-form textarea { min-height: 80px; resize: vertical; }
.wizard-selected-banner {
  background: rgba(0,66,37,.06);
  border-left: 4px solid var(--green-dark, #004225);
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: .82rem;
}
.wizard-selected-banner strong { color: var(--green-dark, #004225); }

.inscription-wizard__foot {
  padding: 14px 22px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  background: #fafafa;
}
.inscription-wizard__foot .btn { min-width: 120px; justify-content: center; }

@media (max-width: 560px) {
  .wizard-type-grid { grid-template-columns: 1fr; }
  .wizard-form .form-row { grid-template-columns: 1fr; }
  .wizard-filiere-grid { grid-template-columns: 1fr; }
}
