/* Juste Magnus — luxe / confiance (accents inspirés juste-magnus.fr / MAXIMAWEB) */
:root {
  --bg: #04030a;
  --bg-elevated: #0c0b12;
  --surface: #12111a;
  --text: #f0ecfa;
  --text-muted: #7a7388;
  --accent: #b8a8d8;
  --accent-dim: #6d5f82;
  --accent-soft: rgba(155, 138, 184, 0.12);
  --neon-rose: #e94fb8;
  --neon-violet: #9d6bff;
  --line: rgba(157, 107, 255, 0.12);
  --mist: rgba(100, 90, 130, 0.18);
  --font-display: "Syne", system-ui, sans-serif;
  --font-brand: "Orbitron", system-ui, sans-serif;
  --font-nav-tech: "Rajdhani", system-ui, sans-serif;
  --font-ui: "Plus Jakarta Sans", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-mist: cubic-bezier(0.45, 0, 0.15, 1);
  --radius: 0;
  --section-y: clamp(2.5rem, 6vw, 4.25rem);
  --gap-tight: 0.75rem;
  --gap-md: 1rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.62;
  letter-spacing: 0.02em;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 75% 45% at 15% -5%, rgba(120, 64, 200, 0.22) 0%, transparent 50%),
    radial-gradient(ellipse 55% 40% at 95% 25%, rgba(90, 30, 80, 0.2) 0%, transparent 48%),
    radial-gradient(ellipse 50% 35% at 50% 100%, rgba(157, 107, 255, 0.06) 0%, transparent 55%),
    linear-gradient(180deg, #04030a 0%, #070510 50%, #04030a 100%);
  -webkit-font-smoothing: antialiased;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  opacity: 0.075;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.vignette {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9997;
  background: radial-gradient(ellipse 70% 60% at 50% 45%, transparent 30%, rgba(0, 0, 0, 0.55) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem min(4vw, 2rem);
  background: linear-gradient(to bottom, rgba(3, 3, 5, 0.94), transparent);
  transition: background 0.5s var(--ease-mist), backdrop-filter 0.5s;
}

.header.is-scrolled {
  background: rgba(5, 0, 18, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(157, 107, 255, 0.14);
}

.logo {
  font-family: var(--font-brand);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: none;
  color: var(--text);
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
}

.logo__mark {
  color: var(--accent);
}

.logo__prefix {
  color: var(--text);
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.35),
    0 0 22px rgba(157, 107, 255, 0.45);
}

.logo__accent {
  color: var(--neon-rose);
  text-shadow:
    0 0 16px rgba(233, 79, 184, 0.65),
    0 0 36px rgba(157, 107, 255, 0.35);
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  font-family: var(--font-nav-tech);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(224, 216, 248, 0.88);
  text-shadow: 0 0 18px rgba(157, 107, 255, 0.25);
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.nav a:hover {
  color: #f8f6ff;
  text-shadow:
    0 0 14px rgba(157, 107, 255, 0.75),
    0 0 28px rgba(233, 79, 184, 0.25);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
  transition: transform 0.3s var(--ease-out);
}

.nav-toggle.is-open span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle.is-open span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(300px, 85vw);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    background: rgba(8, 7, 14, 0.97);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform 0.45s var(--ease-out);
  }

  .nav.is-open {
    transform: translateX(0);
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: flex-end;
  padding: 6rem min(4vw, 2rem) 3rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--bg);
}

.hero__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
}

.hero__bg-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 100% 80% at 10% 0%, rgba(60, 40, 90, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse 70% 60% at 90% 100%, rgba(20, 15, 40, 0.5) 0%, transparent 50%),
    linear-gradient(195deg, rgba(3, 3, 8, 0.55) 0%, rgba(3, 3, 6, 0.35) 40%, rgba(3, 2, 8, 0.92) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .hero__video {
    display: none;
  }

  .hero__bg {
    inset: -15%;
    background:
      radial-gradient(ellipse 80% 50% at 20% 40%, rgba(100, 80, 140, 0.2), transparent 55%),
      radial-gradient(ellipse 60% 40% at 80% 60%, rgba(40, 35, 70, 0.18), transparent 50%),
      linear-gradient(180deg, var(--bg) 0%, #0a0812 100%);
  }

  .hero__bg-scrim {
    background: linear-gradient(180deg, rgba(10, 10, 12, 0.82) 0%, rgba(10, 10, 12, 0.55) 50%, rgba(10, 10, 12, 0.9) 100%);
  }
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: min(38rem, 92vw);
  margin-right: auto;
  margin-left: 0;
  padding-left: min(2vw, 1rem);
}

.hero__eyebrow {
  font-family: var(--font-nav-tech);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(233, 79, 184, 0.92);
  text-shadow: 0 0 20px rgba(233, 79, 184, 0.35);
  margin-bottom: 1.25rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8.5vw, 4.25rem);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 1.25rem;
  letter-spacing: -0.045em;
}

.hero__title span {
  display: block;
}

.hero__title-accent {
  font-style: normal;
  font-weight: 800;
  color: var(--neon-violet);
  text-shadow: 0 0 40px rgba(157, 107, 255, 0.35);
  margin-top: 0.12em;
}

.hero__lead {
  max-width: 26rem;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
  margin: 0 0 1.75rem;
  font-style: normal;
  line-height: 1.65;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-md);
}

.hero__scroll {
  position: absolute;
  bottom: 1.5rem;
  right: min(4vw, 2rem);
  left: auto;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--text-muted);
  writing-mode: horizontal-tb;
}

.hero__scroll-line {
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-dim), transparent);
  animation: scrollPulse 3.5s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scaleX(0.85);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.4s var(--ease-mist), color 0.35s, border-color 0.35s;
}

.btn--primary {
  background: transparent;
  color: var(--text);
  border-color: rgba(233, 79, 184, 0.65);
  box-shadow:
    0 0 14px rgba(233, 79, 184, 0.25),
    inset 0 0 0 1px rgba(157, 107, 255, 0.2);
}

.btn--primary:hover {
  background: rgba(233, 79, 184, 0.1);
  border-color: var(--neon-rose);
  box-shadow:
    0 0 22px rgba(233, 79, 184, 0.4),
    0 0 36px rgba(157, 107, 255, 0.2);
}

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--line);
}

.btn--ghost:hover {
  border-color: var(--accent-dim);
  color: var(--text);
}

.btn--full {
  width: 100%;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 {
  transition-delay: 0.08s;
}
.reveal--delay-2 {
  transition-delay: 0.16s;
}
.reveal--delay-3 {
  transition-delay: 0.24s;
}
.reveal--delay-4 {
  transition-delay: 0.32s;
}
.reveal--delay-5 {
  transition-delay: 0.4s;
}

/* Chiffres → fragments cryptiques */
.section--cipher {
  padding: 2rem 0;
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, transparent 0%, rgba(155, 138, 184, 0.04) 50%, transparent 100%);
}

.cipher {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.cipher__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.cipher-glyph-canvas {
  display: block;
  width: min(120px, 26vw);
  height: min(120px, 26vw);
  margin: 0 auto;
  image-rendering: crisp-edges;
  pointer-events: none;
}

.cipher__label {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--text-muted);
  max-width: 14rem;
  line-height: 1.45;
}

@media (max-width: 600px) {
  .cipher {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* Mini-jeu Pac-Man (inspiré MAXIMAWEB) */
.cipher-pacman {
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.cipher-pacman__label {
  margin: 0;
  font-family: var(--font-nav-tech);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--neon-violet);
  text-shadow: 0 0 12px rgba(157, 107, 255, 0.35);
  opacity: 0.9;
}

.pacman-module {
  width: 100%;
  max-width: 640px;
  display: flex;
  justify-content: center;
}

.pacman-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 5.25rem;
  height: 5.25rem;
  border-radius: 0;
  background: rgba(12, 11, 20, 0.6);
  border: 1px solid rgba(157, 107, 255, 0.45);
  box-shadow:
    0 0 18px rgba(157, 107, 255, 0.12),
    inset 0 0 0 1px rgba(233, 79, 184, 0.08);
  cursor: pointer;
  transition: border-color 0.3s var(--ease-mist), box-shadow 0.3s var(--ease-mist), transform 0.25s var(--ease-out);
}

.pacman-toggle:hover {
  border-color: var(--neon-rose);
  box-shadow:
    0 0 24px rgba(233, 79, 184, 0.25),
    0 0 40px rgba(157, 107, 255, 0.15);
  transform: scale(1.04);
}

.pacman-icon-canvas {
  width: 48px;
  height: 48px;
  display: block;
}

.pacman-toggle-label {
  font-family: var(--font-brand);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--neon-violet);
  text-shadow: 0 0 10px rgba(157, 107, 255, 0.4);
}

#pacman-bar.pacman-game {
  display: none;
  position: relative;
  width: 100%;
  height: 110px;
  overflow: hidden;
  background: rgba(5, 2, 18, 0.72);
  border: 1px solid var(--line);
  box-shadow:
    inset 0 0 0 1px rgba(157, 107, 255, 0.08),
    0 0 32px rgba(0, 0, 0, 0.35);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.pacman-module.open .pacman-toggle {
  display: none;
}

.pacman-module.open #pacman-bar.pacman-game {
  display: block;
}

.pacman-close {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  z-index: 10;
  width: 28px;
  height: 28px;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(157, 107, 255, 0.4);
  color: var(--text);
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.pacman-close:hover {
  background: rgba(233, 79, 184, 0.15);
  border-color: var(--neon-rose);
}

#pacman-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#pacman-score {
  position: absolute;
  right: 1rem;
  top: 0.5rem;
  font-family: var(--font-brand);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(200, 190, 230, 0.75);
  text-shadow: 0 0 12px rgba(157, 107, 255, 0.45);
  pointer-events: none;
  z-index: 1;
}

#pacman-hint {
  position: absolute;
  left: 1rem;
  top: 0.5rem;
  font-family: var(--font-brand);
  font-size: 0.48rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(157, 107, 255, 0.4);
  pointer-events: none;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .pacman-toggle:hover {
    transform: none;
  }
}

/* Confiance — bandeau discret */
.section--trust {
  padding-top: calc(var(--section-y) * 0.85);
  padding-bottom: calc(var(--section-y) * 0.95);
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.section__head--center {
  text-align: center;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.35rem;
}

.trust-logos-band {
  margin: 0 calc(-1 * min(4vw, 1.5rem));
  padding: 1.1rem clamp(0.75rem, 2vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(12, 11, 18, 0.45);
  box-shadow: inset 0 0 0 1px rgba(155, 138, 184, 0.06);
}

/* Défilement infini des logos (clone injecté par main.js) */
.trust-logos-marquee {
  overflow: hidden;
  width: 100%;
  /* Dégradé très léger sur les bords pour ne pas « manger » les logos (noirs sur fond sombre) */
  mask-image: linear-gradient(90deg, transparent 0%, #000 1.2%, #000 98.8%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 1.2%, #000 98.8%, transparent 100%);
}

.trust-logos-track {
  display: flex;
  width: max-content;
  min-height: 3.25rem;
  align-items: center;
}

.trust-logos-set {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(1.5rem, 4.5vw, 3rem);
  padding: 0.35rem 0;
  /* Même valeur que gap : espace avant la copie pour une boucle continue au translate -50 % */
  padding-right: clamp(1.5rem, 4.5vw, 3rem);
}

.trust-logos-marquee--animate .trust-logos-track {
  animation: trust-marquee-scroll 55s linear infinite;
  will-change: transform;
}

.trust-logos-marquee--animate:hover .trust-logos-track {
  animation-play-state: paused;
}

@keyframes trust-marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.trust-logos-marquee:not(.trust-logos-marquee--animate) .trust-logos-track {
  margin-left: auto;
  margin-right: auto;
}

.trust-logos-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4.5vw, 3rem);
  margin: 0;
  padding: 0.35rem 0;
  min-height: 3.25rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(155, 138, 184, 0.35) transparent;
}

.trust-logos-row::-webkit-scrollbar {
  height: 5px;
}

.trust-logos-row::-webkit-scrollbar-thumb {
  background: rgba(155, 138, 184, 0.35);
  border-radius: 2px;
}

.trust-logos__item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: center;
  padding: 0.25rem 0.35rem;
  min-height: 2.75rem;
}

.trust-logos__item img {
  display: block;
  height: clamp(26px, 4vw, 36px);
  width: auto;
  max-width: min(160px, 32vw);
  object-fit: contain;
  object-position: center;
  /* Noir pur (#000) : brightness seul ne suffit pas — passage en clair pour fond sombre */
  -webkit-filter: brightness(0) invert(1);
  filter: brightness(0) invert(1);
  opacity: 0.9;
  /* Couche de composition : meilleur rendu filtre + SVG en WebKit */
  transform: translateZ(0);
  backface-visibility: hidden;
  transition: filter 0.45s var(--ease-mist), opacity 0.35s, transform 0.45s var(--ease-mist);
}

/* Wordmarks déjà en clair (#d4cfc6 dans le SVG) ou recolorés (#e4e2eb) : ne pas inverser */
.trust-logos__item img[src*="arev"],
.trust-logos__item img[src*="byblos"],
.trust-logos__item img[src*="eden-rock"],
.trust-logos__item img[src*="mugler"],
.trust-logos__item img[src*="bentley"],
.trust-logos__item img[src*="loreal"],
.trust-logos__item img[src*="saint-laurent"] {
  -webkit-filter: brightness(1.2) contrast(1.06);
  filter: brightness(1.2) contrast(1.06);
  opacity: 0.92;
}

/* Logos couleur (PNG ou SVG multicolore) */
.trust-logos__item img[src*="schweppes"],
.trust-logos__item img[src*="carnival"] {
  -webkit-filter: grayscale(0.08) brightness(1.1) contrast(1.05) saturate(1.05);
  filter: grayscale(0.08) brightness(1.1) contrast(1.05) saturate(1.05);
  opacity: 0.9;
}

.trust-logos__item--wide img {
  max-width: min(190px, 38vw);
  height: clamp(30px, 4.5vw, 44px);
}

.trust-logos__item:hover img {
  -webkit-filter: brightness(0) invert(1) brightness(1.06);
  filter: brightness(0) invert(1) brightness(1.06);
  opacity: 0.98;
  transform: translateZ(0) scale(1.03);
}

.trust-logos__item:hover img[src*="arev"],
.trust-logos__item:hover img[src*="byblos"],
.trust-logos__item:hover img[src*="eden-rock"],
.trust-logos__item:hover img[src*="mugler"],
.trust-logos__item:hover img[src*="bentley"],
.trust-logos__item:hover img[src*="loreal"],
.trust-logos__item:hover img[src*="saint-laurent"] {
  -webkit-filter: brightness(1.28) contrast(1.05);
  filter: brightness(1.28) contrast(1.05);
  opacity: 0.98;
}

.trust-logos__item:hover img[src*="schweppes"],
.trust-logos__item:hover img[src*="carnival"] {
  -webkit-filter: grayscale(0.04) brightness(1.14) contrast(1.05) saturate(1.08);
  filter: grayscale(0.04) brightness(1.14) contrast(1.05) saturate(1.08);
  opacity: 0.95;
}

.trust-logos-note {
  margin: 1rem auto 0;
  max-width: 32rem;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .trust-logos-band {
    margin-left: 0;
    margin-right: 0;
  }

  .trust-logos-row {
    justify-content: flex-start;
    padding-left: 0.15rem;
    padding-right: 0.15rem;
    mask-image: linear-gradient(90deg, transparent 0%, #000 2.5%, #000 97.5%, transparent 100%);
  }

  .trust-logos-marquee {
    mask-image: linear-gradient(90deg, transparent 0%, #000 1.5%, #000 98.5%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 1.5%, #000 98.5%, transparent 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .trust-logos-marquee--animate .trust-logos-track {
    animation: none;
  }

  .trust-logos__item:hover img {
    transform: none;
  }
}

/* Sections */
.section {
  padding: var(--section-y) 0;
}

.section__head {
  margin-bottom: 1.5rem;
}

.section__head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--gap-md);
}

.section__eyebrow {
  font-family: var(--font-nav-tech);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--neon-violet);
  text-shadow: 0 0 16px rgba(157, 107, 255, 0.45);
  margin: 0 0 0.55rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  font-weight: 700;
  font-style: normal;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.035em;
}

.section__head--center .section__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  text-align: center;
}

.section__title-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.section__title-icon-svg {
  display: block;
  width: 2.35rem;
  height: 2.35rem;
}

.section__title-icon-svg--dial {
  animation: sectionIconFloat 5s ease-in-out infinite;
}

.section__title-icon-svg--shield {
  animation: sectionIconFloat 5.5s ease-in-out infinite;
  animation-delay: -1.2s;
}

.section__title-icon-svg--film {
  animation: sectionIconTilt 6s ease-in-out infinite;
}

.section__title-icon-svg--grid {
  animation: sectionIconPulse 4.5s ease-in-out infinite;
  animation-delay: -0.8s;
}

@keyframes sectionIconFloat {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.82;
  }
  50% {
    transform: translateY(-5px);
    opacity: 1;
  }
}

@keyframes sectionIconTilt {
  0%,
  100% {
    transform: rotate(-2deg) translateY(0);
  }
  50% {
    transform: rotate(2deg) translateY(-4px);
  }
}

@keyframes sectionIconPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.78;
    filter: drop-shadow(0 0 0 transparent);
  }
  50% {
    transform: scale(1.06);
    opacity: 1;
    filter: drop-shadow(0 0 14px rgba(155, 138, 184, 0.35));
  }
}

@media (prefers-reduced-motion: reduce) {
  .section__title-icon-svg--dial,
  .section__title-icon-svg--shield,
  .section__title-icon-svg--film,
  .section__title-icon-svg--grid {
    animation: none;
  }
}

.section__head--offset {
  max-width: 28rem;
  margin-bottom: 2rem;
}

/* Expertise — colonnes, sans cartes */
.expertise-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

.expertise-col {
  padding: 1.75rem 1.5rem 1.75rem 0;
  border-left: 1px solid transparent;
}

.expertise-col:first-child {
  padding-right: clamp(1rem, 3vw, 2rem);
  border-right: 1px solid var(--line);
}

.expertise-col:last-child {
  padding-left: clamp(1rem, 3vw, 2rem);
}

.expertise-col__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  font-style: normal;
  margin: 0 0 1rem;
  color: var(--text);
}

.expertise-col__text {
  color: var(--text-muted);
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.65;
}

.expertise-col__aside {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--accent-dim);
  margin: 0;
  font-style: normal;
}

@media (max-width: 768px) {
  .expertise-split {
    grid-template-columns: 1fr;
    border-top: none;
  }

  .expertise-col:first-child {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
    padding-bottom: 1.75rem;
  }

  .expertise-col:last-child {
    padding-left: 0;
    padding-top: 1.75rem;
  }
}

/* Showreel */
.section--showreel {
  padding: 0;
}

.showreel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 340px;
}

@media (max-width: 900px) {
  .showreel {
    grid-template-columns: 1fr;
    min-height: auto;
  }
}

.showreel__media {
  min-height: 260px;
}

.showreel__placeholder {
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  background:
    linear-gradient(145deg, rgba(60, 45, 90, 0.35) 0%, transparent 55%),
    linear-gradient(225deg, rgba(15, 12, 28, 0.9), var(--bg-elevated));
  border-right: 1px solid var(--line);
}

.showreel__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  opacity: 0.92;
}

.showreel__play {
  width: 56px;
  height: 56px;
  border: 1px solid var(--accent-dim);
  border-radius: 50%;
  position: relative;
  z-index: 1;
  transition: transform 0.5s var(--ease-mist), box-shadow 0.5s;
}

.showreel__play::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-32%, -50%);
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent var(--accent);
}

.showreel__placeholder:hover .showreel__play {
  transform: scale(1.06);
  box-shadow: 0 0 48px rgba(100, 80, 140, 0.35);
}

.showreel__caption {
  position: relative;
  z-index: 1;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: none;
  color: var(--text-muted);
  margin: 0;
}

.showreel__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.35rem min(4vw, 2rem);
}

.showreel__text {
  color: var(--text-muted);
  max-width: 28rem;
  margin: 0;
  font-size: 0.95rem;
}

@media (prefers-reduced-motion: reduce) {
  .showreel__canvas {
    display: none;
  }
}

/* Work grid */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-tight);
}

.work-item--wide {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-item--wide {
    grid-column: span 1;
  }
}

.work-item {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.35s, transform 0.45s var(--ease-out);
}

.work-item:hover {
  border-color: rgba(155, 138, 184, 0.35);
  transform: translateY(-3px);
}

.work-item--shift {
  transform: translateY(1.25rem);
}

@media (max-width: 768px) {
  .work-item--shift {
    transform: none;
  }
}

.work-item__img {
  aspect-ratio: 16 / 9;
  background: linear-gradient(
    145deg,
    hsl(var(--hue, 260), 22%, 16%) 0%,
    hsl(calc(var(--hue, 260) + 35), 18%, 9%) 100%
  );
  transition: transform 0.65s var(--ease-mist);
}

.work-item:hover .work-item__img {
  transform: scale(1.04);
}

.work-item__meta {
  padding: 0.85rem 1rem 1rem;
}

.work-item__cat {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--accent-dim);
}

.work-item__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0.2rem 0 0.15rem;
}

.work-item__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.link-arrow {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text-muted);
  transition: color 0.35s var(--ease-mist);
}

.link-arrow::after {
  content: " →";
  transition: transform 0.25s;
  display: inline-block;
}

.link-arrow:hover {
  color: var(--accent);
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

/* Contact */
.section--contact {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 50%, var(--bg) 100%);
}

.section--contact::before {
  content: "";
  position: absolute;
  inset: -25%;
  background: radial-gradient(ellipse 45% 38% at 72% 28%, rgba(100, 80, 140, 0.12) 0%, transparent 58%);
  pointer-events: none;
  animation: contactAura 22s ease-in-out infinite alternate;
}

@keyframes contactAura {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate3d(3%, -5%, 0) scale(1.04);
    opacity: 0.82;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section--contact::before {
    animation: none;
  }
}

.contact {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 768px) {
  .contact {
    grid-template-columns: 1fr;
  }
}

.contact__text {
  color: var(--text-muted);
  max-width: 28rem;
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form__field span {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text-muted);
}

.form__field input,
.form__field textarea {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  padding: 0.65rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color 0.25s;
}

.form__field input::placeholder,
.form__field textarea::placeholder {
  color: rgba(138, 135, 128, 0.7);
}

.form__field input:focus,
.form__field textarea:focus {
  outline: none;
  border-color: rgba(155, 138, 184, 0.45);
}

.form__field--full {
  grid-column: span 2;
}

.form .btn--full {
  grid-column: span 2;
  margin-top: 0;
}

@media (max-width: 600px) {
  .form {
    grid-template-columns: 1fr;
  }

  .form__field--full,
  .form .btn--full {
    grid-column: span 1;
  }
}

/* Contact + bot (inspiré MAXIMAWEB) */
.section--contact {
  padding: var(--section-y) 0 calc(var(--section-y) * 1.1);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent 0%, rgba(157, 107, 255, 0.04) 40%, transparent 100%);
  scroll-margin-top: 5rem;
}

.contact-layout {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 4vw, 2.5rem);
}

.contact-intro {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.contact-sub {
  max-width: 34rem;
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.contact-sub em {
  color: rgba(240, 236, 250, 0.88);
  font-style: italic;
  font-weight: 500;
}

.contact-mail-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1rem 1.75rem;
  min-width: min(100%, 20rem);
  background: linear-gradient(145deg, rgba(157, 107, 255, 0.09) 0%, rgba(18, 17, 26, 0.92) 100%);
  border: 1px solid rgba(157, 107, 255, 0.28);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 12px 40px rgba(0, 0, 0, 0.35),
    0 0 32px rgba(157, 107, 255, 0.08);
  text-decoration: none;
  transition:
    border-color 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out),
    transform 0.25s var(--ease-out);
}

.contact-mail-chip:hover {
  border-color: rgba(233, 79, 184, 0.45);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 16px 48px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(233, 79, 184, 0.15);
  transform: translateY(-2px);
}

.contact-mail-chip__label {
  font-family: var(--font-nav-tech);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-mail-chip__addr {
  font-family: var(--font-brand);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--neon-rose);
  text-shadow: 0 0 20px rgba(233, 79, 184, 0.4);
}

.contact-bot-panel {
  padding: clamp(1.25rem, 3vw, 1.65rem);
  background: linear-gradient(165deg, rgba(12, 11, 18, 0.94) 0%, rgba(8, 7, 14, 0.88) 100%);
  border: 1px solid rgba(157, 107, 255, 0.22);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 24px 64px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
}

.contact-bot-panel__toolbar {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(157, 107, 255, 0.12);
}

.contact-bot-panel__title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.45rem;
}

.contact-bot-panel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-rose);
  box-shadow: 0 0 12px var(--neon-rose);
  animation: contactBotPulse 2s ease-in-out infinite;
}

@keyframes contactBotPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.65;
    transform: scale(0.92);
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-bot-panel__dot {
    animation: none;
  }
}

.contact-bot-panel__name {
  font-family: var(--font-brand);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}

.contact-bot-panel__hint {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  max-width: 36rem;
}

.bot-widget {
  display: flex;
  align-items: stretch;
  gap: clamp(1rem, 3vw, 1.75rem);
}

.bot-avatar-wrap {
  flex-shrink: 0;
  align-self: center;
  padding: 0.6rem;
  border-radius: 1.25rem;
  background: radial-gradient(ellipse 80% 80% at 40% 35%, rgba(157, 107, 255, 0.2) 0%, transparent 65%);
  border: 1px solid rgba(157, 107, 255, 0.2);
  box-shadow: 0 0 24px rgba(157, 107, 255, 0.12);
}

#bot-canvas {
  display: block;
  width: 120px;
  height: 120px;
  filter: drop-shadow(0 4px 20px rgba(157, 107, 255, 0.35));
}

.bot-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}

.bot-messages {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: min(240px, 32vh);
  overflow-y: auto;
  padding: 0.35rem 0.5rem 0.35rem 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(157, 107, 255, 0.35) transparent;
}

.bot-bubble {
  padding: 0.75rem 1.15rem;
  border-radius: 0.35rem 1rem 1rem 1rem;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  line-height: 1.5;
  max-width: 94%;
  animation: bubblePop 0.28s var(--ease-out);
}

@keyframes bubblePop {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.bot-bubble.bot {
  background: linear-gradient(135deg, rgba(157, 107, 255, 0.14) 0%, rgba(12, 11, 18, 0.65) 100%);
  border: 1px solid rgba(157, 107, 255, 0.32);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 0.2rem;
}

.bot-bubble.user {
  background: linear-gradient(135deg, rgba(233, 79, 184, 0.18) 0%, rgba(12, 11, 18, 0.5) 100%);
  border: 1px solid rgba(233, 79, 184, 0.38);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
  color: rgba(240, 236, 250, 0.96);
  align-self: flex-end;
  border-radius: 1rem 0.35rem 1rem 1rem;
  border-bottom-right-radius: 0.2rem;
}

.bot-bubble.typing-dots {
  letter-spacing: 4px;
  font-size: 1.15rem;
  animation: botBlink 1s step-start infinite;
}

@keyframes botBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.bot-input-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.25rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(157, 107, 255, 0.18);
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.bot-input-row input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1rem 0.7rem 1.15rem;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  outline: none;
  transition: opacity 0.2s;
}

.bot-input-row:focus-within {
  border-color: rgba(157, 107, 255, 0.42);
  box-shadow:
    0 0 0 1px rgba(157, 107, 255, 0.15),
    0 0 24px rgba(157, 107, 255, 0.12);
}

.bot-input-row input:focus {
  outline: none;
}

.bot-input-row input::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

#bot-send {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(157, 107, 255, 0.45), rgba(233, 79, 184, 0.35));
  box-shadow: 0 4px 16px rgba(157, 107, 255, 0.3);
  color: var(--text);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.bot-send__icon {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1;
}

#bot-send:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 22px rgba(233, 79, 184, 0.35);
}

#bot-send:active {
  transform: scale(0.97);
}

@media (max-width: 640px) {
  .bot-widget {
    flex-direction: column;
    align-items: stretch;
  }

  .bot-avatar-wrap {
    align-self: center;
  }

  #bot-canvas {
    width: 104px;
    height: 104px;
  }

  .bot-chat {
    width: 100%;
  }

  .contact-bot-panel__hint {
    font-size: 0.76rem;
  }
}

/* Panneau admin bot (onglets Chat + Entraînement si backend /api) */
#admin-panel {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 10002;
  width: min(360px, calc(100vw - 2rem));
  background: rgba(5, 2, 18, 0.97);
  border: 1px solid rgba(157, 107, 255, 0.55);
  border-radius: 0;
  box-shadow:
    0 0 36px rgba(157, 107, 255, 0.25),
    0 12px 40px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--font-ui);
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.95rem;
  background: rgba(157, 107, 255, 0.12);
  border-bottom: 1px solid rgba(157, 107, 255, 0.28);
  gap: 0.5rem;
}

.admin-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-brand);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--neon-violet);
  text-transform: uppercase;
}

.admin-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon-rose);
  box-shadow: 0 0 10px var(--neon-rose);
  animation: adminPulse 1.5s ease infinite;
}

@keyframes adminPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

.admin-header-right {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.admin-badge {
  background: var(--neon-rose);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(233, 79, 184, 0.5);
}

.admin-header button {
  background: transparent;
  border: 1px solid rgba(157, 107, 255, 0.4);
  color: var(--text);
  border-radius: 0;
  width: 26px;
  height: 26px;
  cursor: pointer;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}

.admin-header button:hover {
  border-color: var(--neon-violet);
  color: #fff;
}

.admin-body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 0.75rem;
}

.admin-log {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 240px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(157, 107, 255, 0.35) transparent;
}

.admin-info {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-align: center;
  padding: 0.85rem 0;
  font-style: italic;
}

.admin-msg {
  font-size: 0.8rem;
  line-height: 1.45;
  padding: 0.5rem 0.75rem;
  border-radius: 0;
  max-width: 92%;
}

.admin-in {
  background: rgba(157, 107, 255, 0.1);
  border: 1px solid rgba(157, 107, 255, 0.28);
  color: var(--text);
  align-self: flex-start;
}

.admin-out {
  background: rgba(233, 79, 184, 0.08);
  border: 1px solid rgba(233, 79, 184, 0.28);
  color: rgba(240, 236, 250, 0.95);
  align-self: flex-end;
}

.admin-lead {
  line-height: 1.55;
}

.admin-input-row {
  display: flex;
  gap: 0.5rem;
}

.admin-input-row input {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(157, 107, 255, 0.38);
  border-radius: 0;
  padding: 0.55rem 0.85rem;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  outline: none;
}

.admin-input-row input:focus {
  border-color: var(--neon-violet);
  box-shadow: 0 0 10px rgba(157, 107, 255, 0.22);
}

#admin-send-btn {
  background: rgba(157, 107, 255, 0.18);
  border: 1px solid rgba(157, 107, 255, 0.5);
  border-radius: 0;
  color: var(--text);
  width: 38px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s, box-shadow 0.2s;
}

#admin-send-btn:hover {
  background: rgba(157, 107, 255, 0.32);
  box-shadow: 0 0 12px rgba(157, 107, 255, 0.35);
}

.admin-hint {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
}

.admin-tabs {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.admin-tab {
  flex: 1;
  background: transparent;
  border: 1px solid rgba(157, 107, 255, 0.28);
  border-radius: 0;
  color: var(--text-muted);
  padding: 0.4rem;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.admin-tab.active {
  background: rgba(157, 107, 255, 0.15);
  border-color: var(--neon-violet);
  color: var(--text);
}

.admin-tab:hover:not(.active) {
  border-color: rgba(157, 107, 255, 0.5);
  color: var(--text);
}

.admin-tab-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 0;
  overflow: hidden;
}

.admin-save-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
}

.admin-save-label input {
  accent-color: var(--neon-violet);
}

.ml-tag {
  display: inline-block;
  background: rgba(233, 79, 184, 0.1);
  border: 1px solid rgba(233, 79, 184, 0.28);
  color: var(--neon-rose);
  font-size: 0.58rem;
  padding: 1px 5px;
  border-radius: 0;
  margin-left: 4px;
  vertical-align: middle;
}

.admin-info-ok {
  color: rgba(160, 220, 200, 0.95);
  font-size: 0.7rem;
  padding: 0.3rem 0;
  font-style: italic;
}

.admin-info-err {
  color: var(--neon-rose);
  font-size: 0.7rem;
  padding: 0.3rem 0;
  font-style: italic;
}

.train-add-form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex-shrink: 0;
}

.train-add-form input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(157, 107, 255, 0.32);
  border-radius: 0;
  padding: 0.45rem 0.8rem;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 0.76rem;
  outline: none;
}

.train-add-form input:focus {
  border-color: var(--neon-violet);
}

#train-add-btn {
  background: rgba(157, 107, 255, 0.15);
  border: 1px solid rgba(157, 107, 255, 0.45);
  border-radius: 0;
  color: var(--text);
  padding: 0.45rem;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 0.76rem;
  transition: background 0.2s;
}

#train-add-btn:hover {
  background: rgba(157, 107, 255, 0.28);
}

.train-list {
  overflow-y: auto;
}

.train-entry {
  position: relative;
  background: rgba(157, 107, 255, 0.06);
  border: 1px solid rgba(157, 107, 255, 0.2);
  border-radius: 0;
  padding: 0.55rem 2.2rem 0.55rem 0.65rem;
  margin-bottom: 0.4rem;
}

.train-q {
  font-size: 0.74rem;
  color: var(--neon-violet);
  margin-bottom: 0.2rem;
}

.train-a {
  font-size: 0.78rem;
  color: var(--text);
}

.train-meta {
  font-size: 0.62rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.train-del {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 0.74rem;
  opacity: 0.45;
  transition: opacity 0.2s;
}

.train-del:hover {
  opacity: 1;
}

/* Footer */
.footer {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.footer__inner {
  text-align: center;
}

.footer__brand {
  font-family: var(--font-brand);
  font-size: 1.05rem;
  font-style: normal;
  font-weight: 700;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.1em;
  text-transform: none;
}

.footer__tagline {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  margin: 0 0 0.65rem;
}

.footer__legal {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  margin: 0;
  opacity: 0.8;
}

.nav a[aria-current="page"] {
  color: #f8f6ff;
  text-shadow:
    0 0 14px rgba(157, 107, 255, 0.85),
    0 0 28px rgba(233, 79, 184, 0.35);
}

/* Page productions */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.productions-page {
  padding-top: 4.5rem;
}

.productions-hero {
  padding: clamp(2.5rem, 8vw, 4rem) min(4vw, 2rem) clamp(1.5rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}

.productions-hero__eyebrow {
  font-family: var(--font-nav-tech);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--neon-violet);
  text-shadow: 0 0 14px rgba(157, 107, 255, 0.4);
  margin: 0 0 1rem;
}

.productions-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0 0 1rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.productions-hero__title .section__title-icon-svg {
  width: clamp(2rem, 5vw, 2.75rem);
  height: clamp(2rem, 5vw, 2.75rem);
}

.section__title--productions-grid {
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
  justify-content: flex-start;
  text-align: left;
}

.section--productions .section__title--productions-grid {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.productions-hero__lead {
  max-width: 40rem;
  font-size: 1.02rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  line-height: 1.65;
}

.productions-hero__note {
  max-width: 36rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  opacity: 0.85;
  margin: 0;
  line-height: 1.55;
}

.section--productions {
  padding-top: clamp(1.75rem, 4vw, 2.5rem);
  padding-bottom: var(--section-y);
}

.productions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: clamp(1.25rem, 3vw, 1.75rem);
}

.production-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.35s var(--ease-mist), box-shadow 0.45s var(--ease-mist);
}

.production-card:hover {
  border-color: rgba(155, 138, 184, 0.22);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.production-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #050508;
}

.production-card__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.production-card__body {
  padding: 1rem 1.1rem 1.15rem;
}

.production-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
  color: var(--text);
}

.production-card__tag {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin: 0;
  text-transform: none;
}

@media (max-width: 768px) {
  .productions-grid {
    grid-template-columns: 1fr;
  }
}
