/* ==========================================================================
   Mon Examen Civique — Premium (refonte v2)
   Portage à l'identique de la structure/contenu de premium_pricing.css
   (bandeau sombre + offre à gauche / fonctionnalités à droite, tableau de
   comparaison, pages de résultat succès/annulation), habillé avec les
   tokens de la refonte v2 (palette République, Spectral/Public Sans) au
   lieu de la police Manrope et du bleu cyan de l'ancien design.
   Dépend de tokens.css (chrome de page, --v2-*) et home-v2.css (.v2-btn).
   ========================================================================== */

.ppv2-page {
    background: var(--v2-cream);
    color: var(--v2-ink);
}

/* --- Bandeau sombre (offre) ---------------------------------------------- */

.ppv2-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(2.5rem, 6vw, 4.5rem) 0 3rem;
    background: linear-gradient(160deg, var(--v2-blue-deep) 0%, var(--v2-blue-dark) 100%);
    color: #fff;
}

.ppv2-glow-1,
.ppv2-glow-2 {
    position: absolute;
    width: 55vw;
    height: 55vw;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.ppv2-glow-1 { top: -12%; left: -10%; background: radial-gradient(circle, rgba(var(--v2-red-rgb), 0.16) 0%, transparent 60%); }
.ppv2-glow-2 { bottom: -28%; right: -14%; background: radial-gradient(circle, rgba(var(--v2-red-rgb), 0.10) 0%, transparent 60%); }

.ppv2-back {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.65);
    font-size: var(--v2-text-sm);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--v2-duration-base) var(--v2-ease-out);
}

.ppv2-back:hover { color: #fff; }

/* Fond du bandeau très sombre (--v2-blue-deep/--v2-blue-dark) : une ombre à base
   de --v2-ink (plus claire que ce fond) éclaircirait au lieu d'enfoncer. Noir pur,
   plus opaque que le token clair habituel, pour rester visible sur cette surface. */
.ppv2-back:active {
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
}

.ppv2-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 3.75rem);
    align-items: start;
}

/* --- Colonne offre --------------------------------------------------- */

.ppv2-offer { position: sticky; top: 6.5rem; }

.ppv2-eyebrow {
    display: inline-block;
    margin-bottom: 1.125rem;
    padding: 0.3125rem 0.875rem;
    border: 1px solid rgba(var(--v2-red-rgb), 0.4);
    border-radius: var(--v2-radius-pill);
    color: #FCA5A5;
    font-size: var(--v2-text-xs);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ppv2-offer h1 {
    margin-bottom: 0.875rem;
    color: #fff;
    font-family: var(--v2-font-title);
    font-size: clamp(1.7rem, 3.4vw, 2.25rem);
    line-height: 1.2;
}

.ppv2-offer > p {
    margin-bottom: 1.75rem;
    color: rgba(255, 255, 255, 0.65);
    font-size: var(--v2-text-base);
    line-height: 1.55;
}

.ppv2-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.ppv2-price__amount { color: #fff; font-family: var(--v2-font-title); font-size: 2.5rem; font-weight: 700; line-height: 1; }
.ppv2-price__currency { color: #FCA5A5; font-size: var(--v2-text-lg); font-weight: 700; }
.ppv2-price__duration { color: rgba(255, 255, 255, 0.55); font-size: var(--v2-text-base); }

.ppv2-price-note {
    display: block;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.45);
    font-size: var(--v2-text-xs);
}

.ppv2-offer form { margin-bottom: 0.875rem; }

.ppv2-cta {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    max-width: 300px;
    min-height: var(--v2-tap);
    padding: 1rem 1.5rem;
    border: none;
    border-radius: var(--v2-radius-sm);
    background: var(--v2-red);
    box-shadow: 0 0 24px rgba(var(--v2-red-rgb), 0.35);
    color: #fff;
    font: inherit;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--v2-duration-base) var(--v2-ease-out), color var(--v2-duration-base) var(--v2-ease-out), transform var(--v2-duration-base) var(--v2-ease-out), box-shadow var(--v2-duration-base) var(--v2-ease-out);
}

.ppv2-cta:hover {
    background: #fff;
    color: var(--v2-blue-deep);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.ppv2-cta:active {
    transform: translateY(0);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.18), inset 0 1px 3px rgba(23, 33, 43, 0.16);
}

.ppv2-secure {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--v2-text-xs);
    font-weight: 600;
}

.ppv2-auth {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.ppv2-auth .ppv2-cta { justify-content: center; text-align: center; }

.ppv2-auth-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--v2-text-xs);
}

/* --- Colonne fonctionnalités ------------------------------------------ */

.ppv2-features {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    padding-inline-start: 1.5rem;
    border-inline-start: 1px solid rgba(255, 255, 255, 0.1);
}

.ppv2-feature { position: relative; }

.ppv2-feature::before {
    content: '';
    position: absolute;
    inset-inline-start: -1.75rem;
    top: 0.375rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--v2-red);
    box-shadow: 0 0 10px rgba(var(--v2-red-rgb), 0.55);
}

.ppv2-feature--free::before { background: rgba(255, 255, 255, 0.35); box-shadow: none; }

.ppv2-feature h3 { margin-bottom: 0.25rem; color: #fff; font-size: var(--v2-text-base); font-weight: 700; }
.ppv2-feature p { color: rgba(255, 255, 255, 0.6); font-size: var(--v2-text-sm); line-height: 1.55; }

/* --- Tableau comparatif (fond clair) ----------------------------------- */

.ppv2-compare {
    padding: clamp(2rem, 5vw, 3rem) 0;
}

.ppv2-compare h2 {
    margin-bottom: 1.25rem;
    font-family: var(--v2-font-title);
    font-size: var(--v2-text-xl);
    text-align: center;
}

.ppv2-table {
    max-width: 38rem;
    margin-inline: auto;
    overflow: hidden;
    background: var(--v2-white);
    border: 1px solid var(--v2-border);
    border-radius: var(--v2-radius);
    box-shadow: var(--v2-shadow);
}

.ppv2-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 0.625rem 1.25rem;
    border-bottom: 1px solid var(--v2-border);
    font-size: var(--v2-text-sm);
}

.ppv2-row:last-child { border-bottom: none; }

.ppv2-row--head {
    background: var(--v2-sand);
    font-size: var(--v2-text-xs);
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--v2-ink-3);
}

.ppv2-col-feat { font-weight: 600; }
.ppv2-col-free { text-align: center; color: var(--v2-ink-3); }
.ppv2-col-prem { text-align: center; font-weight: 700; color: var(--v2-red); }
.ppv2-row--head .ppv2-col-feat,
.ppv2-row--head .ppv2-col-free,
.ppv2-row--head .ppv2-col-prem { color: var(--v2-ink-3); }

.ppv2-cross { opacity: 0.35; }

/* --- Pages de résultat (succès / annulation) --------------------------- */

.ppv2-result-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 75vh;
    padding: clamp(2rem, 6vw, 3rem) var(--v2-pad-x);
    background: linear-gradient(160deg, var(--v2-cream) 0%, var(--v2-blue-tint) 100%);
}

.ppv2-result-card {
    max-width: 30rem;
    padding: clamp(2rem, 6vw, 3rem) clamp(1.5rem, 5vw, 2.5rem);
    background: var(--v2-white);
    border: 1px solid var(--v2-border);
    border-radius: var(--v2-radius-lg);
    box-shadow: var(--v2-shadow-lift);
    text-align: center;
}

.ppv2-checkmark { width: 5rem; height: 5rem; margin: 0 auto 1.75rem; }

.ppv2-checkmark svg { width: 100%; height: 100%; stroke: var(--v2-success); stroke-width: 2; stroke-miterlimit: 10; }

.ppv2-checkmark circle { stroke-dasharray: 166; stroke-dashoffset: 166; fill: none; animation: ppv2-stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards; }
.ppv2-checkmark path { stroke-dasharray: 48; stroke-dashoffset: 48; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; animation: ppv2-stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.5s forwards; }

@keyframes ppv2-stroke { to { stroke-dashoffset: 0; } }

.ppv2-result-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: var(--v2-red-tint);
    color: var(--v2-red);
}

.ppv2-result-card h1 {
    margin-bottom: 0.625rem;
    font-family: var(--v2-font-title);
    font-size: var(--v2-text-xl);
}

.ppv2-result-card > p { margin-bottom: 1.5rem; color: var(--v2-ink-2); font-size: var(--v2-text-sm); line-height: 1.6; }

.ppv2-recap {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-bottom: 1.75rem;
    padding: 1rem 1.25rem;
    background: var(--v2-success-tint);
    border: 1px solid rgba(31, 122, 77, 0.25);
    border-radius: var(--v2-radius-sm);
}

.ppv2-recap-item { display: flex; align-items: center; gap: 0.625rem; color: var(--v2-success); font-size: var(--v2-text-sm); font-weight: 600; }
.ppv2-recap-item svg { flex-shrink: 0; }

.ppv2-result-actions { display: flex; flex-direction: column; gap: 0.75rem; }

.ppv2-email-note { margin-top: 1rem; margin-bottom: 0 !important; color: var(--v2-ink-3); font-size: var(--v2-text-xs) !important; }

/* --- Responsive ---------------------------------------------------------- */

@media (max-width: 860px) {
    .ppv2-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .ppv2-offer { position: relative; top: 0; }
    .ppv2-cta { max-width: 100%; }
}

@media (max-width: 520px) {
    .ppv2-offer h1 { font-size: 1.55rem; }
    .ppv2-price__amount { font-size: 2.1rem; }
    .ppv2-row { font-size: var(--v2-text-xs); padding: 0.5rem 0.875rem; }
    .ppv2-features { padding-inline-start: 1.125rem; }
    .ppv2-feature::before { inset-inline-start: -1.375rem; }
    .ppv2-result-card { padding: 2rem 1.25rem; }
}
