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

html,
body {
  margin: 0;
}

body {
  font-family: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
  color: #fff;
  background-color: #1b1d1f;
  -webkit-font-smoothing: antialiased;
}

/* Page d'attente plein écran */
.attente {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh; /* tient compte des barres d'interface sur mobile */
  padding: 48px 16px;
  overflow: hidden;
  background-color: #1b1d1f;
  background-image: url("../img/fond-mbo.jpg");
  background-image: image-set(
    url("../img/fond-mbo.webp") type("image/webp"),
    url("../img/fond-mbo.jpg") type("image/jpeg")
  );
  background-size: cover;
  background-position: center;
}

/* Voile sombre pour garantir la lisibilité du logo et du texte */
.attente::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(12, 13, 15, 0.35) 0%, rgba(12, 13, 15, 0) 65%),
    linear-gradient(180deg, rgba(12, 13, 15, 0.45) 0%, rgba(12, 13, 15, 0.35) 50%, rgba(12, 13, 15, 0.65) 100%);
}

.attente__contenu {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: apparition 1.2s ease-out both;
}

.attente__logo {
  margin: 0;
  line-height: 0;
}

.attente__logo img {
  display: block;
  width: clamp(170px, 26vw, 300px);
  height: auto;
  filter: drop-shadow(0 2px 18px rgba(0, 0, 0, 0.35));
}

.attente__trait {
  display: block;
  width: 48px;
  height: 1px;
  margin: clamp(28px, 4vw, 40px) 0 clamp(20px, 3vw, 28px);
  background: rgba(255, 255, 255, 0.7);
}

.attente__titre {
  margin: 0;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  /* compense l'espacement après la dernière lettre pour un centrage optique */
  margin-right: -0.32em;
}

.attente__texte {
  margin: 12px 0 0;
  max-width: 32ch;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.85);
  text-wrap: balance;
}

@keyframes apparition {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

/* Mobile portrait : recadre sur la façade en pierre et les menuiseries bois */
@media (max-aspect-ratio: 3/4) {
  .attente {
    background-position: 30% center;
  }
}
