/* --- 1. Variables & Reset --- */
:root {
    --bg-dark: #0F172A; /* Bleu nuit profond */
    --bg-card: #1E293B; /* Bleu gris pour les cartes */
    --primary: #7C3AED; /* Violet vibrant */
    --primary-hover: #8B5CF6; /* Violet plus clair */
    --text-main: #F8FAFC; /* Blanc cassé */
    --text-muted: #94A3B8; /* Gris texte */
    --accent-glow: rgba(124, 58, 237, 0.4);
    --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 80px 0;
}

.section-dark {
    background-color: #0B1120;
}
/* Fond alternatif plus sombre */

/* --- 2. Navigation --- */
nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 15px 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    height: 36px;
    width: auto;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

    .logo-text span {
        color: var(--primary);
    }

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

    .nav-links a:not(.btn-nav-buy) {
        color: var(--text-muted);
        font-weight: 500;
        font-size: 0.95rem;
    }

        .nav-links a:not(.btn-nav-buy):hover {
            color: var(--text-main);
        }

.btn-nav-buy {
    background: var(--primary);
    color: white;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

    .btn-nav-buy:hover {
        background: var(--primary-hover);
        box-shadow: 0 0 15px var(--accent-glow);
    }

.mobile-toggle {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- 3. Hero Section --- */
.hero {
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

    /* Effet de fond subtil (Glow) */
    .hero::before {
        content: '';
        position: absolute;
        top: -100px;
        left: 50%;
        transform: translateX(-50%);
        width: 600px;
        height: 600px;
        background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
        z-index: -1;
        opacity: 0.5;
    }

.hero-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1;
}

.badge {
    display: inline-block;
    background: rgba(124, 58, 237, 0.15);
    color: #A78BFA;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #94A3B8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 500px;
}

.hero strong {
    color: var(--text-main);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.store-badge-img {
    height: 45px;
    transition: transform 0.2s;
}

.store-badge-link:hover .store-badge-img {
    transform: scale(1.05);
}

.btn-outline {
    padding: 10px 24px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    font-weight: 500;
}

    .btn-outline:hover {
        background: rgba(255,255,255,0.05);
        border-color: white;
    }

.hero-trust {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Hero Visual (Mockup) */
.hero-visual {
    flex: 1.2;
}

.app-window {
    background: #000;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    overflow: hidden;
}

.window-header {
    background: #1e1e1e;
    padding: 8px 15px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: block;
}

.red {
    background: #FF5F56;
}

.yellow {
    background: #FFBD2E;
}

.green {
    background: #27C93F;
}

/* --- 4. Stats Bar --- */
.stats-bar {
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: rgba(255,255,255,0.02);
    padding: 30px 0;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
}

    .stat-item .number {
        display: block;
        font-size: 2rem;
        font-weight: 800;
        color: var(--text-main);
    }

    .stat-item .label {
        font-size: 0.9rem;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

/* --- 5. Features --- */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

    .section-header h2 {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .section-header p {
        color: var(--text-muted);
        font-size: 1.1rem;
    }

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.3s ease;
}

    .card:hover {
        transform: translateY(-5px);
        border-color: var(--primary);
    }

.card-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- 6. Gallery --- */
.grid-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.3s;
}

    .gallery-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }

    .gallery-item img {
        width: 100%;
        height: auto;
        object-fit: cover;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

.gallery-info {
    padding: 20px;
}

    .gallery-info h4 {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }

    .gallery-info p {
        font-size: 0.9rem;
        color: var(--text-muted);
    }

/* --- 7. Specs Table --- */
.table-wrapper {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}

table {
    width: 100%;
    border-collapse: collapse;
}

td {
    padding: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    vertical-align: middle;
}

tr:last-child td {
    border-bottom: none;
}

.col-head {
    width: 25%;
    font-weight: 600;
    color: var(--primary-hover);
    border-right: 1px solid rgba(255,255,255,0.05);
    background: rgba(255,255,255,0.01);
}

    .col-head i {
        margin-right: 10px;
        width: 20px;
        text-align: center;
    }

/* --- 8. Footer & CTA --- */
.cta-box {
    text-align: center;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(124, 58, 237, 0.1) 100%);
    padding: 60px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 60px;
}

    .cta-box h2 {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    .cta-box p {
        color: var(--text-muted);
        margin-bottom: 30px;
    }

.store-badge-link.big img {
    height: 60px;
}

.footer-links {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 40px;
}

    .footer-links p {
        margin-bottom: 15px;
    }

.socials {
    display: flex;
    justify-content: center;
    gap: 20px;
}

    .socials a {
        color: var(--text-muted);
        text-decoration: underline;
        text-decoration-color: rgba(255,255,255,0.2);
    }

        .socials a:hover {
            color: var(--primary);
        }

/* --- 9. Hub / Portal Page --- */
.hub-hero {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.hub-hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 550px;
    margin: 0 auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.product-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.product-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 30px var(--accent-glow);
}

.product-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-splash {
    margin: -40px -30px 24px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.product-splash img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.product-card:hover .product-splash img {
    transform: scale(1.03);
}

.product-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.product-card h3 {
    font-size: 1.6rem;
    margin-bottom: 6px;
}

.product-card h3 span {
    color: var(--primary);
}

.product-tagline {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-weight: 500;
}

.product-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.product-tags span {
    background: rgba(124, 58, 237, 0.12);
    color: #A78BFA;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.product-cta {
    font-weight: 600;
    color: var(--primary-hover);
    font-size: 0.95rem;
}

.product-card:hover .product-cta {
    color: var(--text-main);
}

/* --- 10. Product Switch Link (Nav) --- */
.product-switch-link {
    color: var(--text-muted) !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: 0.2s;
}

.product-switch-link:hover {
    color: var(--text-main) !important;
    border-color: rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
}

.product-switch-link.active {
    color: var(--primary-hover) !important;
    border-color: rgba(124, 58, 237, 0.3);
    background: rgba(124, 58, 237, 0.08);
}

/* --- 11. Rosetta Theme Overrides --- */
.rosetta-theme {
    --primary: #6366F1;
    --primary-hover: #818CF8;
    --accent-glow: rgba(99, 102, 241, 0.4);
}

.badge-rosetta {
    background: rgba(99, 102, 241, 0.15);
    color: #A5B4FC;
    border-color: rgba(99, 102, 241, 0.3);
}

.btn-rosetta {
    background: #6366F1 !important;
}

.btn-rosetta:hover {
    background: #818CF8 !important;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4) !important;
}

.cta-rosetta {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(99, 102, 241, 0.1) 100%);
}

/* Rosetta: Format Grid */
.format-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.format-tag {
    background: rgba(99, 102, 241, 0.1);
    color: #A5B4FC;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 8px;
    border: 1px solid rgba(99, 102, 241, 0.25);
    font-family: 'Consolas', 'Courier New', monospace;
    letter-spacing: 0.5px;
}

/* Rosetta: Theme Cards */
.grid-2-themes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.theme-card {
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
}

.theme-dark-creative {
    background: #1E1E2D;
}

.theme-light-pro {
    background: #F3F4F6;
    color: #1F2937;
}

.theme-light-pro p,
.theme-light-pro .theme-desc {
    color: #6B7280;
}

.theme-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.theme-header h4 {
    font-size: 1.1rem;
}

.theme-light-pro .theme-header h4 {
    color: #1F2937;
}

.theme-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
}

.theme-default {
    background: rgba(99, 102, 241, 0.15);
    color: #A5B4FC;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 50px;
}

.theme-card code {
    background: rgba(0,0,0,0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.theme-light-pro code {
    background: rgba(0,0,0,0.08);
    color: #374151;
}

.theme-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 8px;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }

    .nav-links {
        display: none;
    }
    /* Pour faire simple, on cache le menu sur mobile dans cet exemple statique */
    .mobile-toggle {
        display: block;
    }

    .grid-4 {
        grid-template-columns: 1fr 1fr;
    }

    .col-head {
        width: 100%;
        border-right: none;
        display: block;
        border-bottom: none;
        padding-bottom: 5px;
        color: var(--primary);
    }

    td {
        display: block;
        padding: 10px 25px 25px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .hub-hero h1 {
        font-size: 2.5rem;
    }
}
