/* Chez Emp0o — jeu vidéo contemporain, mythologie grecque en touches légères. */
:root {
  --bg: #070e1b;
  --panel: #101b2e;
  --lime: #69c5ff;
  --violet: #ad83ff;
  --gold: #d8b477;
  --line: rgba(124, 170, 222, .22);
}

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 12% 0%, rgba(53, 116, 184, .075), transparent 38%),
    radial-gradient(ellipse at 96% 85%, rgba(119, 72, 175, .065), transparent 35%),
    repeating-linear-gradient(115deg, transparent 0 345px, rgba(219, 231, 238, .012) 346px, transparent 348px);
}

::selection { background: var(--lime); color: #071322; }
:focus-visible { outline-color: var(--lime); }
.skip { color: #071322; }

/* Navigation */
.site-header {
  background: rgba(7, 14, 27, .96);
  border-bottom-color: rgba(110, 160, 223, .22);
  box-shadow: inset 0 1px rgba(202, 172, 113, .15);
}
.nav-links { color: #c6d2e5; gap: clamp(16px, 2.2vw, 31px); white-space: nowrap; }
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-family: 'Oxanium', 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: .94rem;
  letter-spacing: .015em;
  color: #dceaff;
  text-shadow: 0 0 12px rgba(86, 163, 255, .26);
  transition: color .2s, text-shadow .2s;
}
.nav-links a:hover, .nav-links a:focus-visible {
  color: #acdfff;
  text-shadow: 0 0 16px rgba(95, 187, 255, .65), 0 0 26px rgba(163, 103, 255, .3);
}
.nav-links a:hover, .footer a:hover { color: var(--lime); }
.nav-pill {
  border-color: rgba(124, 170, 222, .3);
  background: rgba(29, 55, 87, .18);
}
.nav-pill:hover {
  border-color: var(--lime);
  background: rgba(91, 170, 236, .12);
}
.nav-actions {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-actions .nav-pill { grid-column: auto; grid-row: auto; justify-self: auto; }

.live-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 196px;
  padding: 7px 12px 8px;
  border: 1px solid rgba(100, 170, 234, .24);
  border-radius: 12px;
  background: linear-gradient(130deg, rgba(62, 126, 206, .095), rgba(132, 77, 205, .055));
  color: #f3f7ff;
  box-shadow: inset 0 1px rgba(255, 255, 255, .04);
}
.live-badge-label {
  color: #b7c9e1;
  font: 700 .61rem/1.2 'Oxanium', 'Space Grotesk', sans-serif;
  letter-spacing: .055em;
  text-transform: uppercase;
  white-space: nowrap;
}
.live-badge-brands, .live-brand { display: inline-flex; align-items: center; }
.live-badge-brands { gap: 7px; white-space: nowrap; }
.live-brand { gap: 4px; font: 700 .76rem/1 'Oxanium', 'Space Grotesk', sans-serif; }
.tiktok-icon { width: 18px; height: 18px; flex: none; overflow: visible; }
.tikfinity-icon { display: block; width: 19px; height: 19px; flex: none; border-radius: 4px; object-fit: cover; }
.live-plus { color: var(--gold); font-size: .8rem; font-weight: 700; }

/* Accueil : logo fourni, sans fond, au centre de la scène. */
.hero {
  min-height: 690px;
  background:
    radial-gradient(ellipse at 50% 44%, rgba(44, 100, 161, .22), transparent 40%),
    radial-gradient(ellipse at 74% 48%, rgba(126, 73, 184, .13), transparent 42%),
    linear-gradient(150deg, #080f1e, #0e1b31 53%, #090f20);
}

.hero::after {
  left: 50%; right: auto; top: 47%;
  width: min(64vw, 660px);
  transform: translate(-50%, -50%);
  border-color: rgba(102, 175, 247, .24);
  box-shadow:
    0 0 0 35px rgba(73, 129, 205, .028),
    0 0 0 94px rgba(163, 109, 226, .02),
    inset 0 0 100px rgba(72, 126, 205, .06),
    0 0 105px rgba(101, 69, 196, .11);
}
.hero-glow {
  left: 50%; right: auto; top: 46%;
  width: min(55vw, 560px);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(73, 159, 245, .17), rgba(140, 91, 228, .11) 47%, transparent 72%);
  animation: aura-pulse 6s ease-in-out infinite;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 65px;
  padding-bottom: 100px;
}
.hero-showcase {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: clamp(440px, 38vw, 540px);
}

.eyebrow { color: var(--gold); }
.eyebrow::before { background: var(--gold); }
.hero h1.hero-logo {
  position: relative;
  isolation: isolate;
  z-index: 2;
  width: clamp(350px, 42vw, 535px);
  max-width: 100%;
  margin: 10px 0 0;
}
.hero-logo::before, .hero-logo::after {
  content: '';
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 51%;
  width: 76%;
  aspect-ratio: 1;
  border: 2px solid rgba(84, 190, 255, .8);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 0 18px rgba(79, 183, 255, .55), inset 0 0 17px rgba(79, 183, 255, .27);
  transform: translate(-50%, -50%) scale(.66);
  animation: shock-ring 6s cubic-bezier(.18, .58, .32, 1) infinite;
  will-change: transform, opacity;
}
.hero-logo::after {
  width: 84%;
  border-color: rgba(180, 116, 255, .7);
  box-shadow: 0 0 22px rgba(169, 94, 255, .5), inset 0 0 15px rgba(169, 94, 255, .22);
  animation-delay: .18s;
}
.hero-logo img {
  width: 100%;
  max-width: 100%;
  mix-blend-mode: normal;
  animation: none;
}
.hero-logo .logo-mark {
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 14px 43px rgba(70, 119, 251, .16));
}
.hero-logo .logo-halo {
  position: absolute;
  inset: 0;
  z-index: 1;
  height: auto;
  opacity: 0;
  pointer-events: none;
  filter: blur(2px) drop-shadow(0 0 16px rgba(52, 175, 255, .9)) drop-shadow(0 0 34px rgba(153, 87, 255, .78));
  animation: contour-halo 6s ease-in-out infinite;
}
.tagline { color: #e0eaff; font-weight: 600; margin-bottom: 29px; }
.primary { border-color: #83cfff; background: #83cfff; color: #071525; }
.primary:hover { box-shadow: 0 10px 38px rgba(84, 172, 249, .24); }
.hero-note { left: 20px; right: 20px; bottom: 27px; text-align: center; color: #9eaeca; }

/* Catalogue */
.section {
  background: radial-gradient(ellipse at 52% 0%, rgba(56, 95, 169, .085), transparent 60%);
}
.section-kicker { color: var(--gold); }
.section h2 { color: #f1f5ff; }
.section-count { color: #a3b2ca; }
.game-card {
  border-color: rgba(117, 163, 226, .24);
  background: #101b2e;
  box-shadow: 0 18px 80px rgba(0, 0, 0, .22), inset 0 0 0 1px rgba(208, 180, 119, .035);
}
.game-card:hover, .game-card:focus-within {
  border-color: rgba(123, 191, 255, .75);
  box-shadow: 0 20px 72px rgba(45, 87, 158, .19), 0 0 32px rgba(116, 87, 228, .09);
}
.card-overlay {
  background:
    linear-gradient(180deg, rgba(5, 13, 29, .06), rgba(5, 13, 29, .28) 40%, rgba(5, 13, 29, .95) 88%),
    linear-gradient(90deg, rgba(5, 13, 29, .14), transparent 70%);
}
.card-index::before { background: var(--lime); box-shadow: 0 0 15px var(--lime); }
.discover { border-color: rgba(140, 188, 239, .59); background: rgba(11, 24, 44, .44); }
.game-card:hover .discover, .game-card:focus-within .discover {
  border-color: #89cfff; background: #89cfff; color: #071525;
}
.mystery {
  background: radial-gradient(ellipse at 67% 43%, rgba(133, 91, 203, .23), transparent 48%), linear-gradient(120deg, #111b31, #0a1526);
}
.mystery .card-overlay { background: linear-gradient(90deg, #0b1629, rgba(11, 22, 41, .77) 55%, rgba(11, 22, 41, .25)); }
.lock-mark { color: rgba(169, 127, 232, .24); filter: drop-shadow(0 0 25px rgba(130, 104, 236, .19)); }

/* Présentations des jeux et affiche des règles */
.about {
  border-color: rgba(129, 174, 218, .18);
  background:
    radial-gradient(circle at 88% 27%, rgba(110, 87, 180, .13), transparent 30%),
    repeating-linear-gradient(117deg, transparent 0 284px, rgba(219, 228, 233, .018) 285px, transparent 288px),
    #0d1a2e;
}
.about strong { color: #e4c286; }
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding-top: 34px;
  padding-bottom: 72px;
}
.info-panel {
  scroll-margin-top: 22px;
  min-height: 222px;
  padding: clamp(27px, 3vw, 42px);
  border: 1px solid rgba(124, 170, 222, .22);
  border-radius: 18px;
  background: radial-gradient(circle at 100% 0%, rgba(91, 112, 195, .11), transparent 48%), rgba(15, 29, 49, .74);
}
.info-panel h2 { font: 700 clamp(1.8rem, 2.7vw, 2.5rem)/1.08 'Space Grotesk', sans-serif; letter-spacing: -.055em; margin: 0 0 16px; }
.info-panel p:last-child { max-width: 58ch; margin: 0; color: #c9d1e0; font-size: 1rem; line-height: 1.65; }
.footer { border-top: 1px solid rgba(129, 174, 218, .1); }
dialog {
  background: #101c30;
  border-color: rgba(126, 172, 234, .3);
  box-shadow: 0 30px 120px rgba(0, 0, 0, .75), 0 0 45px rgba(85, 65, 160, .12);
}
dialog::backdrop { background: rgba(3, 8, 20, .84); }
.dialog-art::after { background: linear-gradient(transparent 28%, #101c30); }
.dialog-close { background: rgba(9, 23, 43, .8); }
.dialog-kicker { color: var(--gold); }
.rules-trigger {
  border-color: rgba(119, 188, 255, .67);
  background: rgba(70, 145, 228, .12);
  color: #c8eaff;
}
.rules-trigger:hover { background: rgba(80, 156, 239, .22); }
.future-action {
  border-color: rgba(155, 129, 227, .44);
  background: rgba(130, 95, 196, .09);
  color: #c6b7e6;
}
.rules-toolbar { background: #101c30; }
.rules-toolbar button { background: #172a45; border-color: rgba(119, 171, 226, .33); }
.rules-scroll { background: #071322; }

@keyframes contour-halo { 0%, 12%, 100% { opacity: 0; } 23% { opacity: .34; } 33% { opacity: .72; } 47% { opacity: .48; } 70% { opacity: 0; } }
@keyframes shock-ring {
  0%, 12%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(.66); }
  22% { opacity: .7; transform: translate(-50%, -50%) scale(.82); }
  43% { opacity: .38; transform: translate(-50%, -50%) scale(1.12); }
  70% { opacity: 0; transform: translate(-50%, -50%) scale(1.65); }
}
@keyframes aura-pulse { 0%, 100% { opacity: .55; } 32% { opacity: 1; } 70% { opacity: .64; } }

@media (max-width: 950px) {
  .nav { height: auto; min-height: 0; grid-template-columns: 1fr; grid-template-rows: 83px 62px auto; gap: 0; padding-bottom: 14px; }
  .site-header .brand { grid-column: 1; grid-row: 1; width: 94px; height: 78px; }

  .nav-actions { grid-column: 1; grid-row: 2; justify-self: center; }
  .nav-links { grid-column: 1; grid-row: 3; display: flex; justify-content: center; justify-self: stretch; gap: clamp(15px, 4vw, 32px); font-size: .875rem; }
  .nav-pill { display: none; }
  .hero-showcase { min-height: 0; }

}
@media (max-width: 850px) {
  .hero::after { width: min(85vw, 620px); left: 50%; right: auto; }

  .info-grid { grid-template-columns: 1fr; gap: 14px; }
  .info-panel { min-height: auto; }
}
@media (max-width: 600px) {
  .hero { min-height: 630px; }
  .hero-inner { padding-top: 63px; padding-bottom: 99px; }
  .hero h1.hero-logo { margin: 12px 0 0; }
  .hero h1.hero-logo { width: min(88vw, 390px); }
  .hero-logo img { width: 100%; }
  .hero-logo::before { width: 68%; }
  .hero-logo::after { width: 74%; }
  .hero::after { width: 86vw; left: 50%; top: 42%; right: auto; opacity: .8; }
  .hero-glow { width: 82vw; left: 50%; top: 42%; right: auto; }

  .tagline { margin-bottom: 28px; }
  .nav { min-height: 0; grid-template-rows: 90px 60px auto; padding-bottom: 13px; }
  .site-header .brand { width: 94px; height: 86px; }

  .nav-links { display: flex; justify-content: space-between; gap: 6px; }
  .nav-links a { font-size: .875rem; letter-spacing: -.015em; }
  .nav-pill { display: none; }
  .info-grid { padding-top: 22px; padding-bottom: 52px; }
  .info-panel { padding: 27px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-logo, .hero-logo .logo-halo, .hero-glow { animation: none !important; }
  .hero-logo::before, .hero-logo::after { animation: none !important; opacity: 0; }
}

.footer .footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 74px;
  height: 74px;
}
.footer .footer-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }

.nav-links .client-mobile { display: none; }
@media (max-width: 950px) {
  .nav-links .client-mobile { display: inline-flex; color: var(--gold); }
}
@media (max-width: 600px) {
  .nav-links { justify-content: center; flex-wrap: wrap; gap: 7px 17px; }
  .nav-links a { font-size: .79rem; }
}
