/* ============================================================
   KromBall — Pages publiques (landing, login, signup)
   Surcharge style.css pour les pages hors application
   ============================================================ */

/* Le body app a overflow:hidden hérité de style.css.
   Sur les pages publiques on veut un vrai scroll vertical : il faut
   aussi libérer le <html>, donc :has() ou ajout direct via JS.    */
html:has(body.public-body),
html.public-html {
    overflow: auto !important;
    overflow-x: hidden !important;
    height: auto !important;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}
.public-body {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    user-select: text;
    background:
        radial-gradient(circle at 10% 0%, rgba(106, 166, 255, 0.10) 0%, transparent 40%),
        radial-gradient(circle at 90% 100%, rgba(139, 107, 242, 0.08) 0%, transparent 45%),
        linear-gradient(180deg, #0c1424 0%, #050a14 100%);
    background-attachment: fixed;
    height: auto !important;
    min-height: 100vh;
    touch-action: auto !important;
}
[data-theme="light"] .public-body {
    background:
        radial-gradient(circle at 10% 0%, rgba(37, 99, 235, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 90% 100%, rgba(124, 58, 237, 0.05) 0%, transparent 45%),
        linear-gradient(180deg, #f4f7fc 0%, #eaf0f8 100%);
}

/* ============================================================
   NAVBAR PUBLIQUE
   ============================================================ */
.public-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 36px;
    background: rgba(12, 20, 36, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-soft);
    position: sticky;
    top: 0;
    z-index: 50;
}
[data-theme="light"] .public-nav {
    background: rgba(255, 255, 255, 0.85);
    border-bottom-color: var(--border);
}
.public-nav.minimal { padding: 16px 28px; }

.public-brand {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none;
    color: var(--text);
}
.public-brand .brand-mark {
    width: 38px; height: 38px;
    border-radius: 10px;
}
.public-brand .brand-mark .brand-k { font-size: 19px; }
.public-brand .brand-name {
    display: flex;
    align-items: baseline;
    gap: 4px;
}
.public-brand .brand-name .brand-line1 {
    font-size: 14px; font-weight: 800;
    color: var(--text);
    letter-spacing: 1.4px;
}
.public-brand .brand-name .brand-line2 {
    font-size: 14px; font-weight: 700;
    color: var(--text-dim);
    letter-spacing: 1.4px;
}

.public-nav-links {
    display: flex; gap: 30px;
}
.public-nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 13px; font-weight: 600;
    letter-spacing: 0.3px;
    transition: color 0.15s;
}
.public-nav-links a:hover { color: var(--text); }

.public-nav-cta {
    display: flex; align-items: center; gap: 12px;
}
.public-nav-cta .ghost-btn,
.public-nav-cta .primary-btn {
    text-decoration: none;
    height: 38px;
    display: inline-flex; align-items: center;
    padding: 0 18px;
    font-size: 13px;
}

/* ============================================================
   MAIN PUBLIC
   ============================================================ */
.public-main {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 36px;
}

/* HERO ====================================================== */
.hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    padding: 80px 0 100px;
    min-height: calc(100vh - 80px);
}
.hero-eyebrow { margin-bottom: 22px; }
.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(240, 165, 42, 0.12);
    border: 1px solid rgba(240, 165, 42, 0.4);
    color: var(--orange);
    border-radius: 100px;
    font-size: 11px; font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.hero-title {
    font-size: 64px;
    font-weight: 900;
    line-height: 1.05;
    color: var(--text);
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}
.hero-highlight {
    background: linear-gradient(135deg, var(--green), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-sub {
    font-size: 18px;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 36px;
    max-width: 520px;
}
.hero-cta {
    display: flex; gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}
.hero-cta-primary {
    display: inline-flex; align-items: center; gap: 10px;
    height: 56px; padding: 0 28px;
    background: linear-gradient(135deg, var(--green), var(--green-d));
    color: white;
    border-radius: 12px;
    font-size: 15px; font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(47, 212, 122, 0.30);
    transition: transform 0.1s, box-shadow 0.15s;
}
.hero-cta-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(47, 212, 122, 0.4); }
.hero-cta-primary svg { width: 18px; height: 18px; }
.hero-cta-secondary {
    display: inline-flex; align-items: center;
    height: 56px; padding: 0 28px;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 12px;
    font-size: 15px; font-weight: 700;
    text-decoration: none;
    transition: background 0.15s;
}
.hero-cta-secondary:hover { background: var(--bg-3); }

.hero-trust {
    display: flex; gap: 24px;
    flex-wrap: wrap;
}
.trust-item {
    font-size: 12px; color: var(--text-dim);
    font-weight: 600;
}

.hero-visual {
    position: relative;
}
.hero-mockup {
    background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    transform: perspective(1500px) rotateY(-7deg) rotateX(2deg);
}
[data-theme="light"] .hero-mockup {
    box-shadow: 0 30px 80px rgba(15, 25, 50, 0.18);
    background: var(--bg-1);
}
.hero-mockup-bar {
    display: flex; gap: 6px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-soft);
    background: var(--bg-2);
}
.hero-mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.hero-mockup-dot.red    { background: #f25445; }
.hero-mockup-dot.orange { background: #f0a52a; }
.hero-mockup-dot.green  { background: #2fd47a; }
.hero-mockup-content {
    display: flex; flex-direction: column;
    gap: 6px; padding: 20px;
}
.hmp-row {
    display: grid;
    grid-template-columns: 28px 1fr 50px 60px 30px;
    gap: 14px;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-soft);
    border-radius: 10px;
}
.hmp-row.alert {
    border-color: rgba(242, 84, 69, 0.4);
    box-shadow: 0 0 0 1px rgba(242, 84, 69, 0.3), 0 0 20px rgba(242, 84, 69, 0.15);
}
.hmp-num {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--violet), var(--violet-d));
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 11px;
}
.hmp-name { font-size: 13px; font-weight: 700; color: var(--text); text-transform: uppercase; }
.hmp-pos {
    font-size: 9px; font-weight: 800;
    padding: 3px 7px;
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    color: var(--text-dim);
    text-transform: uppercase;
    text-align: center;
}
.hmp-pct { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.hmp-pct.green { color: var(--green); }
.hmp-pct.red   { color: var(--red); }
.hmp-arrow {
    width: 28px; height: 24px;
    border-radius: 5px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
}
.hmp-arrow.up    { background: rgba(47, 212, 122, 0.18); color: var(--green); }
.hmp-arrow.down  { background: rgba(242, 84, 69, 0.18); color: var(--red); }

.hero-tag-floating {
    position: absolute;
    background: var(--bg-1);
    border: 1px solid var(--border);
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 12px; font-weight: 600;
    color: var(--text);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    display: flex; align-items: center; gap: 8px;
    animation: float 4s ease-in-out infinite;
}
.tag-1 { top: 10%;  left: -40px; animation-delay: 0s; }
.tag-2 { bottom: 18%; right: -50px; animation-delay: 1.5s; }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}
.tag-icon { font-size: 14px; }

/* STATS BAND ================================================ */
.stats-band {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 0 0 100px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(106, 166, 255, 0.07), rgba(139, 107, 242, 0.04));
    border: 1px solid var(--border-soft);
    border-radius: 16px;
}
.stat-pill {
    text-align: center;
}
.sp-num {
    font-size: 32px; font-weight: 900;
    background: linear-gradient(135deg, var(--green), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}
.sp-lbl {
    font-size: 11px; font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
}

/* SECTION HEADERS =========================================== */
.section-eyebrow {
    text-align: center;
    font-size: 11px; font-weight: 800;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 14px;
}
.section-title {
    text-align: center;
    font-size: 40px;
    font-weight: 900;
    color: var(--text);
    line-height: 1.15;
    letter-spacing: -0.8px;
    margin-bottom: 14px;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}
.section-sub {
    text-align: center;
    font-size: 16px;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

/* FEATURES ================================================== */
.features { padding: 60px 0 100px; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.feature-card {
    padding: 28px 24px;
    background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(106, 166, 255, 0.3);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}
.feature-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-icon.green  { background: rgba(47, 212, 122, 0.12); color: var(--green); }
.feature-icon.orange { background: rgba(240, 165, 42, 0.12); color: var(--orange); }
.feature-icon.red    { background: rgba(242, 84, 69, 0.12); color: var(--red); }
.feature-icon.accent { background: rgba(106, 166, 255, 0.12); color: var(--accent); }
.feature-icon.violet { background: rgba(139, 107, 242, 0.12); color: var(--violet); }
.feature-card h3 {
    font-size: 16px; font-weight: 800;
    color: var(--text);
    margin-bottom: 10px;
}
.feature-card p {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.6;
}

/* HOW IT WORKS ============================================== */
.how { padding: 60px 0 100px; }
.how-steps {
    display: flex;
    align-items: center; justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.how-step {
    flex: 1;
    min-width: 240px;
    max-width: 320px;
    padding: 30px;
    background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    text-align: center;
}
.how-num {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green), var(--accent));
    color: white;
    font-size: 22px; font-weight: 900;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
}
.how-step h3 {
    font-size: 18px; font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
}
.how-step p { font-size: 13px; color: var(--text-dim); line-height: 1.6; }
.how-arrow {
    font-size: 28px;
    color: var(--text-mute);
    font-weight: 700;
}

/* TESTIMONIAL =============================================== */
.testimonial {
    padding: 80px 0;
    margin: 60px 0;
    background:
        radial-gradient(ellipse at center, rgba(106, 166, 255, 0.08) 0%, transparent 70%);
    text-align: center;
}
.testimonial-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 30px;
}
.testimonial-quote {
    font-family: 'Inter', serif;
    font-size: 90px;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    height: 60px;
    opacity: 0.4;
}
.testimonial-text {
    font-size: 24px;
    line-height: 1.5;
    color: var(--text);
    font-weight: 500;
    margin-bottom: 30px;
    font-style: italic;
}
.testimonial-author {
    display: flex; align-items: center; gap: 14px;
    justify-content: center;
}
.ta-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--violet), var(--violet-d));
    color: white;
    font-weight: 800; font-size: 16px;
    display: flex; align-items: center; justify-content: center;
}
.ta-name { font-weight: 800; color: var(--text); font-size: 14px; }
.ta-role { font-size: 12px; color: var(--text-dim); margin-top: 2px; }

/* PRICING =================================================== */
.pricing-section { padding: 80px 0 100px; }
.pricing-public {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 30px;
}
.ppub-tier {
    padding: 32px 28px;
    background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
}
.ppub-tier.highlight {
    border-color: rgba(139, 107, 242, 0.5);
    background: linear-gradient(180deg, rgba(139, 107, 242, 0.10), var(--bg-1));
    transform: scale(1.04);
    box-shadow: 0 20px 50px rgba(139, 107, 242, 0.22);
}
.ppub-badge {
    position: absolute;
    top: -12px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--violet), var(--violet-d));
    color: white;
    font-size: 10px; font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 5px 12px;
    border-radius: 8px;
}
.ppub-name {
    font-size: 14px; font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    margin-bottom: 12px;
}
.ppub-price {
    margin-bottom: 6px;
}
.ppub-price span {
    font-size: 38px; font-weight: 900;
    color: var(--text);
    line-height: 1;
}
.ppub-price small {
    font-size: 13px; color: var(--text-dim);
    font-weight: 600;
    margin-left: 6px;
}
.ppub-tagline {
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 22px;
    font-style: italic;
}
.ppub-features {
    list-style: none;
    margin: 0 0 26px;
    padding: 0;
    flex: 1;
    display: flex; flex-direction: column;
    gap: 10px;
}
.ppub-features li {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.5;
}
.ppub-cta {
    display: block;
    text-align: center;
    height: 46px; line-height: 46px;
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 13px; font-weight: 700;
    transition: background 0.15s, border-color 0.15s;
}
.ppub-cta:hover { background: var(--bg-3); border-color: var(--accent); }
.ppub-cta.primary {
    background: linear-gradient(135deg, var(--violet), var(--violet-d));
    border-color: var(--violet-d);
    color: white;
}
.ppub-cta.primary:hover { filter: brightness(1.1); }

.pricing-affiliation {
    display: flex; align-items: center; gap: 18px;
    padding: 22px 28px;
    background: linear-gradient(135deg, rgba(47, 212, 122, 0.08), rgba(47, 212, 122, 0.02));
    border: 1px solid rgba(47, 212, 122, 0.3);
    border-radius: 12px;
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
}
.affil-icon {
    font-size: 32px;
    flex-shrink: 0;
}

/* FAQ ======================================================= */
.faq-section {
    padding: 80px 0;
    max-width: 760px;
    margin: 0 auto;
}
.faq-list {
    display: flex; flex-direction: column;
    gap: 12px;
}
.faq-item {
    background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    overflow: hidden;
}
.faq-item summary {
    padding: 22px 26px;
    font-size: 15px; font-weight: 700;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 60px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 26px; top: 50%;
    transform: translateY(-50%);
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--bg-3);
    color: var(--accent);
    font-size: 18px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.2s;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
    padding: 0 26px 22px;
    margin: 0;
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.7;
}

/* FINAL CTA ================================================= */
.final-cta { padding: 80px 0 120px; }
.final-cta-card {
    text-align: center;
    padding: 70px 40px;
    background: linear-gradient(135deg, rgba(47, 212, 122, 0.10), rgba(106, 166, 255, 0.06));
    border: 1px solid rgba(47, 212, 122, 0.3);
    border-radius: 20px;
}
.final-cta-card h2 {
    font-size: 36px; font-weight: 900;
    color: var(--text);
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}
.final-cta-card p {
    font-size: 16px;
    color: var(--text-dim);
    margin-bottom: 30px;
}
.final-cta-buttons {
    display: flex; gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.final-cta-buttons .ghost-btn {
    text-decoration: none;
    height: 56px;
    display: inline-flex; align-items: center;
    padding: 0 28px;
    font-size: 15px;
}

/* FOOTER ==================================================== */
.public-footer {
    border-top: 1px solid var(--border-soft);
    padding: 60px 0 30px;
    margin-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-soft);
}
.footer-brand p {
    margin-top: 16px;
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.6;
}
.footer-col h4 {
    font-size: 13px; font-weight: 800;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}
.footer-col a {
    display: block;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 13px;
    padding: 6px 0;
    transition: color 0.15s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 24px;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--text-mute);
    font-size: 12px;
}
.footer-legal-pills {
    display: flex; gap: 12px;
    flex-wrap: wrap;
}
.footer-legal-pills span {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-soft);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}
[data-theme="light"] .footer-legal-pills span {
    background: rgba(15, 25, 50, 0.04);
}

/* ============================================================
   AUTH (login + signup)
   ============================================================ */
.auth-body {
    overflow-x: hidden;
}
.auth-main {
    display: grid;
    grid-template-columns: 480px auto;
    align-items: stretch;
    min-height: calc(100vh - 80px);
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 36px 60px;
    gap: 60px;
}
.signup-main { grid-template-columns: 600px auto; }

.auth-card {
    background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    padding: 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}
[data-theme="light"] .auth-card {
    background: var(--bg-1);
    box-shadow: 0 30px 60px rgba(15, 25, 50, 0.10);
}
.auth-card-large { padding: 36px 40px; }

.auth-head {
    text-align: center;
    margin-bottom: 30px;
}
.auth-mark {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #6aa6ff, #8b6bf2);
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(106, 166, 255, 0.40);
    margin-bottom: 18px;
}
.auth-mark .brand-k {
    font-size: 30px; font-weight: 900;
    color: white;
}
.auth-head h1 {
    font-size: 26px; font-weight: 900;
    color: var(--text);
    letter-spacing: -0.4px;
    margin-bottom: 8px;
}
.auth-head p {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.5;
}

/* Form */
.auth-form {
    display: flex; flex-direction: column;
    gap: 18px;
}
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group-head {
    display: flex; justify-content: space-between; align-items: center;
}
.form-group label {
    font-size: 12px; font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.form-link {
    font-size: 12px; color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}
.form-link:hover { text-decoration: underline; }
.input-wrap {
    position: relative;
    display: flex; align-items: center;
}
.input-icon {
    position: absolute;
    left: 16px;
    width: 18px; height: 18px;
    color: var(--text-mute);
    pointer-events: none;
}
.input-wrap input,
.input-wrap select {
    width: 100%;
    height: 50px;
    padding: 0 16px 0 50px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 14px; font-weight: 500;
    font-family: inherit;
    transition: border-color 0.15s, background 0.15s;
}
.input-wrap input:focus,
.input-wrap select:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-2);
}
.input-wrap input::placeholder { color: var(--text-mute); }
/* Sans icône */
.form-group .input-wrap:not(:has(svg.input-icon)) input,
.form-grid .input-wrap input,
.form-grid select {
    padding-left: 16px;
}
.input-action {
    position: absolute;
    right: 8px;
    width: 36px; height: 36px;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: var(--text-mute);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.input-action:hover { background: var(--bg-2); color: var(--text); }
.input-action svg { width: 18px; height: 18px; }

.form-options {
    display: flex; align-items: center; justify-content: space-between;
    padding: 4px 0;
}
.checkbox-row {
    display: flex; align-items: flex-start; gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.5;
}
.checkbox-row input[type="checkbox"] {
    display: none;
}
.checkbox-row .check-box {
    width: 20px; height: 20px;
    border-radius: 6px;
    border: 1.5px solid var(--border);
    background: var(--bg-3);
    flex-shrink: 0;
    position: relative;
    margin-top: 1px;
    transition: background 0.15s, border-color 0.15s;
}
.checkbox-row input[type="checkbox"]:checked ~ .check-box {
    background: var(--accent);
    border-color: var(--accent);
}
.checkbox-row input[type="checkbox"]:checked ~ .check-box::after {
    content: '';
    position: absolute;
    left: 5px; top: 2px;
    width: 7px; height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.required-star { color: var(--red); margin-left: 2px; }
.optional { color: var(--text-mute); font-style: italic; }

.auth-submit {
    height: 54px;
    background: linear-gradient(135deg, var(--green), var(--green-d));
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 15px; font-weight: 800;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(47, 212, 122, 0.30);
    transition: transform 0.1s, filter 0.15s;
}
.auth-submit:hover { filter: brightness(1.05); }
.auth-submit:active { transform: scale(0.98); }
.auth-submit svg { width: 18px; height: 18px; }
.auth-submit.success {
    background: linear-gradient(135deg, var(--green), var(--green-d));
}

.form-error {
    padding: 12px 16px;
    background: rgba(242, 84, 69, 0.10);
    border: 1px solid rgba(242, 84, 69, 0.4);
    border-radius: 8px;
    color: var(--red);
    font-size: 13px;
    text-align: center;
}

/* Divider */
.auth-divider {
    text-align: center;
    position: relative;
    margin: 26px 0;
    color: var(--text-mute);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 30px);
    height: 1px;
    background: var(--border-soft);
}
.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }
.auth-divider span { padding: 0 12px; }

/* Providers */
.auth-providers {
    display: flex; flex-direction: column;
    gap: 10px;
}
.auth-provider {
    height: 48px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 14px; font-weight: 600;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 12px;
    transition: background 0.15s;
}
.auth-provider:hover { background: var(--bg-2); }
.auth-provider svg { width: 20px; height: 20px; }

.auth-foot {
    text-align: center;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid var(--border-soft);
}
.auth-foot p {
    color: var(--text-dim);
    font-size: 13px;
    margin-bottom: 6px;
}
.auth-foot-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}
.auth-foot-link:hover { text-decoration: underline; }
.auth-foot-link.inline { font-size: inherit; }

/* Side info */
.auth-side-info {
    display: flex; flex-direction: column;
    justify-content: center;
    gap: 30px;
}
.auth-quote {
    padding: 36px;
    background: linear-gradient(135deg, rgba(106, 166, 255, 0.08), rgba(139, 107, 242, 0.04));
    border: 1px solid rgba(106, 166, 255, 0.2);
    border-radius: 16px;
}
.auth-quote-icon {
    font-size: 64px;
    color: var(--accent);
    font-weight: 900;
    line-height: 0.4;
    opacity: 0.5;
}
.auth-quote p {
    font-size: 22px;
    line-height: 1.4;
    color: var(--text);
    margin: 14px 0 16px;
    font-style: italic;
    font-weight: 500;
}
.auth-quote-author {
    font-size: 12px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
}
.auth-trust-list {
    display: flex; flex-direction: column;
    gap: 10px;
}
.atl-item {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-soft);
    border-radius: 9px;
    color: var(--text-dim);
    font-size: 13px;
    font-weight: 500;
}
[data-theme="light"] .atl-item {
    background: var(--bg-3);
    border-color: var(--border);
}

/* SIGNUP : steps + grid */
.signup-steps {
    display: flex; align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    padding: 0 14px;
}
.ss-step {
    display: flex; align-items: center; gap: 10px;
    color: var(--text-mute);
    font-weight: 600;
    font-size: 13px;
}
.ss-step.active { color: var(--accent); }
.ss-num {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--bg-3);
    border: 1px solid var(--border);
    color: var(--text-mute);
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}
.ss-step.active .ss-num {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}
.ss-line {
    flex: 1;
    height: 2px;
    background: var(--border-soft);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.form-hint {
    font-size: 11px;
    color: var(--text-mute);
    line-height: 1.4;
    margin-top: 4px;
}

select {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 14px; font-weight: 500;
    font-family: inherit;
    cursor: pointer;
}

/* Level chips (signup step 2) */
.level-chips, .plan-chips {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.level-chip, .plan-chip {
    display: block;
    padding: 16px 18px;
    background: var(--bg-3);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    text-align: left;
    font-size: 13px;
    color: var(--text-dim);
}
.level-chip input, .plan-chip input { display: none; }
.level-chip strong, .plan-chip strong { color: var(--text); }
.level-chip.active, .plan-chip.active {
    border-color: var(--accent);
    background: rgba(106, 166, 255, 0.08);
    color: var(--text);
}
.level-chip:has(input:checked), .plan-chip:has(input:checked) {
    border-color: var(--accent);
    background: rgba(106, 166, 255, 0.08);
    color: var(--text);
}
.plan-chip { display: flex; flex-direction: column; gap: 4px; }
.pc-name { font-size: 14px; font-weight: 800; color: var(--text); text-transform: uppercase; letter-spacing: 0.5px; }
.pc-price { font-size: 13px; font-weight: 800; color: var(--accent); }
.pc-feat { font-size: 11px; color: var(--text-dim); }

.plan-chips { grid-template-columns: repeat(3, 1fr); }

/* RGPD consents */
.rgpd-consents {
    margin-top: 18px;
    padding: 22px 24px;
    background: rgba(106, 166, 255, 0.05);
    border: 1px solid rgba(106, 166, 255, 0.20);
    border-radius: 12px;
}
.rgpd-consents-title {
    font-size: 13px; font-weight: 800;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 16px;
}
.rgpd-consents .checkbox-row { padding: 8px 0; }
.checkbox-row.required {
    background: rgba(242, 84, 69, 0.04);
    padding: 10px 12px;
    border-radius: 8px;
    border-left: 2px solid rgba(242, 84, 69, 0.3);
}
.checkbox-row.required-soft {
    background: rgba(240, 165, 42, 0.04);
    padding: 10px 12px;
    border-radius: 8px;
    border-left: 2px solid rgba(240, 165, 42, 0.3);
}

/* Boutons signup */
.signup-actions {
    display: flex; gap: 12px;
    justify-content: space-between;
    margin-top: 18px;
}
.signup-actions .ghost-btn { height: 50px; padding: 0 22px; }

/* Side perks (signup) */
.signup-perks-card {
    padding: 32px;
    background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
    border: 1px solid var(--border-soft);
    border-radius: 16px;
}
.signup-perks-card h3 {
    font-size: 16px; font-weight: 800;
    color: var(--text);
    margin-bottom: 22px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.perks-list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column;
    gap: 18px;
}
.perks-list li {
    display: flex; gap: 16px;
    align-items: flex-start;
}
.perk-icon { font-size: 28px; flex-shrink: 0; line-height: 1; }
.perks-list strong {
    display: block;
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 4px;
}
.perks-list p {
    margin: 0;
    color: var(--text-dim);
    font-size: 12px;
    line-height: 1.5;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 50px; min-height: auto; }
    .hero-title { font-size: 44px; }
    .hero-mockup { transform: none; max-width: 500px; margin: 0 auto; }
    .hero-tag-floating { display: none; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-public { grid-template-columns: 1fr; }
    .ppub-tier.highlight { transform: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-band { grid-template-columns: repeat(2, 1fr); }
    .auth-main { grid-template-columns: 1fr; padding: 30px 20px; gap: 30px; }
    .auth-side-info { display: none; }
    .form-grid { grid-template-columns: 1fr; }
    .public-nav-links { display: none; }
    .level-chips, .plan-chips { grid-template-columns: 1fr; }
    .how-arrow { transform: rotate(90deg); }
}

@media (max-width: 600px) {
    .public-nav { padding: 12px 16px; flex-wrap: wrap; gap: 12px; }
    .public-main { padding: 0 16px; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .stats-band { grid-template-columns: 1fr; }
    .auth-card { padding: 28px 22px; }
    .hero-title { font-size: 34px; }
    .section-title { font-size: 28px; }
    .signup-steps { flex-wrap: wrap; }
}
