@charset "UTF-8";


/* ========== VARIABLES CSS - LOCATION MODULE ========== */
:root {
  --loc-white: #fff;
  --loc-black: #000;
  --loc-primary: #667eea;
  --loc-primary-dark: #764ba2;
  --loc-primary-hover: #5a6fd8;
  --loc-primary-hover-dark: #6a4190;
  --loc-success: #27ae60;
  --loc-success-light: #2ecc71;
  --loc-success-bg: #4CAF50;
  --loc-info: #007bff;
  --loc-info-bg: #f8f9fa;
  --loc-warning: #FF9800;
  --loc-warning-bg: #fff3cd;
  --loc-warning-border: #ffeaa7;
  --loc-danger: #f44336;
  --loc-danger-dark: #c0392b;
  --loc-accent: #ffd322;
  --loc-text-dark: #2c3e50;
  --loc-text-medium: #666;
  --loc-text-light: #555;
  --loc-bg-light: #f8f9fa;
  --loc-bg-grey: #e9e9ed;
  --loc-bg-grey-light: #f0f0f0;
  --loc-bg-grey-dark: #e0e0e0;
  --loc-border: #ccc;
  --loc-border-light: #ddd;
  --loc-calendar-blue: #569ff7;
  --loc-calendar-grey: #959ea9;
  --loc-calendar-disabled: #999;
  --loc-calendar-day: #393939;
  --loc-calendar-yellow: #fcdb34;
  --loc-cancel-primary: #6c757d;
  --loc-cancel-dark: #495057;
  --loc-cancel-light: #adb5bd;
  --loc-create-success: #28a745;
  --loc-create-success-light: #20c997;
  --loc-gradient-primary: linear-gradient(135deg, var(--loc-primary) 0%, var(--loc-primary-dark) 100%);
  --loc-gradient-cancel: linear-gradient(135deg, var(--loc-cancel-primary) 0%, var(--loc-cancel-dark) 100%);
  --loc-gradient-success: linear-gradient(135deg, var(--loc-create-success) 0%, var(--loc-create-success-light) 100%);
  --loc-shadow-primary: 0 4px 15px rgba(102, 126, 234, 0.3);
  --loc-shadow-primary-hover: 0 6px 20px rgba(102, 126, 234, 0.4);
  --loc-shadow-grey: 0 6px 20px rgba(108, 117, 125, 0.4);
  --loc-shadow-default: 0 15px 35px rgba(0,0,0,0.1);
}


/* ========== BASE STYLES ========== */
html, body {
  height: auto !important;
  overflow: visible !important;
  margin: 0;
  padding: 0;
}
body {
  font-family: sans-serif;
  padding: 20px;
  max-width: 600px;
  margin: auto;
}
select, input, button { display: block; width: 100%; margin: 10px 0; padding: 10px; font-size: 1rem; box-sizing: border-box; border-radius: 5px; border: 1px solid var(--loc-border); }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"] { background-color: var(--loc-white); }

/* ========== DATE RESTRICTIONS ========== */
.date-restriction-info { font-size: 0.85rem; color: var(--loc-text-medium); margin-top: 5px; font-style: italic; background-color: var(--loc-info-bg); border-left: 3px solid var(--loc-info); padding: 8px 12px; border-radius: 4px; }
.date-restriction-warning { background-color: var(--loc-warning-bg); border: 1px solid var(--loc-warning-border); padding: 8px; border-radius: 4px; margin: 5px 0; font-size: 0.9rem; }


/* ========== BOUTONS DE RÉSERVATION ========== */
#reserver { background: var(--loc-gradient-primary) !important; color: var(--loc-white) !important; border: none !important; cursor: pointer !important; transition: all 0.3s ease !important; box-shadow: var(--loc-shadow-primary) !important; }
#reserver:hover { transform: translateY(-2px) !important; box-shadow: var(--loc-shadow-primary-hover) !important; }
#reserver:active { transform: translateY(0) !important; }
#reserver-provisoire { background: var(--loc-bg-grey); color: var(--loc-black) !important; font-weight: normal !important; cursor: pointer !important; transition: all 0.3s ease !important; }
#reserver-provisoire:hover { transform: translateY(-2px) !important; box-shadow: var(--loc-shadow-grey) !important; }
#reserver-provisoire:active { transform: translateY(0) !important; }
button:disabled { opacity: 0.6 !important; cursor: not-allowed !important; transform: none !important; }


/* ========== SUCCESS PAGE ========== */
.success-container { max-width: 600px; margin: 50px auto; padding: 40px; background: var(--loc-gradient-primary); border-radius: 20px; box-shadow: var(--loc-shadow-default); color: var(--loc-white); text-align: center; }
.success-icon { font-size: 4rem; margin-bottom: 20px; animation: bounce 2s infinite; }
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}
.success-title { font-size: 2rem; margin-bottom: 10px; font-weight: bold; }
.calendar-status { background: rgba(255,255,255,0.1); border-radius: 10px; padding: 15px; margin: 20px 0; border-left: 4px solid var(--loc-success-bg); }
.calendar-status.warning { border-left-color: var(--loc-warning); }
.reservation-details { background: rgba(255,255,255,0.1); border-radius: 15px; padding: 25px; margin: 30px 0; text-align: left; backdrop-filter: blur(10px); }
.detail-row { display: flex; justify-content: space-between; margin-bottom: 10px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.detail-label { font-weight: 600; opacity: 0.8; }
.detail-value { font-weight: bold; }
.next-steps { background: rgba(255,255,255,0.1); border-radius: 15px; padding: 25px; margin-top: 30px; text-align: left; }
.next-steps h3 { margin-bottom: 15px; color: var(--loc-white); }
.next-steps ul { list-style: none; padding: 0; }
.next-steps li { margin-bottom: 10px; padding-left: 25px; position: relative; }
.next-steps li:before { content: "✓"; position: absolute; left: 0; color: var(--loc-success-bg); font-weight: bold; }
.error-container { max-width: 600px; margin: 50px auto; padding: 40px; background: var(--loc-danger); border-radius: 20px; color: var(--loc-white); text-align: center; }
.btn-home { display: inline-block; margin-top: 30px; padding: 15px 30px; background: rgba(255,255,255,0.2); color: var(--loc-white); text-decoration: none; border-radius: 10px; font-weight: bold; transition: all 0.3s ease; border: 2px solid rgba(255,255,255,0.3); }
.btn-home:hover { background: rgba(255,255,255,0.3); transform: translateY(-2px); }
.calendar-integration { background: rgba(255,255,255,0.1); border-radius: 15px; padding: 20px; margin-top: 20px; }
.calendar-integration h4 { margin-bottom: 15px; color: var(--loc-white); }
.calendar-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.calendar-btn { padding: 10px 20px; background: rgba(255,255,255,0.2); color: var(--loc-white); text-decoration: none; border-radius: 8px; font-size: 0.9rem; transition: all 0.3s ease; }
.calendar-btn:hover { background: rgba(255,255,255,0.3); }


/* ========== CANCEL PAGE ========== */
.cancel-container { max-width: 600px; margin: 50px auto; padding: 40px; background: var(--loc-gradient-cancel); border-radius: 20px; box-shadow: var(--loc-shadow-default); color: var(--loc-white); text-align: center; }
.cancel-icon { font-size: 4rem; margin-bottom: 20px; opacity: 0.8; }
.cancel-title { font-size: 2rem; margin-bottom: 10px; font-weight: bold; }
.cancel-message { font-size: 1.2rem; margin-bottom: 15px; opacity: 0.9; }
.cancel-submessage { font-size: 1rem; margin-bottom: 30px; opacity: 0.7; line-height: 1.5; }
.info-box { background: rgba(255,255,255,0.1); border-radius: 15px; padding: 20px; margin: 30px 0; text-align: left; }
.info-box h3 { margin-bottom: 15px; color: var(--loc-white); }
.info-box ul { list-style: none; padding: 0; }
.info-box li { margin-bottom: 8px; padding-left: 20px; position: relative; }
.info-box li:before { content: "•"; position: absolute; left: 0; color: var(--loc-cancel-light); }
.btn-primary { background: var(--loc-gradient-primary); border: 2px solid rgba(102, 126, 234, 0.5); }
.btn-primary:hover { background: linear-gradient(135deg, var(--loc-primary-hover) 0%, var(--loc-primary-hover-dark) 100%); }
.session-info { background: rgba(255,255,255,0.05); border-radius: 10px; padding: 15px; margin: 20px 0; font-size: 0.9rem; opacity: 0.6; }


/* ========== FLATPICKR CUSTOMIZATION ========== */
.flatpickr-day.flatpickr-disabled, .flatpickr-day.flatpickr-disabled:hover { background-color: var(--loc-bg-grey-light) !important; color: var(--loc-border) !important; cursor: not-allowed !important; text-decoration: line-through !important; opacity: 0.5 !important; border-color: transparent !important; }
.flatpickr-day:not(.flatpickr-disabled) { cursor: pointer; color: var(--loc-calendar-day); }
.flatpickr-day:not(.flatpickr-disabled):hover { background-color: var(--loc-bg-grey-dark); border-color: var(--loc-calendar-grey); }
.flatpickr-day.selected { background-color: var(--loc-calendar-blue) !important; color: var(--loc-white) !important; border-color: var(--loc-calendar-blue) !important; }
.flatpickr-day.today { border-color: var(--loc-calendar-grey); }
.flatpickr-day.today:not(.flatpickr-disabled) { color: var(--loc-calendar-grey); font-weight: bold; }
.flatpickr-day.date-indisponible { background-color: var(--loc-bg-grey-dark) !important; color: var(--loc-calendar-disabled) !important; cursor: not-allowed !important; pointer-events: none !important; }


/* ========== FLATPICKR HEADER FIX ========== */
.flatpickr-current-month { display: flex !important; align-items: center !important; justify-content: center !important; gap: 5px !important; height: 28px !important; line-height: 1 !important; padding: 0 !important; }
.flatpickr-current-month .flatpickr-monthDropdown-months, .flatpickr-current-month .numInputWrapper { display: inline-block !important; vertical-align: middle !important; margin: 0 !important; }
.flatpickr-current-month .flatpickr-monthDropdown-months { font-size: 14px !important; }
.flatpickr-current-month .numInputWrapper { width: 60px !important; }
.flatpickr-current-month input.cur-year { font-size: 14px !important; padding: 0 2px !important; height: auto !important; line-height: 1 !important; }


/* ========== CATEGORY SELECTOR (NEW) ========== */
.category-selector-container {
  margin: 10px 0 20px 0;
}

.category-toggle-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.category-toggle-btn {
  flex: 1;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid var(--loc-border);
  background-color: var(--loc-white);
  color: var(--loc-text-dark);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.category-toggle-btn:hover {
  border-color: var(--loc-primary);
  background-color: var(--loc-bg-light);
}

.category-toggle-btn.active {
  background: var(--loc-gradient-primary);
  color: var(--loc-white);
  border-color: transparent;
  box-shadow: var(--loc-shadow-primary);
  transform: scale(1.02);
}

.category-images-container {
  margin-top: 15px;
}

.category-images {
  display: none !important;
}

.category-images.active {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 15px;
}

/* Carte d'espace cliquable */
.space-card {
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 3px solid transparent;
  background: var(--loc-white);
}

.space-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.space-card.selected {
  border-color: var(--loc-primary);
  box-shadow: 0 0 25px rgba(102, 126, 234, 0.6);
  transform: translateY(-3px);
}

.space-card-title {
  padding: 10px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--loc-bg-light);
  color: var(--loc-text-dark);
}

.space-card.selected .space-card-title {
  background: var(--loc-gradient-primary);
  color: var(--loc-white);
}

/* Style pour les sliders de booking */
.image-slider-booking {
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

.image-slider-booking .slides {
  display: flex;
  transition: transform 0.3s ease-in-out;
  will-change: transform;
}

.image-slider-booking .slide-wrapper {
  flex: 0 0 100%;
  position: relative;
}

.image-slider-booking img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: cover;
}

/* Flèches du slider */
.image-slider-booking .slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: var(--loc-white);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: all 0.3s ease;
  opacity: 0;
}

.image-slider-booking .slider-arrow.show {
  opacity: 1;
}

.image-slider-booking .slider-arrow:hover {
  background: rgba(0, 0, 0, 0.75);
  transform: translateY(-50%) scale(1.1);
}

.image-slider-booking .slider-arrow-prev {
  left: 10px;
}

.image-slider-booking .slider-arrow-next {
  right: 10px;
}

.image-slider-booking .slider-arrow svg {
  width: 20px;
  height: 20px;
}

/* Dots du slider */
.image-slider-booking .slider-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.image-slider-booking .slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.image-slider-booking .slider-dot.active {
  background: var(--loc-white);
  transform: scale(1.2);
}

.image-slider-booking .slider-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* ========== AMÉLIORATION FORMULAIRES (TOUS ÉCRANS) ========== */

/* Select et input améliorés - empêche zoom sur iPhone */
select, input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="number"] {
  font-size: 16px !important;
  -webkit-appearance: none;
  appearance: none;
}

/* Amélioration des checkboxes et radio buttons */
input[type="checkbox"], input[type="radio"] {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px;
  min-height: 20px;
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
}

/* Labels des checkboxes et radios */
input[type="checkbox"] + label,
input[type="radio"] + label,
label[for*="opt-"],
label[for*="fond-"] {
  font-size: 1rem !important;
  line-height: 1.4 !important;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Container des suppléments */
#supplements-container {
  margin-top: 20px !important;
}

/* Fonds obligatoires */
#fonds-wrapper {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin-top: 10px;
}

#fonds-wrapper > div {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 30px;
}

/* Suppléments optionnels */
#supplements-wrapper > div {
  padding: 8px 0 !important;
  min-height: 32px;
}

/* Details/Summary (dépliant) */
details summary {
  font-size: 1rem !important;
  font-weight: 600 !important;
  padding: 10px 0 !important;
  cursor: pointer !important;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Responsive */
@media (max-width: 767px) {
  /* Augmenter la taille des éléments touch sur mobile */
  select, input, button {
    padding: 14px 12px !important;
    font-size: 16px !important;
    min-height: 48px;
  }

  /* Checkboxes et radios encore plus grands sur mobile */
  input[type="checkbox"], input[type="radio"] {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px;
    min-height: 24px;
  }

  /* Labels plus grands et espacés */
  input[type="checkbox"] + label,
  input[type="radio"] + label,
  label[for*="opt-"],
  label[for*="fond-"] {
    font-size: 1.1rem !important;
    line-height: 1.5 !important;
    padding: 4px 0;
  }

  /* Fonds wrapper - plus d'espace sur mobile */
  #fonds-wrapper {
    gap: 15px !important;
    margin-top: 12px;
  }

  #fonds-wrapper > div {
    gap: 10px !important;
    min-height: 36px;
  }

  /* Suppléments - plus d'espace entre les lignes */
  #supplements-wrapper > div {
    padding: 12px 0 !important;
    gap: 8px !important;
    min-height: 40px;
  }

  /* Details/Summary plus grand */
  details summary {
    font-size: 1.1rem !important;
    padding: 12px 0 !important;
  }

  /* Category selector */
  .category-toggle-btn {
    padding: 10px 15px;
    font-size: 0.9rem;
  }

  .category-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .image-slider-booking img {
    max-height: 150px;
  }

  .image-slider-booking .slider-arrow {
    width: 25px;
    height: 25px;
  }

  .image-slider-booking .slider-arrow svg {
    width: 14px;
    height: 14px;
  }

  .space-card-title {
    font-size: 0.85rem;
    padding: 8px;
  }
}