/* La Maison de la Tour — shared stylesheet */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600&display=swap");

:root {
  /* Palette — blanc, brun foncé & sauge */
  --bg: #ffffff;
  --bg-soft: #f4f5ef;
  --bg-deep: #535F3B;
  --surface: #fbfaf6;
  --ink: #535F3B;
  --ink-2: #6e7556;
  --muted: #939a85;
  --rule: #e6e4dc;
  --rule-soft: #efeee7;
  --accent: #535F3B;
  --accent-2: #6e7556;
  --sand: #B3BAA3;

  --font-display: "Poppins", system-ui, sans-serif;
  --font-body: "Poppins", system-ui, sans-serif;
  --font-label: "Poppins", system-ui, sans-serif;

  --container: 1320px;
  --gutter: clamp(22px, 4.5vw, 72px);

  /* density */
  --density: 1;
}

/* —— Universal: no italics, ever —— */
em, i, cite, .italic { font-style: normal; }
.display, .display em, .lead, .quote, .eyebrow, .body-text strong, .feature-list li,
.testimonial-author cite, blockquote, address { font-style: normal; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { background: var(--bg); color: var(--ink); }
body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--bg); }

/* —— typography —— */
.eyebrow {
  font-family: var(--font-label);
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 1px;
  background: currentColor;
}
.eyebrow.center { justify-content: center; }

.display {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-wrap: balance;
}
.display em {
  font-style: normal;
  font-weight: 300;
  color: var(--ink);
}
.h-xxl { font-size: clamp(64px, 11vw, 184px); }
.h-xl  { font-size: clamp(54px, 8vw, 128px); }
.h-lg  { font-size: clamp(40px, 5.5vw, 80px); }
.h-md  { font-size: clamp(30px, 3.6vw, 52px); }
.h-sm  { font-size: clamp(22px, 2.2vw, 32px); }

.lead {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: normal;
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.45;
  color: var(--ink-2);
  text-wrap: pretty;
}

.body-text { color: var(--ink-2); max-width: 58ch; }
.body-text p + p { margin-top: 1em; }
.body-text strong { color: var(--ink); font-weight: 500; }

.quote {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 300;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--ink);
}

/* —— buttons & links —— */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  transition: gap .25s, color .25s, border-color .25s;
}
.link-arrow:hover { gap: 18px; color: var(--accent); }
.link-arrow .arr { width: 18px; height: 1px; background: currentColor; position: relative; }
.link-arrow .arr::after {
  content: "";
  position: absolute; right: 0; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 56px;
  padding: 0 36px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--ink);
  border: 1px solid var(--ink);
  transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); }
.btn.ghost.on-dark { color: var(--bg); border-color: rgba(255,255,255,0.5); }
.btn.ghost.on-dark:hover { background: var(--bg); color: var(--ink); border-color: var(--bg); }

/* —— layout —— */
section { position: relative; }
.section { padding: clamp(80px, calc(14vw * var(--density)), 200px) var(--gutter); }
.section-sm { padding: clamp(60px, calc(8vw * var(--density)), 120px) var(--gutter); }
.container { max-width: var(--container); margin: 0 auto; }
.container-wide { max-width: 1600px; margin: 0 auto; }

.hairline { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* —— nav —— */
.nav {
  position: fixed; inset: 0 0 auto 0;
  z-index: 80;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  color: var(--bg);
  transition: background .35s, color .35s, padding .35s, box-shadow .35s;
}
.nav.scrolled, .nav.solid {
  background: var(--bg);
  color: var(--ink);
  padding-top: 14px; padding-bottom: 14px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.nav-logo { display: flex; align-items: center; gap: 16px; }
.nav-logo img {
  width: 44px; height: 44px;
  transition: filter .35s;
}
.nav.invert .nav-logo img { filter: brightness(0) invert(1); }
.nav.scrolled .nav-logo img, .nav.solid .nav-logo img { filter: none; }
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1;
}
.nav-logo-text small {
  display: block;
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 7px;
  font-weight: 400;
}
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 400;
  opacity: 0.92;
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s;
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-right { display: flex; gap: 22px; align-items: center; }
.nav-lang {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-lang .flag {
  display: inline-flex;
  width: 30px;
  height: 20px;
  border-radius: 3px;
  overflow: hidden;
  opacity: 0.4;
  filter: grayscale(0.35);
  transition: opacity .25s, transform .25s, box-shadow .25s, filter .25s;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.12);
}
.nav-lang .flag .flag-svg { width: 100%; height: 100%; display: block; object-fit: cover; }
.nav-lang .flag:hover { opacity: 0.85; transform: translateY(-1px); }
.nav-lang .flag.on {
  opacity: 1;
  filter: none;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.18), 0 2px 6px rgba(0,0,0,0.18);
}
.nav.invert .nav-lang .flag { box-shadow: 0 0 0 1px rgba(255,255,255,0.45); }
.nav.invert .nav-lang .flag.on { box-shadow: 0 0 0 1px rgba(255,255,255,0.9), 0 2px 8px rgba(0,0,0,0.3); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 22px;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  transition: background .25s, color .25s;
}
.nav-cta:hover { background: var(--bg); color: var(--ink); }
.nav.scrolled .nav-cta:hover, .nav.solid .nav-cta:hover { background: var(--ink); color: var(--bg); }

@media (max-width: 980px) {
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .nav-cta { display: none; }
  .nav-logo-text small { display: none; }
}

/* —— footer —— */
.footer {
  background: var(--bg-deep);
  color: #cdbfa9;
  padding: 100px var(--gutter) 48px;
}
.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 80px;
  border-bottom: 1px solid rgba(212, 184, 150, 0.18);
}
.footer h4 {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 20px;
}
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer a { opacity: 0.78; transition: opacity .2s, color .2s; font-size: 14px; }
.footer a:hover { opacity: 1; color: #fff; }
.footer-brand {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 300;
  color: #fff;
  line-height: 1;
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 16px;
}
.footer-brand img { width: 52px; height: 52px; filter: brightness(0) invert(1); opacity: 0.92; }
.footer-blurb { font-style: normal; opacity: 0.7; max-width: 36ch; margin-top: 16px; }
.footer-bottom {
  max-width: var(--container);
  margin: 32px auto 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: 12px;
  opacity: 0.55;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* —— image slot defaults —— */
image-slot {
  --is-bg: #f1ede0;
  --is-fg: #939a85;
  --is-border: #d8d4c4;
}

/* —— Tweaks panel positioning override —— */
.tweaks-panel { z-index: 100; }

/* —— misc utilities —— */
.center { text-align: center; }
.serif { font-family: var(--font-display); }
.italic { font-style: normal; }
.uppercase { text-transform: uppercase; letter-spacing: 0.22em; font-size: 11px; }
.muted { color: var(--muted); }
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  opacity: 0.04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
}

/* —— animations —— */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slowZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.12); }
}
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s ease, transform 1s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }
.reveal.d4 { transition-delay: .4s; }

/* —— editorial bits —— */
.numeral {
  font-family: var(--font-display);
  font-size: 14px;
  font-style: normal;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.label-tiny {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}
.divider-mark {
  display: flex; align-items: center; gap: 18px;
  color: var(--accent);
  font-family: var(--font-display); font-style: normal;
}
.divider-mark::before, .divider-mark::after {
  content: ""; flex: 1; height: 1px; background: var(--rule);
}
