/* ============================================
   Le Domaine D'autrefoisjadis — feuille de style
   ============================================ */

:root {
  --cream: #faf5ea;
  --stone: #ecdfc0;
  --green-dark: #263826;
  --green: #4d6b42;
  --green-light: #8aa576;
  --terracotta: #c1502e;
  --gold: #c99a3d;
  --wine: #7a1626;
  --wine-dark: #5c0f1c;
  --text: #1c1812;
  --text-light: #5c5548;
  --white: #ffffff;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Jost', 'Segoe UI', sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 20px 50px rgba(28, 24, 18, 0.18);
  --shadow-soft: 0 8px 24px rgba(28, 24, 18, 0.1);
}

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

html { scroll-behavior: smooth; font-size: 17px; overflow-x: hidden; max-width: 100%; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--green-dark);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

section { padding: 110px 0; }

.section-label {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.9rem;
  color: var(--terracotta);
  font-weight: 700;
  margin-bottom: 16px;
  display: inline-block;
}

.section-title {
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  margin-bottom: 22px;
}

.section-intro {
  max-width: 680px;
  color: var(--text-light);
  font-size: 1.2rem;
  margin-bottom: 56px;
}

.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  padding: 17px 38px;
  border-radius: var(--radius-sm);
  font-size: 1.02rem;
  letter-spacing: 0.3px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--wine);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(122, 22, 38, 0.35);
}
.btn-primary:hover { background: var(--wine-dark); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(122, 22, 38, 0.45); }

.btn-outline {
  background: rgba(255,255,255,0.08);
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--green-dark); }

.btn-outline-dark {
  background: transparent;
  border-color: var(--green-dark);
  color: var(--green-dark);
}
.btn-outline-dark:hover { background: var(--green-dark); color: var(--white); }

.btn-full { width: 100%; text-align: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: all 0.3s ease;
  background: transparent;
}

.site-header.scrolled {
  background: rgb(246, 241, 230);
  box-shadow: var(--shadow-soft);
  padding: 10px 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo span { color: var(--terracotta); }
.site-header.scrolled .logo { color: var(--green-dark); }

.logo-img {
  height: 84px;
  width: 84px;
  border-radius: 50%;
  transition: height 0.3s ease, width 0.3s ease;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.site-header.scrolled .logo-img { height: 64px; width: 64px; }

.main-nav ul { display: flex; gap: 38px; align-items: center; }

.main-nav a {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  position: relative;
  transition: color 0.3s ease;
  padding-bottom: 4px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.site-header.scrolled .main-nav a { color: var(--text); text-shadow: none; }

.main-nav a.active,
.main-nav a:hover { color: var(--terracotta); }

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 0;
  background: var(--terracotta);
  transition: width 0.25s ease;
}
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }

.nav-cta {
  background: var(--terracotta);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 3px;
}
.nav-cta::after { display: none; }

/* ---------- Compte (menu) ---------- */
.nav-account-link {
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 2px;
}
.site-header.scrolled .nav-account-link { border-bottom-color: rgba(28,24,18,0.3); }

/* ---------- Sélecteur de langue (drapeaux) ---------- */
.lang-switcher { position: relative; display: flex; align-items: center; }
.lang-switcher-btn {
  background: none; border: 1px solid rgba(235,225,203,0.4); border-radius: 50%;
  width: 36px; height: 36px; font-size: 1.15rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.lang-switcher-btn:hover { background: rgba(255,255,255,0.1); }
.site-header.scrolled .lang-switcher-btn { border-color: rgba(28,24,18,0.2); }
.site-header.scrolled .lang-switcher-btn:hover { background: var(--stone); }
.lang-switcher-menu {
  display: none;
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow);
  padding: 6px; min-width: 160px; z-index: 50;
}
.lang-switcher-menu.open { display: block; }
.lang-switcher-item {
  display: flex; align-items: center; gap: 8px; width: 100%;
  background: none; border: none; text-align: left; cursor: pointer;
  padding: 9px 12px; border-radius: 6px; font-size: 0.9rem; color: var(--text);
}
.lang-switcher-item:hover { background: var(--stone); }
.lang-switcher-item.active { font-weight: 700; color: var(--terracotta); }

/* Masque le bandeau et l'iframe que Google Translate ajoute automatiquement */
.goog-te-banner-frame.skiptranslate, #google_translate_element, .goog-te-gadget { display: none !important; }
body { top: 0px !important; position: static !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }

.nav-msg-item { display: flex; align-items: center; }
.nav-msg-btn {
  position: relative;
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  border: none;
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s ease;
}
.nav-msg-btn:hover { background: rgba(255,255,255,0.26); }
.site-header.scrolled .nav-msg-btn { color: var(--green-dark); background: rgba(28,24,18,0.08); }
.site-header.scrolled .nav-msg-btn:hover { background: rgba(28,24,18,0.16); }

.nav-msg-badge {
  display: none;
  position: absolute;
  top: -4px; right: -4px;
  min-width: 18px; height: 18px;
  padding: 0 4px;
  border-radius: 10px;
  background: var(--terracotta);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px var(--cream);
}

/* ---------- Compte : avatar + menu déroulant ---------- */
.header-left { display: flex; align-items: center; gap: 16px; }

.staff-hammer-btn {
  background: rgba(255,255,255,0.12);
  border: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.staff-hammer-btn:hover { background: rgba(255,255,255,0.25); }
.site-header.scrolled .staff-hammer-btn { background: rgba(28,24,18,0.08); }
.site-header.scrolled .staff-hammer-btn:hover { background: rgba(28,24,18,0.16); }

.nav-account-dropdown { position: relative; }

.nav-account-avatar-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 4px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.site-header.scrolled .nav-account-avatar-btn { text-shadow: none; }
.nav-account-avatar-img,
.nav-account-avatar-fallback {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.nav-account-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--terracotta);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
}
.nav-account-name {
  font-weight: 600;
  text-transform: capitalize;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.site-header.scrolled .nav-account-avatar-btn { color: var(--text); }

.nav-account-menu {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px;
  min-width: 220px;
  display: none;
  flex-direction: column;
  z-index: 1200;
}
.nav-account-menu.open { display: flex; }
.nav-account-menu-email {
  font-size: 0.78rem;
  color: var(--text-light);
  padding: 8px 12px 10px;
  border-bottom: 1px solid #ece2ca;
  margin-bottom: 6px;
  word-break: break-all;
}
.nav-account-menu a,
.nav-account-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
}
.nav-account-menu a:hover,
.nav-account-menu button:hover { background: var(--cream); }
.nav-account-menu button { color: var(--wine); }

@media (max-width: 900px) {
  .nav-account-menu { position: static; box-shadow: none; margin-top: 10px; }
  .nav-account-name { max-width: none; }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
}
.site-header.scrolled .nav-toggle span { background: var(--green-dark); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}
@media (max-height: 680px) {
  .hero { min-height: 680px; }
}

.hero-bg-split {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
}
.hero-bg-half {
  flex: 1;
  background-size: cover;
  background-position: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(20,17,13,0.5), rgba(20,17,13,0.72));
}

.hero-content { position: relative; z-index: 2; max-width: 740px; width: 100%; }

.hero .section-label { color: var(--gold); font-size: 1rem; }

.hero h1 {
  color: var(--white);
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  margin-bottom: 26px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.35);
}

.hero p {
  font-size: 1.3rem;
  color: var(--stone);
  max-width: 560px;
  margin-bottom: 40px;
}

.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  z-index: 2;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  opacity: 0.8;
}

@media (max-width: 600px) {
  .hero-content { padding-top: 90px; }
  .hero h1 { font-size: 2.1rem; }
  .hero-scroll { display: none; }
}

.hero-small {
  min-height: 78vh;
}

/* ---------- Page Hero (pages internes) ---------- */
.page-hero {
  position: relative;
  height: 50vh;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  margin-top: 0;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: -20px;
  background: center/cover no-repeat url('../img/kota/KotaHOUSE.avif');
  filter: blur(2px);
  z-index: 0;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,17,13,0.28), rgba(20,17,13,0.4));
  z-index: 1;
}
.page-hero > * { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); font-size: clamp(2.6rem, 5.5vw, 4rem); text-shadow: 0 4px 20px rgba(0,0,0,0.35); }
.page-hero .breadcrumb { margin-top: 16px; color: var(--gold); font-size: 1rem; letter-spacing: 1px; }
.page-hero .breadcrumb a { color: var(--stone); border-bottom: 1px solid rgba(255,255,255,0.4); }

/* ---------- Intro / Bienvenue ---------- */
.welcome { background: var(--cream); }
.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.welcome-images {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.welcome-images img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.welcome-images img:first-child { transform: translateY(30px); }

.stats-row {
  display: flex;
  gap: 40px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.stat-item .stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--terracotta);
}
.stat-item .stat-label {
  font-size: 0.92rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* ---------- Cartes Gîtes ---------- */
.gites-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* ---------- Défilement horizontal automatique des gîtes ---------- */
.gites-marquee-section {
  background: var(--stone);
  padding: 44px 0 90px;
}
.global-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border-radius: 30px;
  padding: 12px 24px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 34px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.global-rating-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.global-rating-star { color: var(--gold); font-size: 1.2rem; }
.gites-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.gites-track {
  display: flex;
  align-items: stretch;
  gap: 32px;
  width: max-content;
  padding: 0 32px;
  animation: gitesScroll 64s linear infinite;
}
.gites-track .gite-card {
  flex: 0 0 380px;
  width: 380px;
}
@keyframes gitesScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-25%); }
}
@media (max-width: 600px) {
  .gites-track .gite-card { flex-basis: 260px; width: 260px; }
  .gites-track .gite-card-img { height: 220px; }
  .gites-track .gite-card-body { padding: 20px 20px 24px; }
  .gites-track .gite-card-body h3 { font-size: 1.3rem; margin-bottom: 8px; }
  .gites-track .gite-card-body p { font-size: 0.88rem; margin-bottom: 14px; }
  .gites-track .coming-soon-overlay span { font-size: 1.2rem; letter-spacing: 2px; }
}

.gite-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.gite-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }

.gite-card-img { position: relative; height: 320px; overflow: hidden; }
.gite-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gite-card:hover .gite-card-img img { transform: scale(1.08); }

.offer-badge {
  display: none;
  position: absolute;
  top: 18px; left: 18px;
  background: var(--terracotta);
  color: var(--white);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  z-index: 3;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  animation: offerPulse 1.8s ease-in-out infinite;
}
.offer-badge.show { display: block; }
@keyframes offerPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.06); }
}

.gite-price-tag {
  position: absolute;
  top: 18px; right: 18px;
  background: var(--wine);
  color: var(--white);
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}
.price-barre { font-size: 0.78em; font-weight: 500; opacity: 0.75; text-decoration: line-through; margin-right: 5px; }
.gite-detail-price .price-barre { font-size: 0.5em; }

.gite-card-body { padding: 30px 30px 34px; flex: 1; display: flex; flex-direction: column; }
.gite-card-body h3 { font-size: 1.7rem; margin-bottom: 12px; }
.gite-card-body p { color: var(--text-light); font-size: 1.02rem; margin-bottom: 22px; flex: 1; }

.gite-meta {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.gite-meta span { display: flex; align-items: center; gap: 6px; }
.gite-rating-link {
  display: flex; align-items: center; gap: 6px;
  color: var(--gold) !important;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.gite-rating-link:hover { border-bottom-color: var(--gold); }

.gite-card-actions { display: flex; gap: 12px; }
.gite-card-actions .btn { flex: 1; text-align: center; padding: 13px 16px; font-size: 0.92rem; }

/* ---------- Carte "Bientôt disponible" ---------- */
.gite-card.coming-soon { position: relative; }
.gite-card.coming-soon .gite-card-img img,
.gite-card.coming-soon:hover .gite-card-img img {
  filter: blur(35px) brightness(0.6) saturate(0.6);
  transform: scale(1.15) !important;
  user-select: none;
}
.gite-card.coming-soon .gite-card-body {
  filter: blur(5px);
  user-select: none;
}
.gite-card.coming-soon .gite-price-tag { display: none; }
.coming-soon-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  background: rgba(44, 40, 34, 0.45);
}
.coming-soon-overlay span {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 14px 30px;
  border: 2px solid var(--white);
  border-radius: 4px;
  background: rgba(44, 40, 34, 0.55);
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  transform: rotate(-4deg);
}

/* ---------- Petits plus / avantages inclus ---------- */
.perks-list { margin: 24px 0; }
.perks-list li {
  font-size: 0.92rem;
  color: var(--text);
  padding: 8px 0 8px 26px;
  position: relative;
  border-bottom: 1px dashed var(--stone);
}
.perks-list li:last-child { border-bottom: none; }
.perks-list li::before {
  content: "🍾";
  position: absolute;
  left: 0;
}
.perks-list li.option::before { content: "＋"; color: var(--terracotta); font-weight: 700; }

/* ---------- Options visuelles (façon catégories Airbnb) ---------- */
.options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 28px 0;
}
.option-card {
  position: relative;
  min-height: 140px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--stone);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 22px 16px;
  box-shadow: var(--shadow-soft);
}
.option-card .option-icon { font-size: 1.9rem; margin-bottom: 10px; }
.option-card-label {
  position: relative;
  z-index: 2;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
}
.option-card-label .tag {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--terracotta);
  font-weight: 700;
  margin-bottom: 6px;
}
.option-card.included {
  background: var(--green-dark);
  border-color: var(--green-dark);
}
.option-card.included .option-card-label { color: var(--white); }
.option-card.included .option-card-label .tag { color: var(--gold); }

.option-card.has-photo {
  min-height: 180px;
  background-size: cover;
  background-position: center;
  border: none;
}
.option-card.has-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,17,13,0.15), rgba(20,17,13,0.8));
  z-index: 1;
}
.option-card.has-photo .option-icon,
.option-card.has-photo .option-card-label { position: relative; z-index: 2; color: var(--white); }
.option-card.has-photo .option-card-label .tag { color: var(--gold); }

.option-card-bg {
  position: absolute;
  top: 50%; left: 50%;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  transform: translate(-50%, -50%);
}
.option-card-bg.rotate-90 { transform: translate(-50%, -50%) rotate(-90deg) scale(1.7); }

/* ---------- Détail gîte (page gîtes) ---------- */
.gite-detail {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: start;
  padding: 70px 32px;
}
.gite-detail > div { min-width: 0; }
.gite-detail:nth-child(even) { direction: rtl; }
.gite-detail:nth-child(even) > * { direction: ltr; }
.gite-detail + .gite-detail { border-top: 1px solid var(--stone); }

.gite-gallery-main { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 16px; height: 440px; cursor: pointer; }
.gite-gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gite-gallery-main:hover img { transform: scale(1.03); }
.gite-gallery-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gite-gallery-thumbs img { width: 100%; border-radius: var(--radius-sm); height: 110px; object-fit: cover; cursor: pointer; transition: opacity 0.2s ease, outline 0.2s ease; }
.gite-gallery-thumbs img:hover { opacity: 0.85; }

/* Catégories de photos (façon Airbnb) */
.gallery-categories { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.gallery-cat-btn {
  padding: 9px 18px;
  border-radius: 999px;
  border: 2px solid var(--stone);
  background: var(--white);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.gallery-cat-btn:hover { border-color: var(--terracotta); }
.gallery-cat-btn.active { background: var(--wine); border-color: var(--wine); color: var(--white); }

.gite-equip-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin: 28px 0; }
.gite-equip-list li { font-size: 1rem; color: var(--text); position: relative; padding-left: 26px; }
.gite-equip-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; font-size: 1.1rem; }

.gite-detail-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 22px 0 30px;
}
.gite-detail-price .amount { font-family: var(--font-heading); font-size: 2.6rem; font-weight: 700; color: var(--wine); }
.gite-detail-price .unit { color: var(--text-light); font-size: 1rem; }

/* ---------- Pourquoi nous / atouts ---------- */
.atouts { background: var(--green-dark); color: var(--stone); }
.atouts .section-title { color: var(--white); }
.atouts .section-intro { color: rgba(235,225,203,0.75); }
.atouts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 20px;
}
.atout-item {
  text-align: center;
  padding: 30px 18px;
  border: 1px solid rgba(235,225,203,0.15);
  border-radius: var(--radius);
  transition: background 0.3s ease;
}
.atout-item:hover { background: rgba(255,255,255,0.06); }
.atout-icon { font-size: 2.8rem; margin-bottom: 20px; }
.atout-item h4 { color: var(--white); font-size: 1.2rem; margin-bottom: 12px; }
.atout-item p { font-size: 0.98rem; color: rgba(235,225,203,0.75); }

/* ---------- Témoignages ---------- */
.temoignages { background: var(--stone); }
.temoignages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.temoignage-card {
  background: var(--white);
  padding: 38px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(28,24,18,0.05);
  position: relative;
}
.temoignage-card.nouveau {
  border: 2px solid var(--terracotta);
  box-shadow: var(--shadow);
}
.temoignage-card.nouveau::before {
  content: "Nouveau";
  position: absolute;
  top: -14px; left: 24px;
  background: var(--terracotta);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(193, 80, 46, 0.4);
}
.temoignage-stars { color: var(--gold); margin-bottom: 16px; letter-spacing: 3px; font-size: 1.1rem; }
.temoignage-card p { font-style: italic; font-size: 1.08rem; color: var(--text); margin-bottom: 20px; }
.temoignage-author { font-weight: 700; font-size: 0.98rem; color: var(--green-dark); }
.temoignage-author span { display: block; font-weight: 400; color: var(--text-light); font-size: 0.85rem; }

/* ---------- Galerie ---------- */
.galerie-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 44px;
}
.galerie-tab {
  padding: 12px 24px;
  border-radius: 999px;
  border: 2px solid var(--stone);
  background: var(--white);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.galerie-tab:hover { border-color: var(--terracotta); }
.galerie-tab.active { background: var(--wine); border-color: var(--wine); color: var(--white); }

.galerie-grid {
  columns: 3 320px;
  column-gap: 22px;
}
.galerie-grid figure {
  break-inside: avoid;
  margin-bottom: 22px;
  display: none;
}
.galerie-grid figure.show { display: block; }
.galerie-grid img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 0.3s ease;
}
.galerie-grid img:hover { transform: scale(1.02); }

.galerie-placeholder-card {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  background: var(--stone);
  border: 2px dashed #d8c9a3;
  border-radius: var(--radius);
  color: var(--text-light);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.lightbox {
  position: fixed; inset: 0;
  background: rgba(20,18,15,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 88vh; max-width: 90vw; border-radius: 4px; }
.lightbox img.rotate-90 { transform: rotate(-90deg); max-height: 90vw; max-width: 88vh; }
.lightbox-close {
  position: absolute; top: 26px; right: 34px;
  color: var(--white); font-size: 2rem; cursor: pointer; background: none; border: none;
}

/* ---------- Visite guidée photo (modal plein écran) ---------- */
.photo-tour {
  position: fixed; inset: 0;
  background: var(--cream);
  display: none;
  flex-direction: column;
  z-index: 2100;
  overflow-y: auto;
}
.photo-tour.open { display: flex; }
.photo-tour-inner { max-width: 1100px; margin: 0 auto; padding: 90px 32px 60px; width: 100%; }
.photo-tour-inner h3 { font-size: 1.9rem; margin-bottom: 24px; }
.photo-tour-close {
  position: fixed; top: 24px; right: 32px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--white);
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  z-index: 2200;
}
.photo-tour-grid {
  columns: 2 380px;
  column-gap: 20px;
}
.photo-tour-grid img {
  width: 100%;
  margin-bottom: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  break-inside: avoid;
  transition: transform 0.25s ease;
}
.photo-tour-grid img:hover { transform: scale(1.015); }

.photo-tour-rotate {
  position: relative;
  width: 100%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  margin-bottom: 20px;
  break-inside: avoid;
  cursor: pointer;
  background: rgba(0,0,0,0.04);
}
.photo-tour-rotate img {
  position: absolute;
  top: 50%; left: 50%;
  max-width: none;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  transition: none;
  transform: translate(-50%, -50%) rotate(var(--rot-deg, 90deg)) scale(var(--rot-scale, 1));
}
.photo-tour-rotate img:hover { --rot-scale: 1.015; transition: transform 0.25s ease; }

.btn-view-all {
  position: absolute;
  bottom: 18px; right: 18px;
  background: var(--white);
  color: var(--text);
  border: none;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  z-index: 3;
}
.btn-view-all:hover { background: var(--stone); }

/* ---------- CTA bande ---------- */
.cta-band {
  background: linear-gradient(180deg, rgba(109,41,50,0.88), rgba(58,74,52,0.9)),
              url('../img/kota/e44e0f9e-7410-4ce2-a5b7-6c1445237180.avif') center/cover fixed;
  color: var(--white);
  text-align: center;
  padding: 100px 0;
}
.cta-band h2 { color: var(--white); margin-bottom: 16px; }
.cta-band p { color: var(--stone); margin-bottom: 30px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---------- Réservation ---------- */
.reservation-wrap {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 50px;
  align-items: start;
}

.res-form {
  background: var(--white);
  padding: 42px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--green-dark);
  letter-spacing: 0.3px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid #ddd3bc;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--cream);
  color: var(--text);
  transition: border-color 0.2s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--terracotta);
}
.form-group textarea { resize: vertical; min-height: 110px; }

.form-error { color: var(--wine); font-size: 0.8rem; margin-top: 6px; display: none; }
.form-group.invalid input,
.form-group.invalid select { border-color: var(--wine); }
.form-group.invalid .form-error { display: block; }

.res-options-list { display: flex; flex-direction: column; gap: 10px; }
.res-option-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--cream);
  border: 1px solid #ddd3bc;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.92rem;
}
.res-option-check { width: 18px; height: 18px; accent-color: var(--terracotta); flex-shrink: 0; }
.res-option-text { flex: 1; }
.res-option-price { font-weight: 700; color: var(--terracotta); white-space: nowrap; }
.res-option-price-unavailable { font-weight: 400; font-style: italic; color: var(--text-light); white-space: normal; text-align: right; font-size: 0.82rem; }

.myres-item-options { font-size: 0.82rem; color: var(--text-light); margin-bottom: 6px; }
.myres-options-toggle {
  background: none; border: none; cursor: pointer; padding: 0;
  font-family: var(--font-body); font-size: 0.78rem; color: var(--terracotta);
  text-decoration: underline; margin-bottom: 6px; display: inline-block;
}
.msg-res-summary {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 14px;
}
.msg-res-summary .myres-item-total { font-size: 0.95rem; }

/* Récapitulatif */
.res-summary {
  background: var(--green-dark);
  color: var(--stone);
  padding: 34px;
  border-radius: var(--radius);
  position: sticky;
  top: 110px;
}
.res-summary h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 22px; }
.res-summary-line {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(235,225,203,0.15);
  font-size: 0.92rem;
}
.res-summary-line.total {
  border-bottom: none;
  padding-top: 18px;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--white);
}
.res-summary-note {
  font-size: 0.78rem;
  color: rgba(235,225,203,0.65);
  margin-top: 20px;
  line-height: 1.5;
}

.confirm-box {
  display: none;
  background: #eaf2e6;
  border: 1px solid var(--green-light);
  color: var(--green-dark);
  padding: 18px 22px;
  border-radius: var(--radius);
  margin-top: 20px;
  font-size: 0.9rem;
}
.confirm-box.show { display: block; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
}
.contact-info-item { display: flex; gap: 18px; margin-bottom: 30px; }
.contact-info-icon {
  width: 46px; height: 46px;
  background: var(--stone);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-info-item h4 { font-size: 1.05rem; margin-bottom: 4px; }
.contact-info-item p, .contact-info-item a { color: var(--text-light); font-size: 0.92rem; }

.map-wrap {
  margin-top: 30px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  height: 280px;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: #241f1a;
  color: rgba(235,225,203,0.75);
  padding: 70px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-logo { font-family: var(--font-heading); font-size: 1.3rem; color: var(--white); margin-bottom: 14px; display: block; }
.footer-logo span { color: var(--terracotta); }
.footer-col h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 18px; letter-spacing: 0.5px; }
.footer-col ul li { margin-bottom: 10px; font-size: 0.88rem; }
.footer-col ul li a:hover { color: var(--terracotta); }
.footer-bottom {
  border-top: 1px solid rgba(235,225,203,0.12);
  padding-top: 22px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(235,225,203,0.5);
}

/* ---------- Authentification (modal + invitation) ---------- */
.auth-modal {
  position: fixed; inset: 0;
  background: rgba(20,18,15,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2300;
  padding: 24px;
}
.auth-modal.open { display: flex; }
.auth-modal-box {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 44px 38px;
  width: 100%;
  max-width: 420px;
}
.auth-modal-box h3 { font-size: 1.6rem; margin-bottom: 8px; }
.auth-modal-subtitle { color: var(--text-light); font-size: 0.92rem; margin-bottom: 26px; }
.auth-modal-close {
  position: absolute; top: 16px; right: 18px;
  background: none; border: none; font-size: 1.6rem;
  cursor: pointer; color: var(--text-light); line-height: 1;
}

.btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid #ddd3bc;
  border-radius: var(--radius-sm);
  padding: 13px 18px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.btn-google:hover { background: var(--cream); box-shadow: var(--shadow-soft); }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  color: var(--text-light);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.auth-divider::before, .auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #ddd3bc;
}

.auth-error {
  font-size: 0.85rem;
  color: var(--wine);
  margin: -8px 0 16px;
  min-height: 1em;
}
.auth-error-success { color: var(--green); }

.auth-switch { margin-top: 20px; font-size: 0.88rem; color: var(--text-light); text-align: center; }
.auth-switch a { color: var(--terracotta); font-weight: 600; margin-left: 4px; }
.auth-forgot { margin-top: 10px; font-size: 0.82rem; text-align: center; }
.auth-forgot a { color: var(--text-light); border-bottom: 1px solid #ddd3bc; }

.auth-terms-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.4;
  margin: -6px 0 16px;
  cursor: pointer;
}
.auth-terms-check input { margin-top: 3px; flex-shrink: 0; accent-color: var(--terracotta); }
.auth-terms-check a { color: var(--terracotta); text-decoration: underline; }

/* ---------- Bandeau cookies ---------- */
.cookie-consent {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--green-dark);
  color: var(--stone);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  z-index: 2500;
  box-shadow: 0 -6px 20px rgba(0,0,0,0.2);
}
.cookie-consent p { margin: 0; font-size: 0.85rem; max-width: 720px; }
.cookie-consent a { color: var(--gold); text-decoration: underline; }
.cookie-consent .btn { padding: 10px 26px; font-size: 0.85rem; flex-shrink: 0; }

/* ---------- Statuts de réservation (badges partagés) ---------- */
.myres-status {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 20px;
}
.status-pending { background: #f5e3c4; color: #8a6412; }
.status-accepted { background: #d9ead0; color: var(--green-dark); }
.status-declined { background: #f0d3d3; color: var(--wine-dark); }

.myres-empty { color: var(--text-light); font-size: 0.9rem; padding: 20px 0; text-align: center; }

/* ---------- Avis ---------- */
.review-stars { display: flex; gap: 3px; color: var(--gold); font-size: 1.1rem; }
.review-stars-input .review-star {
  background: none; border: none; cursor: pointer; font-size: 1.6rem; color: var(--gold);
  padding: 0; line-height: 1;
}
.avis-summary {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 30px 36px;
  max-width: 460px;
  margin: 0 auto;
}
.avis-summary-score { font-family: var(--font-heading); font-size: 3rem; font-weight: 700; color: var(--terracotta); }
.avis-summary-count { color: var(--text-light); font-size: 0.9rem; margin-top: 6px; }
.avis-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.avis-column h3 { text-align: center; margin-bottom: 20px; }
.avis-column-scroll {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 560px;
  overflow-y: auto;
  padding-right: 6px;
}
.avis-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 28px 30px;
  flex-shrink: 0;
}

@media (max-width: 800px) {
  .avis-columns { grid-template-columns: 1fr; }
}
.avis-card p { margin: 14px 0; color: var(--text-light); }

/* ---------- Mes réservations (client) ---------- */
.myres-box { max-width: 520px; max-height: 82vh; overflow-y: auto; }
.myres-box h3 { margin-bottom: 20px; }
.myres-list { display: flex; flex-direction: column; gap: 14px; }
.myres-item {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.myres-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.myres-item-dates { font-size: 0.85rem; color: var(--text-light); margin-bottom: 6px; }
.myres-item-total { font-family: var(--font-heading); font-weight: 700; color: var(--terracotta); }

/* ---------- Panneau staff ---------- */
.admin-box { max-width: 720px; width: 100%; max-height: 86vh; overflow-y: auto; }
.admin-box h3 { margin-bottom: 24px; }
.admin-section { margin-bottom: 34px; }
.admin-section:last-child { margin-bottom: 0; }
.admin-section h4 { font-size: 1.1rem; margin-bottom: 14px; }
.admin-price-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.admin-price-hint { font-size: 0.78rem; color: var(--text-light); margin-top: 4px; }
.admin-price-subtitle { font-weight: 700; color: var(--green-dark); margin: 18px 0 10px; }
.admin-price-subtitle:first-of-type { margin-top: 6px; }

.price-from-label { font-size: 0.85rem; color: var(--text-light); margin-right: 6px; vertical-align: middle; }
.price-weekend-note { font-size: 0.85rem; color: var(--text-light); margin-top: -14px; margin-bottom: 20px; }
.admin-price-status { font-size: 0.85rem; color: var(--wine); margin: 10px 0; min-height: 1em; }

.admin-danger-zone {
  margin-top: 34px;
  padding: 18px 20px;
  border: 1px solid #e3b3b3;
  background: #fdf2f2;
  border-radius: var(--radius-sm);
}
.admin-danger-title { font-weight: 700; color: var(--wine); margin-bottom: 8px; }
.btn-danger {
  background: var(--wine);
  color: #fff;
  border: none;
  margin-top: 10px;
}
.btn-danger:hover { background: #7a1f1f; }
.btn-danger:disabled { opacity: 0.6; cursor: not-allowed; }

.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; border-bottom: 2px solid var(--stone); margin-bottom: 26px; padding-bottom: 2px; }
.admin-tab-btn {
  background: none; border: none; cursor: pointer;
  padding: 10px 16px; font-family: var(--font-body); font-size: 0.92rem; font-weight: 600;
  color: var(--text-light); border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.admin-tab-btn:hover { color: var(--terracotta); }
.admin-tab-btn.active { color: var(--terracotta); border-bottom-color: var(--terracotta); }

.admin-avis-flag { display: inline-block; margin-left: 10px; font-size: 0.78rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.admin-avis-flag.has-avis { background: rgba(74,124,89,0.15); color: var(--green); }
.admin-avis-flag.no-avis { background: rgba(28,24,18,0.06); color: var(--text-light); }

.admin-cal-dot-manual { background: rgba(200,150,60,0.25); border: 1px solid rgba(200,150,60,0.6); }
.avail-day.admin-cal-manual { color: #a87c1e; font-weight: 800; background: rgba(200,150,60,0.22); cursor: pointer; }

@media (max-width: 600px) {
  .admin-tabs { gap: 4px; }
  .admin-tab-btn { padding: 8px 10px; font-size: 0.82rem; }
}

.admin-res-list { display: flex; flex-direction: column; gap: 16px; }
.admin-res-item {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  position: relative;
}

.admin-item-head-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.admin-item-menu { position: relative; }
.admin-item-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--text-light);
}
.admin-item-menu-btn:hover { background: rgba(28,24,18,0.08); color: var(--text); }
.admin-item-menu-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: #fff;
  border: 1px solid #ddd3bc;
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 18px rgba(28,24,18,0.15);
  z-index: 10;
  min-width: 140px;
  overflow: hidden;
}
.admin-item-menu-dropdown.open { display: block; }
.admin-item-menu-delete {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--wine);
}
.admin-item-menu-delete:hover { background: rgba(122,22,38,0.08); }

.admin-corbeille-type {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-light);
  background: rgba(28,24,18,0.06);
  padding: 3px 9px;
  border-radius: 999px;
}
.admin-res-client { font-size: 0.85rem; color: var(--text-light); margin-bottom: 6px; }
.admin-res-client a { color: var(--terracotta); text-decoration: underline; }
.admin-res-message { font-size: 0.85rem; font-style: italic; color: var(--text-light); margin-bottom: 8px; }
.admin-res-total { font-family: var(--font-heading); font-weight: 700; color: var(--terracotta); margin-bottom: 10px; }
.admin-res-actions { display: flex; gap: 10px; }
.admin-res-actions .btn { padding: 10px 20px; font-size: 0.85rem; }

.admin-cal-form { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 18px; }
.admin-cal-form .form-group { margin-bottom: 0; min-width: 150px; }
.admin-cal-form .btn { padding: 12px 22px; font-size: 0.88rem; white-space: nowrap; }

@media (max-width: 600px) {
  .admin-price-row { grid-template-columns: 1fr; }
  .admin-res-actions { flex-direction: column; }
  .admin-cal-form { flex-direction: column; align-items: stretch; }
}

/* ---------- Messagerie ---------- */
.msg-box {
  max-width: 560px; width: 100%; max-height: 84vh;
  display: flex; flex-direction: column;
  overflow-y: auto; /* si le contenu (résumé + actions + messages) dépasse, tout défile plutôt que
                        de pousser la barre d'envoi hors de vue en bas de la fenêtre */
}
.msg-box h3 { margin-bottom: 20px; }
#msg-thread-view { display: flex; flex-direction: column; min-height: 0; }
.msg-thread-input-row { flex-shrink: 0; }

.msg-inbox-list { display: flex; flex-direction: column; gap: 10px; max-height: 60vh; overflow-y: auto; }
.msg-inbox-item {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.msg-inbox-item:hover { background: var(--stone); }
.msg-inbox-item-main strong { color: var(--text-light); }
.msg-inbox-item-unread .msg-inbox-item-main strong { color: #c0392b; }
.msg-inbox-gite { font-size: 0.78rem; color: var(--terracotta); margin-left: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.msg-inbox-preview { font-size: 0.85rem; color: var(--text-light); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.msg-back-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text-light); font-size: 0.9rem; margin-bottom: 14px; padding: 0;
  font-family: var(--font-body);
}
.msg-thread-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #ece2ca;
}
.msg-thread-header strong { display: block; }
.msg-thread-subtitle { font-size: 0.8rem; color: var(--text-light); }
.msg-thread-menu-wrap { position: relative; }
.msg-dots-btn {
  background: none; border: none; cursor: pointer; font-size: 1.3rem;
  color: var(--text-light); line-height: 1; padding: 4px 8px;
}
.msg-thread-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow);
  padding: 6px; display: none; min-width: 200px; z-index: 10;
}
.msg-thread-menu.open { display: block; }
.msg-thread-menu button {
  width: 100%; text-align: left; background: none; border: none;
  padding: 10px 12px; border-radius: var(--radius-sm); cursor: pointer;
  font-family: var(--font-body); font-size: 0.85rem; color: var(--wine);
}
.msg-thread-menu button:hover { background: var(--cream); }
.msg-thread-menu button:disabled { color: var(--text-light); cursor: not-allowed; opacity: 0.6; }
.msg-thread-menu button.msg-delete-locked:disabled { background: #f3e2e2; color: #a85c5c; opacity: 0.85; }

.msg-thread-actions { margin-bottom: 12px; }
.msg-thread-actions .btn { padding: 10px 18px; font-size: 0.85rem; }

.msg-thread-messages {
  flex: 1;
  overflow-y: auto;
  max-height: 44vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 6px 2px 14px;
}
.msg-bubble { max-width: 82%; padding: 10px 14px; border-radius: var(--radius-sm); overflow-wrap: break-word; word-break: break-word; }
.msg-bubble-sender { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.7; margin-bottom: 3px; }
.msg-bubble-text { font-size: 0.92rem; line-height: 1.5; }
.msg-theirs { align-self: flex-start; background: var(--cream); }
.msg-mine { align-self: flex-end; background: var(--green-dark); color: var(--white); }
.msg-mine .msg-bubble-sender { color: var(--stone); }
.msg-pay-wrap { margin-top: 10px; }
.msg-pay-btn { padding: 12px 24px; font-size: 0.9rem; }

.msg-thread-input-row { display: flex; gap: 10px; margin-top: 12px; }
.msg-thread-input-row input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #ddd3bc;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.92rem;
  background: var(--cream);
}
.msg-thread-input-row input:focus { outline: none; border-color: var(--terracotta); }
.msg-thread-input-row .btn { padding: 12px 22px; font-size: 0.88rem; }

/* ---------- Calendrier de disponibilité ---------- */
.avail-card {
  background: var(--white);
  border-radius: 16px;
  padding: 24px 26px;
  margin-top: 22px;
  box-shadow: 0 6px 22px rgba(44, 40, 34, 0.08);
  border: 1px solid #f0e8d4;
}
.avail-card h4 { margin: 0 0 14px; font-size: 1.05rem; }
.avail-wrap { max-width: 560px; }
.avail-legend { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--text-light); margin-bottom: 16px; }
.avail-dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; background: rgba(192, 57, 43, 0.25); border: 1px solid rgba(192, 57, 43, 0.5); }
.avail-calendar { display: flex; gap: 36px; flex-wrap: wrap; }
.avail-month { flex: 1 1 210px; min-width: 210px; }
.avail-month-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.avail-month-title { font-family: var(--font-heading); font-weight: 700; color: var(--green-dark); font-size: 0.95rem; }
.avail-nav-btn { background: none; border: none; font-size: 1.4rem; line-height: 1; color: var(--text); cursor: pointer; padding: 2px 8px; border-radius: 6px; transition: background 0.15s; }
.avail-nav-btn:hover { background: var(--stone); }
.avail-nav-btn:disabled { opacity: 0.2; cursor: default; }
.avail-nav-btn:disabled:hover { background: none; }
.avail-nav-spacer { width: 30px; display: inline-block; }
.avail-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; width: 100%; }
.avail-grid-head { margin-bottom: 6px; }
.avail-grid-head span { font-size: 0.72rem; color: var(--text-light); text-align: center; font-weight: 600; display: block; }
.avail-cell {
  display: flex; align-items: center; justify-content: center;
  height: 36px;
}
.avail-day {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  font-size: 0.85rem;
  color: var(--text);
}
.avail-day.avail-free { font-weight: 700; }
.avail-day.avail-booked { color: #c0392b; font-weight: 800; background: rgba(192, 57, 43, 0.22); }
.avail-empty { background: transparent; }

.avail-dot.avail-dot-selected { background: var(--terracotta); border-color: var(--terracotta); margin-left: 14px; }
.avail-day.avail-selectable { cursor: pointer; transition: background 0.15s, color 0.15s; }
.avail-day.avail-selectable:hover { background: var(--stone); }
.avail-day.avail-disabled { cursor: not-allowed; }
.avail-day.avail-selected { background: var(--terracotta); color: var(--white); font-weight: 800; }
.avail-day.avail-selected:hover { background: var(--terracotta); }
.res-booking-calendar { margin-bottom: 6px; }
.visually-hidden-input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 600px) {
  .avail-calendar { flex-direction: column; gap: 24px; }
}

/* ---------- Invitation discrète (première visite) ---------- */
.auth-toast {
  position: fixed;
  right: 24px; bottom: -140px;
  width: min(320px, calc(100vw - 48px));
  background: var(--green-dark);
  color: var(--stone);
  padding: 22px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 1500;
  transition: bottom 0.4s ease;
}
.auth-toast.show { bottom: 24px; }
.auth-toast p { font-size: 0.9rem; margin-bottom: 14px; line-height: 1.5; }
.auth-toast-close {
  position: absolute; top: 10px; right: 14px;
  background: none; border: none; color: var(--stone);
  font-size: 1.3rem; cursor: pointer; opacity: 0.7;
}
.auth-toast-close:hover { opacity: 1; }
.auth-toast-btn {
  border-color: var(--stone);
  color: var(--stone);
  padding: 10px 20px;
  font-size: 0.85rem;
}
.auth-toast-btn:hover { background: var(--stone); color: var(--green-dark); }

@media (max-width: 480px) {
  .auth-toast { right: 12px; left: 12px; width: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .welcome-grid, .gite-detail, .contact-grid, .reservation-wrap { grid-template-columns: 1fr; }
  .gite-detail:nth-child(even) { direction: ltr; }
  .gites-grid, .atouts-grid, .temoignages-grid, .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .res-summary { position: static; }
  /* Le calendrier passe après le texte (prix, description) au lieu d'avant, une fois empilé. */
  .gite-detail { gap: 34px; }
  .gite-detail .avail-card { margin-top: 8px; }
  .gite-detail > div:nth-child(2) .section-label { margin-bottom: 20px; display: block; }
  .gite-detail > div:nth-child(2) .section-title { margin-bottom: 28px; }
  .gite-detail-price { margin: 0 0 14px !important; }
  .gite-detail .price-weekend-note { margin-top: 0; margin-bottom: 32px; }
  .gite-detail .gite-meta { flex-wrap: wrap; margin-bottom: 36px !important; row-gap: 14px; }
  .gite-detail > div:nth-child(2) > p { margin-bottom: 24px !important; line-height: 1.8; }
  .gite-detail .gite-equip-list { margin-top: 8px; margin-bottom: 8px; }
  .gite-detail .gite-equip-list li { margin-bottom: 10px; }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: 0; right: -100%;
    width: 78%; max-width: 320px; height: 100vh;
    background: var(--cream);
    padding: 100px 40px;
    transition: right 0.35s ease;
    box-shadow: -6px 0 24px rgba(0,0,0,0.15);
  }
  .main-nav.open { right: 0; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 26px; }
  .main-nav a { color: var(--text) !important; font-size: 1.1rem; }
  .nav-toggle { display: flex; }
  .gites-grid, .temoignages-grid, .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 24px; }
  section { padding: 70px 0; }
  .galerie-grid { columns: 2 200px; }

  /* Cartes "options" en grille 2 colonnes compacte, pour toutes les voir sans trop scroller. */
  .options-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .option-card { min-height: 110px; padding: 14px; }
  .option-card.has-photo { min-height: 130px; }
  .option-card .option-icon { font-size: 1.4rem; margin-bottom: 6px; }
  .option-card-label { font-size: 0.78rem; }
  .option-card-label .tag { font-size: 0.62rem; }

  /* Les atouts défilent horizontalement sur mobile au lieu de s'empiler verticalement. */
  .atouts-grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    gap: 16px;
    margin-top: 20px;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .atout-item {
    flex: 0 0 200px;
    scroll-snap-align: start;
  }
}
