/* Page de maintenance – Thibault de Kerdrel */

:root {
  --rouge-fond: #1c0607;
  --blanc: #fff;
  --blanc-doux: rgba(255, 255, 255, 0.82);
  --accent: #dc8100;
  --police: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  font-family: var(--police);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--blanc);
  background-color: var(--rouge-fond);
  position: relative;
}

/* Fond : texture rouge assombrie + halo + vignette.
   Un pseudo-élément fixe fonctionne sur mobile, contrairement à background-attachment: fixed. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  min-height: 100lvh;
  z-index: -1;
  pointer-events: none;
  background-color: var(--rouge-fond);
  background-image:
    /* vignette : coins très sombres */
    radial-gradient(ellipse 120% 100% at 50% 40%, transparent 35%, rgba(0, 0, 0, 0.7) 100%),
    /* halo rouge derrière le pictogramme */
    radial-gradient(ellipse 55% 40% at 50% 36%, rgba(200, 40, 35, 0.34), transparent 70%),
    /* assombrissement de la texture */
    linear-gradient(180deg, rgba(14, 2, 3, 0.62), rgba(6, 1, 2, 0.86)),
    /* texture d'origine */
    url("img/fond_red.jpg");
  background-image:
    radial-gradient(ellipse 120% 100% at 50% 40%, transparent 35%, rgba(0, 0, 0, 0.7) 100%),
    radial-gradient(ellipse 55% 40% at 50% 36%, rgba(200, 40, 35, 0.34), transparent 70%),
    linear-gradient(180deg, rgba(14, 2, 3, 0.62), rgba(6, 1, 2, 0.86)),
    image-set(
      url("img/fond_red.webp") type("image/webp"),
      url("img/fond_red.jpg") type("image/jpeg")
    );
  background-size: cover;
  background-position: center;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: clamp(2rem, 8vh, 6rem) 1.5rem 2rem;
  text-align: center;
}

.picto {
  width: clamp(120px, 28vw, 200px);
  height: auto;
  animation: apparition 0.9s ease-out both;
}

h1 {
  margin: 0.5rem 0 0;
  font-size: clamp(2rem, 7vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.message {
  margin: 0;
  max-width: 28em;
  color: var(--blanc-doux);
}

.signature {
  margin: 1rem 0 0;
  font-weight: 700;
}

.logo {
  height: 50px;
  width: auto;
  margin-top: 0.5rem;
}

footer {
  padding: 1.5rem 1.5rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  text-align: center;
  font-size: 0.875rem;
  color: var(--blanc-doux);
}

footer p {
  margin: 0 0 1rem;
}

.reseaux {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reseaux a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.reseaux a:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.reseaux a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.reseaux img {
  width: 28px;
  height: 28px;
}

@keyframes apparition {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .picto { animation: none; }
  .reseaux a { transition: none; }
}

@media (max-width: 480px) {
  body { font-size: 1.125rem; }
  body::before {
    background-position: 60% center;
    background-image:
      radial-gradient(ellipse 140% 90% at 50% 40%, transparent 30%, rgba(0, 0, 0, 0.75) 100%),
      radial-gradient(ellipse 90% 35% at 50% 32%, rgba(200, 40, 35, 0.32), transparent 70%),
      linear-gradient(180deg, rgba(14, 2, 3, 0.62), rgba(6, 1, 2, 0.88)),
      url("img/fond_red.jpg");
    background-image:
      radial-gradient(ellipse 140% 90% at 50% 40%, transparent 30%, rgba(0, 0, 0, 0.75) 100%),
      radial-gradient(ellipse 90% 35% at 50% 32%, rgba(200, 40, 35, 0.32), transparent 70%),
      linear-gradient(180deg, rgba(14, 2, 3, 0.62), rgba(6, 1, 2, 0.88)),
      image-set(
        url("img/fond_red.webp") type("image/webp"),
        url("img/fond_red.jpg") type("image/jpeg")
      );
  }
}