/* ══════════════════════════════════════════════
   page_abonnement.css
   Page Abonnement — Dark/Light mode adaptatif
   Utilise les variables CSS de night_kitchen.css
══════════════════════════════════════════════ */

/* ── Wrapper principal ───────────────────────── */
.ab-page {
    min-height: 100vh;
    padding: 3rem 1rem 4rem;
    background: radial-gradient(ellipse at top, #0d2b1a 0%, #060e08 60%, var(--bg-page) 100%);
    transition: background var(--tr-slow);
}

[data-theme="light"] .ab-page {
    background: radial-gradient(ellipse at top, #c6f0db 0%, #e8f7ee 50%, var(--bg-page) 100%);
}

@media (min-width: 640px) {
    .ab-page { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
    .ab-page { padding-left: 2rem; padding-right: 2rem; }
}

/* ── Section Hero ────────────────────────────── */
.ab-hero {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto 5rem;
}

.ab-badge {
    display: inline-block;
    border: 1px solid rgba(52, 211, 153, 0.4);
    color: #34d399;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.375rem 1rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1.5rem;
    background: rgba(16, 185, 129, 0.08);
    backdrop-filter: blur(8px);
}

[data-theme="light"] .ab-badge {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(52, 211, 153, 0.55);
    color: #059669;
}

.ab-hero-title {
    font-size: clamp(2.5rem, 6vw, 3.75rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text-primary);
}

.ab-hero-gradient {
    display: block;
    background-image: linear-gradient(135deg, #34d399, #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ab-hero-sub {
    margin-top: 1.5rem;
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

/* ── Grille des cartes ───────────────────────── */
.ab-grid {
    max-width: 64rem;
    margin: 0 auto;
    display: grid;
    gap: 2rem;
    align-items: stretch;
}

@media (min-width: 1024px) {
    .ab-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

/* ── Carte commune ───────────────────────────── */
.ab-card {
    position: relative;
    border-radius: 1.5rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ── Carte Gratuit ───────────────────────────── */
.ab-card--free {
    background: var(--bg-card-subtle);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
}

.ab-card--free:hover {
    transform: translateY(-4px);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .ab-card--free {
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(10, 31, 18, 0.10);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.07);
}

/* ── Carte Premium ───────────────────────────── */
.ab-card--premium {
    background: linear-gradient(145deg, rgba(5, 46, 22, 0.7) 0%, rgba(6, 14, 8, 0.85) 100%);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(52, 211, 153, 0.25);
    box-shadow: 0 0 60px rgba(52, 211, 153, 0.08), inset 0 1px 0 rgba(52, 211, 153, 0.15);
    overflow: hidden;
}

.ab-card--premium:hover {
    transform: translateY(-8px);
}

[data-theme="light"] .ab-card--premium {
    background: linear-gradient(145deg, rgba(220, 252, 231, 0.9) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-color: rgba(52, 211, 153, 0.45);
    box-shadow: 0 0 60px rgba(52, 211, 153, 0.12), inset 0 1px 0 rgba(52, 211, 153, 0.25);
}

/* ── Orbe décoratif (premium) ────────────────── */
.ab-orb {
    position: absolute;
    top: -5rem;
    right: -5rem;
    width: 16rem;
    height: 16rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.2), transparent 70%);
    pointer-events: none;
}

[data-theme="light"] .ab-orb {
    background: radial-gradient(circle, rgba(52, 211, 153, 0.15), transparent 70%);
}

/* ── Badge "Le plus populaire" ───────────────── */
.ab-popular {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.375rem 1rem;
    border-radius: 0 1.5rem 0 1rem;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffffff;
    background: linear-gradient(90deg, #f59e0b, #ef4444);
}

/* ── En-tête de carte ────────────────────────── */
.ab-plan-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

[data-theme="light"] .ab-plan-label { color: rgba(10, 31, 18, 0.5); }

.ab-plan-label--premium {
    color: rgba(52, 211, 153, 0.7);
}

[data-theme="light"] .ab-plan-label--premium { color: #059669; }

.ab-plan-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.ab-plan-desc {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ── Prix ────────────────────────────────────── */
.ab-price-row {
    margin-top: 2rem;
    display: flex;
    align-items: flex-end;
    gap: 0.25rem;
}

.ab-price-amount {
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
}

.ab-price-unit {
    color: var(--text-muted);
    padding-bottom: 0.25rem;
}

/* ── Sélecteurs de plan (radio) ──────────────── */
.ab-plan-options {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ab-plan-option {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-radius: 1rem;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.ab-plan-option--inactive {
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
}

.ab-plan-option--active {
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(52, 211, 153, 0.5);
}

[data-theme="light"] .ab-plan-option--inactive {
    background: rgba(10, 31, 18, 0.03);
    border-color: rgba(10, 31, 18, 0.10);
}

[data-theme="light"] .ab-plan-option--active {
    background: rgba(52, 211, 153, 0.06);
    border-color: rgba(52, 211, 153, 0.6);
}

.ab-plan-option-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ab-dot {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    flex-shrink: 0;
    transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ab-dot--active {
    background: #34d399;
    box-shadow: 0 0 8px #34d399;
    border: none;
}

.ab-dot--inactive {
    background: transparent;
    box-shadow: none;
    border: 2px solid #4b5563;
}

[data-theme="light"] .ab-dot--inactive {
    border-color: rgba(10, 31, 18, 0.3);
}

.ab-plan-option-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.ab-plan-option-promo {
    font-size: 0.625rem;
    font-weight: 700;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: block;
    margin-top: 2px;
}

.ab-plan-option-price {
    text-align: right;
}

.ab-plan-option-amount {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-primary);
}

.ab-plan-option-unit {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ── Liste de features ───────────────────────── */
.ab-features {
    margin-top: 2.5rem;
    list-style: none;
    padding: 0;
    margin-left: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.ab-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.ab-feature-icon {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 700;
    margin-top: 1px;
}

.ab-feature-icon--check-free {
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.4);
    background: transparent;
    font-weight: 900;
}

.ab-feature-icon--check-premium {
    color: #ffffff;
    background: linear-gradient(135deg, #34d399, #059669);
}

.ab-feature-icon--cross {
    color: #4b5563;
    border: 1px solid rgba(75, 85, 99, 0.3);
    background: transparent;
}

.ab-feature-text--active {
    color: var(--text-secondary);
}

.ab-feature-text--disabled {
    color: #4b5563;
    text-decoration: line-through;
}

[data-theme="light"] .ab-feature-text--active { color: rgba(10, 31, 18, 0.7); }
[data-theme="light"] .ab-feature-text--disabled { color: rgba(10, 31, 18, 0.3); }
[data-theme="light"] .ab-feature-icon--cross {
    color: rgba(10, 31, 18, 0.3);
    border-color: rgba(10, 31, 18, 0.15);
}
[data-theme="light"] .ab-feature-icon--check-free {
    color: #059669;
    border-color: rgba(5, 150, 105, 0.5);
}

/* ── Boutons CTA ─────────────────────────────── */
.ab-cta {
    margin-top: 2.5rem;
}

.ab-btn-free {
    display: block;
    width: 100%;
    border-radius: 0.75rem;
    padding: 0.875rem;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-element);
    border: 1px solid var(--border-subtle);
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease;
}

.ab-btn-free:hover {
    color: var(--text-primary);
    background: var(--bg-element-hov);
}

.ab-btn-premium {
    display: block;
    width: 100%;
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 900;
    color: #ffffff;
    background: linear-gradient(135deg, #34d399, #059669);
    box-shadow: 0 8px 32px rgba(52, 211, 153, 0.35);
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

.ab-btn-premium:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(52, 211, 153, 0.45);
}

.ab-btn-premium:active {
    transform: scale(0.99);
}

.ab-btn-sub {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-faint);
    margin-top: 0.75rem;
}

/* ── Footer de page ──────────────────────────── */
.ab-footer {
    margin-top: 4rem;
    text-align: center;
}

.ab-footer p {
    font-size: 0.75rem;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
}
