/*
 * L’ophicine — Page de maintenance épurée
 * Design fidèle à la capture, sans JavaScript ni dépendances distantes.
 * Couleurs et dimensions centralisées pour une modification facile.
 */
:root {
  color-scheme: light;
  --page-background: #f2f0ec;
  --text-color: #223e4b;
  --grid-color: rgba(207, 196, 179, 0.24);
  --cross-color: rgba(184, 169, 146, 0.55);
  --logo-width: 210px;
  --content-width: 1000px;
}

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

html { min-height: 100%; }
body {
  min-width: 280px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background: var(--page-background);
  color: var(--text-color);
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* La grille s'estompe dans la moitié basse, comme dans l'interface d'origine. */
.grid-background {
  position: fixed;
  inset: 0 0 auto;
  height: min(620px, 100svh);
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, var(--grid-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
  background-position: 5px 0;
  background-size: 46px 46px;
  -webkit-mask-image: linear-gradient(to bottom, black 0, black 67%, transparent 96%);
  mask-image: linear-gradient(to bottom, black 0, black 67%, transparent 96%);
}

/* Les petites croix présentes dans le motif original. */
.cross {
  position: absolute;
  width: 34px;
  height: 34px;
  opacity: .78;
  background:
    linear-gradient(var(--cross-color), var(--cross-color)) center / 1px 34px no-repeat,
    linear-gradient(var(--cross-color), var(--cross-color)) center / 34px 1px no-repeat;
}
.cross--one   { left: 34.8%; top: -5px; }
.cross--two   { left: 63.6%; top: 29px; }
.cross--three { left: -8px; top: 169px; }
.cross--four  { right: 1.6%; top: 168px; }
.cross--five  { left: 5.8%; top: 305px; }
.cross--six   { right: 2.7%; top: 306px; }
.cross--seven { left: 3.4%; top: 509px; }
.cross--eight { right: 8.9%; top: 509px; }

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 38px 22px;
}

.maintenance-message {
  width: min(100%, var(--content-width));
  text-align: center;
  transform: translateY(-46px);
}

.brand-logo {
  display: block;
  width: var(--logo-width);
  height: auto;
  margin: 0 auto 42px;
  object-fit: contain;
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.1vw, 37px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.maintenance-description {
  margin: 0 auto;
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.2;
  font-weight: 400;
}

@media (max-width: 700px) {
  :root { --logo-width: 186px; }
  .maintenance-message { transform: translateY(-23px); }
  .brand-logo { margin-bottom: 36px; }
  h1 { max-width: 530px; margin: 0 auto 19px; letter-spacing: -.035em; }
  .maintenance-description { max-width: 490px; line-height: 1.5; }
  .desktop-break { display: none; }
}

@media (max-width: 360px) {
  .page { padding-inline: 16px; }
  h1 { font-size: 25px; }
  .maintenance-description { font-size: 16px; }
}

@media (max-height: 540px) and (min-width: 701px) {
  .maintenance-message { transform: none; }
  .brand-logo { width: 165px; margin-bottom: 20px; }
  h1 { font-size: 29px; }
  .maintenance-description { font-size: 16px; }
}
