* {
	margin: 0;
	padding: 0;
	font-family: Arial, Helvetica, sans-serif;
}/*Style du site*/

body { /*Style de la partie body des pages*/
	padding-top: 60px; 
	display: grid;/*Disposition du site*/
	justify-content: center;
  align-items: center;
    grid-template-columns: 1fr; /*1 fraction*/
    grid-template-areas: /*Détail de la disposition du site*/
    "header" 
    "main"
    "footer";
    min-height: 100vh; /*taille minimale*/
    grid-template-rows: 80px 1fr 100px; /*Taille de chaque partie */
	background: linear-gradient(to bottom right, #FF0000 49%, #000000 49%, #000000 51%, #FFFFFF 51%);
	background-attachment: fixed;
}

header {
	grid-area: header; /*Permet de lier au sélécteur body, le nom de la partie */
	top: 0;
}
/*Barre de navigation*/
nav {
	background-color: yellow;
	height: 40px;
	top: 0;
	display: flex;
	justify-content: space-around;
	align-items: center;
	padding: 10px;
	position: fixed;
	width: 100%;/*Prend toute la longueur */
	overflow: visible; /*Empecher le depassement des elements */
	font-family: 'Arial', sans-serif;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	z-index: 1000; /*Est au dessus de tout (nécessaire pour le menu déroulant)*/
}
nav a {
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    display: block;
    text-align: center;
    font-weight: bold;
    transition: 0.3s ease;
	position: relative;
	border-radius: 10px;
}
.navi {	
	text-decoration: none;
	color: blue;
	display: flex;
	align-items: center;
	text-align: center;
	justify-content: center;
	font-family:Arial, sans-serif;
	font-weight:600;
	font-size: 19px;
	top: auto;
	width: 100px;
	height: auto;
	position: relative;
}
nav .navi:hover {
	background-color: blue;
	color: yellow;
	border-radius: 10px;
}
nav #liste-types {
	display: none;
	position: absolute;
}
#liste-types {
    display: none;
    position: absolute;
    top: 85%;
	left: 23%;
    background-color: white;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    z-index: 1;
    padding: 15px;
    min-width: 8px;
    background: #ebebeb;
    z-index: 100;
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 10px; 
}
#liste-types li {
    border-bottom: none;
}
#liste-types a {
    color: black;
    padding: 10px;
    font-size: 10px;
    transition: background-color 0.3s ease;
}
#liste-types a:hover {
    background-color: #333;
    color: white;
}
/*Code permettant l'affichage du menu déroulant lorsqu'on survole le bouton "types"*/
nav .navi:hover + #liste-types,
#liste-types:hover {
    display: grid;
}
#type{
	color:yellow;
}
.logo {
    order: 0; /* Logo au centre */
    max-width: 200px; /* Taille max img */
    height: auto; /* Ajustement auto de la hauteur*/
}
#nomPok {
	color: yellow;
}
#POKEMON {
    margin-left: 43%;
}

#description {
    font-weight: 600;
}
/*Style de l'image du pokemon */
#image{
    background-color: skyblue;
    border: 2px solid grey;
	border-radius: 10px;
    margin-left: 35px;
	width: 300px;
	height: 300px;
	position: relative;
	top: 10px;
	transition: 0.2s;
}
#image:hover {
	lighting-color: #60a5fa;
	width: 290px;
	height: 290px;
	transition: 0.2s;
}
#informations {
    flex: 2; /* Description prend une partie de l'espace disponible */
    padding-left: 70px; /* Ajoute un espace à gauche de la description */
    font-family: Arial, sans-serif;
    font-size: 19px;
	position: relative;
	top: -20px;
}
#informations ul {
	list-style-type: none; /*Enlève les puces*/
}
#informations #types a {
	background-color: lightgray;
	font-weight: 400;
	text-align: center;
	align-items: center;
	border: 10px solid lightgrey;
	border-radius: 15px;
	transition: 0.2s;
}
#informations #types a:hover {
	background-color: grey;
	border-color: grey;
	transition: 0.2s;
}
#informations #types img {
	position: relative;
	top: 12px;
}
main {
	grid-area: main; /*Permet de lier au sélécteur body */
}
.card {
	display: flex;
	flex-direction: row; /*Permet de réaliser la disposition des cartes */
}
.card img {
	cursor: pointer; /*Fait pointer le curseur */
	transition: 0.2s;
	width: 300px;
	height: 300px;
}
.card img:hover {
	filter: brightness(125%); /*Change la luminosité de l'image quand on la survole */
	transition: 0.2s;
	width: 350px;
	height: 350px;
}
#pokemons h1{
	color: yellow;
}
/*Style du bouton d'envoi */
#submit {
	border: none;
	background-color: whitesmoke;
	width: 40px;
	height: 30px;
	cursor: pointer;
	border-top-right-radius: 30px;
	border-bottom-right-radius: 30px;
	position: relative;
	left: -10px;
}
#evolutions {
	color: blue;
	background-color: lightblue;
	border-radius: 15px;
	border-right: 2px solid rgb(0, 97, 189);
	border-bottom: 2px solid rgb(0, 97, 189);
	align-items: center;
	display: block;
	box-shadow:  0 0 7px rgba(18, 18, 18, 0.5);
}
#evolutions a img {
	border: solid 3px black;
	background-color: white;
	border-radius: 100%;
	width: 100px;
	height: 100px;
	transition: 0.5s;
}
#evolutions a img:hover{
	width: 110px;
	height: 110px;
	transition: 0.5s;
	background-color: lightgrey;
}
/* Viens du programme js sur les évolutions */
#evolutions .Plusgros img{
	background-color: darkgrey;
	border: solid 5px black;
}
#evolutions .Plusgros img:hover {
	background-color: grey;
}
.evolutionsList {
	list-style-type: none;
	justify-content: space-between;
	position: relative;
	margin-left: 31.5%;
	color: black;
	display: flex;
}
#submit:hover {
	background-color: grey;
}
h4 {
	font-size: 25px;
	font-weight: 600;
	text-align: center;
}
/*Barre de recherche */
#search {
	border: none;
	background-color: rgb(235, 235, 235);
	height: 30px;
	width: 500px;
	/*Permet de lier l'input de recherche et le bouton d'envoi */
	border-top-left-radius: 30px;
	border-bottom-left-radius: 30px;
	align-items: center;
}

.barre {
	display: flex;
	justify-content: center; 
	align-items: center; 
	gap: 10px; /*définis l'espace entre la barre et le bouton */
}
/* Style des cartes */
#liste-pokemon {
	display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
	gap: 20px;
}

#liste-pokemon li {
	list-style-type: none;
	height: 100px;
	background-color: rgb(240, 240, 240);
	border-radius: 10px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 150px;
	height: 180px;
	box-shadow: 0 0 7px rgba(18, 18, 18, 0.5);
	cursor: pointer;
	transition: 0.2s;
}

#liste-pokemon li:hover {
	width: 152px;
	height: 182px;
	transition: 0.2s;
}

#liste-pokemon li a {
	font-family:'Courier New', Courier, monospace;
	font-weight: 800;
	text-decoration: none;
	color: white;
	font-size: 20px;
    background-color: rgb(135,206,250);
    border-right: solid 3px rgb(0,191,255);
    border-bottom: solid 3px rgb(0,191,255);
    border-radius: 8px;
    transition: 0.1s;
    align-content: center;
    text-align: center;
    height : 300px;
    width : 150px;
}

#liste-pokemon li a:hover{
	background-color: rgb(16, 192, 0);
    border-right: solid 3px rgb(16, 170, 0);
    border-bottom: solid 3px rgb(16, 170, 0);
    transition: 0.1s;
}

#liste-pokemon li img {
	height: 70px;
	width: 70px;
	background-color: lightgrey;
	border-radius: 5px;
	border-top: 3px solid grey;
	border-left: 3px solid grey;
	border-bottom: solid 1px grey;
	border-right: solid 1px grey;
}
/*Style du formulaire de contact */
#contact {
	background-color: whitesmoke;
	opacity: 0.9;
	text-align: center;
	align-items: center;
	margin-left: 35%;
	width: 400px;
	border-radius: 20px;
	background: linear-gradient(135deg, #ffffff, #f8fafc);
	border: 1px solid #d1d5db;
	padding: 20px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
#contact input, #contact textarea {
	width: calc(100% - 20px);
	margin: 10px 0;
	padding: 10px;
	font-size: 16px;
	border: 1px solid #d1d5db;
	background-color: #f9fafb;
	transition: 0.3s, 0.3s;
	border-radius: 20px;
	outline: none;
  }
  /* Lorsqu'on clique sur les entrées */
#contact input:focus, #contact textarea:focus {
	border-color: #60a5fa;
	box-shadow: 0 0 5px rgba(96, 165, 250, 0.5);
  }
  /*Bouton d'envoi du formulaire */
#submit2 {
	width: 100%;
	padding: 10px;
	font-size: 16px;
	color: black;
	background-color: #3b82f6;
	border: none;
	border-radius: 5px;
	transition: 0.3s;
	cursor: pointer;
  }
#submit2:hover {
	background-color: #2563eb;
	cursor: pointer;
	color: white;
  }
#contact p {
	margin: 10px 0;
	font-size: 18px;
	font-weight: bold;
	color: #374151;
  }
#contact textarea {
	outline: none;
	border: none;
	border-radius: 10px;
	padding-right: 100px;
	width: 250px;
	height: 100px;
}
/*Pied de page */
footer {
	grid-area: footer;
	background-color: black;
	display: grid;
	height: 100px;
	text-align: center;
	align-items: center;
}
footer p {
	color: white;
}
ul#liste-types li {
	display: inline-block;
	padding-inline: 5px;
}


.liste {
	list-style: none;
	margin: 20px;
	padding: 0;
}
/*Bulle de texte */
.bulle {
    display: block; /* Change en bloc pour permettre le centrage avec margin */
    margin: 15px auto; /* Centre la bulle horizontalement */
    border-radius: 15px; /* Coins arrondis pour l'effet bulle */
    background-color: #f0f0f0; /* Fond neutre */
    border: 1px solid #ddd; /* Bordure discrète pour définir la bulle */
    color: #000000; /* Couleur du texte */
    font-size: 16px; /* Taille du texte */
    text-align: center;
    line-height: 1.6; /* Espacement entre les lignes du texte */
    box-shadow: 0 0px 10px rgba(0, 0, 0, 0.1); /* Ombre pour donner un effet de profondeur */
	max-width: 900px;
}

.bulle h2{
	color: #ff0000;
}

.cadre {
	border-radius: 10px; /* Arrondir les coins du conteneur */
    padding: 20px; /* Ajoute de l'espace autour du texte */
    background-color: #fff; /* Couleur de fond du conteneur */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Ombre pour donner un effet de profondeur */
    max-width: 800px; /* Limite la largeur du conteneur pour ne pas trop étirer le texte */
    margin: 0 auto; /* Centre le conteneur horizontalement */
    line-height: 1.6; /* Espacement entre les lignes du texte */
	margin-top: 30px;
}
#informations{
	border-radius: 10px;
	padding: 20px;
	background-color: #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	max-width: 800px;
	margin: 0 auto;
	line-height: 1.6;
	margin-top: 30px;
}
#informations #types a {
	text-decoration: none;
	color: black;
}
/*Caractéristiques du type */
#Caract {
	border-radius: 10px; 
    padding: 20px; 
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); 
    width: 90%;
    margin: 0 auto; 
    line-height: 1.6; 
	font-weight: 600;
}