
  :root {
    --primary: #0d47a1;
    --primary-light: #1565c0;
    --accent: #ff6f00;
    --accent-light: #ffb300;
    --bg: #fafafa;
    --card: #ffffff;
    --text: #212121;
    --text-light: #616161;
    --success: #2e7d32;
    --warning: #e65100;
    --danger: #c62828;
    --info: #0277bd;
    --radius: 14px;
  }
  body.dark {
    --bg: #0a0a1a;
    --card: #1a1a3a;
    --text: #e8e8f0;
    --text-light: #9999bb;
  }
  body.dark .slide { background:var(--card); }
  body.dark .slide-header { border-bottom-color:rgba(255,255,255,0.06); }
  body.dark .slide-header:hover { background:#22224a; }
  body.dark .key-msg { background:#22224a; border-color:rgba(255,255,255,0.08); }
  body.dark .macro-detail { background:#22224a; border-color:rgba(255,255,255,0.08); }
  body.dark .axis-detail { background:#22224a; border-color:rgba(255,255,255,0.08); }
  body.dark .card-mini { background:#22224a; border-color:rgba(255,255,255,0.06); }
  body.dark .std-node { background:#1a1a3a; border-color:rgba(255,255,255,0.08); }
  body.dark .std-node-header:hover { background:#22224a; }
  body.dark .std-leaf-header:hover { background:#22224a; }
  body.dark .std-subleaf.historical { background:#2a2a1a; border-color:#5a4a00; }
  body.dark .std-subleaf.historical .std-subleaf-title { color:#ffa726; }
  body.dark .std-subleaf-text { color:#aaa; }
  body.dark .macro-card { background:var(--card); border-color:rgba(255,255,255,0.08); }
  body.dark .macro-card.active { background:#1a3a5a; }
  body.dark .axis-card-v2 { background:var(--card); border-color:rgba(255,255,255,0.08); }
  body.dark .table-wrap td { background:var(--card); }
  body.dark .forfait-card { background:var(--card); }
  body.dark .forfait-card.active { background:#1a3a5a; }
  body.dark .macro-result { background:#22224a; border-color:rgba(255,255,255,0.08); }
  body.dark .risk-detail { background:#22224a; }
  body.dark .constat-card { background:var(--card); }
  body.dark .kpi-card { background:#22224a; border-color:rgba(255,255,255,0.06); }
  body.dark #slidersSection,
  body.dark #budgetChart,
  body.dark #waterfallSection,
  body.dark #simulatorSection,
  body.dark #donutSection { background:var(--card) !important; }
  body.dark .wf-bar-wrap { background:#333; }
  body.dark .wf-row.total { border-color:#555; }
  body.dark .wf-scale { border-color:#555; }
  body.dark .wf-scale span { color:#999; }
  body.dark .vulgarisation { background:#2a2a2a; border-color:#5a5a5a; }
  body.dark .vulgarisation-body-inner { color:#ccc; }
  body.dark .flow-node text { fill:#e8e8f0; }
  body.dark #gaugeValueSVG { fill:#e8e8f0 !important; }
  body.dark #gaugeNeedle { stroke:#aaa !important; }
  body.dark #complianceGauge circle { fill:#aaa !important; }
  body.dark .compliance-wrap svg text { fill:#e8e8f0; }
  @media print { body.dark { --bg:#fff; --card:#fff; --text:#000; --text-light:#555; } }

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

  body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
  }

  /* === SLIDE COUNTER === */
  .slide-counter {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    cursor: pointer;
  }
  .slide-counter:hover { transform: scale(1.1); }

  /* === HEADER === */
  .header {
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 50%, #1976d2 100%);
    color: white;
    padding: 30px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  .header::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(50%, -50%);
  }
  .header h1 {
    font-size: 2rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
  }
  .header .meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 14px;
    font-size: 0.9rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
  }
  .header .meta span {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
  }

  /* === TIMER BAR === */
  .timer-bar-container {
    max-width: 1100px;
    margin: -18px auto 25px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
  }
  .timer-bar {
    background: var(--card);
    border-radius: 50px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.10);
    flex-wrap: wrap;
  }
  .timer-bar .label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    white-space: nowrap;
  }
  .timer-track {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    min-width: 100px;
  }
  .timer-track .fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--success), var(--accent), var(--danger));
    border-radius: 4px;
    transition: width 1s ease;
  }
  .timer-minutes {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
  }
  .timer-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
  }
  .timer-btn:hover { background: var(--primary-light); }
  .timer-btn.reset { background: var(--text-light); }
  .timer-btn.reset:hover { background: var(--text); }

  /* === SLIDE === */
   .slide {
    background: var(--card);
    border-radius: var(--radius);
    margin-bottom: 20px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    overflow: visible;
    opacity: 0.5;
    filter: grayscale(0.5);
    transform: scale(0.98);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  .slide.active {
    opacity: 1;
    filter: grayscale(0);
    transform: scale(1);
    box-shadow: 0 8px 40px rgba(13,71,161,0.15);
    border: 2px solid var(--primary-light);
    background: linear-gradient(135deg, var(--card) 60%, rgba(13,71,161,0.02) 100%);
  }
  .key-msg { position:relative; }
  .key-msg::before {
    content:''; position:absolute; inset:0; opacity:0; transition:opacity 0.6s ease;
    background: linear-gradient(135deg, rgba(13,71,161,0.04), rgba(255,111,0,0.04));
    pointer-events:none;
  }
  .key-msg:hover::before { opacity:1; }
  .slide.completed {
    opacity: 0.6;
    filter: grayscale(0.3);
    transform: scale(0.98);
  }
  @keyframes budgetFadeIn { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:translateY(0); } }

  .slide-header {
    padding: 18px 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    user-select: none;
    transition: background 0.2s ease;
  }
  .slide-header:hover { background: #fafafa; }
  .slide-header .num {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
  }
  .slide.active .slide-header .num { background: linear-gradient(135deg, var(--primary), var(--accent)); animation:numGlow 3s ease-in-out infinite; }
  @keyframes numGlow { 0%,100% { box-shadow:0 0 0 0 rgba(13,71,161,0.3); } 50% { box-shadow:0 0 0 6px rgba(13,71,161,0.08); } }
  .slide-header .time-badge {
    background: var(--bg);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    flex-shrink: 0;
  }
  .slide-header h2 {
    flex: 1;
    font-size: 1.05rem;
    font-weight: 600;
  }
  .slide-header .status-icon {
    width: 24px; height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
  }
  .slide.active .slide-header .status-icon { background: var(--primary); color: white; }
  .slide.completed .slide-header .status-icon { background: var(--success); color: white; }

  .slide-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4,0,0.2,1);
  }
  .slide.open .slide-body { max-height: 5000px; }
  .slide-content {
    padding: 0 24px 24px;
  }

  /* === TIMING === */
  .timing {
    background: linear-gradient(135deg, #e3f2fd, #e8eaf6);
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    border: 1px solid #bbdefb;
  }
  .timing strong { color: var(--primary); }

  /* === CONTENT ELEMENTS === */
  .slide-content p { margin-bottom: 12px; font-size: 0.95rem; }
  .slide-content ul { padding-left: 20px; margin-bottom: 12px; }
  .slide-content li { margin-bottom: 6px; font-size: 0.95rem; }
  .slide-content strong { color: var(--primary); }

  .tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 4px;
  }
  .tag.blue { background: #e3f2fd; color: #1565c0; }
  .tag.orange { background: #fff3e0; color: #e65100; }
  .tag.green { background: #e8f5e9; color: #2e7d32; }
  .tag.red { background: #ffebee; color: #c62828; }
  .tag.purple { background: #f3e5f5; color: #6a1b9a; }

  /* === GRID === */
  .grid-2, .grid-3 {
    display: grid;
    gap: 12px;
    margin: 12px 0;
  }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
  @media (max-width: 700px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
  }

  .card-mini {
    background: #fafafa;
    border-radius: 8px;
    padding: 14px;
    border: 1px solid #eee;
    transition: transform 0.2s ease, border-color 0.2s ease;
  }
  .card-mini:hover {
    transform: translateY(-2px);
    border-color: var(--primary-light);
  }
  .card-mini h4 { font-size: 0.9rem; margin-bottom: 4px; }
  .card-mini .sub { font-size: 0.8rem; color: var(--text-light); margin-bottom: 6px; }
  .card-mini p { font-size: 0.85rem; color: var(--text-light); margin: 0; }

  /* === CALLOUT === */
  .callout {
    background: #f5f5f5;
    border-left: 4px solid var(--primary);
    border-radius: 0 8px 8px 0;
    padding: 14px 18px;
    margin: 12px 0;
    font-size: 0.9rem;
  }
  .callout.orange { border-left-color: var(--accent); background: #fff8e1; }
  .callout.green { border-left-color: var(--success); background: #e8f5e9; }
  .callout.purple { border-left-color: #6a1b9a; background: #f3e5f5; }

  /* === SVG DIAGRAMS === */
  .diagram {
    background: #fafafa;
    border-radius: 8px;
    padding: 24px;
    margin: 14px 0;
    display: flex;
    justify-content: center;
    overflow: visible;
  }
  .diagram svg { max-width: 100%; height: auto; overflow: visible; }

  /* === KEY MESSAGE === */
  .key-msg {
    background: linear-gradient(135deg, #e8eaf6, #e3f2fd);
    border: 1px solid #c5cae9;
    border-radius: 10px;
    padding: 16px 20px;
    margin: 14px 0;
    font-weight: 500;
    font-size: 0.95rem;
  }

  /* === NODE DETAIL === */
  .node-detail {
    margin: -6px 0 14px;
    padding: 12px 40px 12px 16px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e0e0e0;
    font-size: 0.87rem;
    line-height: 1.6;
    position: relative;
    animation: nodeDetailFade 0.25s ease;
  }
  .node-detail-close {
    position: absolute;
    top: 6px;
    right: 8px;
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    color: #999;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.15s;
  }
  .node-detail-close:hover { background: #f0f0f0; color: #333; }
  @keyframes nodeDetailFade {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* === TABLE === */
  .table-wrap {
    overflow-x: auto;
    margin: 12px 0;
  }
  table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
  }
  th {
    background: var(--primary);
    color: white;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
  }
  td {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
  }
  tr:hover td { background: #f5f5f5; }

  /* === DECISION TREE === */
  .tree-wrap { display:flex; flex-direction:column; align-items:center; gap:6px; margin:14px 0; }
  .tree-row { display:flex; gap:8px; flex-wrap:wrap; justify-content:center; }
  .tree-node {
    padding:8px 16px; border-radius:20px; font-size:0.82rem; font-weight:600;
    cursor:pointer; transition:all 0.3s ease; border:2px solid transparent;
    user-select:none; text-align:center; position:relative;
  }
  .tree-node .tree-cost {
    position:absolute; top:-10px; right:-10px;
    background:#1565c0; color:#fff; font-size:0.6rem; font-weight:700;
    padding:1px 6px; border-radius:10px; white-space:nowrap;
    opacity:0; transform:scale(0.8); transition:all 0.25s cubic-bezier(0.34,1.56,0.64,1);
    pointer-events:none; box-shadow:0 2px 6px rgba(0,0,0,0.15);
    z-index:2;
  }
  .tree-node:hover .tree-cost,
  .tree-node.selected .tree-cost { opacity:1; transform:scale(1); }
  .tree-node.go .tree-cost { background:#2e7d32; }
  .tree-node.go:hover .tree-cost { background:#1b5e20; }
  .tree-node.cond .tree-cost { background:#e65100; }
  .tree-node.cond:hover .tree-cost { background:#bf360c; }
  .tree-node.refactor .tree-cost { background:#f57f17; }
  .tree-node.refactor:hover .tree-cost { background:#e65100; }
  .tree-node.rebase .tree-cost { background:#c62828; }
  .tree-node.rebase:hover .tree-cost { background:#b71c1c; }
  .tree-node.stop .tree-cost { background:#880e4f; }
  .tree-node.stop:hover .tree-cost { background:#4a0024; }
  .tree-node.go { background:#e8f5e9; color:#2e7d32; border-color:#a5d6a7; }
  .tree-node.go:hover, .tree-node.go.selected { background:#2e7d32; color:white; transform:scale(1.05); }
  .tree-node.cond { background:#fff3e0; color:#e65100; border-color:#ffcc80; }
  .tree-node.cond:hover, .tree-node.cond.selected { background:#e65100; color:white; transform:scale(1.05); }
  .tree-node.refactor { background:#fff8e1; color:#f57f17; border-color:#ffe082; }
  .tree-node.refactor:hover, .tree-node.refactor.selected { background:#f57f17; color:white; transform:scale(1.05); }
  .tree-node.rebase { background:#ffebee; color:#c62828; border-color:#ef9a9a; }
  .tree-node.rebase:hover, .tree-node.rebase.selected { background:#c62828; color:white; transform:scale(1.05); }
  .tree-node.stop { background:#f44336; color:white; border-color:#e57373; }
  .tree-node.stop:hover, .tree-node.stop.selected { background:#b71c1c; transform:scale(1.05); }
  .tree-detail {
    max-height:0; overflow:hidden; transition:max-height 0.4s cubic-bezier(0.4,0,0.2,1);
    background:#fafafa; border-radius:8px; margin-top:4px;
  }
  .tree-detail.open { max-height:200px; }
  .tree-detail-inner { padding:12px 16px; font-size:0.85rem; }
  .tree-connector { color:#ccc; font-size:1.2rem; line-height:1; }

  /* === COMPLIANCE RADAR === */
  .compliance-wrap { display:flex; justify-content:center; margin:12px 0; }
  .compliance-svg { max-width:380px; width:100%; height:auto; }
  .compliance-legend { display:flex; flex-wrap:wrap; gap:8px; justify-content:center; margin-top:6px; font-size:0.78rem; }
  .compliance-legend .dot { width:10px; height:10px; border-radius:50%; display:inline-block; }

  /* === FULLSCREEN === */
  .fullscreen-btn {
    background:var(--card); border:1px solid #ddd; border-radius:20px;
    padding:6px 14px; font-size:0.75rem; cursor:pointer; color:var(--text);
    transition:all 0.2s ease; display:flex; align-items:center; gap:5px;
  }
  .fullscreen-btn:hover { border-color:var(--primary); background:var(--primary); color:white; }

  /* === PRESENTER NOTES === */
  .notes-toggle {
    background:var(--card); border:1px solid #ddd; border-radius:20px;
    padding:6px 14px; font-size:0.75rem; cursor:pointer; color:var(--text);
    transition:all 0.2s ease; display:flex; align-items:center; gap:5px;
  }
  .notes-toggle:hover { border-color:var(--accent); background:var(--accent); color:white; }
  .notes-toggle.active { background:var(--accent); color:white; border-color:var(--accent); }
  .notes-overlay {
    display:none; position:fixed; bottom:80px; right:20px; width:320px; max-height:300px;
    background:var(--card); border-radius:12px; box-shadow:0 8px 40px rgba(0,0,0,0.2);
    padding:16px; z-index:998; overflow-y:auto; border:1px solid #e0e0e0;
    font-size:0.85rem;
  }
  .notes-overlay.open { display:block; }
  .notes-overlay textarea {
    width:100%; min-height:100px; border:1px solid #ddd; border-radius:8px;
    padding:8px; font-family:inherit; font-size:0.83rem; resize:vertical;
  }

  /* === BUDGET COMPARISON === */
  .budget-bars { display:flex; flex-direction:column; gap:6px; margin:8px 0; }
  .budget-row { display:flex; align-items:center; gap:8px; font-size:0.85rem; }
  .budget-row .bar-wrap {
    flex:1; height:24px; background:rgba(0,0,0,0.04); border-radius:6px; overflow:hidden; min-width:60px;
  }
  body.dark .budget-row .bar-wrap { background:rgba(255,255,255,0.06); }
  .budget-row .bar {
    height:100%; border-radius:6px; transition:width 1s cubic-bezier(0.25,0.46,0.45,0.94);
    display:flex; align-items:center; padding:0 8px; font-weight:600; font-size:0.72rem;
    white-space:nowrap;
  }
  .budget-row .bar.audit { background:var(--primary); color:white; }
  .budget-row .bar.contract { background:var(--accent); color:white; }
  .budget-row .bar.fine { background:var(--danger); color:white; }
  .budget-row .bar.fine.rgpd { background:#6a1b9a; }
  .budget-row .bar.fine.aiact { background:#c62828; }
  .budget-row .label { min-width:110px; text-align:right; font-size:0.78rem; }
  .budget-row .val { min-width:70px; font-weight:600; }

  /* === AUTO-ADVANCE === */
  .auto-btn {
    background:var(--card); border:1px solid #ddd; border-radius:20px;
    padding:6px 14px; font-size:0.75rem; cursor:pointer; color:var(--text);
    transition:all 0.2s ease; display:flex; align-items:center; gap:5px;
  }
  .auto-btn:hover { border-color:var(--success); background:var(--success); color:white; }
  .auto-btn.active { background:var(--success); color:white; border-color:var(--success); }

  /* === Q&A MODE === */
  .qa-btn {
    background:var(--card); border:1px solid #ddd; border-radius:20px;
    padding:6px 14px; font-size:0.75rem; cursor:pointer; color:var(--text);
    transition:all 0.2s ease; display:flex; align-items:center; gap:5px;
  }
  .qa-btn:hover { border-color:var(--accent); background:var(--accent); color:white; }
  .qa-btn.active { background:var(--accent); color:white; border-color:var(--accent); }
  .qa-overlay {
    display:none; position:fixed; bottom:80px; left:20px; width:300px;
    background:var(--card); border-radius:12px; box-shadow:0 8px 40px rgba(0,0,0,0.2);
    padding:16px; z-index:998; overflow-y:auto; border:2px solid var(--accent);
    font-size:0.85rem;
  }
  .qa-overlay.open { display:block; }
  .qa-overlay textarea {
    width:100%; min-height:80px; border:1px solid #ddd; border-radius:8px;
    padding:8px; font-family:inherit; font-size:0.83rem; resize:vertical;
  }
  .qa-tag { display:inline-block; background:rgba(255,111,0,0.12); color:var(--accent); padding:2px 10px; border-radius:10px; font-size:0.7rem; font-weight:600; }

  /* === SOUND ALERTS === */
  .sound-btn {
    background:var(--card); border:1px solid #ddd; border-radius:20px;
    padding:6px 14px; font-size:0.75rem; cursor:pointer; color:var(--text);
    transition:all 0.2s ease; display:flex; align-items:center; gap:5px;
  }
  .sound-btn:hover { border-color:var(--info); background:var(--info); color:white; }
  .sound-btn.active { background:var(--info); color:white; border-color:var(--info); }

  /* === STANDARDS MODAL === */
  .std-modal-overlay {
    display:none; position:fixed; inset:0; background:rgba(0,0,0,0.55);
    z-index:9999; justify-content:center; align-items:center;
    backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px);
    animation:stdModalFadeIn 0.2s ease;
  }
  .std-modal-overlay.open { display:flex; }
  .std-modal {
    background:var(--card); border-radius:16px; max-width:600px; width:92%;
    max-height:85vh; overflow-y:auto; box-shadow:0 24px 80px rgba(0,0,0,0.3);
    animation:stdModalSlideIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position:relative;
  }
  @keyframes stdModalFadeIn { from { opacity:0; } to { opacity:1; } }
  @keyframes stdModalSlideIn {
    from { opacity:0; transform:translateY(30px) scale(0.95); }
    to { opacity:1; transform:translateY(0) scale(1); }
  }
  .std-modal-header {
    position:sticky; top:0; z-index:1; background:var(--card);
    display:flex; align-items:center; gap:12px;
    padding:16px 20px; border-bottom:1px solid rgba(0,0,0,0.06);
    border-radius:16px 16px 0 0;
  }
  .std-modal-icon { font-size:1.6rem; }
  .std-modal-name { font-size:1.05rem; font-weight:700; }
  .std-modal-tag { font-size:0.72rem; color:var(--text-light); margin-top:1px; }
  .std-modal-close {
    width:32px; height:32px; border-radius:50%; background:var(--bg);
    border:none; cursor:pointer; font-size:1rem; display:flex;
    align-items:center; justify-content:center; color:var(--text-light);
    flex-shrink:0; transition:all 0.15s;
  }
  .std-modal-close:hover { background:var(--danger); color:white; }
  .std-modal-body { padding:16px 20px 20px; font-size:0.88rem; line-height:1.6; }
  .std-modal-section { margin-bottom:16px; }
  .std-modal-section:last-child { margin-bottom:0; }
  .std-modal-section h3 {
    font-size:0.82rem; font-weight:700; text-transform:uppercase;
    letter-spacing:0.4px; opacity:0.6; margin-bottom:8px;
  }
  .std-modal-desc { font-size:0.9rem; color:var(--text-light); margin-bottom:12px; }
  .std-modal-kp { margin:6px 0; position:relative; padding-left:16px; font-size:0.85rem; }
  .std-modal-kp::before { content:'•'; position:absolute; left:3px; color:var(--primary); }
  .std-modal-risk {
    background:var(--bg); border-radius:10px; padding:12px 14px; margin:8px 0;
    border-left:3px solid var(--primary);
    transition:all 0.2s ease;
  }
  .std-modal-risk:hover { transform:translateX(3px); }
  .std-modal-risk-title { font-weight:600; font-size:0.85rem; margin-bottom:3px; }
  .std-modal-risk-text { font-size:0.83rem; color:var(--text-light); }
  .std-modal-risk-fine {
    display:inline-block; margin-top:4px; font-size:0.75rem; font-weight:600;
    background:rgba(198,40,40,0.1); color:var(--danger);
    padding:2px 8px; border-radius:6px;
  }
  body.dark .std-modal-header { border-bottom-color:rgba(255,255,255,0.06); }
  body.dark .std-modal-risk { background:rgba(255,255,255,0.04); }
  @media (max-width:680px) {
    .std-modal { max-height:90vh; width:96%; }
    .std-modal-body { padding:12px 16px 16px; }
  }

  /* === PRESENTER VIEW === */
  .pv-btn {
    background:var(--card); border:1px solid #ddd; border-radius:20px;
    padding:6px 14px; font-size:0.75rem; cursor:pointer; color:var(--text);
    transition:all 0.2s ease; display:flex; align-items:center; gap:5px;
  }
  .pv-btn:hover { border-color:var(--primary); background:var(--primary); color:white; }

  /* === RESPONSIVE MOBILE === */
  @media (max-width: 768px) {
    .timer-bar { gap:4px; padding:6px 8px; flex-wrap:wrap; justify-content:center; }
    .timer-bar .label { font-size:0.65rem; }
    .timer-bar .timer-minutes { font-size:0.7rem; }
    .timer-btn, .auto-btn, .qa-btn, .sound-btn, .fullscreen-btn, .pv-btn, .notes-toggle, .dark-btn { font-size:0.6rem; padding:4px 8px; }
    #presSearch { width:80px !important; font-size:0.65rem !important; padding:4px 6px !important; }
    .global-progress { padding:6px 8px; font-size:0.65rem; }
    .nav-bar { gap:4px; padding:8px 4px; }
    .nav-bar .nav-dot { width:18px; height:18px; font-size:0.55rem; }
    .slide-header { padding:10px 12px; flex-wrap:wrap; gap:4px; }
    .slide-header h2 { font-size:0.75rem; }
    .slide-header .num { width:24px; height:24px; font-size:0.65rem; }
    .slide-header .time-badge { font-size:0.55rem; padding:1px 6px; }
    .slide-content { padding:8px 10px; font-size:0.78rem; }
    .slide-content h3 { font-size:0.82rem !important; }
    .macro-grid { grid-template-columns:1fr 1fr; gap:6px; }
    .macro-card { padding:10px; }
    .macro-card .macro-title { font-size:0.75rem; }
    .axis-grid { grid-template-columns:1fr 1fr 1fr; gap:4px; }
    .axis-card-v2 { padding:8px; }
    .axis-card-v2 .axis-v2-title { font-size:0.7rem; }
    .kpi-grid { grid-template-columns:1fr; gap:8px; }
    .grid-2 { grid-template-columns:1fr; }
    .table-wrap { font-size:0.7rem; overflow-x:auto; }
    .table-wrap table { font-size:0.7rem; }
    .tree-row { flex-wrap:wrap; justify-content:center; }
    .tree-node { font-size:0.65rem; padding:6px 10px; }
    .compliance-wrap svg { width:100%; height:auto; }
    .constats-grid { grid-template-columns:1fr; }
    .container { padding:0 4px; }
    .footer { font-size:0.6rem; }
    .footer > div { gap:8px; }
    .callout { font-size:0.72rem; padding:8px; }
    .card-mini { padding:10px; }
    .card-mini h4 { font-size:0.78rem; }
    .key-msg { font-size:0.72rem; padding:10px; }
    #radarContainer { max-width:100% !important; }
    .compliance-legend { font-size:0.6rem; gap:4px; }
    .compliance-legend span { white-space:normal; }
    #complianceGauge { width:200px !important; height:110px !important; }
    #complianceGauge #gaugeValueSVG { font-size:1.4rem !important; }
    .forfait-grid { grid-template-columns:1fr; }
  }
  @media (max-width: 480px) {
    .macro-grid { grid-template-columns:1fr; }
    .axis-grid { grid-template-columns:1fr 1fr; }
    .timer-btn, .auto-btn, .qa-btn, .sound-btn, .fullscreen-btn, .pv-btn, .notes-toggle, .dark-btn { font-size:0.55rem; padding:3px 6px; }
    .slide-header .status-icon { display:none; }
    .slide-header .time-badge { display:none; }
    .header .title { font-size:0.75rem; }
    .header .subtitle { font-size:0.6rem; }
    #presSearch { width:60px !important; }
  }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; }
}
