body {
	font-family: "Poppins", sans-serif;
}

main {
	overflow-x: clip;
}

img {
	max-width: 100%;
	height: auto;
}

/* ——— En-tête ——— */
.site-header-link {
	min-width: 0;
}

.site-logo {
	height: 48px;
	width: auto;
	flex-shrink: 0;
}

.site-title {
	line-height: 1.2;
	word-break: break-word;
}

/* ——— Navigation ——— */
.site-header,
.site-navbar,
.site-navbar .container-fluid,
.site-navbar .navbar-collapse {
	overflow: visible;
}

.navbar-mobile-toolbar {
	padding: 0.15rem 0;
	overflow: visible;
}

.navbar-mobile-toolbar > .ms-auto {
	position: relative;
	overflow: visible;
}

.nav-link-icon {
	font-size: 1.35rem;
	line-height: 1;
	padding: 0.35rem 0.5rem;
}

.navbar-icons .nav-item {
	display: flex;
	align-items: center;
}

@media (min-width: 992px) {
	.navbar .catalogue-dropdown:hover > .dropdown-menu,
	.navbar .catalogue-dropdown .dropdown-menu:hover {
		display: block;
		margin-top: 0;
	}

	.nav-link-icon {
		font-size: 1.5rem;
	}
}

.fond-bleu {
	background-color: #0543c9;
}

.dropdown-menu.show.catalogue,
.dropdown-menu.catalogue {
	width: 250px;
	max-width: calc(100vw - 2rem);
}

ul.catalogue li:not(:first-child) a:hover,
ul.catalogue li:not(:first-child) ul li a:active {
	padding-left: 32px;
}

.nav-icon-badge {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.nav-badge {
	position: absolute;
	top: 0;
	right: 0;
	min-width: 1rem;
	height: 1rem;
	padding: 0 0.25rem;
	border-radius: 999px;
	background-color: #dc3545;
	color: #fff;
	font-size: 0.6rem;
	font-weight: 700;
	line-height: 1rem;
	text-align: center;
	pointer-events: none;
	transform: translate(35%, -35%);
}

.nav-badge[data-count="0"] {
	display: none;
}

/* Bootstrap impose position:static aux dropdowns navbar ; on force le positionnement compte */
.navbar-icons .account-dropdown {
	position: relative;
}

.navbar-icons .account-dropdown > .menu-account-dropdown {
	position: absolute !important;
	top: 100% !important;
	right: 0 !important;
	left: auto !important;
	transform: none !important;
	margin-top: 0.25rem;
	min-width: 14rem;
	max-width: calc(100vw - 1.5rem);
	z-index: 1050;
}

/* ——— Administration ——— */
.admin-nav-scroll {
	flex-wrap: wrap !important;
	align-content: flex-start;
	row-gap: 0.35rem;
	padding-bottom: 0.25rem;
}

.admin-nav-scroll .nav-link {
	white-space: nowrap;
}

/* ——— Catalogue ——— */
.catalogue-filtres-form {
	background: var(--bs-light, #f8f9fa);
	border: 1px solid var(--bs-border-color, #dee2e6);
	border-radius: 0.5rem;
	padding: 1rem 1.25rem;
}

.catalogue-filtres-ligne {
	width: 100%;
}

.catalogue-tri-select {
	min-width: 10rem;
	width: auto;
}

.catalogue-filtres-categories {
	border: 0;
	padding: 0;
	margin: 0;
	min-width: 0;
}

.catalogue-filtres-boutons {
	flex-wrap: nowrap;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	max-width: 100%;
}

.catalogue-filtres {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	padding-bottom: 0.25rem;
}

.catalogue-filtres legend,
.catalogue-sous-filtres legend {
	font-size: 0.95rem;
}

.catalogue-filtres .btn-group {
	flex-wrap: nowrap;
}

.produit-actions {
	flex-wrap: wrap;
}

.produit-thumb {
	flex-shrink: 0;
}

.produit-guide-tailles {
	cursor: pointer;
}

.produit-guide-tailles-img {
	max-width: 180px;
}

#produitCarousel .carousel-item img {
	max-height: 480px;
}

/* ——— Listes (souhaits, panier, comparaison) ——— */
.liste-page-items {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.liste-produit-card {
	overflow: hidden;
}

.liste-produit-photo-link {
	display: block;
}

.liste-produit-photo {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	display: block;
	background: var(--bs-light, #f8f9fa);
}

.liste-produit-photo-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--bs-secondary-color, #6c757d);
	font-size: 1.75rem;
}

.liste-produit-actions {
	padding-left: 1rem;
	padding-right: 1rem;
	padding-bottom: 1rem;
}

.liste-qty-group .form-control {
	min-width: 2.75rem;
}

.panier-recap-lignes dt {
	font-weight: 500;
}

.panier-moyen-paiement .form-check-label {
	line-height: 1.35;
}

.panier-moyen-paiement .form-check-input {
	margin-top: 0.35rem;
}

.compare-table-wrap {
	-webkit-overflow-scrolling: touch;
	border-radius: 0.5rem;
	box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.compare-table {
	min-width: 36rem;
	margin-bottom: 0;
}

.compare-table th,
.compare-table td {
	vertical-align: middle;
}

.compare-label-col {
	position: sticky;
	left: 0;
	z-index: 2;
	min-width: 8.5rem;
	background: var(--bs-body-bg, #fff);
	font-weight: 600;
}

.compare-product-col {
	min-width: 11rem;
	max-width: 16rem;
}

.compare-product-head {
	position: relative;
	padding-top: 0.25rem;
}

.compare-remove {
	position: absolute;
	top: 0;
	right: 0;
}

.compare-photo {
	max-width: 7rem;
	margin: 0 auto;
	border-radius: 0.375rem;
}

.compare-photo-mobile {
	max-width: 10rem;
	margin: 0 auto;
	border-radius: 0.375rem;
}

.compare-description {
	max-height: 8rem;
	overflow-y: auto;
	font-size: 0.875rem;
	line-height: 1.45;
}

.compare-mobile-card .compare-description {
	max-height: none;
}

@media (min-width: 768px) {
	.liste-produit-actions {
		padding-left: 0;
		padding-right: 1rem;
		padding-bottom: 1rem;
	}
}

@media (max-width: 575.98px) {
	.liste-produit-card .card-body {
		padding-left: 0.75rem;
		padding-right: 0.75rem;
	}

	.liste-produit-actions .btn {
		flex: 1 1 calc(50% - 0.25rem);
	}

	.compare-table {
		min-width: 28rem;
	}

	.compare-product-col {
		min-width: 9rem;
	}
}

/* ——— Tableaux admin ——— */
.table-responsive {
	-webkit-overflow-scrolling: touch;
}

/* ——— Utilitaires responsive ——— */
@media (max-width: 575.98px) {
	.site-logo {
		height: 36px;
	}

	.site-title {
		font-size: 1rem;
	}

	.container,
	.container-fluid {
		padding-left: 0.75rem;
		padding-right: 0.75rem;
	}

	main h1,
	main h2 {
		font-size: calc(1.275rem + 0.3vw);
	}

	.btn-group.flex-wrap .btn {
		flex: 1 1 auto;
	}

	.produit-actions .btn-sm {
		min-height: 2.25rem;
		min-width: 2.25rem;
	}

	#produitCarousel .carousel-item img {
		max-height: 280px;
	}

	.table {
		font-size: 0.875rem;
	}

	.table .form-select-sm,
	.table .form-control-sm {
		min-width: 7rem;
	}
}

@media (min-width: 576px) and (max-width: 991.98px) {
	.site-logo {
		height: 42px;
	}

	.site-title {
		font-size: 1.15rem;
	}

	#produitCarousel .carousel-item img {
		max-height: 360px;
	}
}

@media (max-width: 991.98px) {
	.navbar-icons .nav-badge {
		display: none !important;
	}

	.navbar-collapse {
		margin-top: 0.5rem;
		padding-top: 0.5rem;
		border-top: 1px solid rgba(0, 0, 0, 0.08);
	}

	.navbar-nav .dropdown-menu:not(.menu-account-dropdown) {
		border: none;
		box-shadow: none;
		background-color: rgba(0, 0, 0, 0.03);
		margin-left: 0.5rem;
	}

	.navbar-nav .nav-link {
		padding-top: 0.6rem;
		padding-bottom: 0.6rem;
	}

	.d-flex.flex-wrap.justify-content-between.align-items-center.gap-2 > .d-flex {
		width: 100%;
		justify-content: flex-start;
	}
}
