/*
 * Styles de base — typographie et éléments génériques.
 */

body {
	font-family: var(--ag-font-sans);
	font-size: var(--ag-font-size-base);
	line-height: var(--ag-line-height-base);
	color: var(--ag-color-text);
	background: var(--ag-color-bg);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	font-weight: var(--ag-font-weight-semibold);
	color: var(--ag-color-text);
	line-height: 1.3;
}

h1 { font-size: var(--ag-font-size-2xl); }
h2 { font-size: var(--ag-font-size-xl); }
h3 { font-size: var(--ag-font-size-lg); }
h4 { font-size: var(--ag-font-size-base); }

p {
	margin: 0 0 var(--ag-space-3);
}

a.ag-link {
	color: var(--ag-color-primary);
	font-weight: var(--ag-font-weight-medium);
}

a.ag-link:hover {
	text-decoration: underline;
}

small, .ag-text-muted {
	color: var(--ag-color-text-muted);
	font-size: var(--ag-font-size-sm);
}

hr.ag-separator {
	border: none;
	border-top: 1px solid var(--ag-color-border);
	margin: var(--ag-space-5) 0;
}

.ag-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Utilitaires d'espacement minimaux, pour éviter les styles en ligne */
.ag-spacer {
	display: block;
	height: var(--ag-space-5);
}

.is-hidden {
	display: none !important;
}

/*
 * Texte coloré (ex. "Oui"/"Non" filtrable dans une colonne de tableau,
 * admin_activites.php, 23/08/2026) — alternative à un badge/icône quand le
 * texte lui-même doit rester recherchable par le DataTable (Simple-DataTables
 * ne lit que le texte réel de la cellule, pas un aria-hidden).
 */
.ag-text-success {
	color: var(--ag-color-success);
	font-weight: var(--ag-font-weight-medium);
}

.ag-text-danger {
	color: var(--ag-color-danger);
	font-weight: var(--ag-font-weight-medium);
}

::selection {
	background: var(--ag-color-primary-soft);
	color: var(--ag-color-primary-hover);
}

/* Scrollbar discrète (Webkit) */
::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}
::-webkit-scrollbar-thumb {
	background: var(--ag-color-border-strong);
	border-radius: var(--ag-radius-full);
}
::-webkit-scrollbar-track {
	background: transparent;
}
