/* Page de maintenance – Thibault de Kerdrel */

:root {
  --rouge-fond: #5a0f10;
  --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);
  background-image: url("img/fond_red.jpg");
  background-image: image-set(
    url("img/fond_red.webp") type("image/webp"),
    url("img/fond_red.jpg") type("image/jpeg")
  );
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

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; }
  /* background-attachment: fixed est mal géré sur mobile */
  body { background-attachment: scroll; }
}
