@font-face {
  font-family: GRFooterDM;
  src: url(assets/dm.woff);
  font-display: swap;
}
@font-face {
  font-family: GRFooterRoman;
  src: url(assets/roman.woff);
  font-display: swap;
}
#grlab-depth-footer,
#grlab-depth-footer * {
  box-sizing: border-box;
}
#grlab-depth-footer {
  font:
    15px/1.65 GRFooterDM,
    Arial,
    sans-serif;
  letter-spacing: normal;
  text-transform: none;
}
#grlab-depth-footer a,
#grlab-depth-footer button {
  color: inherit;
}
#grlab-depth-footer button {
  font: inherit;
  cursor: pointer;
}
#grlab-depth-footer :is(a, button):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}
#grlab-depth-footer {
  position: relative;
  isolation: isolate;
  overflow: clip;
  margin: 0;
  width: 100%;
  background: var(--surface);
  color: var(--fg);
  --light: rgba(255, 255, 255, 0.15);
  --line: rgba(255, 255, 255, 0.21);
  --glow: rgba(238, 211, 242, 0.22);
}
#grlab-depth-footer.room-claire {
  --surface: #d8cbbc;
  --fg: #422b29;
  --accent: #7a3c37;
  --line: #a18b7b;
  --light: rgba(255, 246, 224, 0.42);
  --glow: rgba(255, 245, 223, 0.6);
  --plaque: #e7dccd;
  --shadow: rgba(59, 32, 28, 0.14);
}
#grlab-depth-footer.room-sombre {
  --surface: #332833;
  --fg: #f6f1e8;
  --accent: #d6bbda;
  --line: #72606f;
  --light: rgba(242, 218, 244, 0.14);
  --glow: rgba(219, 181, 225, 0.28);
  --plaque: #413440;
  --shadow: rgba(0, 0, 0, 0.28);
}
#grlab-depth-footer .footer-brand {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-width: 128px;
  min-height: 48px;
  color: inherit;
  text-decoration: none;
}
#grlab-depth-footer .footer-brand img {
  display: block;
  width: 124px;
  max-width: none;
  height: auto;
}
#grlab-depth-footer.room-sombre .footer-brand img {
  filter: invert(96%) sepia(7%) saturate(562%) hue-rotate(327deg) brightness(106%);
}
#grlab-depth-footer .footer-brand::after {
  position: absolute;
  inset: 0;
  content: '';
  background: var(--accent);
  opacity: 0;
  mask: url(assets/logo.png) center/124px auto no-repeat;
  -webkit-mask: url(assets/logo.png) center/124px auto no-repeat;
  transition: opacity 0.35s;
}
#grlab-depth-footer .footer-brand:hover::after,
#grlab-depth-footer .footer-brand:focus-visible::after {
  opacity: 0.7;
}
#grlab-depth-footer .footer-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  min-width: 0;
}
#grlab-depth-footer .footer-subline {
  display: none;
}
#grlab-depth-footer[data-playing='true']::before,
#grlab-depth-footer[data-playing='true'] .connecting-line::after {
  animation-play-state: running;
}
@media (prefers-reduced-motion: reduce) {
  #grlab-depth-footer,
  #grlab-depth-footer *,
  #grlab-depth-footer::before,
  #grlab-depth-footer::after,
  #grlab-depth-footer *::before,
  #grlab-depth-footer *::after {
    animation: none !important;
    transition: none !important;
  }
}
#grlab-depth-footer {
  padding: 48px 5% 20px;
  min-height: 400px;
}
#grlab-depth-footer::before,
#grlab-depth-footer::after,
#grlab-depth-footer .footer-inner::before,
#grlab-depth-footer .footer-inner::after {
  display: none;
}
#grlab-depth-footer .footer-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1.4fr 1.2fr;
  gap: 28px 5%;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  align-items: start;
}
#grlab-depth-footer .depth-identity {
  align-self: end;
  padding-bottom: 8px;
}
#grlab-depth-footer .depth-identity p {
  margin: 5px 0;
  font-size: 13px;
  line-height: 1.5;
}
#grlab-depth-footer .depth-identity .creation-year {
  font:
    400 30px/1.2 GRFooterRoman,
    serif;
}
#grlab-depth-footer .footer-brand {
  justify-content: flex-start;
  min-width: 0;
  width: 124px;
  min-height: 48px;
}
#grlab-depth-footer .footer-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
  align-items: flex-start;
}
#grlab-depth-footer .footer-column h3 {
  font:
    400 12px/1.5 GRFooterDM,
    sans-serif;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin: 0 0 15px;
}
#grlab-depth-footer .footer-link {
  display: flex;
  align-items: center;
  min-height: 36px;
  text-align: left;
  font:
    400 14px/1.4 GRFooterDM,
    sans-serif;
  border: 0;
  padding: 7px 0;
  background: none;
  color: inherit;
  text-decoration: none;
  max-width: 100%;
  overflow-wrap: anywhere;
  cursor: pointer;
}
#grlab-depth-footer .footer-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
#grlab-depth-footer .project-link {
  font:
    400 31px/1.3 GRFooterRoman,
    serif;
  min-height: 48px;
  text-decoration: none;
  margin-bottom: 7px;
}
#grlab-depth-footer .project-link:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}
#grlab-depth-footer .sample-disclaimer {
  font-size: 10px;
  line-height: 1.55;
  margin-top: 12px;
  opacity: 0.8;
}
#grlab-depth-footer .footer-bottom {
  grid-column: 1/-1;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 11px;
}
#grlab-depth-footer .back-to-top {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
#grlab-depth-footer .animated-field {
  position: absolute;
  inset: 0;
  overflow: clip;
  pointer-events: none;
  z-index: 0;
  background: var(--surface);
}
#grlab-depth-footer .animated-field i {
  position: absolute;
  inset: -65%;
  animation-play-state: paused !important;
}
#grlab-depth-footer[data-playing='true'] .animated-field i {
  animation-play-state: running !important;
}
@media (max-width: 900px) {
  #grlab-depth-footer .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  #grlab-depth-footer .depth-identity {
    grid-row: 2;
    align-self: end;
  }
  #grlab-depth-footer .footer-link {
    min-height: 44px;
  }
  #grlab-depth-footer {
    padding: 32px 5% 14px;
  }
}
@media (max-width: 480px) {
  #grlab-depth-footer .footer-link {
    font-size: 12px;
  }
  #grlab-depth-footer .footer-column h3 {
    font-size: 10px;
  }
  #grlab-depth-footer .footer-bottom {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  #grlab-depth-footer .animated-field i {
    animation: none !important;
  }
}
#grlab-depth-footer {
  --surface: #e3e5e6;
  --fg: #242a30;
  --accent: #343e49;
  --line: #65717b55;
  --light: #fff8;
  --glow: #f7faff;
  --plaque: #eef0f1;
  --shadow: #0001;
  padding: 52px 5% 20px;
  border-top: 1px solid #aeb4ba;
}
#grlab-depth-footer .footer-brand img {
  filter: none;
}
#grlab-depth-footer .footer-brand::after {
  background: #61717a;
}
#grlab-depth-footer .animated-field {
  background: #e2e5e8;
}
#grlab-depth-footer .animated-field canvas,
#grlab-depth-footer .animated-field iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  position: absolute;
  inset: 0;
  pointer-events: none;
}
#grlab-depth-footer .footer-inner {
  grid-template-columns: 1.1fr 1fr 1.45fr 1fr;
  column-gap: 5%;
  row-gap: 35px;
}
#grlab-depth-footer .depth-identity .creation-year {
  font:
    400 15px/1.5 GRFooterDM,
    sans-serif;
  letter-spacing: 0.01em;
  margin-top: 5px;
}
#grlab-depth-footer .depth-identity p {
  font-size: 11px;
}
#grlab-depth-footer .depth-identity {
  padding-bottom: 8px;
}
#grlab-depth-footer .footer-column h3 {
  font-size: 10px;
  letter-spacing: 0.18em;
  margin-bottom: 20px;
}
#grlab-depth-footer .footer-link {
  font-size: 13px;
  min-height: 38px;
}
#grlab-depth-footer .project-link {
  font-size: 34px;
  line-height: 1.2;
  margin: 0 0 20px;
}
#grlab-depth-footer .sample-disclaimer {
  font-size: 10px;
  line-height: 1.7;
  max-width: 180px;
}
#grlab-depth-footer .footer-bottom {
  font-size: 10px;
  padding-top: 10px;
}
#grlab-depth-footer .footer-brand {
  margin-bottom: 10px;
}
@media (max-width: 900px) {
  #grlab-depth-footer .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  #grlab-depth-footer .footer-link {
    min-height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #grlab-depth-footer .animated-field {
    animation: none !important;
  }
}
#grlab-depth-footer .spectrum-host {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, #e6e1e5, #fff9f7);
  pointer-events: none;
}
#grlab-depth-footer .spectrum-host canvas {
  width: 100%;
  height: 100%;
  display: block;
}
#grlab-depth-footer .spectrum-host[data-status='unavailable']::after {
  content: 'Animation indisponible sur ce navigateur';
  position: absolute;
  bottom: 5px;
  right: 15px;
  font: 10px GRFooterDM;
  color: #343438;
}
#grlab-depth-footer.style-spectre {
  --fg: #202328;
}
#grlab-depth-footer.style-spectre .footer-column h3 {
  letter-spacing: 0.14em;
}
#grlab-depth-footer.style-spectre .footer-inner {
  isolation: isolate;
}
#grlab-depth-footer.style-spectre .footer-link,
#grlab-depth-footer.style-spectre .project-link,
#grlab-depth-footer.style-spectre .depth-identity p,
#grlab-depth-footer.style-spectre .sample-disclaimer,
#grlab-depth-footer.style-spectre h3 {
  position: relative;
  text-shadow:
    0 0 9px #ffffffef,
    0 1px 2px #ffffff;
}
#grlab-depth-footer.style-spectre .footer-column {
  background: #ffffff30;
  border-radius: 2px;
  padding: 10px 12px;
  margin: -10px -12px;
}
#grlab-depth-footer.style-spectre .depth-identity {
  background: #ffffff30;
  border-radius: 2px;
  padding: 10px 12px;
  margin: 0 -12px -2px;
}
#grlab-depth-footer.style-spectre .footer-bottom {
  background: #ffffff30;
}
#grlab-depth-footer.style-spectre :is(.footer-column, .depth-identity, .footer-bottom) {
  background: transparent;
}
#grlab-depth-footer {
  --link-ink: #71a5e5;
  --link-glow: 182, 217, 255;
  --lift: -3px;
}
#grlab-depth-footer.room-sombre {
  --link-ink: #b28bcf;
  --link-glow: 222, 199, 252;
}
#grlab-depth-footer.room-claire {
  --link-ink: #c77770;
  --link-glow: 255, 198, 187;
  --lift: -3.464px;
}
#grlab-depth-footer.room-abonnements {
  --link-ink: #71a5e5;
  --link-glow: 182, 217, 255;
  --lift: -3.464px;
}
#grlab-depth-footer.room-galerie {
  --link-ink: #b77959;
  --link-glow: 255, 224, 203;
}
#grlab-depth-footer.room-apropos {
  --link-ink: #5da599;
  --link-glow: 93, 165, 153;
}
#grlab-depth-footer.room-contact {
  --link-ink: #73a99f;
  --link-glow: 179, 205, 200;
}
#grlab-depth-footer
  :is(.footer-link, .project-link, .back-to-top, h3, .depth-identity p, .sample-disclaimer, .footer-bottom > span) {
  position: relative;
  isolation: isolate;
  transition:
    translate 0.4s,
    color 0.5s !important;
  text-decoration: none !important;
}
#grlab-depth-footer
  :is(.footer-link, .project-link, .back-to-top, h3, .depth-identity p, .sample-disclaimer, .footer-bottom > span):is(
    :hover,
    :focus-visible
  ) {
  translate: 0 var(--lift);
  color: var(--link-ink) !important;
  text-shadow: none !important;
  filter: none;
}
#grlab-depth-footer .footer-brand {
  transition: translate 0.4s !important;
}
#grlab-depth-footer .footer-brand:is(:hover, :focus-visible) {
  translate: 0 var(--lift);
}
#grlab-depth-footer .footer-brand::after {
  background: var(--link-ink) !important;
}
@media (prefers-reduced-motion: reduce) {
  #grlab-depth-footer :is(a, button, h3, p, span),
  #grlab-depth-footer ::before {
    transition: none !important;
    translate: none !important;
  }
  #grlab-depth-footer ::before {
    scale: 1 !important;
  }
}
#grlab-depth-footer.style-spectre {
  --fg: #f6f1e8;
  --line: #f6f1e855;
  color: #f6f1e8;
}
#grlab-depth-footer.style-spectre
  :is(.footer-link, .project-link, .back-to-top, h3, .depth-identity p, .sample-disclaimer, .footer-bottom > span) {
  color: #f6f1e8;
  opacity: 1;
  text-shadow: 0 1px 3px #0005;
}
#grlab-depth-footer.style-spectre .footer-brand img {
  filter: brightness(0) saturate(100%) invert(94%) sepia(8%) saturate(226%) hue-rotate(350deg) brightness(102%)
    contrast(93%);
}
#grlab-depth-footer.style-spectre .spectrum-host {
  background: #25332f;
}

#grlab-depth-footer {
  min-height: 440px;
}
#grlab-depth-footer h3 {
  cursor: default;
}
#grlab-depth-footer .spectrum-host {
  background: linear-gradient(0deg, var(--depth-base), var(--depth-accent));
}
html[data-grlab-interface='mobile'] #grlab-depth-footer {
  display: none !important;
}
#grlab-depth-dialog {
  max-width: 580px;
  width: calc(100% - 40px);
  padding: 35px;
  border: 1px solid #b7a99d;
  background: #f2eee7;
  color: #322a2a;
  font:
    15px/1.7 GRFooterDM,
    Arial,
    sans-serif;
}
#grlab-depth-dialog::backdrop {
  background: #171320a8;
  backdrop-filter: blur(4px);
}
#grlab-depth-dialog h2 {
  font:
    400 34px/1.2 GRFooterRoman,
    serif;
}
#grlab-depth-dialog form {
  text-align: right;
}
#grlab-depth-dialog button {
  font: inherit;
  cursor: pointer;
  background: transparent;
  border: 0;
  min-height: 44px;
}

#grlab-depth-footer,
#grlab-depth-footer .animated-field {
  background: var(--depth-base);
}
#grlab-depth-footer .depth-identity {
  position: relative;
  inset: auto;
  display: block;
  grid-column: auto;
  grid-row: auto;
  gap: 0;
}
#grlab-depth-footer .depth-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#grlab-depth-footer .spectrum-host {
  background: transparent;
}

/* PC identity aligned with the navigation headings. */
#grlab-depth-footer.style-spectre .depth-identity {
  align-self: start;
  margin: -10px -12px 0;
  padding: 10px 12px 0;
}
#grlab-depth-footer.style-spectre .footer-brand {
  align-items: flex-start;
  min-height: 0;
}

#grlab-depth-footer .contact-column .sample-disclaimer {
  display: none;
}

#grlab-depth-footer.style-spectre.room-sombre .spectrum-host {
  background: transparent;
}

/* Match the actual lower edge of the approved home floor material. */
#grlab-depth-footer.room-sombre {
  background: var(--depth-base);
}

/* Informational text keeps the normal arrow cursor. */
#grlab-depth-footer .depth-identity p,
#grlab-depth-footer .footer-bottom > span {
  cursor: default;
}

/* Reveal the complete original floor weave on pointer hover. */
#grlab-depth-footer.style-spectre .spectrum-host {
  background: transparent;
  opacity: 0;
  transition: opacity 0.45s;
}
#grlab-depth-footer .depth-poster g {
  visibility: hidden;
}

@media (hover: hover) and (pointer: fine) {
  #grlab-depth-footer.style-spectre:hover .spectrum-host {
    opacity: 1;
  }
}

/* Legal documents window (validated style, 15 October 2026): solid wall colour of the visited room,
   format and close cross of the Prestations/Abonnements windows. */
html.grlab-legal-open {
  overflow: hidden;
}
#grlab-legal-dialog {
  --legal-wall: #162334;
  --legal-neon: #f6f1e8;
  padding: 0;
  max-width: none;
  max-height: none;
  border: 1px solid var(--legal-neon);
  background: var(--legal-wall);
  color: #f6f1e8;
  font:
    16px/1.7 GRFooterDM,
    Arial,
    sans-serif;
  box-shadow: 0 28px 100px #0006;
  overflow: hidden;
}
#grlab-legal-dialog::backdrop {
  background: rgb(13 19 21 / 42%);
  backdrop-filter: blur(4px);
}
#grlab-legal-dialog[open] {
  animation: grlab-legal-in 0.18s ease-out;
}
@keyframes grlab-legal-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* Format of the Prestations/Abonnements offer windows (1100px logical width, zoomed to fit, 5px radius). */
#grlab-legal-dialog[data-size='offres'] {
  width: 1100px;
  height: 640px;
  border-radius: 5px;
}
#grlab-legal-dialog .legal-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
}
#grlab-legal-dialog .legal-head {
  position: relative;
  flex: none;
  padding: 34px 110px 24px 44px;
  border-bottom: 1px solid color-mix(in srgb, var(--legal-neon) 35%, transparent);
}
#grlab-legal-dialog .legal-eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--legal-neon);
}
#grlab-legal-dialog h2#grlab-legal-title {
  margin: 0;
  font:
    400 40px/1.1 GRFooterRoman,
    Georgia,
    serif;
  color: #f6f1e8;
}
/* Close cross: Prestations Premium window at rest (window-coloured disc, ivory cross and ring);
   rotation, brightening and halo on hover only. */
#grlab-legal-dialog .legal-close,
#grlab-legal-dialog .legal-close:focus-visible {
  position: absolute;
  top: 30px;
  right: 34px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1.4px solid #f6f1e8;
  border-radius: 50%;
  background: var(--legal-wall);
  color: #f6f1e8;
  cursor: pointer;
  box-shadow: none;
  outline: none;
  transition:
    background 0.25s,
    color 0.25s,
    border-color 0.25s,
    box-shadow 0.25s;
}
#grlab-legal-dialog .legal-close svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  transform-origin: center;
  rotate: 0deg;
  transition: rotate 0.3s;
}
#grlab-legal-dialog .legal-close:hover {
  background: color-mix(in srgb, var(--legal-neon) 72%, #fff);
  border-color: #fff;
  color: var(--legal-wall);
  box-shadow: 0 0 18px color-mix(in srgb, var(--legal-neon) 38%, transparent);
}
#grlab-legal-dialog .legal-close:hover svg {
  rotate: 90deg;
}
html[data-input='keyboard'] #grlab-legal-dialog .legal-close:focus-visible {
  border-color: #fff;
  box-shadow: 0 0 12px color-mix(in srgb, var(--legal-neon) 50%, transparent);
}
#grlab-legal-dialog .legal-layout {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 0;
  flex: 1;
}
#grlab-legal-dialog[data-toc='true'] .legal-layout {
  grid-template-columns: 250px 1fr;
}
#grlab-legal-dialog .legal-toc {
  display: none;
  overflow: auto;
  padding: 26px 18px 26px 44px;
  scrollbar-color: color-mix(in srgb, var(--legal-neon) 45%, transparent) transparent;
  border-right: 1px solid color-mix(in srgb, var(--legal-neon) 22%, transparent);
}
#grlab-legal-dialog[data-toc='true'] .legal-toc {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
#grlab-legal-dialog .legal-toc a {
  color: color-mix(in srgb, #f6f1e8 75%, transparent);
  text-decoration: none;
  font-size: 13.5px;
  line-height: 1.35;
  padding: 6px 0;
  transition: color 0.25s;
}
#grlab-legal-dialog .legal-toc a:is(:hover, :focus-visible) {
  color: var(--legal-neon);
}
#grlab-legal-dialog .legal-body {
  overflow: auto;
  padding: 28px 44px 36px;
  outline: none;
  scrollbar-color: color-mix(in srgb, var(--legal-neon) 45%, transparent) transparent;
}
#grlab-legal-dialog .legal-body h2 {
  margin: 30px 0 10px;
  font:
    400 25px/1.25 GRFooterRoman,
    Georgia,
    serif;
  color: var(--legal-neon);
  scroll-margin-top: 16px;
}
#grlab-legal-dialog .legal-body h2:first-child {
  margin-top: 0;
}
#grlab-legal-dialog .legal-body p,
#grlab-legal-dialog .legal-body li {
  color: color-mix(in srgb, #f6f1e8 92%, transparent);
}
#grlab-legal-dialog .legal-body p {
  margin: 0 0 12px;
}
#grlab-legal-dialog .legal-body ul {
  margin: 0 0 14px;
  padding-left: 20px;
}
#grlab-legal-dialog .legal-body strong {
  color: #f6f1e8;
  font-weight: 600;
}
#grlab-legal-dialog .legal-body a {
  color: var(--legal-neon);
}
#grlab-legal-dialog .legal-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 20px;
  font-size: 14px;
}
#grlab-legal-dialog .legal-body :is(th, td) {
  padding: 9px 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--legal-neon) 28%, transparent);
  text-align: left;
  vertical-align: top;
}
#grlab-legal-dialog .legal-body th {
  color: var(--legal-neon);
  font-weight: 400;
  letter-spacing: 0.04em;
}
#grlab-legal-dialog[data-state='loading'] .legal-body::before {
  content: 'Chargement…';
  color: color-mix(in srgb, #f6f1e8 60%, transparent);
}
#grlab-legal-dialog .legal-foot {
  flex: none;
  padding: 14px 44px;
  border-top: 1px solid color-mix(in srgb, var(--legal-neon) 22%, transparent);
  text-align: right;
}
#grlab-legal-dialog .legal-full {
  color: var(--legal-neon);
  font-size: 13.5px;
  text-decoration: none;
}
#grlab-legal-dialog .legal-full:is(:hover, :focus-visible) {
  text-decoration: underline;
}
/* Narrow screens and mobile: one format, full width (validated mobile rendering). */
@media (max-width: 1008px) {
  #grlab-legal-dialog[data-size] {
    width: calc(100vw - 20px);
    height: auto;
    max-height: calc(100dvh - 32px);
    border-radius: 5px;
    zoom: 1 !important;
  }
  #grlab-legal-dialog .legal-shell {
    max-height: calc(100dvh - 32px);
  }
  #grlab-legal-dialog[data-toc='true'] .legal-layout {
    grid-template-columns: 1fr;
  }
  #grlab-legal-dialog .legal-toc {
    display: none !important;
  }
}
@media (max-width: 760px) {
  #grlab-legal-dialog .legal-head {
    padding: 24px 76px 18px 22px;
  }
  #grlab-legal-dialog h2#grlab-legal-title {
    font-size: 30px;
  }
  #grlab-legal-dialog .legal-close {
    top: 20px;
    right: 18px;
  }
  #grlab-legal-dialog .legal-body {
    padding: 20px 22px 28px;
  }
  #grlab-legal-dialog .legal-foot {
    padding: 12px 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #grlab-legal-dialog[open] {
    animation: none;
  }
  #grlab-legal-dialog .legal-close,
  #grlab-legal-dialog .legal-close svg {
    transition: none;
  }
  #grlab-legal-dialog .legal-close:hover svg {
    rotate: none;
  }
}
/* The mobile host pauses page animations (grlr-paused): the legal window keeps its own opening animation. */
html.grlr-paused #grlab-legal-dialog[open],
html.grlr-paused #grlab-legal-dialog * {
  animation-play-state: running !important;
}
/* Interface mobile : fenêtre des pages légales aux couleurs de l'accueil mobile (nuit #080613, halo indigo,
   bleu #95BAFF, titres #B5D2FF, croix ivoire). Validé le 19 octobre 2026. */
html[data-grlab-interface='mobile'] #grlab-legal-dialog {
  --legal-wall: #080613 !important;
  --legal-neon: #95baff !important;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(59, 52, 115, 0.42), rgba(59, 52, 115, 0) 70%),
    radial-gradient(90% 50% at 100% 100%, rgba(36, 54, 113, 0.35), rgba(36, 54, 113, 0) 70%), #080613 !important;
  border-color: rgba(149, 186, 255, 0.55) !important;
  box-shadow:
    0 0 40px rgba(99, 144, 231, 0.18),
    0 28px 100px #0008 !important;
}
html[data-grlab-interface='mobile'] #grlab-legal-dialog::backdrop {
  background: rgba(5, 8, 23, 0.6) !important;
  backdrop-filter: blur(5px) !important;
}
html[data-grlab-interface='mobile'] #grlab-legal-dialog .legal-eyebrow {
  color: #95baff !important;
}
html[data-grlab-interface='mobile'] #grlab-legal-dialog .legal-head {
  border-bottom-color: rgba(149, 186, 255, 0.28) !important;
}
html[data-grlab-interface='mobile'] #grlab-legal-dialog .legal-body h2 {
  color: #b5d2ff !important;
}
html[data-grlab-interface='mobile'] #grlab-legal-dialog :is(.legal-body a, .legal-full) {
  color: #95baff !important;
}
html[data-grlab-interface='mobile'] #grlab-legal-dialog .legal-body :is(th, td) {
  border-bottom-color: rgba(149, 186, 255, 0.24) !important;
}
html[data-grlab-interface='mobile'] #grlab-legal-dialog :is(.legal-close, .legal-close:focus-visible) {
  background: rgba(8, 6, 19, 0.6) !important;
  border-color: #f6f1e8 !important;
  color: #f6f1e8 !important;
}
html[data-grlab-interface='mobile'] #grlab-legal-dialog .legal-close:hover {
  background: #b5d2ff !important;
  border-color: #fff !important;
  color: #080613 !important;
  box-shadow: 0 0 18px rgba(149, 186, 255, 0.45) !important;
}
