body {
	font-family: sans-serif;
	margin: 0;
	background-color: #ffffff;
}
header {
	background-color: #5C2D91; /* couleur agréable (bleu doux = #4a90e2) (eminence = proximus) */
	color: white;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 20px;
	flex-wrap: wrap;
}
.footer {
	background-color: #5C2D91; /* couleur agréable (bleu doux = #4a90e2) (eminence = proximus)*/
	color: white;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 20px;
	flex-wrap: wrap;
}
.title {
	font-size: 20px;
	font-weight: bold;
}
nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
}
nav li {
	position: relative;
}
nav > ul > li {
	margin-left: 15px;
}
nav a {
	display: block;
	padding: 10px 14px;
	color: white;
	text-decoration: none;
}
nav li:hover > a {
	background-color: #444;
}
nav ul ul {
	position: absolute;
	top: 100%;
	left: 0;
	display: none;
	min-width: 150px;
	background-color: #444;
	z-index: 999;
}
nav li:hover > ul {
	display: block;
}
nav ul ul li a:hover {
	background-color: #555;
}
.wrapper {
	background-color: #f5deb3; /* couleur sable */
	background-color: #f7e7ce; /* champagne */
	padding: 20px;
}
.navigation {
	text-align: center;
	margin: 20px 0;
}
.calendar {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 5px;
}
/* Case des jours (plus petites) */
.day {
	border: 1px solid #ccc;
	padding: 2px 4px;           /* moins de padding vertical et horizontal */
	background-color: #f9f9f9;
	text-align: center;
	min-height: 40px;           /* hauteur réduite */
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	font-size: 11px;            /* texte plus petit */
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.2s;
}
.day:hover {
	background-color: #e1e1e1;
}
.day.empty {
	background-color: #eee;
	cursor: default;
}
/* Style pour la ligne des noms des jours */
.calendar-header {
	font-weight: bold;
	background-color: #d0c9b8;
	min-height: 30px;           /* hauteur réduite */
	font-size: 12px;            /* texte plus petit */
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 4px;
	user-select: none;
}

.day.today {
	background-color: yellow;
	border: 2px solid #d4af37;
	font-weight: bold;
}

.day.reserved a {
	color: red;
	font-weight: bold;
	text-decoration: underline;
}

/* SEARCH BAR */
.search-bar {
	display: flex;
	justify-content: flex-end; /* aligne le contenu à droite */
	align-items: center;
	background-color: #f3f3f3;
	padding: 10px 20px;
	gap: 10px;
	flex-wrap: wrap;
}
.search-bar input[type="text"] {
	padding: 8px 12px;
	font-size: 16px;
	border: 1px solid #ccc;
	border-radius: 6px;
	width: 100%;
	max-width: 400px;
}
.search-bar button {
	padding: 8px 16px;
	font-size: 16px;
	background-color: #4a90e2;
	color: white;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background-color 0.2s;
}
.search-bar button:hover {
	background-color: #357ab8;
}

/* DAY */
.day a {
	text-decoration: none;
	color: inherit;
	display: block;
	height: 100%;
	width: 100%;
}
		
.day[data-tooltip] {
	position: relative;
	cursor: pointer;
}
.day-link {
  position: relative;
  display: inline-block;
}
.day-link:hover .tooltip {
  display: block;
}

/* TOOLTIP */
.tooltip {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff9c4;
  color: #333;
  border: 1px solid #ccc;
  padding: 6px 10px;
  font-size: 0.9em;
  white-space: pre-line;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
  z-index: 1000;
  border-radius: 6px;
  min-width: 180px;
}

/* Responsiveness simplifiée */
@media (max-width: 768px) {
   .calendar {
		grid-template-columns: repeat(7, 1fr); /* Garder 7 colonnes mais petites */
		gap: 3px;                             /* réduire l’espace entre cases */
	}
	/* Adapter encore la taille du texte et des cases */
	.day {
		min-height: 30px;
		font-size: 10px;
		padding: 2px 3px;
	}
	.calendar-header {
		min-height: 25px;
		font-size: 10px;
	}
	header {
		flex-direction: column;
		align-items: flex-start;
	}
	nav ul {
		flex-direction: column;
		width: 100%;
	}
	nav > ul > li {
		width: 100%;
	}
	nav ul ul {
		position: static;
	}
	nav li:hover > ul {
		display: block;
	}
}	
