/* Mireb Santé — styles front-end */

.mireb-app {
	--mireb-blue: #2563eb;
	--mireb-purple: #7c3aed;
	--mireb-green: #16a34a;
	--mireb-orange: #f59e0b;
	--mireb-red: #dc2626;
	--mireb-bg: #f5f7fb;
	--mireb-text: #1f2937;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	color: var(--mireb-text);
	max-width: 1000px;
	margin: 0 auto;
	padding: 10px;
}

.mireb-hero {
	background: linear-gradient(135deg, var(--mireb-blue), var(--mireb-purple));
	color: #fff;
	padding: 32px 28px;
	border-radius: 20px;
	margin-bottom: 24px;
}
.mireb-hero h2 { margin: 0 0 6px; font-size: 26px; }
.mireb-hero p { margin: 0; opacity: 0.9; }

/* Filtres */
.mireb-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.mireb-filter {
	border: 1px solid #d1d5db; background: #fff; border-radius: 999px;
	padding: 8px 16px; cursor: pointer; font-size: 14px;
}
.mireb-filter.active, .mireb-filter:hover { background: var(--mireb-blue); color: #fff; border-color: var(--mireb-blue); }

/* Grille de cartes */
.mireb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.mireb-card {
	background: #fff; border-radius: 16px; padding: 20px; text-align: center;
	box-shadow: 0 4px 14px rgba(0,0,0,0.06); transition: transform .15s ease;
}
.mireb-card:hover { transform: translateY(-4px); }
.mireb-avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; }
.mireb-specialty-tag { color: var(--mireb-blue); font-size: 13px; font-weight: 600; margin: 4px 0; }
.mireb-excerpt { font-size: 13px; color: #6b7280; min-height: 36px; }
.mireb-price { font-weight: bold; color: var(--mireb-purple); }

/* Boutons */
.mireb-btn {
	background: var(--mireb-blue); color: #fff; border: none; border-radius: 10px;
	padding: 10px 18px; cursor: pointer; font-size: 14px; font-weight: 600;
	display: inline-block; text-decoration: none; margin-top: 8px;
}
.mireb-btn:hover { opacity: 0.9; color: #fff; }
.mireb-btn-primary { width: 100%; }
.mireb-btn-small { padding: 6px 12px; font-size: 13px; margin: 2px; }
.mireb-btn-danger { background: var(--mireb-red); }

/* Modales */
.mireb-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 9999; align-items: center; justify-content: center; }
.mireb-modal.open { display: flex; }
.mireb-modal-content { background: #fff; padding: 28px; border-radius: 16px; max-width: 420px; width: 92%; position: relative; }
.mireb-modal-close { position: absolute; top: 10px; right: 16px; cursor: pointer; font-size: 22px; color: #999; }

/* Formulaires */
.mireb-app form label { display: block; margin: 10px 0 4px; font-size: 13px; font-weight: 600; }
.mireb-app form input, .mireb-app form textarea, .mireb-app form select {
	width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; box-sizing: border-box;
}
.mireb-form-msg { font-size: 13px; margin-top: 8px; }

/* Onglets */
.mireb-tabs { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; border-bottom: 1px solid #e5e7eb; }
.mireb-tab { background: none; border: none; padding: 10px 16px; cursor: pointer; font-weight: 600; color: #6b7280; border-bottom: 3px solid transparent; }
.mireb-tab.active { color: var(--mireb-blue); border-color: var(--mireb-blue); }

/* Stats */
.mireb-stats-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.mireb-stat { flex: 1; min-width: 130px; border-radius: 14px; padding: 18px; color: #fff; }
.mireb-stat span { display: block; font-size: 26px; font-weight: bold; }
.mireb-stat-blue { background: var(--mireb-blue); }
.mireb-stat-purple { background: var(--mireb-purple); }
.mireb-stat-green { background: var(--mireb-green); }

/* Listes (RDV, dossiers, ordonnances) */
.mireb-list-item {
	background: #fff; border-radius: 12px; padding: 16px; margin-bottom: 10px;
	display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
	box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.mireb-list-item p { margin: 2px 0 0; font-size: 13px; color: #6b7280; }
.mireb-badge { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #e5e7eb; }
.mireb-badge-pending { background: #fef3c7; color: #92400e; }
.mireb-badge-confirmed { background: #d1fae5; color: #065f46; }
.mireb-badge-cancelled { background: #fee2e2; color: #991b1b; }
.mireb-badge-completed { background: #dbeafe; color: #1e40af; }

/* Auth */
.mireb-auth { max-width: 420px; }

/* Vidéo */
.mireb-video-wrapper { border-radius: 16px; overflow: hidden; box-shadow: 0 6px 20px rgba(0,0,0,0.12); }

@media (max-width: 600px) {
	.mireb-hero { padding: 24px 18px; }
	.mireb-stats-row { flex-direction: column; }
}
