/* Magical Tower Defense — site officiel */
@font-face { font-family: "Eagle Lake"; src: url("fonts/eaglelake.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("fonts/cormorant.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("fonts/cormorant-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }

:root {
  --ink: #0a0a0c;
  --panel: #111115;
  --line: rgba(255, 255, 255, .16);
  --text: #ece9f4;
  --muted: #aba6bd;
  --gold: #e8b84a;
  --violet: #3b2a8a;
  --orb: #4db8ff;
  --title: "Eagle Lake", "Cormorant", Georgia, serif;
  --body: "Cormorant", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font-family: var(--body); font-weight: 500; font-size: 1.28rem; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-decoration-color: var(--gold); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--gold); }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.nebula {
  position: absolute; left: 50%; top: -6rem; width: min(1100px, 150vw); height: 760px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(70, 48, 170, .55), rgba(40, 26, 104, .28) 55%, transparent 100%);
  z-index: -1; pointer-events: none;
}

/* Barre du haut */
.top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.25rem; max-width: 1120px; margin: 0 auto; }
.brand { font-family: var(--title); font-size: 1rem; text-decoration: none; letter-spacing: .02em; }
.lang { display: flex; gap: .2rem; font-size: 1.05rem; }
.lang a, .lang span { padding: .15rem .55rem; border: 1px solid transparent; border-radius: 6px; text-decoration: none; color: var(--muted); }
.lang [aria-current] { color: var(--text); border-color: var(--line); }

/* Héros */
.hero { position: relative; text-align: center; padding: 1.5rem 1.25rem 4rem; overflow: hidden; }
.emblem { position: relative; width: 250px; height: 250px; margin: 1rem auto 1.5rem; }
.emblem .ring { position: absolute; inset: 0; animation: orbit 48s linear infinite; }
.emblem .ring svg { width: 100%; height: 100%; overflow: visible; }
.emblem .glow { position: absolute; inset: 22%; border-radius: 50%; background: radial-gradient(closest-side, rgba(150, 130, 235, .5), transparent); }
.emblem img { position: absolute; left: 50%; top: 50%; height: 62%; width: auto; transform: translate(-50%, -52%); }
@keyframes orbit { to { transform: rotate(360deg); } }

.kicker { font-family: var(--title); letter-spacing: .5em; margin: 0 -.5em 0 0; font-size: clamp(1.05rem, 3.6vw, 1.6rem); color: #e2def5; }
h1 { font-family: var(--title); font-weight: 400; font-size: clamp(2.6rem, 11vw, 5.6rem); line-height: 1.05; margin: .1em 0 .12em; color: #fff; text-shadow: 0 0 28px rgba(190, 170, 255, .55), 0 0 4px rgba(255, 255, 255, .5); }
.rule { display: flex; align-items: center; justify-content: center; gap: .6rem; margin: .6rem auto 1rem; color: var(--muted); }
.rule::before, .rule::after { content: ""; height: 1px; width: min(26vw, 150px); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7)); }
.rule::after { transform: scaleX(-1); }
.rule i { width: 9px; height: 9px; border: 1px solid #fff; transform: rotate(45deg); }
.tagline { font-style: italic; font-size: clamp(1.3rem, 4.4vw, 1.8rem); margin: 0 auto 1.8rem; max-width: 26ch; line-height: 1.3; }
.soon { display: inline-flex; flex-direction: column; align-items: center; gap: .15rem; padding: .7rem 1.7rem .8rem; border: 1px solid #fff; border-radius: 10px; background: rgba(10, 10, 12, .55); }
.soon b { font-family: var(--title); font-weight: 400; font-size: 1.12rem; }
.soon small { color: var(--muted); font-size: 1rem; }
.meta { color: var(--muted); font-size: 1.05rem; margin-top: 1rem; }

/* Sections */
section { padding: 3.2rem 1.25rem; }
.wrap { max-width: 1040px; margin: 0 auto; }
h2 { font-family: var(--title); font-weight: 400; font-size: clamp(1.5rem, 5vw, 2.2rem); text-align: center; margin: 0 0 1.6rem; color: #fff; }
.eyebrow { text-align: center; color: var(--gold); letter-spacing: .32em; text-transform: uppercase; font-size: .86rem; margin: 0 0 .5rem; }

.lore { text-align: center; font-style: italic; max-width: 31ch; margin: 0 auto; font-size: clamp(1.3rem, 4.2vw, 1.62rem); line-height: 1.42; }
.lore p { margin: 0 0 .85em; }
.lore-fin { font-family: var(--title); font-size: clamp(1.6rem, 7vw, 2.5rem); color: #fff; text-align: center; margin: 1.4rem 0 0; text-shadow: 0 0 22px rgba(190, 170, 255, .5); }

.counts { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; text-align: center; border-block: 1px solid var(--line); padding: 1.5rem 0; }
.counts b { display: block; font-family: var(--title); font-weight: 400; font-size: clamp(1.7rem, 6vw, 2.9rem); color: #fff; line-height: 1.1; }
.counts span { color: var(--muted); font-size: 1.02rem; }
@media (max-width: 620px) { .counts { grid-template-columns: repeat(3, 1fr); row-gap: 1.3rem; } .counts div:nth-child(4) { grid-column: 1 / 2; margin-left: 50%; width: 100%; } .counts div:nth-child(5) { margin-left: 50%; width: 100%; } }

.shots { display: flex; gap: 1.1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .4rem 1.25rem 1.2rem; margin: 0 -1.25rem; scrollbar-width: thin; scrollbar-color: #3a3a44 transparent; }
.shots figure { flex: 0 0 auto; width: min(64vw, 236px); margin: 0; scroll-snap-align: center; }
.shots img { border: 1px solid var(--line); border-radius: 20px; background: var(--panel); aspect-ratio: 9 / 16; width: 100%; }
.shots figcaption { text-align: center; font-style: italic; color: var(--muted); font-size: 1.05rem; padding-top: .6rem; line-height: 1.3; }
@media (min-width: 1100px) { .shots { justify-content: center; overflow: visible; } .shots figure { width: 190px; } .shots figure:nth-child(even) { margin-top: 2rem; } }

.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 0 2.6rem; }
.features li { padding: 1.05rem 0 1.05rem 1.7rem; border-bottom: 1px solid var(--line); position: relative; }
.features li::before { content: ""; position: absolute; left: .2rem; top: 1.72rem; width: 8px; height: 8px; border: 1px solid var(--gold); transform: rotate(45deg); }
.features b { display: block; color: #fff; font-weight: 500; font-size: 1.38rem; line-height: 1.25; }
.features span { color: var(--muted); }

.cta { text-align: center; }
.cta p { max-width: 34ch; margin: 0 auto 1.6rem; }

/* Pages de texte */
.doc { max-width: 720px; margin: 0 auto; padding: 1rem 1.25rem 4rem; }
.doc h1 { font-size: clamp(1.9rem, 6.5vw, 2.9rem); text-align: center; margin: 1.2rem 0 .3rem; }
.doc .updated { text-align: center; color: var(--muted); font-style: italic; margin: 0 0 2.2rem; }
.doc h2 { text-align: left; font-family: var(--body); font-weight: 500; color: var(--gold); font-size: 1.5rem; margin: 2.1rem 0 .4rem; }
.doc p, .doc address { margin: 0 0 1rem; font-style: normal; }
.doc address { border-left: 1px solid var(--gold); padding-left: 1rem; }

form { display: grid; gap: 1.1rem; margin-top: 1.6rem; }
label { display: grid; gap: .35rem; color: var(--muted); font-size: 1.1rem; }
input, select, textarea { font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: .65rem .8rem; width: 100%; }
textarea { min-height: 9.5rem; resize: vertical; }
button { font-family: var(--title); font-size: 1.05rem; color: #fff; background: transparent; border: 1px solid #fff; border-radius: 10px; padding: .8rem 1.6rem; cursor: pointer; justify-self: start; }
button:hover { color: var(--gold); border-color: var(--gold); }
.mail { text-align: center; font-size: 1.5rem; margin: 1.2rem 0 .4rem; overflow-wrap: anywhere; }
.note { color: var(--muted); font-size: 1.08rem; }

footer { border-top: 1px solid var(--line); padding: 2rem 1.25rem 2.6rem; text-align: center; color: var(--muted); font-size: 1.05rem; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.4rem; margin-bottom: .8rem; }
footer a { color: var(--muted); }
footer p { margin: .2rem 0; }

@media (prefers-reduced-motion: reduce) { .emblem .ring { animation: none; } html { scroll-behavior: auto; } }
