/* --- CSS PREMIUM SAAS B2B --- */
:root {
    --nomia-violet: #7333ff;
    --nomia-magenta: #ff2eff;
    --bg-dark: #050508;
    --glass: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.6);
}

button {
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
    cursor: pointer;
}
* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    cursor: default;
}

h1, h2, h3, h4, h5, h6, p, span, li, label:not([for]), blockquote, figcaption {
    cursor: default;
}

/* Header avec effet flou */
.site-header {
    position: fixed;
    top: 0; width: 100%;
    background: rgba(5, 5, 8, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 15px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.logo-link img {
    height: 32px;
    display: block;
}

.nav-links {
    margin-left: auto;
    margin-right: 32px;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    margin-right: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover { color: var(--nomia-violet); }

/* Hero Section */
.hero {
    padding: 140px 24px 40px;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-tag {
    background: rgba(115, 51, 255, 0.1);
    color: var(--nomia-violet);
    padding: 8px 16px;
    border-radius: 100px;
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
    border: 1px solid rgba(115, 51, 255, 0.2);
    text-transform: uppercase;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

h1 span {
    background: linear-gradient(90deg, var(--nomia-violet), var(--nomia-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subcopy {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto 48px;
}

/* Zone de l'outil WebGL */
.tool-container {
    position: relative;
    max-width: 850px;
    margin: 0 auto;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 12px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.5);
}

.upload-box {
    position: relative;
    height: 450px;
    border-radius: 24px;
    border: 1px dashed rgba(255,255,255,0.15);
    display: flex;
    
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(115, 51, 255, 0.03) 0%, transparent 80%);
    transition: 0.4s;
}

/* Le Canvas de la sphère est en arrière-plan de l'upload */
#sphere-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
}

.upload-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.btn-primary {
    background: var(--nomia-violet);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.2, 0, 0.2, 1);
    box-shadow: 0 0 0 rgba(115, 51, 255, 0);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(115, 51, 255, 0.4);
    background: #8650ff;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-main, #fff);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s cubic-bezier(0.2, 0, 0.2, 1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
}

.trust-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    padding-bottom: 20px;
}

.trust-item {
    font-size: 0.8rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 8px;
}

.trust-item::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--nomia-violet);
    border-radius: 50%;
}
/* --- Account Page V2 --- */
.body-v2 .subcopy {
    font-size: 1rem;
    max-width: 100%;
    margin: 0;
}
.account-v2-main {
    padding: 120px 24px 80px;
    max-width: 1200px;
    margin: 0 auto;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}
.header-credits {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--nomia-violet);
    background: rgba(115, 51, 255, 0.12);
    border: 1px solid rgba(115, 51, 255, 0.25);
    padding: 6px 12px;
    border-radius: 20px;
    display: none; /* dynamically set to inline-flex by JS */
    align-items: center;
    gap: 6px;
    margin-right: 15px;
}
.credits-plus-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--nomia-violet);
    color: #fff;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    margin-left: 6px;
    flex-shrink: 0;
    transition: 0.2s cubic-bezier(0.2, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(115, 51, 255, 0.4);
}
.credits-plus-btn:hover {
    background: #8650ff;
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(115, 51, 255, 0.55);
}
.auth-menu {
    position: relative;
}
.auth-link {
    border: none;
    background: transparent;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 0;
}
.auth-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    background: rgba(21, 21, 26, 0.75); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 8px;
    min-width: 220px;
    display: grid;
    box-shadow: 0 18px 36px -20px rgba(0,0,0,0.7);
    z-index: 20;
    transform-origin: top right;
    transform: translateY(-12px) scale(0.96);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 220ms ease;
}
.auth-dropdown.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.auth-dropdown-item {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-dim);
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
}
.auth-dropdown-item:hover {
    background: var(--glass);
    color: var(--text-main);
}
.account-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}
.account-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 40px;
}
.account-header-row h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.03em;
}
.account-badges {
    display: flex;
    gap: 16px;
}
.account-badge {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px 20px;
    display: grid;
    gap: 4px;
    text-align: center;
}
.account-badge span {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-weight: 500;
}
.account-badge strong {
    font-size: 1.5rem;
    font-weight: 700;
}
.account-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
}
.account-tab {
    border: none;
    background: transparent;
    color: var(--text-dim);
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transform: translateY(1px);
}
.account-tab.is-active {
    color: var(--text-main);
    border-bottom-color: var(--nomia-violet);
}
.account-panel,
.auth-panel {
    display: none;
}
.account-panel.is-active,
.auth-panel.is-active {
    display: block;
}
.account-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
}
.account-section-header h3 {
    margin: 0 0 8px;
    font-size: 1.5rem;
}
.card-note, .account-warning, .profile-meta {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin: 0 0 16px;
}
.table-wrap {
    overflow-x: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
}
th {
    color: var(--text-dim);
    font-weight: 600;
}
.photo-link {
    color: var(--nomia-violet);
    text-decoration: none;
    font-weight: 600;
}

/* ── Gallery table components ─────────────────────────── */
.photo-job-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.photo-job {
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--text-dim);
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.photo-copy {
    display: inline-flex;
    align-items: center;
    padding: 4px 13px;
    font-size: 0.74rem;
    font-weight: 600;
    font-family: inherit;
    letter-spacing: 0.3px;
    border-radius: 20px;
    border: 1px solid rgba(115, 51, 255, 0.4);
    background: rgba(115, 51, 255, 0.08);
    color: var(--nomia-violet);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.photo-copy:hover {
    background: rgba(115, 51, 255, 0.16);
    border-color: var(--nomia-violet);
    box-shadow: 0 0 12px rgba(115, 51, 255, 0.2);
    transform: translateY(-1px);
}
.photo-copy.is-copied {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.5);
    color: #10B981;
    transform: none;
}

.account-sections, .account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}
.auth-field {
    display: grid;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-dim);
}
.auth-field input {
    background: #000;
    border: 1px solid var(--border);
    color: var(--text-main);
    border-radius: 10px;
    padding: 12px;
    font-size: 1rem;
    font-family: inherit;
}
.cta {
    background: var(--nomia-violet);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}
.site-footer-v2 {
    padding: 40px 24px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
}
.site-footer-v2 a {
    color: var(--text-dim);
    text-decoration: none;
    margin: 0 12px;
}
.site-footer-v2 a:hover {
    color: var(--text-main);
}
.site-footer-v2 span {
    display: block;
    margin-top: 16px;
}
/* Ensure modals from old stylesheet work on dark background */
.confirm-dialog, .auth-dialog, .legal-dialog {
    background: #15151a;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    width: 100%;
    max-width: 440px;
    color: var(--text-main);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    text-align: center;
}
.confirm-dialog h3, .auth-panel h3, .legal-dialog h3 {
    color: var(--text-main);
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.5rem;
}
.confirm-dialog p, .auth-subtitle, .auth-note, .legal-body, .auth-consent {
    color: var(--text-dim);
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 0.95rem;
    line-height: 1.5;
}
.auth-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    text-align: left;
    font-size: 0.85rem;
}
.auth-consent input[type="checkbox"] {
    margin-top: 4px;
}
.auth-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
}
.auth-close:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.1);
}
.auth-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 24px;
}
.auth-tab {
    flex: 1;
    color: var(--text-dim);
    background: transparent;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.auth-tab.is-active {
    background: #2a2a30;
    color: var(--text-main);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.auth-field {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 6px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dim);
}
.auth-field input {
    background: #000;
    border: 1px solid var(--border);
    color: var(--text-main);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: border-color 0.2s;
}
.auth-field input:focus {
    outline: none;
    border-color: var(--nomia-violet);
}
.auth-panel .cta {
    width: 100%;
    margin-top: 8px;
}
.legal-link, .auth-link-inline, .confirm-more {
    background: none;
    border: none;
    color: var(--text-dim);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.85rem;
    transition: color 0.2s;
    padding: 0;
    display: inline;
    font-family: inherit;
}
.auth-panel .auth-link-inline {
    margin-top: 16px;
    display: inline-block;
}
.legal-link:hover, .auth-link-inline:hover, .confirm-more:hover {
    color: var(--text-main);
}
.cta.ghost-cta {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border);
}
.cta.ghost-cta:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* --- Auth Modal --- */
.auth-modal {
    position: fixed;
    inset: 0px;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 24px;
    
    /* Initially hidden & uninteractable */
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease-in-out;
}

.auth-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.auth-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(5, 5, 8, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.auth-modal .auth-dialog {
    position: relative;
    z-index: 1;
    transform: translateY(15px) scale(0.95);
    transition: all 220ms ease-in-out;
}

.auth-modal.is-open .auth-dialog {
    transform: translateY(0) scale(1);
}

/* --- Credits Page V2 --- */
.credits-plan-v2 {
    text-align: center;
    margin: 32px 0;
}

.credits-amount-v2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.credits-price-v2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--nomia-violet);
    margin-bottom: 16px;
}

/* --- Legal Pages V2 --- */
.legal-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 16px;
}

.legal-content p, .legal-content ul {
    color: var(--text-dim);
    line-height: 1.6;
}

.legal-content ul {
    padding-left: 20px;
}

.legal-content a {
    color: var(--nomia-violet);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

/* --- Subscribe Page V2 --- */
.subscribe-grid-v2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: stretch;
}

.subscribe-card-v2 {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 32px;
}

.subscribe-card-v2.is-recommended {
    border-color: var(--nomia-violet);
    position: relative;
    overflow: hidden;
}

.subscribe-badge-v2 {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--nomia-violet);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 8px 32px;
    transform: rotate(45deg) translate(28%, -10%);
    transform-origin: center;
}

.subscribe-header-v2 .plan-name-v2 {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--nomia-violet);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.subscribe-header-v2 h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 8px 0;
}

.subscribe-header-v2 .plan-subtitle-v2 {
    color: var(--text-dim);
    margin: 0 0 24px;
}

.subscribe-features-v2 {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    color: var(--text-dim);
    line-height: 1.6;
    flex-grow: 1;
}

.subscribe-features-v2 li {
    margin-bottom: 12px;
}

.auth-field textarea {
    background: #000;
    border: 1px solid var(--border);
    color: var(--text-main);
    border-radius: 10px;
    padding: 12px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
}

/* --- Thank You Page V2 --- */
.thank-you-main {
    text-align: center;
}

.thank-you-main .account-inner {
    max-width: 600px;
}

.thank-you-content-v2 {
    padding: 32px;
}

.thank-you-check-v2 {
    margin-bottom: 24px;
}

.thank-you-actions-v2 {
    display: grid;
    gap: 16px;
    margin: 32px 0;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Mobile)
   ========================================================================== */
@media screen and (max-width: 768px) {
    .header-container { padding: 0 16px; }
    .nav-links { display: none; }
    .header-actions { gap: 12px; }
    .header-actions .btn-primary { padding: 8px 12px !important; font-size: 0.8rem !important; }
    .auth-link { font-size: 0.85rem !important; }
    
    .hero { padding: 110px 16px 50px; }
    h1 { font-size: 2.2rem; }
    .subcopy { font-size: 1.05rem; margin-bottom: 32px; padding: 0 8px; }
    
    .account-sections, .account-grid { grid-template-columns: 1fr; gap: 16px; }
    .account-header-row { flex-direction: column; gap: 16px; align-items: flex-start; }
    .account-header-row h2 { font-size: 1.8rem; }
    .account-inner { padding: 0 16px; }
    
    .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    
    .confirm-dialog, .auth-dialog, .legal-dialog { padding: 24px 16px; width: 90%; max-height: 90vh; overflow-y: auto; }
    
    .site-footer-v2 { padding: 32px 16px; }
    .site-footer-v2 a { display: block; margin: 12px 0; }
}

/* ==========================================================================
   RESPONSIVE DESIGN (Mobile)
   ========================================================================== */
@media screen and (max-width: 768px) {
    .header-container { padding: 0 16px; }
    .nav-links { display: none; }
    .header-actions { gap: 12px; }
    .header-actions .btn-primary { padding: 8px 12px !important; font-size: 0.8rem !important; }
    .auth-link { font-size: 0.85rem !important; }
    
    .hero { padding: 110px 16px 50px; }
    h1 { font-size: 2.2rem; }
    .subcopy { font-size: 1.05rem; margin-bottom: 32px; padding: 0 8px; }
    
    .account-sections, .account-grid { grid-template-columns: 1fr; gap: 16px; }
    .account-header-row { flex-direction: column; gap: 16px; align-items: flex-start; }
    .account-header-row h2 { font-size: 1.8rem; }
    .account-inner { padding: 0 16px; }
    
    .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    
    .confirm-dialog, .auth-dialog, .legal-dialog { padding: 24px 16px; width: 90%; max-height: 90vh; overflow-y: auto; }
    
    .site-footer-v2 { padding: 32px 16px; }
    .site-footer-v2 a { display: block; margin: 12px 0; }
}

@media screen and (max-width: 768px) {
    .trust-bar {
        flex-direction: column;
        gap: 16px;
        align-items: center;
        margin-top: 24px;
    }
    .tool-container {
        padding: 0 16px;
    }
}
.confirm-modal {
    position: fixed;
    inset: 0px;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease-in-out;
}

.confirm-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.confirm-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(5, 5, 8, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.confirm-modal .confirm-dialog {
    position: relative;
    z-index: 1;
    transform: translateY(15px) scale(0.95);
    transition: all 220ms ease-in-out;
}

.confirm-modal.is-open .confirm-dialog {
    transform: translateY(0) scale(1);
}

.confirm-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 24px;
}

.confirm-actions button {
    flex: 1;
}

.chat-widget { position: fixed; bottom: 24px; right: 24px; z-index: 990; display: flex; flex-direction: column; align-items: flex-end; }

.chat-widget.is-hidden {
    display: none !important;
}

.chat-bubble {
    background: var(--nomia-violet);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(115, 51, 255, 0.3);
    transition: transform 0.2s;
}

.chat-bubble:hover {
    transform: scale(1.05);
}

.chat-panel {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: #15151a;
    border: 1px solid var(--border);
    border-radius: 16px;
    width: 380px; max-width: 90vw;
    height: 500px;
    max-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95) translateY(20px); transform-origin: bottom right;
    transition: all 0.3s ease;
    overflow: hidden;
}

.chat-panel.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1) translateY(0);
}

.chat-header {
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.chat-close {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 1.2rem;
}

.chat-close:hover {
    color: var(--text-main);
}

.chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-message {
    font-size: 0.9rem;
    max-width: 85%;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
}

.chat-message.is-user {
    align-self: flex-end;
    align-items: flex-end;
}
.chat-message.is-user .chat-bubble-text {
    background: linear-gradient(135deg, var(--nomia-violet) 0%, #9055ff 100%);
    box-shadow: 0 4px 15px rgba(115, 51, 255, 0.3);
    color: #fff;
    border-radius: 18px;
    border-bottom-right-radius: 4px;
    padding: 10px 14px;
}

.chat-message.is-admin {
    align-self: flex-start;
    align-items: flex-start;
}
.chat-message.is-admin .chat-bubble-text {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: var(--text-main);
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    padding: 10px 14px;
}

.chat-sender-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
    margin-left: 4px;
    margin-right: 4px;
}

.chat-time {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 4px;
    margin-left: 4px;
    margin-right: 4px;
}

.chat-form {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    gap: 12px;
    align-items: center;
}

.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 10px 16px;
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}
.chat-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}
.chat-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(115, 51, 255, 0.6);
    box-shadow: 0 0 0 3px rgba(115, 51, 255, 0.2), inset 0 2px 4px rgba(0,0,0,0.2);
}

.chat-form button {
    background: linear-gradient(135deg, var(--nomia-violet) 0%, #9055ff 100%);
    border: none;
    border-radius: 20px;
    padding: 0 20px;
    height: 42px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(115, 51, 255, 0.3);
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
    font-family: inherit;
    font-size: 0.95rem;
}
.chat-form button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(115,51,255,0.4);

    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0 16px;
    font-weight: 600;
    cursor: pointer;
}
@media screen and (max-width: 768px) {
    .chat-bubble { padding: 10px 20px; font-size: 0.85rem; margin-top: 10px; }
    .chat-panel {
        width: calc(100vw - 48px);
        height: 60vh;
        max-height: 400px;
        right: 0;
        bottom: 100%;
        margin-bottom: 12px;
        transform-origin: bottom right;
    }
}
.mobile-menu-btn { display: none; flex-direction: column; justify-content: space-between; width: 28px; height: 18px; background: transparent; border: none; cursor: pointer; z-index: 2000; padding: 0; margin-left: 12px; }
.mobile-menu-btn span { width: 100%; height: 2px; background-color: var(--text-main); transition: all 0.3s ease-in-out; border-radius: 4px; transform-origin: center; }
.mobile-menu-btn.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-menu-btn.is-active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
@media screen and (max-width: 768px) { .mobile-menu-btn { display: flex; } .nav-links { display: flex; position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(5, 5, 8, 0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); flex-direction: column; justify-content: center; align-items: center; gap: 32px; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; z-index: 999; } .nav-links.is-open { opacity: 1; pointer-events: auto; } .nav-links.is-open > * { 
    font-size: 1.8rem; 
    margin: 0; 
    opacity: 0; 
    transform: translateY(15px); 
    animation: slideUpFade 0.4s ease forwards; 
    display: block !important; 
    text-align: center;
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 500;
}
.nav-links.is-open a:hover { color: var(--nomia-violet); }
 .nav-links.is-open > :nth-child(1) { animation-delay: 0.1s; } 
.nav-links.is-open > :nth-child(2) { animation-delay: 0.15s; } 
.nav-links.is-open > :nth-child(3) { animation-delay: 0.2s; } 
.nav-links.is-open > :nth-child(4) { animation-delay: 0.25s; }
.nav-links.is-open > :nth-child(5) { animation-delay: 0.3s; }
.nav-links.is-open > :nth-child(6) { animation-delay: 0.35s; } } @keyframes slideUpFade { to { opacity: 1; transform: translateY(0); } }



.credits-icon { width: 18px; height: 18px; vertical-align: middle; margin-left: 6px; margin-bottom: 2px; display: inline-block; }

.hero-features-boxes {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px auto 40px auto;
    flex-wrap: wrap;
    max-width: 800px;
}

.hero-feature-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    font-weight: 500;
    font-size: 0.95rem;
    color: #fff;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255,255,255,0.1);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-feature-box:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 12px 40px rgba(115, 51, 255, 0.15), inset 0 1px 0 rgba(255,255,255,0.2);
}

.hero-feature-box svg {
    color: var(--nomia-violet);
    flex-shrink: 0;
}




/* WHY NOMIA SECTION - PREMIUM */
.why-nomia {
    padding: 100px 20px;
    background: transparent;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.why-nomia::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(115, 51, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}
.why-nomia-container {
    max-width: 1100px;
    margin: 0 auto;
}
.why-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 70px;
    background: linear-gradient(135deg, #fff 0%, #d0d0d0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

/* Triptych Grid */
.triptych-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 100px;
}
.triptych-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 36px;
    text-align: left;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.triptych-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 40px rgba(115, 51, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.triptych-icon {
    width: 42px;
    height: 42px;
    color: var(--nomia-violet);
    margin-bottom: 24px;
    filter: drop-shadow(0 0 12px rgba(115, 51, 255, 0.4));
}
.triptych-card h3 {
    font-size: 1.3rem;
    margin-bottom: 14px;
    color: #fff;
    font-weight: 600;
}
.triptych-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Duel Section */
.duel-quote {
    text-align: center;
    font-size: 1.6rem;
    font-style: italic;
    font-weight: 500;
    color: #f0f0f0;
    margin: 80px 0 50px;
    letter-spacing: -0.3px;
}
.duel-quote span {
    color: var(--nomia-violet);
}
.duel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 100px;
}
.duel-card {
    padding: 40px;
    border-radius: 24px;
    position: relative;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.duel-card:hover {
    transform: translateY(-4px);
}
.duel-card.before {
    background: rgba(255, 50, 50, 0.02);
    border: 1px solid rgba(255, 50, 50, 0.08);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 50, 50, 0.1);
}
.duel-card.after {
    background: rgba(115, 51, 255, 0.04);
    border: 1px solid rgba(115, 51, 255, 0.15);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.duel-label-box {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}
.duel-card.before .duel-label-box {
    background: rgba(255, 50, 50, 0.1);
    color: #ff5555;
    border: 1px solid rgba(255, 50, 50, 0.2);
}
.duel-card.after .duel-label-box {
    background: var(--nomia-violet);
    color: #fff;
    box-shadow: 0 4px 15px rgba(115, 51, 255, 0.3);
}
.duel-card p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
}
.duel-card.after p {
    color: #fff;
}

/* Deep Dive */
.deep-dive-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 0;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 32px;
    padding: 60px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.deep-dive-block h3 {
    font-size: 1.4rem;
    margin-bottom: 24px;
    color: #fff;
    font-weight: 600;
}
.deep-dive-block p {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
}
.specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.specs-list li {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 20px;
    padding-left: 32px;
    position: relative;
    line-height: 1.6;
}
.specs-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--nomia-violet);
    font-weight: 800;
    filter: drop-shadow(0 0 5px rgba(115, 51, 255, 0.5));
}
.specs-list li strong {
    color: #fff;
}

/* Use Cases */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 80px;
}
.use-case-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 32px;
    border-radius: 20px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform 0.3s, background 0.3s;
}
.use-case-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}
.use-case-card h4 {
    color: var(--nomia-violet);
    margin-bottom: 12px;
    font-size: 1.15rem;
    font-weight: 600;
}
.use-case-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
}

/* Trust Banner */
.trust-banner-text {
    text-align: center;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 40px;
    letter-spacing: 0.5px;
}

/* Media Queries */
@media (max-width: 768px) {
    .why-title {
        font-size: 2.2rem;
    }
    .duel-grid, .deep-dive-grid, .use-cases-grid {
        grid-template-columns: 1fr;
    }
    .deep-dive-grid {
        padding: 40px 24px;
        gap: 40px;
        border-radius: 24px;
    }
    .duel-card {
        padding: 30px;
    }
    .triptych-card {
        padding: 24px;
    }
}

/* MOBILE GRID ENHANCEMENTS & MORE GLASSY (NO SWIPE) */
@media (max-width: 768px) {
    .hero-features-boxes {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 0 16px;
        gap: 16px;
    }
    .hero-feature-box {
        background: rgba(255, 255, 255, 0.04) !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
        font-size: 0.95rem !important;
        padding: 12px 20px !important;
        flex: unset !important;
        justify-content: flex-start;
    }

    .triptych-card, .use-case-card {
        background: rgba(255, 255, 255, 0.04) !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
        padding: 24px !important;
    }
    
    .duel-card {
        padding: 24px !important;
    }
    
    .triptych-grid, .use-cases-grid, .duel-grid {
        gap: 20px !important;
    }
}
.hero-feature-box, .triptych-card, .use-case-card, .duel-card {
    backdrop-filter: blur(30px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(30px) saturate(150%) !important;
}


/* === UI ENHANCEMENTS: SCROLL REVEAL & MOUSE GLOW === */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(8px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform, filter;
}
.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* MOUSE GLOW EFFECT */
.glow-card {
    position: relative;
    overflow: hidden;
}
/* Inner light background tracking mouse */
.glow-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(255, 255, 255, 0.06),
        transparent 40%
    );
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}
/* Glowing vivid border tracking mouse */
.glow-card::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(
        400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(115, 51, 255, 0.8),
        transparent 40%
    );
    border-radius: inherit;
    padding: 1px; /* border thickness */
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.5s ease;
    margin: -1px;
}
.glow-card:hover::before,
.glow-card:hover::after {
    opacity: 1;
}
.glow-card > * {
    position: relative;
    z-index: 1; /* Keep content above background glow */
}

/* Chat Disclaimer */
.chat-disclaimer {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
    padding: 8px 16px 0;
    margin: 0;
    line-height: 1.4;
    font-weight: 400;
}

/* Table Top Scrollbar Hack */
.table-wrap {
    transform: rotateX(180deg);
}
.table-wrap table {
    transform: rotateX(180deg);
}
.table-wrap::-webkit-scrollbar {
    height: 6px;
}
.table-wrap::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}
.table-wrap::-webkit-scrollbar-thumb {
    background: rgba(115, 51, 255, 0.4);
    border-radius: 4px;
}
.table-wrap::-webkit-scrollbar-thumb:hover {
    background: rgba(115, 51, 255, 0.7);
}

@media screen and (max-width: 768px) {
    .table-wrap::-webkit-scrollbar {
        height: 4px;
        display: block; /* Force visible on mobile */
    }
}

/* FORCE CHAT INPUT STYLES */
input#chatInput, .chat-input {
    flex: 1 !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 24px !important;
    padding: 10px 16px !important;
    color: #fff !important;
    font-size: 0.95rem !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2) !important;
}
input#chatInput:focus, .chat-input:focus {
    outline: none !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(115, 51, 255, 0.8) !important;
    box-shadow: 0 0 0 3px rgba(115, 51, 255, 0.3), inset 0 2px 4px rgba(0,0,0,0.2) !important;
}
form.chat-form button, .chat-form button {
    background: linear-gradient(135deg, var(--nomia-violet) 0%, #9055ff 100%) !important;
    border: none !important;
    border-radius: 20px !important;
    padding: 0 20px !important;
    height: 42px !important;
    color: #fff !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(115, 51, 255, 0.3) !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
}
form.chat-form button:hover, .chat-form button:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(115, 51, 255, 0.5) !important;
    filter: brightness(1.1) !important;
}


/* --- Image Comparison Slider --- */
.ba-slider {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    user-select: none;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    border: 1px solid var(--border);
    background: var(--glass);
    line-height: 0;
}

.ba__before img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.ba__after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ba__after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ba__handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.9);
    z-index: 10;
    transform: translateX(-50%);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.3), 0 0 5px rgba(255,255,255,0.5);
}

.ba__handle-button {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--nomia-magenta), var(--nomia-violet));
    border: 3px solid rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(115, 51, 255, 0.5), inset 0 0 10px rgba(255,255,255,0.4);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s;
}

.ba__handle-button:hover {
    box-shadow: 0 6px 25px rgba(255, 46, 255, 0.6), inset 0 0 15px rgba(255,255,255,0.6);
}

.ba__handle-button svg {
    width: 16px;
    height: 16px;
    color: white;
}

.ba__range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 20;
}

.ba-slider:active .ba__handle-button {
    transform: scale(0.92);
    background: linear-gradient(135deg, var(--nomia-violet), var(--nomia-magenta));
}


/* --- NOUVEAUTÉS DESIGN (Glass, Titres, Background Animé) --- */
.animated-bg {
    background: linear-gradient(-45deg, #050508, #110a1f, #050508, #0a0e1c);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.glass-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 40px 80px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.slider-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}
.slider-title span {
    background: linear-gradient(90deg, var(--nomia-violet), var(--nomia-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 3D TILT SURVOL MANUEL (Si Vanilla Tilt échoue ou tarde) */
.triptych-card, .hero-feature-box {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

/* FAQ STYLES */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.faq-item {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.faq-question {
    width: 100%;
    text-align: left;
    padding: 24px;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
    transition: color 0.3s ease;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--nomia-magenta);
    font-weight: 400;
    transition: transform 0.4s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
    color: var(--text-dim);
    line-height: 1.6;
    padding: 0 24px;
}

.faq-item.active .faq-answer {
    padding-bottom: 24px;
    transition: max-height 0.4s ease-in;
}

.faq-item.active .faq-question {
    color: #fff;
}

/* --- FULL WIDTH BANDS --- */
.full-width-band {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 60px 24px;
    box-sizing: border-box;
    overflow: hidden;
}

.band-gradient-overlay {
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(115, 51, 255, 0.05), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* Bande Comparison (Slider) - Sombre et Glassy */
.comparison-band {
    margin-top: 20px;
    margin-bottom: 40px;
    background: rgba(10, 10, 15, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.comparison-band .compare-inner {
    position: relative;
    z-index: 2;
}

/* Bande Deep Dive - Plus claire pour contraster */
.deep-dive-band {
    margin-top: 0px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 100px rgba(0,0,0,0.5);
}

/* Reset scale-up if existing in those bands because they span the full width */
.full-width-band.scale-up { transform: none !important; }

/* Assurer que le contenu reste au dessus */
.deep-dive-grid {
    position: relative;
    z-index: 2;
}



@media (max-width: 768px) {
    .header-credits { display: none !important; }
    .header-actions .btn-primary { display: none !important; }
}


/* --- MOBILE & DESKTOP HEADER FIXES --- */
@media (min-width: 769px) {
    .mobile-only-link {
        display: none !important;
    }
}

.mobile-credits-box {
    margin-top: 15px !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    color: var(--nomia-violet) !important;
    background: rgba(115, 51, 255, 0.1);
    border: 1px solid rgba(115, 51, 255, 0.25);
    padding: 10px 24px;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Mobile hamburger - bouton S'abonner CTA */
@media (max-width: 768px) {
    .nav-links a.mobile-only-link[href="/subscribe"],
    .nav-links a.mobile-only-link[href="subscribe.html"] {
        background: linear-gradient(135deg, var(--nomia-violet), #9b59ff) !important;
        color: #fff !important;
        padding: 14px 44px !important;
        border-radius: 100px !important;
        font-size: 1.3rem !important;
        font-weight: 700 !important;
        margin-top: 8px;
        display: inline-block !important;
        box-shadow: 0 4px 24px rgba(115, 51, 255, 0.4);
        text-align: center;
    }
    .nav-links a.mobile-only-link[href="/subscribe"]:hover,
    .nav-links a.mobile-only-link[href="subscribe.html"]:hover {
        opacity: 0.88;
        box-shadow: 0 6px 28px rgba(115, 51, 255, 0.55);
    }
}

@media (max-width: 768px) {
    .hero-features-boxes {
        flex-direction: column !important;
        align-items: center;
        gap: 12px;
    }
    .hero-feature-box {
        padding: 8px 12px !important;
        font-size: 0.85rem !important;
        gap: 8px !important;
        justify-content: center;
        width: auto !important;
    }
    .hero-feature-box svg {
        width: 18px;
        height: 18px;
    }
}


/* --- THEME TOGGLE BUTTON --- */
.theme-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}
.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}
.theme-toggle svg {
    width: 18px;
    height: 18px;
    transition: opacity 0.3s, transform 0.3s;
}
.theme-toggle .moon-icon { display: none; }
.theme-toggle .sun-icon { display: block; }

.light-mode .theme-toggle {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
}
.light-mode .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
}
.light-mode .theme-toggle .sun-icon { display: none; }
.light-mode .theme-toggle .moon-icon { display: block; }

/* --- LIGHT MODE SPECIFICS --- */
html.light-mode {
    --bg-dark: #f0f2f5;
    --glass: rgba(255, 255, 255, 0.8);
    --border: rgba(0, 0, 0, 0.08);
    --text-main: #111111;
    --text-dim: #555555;
}

html.light-mode body {
    color: var(--text-main);
    background-color: var(--bg-dark);
}

html.light-mode .animated-bg {
    background: linear-gradient(-45deg, #f8f9fc, #eae6ff, #f3e8ff, #f8f9fc) !important;
    background-size: 400% 400% !important;
    animation: gradientBG 15s ease infinite !important;
}

html.light-mode .site-header {
    background: rgba(255, 255, 255, 0.8) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

html.light-mode .logo-link img {
    filter: none !important;
}

/* Base resets for light mode cards */
html.light-mode .hero-feature-box, 
html.light-mode .glass-panel,
html.light-mode .triptych-card,
html.light-mode .use-case-card,
html.light-mode .duel-card,
html.light-mode .faq-item {
    background: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03), inset 0 1px 0 rgba(255,255,255,1) !important;
    color: var(--text-main) !important;
}

/* Specific text overrides for light mode */
html.light-mode p, 
html.light-mode .faq-answer {
    color: var(--text-dim) !important;
}

html.light-mode h1, 
html.light-mode h2, 
html.light-mode h3, 
html.light-mode .slider-title,
html.light-mode .faq-question {
    color: var(--text-main) !important;
}

html.light-mode .hero-feature-box:hover,
html.light-mode .triptych-card:hover,
html.light-mode .faq-item:hover {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
    box-shadow: 0 12px 40px rgba(115, 51, 255, 0.1), inset 0 1px 0 rgba(255,255,255,1) !important;
}

/* Menu links */
html.light-mode .nav-links a {
    color: var(--text-dim);
}
html.light-mode .nav-links a:hover {
    color: var(--nomia-violet);
}
html.light-mode .auth-link .auth-name {
    color: var(--text-dim);
}
html.light-mode .auth-link:hover .auth-name {
    color: var(--text-main);
}
html.light-mode .header-credits {
    color: var(--nomia-violet);
    background: rgba(115, 51, 255, 0.08);
    border-color: rgba(115, 51, 255, 0.2);
}

/* Full width bands */
html.light-mode .deep-dive-band {
    background: rgba(0,0,0,0.02) !important;
    border-top: 1px solid rgba(0,0,0,0.05) !important;
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
}

/* Modals & Dropdowns */
html.light-mode .auth-dropdown {
    background: #ffffff !important;
    border: 1px solid rgba(0,0,0,0.1) !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1) !important;
}
html.light-mode .auth-dropdown-item {
    color: var(--text-main) !important;
}
html.light-mode .auth-dropdown-item:hover {
    background: rgba(0,0,0,0.05) !important;
}






/* GLOBAL ROBUST LIGHT MODE FIXES */
html.light-mode {
    --bg-dark: #ffffff !important;
    --text-main: #111111 !important;
    --text-dim: #444444 !important;
    --glass: rgba(255, 255, 255, 0.6) !important;
    --border: rgba(0, 0, 0, 0.1) !important;
}

html.light-mode body {
    background-color: var(--bg-dark);
    color: var(--text-main);
}

html.light-mode .card,
html.light-mode .box,
html.light-mode .admin-card,
html.light-mode .console-card,
html.light-mode .glass-panel,
html.light-mode .hero-feature-box,
html.light-mode .use-case-card,
html.light-mode .triptych-card,
html.light-mode footer,
html.light-mode header,
html.light-mode .mobile-header,
html.light-mode .sidebar {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: var(--text-main) !important;
}

html.light-mode h1,
html.light-mode h2,
html.light-mode h3,
html.light-mode h4,
html.light-mode h5,
html.light-mode h6,
html.light-mode p,
html.light-mode span:not(.gradient-text),
html.light-mode li,
html.light-mode td,
html.light-mode th,
html.light-mode label {
    color: var(--text-main) !important;
}

/* Turn white logo into exact purple (#7333ff) via CSS filter */
html.light-mode .logo-link img,
html.light-mode img[alt="Nomia Logo"] {
    
}

html.light-mode table {
    background: white;
}

html.light-mode tr {
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

html.light-mode a.nav-link {
    color: var(--text-main) !important;
}
html.light-mode a.nav-link:hover {
    color: var(--nomia-violet) !important;
}

html.light-mode input, html.light-mode textarea {
    background: white !important;
    border: 1px solid rgba(0,0,0,0.2) !important;
    color: var(--text-main) !important;
}

html.light-mode .modal-content {
    background: #f8f9fc !important;
    color: #111 !important;
}
html.light-mode .modal-content p, html.light-mode .modal-content h2, html.light-mode .modal-content h3 {
    color: #111 !important;
}

html.light-mode .animated-bg {
    background: linear-gradient(135deg, #ffffff 0%, #f6f3ff 100%) !important;
}
html.light-mode .gradient-text {
    background: linear-gradient(135deg, var(--nomia-violet), var(--nomia-magenta)) !important;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

html.light-mode .btn-primary, html.light-mode .btn-primary span, html.light-mode .btn-primary * {
    color: #ffffff !important;
}


/* EXTRA LIGHT MODE PROTECTIONS */
html.light-mode .btn-outline {
    color: var(--text-main) !important;
    border-color: rgba(0,0,0,0.2) !important;
    background: transparent !important;
}
html.light-mode .social-icon {
    filter: none !important;
}

html.light-mode .nav-links a {
    color: #111111 !important;
}
html.light-mode .footer-container *, html.light-mode .footer-bottom * {
    color: #444444 !important;
}
html.light-mode .footer-container a:hover {
    color: var(--nomia-violet) !important;
}
html.light-mode .auth-dropdown-menu {
    background: #ffffff !important;
    border: 1px solid rgba(0,0,0,0.1) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}
html.light-mode .auth-dropdown-item {
    color: #111111 !important;
}
html.light-mode .auth-dropdown-item:hover {
    background: rgba(0,0,0,0.05) !important;
}
html.light-mode .ba__handle-button {
    background: linear-gradient(135deg, var(--nomia-magenta), var(--nomia-violet)) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
}

/* Ensure mobile header button is clearly visible */
html.light-mode .mobile-menu-btn {
    filter: none !important;
}
html.light-mode .nav-links.active {
    background: rgba(255,255,255,0.95) !important;
}


/* PRICING & ACCOUNT CARDS FIX */
html.light-mode .account-card, html.light-mode .subscribe-card-v2, html.light-mode .pricing-card {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: var(--text-main) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
}
html.light-mode .account-card h3, html.light-mode .account-card .price {
    color: var(--text-main) !important;
}
html.light-mode .btn-secondary {
    background: rgba(0,0,0,0.05) !important;
    color: var(--text-main) !important;
    border-color: rgba(0,0,0,0.2) !important;
}
/* Ensure chat interface renders properly */
html.light-mode .chat-container, html.light-mode .chat-messages {
    background: #f8f9fc !important;
    color: #111 !important;
}
html.light-mode .chat-message.bot {
    background: rgba(255,255,255,0.9) !important;
    border: 1px solid rgba(0,0,0,0.1) !important;
    color: #111 !important;
}
html.light-mode .chat-message.user {
    color: #fff !important; /* Keep purple background maybe, so text is white */
}
html.light-mode .chat-input-wrapper {
    background: #fff !important;
    border-top: 1px solid rgba(0,0,0,0.1) !important;
}
html.light-mode .chat-input-field {
    background: #fff !important;
    color: #111 !important;
}


@media (max-width: 768px) {
    html.light-mode .nav-links {
        background: rgba(255, 255, 255, 0.98) !important;
    }
}


/* --- APPLE PRO LIGHT MODE OVERHAUL --- */

/* 1. Core Body Background - sleek Apple light gray */
html.light-mode {
    --bg-dark: #fbfbfd !important; /* Extremely clean off-white */
    --text-main: #1d1d1f !important;
    --text-dim: #86868b !important;
    --glass: rgba(255, 255, 255, 0.65) !important;
}

html.light-mode body, 
html.light-mode main,
html.light-mode .animated-bg {
    background-color: #fbfbfd !important;
    background-image: none !important;
}

/* 2. Force Apple Text Typography */
html.light-mode h1,
html.light-mode h2,
html.light-mode h3,
html.light-mode h4,
html.light-mode h5,
html.light-mode h6,
html.light-mode .why-title,
html.light-mode .slider-title {
    color: #1d1d1f !important;
    
}

html.light-mode p,
html.light-mode span:not(.gradient-text):not(.duel-label):not(.auth-name):not(.btn-primary span),
html.light-mode li,
html.light-mode blockquote,
html.light-mode .subcopy,
html.light-mode .faq-question,
html.light-mode .faq-answer p {
    color: #424245 !important;
}

/* Specific typography exceptions for visibility */
html.light-mode h1 span, 
html.light-mode .slider-title span {
    background: linear-gradient(135deg, var(--nomia-violet), var(--nomia-magenta)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

html.light-mode h2.why-title {
    background: transparent !important;
    -webkit-text-fill-color: #1d1d1f !important;
}

html.light-mode .trust-banner-text {
    color: #86868b !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
}

/* 3. Bulletproof Mobile Logo Fix (Absolute Overlay Technique) */
html.light-mode .logo-link {
    position: relative !important;
    
}
html.light-mode img[alt="Nomia Logo"] {
    visibility: hidden !important; /* Hides original gracefully without losing width/height */
}
html.light-mode .logo-link::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--nomia-violet) !important;
    -webkit-mask: url('LOGOS/3.png') no-repeat left center / contain;
    mask: url('LOGOS/3.png') no-repeat left center / contain;
    pointer-events: none;
}

/* 4. Deep Dive Band - Sexy Blur Glass instead of Solid Purple */
html.light-mode .deep-dive-band {
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(40px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(40px) saturate(200%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.9) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.03) !important;
}

/* Deep dive text colors back to Apple dark */
html.light-mode .deep-dive-band h3 { color: #1d1d1f !important; }
html.light-mode .deep-dive-band p, 
html.light-mode .deep-dive-band .specs-list li { color: #424245 !important; }
html.light-mode .deep-dive-band .specs-list li strong { color: #1d1d1f !important; }

/* 5. Ultra Sexy Frosted Glass Cards (Feature Boxes, Triptych, etc.) */
html.light-mode .card,
html.light-mode .box,
html.light-mode .admin-card,
html.light-mode .console-card,
html.light-mode .glass-panel,
html.light-mode .hero-feature-box,
html.light-mode .use-case-card,
html.light-mode .triptych-card,
html.light-mode .faq-item {
    background: rgba(255, 255, 255, 0.65) !important;
    backdrop-filter: blur(35px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(35px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04), inset 0 0 0 1px rgba(255,255,255,0.5) !important;
    color: #1d1d1f !important;
}

/* Icon colors inside glassy boxes */
html.light-mode .hero-feature-box svg,
html.light-mode .triptych-card svg {
    color: var(--nomia-violet) !important;
}

/* Clean text inside cards */
html.light-mode .triptych-card p, 
html.light-mode .use-case-card p, 
html.light-mode .hero-feature-box span {
    color: #424245 !important;
}

html.light-mode .band-gradient-overlay {
    opacity: 0.05 !important;
    background: transparent !important;
}

/* 6. Duels System */
html.light-mode .duel-card.before {
    background: rgba(255, 59, 48, 0.03) !important; /* Apple Red soft */
    border: 1px solid rgba(255, 59, 48, 0.15) !important;
}
html.light-mode .duel-card.after {
    background: rgba(88, 86, 214, 0.03) !important; /* Apple Purple soft */
    border: 1px solid rgba(115, 51, 255, 0.2) !important;
}
html.light-mode .duel-card.before .duel-label-box span,
html.light-mode .duel-card.before .duel-label {
    color: #ff3b30 !important;
}
html.light-mode .duel-card.after .duel-label-box span,
html.light-mode .duel-card.after .duel-label {
    color: #ffffff !important;
}
html.light-mode .duel-card p {
    color: #424245 !important;
}


/* Fix Toggle Button Background in Light Mode */
html.light-mode .theme-toggle-btn {
    background: rgba(255, 255, 255, 0.65) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    color: #1d1d1f !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
}

html.light-mode .theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    transform: scale(1.05) !important;
}

html.light-mode .theme-toggle-btn svg {
    color: #1d1d1f !important;
}

/* Fix Comparison Band Background in Light Mode (Voyez la différence) */
html.light-mode .comparison-band {
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(40px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(40px) saturate(200%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.9) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important;
}

/* Default / Dark Mode Theme Toggle Button */
.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.theme-toggle-btn svg {
    color: #ffffff;
}

/* Fix Hamburger Menu on Mobile Light Mode */
html.light-mode .mobile-menu-btn span {
    background-color: #1d1d1f !important;
}

/* Ensure no layout shift from borders or spacing on toggle */
.theme-toggle-btn {
    box-sizing: border-box;
}
html.light-mode .theme-toggle-btn {
    box-sizing: border-box !important;
}

/* ═══════════════════════════════════════════════════════════════
   LIGHT MODE — MODAUX & POPUPS COMPLETS
   Couvre : auth, logout/confirm, credits, cgv/legal, loader,
            enhance confirm, analysis, chat widget
   ═══════════════════════════════════════════════════════════════ */

/* Backdrop overlay des modaux en light */
html.light-mode .auth-modal,
html.light-mode .confirm-modal {
    background: rgba(200, 195, 220, 0.55) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
}

/* Boîte principale de tous les modaux */
html.light-mode .auth-dialog,
html.light-mode .confirm-dialog,
html.light-mode .legal-dialog {
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(0, 0, 0, 0.07) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12) !important;
    color: #1d1d1f !important;
}

html.light-mode .auth-dialog h3,
html.light-mode .confirm-dialog h3,
html.light-mode .legal-dialog h3,
html.light-mode .auth-panel h3 {
    color: #1d1d1f !important;
}

html.light-mode .auth-subtitle,
html.light-mode .auth-note,
html.light-mode .auth-consent,
html.light-mode .confirm-dialog p,
html.light-mode .legal-body {
    color: #555 !important;
}

/* Bouton fermeture × */
html.light-mode .auth-close {
    color: #86868b !important;
}
html.light-mode .auth-close:hover {
    background: rgba(0, 0, 0, 0.06) !important;
    color: #1d1d1f !important;
}

/* Onglets login/signup */
html.light-mode .auth-tabs {
    background: rgba(0, 0, 0, 0.05) !important;
}
html.light-mode .auth-tab {
    color: #86868b !important;
}
html.light-mode .auth-tab.is-active {
    background: #ffffff !important;
    color: #1d1d1f !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

/* Champs de formulaire */
html.light-mode .auth-field {
    color: #555 !important;
}
html.light-mode .auth-field input {
    background: #f5f5f7 !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    color: #1d1d1f !important;
}
html.light-mode .auth-field input::placeholder {
    color: #aaa !important;
}
html.light-mode .auth-field input:focus {
    border-color: var(--nomia-violet) !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(115, 51, 255, 0.12) !important;
}

/* Messages d'erreur / succès */
html.light-mode .auth-error { color: #d93025 !important; }
html.light-mode .auth-success { color: #1a8754 !important; }

/* Lien "Mot de passe oublié" */
html.light-mode .auth-link-inline {
    color: var(--nomia-violet) !important;
}

/* Backdrop des confirm-backdrops inline (enhanceConfirmModal, analysisModal, etc.) */
html.light-mode .confirm-backdrop {
    background: rgba(200, 195, 220, 0.6) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
}

/* Boîte enhance confirm */
html.light-mode #enhanceConfirmModal .confirm-modal-content {
    background: rgba(255, 255, 255, 0.97) !important;
    border-color: rgba(115, 51, 255, 0.2) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.1) !important;
}
html.light-mode #enhanceConfirmModal h3 { color: #1d1d1f !important; }
html.light-mode #enhanceConfirmModal p  { color: #555 !important; }
html.light-mode #enhanceConfirmModal label > span { color: #333 !important; }
html.light-mode #enhanceConfirmModal label {
    background: rgba(0, 0, 0, 0.03) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}
html.light-mode #enhanceConfirmCancelBtn {
    border-color: rgba(0, 0, 0, 0.15) !important;
    color: #333 !important;
}
html.light-mode #enhanceConfirmCancelBtn:hover {
    background: rgba(0, 0, 0, 0.05) !important;
}

/* Analysis refus modal */
html.light-mode #analysisModal .confirm-modal-content {
    background: rgba(255, 255, 255, 0.97) !important;
    border-color: rgba(255, 60, 60, 0.3) !important;
    box-shadow: 0 24px 60px rgba(255, 60, 60, 0.06) !important;
}
html.light-mode #analysisModal h3 { color: #1d1d1f !important; }
html.light-mode #analysisModal p  { color: #555 !important; }
html.light-mode #analysisModal div[style*="rgba(255,255,255,0.05)"] {
    background: rgba(0, 0, 0, 0.03) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

/* Loader modal box */
html.light-mode #loaderModal {
    background: rgba(200, 195, 220, 0.55) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
}
html.light-mode #loaderInner {
    background: #ffffff !important;
    border-color: rgba(115, 51, 255, 0.15) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.1) !important;
}
html.light-mode #loaderInner h3,
html.light-mode #loaderTitle { color: #1d1d1f !important; }
html.light-mode #loaderInner .loader-step,
html.light-mode #loaderInner p { color: #555 !important; }
html.light-mode .loader-close-btn { color: #666 !important; }

/* Light mode loader step indicators */
html.light-mode #progress {
  background: rgba(255,255,255,0.93) !important;
  border-color: rgba(115,51,255,0.15) !important;
  box-shadow: 0 20px 60px rgba(115,51,255,0.07), inset 0 0 40px rgba(115,51,255,0.03) !important;
}
html.light-mode #progress .step-item         { color: rgba(0,0,0,0.3) !important; }
html.light-mode #progress .step-item.is-active{ color: #1d1d1f !important; }
html.light-mode #progress .step-item.is-done  { color: rgba(0,0,0,0.5) !important; }
html.light-mode #progressFraction { color: #1d1d1f !important; }
html.light-mode #progress #loaderStep { color: var(--nomia-violet) !important; text-shadow: none !important; }
html.light-mode #progress .step-indicator {
  background: rgba(115,51,255,0.06) !important;
  border-color: rgba(115,51,255,0.25) !important;
  color: rgba(0,0,0,0.4) !important;
}
html.light-mode #progress .step-item.is-active .step-indicator {
  border-color: var(--nomia-violet) !important;
  color: var(--nomia-violet) !important;
  background: rgba(115,51,255,0.12) !important;
}
html.light-mode #progress .step-item.is-done .step-indicator {
  border-color: var(--nomia-violet) !important;
  background: var(--nomia-violet) !important;
  color: transparent !important;
}

/* Success state inside loader */
html.light-mode #loaderSuccess p { color: #555 !important; }
html.light-mode #loaderSuccess p strong { color: var(--nomia-violet) !important; }
html.light-mode .success-account-link {
    background: rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: #444 !important;
}
html.light-mode .success-account-link:hover {
    background: rgba(115, 51, 255, 0.07) !important;
    border-color: rgba(115, 51, 255, 0.25) !important;
    color: var(--nomia-violet) !important;
}

/* Credits insufficient modal */
html.light-mode #creditsModal .confirm-dialog,
html.light-mode .credits-modal .confirm-dialog {
    background: rgba(255, 255, 255, 0.97) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

/* CGV / Legal modal */
html.light-mode #cgvModal .confirm-dialog,
html.light-mode #legalModal .confirm-dialog,
html.light-mode .legal-dialog {
    background: rgba(255, 255, 255, 0.98) !important;
    border-color: rgba(0, 0, 0, 0.07) !important;
}
html.light-mode .legal-body { color: #444 !important; }
html.light-mode .legal-body h2,
html.light-mode .legal-body h3 { color: #1d1d1f !important; }

/* ── Chat widget ───────────────────────────────────────────── */
html.light-mode .chat-panel {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.1) !important;
}

html.light-mode .chat-header {
    background: rgba(0, 0, 0, 0.02) !important;
    border-bottom-color: rgba(0, 0, 0, 0.07) !important;
    color: #1d1d1f !important;
}

html.light-mode .chat-close { color: #86868b !important; }
html.light-mode .chat-close:hover { color: #1d1d1f !important; }

/* Messages admin (bulle glass sombre → claire) */
html.light-mode .chat-message.is-admin .chat-bubble-text {
    background: rgba(0, 0, 0, 0.04) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #1d1d1f !important;
    box-shadow: none !important;
}

/* Noms et heures */
html.light-mode .chat-sender-name { color: #86868b !important; }
html.light-mode .chat-time { color: #aaa !important; }

/* Zone de saisie */
html.light-mode .chat-form {
    background: rgba(0, 0, 0, 0.02) !important;
    border-top-color: rgba(0, 0, 0, 0.07) !important;
    backdrop-filter: none !important;
}
html.light-mode .chat-input,
html.light-mode input#chatInput {
    background: #f5f5f7 !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: #1d1d1f !important;
    -webkit-text-fill-color: #1d1d1f !important;
    box-shadow: none !important;
}
html.light-mode .chat-input::placeholder,
html.light-mode input#chatInput::placeholder { color: #aaa !important; }
html.light-mode .chat-input:focus,
html.light-mode input#chatInput:focus {
    background: #ffffff !important;
    border-color: var(--nomia-violet) !important;
    box-shadow: 0 0 0 3px rgba(115, 51, 255, 0.12) !important;
}

/* Statut admin (online/typing) */
html.light-mode .chat-admin-status { color: #86868b !important; }

/* Disclaimer RGPD */
html.light-mode .chat-disclaimer { color: #aaa !important; }

/* Menu mobile full screen en light */
html.light-mode .nav-links {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
}
html.light-mode .nav-links.is-open > * { color: #1d1d1f !important; }

/* ── Launch Offer Banner ───────────────────────────────────── */
.launch-offer-banner {
    position: relative;
    background: linear-gradient(90deg, rgba(115,51,255,0.08) 0%, rgba(5,5,8,0) 40%, rgba(5,5,8,0) 60%, rgba(115,51,255,0.08) 100%);
    border-top: 1px solid rgba(115,51,255,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 18px 24px;
    overflow: hidden;
}
.launch-offer-banner::before,
.launch-offer-banner::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(115,51,255,0.6) 30%, rgba(167,139,250,0.8) 50%, rgba(115,51,255,0.6) 70%, transparent 100%);
}
.launch-offer-banner::before { top: 0; }
.launch-offer-banner::after { bottom: 0; }
.launch-offer-banner.is-hidden { display: none; }
.launch-offer-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}
.launch-offer-text {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.launch-offer-text p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.4;
}
.launch-offer-text p strong {
    color: var(--text-main);
    font-weight: 700;
}
.launch-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(115,51,255,0.15);
    border: 1px solid rgba(115,51,255,0.3);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #c4b5fd;
    white-space: nowrap;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.launch-countdown {
    display: flex;
    align-items: center;
    gap: 4px;
}
.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(115,51,255,0.08);
    border: 1px solid rgba(115,51,255,0.2);
    border-radius: 8px;
    padding: 6px 10px;
    min-width: 46px;
}
.countdown-unit span {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
    cursor: default;
    font-variant-numeric: tabular-nums;
}
.countdown-unit small {
    font-size: 0.58rem;
    color: #a78bfa;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 2px;
}
.launch-countdown-sep {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(115,51,255,0.4);
    margin: 0 1px;
    align-self: flex-start;
    margin-top: 4px;
}
@media (max-width: 640px) {
    .launch-offer-inner { flex-direction: column; gap: 16px; text-align: center; }
    .launch-offer-text { justify-content: center; }
}
html.light-mode .launch-offer-banner {
    background: linear-gradient(90deg, rgba(115,51,255,0.05) 0%, rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%, rgba(115,51,255,0.05) 100%);
    border-top-color: rgba(115,51,255,0.25);
    border-bottom-color: rgba(0,0,0,0.06);
}
html.light-mode .launch-offer-banner::before,
html.light-mode .launch-offer-banner::after {
    background: linear-gradient(90deg, transparent 0%, rgba(115,51,255,0.4) 30%, rgba(115,51,255,0.5) 50%, rgba(115,51,255,0.4) 70%, transparent 100%);
}
html.light-mode .launch-badge {
    color: #6d28d9;
    background: rgba(115,51,255,0.08);
    border-color: rgba(115,51,255,0.2);
}
html.light-mode .countdown-unit {
    background: rgba(115,51,255,0.06);
    border-color: rgba(115,51,255,0.15);
}
html.light-mode .countdown-unit small { color: #7333ff; }

/* ── NCS Section mobile ──────────────────────────────────── */
@media (max-width: 700px) {
    .ncs-steps-grid { grid-template-columns: 1fr !important; }
    .ncs-verdict-grid { grid-template-columns: 1fr !important; }
}
