/* ===== Variables & Reset ===== */
:root {
    --bg-dark: #0f0f12;
    --bg-card: #18181f;
    --bg-card-hover: #1e1e26;
    --accent: #7c5cff;
    --accent-hover: #9278ff;
    --accent-soft: rgba(124, 92, 255, 0.15);
    --discord: #5865f2;
    --discord-hover: #6d7aff;
    --text: #e8e8ed;
    --text-muted: #9a9aa8;
    --border: rgba(255, 255, 255, 0.06);
    --radius: 12px;
    --radius-lg: 16px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== Header & Navigation ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(15, 15, 18, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--discord));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
}

.btn-discord {
    background: var(--discord);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-weight: 600;
}

.btn-discord:hover {
    background: var(--discord-hover);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
}

.btn-full {
    width: 100%;
}

.btn-discord-large {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--discord);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.2s;
}

.btn-discord-large:hover {
    background: var(--discord-hover);
    transform: translateY(-2px);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
    overflow: hidden;
}

.hero-bg-image {
    background-image: url('https://images.unsplash.com/photo-1514565131-fce0801e5785?w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(to bottom, rgba(15, 15, 18, 0.7) 0%, rgba(15, 15, 18, 0.85) 100%),
        radial-gradient(ellipse 80% 50% at 50% -20%, var(--accent-soft), transparent),
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(88, 101, 242, 0.08), transparent);
    pointer-events: none;
}

.hero-content {
    position: relative;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 auto 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Page Header with Background ===== */
.page-header-bg {
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1449824913935-59a10b8d1533?w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.page-header-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 15, 18, 0.75), rgba(15, 15, 18, 0.95));
    z-index: 0;
}

.page-header-bg .container {
    position: relative;
    z-index: 1;
}

/* ===== Features ===== */
.features {
    padding: 5rem 0;
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.2s;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(124, 92, 255, 0.3);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ===== CTA ===== */
.cta {
    position: relative;
    padding: 4rem 0;
    text-align: center;
    background-image: url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 15, 18, 0.85);
    z-index: 0;
}

.cta .container {
    position: relative;
    z-index: 1;
}

.cta h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.cta p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* ===== Discord Section ===== */
.discord-section {
    position: relative;
    padding: 5rem 0;
    text-align: center;
    background-image: url('https://images.unsplash.com/photo-1519501025264-65ba15a82390?w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.discord-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 15, 18, 0.8);
    z-index: 0;
}

.discord-section .container {
    position: relative;
    z-index: 1;
}

.discord-section h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.discord-section p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.discord-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    opacity: 0.7;
    margin-top: 1rem;
}

/* ===== Page Header ===== */
.page-header {
    padding: 8rem 0 3rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-muted);
}

/* ===== Packs ===== */
.packs-section {
    padding: 2rem 0 4rem;
}

.packs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.pack-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: all 0.2s;
}

.pack-card:hover {
    border-color: rgba(124, 92, 255, 0.3);
    transform: translateY(-4px);
}

.pack-featured {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

.pack-badge {
    position: absolute;
    top: -10px;
    right: 1rem;
    background: var(--accent);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.pack-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.pack-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.pack-features {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.pack-features li {
    padding: 0.35rem 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.pack-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1rem;
}

.pack-card .btn {
    margin-top: auto;
}

.packs-cta {
    padding: 3rem 0;
    text-align: center;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
}

.packs-cta p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* ===== Contact Form ===== */
.contact-section {
    padding: 2rem 0 4rem;
}

.contact-wrapper {
    max-width: 700px;
    margin: 0 auto;
    display: grid;
    gap: 2rem;
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-info {
    background: var(--accent-soft);
    border: 1px solid rgba(124, 92, 255, 0.3);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.contact-info h3 {
    margin-bottom: 1rem;
}

.contact-info ol {
    counter-reset: step;
}

.contact-info li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
}

.contact-info li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    width: 1.5rem;
    height: 1.5rem;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ===== Auth ===== */
.auth-section {
    padding: 2rem 0 4rem;
    max-width: 420px;
    margin: 0 auto;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
}

.auth-switch a {
    color: var(--accent);
}

.form-error {
    color: #f87171;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* ===== Success / License ===== */
.success-section {
    padding: 2rem 0 4rem;
}

.success-card {
    max-width: 500px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
}

.success-card.error {
    border-color: #f87171;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.license-box {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin: 1.5rem 0;
}

.license-box .license-key {
    font-family: monospace;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    display: block;
    margin: 0.5rem 0 1rem;
}

.btn-copy {
    margin-top: 0.5rem;
}

.success-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* ===== Client / Licenses ===== */
.client-section {
    padding: 2rem 0 4rem;
}

.licenses-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.license-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.license-pack {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.license-key-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.license-key-row .license-key {
    font-family: monospace;
    background: var(--bg-dark);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    flex: 1;
    min-width: 200px;
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
}

.license-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.install-guide {
    background: var(--accent-soft);
    border: 1px solid rgba(124, 92, 255, 0.3);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.install-guide h3 {
    margin-bottom: 1rem;
}

.install-guide ol {
    padding-left: 1.5rem;
}

.install-guide li {
    margin-bottom: 0.5rem;
}

.install-guide code {
    background: var(--bg-dark);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.install-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.empty-state {
    color: var(--text-muted);
}

.empty-state a {
    color: var(--accent);
}

.loading {
    color: var(--text-muted);
}

/* ===== Footer ===== */
.footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-card);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        border-bottom: 1px solid var(--border);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .hero {
        padding: 6rem 0 3rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .packs-grid {
        grid-template-columns: 1fr;
    }

    /* Désactiver le parallax sur mobile pour de meilleures performances */
    .hero-bg-image,
    .page-header-bg,
    .cta,
    .discord-section {
        background-attachment: scroll;
    }
}
