/* Styles for the "site en sommeil" (dormant) mode — loaded in every mode but
   every rule is scoped to `.topbar` / `.dormant`, which exist only when the
   site is dormant, so this file is inert once the full site is reactivated. */

body.dormant-mode {
  margin: 0;
  background-color: #f8f8f8;
}

body.dormant-mode * {
  box-sizing: border-box;
}

/* --- Top bar --- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  background-color: #f8f9fa;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.topbar__logo {
  display: block;
}

.topbar .lang-switch {
  display: flex;
  gap: 0.5rem;
}

.topbar .lang-switch a {
  display: inline-flex;
  border: 1px solid #d3d2d2;
  border-radius: 4px;
  padding: 2px;
  line-height: 0;
  opacity: 0.55;
  transition: opacity 0.15s ease;
}

.topbar .lang-switch a:hover {
  opacity: 0.9;
}

.topbar .lang-switch a[aria-current="true"] {
  opacity: 1;
  border-color: #099de7;
}

.topbar .lang-switch img {
  width: 28px;
  height: 21px;
  display: block;
}

/* --- Dormant message --- */
.dormant {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  color: #1f2937;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 3rem;
}

.dormant__logo {
  width: 260px;
  max-width: 80%;
  margin-bottom: 2.5rem;
}

.dormant h1 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin: 0 0 1.25rem;
}

.dormant p {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  max-width: 40rem;
  margin: 0;
}
