.site-header,
.site-footer {
  display: none !important;
}

.fond-portail-explorateur {
  background: url("../images/fonds/fond_portail_explorateur.webp") no-repeat center center fixed;
  background-size: cover;
  color: #e0e0e0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  font-family: "Libre Baskerville", serif;
  overflow: hidden;
}

.portail-explorateur-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.portail-wrapper {
  max-width: 700px;
  padding: 2rem;
  text-align: left;
}

/* === TEXTE DE L’EXPLORATEUR === */
.portail-message {
  font-size: 1.6rem;
  line-height: 1.5;
  color: #f0f8f0;
  text-shadow:
    0 1px 3px rgba(0,0,0,0.8),
    0 0 6px rgba(0,0,0,0.3);
  background: rgba(0,0,0,0.25);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  filter: drop-shadow(0 0 6px rgba(0,255,100,0.5));

  opacity: 0;
  transform: translateY(6px);
}

.portail-message.visible {
  opacity: 1;
  transform: translateY(0);
  animation: vortex 6s linear infinite;
}


/* Décompte invisible */
.portail-countdown {
  display: none;
}

/* === ANIMATIONS === */
@keyframes vortex {
  0%   { transform: translate(0,0) rotate(0deg) scale(1); }
  25%  { transform: translate(5px,-2px) rotate(-2deg) scale(0.98); }
  50%  { transform: translate(0,2px) rotate(1deg) scale(1.02); }
  75%  { transform: translate(-4px,-1px) rotate(3deg) scale(0.99); }
  100% { transform: translate(0,0) rotate(0deg) scale(1); }
}


.portail-exit-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;

  opacity: 0;
  pointer-events: none;
}

.portail-exit-overlay.visible {
  animation: apparition-overlay 2s ease forwards;
}

@keyframes souffle-opacity {
  0%, 100% { opacity: 0.95; }
  50% { opacity: 1; }
}

.portail-exit-message {
  font-size: 2rem;
  line-height: 1.4;
  color: #e6e1d6;
  text-align: center;
  max-width: 80%;
  animation: souffle-opacity 6s ease-in-out infinite;
  text-shadow: 0 2px 6px rgba(0,0,0,0.9);
}


/* Apparition lente */
@keyframes apparition-overlay {
  to { opacity: 1; }
}


/* Signature anagramme */
.identity-container {
  margin-top: 2rem;
  position: relative;
  height: 2.5rem;
}

.identity {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 1.4rem;
  letter-spacing: 0.25em;
  opacity: 0;
}

/* états initiaux */
.identity.full {
  color: #cfc6b8;
  opacity: 1;
}

.identity.final {
  color: #4aa3ff;
}

/* quand l’overlay est actif */
.portail-exit-overlay.animate-signature .identity.full {
  animation: dissolve 3s ease forwards;
}

.portail-exit-overlay.animate-signature .identity.final {
  animation: reveal 2s ease forwards;
  animation-delay: 3s;
}

@keyframes dissolve {
  from {
    opacity: 1;
    filter: blur(0);
    letter-spacing: 0.25em;
  }
  to {
    opacity: 0;
    filter: blur(10px);
    letter-spacing: 1.2em;
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    filter: blur(8px);
    letter-spacing: 1.2em;
  }
  to {
    opacity: 1;
    filter: blur(0);
    letter-spacing: 0.3em;
  }
}

.identity.full,
.identity.final {
  animation-fill-mode: forwards;
}

@media (max-width: 768px) {
  .portail-wrapper {
    max-width: 90%;
    padding: 1.2rem;
  }

  .portail-message {
    font-size: clamp(1.1rem, 2.2vw, 1.6rem);
    line-height: 1.4;
    padding: 0.4rem 0.8rem;
  }
}