/* Section « Au quotidien » et créateur d'infographies */
.q-page .ind-kpis small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.q-note { font-size: 13.5px; color: var(--ink-2); margin: 6px 0 12px; }
.q-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 18px; }
.q-actions .btn { margin: 0; }
.q-info-btn::before { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16v16H4z M7 15l3-4 3 3 2-2 3 3' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16v16H4z M7 15l3-4 3 3 2-2 3 3' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }

/* graphique */
.q-chart-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.q-chart-head h2 { margin: 0; }
.q-per { display: inline-flex; background: var(--bg-alt); border-radius: 999px; padding: 3px; gap: 2px; }
.q-per button { border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 13px; padding: 6px 11px; border-radius: 999px; cursor: pointer; }
.q-per button[aria-pressed="true"] { background: var(--tile); box-shadow: 0 1px 4px rgba(0,0,0,.12); font-weight: 600; }
.qc-box { position: relative; margin-top: 12px; touch-action: pan-y; }
.qc-box svg { display: block; width: 100%; height: auto; overflow: visible; }
.qc-grid { stroke: var(--line); stroke-width: 1; opacity: .7; }
.qc-ref { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 4 4; }
.qc-ax { fill: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.qc-line { fill: none; stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.qc-dot { stroke: var(--bg); stroke-width: 2; }
.qc-lab { fill: var(--ink); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.qc-cur { position: absolute; top: 14px; bottom: 30px; width: 1px; background: var(--muted); pointer-events: none; }
.qc-tip { position: absolute; top: -6px; transform: translate(-50%, -100%); background: var(--ink); color: var(--bg); font-size: 13px; line-height: 1.4; padding: 7px 10px; border-radius: 10px; pointer-events: none; white-space: nowrap; z-index: 2; font-variant-numeric: tabular-nums; }
.qc-tip span:first-child { display: block; opacity: .75; font-size: 12px; }
.q-legende { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 6px; }
.q-legende small { color: var(--muted); }
.q-sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* sommaire */
.q-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 16px; }
.q-kpis a { background: var(--bg-alt); border-radius: 16px; padding: 14px 16px; color: var(--ink); }
.q-kpis a:hover { text-decoration: none; outline: 2px solid var(--accent); }
.q-kpis span { display: block; font-size: 13px; color: var(--ink-2); }
.q-kpis b { display: block; font-size: 24px; letter-spacing: -.03em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.q-kpis small { color: var(--muted); font-size: 12px; }
.q-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.q-tile { display: flex; flex-direction: column; gap: 2px; background: var(--bg-alt); border-radius: 16px; padding: 12px 14px; color: var(--ink); min-width: 0; }
.q-tile:hover { text-decoration: none; outline: 2px solid var(--accent); }
.q-t-nom { font-size: 13.5px; color: var(--ink-2); }
.q-tile b { font-size: 19px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.q-t-sous { font-size: 12.5px; color: var(--muted); }
.q-tile svg { width: 100%; height: 40px; margin-top: 6px; }
.q-tile .qc-line { stroke-width: 2; vector-effect: non-scaling-stroke; }
.q-duo .q-t-nom { color: var(--ink); font-weight: 600; min-height: 2.6em; }
.q-hausses { list-style: none; padding: 0; margin: 8px 0 14px; display: grid; gap: 6px; }
.q-hausses li { display: grid; grid-template-columns: minmax(120px, 190px) 1fr 64px; align-items: center; gap: 10px; font-size: 14px; }
.q-hausses a { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-hausses b { text-align: right; font-variant-numeric: tabular-nums; }
.q-bar { display: block; width: 100%; height: 12px; }
.q-bar rect { fill: #2a78d6; }
.q-bar rect.neg { fill: #8a8a8e; }
.c-bleu { background: #2a78d6; } .c-orange { background: #eb6834; } .c-violet { background: #7a5af8; }
.qc-tip .q-sw { width: 9px; height: 9px; margin-right: 5px; }
@media (max-width: 640px) {
  .q-hausses li { grid-template-columns: minmax(96px, 128px) 1fr 54px; font-size: 13px; gap: 8px; }
  .q-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .q-per button { padding: 6px 8px; }
  .qc-ax { font-size: 15px; }
  .qc-lab { font-size: 16px; }
}

/* créateur d'infographies */
.ig { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); gap: 24px; align-items: start; margin: 8px 0 28px; }
.ig-apercu { position: sticky; top: calc(var(--nav-h) + 12px); background: var(--bg-alt); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; align-items: center; }
.ig-apercu canvas { display: block; max-width: 100%; max-height: 72vh; width: auto; height: auto; border-radius: 10px; box-shadow: 0 6px 24px rgba(0,0,0,.14); background: #fff; }
.ig-statut { font-size: 13px; color: var(--ink-2); margin: 10px 0 0; min-height: 1.2em; text-align: center; }
.ig-ctrl fieldset { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.ig-ctrl legend { font-weight: 700; font-size: 15px; margin-bottom: 8px; padding: 0; }
.ig-lab { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 4px; }
.ig-ctrl select { width: 100%; font: inherit; font-size: 15px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--tile); color: var(--ink); }
.ig-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.ig-seg button { border: 1px solid var(--line); background: var(--tile); color: var(--ink); font: inherit; font-size: 14px; padding: 8px 12px; border-radius: 12px; cursor: pointer; text-align: left; line-height: 1.25; }
.ig-seg button small { display: block; font-size: 11.5px; color: var(--muted); }
.ig-seg button[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--tile)); font-weight: 600; }
.ig-seg button:disabled { opacity: .4; cursor: not-allowed; }
.ig-go { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.ig-go .btn { margin: 0; cursor: pointer; font: inherit; font-size: 15px; }
@media (max-width: 860px) {
  .ig { grid-template-columns: 1fr; }
  .ig-apercu { position: static; padding: 10px; }
  .ig-apercu canvas { max-height: 60vh; }
  .ig-go .btn { flex: 1 1 auto; justify-content: center; }
}
