/* Page d'accueil « Memnis, une nouvelle aventure » — reprend l'identité de memnis.eu.
   Indépendante de style.css : l'ancien site n'est pas touché. */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --bg: #07090c;
  --surface: #0f1318;
  --line: #1b2128;
  --line-2: #2b323c;
  --text: #e9e6df;
  --text-2: #a6a39b;
  --text-3: #6b6862;
  --accent: #e06a4a;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --pad: clamp(16px, 5vw, 72px);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(224, 106, 74, .10), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}
/* Grain léger, comme sur memnis.eu */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

a { color: inherit; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.accent { color: var(--accent); }

.shell {
  min-height: 100vh;
  min-height: 100svh;
  max-width: 880px;
  margin: 0 auto;
  padding: 28px var(--pad) 40px;
  display: flex;
  flex-direction: column;
}

.topline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  color: var(--text-3);
}
.topline-arrow {
  flex: 0 1 64px;
  height: 1px;
  background: linear-gradient(90deg, var(--line-2), var(--accent));
}

/* Bloc principal */

.intro {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 0 56px;
}

.emblem {
  width: 76px;
  height: auto;
  margin-bottom: 44px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
}

h1 {
  margin: 0;
  font-weight: 600;
  font-size: clamp(36px, 6.4vw, 64px);
  line-height: 1.05;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.lead {
  max-width: 640px;
  margin: 26px 0 0;
  color: var(--text-2);
  font-size: clamp(17px, 2vw, 19px);
  line-height: 1.6;
}
.signature {
  margin: 14px 0 0;
  color: var(--text-3);
  font-size: 15px;
}
.signature::before {
  content: "— ";
}
.lead strong {
  color: var(--text);
  font-weight: 600;
}

.btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  padding: 15px 22px;
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  border-radius: 2px;
  transition: background .2s, gap .2s var(--ease);
}
.btn:hover {
  background: #ea7d5e;
  gap: 16px;
}

.redirect {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin: 22px 0 0;
  color: var(--text-3);
  font-size: 11px;
}
.redirect[hidden] { display: none; }
.redirect [data-count] {
  display: inline-block;
  min-width: 2ch;
  color: var(--text);
  text-align: right;
}
.redirect button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-2);
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.redirect button:hover { color: var(--text); }

/* Fiche société */

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.facts > div {
  padding: 20px 20px 20px 0;
  min-width: 0;
}
.facts > div + div {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}
.facts dt {
  color: var(--text-3);
  font-size: 11px;
  margin-bottom: 8px;
}
.facts dd {
  margin: 0;
  font-size: 15px;
  overflow-wrap: anywhere;
}
.facts small {
  display: block;
  color: var(--text-3);
  font-size: 13px;
  margin-top: 2px;
}
.facts a {
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  transition: border-color .2s, color .2s;
}
.facts a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .facts > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 420px) {
  .facts { grid-template-columns: 1fr; }
  .facts > div,
  .facts > div + div {
    padding: 16px 0;
    border-left: 0;
  }
  .facts > div + div { border-top: 1px solid var(--line); }
}

/* Pied */

.foot {
  padding-top: 28px;
  color: var(--text-3);
  font-size: 14px;
}
.foot p { margin: 0 0 10px; }
.foot .mono { font-size: 11px; }
.foot a {
  color: var(--text-2);
  text-decoration: none;
  transition: color .2s;
}
.foot a:hover { color: var(--accent); }

/* Apparition */

.intro > *,
.facts,
.foot {
  animation: rise .8s var(--ease) both;
}
.intro > :nth-child(2) { animation-delay: .08s; }
.intro > :nth-child(3) { animation-delay: .14s; }
.intro > :nth-child(4) { animation-delay: .2s; }
.intro > :nth-child(5) { animation-delay: .26s; }
.intro > :nth-child(6) { animation-delay: .32s; }
.facts { animation-delay: .4s; }
.foot { animation-delay: .48s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::after { animation: none !important; }
  .btn { transition: none; }
}
