/* construction.css - style pour la page "Site en construction" */

/* Import de polices (optionnel) */
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@700&family=MedievalSharp&display=swap');

:root{
  --texte: #d0e4ff;
  --bleu-fonce: #071624;
  --btn-bg: rgba(108,160,220,0.12);
  --accent: #6ca0dc;
}

/* Reset simple */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bleu-fonce);
  font-family: "MedievalSharp", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: var(--texte);
}

/* Conteneur principal */
.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;

  /* image de fond : place ici le chemin vers ton image */
  background-image: url('../Images/chevalier-construction.png');
  background-position: center 55%; /* ajuste verticalement si nécessaire */
  background-repeat: no-repeat;
  background-size: contain; /* affiche l'image entière sans recadrage */
  padding: 2rem;
}

/* voile sombre pour lisibilité */
.page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,6,15,0.75), rgba(0,6,15,0.25) 40%, rgba(0,6,15,0.6));
  pointer-events: none;
}

/* Panel centré contenant le texte */
.panel {
  position: relative;
  z-index: 2;
  max-width: 820px;
  width: 100%;
  text-align: center;
  padding: 2.5rem 1.5rem;
  backdrop-filter: none;
}

/* Titre */
h1 {
  font-family: "Cinzel Decorative", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: 0.02em;
  margin-bottom: 9rem;
  color: var(--accent);
  text-shadow: 0 6px 18px rgba(6,18,30,0.6);
}

/* Sous-titre */
.subtitle {
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  margin-bottom: 1rem;
  color: #9fbfe8;
}

/* Texte d'info */
.info p {
  margin: 0.35rem 0;
  color: #bcd7f3;
  opacity: 0.95;
}

/* Bouton discret */
.btn {
  display: inline-block;
  margin-top: 20rem;
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--texte);
  border: 1px solid rgba(108,160,220,0.18);
  background: linear-gradient(180deg, rgba(12,30,50,0.18), rgba(12,30,50,0.08));
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 6px 18px rgba(6,18,30,0.45);
}

.btn:hover, .btn:focus {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(108,160,220,0.15);
}

/* petite braise animée (visuel discret au sol) */
.braise {
  position: absolute;
  z-index: 1;
  width: 12px;
  height: 8px;
  left: 57%; /* ajuste si nécessaire pour que la braise tombe sur l'image */
  bottom: 15%; /* ajuster pour correspondre au sol de l'image */
  background: radial-gradient(circle at 50% 50%, #ffbe6d 0%, #ff8a3b 40%, rgba(255,80,0,0.6) 60%, transparent 70%);
  filter: blur(1px);
  transform: translateX(-50%);
  box-shadow: 0 0 20px rgba(255,140,60,0.3);
  animation: braisePulse 1.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes braisePulse {
  0%   { transform: translateX(-50%) scale(0.8); opacity: 0.85; }
  50%  { transform: translateX(-50%) scale(1.2); opacity: 1; }
  100% { transform: translateX(-50%) scale(0.9); opacity: 0.85; }
}

/* Responsive : sur petits écrans on adapte l'image et rend la braise cachée si besoin */
@media (max-width: 680px) {
  .page {
    background-size: cover; /* pour bien remplir l'écran mobile */
    background-position: center 60%;
  }
  .braise { display: none; }
  .panel { padding: 1.2rem; }
  h1 { font-size: 2rem; }
}
