/* ============================================================
   Maison Éloïse — Maquette de démonstration
   Palette ivoire / beige / nude, accent doré & bordeaux discret
   ============================================================ */

:root {
  --ivory: #faf6f0;
  --cream: #f3ebe1;
  --beige: #e7dccd;
  --nude: #dcc7b6;
  --sand: #cbb3a0;
  --taupe: #8c7b6a;
  --ink: #2c2622;
  --muted: #6f645a;
  --gold: #b8965a;
  --gold-deep: #9c7c40;
  --bordeaux: #6e2231;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1180px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow: 0 18px 40px -22px rgba(44, 38, 34, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0; }

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

/* ---------- Bandeau démo ---------- */
.demo-ribbon {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory);
  background: var(--bordeaux);
  padding: 4px 12px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 24px; left: 0; right: 0;
  z-index: 150;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), top 0.4s var(--ease);
}
.site-header.scrolled {
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(140, 123, 106, 0.18);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--ivory);
  background: var(--gold);
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  transition: background 0.3s var(--ease);
}
.scrolled .brand-mark { background: var(--gold-deep); }
.brand-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.site-header:not(.scrolled) .brand-name,
.site-header:not(.scrolled) .nav-link { color: var(--ink); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav-link {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
  transition: color 0.3s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.35s var(--ease);
}
.nav-link:hover::after, .nav-link:focus-visible::after { width: 100%; }
.nav-cta {
  border: 1px solid var(--gold);
  padding: 8px 18px;
  border-radius: var(--radius);
  color: var(--gold-deep);
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--gold); color: var(--ivory); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none;
  cursor: pointer;
  padding: 6px;
}
.burger span {
  width: 26px; height: 2px;
  background: var(--ink);
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 15px 40px;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.btn-primary {
  background: var(--gold);
  color: var(--ivory);
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--gold-deep); transform: translateY(-2px); }
.btn-block { width: 100%; border: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: var(--ink);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-figure {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 78% 18%, rgba(220, 199, 182, 0.9), transparent 60%),
    radial-gradient(90% 80% at 12% 82%, rgba(238, 214, 210, 0.85), transparent 55%),
    linear-gradient(135deg, #f6efe6 0%, #efe2d3 45%, #e7d2c6 100%);
}
.hero-figure::after {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(115deg, rgba(255,255,255,0.06) 0 2px, transparent 2px 26px);
  mix-blend-mode: overlay;
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 24px;
  animation: rise 1.1s var(--ease) both;
}
.hero-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 18px;
}
.hero-title {
  font-size: clamp(3.2rem, 10vw, 6.5rem);
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}
.hero-baseline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 3vw, 1.7rem);
  color: var(--muted);
  margin: 0 0 38px;
}
.hero-scroll {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  animation: float 2.4s ease-in-out infinite;
}

@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* ---------- Sections ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 120px 28px;
}
.section-head { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.eyebrow {
  font-size: 0.76rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 14px;
}
.section-title { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 16px; }
.section-lead { color: var(--muted); margin: 0; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- La Maison ---------- */
.maison { background: var(--cream); max-width: none; }
.maison > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.maison-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
  padding: 0 28px;
}
.portrait-frame {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  background:
    radial-gradient(80% 60% at 50% 30%, rgba(255,255,255,0.5), transparent 60%),
    linear-gradient(160deg, #e9d8c6, #cdae97 90%);
  box-shadow: var(--shadow);
  position: relative;
}
.portrait-frame::after {
  content: "";
  position: absolute; inset: 14px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: var(--radius);
}
.portrait-caption {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  text-align: center;
  margin: 16px 0 0;
}
.maison-text p { margin: 0 0 20px; color: var(--muted); }
.values { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 18px; }
.values li {
  display: flex; flex-direction: column;
  border-left: 2px solid var(--gold);
  padding-left: 16px;
}
.value-title { font-family: var(--serif); font-size: 1.25rem; color: var(--ink); }
.value-desc { font-size: 0.9rem; color: var(--muted); }

/* ---------- Collections ---------- */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.gown {
  cursor: pointer;
  background: var(--ivory);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.gown:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.gown-figure {
  aspect-ratio: 3 / 4;
  position: relative;
  overflow: hidden;
}
.gown-figure::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(44,38,34,0.18));
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.gown:hover .gown-figure::after { opacity: 1; }
.gown-figure > span {
  position: absolute; inset: 0;
  transition: transform 0.7s var(--ease);
}
.gown:hover .gown-figure > span { transform: scale(1.06); }
.gown-body { padding: 20px 22px 26px; }
.gown-line {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 6px;
}
.gown-name { font-family: var(--serif); font-size: 1.5rem; }

/* ---------- Galerie ---------- */
.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 14px;
}
.gtile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: none;
  padding: 0;
}
.gtile > span {
  position: absolute; inset: 0;
  transition: transform 0.7s var(--ease), filter 0.5s var(--ease);
}
.gtile:hover > span { transform: scale(1.08); filter: brightness(1.05); }
.gtile.tall { grid-row: span 2; }
.gtile.wide { grid-column: span 2; }
.gtile::after {
  content: "⤢";
  position: absolute;
  right: 12px; bottom: 8px;
  color: var(--ivory);
  font-size: 1.1rem;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
.gtile:hover::after { opacity: 1; }

/* ---------- Contact ---------- */
.contact { background: var(--cream); max-width: none; }
.contact > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 56px;
  padding: 0 28px;
  align-items: start;
}
.contact-form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label {
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field textarea {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid var(--beige);
  border-radius: var(--radius);
  padding: 13px 16px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 150, 90, 0.16);
}
.field textarea { resize: vertical; }

.slots { border: none; padding: 0; margin: 0; }
.slots legend {
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0;
  margin-bottom: 12px;
}
.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.slot {
  border: 1px solid var(--beige);
  background: var(--ivory);
  border-radius: var(--radius);
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.slot span { display: block; }
.slot .slot-date { font-family: var(--serif); font-size: 1.05rem; color: var(--ink); }
.slot .slot-time { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.1em; }
.slot:hover { border-color: var(--gold); }
.slot.active { border-color: var(--gold); background: var(--gold); }
.slot.active .slot-date, .slot.active .slot-time { color: var(--ivory); }

.form-note { font-size: 0.78rem; color: var(--taupe); margin: -6px 0 0; }
.form-confirm {
  background: rgba(184, 150, 90, 0.14);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 16px 18px;
  color: var(--gold-deep);
  font-size: 0.92rem;
}

.contact-info h3 { font-size: 1.7rem; margin-bottom: 20px; }
.info-line { color: var(--muted); margin: 0 0 14px; }
.info-map {
  margin-top: 8px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background:
    linear-gradient(0deg, rgba(140,123,106,0.12), rgba(140,123,106,0.12)),
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(140,123,106,0.14) 22px 23px),
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(140,123,106,0.14) 22px 23px),
    var(--beige);
}

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 54px 28px;
  background: var(--ink);
  color: var(--cream);
}
.footer-brand { font-family: var(--serif); font-size: 1.6rem; letter-spacing: 0.05em; margin: 0 0 10px; }
.footer-legal { font-size: 0.8rem; color: rgba(243,235,225,0.6); margin: 0; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  z-index: 300;
  background: rgba(28, 24, 21, 0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 40px;
  animation: fade 0.35s var(--ease);
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox[hidden] { display: none; }
.lightbox-stage {
  width: min(80vw, 620px);
  aspect-ratio: 3 / 4;
  max-height: 74vh;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
}
.lightbox-caption {
  font-family: var(--serif);
  font-style: italic;
  color: var(--cream);
  margin: 0;
}
.lightbox-close {
  position: absolute;
  top: 24px; right: 30px;
  background: none; border: none;
  color: var(--cream);
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .maison-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .collection-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .maison-portrait { max-width: 360px; margin: 0 auto; }
}

@media (max-width: 760px) {
  .burger { display: flex; }
  .nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 26px;
    padding: 60px 40px;
    background: var(--ivory);
    box-shadow: -20px 0 50px -30px rgba(0,0,0,0.5);
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
    z-index: 160;
  }
  .nav.open { transform: none; }
  .nav-link { font-size: 1rem; }
  .burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  body.nav-locked { overflow: hidden; }
  .section { padding: 90px 24px; }
}

@media (max-width: 500px) {
  .collection-grid { grid-template-columns: 1fr; }
  .slot-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
