/* =========================
   VARIABLES ET RÉINITIALISATION
   ========================= */

:root {
  --white: #ffffff;
  --blue: #99cccc;
  --green: #66cc99;
  --gray: #666666;

  --green-dark: #3f9d72;
  --blue-light: #eaf6f6;
  --gray-light: #f4f6f6;

  --shadow: 0 24px 70px rgba(70, 100, 100, 0.2);
  --radius-large: 28px;
  --radius-medium: 16px;
}

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

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  color: var(--gray);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;

  background:
    radial-gradient(
      circle at 12% 18%,
      rgba(153, 204, 204, 0.65),
      transparent 30%
    ),
    radial-gradient(
      circle at 88% 80%,
      rgba(102, 204, 153, 0.42),
      transparent 28%
    ),
    linear-gradient(145deg, #f8ffff 0%, #eef9f6 100%);
}

/* Motif de fond discret rappelant les colonnes d'une institution. */
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.28;
  background-image:
    linear-gradient(
      90deg,
      transparent 49%,
      rgba(102, 102, 102, 0.08) 50%,
      transparent 51%
    );
  background-size: 70px 70px;
  pointer-events: none;
}

/* =========================
   MISE EN PAGE
   ========================= */

.maintenance {
  display: grid;
  min-height: 100vh;
  padding: 32px 20px;
  place-items: center;
}

.card {
  position: relative;
  width: min(100%, 820px);
  overflow: hidden;
  border: 1px solid rgba(153, 204, 204, 0.55);
  border-radius: var(--radius-large);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

/* Bande décorative tricolore inspirée de la palette du serveur. */
.card::before {
  display: block;
  width: 100%;
  height: 8px;
  content: "";
  background: linear-gradient(
    90deg,
    var(--blue) 0 33%,
    var(--white) 33% 66%,
    var(--green) 66% 100%
  );
}

/* =========================
   EN-TÊTE
   ========================= */

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 30px 42px 22px;
  border-bottom: 1px solid rgba(153, 204, 204, 0.3);
}

.logo {
  display: grid;
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border-radius: 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--green));
  box-shadow: 0 10px 25px rgba(102, 204, 153, 0.35);
  place-items: center;
}

.logo-building {
  font-size: 34px;
  line-height: 1;
  transform: rotate(90deg);
}

.brand-label {
  margin-bottom: 3px;
  color: var(--green-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  color: var(--gray);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1;
}

/* =========================
   STATUT ET CONTENU
   ========================= */

.status {
  position: absolute;
  top: 38px;
  right: 42px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid rgba(102, 204, 153, 0.4);
  border-radius: 999px;
  color: var(--green-dark);
  background: rgba(102, 204, 153, 0.12);
  font-size: 0.86rem;
  font-weight: 750;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(102, 204, 153, 0.65);
  animation: pulse 1.8s infinite;
}

.content {
  padding: 50px 42px 42px;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h2 {
  max-width: 620px;
  margin-bottom: 18px;
  color: var(--gray);
  font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.description {
  max-width: 650px;
  font-size: 1.08rem;
  line-height: 1.75;
}

/* =========================
   PROGRESSION
   ========================= */

.progress-section {
  margin-top: 38px;
}

.progress-heading {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.progress-heading strong {
  color: var(--green-dark);
}

.progress-track {
  height: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--blue-light);
}

.progress-bar {
  width: 75%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--green));
  box-shadow: 0 0 18px rgba(102, 204, 153, 0.45);
  animation: loading 1.2s ease-out both;
}

/* =========================
   INFORMATION
   ========================= */

.information {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 28px;
  padding: 18px;
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius-medium) var(--radius-medium) 0;
  background: var(--gray-light);
}

.information-icon {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--white);
  background: var(--blue);
  font-family: Georgia, serif;
  font-weight: 700;
  place-items: center;
}

.information p {
  line-height: 1.6;
}

/* =========================
   BOUTONS
   ========================= */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 32px;
}

.button {
  min-height: 48px;
  padding: 13px 20px;
  border: 2px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:focus-visible {
  outline: 3px solid rgba(153, 204, 204, 0.7);
  outline-offset: 3px;
}

.button-primary {
  color: var(--white);
  background: var(--green);
  box-shadow: 0 10px 24px rgba(102, 204, 153, 0.3);
}

.button-primary:hover {
  background: var(--green-dark);
}

.button-secondary {
  color: var(--gray);
  border-color: var(--blue);
  background: var(--white);
}

.button-secondary:hover {
  background: var(--blue-light);
}

/* =========================
   PIED DE PAGE
   ========================= */

footer {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 20px 42px;
  border-top: 1px solid rgba(153, 204, 204, 0.3);
  color: rgba(102, 102, 102, 0.78);
  background: rgba(153, 204, 204, 0.08);
  font-size: 0.86rem;
  text-align: center;
}

/* =========================
   ANIMATIONS
   ========================= */

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 9px rgba(102, 204, 153, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(102, 204, 153, 0);
  }
}

@keyframes loading {
  from {
    width: 0;
  }

  to {
    width: 75%;
  }
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 680px) {
  .maintenance {
    padding: 16px;
  }

  .brand,
  .content {
    padding-right: 24px;
    padding-left: 24px;
  }

  .brand {
    padding-top: 24px;
    padding-bottom: 20px;
  }

  .logo {
    width: 54px;
    height: 54px;
  }

  .status {
    position: static;
    width: max-content;
    margin: 22px 24px 0;
  }

  .content {
    padding-top: 30px;
    padding-bottom: 32px;
  }

  .actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  footer {
    flex-direction: column;
    padding-right: 24px;
    padding-left: 24px;
  }

  .footer-separator {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
