/* PYNYX Landing Page Styles */

:root {
    --color-primary: #0ea5e9;      /* Sky blue */
    --color-secondary: #6366f1;     /* Indigo */
    --color-accent: #f59e0b;        /* Amber */
    --color-dark: #0f172a;          /* Slate 900 */
    --color-light: #f8fafc;         /* Slate 50 */
    --color-text: #334155;          /* Slate 700 */
    
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Georgia', serif;
}

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

body {
    font-family: var(--font-main);
    color: var(--color-text);
    line-height: 1.6;
    background: var(--color-light);
}

/* Navigation */
header {
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-primary);
    letter-spacing: 0.1em;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
}

nav a:hover {
    color: var(--color-primary);
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

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

.btn-primary:hover {
    background: var(--color-secondary);
}

.btn-secondary {
    background: white;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 6rem 2rem 4rem;
    background: linear-gradient(135deg, var(--color-dark) 0%, #1e293b 100%);
    color: white;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: #94a3b8;
    margin-bottom: 2rem;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Features Section */
.features {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
}

.features h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
}

.section-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 3rem;
}

/* Feature Themes */
.feature-theme {
    margin-bottom: 4rem;
    text-align: left;
}

.feature-theme h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-primary);
    color: var(--color-dark);
    display: inline-block;
}

.theme-description {
    color: #64748b;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.feature-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--color-dark);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-dark);
    border-bottom: none;
}

.feature-card p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-ready {
    background: #dcfce7;
    color: #166534;
}

.badge-soon {
    background: #fef3c7;
    color: #92400e;
}

.badge-new {
    background: #dbeafe;
    color: #1e40af;
}

/* Waitlist Section */
.waitlist {
    background: var(--color-dark);
    color: white;
    text-align: center;
    padding: 4rem 2rem;
}

.waitlist h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.waitlist p {
    color: #94a3b8;
    margin-bottom: 2rem;
}

.waitlist-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 500px;
    margin: 0 auto;
}

.waitlist-form input {
    flex: 1;
    min-width: 250px;
    padding: 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: var(--color-dark);
    color: #64748b;
    border-top: 1px solid #334155;
}

/* Navigation active */
nav a.active {
    color: var(--color-primary);
    font-weight: 600;
}

/* Secondary Hero */
.hero-secondary {
    padding: 4rem 2rem 3rem;
}

.hero-secondary h1 {
    font-size: 2.5rem;
}

/* Sections */
.section {
    padding: 4rem 2rem;
}

.section-alt {
    background: #f1f5f9;
}

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

.lead {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Process Steps */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step {
    text-align: center;
    padding: 1.5rem;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.step h4 {
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

/* Table Matrix */
.table-responsive {
    overflow-x: auto;
    margin: 2rem 0;
}

.matrix-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.matrix-table th {
    background: var(--color-dark);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.matrix-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.matrix-table tr:hover {
    background: #f8fafc;
}

.matrix-table td:first-child {
    font-weight: 500;
}

.dot {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.dot-required {
    background: #dcfce7;
    color: #166534;
}

.dot-optional {
    background: #dbeafe;
    color: #1e40af;
}

.dot-deducted {
    background: #fef3c7;
    color: #92400e;
}

.dot-na {
    background: #f1f5f9;
    color: #94a3b8;
}

.legend {
    text-align: center;
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 1rem;
}

.legend .dot {
    margin: 0 0.25rem;
}

/* Module Cards */
.module-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.module-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 2px solid #e2e8f0;
    transition: all 0.2s;
}

.module-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.module-ready {
    border-left: 4px solid #22c55e;
}

.module-planned {
    border-left: 4px solid #f59e0b;
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.module-header h3 {
    font-size: 1.25rem;
    color: var(--color-dark);
    margin: 0;
}

.module-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.module-badge.ready {
    background: #dcfce7;
    color: #166534;
}

.module-badge.planned {
    background: #fef3c7;
    color: #92400e;
}

.module-desc {
    color: #64748b;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.module-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.module-features li {
    padding: 0.4rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid #f1f5f9;
}

.module-features li:last-child {
    border-bottom: none;
}

.module-concerned {
    font-size: 0.85rem;
    color: #475569;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

/* Footer Grid */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    text-align: left;
    margin-bottom: 2rem;
}

.footer-grid h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-grid ul {
    list-style: none;
    padding: 0;
}

.footer-grid li {
    margin-bottom: 0.5rem;
}

.footer-grid a {
    color: #94a3b8;
    text-decoration: none;
}

.footer-grid a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    color: #64748b;
}

/* Links in feature sections */
.feature-theme h3 a {
    color: var(--color-dark);
    text-decoration: none;
}

.feature-theme h3 a:hover {
    color: var(--color-primary);
}

.feature-card h4 a {
    color: var(--color-dark);
    text-decoration: none;
}

.feature-card h4 a:hover {
    color: var(--color-primary);
}

.theme-description a {
    color: var(--color-primary);
    font-weight: 600;
}

.theme-description a:hover {
    text-decoration: underline;
}

/* Discuss Link (feature cards) */
.discuss-link {
    display: inline-block;
    margin-left: 0.5rem;
    font-size: 0.8rem;
    color: var(--color-primary);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.discuss-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Feedback Banner */
.feedback-banner {
    background: var(--color-dark);
    color: white;
    text-align: center;
    padding: 3rem 2rem;
}

.feedback-banner h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.feedback-banner p {
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

/* Theme CTA (bouton centré sous grille) */
.theme-cta {
    text-align: center;
    margin-top: 1rem;
}

/* Category nav (fonctionnalites.html) */
.category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.category-nav a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: white;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    border-radius: 9999px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.category-nav a:hover {
    background: var(--color-primary);
    color: white;
}

/* Progress Bars (roadmap) */
.progress-list {
    max-width: 800px;
    margin: 0 auto;
}

.progress-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.progress-label {
    min-width: 200px;
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-dark);
}

.progress-bar {
    flex: 1;
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: 6px;
    transition: width 0.6s ease;
}

.progress-fill-done {
    background: #22c55e;
}

.progress-fill-planned {
    background: #94a3b8;
}

.progress-item .badge {
    min-width: 90px;
    text-align: center;
    font-size: 0.75rem;
}

/* Version tag (timeline cards) */
.version-tag {
    display: inline-block;
    background: var(--color-dark);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}

/* Alpine.js cloak */
[x-cloak] { display: none !important; }

/* Filter Bar */
.filter-bar {
    position: sticky;
    top: 60px;
    z-index: 90;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-bar .container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    width: 100%;
}

.filter-input-wrap {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.filter-input {
    width: 100%;
    padding: 0.6rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-family: var(--font-main);
    transition: border-color 0.2s;
    outline: none;
}

.filter-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.filter-count {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: #64748b;
    pointer-events: none;
}

.filter-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 9999px;
    background: white;
    color: var(--color-text);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-main);
}

.filter-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.filter-btn.filter-active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.filter-reset {
    font-size: 0.85rem;
    color: var(--color-primary);
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    font-family: var(--font-main);
    padding: 0.5rem;
}

.filter-reset:hover {
    text-decoration: underline;
}

/* GitHub Discussions Banner */
.gh-discussions-banner {
    background: #eff6ff;
    border-bottom: 1px solid #bfdbfe;
    padding: 1rem 2rem;
}

.gh-discussions-banner .container {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gh-discussions-banner .gh-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-top: 0.15rem;
}

.gh-discussions-banner .gh-content {
    flex: 1;
}

.gh-discussions-banner .gh-content strong {
    color: #1e40af;
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.gh-discussions-banner .gh-content p {
    color: #334155;
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.5;
}

.gh-discussions-banner .gh-content a {
    color: var(--color-primary);
    font-weight: 600;
}

.gh-discussions-banner .gh-close {
    flex-shrink: 0;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #64748b;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}

.gh-discussions-banner .gh-close:hover {
    color: #1e293b;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.2s;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top:hover {
    background: var(--color-secondary);
    transform: translateY(-2px);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: #64748b;
}

.no-results p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-secondary h1 {
        font-size: 1.75rem;
    }
    
    nav {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    .module-cards {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .matrix-table {
        font-size: 0.8rem;
    }

    .matrix-table th,
    .matrix-table td {
        padding: 0.5rem;
    }

    .progress-item {
        flex-wrap: wrap;
    }

    .progress-label {
        min-width: 100%;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        top: 0;
    }

    .filter-bar .container {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-input-wrap {
        min-width: 100%;
    }

    .gh-discussions-banner .container {
        flex-direction: column;
    }

    .gh-discussions-banner .gh-close {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
    }

    .gh-discussions-banner {
        position: relative;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
}
