:root {
    --bg: #f4f6f8;
    --card: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;
    --dark: #111827;
    --green: #047857;
    --green-bg: #ecfdf5;
    --blue: #2563eb;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.14), transparent 32rem),
        linear-gradient(180deg, #ffffff 0%, var(--bg) 55%, #eef2f7 100%);
    color: var(--text);
}

.page {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 32px 18px 42px;
}

.hero {
    text-align: center;
    margin-bottom: 32px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 14px;
}

.brand-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--green);
    box-shadow: 0 0 0 5px rgba(4, 120, 87, 0.13);
}

h1 {
    margin: 0;
    font-size: clamp(34px, 8vw, 58px);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.lead {
    max-width: 620px;
    margin: 18px auto 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.6;
}

.status-card {
    max-width: 620px;
    margin: 0 auto;
    padding: 26px;
    border-radius: 24px;
    background: var(--card);
    border: 1px solid rgba(4, 120, 87, 0.24);
    box-shadow: var(--shadow);
    text-align: center;
}

.status-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    border-radius: 999px;
    background: var(--green-bg);
    color: var(--green);
    font-size: 28px;
}

.status-card h2 {
    margin: 0 0 8px;
    font-size: 25px;
}

.status-card p {
    margin: 0;
    color: var(--muted);
}

.expiry {
    display: inline-flex;
    margin-top: 16px;
    padding: 11px 14px;
    border-radius: 14px;
    background: #f9fafb;
    border: 1px solid var(--border);
    font-weight: 800;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.plan-card {
    position: relative;
    display: flex;
    min-height: 270px;
    flex-direction: column;
    padding: 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--border);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.plan-card:hover {
    transform: translateY(-4px);
    border-color: rgba(17, 24, 39, 0.18);
    box-shadow: var(--shadow);
}

.plan-card.featured {
    background: var(--dark);
    color: white;
    border-color: var(--dark);
}

.plan-card.featured .plan-muted,
.plan-card.featured .speed,
.plan-card.featured .duration {
    color: rgba(255, 255, 255, 0.72);
}

.plan-card.featured .price {
    color: white;
}

.plan-card.featured .choose-button {
    background: white;
    color: var(--dark);
}

.plan-badge {
    width: fit-content;
    margin-bottom: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 12px;
    font-weight: 800;
}

.plan-card.featured .plan-badge {
    background: rgba(255, 255, 255, 0.14);
    color: white;
}

.plan-title {
    margin: 0 0 8px;
    font-size: 24px;
    letter-spacing: -0.03em;
}

.duration,
.speed,
.plan-muted {
    color: var(--muted);
    font-size: 14px;
}

.price {
    margin: 18px 0 6px;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.price small {
    font-size: 15px;
    font-weight: 700;
    color: var(--muted);
}

.plan-card.featured .price small {
    color: rgba(255, 255, 255, 0.72);
}

.plan-details {
    display: grid;
    gap: 8px;
    margin: 18px 0 22px;
}

.speed {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid rgba(107, 114, 128, 0.18);
}

.choose-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: auto;
    padding: 13px 16px;
    border-radius: 14px;
    background: var(--dark);
    color: white;
    text-decoration: none;
    font-weight: 800;
    border: 0;
    cursor: pointer;
}

.footer-note {
    margin-top: 28px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

.empty-card {
    max-width: 620px;
    margin: 0 auto;
    padding: 24px;
    border-radius: 20px;
    background: white;
    border: 1px solid var(--border);
    text-align: center;
    color: var(--muted);
}

@media (max-width: 1000px) {
    .plans-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .page {
        padding: 24px 14px 32px;
    }

    .hero {
        margin-bottom: 24px;
    }

    .plans-grid {
        grid-template-columns: 1fr;
    }

    .plan-card {
        min-height: auto;
    }

    .status-card {
        padding: 22px;
    }
}

.plan-badge.badge-blue {
    background: #eff6ff;
    color: #1d4ed8;
}

.plan-badge.badge-green {
    background: #ecfdf5;
    color: #047857;
}

.plan-badge.badge-amber {
    background: #fffbeb;
    color: #b45309;
}

.plan-badge.badge-purple {
    background: #f5f3ff;
    color: #6d28d9;
}

.plan-badge.badge-blue,
.plan-card.featured .plan-badge.badge-blue {
    background: #eff6ff;
    color: #1d4ed8;
}

.plan-badge.badge-green,
.plan-card.featured .plan-badge.badge-green {
    background: #ecfdf5;
    color: #047857;
}

.plan-badge.badge-amber,
.plan-card.featured .plan-badge.badge-amber {
    background: #fffbeb;
    color: #b45309;
}

.plan-badge.badge-purple,
.plan-card.featured .plan-badge.badge-purple {
    background: #f5f3ff;
    color: #6d28d9;
}

/* Badges colorés des offres */
.plan-card .plan-badge.badge-blue {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
}

.plan-card .plan-badge.badge-green {
    background: #ecfdf5 !important;
    color: #047857 !important;
}

.plan-card .plan-badge.badge-amber {
    background: #fffbeb !important;
    color: #b45309 !important;
}

.plan-card .plan-badge.badge-purple {
    background: #f5f3ff !important;
    color: #6d28d9 !important;
}

.steps {
    display: flex;
    justify-content: center;
    gap: 12px;
    max-width: 820px;
    margin: 24px auto 0;
    flex-wrap: wrap;
}

.step {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--border);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
    color: var(--text);
    font-weight: 800;
    font-size: 14px;
}

.step-number {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 999px;
    background: var(--dark);
    color: white;
    font-size: 13px;
    font-weight: 900;
}

.commitment-note {
    width: fit-content;
    max-width: 100%;
    margin: 16px auto 0;
    padding: 10px 14px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    font-weight: 800;
    font-size: 14px;
}

@media (max-width: 620px) {
    .steps {
        align-items: stretch;
        flex-direction: column;
    }

    .step {
        justify-content: flex-start;
        border-radius: 16px;
    }

    .commitment-note {
        width: 100%;
        border-radius: 16px;
    }
}

.plan-card .plan-badge.badge-blue {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
}

.plan-card .plan-badge.badge-green {
    background: #ecfdf5 !important;
    color: #047857 !important;
}

.plan-card .plan-badge.badge-amber {
    background: #fffbeb !important;
    color: #b45309 !important;
}

.plan-card .plan-badge.badge-purple {
    background: #f5f3ff !important;
    color: #6d28d9 !important;
}

.plan-badge-placeholder {
    visibility: hidden;
}
