/* Mobile App Styles */

@media (max-width: 768px) {
	body {
		font-size: 14px;
		line-height: 1.4;
	}

	main,
	.container,
	.max-w-6xl,
	.max-w-7xl {
		padding-left: 12px !important;
		padding-right: 12px !important;
	}

	h1 {
		font-size: 1.5rem;
		margin-bottom: 0.75rem;
	}
	h2 {
		font-size: 1.25rem;
		margin-bottom: 0.5rem;
	}
	h3 {
		font-size: 1.1rem;
		margin-bottom: 0.4rem;
	}

	/* Cartes avec padding raisonnable */
	.bg-white.rounded-xl,
	.bg-white.rounded-lg,
	.bg-white.shadow-sm,
	.card {
		padding: 12px !important;
		margin-bottom: 12px;
	}

	/* Tables lisibles */
	table {
		font-size: 13px;
	}
	table th,
	table td {
		padding: 8px 10px;
	}
	.overflow-x-auto,
	.table-responsive {
		-webkit-overflow-scrolling: touch;
	}

	/* Boutons cliquables */
	button,
	.btn,
	a.btn,
	.px-6.py-3,
	.px-4.py-3,
	.px-4.py-2 {
		padding: 0.6rem 0.9rem !important;
		font-size: 0.95rem !important;
	}

	/* Grilles avec gap raisonnable */
	.grid {
		gap: 0.75rem;
	}

	/* Cartes de statistiques bien proportionnées */
	.square-card,
	.stat-card {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		padding: 12px !important;
		border-radius: 8px;
		font-size: 0.95rem;
		min-height: auto;
	}

	.square-card > div,
	.square-card .flex,
	.stat-card > div,
	.stat-card .flex {
		width: 100%;
	}

	/* Icônes de taille lisible */
	.stat-card svg,
	.stat-card i,
	.square-card svg,
	.square-card i {
		width: 2rem;
		height: 2rem;
		font-size: 1.25rem;
		margin-bottom: 0.5rem;
	}

	/* Padding interne des cartes */
	.stat-card .p-3,
	.stat-card .rounded-full,
	.square-card .p-3,
	.square-card .rounded-full {
		padding: 8px !important;
	}

	/* Marges des conteneurs */
	.stat-card .ml-4,
	.square-card .ml-4 {
		margin-left: 0.75rem !important;
	}

	/* Responsive grids */
	.grid-cols-1 {
		grid-template-columns: 1fr;
	}
	
	.md\:grid-cols-2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	
	.md\:grid-cols-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	
	.md\:grid-cols-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}