/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    overflow-x: hidden;
}

/* Style de base pour le body */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-image: url('background.png');
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Conteneur principal avec dégradé */
.main-content {
    background: rgba(0, 0, 0, 0.7);
    min-height: calc(100vh - 200px);
    padding-top: 80px;
}

/* Site header */
.site-header {
    padding: 20px 40px;
    background-color: rgba(15, 15, 37, 0.9);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Language selector */
.language-selector {
    position: relative;
    margin-right: 20px;
}

.language-button {
    padding: 8px 15px;
    background-color: #00aaff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.language-button:hover {
    background-color: #0088cc;
}

.language-dropdown {
    display: none;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 5px;
    padding: 10px;
    width: 100px;
    top: 40px;
    left: 0;
    z-index: 1001;
}

.language-dropdown a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 5px;
    transition: background-color 0.3s ease;
}

.language-dropdown a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Logo */
.logo h1 {
    font-family: 'Exo 2', sans-serif;
    font-size: 2em;
    color: #00aaff;
}

/* Main navigation */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    padding: 0;
    margin: 0;
}

.main-nav ul li {
    display: inline;
}

.main-nav a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.main-nav a:hover {
    color: #00aaff;
}

/* Auth buttons */
.auth-buttons {
    display: flex;
    gap: 10px;
}

.login-button {
    padding: 10px 20px;
    font-size: 1em;
    color: #ffffff;
    background-color: #00aaff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-button:hover {
    background-color: #0088cc;
}

/* Hero section */
.hero-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero-content h2 {
    font-size: 2em;
    color: #00aaff;
    margin-bottom: 10px;
}

.game-title {
    font-family: 'Exo 2', sans-serif;
    font-size: 4em;
    color: #00aaff;
    margin-bottom: 20px;
}

.game-description-container {
    background-color: rgba(15, 15, 37, 0.7);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #00aaff;
    max-width: 800px;
    margin: 0 auto 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.game-description {
    font-size: 1.2em;
    line-height: 1.8;
    margin: 0;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.2em;
    color: #ffffff;
    background: linear-gradient(145deg, #00aaff, #0077ff);
    text-decoration: none;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 170, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    background: linear-gradient(145deg, #0088cc, #0055aa);
    box-shadow: 0 6px 20px rgba(0, 170, 255, 0.6);
    transform: translateY(-2px);
}

/* About section */
.about-section {
    padding: 100px 20px;
    text-align: center;
}

.about-content h2 {
    font-size: 2.5em;
    color: #00aaff;
    margin-bottom: 20px;
}

.about-description {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.features {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.feature {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    width: 30%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.feature h3 {
    font-size: 1.5em;
    color: #00aaff;
    margin-bottom: 10px;
}

.feature p {
    font-size: 1em;
}

.feature img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 10px;
}

/* Gallery section */
.gallery-section {
    padding: 100px 20px;
    text-align: center;
}

.gallery-section h2 {
    font-size: 2.5em;
    color: #00aaff;
    margin-bottom: 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    border: 2px solid #00aaff;
    border-radius: 10px;
    background-color: rgba(15, 15, 37, 0.5);
}

.gallery-item {
    background: linear-gradient(145deg, #1e1e3a, #2a2a4a);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    border: 2px solid #00aaff;
    border-radius: 8px;
    cursor: pointer;
}

/* System Requirements section */
.system-requirements-section {
    padding: 100px 20px;
}

.system-requirements-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.system-requirements-content, .download-content {
    flex: 1;
    min-width: 300px;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(0, 170, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.system-requirements-content:hover, .download-content:hover {
    transform: translateY(-5px);
}

.system-requirements-content h2, .download-content h2 {
    font-size: 2em;
    color: #00aaff;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
}

.system-requirements-content h2::after, .download-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #00aaff;
}

.download-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.download-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.2em;
    color: #ffffff;
    background: linear-gradient(145deg, #00aaff, #0077ff);
    text-decoration: none;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 170, 255, 0.4);
    position: relative;
    overflow: hidden;
    margin: 20px 0;
}

.download-button:hover {
    background: linear-gradient(145deg, #0088cc, #0055aa);
    box-shadow: 0 6px 20px rgba(0, 170, 255, 0.6);
    transform: translateY(-2px);
}

.platform-availability {
    margin-top: 30px;
    text-align: center;
    width: 100%;
}

.platform-availability p {
    margin-bottom: 10px;
    color: #aaa;
}

.platform-text {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.platform {
    padding: 8px 18px;
    border-radius: 5px;
    font-size: 1em;
    color: white;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.platform:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.platform.windows {
    background-color: #00aaff;
}

.platform.mac {
    background-color: #333;
}

/* Footer */
.site-footer {
    padding: 50px 20px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.9);
    margin-top: 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 10px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
    background-color: rgba(0, 170, 255, 0.1);
    padding: 10px 20px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.social-link:hover {
    background-color: rgba(0, 170, 255, 0.3);
}

.social-link .icon {
    width: 20px;
    height: 20px;
}

.copyright {
    font-size: 0.9em;
}

/* Login popup */
.login-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: #1a1a3a;
    padding: 30px;
    border-radius: 10px;
    width: 350px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    position: relative;
}

.popup-content .close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: #cccccc;
    cursor: pointer;
}

.popup-content h2 {
    font-size: 1.8em;
    color: #00aaff;
    margin-bottom: 20px;
}

.input-container {
    margin-bottom: 20px;
}

.input-container input {
    width: 100%;
    padding: 12px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid #00aaff;
    border-radius: 5px;
    color: #ffffff;
    font-size: 1em;
    outline: none;
}

.login-popup-button {
    width: 100%;
    padding: 12px;
    font-size: 1em;
    color: #ffffff;
    background-color: #00aaff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-popup-button:hover {
    background-color: #0088cc;
}

.sign-in-text {
    font-size: 0.9em;
    margin-top: 20px;
}

.sign-in-text a {
    color: #00aaff;
    text-decoration: none;
}

.sign-in-text a:hover {
    color: #0088cc;
}

/* Modal for gallery images */
.modal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1002;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    color: #ffffff;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 767px) {
    html, body {
        height: auto;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav ul {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 10px;
        margin-top: 10px;
        width: 100%;
    }

    .auth-buttons {
        margin-top: 10px;
        width: 100%;
    }

    .game-title {
        font-size: 2.5em;
    }

    .features {
        flex-direction: column;
    }

    .feature {
        width: 100%;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .system-requirements-container {
        flex-direction: column;
    }

    .system-requirements-content, .download-content {
        width: 100%;
    }

    .popup-content {
        width: 90%;
        padding: 20px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .feature {
        width: 45%;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) and (max-width: 1440px) {
    .feature {
        width: 30%;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1441px) {
    .feature {
        width: 22%;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
