/* Importation de la police inspirée du style futuriste */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

/* Variables globales du thème */
:root {
    --primary-color: #00aaff; /* Bleu céleste */
    --secondary-color: #ffcc00; /* Or lumineux */
    --background-color: #060d1f; /* Noir profond avec une touche de bleu */
    --text-color: #ffffff;
    --accent-color: #8affff; /* Cyan holographique */
    --shadow-color: rgba(0, 170, 255, 0.5);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.3);
}

/* Effet de fond spatial avec un léger grain */
body {
    background: radial-gradient(circle, rgba(6, 13, 31, 0.9) 10%, rgba(2, 6, 20, 1) 100%), url('https://source.unsplash.com/1600x900/?galaxy,stars');
    background-size: cover;
    background-attachment: fixed;
    color: var(--text-color);
    font-family: 'Orbitron', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Effet glassmorphism sur les sections */
.glass-box {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0px 0px 15px var(--shadow-color);
}

/* En-tête */
header {
    background: rgba(6, 13, 31, 0.9);
    padding: 20px;
    text-align: center;
    box-shadow: 0px 4px 10px var(--shadow-color);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

header h1 {
    color: var(--primary-color);
    font-size: 2rem;
    text-transform: uppercase;
}

/* Titre principal */
.main-title {
    text-align: center;
    font-size: 2.5rem;
    margin-top: 120px;
    color: var(--accent-color);
    animation: glow 2s infinite alternate;
}

/* Section d'introduction */
.intro {
    text-align: center;
    margin: 50px auto;
    max-width: 80%;
}

.intro h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.intro-image {
    width: 100%;
    max-width: 800px;
    border-radius: 12px;
    box-shadow: 0px 0px 15px var(--shadow-color);
}

/* Description du jeu */
.game-description {
    max-width: 80%;
    margin: 50px auto;
    padding: 20px;
    background: var(--glass-bg);
    border-radius: 12px;
    box-shadow: 0px 0px 15px var(--secondary-color);
}

.game-description h2 {
    text-align: center;
    color: var(--secondary-color);
}

.game-description p {
    font-size: 1.2rem;
    line-height: 1.6;
    text-align: justify;
}

/* Boutons futuristes */
button {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    padding: 12px 24px;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s;
    box-shadow: 0px 0px 15px var(--shadow-color);
}

button:hover {
    transform: scale(1.1);
    box-shadow: 0px 0px 25px var(--secondary-color);
}

/* Effet d'animation de texte */
@keyframes glow {
    0% { text-shadow: 0 0 5px var(--primary-color); }
    50% { text-shadow: 0 0 15px var(--secondary-color); }
    100% { text-shadow: 0 0 5px var(--primary-color); }
}

h1, h2, h3 {
    animation: glow 2s infinite alternate;
}

/* Liens */
a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

a:hover {
    color: var(--primary-color);
    text-shadow: 0px 0px 10px var(--shadow-color);
}

/* Pied de page */
footer {
    text-align: center;
    padding: 20px;
    background: rgba(6, 13, 31, 0.9);
    box-shadow: 0px -4px 10px var(--shadow-color);
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Importation de la police futuriste */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

/* Variables globales du thème */
:root {
    --primary-color: #00aaff; /* Bleu céleste */
    --secondary-color: #ffcc00; /* Or lumineux */
    --background-color: #060d1f; /* Noir profond avec une touche de bleu */
    --text-color: #ffffff;
    --accent-color: #8affff; /* Cyan holographique */
    --shadow-color: rgba(0, 170, 255, 0.5);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.3);
}

/* Header */
header {
    background: rgba(6, 13, 31, 0.9);
    padding: 15px 0;
    text-align: center;
    box-shadow: 0px 4px 10px var(--shadow-color);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav ul li {
    display: flex;
}

nav ul li a {
    text-decoration: none;
    color: var(--accent-color);
    font-size: 1.2rem;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
}

nav ul li a:hover, .active {
    background: var(--primary-color);
    color: var(--background-color);
    box-shadow: 0px 0px 15px var(--secondary-color);
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: rgba(6, 13, 31, 0.9);
    box-shadow: 0px -4px 10px var(--shadow-color);
    position: relative;
    bottom: 0;
    width: 100%;
    font-size: 1rem;
    color: var(--text-color);
}

footer p {
    margin: 5px 0;
}

.intro img {
    max-width: 500px; /* Limite la taille maximale des images à 500px */
    margin-right: 10px; /* Ajoute un petit espace entre les images */
    margin-bottom: 10px; /* Ajoute un peu d'espace sous chaque image */
    display: inline-block; /* Affiche les images côte à côte */
  }
  
  .gif-first {
    max-width: 400px; 
  }

  /* Centrer la section catalogue */
  .character-catalogue {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: auto;
  }

  /* Conteneur des personnages */
  .character-container {
    display: flex;
    flex-wrap: wrap; /* Permet de revenir à la ligne */
    justify-content: center; /* Centre les cartes horizontalement */
    gap: 20px; /* Espacement entre les cartes */
    max-width: 1000px;
  }

  /* Style des cartes */
  .character-card {
    background-color: #162155;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 23%; /* 4 cartes par ligne */
    min-width: 200px;
    box-sizing: border-box;
  }

  /* Style des images */
  .character-card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
  }

  /* Responsivité : 2 cartes par ligne en petits écrans */
  @media (max-width: 900px) {
    .character-card {
      width: 48%; /* 2 cartes par ligne */
    }
  }

  /* Responsivité : 1 carte par ligne en très petits écrans */
  @media (max-width: 500px) {
    .character-card {
      width: 100%;
    }
  }