/* ============================================================
   HERITAGE & CARACTÈRE — Immobilier de Prestige
   Palette : Vert de mousse, Or antique, Ivoire patiné
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Cinzel:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --vert-profond: #1f3a2d;
  --vert-mousse: #2f5744;
  --vert-sauge: #6b8b6e;
  --vert-clair: #a8c4a5;
  --vert-brume: #d8e3d4;
  --or-antique: #b8965a;
  --or-brillant: #d4af6f;
  --or-clair: #e8c98a;
  --or-pale: #f2e2b8;
  --ivoire: #f8f4ec;
  --ivoire-fonce: #ece4d0;
  --parchemin: #f5efe2;
  --noir-encre: #1a1611;
  --gris-pierre: #4a463e;

  --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --title: 'Cinzel', 'Trajan Pro', serif;
  --sans: 'Inter', -apple-system, sans-serif;

  --shadow-soft: 0 10px 40px -12px rgba(31, 58, 45, 0.25);
  --shadow-deep: 0 30px 80px -20px rgba(26, 22, 17, 0.4), 0 10px 30px -10px rgba(26, 22, 17, 0.2);
  --shadow-inner: inset 0 2px 12px rgba(184, 150, 90, 0.15);
  --shadow-gold: 0 0 40px -10px rgba(212, 175, 111, 0.5);

  --gold-gradient: linear-gradient(135deg, #b8965a 0%, #e8c98a 25%, #d4af6f 50%, #f2e2b8 75%, #b8965a 100%);
  --gold-shine: linear-gradient(110deg, transparent 30%, rgba(255, 235, 180, 0.6) 50%, transparent 70%);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.7;
  color: var(--noir-encre);
  background: var(--parchemin);
  overflow-x: hidden;
  font-weight: 400;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(184, 150, 90, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(47, 87, 68, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, var(--parchemin) 0%, var(--ivoire) 100%);
  background-attachment: fixed;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   TYPOGRAPHIE
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--vert-profond);
}

.eyebrow {
  font-family: var(--title);
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--or-antique);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}
.eyebrow::before, .eyebrow::after {
  content: '';
  display: inline-block;
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--or-antique), transparent);
}

.gold-text {
  background: var(--gold-gradient);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: goldShimmer 6s linear infinite;
}
@keyframes goldShimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

em, i {
  font-family: var(--serif);
  font-style: italic;
  color: var(--or-antique);
  font-weight: 400;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.4rem 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(245, 239, 226, 0.85);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid rgba(184, 150, 90, 0.2);
  transition: all 0.4s ease;
}
.nav.scrolled {
  padding: 0.9rem 3.5rem;
  background: rgba(248, 244, 236, 0.95);
  box-shadow: 0 4px 30px -8px rgba(31, 58, 45, 0.15);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--vert-profond);
}
.nav-logo svg { width: 42px; height: 42px; }
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nav-logo-text .name {
  font-family: var(--title);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--vert-profond);
}
.nav-logo-text .sub {
  font-family: var(--serif);
  font-size: 0.7rem;
  font-style: italic;
  letter-spacing: 0.08em;
  color: var(--or-antique);
  margin-top: 3px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.4rem;
  align-items: center;
}
.nav-links a {
  font-family: var(--title);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gris-pierre);
  padding: 0.4rem 0;
  position: relative;
  transition: color 0.3s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: var(--gold-gradient);
  transition: width 0.4s ease;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--vert-profond);
}
.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  padding: 0.7rem 1.6rem;
  border: 1px solid var(--or-antique);
  color: var(--vert-profond) !important;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  background: transparent;
}
.nav-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold-gradient);
  transform: translateX(-101%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}
.nav-cta:hover::before { transform: translateX(0); }
.nav-cta:hover { color: var(--ivoire) !important; }
.nav-cta::after { display: none; }

.mobile-toggle { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 8rem 3.5rem 6rem;
  overflow: hidden;
}

.hero-content--centered {
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
}
.hero-content--centered .eyebrow { justify-content: center; }
.hero-content--centered .hero-title em { text-align: center; }


.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(31, 58, 45, 0.35) 0%, transparent 60%),
    radial-gradient(circle at 70% 60%, rgba(26, 22, 17, 0.4) 0%, transparent 60%),
    linear-gradient(180deg, rgba(26, 22, 17, 0.3) 0%, rgba(31, 58, 45, 0.55) 100%);
  z-index: 2;
}
.hero-bg img,
.hero-bg video {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.85) saturate(1.1);
  border-radius: 0;
}
.hero-bg { border-radius: 0; overflow: hidden; }
.hero-bg img {
  animation: heroZoom 20s ease-out infinite alternate;
}
@keyframes heroZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

.hero-content {
  position: relative;
  z-index: 5;
  max-width: 1100px;
  color: var(--ivoire);
}
.hero .eyebrow {
  color: var(--or-clair);
  margin-bottom: 2.5rem;
}
.hero .eyebrow::before, .hero .eyebrow::after {
  background: linear-gradient(90deg, transparent, var(--or-clair), transparent);
}
.hero-title {
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 300;
  line-height: 1.02;
  color: var(--ivoire);
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}
.hero-title em {
  color: var(--or-clair);
  font-weight: 400;
  display: block;
  font-size: 1.02em;
  text-shadow: 0 0 40px rgba(212, 175, 111, 0.4);
}
.hero-slogan {
  font-size: 1.35rem;
  font-style: italic;
  color: var(--or-pale);
  max-width: 620px;
  margin-bottom: 3rem;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.hero-actions {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.1rem 2.2rem;
  font-family: var(--title);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gold-gradient);
  background-size: 200% auto;
  color: var(--vert-profond);
  box-shadow: var(--shadow-gold), 0 8px 24px -8px rgba(0, 0, 0, 0.3);
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold-shine);
  transform: translateX(-100%);
  transition: transform 0.7s;
}
.btn-primary:hover::before { transform: translateX(100%); }
.btn-primary:hover {
  transform: translateY(-3px);
  background-position: right center;
  box-shadow: 0 0 50px -8px rgba(212, 175, 111, 0.7), 0 12px 30px -10px rgba(0, 0, 0, 0.4);
}

.btn-secondary {
  color: var(--ivoire);
  border: 1px solid var(--or-clair);
  background: rgba(31, 58, 45, 0.2);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: rgba(184, 150, 90, 0.15);
  border-color: var(--or-pale);
  transform: translateY(-3px);
}

.hero-scroll {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  color: var(--or-pale);
  font-family: var(--title);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  animation: floatUp 2.5s ease-in-out infinite;
}
.hero-scroll::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--or-clair), transparent);
}
@keyframes floatUp {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: 8rem 3.5rem;
  position: relative;
}
.section-inner { max-width: 1400px; margin: 0 auto; }

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 5rem;
}
.section-header .eyebrow { margin-bottom: 1.5rem; }
.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--vert-profond);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.section-lead {
  font-size: 1.2rem;
  color: var(--gris-pierre);
  font-style: italic;
  font-weight: 300;
  line-height: 1.6;
}

/* ============================================================
   MANIFESTO
   ============================================================ */
.manifesto {
  padding: 10rem 3.5rem;
  text-align: center;
  position: relative;
  background:
    radial-gradient(circle at center, rgba(184, 150, 90, 0.06) 0%, transparent 70%);
}
.manifesto::before, .manifesto::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: var(--gold-gradient);
}
.manifesto::before { top: 5rem; }
.manifesto::after { bottom: 5rem; }

.manifesto-text {
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  line-height: 1.55;
  max-width: 950px;
  margin: 0 auto;
  font-weight: 300;
  color: var(--vert-profond);
}
.manifesto-text em {
  color: var(--or-antique);
  font-family: var(--serif);
}
.manifesto-sig {
  margin-top: 3rem;
  font-family: var(--title);
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--or-antique);
}

/* ============================================================
   FEATURED CARDS (homepage previews)
   ============================================================ */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}
.feature-card {
  position: relative;
  padding: 3rem 2.5rem;
  background: linear-gradient(180deg, var(--ivoire) 0%, var(--parchemin) 100%);
  border: 1px solid rgba(184, 150, 90, 0.2);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold-gradient);
  background-size: 200% auto;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s ease;
}
.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold-shine);
  opacity: 0;
  transform: translateX(-100%);
  transition: opacity 0.4s, transform 0.9s;
  pointer-events: none;
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-deep), var(--shadow-gold);
  border-color: var(--or-antique);
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover::after { opacity: 1; transform: translateX(100%); }

.feature-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1.8rem;
  color: var(--or-antique);
}
.feature-card h3 {
  font-size: 1.9rem;
  margin-bottom: 1rem;
  color: var(--vert-profond);
}
.feature-card p {
  color: var(--gris-pierre);
  line-height: 1.7;
  margin-bottom: 1.8rem;
}
.feature-card .link {
  font-family: var(--title);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--or-antique);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  transition: gap 0.3s;
}
.feature-card .link:hover { gap: 1.2rem; }

/* ============================================================
   PROPERTY (Transactions + Événements)
   ============================================================ */
.property {
  padding: 6rem 3.5rem;
  border-bottom: 1px solid rgba(184, 150, 90, 0.15);
}
.property:last-of-type { border-bottom: none; }

.property-inner {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.property.reverse .property-inner {
  grid-template-columns: 1fr 1fr;
}
.property.reverse .property-media { order: 2; }
.property.reverse .property-text { order: 1; }

.property-text .eyebrow { margin-bottom: 1.5rem; }
.property-text h2 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  margin-bottom: 1.5rem;
  color: var(--vert-profond);
  font-weight: 300;
}
.property-text h2 em { display: block; margin-top: 0.4rem; }
.property-lieu {
  font-family: var(--title);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--or-antique);
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.property-desc {
  font-size: 1.1rem;
  color: var(--gris-pierre);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.property-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem 2rem;
  margin-bottom: 2.5rem;
  padding: 1.8rem 0;
  border-top: 1px solid rgba(184, 150, 90, 0.25);
  border-bottom: 1px solid rgba(184, 150, 90, 0.25);
}
.property-features li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.95rem;
  color: var(--gris-pierre);
}
.property-features li::before {
  content: '❦';
  color: var(--or-antique);
  font-size: 1rem;
  font-style: italic;
}

.property-price {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, rgba(184, 150, 90, 0.08), rgba(31, 58, 45, 0.05));
  border-left: 3px solid var(--or-antique);
  border-radius: 2px;
}
.price-label {
  font-family: var(--title);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--or-antique);
  text-transform: uppercase;
}
.price-value {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  color: var(--vert-profond);
}
.price-fai {
  font-size: 0.9rem;
  color: var(--gris-pierre);
  font-style: italic;
  margin-left: auto;
}

/* ============================================================
   PHOTO COLLAGE (Château)
   ============================================================ */
.collage {
  position: relative;
  height: 720px;
  perspective: 1200px;
}

.collage-photo {
  position: absolute;
  overflow: hidden;
  border: 6px solid var(--ivoire);
  box-shadow: var(--shadow-deep);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  background: var(--vert-brume);
  border-radius: 14px;
}
.collage-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}
.collage-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(212, 175, 111, 0.15) 50%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.collage-photo:hover {
  transform: scale(1.08) translateZ(50px) !important;
  z-index: 20 !important;
  border-color: var(--or-clair);
  box-shadow: var(--shadow-deep), 0 0 60px -10px rgba(212, 175, 111, 0.6);
}
.collage-photo:hover img { transform: scale(1.12); }
.collage-photo:hover::after { opacity: 1; }

/* Placement */
.collage-photo.c1 {
  top: 0; left: 5%;
  width: 62%; height: 58%;
  transform: rotate(-2deg);
  z-index: 3;
}
.collage-photo.c2 {
  top: 8%; right: 0;
  width: 42%; height: 40%;
  transform: rotate(3deg);
  z-index: 4;
}
.collage-photo.c3 {
  bottom: 8%; left: 0;
  width: 40%; height: 45%;
  transform: rotate(2deg);
  z-index: 5;
}
.collage-photo.c4 {
  bottom: 2%; right: 3%;
  width: 48%; height: 42%;
  transform: rotate(-3deg);
  z-index: 4;
}
.collage-photo.c5 {
  top: 30%; left: 30%;
  width: 30%; height: 30%;
  transform: rotate(1deg);
  z-index: 6;
  border-radius: 50%;
}
.collage-photo.c6 {
  bottom: 35%; right: 20%;
  width: 22%; height: 22%;
  transform: rotate(4deg);
  z-index: 7;
}

/* Petit hint d'interactivité au survol */
.collage-photo::before {
  content: '';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(31, 58, 45, 0.7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8c98a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cpolyline points='9 21 3 21 3 15'/%3E%3Cline x1='21' y1='3' x2='14' y2='10'/%3E%3Cline x1='3' y1='21' x2='10' y2='14'/%3E%3C/svg%3E") center/16px no-repeat;
  border: 1px solid rgba(212, 175, 111, 0.6);
  opacity: 0;
  transform: scale(0.7);
  transition: all 0.3s ease;
  z-index: 3;
  pointer-events: none;
}
.collage-photo:hover::before {
  opacity: 1;
  transform: scale(1);
}

/* === ÉTAT AGRANDI (position/taille définies inline par le JS pour l'animation FLIP) === */
.collage-photo.expanded {
  z-index: 200 !important;
  border-color: var(--or-clair) !important;
  border-width: 8px !important;
  border-radius: 18px !important;
  box-shadow:
    0 40px 100px -20px rgba(0, 0, 0, 0.7),
    0 0 100px -10px rgba(212, 175, 111, 0.55),
    var(--shadow-deep) !important;
  animation: none !important;
  cursor: default !important;
}
.collage-photo.expanded::before { display: none; }
.collage-photo.expanded .collage-caption {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.25s;
}

/* === CONTENU DÉCRIT AU BAS DE LA PHOTO AGRANDIE === */
.collage-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 3rem 2.5rem 2.2rem;
  color: var(--ivoire);
  z-index: 3;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 40%, rgba(0, 0, 0, 0.85) 100%);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.collage-caption h4 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--ivoire);
  margin-bottom: 0.6rem;
  line-height: 1.1;
}
.collage-caption h4 em { color: var(--or-clair); }
.collage-caption p {
  color: rgba(248, 244, 236, 0.85);
  font-size: 1rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.55;
  max-width: 620px;
  margin: 0;
}
.collage-caption .cap-eyebrow {
  font-family: var(--title);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--or-clair);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  display: block;
}

/* === BACKDROP === */
.collage-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 6, 0);
  backdrop-filter: blur(0px);
  z-index: 150;
  pointer-events: none;
  transition: background 0.5s ease, backdrop-filter 0.5s ease;
}
.collage-backdrop.active {
  background: rgba(10, 8, 6, 0.75);
  backdrop-filter: blur(6px);
  pointer-events: auto;
  cursor: zoom-out;
}

/* Bouton de fermeture élégant */
.collage-close {
  position: fixed;
  top: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(31, 58, 45, 0.6);
  border: 1px solid var(--or-antique);
  color: var(--or-pale);
  cursor: pointer;
  z-index: 210;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}
.collage-close.visible { display: flex; }
.collage-close:hover {
  background: var(--gold-gradient);
  color: var(--vert-profond);
  transform: scale(1.08);
}
.collage-close svg { width: 20px; height: 20px; }

/* Empêche le float d'animation quand une photo est développée */
.collage.has-expanded .collage-photo:not(.expanded) {
  opacity: 0.35;
  filter: blur(2px) saturate(0.6);
}

/* Animated float on collage load */
.collage-photo {
  animation: floatCollage 8s ease-in-out infinite;
}
.collage-photo.c2 { animation-delay: 1s; }
.collage-photo.c3 { animation-delay: 2s; }
.collage-photo.c4 { animation-delay: 3s; }
.collage-photo.c5 { animation-delay: 1.5s; }
.collage-photo.c6 { animation-delay: 2.5s; }

@keyframes floatCollage {
  0%, 100% { transform: rotate(var(--rot, 0deg)) translateY(0); }
  50% { transform: rotate(var(--rot, 0deg)) translateY(-10px); }
}

.collage-photo.c1 { --rot: -2deg; }
.collage-photo.c2 { --rot: 3deg; }
.collage-photo.c3 { --rot: 2deg; }
.collage-photo.c4 { --rot: -3deg; }
.collage-photo.c5 { --rot: 1deg; }
.collage-photo.c6 { --rot: 4deg; }

/* ============================================================
   SIMPLE HERO (interior pages)
   ============================================================ */
.page-hero {
  padding: 12rem 3.5rem 6rem;
  text-align: center;
  background:
    radial-gradient(ellipse at center, rgba(184, 150, 90, 0.1) 0%, transparent 70%),
    linear-gradient(180deg, var(--parchemin) 0%, var(--ivoire) 100%);
  border-bottom: 1px solid rgba(184, 150, 90, 0.2);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 6rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 1px;
  background: var(--gold-gradient);
}
.page-hero h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 300;
  color: var(--vert-profond);
  margin: 1.5rem 0;
  letter-spacing: -0.02em;
}
.page-hero h1 em {
  color: var(--or-antique);
  display: block;
}
.page-hero p {
  font-size: 1.2rem;
  color: var(--gris-pierre);
  max-width: 700px;
  margin: 0 auto;
  font-style: italic;
  font-weight: 300;
}

/* ============================================================
   SECTION INTRO ÉVÉNEMENTS (page écrins) — texte + vidéo
   ============================================================ */
.intro-events {
  padding: 6rem 3.5rem 0;
  text-align: center;
  position: relative;
}
.intro-events .eyebrow { margin-bottom: 1.5rem; }
.intro-events h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--vert-profond);
  margin: 0 0 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.intro-events h2 em { color: var(--or-antique); }
.intro-events p {
  max-width: 680px;
  margin: 0 auto 4rem;
  color: var(--gris-pierre);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.7;
}

.intro-video {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.35);
  aspect-ratio: 21 / 9;
  background: var(--noir-encre);
  border-radius: 0;
  border: none;
}
.intro-video::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold-gradient);
  background-size: 200% auto;
  animation: goldShimmer 6s linear infinite;
  z-index: 3;
}
.intro-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   COMPOSITION PHOTOS (péniche — 1 grande + 3 petites)
   ============================================================ */
.photo-composition {
  position: relative;
  height: 620px;
  display: grid;
  grid-template-rows: 2fr 1fr;
  gap: 0.6rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-deep);
}
.photo-composition .pc-main {
  position: relative;
  overflow: hidden;
  border: 4px solid var(--ivoire);
  transition: transform 0.6s;
  cursor: zoom-in;
}
.photo-composition .pc-main img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}
.photo-composition .pc-main:hover img {
  transform: scale(1.05);
}
.photo-composition .pc-main::after {
  content: '';
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(31, 58, 45, 0.7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8c98a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cpolyline points='9 21 3 21 3 15'/%3E%3Cline x1='21' y1='3' x2='14' y2='10'/%3E%3Cline x1='3' y1='21' x2='10' y2='14'/%3E%3C/svg%3E") center/16px no-repeat;
  border: 1px solid rgba(212, 175, 111, 0.6);
  opacity: 0;
  transform: scale(0.7);
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 3;
}
.photo-composition .pc-main:hover::after { opacity: 1; transform: scale(1); }
.photo-composition .pc-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
.photo-composition.pc-4 .pc-thumbs {
  grid-template-columns: repeat(4, 1fr);
}
.photo-composition .pc-thumb {
  position: relative;
  overflow: hidden;
  border: 4px solid var(--ivoire);
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.photo-composition .pc-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s ease, filter 0.6s;
  filter: brightness(0.9);
}
.photo-composition .pc-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(212, 175, 111, 0.2) 50%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}
.photo-composition .pc-thumb:hover {
  border-color: var(--or-clair);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.4), 0 0 30px -5px rgba(212, 175, 111, 0.5);
  transform: translateY(-3px);
}
.photo-composition .pc-thumb:hover img {
  filter: brightness(1.05);
  transform: scale(1.08);
}
.photo-composition .pc-thumb:hover::after { opacity: 1; }

/* Photo simple (château) */
.property-single-photo {
  position: relative;
  height: 620px;
  overflow: hidden;
  border-radius: 16px;
  border: 6px solid var(--ivoire);
  box-shadow: var(--shadow-deep);
}
.property-single-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}
.property-single-photo:hover img { transform: scale(1.04); }
.property-single-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
}

/* ============================================================
   AGENTS
   ============================================================ */
.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}
/* Variante deux agents : présentation centrée & plus grande */
.agents-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  gap: 3rem;
}
.agents-grid--two .agent-card { padding: 3.5rem 2.5rem; }
.agents-grid--two .agent-portrait { width: 200px; height: 200px; }
@media (max-width: 720px) {
  .agents-grid--two { grid-template-columns: 1fr; }
}
.agent-card {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--ivoire);
  border: 1px solid rgba(184, 150, 90, 0.2);
  position: relative;
  transition: all 0.5s;
  overflow: hidden;
}
.agent-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(184, 150, 90, 0.06) 100%);
  opacity: 0;
  transition: opacity 0.5s;
}
.agent-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-deep);
  border-color: var(--or-antique);
}
.agent-card:hover::before { opacity: 1; }

.agent-portrait {
  width: 180px;
  height: 180px;
  margin: 0 auto 2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--vert-mousse), var(--vert-profond));
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--or-antique);
  position: relative;
  box-shadow: var(--shadow-gold), var(--shadow-inner);
  overflow: hidden;
}
.agent-portrait::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--gold-gradient);
  background-size: 200% auto;
  animation: goldShimmer 4s linear infinite;
  z-index: -1;
}
.agent-portrait .initials {
  font-family: var(--title);
  font-size: 3rem;
  color: var(--or-pale);
  font-weight: 500;
  letter-spacing: 0.05em;
}
.agent-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 50%;
  display: block;
}
.agent-card h3 {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
  position: relative;
}
.agent-role {
  font-family: var(--title);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  color: var(--or-antique);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  position: relative;
}
.agent-bio {
  color: var(--gris-pierre);
  font-size: 0.98rem;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
}
.agent-contact {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--vert-mousse);
  position: relative;
}
.agent-contact a { transition: color 0.3s; }
.agent-contact a:hover { color: var(--or-antique); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.contact-info h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--vert-profond);
  font-weight: 300;
}
.contact-info p {
  color: var(--gris-pierre);
  line-height: 1.8;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}
.contact-details {
  list-style: none;
  padding: 0;
  margin-top: 2.5rem;
}
.contact-details li {
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(184, 150, 90, 0.2);
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}
.contact-details svg {
  width: 22px;
  height: 22px;
  color: var(--or-antique);
  flex-shrink: 0;
  margin-top: 3px;
}
.contact-details .label {
  font-family: var(--title);
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  color: var(--or-antique);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.3rem;
}
.contact-details .value {
  color: var(--vert-profond);
  font-size: 1.05rem;
}

.contact-form {
  background: linear-gradient(180deg, var(--ivoire) 0%, var(--parchemin) 100%);
  padding: 3rem;
  border: 1px solid rgba(184, 150, 90, 0.3);
  box-shadow: var(--shadow-soft);
  position: relative;
}
.contact-form::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold-gradient);
  background-size: 200% auto;
  animation: goldShimmer 6s linear infinite;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-family: var(--title);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--or-antique);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(184, 150, 90, 0.3);
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--vert-profond);
  transition: all 0.3s;
  border-radius: 2px;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--or-antique);
  background: var(--ivoire);
  box-shadow: 0 0 0 3px rgba(184, 150, 90, 0.15);
}
.form-group textarea {
  min-height: 140px;
  resize: vertical;
}
.contact-form button {
  width: 100%;
  margin-top: 0.5rem;
}

/* ============================================================
   PAGE CONTACT — dégradé vert en fond
   ============================================================ */
body.page-contact {
  background:
    radial-gradient(ellipse at top left, rgba(184, 150, 90, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(47, 87, 68, 0.35) 0%, transparent 55%),
    linear-gradient(160deg,
      #d8e3d4 0%,
      #a8c4a5 25%,
      #6b8b6e 55%,
      #2f5744 85%,
      #1f3a2d 100%);
  background-attachment: fixed;
}
body.page-contact .page-hero {
  background: linear-gradient(180deg, rgba(216, 227, 212, 0.6) 0%, rgba(168, 196, 165, 0.3) 100%);
  backdrop-filter: blur(2px);
}
body.page-contact .section {
  background: transparent;
}
body.page-contact .contact-info h2,
body.page-contact .contact-info p {
  color: var(--ivoire);
  text-shadow: 0 2px 20px rgba(31, 58, 45, 0.4);
}
body.page-contact .contact-info h2 em { color: var(--or-clair); }
body.page-contact .contact-info p { color: rgba(248, 244, 236, 0.9); }
body.page-contact .contact-details {
  border-color: rgba(232, 201, 138, 0.3);
}
body.page-contact .contact-details li {
  border-color: rgba(232, 201, 138, 0.25);
}
body.page-contact .contact-details .value {
  color: var(--ivoire);
}
body.page-contact .contact-details a:hover { color: var(--or-clair); }
body.page-contact .manifesto {
  background: linear-gradient(180deg, transparent 0%, rgba(31, 58, 45, 0.5) 100%);
}
body.page-contact .manifesto-text {
  color: var(--ivoire);
  text-shadow: 0 2px 20px rgba(31, 58, 45, 0.6);
}
body.page-contact .manifesto-text em { color: var(--or-clair); }

/* ============================================================
   PAGES LÉGALES
   ============================================================ */
.legal {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
  color: var(--noir-encre);
  font-size: 1.05rem;
  line-height: 1.85;
}
.legal h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  color: var(--vert-profond);
  font-weight: 400;
  margin: 3.5rem 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(184, 150, 90, 0.3);
  position: relative;
}
.legal h2::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--gold-gradient);
  background-size: 200% auto;
  animation: goldShimmer 6s linear infinite;
}
.legal h3 {
  font-family: var(--title);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  color: var(--or-antique);
  text-transform: uppercase;
  font-weight: 500;
  margin: 2rem 0 0.8rem;
}
.legal p {
  color: var(--gris-pierre);
  margin-bottom: 1.2rem;
}
.legal p em, .legal em {
  color: var(--or-antique);
  font-style: italic;
}
.legal ul {
  margin: 1rem 0 1.5rem;
  padding-left: 0;
  list-style: none;
}
.legal ul li {
  padding: 0.4rem 0 0.4rem 1.8rem;
  position: relative;
  color: var(--gris-pierre);
}
.legal ul li::before {
  content: '❦';
  position: absolute;
  left: 0;
  color: var(--or-antique);
  font-style: italic;
}
.legal .info-block {
  background: linear-gradient(180deg, var(--ivoire) 0%, var(--parchemin) 100%);
  border-left: 3px solid var(--or-antique);
  padding: 1.5rem 2rem;
  margin: 1.5rem 0;
  border-radius: 0 12px 12px 0;
  box-shadow: var(--shadow-soft);
}
.legal .info-block strong {
  color: var(--vert-profond);
  font-weight: 500;
}
.legal a {
  color: var(--vert-mousse);
  text-decoration: underline;
  text-decoration-color: rgba(184, 150, 90, 0.4);
  text-underline-offset: 3px;
  transition: color 0.3s;
}
.legal a:hover { color: var(--or-antique); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background:
    linear-gradient(180deg, var(--vert-profond) 0%, var(--noir-encre) 100%);
  color: var(--ivoire-fonce);
  padding: 5rem 3.5rem 2rem;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold-gradient);
  background-size: 200% auto;
  animation: goldShimmer 6s linear infinite;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(184, 150, 90, 0.25);
}
.footer-brand svg { width: 46px; height: 46px; color: var(--or-clair); margin-bottom: 1rem; }
.footer-brand .name {
  font-family: var(--title);
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  color: var(--or-clair);
  margin-bottom: 0.4rem;
}
.footer-brand p {
  color: rgba(248, 244, 236, 0.7);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-top: 1rem;
}
.footer-col h4 {
  font-family: var(--title);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  color: var(--or-clair);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.7rem; }
.footer-col a {
  color: rgba(248, 244, 236, 0.7);
  font-size: 0.95rem;
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--or-clair); }

.footer-bottom {
  max-width: 1400px;
  margin: 2rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--title);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: rgba(248, 244, 236, 0.5);
  text-transform: uppercase;
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* Apparition très ralentie + brillance dorée qui traverse le texte */
.reveal-slow {
  opacity: 0;
  transform: translateY(60px) scale(0.94);
  filter: blur(12px);
  transition:
    opacity 2.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 2.8s cubic-bezier(0.16, 1, 0.3, 1),
    filter 2.8s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: inline-block;
  background-image: linear-gradient(
    100deg,
    var(--vert-profond) 0%,
    var(--vert-profond) 40%,
    var(--or-brillant) 50%,
    var(--vert-profond) 60%,
    var(--vert-profond) 100%
  );
  background-size: 250% auto;
  background-position: -100% center;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.reveal-slow.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  animation: goldSweep 4s ease-in-out 1.2s both;
}
@keyframes goldSweep {
  0%   { background-position: -100% center; }
  100% { background-position: 200% center; }
}
.reveal-slow em {
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-style: italic;
}

/* ============================================================
   ORNEMENTS
   ============================================================ */
.ornament {
  text-align: center;
  color: var(--or-antique);
  font-size: 1.4rem;
  margin: 3rem auto;
  letter-spacing: 1rem;
  padding-left: 1rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .property-inner { grid-template-columns: 1fr; gap: 3rem; }
  .property.reverse .property-media { order: 1; }
  .property.reverse .property-text { order: 2; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .collage { height: 560px; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .nav { padding: 1rem 1.5rem; }
  .nav.scrolled { padding: 0.7rem 1.5rem; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--ivoire);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-top: 1px solid var(--or-antique);
  }
  .nav-links.open { display: flex; }
  .mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
  }
  .mobile-toggle span {
    width: 25px;
    height: 1.5px;
    background: var(--vert-profond);
    transition: all 0.3s;
  }
  .hero, .section, .property { padding-left: 1.5rem; padding-right: 1.5rem; }
  .page-hero { padding: 9rem 1.5rem 4rem; }
  .footer { padding: 4rem 1.5rem 2rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .collage { height: 480px; }
  .property-features { grid-template-columns: 1fr; }
  .property-price { flex-wrap: wrap; }
  .price-fai { margin-left: 0; width: 100%; }
  .contact-form { padding: 2rem 1.5rem; }
}

/* ============================================================
   CHATBOT
   ============================================================ */
.chatbot-fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--gold-gradient);
  background-size: 200% auto;
  border: 3px solid var(--vert-profond);
  cursor: pointer;
  box-shadow: 0 10px 30px -5px rgba(31, 58, 45, 0.4), 0 0 40px -5px rgba(212, 175, 111, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: goldShimmer 6s linear infinite, pulse 3s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 10px 30px -5px rgba(31, 58, 45, 0.4), 0 0 0 0 rgba(212, 175, 111, 0.6); }
  50% { box-shadow: 0 10px 30px -5px rgba(31, 58, 45, 0.4), 0 0 0 20px rgba(212, 175, 111, 0); }
}
.chatbot-fab:hover { transform: scale(1.08); }
.chatbot-fab svg { width: 30px; height: 30px; color: var(--vert-profond); }

.chatbot-window {
  position: fixed;
  bottom: 115px;
  right: 30px;
  width: 380px;
  max-width: calc(100vw - 40px);
  height: 540px;
  max-height: calc(100vh - 150px);
  background: var(--ivoire);
  border: 1px solid var(--or-antique);
  border-radius: 4px;
  box-shadow: var(--shadow-deep);
  z-index: 998;
  display: none;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.chatbot-window.open {
  display: flex;
  transform: translateY(0) scale(1);
  opacity: 1;
}

.chatbot-header {
  background: linear-gradient(180deg, var(--vert-profond) 0%, var(--vert-mousse) 100%);
  color: var(--ivoire);
  padding: 1.4rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-bottom: 2px solid var(--or-antique);
  position: relative;
}
.chatbot-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 2px;
  background: var(--gold-gradient);
  background-size: 200% auto;
  animation: goldShimmer 4s linear infinite;
}
.chatbot-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--or-clair);
  font-family: var(--title);
  color: var(--vert-profond);
  font-weight: 600;
  font-size: 0.9rem;
}
.chatbot-title {
  flex: 1;
  line-height: 1.2;
}
.chatbot-title .n {
  font-family: var(--title);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--or-clair);
  font-weight: 500;
}
.chatbot-title .s {
  font-size: 0.75rem;
  font-style: italic;
  color: rgba(248, 244, 236, 0.7);
  margin-top: 2px;
}
.chatbot-title .s::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  background: #7fdb87;
  border-radius: 50%;
  margin-right: 6px;
  box-shadow: 0 0 8px #7fdb87;
}
.chatbot-close {
  background: none;
  border: none;
  color: var(--ivoire);
  cursor: pointer;
  padding: 0.3rem;
  opacity: 0.7;
  transition: opacity 0.3s;
}
.chatbot-close:hover { opacity: 1; }

.chatbot-messages {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  background: var(--parchemin);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.chatbot-messages::-webkit-scrollbar { width: 5px; }
.chatbot-messages::-webkit-scrollbar-thumb { background: var(--or-antique); border-radius: 3px; }

.msg {
  max-width: 85%;
  padding: 0.9rem 1.1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  border-radius: 4px;
  animation: msgIn 0.4s ease;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.msg.bot {
  background: var(--ivoire);
  color: var(--vert-profond);
  border: 1px solid rgba(184, 150, 90, 0.25);
  border-left: 3px solid var(--or-antique);
  align-self: flex-start;
}
.msg.user {
  background: linear-gradient(135deg, var(--vert-mousse), var(--vert-profond));
  color: var(--ivoire);
  align-self: flex-end;
}
.msg em { color: var(--or-antique); }

.chatbot-quick {
  padding: 0.8rem 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  background: var(--ivoire-fonce);
  border-top: 1px solid rgba(184, 150, 90, 0.25);
}
.quick-btn {
  padding: 0.5rem 0.9rem;
  background: var(--ivoire);
  border: 1px solid var(--or-antique);
  color: var(--vert-profond);
  font-family: var(--serif);
  font-size: 0.82rem;
  font-style: italic;
  cursor: pointer;
  border-radius: 20px;
  transition: all 0.3s;
}
.quick-btn:hover {
  background: var(--gold-gradient);
  color: var(--vert-profond);
  transform: translateY(-1px);
}

.chatbot-input {
  padding: 1rem;
  display: flex;
  gap: 0.6rem;
  border-top: 1px solid rgba(184, 150, 90, 0.25);
  background: var(--ivoire);
}
.chatbot-input input {
  flex: 1;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(184, 150, 90, 0.3);
  background: var(--parchemin);
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--vert-profond);
  border-radius: 6px;
}
.chatbot-input input:focus {
  outline: none;
  border-color: var(--or-antique);
  background: var(--ivoire);
}
.chatbot-send {
  padding: 0 1.2rem;
  background: var(--gold-gradient);
  background-size: 200% auto;
  border: none;
  color: var(--vert-profond);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s;
}
.chatbot-send:hover { background-position: right center; }
.chatbot-send svg { width: 18px; height: 18px; }

@media (max-width: 480px) {
  .chatbot-window { bottom: 100px; right: 15px; left: 15px; width: auto; }
  .chatbot-fab { bottom: 20px; right: 20px; width: 58px; height: 58px; }
}

/* ============================================================
   LIGHTBOX — visionnage des photos une par une
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 8, 6, 0.92);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.35s ease;
  padding: 4rem 2rem;
}
.lightbox.open {
  display: flex;
  opacity: 1;
}

.lightbox-figure {
  position: relative;
  max-width: min(1400px, 92vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  animation: lightIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes lightIn {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}

.lightbox-img {
  max-width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border: 6px solid var(--ivoire);
  border-radius: 12px;
  box-shadow:
    0 40px 80px -20px rgba(0, 0, 0, 0.7),
    0 0 60px -10px rgba(212, 175, 111, 0.35);
  display: block;
}

.lightbox-caption {
  color: var(--or-pale);
  font-family: var(--title);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-align: center;
}
.lightbox-count {
  color: rgba(248, 244, 236, 0.55);
  font-family: var(--title);
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  margin-left: 1rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(31, 58, 45, 0.7);
  border: 1px solid var(--or-antique);
  color: var(--or-pale);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
  z-index: 501;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--gold-gradient);
  color: var(--vert-profond);
  transform: scale(1.08);
}
.lightbox-close { top: 2rem; right: 2rem; }
.lightbox-prev  { left: 2rem;  top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 2rem; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover { transform: translateY(-50%) scale(1.08); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.08); }
.lightbox-close svg,
.lightbox-prev svg,
.lightbox-next svg { width: 22px; height: 22px; }

@media (max-width: 640px) {
  .lightbox-close { top: 1rem; right: 1rem; width: 44px; height: 44px; }
  .lightbox-prev  { left: 0.7rem; width: 44px; height: 44px; }
  .lightbox-next  { right: 0.7rem; width: 44px; height: 44px; }
  .lightbox-img { max-height: 70vh; }
}
