/* =============================================
   PREMIUM PRICING PAGE — Éditorial immersif
   Harmonisé avec la palette du site :
   --text-dark: #1E293B, --logo-red: #E11D2D,
   --bg-light: #F8FAFC
   ============================================= */

/* --- PAGE WRAPPER --- */
.premium-page {
    background-color: var(--bg-body, #F8FAFC);
    color: var(--text-dark, #1E293B);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* --- HERO BAND (fond sombre, immersif) --- */
.premium-hero-band {
    background: linear-gradient(160deg, #0F172A 0%, #1E293B 100%);
    position: relative;
    overflow: hidden;
    padding: 100px 0 60px;
}

.premium-hero-band::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 40px;
    background: var(--bg-body, #F8FAFC);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

/* Ambient glow dans le hero seulement */
.ambient-glow-1 {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(225, 29, 45, 0.08) 0%, transparent 60%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}

.ambient-glow-2 {
    position: absolute;
    bottom: -30%;
    right: -15%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(225, 29, 45, 0.06) 0%, transparent 60%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}

/* --- CONTAINER --- */
.premium-page .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* --- EDITORIAL GRID (2 colonnes, dans le hero) --- */
.editorial-wrapper {
    padding-top: 20px;
    padding-bottom: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

/* --- COLONNE GAUCHE : OFFRE (sticky) --- */
.offer-statement {
    position: sticky;
    top: 120px;
    animation: fadeUp 0.6s ease-out;
}

.badge-subtle {
    display: inline-block;
    color: var(--logo-red, #E11D2D);
    border: 1px solid rgba(225, 29, 45, 0.3);
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.offer-statement h1 {
    font-family: 'Manrope', 'Inter', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 14px;
    color: white;
}

.offer-statement > p {
    color: #94A3B8;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 28px;
}

/* Prix */
.price-inline {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.price-inline .amount {
    font-family: 'Manrope', 'Inter', sans-serif;
    font-size: 2.6rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.price-inline .currency {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--logo-red, #E11D2D);
}

.price-inline .duration {
    color: #94A3B8;
    font-size: 0.95rem;
}

.price-note {
    font-size: 0.82rem;
    color: #64748B;
    margin-bottom: 24px;
    display: block;
}

/* Bouton CTA */
.offer-statement form {
    margin-bottom: 14px;
}

.btn-sleek {
    background: var(--logo-red, #E11D2D);
    color: white;
    padding: 16px 28px;
    border-radius: 8px;
    border: none;
    font-family: 'Manrope', 'Inter', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 280px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(225, 29, 45, 0.25);
}

.btn-sleek:hover {
    background: white;
    color: #0F172A;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-sleek:active {
    transform: translateY(0);
}

/* Footer offre : sécurité + annuler */
.offer-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.secure-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748B;
}

/* Bouton annuler en haut de page */
.btn-cancel-top {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #94A3B8;
    text-decoration: none;
    transition: color 0.2s;
    padding-top: 12px;
    margin-bottom: 24px;
}

.btn-cancel-top:hover {
    color: white;
}

/* --- COLONNE DROITE : FEATURES FLOW --- */
.features-flow {
    position: relative;
    padding-left: 24px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    animation: fadeUp 0.6s ease-out 0.15s both;
}

.feature-node {
    position: relative;
    margin-bottom: 32px;
}

.feature-node::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 6px;
    width: 7px;
    height: 7px;
    background: var(--logo-red, #E11D2D);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(225, 29, 45, 0.6);
}

.feature-node.free-node::before {
    background: #64748B;
    box-shadow: none;
}

.feature-node h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

.feature-node p {
    font-size: 0.88rem;
    color: #94A3B8;
    line-height: 1.5;
}


/* =============================================
   SECTION COMPARAISON (fond clair, compacte)
   ============================================= */
.comparison-section {
    padding: 40px 0 50px;
    animation: fadeUp 0.6s ease-out 0.3s both;
}

.comparison-section h2 {
    font-family: 'Manrope', 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-dark, #1E293B);
    margin-bottom: 20px;
    text-align: center;
}

.comparison-table {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    border: 1px solid var(--border-light, #E2E8F0);
}

.compare-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 10px 20px;
    border-bottom: 1px solid #F1F5F9;
    font-size: 0.88rem;
    transition: background 0.2s;
}

.compare-row:last-child { border-bottom: none; }
.compare-row:hover { background: #F8FAFC; }

.compare-row.header-row {
    background: #F8FAFC;
    border-bottom: 2px solid var(--border-light, #E2E8F0);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.c-feat { color: var(--text-dark, #1E293B); font-weight: 600; }
.c-free { color: #94A3B8; text-align: center; }
.c-prem { color: var(--logo-red, #E11D2D); text-align: center; font-weight: 700; }

.header-row .c-feat,
.header-row .c-free,
.header-row .c-prem { color: #64748B; }

.icon-check { font-size: 1.1rem; color: var(--logo-red, #E11D2D); }
.icon-cross { font-size: 0.9rem; opacity: 0.3; color: #94A3B8; }


/* =============================================
   RESULT PAGES (SUCCESS / CANCEL)
   ============================================= */

.result-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(160deg, #F8FAFC 0%, #EEF2FF 100%);
}

.result-card {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 48px 40px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    animation: fadeUp 0.5s ease-out;
    border: 1px solid rgba(0,0,0,0.04);
}

/* Animated checkmark */
.success-checkmark {
    margin: 0 auto 28px;
    width: 80px;
    height: 80px;
}

.checkmark-svg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #059669;
    stroke-miterlimit: 10;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke: #059669;
    fill: none;
    animation: checkStroke 0.6s cubic-bezier(0.65,0,0.45,1) forwards;
}

.checkmark-check {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: checkStroke 0.3s cubic-bezier(0.65,0,0.45,1) 0.5s forwards;
}

@keyframes checkStroke {
    100% { stroke-dashoffset: 0; }
}

/* Cancel icon */
.result-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    background: #ECFDF5;
    color: #059669;
}

.result-icon.cancel {
    background: #FEF2F2;
    color: #EF4444;
}

.result-card h1 {
    font-family: 'Manrope', 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark, #1E293B);
    margin-bottom: 10px;
}

.result-card p {
    font-size: 14px;
    color: #64748B;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Recap features */
.success-recap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
    padding: 16px 20px;
    background: #F0FDF4;
    border-radius: 12px;
    border: 1px solid #BBF7D0;
}

.recap-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #166534;
}

.recap-item svg {
    flex-shrink: 0;
    color: #059669;
}

.success-email-note {
    font-size: 0.78rem !important;
    color: #94A3B8 !important;
    margin-bottom: 0 !important;
    margin-top: 16px;
}

.result-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-primary-result {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: var(--text-dark, #1E293B);
    color: white;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(30, 41, 59, 0.25);
}

.btn-primary-result:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(30, 41, 59, 0.35);
    color: white;
}

.btn-secondary-result {
    padding: 12px 24px;
    background: #F1F5F9;
    color: #475569;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-secondary-result:hover {
    background: #E2E8F0;
    color: var(--text-dark, #1E293B);
}


/* --- ANIMATIONS --- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger les feature-nodes */
.feature-node.reveal:nth-child(1) { transition-delay: 0.05s; }
.feature-node.reveal:nth-child(2) { transition-delay: 0.12s; }
.feature-node.reveal:nth-child(3) { transition-delay: 0.19s; }
.feature-node.reveal:nth-child(4) { transition-delay: 0.26s; }
.feature-node.reveal:nth-child(5) { transition-delay: 0.33s; }


/* Bloc anonyme (non connecté) */
.premium-auth-block {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 4px;
}

.premium-auth-block .btn-sleek {
    text-align: center;
    justify-content: center;
}

.premium-auth-block .auth-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #94A3B8;
    margin: 0;
    font-weight: 500;
}

.premium-auth-block .secure-note {
    color: #64748B;
}

/* --- RESPONSIVE --- */
@media (max-width: 850px) {
    .premium-hero-band { padding: 90px 0 50px; }
    .editorial-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-top: 10px;
    }
    .offer-statement {
        position: relative;
        top: 0;
    }
    .btn-sleek { max-width: 100%; }
    .comparison-section { padding: 30px 0 40px; }
}

@media (max-width: 500px) {
    .premium-hero-band { padding: 80px 0 40px; }
    .editorial-wrapper { padding-top: 5px; padding-bottom: 10px; }
    .offer-statement h1 { font-size: 1.6rem; }
    .price-inline .amount { font-size: 2.2rem; }
    .feature-node { margin-bottom: 24px; }
    .feature-node h3 { font-size: 0.92rem; }
    .feature-node p { font-size: 0.82rem; }
    .compare-row { font-size: 0.82rem; padding: 8px 14px; }
    .compare-row.header-row { font-size: 0.68rem; }
    .features-flow { padding-left: 18px; }
    .feature-node::before { left: -22px; }
    .result-card { padding: 36px 24px; margin: 0 16px; }
    .comparison-section { padding: 24px 0 32px; }
    .comparison-section h2 { font-size: 1.1rem; margin-bottom: 14px; }
}
