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

:root {
    --color-background: #FFFFFF;
    --color-primary: #344966;
    --color-secondary: #B4CDED;
    --color-text: #0D1821;
    --color-text-light: #344966;
    --color-accent: #BFCC94;
    --font-main: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

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

/* ==================== HEADER ==================== */
header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    z-index: 1001;
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    flex-shrink: 0;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
    white-space: nowrap;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    padding: 8px;
    flex-shrink: 0;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--color-text-light);
    font-weight: 500;
    transition: color 0.3s;
    cursor: pointer;
}

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

.btn-download {
    background: var(--color-primary);
    color: white;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 73, 102, 0.3);
}

/* ==================== HERO ==================== */
.hero {
    padding: 60px 20px 80px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 22px;
    color: var(--color-text-light);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.hero-image {
    margin-top: 60px;
    max-width: 400px;
    width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    filter: drop-shadow(0 20px 40px rgba(52, 73, 102, 0.2));
}

/* ==================== FEATURES ==================== */
.features {
    padding: 80px 40px;
    background: linear-gradient(135deg, rgba(180, 204, 237, 0.1), rgba(191, 204, 148, 0.1));
}

.features h2 {
    text-align: center;
    font-size: 40px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 16px;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ==================== PACKS ==================== */
.packs {
    padding: 80px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.packs h2 {
    text-align: center;
    font-size: 40px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.packs-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--color-text-light);
    margin-bottom: 50px;
}

.packs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.pack-card {
    background: white;
    border: 2px solid var(--color-secondary);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.pack-card:hover {
    border-color: var(--color-primary);
    transform: scale(1.05);
}

.pack-emoji {
    font-size: 40px;
    margin-bottom: 12px;
}

.pack-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.pack-price {
    font-size: 14px;
    color: var(--color-accent);
    font-weight: 600;
}

/* ==================== PRICING ==================== */
.pricing {
    padding: 80px 40px;
    background: var(--color-primary);
    color: white;
    text-align: center;
}

.pricing h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 40px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-item {
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.pricing-item h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.pricing-item p {
    font-size: 16px;
    opacity: 0.9;
}

/* ==================== SCREENSHOTS ==================== */
.screenshots {
    padding: 80px 40px;
    text-align: center;
}

.screenshots h2 {
    font-size: 40px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 50px;
}

.screenshots-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.screenshot {
    min-width: 250px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* ==================== FOOTER ==================== */
footer {
    padding: 60px 40px 30px;
    background: #F0F4EF;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.footer-logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-links a {
    color: var(--color-text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    cursor: pointer;
}

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

.copyright {
    font-size: 14px;
    color: var(--color-text-light);
}

/* ==================== MODAL/POPUP ==================== */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.modal-content {
    background-color: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
    position: relative;
    box-sizing: border-box;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    font-weight: 300;
    color: var(--color-text-light);
    cursor: pointer;
    transition: color 0.3s;
    background: none;
    border: none;
    line-height: 1;
}

.modal-close:hover {
    color: var(--color-primary);
}

.modal-body h1 {
    color: var(--color-primary);
    font-size: 32px;
    margin-bottom: 10px;
    padding-right: 40px;
}

.modal-body h2 {
    color: var(--color-primary);
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 12px;
}

.modal-body h3 {
    color: var(--color-text);
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 8px;
}

.modal-body p {
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 16px;
}

.modal-body ul {
    margin-left: 20px;
    margin-bottom: 16px;
}

.modal-body ul.games-list {
    margin-left: 0; /* Override pour ne pas décaler la liste de jeux */
}

.modal-body li {
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 8px;
}

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

.modal-body hr {
    border: none;
    border-top: 1px solid var(--color-secondary);
    margin: 30px 0;
}

/* Style popup pack */
.pack-modal-header {
    text-align: center;
    margin-bottom: 10px;
    padding: 0;
}

.pack-modal-emoji {
    font-size: 100px; /* Retour à une taille raisonnable */
    margin-bottom: 16px;
    line-height: 1;
}

.pack-modal-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
    padding: 0;
}

.pack-modal-price {
    font-size: 20px;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 16px;
}

.pack-modal-description {
    font-size: 16px;
    color: var(--color-text-light);
    font-style: italic;
}

.games-list {
    list-style: none;
    padding: 0;
    margin: 24px 0;
}

.games-list li {
    background: linear-gradient(135deg, rgba(180, 204, 237, 0.1), rgba(191, 204, 148, 0.1));
    padding: 16px 20px;
    margin-bottom: 12px;
    border-radius: 12px;
    font-size: 16px;
    color: var(--color-text);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.games-list li:before {
    content: "✓";
    color: var(--color-accent);
    font-weight: bold;
    font-size: 20px;
    flex-shrink: 0;
    min-width: 20px;
}

.btn-buy {
    width: 100%;
    background: var(--color-primary);
    color: white;
    padding: 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 18px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 24px;
}

.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 73, 102, 0.3);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    header {
        padding: 12px 20px;
    }

    .logo {
        gap: 8px;
    }

    .logo img {
        width: 36px;
        height: 36px;
    }

    .logo-text {
        font-size: 18px;
    }

    .menu-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        max-width: 300px;
        background: white;
        flex-direction: column;
        justify-content: center;
        gap: 32px;
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        padding: 40px;
    }

    nav.active {
        right: 0;
    }

    nav a {
        font-size: 18px;
        padding: 12px 0;
    }

    .btn-download {
        width: 100%;
        text-align: center;
    }

    .hero {
        padding: 40px 20px 60px;
    }

    .hero h1 {
        font-size: 32px;
        line-height: 1.3;
        margin-bottom: 16px;
        padding: 0 10px;
    }

    .hero p {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 32px;
        padding: 0 10px;
    }

    .hero-image {
        margin-top: 40px;
        max-width: 100%;
        padding: 0 20px;
    }

    .features h2, .packs h2, .pricing h2, .screenshots h2 {
        font-size: 32px;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }

    .modal-content {
        padding: 30px 24px;
        width: 95%;
        max-height: 90vh;
    }

    .modal-body h1 {
        font-size: 26px;
    }

    .modal-body h2 {
        font-size: 20px;
    }

    .pack-modal-emoji {
        font-size: 72px;
    }

    .pack-modal-title {
        font-size: 24px;
    }

    .modal-close {
        top: 15px;
        right: 15px;
        font-size: 28px;
    }
}

@media (max-width: 400px) {
    header {
        padding: 10px 16px;
    }

    .logo img {
        width: 32px;
        height: 32px;
    }

    .logo-text {
        font-size: 16px;
    }

    .menu-toggle span {
        width: 24px;
        height: 2.5px;
    }

    .hero {
        padding: 30px 16px 50px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .hero-image {
        margin-top: 32px;
        padding: 0 16px;
    }
}
