* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden; /* Empêche le défilement horizontal */
}

/* HEADER */
header {
    background-color: #333;
    color: #fff;
    padding: 15px 30px; /* Ajout de padding latéral pour plus d’espace */
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Ombre pour donner de la profondeur */
}

header .logo h1 {
    font-size: 2.2rem; /* Légèrement réduit pour équilibrer le padding */
    font-weight: 700; /* Texte plus gras pour plus d'impact */
}

header .logo span {
    color: #ff4081;
    font-weight: bold; /* Accentue la couleur */
}

nav ul {
    list-style: none;
}

nav ul li {
    display: inline-block;
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease; /* Transition pour un effet de hover lisse */
}

nav ul li a:hover {
    color: #ff4081; /* Change de couleur au survol */
}

/* HERO SECTION */
.hero {
    background-image: url('hero.jpg');
    background-size: cover;
    background-position: center;
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #000;
    padding: 40px 20px; /* Ajout de padding plus large */
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2); /* Effet d’ombre interne pour plus de contraste */
}

.hero h2 {
    font-size: 3.5rem;
    color: #000; /* Contraste mieux avec le fond */
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); /* Ombre de texte pour la lisibilité */
}

.hero p {
    font-size: 1.5rem;
    color: #000;
    margin-bottom: 30px;
}

/* CALL-TO-ACTION BUTTON */
.cta-button {
    background-color: #ff4081;
    color: #fff;
    padding: 12px 24px; /* Plus large pour une meilleure visibilité */
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 8px; /* Coins arrondis plus marqués */
    margin-top: 15px;
    transition: background-color 0.3s ease, transform 0.2s ease; /* Transitions pour un effet de hover */
}

.cta-button:hover {
    background-color: #e7356c;
    transform: scale(1.05); /* Légèrement plus grand au survol */
}

/* SECTIONS: ABOUT, GAMES, TEAM, FOOTER */
.about, .games, .team, footer {
    padding: 60px 20px;
    text-align: center;
    background-color: #fff; /* Fond blanc pour une séparation nette */
    margin-top: 20px; /* Espacement entre les sections */
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* Ombre pour chaque section */
}

.games .game-list {
    display: flex;
    flex-wrap: wrap; /* Permet de revenir à la ligne si nécessaire */
    justify-content: space-around;
    gap: 20px; /* Espacement entre les éléments */
}

.games .game {
    margin: 20px;
    max-width: 250px;
    transition: transform 0.2s ease; /* Transition pour effet de zoom */
}

.games .game:hover {
    transform: scale(1.05); /* Zoom léger au survol */
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Fond semi-transparent */
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
}

.games .screenshot-gallery img {
    cursor: pointer;
}

.game img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Ombre pour donner du relief */
}

/* TEAM MEMBER */
.team-member {
    margin: 20px 0;
}

.screenshot-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.screenshot {
  max-width: 100%;
  max-height: 200px; /* Limite la taille maximale en hauteur pour les images 9:16 */
  width: auto;
  height: auto;
  object-fit: contain; /* Ajuste l'image sans la déformer */
  transition: transform 0.3s ease;
}

.screenshot:hover {
  transform: scale(1.05); /* Ajoute un effet de zoom au survol */
}


.lightbox {
    display: none; /* Caché par défaut */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    text-align: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 8px;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1;
}

.arrow.left {
    left: 10px;
}

.arrow.right {
    right: 10px;
}

.arrow:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* FOOTER */
footer {
    background-color: #333;
    color: #fff;
    padding: 30px 20px;
    border-radius: 0; /* Coins non arrondis pour le footer */
    text-align: center;
    font-size: 0.9rem;
}

footer ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 15px;
}

footer ul li a {
    color: #ff4081;
    text-decoration: none;
    transition: color 0.3s ease; /* Effet de hover sur les liens */
}

footer ul li a:hover {
    color: #fff;
}
