/* InterFilm portail — aligné sur interfilm.fun (design-refresh) */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #000;
  --s1: #0a0a0a;
  --s2: #111;
  --text: #f4f3f7;
  --text2: #9b99ad;
  --muted: #5c5a6e;
  --border: rgba(255, 255, 255, 0.055);
  --border2: rgba(255, 255, 255, 0.1);
  --orange: #f77f00;
  --orange-glow: rgba(247, 127, 0, 0.35);
  --red: #d4142a;
  --gold: #c9a227;
  --gold2: #e8c547;
  --ff-head: 'Syne', system-ui, sans-serif;
  --ff-body: 'DM Sans', system-ui, sans-serif;
  --ff-display: 'Bebas Neue', 'Syne', sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --r: 10px;
  --nav-h: 64px;
  --max: 640px;
}

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--ff-body);
  font-size: 15px;
  color: var(--text);
  line-height: 1.62;
  letter-spacing: -0.01em;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(247, 127, 0, 0.12) 0%, transparent 55%),
    #000;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(212, 20, 42, 0.35);
  color: #fff;
}

a { color: inherit; text-decoration: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── Nav (comme .fun) ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.92);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: calc(var(--max) + 3rem);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 1.5rem);
  height: var(--nav-h);
}

.logo {
  font-family: var(--ff-head);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  color: #fff;
}

.logo-accent { color: var(--orange); }

.nav__portal { text-align: right; }

.nav__portal-label {
  display: block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav__portal-value {
  font-family: var(--ff-display);
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--text2);
}

.hero-separator {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border2), transparent);
}

/* ─── Layout ─── */
.main {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 2.5rem 0 3rem;
}

/* ─── Intro ─── */
.intro { margin-bottom: 2rem; }

.intro__eyebrow {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.5rem;
}

.intro__title {
  font-family: var(--ff-head);
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 0.65rem;
}

.intro__text {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 34rem;
}

/* ─── Access card ─── */
.access-card {
  background: rgba(8, 8, 12, 0.82);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem 1.35rem 1.35rem;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.access-card__label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.access-card__domain {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 8vw, 2.75rem);
  letter-spacing: 0.06em;
  line-height: 1;
  margin-bottom: 1.25rem;
  color: #fff;
}

.access-card__domain span {
  color: var(--orange);
  text-shadow: 0 0 28px var(--orange-glow);
}

/* ─── Buttons (.fun) ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: all 0.22s var(--ease-out);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.35);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(234, 88, 12, 0.45);
}

.btn-primary:active { transform: translateY(0); }

.btn-primary.btn--disabled {
  opacity: 0.45;
  pointer-events: none;
  transform: none;
  filter: grayscale(0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border2);
  color: #fff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.access-card__btn {
  width: 100%;
  max-width: 320px;
}

.btn-icon { flex-shrink: 0; }

/* ─── Status ─── */
.status {
  margin-top: 1.35rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--border2);
  background: rgba(255, 255, 255, 0.04);
  margin-bottom: 0.65rem;
}

.status-pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-pill.is-online { color: #4ade80; border-color: rgba(74, 222, 128, 0.25); }
.status-pill.is-maintenance { color: var(--gold2); border-color: rgba(201, 162, 39, 0.3); }
.status-pill.is-vip { color: #c4b5fd; border-color: rgba(196, 181, 253, 0.25); }
.status-pill.is-offline { color: #f87171; border-color: rgba(248, 113, 113, 0.25); }
.status-pill.is-checking { color: var(--text2); }

.status-pill.is-checking .status-pill__dot {
  animation: blink 1.2s ease infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.status__title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.status__hint {
  font-size: 0.8125rem;
  color: var(--text2);
  max-width: 26rem;
  margin: 0 auto 0.4rem;
}

.status__time {
  font-size: 0.6875rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ─── Blocks ─── */
.block {
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.block__title {
  font-family: var(--ff-display);
  font-size: 1.375rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.block__lead {
  font-size: 0.8125rem;
  color: var(--text2);
  margin-bottom: 1.25rem;
}

/* ─── Features ─── */
.features {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

@media (min-width: 560px) {
  .features { grid-template-columns: repeat(3, 1fr); }
}

.feature {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: border-color 0.2s var(--ease-out);
}

.feature:hover { border-color: rgba(247, 127, 0, 0.25); }

.feature__icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.65rem;
  color: var(--orange);
  border-radius: 8px;
  background: rgba(247, 127, 0, 0.1);
  border: 1px solid rgba(247, 127, 0, 0.22);
}

.feature__icon svg { width: 18px; height: 18px; }

.feature h3 {
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.feature p {
  font-size: 0.75rem;
  color: var(--text2);
  line-height: 1.5;
}

/* ─── Notice ─── */
.notice {
  padding: 1rem 1.1rem;
  border-radius: var(--r);
  border: 1px solid var(--border);
  border-left: 3px solid var(--orange);
  background: rgba(247, 127, 0, 0.04);
}

.notice p {
  font-size: 0.8125rem;
  color: var(--text2);
}

.notice p + p { margin-top: 0.6rem; }

.notice strong { color: var(--text); font-weight: 600; }

/* ─── Founders ─── */
.founders {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.founder {
  padding: 1.15rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: border-color 0.2s var(--ease-out);
}

.founder:hover { border-color: rgba(247, 127, 0, 0.3); }

.founder__avatar-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 0.75rem;
}

.founder__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(247, 127, 0, 0.4);
  background: var(--s2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.founder__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.founder__deco {
  position: absolute;
  top: -12%;
  left: -12%;
  width: 124%;
  height: 124%;
  pointer-events: none;
  z-index: 2;
}

.founder__name {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  line-height: 1;
}

.founder__role {
  margin-top: 0.3rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ─── Discord ─── */
.block--discord { text-align: center; }

.discord-btn { margin-top: 0.25rem; }

/* ─── Footer ─── */
.foot {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 1.5rem 0 max(2rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.75rem;
  color: var(--text2);
}

.foot__sub {
  margin-top: 0.25rem;
  font-size: 0.6875rem;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .status-pill.is-checking .status-pill__dot { animation: none; }
  .btn-primary:hover, .btn-secondary:hover { transform: none; }
}
