/* Fond général et texte */
body {
    background-color: #ffffbd; /* Fond sombre pour toute la page */
    margin: 0;
    padding: 0;
    /*filter: url(#grain);*/
}

.page-background {
    filter: url(#grain);
}

/* Bannière */
.banner {
    background: linear-gradient(45deg, #e9c46a, #f4a261, #e76f51);
}

.banner-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

h1.white-text.center-align {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    color: white;
    margin-top: 20px;
    margin-bottom: 0;
    text-align: center;
}

.subtitle {
    font-family: Bebas Neue; color:#e76f51;
    position: absolute;
    top: 40px;
    left: 58%;
    transform: translateX(-50%) rotate(-10deg);
    background: #ffeb3b;
    padding: 5px 15px;
    color: #333;
    text-transform: uppercase;
    border-radius: 4px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

.nav-tabs {
    padding-bottom: 25px;
}

/* Menu de navigation */
nav a.white-text {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: 1.2rem;
    color: white;
    text-align: center;
    padding: 10px 20px;
    display: inline-block;
}

nav a.white-text:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Contenu principal */
.container {
    margin-top: 2%;
    margin-bottom: 2%;
    padding-top: 2%;
    padding-bottom: 2%;
    border-radius: 25px;
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
}

/* Section projet avec l'image de fond */
.project-section {
    padding-top: 50px;
    padding-bottom: 50px;
    position: relative;
    width: 100%;
    height: 300px;
    background: url('../img/magmaggedon.png') center/cover no-repeat;
    border-radius: 25px;
    transition: opacity 0.3s ease-in-out;
}

.project-section {
    position: relative;
    overflow: hidden;
    border-radius: 25px;
}

.project-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/magmaggedon.png') center/cover no-repeat;
    filter: blur(4px);
    transition: transform 0.5s ease-in-out;
}

.project-section:hover::before {
    transform: scale(1.2);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 25px;
}

.project-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.project-content h4 {
    font-size: 2rem;
    font-family: 'Lacquer', sans-serif;
    margin: 0;
}

.project-content p {
    font-size: 1rem;
    margin-top: 5px;
}

/* Section de texte EN/FR */
.description {
    background-color: #264653; /* Fond spécifique pour cette section */
    border-top: 3px solid #fe933b;
    border-bottom: 3px solid #fe933b;
}

.description .container {
    padding: 20px;
}

.description .row {
    margin: 0;
}

.description .center-align {
    margin-bottom: 10px;
}

.description p {
    font-size: 1.2rem;
    text-align: center;
}

/* Grille d'images de jeux */
.game-img {
    aspect-ratio: 1/1; overflow: hidden; object-fit: cover;
}

/* Responsivité */
@media (max-width: 768px) {
    .project-content h4 {
        font-size: 1.8rem;
    }

    .project-content p {
        font-size: 1rem;
    }

    footer .container {
        flex-direction: column;
        align-items: center;
    }

    footer ul {
        margin-top: 20px;
    }

    .game-img {
        height: 150px;
    }
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 colonnes égales */
    gap: 10px; /* Espace entre les jeux */
}

.game {
    position: relative;
    aspect-ratio: 1/1; /* Carré parfait */
    overflow: hidden;
    border: 3px solid #fe933b; /* Bordure invisible par défaut */
    transition: border 0.3s ease-in-out;
}

.game img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease-in-out;
}

.big {
    grid-column: span 2;
    grid-row: span 2; /* Prend 2 lignes et 2 colonnes */
}

.game-title {
    position: absolute;
    bottom: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    padding: 5px 10px;
    font-size: 18px;
    font-weight: bold;
    font-family: 'Bebas Neue', sans-serif;
    opacity: 0; /* Caché par défaut */
    transition: opacity 0.3s ease-in-out;
}

/* Effet au survol */
.game:hover {
    border: 3px solid rgb(255, 255, 255); /* Liseré jaune */
}

.game:hover img {
    filter: blur(5px);
}

.game:hover .game-title {
    opacity: 1; /* Afficher le titre */
}

.page-footer {
    background: linear-gradient(45deg, #e76f51, #f4a261, #e9c46a);
}
/* Carrousel principal */
.mainSwiper {
  width: 100%;
  margin-bottom: 10px;
}
.mainSwiper .swiper-slide{
  display: flex;
  align-items: center;
  justify-content: center;
}
.mainSwiper .swiper-slide img {
  width: 100%;
  object-fit: cover;
}

/* Carrousel des miniatures avec scroll */
.thumbSwiper {
  width: 100%;
  overflow: hidden;
  cursor: grab;
}
.thumbSwiper .swiper-wrapper {
  display: flex;
}
.thumbSwiper .swiper-slide {
  width: 30%; /* Taille des miniatures */
  flex-shrink: 0;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s;

  display: flex;
  align-items: center;
  justify-content: center;
}
.thumbSwiper .swiper-slide img {
  width: 100%;

  object-fit: cover;
}
.thumbSwiper .swiper-slide-thumb-active {
    opacity: 1;
  outline: 2px solid white;
  outline-offset: -2px; /* Garde l'effet sans bouger la miniature */
}
/* Effet drag */
.thumbSwiper .swiper-wrapper.active {
  cursor: grabbing;
}

/* Flèche suivante */
.swiper-button-next {
    color: #ff5733; /* Change cette couleur pour celle que tu veux */
  }
  
  /* Flèche précédente */
  .swiper-button-prev {
    color: #ff5733; /* Idem ici */
  }
  
  /* (Optionnel) : Ajouter un effet au survol */
  .swiper-button-next:hover, .swiper-button-prev:hover {
    color: #ff0000; /* Change la couleur au survol */
  }