/* Take Your Time — navigation océan, issue du pack Tiny Swords.
   Le cadre bleu 9-slice est composé des neuf régions 64x64
   de BigBlueButton_Regular / BigBlueButton_Pressed (192x192).
   On étire les bords, pas les coins. */
:root {
  color-scheme: light;
  --ocean: #47aba9;
  --ink: #172327;
  --text: #ffffff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body.ocean-page {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--ocean);
  color: var(--text);
  overflow-x: hidden;
}
a { color: inherit; }
/* Texte blanc bordé de noir : outline natif Safari / fallback ombres. */
.outline-text {
  color: #fff;
  -webkit-text-stroke: 1.2px var(--ink);
  paint-order: stroke fill;
  text-shadow:
    1px 1px 0 var(--ink),
    -1px 1px 0 var(--ink),
    1px -1px 0 var(--ink),
    -1px -1px 0 var(--ink);
}
.page-head {
  width: min(1020px, calc(100% - 26px));
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  padding: calc(12px + env(safe-area-inset-top)) 0 8px;
  gap: 12px;
}
.page-brand {
  color: #fff;
  font-size: clamp(1.05rem, 4vw, 1.42rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  text-decoration: none;
  text-align: right;
}
.page-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(760px, calc(100% - 28px));
  margin: 0 auto;
  padding: 12px 0 calc(30px + env(safe-area-inset-bottom));
  text-align: center;
}
.page-title {
  margin: 0 0 clamp(25px, 6vh, 56px);
  font-size: clamp(2.8rem, 10vw, 5.2rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.055em;
}
.page-subtitle {
  margin: 0 0 16px;
  font-size: clamp(1.05rem, 4vw, 1.45rem);
  font-weight: 800;
}
.landing-title {
  font-size: clamp(3.6rem, 12vw, 7rem);
  line-height: .96;
  margin-bottom: clamp(36px, 8vh, 70px);
}
.menu-links {
  display: flex;
  flex-direction: column;
  width: min(100%, 600px);
  gap: clamp(8px, 1.7vh, 17px);
}
/* border-image-slice:64 fill découpe notre PNG 192x192 en neuf carrés.
   Les coins conservent leur forme, le centre s'adapte au libellé. */
.pixel-button {
  position: relative;
  isolation: isolate;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 110px;
  padding: 24px 42px;
  border: 0;
  outline: 0;
  background: transparent;
  font: 800 clamp(1.22rem, 4.2vw, 1.86rem)/1.16 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-decoration: none;
  text-align: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.pixel-button::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border: 40px solid transparent;
  border-image-source: url("./blue-button-regular-nine-slice.png?v=eede3fdb");
  border-image-slice: 64 fill;
  border-image-width: 1;
  border-image-repeat: stretch;
  image-rendering: pixelated;
  pointer-events: none;
}
.pixel-button:hover::before { filter: brightness(1.08); }
.pixel-button:active::before {
  border-image-source: url("./blue-button-pressed-nine-slice.png?v=f9ac534c");
  filter: none;
}
.pixel-button:active .outline-text { transform: translateY(2px); }
.pixel-button:focus-visible { outline: 3px solid white; outline-offset: 2px; border-radius: 10px; }
.pixel-button.small {
  width: auto;
  min-width: 148px;
  min-height: 84px;
  padding: 16px 32px;
  font-size: clamp(1.05rem, 3.5vw, 1.27rem);
}
.pixel-button.small::before { border-width: 30px; }
@media(max-width: 420px) {
  .page-content { width: calc(100% - 18px); }
  .pixel-button { padding-inline: 28px; min-height: 105px; }
  .pixel-button::before { border-width: 36px; }
  .pixel-button.small { min-width: 140px; padding-inline: 22px; }
  .pixel-button.small::before { border-width: 28px; }
  .page-title { font-size: clamp(2.5rem, 11vw, 4rem); }
}
@media(max-height: 590px) {
  .page-content { justify-content: flex-start; padding-top: 12px; }
  .page-title { margin-bottom: 14px; }
  .pixel-button { min-height: 92px; }
}
@media(prefers-reduced-motion: reduce) {
  .pixel-button:active .outline-text { transform: none; }
}
