/* Zentheia — site officiel. Verre & Lumière : nuit, or, bleu. */
@font-face { font-family: 'Cinzel'; src: url(fonts/cinzel-latin.woff2) format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url(fonts/cormorant-italic-latin.woff2) format('woff2'); font-style: italic; font-weight: 500; font-display: swap; }

:root {
  --night: #070D22;
  --night-2: #0E1838;
  --ink: #EEF2FF;
  --ink-soft: #B9C4E2;
  --gold: #F3CF83;
  --gold-deep: #D7A44E;
  --gold-line: rgba(240, 206, 136, 0.42);
  --blue: #8FA8EA;
  --glass: linear-gradient(160deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.025));
  --radius: 22px;
  --gutter: 16px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; background: var(--night); color: var(--ink);
  font: 16px/1.6 ui-rounded, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #FFE9B8; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

#sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.page { position: relative; z-index: 1; }
.wrap { width: min(1120px, 100% - 2 * var(--gutter)); margin: 0 auto; }

/* ---- top bar ---- */
.top { position: absolute; z-index: 5; top: 0; left: 0; right: 0; padding: calc(env(safe-area-inset-top, 0px) + 14px) 0 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: 'Cinzel', serif; letter-spacing: 0.16em; font-size: 15px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 18px rgba(255, 200, 110, 0.35); }
.top nav { display: flex; gap: 18px; font-size: 14px; }
.top nav a { color: var(--ink-soft); text-decoration: none; }
.top nav a:hover { color: var(--gold); }

/* ---- hero ---- */
.hero { position: relative; min-height: min(100svh, 980px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-art { position: absolute; inset: -4% 0 0; z-index: -2; will-change: transform; }
.hero-art img { width: 100%; height: 108%; object-fit: cover; object-position: 50% 22%; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7, 13, 34, 0.55) 0, rgba(7, 13, 34, 0) 22%, rgba(7, 13, 34, 0) 45%, rgba(7, 13, 34, 0.86) 74%, var(--night) 100%); }
.hero-in { position: relative; padding: 0 0 calc(56px + env(safe-area-inset-bottom, 0px)); text-align: center; width: 100%; }
.hero-in::before { content: ''; position: absolute; z-index: -1; left: 50%; bottom: 0; width: min(900px, 120%); height: 78%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(7, 13, 34, 0.74), rgba(7, 13, 34, 0)); pointer-events: none; }
.hero-logo { width: min(560px, 88vw); margin: 0 auto; filter: drop-shadow(0 0 24px rgba(255, 196, 100, 0.5)); }
.hero h1 { margin: 6px auto 0; max-width: 34ch; font: italic 500 clamp(21px, 3.2vw, 30px)/1.35 'Cormorant', Georgia, serif; color: #F6E3B4; }
.hero h1 b { display: block; font: 600 clamp(12px, 1.6vw, 14px)/1.6 'Cinzel', serif; letter-spacing: 0.22em; color: var(--gold); text-transform: uppercase; margin-bottom: 8px; }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 26px 0 0; }
.store { display: inline-flex; align-items: center; gap: 10px; min-width: 214px; padding: 11px 18px; border-radius: 14px; text-decoration: none;
  color: var(--ink); background: rgba(7, 13, 34, 0.55); border: 1px solid var(--gold-line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.store i { font-style: normal; font-size: 22px; line-height: 1; color: var(--gold); }
.store span { display: grid; text-align: left; line-height: 1.2; }
.store small { font-size: 11px; color: var(--ink-soft); letter-spacing: 0.04em; }
.store b { font-size: 16px; font-weight: 650; }
.store[aria-disabled='true'] { cursor: default; opacity: 0.82; }
.store:not([aria-disabled='true']):hover { border-color: var(--gold); box-shadow: 0 0 24px rgba(255, 200, 110, 0.25); }
.scroll-hint { display: block; margin: 26px auto 0; width: 22px; height: 34px; border: 1.5px solid var(--gold-line); border-radius: 12px; position: relative; }
.scroll-hint::after { content: ''; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: hint 2.2s ease-in-out infinite; }
@keyframes hint { 0%, 100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(10px); opacity: 0; } }

/* ---- sections ---- */
section { padding: 64px 0; }
.eyebrow { margin: 0 0 8px; font: 600 12px/1.4 'Cinzel', serif; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); text-align: center; }
h2 { margin: 0 0 12px; font: 600 clamp(26px, 4vw, 40px)/1.15 'Cinzel', serif; letter-spacing: 0.04em; text-align: center;
  background: linear-gradient(180deg, #FFF1CC, #E3B25C); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 60ch; margin: 0 auto 34px; text-align: center; color: var(--ink-soft); }

.story { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center; padding: 26px; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--gold-line); box-shadow: 0 0 60px rgba(255, 200, 110, 0.08); }
.story img { width: 220px; border-radius: 50%; border: 1px solid var(--gold-line); background: radial-gradient(circle at 50% 40%, #233a7a, #070D22 70%); box-shadow: 0 0 40px rgba(120, 160, 255, 0.25); }
.story blockquote { margin: 0; font: italic 500 clamp(19px, 2.4vw, 23px)/1.5 'Cormorant', Georgia, serif; color: #F6E3B4; }
.story cite { display: block; margin-top: 12px; font: 600 12px 'Cinzel', serif; letter-spacing: 0.2em; color: var(--gold); font-style: normal; }

.worlds { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.world { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--night-2); border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease; }
.world:hover { transform: translateY(-4px); border-color: var(--gold-line); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 30px rgba(255, 200, 110, 0.12); }
.world-art { position: relative; aspect-ratio: 444 / 396; overflow: hidden; }
.world-art > img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.world:hover .world-art > img { transform: scale(1.05); }
.world-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 24, 56, 0) 45%, rgba(14, 24, 56, 0.94) 92%, #0E1838); }
.creature { position: absolute; z-index: 1; right: -6%; bottom: -4%; width: 62%; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.6)); transition: transform 0.6s ease; }
.world:hover .creature { transform: translateY(-4px) scale(1.03); }
.world figcaption { position: relative; z-index: 2; padding: 0 16px 16px; margin-top: -54px; }
.num { font: 600 11px 'Cinzel', serif; letter-spacing: 0.2em; color: var(--gold); }
.world h3 { margin: 2px 0 2px; font: 600 19px/1.25 'Cinzel', serif; letter-spacing: 0.02em; }
.world .who { margin: 0 0 6px; font-size: 13px; color: var(--blue); }
.world p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.world.secret .world-art > img { filter: saturate(0.9); }
.world.secret h3 { letter-spacing: 0.3em; color: #CDB98A; }
.world.secret::before { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
  background: radial-gradient(120% 60% at 50% 0%, rgba(255, 210, 140, 0.10), transparent 60%); }
.secret-note { margin: 22px auto 0; max-width: 56ch; text-align: center; font: italic 500 19px/1.5 'Cormorant', Georgia, serif; color: #DCC896; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.feature { padding: 22px; border-radius: var(--radius); background: var(--glass); border: 1px solid rgba(255, 255, 255, 0.1); }
.feature i { font-style: normal; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 12px;
  color: var(--gold); border: 1px solid var(--gold-line); background: rgba(240, 206, 136, 0.06); font-size: 20px; }
.feature h3 { margin: 0 0 6px; font: 600 17px 'Cinzel', serif; }
.feature p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }

.cta { text-align: center; }

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

/* ---- footer ---- */
footer { position: relative; z-index: 1; padding: 34px 0 calc(34px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(240, 206, 136, 0.18);
  background: linear-gradient(180deg, rgba(7, 13, 34, 0), rgba(4, 7, 18, 0.9)); font-size: 14px; color: var(--ink-soft); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer nav a { color: var(--ink-soft); text-decoration: none; }
footer nav a:hover { color: var(--gold); }

/* ---- text pages (legal, support) ---- */
.doc-head { padding: calc(env(safe-area-inset-top, 0px) + 96px) 0 18px; text-align: center; }
.doc-head h1 { margin: 0; font: 600 clamp(28px, 5vw, 42px)/1.15 'Cinzel', serif;
  background: linear-gradient(180deg, #FFF1CC, #E3B25C); -webkit-background-clip: text; background-clip: text; color: transparent; }
.doc-head p { margin: 8px 0 0; color: var(--ink-soft); font-size: 14px; }
.doc { width: min(820px, 100% - 2 * var(--gutter)); margin: 0 auto 64px; padding: clamp(20px, 4vw, 40px); border-radius: var(--radius);
  background: rgba(10, 17, 40, 0.82); border: 1px solid rgba(240, 206, 136, 0.22); }
.doc h2 { text-align: left; font-size: clamp(20px, 3vw, 24px); margin: 34px 0 10px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { margin: 22px 0 6px; font: 600 16px 'Cinzel', serif; color: var(--gold); letter-spacing: 0.03em; }
.doc p, .doc li { color: #D6DDF0; }
.doc ul { padding-left: 20px; }
.doc li { margin: 4px 0; }
.doc .card-info { padding: 14px 18px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); }
.doc .card-info p { margin: 2px 0; }
.lang { display: flex; justify-content: center; gap: 10px; margin: 14px 0 0; }
.lang a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--gold-line); text-decoration: none; font-size: 13px; }
.faq details { border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 650; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 10px 0 2px; }
.mail-btn { display: inline-block; margin-top: 8px; padding: 12px 22px; border-radius: 14px; text-decoration: none; font-weight: 700; color: #2A1A05;
  background: linear-gradient(180deg, #F7DA94, #D7A44E); box-shadow: 0 0 24px rgba(255, 200, 110, 0.25); }
.mail-btn:hover { color: #2A1A05; filter: brightness(1.06); }

@media (max-width: 720px) {
  .top nav { display: none; }
  .story { grid-template-columns: 1fr; text-align: center; padding: 22px 18px; }
  .story img { width: 150px; margin: 0 auto; }
  section { padding: 48px 0; }
  .worlds { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
  footer .wrap { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint::after { animation: none; }
  .world, .world-art > img, .creature { transition: none; }
}
