/* Style général */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-image: url('conception-plexus-moderne-3d-communications-reseau-techno-moderne.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    overflow-x: hidden;
}

/* Titre */
.neon-title {
    font-size: 3rem;
    text-align: center;
    color: #00aaff;
    text-shadow: 
        0 0 3px #00aaff, 
        0 0 5px #00aaff, 
        0 0 10px #0055ff;
    animation: neon-blink 2s infinite alternate;
    padding: 20px;
}

@keyframes neon-blink {
    from { text-shadow: 0 0 3px #00aaff, 0 0 5px #00aaff, 0 0 10px #0055ff; }
    to { text-shadow: 0 0 1px #00aaff, 0 0 3px #00aaff, 0 0 5px #0055ff; }
}

/* Menu */
.menu {
    display: flex;
    justify-content: center;
    gap: 10px;
    background-color: #333;
    padding: 10px;
    color: #fff;
    text-align: center;
}

.menu a {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    background-color: #555;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.menu a:hover {
    background-color: #007bff;
}

/* Section du jeu */
.game-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

#game-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 400px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #00aaff;
    border-radius: 10px;
    overflow-x: auto;
    overflow-y: hidden;
}

/* Personnage */
.character {
    position: absolute;
    bottom: 10px;
    left: 50px;
    width: 40px;
    height: 40px;
    background: #ff4500;
    border-radius: 5px;
    transition: all 0.5s ease;
    z-index: 10;
}

/* Tours */
.tower {
    position: absolute;
    bottom: 10px;
    width: 20px;
    height: 80px;
    background: #4682b4;
    border-radius: 5px;
    z-index: 5;
}

#tower1 { left: 150px; }
#tower2 { left: 250px; 
;}
#tower3 { left: 350px;
; }
#tower4 { left: 450px;
; }
#tower5 { left: 550px;
     }
#tower6 { left: 650px;
     }

/* Boutons */
.game-controls {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.jump-button, .restart-button {
    padding: 10px 20px;
    background-color: #00aaff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.jump-button:hover, .restart-button:hover {
    background-color: #0077b5;
}

/* Cartes Pokémon */
.pokemon-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 15px;
    margin-top: 20px;
    max-width: 900px;
}

.pokemon-card {
    width: 250px;
    height: 350px;
    perspective: 1000px;
    position: relative;
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 5px solid #ff3333;
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    backface-visibility: hidden;
    transition: transform 0.6s ease;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
}
.neon-title-2 {
    font-size: 3rem;
    text-align: center;
    color: #b51818;
    text-shadow: 
        0 0 3px #02141e, 
        0 0 5px #010b10, 
        0 0 10px #b81111;
    animation: neon-blink 2s infinite alternate;
    padding: 20px;
}
.intro-text{
    text-align: center;
}
.card-front {
    background: #000;
    transform: rotateY(180deg);
    z-index: 1;
}

.card-back {
    transform: rotateY(0deg);
    z-index: 2;
}

.pokemon-card.flipped .card-front {
    transform: rotateY(0deg);
    z-index: 2;
}

.pokemon-card.flipped .card-back {
    transform: rotateY(180deg);
    z-index: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.card-header h3 {
    font-size: 16px;
    color: #fff;
    margin: 0;
}

.card-level {
    font-size: 12px;
    color: #fff;
    font-weight: bold;
}

.pokemon-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border: 2px solid #fff;
    border-radius: 8px;
    margin-bottom: 8px;
}

.card-description {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    margin: 8px 0;
}

.card-skills {
    text-align: left;
    color: #fff;
}

.card-skills p {
    font-size: 12px;
    font-weight: bold;
    margin: 5px 0;
}

.card-skills ul {
    list-style-type: disc;
    padding-left: 15px;
    margin: 5px 0;
    font-size: 12px;
}

.hidden {
    display: none;
}

/* Footer */
.footer {
    background-color: #2d7dda;
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
}

.icon-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 20px;
}

.icon-container a {
    background-color: #0077b5;
    border-radius: 50%;
    padding: 10px;
    transition: transform 0.3s ease;
}

.icon-container a img {
    width: 30px;
    height: 30px;
}

.icon-container a:hover {
    transform: scale(1.1);
}
/* Styles pour le bouton Retour */
.back-button {
    position: fixed; /* Position fixe pour rester visible lors du défilement */
    top: 20px; /* Position en haut */
    left: 20px; /* Position à gauche */
    background-color: #007bff; /* Couleur bleue */
    color: white; /* Texte blanc */
    border: none; /* Pas de bordure */
    border-radius: 5px; /* Coins arrondis */
    padding: 10px 15px; /* Espacement intérieur */
    font-size: 16px; /* Taille de la police */
    cursor: pointer; /* Curseur pointer */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Ombre douce */
    transition: background-color 0.3s, transform 0.3s; /* Animation fluide */
    z-index: 1000; /* S'assurer qu'il est au-dessus des autres éléments */
}

.back-button:hover {
    background-color: #0056b3; /* Changement de couleur au survol */
    transform: scale(1.05); /* Effet de zoom au survol */
}