* {
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}
.grid-container {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
	gap: 0.75rem;
	margin: 1rem;
}

h1 {
	padding: 10px;
	margin: 0;
	font-size: 1.5rem;
}

span.small-text {
	font-size: 1.2rem;
}
body {
	margin: 0;
	padding: 0;
}
header {
	text-align: center;
	display: flex;
	justify-content: center;
	flex-direction: column;
}
img {
	width: 100%;
	max-width: 125px;
	margin: 0 auto;
	height: auto;
}
.div-emplacement {
	border: 1px solid hsl(240 5.9% 10% / 0.2);
	padding: 0.75rem;
	text-align: center;
	cursor: pointer;
	border-radius: 0.375rem;
	font-size: 0.875rem;
	transition: all 0.2s;
	background-color: hsl(0 0% 100%);
}
.div-emplacement:hover {
	border-color: hsl(240 5.9% 10% / 0.5);
	background-color: hsl(240 5% 97%);
	transform: translateY(-1px);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.div-emplacement.reserved {
	background-color: hsl(0 84.2% 60.2% / 0.1);
	border-color: hsl(0 84.2% 60.2% / 0.3);
	color: hsl(0 84.2% 60.2%);
}
.div-emplacement.not-available {
	background-color: hsl(240 4.8% 95.9%);
	cursor: not-allowed;
	opacity: 0.7;
}
.infos {
	padding: 0 10px;
}
#selectedEmplacementsList {
	padding: 10px 0;
}
input {
	padding: 10px;
	border: 2px solid #d6d6d6;
	border-radius: 4px;
}

input#searchBar,
input#searchBarNumber {
	color: hsl(240 10% 3.9%);
	background-color: hsl(0 0% 100%);
	border: 1px solid hsl(240 5.9% 10% / 0.2);
	border-radius: 0.5rem;
	padding: 0.75rem 1rem;
	max-width: 495px;
	width: 100%;
	box-sizing: border-box;
	font-size: 1rem;
	transition: all 0.2s;
}

input#searchBar:hover,
input#searchBarNumber:hover {
	border-color: hsl(240 5.9% 10% / 0.3);
}

input#searchBar:focus,
input#searchBarNumber:focus {
	border-color: hsl(240 5.9% 10% / 0.5);
	outline: none;
	box-shadow: 0 0 0 2px hsl(240 5.9% 10% / 0.1);
}

.navigation {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 0 1rem;
	margin-bottom: 2rem;
}

.available {
	background-color: #a2fca2;
}
.reserved {
	background-color: #fababa;
	border: 2px solid #d0103a;
}
.not-available {
	background-color: #f0f0f0;
	cursor: not-allowed;
}

#reservationModal {
	position: fixed;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	background-color: hsl(0 0% 100%);
	padding: 1.5rem;
	z-index: 1000;
	border-radius: 0.5rem;
	box-shadow: hsl(240 10% 3.9%) 0px 10px 38px -10px, hsl(240 10% 3.9%) 0px 10px 20px -15px;
	min-width: 320px;
	max-width: 90%;
	animation: modalFadeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
	from {
		opacity: 0;
		transform: translate(-50%, -48%) scale(0.96);
	}
	to {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1);
	}
}

#modalBackground {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: hsl(240 10% 3.9% / 0.5);
	display: none;
	z-index: 999;
	backdrop-filter: blur(4px);
	animation: backgroundFadeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes backgroundFadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

#reservationForm,
#updateForm {
	display: flex;
	flex-direction: column;
	width: 100%;
	gap: 1rem;
}

#reservationForm input,
#updateForm input {
	padding: 0.75rem 1rem;
	border: 1px solid hsl(240 5.9% 10% / 0.2);
	border-radius: 0.375rem;
	font-size: 0.875rem;
	transition: all 0.2s;
	background-color: hsl(0 0% 100%);
}

#reservationForm input:hover,
#updateForm input:hover {
	border-color: hsl(240 5.9% 10% / 0.3);
}

#reservationForm input:focus,
#updateForm input:focus {
	border-color: hsl(240 5.9% 10% / 0.5);
	outline: none;
	box-shadow: 0 0 0 2px hsl(240 5.9% 10% / 0.1);
}

#closeModal {
	position: absolute;
	top: 1rem;
	right: 1rem;
	cursor: pointer;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 0.375rem;
	transition: all 0.2s;
	color: hsl(240 3.7% 15.9%);
}

#closeModal:hover {
	background-color: hsl(240 4.8% 95.9%);
	color: hsl(240 5.9% 10%);
}

.selected {
	border: 2px solid #000;
}

/* CSS */
.button-40 {
	background-color: #111827;
	border: 1px solid transparent;
	border-radius: 0.75rem;
	box-sizing: border-box;
	color: #ffffff;
	cursor: pointer;
	flex: 0 0 auto;
	font-family: "Inter var", ui-sans-serif, system-ui, -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.5rem;
	padding: 0.75rem 1.2rem;
	text-align: center;
	text-decoration: none #6b7280 solid;
	text-decoration-thickness: auto;
	transition-duration: 0.2s;
	transition-property: background-color, border-color, color, fill, stroke;
	transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
	user-select: none;
	-webkit-user-select: none;
	touch-action: manipulation;
	width: auto;
}

.button-40:hover {
	background-color: #374151;
}

.button-40:focus {
	box-shadow: none;
	outline: 2px solid transparent;
	outline-offset: 2px;
}

/* CSS MAJ 30/04/24 */
div.searchresults > div span {
	font-weight: bold;
	border-top: 1px solid #d4d4d4;
	position: relative;
	text-align: center;
	margin: 10px auto 0 auto;
	padding-top: 7px;
}

div.searchresults > div {
	padding: 10px;
	border: 2px solid #d6d6d6;
	margin: 10px 0;
	display: flex;
	border-radius: 8px;
	text-align: center;
	flex-direction: column;
}
div.searchresults {
	width: 100%;
	max-width: 500px;
}

@media screen and (max-width: 768px) {
	div.searchresults {
		max-width: 100%;
	}
	h1 {
		font-size: 1.4em;
	}
}

/* Styles pour la page reservations.php */
.reservation-sections {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	padding: 0 1rem;
	max-width: 1200px;
	margin: 0 auto;
}

.reservation-section {
	background-color: hsl(0 0% 100%);
	border-radius: 0.5rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	padding: 1.5rem;
}

.section-header {
	margin-bottom: 1.5rem;
	border-bottom: 1px solid hsl(240 5.9% 10% / 0.1);
	padding-bottom: 1rem;
}

.section-header h3 {
	font-size: 1.25rem;
	font-weight: 600;
	margin: 0 0 0.5rem 0;
	color: hsl(240 10% 3.9%);
}

.section-description {
	color: hsl(240 3.7% 15.9%);
	margin: 0;
	font-size: 0.875rem;
}

/* Amélioration de la barre de recherche */
#searchBarNumber {
	width: 100%;
	max-width: 400px;
	margin: 0 auto 1.5rem;
	display: block;
	padding: 0.75rem 1rem;
	border: 1px solid hsl(240 5.9% 10% / 0.2);
	border-radius: 0.375rem;
	font-size: 0.875rem;
	transition: all 0.2s;
}

#searchBarNumber:focus {
	border-color: hsl(240 5.9% 10% / 0.5);
	outline: none;
	box-shadow: 0 0 0 2px hsl(240 5.9% 10% / 0.1);
}

/* Responsive */
@media (max-width: 768px) {
	.reservation-sections {
		padding: 0 0.5rem;
	}
	
	.reservation-section {
		padding: 1rem;
	}
	
	.grid-container {
		grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
		gap: 0.5rem;
	}
	
	.div-emplacement {
		padding: 0.5rem;
		font-size: 0.75rem;
	}
}

/* Styles pour la modale */
.modal-info {
	padding-bottom: 1rem;
	border-bottom: 1px solid hsl(240 5.9% 10% / 0.1);
}

.modal-emplacements, .modal-metres {
	margin: 0.5rem 0;
	font-size: 0.875rem;
	color: hsl(240 3.7% 15.9%);
}

.modal-emplacements strong, .modal-metres strong {
	color: hsl(240 10% 3.9%);
	font-weight: 600;
}

#selectedEmplacementsList {
	margin-bottom: 1rem;
}

/* Style du bouton de fermeture */
.close-button {
	position: absolute;
	right: 1rem;
	top: 1rem;
	width: 2rem;
	height: 2rem;
	border-radius: 0.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: none;
	cursor: pointer;
	transition: all 0.2s ease;
}

.close-button:hover {
	background: rgba(0, 0, 0, 0.05);
}

.close-button svg {
	width: 1.25rem;
	height: 1.25rem;
	color: #666;
	transition: color 0.2s ease;
}

.close-button:hover svg {
	color: #000;
}
