/* Compléments propres à Eusebe 2 (par-dessus le thème Apple de Color Admin) */
.avatar-initiales {
	display: inline-flex; align-items: center; justify-content: center;
	width: 30px; height: 30px; border-radius: 50%; margin-right: 8px;
	background: var(--bs-app-theme, #348fe2); color: #fff; font-weight: 700; font-size: 12px;
}
.avatar-initiales.grand { width: 64px; height: 64px; font-size: 22px; margin: 0; }
.tuile { transition: transform .15s ease, box-shadow .15s ease; }
.tuile:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0, 0, 0, .08); }
.tuile-icone {
	display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
	width: 44px; height: 44px; border-radius: 12px; font-size: 22px;
	background: rgba(var(--bs-app-theme-rgb, 52, 143, 226), .12); color: var(--bs-app-theme, #348fe2);
}
.tuile-icone.grand { width: 72px; height: 72px; font-size: 36px; border-radius: 18px; }
.eusebe-logo { font-family: 'Major Mono Display', monospace !important; font-size: 26px; line-height: 1; }
.login .brand .eusebe-logo { font-size: 34px; }
.news-caption .caption-title.eusebe-logo { font-size: 40px; }
/* Profil du menu : même image que la page de connexion */
.app-sidebar .menu-profile-cover,
.app-sidebar .menu .menu-profile .menu-profile-cover { background-image: url(img/eusebe-eau.jpg) !important; background-size: cover !important; background-position: center !important; }
/* Connexion : image et formulaire à 50 / 50 (à partir de la tablette) */
@media (min-width: 768px) {
	.login.login-with-news-feed .news-feed { inset-inline-end: 50% !important; }
	.login.login-with-news-feed .login-container {
		width: 50% !important; margin-inline-start: 50% !important; min-height: 100vh;
		flex-direction: column; justify-content: center; align-items: center;
	}
	.login.login-with-news-feed .login-container > * { width: 100%; max-width: 420px; }
}
/* Fond du côté formulaire : léger voile turquoise rappelant l'image, et trame de points */
.login.login-with-news-feed .login-container {
	background-color: #f3f7f8;
	background-image:
		radial-gradient(circle at 15% 10%, rgba(0, 172, 193, .14), transparent 45%),
		radial-gradient(circle at 90% 95%, rgba(0, 150, 136, .12), transparent 45%),
		radial-gradient(rgba(38, 50, 56, .07) 1px, transparent 1px);
	background-size: auto, auto, 18px 18px;
}
.login.login-with-news-feed .login-container .form-control { background-color: #fff; }
/* ---------- Recherche rapide (barre du haut) ---------- */
/* Collée au bord du menu de gauche (choix de David, 28/10) : on retire la marge droite du bloc logo du thème */
.app-header .navbar-header { margin-right: 0 !important; }
.app-header .eusebe-recherche { position: relative; flex: 1 1 auto; max-width: none; margin: 0 20px 0 0; align-self: center; }
.eusebe-recherche-groupe {
	display: flex; align-items: center; height: 44px; border-radius: 4px; overflow: visible;
	background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}
.eusebe-recherche-type {
	height: 44px; padding: 0 14px 0 16px; border: 0; border-right: 1px solid rgba(0, 0, 0, .12); border-radius: 4px 0 0 4px; white-space: nowrap; min-width: 150px; text-align: left; display: flex; align-items: center; justify-content: space-between;
	background: rgba(var(--bs-app-theme-rgb, 0, 172, 193), .12); color: var(--bs-app-theme, #00acc1); font-weight: 600; font-size: 14px;
}
.eusebe-recherche-type:hover { background: rgba(var(--bs-app-theme-rgb, 0, 172, 193), .2); }
.eusebe-recherche-champ {
	flex: 1 1 auto; min-width: 0; height: 44px; border: 0; outline: 0; padding: 0 14px; font-size: 15px; color: #212121; background: transparent;
}
.eusebe-recherche-champ::-webkit-search-cancel-button { cursor: pointer; }
.eusebe-recherche-champ::placeholder { color: #757575; opacity: 1; }
.eusebe-recherche-groupe:focus-within { box-shadow: 0 0 0 2px rgba(var(--bs-app-theme-rgb, 0, 172, 193), .55); }
.eusebe-recherche-raccourci { margin-right: 6px; background: #eceff1; color: #78909c; font-size: 10px; border-radius: 4px; padding: 2px 6px; box-shadow: none; }
.eusebe-recherche-bouton {
	height: 44px; width: 56px; border: 0; border-radius: 0 4px 4px 0; flex-shrink: 0;
	background: var(--bs-app-theme, #00acc1); color: #fff; font-size: 20px; display: flex; align-items: center; justify-content: center;
}
.eusebe-recherche-types { max-height: 70vh; overflow-y: auto; min-width: 240px; }
.eusebe-recherche-types .dropdown-header { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.eusebe-recherche-resultats {
	display: none; position: absolute; top: 48px; left: 0; right: 0; z-index: 1050;
	background: #fff; color: #212121; border-radius: 4px; box-shadow: 0 8px 28px rgba(0, 0, 0, .18); padding: 6px; font-size: 14px;
}
.eusebe-recherche-resultats.ouvert { display: block; }
.eusebe-recherche-ligne { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 3px; background: rgba(var(--bs-app-theme-rgb, 0, 172, 193), .08); }
.eusebe-recherche-ligne > ion-icon { font-size: 18px; color: var(--bs-app-theme, #00acc1); flex-shrink: 0; }
.eusebe-recherche-ligne > div { flex: 1 1 auto; }
.eusebe-recherche-ligne kbd, .eusebe-recherche-resultats kbd { background: #eceff1; color: #546e7a; box-shadow: none; font-size: 10px; }
.eusebe-recherche-apercu { padding: 12px 14px; line-height: 1.6; }
.eusebe-recherche-apercu ion-icon { vertical-align: -2px; color: var(--bs-app-theme, #00acc1); }
/* Mobile : barre masquée, affichée sous l'en-tête par la loupe */
@media (max-width: 767.98px) {
	.app-header .eusebe-recherche { display: none; }
	body.recherche-mobile-ouverte .app-header .eusebe-recherche {
		display: block; position: fixed; top: var(--bs-app-header-height, 60px); left: 0; right: 0; margin: 0; max-width: none;
		padding: 10px 12px; background: var(--bs-app-header-bg, #263238); box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
	}
	body.recherche-mobile-ouverte .eusebe-recherche-resultats { top: 56px; left: 12px; right: 12px; }
	.eusebe-recherche-type { padding: 0 10px 0 14px; max-width: 42vw; overflow: hidden; text-overflow: ellipsis; }
}
.eusebe-recherche-resultats .text-muted { color: #78909c !important; }
/* ---------- Droite de la barre du haut : cases de même hauteur, séparées par un trait ---------- */
.app-header .eusebe-barre-droite { align-self: stretch; display: flex; align-items: stretch; margin-left: auto; }
.app-header .eusebe-barre-droite > .navbar-item { display: flex; align-items: stretch; border-left: 1px solid rgba(255, 255, 255, .12); }
.app-header .eusebe-barre-droite > .navbar-item.d-none { display: none !important; }
@media (min-width: 576px) { .app-header .eusebe-barre-droite > .navbar-item.d-sm-flex { display: flex !important; } }
@media (min-width: 768px) { .app-header .eusebe-barre-droite > .navbar-item.d-md-none { display: none !important; } }
.app-header .eusebe-barre-droite .navbar-link {
	display: flex; align-items: center; justify-content: center; position: relative;
	height: 100%; min-width: 60px; padding: 0 18px; margin: 0; line-height: 1;
}
.app-header .eusebe-barre-droite .navbar-link.icon ion-icon { font-size: 24px; }
.app-header .eusebe-barre-droite .navbar-link .badge {
	position: absolute; top: 12px; right: 12px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
	font-size: 10px; line-height: 18px;
}
.app-header .eusebe-barre-droite .navbar-link:hover { background: rgba(255, 255, 255, .06); }
.app-header .eusebe-barre-droite .navbar-user .navbar-link { gap: 10px; padding: 0 20px; }
.eusebe-photo { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255, 255, 255, .35); }
.app-sidebar .menu-profile-image img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255, 255, 255, .5); }
/* Avatar du menu (photo ou initiales) */
.app-sidebar .menu-profile-image .eusebe-photo-menu { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255, 255, 255, .5); }
.app-sidebar .menu-profile-info small { text-transform: none; }
/* ---------- Accueil : indicateurs et meilleures ventes ---------- */
.indicateur .indicateur-valeur { font-size: 30px; font-weight: 600; line-height: 1.2; color: var(--bs-body-color); display: flex; align-items: center; gap: 8px; }
.indicateur .indicateur-tendance { font-size: 11px; font-weight: 600; padding: 3px 6px; border-radius: 3px; }
.indicateur .indicateur-tendance.hausse { background: rgba(0, 172, 172, .12); color: #00897b; }
.indicateur .indicateur-tendance.baisse { background: rgba(255, 91, 87, .12); color: #e53935; }
.meilleures-ventes .list-group-item { padding: 8px 15px; font-size: 13px; }
.meilleures-ventes .rang { width: 22px; height: 22px; border-radius: 3px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
	font-size: 11px; font-weight: 700; background: rgba(var(--bs-app-theme-rgb, 69, 90, 100), .12); color: var(--bs-app-theme, #455a64); }
.meilleures-ventes .barre { height: 3px; background: rgba(0, 0, 0, .05); margin-top: 6px; border-radius: 2px; }
.meilleures-ventes .barre span { display: block; height: 100%; background: var(--bs-app-theme, #455a64); border-radius: 2px; }
