body {
font-family: Arial, sans-serif;
margin: 0;
padding: 20px;
background-color: #F2E9E7; 
-webkit-background-size: cover;
background-size: cover;
}
a {
text-decoration: none;
color: #333;
}
.container {
max-width: 900px;
margin: auto;
background: white;
padding: 20px;
border-radius: 12px;
box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
h1, h2, h3 {
color: #2c3e50;
}

img {
max-width: 100%;
border-radius: 10px;
}
button, .back-link {
padding: 10px 15px;
background-color: #3498db;
color: white;
border: none;
border-radius: 6px;
cursor: pointer;
}
button:hover, .back-link:hover {
background-color: #2980b9;
}
.calendar {
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 4px;
margin-top: 10px;
}
.calendar div {
padding: 6px;
text-align: center;
border: 1px solid #ccc;
border-radius: 4px;
}
.calendar .reserved {
background-color: #fca5a5;
}
.calendar .available {
background-color: #bbf7d0;
}
.month-navigation {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
margin-top: 20px;
}
.calendar-weekdays {
  display: contents; /* pour garder la grille */
}
.calendar-weekday {
  font-weight: bold;
  text-align: center;
  padding: 6px 0;
  border-bottom: 1px solid #ccc;
  background-color: #f0f0f0;
}
.month-label{
	min-width :150px;
	text-transform: uppercase;
	text-align:center;
}
.calendar .past {
  background-color: #e0e0e0;
  color: #888;
  pointer-events: none;
  cursor: not-allowed;
}
.error {
color: red;
margin-top: 10px;
}
.checkbox-container {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 1em;
}

.checkbox-container input[type="checkbox"] {
  margin: 0;
  width: auto;
  height: auto;
}
.input-icon {
  position: relative;
}

.input-icon input[type="text"] {
  padding-right: 2rem;
}

.calendar-icon {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 1rem;
  color: #555;
}
/* --- Lightbox --- */
.lightbox {
display: none;
position: fixed;
z-index: 9999;
top: 0; left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.95);
justify-content: center;
align-items: center;
flex-direction: column;
}
.lightbox-image {
max-width: 90%;
max-height: 80%;
border-radius: 10px;
box-shadow: 0 0 20px rgba(255,255,255,0.2);
}
.lightbox-close {
position: absolute;
top: 20px;
right: 30px;
font-size: 40px;
color: white;
cursor: pointer;
font-weight: bold;
}

.lightbox-nav {
margin-top: 20px;
display: flex;
gap: 20px;
}

.lightbox-nav button {
font-size: 24px;
padding: 10px 20px;
background: rgba(255, 255, 255, 0.2);
border: 1px solid white;
color: white;
border-radius: 8px;
cursor: pointer;
transition: background 0.2s ease;
}

.lightbox-nav button:hover {
background: rgba(255, 255, 255, 0.4);
}
.gallery-grid {
display: grid;
grid-template-columns: 1fr 1fr; /* 50% / 50% */
gap: 8px;
margin-bottom: 30px;
border-radius: 12px;
overflow: hidden;
height: 450px;
position: relative;
}

.gallery-main,
.gallery-side {
height: 100%;
}
.gallery-main img,
.gallery-side img {
width: 100%;
height: 100%;
max-height: 450px;
object-fit: cover;
display: block;
border-radius: 8px;
}
.gallery-side {
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-rows: 1fr 1fr;
gap: 6px;
position: relative;
}
.gallery-side-item {
overflow: hidden;
cursor: pointer;
aspect-ratio: 1 / 1;
overflow: hidden;
cursor: pointer;
}
.gallery-button {
position: absolute;
bottom: 12px;
right: 12px;
background: white;
border: none;
font-size: 14px;
padding: 8px 14px;
border-radius: 999px;
box-shadow: 0 2px 6px rgba(0,0,0,0.15);
cursor: pointer;
display: flex;
align-items: center;
gap: 6px;
}
.gallery-button:hover {
background: #f0f0f0;
}
@media screen and (max-width: 768px) {
.gallery-grid {
display: block;
height: auto;
}

.gallery-main img {
height: auto;
}

.gallery-side {
display: none;
}

.gallery-button {
position: static;
margin-top: 10px;
display: block;
}
}
.lightbox-counter {
position: absolute;
top: 20px;
left: 30px;
font-size: 18px;
color: white;
background: rgba(0,0,0,0.5);
padding: 6px 10px;
border-radius: 6px;
}

.baniere {
position: relative;
overflow: hidden;
max-width: 900px;
margin: auto;
margin-bottom: 30px;
border-radius: 10px;
box-shadow: 0 4px 10px rgba(0,0,0,0.2);
display: flex;
justify-content: center;
}
.baniere img {
display: block;
width:100%;
}

/* MENU*/

header.headerIndex {
background-color: #F2E9E7;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
top: 0;
left: 0;
max-width: 900px;
margin: auto;
z-index: 1000;
border-radius: 12px;
}

header.headerGite {
background-color: #F2E9E7;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
top: 0;
left: 0;
max-width: 900px;
margin: auto;
padding: 0 20px;
border-radius: 12px;
z-index: 1000;
}

.nav-container {
display: flex;
align-items: center;
justify-content: space-between;
padding: 15px 20px;
max-width: 1000px;
margin: auto;
}

.logo {
font-size: 20px;
font-weight: bold;
color: #333;
vertical-align: middle;
font-family: Bradley Hand, cursive;
font-size: 32px;
}
.logo img{
	width:80px;
}
.burger {
font-size: 26px;
cursor: pointer;
display: none;
}

.nav-links {
list-style: none;
display: flex;
gap: 30px;
}

.nav-links a {
text-decoration: none;
color: #333;
font-weight: bold;
}

/* MOBILE */
@media (max-width: 768px) {
.logo img{
	width:60px;
}
.burger {
display: block;
}

.nav-links {
display: none;
flex-direction: column;
background-color: #F2E9E7;
top: 90px;
position: fixed;
right: 3%;
width: 40%;
max-width: 300px;
padding: 20px 0px 20px;
box-shadow: -2px 0 10px rgba(0,0,0,0.1);
transition: transform 0.3s ease;
transform: translateX(100%);
z-index: 999;
border-radius: 4px;
gap: 10px;
}

.nav-links.open {
display: flex;
transform: translateX(0);
}

.nav-links li {
padding: 12px 20px;
border-bottom: 1px solid #eee;
text-align: left;
}
.baniere{
display:none;
}
h1 {
font-size: 18px;
}
}
/* ------- Sous-menu déroulant pour PC et mobile ------- */

/* SOUS-MENU : comportement général */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  flex-direction: column;
  list-style: none;
  background-color: #F2E9E7;
  padding: 10px 0;
  margin: 0;
  z-index: 999;
  border-radius: 8px;
  border: 1px solid white;
}

/* PC : survol */
@media (min-width: 769px) {
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.calendar-wrapper {
flex: 1 1 500px;
min-width: 300px;
background: #fff;
border: 1px solid #ddd;
border-radius: 12px;
box-shadow: 0 4px 10px rgba(0,0,0,0.05);
padding: 16px;
}

.booking-panel {
flex: 0 0 300px;
max-width: 100%;
background: #fff;
border: 1px solid #ddd;
border-radius: 12px;
box-shadow: 0 4px 10px rgba(0,0,0,0.05);
padding: 16px;
position: sticky;
top: 100px;
font-size: 0.95rem;
box-sizing: border-box;
overflow: hidden;
}
.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
	border-bottom: 1px solid #eee;
	padding: 8px 0;
	gap:20px;
	border-radius: 4px;
	text-align:center
}
.dropdown-menu li:hover {
  background-color: #F8F4F3; /* Couleur de fond au survol, à adapter */
  cursor: pointer; /* Curseur pointer au survol */
}
}

/* MOBILE : affichage via JS */
@media (max-width: 768px) {
.dropdown-menu {
    display: none;
    flex-direction: column;
    margin-top: 8px;
  }
.dropdown.open .dropdown-menu {
	display: flex;
}
.dropdown-menu li {
	border-bottom: 1px solid #eee;
	padding: 8px 0;
	gap:20px;
	border-radius: 4px;
	text-align:center
}

.dropdown-menu li a {
	font-size: 15px;
	color: #333;
}
.calendar-wrapper {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 12px;
	box-shadow: 0 4px 10px rgba(0,0,0,0.05);
	padding: 16px;
	margin:auto;
	}
}
/* FIN*/

.gite-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
	margin-top: 30px;
	max-width: 900px;
	margin: auto;
}
.gite-card { background: white; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); overflow: hidden; display: flex; flex-direction: column; }
.gite-card img { width: 100%; height: 200px; object-fit: cover; }
.gite-card-content { padding: 15px; }
.gite-card h2 { margin: 0 0 10px; font-size: 1.2em; color: #2c3e50; }
.gite-card p { margin: 5px 0; }
.price { color: #27ae60; font-weight: bold; }
.btn { margin-top: 10px; display: inline-block; padding: 8px 12px; background: #3498db; color: white; text-decoration: none; border-radius: 4px; }

.accroche {
font-size: 1.1rem;
font-style: italic;
color: #444;
margin-bottom: 25px;
}
.tags-container {
display: flex;
flex-wrap: wrap;
gap: 20px;
margin-bottom: 30px;
}
.tag-block {
flex: 1 1 200px;
background: #f0f4f8;
padding: 15px 20px;
border-radius: 10px;
box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.tag-block h4 {
margin-bottom: 10px;
color: #2c3e50;
font-size: 1rem;
border-bottom: 2px solid #ccc;
padding-bottom: 5px;
}
.tag-block ul {
margin: 0;
padding-left: 18px;
}
.tag-block li {
font-size: 0.95rem;
margin-bottom: 4px;
}
.container-flex {
display: flex;
gap: 40px;
align-items: flex-start;
margin-top: 40px;
flex-wrap: wrap;
}
.gite-content {
flex: 1 1 600px;
min-width: 0;
}
.booking-panel form {
width: 100%;
box-sizing: border-box;
}
.booking-panel input {
width: 100%;
box-sizing: border-box;
padding: 8px;
margin-bottom: 10px;
font-size: 0.95rem;
border-radius: 6px;
border: 1px solid #ccc;
}
.booking-total {
font-weight: bold;
margin: 10px 0;
font-size: 1rem;
}
.booking-panel button {
width: 100%;
padding: 10px;
font-size: 1rem;
color: white;
border: none;
border-radius: 8px;
cursor: pointer;
}
.calendar-booking-row {
display: flex;
flex-wrap: wrap;
gap: 40px;
align-items: flex-start;
margin-top: 20px;
}
.departure-only {
  background-color: orange !important;
  color: white;
  cursor: pointer;
}
.calendar-tooltip {
  position: absolute;
  background: #333;
  color: white;
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 13px;
  white-space: nowrap;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 1000;
  opacity: 0.95;
}
#calendar-legend {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  margin-right: 1rem;
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  margin-right: 0.5rem;
}

.legend-color.available {
  background-color: #bbf7d0; /* vert */
}

.legend-color.departure-only {
  background-color: orange;
}

.legend-color.reserved {
  background-color: #fca5a5; /* rouge */
}
@media (max-width: 768px) {
.calendar-booking-row {
flex-direction: column;
}

.booking-panel {
max-width: 100%;
background: #fff;
border: 1px solid #ddd;
border-radius: 12px;
box-shadow: 0 4px 10px rgba(0,0,0,0.05);
padding: 16px;
position: sticky;
top: 100px;
font-size: 0.95rem;
box-sizing: border-box;
overflow: auto;
  max-height: 100%;
}
}
/* 🌾 Thème Flatpickr beige bord de mer */
.flatpickr-calendar {
font-family: inherit;
border: none;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
background: #f6f1e7;
color: #4e4b47;
border-radius: 12px;
overflow: hidden;
}
.flatpickr-months {
background-color: #f6f1e7;
color: #4e4b47;
font-weight: bold;
}
.flatpickr-weekday {
color: #7a776d;
}
.flatpickr-day {
border-radius: 6px;
}
.flatpickr-day:hover {
background: #e0d6c8;
color: #000;
}
.flatpickr-day.today {
background: #e8e1d2;
color: #000;
font-weight: bold;
border: 1px solid #c5bba9;
}
.flatpickr-day.selected {
background: #d0c6b6;
color: white;
border: none;
}
.flatpickr-day.disabled,
.flatpickr-day.disabled:hover {
color: #ccc;
background: transparent;
cursor: not-allowed;
}
.flatpickr-day.disabled,
.flatpickr-day.disabled:hover {
background: #eee !important;
color: #aaa !important;
cursor: not-allowed;
text-decoration: line-through;
opacity: 0.7;
border: none;
}
.reset-button {
margin-top: 15px;
padding: 8px 14px;
background-color: #eee;
border: 1px solid #ccc;
border-radius: 6px;
font-size: 0.9rem;
cursor: pointer;
transition: background 0.2s ease;
}
.reset-button:hover {
background-color: #ddd;
}
.confirmation {
max-width: 600px;
margin: auto;
background-color: #fff;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0,0,0,0.05);
padding: 30px;
text-align: center;
}
.confirmation h1 {
color: #2d2d2d;
font-size: 24px;
}
.confirmation p {
color: #444;
font-size: 16px;
line-height: 1.6;
}
.details {
margin-top: 20px;
background: #f1f1f1;
padding: 15px;
border-radius: 8px;
text-align: left;
}
.details strong {
display: inline-block;
width: 120px;
}

/* Overlay sombre semi-transparent */
#modalOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: none;
}

/* Conteneur de la modale */
#modalCGV {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 8px;
  padding: 20px 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  display: none;
  font-family: Arial, sans-serif;
  color: #333;
}

/* Titre de la modale */
#modalCGV h2 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.5rem;
  color: #222;
  text-align: center;
}

/* Contenu texte CGV */
#cgvContent {
  white-space: normal !important;
  line-height: 1.5;
  font-size: 0.95rem;
  margin-bottom: 20px;
}
/* Bouton fermer */
#modalCGV button {
  display: block;
  margin: 0 auto;
  background-color: #2c3e50;
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

#modalCGV button:hover {
  background-color: #34495e;
}

/* Lien CGV dans le formulaire */
#booking-panel a#showCGV {
  color: #3498db;
  text-decoration: underline;
  cursor: pointer;
}

#booking-panel a#showCGV:hover {
  color: #2980b9;
}

/* Checkbox et label */
#booking-panel input[type="checkbox"] {
  margin-right: 8px;
  vertical-align: middle;
}

#booking-panel label {
  font-size: 0.95rem;
  vertical-align: middle;
}
    label {
      display: block;
      margin-top: 15px;
      margin-bottom: 5px;
      font-weight: bold;
      color: #555;
    }
    input[type="text"],
    input[type="email"],
    textarea {
      width: 100%;
      padding: 10px;
      font-size: 1rem;
      border: 1px solid #ccc;
      border-radius: 5px;
      box-sizing: border-box;
      resize: vertical;
    }
    textarea {
      height: 120px;
    }
    .success-message, .error-message {
      margin-top: 15px;
      padding: 10px;
      border-radius: 5px;
      font-weight: bold;
      text-align: center;
    }
    .success-message {
      background-color: #d4edda;
      color: #155724;
    }
    .error-message {
      background-color: #f8d7da;
      color: #721c24;
    }
	
	
.popup-message {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #4CAF50;
  color: white;
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  opacity: 0;
  transition: opacity 0.3s ease, bottom 0.3s ease;
  z-index: 1000;
}

.popup-message.visible {
  opacity: 1;
  bottom: 40px;
}