/* ============================================
   Podium — Landing Page
   Palette: Twitch Purple (#9147ff) + Gold (#FFD700)
   Theme: Dark (#0e0e10)
   ============================================ */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #9147ff;
    --primary-dark: #7b2fff;
    --primary-light: #c3a0ff;
    --primary-pale: rgba(145, 71, 255, .15);
    --gold: #FFD700;
    --gold-dark: #d4a800;
    --gold-pale: rgba(255, 215, 0, .12);
    --success: #10b981;
    --danger: #ef4444;
    --amber: #f59e0b;
    --cyan: #06b6d4;

    --bg: #0e0e10;
    --bg-alt: #111113;
    --surface: #18181b;
    --surface-2: #1f1f23;
    --surface-3: #26262c;
    --border: #3a3a3d;
    --border-strong: #4a4a4f;

    --text: #efeff1;
    --text-muted: #adadb8;
    --text-dim: #6b7280;

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .4);
    --shadow: 0 4px 12px rgba(0, 0, 0, .5);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, .6);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, .7);
    --shadow-xl: 0 24px 60px rgba(0, 0, 0, .8);
}

/* ── Skip link — RGAA 12.1 ── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: .8rem 1.5rem;
    border-radius: 0 0 12px 12px;
    font-weight: 600;
    z-index: 10000;
    transition: top .2s;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Navigation ── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all .3s;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(14, 14, 16, .92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, .5);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.15rem;
    color: #fff;
    transition: color .3s;
}

.nav-logo-img {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    font-size: .88rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    transition: all .2s;
    color: rgba(255, 255, 255, .8);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.nav-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .1);
}

.nav-cta {
    background: var(--primary) !important;
    border: 1px solid var(--primary) !important;
    color: #fff !important;
}

.nav-cta:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    min-height: 44px;
    min-width: 44px;
    justify-content: center;
    align-items: center;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all .3s;
}

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    padding: 100px 24px 60px;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a0a33 0%, #0e0e10 40%, #0d1a0d 80%, #0e0e10 100%);
}

.hero-particles {
    position: absolute;
    inset: 0;
}

.particle {
    position: absolute;
    bottom: -10px;
    border-radius: 50%;
    opacity: .35;
    animation: float-particle linear infinite;
}

@keyframes float-particle {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: .35;
    }

    90% {
        opacity: .35;
    }

    100% {
        transform: translateY(-100vh) translateX(30px);
        opacity: 0;
    }
}

.hero-content {
    flex: 1;
    max-width: 560px;
    z-index: 1;
}

.hero-logo-wrapper {
    margin-bottom: 20px;
}

.hero-logo {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .4), 0 0 40px rgba(145, 71, 255, .3);
    border: 3px solid rgba(255, 255, 255, .2);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-full);
    font-size: .82rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .5;
        transform: scale(1.3);
    }
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 16px;
}

.gradient-text {
    background: linear-gradient(270deg, var(--gold) 0%, var(--primary-light) 35%, var(--gold) 65%, #fff 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 5s ease infinite;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, .8);
    line-height: 1.7;
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}

.stat-label {
    font-size: .78rem;
    color: rgba(255, 255, 255, .65);
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, .2);
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
    border-radius: var(--radius);
    padding: 10px 20px;
    transition: all .25s;
    cursor: pointer;
    border: none;
    min-height: 44px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: .95rem;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(145, 71, 255, .4);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(145, 71, 255, .6);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, .3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .5);
}

.btn-white {
    background: #fff;
    color: var(--primary);
}

.btn-white:hover {
    background: #f0e8ff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-download {
    font-size: 1rem;
    padding: 16px 32px;
}

.btn-donate {
    background: var(--gold);
    color: #1a1000;
    font-size: 1rem;
    padding: 16px 32px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: var(--radius);
    font-weight: 700;
    text-decoration: none;
    transition: all .2s;
}

.btn-donate:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 215, 0, .4);
}

/* ── Hero primary CTA — pulsing glow ── */
.hero-actions .btn-primary {
    animation: btn-glow 2.8s ease-in-out infinite;
}

@keyframes btn-glow {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(145, 71, 255, .4);
    }

    50% {
        box-shadow: 0 4px 32px rgba(145, 71, 255, .7), 0 0 0 5px rgba(145, 71, 255, .1);
    }
}

/* ============================================================
   App Preview — Reproduction fidèle de l'UI Electron
   Variables et valeurs extraites de renderer/styles.css
   ============================================================ */
.hero-mockup {
    flex: 1;
    max-width: 460px;
    z-index: 1;
}

.app-preview {
    /* Variables clonées de l'app réelle (renderer/styles.css) */
    --ap-primary: #9147ff;
    --ap-primary-hover: #7c3aed;
    --ap-danger: #ef4444;
    --ap-success: #10b981;
    --ap-warning: #f59e0b;
    --ap-gold: #FFD700;
    --ap-bg: #0e0e10;
    --ap-surface: #18181b;
    --ap-surface-light: #26262c;
    --ap-text: #efeff1;
    --ap-text-muted: #adadb8;
    --ap-border: #3a3a3d;

    background: var(--ap-bg);
    border-radius: 12px;
    border: 1px solid var(--border-strong);
    box-shadow: 0 25px 60px rgba(0, 0, 0, .65), 0 0 80px rgba(145, 71, 255, .18);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    color: var(--ap-text);
    line-height: 1.6;
    position: relative;
}

/* ── Barre de titre Windows ── */
.ap-titlebar {
    display: flex;
    align-items: center;
    height: 30px;
    padding: 0 12px;
    gap: 10px;
    background: #0a0a0b;
    border-bottom: 1px solid var(--ap-border);
    flex-shrink: 0;
}

.ap-titlebar-icon {
    width: 14px;
    height: 14px;
    border-radius: 2px;
}

.ap-titlebar-title {
    flex: 1;
    font-size: .7rem;
    color: var(--ap-text-muted);
    font-weight: 500;
}

.ap-titlebar-controls {
    display: flex;
    gap: 4px;
}

.ap-titlebar-btn {
    width: 24px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    color: #666;
    cursor: default;
}

/* ── Header app (clone de .header) ── */
.ap-header {
    background: var(--ap-surface);
    border-bottom: 2px solid var(--ap-border);
    padding: .8rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.ap-header-content {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
}

.ap-title {
    font-size: 1rem;
    color: var(--ap-primary);
    font-weight: 700;
}

.ap-subtitle {
    font-size: .68rem;
    color: var(--ap-text-muted);
}

.ap-user-info {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-shrink: 0;
}

.ap-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid var(--ap-primary);
    background: linear-gradient(135deg, #9147ff 0%, #7c3aed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .6rem;
    color: #fff;
    font-weight: 800;
}

.ap-username {
    font-size: .72rem;
    font-weight: 600;
    color: var(--ap-text);
}

/* ── Boutons (clone de .btn) ── */
.ap-btn {
    padding: .4rem .85rem;
    border: none;
    border-radius: 6px;
    font-size: .68rem;
    font-weight: 600;
    cursor: default;
    transition: all .2s;
    line-height: 1;
}

.ap-btn-primary {
    background: var(--ap-primary);
    color: #fff;
}

.ap-btn-secondary {
    background: var(--ap-surface-light);
    color: var(--ap-text);
}

.ap-btn-danger {
    background: var(--ap-danger);
    color: #fff;
}

.ap-btn-large {
    padding: .7rem 1.4rem;
    font-size: .75rem;
}

/* ── Onglets (clone de .tab-button) ── */
.ap-tabs {
    display: flex;
    gap: .4rem;
    border-bottom: 2px solid var(--ap-border);
    background: var(--ap-bg);
    padding: 0 1rem;
}

.ap-tab {
    background: none;
    border: none;
    padding: .65rem 1rem;
    color: var(--ap-text-muted);
    font-size: .72rem;
    font-weight: 500;
    cursor: default;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color .2s;
}

.ap-tab.active {
    color: var(--ap-primary);
    border-bottom-color: var(--ap-primary);
    font-weight: 500;
}

/* ── Zone principale ── */
.ap-main {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: .9rem;
}

/* ── Control panel (clone de .control-panel) ── */
.ap-control-panel {
    background: var(--ap-surface);
    border: 1px solid var(--ap-border);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: .9rem;
}

/* ── Input-group (clone) ── */
.ap-input-group {
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.ap-input-group label,
.ap-input-group-label {
    display: block;
    font-weight: 600;
    font-size: .7rem;
    color: var(--ap-text);
}

.ap-hint {
    font-size: .62rem;
    color: var(--ap-text-muted);
    margin-top: .15rem;
}

/* ── Champs (clone de .input) ── */
.ap-input,
.ap-select {
    width: 100%;
    padding: .55rem .7rem;
    background: var(--ap-bg);
    border: 2px solid var(--ap-border);
    border-radius: 6px;
    color: var(--ap-text);
    font-size: .7rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: inherit;
}

.ap-input.focused,
.ap-select.focused {
    border-color: var(--ap-primary);
}

.ap-input-placeholder {
    color: var(--ap-text-muted);
}

.ap-select-arrow {
    color: var(--ap-text-muted);
    font-size: .6rem;
}

/* ── Checkbox (clone) ── */
.ap-checkbox-label {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-weight: 600;
    color: var(--ap-text);
    font-size: .7rem;
    cursor: default;
}

.ap-checkbox {
    width: 14px;
    height: 14px;
    border: 2px solid var(--ap-border);
    border-radius: 3px;
    background: var(--ap-bg);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ap-checkbox.checked {
    background: var(--ap-primary);
    border-color: var(--ap-primary);
}

.ap-checkbox.checked::after {
    content: '';
    width: 8px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translate(1px, -1px);
}

/* ── Status bar (clone) ── */
.ap-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .55rem .75rem;
    background: var(--ap-bg);
    border-radius: 6px;
}

.ap-status-indicator {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.ap-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--ap-success);
    box-shadow: 0 0 8px rgba(16, 185, 129, .7);
    animation: ap-pulse 1.8s ease-in-out infinite;
}

.ap-status-text {
    font-size: .7rem;
    font-weight: 600;
    color: var(--ap-text);
}

.ap-progress-info {
    font-size: .72rem;
    font-weight: 700;
    color: var(--ap-primary);
}

@keyframes ap-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .55;
    }
}

/* ── Action buttons row ── */
.ap-action-buttons {
    display: flex;
    gap: .6rem;
    justify-content: center;
}

/* ── Messages container (clone) ── */
.ap-messages-container {
    background: var(--ap-surface);
    border: 1px solid var(--ap-border);
    border-radius: 10px;
    padding: 1rem;
}

.ap-messages-title {
    font-size: .82rem;
    font-weight: 700;
    color: var(--ap-text);
    margin-bottom: .6rem;
}

.ap-messages-list {
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

/* ── Message card (clone de .message-card) ── */
.ap-message-card {
    padding: .65rem .8rem;
    background: var(--ap-bg);
    border: 2px solid var(--ap-border);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.ap-message-card.gold {
    border-color: rgba(255, 215, 0, .55);
    background: linear-gradient(135deg, rgba(255, 215, 0, .04) 0%, var(--ap-bg) 100%);
}

.ap-message-card.silver {
    border-color: rgba(192, 192, 192, .4);
    background: linear-gradient(135deg, rgba(192, 192, 192, .03) 0%, var(--ap-bg) 100%);
}

.ap-message-card.bronze {
    border-color: rgba(205, 127, 50, .4);
    background: linear-gradient(135deg, rgba(205, 127, 50, .03) 0%, var(--ap-bg) 100%);
}

.ap-message-header {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.ap-message-number {
    background: var(--ap-primary);
    color: #fff;
    padding: .12rem .4rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: .6rem;
    flex-shrink: 0;
}

.ap-message-rank {
    font-size: .85rem;
    flex-shrink: 0;
}

.ap-message-author {
    font-weight: 700;
    font-size: .72rem;
    color: var(--ap-text);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ap-message-card.gold .ap-message-author {
    color: var(--ap-gold);
}

.ap-message-card.silver .ap-message-author {
    color: #c0c0c0;
}

.ap-message-card.bronze .ap-message-author {
    color: #cd7f32;
}

.ap-message-time {
    font-size: .6rem;
    color: var(--ap-text-muted);
    flex-shrink: 0;
}

.ap-message-text {
    font-size: .65rem;
    color: var(--ap-text);
    line-height: 1.4;
}

.ap-message-badges {
    display: flex;
    gap: .25rem;
    margin-top: .2rem;
}

.ap-badge {
    background: var(--ap-surface-light);
    color: var(--ap-text-muted);
    padding: .08rem .4rem;
    border-radius: 3px;
    font-size: .55rem;
}

/* ── Completion panel (clone de .completion-panel) ── */
.ap-completion-panel {
    background: linear-gradient(135deg, var(--ap-success) 0%, #059669 100%);
    border-radius: 10px;
    padding: .85rem 1rem;
    text-align: center;
}

.ap-completion-title {
    font-size: .85rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: .3rem;
}

.ap-completion-sub {
    font-size: .65rem;
    color: rgba(255, 255, 255, .9);
    margin-bottom: .5rem;
}

.ap-save-path {
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, .25);
    color: #fff;
    padding: .3rem .5rem;
    border-radius: 4px;
    font-size: .58rem;
    margin: .4rem 0;
    word-break: break-all;
}

.ap-completion-actions {
    display: flex;
    gap: .45rem;
    justify-content: center;
    margin-top: .55rem;
}

/* ── Footer app (clone) ── */
.ap-footer {
    padding: .5rem 1rem;
    background: var(--ap-surface);
    border-top: 1px solid var(--ap-border);
    text-align: center;
    color: var(--ap-text-muted);
    font-size: .6rem;
}

/* ── Settings panel (clone de .settings-panel) ── */
.ap-settings-panel {
    background: var(--ap-surface);
    border: 1px solid var(--ap-border);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ap-settings-title {
    font-size: .9rem;
    font-weight: 700;
    color: var(--ap-primary);
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--ap-border);
}

.ap-settings-section {
    display: flex;
    flex-direction: column;
    gap: .7rem;
}

.ap-section-title {
    font-size: .75rem;
    color: var(--ap-text);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: .3rem;
}

.ap-section-title::before {
    content: '▸';
    color: var(--ap-primary);
}

.ap-save-folder {
    background: var(--ap-surface-light);
    border: 1px solid var(--ap-border);
    border-radius: 6px;
    padding: .45rem .6rem;
    color: var(--ap-text-muted);
    font-family: 'Courier New', monospace;
    font-size: .62rem;
    word-break: break-all;
}

/* ── Feature mock (preview intégrée aux feature-card) ── */
.feature-mock {
    margin-bottom: 16px;
}

.feature-mock-preview {
    box-shadow: 0 8px 24px rgba(0, 0, 0, .4), 0 0 0 1px rgba(145, 71, 255, .1);
}

.feature-mock-preview .ap-settings-panel {
    padding: .75rem;
    gap: .7rem;
    background: transparent;
    border: none;
    border-radius: 0;
}

.feature-mock-preview .ap-settings-title {
    font-size: .75rem;
    padding-bottom: .4rem;
    border-bottom-width: 1px;
}

.feature-mock-preview .ap-section-title {
    font-size: .7rem;
}

.feature-mock-preview .ap-input {
    padding: .4rem .55rem;
    font-size: .65rem;
}

/* ── Sections ── */
.section {
    padding: 70px 0;
}

.section:nth-child(odd) {
    background: var(--bg);
}

.section:nth-child(even) {
    background: var(--bg-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-badge {
    display: inline-block;
    padding: 4px 14px;
    background: var(--surface);
    color: var(--primary);
    font-size: .78rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
    border: 1px solid var(--border-strong);
}

.red-badge {
    color: var(--danger);
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 12px;
}

.section-title.left-align {
    text-align: left;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ── Problem ── */
.pain-points-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.pain-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform .3s, box-shadow .3s;
}

.pain-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pain-icon {
    margin-bottom: 16px;
}

.pain-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    font-style: italic;
}

.pain-card p {
    font-size: .88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.solution-bridge {
    text-align: center;
}

.bridge-arrow {
    margin-bottom: 12px;
    animation: bounce-arrow 2s ease-in-out infinite;
}

@keyframes bounce-arrow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

.bridge-text {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-light);
}

/* ── How it works ── */
.value-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    list-style: none;
    padding: 0;
}

.value-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    flex: 1;
    max-width: 300px;
    text-align: center;
    transition: transform .3s;
}

.value-card:hover {
    transform: translateY(-4px);
}

.value-number {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    margin: 0 auto 16px;
    box-shadow: 0 0 20px rgba(145, 71, 255, .4);
}

.value-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.value-card p {
    font-size: .85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 12px;
}

.value-time {
    font-size: .78rem;
    font-weight: 600;
    color: var(--gold);
    background: var(--surface-3);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
}

.value-connector {
    color: var(--border-strong);
}

/* ── Features ── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform .3s, box-shadow .3s, border-color .25s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(145, 71, 255, .35);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature-icon.purple {
    background: var(--surface-3);
    color: var(--primary);
    border: 1px solid var(--border-strong);
}

.feature-icon.gold {
    background: var(--surface-3);
    color: var(--gold);
    border: 1px solid var(--border-strong);
}

.feature-icon.green {
    background: var(--surface-3);
    color: var(--success);
    border: 1px solid var(--border-strong);
}

.feature-icon.blue {
    background: var(--surface-3);
    color: #60a5fa;
    border: 1px solid var(--border-strong);
}

.feature-icon.cyan {
    background: var(--surface-3);
    color: #22d3ee;
    border: 1px solid var(--border-strong);
}

.feature-icon.amber {
    background: var(--surface-3);
    color: var(--amber);
    border: 1px solid var(--border-strong);
}

.feature-icon.twitch {
    background: var(--surface-3);
    color: var(--primary);
    border: 1px solid var(--border-strong);
}

.feature-icon.secure {
    background: var(--surface-3);
    color: var(--success);
    border: 1px solid var(--border-strong);
}

.feature-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.feature-desc {
    font-size: .85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 12px;
}

.feature-benefit {
    font-size: .78rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--surface-3);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
}

/* ── Editor Section — grille compacte (mockup déplacé dans #app-preview) ── */
.editor-features-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    max-width: 980px;
    margin: 0 auto;
}

.editor-feat-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    transition: border-color .2s, transform .2s;
}

.editor-feat-card:hover {
    border-color: rgba(145, 71, 255, .35);
    transform: translateY(-2px);
}

.editor-feat-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: var(--surface-3);
    color: var(--success);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    border: 1px solid var(--border);
}

.editor-feat-card strong {
    font-size: .88rem;
    font-weight: 700;
    color: var(--text);
    display: block;
    margin-bottom: 2px;
}

.editor-feat-card span {
    font-size: .82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.editor-cta-line {
    text-align: center;
    margin-top: 28px;
    font-size: .92rem;
    color: var(--text-muted);
}

.editor-cta-line a {
    color: var(--primary-light);
    font-weight: 600;
    text-decoration: underline;
}

.editor-cta-line a:hover {
    color: #fff;
}

/* ============================================================
   Layout éditeur utilisé dans la section #app-preview
   ============================================================ */
/* Layout éditeur (clone de .editor-layout) */
.ap-editor-layout {
    display: grid;
    grid-template-columns: 130px 1fr;
    background: var(--ap-bg);
    height: 450px;
}

/* Sidebar profils (clone de .editor-sidebar) */
.ap-editor-sidebar {
    background: var(--ap-surface);
    border-right: 1px solid var(--ap-border);
    padding: .5rem;
    display: flex;
    flex-direction: column;
    gap: .25rem;
    overflow: hidden;
}

.ap-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .3rem .15rem;
    margin-bottom: .4rem;
    border-bottom: 1px solid var(--ap-border);
    padding-bottom: .45rem;
}

.ap-sidebar-header h3 {
    font-size: .7rem;
    font-weight: 700;
    color: var(--ap-text);
}

.ap-btn-small {
    padding: .18rem .45rem;
    font-size: .58rem;
    border-radius: 4px;
}

.ap-profile-item {
    padding: .4rem .55rem;
    border-radius: 5px;
    font-size: .65rem;
    color: var(--ap-text-muted);
    cursor: default;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: .3rem;
}

.ap-profile-item.active {
    background: var(--ap-primary);
    color: #fff;
    font-weight: 600;
}

/* Canvas éditeur */
.ap-editor-canvas-container {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.ap-editor-toolbar {
    background: var(--ap-surface);
    border-bottom: 1px solid var(--ap-border);
    padding: .35rem .5rem;
    display: flex;
    flex-direction: column;
    gap: .3rem;
    flex-shrink: 0;
}

.ap-toolbar-row {
    display: flex;
    align-items: center;
    gap: .3rem;
    flex-wrap: wrap;
}

.ap-toolbar-btn {
    padding: .25rem .5rem;
    background: var(--ap-surface-light);
    border: 1px solid var(--ap-border);
    border-radius: 4px;
    font-size: .58rem;
    color: var(--ap-text);
    cursor: default;
}

.ap-toolbar-btn.primary {
    background: var(--ap-primary);
    color: #fff;
    border-color: var(--ap-primary);
}

.ap-zoom-controls {
    display: flex;
    align-items: center;
    gap: .3rem;
    margin-left: auto;
}

.ap-zoom-level {
    font-size: .6rem;
    color: var(--ap-text);
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.ap-drop-zone {
    flex: 1;
    padding: .5rem;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}

.ap-editor-canvas {
    width: 100%;
    flex: 1;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border: 1px solid var(--ap-border);
    border-radius: 4px;
}

.ap-canvas-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 18px 18px;
}

.ap-draggable-rect {
    position: absolute;
    border: 2px solid var(--ap-primary);
    background-color: rgba(145, 71, 255, 0.2);
    border-radius: 4px;
    cursor: default;
}

.ap-draggable-rect-label {
    position: absolute;
    top: -22px;
    left: -2px;
    background-color: var(--ap-primary);
    color: white;
    padding: 0.25rem 0.4rem;
    border-radius: 4px;
    font-size: .55rem;
    font-weight: 600;
    white-space: nowrap;
}
.ap-editor-help {
    text-align: center;
    font-size: .6rem;
    color: var(--ap-text-muted);
    margin-top: .75rem;
    padding-top: .75rem;
    border-top: 1px solid var(--ap-border);
}

/* ── Adaptations spécifiques pour le petit mockup Hero ── */
.hero-mockup .ap-draggable-rect-label {
    font-size: .45rem;
    padding: .1rem .2rem;
    top: -16px;
}

.hero-mockup #hero-panel-editor {
    height: 287px; /* 500px * 0.574 pour éviter le dépassement */
    overflow: hidden;
    position: relative;
}
.hero-mockup #hero-panel-editor .ap-editor-layout {
    width: 800px;
    height: 500px;
    transform: scale(0.574); /* 460px / 800px = 0.575 */
    transform-origin: top left;
    border-radius: 0;
}


/* ── Security ── */
.security-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 60px;
    align-items: center;
}

.security-desc {
    font-size: .95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

.security-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.security-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform .2s, border-color .2s;
}

.security-item:hover {
    transform: translateX(4px);
    border-color: rgba(145, 71, 255, .3);
}

.security-item-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--surface-3);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    border: 1px solid var(--border);
}

.security-item h3 {
    font-size: .9rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.security-item p {
    font-size: .82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.security-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.shield-container {
    text-align: center;
}

.shield {
    position: relative;
    display: inline-flex;
    margin-bottom: 24px;
}

.shield-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(145, 71, 255, .25) 0%, transparent 70%);
    border-radius: 50%;
    animation: shield-pulse 3s ease-in-out infinite;
}

@keyframes shield-pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: .5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 1;
    }
}

.shield-check {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.security-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.sec-badge {
    padding: 4px 12px;
    background: var(--surface-3);
    color: var(--primary);
    font-size: .72rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-strong);
}

/* ── Download CTA ── */
.cta-card {
    position: relative;
    background: linear-gradient(135deg, #1a0a33 0%, #0d0d1a 60%, #1a1a0a 100%);
    border-radius: var(--radius-xl);
    padding: 60px 40px;
    text-align: center;
    overflow: hidden;
    border: 1px solid rgba(145, 71, 255, .3);
    box-shadow: 0 0 80px rgba(145, 71, 255, .15);
}

.cta-bg-pattern {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(145, 71, 255, .12) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 215, 0, .06) 0%, transparent 40%);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.download-icon {
    margin-bottom: 20px;
}

.download-app-icon {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-lg);
    border: 3px solid rgba(255, 255, 255, .25);
    box-shadow: 0 4px 20px rgba(0, 0, 0, .5), 0 0 40px rgba(145, 71, 255, .3);
}

.cta-title {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.cta-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, .8);
    margin-bottom: 28px;
}

.cta-buttons-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.msix-row {
    margin: 12px 0;
}

.msix-coming {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: var(--radius-full);
    font-size: .78rem;
    color: rgba(255, 255, 255, .6);
}

.cta-version {
    font-size: .82rem;
    color: rgba(255, 255, 255, .45);
    margin-bottom: 20px;
}

.cta-guarantees {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 16px;
}

.cta-guarantees span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .82rem;
    color: rgba(255, 255, 255, .75);
}

/* ── About ── */
.about-content-simple {
    max-width: 750px;
    margin: 0 auto;
    background: var(--surface);
    padding: 36px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid var(--border);
}

.about-content-simple p {
    margin-bottom: 16px;
    line-height: 1.8;
    color: var(--text-muted);
    font-size: .95rem;
}

.about-content-simple p:last-of-type {
    margin-bottom: 0;
}

.about-links {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.dev-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--surface-3);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    font-size: .85rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: all .2s;
    min-height: 44px;
}

.dev-link:hover {
    background: var(--primary-pale);
    border-color: rgba(145, 71, 255, .4);
    color: var(--primary-light);
}

.dev-link.discord:hover {
    background: rgba(88, 101, 242, .15);
    border-color: rgba(88, 101, 242, .4);
    color: #7289da;
}

/* ── Footer ── */
.footer {
    background: #08080a;
    padding: 40px 0 24px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
}

.footer-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.footer-info p {
    font-size: .82rem;
    color: var(--text-dim);
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: .82rem;
    color: var(--text-dim);
    text-decoration: none;
    transition: color .2s;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.footer-bottom p {
    font-size: .78rem;
    color: var(--text-dim);
}

/* ── Legal Modal ── */
#openLegalModal {
    cursor: pointer;
}

.legal-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, .7);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
}

.legal-modal-overlay:not([hidden]) {
    display: flex;
}

.legal-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.legal-modal {
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    max-width: 560px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(.95) translateY(10px);
    transition: transform .3s;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .8);
}

.legal-modal-overlay.active .legal-modal {
    transform: scale(1) translateY(0);
}

.legal-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.legal-modal-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

.legal-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: color .2s, background .2s;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.legal-modal-close:hover {
    color: var(--text);
    background: var(--surface-3);
}

.legal-modal-body {
    padding: 24px;
}

.legal-modal-body p {
    font-size: .88rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 12px;
}

.legal-modal-body strong {
    color: var(--primary);
    font-weight: 600;
    display: block;
    margin-top: 8px;
    margin-bottom: 4px;
    font-size: .9rem;
}

/* ── Floating CTA ── */
.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    transition: opacity .35s ease, transform .35s ease;
}

.floating-cta.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(.7) translateY(12px);
}

.floating-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(145, 71, 255, .5);
    transition: all .3s;
    animation: pulse-float 2.5s infinite;
}

.floating-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(145, 71, 255, .7);
}

@keyframes pulse-float {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(145, 71, 255, .5);
    }

    50% {
        box-shadow: 0 4px 30px rgba(145, 71, 255, .8);
    }
}

/* ── Scroll-reveal animations ── */
.feature-card,
.pain-card,
.value-card,
.security-item {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .55s cubic-bezier(.22, 1, .36, 1), transform .55s cubic-bezier(.22, 1, .36, 1),
        border-color .25s, box-shadow .25s;
}

.feature-card.animate-in,
.pain-card.animate-in,
.value-card.animate-in,
.security-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.features-grid .feature-card:nth-child(2) {
    transition-delay: .09s;
}

.features-grid .feature-card:nth-child(3) {
    transition-delay: .18s;
}

.features-grid .feature-card:nth-child(4) {
    transition-delay: .09s;
}

.features-grid .feature-card:nth-child(5) {
    transition-delay: .18s;
}

.features-grid .feature-card:nth-child(6) {
    transition-delay: .27s;
}

.features-grid .feature-card:nth-child(7) {
    transition-delay: .09s;
}

.features-grid .feature-card:nth-child(8) {
    transition-delay: .18s;
}

.pain-points-grid .pain-card:nth-child(2) {
    transition-delay: .1s;
}

.pain-points-grid .pain-card:nth-child(3) {
    transition-delay: .2s;
}

.security-items .security-item:nth-child(2) {
    transition-delay: .1s;
}

.security-items .security-item:nth-child(3) {
    transition-delay: .2s;
}

/* ── Focus & Accessibility — RGAA 10.7 ── */
:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 3px;
    border-radius: 4px;
}

.btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(145, 71, 255, .5);
}

/* ── Reduced motion — RGAA ── */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }

    html {
        scroll-behavior: auto;
    }

    .particle {
        display: none;
    }

    .floating-button {
        animation: none;
    }

    .badge-dot {
        animation: none;
    }

    .bridge-arrow {
        animation: none;
    }

    .shield-glow {
        animation: none;
    }

    .gradient-text {
        animation: none;
        background-position: 0% 50%;
    }

    .hero-actions .btn-primary {
        animation: none;
    }

    .ap-status-dot {
        animation: none;
    }

    .feature-card,
    .pain-card,
    .value-card,
    .security-item {
        opacity: 1 !important;
        transform: none !important;
        transition: box-shadow .2s, border-color .2s !important;
    }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding-top: 120px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-mockup {
        max-width: 420px;
        width: 100%;
    }

    .security-grid {
        grid-template-columns: 1fr;
    }

    .security-visual {
        order: -1;
    }

    .preview-panel {
        grid-template-columns: 1fr;
    }

    .preview-mockup {
        max-width: 520px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(14, 14, 16, .98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        color: var(--text-muted) !important;
        padding: 12px 16px;
    }

    .nav-links a:hover {
        color: var(--text) !important;
    }

    .nav-toggle {
        display: flex;
    }

    .pain-points-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .value-grid {
        flex-direction: column;
    }

    .value-connector {
        transform: rotate(90deg);
    }

    .value-card {
        max-width: 100%;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .cta-buttons-row {
        flex-direction: column;
        align-items: center;
    }

    .hero-mockup {
        max-width: 100%;
    }

    .about-content-simple {
        padding: 24px 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 12px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .hero-logo {
        width: 60px;
        height: 60px;
    }

    .ap-editor-layout {
        grid-template-columns: 100px 1fr;
        height: 260px;
    }

    .preview-tabs {
        gap: 6px;
    }

    .preview-tab-btn {
        font-size: .78rem;
        padding: 8px 12px;
    }
}

/* ============================================================
   Aperçu complet — onglets + panneaux
   ============================================================ */
.preview-section {
    background: var(--bg-alt);
}

.preview-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 36px;
}

.preview-tab-btn {
    padding: 10px 20px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s;
    min-height: 44px;
    font-family: inherit;
}

.preview-tab-btn:hover {
    color: var(--text);
    border-color: rgba(145, 71, 255, .4);
    background: var(--surface-3);
}

.preview-tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(145, 71, 255, .35);
}

.preview-panel {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: center;
    animation: panel-fade .35s ease-out;
}

.preview-panel[hidden] {
    display: none;
}

@keyframes panel-fade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.preview-info h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.3;
}

.preview-info p {
    font-size: .95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 18px;
}

.preview-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.preview-features li {
    position: relative;
    padding-left: 26px;
    font-size: .88rem;
    color: var(--text);
    line-height: 1.5;
}

.preview-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--surface-3);
    border: 1px solid var(--border-strong);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.preview-mockup {
    width: 100%;
}

/* ── Panneaux à contenu vertical — étire l'image sur toute la largeur ── */
#panel-exchange .app-preview {
    min-height: 480px;
}

/* ── Modale dans le mockup (token / export / about) ── */
.ap-modal-mockup {
    position: relative;
    background: rgba(0, 0, 0, .55);
    padding: 1rem .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid var(--ap-border);
    border-bottom: 1px solid var(--ap-border);
    min-height: 300px;
}

.ap-modal-card {
    background: var(--ap-surface);
    border: 1px solid var(--ap-border);
    border-radius: 8px;
    padding: .9rem 1rem;
    width: 100%;
    max-width: 340px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .6);
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.ap-modal-title {
    font-size: .9rem;
    font-weight: 700;
    color: var(--ap-text);
    margin-bottom: .2rem;
}

.ap-modal-body {
    font-size: .68rem;
    color: var(--ap-text-muted);
    line-height: 1.5;
}

.ap-modal-body strong {
    color: var(--ap-text);
    font-weight: 600;
}

.ap-modal-actions {
    display: flex;
    gap: .5rem;
    justify-content: flex-end;
    margin-top: .6rem;
    padding-top: .55rem;
    border-top: 1px solid var(--ap-border);
}

.ap-modal-actions.center {
    justify-content: center;
}

/* Écran de bienvenue (onglet Connexion) */
.ap-welcome-dim {
    padding: 1rem;
    background: var(--ap-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--ap-border);
}

.ap-welcome-content {
    text-align: center;
    max-width: 360px;
}

.ap-welcome-content h2 {
    font-size: 1rem;
    color: var(--ap-text);
    font-weight: 700;
    margin-bottom: .35rem;
}

.ap-welcome-content p {
    font-size: .72rem;
    color: var(--ap-text-muted);
    margin-bottom: .75rem;
}

.ap-welcome-steps {
    text-align: left;
    padding-left: 1rem;
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.ap-welcome-steps li {
    font-size: .68rem;
    color: var(--ap-text);
    line-height: 1.5;
}

/* Export options dans la modale */
.ap-export-options {
    display: flex;
    flex-direction: column;
    gap: .45rem;
}

.ap-export-option {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    padding: .5rem;
    background: var(--ap-bg);
    border: 1px solid var(--ap-border);
    border-radius: 5px;
}

.ap-export-option>span:last-child {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    flex: 1;
}

.ap-export-option strong {
    font-size: .68rem;
    color: var(--ap-text);
    font-weight: 600;
}

.ap-export-option small {
    font-size: .58rem;
    color: var(--ap-text-muted);
}

/* Modale À propos */
.ap-modal-card.about {
    max-width: 380px;
    gap: .45rem;
}

.ap-about-header {
    display: flex;
    align-items: center;
    gap: .5rem;
    justify-content: center;
    padding-bottom: .45rem;
}

.ap-about-icon {
    font-size: 1.8rem;
}

.ap-about-title {
    font-size: 1.2rem;
    color: var(--ap-gold);
    font-weight: 800;
}

.ap-about-version {
    display: flex;
    align-items: center;
    gap: .4rem;
    justify-content: center;
    font-size: .72rem;
    color: var(--ap-text);
}

.ap-about-version strong {
    color: var(--ap-primary);
    font-weight: 700;
}

.ap-about-update {
    text-align: center;
    font-size: .62rem;
    color: var(--ap-text-muted);
}

.ap-about-divider {
    height: 1px;
    background: var(--ap-border);
    margin: .2rem 0;
}

.ap-about-developer {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.ap-about-developer strong {
    font-size: .72rem;
    color: var(--ap-text);
    font-weight: 600;
}

.ap-about-email {
    font-size: .62rem;
    color: var(--ap-primary);
}

.ap-about-features h4 {
    font-size: .72rem;
    color: var(--ap-text);
    font-weight: 700;
    margin-bottom: .3rem;
}

.ap-about-features ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.ap-about-features li {
    font-size: .62rem;
    color: var(--ap-text-muted);
    line-height: 1.4;
}

.ap-about-links {
    display: flex;
    gap: .5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.ap-about-link {
    padding: .35rem .7rem;
    font-size: .62rem;
    font-weight: 600;
    border-radius: 4px;
    border: 1px solid var(--ap-border);
    background: var(--ap-bg);
    color: var(--ap-text);
}

.ap-about-link.discord {
    border-color: rgba(88, 101, 242, .45);
    color: #7289da;
}

.ap-about-link.tip {
    border-color: rgba(255, 215, 0, .45);
    color: var(--ap-gold);
}

/* Responsive — onglets d'aperçu */
@media (max-width: 1024px) {
    .preview-panel {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .preview-info {
        order: 1;
    }

    .preview-mockup {
        order: 2;
        max-width: 520px;
        margin: 0 auto;
    }
}