:root {
	--primary: #16623f; /* vert principal */
	--primary-light: #1f8a55;
	--primary-bg: #e6f2ed;

	--secondary: #363636; /* noir */
	--secondary-light: #333333;
	--background: #ffffe2;
	--bg-header-top: #f5f5f5;
	--accent: #c9a227; /* doré optionnel */
}

/* Boutons */
.btn-primary {
	background-color: var(--primary) !important;
	border-color: var(--primary) !important;
}
.btn-primary:hover {
	background-color: var(--primary-light) !important;
	border-color: var(--primary-light) !important;
}

/* Bouton secondaire */
.btn-outline-primary {
	color: var(--primary) !important;
	border-color: var(--primary) !important;
}
.btn-outline-primary:hover {
	background-color: var(--primary-bg) !important;
}

/* Texte et titres */
body {
	color: var(--secondary-light);
	background-color: var(--background);
}

@media (min-width: 768px) and (max-width: 991px) {
	.logo {
		max-height: 60px !important;
	}
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--secondary);
	font-size: 1.5rem;
}

.text-muted {
	font-size: 1rem;
	color: #303030 !important;
}

table thead th {
	font-size: 1.25rem;
}

table tbody tr td {
	font-size: 1rem;
}

/* Liens */
a {
	color: var(--primary);
}
a:hover {
	color: var(--primary-light);
}

/* Badges */
.badge-primary {
	background-color: var(--primary);
}
.badge-accent {
	background-color: var(--accent);
	color: #fff;
}

.d-flex {
	display: flex;
}

.justify-content-center {
	justify-content: center;
}

.justify-content-end {
	justify-content: flex-end;
}

.align-items-center {
	align-items: center;
}

.w-100 {
	width: 100%;
}

.h-100 {
	height: 100%;
}

.ceos_theme_heading {
	font-size: clamp(1.15rem, 1.6vw, 1.65rem);
	font-weight: 600;
	line-height: 1.2;
	margin: 0;
	color: #16623f;
	position: relative;
	padding-bottom: 0.35rem;
}

.ceos_theme_heading:after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 60px;
	height: 3px;
	background: linear-gradient(90deg, #16623f, #1d784c);
	border-radius: 3px;
}

.products-section-title {
	font-size: clamp(1.15rem, 1.6vw, 1.65rem);
	font-weight: 600;
	line-height: 1.2;
	margin: 0;
	color: #16623f;
	position: relative;
	padding-bottom: 0.35rem;
	text-align: left !important;
	font-weight: 600 !important;
}

.products-section-title:after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 60px;
	height: 3px;
	background: linear-gradient(90deg, #16623f, #1d784c);
	border-radius: 3px;
}

.header-top {
	background-color: var(--bg-header-top) !important;
	border-bottom: 1px solid var(--primary-light) !important;
}

.header-top a:not(.header-top-center-mail) {
	color: var(--primary) !important;
	font-size: 1.25rem !important;
}

.header-top a:hover {
	color: var(--primary-light) !important;
	transition: color 0.3s ease;
}

.header-nav {
	background-color: var(--primary) !important;
	border-bottom: 3px solid #145836;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	color: #fff !important;
}

body#checkout #header .header-nav {
	background-color: var(--bg-header-top) !important;
	border-bottom: 1px solid var(--primary-light) !important;
	color: var(--primary) !important;
}

.header-nav a {
	color: #fff !important;
}

#header .header-nav .blockcart {
	background-color: var(--primary) !important;
	color: #9c9999 !important;
	border: none;
}

#header {
	color: #fff !important;
}

#header a:hover {
	color: var(--primary-light) !important;
}

#wrapper {
	background-color: var(--background);
}

.header-top-center-mail {
	color: var(--primary) !important;
	font-size: 16px !important;
}

.header-top-center i {
	font-size: 18px !important;
	margin-right: 0.25rem !important;
}

.h3,
.h4,
.h5,
.h6 {
	color: var(--primary) !important;
}

.h3 a:hover,
.h4 a:hover,
.h5 a:hover,
.h6 a:hover {
	color: var(--primary-light) !important;
	border-bottom: 1px solid var(--primary-light) !important;
}

#footer {
	background-color: var(--bg-header-top) !important;
	border-top: 1px solid var(--primary-light) !important;
	color: var(--primary) !important;
	left: 0;
	width: 100%;
	z-index: 100;
}

#wrapper {
	display: flex;
	flex-direction: column;
}
#main {
	flex: 1 0 auto;
}
#footer {
	position: static;
	flex-shrink: 0;
}

/* Footer fixé en bas seulement si on est tout en bas (beaucoup de contenu) */
@media (min-width: 768px) {
	body.scrolled-to-bottom #footer {
		position: fixed;
		bottom: 0;
	}
}
#footer .h3,
#footer .h3 a {
	color: var(--primary) !important;
	font-size: 1.25rem !important;
}

#footer a {
	color: var(--primary) !important;
}

#footer a:hover {
	color: var(--primary-light) !important;
	border-bottom: 1px solid var(--primary-light) !important;
}

.footer-container li a {
	font-size: 1rem !important;
}

.breadcrumb li a {
	color: var(--primary) !important;
}

.breadcrumb li a:hover {
	color: var(--primary-light) !important;
	border-bottom: 1px solid var(--primary-light) !important;
}

.breadcrumb li:last-child {
	color: var(--primary) !important;
	font-weight: bold;
}

.card {
	background-color: var(--bg-header-top) !important;
	border: 1px solid var(--primary) !important;
	color: var(--primary) !important;
}

.card h1,
.card h2 {
	font-size: clamp(1.15rem, 1.6vw, 1.65rem);
	font-weight: 600;
	line-height: 1.2;
	margin: 0;
	color: var(--primary) !important;
	position: relative;
	padding-bottom: 0.35rem;
	margin-bottom: 0.5rem;
}

.card h1:after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 60px;
	height: 3px;
	background: linear-gradient(90deg, #16623f, #1d784c);
	border-radius: 3px;
}

.page-header {
	font-size: clamp(1.15rem, 1.6vw, 1.65rem);
	font-weight: 600;
	line-height: 1.2;
	margin: 0;
	color: #16623f !important;
	position: relative;
	padding-bottom: 0.35rem;
}

.page-header h1,
.page-header h2,
.page-header h3,
.page-header h4,
.page-header h5,
.page-header h6 {
	color: #16623f !important;
}

.page-header:after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 60px;
	height: 3px;
	background: linear-gradient(90deg, #16623f, #1d784c);
	border-radius: 3px;
}

.form-control-label {
	color: var(--primary) !important;
}

.link-item {
	background-color: var(--primary) !important;
	color: #fff !important;
}

.link-item i {
	color: #fff !important;
}

.link-item:hover {
	background-color: var(--primary-light) !important;
	color: #fff !important;
	transition: background-color 0.3s ease;
}

.page-content {
	color: var(--primary) !important;
	background-color: var(--bg-header-top) !important;
}

label {
	color: var(--primary) !important;
}
/* Checkbox personnalisée (compatible structure PrestaShop)
  Coche blanche sur fond vert (au clic) */

/* Masquer l’input natif */
.custom-checkbox input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	margin: 0;
}

.custom-checkbox input[type="checkbox"] + span .checkbox-checked {
	color: #fff; /* coche blanche */
	margin: 0;
}

/* Boîte visible (état non coché) */
.custom-checkbox input[type="checkbox"] + span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border: 2px solid var(--primary);
	border-radius: 4px;
	background: #fff;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s;
	position: relative;
}

/* Icône (check) */
.custom-checkbox input[type="checkbox"] + span i {
	font-size: 14px;
	color: #fff; /* coche blanche */
	opacity: 0;
	/* Position absolue pour un centrage pixel-perfect quel que soit la métrique de police */
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0.6);
	transition: opacity 0.18s ease, transform 0.18s ease;
}

/* Etat coché : fond vert + coche blanche */
.custom-checkbox input[type="checkbox"]:checked + span {
	background: var(--primary);
	border-color: var(--primary);
}

.custom-checkbox input[type="checkbox"]:checked + span i {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

/* Focus clavier */
.custom-checkbox input[type="checkbox"]:focus-visible + span {
	outline: 2px solid var(--primary-light);
	outline-offset: 2px;
}

/* Version sans wrapper (.custom-checkbox) */
/* Etat non coché */
input[type="checkbox"]:not(.ignore-custom) {
	-webkit-appearance: none;
	appearance: none;
	width: 18px;
	height: 18px;
	margin: 0 6px 0 0;
	border: 2px solid var(--primary);
	border-radius: 4px;
	background: #fff;
	display: inline-grid;
	place-content: center;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s;
	position: relative; /* nécessaire pour centrage du pseudo-élément */
}

/* Coche (blanche) cachée au repos */
input[type="checkbox"]:not(.ignore-custom)::before {
	content: "";
	width: 8px;
	height: 12px;
	border: 2px solid #fff;
	border-top: 0;
	border-left: 0;
	position: absolute; /* centrage visuel */
	top: 35%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0) rotate(45deg);
	transform-origin: center;
	transition: transform 0.18s ease;
}

/* Etat coché : fond vert + coche blanche */
input[type="checkbox"]:not(.ignore-custom):checked {
	background: var(--primary);
	border-color: var(--primary);
}

input[type="checkbox"]:not(.ignore-custom):checked::before {
	transform: translate(-50%, -50%) scale(1) rotate(45deg);
}

/* Focus */
input[type="checkbox"]:not(.ignore-custom):focus-visible {
	outline: 2px solid var(--primary-light);
	outline-offset: 2px;
}

/* Variante avec accent-color native si besoin */
input[type="checkbox"].with-accent {
	appearance: auto;
	accent-color: var(--primary);
}

.input-group-btn .btn {
	background-color: var(--primary) !important;
	border-color: var(--primary) !important;
	color: #fff !important;
}

.address-body {
	background-color: var(--primary) !important;
	border: 1px solid var(--primary-light) !important;
	color: #fff !important;
}

.address-body h4 {
	color: #fff !important;
}

.address-footer {
	display: flex;
	justify-content: space-between;
	background-color: var(--primary) !important;
}

.address-footer a {
	color: #fff !important;
}

.address-footer a:hover {
	color: var(--primary-bg) !important;
	border-bottom: 1px solid var(--primary-bg) !important;
}

.addresses-footer {
	background-color: var(--primary) !important;
	margin: 0 !important;
	padding: 10px !important;
}

.addresses-footer a {
	color: #fff !important;
}

.addresses-footer a:hover {
	color: var(--primary-bg) !important;
	border-bottom: 1px solid var(--primary-bg) !important;
}

.block-categories {
	background-color: var(--bg-header-top) !important;
	border: 1px solid var(--primary-light) !important;
	color: var(--primary) !important;
}

.block-categories a {
	color: var(--primary) !important;
	max-width: 11rem !important;
}

.block-categories a:hover {
	color: var(--primary-light) !important;
	border-bottom: 1px solid var(--primary-bg) !important;
}

.block-categories .navbar-toggler {
	color: var(--primary-light) !important;
}

.block-categories .navbar-toggler:hover {
	color: var(--primary-light) !important;
}

.collapse > .category-sub-menu,
.collapsing > .category-sub-menu {
	border-left: 2px solid var(--primary-light) !important;
	padding-left: 10px !important;
}

#search_filters,
#search_filters_brands,
#search_filters_suppliers {
	background-color: var(--bg-header-top) !important;
	border: 1px solid var(--primary-light) !important;
	color: var(--primary) !important;
}

#search_filters a,
#search_filters_brands a,
#search_filters_suppliers a {
	color: var(--primary) !important;
}

.clear-all-wrapper button {
	background-color: var(--primary) !important;
	color: #fff !important;
	border: none !important;
}

.clear-all-wrapper button:hover {
	background-color: var(--primary-light) !important;
	color: #fff !important;
	border: none !important;
	transition: background-color 0.3s ease;
}

/* Sticky left column (desktop) */
@media (min-width: 768px) {
	.sticky-left {
		position: -webkit-sticky;
		position: sticky;
		top: 6rem; /* espace sous le header */
		align-self: flex-start; /* s'assure que flex ne l'étire pas verticalement */
		height: fit-content; /* shrink wrap */
		max-height: calc(100vh - 6rem); /* éviter de dépasser la fenêtre */
		overflow: auto; /* scroll interne si contenu plus grand */
		scrollbar-width: thin;
	}

	.sticky-left::-webkit-scrollbar {
		width: 6px;
	}
	.sticky-left::-webkit-scrollbar-track {
		background: rgba(255, 255, 255, 0.05);
	}
	.sticky-left::-webkit-scrollbar-thumb {
		background: var(--primary-light);
		border-radius: 3px;
	}
	.sticky-left::-webkit-scrollbar-thumb:hover {
		background: var(--primary);
	}

	#product_picture_col_container {
		position: sticky;
		top: 6rem;
	}
}

/* Si la colonne doit passer sous la zone sticky sur mobile/tablette, on revient au flux normal */
@media (max-width: 767px) {
	.sticky-left {
		position: static;
		max-height: none;
		overflow: visible;
	}

	#product_picture_col_container {
		position: static;
	}
}

#left-column {
	scrollbar-width: thin;
	scrollbar-color: var(--primary-light) var(--bg-header-top);
}

.subcategories-list li {
	border: 1px solid var(--primary-light) !important;
	background-color: var(--primary) !important;
}

.subcategories-list li:hover {
	border: 1px solid var(--primary-light) !important;
	transition: border-color 0.3s ease;
}

.subcategory-heading {
	font-size: clamp(1.15rem, 1.6vw, 1.65rem);
	font-weight: 600;
	line-height: 1.2;
	margin: 0;
	color: var(--primary) !important;
	position: relative;
	padding-bottom: 0.35rem;
}

.subcategory-heading:after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 60px;
	height: 3px;
	background: linear-gradient(90deg, #16623f, #1d784c);
	border-radius: 3px;
}

.subcategory-image a {
	border: 1px solid var(--primary-light) !important;
	padding: 0 !important;
}

.subcategory-image img {
	object-fit: cover;
	width: 100%;
	padding: 0 !important;
}

.subcategories-list li > .subcategory-name {
	background-color: var(--primary) !important;
}

.products.row {
	gap: 1.25rem 0 !important;
}

.products {
	gap: 1.25rem 0 !important;
}

.subcategory-name {
	color: #fff !important;
}

.product-miniature {
	border: 1px solid var(--primary-light) !important;
	display: block !important;
}

.product-miniature .thumbnail-container {
	margin-bottom: 0 !important;
}

.product-miniature .product-description {
	background-color: var(--primary) !important;
	color: #fff !important;
}

.product-miniature .product-title a {
	color: #fff !important;
	font-size: 1rem !important;
}

.product-miniature .product-title a:hover {
	color: #fff !important;
	border-bottom: 1px solid #fff !important;
}

.product-miniature .wishlist-button-add {
	background-color: var(--primary);
}

.product-miniature .wishlist-button-add i {
	color: #fff;
}

.product-miniature:hover {
	border: 1px solid var(--primary) !important;
	transition: border-color 0.3s ease;
}

p {
	color: var(--primary) !important;
}

.pagination {
	background-color: var(--bg-header-top) !important;
	border: 1px solid var(--primary-light) !important;
	color: var(--primary) !important;
	text-align: center;
	padding: 0.5rem 0;
}

.pagination .page-list {
	background-color: var(--bg-header-top) !important;
}

.pagination .page-list li {
	margin: 0 0.25rem;
}

.pagination a {
	color: var(--primary) !important;
}

.pagination a:hover {
	color: var(--primary-light) !important;
	border-bottom: 1px solid var(--primary-light) !important;
}

.text-right {
	text-align: right;
}
/* Agrandissement du logo dans le header */
.logo {
	max-height: 90px;
	max-width: none !important;
	width: auto;
}

@font-face {
	font-family: "Pacifico";
	src: url("/themes/classic/assets/css/Pacifico-Regular.ttf") format("truetype");
}

@font-face {
	font-family: "Grand Hotel";
	src: url("/themes/classic/assets/css/GrandHotel-Regular.ttf") format("truetype");
}

@font-face {
	font-family: "Story Script";
	src: url("/themes/classic/assets/css/StoryScript-Regular.ttf") format("truetype");
}

@font-face {
	font-family: "Farsan";
	src: url("/themes/classic/assets/css/Farsan-Regular.ttf") format("truetype");
}

* {
	/* font-family: 'Pacifico'; */
	/* font-family: 'Grand Hotel'; */
	/* font-family: 'Story Script'; */
	font-family: "Farsan";
}

#search_filters .facet .facet-label {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

#search_filters .facet .facet-label a {
	text-align: right !important;
}

.modal-dialog {
	max-width: 60vw !important;
}

.block-category-inner {
	flex-direction: row-reverse !important;
	justify-content: flex-end !important;
	gap: 2rem !important;
}

#category-description p {
	font-size: 1.25rem !important;
}

.order-confirmation-product-image img {
	border: 1px solid var(--primary-light);
}

.highlighted-informations {
	display: none;
}

.social-sharing {
	display: none;
}

.product_picture_container {
	background-color: var(--bg-header-top) !important;
	border: 1px solid var(--primary-light) !important;
}

.product-cover {
	border-bottom: 1px solid var(--primary-light) !important;
}

.product_picture_container .js-qv-mask {
	padding: 0.5rem !important;
}

#product-modal .modal-content .modal-body {
	margin-left: 0 !important;
}

.tabs {
	background-color: var(--bg-header-top) !important;
	border: 1px solid var(--primary-light) !important;
}

.nav-tabs a {
	font-size: 1.15rem !important;
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-link.active:focus,
.nav-tabs .nav-link.active:hover,
.nav-tabs .nav-item.open .nav-link,
.nav-tabs .nav-item.open .nav-link:focus,
.nav-tabs .nav-item.open .nav-link:hover {
	background-color: var(--primary) !important;
	color: #fff !important;
	border-bottom: 3px solid #fff !important;
}

.product-information .tabs .tab-content label {
	font-size: 1.15rem !important;
}

.product-information .tabs .tab-content span {
	font-size: 1rem !important;
}

.product-features p {
	font-size: 1.15rem !important;
}

.product-features dl dt {
	font-size: 1.15rem !important;
	background-color: var(--primary) !important;
	color: #fff !important;
	padding: 0.5rem 1rem !important;
	border: 1px solid var(--primary-light) !important;
	margin-right: 0 !important;
}

.product-features dl dd {
	font-size: 1rem !important;
	padding: 0.5rem 1rem 0.5rem 0.5rem !important;
	border: 1px solid var(--primary-light) !important;
	background-color: var(--primary-bg) !important;
}

#product-comments-list-header {
	margin-top: 1rem !important;
	background-color: var(--primary) !important;
	color: #fff !important;
	border: 1px solid var(--primary-light) !important;
}

#product-comments-list-header .comments-nb {
	font-size: 1.25rem !important;
}

.product-comment-list-item {
	border: 1px solid var(--primary-light) !important;
	background-color: var(--bg-header-top) !important;
	margin-bottom: 1rem !important;
}

.product-comment-list-item p {
	font-size: 1.25rem !important;
}

.comment-infos {
	font-size: 1rem !important;
}

#empty-product-comment {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100%;
}

button.post-product-comment {
	background-color: var(--bg-header-top) !important;
	border: 1px solid var(--primary-light) !important;
	color: var(--primary) !important;
	font-size: 1.25rem !important;
	display: flex;
	justify-content: center;
	align-items: center;
}

button.post-product-comment:hover {
	background-color: var(--primary) !important;
	color: #fff !important;
	transition: all 0.3s ease;
}

.modal-body {
	background-color: var(--bg-header-top) !important;
}

.modal-header {
	background-color: var(--primary) !important;
	color: #fff !important;
	border-bottom: 1px solid var(--primary-light) !important;
}

.modal-header p,
.modal-header span {
	color: #fff !important;
}

#header .header-top {
	padding: 0.5rem 0 !important;
}
