/* ============================================================
   champagne.direct — Minimal Luxury v4
   ============================================================ */

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

:root {
  --cream: #faf7f2;
  --cream-light: #fefcf9;
  --cream-deep: #f2ede4;
  --gold: #c9a96e;
  --gold-deep: #a8884a;
  --gold-light: #e8dcc4;
  --gold-pale: #f0e9da;
  --burgundy: #6b2737;
  --charcoal: #2c2824;
  --taupe: #8a7f72;
  --taupe-light: #b5ab9e;
  --white: #ffffff;
  --green: #3a7d5c;
  --radius: 16px;
  --radius-sm: 10px;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, sans-serif;
  --ease: cubic-bezier(.22,1,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--sans); font-size: 16px; color: var(--charcoal); background: var(--cream); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--gold-deep); text-decoration: none; }
::selection { background: var(--gold); color: var(--white); }
h1,h2,h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; color: var(--charcoal); }
h1 { font-size: clamp(2.6rem,7vw,4.5rem); letter-spacing: -.02em; font-weight: 600; }
h2 { font-size: clamp(1.8rem,4vw,2.8rem); letter-spacing: -.015em; }
h3 { font-size: clamp(1.1rem,2vw,1.4rem); }
p { color: var(--taupe); max-width: 55ch; line-height: 1.7; }
.container { width: min(1100px, calc(100% - 2rem)); margin-inline: auto; }

/* ===== DEMO BANNER ===== */
.demo {
  background: var(--charcoal); color: var(--gold-light); text-align: center;
  padding: .35rem; font-size: .6rem; letter-spacing: .12em; text-transform: uppercase;
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  border-bottom: 1px solid var(--gold-deep);
}
.demo span { opacity: .7; }

/* ===== HEADER ===== */
.header {
  position: fixed; top: 24px; left: 0; right: 0; z-index: 100;
  background: rgba(250,247,242,.85); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gold-light); transition: .3s;
}
.header.scrolled { background: rgba(250,247,242,.95); box-shadow: 0 1px 4px rgba(44,40,36,.06); }
.header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .6rem 0;
}
.logo { font-family: var(--serif); font-size: 1.15rem; color: var(--charcoal); letter-spacing: .02em; }
.logo em { font-style: normal; color: var(--gold-deep); font-weight: 600; }
.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav a { font-size: .78rem; color: var(--taupe); letter-spacing: .04em; transition: color .2s; }
.nav a:hover { color: var(--charcoal); }
.lang { display: flex; gap: 1px; }
.lang button {
  background: transparent; border: 1px solid var(--gold-light); color: var(--taupe);
  padding: 2px 7px; font-size: .6rem; cursor: pointer; font-family: var(--sans);
  font-weight: 500; text-transform: uppercase; transition: all .2s;
}
.lang button:first-child { border-radius: 4px 0 0 4px; }
.lang button:last-child { border-radius: 0 4px 4px 0; }
.lang button.active { background: var(--gold-deep); border-color: var(--gold-deep); color: var(--white); }
.lang button:hover:not(.active) { border-color: var(--gold); }
.menu-btn { display: none; background: none; border: 1px solid var(--gold-light); border-radius: 6px; padding: .35rem .7rem; font-size: .65rem; cursor: pointer; text-transform: uppercase; letter-spacing: .1em; color: var(--charcoal); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1rem 3rem;
  text-align: center;
  overflow: hidden;
  background: var(--charcoal);
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  z-index: 0; opacity: .45;
}
.hero-fade {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,24,22,.92) 0%, rgba(26,24,22,.6) 60%, rgba(26,24,22,.2) 100%);
  z-index: 1;
}
.hero .container { position: relative; z-index: 2; max-width: 600px; }
.hero .tag {
  display: inline-block;
  font-size: .55rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(201,169,110,.25);
  padding: .25rem .85rem; border-radius: 999px; margin-bottom: 1.25rem;
  font-weight: 500;
}
.hero h1 { color: var(--cream); margin-bottom: .75rem; }
.hero h1 .g { color: var(--gold); }
.hero p { color: rgba(250,247,242,.5); margin: 0 auto 1.5rem; font-size: .9rem; max-width: 34rem; }
.hero-line { width: 32px; height: 1px; background: var(--gold); margin: 0 auto 1.5rem; opacity: .5; }

/* Hero chat bar */
.bar {
  max-width: 480px; margin: 0 auto;
  display: flex; align-items: center; gap: .35rem;
  background: rgba(255,255,255,.07); backdrop-filter: blur(12px);
  border: 1px solid rgba(201,169,110,.2); border-radius: 999px;
  padding: .3rem .3rem .3rem 1.1rem;
  transition: border-color .3s;
}
.bar:focus-within { border-color: var(--gold); }
.bar input {
  flex: 1; border: none; background: transparent;
  font-family: var(--sans); font-size: .82rem; color: var(--cream); outline: none;
}
.bar input::placeholder { color: rgba(250,247,242,.3); }
.bar .btn {
  padding: .5rem 1.1rem; border-radius: 999px; border: none;
  background: var(--gold-deep); color: var(--white); font-size: .68rem;
  font-family: var(--sans); font-weight: 500; cursor: pointer;
  letter-spacing: .06em; transition: all .25s; white-space: nowrap;
}
.bar .btn:hover { background: var(--burgundy); }

.hero-chips { display: flex; flex-wrap: wrap; gap: .3rem; justify-content: center; margin-top: .7rem; }
.hero-chips button {
  font-family: var(--sans); font-size: .62rem; letter-spacing: .02em;
  padding: .2rem .65rem; border: 1px solid rgba(201,169,110,.12);
  border-radius: 999px; background: rgba(255,255,255,.03);
  color: rgba(250,247,242,.45); cursor: pointer; transition: all .25s;
}
.hero-chips button:hover { border-color: var(--gold); color: var(--gold); background: rgba(201,169,110,.06); }

/* ===== SECTION ===== */
.section { padding: 4rem 0; }
.section-head { text-align: center; margin-bottom: 2rem; }
.section-head p { margin: .5rem auto 0; font-size: .9rem; }

/* ===== CONCIERGE CHAT ===== */
.chat-wrap {
  max-width: 540px; margin: 0 auto;
  background: var(--white); border: 1px solid var(--gold-light);
  border-radius: var(--radius); box-shadow: 0 8px 40px rgba(44,40,36,.08);
  overflow: hidden;
}
.chat-top {
  display: flex; align-items: center; gap: .65rem;
  padding: .85rem 1.1rem; border-bottom: 1px solid var(--gold-light);
  background: var(--cream-light);
}
.chat-av {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  display: flex; align-items: center; justify-content: center;
  font-size: .55rem; color: var(--white); font-weight: 600;
  font-family: var(--serif); flex-shrink: 0;
}
.chat-top .nm { font-family: var(--serif); font-size: .85rem; color: var(--charcoal); font-weight: 500; }
.chat-top .st {
  font-size: .6rem; color: var(--taupe-light); display: flex; align-items: center; gap: 4px;
}
.chat-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--green); display: inline-block; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1}50%{opacity:.4} }

.chat-msgs {
  padding: 1rem; max-height: 400px; overflow-y: auto;
  display: flex; flex-direction: column; gap: .65rem;
}
.msg { display: flex; gap: .5rem; max-width: 88%; animation: in .3s var(--ease); }
@keyframes in { from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)} }
.msg.bot { align-self: flex-start; }
.msg.user { align-self: flex-end; flex-direction: row-reverse; }
.msg .av {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .45rem; color: #fff; font-family: var(--serif); font-weight: 600;
}
.msg.bot .av { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); }
.msg.user .av { background: var(--charcoal); }
.msg .b {
  padding: .6rem .9rem; font-size: .8rem; line-height: 1.6;
}
.msg.bot .b {
  background: var(--cream-light); border: 1px solid var(--gold-light);
  border-radius: var(--radius-sm) var(--radius-sm) var(--radius-sm) 4px;
  color: var(--charcoal);
}
.msg.user .b {
  background: var(--charcoal); color: var(--cream);
  border-radius: var(--radius-sm) var(--radius-sm) 4px var(--radius-sm);
}
.msg .b .plan {
  font-size: .76rem; line-height: 1.65; white-space: pre-line;
  color: var(--charcoal);
}
.msg .b .badge {
  display: inline-block; font-size: .52rem; letter-spacing: .12em;
  text-transform: uppercase; padding: .12rem .45rem; border-radius: 999px;
  margin-top: .25rem; border: 1px solid; font-weight: 500;
}
.msg .b .badge-v { color: var(--green); border-color: var(--green); background: rgba(58,125,92,.07); }
.msg .b .badge-s { color: var(--gold-deep); border-color: var(--gold-deep); background: rgba(168,136,74,.07); }
.msg .b .badge-c { color: #8a5a4a; border-color: #8a5a4a; background: rgba(138,90,74,.07); }

.typing {
  display: flex; align-items: center; gap: 4px;
  padding: .45rem .85rem; background: var(--cream-light);
  border: 1px solid var(--gold-light); border-radius: var(--radius-sm);
  align-self: flex-start; max-width: fit-content;
}
.typing span {
  width: 4px; height: 4px; border-radius: 50%; background: var(--taupe-light);
  animation: t 1.4s infinite; display: inline-block;
}
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
.typing .tx { font-size: .6rem; color: var(--taupe-light); margin-left: 2px; }
@keyframes t { 0%,60%,100%{opacity:.3;transform:scale(.8)}30%{opacity:1;transform:scale(1)} }

.chat-acts { display: flex; flex-wrap: wrap; gap: .3rem; padding: 0 1rem .7rem; }
.chat-acts button {
  font-size: .63rem; padding: .22rem .6rem; border: 1px solid var(--gold-light);
  border-radius: 999px; background: var(--cream); color: var(--taupe);
  cursor: pointer; font-family: var(--sans); transition: all .2s; letter-spacing: .02em;
}
.chat-acts button:hover { border-color: var(--gold); color: var(--gold-deep); background: var(--white); }

.chat-inp {
  display: flex; gap: .4rem; padding: .65rem 1rem;
  border-top: 1px solid var(--gold-light); background: var(--white);
}
.chat-inp input {
  flex: 1; border: 1px solid var(--gold-light); background: var(--cream);
  border-radius: 999px; padding: .55rem .85rem; font-family: var(--sans);
  font-size: .8rem; color: var(--charcoal); outline: none; transition: border-color .2s;
}
.chat-inp input:focus { border-color: var(--gold-deep); }
.chat-inp input::placeholder { color: var(--taupe-light); }
.chat-inp .btn {
  padding: .55rem 1.1rem; border-radius: 999px; border: none;
  background: var(--gold-deep); color: var(--white); font-size: .67rem;
  font-family: var(--sans); font-weight: 500; cursor: pointer; letter-spacing: .06em;
  transition: all .25s; white-space: nowrap;
}
.chat-inp .btn:hover { background: var(--burgundy); }
.chat-inp .btn:disabled { opacity: .5; cursor: default; }

.chat-foot { text-align: center; padding: .6rem; font-size: .65rem; color: var(--taupe-light); letter-spacing: .03em; }

/* ===== VALUE GRID ===== */
.v-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; max-width: 720px; margin: 0 auto; }
.v-card {
  text-align: center; padding: 1.25rem .75rem;
  background: var(--white); border: 1px solid var(--gold-light);
  border-radius: var(--radius-sm); transition: all .3s;
}
.v-card:hover { border-color: var(--gold); box-shadow: 0 4px 20px rgba(44,40,36,.06); }
.v-card .ico { font-size: 1.3rem; margin-bottom: .35rem; display: block; }
.v-card h3 { font-size: .85rem; margin-bottom: .15rem; }
.v-card p { font-size: .75rem; color: var(--taupe); margin: 0; }

/* ===== BADGES ROW ===== */
.badge-row { text-align: center; padding: 1.5rem 0; }
.badge-row span {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--taupe); font-weight: 500;
}
.badge-row span:not(:last-child)::after {
  content: "—"; color: var(--gold); margin: 0 1rem; font-weight: 300;
}

/* ===== CTA DARK ===== */
.cta-dark {
  background: var(--charcoal); text-align: center; padding: 3rem 1rem;
}
.cta-dark h2 { color: var(--cream); }
.cta-dark p { color: var(--taupe-light); margin: .5rem auto 1.25rem; }
.cta-dark .btn {
  display: inline-block; padding: .65rem 1.8rem; border-radius: 999px;
  background: var(--gold-deep); color: var(--white); font-size: .72rem;
  font-family: var(--sans); font-weight: 500; letter-spacing: .08em;
  cursor: pointer; border: none; transition: all .25s; text-transform: uppercase;
}
.cta-dark .btn:hover { background: var(--burgundy); }

/* ===== FOOTER ===== */
.footer {
  background: var(--charcoal); color: var(--taupe-light);
  padding: 2.5rem 0 1.5rem; font-size: .8rem;
}
.footer .fw { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
.footer .fc { min-width: 140px; }
.footer .fc h4 { font-family: var(--sans); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light); font-weight: 500; margin-bottom: .5rem; }
.footer .fc a { display: block; color: var(--taupe-light); font-size: .75rem; padding: .15rem 0; transition: color .2s; }
.footer .fc a:hover { color: var(--gold-light); }
.footer .fb { border-top: 1px solid rgba(201,169,110,.1); margin-top: 1.5rem; padding-top: 1rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .68rem; color: var(--taupe); }
.footer .foot-lang { margin-top: .5rem; display: flex; gap: .3rem; }
.footer .foot-lang button {
  background: rgba(201,169,110,.1); border: 1px solid rgba(201,169,110,.2);
  color: var(--gold-light); padding: 2px 7px; border-radius: 4px; font-size: .58rem;
  cursor: pointer; font-family: var(--sans); font-weight: 500; transition: all .2s;
  text-transform: uppercase;
}
.footer .foot-lang button.active { background: var(--gold-deep); border-color: var(--gold-deep); }

/* Language visibility */
html[data-lang="fr"] [lang="en"] { display: none !important; }
html[data-lang="en"] [lang="fr"] { display: none !important; }
.lang [lang], .foot-lang [lang], .demo [lang] { display: inline !important; }

/* ===== RESPONSIVE ===== */
.nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--cream-light); padding: 1rem; border-bottom: 1px solid var(--gold-light); gap: .75rem; box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.nav.open a { display: block !important; }

@media (max-width: 768px) {
  .nav a:not(.lang) { display: none; }
  .menu-btn { display: block; }
  .hero { padding: 5rem 1rem 2rem; min-height: auto; }
  .hero p { font-size: .82rem; }
  .bar { border-radius: 12px; flex-direction: column; padding: .65rem; background: rgba(255,255,255,.08); }
  .bar input { width: 100%; text-align: center; padding: .35rem 0; }
  .bar .btn { width: 100%; justify-content: center; }
  .v-grid { grid-template-columns: 1fr; max-width: 400px; }
  .badge-row span { display: block; margin: .3rem 0; }
  .badge-row span:not(:last-child)::after { content: ""; margin: 0; }
  .chat-msgs { max-height: 300px; }
  .section { padding: 2.5rem 0; }
  .footer .fw { flex-direction: column; gap: 1rem; }
  .footer .fb { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .hero-chips button { font-size: .58rem; padding: .15rem .5rem; }
  .chat-acts button { font-size: .6rem; }
  .chat-inp { flex-direction: column; }
  .chat-inp .btn { width: 100%; justify-content: center; }
  .msg { max-width: 95%; }
  .msg .b { font-size: .76rem; padding: .5rem .75rem; }
}