/* Tunnel souscription — aligné maquette Stitch / theme.css */

body#module-mlm_hosting-subscribe,
body#module-mlm_hosting-subscription {
  background: var(--mlm-bg, #fafbfc);
}

.mlm-funnel {
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 24px 72px;
}

.mlm-funnel-header {
  text-align: center;
  margin-bottom: 36px;
}

.mlm-funnel-header h1 {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.mlm-funnel-header p {
  font-size: 18px;
  color: #475569;
  margin: 0 auto;
  max-width: 560px;
  line-height: 1.55;
}

/* Progression hexagonale (aperçu maquette) */
.mlm-funnel-progress {
  margin-bottom: 40px;
}

.mlm-funnel-progress ol {
  display: flex;
  justify-content: center;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.mlm-funnel-progress li {
  position: relative;
  min-width: 140px;
  padding: 16px 18px 16px 52px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(11, 18, 32, 0.08);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
  opacity: 0.55;
  transition: opacity 0.2s, border-color 0.2s, transform 0.2s;
}

.mlm-funnel-progress li.active,
.mlm-funnel-progress li.done {
  opacity: 1;
  border-color: rgba(47, 128, 237, 0.35);
}

.mlm-funnel-progress li.active {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(47, 128, 237, 0.12);
}

.mlm-step-num {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 32px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #22e6c8, #2f80ed, #7b3ff2);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
}

.mlm-funnel-progress li.done .mlm-step-num::after {
  content: '✓';
  font-size: 12px;
}

.mlm-funnel-progress li.done .mlm-step-num {
  font-size: 0;
}

.mlm-step-label {
  font-size: 14px;
  font-weight: 600;
}

.mlm-billing-toggle {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.mlm-billing-toggle .mlm-toggle-group label {
  cursor: pointer;
}

.mlm-billing-toggle .mlm-toggle-group input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mlm-billing-toggle .mlm-toggle-pill {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
}

.mlm-billing-toggle .mlm-toggle-group input:checked + .mlm-toggle-pill {
  background: linear-gradient(135deg, #22e6c8, #2f80ed, #7b3ff2);
  color: #fff;
  box-shadow: 0 4px 12px rgba(47, 128, 237, 0.28);
}

.mlm-offer-family {
  margin-bottom: 12px;
}

.mlm-offer-family-automation .mlm-family-title {
  color: #FF6D5A;
}

.mlm-family-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  margin: 28px 0 16px;
}

.mlm-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin: 0 0 24px;
}

.mlm-pricing-tier {
  cursor: pointer;
  border: 1px solid rgba(11, 18, 32, 0.08);
  display: block;
  padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.mlm-pricing-tier:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(17, 24, 39, 0.14);
}

.mlm-pricing-tier input {
  position: absolute;
  opacity: 0;
}

.mlm-pricing-tier:has(input:checked) {
  border-color: rgba(47, 128, 237, 0.45);
  box-shadow: 0 20px 44px rgba(47, 128, 237, 0.12);
}

.mlm-pricing-tier h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 12px;
}

.mlm-pricing-tier-vps {
  cursor: pointer;
}

.mlm-vps-toggle-wrap {
  margin-bottom: 14px;
}

.mlm-vps-toggle-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 8px;
}

.mlm-vps-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mlm-vps-toggle-btn {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(11, 18, 32, 0.12);
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  color: #0b1220;
  cursor: pointer;
}

.mlm-vps-toggle-btn.is-active {
  border-color: rgba(47, 128, 237, 0.55);
  box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.12);
}

.mlm-pricing-grid-funnel {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 720px) {
  .mlm-pricing-grid-funnel {
    grid-template-columns: 1fr;
  }
}

.mlm-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}

.mlm-price-monthly,
.mlm-price-annual {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.mlm-setup {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

.mlm-popular {
  position: relative;
}

.mlm-badge {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 6px;
  background: rgba(47, 128, 237, 0.28);
  color: #2f80ed;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.mlm-badge-gradient {
  background: linear-gradient(135deg, #22e6c8, #2f80ed, #7b3ff2);
  color: #fff;
  box-shadow: 0 6px 14px rgba(47, 128, 237, 0.3);
}

.mlm-funnel-form > .mlm-btn-primary {
  display: flex;
  width: 100%;
  max-width: 320px;
  margin: 8px auto 0;
  padding: 14px 24px;
  font-size: 16px;
}

.mlm-funnel-actions {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 28px;
  flex-wrap: wrap;
}

.mlm-recap {
  margin-bottom: 24px;
}

.mlm-recap h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 16px;
}

.mlm-recap-list li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(11, 18, 32, 0.06);
  font-size: 15px;
}

.mlm-recap-note {
  font-size: 14px;
  color: #475569;
  margin-top: 16px;
}

.mlm-domain-status.ok { color: #00a884; font-weight: 600; }
.mlm-domain-status.error { color: #dc2626; font-weight: 600; }

.mlm-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .mlm-field-row {
    grid-template-columns: 1fr;
  }

  .mlm-funnel-progress li {
    min-width: 100%;
  }
}


.mlm-badge-freemium {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #0F766E;
  background: rgba(15, 118, 110, .12);
  padding: 4px 9px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.mlm-freemium-tier {
  border: 1px dashed rgba(15, 118, 110, .35);
}

.mlm-subdomain-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mlm-subdomain-suffix {
  font-size: 14px;
  color: #64748B;
  white-space: nowrap;
}

.mlm-field-hint {
  font-size: 13px;
  color: #64748B;
  margin-top: 6px;
}


.mlm-addon-section {
  margin-top: 28px;
  padding-top: 8px;
  border-top: 1px solid rgba(11, 18, 32, 0.08);
}

.mlm-addon-title {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 6px;
}

.mlm-addon-lead {
  font-size: 14px;
  color: #64748B;
  margin: 0 0 16px;
  line-height: 1.55;
}

.mlm-addon-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mlm-addon-card {
  cursor: pointer;
  border: 1px solid rgba(11, 18, 32, 0.08);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.mlm-addon-card.is-selected {
  border-color: rgba(47, 128, 237, 0.45);
  box-shadow: 0 12px 28px rgba(47, 128, 237, 0.12);
}

.mlm-addon-card input {
  margin-right: 8px;
}

.mlm-addon-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 8px 0 6px;
}

.mlm-addon-pitch {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  margin: 0 0 8px;
}

.mlm-addon-price {
  font-size: 13px;
  color: #0B1220;
  margin: 0;
}

.mlm-addon-total {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #2F80ED;
}

.mlm-recap-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(11, 18, 32, 0.06);
}

.mlm-recap-line:last-child {
  border-bottom: none;
}

.mlm-recap-tag {
  display: inline-block;
  margin-left: 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #2F80ED;
  background: rgba(47, 128, 237, 0.1);
  padding: 2px 7px;
  border-radius: 4px;
}

.mlm-recap-tag-addon {
  color: #0F766E;
  background: rgba(15, 118, 110, 0.12);
}

.mlm-recap-totals {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(11, 18, 32, 0.08);
}

.mlm-subscription-group {
  margin-bottom: 28px;
}

.mlm-subscription-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.mlm-subscription-pack-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #2F80ED;
  background: rgba(47, 128, 237, 0.1);
  padding: 4px 9px;
  border-radius: 6px;
}

@media (max-width: 768px) {
  .mlm-addon-grid {
    grid-template-columns: 1fr;
  }
  .mlm-recap-line {
    flex-direction: column;
  }
}
