/* ================================
   CORE DESIGN SYSTEM — LÉONARD
   Neutre, agnostique du thème
================================ */

:root {
  /* Rayons / animations */
  --radius: 12px;
  --radius-lg: 16px;
  --transition: .25s cubic-bezier(.4,0,.2,1);
  
  /* Overlay */
  --overlay-blur: 8px;
  --overlay-shadow: 0 25px 50px rgba(0,0,0,0.4);
}

/* Reset safe */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Body */
body {
  font-family: -apple-system, BlinkMacSystemFont, Inter, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  padding: 24px;
  min-height: 100vh;
}

/* Titres */
h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

h1 { font-size: 32px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 24px;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  background: var(--bg-hover);
  transform: translateY(-1px);
}

/* Panels / Grid */
.grid-panels {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
}

.panel-left,
.panel-right,
.panel-full {
  flex: 1;
}

/* Responsive */
@media (max-width: 960px) {
  .grid-panels {
    flex-direction: column;
  }
}

/* ===== FIX SYSTEME.IO (sans bloquer le scroll) ===== */
html, body {
  /* Permet le scroll normal */
  overflow-y: auto;
  overflow-x: hidden;
}

/* Bloquer le scroll uniquement quand une modale est ouverte */
body.modal-open {
  overflow: hidden;
}

#dynamicContainer {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 99999;
}