
/* DYNASTY 8 — LUXE & NEON V2 */
/* Design uniquement : Discord et Supabase inchanges */

:root {
  --d8-bg: #0d0815;
  --d8-panel: #1b1029;
  --d8-purple: #ad6bff;
  --d8-light: #ead5ff;
  --d8-border: rgba(192, 135, 255, .32);
}

/* Ambiance generale */
body {
  background: var(--d8-bg);
  color: #f8f2ff;
}

main {
  background:
    radial-gradient(ellipse at 50% 12%,
      rgba(114, 43, 182, .13),
      transparent 48%),
    var(--d8-bg);
}

/* Barre de navigation */
.nav {
  border-bottom: 1px solid rgba(190, 125, 255, .15);
}

.brand-text {
  text-shadow: 0 0 22px rgba(174, 94, 255, .65);
}

.nav nav a {
  transition: color .25s, text-shadow .25s;
}

.nav nav a:hover {
  color: #e9caff;
  text-shadow: 0 0 18px rgba(180, 100, 255, .8);
}

/* Bannière Dynasty 8 */
.header {
  background: #10091b;
}

.hero-banner img {
  filter: saturate(1.08) brightness(.98);
}

.replay-intro {
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

/* Presentation de l'agence */
.welcome {
  padding-top: 70px;
  padding-bottom: 70px;
}

.welcome-copy {
  max-width: 1080px;
  margin: auto;
  text-align: center;
}

.welcome h2 {
  font-family: 'Anton', sans-serif;
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 400;
  letter-spacing: .035em;
  color: #fff;
  text-shadow: 0 0 28px rgba(169, 88, 255, .4);
}

.welcome .question {
  color: #dfc3ff;
  font-size: clamp(18px, 2.3vw, 25px);
  border-color: var(--d8-border);
}

.welcome p {
  max-width: 850px;
  margin: 22px auto;
  color: #cbbbd9;
  line-height: 1.85;
}

/* Nouveau bloc prestige */
.d8-prestige {
  width: min(1180px, 92%);
  margin: 0 auto 90px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid var(--d8-border);
  border-radius: 28px;
  background: linear-gradient(135deg, #251437, #100b1b);
  box-shadow: 0 25px 80px rgba(0, 0, 0, .35);
}

.d8-prestige-visual {
  min-height: 390px;
  background:
    linear-gradient(90deg, transparent, rgba(25, 9, 40, .25)),
    url('https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=1400&q=85')
    center / cover;
}

.d8-prestige-content {
  padding: clamp(28px, 5vw, 65px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.d8-eyebrow {
  color: #c89aff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.d8-prestige h2 {
  margin: 18px 0;
  font-family: 'Anton', sans-serif;
  font-size: clamp(35px, 4vw, 55px);
  font-weight: 400;
  line-height: 1.15;
  color: #fff;
}

.d8-prestige h2 em {
  color: #ca9cff;
  font-style: normal;
}

.d8-prestige p {
  color: #d3c3df;
  line-height: 1.8;
}

.d8-prestige-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.d8-prestige-actions a {
  display: inline-block;
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid #ad70ec;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  transition: transform .25s, box-shadow .25s;
}

.d8-prestige-actions a:first-child {
  background: linear-gradient(110deg, #7435b9, #b477ef);
  box-shadow: 0 8px 25px rgba(160, 73, 255, .25);
}

.d8-prestige-actions a:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(170, 91, 255, .4);
}

/* Cartes de navigation */
.cards-area {
  background:
    radial-gradient(ellipse at 50% 0,
      rgba(120, 47, 195, .16),
      transparent 65%),
    #100a19;
  padding: 85px 20px;
}

.cards {
  gap: 30px;
}

.cards .box {
  width: min(420px, 100%);
  min-height: 340px;
  margin: 0;
  border: 1px solid var(--d8-border);
  border-radius: 24px;
  background: linear-gradient(145deg, #271638, #100a19);
  box-shadow: 0 20px 55px rgba(0, 0, 0, .3);
  transition: transform .3s, box-shadow .3s;
}

.cards .box:hover {
  transform: translateY(-9px);
  box-shadow: 0 25px 70px rgba(140, 58, 225, .3);
}

.cards .box > span {
  inset: 2px;
  border-radius: 21px;
  background: linear-gradient(145deg, #241432, #110b1c);
}

.cards .box::before {
  border-radius: 24px;
  opacity: .3;
}

.cards .box::after {
  border-radius: 24px;
  opacity: .1;
}

.cards .content h2 {
  color: #e2bdff;
}

.cards .content p {
  color: #cdbed8;
}

.start,
.agent-cta a {
  border-radius: 999px;
  background: linear-gradient(110deg, #7939bd, #b477f0);
  color: #fff;
  border: 1px solid #bd8aff;
}

/* Espace agent */
.agent-cta {
  border-radius: 26px;
  padding: 55px 28px;
  background:
    radial-gradient(circle at 50% 0,
      rgba(155, 75, 240, .2),
      transparent 70%),
    #1b1029;
}

/* Mobile */
@media (max-width: 780px) {
  .welcome {
    padding-top: 45px;
    padding-bottom: 45px;
  }

  .d8-prestige {
    grid-template-columns: 1fr;
  }

  .d8-prestige-visual {
    min-height: 260px;
  }

  .d8-prestige-content {
    padding: 32px 24px;
  }

  .cards-area {
    padding: 55px 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cards .box,
  .d8-prestige-actions a {
    transition: none;
  }
}

/* =====================================
   DYNASTY 8 — GLASS & ELECTRIC NEON
   ===================================== */

.d8-prestige {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  width: min(1380px, 94%);
  min-height: 490px;
  margin: 45px auto 90px;
  padding: 4px;
  overflow: hidden;
  border: 1px solid rgba(211, 153, 255, .65);
  border-radius: 36px;
  background: rgba(25, 12, 39, .45);
  box-shadow:
    0 0 18px rgba(173, 78, 255, .3),
    0 0 65px rgba(123, 37, 207, .16),
    inset 0 0 35px rgba(194, 123, 255, .1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: d8GlassPulse 5s ease-in-out infinite;
}

/* Lumière électrique qui circule */
.d8-prestige::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -55%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 65deg,
    #a349ff 82deg,
    #f1c6ff 89deg,
    transparent 100deg,
    transparent 245deg,
    #8732ff 260deg,
    #e9b6ff 268deg,
    transparent 278deg
  );
  animation: d8ElectricOrbit 9s linear infinite;
  opacity: .75;
  pointer-events: none;
}

/* Surface en verre fumé */
.d8-prestige::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 4px;
  border-radius: 31px;
  background:
    linear-gradient(
      105deg,
      rgba(13, 7, 24, .94) 0%,
      rgba(25, 11, 39, .83) 43%,
      rgba(24, 9, 39, .25) 100%
    );
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.28),
    inset 0 0 40px rgba(175,92,255,.08);
  pointer-events: none;
}

/* Zone de texte au-dessus du verre */
.d8-prestige-content {
  position: relative;
  z-index: 2;
  width: min(690px, 100%);
  padding: clamp(30px, 5vw, 70px);
  background: transparent;
}

.d8-prestige h2 {
  font-family: Arial, sans-serif;
  font-size: clamp(32px, 4vw, 58px);
  font-weight: 750;
  line-height: 1.14;
  letter-spacing: -.035em;
  text-shadow: 0 3px 22px rgba(0,0,0,.65);
}

.d8-prestige h2 em {
  display: block;
  margin-top: 8px;
  color: #cb83ff;
  text-shadow: 0 0 24px rgba(176,77,255,.65);
}

.d8-prestige p {
  max-width: 540px;
  color: #f0e3fa;
  text-shadow: 0 2px 10px rgba(0,0,0,.8);
}

/* Boutons en verre lumineux */
.d8-prestige-actions a {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(210,148,255,.8);
  box-shadow: 0 0 15px rgba(171,65,255,.22);
}

.d8-prestige-actions a:hover {
  box-shadow:
    0 0 14px rgba(193,94,255,.8),
    0 0 35px rgba(154,56,255,.35);
}

/* Animations */
@keyframes d8ElectricOrbit {
  to { transform: rotate(360deg); }
}

@keyframes d8GlassPulse {
  0%, 100% {
    box-shadow: 0 0 16px rgba(173,78,255,.3);
  }
  50% {
    box-shadow:
      0 0 28px rgba(181,92,255,.55),
      0 0 65px rgba(135,48,255,.2);
  }
}

/* Mobile */
@media (max-width: 780px) {
  .d8-prestige {
    min-height: 470px;
    border-radius: 26px;
  }

  .d8-prestige::after {
    border-radius: 21px;
  }

  .d8-prestige-content {
    padding: 30px 24px;
  }
}

/* Accessibilité */
@media (prefers-reduced-motion: reduce) {
  .d8-prestige,
  .d8-prestige::before {
    animation: none;
  }
}

/* DYNASTY 8 — BANNIERE PANORAMIQUE GTA RP */

/* L'image occupe maintenant toute la bannière */
.d8-prestige {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  justify-content: flex-start;
  background:
    linear-gradient(
      90deg,
      rgba(12, 5, 23, .25),
      rgba(12, 5, 23, .08)
    ),
    url('https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?auto=format&fit=crop&w=1800&q=90')
    center / cover no-repeat;
}

/* On masque l'ancien bloc photo de gauche */
.d8-prestige-visual {
  display: none;
}

/* Verre fumé transparent sur le côté gauche */
.d8-prestige::after {
  background:
    linear-gradient(
      90deg,
      rgba(15, 7, 28, .94) 0%,
      rgba(20, 9, 36, .86) 34%,
      rgba(21, 9, 36, .43) 65%,
      rgba(16, 7, 29, .12) 100%
    );
}

/* Texte au-dessus du décor */
.d8-prestige-content {
  width: min(720px, 100%);
  max-width: 100%;
  padding: clamp(35px, 5vw, 75px);
}

/* Sur mobile, le texte reste lisible */
@media (max-width: 780px) {
  .d8-prestige {
    min-height: 560px;
    background-position: 60% center;
  }

  .d8-prestige::after {
    background: rgba(15, 7, 28, .77);
  }

  .d8-prestige-content {
    padding: 36px 25px;  
  }
}

/* =========================================
   DYNASTY 8 — BANNIERE INTERACTIVE
   ========================================= */

/* Structure de la bannière */
.d8-prestige {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  overflow: hidden;

  /* On retire l'ancienne photo provisoire */
  background: #100819 !important;
}

/* Conteneur de toutes les images */
.d8-interactive-backgrounds {
  position: absolute;
  inset: 4px;
  z-index: 0;
  overflow: hidden;
  border-radius: 31px;
  pointer-events: none;
}

/* Chaque image occupe toute la bannière */
.d8-bg {
  position: absolute;
  inset: 0;

  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;

  opacity: 0;
  transform: scale(1);

  transition:
    opacity 1.1s ease-in-out,
    transform 8s ease;

  will-change: opacity, transform;
}

/* Image actuellement affichée */
.d8-bg.d8-bg-active {
  opacity: 1;
}

/* Animation lente de la carte */
.d8-bg-map.d8-map-moving {
  transform: scale(1.08) translate(1%, -1%);
}

/* Verre fumé au-dessus des images */
.d8-prestige::after {
  z-index: 1;

  background: linear-gradient(
    90deg,
    rgba(12, 5, 24, 0.94) 0%,
    rgba(19, 8, 34, 0.78) 38%,
    rgba(21, 9, 36, 0.32) 72%,
    rgba(12, 5, 24, 0.15) 100%
  );
}

/* Texte et boutons toujours visibles */
.d8-prestige-content {
  position: relative;
  z-index: 3;
}

/* Reflets sur les boutons */
.d8-prestige-actions a {
  position: relative;
  overflow: hidden;
  transition:
    background 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    transform 0.35s ease;
}

.d8-prestige-actions a:hover {
  transform: translateY(-3px);
  border-color: #e4b7ff;
  box-shadow:
    0 0 18px rgba(191, 96, 255, 0.55),
    0 0 38px rgba(141, 46, 255, 0.28);
}

/* Version mobile */
@media (max-width: 780px) {
  .d8-interactive-backgrounds {
    border-radius: 21px;
  }

  .d8-prestige::after {
    background: linear-gradient(
      90deg,
      rgba(12, 5, 24, 0.9),
      rgba(19, 8, 34, 0.65)
    );
  }
}

/* Respect des préférences d'accessibilité */
@media (prefers-reduced-motion: reduce) {
  .d8-bg,
  .d8-prestige-actions a {
    transition: none;
  }
}

/* DYNASTY 8 — BANNIERE CENTREE */

.d8-prestige {
  justify-content: center !important;
}

/* Centrer le bloc de texte */
.d8-prestige-content {
  width: min(650px, 100%);
  margin: 0 auto;
  text-align: center !important;
}

/* Titre droit et centré */
.d8-prestige h2,
.d8-prestige h2 em {
  font-family: 'Cinzel', Georgia, serif;
  font-style: normal !important;
  text-align: center !important;
}

/* Description centrée */
.d8-prestige p {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Boutons centrés */
.d8-prestige-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* Sous-titre centré */
.d8-prestige .d8-eyebrow {
  display: block;
  text-align: center;
}

/* ========================================
   DYNASTY 8 — REFLET METALLIQUE ANIME
   ======================================== */

/* Reflet argenté sur les deux lignes */
.d8-prestige h2,
.d8-prestige h2 em {
  font-family: 'Cinzel', Georgia, serif;
  font-style: normal !important;
  text-align: center !important;

  background-image: linear-gradient(
    110deg,
    #9f8ab7 0%,
    #e8d8f5 25%,
    #ffffff 38%,
    #c88dff 47%,
    #ffffff 52%,
    #b18acb 65%,
    #eee4f7 100%
  );

  background-size: 250% 100%;
  background-position: 100% center;

  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

  animation: d8MetalShine 7s ease-in-out infinite;
}

/* La deuxième ligne conserve son halo violet */
.d8-prestige h2 em {
  display: block;
  filter: drop-shadow(
    0 0 12px rgba(185, 87, 255, 0.55)
  );
}

/* Balayage lumineux lent */
@keyframes d8MetalShine {
  0%, 15% {
    background-position: 100% center;
  }

  45%, 100% {
    background-position: 0% center;
  }
}

/* Respect des préférences d'accessibilité */
@media (prefers-reduced-motion: reduce) {
  .d8-prestige h2,
  .d8-prestige h2 em {
    animation: none;
    background-position: 50% center;
  }
}

/* DYNASTY 8 — LOS SANTOS NIGHT BACKGROUND */

body {
  background-color: #0b0613 !important;

  background-image:
    linear-gradient(
      180deg,
      rgba(12, 5, 22, 0.45),
      rgba(10, 4, 18, 0.72)
    ),
    url("los-santos-background.png") !important;

  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Garder le contenu visible */
main {
  position: relative;
  z-index: 1;
}

/* Effet verre sur les cartes */
.cards-area .box {
  background: rgba(25, 10, 40, 0.62) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  border: 1px solid rgba(190, 105, 255, 0.45);

  box-shadow:
    0 0 20px rgba(165, 65, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

@media (max-width: 780px) {
  body {
    background-attachment: scroll;
  }
}

/* DYNASTY 8 — PANORAMA LOS SANTOS */

html {
  background: #0b0613;
}

body {
  background-color: #0b0613 !important;

  background-image:
    linear-gradient(
      180deg,
      rgba(12, 5, 22, 0.30),
      rgba(12, 5, 22, 0.55)
    ),
    url("./los-santos-background.png") !important;

  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}

/* Afficher le panorama derrière les sections */
main,
.cards-area {
  background: transparent !important;
}

/* Conserver les panneaux en verre */
.cards-area .box {
  background: rgba(22, 9, 37, 0.60) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

@media (max-width: 780px) {
  body {
    background-attachment: scroll !important;
  }
}

/* =========================================
   DYNASTY 8 — PANORAMA SUR TOUTE LA PAGE
   ========================================= */

/* Panorama fixe derrière l'ensemble du site */
html {
  min-height: 100%;
  background: #0b0613;
}

body {
  min-height: 100vh;

  background:
    linear-gradient(
      180deg,
      rgba(12, 5, 22, 0.35),
      rgba(12, 5, 22, 0.65)
    ),
    url("./los-santos-background.png")
      center center / cover fixed no-repeat
    !important;
}

/* Retirer les fonds opaques des grands conteneurs */
body > main,
main,
.hero,
.hero-section,
.banner,
.banner-area,
.cards-area,
.welcome {
  background-color: transparent !important;
  background-image: none !important;
}

/* Conserver le fond des cartes en verre */
.cards-area .box {
  background: rgba(22, 9, 37, 0.65) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* Le logo conserve ses effets lumineux */
header,
nav {
  position: relative;
}

/* Version mobile */
@media (max-width: 780px) {
  body {
    background-attachment: scroll !important;
  }
}

/* ========================================
   DYNASTY 8 — CORRECTION DU HERO
   ======================================== */

/* Retirer le fond opaque derrière le logo */
.hero-banner {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}

/* Garder les animations du logo visibles */
.hero-banner img,
.hero-banner video,
.hero-banner canvas {
  visibility: visible;
  opacity: 1;
}

/* DYNASTY 8 — HERO TRANSPARENT */

/* Zone contenant le grand logo */
header.header .hero-banner {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}

/* Conserver le logo et ses animations */
header.header .hero-banner img,
header.header .hero-banner video,
header.header .hero-banner canvas {
  opacity: 1;
  visibility: visible;
}

/* ========================================
   DYNASTY 8 — HEADER PANORAMIQUE
   ======================================== */

/* Retirer le fond opaque du grand header */
header.header {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}

/* Retirer le fond opaque derrière le logo */
header.header .hero-banner {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}

/* Conserver le logo et ses animations */
header.header .hero-banner img {
  opacity: 1;
  visibility: visible;
}

/* =========================================
   DYNASTY 8 — PANORAMA DERRIERE LE LOGO
   ========================================= */

/* Panorama sur toute la zone supérieure */
header.header {
  background-image:
    linear-gradient(
      rgba(12, 5, 22, 0.40),
      rgba(12, 5, 22, 0.60)
    ),
    url("./los-santos-background.png") !important;

  background-color: #10091b !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

/* Conserver le logo et ses effets */
header.header .hero-banner {
  background: transparent !important;
  background-image: none !important;
}

/* Éviter une bande opaque entre les sections */
header.header::before,
header.header::after {
  background-color: transparent !important;
}

/* =========================================
   DYNASTY 8 — TRANSITION PANORAMIQUE
   ========================================= */

/* Supprimer les fonds opaques des zones principales */
body > main {
  background: transparent !important;
}

/* Éviter une bande sombre sous le grand logo */
header.header {
  margin-bottom: 0 !important;
}

/* Conserver le panorama derrière les sections */
body {
  background-image:
    linear-gradient(
      rgba(12, 5, 22, 0.30),
      rgba(12, 5, 22, 0.55)
    ),
    url("./los-santos-background.png") !important;

  background-size: cover !important;
  background-position: center !important;
  background-attachment: fixed !important;
}

/* Réduire l'espace au-dessus de la bannière */
.d8-prestige {
  margin-top: 20px !important;
}

/* Éviter une séparation opaque sur la section des cartes */
.cards-area {
  background: transparent !important;
}

/* =========================================
   DYNASTY 8 — SEPARATION ELECTRIQUE
   VIOLET & ROSE NEON
   ========================================= */

/* Bande lumineuse sous le grand logo */
header.header {
  position: relative;
  isolation: isolate;
  margin-bottom: 0 !important;
}

/* Remplace la séparation par une bande néon */
header.header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 12px;
  z-index: 5;
  pointer-events: none;

  background: linear-gradient(
    90deg,
    #5d16a3 0%,
    #a73cff 20%,
    #ff70e9 40%,
    #e6a2ff 50%,
    #ff70e9 60%,
    #9a32f5 80%,
    #5d16a3 100%
  );

  background-size: 250% 100%;

  box-shadow:
    0 0 12px rgba(193, 77, 255, .95),
    0 0 30px rgba(191, 63, 255, .65),
    0 0 65px rgba(255, 76, 221, .30);

  animation: d8ElectricSeparator 5s linear infinite;
}

/* Déplacement de l'énergie */
@keyframes d8ElectricSeparator {
  0% {
    background-position: 0% 50%;
    opacity: .85;
  }

  50% {
    opacity: 1;
  }

  100% {
    background-position: 250% 50%;
    opacity: .85;
  }
}

/* Petite lueur au-dessus de la séparation */
header.header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55px;
  z-index: 4;
  pointer-events: none;

  background: linear-gradient(
    to top,
    rgba(175, 54, 255, .24),
    transparent
  );
}

/* Réduction des animations si nécessaire */
@media (prefers-reduced-motion: reduce) {
  header.header::after {
    animation: none;
  }
}

/* ==========================================
   DYNASTY 8 — LOGO GLASS NEON
   ========================================== */

/* Zone du logo */
header.header .hero-banner {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 35px 20px 65px;
  background: transparent !important;
}

/* Rectangle de verre */
.d8-glass-logo {
  position: relative;
  isolation: isolate;
  width: min(920px, 94%);
  min-height: 270px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;

  border-radius: 34px;
  border: 2px solid rgba(224, 149, 255, .85);

  background: rgba(55, 20, 85, .13);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  box-shadow:
    0 0 12px rgba(240, 120, 255, .85),
    0 0 35px rgba(170, 55, 255, .45),
    inset 0 0 25px rgba(220, 130, 255, .12);

  animation: d8GlassGlow 5s ease-in-out infinite;
}

/* Reflet qui traverse le verre */
.d8-glass-logo::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -80%;
  pointer-events: none;

  background: linear-gradient(
    115deg,
    transparent 44%,
    rgba(255, 255, 255, .04) 47%,
    rgba(255, 220, 255, .20) 50%,
    rgba(255, 255, 255, .04) 53%,
    transparent 56%
  );

  transform: translateX(-45%);
  animation: d8GlassReflection 8s ease-in-out infinite;
}

/* Logo métallique sans fond */
.d8-glass-logo > img {
  position: relative;
  z-index: 1;

  display: block;
  width: 94%;
  max-width: 850px;
  height: auto;
  object-fit: contain;

  /* Annule l'ancien effet de fondu */
  mask-image: none !important;
  -webkit-mask-image: none !important;

  filter: drop-shadow(
    0 0 18px rgba(185, 65, 255, .55)
  );
}

/* Respiration lumineuse du cadre */
@keyframes d8GlassGlow {
  0%, 100% {
    box-shadow:
      0 0 12px rgba(240, 120, 255, .65),
      0 0 35px rgba(170, 55, 255, .35),
      inset 0 0 25px rgba(220, 130, 255, .10);
  }

  50% {
    box-shadow:
      0 0 20px rgba(255, 135, 245, .95),
      0 0 55px rgba(180, 65, 255, .55),
      inset 0 0 35px rgba(220, 130, 255, .18);
  }
}

/* Balayage du reflet */
@keyframes d8GlassReflection {
  0%, 20% {
    transform: translateX(-45%);
  }

  65%, 100% {
    transform: translateX(45%);
  }
}

/* Adaptation téléphone */
@media (max-width: 780px) {
  header.header .hero-banner {
    padding: 25px 12px 55px;
  }

  .d8-glass-logo {
    width: 100%;
    min-height: 170px;
    border-radius: 22px;
  }

  .d8-glass-logo > img {
    width: 96%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .d8-glass-logo,
  .d8-glass-logo::before {
    animation: none;
  }
}

/* ==========================================
   DYNASTY 8 — GLASS NEON PREMIUM V2
   ========================================== */

/* Verre plus transparent */
.d8-glass-logo {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  background: rgba(25, 8, 42, 0.08) !important;

  backdrop-filter: blur(2px) saturate(125%) !important;
  -webkit-backdrop-filter: blur(2px) saturate(125%) !important;

  border: 1px solid rgba(231, 166, 255, 0.85);

  box-shadow:
    0 0 12px rgba(218, 92, 255, 0.65),
    0 0 32px rgba(169, 53, 255, 0.28),
    inset 0 0 20px rgba(224, 137, 255, 0.06);
}

/* Reflet mobile sur la bordure */
.d8-glass-logo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  padding: 2px;
  pointer-events: none;

  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 55deg,
    rgba(255, 255, 255, 0.95) 82deg,
    #ff82ec 90deg,
    #bd4dff 102deg,
    transparent 125deg,
    transparent 360deg
  );

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);

  -webkit-mask-composite: xor;
  mask-composite: exclude;

  animation: d8BorderOrbit 8s linear infinite;
}

/* Rotation du reflet électrique */
@keyframes d8BorderOrbit {
  to {
    transform: rotate(360deg);
  }
}

/* Logo au-dessus du reflet du verre */
.d8-glass-logo > img {
  position: relative;
  z-index: 3;
}

/* Sécurité : masquer l'ancien bouton */
.replay-intro {
  display: none !important;
}

/* Respect des préférences d'animation */
@media (prefers-reduced-motion: reduce) {
  .d8-glass-logo::after {
    animation: none;
  }
}

/* ==========================================
   DYNASTY 8 — GLASS NEON PREMIUM V2
   ========================================== */

/* Verre plus transparent */
.d8-glass-logo {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  background: rgba(25, 8, 42, 0.08) !important;

  backdrop-filter: blur(2px) saturate(125%) !important;
  -webkit-backdrop-filter: blur(2px) saturate(125%) !important;

  border: 1px solid rgba(231, 166, 255, 0.85);

  box-shadow:
    0 0 12px rgba(218, 92, 255, 0.65),
    0 0 32px rgba(169, 53, 255, 0.28),
    inset 0 0 20px rgba(224, 137, 255, 0.06);
}

/* Reflet mobile sur la bordure */
.d8-glass-logo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  padding: 2px;
  pointer-events: none;

  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 55deg,
    rgba(255, 255, 255, 0.95) 82deg,
    #ff82ec 90deg,
    #bd4dff 102deg,
    transparent 125deg,
    transparent 360deg
  );

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);

  -webkit-mask-composite: xor;
  mask-composite: exclude;

  animation: d8BorderOrbit 8s linear infinite;
}

/* Rotation du reflet électrique */
@keyframes d8BorderOrbit {
  to {
    transform: rotate(360deg);
  }
}

/* Logo au-dessus du reflet du verre */
.d8-glass-logo > img {
  position: relative;
  z-index: 3;
}

/* Sécurité : masquer l'ancien bouton */
.replay-intro {
  display: none !important;
}

/* Respect des préférences d'animation */
@media (prefers-reduced-motion: reduce) {
  .d8-glass-logo::after {
    animation: none;
  }
}

/* ==========================================
   DYNASTY 8 — NAVIGATION PREMIUM
   ========================================== */

.d8-nav-premium {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 88px;
}

/* Bouton agent complètement à gauche */
.d8-nav-premium .d8-agent-access {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;

  padding: 12px 22px;
  border: 1px solid rgba(219, 143, 255, .8);
  border-radius: 40px;

  background: rgba(63, 20, 91, .35);
  color: #f5ddff;

  font-size: 14px;
  font-weight: 900;
  letter-spacing: .5px;
  text-decoration: none;

  box-shadow: 0 0 16px rgba(175, 67, 255, .25);
  transition: .3s ease;
}

.d8-nav-premium .d8-agent-access:hover {
  background: rgba(152, 54, 217, .45);
  box-shadow: 0 0 24px rgba(197, 91, 255, .65);
  transform: translateY(-2px);
}

/* Catégories plus grandes */
.d8-nav-premium #navlinks {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 2vw, 32px);
  margin-left: auto;
}

.d8-nav-premium #navlinks a {
  font-size: clamp(14px, 1.15vw, 18px);
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: .15px;
  transition: color .25s, text-shadow .25s;
}

.d8-nav-premium #navlinks a:hover {
  color: #edb8ff;
  text-shadow: 0 0 12px rgba(205, 106, 255, .85);
}

/* Adaptation mobile */
@media (max-width: 900px) {
  .d8-nav-premium {
    min-height: 75px;
    gap: 12px;
  }

  .d8-nav-premium .d8-agent-access {
    padding: 10px 14px;
    font-size: 12px;
  }

  .d8-nav-premium #navlinks {
    gap: 12px;
  }

  .d8-nav-premium #navlinks a {
    font-size: 13px;
  }
}

/* ==========================================
   DYNASTY 8 — CORRECTION CENTRAGE LOGO
   ========================================== */

/* Centrer la zone du grand logo */
header.header .hero-banner {
  position: relative !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;

  width: 100% !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;

  box-sizing: border-box;
}

/* Centrer le panneau en verre */
header.header .hero-banner .d8-glass-logo {
  flex: 0 1 920px;
  width: min(920px, 94%) !important;
  max-width: 920px;
  margin-left: auto !important;
  margin-right: auto !important;
  transform: none !important;
}

/* Garder le logo centré dans son verre */
header.header .d8-glass-logo > img {
  display: block;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 780px) {
  header.header .hero-banner .d8-glass-logo {
    width: 100% !important;
    min-width: 0;
  }
}

/* ==========================================
   DYNASTY 8 — MENU SUR UNE SEULE LIGNE
   ========================================== */

header.header .d8-nav-premium {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 100% !important;
  max-width: none !important;
  min-height: 88px;
  padding: 0 20px !important;
  box-sizing: border-box;
}

/* Connexion Agent : bord gauche de l'écran */
header.header .d8-nav-premium .d8-agent-access {
  position: absolute !important;
  left: 20px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  margin: 0 !important;
}

/* Les catégories sont centrées sur l'écran */
header.header .d8-nav-premium #navlinks {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;

  position: static !important;
  width: max-content !important;
  margin: 0 auto !important;
  gap: clamp(14px, 1.8vw, 30px) !important;
}

/* Taille des écritures */
header.header .d8-nav-premium #navlinks a {
  font-size: clamp(15px, 1.1vw, 18px);
  font-weight: 800;
  white-space: nowrap;
}

/* Préserver la ligne sur les écrans de bureau */
@media (min-width: 901px) {
  header.header .d8-nav-premium .menu-toggle {
    display: none !important;
  }
}

/* Sur téléphone, conserver le menu mobile existant */
@media (max-width: 900px) {
  header.header .d8-nav-premium {
    justify-content: space-between !important;
  }

  header.header .d8-nav-premium .d8-agent-access {
    position: static !important;
    transform: none !important;
  }

  header.header .d8-nav-premium #navlinks {
    display: none !important;
  }

  header.header .d8-nav-premium #navlinks.open,
  header.header .d8-nav-premium #navlinks.active {
    display: flex !important;
    flex-direction: column !important;
  }
}

/* ==========================================
   DYNASTY 8 — CENTRAGE DU GRAND LOGO
   ========================================== */

/* La zone du logo occupe toute la largeur */
header.header > .hero-banner {
  position: relative !important;
  inset: auto !important;
  transform: none !important;

  display: flex !important;
  justify-content: center !important;
  align-items: center !important;

  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 35px 20px 65px !important;
  box-sizing: border-box;
}

/* Le rectangle en verre reste centré */
header.header > .hero-banner > .d8-glass-logo {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;

  flex: 0 1 920px !important;
  width: min(920px, 100%) !important;
  max-width: 920px !important;

  margin-left: auto !important;
  margin-right: auto !important;
}

/* Le logo métallique reste au centre du verre */
header.header .d8-glass-logo > img {
  display: block !important;
  margin: 0 auto !important;
  max-width: 100% !important;
}

/* ==========================================
   DYNASTY 8 — CENTRAGE DEFINITIF DU LOGO
   ========================================== */

header.header .hero-banner .d8-glass-logo {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ==========================================
   DYNASTY 8 — CENTRAGE DU PANNEAU EN VERRE
   ========================================== */

header.header > .d8-glass-logo {
  display: flex !important;
  position: relative !important;

  left: auto !important;
  right: auto !important;
  transform: none !important;

  width: min(920px, calc(100% - 40px)) !important;
  max-width: 920px !important;

  margin-left: auto !important;
  margin-right: auto !important;
}
