@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --pure-black: #000000;
    --soft-black: #050505;
    --card-black: #0a0a0a;
    --accent-blue: #3b82f6;
}

.bg-card-black { background-color: var(--card-black); }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--pure-black);
    color: #ffffff;
    scroll-behavior: smooth;
    position: relative;
    isolation: isolate;
}

/* Évite bandes / « trous » sur le texte (iframe + GPU / background-clip). */
.gradient-text {
    display: inline;
    font-style: italic;
    color: #94a3b8;
    background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .gradient-text {
        color: transparent;
    }
}

.hero-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 100vw;
    height: 600px;
    background: radial-gradient(circle at 50% 30%, rgba(59, 130, 246, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

/* Au-dessus du glow (z-index 0) — ne pas toucher au `position: sticky` de la nav. */
body > header,
body > footer {
    position: relative;
    z-index: 1;
}

.glass-nav {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: visible;
}

.btn-primary {
    background: #ffffff;
    color: #000000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.explorer-tab {
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.explorer-tab.active {
    color: white;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Conteneur aperçu : sans fond ni cadre, image centrée */
.preview-frame {
    position: relative;
    overflow: visible;
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    justify-content: center;
    width: 100%;
}

.preview-frame #preview-img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: min(1040px, 96svh);
    object-fit: contain;
    object-position: center;
    margin-left: auto;
    margin-right: auto;
    transition: opacity 1.5s cubic-bezier(0.33, 0, 0.2, 1);
}

/* Dernière capture « rapport » (Mon analyse) : plus compacte */
.preview-frame #preview-img.preview-img-slim {
    max-height: min(640px, 72svh) !important;
    max-width: min(880px, 88vw) !important;
}

.preview-frame #preview-img.preview-img-clickable {
    cursor: zoom-in;
}

/* Lightbox : taille intrinsèque du fichier (écrase le preflight img max-width:100%) */
#preview-lightbox-scroll img#preview-lightbox-img {
    max-width: none;
    width: auto;
    height: auto;
}

/* Flèches carrousel : visibles au survol de la photo (souris) ; toujours visibles au toucher */
@media (hover: hover) and (pointer: fine) {
    .preview-frame #preview-carousel-controls button {
        opacity: 0;
        transition: opacity 0.22s ease;
    }

    .preview-frame:hover #preview-carousel-controls button {
        opacity: 1;
    }
}

.step-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-8px);
    background: rgba(59, 130, 246, 0.03);
}

.step-image-wrapper {
    height: 160px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.step-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    transition: opacity 0.4s ease;
}

.step-card:hover .step-image-wrapper img {
    opacity: 0.7;
}

.step-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, var(--pure-black), transparent);
}

/* Pricing v2 — aligné paywall mobile (noir & or) */
.paychek-pricing-v2 {
    max-width: 28rem;
}

.paychek-plan-card {
    position: relative;
    display: block;
    width: 100%;
    text-align: left;
    cursor: pointer;
    border-radius: 12px;
    border: 2px solid #262626;
    background: #0B0C10;
    padding: 12px;
    margin-bottom: 10px;
    transition: border-color 0.28s ease, box-shadow 0.28s ease, transform 0.28s ease;
}

.paychek-plan-card:hover {
    border-color: #404040;
}

.paychek-plan-card.paychek-plan-selected {
    border-color: rgba(245, 158, 11, 0.85);
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.05);
    transform: scale(1.02);
}

.paychek-plan-badge {
    position: absolute;
    top: -10px;
    right: 12px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #000;
    background: linear-gradient(135deg, #FFE0B2 0%, #D4A359 50%, #B38038 100%);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.paychek-plan-badge.is-muted {
    color: #fff;
    background: #262626;
    box-shadow: none;
}

.paychek-plan-badge.is-hidden {
    display: none;
}

.paychek-plan-inner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.paychek-plan-radio {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    border-radius: 50%;
    border: 2px solid #525252;
    position: relative;
}

.paychek-plan-selected .paychek-plan-radio {
    border-color: #F59E0B;
}

.paychek-plan-selected .paychek-plan-radio::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #F59E0B;
}

.paychek-plan-body {
    flex: 1;
    min-width: 0;
}

.paychek-plan-title {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.paychek-plan-saving {
    margin-top: 2px;
    font-size: 10px;
    font-weight: 500;
    color: #A3A3A3;
    line-height: 1.35;
}

.paychek-plan-selected .paychek-plan-saving {
    color: #FBBF24;
    font-weight: 700;
}

.paychek-plan-price-col {
    flex-shrink: 0;
    text-align: right;
}

.paychek-plan-total {
    font-size: 14px;
    font-weight: 900;
    color: #E5E5E5;
    line-height: 1.2;
}

.paychek-plan-selected .paychek-plan-total {
    color: #fff;
}

.paychek-plan-period {
    margin-top: 2px;
    font-size: 9px;
    font-weight: 500;
    color: #737373;
}

.paychek-compare-table {
    margin-top: 20px;
    border-radius: 16px;
    border: 1px solid rgba(38, 38, 38, 0.85);
    background: #000;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(217, 119, 6, 0.12);
}

.paychek-compare-headers,
.paychek-compare-row,
.paychek-compare-foot {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.paychek-compare-headers > div,
.paychek-compare-row > div,
.paychek-compare-foot > div {
    padding: 14px 10px;
}

.paychek-compare-headers > div:first-child {
    background: rgba(10, 10, 10, 0.55);
}

.paychek-compare-headers > div:last-child {
    background: linear-gradient(180deg, rgba(69, 26, 3, 0.35) 0%, transparent 100%);
    border-left: 1px solid rgba(217, 119, 6, 0.25);
    position: relative;
}

.paychek-compare-pro-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    background: #F59E0B;
    color: #000;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.paychek-compare-cap {
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #737373;
}

.paychek-compare-cap.pro {
    color: #FBBF24;
}

.paychek-compare-plan-name {
    margin-top: 2px;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
}

.paychek-compare-lite-free {
    margin-top: 6px;
    font-size: 20px;
    font-weight: 900;
    color: #fff;
}

.paychek-compare-row {
    border-top: 1px solid rgba(38, 38, 38, 0.45);
}

.paychek-compare-row > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 2px;
    min-height: 52px;
}

.paychek-compare-row > div:first-child {
    background: rgba(10, 10, 10, 0.12);
}

.paychek-compare-row > div:last-child {
    background: rgba(245, 158, 11, 0.04);
    border-left: 1px solid rgba(217, 119, 6, 0.22);
}

.paychek-compare-row-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #737373;
}

.paychek-compare-row > div:last-child .paychek-compare-row-label {
    color: #F59E0B;
}

.paychek-compare-row-value {
    font-size: 11px;
    font-weight: 500;
    color: #D4D4D4;
    line-height: 1.2;
}

.paychek-compare-row > div:last-child .paychek-compare-row-value {
    font-weight: 700;
    color: #FCD34D;
}

.paychek-compare-row-value.is-absent {
    font-size: 13px;
    color: #525252;
}

.paychek-compare-foot {
    border-top: 1px solid rgba(38, 38, 38, 0.6);
}

.paychek-compare-foot > div {
    padding: 10px;
}

.paychek-compare-lite-btn {
    display: block;
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #262626;
    background: #0A0A0A;
    color: #737373;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
}

.paychek-pricing-main-cta {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: 16px;
    border: none;
    background: linear-gradient(135deg, #FFE0B2 0%, #D4A359 50%, #B38038 100%);
    color: #000;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.paychek-pricing-main-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(245, 158, 11, 0.18);
}

.paychek-compare-pro-btn {
    display: block;
    width: 100%;
    padding: 10px 6px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #FFE0B2 0%, #D4A359 50%, #B38038 100%);
    color: #000;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

/* FAQ Styles */
.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

.faq-trigger {
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    cursor: pointer;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    padding: 0 2rem;
    color: #94a3b8;
    text-align: left;
}

.faq-item.active .faq-content {
    max-height: 2000px;
    padding-bottom: 1.5rem;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: #3b82f6;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.flag-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Menu langue : même design partout ; ouverture au tap sur mobile */
.paychek-lang-picker-wrap {
    position: relative;
    z-index: 70;
    flex-shrink: 0;
}

.paychek-lang-picker-wrap.is-open .paychek-lang-menu-panel {
    visibility: visible;
    opacity: 1;
}

/* Barre d’onglets : scroll horizontal sans barre visible + glisser à la souris */
.preview-tabs-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    cursor: grab;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.preview-tabs-scroll::-webkit-scrollbar {
    display: none;
}

.preview-tabs-scroll.is-grabbing {
    cursor: grabbing;
    scroll-behavior: auto;
    user-select: none;
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.btn-trial {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: #FBBF24;
    transition: all 0.3s ease;
}

.btn-trial:hover {
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.45);
    color: #ffffff;
    transform: scale(1.02);
}

.btn-trial .paychek-trial-icon {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

footer a {
    transition: color 0.2s ease;
}

footer a:hover {
    color: #ffffff;
}

/* Iframe Flutter : hauteur = contenu, scroll géré par la page parente. */
html.paychek-in-app-shell,
html.paychek-in-app-shell body {
    overflow-x: hidden !important;
    overflow-y: visible !important;
    height: auto !important;
    min-height: 100%;
    overscroll-behavior: none;
}

/* Iframe + Flutter : le blur de la nav peut corrompre les calques du texte en dessous. */
body.paychek-in-app-shell .glass-nav {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(0, 0, 0, 0.92);
}

.paychek-hero-title {
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

.paychek-hero-tagline {
    text-wrap: balance;
}

/* Badges Store : même emprise visuelle, pas de fond / cadre ajouté par le site. */
.paychek-store-badge-slot {
    box-sizing: border-box;
    background: transparent;
    border: none;
    box-shadow: none;
    height: 76px;
    width: 248px;
    padding: 0 6px;
    -webkit-tap-highlight-color: transparent;
    overflow: visible;
}

.paychek-store-badge-slot img {
    display: block;
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
}

@media (min-width: 640px) {
    .paychek-store-badge-slot {
        height: 88px;
        width: 288px;
    }
}

@media (min-width: 1024px) {
    .paychek-store-badge-slot {
        height: 96px;
        width: 312px;
    }
}

/* Badge App Store : logo + texte en blanc sur fond noir (fichier souvent sombre). */
.paychek-store-badge-appstore img {
    filter: brightness(0) invert(1);
}

.paychek-store-badge-appstore:hover img {
    filter: brightness(0) invert(1) brightness(1.12);
}

/* Google Play : agrandissement dans le cadre (1.56 × 1.07). */
.paychek-store-badge-google img {
    transform: scale(1.6692);
    transform-origin: center center;
}

/* Overlay auth : la landing reste visible, pas d’écran noir plein page. */
.paychek-auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.paychek-auth-overlay.is-open {
    display: flex;
}

.paychek-auth-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.paychek-auth-overlay-frame {
    position: relative;
    z-index: 1;
    border: none;
    width: 100%;
    max-width: 480px;
    height: min(92vh, 760px);
    background: transparent;
    color-scheme: dark;
}

body.paychek-auth-overlay-open {
    overflow: hidden;
}
