/* Abonnements — theme site Aqaryoo (blanc / rouge / noir) */

#subscription.aq-sub-theme,
.aq-subscription-page {
  background: #fff;
}

.subscription-header-block {
  text-align: center;
  margin: 8px 0 28px;
}

.subscription-header-block .subscription-main-title,
.aq-sub-theme .subscription-main-title {
  margin: 0;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: #111;
  letter-spacing: -0.02em;
}

.subscription-header-block .subscription-sub-title,
.aq-sub-theme .subscription-sub-title {
  margin: 10px auto 0;
  max-width: 640px;
  color: #666;
  font-size: 15px;
  line-height: 1.5;
}

.aq-sub-eyebrow {
  margin: 0 0 8px;
  color: #e31c23;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.aq-subscription-page {
  padding: 0 0 12px;
}

.aq-cmp {
  width: 100%;
}

.aq-cmp__scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #eee;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(17, 17, 17, 0.05);
}

.aq-cmp__table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  table-layout: fixed;
}

.aq-cmp__table th,
.aq-cmp__table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
  text-align: center;
  font-size: 14px;
  color: #333;
  background: #fff;
}

.aq-cmp__table tbody tr:nth-child(even) td {
  background: #fafafa;
}

.aq-cmp__feature-h,
.aq-cmp__table td:first-child {
  text-align: left;
  font-weight: 600;
  width: 36%;
  color: #111;
}

.aq-cmp__plan-h {
  font-weight: 800;
  background: #fff !important;
  border-bottom: 2px solid #eee;
}

.aq-cmp__plan-h.aq-cmp-col--premium {
  border-bottom-color: #e31c23;
}

.aq-cmp__plan-name {
  margin-top: 8px;
  font-size: 16px;
  letter-spacing: 0.03em;
  color: #111;
}

.aq-cmp-col--premium .aq-cmp__plan-name {
  color: #e31c23;
}

.aq-cmp-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 auto;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  max-width: 100%;
  background: #f6f6f6;
  color: #333;
  border: 1px solid #eee;
}

.aq-cmp-badge--free {
  background: #f6f6f6;
  color: #333;
  border-color: #eee;
}

.aq-cmp-badge--pro {
  background: #111;
  color: #fff;
  border-color: #111;
}

.aq-cmp-badge--premium {
  background: #fff5f5;
  color: #e31c23;
  border-color: #ffd7d7;
}

.aq-cmp__price strong {
  font-size: 18px;
  font-weight: 800;
  color: #111;
}

.aq-cmp-col--premium .aq-cmp__price strong {
  color: #e31c23;
}

.aq-cmp-check {
  color: #111;
  font-size: 20px;
}

.aq-cmp-x {
  color: #ccc;
  font-size: 20px;
}

.aq-cmp-limit {
  color: #111;
  font-size: 14px;
  font-weight: 700;
}

.aq-cmp__actions td {
  border-bottom: 0;
  padding-top: 18px;
  padding-bottom: 18px;
  background: #fff !important;
}

.aq-cmp__btn {
  border: 1px solid #111;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  padding: 11px 18px;
  min-width: 124px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.aq-cmp__btn:hover {
  background: #333;
}

.aq-cmp__btn--premium {
  background: #e31c23;
  border-color: #e31c23;
}

.aq-cmp__btn--premium:hover {
  background: #c4181e;
}

.aq-cmp__btn--active {
  background: #fff;
  color: #111;
  border-color: #111;
}

.aq-cmp__btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.aq-cmp__note {
  margin: 16px 0 0;
  text-align: center;
  color: #666;
  font-size: 13px;
}

.aq-cmp__note--soft {
  margin-top: 4px;
  font-size: 12px;
  color: #888;
}

/* Options de visibilite — meme theme que le tableau abonnements */
.aq-vis-options {
  margin-top: 40px;
  padding: 8px 0 24px;
}

.aq-vis-options__head {
  text-align: center;
  margin-bottom: 18px;
}

.aq-vis-options__title {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: #111;
}

.aq-vis-options__sub {
  margin: 8px 0 0;
  color: #666;
  font-size: 14px;
}

.aq-vis-options__table-wrap {
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid #eee;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 22px rgba(17, 17, 17, 0.05);
}

.aq-vis-options__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 0 !important;
  table-layout: auto !important;
}

.aq-vis-options__table thead {
  background: #fff;
}

.aq-vis-options__table thead th {
  color: #111;
  font-weight: 800;
  border-bottom: 2px solid #eee;
  background: #fff !important;
}

.aq-vis-options__table th,
.aq-vis-options__table td {
  padding: 13px 16px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  color: #333;
  text-align: left;
  background: #fff;
}

.aq-vis-options__table tbody tr:nth-child(even) td {
  background: #fafafa;
}

.aq-vis-options__table tbody tr:hover td {
  background: #fff5f5;
}

.aq-vis-options__table tbody tr:last-child td {
  border-bottom: 0;
}

.aq-vis-options__price-col {
  text-align: right !important;
  white-space: nowrap;
  font-weight: 800;
  color: #111;
  width: 40%;
}

.aq-vis-options__row-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.aq-vis-options__row-btn.is-locked {
  opacity: 0.7;
}

.aq-vis-options__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #111;
  color: #fff;
  flex-shrink: 0;
}

.aq-vis-options__lock {
  color: #e31c23;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.aq-vis-options__note {
  margin: 14px auto 0;
  max-width: 760px;
  text-align: center;
  color: #666;
  font-size: 12px;
}

.aq-vis-options__note--soft {
  margin-top: 4px;
  color: #888;
}

@media (max-width: 768px) {
  .aq-cmp__table th,
  .aq-cmp__table td {
    padding: 10px 8px;
    font-size: 12px;
  }

  .aq-cmp__btn {
    min-width: 96px;
    padding: 9px 10px;
    font-size: 12px;
  }

  /* Page abonnements — mobile */
  #subscription.aq-sub-theme {
    padding-left: 0;
    padding-right: 0;
  }

  .aq-subscription-page {
    padding: 0 12px 28px;
  }

  .subscription-header-block {
    margin: 4px 0 18px;
    padding: 0 4px;
  }

  .subscription-header-block .subscription-main-title,
  .aq-sub-theme .subscription-main-title {
    font-size: 22px;
    line-height: 1.25;
  }

  .subscription-header-block .subscription-sub-title,
  .aq-sub-theme .subscription-sub-title {
    font-size: 13px;
    margin-top: 8px;
  }

  .subscription-plans-grid.aq-plans-grid,
  .aq-plans-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    width: 100%;
  }

  .subscription-plans-grid .main_box,
  .aq-plans-grid .main_box {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .userPackages.card.aq-plan-card,
  .aq-plan-card {
    width: 100% !important;
    margin: 0 !important;
    border-radius: 16px !important;
    padding: 16px 14px 18px !important;
    box-shadow: 0 8px 20px rgba(17, 17, 17, 0.06);
  }

  .userPackages.card .package-name {
    min-height: 0;
    font-size: 20px;
  }

  .userPackages.card .package-price {
    font-size: 26px;
  }

  .userPackages.card .package-features {
    min-height: 0;
  }

  .userPackages.card .feature-text {
    font-size: 13px;
  }

  .userPackages.card .subscribe-btn {
    width: 100%;
    font-size: 15px;
    padding: 12px 14px;
    border-radius: 999px;
  }

  .aq-plan-badge {
    font-size: 11px;
    padding: 5px 8px;
    margin-bottom: 10px;
  }

  .aq-cmp__scroll {
    border-radius: 14px;
    margin: 0 -2px;
  }

  .aq-cmp__table {
    min-width: 560px;
  }

  .aq-vis-options {
    margin-top: 28px;
    padding: 0 0 16px;
  }

  .aq-vis-options__title {
    font-size: 20px;
  }

  .aq-vis-options__table-wrap {
    border-radius: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .aq-vis-options__table th,
  .aq-vis-options__table td {
    padding: 10px 8px;
    font-size: 12px;
  }
}

/* Paiement Sofizpay */
.aq-pay {
  padding: 28px 0 56px;
  background: linear-gradient(180deg, #fff8f4 0%, #fff 42%);
}

.aq-pay__card {
  max-width: 520px;
  margin: 0 auto;
  padding: 28px 26px 24px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid #f0dcc8;
  box-shadow: 0 18px 40px rgba(139, 58, 38, 0.1);
}

.aq-pay__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff4f0;
  color: #e31c23;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.aq-pay__title {
  margin: 0 0 8px;
  color: #111;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.aq-pay__lead {
  margin: 0 0 20px;
  color: #666;
  font-size: 15px;
  line-height: 1.5;
}

.aq-pay__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 22px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #1a120e;
  color: #fff;
}

.aq-pay__summary-label {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.aq-pay__summary-plan {
  margin: 4px 0 0;
  font-size: 18px;
  font-weight: 800;
}

.aq-pay__summary-amount {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #ffd7a8;
  white-space: nowrap;
}

.aq-pay__label {
  display: block;
  margin: 0 0 6px;
  color: #1a120e;
  font-size: 13px;
  font-weight: 700;
}

.aq-pay__input,
.aq-pay__select {
  width: 100%;
  min-height: 48px;
  margin: 0 0 14px;
  padding: 0 14px;
  border: 1px solid #ead7c4;
  border-radius: 12px;
  background: #fffaf5;
  color: #1a120e;
  font-size: 15px;
}

.aq-pay__hint {
  margin: -8px 0 14px;
  color: #8a6f60;
  font-size: 12px;
}

.aq-pay__error {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff1f1;
  color: #b42318;
  font-size: 14px;
}

.aq-pay__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  margin-top: 6px;
  border: 0;
  border-radius: 999px;
  background: #e31c23;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.aq-pay__submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.aq-pay__back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: 10px;
  border: 0;
  background: transparent;
  color: #6b5346;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.aq-pay-ok {
  padding: 40px 0 72px;
  background: linear-gradient(180deg, #f3fff6 0%, #fff 48%);
}

.aq-pay-ok__card {
  max-width: 520px;
  margin: 0 auto;
  padding: 36px 26px 28px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid #d8efe0;
  box-shadow: 0 18px 40px rgba(22, 101, 52, 0.08);
  text-align: center;
}

.aq-pay-ok__mark {
  width: 78px;
  height: 78px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  font-weight: 800;
  box-shadow: 0 0 0 10px rgba(22, 163, 74, 0.12);
}

.aq-pay-ok__title {
  margin: 0 0 8px;
  color: #14532d;
  font-size: 28px;
  font-weight: 800;
}

.aq-pay-ok__text {
  margin: 0 0 18px;
  color: #3f5d4a;
  font-size: 16px;
  line-height: 1.5;
}

.aq-pay-ok__meta {
  margin: 0 auto 22px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f4fbf6;
  color: #14532d;
  font-size: 14px;
  font-weight: 700;
}

.aq-pay-ok__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aq-pay-ok__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  background: #e31c23;
  color: #fff !important;
  font-weight: 800;
  text-decoration: none;
}

.aq-pay-ok__ghost,
.aq-pay-ok__link {
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid #d8efe0;
  background: #fff;
  color: #14532d;
  font-weight: 700;
}

.aq-pay-ok__link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

@media (max-width: 768px) {
  .aq-pay__card,
  .aq-pay-ok__card {
    padding: 22px 16px 18px;
    border-radius: 18px;
  }

  .aq-pay__title,
  .aq-pay-ok__title {
    font-size: 22px;
  }

  .aq-pay__summary {
    flex-direction: column;
    align-items: flex-start;
  }
}
