:root {
  --ivory: #f3eee6;
  --paper: #ebe3d6;
  --ink: #15120f;
  --muted: #6e665c;
  --gold: #9a7745;
  --gold-soft: #c9a56a;
  --night: #0f0d0b;
  --night-2: #1a1714;
  --line: rgba(21, 18, 15, 0.14);
  --line-night: rgba(243, 238, 230, 0.16);
  --serif: "Cormorant Garamond", "Noto Serif JP", Georgia, serif;
  --sans: "Manrope", "Noto Sans JP", system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 88px);
}
:lang(ja) { --serif: "Noto Serif JP", "Cormorant Garamond", serif; --sans: "Noto Sans JP", "Manrope", sans-serif; }

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { background: var(--ivory); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--gold-soft); color: var(--ink); }
:focus-visible { outline: 1.5px solid var(--gold); outline-offset: 4px; }

/* ---------- Navigation ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter); transition: background .4s, color .4s, padding .4s; }
.nav.solid { background: rgba(243, 238, 230, .92); backdrop-filter: blur(14px); padding-block: 12px; border-bottom: 1px solid var(--line); }
.nav.on-dark:not(.solid) { color: var(--ivory); }
.brand { font-family: var(--serif); font-size: 22px; letter-spacing: .32em; text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.brand small { display: block; font-family: var(--sans); font-size: 9px; letter-spacing: .4em; opacity: .7; margin-top: -2px; }
.menu { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 34px); list-style: none; padding: 0; }
.menu a { white-space: nowrap; text-decoration: none; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; position: relative; padding-block: 6px; }
.menu a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: currentColor; transition: right .35s; }
.menu a:hover::after, .menu a[aria-current="page"]::after { right: 0; }
.nav-right { display: flex; align-items: center; gap: 18px; }
.langs { display: flex; gap: 2px; white-space: nowrap; }
.langs button { font: 600 11px/1 var(--sans); letter-spacing: .12em; background: none; border: 0; color: inherit; padding: 8px 7px; cursor: pointer; opacity: .55; }
.langs button[aria-pressed="true"] { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.burger { display: none; flex: 0 0 40px; background: none; border: 0; color: inherit; width: 40px; height: 40px; cursor: pointer; }
.burger span { display: block; height: 1px; background: currentColor; margin: 7px 8px; }

/* ---------- Boutons ---------- */
.btn { white-space: nowrap; display: inline-flex; align-items: center; gap: 12px; padding: 15px 30px; border: 1px solid currentColor; text-decoration: none;
  font: 600 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; background: transparent; color: inherit; cursor: pointer; transition: background .3s, color .3s; }
.btn:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.btn.solid { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.btn.solid:hover { background: var(--gold); border-color: var(--gold); }
.dark .btn:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }

/* ---------- Typo ---------- */
.eyebrow { font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin-bottom: 22px; }
.dark .eyebrow { color: var(--gold-soft); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.04; letter-spacing: -.01em; }
h1 { font-size: clamp(48px, 8.4vw, 132px); }
h2 { font-size: clamp(36px, 5vw, 72px); }
h3 { font-size: clamp(24px, 2.4vw, 34px); }
h1 em, h2 em, h3 em { font-style: italic; color: var(--gold); }
.dark h1 em, .dark h2 em { color: var(--gold-soft); }
.lead { font-size: clamp(17px, 1.5vw, 21px); color: var(--muted); max-width: 46ch; }
.dark .lead, .dark p { color: rgba(243, 238, 230, .72); }
:lang(ja) h1 { font-size: clamp(38px, 6vw, 92px); line-height: 1.25; }
:lang(ja) h2 { font-size: clamp(28px, 3.6vw, 52px); line-height: 1.3; }

/* ---------- Mise en page ---------- */
section { padding: clamp(80px, 13vh, 160px) var(--gutter); }
.dark { background: var(--night); color: var(--ivory); }
.paper { background: var(--paper); }
.wrap { max-width: 1320px; margin-inline: auto; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 110px); align-items: center; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Héros vidéo */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding-bottom: clamp(60px, 10vh, 120px); overflow: hidden; color: var(--ivory); }
.hero video, .hero .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,13,11,.35) 0%, rgba(15,13,11,.05) 40%, rgba(15,13,11,.72) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 980px; }
.hero .lead { color: rgba(243, 238, 230, .85); margin: 26px 0 38px; }
.hero .eyebrow { color: var(--gold-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.sound-toggle { position: absolute; right: var(--gutter); bottom: clamp(60px, 10vh, 120px); z-index: 3; }

/* En-tête de page */
.page-head { padding-top: clamp(150px, 24vh, 240px); }
.page-head .lead { margin-top: 30px; }

/* Piliers */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.pillar { padding: 44px 34px 10px 0; border-right: 1px solid var(--line); }
.pillar + .pillar { padding-left: 34px; }
.pillar:last-child { border-right: 0; }
.pillar .num { font-family: var(--serif); font-size: 64px; line-height: 1; color: var(--gold); }
.pillar h3 { margin: 18px 0 10px; }
.pillar p { color: var(--muted); }

/* Images */
.frame { position: relative; overflow: hidden; background: var(--night-2); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s cubic-bezier(.16,1,.3,1); }
.frame:hover img { transform: scale(1.04); }
.ratio-45 { aspect-ratio: 4 / 5; }
.ratio-169 { aspect-ratio: 16 / 9; }

blockquote { font-family: var(--serif); font-size: clamp(28px, 3.6vw, 52px); line-height: 1.2; max-width: 22ch; font-style: italic; }
blockquote + cite { display: block; margin-top: 28px; font-style: normal; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-soft); }

/* Frise chronologique */
.timeline { list-style: none; padding: 0; margin-top: 90px; }
.timeline li { display: grid; grid-template-columns: 220px 1fr; gap: 40px; padding: 46px 0; border-top: 1px solid var(--line); }
.timeline .year { font-family: var(--serif); font-size: clamp(48px, 5vw, 76px); line-height: .9; color: var(--gold); }
.timeline h3 { margin-bottom: 12px; }
.timeline p { color: var(--muted); max-width: 62ch; }

/* Étapes */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(32px, 6vw, 96px); margin-top: 80px; }
.steps li { padding: 40px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 70px 1fr; gap: 20px; }
.dark .steps li { border-color: var(--line-night); }
.steps .n { font-family: var(--serif); font-size: 34px; color: var(--gold); line-height: 1; }
.dark .steps .n { color: var(--gold-soft); }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--muted); }

.figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 70px; }
.figures div { border-top: 1px solid var(--line-night); padding-top: 24px; }
.figures strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 5vw, 80px); line-height: 1; color: var(--gold-soft); }
.figures span { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: rgba(243,238,230,.65); }

/* Formulaire */
.form { display: grid; gap: 22px; max-width: 640px; }
.form label { display: grid; gap: 8px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.form input, .form textarea { font: 400 17px/1.4 var(--sans); color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 10px 0; text-transform: none; letter-spacing: 0; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--gold); }
.form textarea { min-height: 120px; resize: vertical; }
.form .note { font-size: 12px; color: var(--muted); }
.form-ok { display: none; font-family: var(--serif); font-size: 26px; color: var(--gold); }
.form.sent .form-ok { display: block; }
.form.sent label, .form.sent button { display: none; }
.criteria { list-style: none; padding: 0; display: grid; gap: 16px; margin: 28px 0; }
.criteria li { padding-left: 28px; position: relative; }
.criteria li::before { content: ""; position: absolute; left: 0; top: .8em; width: 14px; height: 1px; background: var(--gold); }

/* ---------- Scan 3D ---------- */
.scan { position: relative; background: radial-gradient(ellipse at 50% 40%, #2a241e 0%, var(--night) 70%); color: var(--ivory); padding: 0; }
.scan-stage { position: relative; height: min(88svh, 820px); }
.scan-stage canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.scan-stage canvas:active { cursor: grabbing; }
.scan-ui { position: absolute; inset: auto var(--gutter) 28px; display: flex; justify-content: space-between; gap: 20px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: rgba(243,238,230,.6); pointer-events: none; }
.scan-title { position: absolute; top: clamp(90px, 14vh, 130px); left: var(--gutter); max-width: 420px; pointer-events: none; }
.hotspot { position: absolute; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 1px solid var(--gold-soft);
  background: rgba(201,165,106,.18); cursor: pointer; display: grid; place-items: center; opacity: 0; transition: opacity .6s, background .3s; }
.hotspot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-soft); }
.hotspot::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--gold-soft); animation: ping 2.4s infinite; }
.hotspot:hover, .hotspot[aria-expanded="true"] { background: rgba(201,165,106,.55); }
.scan.ready .hotspot { opacity: 1; }
@keyframes ping { from { transform: scale(1); opacity: .9; } to { transform: scale(2.2); opacity: 0; } }
.panel { position: absolute; left: var(--gutter); bottom: 70px; translate: 0 8px; width: min(400px, calc(100% - 2 * var(--gutter))); padding: 34px 34px 30px;
  background: rgba(15,13,11,.78); backdrop-filter: blur(18px); border: 1px solid var(--line-night); opacity: 0; pointer-events: none; transition: opacity .45s, translate .45s; }
.panel.open { opacity: 1; pointer-events: auto; translate: 0 0; }
.panel h3 { margin-bottom: 14px; }
.panel p { color: rgba(243,238,230,.78); }
.panel .close { position: absolute; top: 12px; right: 12px; background: none; border: 0; color: inherit; font-size: 22px; width: 36px; height: 36px; cursor: pointer; }
.specs { width: 100%; border-collapse: collapse; margin-top: 30px; }
.specs th, .specs td { text-align: left; padding: 16px 0; border-top: 1px solid var(--line); font-weight: 400; vertical-align: top; }
.specs th { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); width: 38%; }

/* Film */
.film video { width: 100%; aspect-ratio: 16 / 9; background: #000; }

/* Pied de page */
footer { background: var(--night); color: rgba(243,238,230,.7); padding: 80px var(--gutter) 40px; font-size: 14px; }
footer .brand { color: var(--ivory); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid var(--line-night); }
.foot-grid ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: var(--gold-soft); }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 28px; font-size: 12px; color: rgba(243,238,230,.45); }

/* Apparitions */
.reveal { opacity: 0; translate: 0 30px; transition: opacity 1s cubic-bezier(.16,1,.3,1), translate 1s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; translate: 0 0; }

/* ---------- Mobile ---------- */
/* menu replié dès que les 5 rubriques + langues + bouton ne tiennent plus sur une ligne */
@media (max-width: 1180px) {
  .burger { display: block; }
  .menu { position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 28px; background: var(--ivory); color: var(--ink);
    opacity: 0; pointer-events: none; transition: opacity .35s; }
  .menu a { font-size: 15px; }
  body.menu-open .menu { opacity: 1; pointer-events: auto; }
  body.menu-open .nav { color: var(--ink); }
}
@media (max-width: 920px) {
  .nav-right .btn { display: none; }
  .nav-right { gap: 6px; }
  .langs button { padding: 8px 5px; font-size: 10px; }
  .brand { font-size: 18px; }
  .split, .pillars, .steps, .foot-grid { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 34px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .timeline li { grid-template-columns: 1fr; gap: 14px; }
  .figures { grid-template-columns: repeat(2, 1fr); }
  .panel { inset: auto 16px 56px; width: auto; }
  .scan-title { top: 90px; }
  .sound-toggle { position: static; margin-top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; translate: none; transition: none; }
  .hotspot::after { animation: none; }
}
