/* myia-tools — stepper.css + cookie-consent.css */

/* =============================================
   STEPPER — conteneur
   ============================================= */

.myia-stepper {
  width: 100%;
}

/* =============================================
   STEPS
   ============================================= */

.myia-step {
  display: none;
}

.myia-step--active {
  display: block;
}

.myia-step-title {
  font-weight: 600;
  font-size: 1.05em;
  margin-bottom: 14px;
}

/* Validation — champ invalide */
.myia-step-invalid {
  outline: 2px solid #dc2626;
  outline-offset: 2px;
}

/* =============================================
   NAVIGATION (Précédent / Suivant / Submit)
   ============================================= */

/* Force l'attribut [hidden] — certains thèmes WordPress le réinitialisent */
.myia-step-prev[hidden],
.myia-step-next[hidden],
.myia-stepper-submit[hidden],
.myia-step-prev.myia-btn--hidden,
.myia-step-next.myia-btn--hidden,
.myia-stepper-submit.myia-btn--hidden {
  display: none !important;
}

.myia-stepper-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  min-height: 48px;
}

/* 3 colonnes égales — gauche, centre, droite */
.myia-stepper-nav-left {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.myia-stepper-nav-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.myia-step-prev,
.myia-step-next {
  display: inline-block;
  background: transparent;
  border: 1px solid #374151;
  border-radius: 4px;
  padding: 4px 14px;
  cursor: pointer;
  font-size: 0.84em;
  color: #374151;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  line-height: 1.4;
}

.myia-step-prev:hover,
.myia-step-next:hover {
  background: #374151;
  color: #fff;
}

.myia-stepper-submit {
  display: inline-flex;
  align-items: center;
  padding: 5px 18px;
  font-size: 0.89em;
  line-height: 1.4;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background: #2563eb;
  color: #fff;
  transition: opacity 0.2s;
}

.myia-stepper-submit:disabled,
.myia-stepper-submit[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}

/* =============================================
   COOKIE CONSENT (standalone + dans stepper)
   ============================================= */

.myia-cookie-consent {
  margin: 16px 0;
}

.myia-cookie-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  line-height: 1.5;
}

.myia-cookie-checkbox {
  flex-shrink: 0;
  margin-top: 3px;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.myia-cookie-text {
  font-size: 0.95em;
}

.myia-cookie-hint {
  font-size: 0.82em;
  color: #6b7280;
  margin-top: 8px;
  line-height: 1.5;
}

.myia-cookie-hint a {
  color: inherit;
  text-decoration: underline;
}

/* =============================================
   RECAP — [myia_stepper_recap]
   ============================================= */

.myia-stepper-recap {
  margin-bottom: 20px;
}

.myia-recap-list {
  margin: 0 0 16px;
  padding: 0;
}

.myia-recap-item {
  display: grid;
  grid-template-columns: minmax(120px, 30%) 1fr;
  gap: 4px 16px;
  padding: 10px 0;
  border-bottom: 1px solid #e5e7eb;
}

.myia-recap-item:last-child {
  border-bottom: none;
}

.myia-recap-title {
  font-weight: 600;
  font-size: 0.9em;
  color: #374151;
  margin: 0;
  padding: 0;
}

.myia-recap-value {
  font-size: 0.9em;
  color: #1d2327;
  margin: 0;
  padding: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.myia-recap-empty {
  color: #6b7280;
  font-size: 0.9em;
  font-style: italic;
}
