/* Commun à toutes les pages, y compris celles qui ont leurs propres styles */
img, video { max-width: 100%; height: auto; }

@media (max-width: 768px) {
  pre, code { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 100%; }
  table { display: block; max-width: 100%; overflow-x: auto; }
  .nav-links, .simulator-controls, .posture-controls, :has(> .tab-btn), :has(> .calc-tab) { flex-wrap: wrap; }
  .gesture-card { min-width: 0; max-width: 100%; flex: 1 1 100%; }
  .tab-btn, .calc-tab { white-space: normal; }
}

@media (max-width: 600px) {
  [style*="grid-template-columns"], [class*="grid"] { grid-template-columns: 1fr !important; }
  [style*="grid-column"] { grid-column: auto !important; }
  [class*="grid"] > *, .main-content > * { min-width: 0; }
  .main-content { grid-template-columns: 1fr !important; }
}

#consent-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1000;
  max-width: 560px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  background: #fff;
  color: #1f2937;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  font-size: 0.95rem;
  line-height: 1.5;
}
#consent-banner p { margin: 0 0 0.75rem; }
#consent-banner a { color: #047857; text-decoration: underline; }
.consent-actions { display: flex; gap: 0.75rem; }
.consent-actions button {
  flex: 1;
  padding: 0.6rem 1rem;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: #047857;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.nav a.btn-primary { color: #fff; }
