/* ==========================================================================
   Method modal — numbered tab switcher inside #modal-methodologie, one page
   per structogénie step. js/method-modal.js toggles [data-method-tab] /
   [data-method-panel] pairs by matching data attribute value; this file only
   owns the look of the tabs and the single visible panel.
   Blocks: .method-modal, .method-modal__tabs, .method-modal__tab,
           .method-modal__panels, .method-modal__panel,
           .method-modal__divider, .method-modal__outro
   ========================================================================== */

.method-modal__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.method-modal__tab {
  flex: none;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--glass-border-strong);
  background: var(--color-white);
  color: var(--color-text-secondary);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.method-modal__tab:hover {
  border-color: var(--color-red);
  color: var(--color-red);
}

.method-modal__tab.is-active {
  background: var(--color-red);
  border-color: var(--color-red);
  color: var(--color-white);
}

.method-modal__panels {
  margin-top: var(--space-5);
}

.method-modal__panel {
  display: none;
  flex-direction: column;
  gap: var(--space-2);
}

.method-modal__panel.is-active {
  display: flex;
}

.method-modal__panel-index {
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-red);
}

.method-modal__panel-title {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--color-text-primary);
}

.method-modal__panel-text {
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--color-text-secondary);
}

/* Footer note applying to every step, not just the one showing — sits
   below the panels regardless of which tab is active. */
.method-modal__divider {
  margin-top: var(--space-5);
  border: none;
  border-top: 1px solid var(--glass-border-strong);
}

.method-modal__outro {
  margin-top: var(--space-4);
  font-size: var(--fs-sm);
  font-style: italic;
  line-height: 1.6;
  color: var(--color-text-secondary);
}
