/* 
    Auteur: Philippe Galley
    Date: 10.03.2025
    Description: Fichier de styles pour l'application de gestion de livres.
*/


/* Styles généraux */
body {
	font-family: Arial, sans-serif;
	background-color: #f4f4f9;
	color: #333;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* En-tête */
header {
	background-color: #4CAF50;
	color: white;
	padding: 20px;
	text-align: center;
	width: 100%;
	box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

h1 {
	margin: 0;
	font-size: 2em;
}

/* Contenu principal */
main {
	width: 90%;
	max-width: 800px;
	margin-top: 20px;
	padding: 20px;
	background: white;
	border-radius: 8px;
	box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Formulaire */
form {
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: #ffffff;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

label {
	font-weight: bold;
}

input {
	padding: 8px;
	border: 1px solid #ccc;
	border-radius: 5px;
	font-size: 1em;
}

button {
	background: #4CAF50;
	color: white;
	border: none;
	padding: 10px;
	border-radius: 5px;
	cursor: pointer;
	font-size: 1em;
	transition: background 0.3s;
}

button:hover {
	background: #45a049;
}

/* Tableau */
table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 20px;
	background: white;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

th, td {
	padding: 10px;
	border-bottom: 1px solid #ddd;
	text-align: left;
}

th {
	background: #4CAF50;
	color: white;
}

tr:nth-child(even) {
	background: #f2f2f2;
}

tr:hover {
	background: #ddd;
}
