/* === PROTECTION ANTI-COPIE === */
img { -webkit-user-drag: none; user-drag: none; pointer-events: none; }
body { -webkit-user-select: none; user-select: none; }
/* Les textes de navigation restent sélectionnables */
nav, h1, h2, h3, p, .contact-item { -webkit-user-select: text; user-select: text; }

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --terre:  #b85c38;
  --sable:  #f5f0e8;
  --brun:   #3a2a1e;
  --gris:   #6b6b6b;
  --blanc:  #ffffff;
  --vert:   #2d4a3e;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--brun);
  background: var(--blanc);
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === TOPBAR === */
.topbar {
  background: var(--brun);
  padding: 7px 0;
  position: sticky;
  top: 0;
  z-index: 101;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-item {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  transition: color 0.2s;
}

.topbar-item:hover { color: #f0a070; }

.topbar-sep { color: rgba(255,255,255,0.3); font-size: 0.8rem; }

/* === HEADER === */
header {
  position: sticky;
  top: 36px;
  background: var(--blanc);
  border-bottom: 1px solid #e5e0d8;
  z-index: 100;
  padding: 10px 0;
}

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

.logo img { height: 90px; width: auto; }

nav { display: flex; align-items: center; gap: 8px; }

nav a {
  color: var(--brun);
  text-decoration: none;
  padding: 8px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
  border-radius: 6px;
}

nav a:hover { color: var(--terre); }

nav a.nav-cta {
  background: var(--terre);
  color: var(--blanc);
  font-weight: 700;
}

nav a.nav-cta:hover { background: #9e4d2e; color: var(--blanc); }

/* === HERO SLIDESHOW === */
.hero {
  position: relative;
  height: 92vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.slideshow { position: absolute; inset: 0; }

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.slide.active { opacity: 1; }

.slideshow-watermark {
  position: absolute;
  bottom: 48px;
  right: 40px;
  z-index: 3;
  opacity: 0.55;
  pointer-events: none;
}

.slideshow-watermark img {
  height: 130px;
  width: auto;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.5));
}

.slideshow-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(30,15,5,0.55) 0%, rgba(30,15,5,0.3) 60%, rgba(30,15,5,0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--blanc);
  text-align: center;
}

.hero-tag {
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 16px;
}

.hero-content h1 {
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.hero-content h1 span { color: #f0a070; }

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  background: var(--terre);
  color: var(--blanc);
  padding: 14px 32px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.2s;
}

.btn:hover { background: #9e4d2e; }

.btn-outline {
  display: inline-block;
  border: 2px solid rgba(255,255,255,0.8);
  color: var(--blanc);
  padding: 12px 32px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
}

.btn-outline:hover { background: rgba(255,255,255,0.15); }

.slideshow-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}

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

.dot-nav.active { background: var(--blanc); }

/* === BADGES === */
.badges { background: var(--brun); padding: 18px 0; }

.badges-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.badge {
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
}

/* === SECTIONS === */
.section { padding: 80px 0; }

.section h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  text-align: center;
}

.section-intro {
  text-align: center;
  color: var(--gris);
  max-width: 580px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

.section-dark { background: var(--vert); color: var(--blanc); }
.section-dark h2 { color: var(--blanc); }
.section-dark .section-intro { color: rgba(255,255,255,0.75); }

/* === CARDS === */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.card { background: var(--sable); border-radius: 10px; padding: 32px 28px; }
.card-icon { font-size: 2rem; margin-bottom: 14px; }
.card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--gris); font-size: 0.95rem; }

/* === VILLA TEMOIN === */
.villa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.villa-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.villa-render { grid-column: 1 / -1; height: 260px !important; }

.villa-photos img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.villa-status { display: flex; flex-direction: column; gap: 20px; }

.status-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255,255,255,0.45);
  font-size: 1rem;
}

.status-item.done { color: rgba(255,255,255,0.85); }
.status-item.active { color: var(--blanc); font-weight: 700; font-size: 1.05rem; }

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}

.status-item.done .dot { background: #7dbfa0; }
.status-item.active .dot { background: var(--terre); box-shadow: 0 0 0 4px rgba(184,92,56,0.3); }

/* === CONTACT === */
.section-contact { background: var(--sable); }

.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

.contact-item {
  background: var(--blanc);
  border-radius: 10px;
  padding: 24px 32px;
  text-align: center;
  min-width: 180px;
  text-decoration: none;
  color: var(--brun);
  transition: transform 0.2s, box-shadow 0.2s;
}

.contact-item:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.contact-whatsapp { border: 2px solid #25d366; }

.contact-item strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gris);
  margin-bottom: 8px;
}

.contact-item span { font-size: 1.05rem; font-weight: 700; }

/* === EMAIL CONTACT === */
.contact-email { border: 2px solid var(--terre); }

/* === FOOTER === */
footer { background: var(--brun); padding: 56px 0 24px; }

.footer-inner { display: flex; flex-direction: column; gap: 0; }

.footer-brand-top {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 40px;
}

.footer-logo { height: 120px; width: auto; }

.footer-brand-text { display: flex; flex-direction: column; gap: 8px; }

.footer-brand-name {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blanc);
  letter-spacing: 0.02em;
}

.footer-tagline {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  font-style: italic;
}

.footer-location {
  color: rgba(255,255,255,0.4);
  font-size: 0.82rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col { display: flex; flex-direction: column; gap: 12px; }

.footer-col h4 {
  color: var(--terre);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-bottom: 4px;
}

.footer-col a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col a:hover { color: #f0a070; }

.footer-bottom { padding-top: 24px; text-align: center; }
.footer-bottom p { color: rgba(255,255,255,0.3); font-size: 0.82rem; }

/* === MANIFESTE === */
.section-manifeste {
  background: var(--brun);
  color: var(--blanc);
  text-align: center;
  padding: 100px 0;
}

.manifeste-surtitre {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terre);
  margin-bottom: 20px;
  font-weight: 600;
}

.manifeste-titre {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 32px;
  text-align: center;
}

.manifeste-titre span { color: #f0a070; }

.manifeste-texte {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* === CHAT WIDGET === */
.chat-bubble {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--terre);
  color: var(--blanc);
  border-radius: 50px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(184,92,56,0.4);
  z-index: 1000;
  transition: transform 0.2s;
}

.chat-bubble:hover { transform: scale(1.05); }

@keyframes pulse-chat {
  0%, 100% { box-shadow: 0 4px 20px rgba(184,92,56,0.4); }
  50% { box-shadow: 0 4px 32px rgba(184,92,56,0.75), 0 0 0 8px rgba(184,92,56,0.12); }
}

.chat-bubble { animation: pulse-chat 2.5s ease-in-out infinite; }
.chat-bubble-icon { font-size: 1.3rem; }
.chat-bubble-label { font-weight: 700; font-size: 0.95rem; }

.chat-notif {
  background: #e74c3c;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-window {
  position: fixed;
  bottom: 100px;
  right: 28px;
  width: 380px;
  height: 540px;
  background: var(--blanc);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  z-index: 1000;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.chat-window.open { display: flex; }

.chat-header {
  background: var(--brun);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--blanc);
}

.chat-logo { height: 36px; }

.chat-header-info strong { display: block; font-size: 0.95rem; }

.chat-status {
  font-size: 0.75rem;
  color: #7dbfa0;
}

.chat-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 8px;
}

.chat-close:hover { color: var(--blanc); }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #faf8f5;
}

.msg { max-width: 85%; }

.msg p {
  margin: 0 0 6px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.msg p:last-child { margin-bottom: 0; }

.msg.agent p {
  background: var(--blanc);
  border: 1px solid #e5e0d8;
  color: var(--brun);
  border-radius: 4px 12px 12px 12px;
}

.msg.user { align-self: flex-end; }

.msg.user p {
  background: var(--terre);
  color: var(--blanc);
  border-radius: 12px 4px 12px 12px;
}

.msg img {
  max-width: 200px;
  border-radius: 8px;
  margin-top: 6px;
  pointer-events: none;
}

.msg.loading p { color: var(--gris); font-style: italic; }

.chat-upload-preview {
  padding: 0 12px;
  background: #faf8f5;
}

.chat-upload-preview img {
  height: 60px;
  border-radius: 6px;
  margin: 6px 0;
  pointer-events: none;
}

.chat-input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #e5e0d8;
  background: var(--blanc);
}

.chat-upload-btn {
  font-size: 1.3rem;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: background 0.2s;
  -webkit-user-select: none;
  user-select: none;
}

.chat-upload-btn:hover { background: var(--sable); }

#chatInput {
  flex: 1;
  border: 1px solid #e5e0d8;
  border-radius: 20px;
  padding: 10px 16px;
  font-size: 0.9rem;
  outline: none;
  -webkit-user-select: text;
  user-select: text;
}

#chatInput:focus { border-color: var(--terre); }

.chat-send {
  background: var(--terre);
  color: var(--blanc);
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.chat-send:hover { background: #9e4d2e; }

/* === SÉLECTEUR DE LANGUE === */
.lang-selector {
  position: relative;
  flex-shrink: 0;
}

.lang-btn {
  background: none;
  border: 1.5px solid var(--terre);
  color: var(--terre);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: all 0.2s;
}

.lang-btn:hover { background: var(--terre); color: var(--blanc); }

.lang-caret {
  font-size: 0.7rem;
  opacity: 0.7;
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--blanc);
  border: 1px solid #e5e0d8;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  min-width: 150px;
  z-index: 300;
  overflow: hidden;
}

.lang-dropdown.open { display: block; }

.lang-dropdown button {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--brun);
  cursor: pointer;
  transition: background 0.15s;
}

.lang-dropdown button:hover { background: var(--sable); color: var(--terre); }

/* === HAMBURGER === */
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--brun);
  border-radius: 2px;
  transition: background 0.2s;
}

.hamburger:hover span { background: var(--terre); }

/* === SIDEBAR === */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.sidebar-overlay.open { opacity: 1; pointer-events: all; }

.sidebar {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  height: 100vh;
  background: var(--blanc);
  z-index: 201;
  transition: left 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 24px rgba(0,0,0,0.15);
  overflow-y: auto;
}

.sidebar.open { left: 0; }

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e0d8;
}

.sidebar-logo { height: 56px; width: auto; }

.sidebar-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--gris);
  padding: 4px 8px;
}

.sidebar-links {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.sidebar-links a {
  display: block;
  padding: 14px 16px;
  color: var(--brun);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.sidebar-links a:hover { background: var(--sable); color: var(--terre); }

.sidebar-chat-btn {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--terre);
  color: var(--blanc);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
}

.sidebar-chat-btn:hover { background: #9e4d2e; }

.sidebar-contacts {
  padding: 20px;
  border-top: 1px solid #e5e0d8;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-contacts a {
  color: var(--gris);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.sidebar-contacts a:hover { color: var(--terre); }

/* === PRODUITS DÉTAILLÉS === */
.produit-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 64px;
  padding-top: 64px;
  border-top: 1px solid #e5e0d8;
}

.produit-detail:first-of-type { border-top: none; margin-top: 48px; }

.produit-reverse { direction: rtl; }
.produit-reverse > * { direction: ltr; }

.produit-visuel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.produit-img-main {
  grid-column: 1 / -1;
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 10px;
}

.produit-img-secondary {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  grid-column: 1 / -1;
}

.produit-tag {
  display: inline-block;
  background: var(--terre);
  color: var(--blanc);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.produit-info h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--brun);
  margin-bottom: 12px;
}

.produit-info p {
  color: var(--gris);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.produit-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}

.spec {
  background: var(--sable);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spec strong { font-size: 1.1rem; color: var(--brun); }
.spec span { font-size: 0.78rem; color: var(--gris); }

.btn-produit {
  background: var(--terre);
  color: var(--blanc);
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-produit:hover { background: #9e4d2e; }

/* Nav buttons comme liens */
nav button.nav-cta {
  background: var(--terre);
  color: var(--blanc);
  border: none;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.2s;
}

nav button.nav-cta:hover { background: #9e4d2e; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero-content h1 { font-size: 2.4rem; }
  .villa-grid { grid-template-columns: 1fr; }
  nav a:not(.nav-cta) { display: none; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand-top { flex-direction: column; text-align: center; align-items: center; }
  .footer-brand-name { font-size: 1.6rem; }
  .slideshow-watermark img { height: 80px; }
  .slideshow-watermark { bottom: 60px; right: 16px; }
  .topbar-inner { justify-content: center; }
  .topbar-right { justify-content: center; }
  .produit-detail { grid-template-columns: 1fr; gap: 32px; }
  .produit-reverse { direction: ltr; }
  nav a { display: none; }
  nav button.nav-cta { display: block; }
  .topbar-right { justify-content: center; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.9rem; }
  .hero { height: 85vh; }
}
