:root {
  color-scheme: dark;
  --ground: #070503;
  --ink: #f5e9d2;
  --muted: #cfbfa6;
  --gold: #e1bb7e;
  --gold-lit: #f3d9a1;
  --chat-accent: #895b28;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, sans-serif;
  --shell: 1240px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground) url("grain.png"); color: var(--ink); font: 400 1rem/1.76 var(--sans); }
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(180deg, #010100e8, #02010050 12%, transparent 31%, transparent 63%, #02010085 87%, #010100f5),
    radial-gradient(ellipse at 51% 45%, transparent 35%, #0302012e 59%, #020100a8 83%, #010100f2);
}
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--gold-lit); outline-offset: 5px; }
::selection { color: #281b0d; background: #eec788; }
.shell { width: min(var(--shell), calc(100% - 112px)); margin-inline: auto; }
section[id] { scroll-margin-top: 85px; }
.skip { position: fixed; top: 1rem; left: 1rem; z-index: 20; padding: .55rem 1rem; border-radius: 999px; background: var(--gold); color: #211609; transform: translateY(-160%); }
.skip:focus { transform: none; }

.header {
  position: sticky;
  top: 0;
  z-index: 4;
  background: linear-gradient(180deg, #080604f7, #0b0805dc 70%, #0b0805a0);
  box-shadow: 0 15px 32px #04030269;
  backdrop-filter: blur(20px);
}
.header-inner { min-height: 73px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { display: inline-flex; gap: 11px; align-items: baseline; width: fit-content; color: var(--gold-lit); }
.brand > span { font: italic 500 2.85rem/.85 var(--serif); letter-spacing: -.075em; }
.brand > small { color: var(--gold); font-size: .73rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: clamp(20px, 3.2vw, 48px); }
.nav a, .footer a:not(.brand) { color: var(--muted); font-size: .89rem; font-weight: 700; transition: color .2s ease; }
.nav a:hover, .footer a:hover { color: var(--gold-lit); }
.header .button { justify-self: end; }

.button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 46px;
  justify-content: center;
  align-items: center;
  padding: .75rem 1.15rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: .91rem;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  transition: background-color .24s, color .24s, transform .24s, box-shadow .24s;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button-outline {
  color: var(--gold-lit);
  background: radial-gradient(ellipse at 46% 28%, #93653a42, #52331925 66%, #31201312);
  box-shadow: inset 0 0 16px #f4c5780c, 0 5px 24px #01010052;
}
.button-outline:hover { background-color: #91613230; box-shadow: 0 4px 27px #ae77372e; }
.button-solid {
  min-height: 56px;
  padding-inline: 1.45rem;
  color: #211609;
  background:
    radial-gradient(ellipse at 31% 9%, #fff1bd9e, transparent 77%),
    linear-gradient(122deg, #eac58b, #dcb271 63%, #c99756);
  box-shadow: inset 0 0 15px #f6d79d61, 0 5px 26px #b17a414f, 0 0 46px #c3893e29;
  font-size: .97rem;
}
.button-solid:hover { box-shadow: inset 0 0 15px #ffe2aa82, 0 6px 33px #b47e4463, 0 0 54px #cc8f4135; }
.button-solid::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(112deg, transparent 34%, #fff1be85 51%, transparent 64%);
  transform: translateX(-120%);
  pointer-events: none;
  animation: foil .95s 1.45s ease-out both;
}
.button-solid:hover::after { animation: foil-hover .75s ease-out both; }
@keyframes foil { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
@keyframes foil-hover { from { transform: translateX(-120%); } to { transform: translateX(120%); } }

.hero { position: relative; overflow: clip; background: radial-gradient(ellipse at 72% 45%, #643e202f, #24140817 41%, transparent 68%); }
.hero-stage {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(20px, 3.6vw, 58px);
  align-items: center;
  min-height: clamp(620px, calc(100svh - 74px), 790px);
  padding-block: clamp(32px, 3.8vw, 54px) 35px;
}
.hero-copy { position: relative; z-index: 1; min-width: 0; padding-block: 1.35rem 1.7rem; }
.eyebrow {
  margin-bottom: .95rem;
  color: var(--gold);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .145em;
  line-height: 1.55;
  text-transform: uppercase;
}
.hero-label { margin-bottom: 1.26rem; animation: enter .72s .035s cubic-bezier(.2,.72,.24,1) both; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; }
h1 { font-size: clamp(3.05rem, 6.3vw, 5.55rem); line-height: .83; letter-spacing: -.055em; }
.hero-line { display: block; overflow: clip; padding: .07em .07em .24em 0; margin-bottom: -.2em; }
.hero-line > span { display: block; animation: slide-type .88s .05s cubic-bezier(.2,.72,.24,1) both; }
.hero-line:nth-child(2) > span { animation-delay: .18s; }
h1 em, h2 em { color: var(--gold); font-weight: 500; }
@keyframes slide-type { from { transform: translateY(102%); opacity: .2; } to { transform: none; opacity: 1; } }
.hero-description { margin-top: 1.7rem; max-width: 26rem; color: var(--muted); font-size: clamp(1.02rem, 1.43vw, 1.14rem); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 17px; margin-top: 1.45rem; }
.hero-actions > span, .no-script { color: var(--muted); font-size: .86rem; }
.no-script { margin-top: .6rem; }
.hero-entry { animation: enter .78s .32s cubic-bezier(.2,.72,.24,1) both; }
.hero-actions.hero-entry { animation-delay: .43s; }
@keyframes enter { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.hero-art { position: relative; min-width: 0; }
.hero-image {
  position: relative;
  width: 110%;
  max-width: min(660px, calc(100% + 50px));
  margin: -4% -5% -4%;
  aspect-ratio: 1;
  perspective: 830px;
  animation: reveal-art 1.25s .07s cubic-bezier(.21,.76,.25,1) both;
}
.hero-image img, .legend-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.83) saturate(.92);
  mask-image:
    linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent),
    linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent);
  mask-composite: intersect;
}
.hero-image img { animation: image-drift 12s 1.1s ease-in-out infinite alternate; }
.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("gilded-cards.jpg") center / cover no-repeat;
  pointer-events: none;
  clip-path: inset(21.85% 34.05% 27.8% 33.85% round 1.65%);
  mask-image:
    linear-gradient(90deg, transparent 33.8%, #000 35.1%, #000 64.9%, transparent 66%),
    linear-gradient(180deg, transparent 21.8%, #000 23.2%, #000 70.7%, transparent 72.3%);
  mask-composite: intersect;
  transform-origin: 50% 51%;
  animation: float-card 8s ease-in-out infinite alternate;
}
@keyframes reveal-art { from { transform: translate(14px, 15px) scale(.93); opacity: .3; } to { transform: none; opacity: 1; } }
@keyframes image-drift { from { transform: translateY(0); } to { transform: translateY(-7px); } }
@keyframes float-card {
  from { transform: translate3d(0, -.55%, 56px) rotateX(-2deg) rotateY(1.7deg); }
  to { transform: translate3d(0, -2.35%, 130px) rotateX(5deg) rotateY(-2.2deg); }
}
.hero-caption {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .3rem .85rem;
  padding-block: .72rem;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .09em;
  animation: enter .75s .43s cubic-bezier(.2,.72,.24,1) both;
}
.hero-caption::before {
  content: "";
  order: 1;
  height: 2px;
  min-width: 12px;
  flex: 1;
  background: linear-gradient(90deg, transparent, #d6a86a46 35%, #d6a86a35 65%, transparent);
  filter: blur(.65px);
}
.hero-caption span:last-child { order: 2; }

.section { padding-block: clamp(61px, 7.1vw, 108px); }
h2 { font-size: clamp(3.35rem, 6.4vw, 6rem); line-height: .92; letter-spacing: -.056em; }
h2 + p { margin-top: 1.15rem; }
.section p:not(.eyebrow), .contact p, .footer p { color: var(--muted); }
.story { background: radial-gradient(ellipse at 48% 55%, #3c26194d, transparent 73%); }
.story-grid, .legend-grid, .faq-grid, .contact-content {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: clamp(34px, 8vw, 111px);
  align-items: start;
}
.story-grid { align-items: end; }
.story-grid > p { align-self: end; max-width: 31rem; font-size: 1.08rem; }
.family-story {
  display: grid;
  grid-template-columns: .76fr 1.24fr;
  align-items: start;
  gap: clamp(32px, 6vw, 88px);
  margin-top: clamp(52px, 7.5vw, 106px);
}
.family-story h3 { font-size: clamp(2.9rem, 5.2vw, 4.85rem); line-height: .96; letter-spacing: -.05em; }
.family-story h3 em { color: var(--gold); font-weight: 500; }
.family-copy { max-width: 37rem; }
.family-copy p + p { margin-top: .9rem; }

.legend { position: relative; overflow: clip; background: radial-gradient(ellipse at 27% 49%, #6f461d2e, #27160d22 36%, transparent 66%); }
.legend-grid { position: relative; align-items: center; grid-template-columns: .91fr 1.09fr; }
.legend-copy { max-width: 35rem; padding-block: 1rem; }
.legend-copy p + p { margin-top: .72rem; }
.legend-art { position: relative; perspective: 690px; aspect-ratio: 1; margin-block: -18px; }
.legend-art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url("lunar-lantern.jpg") center / cover no-repeat;
  mask-image: radial-gradient(ellipse 13.45% 26.1% at 50% 51.45%, #000 83%, transparent);
  transform-origin: 50% 51.45%;
  animation: float-lantern 7s ease-in-out infinite alternate;
}
@keyframes float-lantern {
  from { transform: translate3d(0, -.45%, 46px) rotateY(-2deg); }
  to { transform: translate3d(0, -2.55%, 92px) rotateX(3deg) rotateY(2.6deg); }
}

.topics { background: radial-gradient(ellipse at 46% 53%, #40281866, #25150d20 57%, transparent 76%); }
.topics-head { display: grid; grid-template-columns: 1.6fr .7fr; align-items: end; gap: 25px; margin-bottom: clamp(27px, 4vw, 47px); }
.topics-head > p { max-width: 17rem; margin-bottom: .2rem; }
.topic-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 28px); }
.topic-row {
  padding: clamp(20px, 2.9vw, 34px) clamp(8px, 1.4vw, 22px);
  background: radial-gradient(ellipse at 45% 47%, #64401f2b, transparent 73%);
}
.topic-row:first-child { padding-left: 0; }
.topic-row h3 { color: var(--gold); font-size: clamp(2.4rem, 4.1vw, 3.9rem); line-height: .99; letter-spacing: -.048em; }
.topic-row p { margin-top: .7rem; max-width: 18rem; }
.topics-cta { margin-top: 1.55rem; }

.faq { background: radial-gradient(ellipse at 72% 51%, #40291937, transparent 71%); }
.faq-grid { grid-template-columns: .82fr 1.18fr; }
.faq h2 { font-size: clamp(3.1rem, 5.85vw, 5.3rem); }
.faq-intro > p:not(.eyebrow) { max-width: 18rem; }
.faq .button { margin-top: 1.25rem; }
.faq-list details { position: relative; }
.faq-list details + details::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, #e2b77f36 22%, #e2b77f2a 74%, transparent);
  filter: blur(.65px);
  pointer-events: none;
}
.faq-list details[open] { background: radial-gradient(ellipse at 42% 42%, #77502725, transparent 74%); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 65px;
  padding-block: 14px;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.5;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--gold-lit); }
.faq-state { flex: 0 0 auto; color: var(--gold); font-size: .8rem; font-weight: 700; }
.faq-state::before { content: "Ouvrir"; }
details[open] .faq-state::before { content: "Fermer"; }
.faq-list details > p { padding: 0 39px 1.1rem 0; }
.faq-list summary:focus-visible { border-radius: 12px; outline-offset: -3px; }

.contact {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: radial-gradient(ellipse at 72% 75%, #86522943, #36221331 47%, transparent 74%);
}
.contact::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 18% 0 -21% 28%;
  background: radial-gradient(ellipse at 72% 71%, #a567292b, transparent 65%);
  filter: blur(30px);
  pointer-events: none;
}
.contact-content { padding-block: clamp(50px, 6.5vw, 95px); align-items: center; grid-template-columns: 1fr auto; }
.contact p { margin-top: .76rem; }
.footer { position: relative; z-index: 3; background: linear-gradient(180deg, transparent, #040302a6); }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; min-height: 92px; padding-block: 15px; }
.footer-inner > a:last-child { justify-self: end; margin-right: 45px; }
.footer .brand > span { font-size: 2.4rem; }
.footer p { font-size: .86rem; }

.chat-status {
  position: fixed;
  z-index: 5;
  inset: auto auto max(18px, env(safe-area-inset-bottom)) 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: min(calc(100% - 32px), 34rem);
  margin: 0;
  padding: .65rem 1rem;
  border-radius: 999px;
  color: #fff3dc;
  background: #68441e;
  text-align: center;
  font-size: .9rem;
}
.chat-status:empty { padding: 0; overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .cylinder-depth {
    opacity: var(--depth-opacity);
    transform: perspective(860px) translate3d(0, var(--depth-y), var(--depth-z)) rotateX(var(--depth-angle)) scale(var(--depth-scale));
  }
  .cylinder-depth:focus-within { transform: none; opacity: 1; }
}

@media (max-width: 1050px) {
  .shell { width: calc(100% - 72px); }
  .hero-stage { gap: clamp(18px, 3.5vw, 40px); }
  .hero-copy { padding-bottom: 1rem; }
  h1 { font-size: clamp(3.05rem, 6.1vw, 4.1rem); }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 40px); }
  .header-inner { grid-template-columns: 1fr auto; min-height: 62px; gap: 10px; }
  .brand > span { font-size: 2.45rem; }
  .nav { display: none; }
  .header .button { min-height: 44px; padding: .52rem .9rem; font-size: .86rem; }
  body::after {
    background:
      linear-gradient(180deg, #020100bd, transparent 23%, transparent 68%, #0201007a 91%, #010100e8),
      radial-gradient(ellipse at 51% 45%, transparent 39%, #03020123 66%, #02010085 88%, #010100e6);
  }
  .hero { background: radial-gradient(ellipse at 55% 74%, #683f232c, transparent 67%); }
  .hero-stage { grid-template-columns: 1fr; min-height: 0; padding-block: clamp(37px, 8vw, 54px) 24px; gap: 12px; }
  .hero-copy { padding-block: 0; }
  .hero-label { font-size: .75rem; letter-spacing: .105em; margin-bottom: 1.05rem; }
  h1 { font-size: clamp(3.22rem, 13vw, 6rem); line-height: .84; }
  .hero-description { margin-top: 1.25rem; max-width: 29rem; }
  .hero-actions { margin-top: 1.12rem; }
  .button-solid { min-height: 51px; padding-inline: 1.14rem; }
  .hero-image { width: 110%; max-width: 570px; margin: -5% 0 -6%; left: 50%; transform: translateX(-50%); animation-name: enter-mobile-art; }
  .hero-caption { padding-right: 35px; }
  .story-grid, .family-story, .legend-grid, .topics-head, .faq-grid, .contact-content { grid-template-columns: 1fr; gap: 22px; }
  .legend-art { order: 1; width: min(100%, 460px); margin: -12px auto -28px; }
  .legend-copy { padding: 0; }
  .topic-list { grid-template-columns: 1fr; }
  .topic-row, .topic-row:first-child { padding: 1rem 0 1.17rem; }
  .topic-row p { max-width: none; margin-top: .35rem; }
  .faq-list details > p { padding-right: 0; }
  .footer-inner { display: flex; flex-wrap: wrap; gap: 12px 20px; padding-block: 22px 70px; }
  .footer-inner > p { order: 2; width: 100%; }
  .footer-inner > a:last-child { margin-right: 0; }
}
@keyframes enter-mobile-art { from { transform: translate(-50%, 12px) scale(.94); opacity: .35; } to { transform: translateX(-50%); opacity: 1; } }
@media (max-width: 360px) {
  .shell { width: calc(100% - 32px); }
  .brand { gap: 7px; }
  .brand > small { font-size: .67rem; }
  h1 { font-size: clamp(2.8rem, 15vw, 3.36rem); }
  .hero-caption { padding-right: 12px; font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition-duration: .001ms !important; }
  .hero-image::after, .legend-art::after { display: none; }
}
