/* RESET de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: white;
    color: #333;
    padding: 10px;
}

.logo{
	max-width: 200px; 
	height: auto;
}

/* HEADER */
header {
    /*background: /*#007BFF*//*#faa400;*/
    padding: 20px;
    text-align: center;
    color: #faa400;
	border-radius: 25px;
	border: 1px solid #EEE;
	margin-left: 10%;
	margin-right: 10%;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

header nav a {
    color: #555;
    margin: 0 10px;
    text-decoration: none;
}

header nav a:hover {
    text-decoration: underline;
	color: black;
}

/* CONTAINER PRINCIPAL */
.container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

/* CARTE DE RÉSIDENCE */
.card {
    background: white;
    /*border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;*/
    width: 30%;
    /*text-align: center;*/
}

/*.card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}*/

.photo {
    width: 100%;
    height: 350px;
    object-fit: cover;
	border-radius: 25px;
}

.photo:hover{
	opacity: 0.9;
}

.card h2 {
    margin: 15px 0 10px;
    font-size: 20px;
}

.card p {
    margin: 10px;
    font-size: 14px;
}

.card a {
    display: inline-block;
    margin: 10px 0 20px;
    padding: 10px 20px;
    background: #007BFF;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

.card a:hover {
    background: #0056b3;
}

/* FORMULAIRE DE FILTRAGE */
form {
    text-align: center;
    margin-bottom: 30px;
}

form input[type="text"],
form input[type="number"],
form input[type="date"],
form input[type="password"],
form input[type="email"],
form input[type="tel"],
form button {
    padding: 8px 10px;
    margin: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form button {
    background: #007BFF;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

form button:hover {
    background: #0056b3;
}

/* PAGINATION */
.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination a {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 12px;
    background: #dc8b18;
    color: white;
    border-radius: 5px;
    text-decoration: none;
}

.pagination a:hover {
    background: #faa400;
}

/* FOOTER */
footer {
    margin-top: 50px;
    padding: 20px;
    text-align: center;
    background: #f1f1f1;
    font-size: 14px;
}

/* Formulaire de réservation responsive */
.reservation-form {
    /*max-width: 500px;*/
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    /*border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);*/
}

.residencebtn{
	height: 60px;
}

.reservation-form input[type="text"],
.reservation-form input[type="email"],
.reservation-form input[type="date"],
.reservation-form input[type="number"],
.reservation-form input[type="tel"],
.reservation-form button, .residencebtn {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.reservation-form button, .residencebtn {
    background-color: #007BFF;
    color: white;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.reservation-form button:hover, .residencebtn:hover {
    background-color: #0056b3;
}

.descriptif{
	margin: 20px 9%; 
	font-size: 16px; 
	line-height: 2em;
	text-align: justify;
}

/* RESPONSIVE pour mobile */
@media (max-width: 768px) {
	body {
		font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
		background-color: white;
		color: #333;
		padding: 10px;
	}
	
	header {
		padding: 20px;
		text-align: center;
		color: #faa400;
		border-radius: 25px;
		border: 1px solid #EEE;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    	overflow: hidden;
	}
    .container {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 100%;
    }
	
	/*.card img {
		width: 100%;
		height: 200px;
		object-fit: cover;
	}*/
	
	.photo{
		width: 100%;
		height: 300px;
		object-fit: cover;
		border-radius: 25px;
	}
	
	.logo{
		max-width: 150px; 
		height: auto;
	}
	
	.icono{
		display: grid;
		grid-template-columns: auto auto auto auto auto;
		padding-left: 5px;
		padding-right: 5px;
	}

	.icono img{
		width: 24px;
		height: auto;
	}
	
	.reservation-form {
        padding: 20px;
    }
	
	.descriptif{
		margin: 20px 0px; 
		font-size: 14px; 
		line-height: 2em;
		text-align: justify;
	}
	
}

.preview-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.preview-images img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 1px solid #ccc;
    border-radius: 5px;
}


/* Animation au survol des cartes */
/*.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}*/

/* Effet hover sur les vignettes */
.thumb {
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.thumb:hover {
    transform: scale(1.1);
    border-color: #007BFF;
}

.icono{
	display: grid;
	grid-template-columns: auto auto auto auto auto;
	width: 50%;
	margin-left: 25%;
	margin-top: 10px;
}

.icono img{
	width: 24px;
	height: auto;
}

/* Stylisation du calendrier */
#calendar {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.fc .fc-toolbar-title {
    font-size: 22px;
    color: #333;
}

.fc-daygrid-day-number {
    font-weight: bold;
    color: #007BFF;
}

.fc-daygrid-day.fc-day-today {
    background-color: #e6f7ff;
}

/* Amélioration esthétique du calendrier */
#calendar {
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-top: 30px;
}

/* Titre du calendrier */
.fc-toolbar-title {
    font-size: 26px;
    color: #007BFF;
    text-align: center;
    margin-bottom: 15px;
}

/* Navigation entre les mois */
.fc-button {
    background-color: #007BFF;
    border: none;
    border-radius: 6px;
    color: white;
    padding: 8px 12px;
    margin: 2px;
    font-weight: bold;
    transition: background 0.3s;
}

.fc-button:hover {
    background-color: #0056b3;
}

/* Grille des jours */
.fc-daygrid-day-number {
    font-weight: bold;
    color: #007BFF;
    font-size: 15px;
}

/* Jour aujourd'hui */
.fc-daygrid-day.fc-day-today {
    background-color: #e6f7ff;
    border-radius: 8px;
}

/* Jours réservés */
.fc-event {
    background-color: #ff6b6b !important;
    opacity: 0.7;
    border: none;
}

/* Petites animations sur le changement de mois */
.fc-view {
    transition: all 0.5s ease-in-out;
}

.modal {
  display: none; 
  position: fixed;
  z-index: 1000;
  padding-top: 70px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background-color: #fff;
  margin: auto;
  padding: 20px;
  border-radius: 6px;
  width: 50%;
}

.close {
  color: #aaa;
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

