/* ============================================================
   site.css — Styles centralisés de l'application PAL
   ============================================================ */

/* ------------------------------------------------------------
   1. Layout global (navbar, langue, overlay)
   ------------------------------------------------------------ */

.he-8 {
	height: 8rem;
}

/* Navbar personnalisé */
.navbar-pal {
	background-color: #5F9EA0 !important;
}

.navbar-pal .nav-link {
	color: white !important;
	transition: background-color 0.3s ease;
}

.navbar-pal .nav-link:hover {
	background-color: rgba(0, 0, 0, 0.1);
	border-radius: 4px;
}

.navbar-pal .dropdown-menu {
	background-color: #5F9EA0;
	border: 1px solid rgba(0, 0, 0, 0.15);
}

.navbar-pal .dropdown-item {
	color: #000 !important;
	transition: background-color 0.3s ease;
}

.navbar-pal .dropdown-item:hover {
	background-color: rgba(255, 255, 255, 0.2);
}

/* Sélecteur de langue */
.language-selector {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.language-pill {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	border-radius: 1rem;
	background-color: rgba(255, 255, 255, 0.3);
	color: white;
	text-decoration: none;
	font-size: 0.875rem;
	transition: all 0.3s ease;
}

.language-pill:hover {
	background-color: rgba(255, 255, 255, 0.5);
	color: white;
	transform: scale(1.05);
}

.language-pill-selected {
	background-color: white;
	color: #5F9EA0;
	font-weight: bold;
}

/* Bouton de déconnexion */
.logout-btn {
	transition: transform 0.3s ease;
}

.logout-btn:hover {
	transform: scale(1.1);
}

/* Loading Overlay — Spinner pour les pages lentes */
.page-loading-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 9999;
	display: flex;
	justify-content: center;
	align-items: center;
}

.page-loading-overlay .loading-content {
	text-align: center;
}

.page-loading-overlay .loading-text {
	font-size: 1.1rem;
}

/* ------------------------------------------------------------
   2. Summernote — Éditeur de texte riche
   ------------------------------------------------------------ */

.note-editor {
	border: 1px solid #ddd;
}

.note-toolbar {
	background-color: #f5f5f5;
	border-bottom: 1px solid #ddd;
	padding: 10px 5px;
	display: block !important;
}

.note-editable {
	min-height: 300px;
	padding: 10px;
}

/* ------------------------------------------------------------
   3. Tableau Product (.pal-table-product)
   ------------------------------------------------------------ */

.pal-table-product,
.pal-table-product * {
	all: revert;
}

.pal-table-product {
	width: 100%;
	border-collapse: collapse;
	border: 2px solid #dee2e6;
	margin: 0;
}

.pal-table-product thead {
	display: table-header-group;
	background-color: #e9ecef;
}

.pal-table-product tbody {
	display: table-row-group;
}

.pal-table-product tr {
	display: table-row;
}

.pal-table-product th,
.pal-table-product td {
	display: table-cell;
	padding: 8px;
	border: 1px solid #dee2e6;
	text-align: left;
	vertical-align: middle;
}

.pal-table-product th {
	font-weight: bold;
}

.pal-table-product td:nth-child(1) {
	width: 15%;
}

.pal-table-product td:nth-child(2),
.pal-table-product td:nth-child(3) {
	width: 42.5%;
}

.pal-table-product input {
	width: 100%;
	border: none;
	background: transparent;
	padding: 4px;
}
