/* ====== HEADER DEFILANT ====== */
.header {
  background: rgba(0, 0, 0, 0.9);
  padding: 10px 20px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.header-left {
  flex-shrink: 0;
}

.header-left a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header-left .logo {
  height: 28px;
  width: auto;
  animation: neonGlow 2s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 5px rgba(79, 195, 247, 0.5));
}

.header-left .logo:hover {
  animation: neonPulse 0.5s ease-in-out infinite;
}

@keyframes neonGlow {
  0% {
    filter: drop-shadow(0 0 5px rgba(79, 195, 247, 0.4)) drop-shadow(0 0 10px rgba(79, 195, 247, 0.2));
  }
  100% {
    filter: drop-shadow(0 0 10px rgba(79, 195, 247, 0.8)) drop-shadow(0 0 20px rgba(79, 195, 247, 0.4)) drop-shadow(0 0 30px rgba(79, 195, 247, 0.2));
  }
}

@keyframes neonPulse {
  0%, 100% {
    filter: drop-shadow(0 0 5px rgba(79, 195, 247, 1)) drop-shadow(0 0 15px rgba(79, 195, 247, 0.8));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 15px rgba(79, 195, 247, 1)) drop-shadow(0 0 30px rgba(79, 195, 247, 0.8));
    transform: scale(1.05);
  }
}

.header-left .logo-text {
  color: #fff;
  font-family: 'Roboto Mono', monospace;
  font-weight: bold;
  font-size: 16px;
  text-shadow: 0 0 10px rgba(79, 195, 247, 0.8), 0 0 20px rgba(79, 195, 247, 0.5);
  animation: textNeonGlow 2s ease-in-out infinite alternate;
}

@keyframes textNeonGlow {
  0% {
    text-shadow: 0 0 5px rgba(79, 195, 247, 0.5), 0 0 10px rgba(79, 195, 247, 0.3);
  }
  100% {
    text-shadow: 0 0 10px rgba(79, 195, 247, 1), 0 0 20px rgba(79, 195, 247, 0.7), 0 0 30px rgba(79, 195, 247, 0.4);
  }
}

.header-center {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.current-domain {
  color: rgba(255,255,255,0.7);
  font-family: 'Roboto Mono', monospace;
  font-size: 11px;
}

.current-domain strong {
  color: #4fc3f7;
}

.defilant-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  width: 100%;
}

.pause-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 10px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.pause-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: #4fc3f7;
}

.pause-btn.paused {
  color: #4fc3f7;
}

.header-center .defilant {
  display: inline-block;
  animation: defilement 15s linear infinite;
  color: #fff;
  font-family: 'Roboto Mono', monospace;
  flex: 1;
}

.header-center .defilant.paused {
  animation-play-state: paused;
}

.header-center .defilant span {
  display: inline;
}

.header-center .defilant strong {
  color: #4fc3f7;
}

/* Compteur stylé */
.countdown-box {
  display: inline-block;
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f0f1a 51%, #1a1a2e 100%);
  color: #4fc3f7;
  font-weight: bold;
  font-size: 14px;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(79, 195, 247, 0.3);
  box-shadow: 0 2px 4px rgba(0,0,0,0.5), 0 0 10px rgba(79, 195, 247, 0.2);
  margin: 0 6px;
  min-width: 24px;
  text-align: center;
  animation: countdownPulse 1s ease-in-out infinite;
}

@keyframes countdownPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.5), 0 0 10px rgba(79, 195, 247, 0.2);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.5), 0 0 20px rgba(79, 195, 247, 0.5);
  }
}

.countdown-box.urgent {
  color: #ff5722;
  border-color: rgba(255, 87, 34, 0.5);
  animation: countdownUrgent 0.5s ease-in-out infinite;
}

@keyframes countdownUrgent {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(255, 87, 34, 0.3);
  }
  50% {
    transform: scale(1.15);
    box-shadow: 0 0 25px rgba(255, 87, 34, 0.7);
  }
}


.header-center .defilant a {
  color: #4fc3f7;
  text-decoration: none;
}

.header-center .defilant a:hover {
  text-decoration: underline;
}

@keyframes defilement {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.header-right {
  flex-shrink: 0;
}

.btn-visit {
  display: inline-block;
  background: #4fc3f7;
  color: #000;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-family: 'Roboto Mono', monospace;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.3s ease;
  transform-style: preserve-3d;
  perspective: 500px;
}

.btn-visit:hover {
  background: #fff;
  transform: rotateX(-10deg) rotateY(10deg) scale(1.05);
  box-shadow: 5px 5px 20px rgba(79, 195, 247, 0.4);
}

.clr {
  clear: both;
}

/* Particules */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 50;
  pointer-events: none;
}

/* Cursor personnalisé */
* {
  cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="%234fc3f7" d="M4 0l16 12-7 2 4 8-3 1-4-8-6 5z"/><path fill="%23fff" d="M5 2l12 9-5 1.5 3 6-1 .5-3-6-5 4z"/></svg>') 0 0, auto;
}

a, button, .btn-visit, .social-icon, .contact-item, .menu-gigarun a {
  cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10" fill="none" stroke="%234fc3f7" stroke-width="2"/><circle cx="12" cy="12" r="4" fill="%234fc3f7"/></svg>') 12 12, pointer;
}

/* Reset & base */
html, body {
  margin: 0; padding: 0;
  width: 100%;
  min-height: 100vh;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: Arial, sans-serif;
  background: linear-gradient(-45deg, #0a0a0a, #1a1a2e, #16213e, #0f3460, #1a1a2e, #0a0a0a);
  background-size: 400% 400%;
  animation: gradientShift 20s ease infinite;
  display: flex;
  flex-direction: column;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  25% { background-position: 50% 100%; }
  50% { background-position: 100% 50%; }
  75% { background-position: 50% 0%; }
  100% { background-position: 0% 50%; }
}

.content {
  position: relative;
  flex: 1 0 auto;
  min-height: 0;
  padding-top: 45px;      /* Espace pour le header fixe */
  padding-bottom: 0;
  overflow: hidden;
}

/* Animation principale */
.untitled {
  position: fixed; /* changée pour éviter scroll infini */
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  max-height: 100vh;
  overflow: hidden;
  animation: rotateHue infinite 20s linear;
  animation-delay: 0.625s;
  z-index: 1;
}

@keyframes rotateHue {
  0% { filter: hue-rotate(0deg); }
  20% { filter: hue-rotate(0deg); }
  25% { filter: hue-rotate(90deg); }
  45% { filter: hue-rotate(90deg); }
  50% { filter: hue-rotate(180deg); }
  70% { filter: hue-rotate(180deg); }
  75% { filter: hue-rotate(270deg); }
  95% { filter: hue-rotate(270deg); }
  100% { filter: hue-rotate(360deg); }
}

/* Slides container */
.untitled__slides {
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  background-color: #b3401a;
}

/* Chaque slide */
.untitled__slide {
  position: absolute;
  height: 100%;
  width: 100%;
  opacity: 0;
  animation: showHideSlide infinite 20s steps(1);
}

@keyframes showHideSlide {
  0% { opacity: 1; pointer-events: auto; z-index: 1; }
  25%, 100% { opacity: 0; pointer-events: none; z-index: -1; }
}

/* Delays pour chaque slide */
.untitled__slide:nth-child(1) { animation-delay: 0s; }
.untitled__slide:nth-child(2) { animation-delay: 5s; }
.untitled__slide:nth-child(3) { animation-delay: 10s; }
.untitled__slide:nth-child(4) { animation-delay: 15s; }

/* Background images des slides */
.untitled__slideBg {
  position: relative;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  background-size: cover;
  background-position: center;
  background-color: #b3401a;
  background-blend-mode: hard-light;
  opacity: 1;
  z-index: -1;
  animation: bgInOut 5s infinite;
}

@keyframes bgInOut {
  0% { transform: rotate(-45deg) scale(1.1); animation-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1); }
  33% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(0deg) scale(1); }
  66% { transform: rotate(0deg) scale(1); animation-timing-function: cubic-bezier(0.895, 0.03, 0.685, 0.22); }
  100% { transform: rotate(45deg) scale(0.9); }
}

/* Contenu texte sur les slides */
.untitled__slideContent {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate3d(-50%, -50%, 0);
  color: white;
  font-family: "Abril Fatface", sans-serif;
  line-height: 0.8;
  letter-spacing: -0.025em;
  z-index: 2;
  opacity: 1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  background: rgba(0, 0, 0, 0.5);
  padding: 3vmin 5vmin;
  border-radius: 12px;
  backdrop-filter: blur(5px);
}

.untitled__slideContent span {
  display: block;
  font-size: 15vmin;
}

/* Boutons */
.button {
  font-family: 'Roboto Mono', monospace;
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 2vmin;
  display: inline-block;
  position: relative;
  border: 3px solid white;
  box-shadow: -0.5vmin 0.5vmin 0 rgba(255, 255, 255, 0.5);
  background: transparent;
  margin-top: 5vmin;
  mix-blend-mode: lighten;
  color: white;
  padding: 2vmin 2vmin 1.8vmin 2vmin;
  letter-spacing: 0.1em;
  text-shadow: none;
  line-height: 1;
  transform: translate3d(0.5vmin, -0.5vmin, 0);
  transition: all 100ms linear;
}

.button:hover {
  transform: translate3d(1vmin, -1vmin, 0);
  box-shadow: -1vmin 1vmin 0 rgba(255, 255, 255, 0.5);
  background: white;
  color: black;
}

.button:active {
  transform: translate3d(0, 0, 0);
  box-shadow: 0 0 0 rgba(255, 255, 255, 0.5);
}

/* Les volets (shutters) animés */
.untitled__shutters {
  position: absolute;
  height: 150vmax;
  width: 150vmax;
  left: calc(50% - 75vmax);
  top: calc(50% - 75vmax);
  pointer-events: none;
  z-index: 2;
  animation: rotateFrame 10s linear infinite;
}

@keyframes rotateFrame {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(180deg); }
}

.untitled__shutters:before, .untitled__shutters:after {
  content: '';
  position: absolute;
  height: 100%;
  width: 100%;
  left: 50%;
  transform: translate3d(-50%, 0, 0);
  background-color: #b3401a;
  pointer-events: auto;
}

.untitled__shutters:before {
  bottom: 50%;
  animation: openTop 5s infinite;
}

@keyframes openTop {
  0% { transform: translate3d(-50%, 0, 0); animation-timing-function: cubic-bezier(0.8, 0, 0.1, 1); }
  40%, 70% { transform: translate3d(-50%, -65vmax, 0); animation-timing-function: cubic-bezier(0.6, 0.04, 0.98, 0.335); }
  100% { transform: translate3d(-50%, 0, 0); animation-timing-function: cubic-bezier(0.6, 0.04, 0.98, 0.335); }
}

.untitled__shutters:after {
  top: 50%;
  animation: openBottom 5s infinite;
}

@keyframes openBottom {
  0% { transform: translate3d(-50%, 0, 0); animation-timing-function: cubic-bezier(0.8, 0, 0.1, 1); }
  40%, 70% { transform: translate3d(-50%, 65vmax, 0); animation-timing-function: cubic-bezier(0.6, 0.04, 0.98, 0.335); }
  100% { transform: translate3d(-50%, 0, 0); animation-timing-function: cubic-bezier(0.6, 0.04, 0.98, 0.335); }
}

/* ====== MENU GIGARUN (footer horizontal) ====== */

.menu-gigarun {
  background-color: rgba(14, 0, 36, 0.61);
  padding: 1.5rem;
  border-radius: 12px;
  width: 100%;
  max-width: none;
  margin: auto;
  font-family: "Segoe UI", sans-serif;
  color: #fff;
}

.menu-gigarun h2 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.8rem;
  color: #ffffff;
}

.menu-gigarun ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;             /* retour à la ligne autorisé */
  justify-content: center;
  gap: 0.8rem;
}

.menu-gigarun li {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
  white-space: nowrap;
  transform-style: preserve-3d;
}

.menu-gigarun li:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: rotateX(-5deg) rotateY(5deg) translateY(-3px);
  box-shadow: 3px 5px 15px rgba(79, 195, 247, 0.2);
}

.menu-gigarun a {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  display: block;
}

.menu-gigarun a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background: #222;
  color: #eee;
  padding: 40px 20px;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
  min-height: auto;
}

/* Coordonnées contact */
.footer-contact {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font-family: 'Roboto Mono', monospace;
  font-size: 14px;
  transition: all 0.2s ease;
}

.contact-item:hover {
  color: #4fc3f7;
  transform: translateY(-2px);
}

.contact-icon {
  font-size: 18px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-left: 20px;
  padding-left: 20px;
  border-left: 1px solid rgba(255,255,255,0.2);
}

.social-icon {
  color: #fff;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

.social-icon:hover {
  color: #4fc3f7;
  transform: scale(1.2);
}

/* ====== RESPONSIVE MOBILE ====== */
@media (max-width: 768px) {
  .header {
    padding: 8px 15px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .header-left {
    order: 1;
  }

  .header-right {
    order: 2;
  }

  .header-center {
    order: 3;
    width: 100%;
    flex-basis: 100%;
  }

  .header-center .defilant {
    font-size: 11px;
  }

  .btn-visit {
    padding: 6px 12px;
    font-size: 10px;
  }

  .footer-contact {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .contact-item {
    font-size: 13px;
  }

  .social-links {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.2);
  }

  .menu-gigarun {
    padding: 1rem;
  }

  .menu-gigarun ul {
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
  }

  .menu-gigarun li {
    width: 100%;
    max-width: 300px;
    padding: 0.8rem 1rem;
  }

  footer {
    padding: 20px 10px;
  }

  .untitled__slideContent span {
    font-size: 10vmin;
  }

  .button {
    font-size: 3vmin;
    padding: 3vmin 3vmin 2.8vmin 3vmin;
  }
}

@media (max-width: 480px) {
  .header-left .logo {
    height: 22px;
  }

  .btn-visit {
    padding: 5px 10px;
    font-size: 9px;
  }

  .menu-gigarun li {
    max-width: 260px;
    font-size: 0.85rem;
  }

  .untitled__slideContent span {
    font-size: 8vmin;
  }
}
