@font-face {
  font-family: "Montserrat";
  src: url("/static/fonts/montserrat-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("/static/fonts/montserrat-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
  font-weight: 600;
  line-height: 1.35;
}
.page {
  max-width: 470px;
  margin: 0 auto;
  padding: 36px 22px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.logo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25); }
h1, .desc { text-shadow: var(--text-shadow); text-align: center; }
h1 { font-size: 1.35rem; font-weight: 700; margin: 6px 0 0; }
.desc { margin: 0 0 10px; opacity: 0.92; white-space: pre-line; }

.links, .menu-items { list-style: none; margin: 0; padding: 0; width: 100%; display: flex; flex-direction: column; }
.links { gap: 14px; }

/* Bouton-lien : pilule pleine, icône + texte centrés. */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 54px;
  padding: 12px 22px;
  text-align: center;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
  overflow-wrap: anywhere;
  background: var(--btn-bg);
  color: var(--btn-text);
  border: 1px solid var(--btn-border);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18); }
.btn:focus-visible { outline: 3px solid var(--menu-text); outline-offset: 2px; }
.icon { flex: none; width: 20px; height: 20px; }

/* Menu : barre translucide, texte à gauche, chevron à droite. */
details.menu > summary { list-style: none; }
details.menu > summary::-webkit-details-marker { display: none; }
.menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding: 9px 16px 9px 14px;
  font-size: 0.92rem;
  font-weight: 700;
  overflow-wrap: anywhere;
  background: var(--menu-bg);
  color: var(--menu-text);
  border: 1px solid var(--menu-border);
  border-radius: min(var(--radius), 10px);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  cursor: pointer;
}
.menu-head::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-right: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease, margin 0.2s ease;
}
details.menu[open] > .menu-head::after { margin-top: 4px; transform: rotate(-135deg); }
.menu-head:focus-visible { outline: 3px solid var(--menu-text); outline-offset: 2px; }

.menu-items { gap: 10px; padding: 10px 0 4px; }
.menu-items .btn { min-height: 46px; padding: 10px 18px; font-size: 0.95rem; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
