/* The Pu'er — feuille de style principale
   Aucune dépendance externe. Aucune police Google.
   Tout est conçu pour charger vite, en Chine comme ailleurs. */

:root {
  --cream: #F6F1E7;
  --paper: #FDFAF3;
  --ink: #1F1B16;
  --ink-soft: #4A433A;
  --moss: #4F5E3F;
  --amber: #8C5A2C;
  --rule: #DDD5C2;

  /* Police chinoise : chaîne de fallback pour toutes les plateformes */
  --serif-zh: "Songti SC", "STSong", "SimSun", "Source Han Serif SC",
              "Noto Serif SC", "宋体", serif;
  /* Police latine : empâtée, élégante, présente partout */
  --serif-lat: "Iowan Old Style", "Palatino", "Palatino Linotype",
               "Book Antiqua", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--serif-lat);
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html[lang^="zh"] body { font-family: var(--serif-zh); }

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

/* ----- TOP BAR ----- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0;
  padding: 1.1rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(246, 241, 231, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10;
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.topbar .brand {
  font-family: var(--serif-zh);
  font-weight: 600;
  letter-spacing: 0.2em;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
}
.topbar-right { display: flex; align-items: center; gap: 2rem; }
.topbar nav { display: flex; gap: 1.6rem; }
.topbar nav a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color .25s;
  font-family: inherit;
}
html[lang^="zh"] .topbar nav a { font-family: var(--serif-zh); }
.topbar nav a:hover { color: var(--amber); }
.lang-switch {
  display: flex; gap: 0.6rem;
  font-family: var(--serif-lat);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.lang-switch a {
  color: var(--ink-soft); opacity: 0.5;
  padding: 0.2rem 0.3rem;
  text-decoration: none;
  transition: opacity .25s, color .25s;
}
.lang-switch a:hover { opacity: 0.85; }
.lang-switch a.active { opacity: 1; color: var(--amber); border-bottom: 1px solid var(--amber); }

/* ----- HERO ----- */
.hero {
  height: 100vh; min-height: 620px;
  background-image: image-set(url('img/hero.webp') type('image/webp'), url('img/hero.jpg') type('image/jpeg'));
  background-image: -webkit-image-set(url('img/hero.webp') type('image/webp'), url('img/hero.jpg') type('image/jpeg'));
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #FDFAF3;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 0 2rem; }
.hero h1 {
  font-family: var(--serif-zh);
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  font-weight: 400;
  letter-spacing: 0.28em;
  margin-bottom: 1.5rem;
}
html[lang="fr"] .hero h1,
html[lang="en"] .hero h1 {
  font-family: var(--serif-lat);
  letter-spacing: 0.05em;
  font-style: italic;
  font-weight: 400;
}
.hero .motto {
  font-family: var(--serif-zh);
  font-size: clamp(0.95rem, 1.8vw, 1.25rem);
  letter-spacing: 0.4em;
  opacity: 0.92;
  font-weight: 300;
}

/* ----- SECTIONS ----- */
section.content {
  padding: 7rem 2rem;
  max-width: 720px;
  margin: 0 auto;
}
section.content h2 {
  font-family: var(--serif-zh);
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  margin-bottom: 0.4rem;
  text-align: center;
}
html[lang="fr"] section.content h2,
html[lang="en"] section.content h2 {
  font-family: var(--serif-lat);
  letter-spacing: 0.08em;
  font-size: 2.4rem;
  font-style: italic;
  font-weight: 400;
}
section.content .h2-sub {
  text-align: center;
  color: var(--ink-soft);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 3rem;
  font-family: var(--serif-lat);
  font-style: italic;
  opacity: 0.7;
}
section.content p {
  font-size: 1.1rem;
  line-height: 2;
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
  text-align: justify;
  hyphens: auto;
}
html[lang^="zh"] section.content p {
  font-family: var(--serif-zh);
  font-size: 1.12rem;
}

/* ----- PHOTO BLOCKS ----- */
.photo-wide img {
  width: 100%;
  max-height: 75vh;
  object-fit: cover;
}
.photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 0 1rem;
}
.photo-pair img { width: 100%; height: 480px; object-fit: cover; }

/* ----- PULL QUOTE ----- */
.pull-quote {
  text-align: center;
  padding: 7rem 2rem;
  max-width: 820px;
  margin: 0 auto;
}
.pull-quote p {
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  line-height: 1.85;
  letter-spacing: 0.04em;
  color: var(--ink);
  font-weight: 300;
  font-style: italic;
}
html[lang^="zh"] .pull-quote p {
  font-family: var(--serif-zh);
  letter-spacing: 0.1em;
  font-style: normal;
}
.pull-quote .author {
  margin-top: 2rem;
  font-family: var(--serif-lat);
  font-style: italic;
  color: var(--amber);
  font-size: 0.95rem;
  letter-spacing: 0.15em;
}

/* ----- METHOD ----- */
.method { background: var(--paper); padding: 7rem 2rem; }
.method-inner { max-width: 1100px; margin: 0 auto; }
.method h2 {
  font-family: var(--serif-zh);
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-align: center;
  margin-bottom: 0.4rem;
}
html[lang="fr"] .method h2,
html[lang="en"] .method h2 {
  font-family: var(--serif-lat);
  letter-spacing: 0.08em;
  font-size: 2.4rem;
  font-style: italic;
}
.method .h2-sub {
  text-align: center;
  color: var(--ink-soft);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 2rem;
  font-family: var(--serif-lat);
  font-style: italic;
  opacity: 0.7;
}
.method-intro {
  max-width: 640px;
  margin: 0 auto 4.5rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.9;
}
html[lang^="zh"] .method-intro { font-family: var(--serif-zh); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.5rem 2rem;
}
.step { text-align: center; }
.step img { width: 100%; aspect-ratio: 4/3; object-fit: cover; margin-bottom: 1.3rem; }
.step .num {
  font-family: var(--serif-lat);
  font-style: italic;
  color: var(--amber);
  font-size: 1rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.15em;
}
.step p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--ink-soft);
  padding: 0 0.4rem;
  text-align: left;
}
html[lang^="zh"] .step p {
  font-family: var(--serif-zh);
  font-size: 0.98rem;
  text-align: center;
}

/* ----- STORAGE ----- */
.storage { padding: 7rem 2rem; max-width: 720px; margin: 0 auto; text-align: center; }
.storage h2 {
  font-family: var(--serif-zh);
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  margin-bottom: 0.4rem;
}
html[lang="fr"] .storage h2,
html[lang="en"] .storage h2 {
  font-family: var(--serif-lat);
  letter-spacing: 0.08em;
  font-size: 2.4rem;
  font-style: italic;
}
.storage .h2-sub {
  color: var(--ink-soft);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 3rem;
  font-family: var(--serif-lat);
  font-style: italic;
  opacity: 0.7;
}
.storage p {
  font-size: 1.1rem;
  line-height: 1.95;
  color: var(--ink-soft);
}
html[lang^="zh"] .storage p {
  font-family: var(--serif-zh);
  font-size: 1.12rem;
}

/* ----- GALLERY ----- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 4rem 1rem;
}
.gallery img { width: 100%; height: 520px; object-fit: cover; }

/* ----- FOOTER ----- */
footer {
  padding: 6rem 2rem 4rem;
  text-align: center;
  background: var(--ink);
  color: var(--cream);
}
footer .logo-mark {
  font-family: var(--serif-zh);
  font-size: 2rem;
  letter-spacing: 0.3em;
  margin-bottom: 0.6rem;
}
footer .motto-foot {
  font-family: var(--serif-zh);
  letter-spacing: 0.3em;
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 3rem;
}
footer .langs {
  display: flex; justify-content: center; gap: 2rem;
  margin-bottom: 2rem;
}
footer .langs a {
  color: var(--cream);
  text-decoration: none;
  font-family: var(--serif-lat);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 0.78rem;
  opacity: 0.55;
  transition: opacity .3s;
}
footer .langs a:hover,
footer .langs a.active { opacity: 1; }
footer .copy {
  font-family: var(--serif-lat);
  font-size: 0.72rem;
  opacity: 0.35;
  letter-spacing: 0.15em;
}

/* ----- MOBILE ----- */
@media (max-width: 780px) {
  .photo-pair, .gallery { grid-template-columns: 1fr; }
  .photo-pair img, .gallery img { height: 360px; }
  .steps { grid-template-columns: 1fr; gap: 2.5rem; }
  section.content, .method, .pull-quote, .storage { padding: 5rem 1.5rem; }
  .topbar { padding: 0.9rem 1rem; flex-wrap: wrap; gap: 0.5rem; }
  .topbar-right { gap: 1rem; width: 100%; justify-content: space-between; }
  .topbar nav { gap: 1rem; font-size: 0.82rem; }
  .lang-switch { font-size: 0.7rem; }
  .gallery { padding: 2rem 0.5rem; gap: 0.5rem; }
}
