:root { --gl-footer-h: 44px; }

html { scroll-padding-bottom: var(--gl-footer-h); }
body { padding-bottom: var(--gl-footer-h); }

.gl-footer {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  min-height: var(--gl-footer-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 0.3rem 1.1rem;
  padding: 6px 1.1rem;
  background: #151412;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.3);
  font-size: 0.72rem;
  line-height: 1.4;
  color: rgba(236, 229, 214, 0.7);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.gl-footer-copy { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.gl-footer-legal { display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap; flex: none; }
.gl-footer-legal a { color: rgba(236, 229, 214, 0.7); text-decoration: none; transition: color 0.15s; }
.gl-footer-legal .gl-footer-magicgrid { color: var(--or, #d9ae3f); font-weight: 700; }
.gl-footer-legal a:hover { color: var(--or, #d9ae3f); }
.gl-footer-btc { display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap; flex: none; }
.gl-footer-btc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.01em;
  color: rgba(236, 229, 214, 0.85);
}
.gl-footer-btc-icon { font-size: 0.82rem; line-height: 1; }
/* Abréviations mobiles : « Cond. » / « Conf. » et masquage de l'adresse BTC. */
.gl-short { display: none; }
@media (max-width: 560px) {
  .gl-long { display: none; }
  .gl-short { display: inline; }
  .gl-footer-btc { display: none; }
}

.gl-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 9, 8, 0.65);
  backdrop-filter: blur(3px);
}
.gl-modal-overlay.open { display: flex; }
.gl-modal {
  position: relative;
  width: min(680px, 100%);
  max-height: 85vh;
  overflow-y: auto;
  background: #ece5d6;
  color: #2a2520;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  padding: 28px 32px 32px;
  line-height: 1.6;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  animation: glModalIn 0.18s ease;
}
@keyframes glModalIn {
  from { transform: translateY(12px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.gl-modal h2 { font-size: 1.45rem; margin: 0 0 4px; color: #2a2520; }
.gl-modal h3 { font-size: 1.02rem; margin: 20px 0 6px; color: #2a2520; }
.gl-modal p, .gl-modal li { color: #3d362e; font-size: 0.92rem; }
.gl-modal ul { margin: 8px 0; padding-left: 22px; }
.gl-modal a { color: #7a5230; }
.gl-modal .gl-legal-meta { color: #6b6358; font-size: 0.85rem; margin-bottom: 16px; }
.gl-modal .gl-legal-callout {
  margin: 16px 0;
  padding: 12px 14px;
  border-left: 4px solid #b07a45;
  border-radius: 8px;
  background: #f6efdc;
  font-weight: 600;
  font-size: 0.9rem;
  color: #4a4238;
}
.gl-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: #ddd4c1;
  color: #3d362e;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s;
}
.gl-modal-close:hover { background: #cfc5b0; }

@media (max-width: 560px) {
  .gl-modal { padding: 22px 18px 26px; }
  .gl-footer { font-size: 0.68rem; }
}
