/*
Theme Name: Villa La Venise
Author: Stan
Version: 1.0
*/

/* -------------------- GLOBAL -------------------- */
body {
	font-family: 'Segoe UI', sans-serif;
	background: #f8f8f8;
	margin: 0;
	padding: 0;
	position: relative;
	z-index: 0;
  }
  

  
/* -------------------- HEADER & NAV -------------------- */
header {
	background: #2c3e50;
	color: white;
	padding: 2rem;
	text-align: center;
	position: relative;
}

/* ------ Burger ------ */
.burger {
	display: none;
	width: 30px;
	height: 25px;
	position: absolute;
	top: 1rem;
	right: 2rem;
	z-index: 100;
	cursor: pointer;
	flex-direction: column;
	justify-content: space-between;
}

.burger span {
	display: block;
	height: 3px;
	background: white;
	border-radius: 2px;
	transition: 0.3s ease;
}

/* Croix animée */
.burger.active span:nth-child(1) {
	transform: rotate(45deg) translate(5px, 5px);
}
.burger.active span:nth-child(2) {
	opacity: 0;
}
.burger.active span:nth-child(3) {
	transform: rotate(-45deg) translate(5px, -5px);
}

/* ------ Nav style desktop ------ */
nav {
	position: absolute;
	top: 1rem;
	right: 2rem;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 1rem;
	transition: none;
	max-height: none;
	overflow: visible;
}

nav a {
	color: white;
	text-decoration: none;
	font-weight: bold;
}

nav a:hover {
	text-decoration: underline;
}

#language-select {
	background: #2c3e50;
	color: white;
	border: 1px solid white;
	padding: 0.3rem;
	border-radius: 4px;
	font-weight: bold;
}

/* -------------------- RESPONSIVE -------------------- */
@media (max-width: 768px) {
	.burger {
		display: flex;
	}

	nav {
		position: static;
		flex-direction: column;
		align-items: center;
		background-color: #2c3e50;
		width: 100%;
		overflow: hidden;
		max-height: 0;
		transition: max-height 0.4s ease;
		padding: 0;
		gap: 0;
	}

	nav.show {
		max-height: 500px;
		padding: 1rem 0;
		gap: 10px;
	}

	nav a,
	#language-select {
		padding: 1rem;
		width: 100%;
		text-align: center;
		margin: 0;
		border: none;
	}
}

  
  /* -------------------- CONTAINER -------------------- */
  .container {
	max-width: 900px;
	margin: 2rem auto;
	padding: 1rem;
	background: white;
	box-shadow: 0 0 10px rgba(0,0,0,0.1);
  }
  
  img {
	width: 100%;
	border-radius: 10px;
  }
  
  h1 {
	margin-bottom: 0.5rem;
  }
  
  /* -------------------- DESCRIPTION & INFOS -------------------- */
  .description,
  .infos {
	margin: 1.5rem 0;
	line-height: 1.6;
  }
  
  .infos ul {
	padding-left: 1.2rem;
  }
  
  /* -------------------- BUTTON -------------------- */
  .button {
	display: inline-block;
	padding: 0.8rem 1.5rem;
	background-color: #27ae60;
	color: white;
	border-radius: 5px;
	text-decoration: none;
	font-weight: bold;
  }
  
  .button:hover {
	background-color: #219150;
  }
  
  button {
	padding: 6px 12px;
	background-color: #27ae60;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
  }
  
  button:disabled {
	background-color: #aaa;
	cursor: not-allowed;
  }
  
  /* -------------------- FOOTER -------------------- */
  footer {
	text-align: center;
	padding: 1rem;
	color: #666;
  }
  
  /* -------------------- PHOTOS -------------------- */
  #photos {
	margin-top: 4rem;
  }
  
  .photos-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
  }
  
  .close-btn {
	background-color: #27ae60;
	color: white;
	padding: 0.5rem 1rem;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	font-size: 1rem;
  }
  
  .photo-grid {
	display: none;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 1rem;
  }
  
  .photo-grid.active {
	display: grid;
  }
  
  .photo-item {
	text-align: center;
  }
  
  .photo-item img {
	width: 100%;
	border-radius: 8px;
	cursor: pointer;
  }
  
  .photo-caption {
	margin-top: 0.5rem;
	font-size: 0.9rem;
	color: #555;
  }
  
  /* -------------------- LIGHTBOX -------------------- */
  .lightbox {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.9);
	display: none;
	justify-content: center;
	align-items: center;
	z-index: 1000;
	flex-direction: column;
  }
  
  .lightbox.active {
	display: flex;
  }
  
  .lightbox img {
	max-width: 90%;
	max-height: 80%;
	width: auto;
	height: auto;
	border-radius: 10px;
	image-rendering: auto;
  }
  
  .lightbox .caption {
	margin-top: 1rem;
	color: white;
	font-size: 1rem;
  }
  
  .lightbox .nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	font-size: 3rem;
	color: white;
	cursor: pointer;
	padding: 0 1rem;
  }
  
  .lightbox .prev {
	left: 10px;
  }
  
  .lightbox .next {
	right: 10px;
  }
  
  .lightbox .close {
	position: absolute;
	top: 20px;
	right: 30px;
	font-size: 2rem;
	cursor: pointer;
  }
  
  /* -------------------- TABLEAU RÉSERVATION -------------------- */
  table {
	width: 90%;
	border-collapse: collapse;
	background: white;
	margin: 2rem auto;
	box-shadow: 0 0 10px rgba(0,0,0,0.1);
  }
  
  th, td {
	padding: 12px;
	border: 1px solid #ddd;
	text-align: center;
  }
  
  th {
	background-color: #2c3e50;
	color: white;
  }
  
  td.dispo {
	background-color: #28a745;
	color: white;
	font-weight: bold;
  }
  
  td.indispo {
	background-color: #dc3545;
	color: white;
	font-weight: bold;
  }
  
  /* -------------------- MODAL RÉSERVATION -------------------- */
  #reservationModal {
	display: none;
	position: fixed;
	top: 0; left: 0;
	width: 100%; height: 100%;
	background: rgba(0, 0, 0, 0.6);
	justify-content: center;
	align-items: center;
	z-index: 1000;
  }
  
  #reservationModal .content {
	background: white;
	padding: 2rem;
	border-radius: 8px;
	width: 90%;
	max-width: 500px;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	box-shadow: 0 0 20px rgba(0,0,0,0.3);
  }
  
  
  #reservationModal .close {
	position: absolute;
	top: 60px;
	right: 15px;
	font-size: 1.5rem;
	cursor: pointer;
  }
  
  #reservationForm input,
  #reservationForm textarea {
	width: 100%;
	margin-top: 1rem;
	padding: 0.5rem;
	border: 1px solid #ccc;
	border-radius: 5px;
  }
  
  #reservationForm button[type="submit"] {
	margin-top: 1rem;
	width: 100%;
	background: #2c3e50;
	color: white;
  }
  
  /* -------------------- LÉGENDE -------------------- */
  .legend {
	text-align: center;
	margin-top: -1.5rem;
	font-size: 1rem;
  }
  
  .legend span {
	padding: 0.3rem 0.6rem;
	border-radius: 4px;
	margin-right: 1rem;
	color: white;
  }
  
  .legend .dispo {
	background-color: #28a745;
  }
  
  .legend .indispo {
	background-color: #dc3545;
  }
  
  /* -------------------- FILTRES -------------------- */
  .filter-clever {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem;
	width: 90%;
	margin: auto;
  }
  
  /* -------------------- RESERVATION MODAL  -------------------- */

  #reservationModal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
  }
  
  #reservationModal .content {
	background: white;
	padding: 2rem;
	border-radius: 12px;
	max-width: 600px;
	width: 90%;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
	position: relative;
  }
  
  #reservationModal .close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	font-size: 1.5rem;
	cursor: pointer;
  }
  

  select.select-action {
    width: 100%;
}