/* ================================================================================================
	LAYOUT (Core) — mécanique de la page : disposition de l'application, impression, page virtuelle.
	Aucune apparence ici. Réglages exposés au Theme.css du site, sur [data-bs-theme] :
	  --bootstrap-page-width    largeur maximale d'une page virtuelle (lecture « document »)
	  --bootstrap-page-padding  marge intérieure d'une page virtuelle (au-dessus de 576px)
	  --bootstrap-nav-h         hauteur de la barre de navigation (lue par le module Header)
	Couche « core.modules » : le Skin et Theme.css (sans couche) gagnent sur elle.
================================================================================================ */
@layer core.modules {

/* L'application occupe la fenêtre : l'en-tête reste, seul <main> défile. */
html, body,
#ProductContainer {
	height: 100%;
	width: 100%;
	margin: 0;
	overflow: hidden;
}

#ProductContainer {
	display: flex;
	flex-direction: column;
}

#BootstrapHeader {
	flex: none;
}

main {
	flex: 1 1 auto;
	overflow: auto;
}

/* Le papier pagine lui-même : la hauteur fixe et overflow:hidden de l'écran couperaient
   tout contenu plus long qu'une page. */
@media print {
	html, body,
	#ProductContainer {
		height: auto;
		overflow: visible;
	}

	main {
		overflow: visible;
	}

	/* Rien de l'écran sur le papier : barre du bas du cellulaire (et sa place), notifications. */
	.bootstrap-tabbar,
	.bootstrap-notify-stack {
		display: none;
	}
	body.bootstrap-has-tabbar main {
		padding-bottom: 0;
	}
}

/* Page virtuelle (sections/virtual/HTML) : colonne de lecture centrée, jamais pleine largeur.
   Repli si le Skin est retiré (Core::Module_Unload("skin")), qui définit ces jetons. */
#ContentPage {
	max-width: var(--bootstrap-page-width, 56.25rem);
	margin: 0 auto;
	padding: var(--bootstrap-page-padding, 1.5rem 2rem);
}
/* Téléphone : marge réduite ; un site la change par une règle #ContentPage de son Theme.css. */
@media (max-width: 36rem) {   /* 576px */
	#ContentPage { padding: 1rem; }
}

/* Avatar d'un utilisateur (Bootstrap.avatar) : initiales, ou l'image qui les recouvre ; 4 tailles (forme et police dans le Skin). */
.bootstrap-avatar {
	position: relative;
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	overflow: hidden;
	line-height: 1;
	vertical-align: middle;
}
.bootstrap-avatar > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.bootstrap-avatar-sm {
	width: 1.75rem;
	height: 1.75rem;
}
.bootstrap-avatar-lg {
	width: 3.5rem;
	height: 3.5rem;
}
.bootstrap-avatar-xl {
	width: 6rem;
	height: 6rem;
}

}
