/* ==========================================================
   Ani!mo France - site vitrine (Discord, Aniidle, sites de confiance)
   Toutes les couleurs viennent des jetons --t-* (themes.css) :
   changer de thème en administration recolore tout le site.
   ========================================================== */

:root {
  --font: "Nunito", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  --discord: #5865f2;
  --discord-2: #7983f5;
  --green: #23a55a;
  --radius: 22px;
  --radius-sm: 14px;
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.18);
  --card: rgba(255, 255, 255, 0.045);
  --card-2: rgba(255, 255, 255, 0.075);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--t-bg);
  color: var(--t-ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

::selection {
  background: rgba(var(--t-accent-rgb), 0.35);
}

:focus-visible {
  outline: 3px solid var(--t-accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 300;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--t-cta);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  position: relative;
  z-index: 2;
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 24px;
}

main {
  position: relative;
  z-index: 2;
}

/* ---------- Ciel animé ---------- */

.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(var(--t-tint-a), 0.28), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(var(--t-tint-b), 0.12), transparent 60%),
    linear-gradient(180deg, var(--t-bg) 0%, var(--t-bg-2) 55%, var(--t-bg) 100%);
}

.aurora {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  mix-blend-mode: screen;
  animation: drift 26s ease-in-out infinite alternate;
}

.aurora.a1 {
  top: -25vmax;
  left: -10vmax;
  background: radial-gradient(circle, rgba(var(--t-tint-a), 0.9), transparent 65%);
}

.aurora.a2 {
  top: 10vmax;
  right: -25vmax;
  background: radial-gradient(circle, rgba(var(--t-accent-rgb), 0.7), transparent 65%);
  animation-duration: 32s;
  animation-delay: -8s;
}

.aurora.a3 {
  bottom: -30vmax;
  left: 20vmax;
  background: radial-gradient(circle, rgba(var(--t-tint-b), 0.55), transparent 65%);
  animation-duration: 38s;
  animation-delay: -14s;
}

.stars {
  position: absolute;
  inset: -50% 0 0;
  background-image:
    radial-gradient(1.4px 1.4px at 20px 30px, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 90px 120px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1.2px 1.2px at 160px 60px, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 230px 190px, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.6px 1.6px at 300px 90px, rgba(var(--t-warm-rgb), 0.8), transparent);
  background-size: 340px 240px;
  opacity: 0.5;
  animation: stars 120s linear infinite;
}

@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(6vmax, 4vmax) scale(1.12); }
  100% { transform: translate(-4vmax, 8vmax) scale(0.95); }
}

@keyframes stars {
  to { transform: translateY(50%); }
}

/* ---------- Boutons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  font: inherit;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-sm {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 11px;
  font-size: 0.92rem;
}

.btn-lg {
  min-height: 52px;
  padding: 0 24px;
}

.btn-xl {
  min-height: 60px;
  padding: 0 30px;
  border-radius: 18px;
  font-size: 1.1rem;
}

.btn-xl svg {
  width: 24px;
  height: 24px;
}

.btn-discord {
  background: linear-gradient(135deg, var(--discord), var(--discord-2));
  color: #fff;
  box-shadow: 0 12px 34px rgba(88, 101, 242, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-discord:hover {
  box-shadow: 0 18px 44px rgba(88, 101, 242, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary {
  background: linear-gradient(135deg, var(--t-cta), var(--t-accent));
  color: #fff;
  box-shadow: 0 12px 34px rgba(var(--t-accent-rgb), 0.35);
}

.btn-ghost {
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--t-ink);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: rgba(var(--t-accent-rgb), 0.6);
  background: rgba(var(--t-accent-rgb), 0.12);
}

.btn-green {
  background: var(--green);
  color: #fff;
}

.btn-green:hover {
  background: #1f9150;
}

.btn-light {
  background: #fff;
  color: #1e2a6b;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
}

.btn-light svg {
  color: var(--discord);
}

.btn-shine {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: shine 4.5s ease-in-out infinite;
}

@keyframes shine {
  0%, 60% { transform: translateX(-120%); }
  80%, 100% { transform: translateX(120%); }
}

/* ---------- Petits éléments ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  padding: 6px 14px;
  border: 1px solid rgba(var(--t-accent-rgb), 0.35);
  border-radius: 999px;
  background: rgba(var(--t-accent-rgb), 0.1);
  color: var(--t-accent-2);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.live-dot {
  position: relative;
  display: inline-block;
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
}

.live-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--green);
  animation: ping 2s ease-out infinite;
}

@keyframes ping {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(1.8); opacity: 0; }
}

.dot-grey {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #80848e;
}

.grad {
  background: linear-gradient(100deg, var(--t-accent-2), var(--t-accent) 40%, var(--t-hot));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.verified {
  display: inline-block;
  width: 18px;
  height: 18px;
  color: var(--green);
  vertical-align: -3px;
}

/* ---------- En-tête ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(var(--t-bg-rgb), 0.78);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(16px) saturate(140%);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: none;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(var(--t-accent-rgb), 0.35);
  transition: transform 0.4s var(--ease);
}

.brand:hover img {
  transform: rotate(-8deg) scale(1.06);
}

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 900;
}

.brand-text em {
  color: var(--t-hot);
  font-style: normal;
}

.brand-text small {
  color: var(--t-soft);
  font-size: 0.74rem;
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav a {
  position: relative;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--t-soft);
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--t-ink);
  background: rgba(255, 255, 255, 0.07);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.presence-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(35, 165, 90, 0.35);
  border-radius: 999px;
  background: rgba(35, 165, 90, 0.1);
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.account {
  display: flex;
  align-items: center;
  gap: 6px;
}

.account-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px 4px 4px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.account-user img,
.avatar-fallback {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--discord), var(--t-accent));
  color: #fff;
  font-weight: 900;
  font-size: 0.85rem;
}

.account-user strong {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9rem;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--t-soft);
  transition: background 0.2s ease, color 0.2s ease;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--t-ink);
}

.icon-btn svg {
  width: 17px;
  height: 17px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.nav-toggle span:first-child,
.nav-toggle span:first-child::before,
.nav-toggle span:first-child::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  border-radius: 2px;
  background: var(--t-ink);
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}

.nav-toggle span:first-child {
  position: relative;
}

.nav-toggle span:first-child::before,
.nav-toggle span:first-child::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span:first-child::before {
  top: -6px;
}

.nav-toggle span:first-child::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span:first-child::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:first-child::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 48px 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 40px;
  min-height: min(640px, calc(100vh - var(--header-h) - 120px));
}

.hero-title {
  display: grid;
  margin-bottom: 22px;
  font-size: clamp(3.4rem, 9vw, 7.4rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.hero-title .t-line {
  display: block;
}

.hero-title .t-line:first-child {
  background: linear-gradient(180deg, #fff 30%, var(--t-accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 8px 30px rgba(var(--t-accent-rgb), 0.35));
}

.hero-title .bang {
  display: inline-block;
  background: linear-gradient(180deg, #fff, var(--t-hot));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: bang 3.2s var(--ease) infinite;
  transform-origin: 50% 90%;
}

@keyframes bang {
  0%, 70%, 100% { transform: rotate(0) translateY(0); }
  76% { transform: rotate(-14deg) translateY(-6px); }
  84% { transform: rotate(10deg) translateY(-2px); }
  92% { transform: rotate(-4deg); }
}

.hero-title .t-france {
  position: relative;
  width: max-content;
  font-size: 0.5em;
  letter-spacing: 0.28em;
  color: var(--t-warm);
  padding-bottom: 14px;
}

.hero-title .t-france::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0.28em;
  bottom: 0;
  height: 6px;
  border-radius: 6px;
  background: var(--t-ribbon);
  transform-origin: left;
  animation: ribbon 1.2s 0.4s var(--ease) both;
}

.hero-title .t-sub {
  font-size: 0.42em;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-top: 10px;
}

@keyframes ribbon {
  from { transform: scaleX(0); }
}

.hero-lead {
  max-width: 600px;
  margin-bottom: 30px;
  color: var(--t-soft);
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
}

.hero-lead strong {
  color: var(--t-ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: var(--t-soft);
  font-weight: 700;
  font-size: 0.95rem;
}

.hero-proof li::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  border-radius: 50%;
  background: rgba(35, 165, 90, 0.2);
  color: #4ade80;
  font-size: 0.75rem;
  font-weight: 900;
}

.hero-stage {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  max-width: 540px;
  width: 100%;
  margin-left: auto;
}

.mascot {
  position: relative;
  z-index: 3;
  width: 86%;
  height: auto;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.45));
  animation: float 6s ease-in-out infinite;
}

.mascot-glow {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--t-accent-rgb), 0.55), transparent 65%);
  filter: blur(30px);
  animation: pulse 5s ease-in-out infinite;
}

.orbit {
  position: absolute;
  inset: 2%;
  border: 1px dashed rgba(var(--t-accent-rgb), 0.35);
  border-radius: 50%;
  animation: spin 40s linear infinite;
}

.orbit-2 {
  inset: 14%;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.08);
  animation-duration: 26s;
  animation-direction: reverse;
}

.orbit span {
  position: absolute;
  top: -7px;
  left: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--t-warm);
  box-shadow: 0 0 18px 4px rgba(var(--t-warm-rgb), 0.7);
}

.orbit-2 span {
  top: auto;
  bottom: -5px;
  width: 10px;
  height: 10px;
  background: var(--t-hot);
  box-shadow: 0 0 16px 4px rgba(var(--t-tint-b), 0.7);
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-18px) rotate(1.5deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.float-card {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: rgba(var(--t-bg-rgb), 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  font-weight: 800;
  font-size: 0.92rem;
  white-space: nowrap;
  animation: float 7s ease-in-out infinite;
}

.float-card svg {
  width: 18px;
  height: 18px;
  color: var(--t-accent);
}

.fc-1 { top: 10%; left: -4%; animation-delay: -1s; }
.fc-2 { bottom: 18%; left: -8%; animation-delay: -3s; }
.fc-3 { top: 28%; right: -6%; animation-delay: -5s; }
.fc-3 svg { color: #7dd3fc; }

/* Carte d'invitation Discord */
.invite {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 640px;
  margin: 30px 0 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(30, 31, 34, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.invite-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  object-fit: cover;
  flex: none;
}

.invite-body {
  flex: 1;
  min-width: 0;
}

.invite-label {
  color: #b5bac1;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.invite-name {
  font-size: 1.15rem;
  font-weight: 900;
}

.invite-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  color: #b5bac1;
  font-size: 0.9rem;
}

.invite-counts > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.invite-counts strong {
  color: #fff;
}

/* Bandeau défilant */
.marquee {
  position: relative;
  margin-top: 56px;
  padding: 16px 0;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.marquee-track span::after {
  content: "✦";
  color: var(--t-accent);
  font-size: 0.7em;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding: 96px 0;
}

.section-alt {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.025) 20%, rgba(255, 255, 255, 0.025) 80%, transparent);
}

.section-head {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head h2,
.teaser-copy h2,
.about-grid h2,
.rules-grid h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 900;
}

.section-head p:not(.eyebrow) {
  color: var(--t-soft);
  font-size: 1.1rem;
}

/* Statistiques */
.stats {
  padding: 56px 0 24px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stat {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card-2), var(--card));
  overflow: hidden;
}

.stat::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--t-ribbon);
  opacity: 0.8;
}

.stat strong {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat > span:last-child {
  color: var(--t-soft);
  font-weight: 700;
}

.stat-ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: rgba(var(--t-accent-rgb), 0.14);
  color: var(--t-accent);
}

.stat-ico.is-green {
  background: rgba(35, 165, 90, 0.16);
}

.stat-ico svg {
  width: 20px;
  height: 20px;
}

/* Fonctionnalités */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.4s var(--ease);
}

.feature:hover {
  border-color: rgba(var(--t-accent-rgb), 0.45);
  background: var(--card-2);
}

.feature-ico {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(var(--t-tint-a), 0.35), rgba(var(--t-accent-rgb), 0.2));
  font-size: 1.6rem;
  transition: transform 0.4s var(--ease);
}

.feature:hover .feature-ico {
  transform: scale(1.12) rotate(-8deg);
}

.feature h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.feature p {
  color: var(--t-soft);
}

/* Effet d'inclinaison (piloté en JS) */
.tilt {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
}

.tilt::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--t-accent-rgb), 0.16), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.tilt:hover::after {
  opacity: 1;
}

/* ---------- Fenêtre Discord en direct ---------- */

.discord-app {
  display: grid;
  grid-template-columns: 72px 240px minmax(0, 1fr) 240px;
  height: 560px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background: #313338;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.4);
  color: #dbdee1;
  font-size: 0.95rem;
}

.app-guilds {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  background: #1e1f22;
}

.guild {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  overflow: hidden;
  background: #313338;
  color: #23a55a;
  font-size: 1.6rem;
  text-decoration: none;
  transition: border-radius 0.2s ease, background 0.2s ease;
}

.guild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guild.is-active::before {
  content: "";
  position: absolute;
  left: -12px;
  width: 4px;
  height: 40px;
  border-radius: 0 4px 4px 0;
  background: #fff;
}

.guild-add:hover {
  border-radius: 14px;
  background: #23a55a;
  color: #fff;
}

.guild-sep {
  width: 32px;
  height: 2px;
  border-radius: 2px;
  background: #35363c;
}

.app-channels {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #2b2d31;
}

.app-server {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 48px;
  padding: 0 16px;
  flex: none;
  border-bottom: 1px solid #1f2023;
  color: #f2f3f5;
  font-weight: 800;
}

.app-channel-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 8px 16px;
  scrollbar-width: thin;
  scrollbar-color: #1a1b1e transparent;
}

.app-cat {
  margin: 16px 8px 4px;
  color: #949ba4;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.app-cat:first-child {
  margin-top: 6px;
}

.app-chan {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 6px;
  color: #949ba4;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.15s ease, color 0.15s ease;
}

.app-chan svg {
  width: 18px;
  height: 18px;
  flex: none;
  opacity: 0.7;
}

.app-chan:hover {
  background: #35373c;
  color: #dbdee1;
}

.app-chan.is-active {
  background: #404249;
  color: #fff;
}

.app-chan em {
  margin-left: auto;
  padding: 0 6px;
  border-radius: 8px;
  background: #23a55a;
  color: #fff;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
}

.voice-faces {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 2px 8px 6px 32px;
}

.voice-faces img,
.voice-faces .avatar-fallback {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.6rem;
}

.app-empty {
  padding: 6px 8px;
  color: #6d727a;
  font-size: 0.85rem;
}

.app-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.app-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 16px;
  flex: none;
  border-bottom: 1px solid #26282c;
  color: #f2f3f5;
}

.app-topbar svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: #80848e;
}

.app-topbar strong {
  white-space: nowrap;
}

.app-topbar span {
  padding-left: 12px;
  margin-left: 4px;
  border-left: 1px solid #3f4147;
  color: #949ba4;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-messages {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  min-height: 0;
  overflow: hidden;
  padding: 16px 0 8px;
  mask-image: linear-gradient(180deg, transparent, #000 18%);
}

.msg {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  padding: 6px 16px;
  animation: msg-in 0.5s var(--ease) both;
}

.msg:hover {
  background: #2e3035;
}

.msg img,
.msg .avatar-fallback {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.msg-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.msg-head strong {
  color: #f2f3f5;
  font-weight: 700;
}

.msg-head small {
  color: #949ba4;
  font-size: 0.75rem;
}

.msg-chan {
  padding: 0 6px;
  border-radius: 4px;
  background: rgba(88, 101, 242, 0.18);
  color: #c9cdfb;
  font-size: 0.75rem;
  font-weight: 700;
}

.msg-text {
  color: #dbdee1;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.msg-react {
  display: inline-flex;
  margin-top: 4px;
  padding: 1px 8px;
  border: 1px solid #5865f2;
  border-radius: 8px;
  background: rgba(88, 101, 242, 0.15);
  font-size: 0.8rem;
}

@keyframes msg-in {
  from { opacity: 0; transform: translateY(14px); }
}

.msg-skeleton {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  padding: 8px 16px;
}

.msg-skeleton span {
  height: 14px;
  border-radius: 7px;
  background: linear-gradient(90deg, #3a3c42, #45474e, #3a3c42);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}

.msg-skeleton span:first-child {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.msg-skeleton span:last-child {
  align-self: center;
  width: 70%;
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}

.msg-empty {
  margin: auto;
  padding: 24px;
  max-width: 380px;
  text-align: center;
  color: #b5bac1;
}

.msg-empty strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 1.1rem;
}

.app-typing {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 22px;
  padding: 0 16px;
  color: #b5bac1;
  font-size: 0.8rem;
}

.dots {
  display: inline-flex;
  gap: 3px;
}

.dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b5bac1;
  animation: typing 1.2s ease-in-out infinite;
}

.dots i:nth-child(2) { animation-delay: 0.15s; }
.dots i:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.app-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 16px 18px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #383a40;
  color: #6d727a;
  text-decoration: none;
  transition: background 0.2s ease;
}

.app-input strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  background: var(--discord);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  white-space: nowrap;
}

.app-input strong svg {
  width: 16px;
  height: 16px;
}

.app-input:hover {
  background: #404249;
}

.app-input span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.app-members {
  overflow-y: auto;
  padding: 8px 8px 16px;
  background: #2b2d31;
  scrollbar-width: thin;
  scrollbar-color: #1a1b1e transparent;
}

.member {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 6px;
}

.member:hover {
  background: #35373c;
}

.member-avatar {
  position: relative;
  flex: none;
}

.member-avatar img,
.member-avatar .avatar-fallback {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.member-rank {
  position: absolute;
  right: -4px;
  bottom: -4px;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 2px solid #2b2d31;
  border-radius: 50%;
  background: #80848e;
  color: #111;
  font-size: 0.6rem;
  font-weight: 900;
}

.member:nth-child(1) .member-rank { background: #fbbf24; }
.member:nth-child(2) .member-rank { background: #d1d5db; }
.member:nth-child(3) .member-rank { background: #d97706; }

.member-text {
  display: grid;
  min-width: 0;
  line-height: 1.25;
}

.member-text strong {
  overflow: hidden;
  color: #f2f3f5;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-text small {
  color: #949ba4;
  font-size: 0.75rem;
}

/* ---------- Aniidle (accueil) ---------- */

.teaser-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 56px;
}

.teaser-copy > p:not(.eyebrow) {
  margin-bottom: 22px;
  color: var(--t-soft);
  font-size: 1.1rem;
}

.teaser-copy strong {
  color: var(--t-ink);
}

.countdown {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 12px 18px;
  border: 1px solid rgba(var(--t-warm-rgb), 0.3);
  border-radius: 16px;
  background: rgba(var(--t-warm-rgb), 0.08);
  color: var(--t-soft);
  font-weight: 700;
}

.countdown svg {
  width: 20px;
  height: 20px;
  color: var(--t-warm);
}

.countdown strong {
  color: var(--t-warm);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 1.2rem;
  font-variant-numeric: tabular-nums;
}

.guess-card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line-2);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 40%, rgba(var(--t-accent-rgb), 0.22), transparent 60%),
    linear-gradient(180deg, var(--card-2), var(--card));
  box-shadow: var(--shadow);
  text-align: center;
}

.guess-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--t-soft);
  font-weight: 800;
}

.badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--t-cta);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.guess-stage {
  display: grid;
  place-items: center;
  height: 300px;
  margin: 12px 0;
}

.guess-img {
  height: 280px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: brightness(0) drop-shadow(0 0 22px rgba(var(--t-accent-rgb), 0.55));
  animation: float 5s ease-in-out infinite;
  transition: filter 1.2s var(--ease);
}

.guess-card.is-revealed .guess-img {
  filter: brightness(1) drop-shadow(0 20px 30px rgba(0, 0, 0, 0.45));
}

.guess-answer {
  margin-top: 12px;
  font-weight: 700;
  animation: msg-in 0.5s var(--ease) both;
}

.guess-answer strong {
  color: var(--t-warm);
}

/* ---------- Sites de confiance ---------- */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.trust {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.4s var(--ease);
}

.trust:hover {
  border-color: rgba(var(--t-accent-rgb), 0.5);
  background: var(--card-2);
}

.trust-rank {
  position: absolute;
  top: 14px;
  right: 18px;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.06);
}

.trust-ico {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(var(--t-accent-rgb), 0.14);
  font-size: 1.6rem;
}

.trust-ico svg {
  width: 30px;
  height: 30px;
}

.trust h3 {
  font-size: 1.3rem;
}

.trust-url {
  color: var(--t-accent);
  font-weight: 800;
  font-size: 0.9rem;
}

.trust p:not(.trust-url) {
  color: var(--t-soft);
  font-size: 0.97rem;
}

.trust-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
  color: var(--t-ink);
  font-weight: 900;
}

.trust-cta svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease);
}

.trust:hover .trust-cta svg {
  transform: translateX(4px);
}

.trust-discord {
  border-color: rgba(88, 101, 242, 0.5);
  background: linear-gradient(160deg, rgba(88, 101, 242, 0.32), rgba(88, 101, 242, 0.08));
}

.trust-discord .trust-ico {
  background: var(--discord);
  color: #fff;
}

.trust-aniidle {
  border-color: rgba(var(--t-warm-rgb), 0.35);
  background: linear-gradient(160deg, rgba(var(--t-warm-rgb), 0.14), rgba(var(--t-warm-rgb), 0.03));
}

/* ---------- À propos d'Aniimo ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
}

.about-grid p:not(.eyebrow) {
  margin-bottom: 16px;
  color: var(--t-soft);
}

.about-grid strong {
  color: var(--t-ink);
}

.about-grid .btn {
  margin-top: 8px;
}

.about-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  transform: perspective(1000px) rotateY(8deg) rotateX(2deg);
  transition: transform 0.6s var(--ease);
}

.about-media:hover img {
  transform: none;
}

/* ---------- FAQ ---------- */

.faq-wrap {
  max-width: 880px;
}

.faq {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.faq-item[open] {
  border-color: rgba(var(--t-accent-rgb), 0.4);
  background: var(--card-2);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  cursor: pointer;
  font-weight: 800;
  font-size: 1.08rem;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary i {
  position: relative;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: rgba(var(--t-accent-rgb), 0.15);
}

.faq-item summary i::before,
.faq-item summary i::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 2px;
  background: var(--t-accent);
  transition: transform 0.3s var(--ease);
}

.faq-item summary i::after {
  transform: rotate(90deg);
}

.faq-item[open] summary i::after {
  transform: rotate(0);
}

.faq-item p {
  padding: 0 22px 22px;
  color: var(--t-soft);
}

/* ---------- Appel final ---------- */

.cta {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  padding: 44px 48px;
  overflow: hidden;
  border-radius: 32px;
  background: linear-gradient(120deg, var(--discord), #3b44c4 50%, var(--t-cta));
  box-shadow: 0 40px 90px rgba(88, 101, 242, 0.35);
}

.cta-glow {
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.18), transparent 30%);
  animation: spin 12s linear infinite;
}

.cta > *:not(.cta-glow) {
  position: relative;
}

.cta-mascot {
  width: 150px;
  height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35));
  animation: float 6s ease-in-out infinite;
}

.cta h2 {
  margin-bottom: 8px;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 900;
  color: #fff;
}

.cta p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.1rem;
}

/* ---------- Page Aniidle ---------- */

.crumbs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--t-soft);
  font-size: 0.9rem;
  font-weight: 700;
}

.crumbs a {
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--t-ink);
}

.hero-aniidle {
  padding-bottom: 32px;
}

.stage-cards {
  aspect-ratio: auto;
  height: 460px;
}

.mini-card {
  position: absolute;
  display: grid;
  justify-items: center;
  gap: 10px;
  width: 210px;
  padding: 18px 18px 14px;
  border: 1px solid var(--line-2);
  border-radius: 24px;
  background: rgba(var(--t-bg-rgb), 0.7);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  animation: float 7s ease-in-out infinite;
}

.mini-frame {
  display: grid;
  place-items: center;
  width: 100%;
  height: 170px;
  overflow: hidden;
  border-radius: 16px;
  background: radial-gradient(circle, rgba(var(--t-accent-rgb), 0.22), transparent 70%);
}

.mini-card img {
  height: 160px;
  width: auto;
  object-fit: contain;
}

.mini-card > span:last-child {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--t-cta);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 900;
}

.mc-1 { top: 6%; left: 2%; rotate: -8deg; animation-delay: -2s; }
.mc-1 img { animation: unblur 5s ease-in-out infinite; }
.mc-2 { top: 22%; left: 34%; z-index: 2; rotate: 3deg; }
.mc-2 img { animation: colorize 5s ease-in-out infinite; }
.mc-3 { top: 40%; right: 0; rotate: 9deg; animation-delay: -4s; }
.mc-3 img { animation: unzoom 5s ease-in-out infinite; }

@keyframes unblur {
  0%, 15% { filter: blur(14px); }
  70%, 100% { filter: blur(0); }
}

@keyframes colorize {
  0%, 15% { filter: brightness(0); }
  70%, 100% { filter: brightness(1); }
}

@keyframes unzoom {
  0%, 15% { transform: scale(3.2); }
  70%, 100% { transform: scale(1); }
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.mode {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  text-decoration: none;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.4s var(--ease);
}

.mode:hover,
.mode:focus-visible {
  border-color: rgba(var(--t-accent-rgb), 0.5);
  background: var(--card-2);
  transform: translateY(-4px);
}

.mode h3 {
  font-size: 1.35rem;
}

.mode p {
  color: var(--t-soft);
}

.mode-demo {
  display: grid;
  place-items: center;
  height: 180px;
  margin-bottom: 8px;
  overflow: hidden;
  border-radius: 16px;
  background: radial-gradient(circle at 50% 50%, rgba(var(--t-accent-rgb), 0.25), rgba(0, 0, 0, 0.2) 70%);
}

.mode-demo img {
  height: 150px;
  width: auto;
  transition: filter 1.4s var(--ease), transform 1.4s var(--ease);
}

.demo-silhouette img {
  filter: brightness(0);
}

.demo-blur img {
  filter: blur(16px);
}

.demo-zoom img {
  transform: scale(3.4);
}

.mode:hover .mode-demo img,
.mode:focus-visible .mode-demo img {
  filter: none;
  transform: none;
}

.demo-classic {
  align-content: center;
  gap: 6px;
  padding: 12px;
}

.cmp-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  width: 100%;
}

.cmp-row span {
  padding: 6px 4px;
  border-radius: 8px;
  color: var(--t-soft);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

.cmp-guess span {
  color: #fff;
  font-size: 0.8rem;
  opacity: 0;
  transform: rotateX(90deg);
  animation: flip 0.5s var(--ease) both paused;
}

.cmp-guess .ok { background: #16a34a; }
.cmp-guess .ko { background: #dc2626; }

.mode:hover .cmp-guess span,
.mode:focus-visible .cmp-guess span,
.mode.is-inview .cmp-guess span {
  animation-play-state: running;
}

.cmp-guess span:nth-child(2) { animation-delay: 0.12s; }
.cmp-guess span:nth-child(3) { animation-delay: 0.24s; }
.cmp-guess span:nth-child(4) { animation-delay: 0.36s; }
.cmp-guess.g2 span { animation-delay: 0.7s; }
.cmp-guess.g2 span:nth-child(2) { animation-delay: 0.82s; }
.cmp-guess.g2 span:nth-child(3) { animation-delay: 0.94s; }
.cmp-guess.g2 span:nth-child(4) { animation-delay: 1.06s; }

@keyframes flip {
  to { opacity: 1; transform: none; }
}

.demo-hints {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
}

.demo-hints span {
  padding: 7px 12px;
  border: 1px dashed var(--line-2);
  border-radius: 10px;
  color: transparent;
  font-size: 0.82rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.04);
  transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.mode:hover .demo-hints span,
.mode:focus-visible .demo-hints span,
.mode.is-inview .demo-hints span {
  color: var(--t-ink);
  border-style: solid;
  border-color: rgba(var(--t-accent-rgb), 0.5);
  background: rgba(var(--t-accent-rgb), 0.15);
}

.demo-hints span:nth-child(2) { transition-delay: 0.2s; }
.demo-hints span:nth-child(3) { transition-delay: 0.4s; }
.demo-hints span:nth-child(4) { transition-delay: 0.6s; }
.demo-hints span:nth-child(5) { transition-delay: 0.8s; }
.demo-hints span:nth-child(6) { transition-delay: 1s; }

.mode-cta {
  justify-content: center;
  border-color: rgba(var(--t-warm-rgb), 0.35);
  background: linear-gradient(160deg, rgba(var(--t-warm-rgb), 0.14), rgba(var(--t-accent-rgb), 0.06));
  text-align: center;
  align-items: center;
}

.mode-cta-ico {
  font-size: 3.4rem;
  animation: float 4s ease-in-out infinite;
}

.rules-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 56px;
}

.rules-grid p:not(.eyebrow) {
  margin-bottom: 16px;
  color: var(--t-soft);
}

.rules-grid strong {
  color: var(--t-ink);
}

.reward-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reward-list li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  font-weight: 700;
  color: var(--t-soft);
}

.reward-gem {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 120px;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--t-ink);
}

.reward-gem svg {
  width: 28px;
  height: 28px;
  color: #7dd3fc;
  filter: drop-shadow(0 0 10px rgba(125, 211, 252, 0.7));
}

.tier-gold { border-color: rgba(251, 191, 36, 0.45) !important; background: linear-gradient(90deg, rgba(251, 191, 36, 0.14), transparent) !important; }
.tier-silver { border-color: rgba(209, 213, 219, 0.35) !important; }
.tier-bronze { border-color: rgba(217, 119, 6, 0.35) !important; }

/* ---------- Pages simples ---------- */

.simple-card {
  max-width: 720px;
  margin: 40px auto;
  padding: 44px;
  border: 1px solid var(--line-2);
  border-radius: 28px;
  background: linear-gradient(180deg, var(--card-2), var(--card));
  box-shadow: var(--shadow);
  text-align: center;
}

.simple-card img {
  width: 120px;
  height: 120px;
  margin: 0 auto 18px;
  animation: float 6s ease-in-out infinite;
}

.simple-card h1 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 900;
}

.simple-card p {
  margin-bottom: 14px;
  color: var(--t-soft);
}

.simple-card .hero-actions {
  justify-content: center;
  margin-top: 26px;
}

/* ---------- Pied de page ---------- */

.site-footer {
  position: relative;
  z-index: 2;
  margin-top: 40px;
  padding: 64px 0 0;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 36px;
}

.footer-brand p {
  margin: 16px 0 18px;
  color: var(--t-soft);
  max-width: 380px;
}

.site-footer h2 {
  margin-bottom: 14px;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--t-soft);
}

.site-footer nav a {
  display: block;
  padding: 5px 0;
  color: var(--t-ink);
  font-weight: 700;
  text-decoration: none;
  opacity: 0.85;
}

.site-footer nav a:hover {
  color: var(--t-accent);
  opacity: 1;
}

.footer-legal {
  margin-top: 48px;
  padding-top: 22px;
  padding-bottom: 12px;
  border-top: 1px solid var(--line);
  color: var(--t-soft);
  font-size: 0.85rem;
  text-align: center;
}

/* Bouton Discord flottant (mobile) */
.sticky-join {
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 55;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--discord), var(--discord-2));
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 16px 40px rgba(88, 101, 242, 0.55);
  transform: translate(-50%, 140%);
  transition: transform 0.4s var(--ease);
}

.sticky-join svg {
  width: 20px;
  height: 20px;
}

.sticky-join.is-visible {
  transform: translate(-50%, 0);
}

/* Fenêtre « rejoins le serveur » (connecté mais pas encore membre) */
.join-modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  animation: fade-in 0.3s ease both;
}

.join-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  width: min(440px, 100%);
  padding: 32px 26px 22px;
  border: 1px solid var(--line-2);
  border-radius: 26px;
  background: linear-gradient(180deg, var(--t-bg-2), var(--t-bg));
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
  text-align: center;
  animation: msg-in 0.45s var(--ease) both;
}

.join-card img {
  width: 96px;
  height: 96px;
  animation: float 5s ease-in-out infinite;
}

.join-card h2 {
  font-size: 1.6rem;
  font-weight: 900;
}

.join-card p {
  color: var(--t-soft);
}

.join-later {
  border: 0;
  background: none;
  color: var(--t-soft);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

@keyframes fade-in {
  from { opacity: 0; }
}

/* Sur écran tactile, les démos des modes se lancent toutes seules à l'apparition. */
@media (hover: none) {
  .mode.is-inview .mode-demo img {
    filter: none;
    transform: none;
    transition-delay: 0.6s;
    transition-duration: 2.4s;
  }
}

/* ---------- Apparition au défilement ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--delay, 0s);
}

.js .reveal.is-inview {
  opacity: 1;
  transform: none;
}

.js .tilt.reveal.is-inview {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: opacity 0.8s var(--ease), transform 0.25s ease-out;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .discord-app {
    grid-template-columns: 72px 220px minmax(0, 1fr);
  }

  .app-members {
    display: none;
  }

  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 18px 22px;
    background: rgba(var(--t-bg-rgb), 0.97);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.3s var(--ease), visibility 0.3s;
  }

  .nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .nav a {
    padding: 14px 12px;
    font-size: 1.05rem;
  }

  .header-actions {
    margin-left: auto;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .hero-grid,
  .teaser-grid,
  .about-grid,
  .rules-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: 0;
    gap: 16px;
  }

  .hero-stage {
    max-width: 320px;
    margin: 8px auto 0;
  }

  .stage-cards {
    order: 0;
    max-width: 520px;
    height: 400px;
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid,
  .mode-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .cta {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    padding: 36px 24px;
  }

  .sticky-join {
    display: inline-flex;
  }

  .ui-top {
    bottom: 84px;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 64px;
  }

  .wrap {
    padding: 0 16px;
  }

  .section {
    padding: 64px 0;
  }

  .brand-text small,
  .presence-pill {
    display: none !important;
  }

  .account [data-login] span {
    display: none;
  }

  .hero {
    padding-top: 16px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .float-card {
    font-size: 0.8rem;
    padding: 8px 12px;
  }

  .fc-1 { left: 0; }
  .fc-2 { left: 0; }
  .fc-3 { right: 0; }

  .invite {
    flex-wrap: wrap;
  }

  .invite .btn {
    width: 100%;
  }

  .discord-app {
    grid-template-columns: minmax(0, 1fr);
    height: 520px;
  }

  .app-guilds,
  .app-channels {
    display: none;
  }

  .app-input > span {
    display: none;
  }

  .app-input {
    justify-content: center;
  }

  .feature-grid,
  .mode-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .stat {
    padding: 18px;
  }

  .stage-cards {
    height: 340px;
  }

  .mini-card {
    width: 150px;
    padding: 12px;
  }

  .mini-frame {
    height: 118px;
  }

  .mini-card img {
    height: 110px;
  }

  .mc-2 { left: 28%; }

  .reward-gem {
    min-width: 96px;
    font-size: 1.6rem;
  }

  .simple-card {
    padding: 28px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .guess-img,
  .mode-demo img {
    transition: none;
  }
}
