/* ============================================
   UTILITY CLASSES — Atomes réutilisables
   ============================================ */

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--color-primary) !important;
}

.text-secondary {
    color: var(--color-viz-1) !important;
}

.text-success {
    color: var(--color-success) !important;
}

.text-danger {
    color: var(--color-danger) !important;
}

.bg-light {
    background-color: var(--color-bg-surface-alt) !important;
}

.bg-primary {
    background-color: var(--color-primary) !important;
}

.rounded {
    border-radius: 8px !important;
}

.shadow {
    box-shadow: var(--shadow-md) !important !important;
}

.shadow-hover:hover {
    box-shadow: var(--shadow-lg) !important !important;
}

/* ============================================
   LAYOUT HELPERS — grilles utilitaires cross-page
   ============================================ */

/* Grille 2 colonnes responsive (1 col sur mobile <900px).
   Utilise par section_minutes (scatter + bubble cote a cote) et tout autre
   section recap qui veut le meme comportement. Helper cross-page, pas
   confine a la home. */
.recap-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: stretch;
}

.recap-two-col > * {
    min-width: 0;  /* indispensable pour que les grilles se compriment */
}

@media (max-width: 900px) {
    .recap-two-col {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   RESPONSIVE — Grid adjustments
   ============================================ */
@media (max-width: 768px) {
    .row {
        margin: 0;
    }

    .columns {
        padding: 0 10px;
    }

    .metric-card {
        margin-bottom: 10px;
    }
}

/* ============================================
   PRINT
   ============================================ */
@media print {
    .no-print {
        display: none !important;
    }

    body {
        background-color: white !important;  /* white pur OK : @media print, fond papier */
    }
}
