/* Styles globaux */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
}

/* Header */
header {
    background-color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

header .logo {
    font-size: 1.8em;
    font-weight: bold;
    color: #004b1d;
    padding-left: 170px;
}

header .logo img {
    height: 50px;
}

header .stats {
    display: flex;
    gap: 20px;
    font-size: 1em;
    color: #555;
    padding-right: 170px;
}

header .stats div {
    display: flex;
    align-items: center;
    gap: 10px;
}

header .stats i {
    font-size: 1.2em;
    color: #004b1d;
}

/* Carousel */
.carousel {
    position: relative;
    overflow: hidden;
    margin: 0px auto;
    height: 400px;
    max-width: 80%;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 100%;
}

.carousel-item img {
    width: 100%;
    display: block;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
    z-index: 10;
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

/* Main Content */
main {
    padding: 20px;
}

.game-section {
    margin: 20px auto;
    max-width: 80%;
}

.game-section h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #333;
}

.game-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.game-card {
    background-color: white;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s, box-shadow 0.3s;
}

.game-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.game-card img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.game-card h3 {
    font-size: 1.2em;
    margin: 10px 0;
    color: #004b1d;
}

.game-card .participation {
    color: green;
    font-size: 0.9em;
}

.game-card .expiry {
    font-size: 0.8em;
    color: gray;
    margin: 5px 0;
}

.game-card button {
    background-color: #004b1d;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1em;
}

/* Newsletter */
.newsletter-container {
    background-color: #ffffff;
    margin: 40px auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 600px;
}

.newsletter-container h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 10px;
}

.newsletter-container p {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input {
    flex: 1;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
}

.newsletter-form button {
    padding: 10px 20px;
    font-size: 14px;
    border: none;
    border-radius: 5px;
    background-color: #004b1d;
    color: white;
    cursor: pointer;
}

.newsletter-form button:hover {
    background-color: green;
}

/* Footer */
footer {
    background-color: #ffffff;
    color: white;
    padding: 20px;
    text-align: center;
}

footer nav {
    margin-top: 10px;
}

footer nav a {
    color: rgb(66, 66, 66);
    text-decoration: none;
    margin: 0 10px;
    font-size: 0.9em;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }
    header .logo {
    font-size: 1.8em;
    font-weight: bold;
    color: #004b1d;
    padding-left: 0px;
    align-items: left;

}
header .logo img {
    height: 35px;
}

    header .stats {
        display: none;
        flex-direction: column;
        gap: 10px;
    }
            /* Header */
header {
    background-color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px;
}

    .carousel {
        height: auto;
        height: 200px;
        max-width: 100%;
    }

    .game-section {
        padding: 10px;
        height: 100%;
    }
    .game-section {
    margin: 7px auto;
    max-width: 100%;
}

    .game-cards {
        grid-template-columns: 1fr;
    }

    .newsletter-container {
        padding: 15px;
        margin: 20px auto;
        margin-left: 20px;
        margin-right: 20px;
    }
    .newsletter-container h2 {
    color: #333;
    font-size: 18px;
    margin-bottom: 10px;
}

    footer {
        padding: 15px;
    }
    .game-card {
    padding: 8px;
}
footer nav a {
    color: rgb(66, 66, 66);
    text-decoration: none;
    margin: 0 5px;
    font-size: 0.7em;
    font-weight: bold;
}
footer nav {
    margin-top: 5px;
}
}

@media (max-width: 1200px) {
    header {
        flex-wrap: wrap;
    }

    .carousel {
        max-width: 100%;
    }

    .game-cards {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}