/* EPOLAS — www.epolas.com */
:root {
  --ink: #0b0d1a; --ink-2: #12152a; --ink-3: #1b1f3a; --line: rgba(255,255,255,.12);
  --text: #f1f2fb; --muted: #a9aecb; --gold: #f2cf7e; --gold-2: #ffde8a; --gold-ink: #3a2a06;
  --flux: #8fd8ff; --violet: #a99bff; --danger: #ff8e8e; --ok: #8ff0b5;
  --radius: 14px; --wrap: 1240px;
  --display: "Cormorant Garamond", "Cormorant", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--text); font: 16px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--flux); text-decoration: none; }
a:hover { text-decoration: underline; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Barre du haut : verre biseauté flottant, comme l'interface cristal du jeu ---------- */
.topbar { position: fixed; inset: 14px 0 auto; z-index: 50; padding: 0 clamp(12px, 3vw, 40px); pointer-events: none; }
.topbar-inner { pointer-events: auto; position: relative; isolation: isolate; max-width: 1360px; margin: 0 auto; height: 64px; display: flex; align-items: center; gap: clamp(16px, 2.5vw, 40px);
  padding: 0 10px 0 22px; }
/* Le verre est porté par un pseudo-élément : sur .topbar-inner, clip-path rognait le menu mobile et backdrop-filter en faisait le bloc conteneur. */
.topbar-inner::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(135deg, rgba(30,36,74,.72), rgba(12,14,32,.78)); backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(160,200,255,.22); box-shadow: 0 10px 40px rgba(4,6,20,.45), inset 0 1px 0 rgba(255,255,255,.12);
  clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px), 0 16px); }
.topbar-logo img { height: 40px; width: auto; }
.menu { display: flex; gap: 4px; align-items: center; margin: 0 auto; }
.menu a { position: relative; white-space: nowrap; color: #d9def5; font-size: 15px; font-weight: 500; letter-spacing: .02em; padding: 9px 16px; border-radius: 999px; transition: background .2s, color .2s; }
.menu a:hover { color: #fff; text-decoration: none; background: rgba(255,255,255,.07); }
.menu a[aria-current="page"] { color: #fff; background: rgba(143,216,255,.12); }
.menu a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 6px; height: 6px; background: var(--flux); transform: translateX(-50%) rotate(45deg); box-shadow: 0 0 8px var(--flux); }
.topbar-tools { display: flex; align-items: center; gap: 6px; }
.tool { display: inline-flex; align-items: center; gap: 8px; height: 42px; min-width: 42px; justify-content: center; padding: 0 10px; color: #d9def5; border-radius: 12px; font-size: 14px; }
.tool:hover, .tool.is-on { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.tool svg { width: 24px; height: 24px; flex: none; }
.topbar-cta { display: inline-flex; align-items: center; height: 44px; padding: 0 22px; margin-left: 6px; color: #0b1030; font-weight: 700; font-size: 15px; letter-spacing: .03em;
  background: linear-gradient(100deg, #bdf0ff, #8fd8ff 40%, #b9a8ff); clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%); transition: filter .2s; }
.topbar-cta:hover { text-decoration: none; filter: brightness(1.12); }
.menu-toggle { display: none; background: none; border: 0; width: 42px; height: 42px; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; }

/* ---------- Boutons, cartes, formulaires ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--ink-3); color: var(--text); font: 600 15px var(--sans); cursor: pointer; text-decoration: none; }
.button:hover { text-decoration: none; border-color: rgba(255,255,255,.35); }
.button-gold { background: linear-gradient(#ffd85e, #f0b437); color: var(--gold-ink); border-color: #ffd770; box-shadow: 0 6px 24px rgba(242,190,70,.25); }
.button-gold:hover { background: linear-gradient(#ffe383, #f5c454); }
.button-ghost { background: transparent; }
.button-flux { border: 0; border-radius: 0; padding: 14px 30px; color: #0b1030; background: linear-gradient(100deg, #c9f3ff, #8fd8ff 45%, #b3a3ff);
  clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%); box-shadow: none; }
.button-flux:hover { filter: brightness(1.1); }
.button-glass { border-radius: 0; padding: 13px 28px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(6px);
  clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%); }
.button-danger { background: #5b1d27; border-color: #9b3445; }
.button.small { padding: 7px 14px; font-size: 13px; }
.card { background: linear-gradient(180deg, rgba(31,36,70,.85), rgba(19,22,44,.92)); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); }
.card h2 { margin: 0 0 12px; font-family: var(--display); font-size: 26px; color: var(--gold); }
.form { display: grid; gap: 10px; }
.form label { font-size: 14px; color: var(--muted); display: grid; gap: 6px; }
input, select, textarea { width: 100%; font: inherit; color: var(--text); background: rgba(6,8,20,.7); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
input:focus { border-color: var(--flux); outline: none; box-shadow: 0 0 0 3px rgba(143,216,255,.15); }
.check { display: flex !important; grid-template-columns: none; gap: 10px; align-items: flex-start; color: var(--text) !important; }
.check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--gold); }
.honey { position: absolute; left: -9999px; }
.notice { padding: 12px 16px; border-radius: 10px; border: 1px solid var(--line); background: rgba(143,216,255,.08); margin: 0 0 16px; }
.notice-success { border-color: rgba(143,240,181,.4); background: rgba(143,240,181,.1); color: #d6ffe6; }
.notice-error { border-color: rgba(255,142,142,.45); background: rgba(255,142,142,.1); color: #ffe0e0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; border: 1px solid rgba(242,207,126,.45); color: var(--gold); font-size: 12px; letter-spacing: .04em; }
.tag-warn { border-color: rgba(255,142,142,.5); color: var(--danger); }
.link { color: var(--gold); font-weight: 600; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 500; }
.stars { color: var(--gold); letter-spacing: 2px; }

/* ---------- Mise en page ---------- */
.section { width: min(var(--wrap), 100% - 40px); margin: 0 auto; padding: clamp(56px, 8vw, 104px) 0; }
.section.narrow { width: min(820px, 100% - 40px); }
.section.center { text-align: center; }
.section-full { padding: clamp(56px, 8vw, 96px) 0; }
.page-top { padding-top: 140px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-head.inner { width: min(var(--wrap), 100% - 40px); margin: 0 auto 8px; }
.eyebrow { margin: 0 0 6px; color: var(--gold); text-transform: uppercase; letter-spacing: .22em; font-size: 13px; font-weight: 600; }
.title { margin: 0 0 16px; font-family: var(--display); font-weight: 600; font-size: clamp(36px, 5vw, 60px); line-height: 1.05; letter-spacing: .01em; }
.small-title { font-size: 34px; margin: 0; }
.lead { font-size: 18px; color: #d5d8ee; max-width: 760px; }

/* ---------- Héros : texte à gauche, sommaire vertical à droite ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; transform: scale(1.05); animation: drift 30s ease-in-out infinite alternate; }
@keyframes drift { to { transform: scale(1.1) translate(-1.5%, -1%); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,10,26,.92) 0%, rgba(8,10,26,.6) 34%, rgba(8,10,26,0) 62%), linear-gradient(transparent 70%, var(--ink)); }
.hero-content { position: relative; z-index: 1; width: min(600px, 100%); margin-left: clamp(20px, 7vw, 120px); padding: 120px 0 80px; display: grid; justify-items: start; gap: 18px; }
.hero-kicker { margin: 0; display: flex; align-items: center; gap: 10px; color: var(--flux); text-transform: uppercase; letter-spacing: .24em; font-size: 13px; font-weight: 600; }
.diamond { width: 9px; height: 9px; background: var(--flux); transform: rotate(45deg); box-shadow: 0 0 10px var(--flux); }
.hero-logo { width: min(500px, 82vw); height: auto; margin-left: -6px; filter: drop-shadow(0 6px 30px rgba(10,20,60,.6)); }
.hero-pitch { margin: 0; font-family: var(--display); font-size: clamp(24px, 2.6vw, 34px); line-height: 1.2; color: #f4f5ff; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-platforms { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 10px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); width: 100%; }
.hero-index { background: linear-gradient(90deg, transparent, rgba(8,10,26,.55)); padding: 10px 0 !important; position: absolute; right: clamp(16px, 3vw, 48px); top: 50%; transform: translateY(-50%); z-index: 1; list-style: none; margin: 0; padding: 0; display: grid; gap: 4px;
  border-right: 1px solid rgba(255,255,255,.22); }
.hero-index a { text-shadow: 0 1px 8px rgba(0,0,0,.8); display: flex; align-items: baseline; justify-content: flex-end; gap: 10px; padding: 8px 18px; color: rgba(255,255,255,.72); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.hero-index a:hover { color: #fff; text-decoration: none; }
.hero-index b { font-family: var(--display); font-size: 18px; color: var(--flux); font-weight: 600; }
.hero-caption { position: absolute; right: clamp(16px, 3vw, 48px); bottom: 22px; margin: 0; z-index: 1; font-size: 12px; color: rgba(255,255,255,.6); }
.stores { display: flex; flex-wrap: wrap; gap: 8px; }
.store { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff; font-size: 14px; font-weight: 600; }
.store:hover { background: rgba(255,255,255,.14); text-decoration: none; }
.store.is-soon { cursor: default; }
.store-icon { width: 20px; height: 20px; flex: none; background: center / contain no-repeat; }
.store-ios { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M16.4 12.6c0-2.6 2.1-3.8 2.2-3.9-1.2-1.8-3.1-2-3.7-2-1.6-.2-3.1.9-3.9.9-.8 0-2-.9-3.4-.9-1.7 0-3.3 1-4.2 2.6-1.8 3.1-.5 7.7 1.3 10.2.9 1.2 1.9 2.6 3.2 2.6 1.3-.1 1.8-.8 3.3-.8s2 .8 3.4.8c1.4 0 2.3-1.3 3.1-2.5 1-1.4 1.4-2.8 1.4-2.9-.1 0-2.7-1-2.7-4.1zM13.9 5c.7-.9 1.2-2 1.1-3.2-1 0-2.3.7-3 1.6-.7.8-1.3 2-1.1 3.1 1.1.1 2.3-.6 3-1.5z'/%3E%3C/svg%3E"); }
.store-android { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2334d399' d='M4 2.8v18.4c0 .3.3.5.6.3L15 12 4.6 2.5c-.3-.2-.6 0-.6.3z'/%3E%3Cpath fill='%2360a5fa' d='M15 12l3-2.8-11.5-6.6z'/%3E%3Cpath fill='%23f87171' d='M15 12l-8.5 9.4L18 14.8z'/%3E%3Cpath fill='%23fbbf24' d='M18 9.2L15 12l3 2.8 3.2-1.9c.6-.4.6-1.4 0-1.8z'/%3E%3C/svg%3E"); }
.store-steam { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.6'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Ccircle cx='15.5' cy='9' r='3'/%3E%3Ccircle cx='8.5' cy='15.5' r='2'/%3E%3Cpath d='M3 13l4 1.8M10.2 14.6l3-3.3'/%3E%3C/svg%3E"); }
.store-macos { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.6'%3E%3Crect x='3' y='4' width='18' height='12' rx='1.5'/%3E%3Cpath d='M8 20h8M12 16v4'/%3E%3C/svg%3E"); }
/* ---------- Préinscription ---------- */
.signup { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.milestones { list-style: none; padding: 0; margin: 24px 0 12px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; counter-reset: m; }
.milestones li { position: relative; padding: 14px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03); display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.milestones strong { font-family: var(--display); font-size: 22px; color: var(--text); }
.milestones li.is-done { border-color: rgba(242,207,126,.6); background: rgba(242,207,126,.08); }
.milestones li.is-done strong { color: var(--gold); }
.platforms { border: 0; padding: 0; margin: 4px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.platforms legend { color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.chip { display: inline-flex !important; }
.chip input { position: absolute; opacity: 0; width: 1px; }
.chip span { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); cursor: pointer; font-size: 14px; }
.chip input:checked + span { border-color: var(--gold); background: rgba(242,207,126,.14); color: var(--gold-2); }
.chip input:focus-visible + span { outline: 2px solid var(--gold); }

/* ---------- Actualités ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card { display: grid; gap: 10px; color: var(--text); background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; padding-bottom: 18px; transition: transform .2s, border-color .2s; }
.news-card:hover { text-decoration: none; transform: translateY(-4px); border-color: rgba(242,207,126,.45); }
.news-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.news-card strong, .news-card .news-summary, .news-card .news-meta { padding: 0 18px; }
.news-card strong { font-family: var(--display); font-size: 24px; line-height: 1.15; }
.news-summary { color: var(--muted); font-size: 15px; }
.news-meta { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: 13px; }
.news-follow { margin: -4px 0 28px; }
.rss-link { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }
.rss-link svg { width: 16px; height: 16px; flex: none; }
.rss-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.article p { font-size: 18px; color: #dfe2f4; }
.article-img { border-radius: var(--radius); margin: 18px 0 24px; width: 100%; }

/* ---------- Héros : rail vertical, portrait dans un cercle de runes, panneau de cristal ---------- */
.characters-home, .characters-full { position: relative; overflow: hidden; background: #0c0f24; }
.characters-full { padding: 0; }
.char-stage { --accent: var(--flux); position: relative; width: min(1440px, 100%); margin: 0 auto; display: grid;
  grid-template-columns: 120px minmax(0, 1fr) minmax(360px, 500px); gap: clamp(12px, 2vw, 32px); align-items: center;
  height: max(720px, 100vh); padding: 96px clamp(16px, 3vw, 40px) 32px; }
.characters-home .char-stage { height: max(700px, 88vh); padding-top: 24px; }
.char-stage::before { content: ""; position: absolute; inset: 0; pointer-events: none; transition: background .6s;
  background: radial-gradient(circle at 46% 52%, color-mix(in srgb, var(--accent) 34%, transparent) 0%, transparent 42%),
              linear-gradient(160deg, #141a3c 0%, #0c0f24 60%); }
.char-rail { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.char-thumb { position: relative; width: 84px; height: 84px; display: block; color: #fff; transition: transform .2s;
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); background: rgba(255,255,255,.18); padding: 2px; }
.char-thumb img { width: 100%; height: 100%; object-fit: cover; clip-path: inherit; filter: saturate(.7) brightness(.8); transition: filter .2s; }
.char-thumb span { position: absolute; left: 100%; top: 50%; transform: translate(10px, -50%); white-space: nowrap; font-size: 14px; opacity: 0; transition: opacity .2s; pointer-events: none; }
.char-thumb:hover { text-decoration: none; transform: scale(1.06); }
.char-thumb:hover img, .char-thumb.is-on img { filter: none; }
.char-thumb.is-on { background: linear-gradient(135deg, var(--accent), #fff); transform: scale(1.12); }
.char-thumb.is-soon { display: grid; place-items: center; font-family: var(--display); font-size: 30px; color: rgba(255,255,255,.4); background: rgba(255,255,255,.06); }
.char-thumb.is-soon span { position: static; opacity: 1; transform: none; font-size: 28px; }
.char-arrow { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); color: #fff; cursor: pointer; }
.char-arrow svg { width: 20px; height: 20px; }
.char-arrow:hover { border-color: var(--accent); color: var(--accent); }
.char-art { position: relative; z-index: 1; height: 100%; min-height: 0; display: flex; align-items: center; justify-content: center; }
.char-ring { position: absolute; width: min(620px, 90%); aspect-ratio: 1; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: inset 0 0 80px color-mix(in srgb, var(--accent) 22%, transparent); animation: spin 60s linear infinite; }
.char-ring::before, .char-ring::after { content: ""; position: absolute; border-radius: 50%; }
.char-ring::before { inset: 7%; border: 2px dashed color-mix(in srgb, var(--accent) 35%, transparent); }
.char-ring::after { inset: -4%; border: 1px solid rgba(255,255,255,.08); border-top-color: var(--accent); border-bottom-color: var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }
.char-art img { position: relative; z-index: 1; height: 100%; max-height: 900px; width: auto; object-fit: contain; filter: drop-shadow(0 24px 40px rgba(0,0,0,.5)); }
.char-art img.is-swapping { opacity: 0; transform: translateY(16px); }
.char-art img.is-in { animation: rise .5s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.char-panel { position: relative; z-index: 2; padding: 28px 30px; background: linear-gradient(160deg, rgba(34,40,84,.78), rgba(14,16,36,.86)); backdrop-filter: blur(12px);
  border: 1px solid rgba(160,200,255,.2); clip-path: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px);
  max-height: 100%; overflow: auto; }
.char-regions { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.char-regions span { padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); font-size: 12px; color: #cfd4ee; }
.char-regions .is-on { border-color: var(--accent); color: #fff; background: color-mix(in srgb, var(--accent) 18%, transparent); }
.char-regions .is-locked { opacity: .45; }
.char-index { margin: 0; color: var(--muted); font-size: 13px; letter-spacing: .14em; }
.char-index b { color: var(--accent); font-family: var(--display); font-size: 22px; }
.char-name { margin: 2px 0 16px; font-family: var(--display); font-weight: 700; font-size: clamp(48px, 5vw, 72px); line-height: 1; letter-spacing: .02em;
  background: linear-gradient(180deg, #fff 30%, color-mix(in srgb, var(--accent) 70%, #fff)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.char-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0 0 18px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1); }
.char-facts div { background: rgba(12,14,32,.85); padding: 10px 12px; }
.char-facts dt { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.char-facts dd { margin: 2px 0 0; font-weight: 600; font-size: 15px; }
.char-quote { margin: 0 0 16px; padding-left: 14px; border-left: 2px solid var(--accent); font-family: var(--display); font-style: italic; font-size: 24px; color: #fff; }
.char-text p { margin: 0 0 10px; color: #dfe2f4; font-size: 15px; }
.char-lead { font-weight: 600; color: #fff !important; }

/* ---------- Monde, fonctionnalités, galerie ---------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.feature { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 300px; display: flex; align-items: flex-end; }
.feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.feature:hover img { transform: scale(1.05); }
.feature div { position: relative; padding: 24px; background: linear-gradient(transparent, rgba(8,10,22,.92) 40%); width: 100%; }
.feature h3, .place h3 { margin: 0 0 6px; font-family: var(--display); font-size: 30px; }
.feature p { margin: 0; color: #d8dbef; }
.banner { position: relative; min-height: 78vh; display: flex; align-items: flex-end; padding: 0 clamp(20px, 6vw, 80px) 64px; }
.banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(8,10,22,.95)); }
.banner > div { position: relative; z-index: 1; max-width: 720px; }
.banner p { font-size: 18px; color: #e3e5f5; }
.places { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.place { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.place img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.place div { padding: 18px; }
.place p { margin: 0; color: var(--muted); }
.bosses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
.boss { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.boss img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.boss figcaption { position: absolute; inset: auto 0 0; padding: 16px; background: linear-gradient(transparent, rgba(8,10,22,.92)); display: grid; }
.boss strong { font-family: var(--display); font-size: 28px; }
.boss span { color: var(--gold); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery-home { grid-template-columns: repeat(3, 1fr); }
.gallery a { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.gallery img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.05); }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(4,5,12,.94); display: grid; place-items: center; padding: 40px 70px; }
.lightbox img { max-height: 84vh; width: auto; border-radius: 8px; box-shadow: 0 20px 80px rgba(0,0,0,.6); }
.lightbox p { margin: 14px 0 0; text-align: center; color: var(--muted); }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 48px; cursor: pointer; padding: 10px 18px; font-family: var(--display); }
.lightbox .lb-close { top: 10px; right: 14px; font-size: 40px; }
.lightbox .lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* ---------- Boutique ---------- */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; margin: 24px 0; }
.product { position: relative; display: grid; gap: 10px; align-content: start; justify-items: center; text-align: center; padding: 28px 20px 22px; border-radius: var(--radius);
  background: radial-gradient(ellipse at 50% 0%, rgba(143,216,255,.18), transparent 60%), var(--ink-2); border: 1px solid var(--line); }
.product strong { font-family: var(--display); font-size: 26px; line-height: 1.1; }
.product-gem { width: 84px; height: 84px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fff3c4'/%3E%3Cstop offset='.45' stop-color='%238fd8ff'/%3E%3Cstop offset='1' stop-color='%23a99bff'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M32 4l18 18-18 38L14 22z' fill='url(%23g)' stroke='%23fff' stroke-opacity='.6'/%3E%3Cpath d='M14 22h36M32 4v56M23 13l9 9 9-9' stroke='%23fff' stroke-opacity='.45' fill='none'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 0 18px rgba(143,216,255,.55)); }
.product-pass .product-gem, .product-season .product-gem, .product-character .product-gem { filter: drop-shadow(0 0 18px rgba(242,207,126,.6)) hue-rotate(160deg); }
.product-bonus { color: var(--gold); font-weight: 600; font-size: 14px; }
.product-desc { color: var(--muted); font-size: 14px; }
.product-price { font-size: 22px; font-weight: 700; }
.product .check { text-align: left; font-size: 12px; }
.ribbon { position: absolute; top: 12px; left: 12px; background: var(--gold); color: var(--gold-ink); font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.rate-card { margin-bottom: 18px; }
.rate-card h2 { font-size: 30px; }

/* ---------- Compte ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.2fr 1fr; }
.auth-art { position: relative; }
.auth-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-card { margin: 120px clamp(20px, 5vw, 64px) 60px; align-self: center; max-width: 520px; width: calc(100% - 40px); }
.auth-card .title { font-size: 44px; }
.account-head { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.account-head > div { flex: 1; min-width: 220px; }
.account-head form { margin-left: auto; }
.account-avatar { width: 96px; height: 96px; border-radius: 50%; border: 3px solid var(--gold); object-fit: cover; }
progress.bar { appearance: none; width: 100%; max-width: 360px; height: 8px; border: 0; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
progress.bar::-webkit-progress-bar { background: rgba(255,255,255,.1); }
progress.bar::-webkit-progress-value { background: linear-gradient(90deg, var(--flux), var(--violet)); }
progress.bar::-moz-progress-bar { background: linear-gradient(90deg, var(--flux), var(--violet)); }
.account-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 20px; }
.wallet { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.wallet li { display: flex; gap: 10px; align-items: center; }
.wallet strong { margin-left: auto; font-size: 18px; }
.gem { width: 22px; height: 22px; background: inherit; }
.owned { display: flex; flex-wrap: wrap; gap: 12px; }
.owned-char { display: grid; justify-items: center; gap: 4px; width: 92px; text-align: center; font-weight: 600; }
.owned-char img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; border: 2px solid var(--gold); }
.owned-char.r4 img { border-color: var(--violet); }
.owned-char small { color: var(--muted); font-weight: 400; font-size: 12px; }
.list { margin: 0 0 8px; padding-left: 18px; }
.danger-zone summary { cursor: pointer; color: var(--danger); font-weight: 600; }
.danger-zone { margin-top: 20px; }

/* ---------- Légal ---------- */
.legal-body h2 { font-family: var(--display); font-size: 28px; margin: 36px 0 10px; color: var(--gold); }
.legal-body p, .legal-body li { color: #dcdff0; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 24px; }
.legal-note { padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.03); font-size: 14px; }
.legal-toc { margin: 18px 0 8px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.02); }
.legal-toc summary, .legal-form summary { cursor: pointer; font-weight: 600; color: var(--gold); }
.legal-toc ol { margin: 10px 0 0; padding-left: 22px; columns: 2 260px; }
.legal-toc li { margin: 2px 0; }
.legal-body h2 { scroll-margin-top: 90px; }
.legal-form { margin: 12px 0; padding: 12px 18px; border-left: 3px solid var(--gold); background: rgba(255,255,255,.02); }
.legal-table-wrap { overflow-x: auto; margin: 12px 0 18px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.legal-table th, .legal-table td { padding: 9px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; color: #dcdff0; }
.legal-table th { background: rgba(255,255,255,.05); color: var(--gold); font-weight: 600; }
.a-completer { background: rgba(255, 196, 64, .22); color: #ffe2a0; padding: 0 4px; border-radius: 4px; }

/* ---------- Pied de page ---------- */
.footer { border-top: 1px solid var(--line); background: #070811; }
.footer-inner { width: min(var(--wrap), 100% - 40px); margin: 0 auto; padding: 48px 0 40px; display: grid; gap: 18px; justify-items: center; text-align: center; }
.footer-logo { width: 180px; height: auto; opacity: .9; }
.footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.footer nav a { color: #cdd1e8; font-size: 14px; }
.footer-legal a { color: var(--muted) !important; }
.footer p { margin: 0; max-width: 760px; font-size: 12px; color: #7d83a6; }

/* ---------- Petits écrans ---------- */
@media (max-width: 1100px) {
  .menu-toggle { display: block; }
  .menu { position: fixed; top: 86px; left: clamp(12px, 3vw, 40px); right: clamp(12px, 3vw, 40px); margin: 0; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px; background: rgba(12,14,32,.97); border: 1px solid rgba(160,200,255,.2); border-radius: 16px; display: none; }
  .menu.is-open { display: flex; }
  .menu a { padding: 14px 16px; border-radius: 10px; }
  .menu a[aria-current="page"]::after { left: auto; right: 16px; bottom: 50%; transform: translateY(50%) rotate(45deg); }
  .topbar-tools { margin-left: auto; }
  .tool-account span { display: none; }
  .hero-index { display: none; }
  .char-stage { grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto auto; height: auto; }
  .characters-home .char-stage { height: auto; }
  .char-art { height: 70vh; }
  .char-panel { grid-column: 1 / 3; max-height: none; overflow: visible; }
}
@media (max-width: 900px) {
  .signup, .auth-wrap { grid-template-columns: 1fr; }
  .auth-art { height: 220px; }
  .auth-card { margin: -60px auto 40px; }
  .news-grid, .places { grid-template-columns: 1fr 1fr; }
  .features, .account-grid { grid-template-columns: 1fr; }
  .bosses, .gallery { grid-template-columns: 1fr 1fr; }
  .milestones { grid-template-columns: 1fr 1fr; }
  .hero-shade { background: linear-gradient(rgba(8,10,26,.35), rgba(8,10,26,.65) 50%, var(--ink)); }
  .hero { align-items: flex-end; }
  .hero-content { margin: 0 auto; padding: 120px 20px 48px; width: 100%; }
  .hero-caption { display: none; }
}
@media (max-width: 640px) {
  .topbar { inset: 8px 0 auto; padding: 0 8px; }
  .topbar-inner { height: 56px; padding: 0 6px 0 14px; gap: 8px; }
  .topbar-logo img { height: 30px; }
  .topbar-cta { display: none; }
  .menu { top: 72px; left: 8px; right: 8px; }
  .news-grid, .places, .gallery, .gallery-home { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: start; }
  .page-top { padding-top: 104px; }
  .char-stage { grid-template-columns: 1fr; padding: 84px 12px 24px; }
  .characters-home .char-stage { padding-top: 12px; }
  .char-rail { flex-direction: row; justify-content: center; order: 2; }
  .char-thumb { width: 62px; height: 62px; }
  .char-thumb span, .char-arrow { display: none; }
  .char-art { order: 1; height: 58vh; }
  .char-panel { order: 3; grid-column: auto; }
  .hero-actions .button { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* ---------- Identité « cristal » des sections ---------- */
.section-head { border-bottom: 1px solid var(--line); padding-bottom: 16px; position: relative; }
.section-head::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 120px; height: 2px; background: linear-gradient(90deg, var(--flux), var(--violet)); }
.section-head .title { margin: 0; display: flex; align-items: center; gap: 14px; }
.section-head .title::before { content: ""; width: 12px; height: 12px; flex: none; transform: rotate(45deg); background: linear-gradient(135deg, var(--flux), var(--violet)); box-shadow: 0 0 12px rgba(143,216,255,.6); }
.eyebrow { color: var(--flux); }
.link { color: var(--flux); }
.news-card, .place, .feature, .gallery a, .boss { border-radius: 0; clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); }
.news-card:hover { border-color: rgba(143,216,255,.5); }
.card { border-radius: 0; clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px); }

/* EPOLAS en bref + FAQ (accueil) */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.about-facts { display: grid; gap: 10px; margin: 24px 0 0; }
.about-facts div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.about-facts dt { color: var(--flux); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 600; padding-top: 3px; }
.about-facts dd { margin: 0; }
.faq h3 { margin: 0 0 12px; font-family: var(--display); font-size: 26px; color: var(--gold); }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 0; color: #d5d8ee; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .about-facts div { grid-template-columns: 1fr; gap: 2px; } }

/* Sélecteur de langue */
.lang-switch { position: relative; }
.lang-switch summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 10px; color: #d9def5; border-radius: 12px; font-size: 13px; font-weight: 600; letter-spacing: .06em; cursor: pointer; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover, .lang-switch[open] summary { color: #fff; background: rgba(255,255,255,.08); }
.lang-switch svg { width: 20px; height: 20px; flex: none; }
.lang-switch ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 150px; margin: 0; padding: 6px; list-style: none; background: rgba(11,13,26,.97); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.45); }
.lang-switch a { display: block; padding: 8px 12px; border-radius: 8px; color: #d9def5; font-size: 14px; }
.lang-switch a:hover { background: rgba(255,255,255,.08); text-decoration: none; }
.lang-switch a[aria-current] { color: var(--gold); }
.footer-langs a[aria-current] { color: var(--gold) !important; }
.legal-translation-note { padding: 12px 16px; border: 1px solid var(--line); border-left: 3px solid var(--gold); color: var(--muted); font-size: 14px; }

/* Chinois : pas de capitales ni d'italique, espacement resserré */
.lang-zh .eyebrow, .lang-zh .hero-kicker, .lang-zh .hero-index a, .lang-zh .boss span, .lang-zh .char-facts dt, .lang-zh .about-facts dt { letter-spacing: .08em; }
.lang-zh .char-quote { font-style: normal; }
.lang-zh { --display: "Cormorant Garamond", "Cormorant", "Songti SC", "Noto Serif SC", "Source Han Serif SC", serif; }

/* Pages d'atterrissage (inc/landings.php) */
.landing-hero { min-height: 86vh; padding-top: 120px; }
.landing-hero::after { background: linear-gradient(rgba(8,10,22,.25), rgba(8,10,22,.6) 45%, rgba(8,10,22,.96)); }
.landing-hero > div { max-width: 820px; }
.landing-answer { font-size: 19px; line-height: 1.6; color: #eef0fb; }
.landing-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.landing-row img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.landing-row.is-flipped img { order: 2; }
.landing-row p { color: #d5d8ee; font-size: 17px; }
.checklist-wrap { overflow-x: auto; }
.checklist th[scope="row"] { color: #fff; font-weight: 600; width: 42%; }
.checklist td { color: #d5d8ee; }
.check-mark { color: var(--gold); font-weight: 700; }
.landing-heroes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.landing-heroes a { display: grid; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); color: inherit; text-decoration: none; height: 100%; }
.landing-heroes a:hover { border-color: var(--flux); }
.landing-heroes img { width: 72px; height: 72px; border-radius: 50%; }
.landing-heroes strong { font-family: var(--display); font-size: 22px; }
.landing-heroes small { color: var(--muted); }
.landing-faq details[open] summary { color: var(--gold); }
.landing-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.landing-links a { position: relative; display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; color: #fff; text-decoration: none; }
.landing-links img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.landing-links a:hover img { transform: scale(1.05); }
.landing-links span { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; background: linear-gradient(transparent, rgba(8,10,22,.92)); font-weight: 600; }
.footer-discover { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; font-size: 14px; }
.press-copy .small-title { margin-top: 0; }
@media (max-width: 860px) {
  .landing-row { grid-template-columns: 1fr; }
  .landing-hero { min-height: 0; padding-top: 110px; }
  .landing-answer { font-size: 17px; }
  .landing-row.is-flipped img { order: 0; }
  .landing-heroes { grid-template-columns: repeat(2, 1fr); }
}

/* Bandeau de consentement (mesure d'audience) */
.consent { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; margin: 0 auto; max-width: 720px; padding: 18px 20px;
  background: rgba(18,21,42,.97); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(0,0,0,.5);
  display: grid; gap: 10px; font-size: 14px; color: var(--muted); }
.consent[hidden] { display: none; }
.consent p { margin: 0; }
.consent .consent-title { color: var(--text); font-weight: 600; font-size: 15px; }
.consent-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.consent-actions .button { min-width: 120px; color: var(--text); background: rgba(255,255,255,.06); cursor: pointer; font: inherit; }

/* Connexion Google / Apple (pages/oauth.php) — couleurs imposées par les chartes des deux marques. */
.sso-list { display: grid; gap: 10px; margin: 4px 0 6px; }
.sso-list form { margin: 0; }
.sso { width: 100%; gap: 12px; font-weight: 600; font-size: 16px; padding: 12px 22px; }
.sso-logo { width: 20px; height: 20px; flex: none; }
.sso-google { background: #fff; color: #1f1f1f; border-color: #747775; }
.sso-google:hover { background: #f2f2f2; border-color: #747775; }
.sso-apple { background: #000; color: #fff; border-color: #000; }
.sso-apple:hover { background: #1c1c1e; border-color: #3a3a3c; }
.sso-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; color: var(--muted); font-size: 13px; }
.sso-or::before, .sso-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.identities li { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.identities form { margin: 0; }
.linklike { background: none; border: 0; padding: 0; color: var(--gold); font: inherit; cursor: pointer; text-decoration: underline; }
.device-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 40px; letter-spacing: .18em; color: var(--gold-2); text-align: center; margin: 8px 0 16px; }
.device-input { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 24px; letter-spacing: .16em; text-transform: uppercase; text-align: center; }
.device-account { text-align: center; margin: 0; font-size: 18px; }
.device-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.device-actions form { margin: 0; }
body.relay { min-height: 100vh; display: grid; place-items: center; }
