/* Notify custom */

.info_toujours {
	padding: 9px 12px;
	font-weight: 600;
	border-radius: 5px;
}

.toast_success {
	color: #468847;
	background: #DFF0D8;
}

.toast_success .toast-close {
	padding-left: 10px;
	color: #3b7428;
}

.toast_success .toast-close:hover {
	color: #38722585;
}

.toast_error {
	color: #884646;
	background: #f0d8d8;
}

.toast_error .toast-close {
	padding-left: 10px;
	color: #ff5858;
}

.toast_error .toast-close:hover {
	color: #ff585880;
}

.toast_warning {
	color: #C09853;
	background: #FCF8E3;
}

.toast_warning .toast-close {
	padding-left: 10px;
	color: #875500;
}

.toast_warning .toast-close:hover {
	color: #87550080;
}

.toast_info {
	color: #1e2452;
	background: #9abffc;
}

.toast_info .toast-close {
	padding-left: 10px;
	color: #241a4b;
}

.toast_info .toast-close:hover {
	color: #5e4aaf;
}

.square-card {
	border-radius: 0.5rem;
	overflow: hidden;
	background-color: #f8f9fa;
	border: 1px solid #dee2e6;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.image-container {
	position: relative;
	width: 100%;
	padding-top: 100%;
	/* carrÃ© responsive */
	overflow: hidden;
}

.image-container img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.overlay-dark {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.3);
	pointer-events: none;
	z-index: 1;
}

.overlay-center {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-color: rgba(0, 0, 0, 0.65);
	color: white;
	padding: 0.6rem 1.2rem;
	font-weight: bold;
	border-radius: 0.4rem;
	z-index: 2;
	font-size: 1rem;
	text-align: center;
	pointer-events: none;
}

.info {
	padding: 1rem;
	background-color: #fff;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.info h5 {
	font-weight: bold;
	margin-bottom: 0.5rem;
}

.price {
	display: inline-block;
	background-color: #e9f7ef;
	color: #1e7e34;
	font-weight: bold;
	padding: 0.25rem 0.6rem;
	border-radius: 0.4rem;
	font-size: 0.9rem;
	margin-bottom: 0.5rem;
	width: fit-content;
}

.info p.description {
	flex-grow: 1;
	font-size: 0.9rem;
	color: #555;
	margin-bottom: 0.75rem;
}

.square-card.achete {
	border: 2px solid #a5a5a5;
	box-shadow: 0 0 8px rgb(0 0 0 / 50%);
	opacity: 0.9;
}


/* Style pour le bloc utilisateur */
.user-block {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 80px;
	width: fit-content;
	max-width: 100%;
	cursor: pointer;
	transition: box-shadow 0.35s cubic-bezier(.4, 2, .3, 1), border-color 0.25s, transform 0.35s cubic-bezier(.4, 2, .3, 1), background 0.25s;
	border: 2px solid #d1d5db;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	margin: 8px;
	padding: 10px;
	will-change: transform, box-shadow;
}

.user-block img {
	width: 80px;
	height: 80px;
	object-fit: cover;
	margin-bottom: 14px;
	border-radius: 50%;
	transition: width 0.2s, height 0.2s, margin-bottom 0.2s;
	box-shadow: 0px 0px 8px #7f7f7f;
}

.user-block:hover {
	transform: scale(1.13) rotate(-5deg) translateY(-10px);
	background: #eef3f7;
	box-shadow: 0 12px 32px rgba(60, 60, 60, 0.18);
	border-color: #8ab4f8;
	z-index: 2;
}

.user-block span:first-of-type {
	color: #444;
	font-weight: 500;
	font-size: 15px;
	text-shadow: none;
	text-align: center;
	white-space: nowrap;
	display: block;
	padding: 0 2px;
}

@media (max-width: 600px) {
	.user-block {
		width: fit-content;
		min-width: 44px;
		max-width: 100%;
		padding: 10px 4px 6px 4px;
		margin: 4px;
	}

	.user-block img {
		width: 32px;
		height: 32px;
		margin-bottom: 6px;
		margin-top: 2px;
	}

	.user-block span {
		font-size: 12px;
	}

	.user-group-flex {
		gap: 8px;
	}
}

#loadingOverlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(255, 255, 255, 0.8);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1050;
	/* Au-dessus du reste */
}

/* Style bouton retour mobile friendly */
.back-btn-mobile {
	background: #fff;
	color: #b30000;
	border: 1px solid #e0e0e0;
	transition: background 0.2s, color 0.2s, box-shadow 0.2s;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
	font-size: 1.05em;
	padding: 0.5em 1.2em;
}

.back-btn-mobile:hover,
.back-btn-mobile:focus {
	background: #b30000;
	color: #fff;
	text-decoration: none;
	box-shadow: 0 4px 16px rgba(179, 0, 0, 0.10);
}

@media (max-width: 576px) {
	.back-btn-mobile {
		width: 100%;
		max-width: none;
		justify-content: flex-start;
		border-radius: 1.5em;
		font-size: 1em;
		padding: 0.7em 1em;
	}

	.back-btn-mobile span.d-none.d-sm-inline {
		display: inline !important;
	}
}

.pointer {
	cursor: pointer;
}