* { margin:0; padding:0; box-sizing:border-box; }

:root {
  --primary: #16284a;
  --primary-light: #2d6a9f;
  --gold: #c9a84c;
  --gold-light: #e8c96d;
  --white: #ffffff;
  --text: #2c2c2c;
  --text-light: #666;
}

html, body {
  height: 100%;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  overflow: hidden;
}

/* ========== SLIDER PLEIN ECRAN ========== */
#slider {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

#slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.4,0,0.2,1);
}

.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  background-size: cover;
  background-position: center;
}

.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(8,16,30,0.55) 0%,
    rgba(8,16,30,0.15) 40%,
    rgba(8,16,30,0.05) 60%,
    rgba(8,16,30,0.45) 100%
  ), linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.05) 45%, rgba(0,0,0,0.25) 100%);
}

/* Remplace ces gradients par tes vraies photos d'hôtel depuis le tableau de bord */
.slide-1 { background-image: linear-gradient(135deg,#0a1d33,#1a3a5c 60%,#2d6a9f); }
.slide-2 { background-image: linear-gradient(135deg,#0a1d33,#1e4a3a 60%,#3f8c6a); }
.slide-3 { background-image: linear-gradient(135deg,#0a1d33,#3a2d1e 60%,#9f7a2d); }
.slide-4 { background-image: linear-gradient(135deg,#0a1d33,#3a1e3a 60%,#8c4a8c); }

#slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 5;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: all 0.3s;
}

.dot.active {
  background: var(--gold);
  width: 26px;
  border-radius: 4px;
}

/* ========== LOGO en haut à gauche ========== */
#logo-overlay {
  position: fixed;
  top: 28px;
  left: 36px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 14px;
}

#logo-zone { width: 56px; height: 56px; flex-shrink: 0; }

#site-logo { width: 56px; height: 56px; object-fit: contain; }

#logo-initiale {
  width: 56px; height: 56px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--gold);
  background: rgba(8,16,30,0.3);
}

.logo-textes {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  color: white;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.logo-label {
  font-size: 11px;
  letter-spacing: 4px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}

#site-nom {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold-light);
}

.logo-baseline {
  font-size: 10.5px;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.8);
  margin-top: 2px;
}

/* ========== HEADER (tel + langue) en haut à droite ========== */
#header-overlay {
  position: fixed;
  top: 28px;
  right: 36px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-tel {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(8,16,30,0.45);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  padding: 9px 18px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13.5px;
  transition: all 0.25s;
}

.btn-tel:hover { background: rgba(8,16,30,0.7); border-color: var(--gold); }

.lang-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 9px 16px;
  background: rgba(8,16,30,0.45);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  color: white;
}

.lang-selector .flag { font-size: 14px; }
.lang-selector .chevron { font-size: 10px; opacity: 0.7; }

/* ========== TEXTE BIENVENUE en bas à gauche ========== */
#bienvenue-overlay {
  position: fixed;
  bottom: 56px;
  left: 36px;
  z-index: 10;
  max-width: 560px;
  color: white;
}

.bienvenue-label {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  margin-bottom: 4px;
}

#bienvenue-nom {
  font-family: 'Playfair Display', serif;
  font-size: 44px;
  font-weight: 900;
  color: var(--gold-light);
  text-shadow: 0 3px 14px rgba(0,0,0,0.6);
  line-height: 1.1;
  margin-bottom: 12px;
}

#bienvenue-slogan {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* ========== WIDGET MAEVA flottant en haut à droite ========== */
#chat-widget {
  position: fixed;
  top: 96px;
  right: 36px;
  width: 400px;
  max-height: calc(100vh - 130px);
  z-index: 20;
  background: white;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#chat-header {
  background: linear-gradient(135deg, var(--primary) 0%, #0a1830 100%);
  color: white;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

#chat-avatar-zone { position: relative; width: 52px; height: 52px; flex-shrink: 0; }

#chat-avatar-cercle {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}

#avatar-svg { width: 52px; height: 52px; }

#chat-en-ligne-dot {
  position: absolute;
  bottom: -1px; right: -1px;
  width: 13px; height: 13px;
  background: #2ecc71;
  border-radius: 50%;
  border: 2px solid white;
}

#chat-header-info { flex: 1; min-width: 0; }

#chat-nom {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 21px;
  font-weight: 700;
}

#chat-sous-titre {
  font-size: 11.5px;
  color: rgba(255,255,255,0.8);
  margin-top: 1px;
}

#chat-en-ligne-badge {
  background: #2ecc71;
  color: white;
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
  white-space: nowrap;
}

#chat-close {
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  width: 26px; height: 26px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  margin-left: 4px;
}

#chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f4f2ec;
  max-height: 360px;
}

#chat-messages::-webkit-scrollbar { width: 4px; }
#chat-messages::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }

.message {
  max-width: 88%;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.55;
}

.message.bot {
  background: white;
  align-self: flex-start;
  border-radius: 2px 12px 12px 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.message.user {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  align-self: flex-end;
  border-radius: 12px 2px 12px 12px;
}

.message-time { font-size: 10px; opacity: 0.5; margin-top: 5px; text-align: right; }

.quick-replies { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

.quick-reply {
  display: flex;
  align-items: center;
  gap: 6px;
  background: white;
  border: 1.5px solid #ddd;
  padding: 9px 14px;
  border-radius: 22px;
  font-size: 12.5px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
  color: var(--text);
}

.quick-reply:hover { border-color: var(--gold); background: #fdf8ec; }

.typing {
  display: flex; gap: 5px;
  padding: 12px 16px;
  background: white;
  border-radius: 2px 12px 12px 12px;
  align-self: flex-start;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  width: fit-content;
}

.typing span { width: 7px; height: 7px; background: var(--gold); border-radius: 50%; animation: bounce 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce { 0%,100% { transform: translateY(0); opacity:.4; } 50% { transform: translateY(-6px); opacity:1; } }

#chat-footer-info {
  text-align: center;
  font-size: 10.5px;
  color: #aaa;
  padding: 6px 10px;
  background: white;
  border-top: 1px solid #f0f0f0;
}

#chat-input-zone {
  padding: 12px 14px;
  background: white;
  display: flex;
  gap: 10px;
  align-items: center;
  border-top: 1px solid #eee;
}

#chat-input {
  flex: 1;
  padding: 10px 16px;
  border: 1.5px solid #e0e0e0;
  border-radius: 25px;
  font-size: 13.5px;
  outline: none;
  background: #f8f8f8;
}

#chat-input:focus { border-color: var(--gold); background: white; }

#chat-send {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border: none;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

#chat-send:hover { background: linear-gradient(135deg, var(--gold), var(--gold-light)); }

/* Bulle flottante quand fermé */
#chat-bubble {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 58px; height: 58px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  cursor: pointer;
  z-index: 30;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

#chat-bubble-dot {
  position: absolute; top: 4px; right: 4px;
  width: 13px; height: 13px;
  background: #2ecc71;
  border-radius: 50%;
  border: 2px solid white;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  html, body { overflow: auto; }
  #slider { position: fixed; }
  #logo-overlay { top: 16px; left: 16px; }
  .logo-baseline { display: none; }
  #header-overlay { top: 16px; right: 16px; gap: 8px; }
  .lang-selector span:not(.flag) { display: none; }
  #bienvenue-overlay { left: 16px; right: 16px; bottom: 140px; max-width: 100%; }
  #bienvenue-nom { font-size: 28px; }
  #chat-widget { top: auto; right: 10px; left: 10px; bottom: 10px; width: auto; max-height: 70vh; }
}

/* CARTES LOGEMENT DANS LE CHAT */
.carte-logement {
  margin-top: 2px;
}

.carte-logement-img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 8px;
  background: linear-gradient(135deg,#1a3a5c,#2d6a9f);
}

.carte-logement-nom {
  font-weight: 700;
  color: var(--primary);
  font-size: 14px;
  margin-bottom: 4px;
}

.carte-logement-desc {
  font-size: 12px;
  color: #777;
  margin-bottom: 6px;
}

.carte-logement-prix {
  font-weight: 700;
  color: var(--gold);
  font-size: 13.5px;
}

.carte-logement-prix span {
  font-size: 10.5px;
  color: #999;
  font-weight: 400;
}

/* FLUX RESERVATION INLINE DANS LE CHAT */
.resa-inline-row {
  display: flex;
  gap: 8px;
  margin: 8px 0;
}

.resa-inline-champ { flex: 1; }

.resa-inline-champ label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #666;
  margin-bottom: 3px;
}

.resa-inline-champ input {
  width: 100%;
  padding: 7px 9px;
  border: 1.5px solid #e0e0e0;
  border-radius: 7px;
  font-size: 12.5px;
  outline: none;
}

.resa-inline-champ input:focus { border-color: var(--gold); }

.btn-resa-action {
  background: var(--primary);
  color: white;
  border: none;
  padding: 9px 16px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
}

.btn-resa-action:hover { background: var(--gold); }

.resa-resultat { margin-top: 8px; font-size: 12.5px; }
.resa-ok { color: #2ecc71; font-weight: 600; }
.resa-erreur { color: #e74c3c; font-weight: 600; }

/* MINI CAROUSEL DANS LES CARTES LOGEMENT (chat) */
.mini-carousel {
  position: relative;
  width: 100%;
  height: 110px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 8px;
}

.mini-carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease;
}

.mini-carousel-img {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 10px;
  cursor: pointer;
  z-index: 5;
}

.mini-carousel-btn.prev { left: 6px; }
.mini-carousel-btn.next { right: 6px; }

.mini-carousel-dots {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  z-index: 5;
}

.mini-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
}

.mini-dot.active {
  background: var(--gold);
  width: 14px;
  border-radius: 3px;
}
