/* ==========================================================================
   Tannesens Boutique — front
   Univers de la marque : Aboreto (titres), Poiret One (display),
   Open Sans (corps, héritée du thème), noir encre / crème / sauge #bcc8c9.
   ========================================================================== */

.tnsm-shop-conteneur {
	--encre: #1f1f1f;
	--texte: #4c4a46;
	--creme: #faf9f6;
	--sauge: #bcc8c9;
	--sauge-pale: #eef1f1;
	--ligne: #e8e4dd;
	--blanc: #fff;
	--ok: #4b6b4e;
	--alerte: #a4433b;
	--titre: 'Aboreto', serif;
	--display: 'Poiret One', sans-serif;

	max-width: 1160px;
	margin: 0 auto;
	padding: 40px 24px 88px;
	color: var(--texte);
	font-size: 15.5px;
	line-height: 1.7;
}

/* ---------- Hero ---------- */

.tnsm-hero {
	text-align: center;
	padding: 44px 20px 40px;
	margin-bottom: 32px;
	background: var(--creme);
	border-radius: 14px;
}

.tnsm-hero-compact {
	padding: 30px 20px 26px;
	margin-bottom: 28px;
}

.tnsm-hero-surtitre {
	font-family: var(--display);
	letter-spacing: 0.28em;
	text-transform: uppercase;
	font-size: 12.5px;
	color: var(--texte);
	margin: 0 0 10px;
}

.tnsm-hero-titre {
	font-family: var(--titre) !important;
	font-weight: 400 !important;
	font-size: clamp(30px, 4.5vw, 44px) !important;
	letter-spacing: 0.06em;
	color: var(--encre) !important;
	margin: 0 !important;
	padding: 0 !important;
}

.tnsm-hero-texte {
	font-family: var(--display);
	font-size: 17px;
	margin: 12px auto 0;
	max-width: 560px;
}

.tnsm-coche {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: var(--sauge);
	color: var(--encre);
	font-size: 28px;
	margin-bottom: 14px;
}

/* ---------- Boutons ---------- */

.tnsm-bouton {
	display: inline-block;
	background: var(--encre);
	color: var(--blanc) !important;
	padding: 14px 34px;
	border: 1px solid var(--encre);
	border-radius: 2px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	cursor: pointer;
	text-decoration: none !important;
	text-align: center;
	transition: background 0.25s ease, color 0.25s ease;
}

.tnsm-bouton:hover {
	background: transparent;
	color: var(--encre) !important;
}

.tnsm-bouton:disabled {
	opacity: 0.5;
	cursor: wait;
}

.tnsm-bouton-secondaire {
	background: transparent;
	color: var(--encre) !important;
}

.tnsm-bouton-secondaire:hover {
	background: var(--encre);
	color: var(--blanc) !important;
}

.tnsm-bouton-large {
	display: block;
	width: 100%;
}

/* ---------- Messages / divers ---------- */

.tnsm-message {
	min-height: 1.4em;
	font-size: 14px;
	margin-top: 10px;
}

.tnsm-message-ok {
	color: var(--ok);
}

.tnsm-message-erreur {
	color: var(--alerte);
}

select.tnsm-invalide {
	border-color: var(--alerte) !important;
}

.tnsm-vide {
	text-align: center;
	padding: 56px 20px;
	background: var(--creme);
	border-radius: 14px;
}

.tnsm-lien-retour {
	font-size: 14px;
	color: var(--texte);
	text-decoration: none;
	border-bottom: 1px solid var(--ligne);
}

/* ---------- Boutique : filtres + grille ---------- */

.tnsm-filtres {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-bottom: 40px;
}

.tnsm-filtres a {
	padding: 8px 20px;
	border: 1px solid var(--ligne);
	border-radius: 999px;
	text-decoration: none;
	font-family: var(--display);
	font-size: 14.5px;
	letter-spacing: 0.04em;
	color: var(--texte);
	background: var(--blanc);
	transition: all 0.2s ease;
}

.tnsm-filtres a:hover {
	border-color: var(--encre);
	color: var(--encre);
}

.tnsm-filtres a.actif {
	background: var(--encre);
	border-color: var(--encre);
	color: var(--blanc);
}

.tnsm-grille {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 36px 26px;
}

.tnsm-grille-4 {
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.tnsm-carte {
	display: flex;
	flex-direction: column;
	gap: 10px;
	text-decoration: none !important;
	color: inherit;
}

.tnsm-carte-image {
	position: relative;
	display: block;
	/* Cadre carré, comme les vignettes WooCommerce du site officiel : avec des
	   photos verticales au produit centré, le recadrage en couverture coupe le
	   vide en haut/bas et montre le produit à l'échelle naturelle, sans zoom. */
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 10px;
	background: var(--creme);
}

.tnsm-carte-image img {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.tnsm-carte:hover .tnsm-carte-image img {
	transform: scale(1.05);
}

.tnsm-carte-voir {
	position: absolute;
	z-index: 2;
	left: 50%;
	bottom: 14px;
	transform: translate(-50%, 8px);
	background: rgba(255, 255, 255, 0.94);
	color: var(--encre);
	padding: 8px 22px;
	border-radius: 999px;
	font-size: 12px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	opacity: 0;
	transition: all 0.3s ease;
}

.tnsm-carte:hover .tnsm-carte-voir {
	opacity: 1;
	transform: translate(-50%, 0);
}

.tnsm-etiquette {
	position: absolute;
	z-index: 2;
	top: 12px;
	left: 12px;
	padding: 5px 14px;
	border-radius: 999px;
	font-size: 11.5px;
	letter-spacing: 0.08em;
	background: var(--sauge);
	color: var(--encre);
}

.tnsm-etiquette-rupture {
	background: var(--encre);
	color: var(--blanc);
}

.tnsm-carte-nom {
	font-family: var(--display);
	font-size: 18px;
	color: var(--encre);
	line-height: 1.35;
}

.tnsm-carte-prix {
	font-size: 14.5px;
	color: var(--texte);
	letter-spacing: 0.04em;
}

/* ---------- Fiche produit ---------- */

.tnsm-fil {
	margin-bottom: 26px;
	font-size: 13px;
	letter-spacing: 0.04em;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	color: #9b968e;
}

.tnsm-fil a {
	color: var(--texte);
	text-decoration: none;
}

.tnsm-fil a:hover {
	color: var(--encre);
}

.tnsm-produit-colonnes {
	display: grid;
	grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
	gap: 56px;
	align-items: start;
}

@media (max-width: 820px) {
	.tnsm-produit-colonnes {
		grid-template-columns: 1fr;
		gap: 28px;
	}
}

.tnsm-produit-images {
	position: sticky;
	top: 90px;
}

@media (max-width: 820px) {
	.tnsm-produit-images {
		position: static;
	}
}

/* Cadre carré fixe : le recadrage en couverture coupe le vide des photos
   verticales (produit centré) — même taille pour toutes, sans effet de zoom. */
.tnsm-galerie-principale {
	position: relative;
	margin: 0;
	border-radius: 14px;
	overflow: hidden;
	background: var(--creme);
	aspect-ratio: 1 / 1;
}

.tnsm-galerie-principale img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	cursor: zoom-in;
}

.tnsm-zoom {
	position: absolute;
	z-index: 2;
	right: 14px;
	bottom: 14px;
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: var(--encre);
	font-size: 18px;
	cursor: pointer;
	transition: transform 0.2s ease;
}

.tnsm-zoom:hover {
	transform: scale(1.08);
}

.tnsm-vignettes {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 12px;
}

.tnsm-vignette {
	padding: 0;
	border: 2px solid transparent;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	background: var(--creme);
	line-height: 0;
	transition: border-color 0.2s ease, opacity 0.2s ease;
	opacity: 0.75;
}

.tnsm-vignette img {
	width: 70px;
	height: 70px;
	object-fit: cover;
	display: block;
}

.tnsm-vignette:hover {
	opacity: 1;
}

.tnsm-vignette.actif {
	border-color: var(--encre);
	opacity: 1;
}

.tnsm-surtitre {
	margin: 0 0 6px;
}

.tnsm-surtitre a {
	font-family: var(--display);
	font-size: 13px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #9b968e;
	text-decoration: none;
	margin-right: 12px;
}

.tnsm-surtitre a:hover {
	color: var(--encre);
}

.tnsm-titre-produit {
	font-family: var(--titre) !important;
	font-weight: 400 !important;
	font-size: clamp(26px, 3.4vw, 36px) !important;
	letter-spacing: 0.05em;
	color: var(--encre) !important;
	margin: 0 0 12px !important;
	padding: 0 !important;
	line-height: 1.25 !important;
}

.tnsm-prix {
	font-family: var(--display);
	font-size: 27px;
	color: var(--encre);
	margin: 0 0 18px;
}

.tnsm-description-courte {
	border-left: 2px solid var(--sauge);
	padding-left: 18px;
	margin-bottom: 26px;
}

.tnsm-rupture {
	color: var(--alerte);
	font-weight: 600;
}

/* Champs */

.tnsm-champ {
	margin: 0 0 16px;
}

.tnsm-champ label {
	display: block;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--encre);
	margin-bottom: 6px;
}

.tnsm-champ input,
.tnsm-champ select,
.tnsm-champ textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--ligne);
	border-radius: 2px;
	font-size: 15px;
	background: var(--blanc);
	color: var(--encre);
	transition: border-color 0.2s ease;
}

.tnsm-champ input:focus,
.tnsm-champ select:focus,
.tnsm-champ textarea:focus {
	outline: none;
	border-color: var(--encre);
}

.tnsm-champ-court input {
	max-width: 160px;
}

/* Composeur de pack */

.tnsm-composeur .tnsm-slot {
	border: 1px solid var(--ligne);
	border-radius: 10px;
	padding: 18px 20px 8px;
	margin: 0 0 18px;
	background: var(--creme);
}

.tnsm-composeur legend {
	font-family: var(--display);
	font-size: 17px;
	color: var(--encre);
	padding: 0 10px;
}

.tnsm-composeur legend small {
	display: block;
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #9b968e;
}

.tnsm-slot-choix {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 10px;
	margin-bottom: 12px;
}

.tnsm-slot-choix select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--ligne);
	border-radius: 2px;
	background: var(--blanc);
}

/* Achat : stepper + CTA */

.tnsm-achat {
	display: flex;
	gap: 14px;
	margin: 24px 0 4px;
}

.tnsm-stepper {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid var(--ligne);
	border-radius: 2px;
	background: var(--blanc);
}

.tnsm-stepper input {
	width: 52px;
	border: none;
	text-align: center;
	font-size: 15px;
	color: var(--encre);
	-moz-appearance: textfield;
	appearance: textfield;
	background: transparent;
}

.tnsm-stepper input::-webkit-outer-spin-button,
.tnsm-stepper input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.tnsm-step {
	width: 42px;
	border: none;
	background: transparent;
	font-size: 18px;
	color: var(--encre);
	cursor: pointer;
	transition: background 0.15s ease;
}

.tnsm-step:hover {
	background: var(--creme);
}

.tnsm-achat .tnsm-bouton {
	flex: 1;
}


/* Réassurance */

.tnsm-reassurance {
	list-style: none;
	margin: 30px 0 0;
	padding: 20px 0 0;
	border-top: 1px solid var(--ligne);
}

.tnsm-reassurance li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 7px 0;
	font-size: 14px;
}

.tnsm-reassurance svg {
	width: 22px;
	height: 22px;
	flex-shrink: 0;
	color: var(--sauge);
	stroke: currentColor;
}

.tnsm-sku {
	margin-top: 16px;
	font-size: 12px;
	letter-spacing: 0.08em;
	color: #b0aba2;
}

/* Description longue + associés */

.tnsm-titre-section {
	font-family: var(--titre) !important;
	font-weight: 400 !important;
	font-size: 24px !important;
	letter-spacing: 0.06em;
	color: var(--encre) !important;
	text-align: center;
	margin: 0 0 26px !important;
	padding: 0 !important;
}

.tnsm-description {
	margin-top: 72px;
	padding-top: 44px;
	border-top: 1px solid var(--ligne);
}

.tnsm-description-texte {
	max-width: 760px;
	margin: 0 auto;
}

.tnsm-associes {
	margin-top: 72px;
	padding-top: 44px;
	border-top: 1px solid var(--ligne);
}

/* ---------- Lightbox ---------- */

.tnsm-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	background: rgba(20, 20, 18, 0.92);
	display: flex;
	align-items: center;
	justify-content: center;
}

/* L'attribut hidden doit gagner sur le display:flex ci-dessus. */
.tnsm-lightbox[hidden] {
	display: none;
}

.tnsm-lightbox img {
	max-width: min(90vw, 1100px);
	max-height: 88vh;
	border-radius: 6px;
}

.tnsm-lightbox-fermer,
.tnsm-lightbox-nav {
	position: absolute;
	border: none;
	background: transparent;
	color: #fff;
	cursor: pointer;
	line-height: 1;
	opacity: 0.8;
	transition: opacity 0.2s ease;
}

.tnsm-lightbox-fermer:hover,
.tnsm-lightbox-nav:hover {
	opacity: 1;
}

.tnsm-lightbox-fermer {
	top: 22px;
	right: 30px;
	font-size: 42px;
}

.tnsm-lightbox-nav {
	top: 50%;
	transform: translateY(-50%);
	font-size: 58px;
	padding: 20px;
}

.tnsm-lightbox-prec {
	left: 14px;
}

.tnsm-lightbox-suiv {
	right: 14px;
}

/* ---------- Panier ---------- */

.tnsm-panier-colonnes {
	display: grid;
	grid-template-columns: minmax(0, 13fr) minmax(0, 7fr);
	gap: 44px;
	align-items: start;
}

@media (max-width: 860px) {
	.tnsm-panier-colonnes {
		grid-template-columns: 1fr;
	}
}

.tnsm-article {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr) auto;
	gap: 18px;
	align-items: center;
	padding: 18px 0;
	border-bottom: 1px solid var(--ligne);
}

.tnsm-article-image img {
	width: 96px;
	height: 96px;
	object-fit: cover;
	border-radius: 10px;
	background: var(--creme);
	display: block;
}

.tnsm-article-nom {
	display: block;
	font-family: var(--display);
	font-size: 18px;
	color: var(--encre);
	text-decoration: none;
	margin-bottom: 2px;
}

.tnsm-article-detail {
	display: block;
	font-size: 13px;
	color: #9b968e;
}

.tnsm-article-pu {
	display: block;
	font-size: 13px;
	margin-top: 4px;
}

.tnsm-article-actions {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
}

.tnsm-article-total {
	font-family: var(--display);
	font-size: 18px;
	color: var(--encre);
}

.tnsm-supprimer {
	background: none;
	border: none;
	color: #b0aba2;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	text-decoration: underline;
}

.tnsm-supprimer:hover {
	color: var(--alerte);
}

@media (max-width: 560px) {
	.tnsm-article {
		grid-template-columns: 72px minmax(0, 1fr);
	}

	.tnsm-article-actions {
		grid-column: 1 / -1;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
	}
}

/* Résumé (panier + checkout) */

.tnsm-resume {
	background: var(--creme);
	border-radius: 14px;
	padding: 26px 28px;
	position: sticky;
	top: 90px;
}

.tnsm-resume h2 {
	font-family: var(--titre) !important;
	font-weight: 400 !important;
	font-size: 19px !important;
	letter-spacing: 0.08em;
	color: var(--encre) !important;
	margin: 0 0 18px !important;
}

.tnsm-resume-ligne {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin: 8px 0;
	font-size: 14.5px;
}

.tnsm-ligne-remise {
	color: var(--ok);
}

.tnsm-retirer-coupon {
	background: none;
	border: none;
	color: #9b968e;
	font-size: 11px;
	cursor: pointer;
	text-decoration: underline;
}

.tnsm-ligne-total {
	font-family: var(--display);
	font-size: 21px;
	color: var(--encre);
	border-top: 1px solid var(--ligne);
	padding-top: 14px;
	margin-top: 14px;
}

.tnsm-note-livraison {
	font-size: 13px;
	color: #9b968e;
	margin: 6px 0 16px;
}

.tnsm-coupon {
	display: flex;
	gap: 8px;
	margin-bottom: 16px;
}

.tnsm-coupon input {
	flex: 1;
	padding: 11px 14px;
	border: 1px solid var(--ligne);
	border-radius: 2px;
	background: var(--blanc);
}

.tnsm-coupon .tnsm-bouton {
	padding: 11px 18px;
}

.tnsm-resume-articles {
	list-style: none;
	margin: 0 0 14px;
	padding: 0 0 8px;
	border-bottom: 1px solid var(--ligne);
}

.tnsm-resume-articles li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 0;
	font-size: 14px;
}

.tnsm-resume-vignette img {
	width: 46px;
	height: 46px;
	object-fit: cover;
	border-radius: 8px;
	display: block;
}

.tnsm-resume-nom {
	flex: 1;
	color: var(--encre);
}

.tnsm-resume-nom small {
	display: block;
	color: #9b968e;
	font-size: 12px;
}

/* ---------- Checkout ---------- */

.tnsm-commander-colonnes {
	display: grid;
	grid-template-columns: minmax(0, 12fr) minmax(0, 8fr);
	gap: 48px;
	align-items: start;
}

@media (max-width: 860px) {
	.tnsm-commander-colonnes {
		grid-template-columns: 1fr;
	}
}

.tnsm-etape {
	background: var(--blanc);
	border: 1px solid var(--ligne);
	border-radius: 14px;
	padding: 26px 28px;
	margin-bottom: 22px;
}

.tnsm-etape h2 {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--titre) !important;
	font-weight: 400 !important;
	font-size: 19px !important;
	letter-spacing: 0.06em;
	color: var(--encre) !important;
	margin: 0 0 20px !important;
	padding: 0 !important;
}

.tnsm-etape-numero {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--sauge);
	color: var(--encre);
	font-family: var(--display);
	font-size: 15px;
	flex-shrink: 0;
}

.tnsm-champs-grille {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 18px;
}

.tnsm-champs-grille .tnsm-champ:first-child {
	grid-column: 1 / -1;
}

@media (max-width: 560px) {
	.tnsm-champs-grille {
		grid-template-columns: 1fr;
	}
}

.tnsm-champ-radio label {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 18px;
	border: 1px solid var(--ligne);
	border-radius: 10px;
	margin-bottom: 10px;
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.tnsm-champ-radio label:has(input:checked) {
	border-color: var(--encre);
	background: var(--creme);
}

.tnsm-champ-radio input {
	margin-top: 4px;
	accent-color: var(--encre);
}

.tnsm-radio-texte strong {
	display: block;
	color: var(--encre);
	font-size: 15px;
}

.tnsm-radio-texte small {
	color: #9b968e;
	font-size: 13px;
}

.tnsm-champ-case {
	margin: 6px 0 14px;
	font-size: 14px;
}

.tnsm-carte-stripe {
	max-width: 540px;
	margin: 40px auto 0;
	background: var(--blanc);
	border: 1px solid var(--ligne);
	border-radius: 14px;
	padding: 30px 32px;
}

#tnsm-stripe-element {
	margin: 6px 0 20px;
}

/* ---------- Confirmation ---------- */

.tnsm-numero {
	font-family: var(--display);
	font-size: 17px;
	margin: 10px 0 0;
}

.tnsm-encart {
	background: var(--creme);
	border-left: 3px solid var(--sauge);
	border-radius: 8px;
	padding: 20px 26px;
	margin: 26px auto;
	max-width: 680px;
}

.tnsm-encart-ok {
	border-left-color: var(--ok);
}

.tnsm-confirmation h2 {
	font-family: var(--titre) !important;
	font-weight: 400 !important;
	font-size: 21px !important;
	color: var(--encre) !important;
	letter-spacing: 0.05em;
}

.tnsm-table-recap {
	width: 100%;
	border-collapse: collapse;
	max-width: 680px;
	margin: 0 auto;
}

.tnsm-table-recap td {
	padding: 12px 8px;
	border-bottom: 1px solid var(--ligne);
	vertical-align: top;
}

.tnsm-table-recap .tnsm-ligne-total td {
	border-bottom: none;
	font-family: var(--display);
	font-size: 18px;
	color: var(--encre);
}

.tnsm-droite {
	text-align: right;
	white-space: nowrap;
}

.tnsm-confirmation {
	text-align: center;
}

.tnsm-confirmation .tnsm-table-recap,
.tnsm-confirmation .tnsm-encart {
	text-align: left;
}

/* ---------- Barre d'outils boutique (catégories + tri) ---------- */

.tnsm-outils {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 24px;
	flex-wrap: wrap;
	margin-bottom: 8px;
}

.tnsm-outils .tnsm-filtres {
	justify-content: flex-start;
	margin-bottom: 18px;
	flex: 1;
	min-width: 260px;
}

.tnsm-filtre-nb {
	margin-left: 7px;
	font-size: 11px;
	color: #9b968e;
}

.tnsm-filtres a.actif .tnsm-filtre-nb {
	color: rgba(255, 255, 255, 0.75);
}

.tnsm-tri {
	display: flex;
	align-items: center;
	gap: 10px;
	white-space: nowrap;
}

.tnsm-tri label {
	font-family: var(--display);
	font-size: 13px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #9b968e;
}

.tnsm-tri select {
	appearance: none;
	-webkit-appearance: none;
	border: 1px solid var(--ligne);
	background: var(--blanc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231f1f1f' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 16px center;
	padding: 9px 38px 9px 18px;
	border-radius: 999px;
	font-size: 14px;
	color: var(--encre);
	cursor: pointer;
	transition: border-color 0.2s ease;
}

.tnsm-tri select:hover,
.tnsm-tri select:focus {
	border-color: var(--encre);
	outline: none;
}

/* ---------- Zone produits + loader ---------- */

.tnsm-zone-produits {
	position: relative;
	min-height: 220px;
}

.tnsm-compte {
	font-size: 13px;
	letter-spacing: 0.06em;
	color: #9b968e;
	margin: 0 0 20px;
}

.tnsm-chargeur {
	display: none;
	position: absolute;
	inset: 0;
	z-index: 5;
	justify-content: center;
	align-items: flex-start;
	padding-top: 90px;
	background: rgba(250, 249, 246, 0.65);
	backdrop-filter: blur(1px);
	border-radius: 10px;
}

.tnsm-chargeur span {
	width: 36px;
	height: 36px;
	border: 3px solid var(--sauge);
	border-top-color: var(--encre);
	border-radius: 50%;
	animation: tnsm-rotation 0.7s linear infinite;
}

.tnsm-zone-produits.chargement .tnsm-chargeur {
	display: flex;
}

.tnsm-zone-produits.chargement .tnsm-grille,
.tnsm-zone-produits.chargement .tnsm-compte {
	opacity: 0.45;
	pointer-events: none;
}

@keyframes tnsm-rotation {
	to {
		transform: rotate(360deg);
	}
}

/* ==========================================================================
   Lisibilité & cohérence typographique
   Divi applique Poiret One (très fine) en police de corps : on reprend la
   main — Aboreto pour les titres, Poiret One en accent, Open Sans pour le
   texte courant et l'interface, avec des contrastes relevés.
   ========================================================================== */

.tnsm-shop-conteneur {
	--texte: #3a3936;
	--gris: #7b766d;
	--corps: 'Open Sans', -apple-system, 'Segoe UI', sans-serif;

	font-family: var(--corps);
}

.tnsm-shop-conteneur input,
.tnsm-shop-conteneur select,
.tnsm-shop-conteneur textarea,
.tnsm-shop-conteneur button {
	font-family: var(--corps);
}

/* Hero : accroche lisible */
.tnsm-hero-surtitre {
	color: var(--gris);
	font-size: 12px;
	font-weight: 400;
}

.tnsm-hero-texte {
	font-family: var(--corps);
	font-size: 15.5px;
	color: var(--texte);
}

/* Pilules de catégories : nettes et contrastées */
.tnsm-filtres a {
	font-family: var(--corps);
	font-size: 13.5px;
	font-weight: 600;
	color: var(--texte);
	padding: 9px 18px;
}

.tnsm-filtres a:hover {
	color: var(--encre);
}

.tnsm-filtre-nb {
	font-size: 11px;
	font-weight: 600;
	color: var(--gris);
}

.tnsm-filtres a.actif .tnsm-filtre-nb {
	color: rgba(255, 255, 255, 0.8);
}

/* Tri */
.tnsm-tri label {
	font-family: var(--corps);
	font-size: 11.5px;
	font-weight: 700;
	color: var(--gris);
}

.tnsm-tri select {
	font-weight: 600;
	font-size: 13.5px;
}

.tnsm-compte {
	font-weight: 600;
	color: var(--gris);
}

/* Cartes produits : nom net, prix discret mais lisible */
.tnsm-carte-nom {
	font-family: var(--corps);
	font-size: 15.5px;
	font-weight: 600;
	letter-spacing: 0.01em;
}

.tnsm-carte-prix {
	font-size: 14px;
	font-weight: 400;
	color: var(--gris);
}

.tnsm-carte-voir {
	font-weight: 700;
	font-size: 11.5px;
}

.tnsm-etiquette {
	font-weight: 600;
}

/* Boutons : typo ferme (n'hérite plus de Poiret One) */
.tnsm-bouton {
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.16em;
}

/* Fiche produit */
.tnsm-surtitre a {
	font-family: var(--corps);
	font-size: 11.5px;
	font-weight: 700;
	color: var(--gris);
}

.tnsm-fil,
.tnsm-fil a {
	color: var(--gris);
	font-weight: 600;
	font-size: 12.5px;
}

.tnsm-fil .tnsm-fil-courant {
	font-weight: 400;
}

.tnsm-composeur legend small,
.tnsm-sku,
.tnsm-article-detail,
.tnsm-note-livraison,
.tnsm-resume-nom small,
.tnsm-radio-texte small {
	color: var(--gris);
}

.tnsm-reassurance li {
	color: var(--texte);
	font-weight: 400;
}

/* Panier / résumé */
.tnsm-article-nom {
	font-family: var(--corps);
	font-size: 16px;
	font-weight: 600;
}

.tnsm-article-total {
	font-family: var(--corps);
	font-weight: 700;
	font-size: 16.5px;
}

.tnsm-resume-ligne {
	color: var(--texte);
}

.tnsm-ligne-total {
	font-family: var(--corps);
	font-weight: 700;
	font-size: 19px;
}

/* ==========================================================================
   Checkout multistep + champs arrondis
   ========================================================================== */

/* Champs plus hauts et arrondis (tout le front) */
.tnsm-champ input,
.tnsm-champ select,
.tnsm-champ textarea {
	padding: 14px 18px;
	border-radius: 12px;
}

.tnsm-coupon input {
	padding: 13px 18px;
	border-radius: 12px;
}

.tnsm-slot-choix select {
	padding: 12px 16px;
	border-radius: 12px;
}

.tnsm-stepper {
	border-radius: 12px;
	overflow: hidden;
}

.tnsm-champ-radio label {
	border-radius: 12px;
	padding: 16px 20px;
}

/* Indicateur d'étapes */
.tnsm-etapes-nav {
	display: flex;
	list-style: none;
	margin: 0 0 26px;
	padding: 0;
	gap: 6px;
}

.tnsm-etapes-nav li {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 11px 8px;
	border-bottom: 3px solid var(--ligne);
	font-size: 13px;
	font-weight: 600;
	color: var(--gris);
	letter-spacing: 0.04em;
	transition: all 0.25s ease;
}

.tnsm-etapes-nav li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--ligne);
	color: var(--texte);
	font-size: 13px;
	flex-shrink: 0;
}

.tnsm-etapes-nav li.actif {
	color: var(--encre);
	border-bottom-color: var(--encre);
}

.tnsm-etapes-nav li.actif span {
	background: var(--encre);
	color: var(--blanc);
}

.tnsm-etapes-nav li.fait {
	color: var(--ok);
	border-bottom-color: var(--sauge);
	cursor: pointer;
}

.tnsm-etapes-nav li.fait span {
	background: var(--sauge);
	color: var(--encre);
}

.tnsm-etapes-nav li.fait span::before {
	content: '✓';
}

.tnsm-etapes-nav li.fait span {
	font-size: 0;
}

.tnsm-etapes-nav li.fait span::before {
	font-size: 13px;
}

@media (max-width: 560px) {
	.tnsm-etapes-nav li {
		font-size: 0;
		gap: 0;
	}

	.tnsm-etapes-nav li span {
		font-size: 13px;
	}
}

/* Une étape à la fois (activé par le JS) */
#tnsm-form-commander.tnsm-multistep .tnsm-etape {
	display: none;
}

#tnsm-form-commander.tnsm-multistep .tnsm-etape.courante {
	display: block;
	animation: tnsm-apparition 0.25s ease;
}

@keyframes tnsm-apparition {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.tnsm-etape-boutons {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin: 22px 0 0;
}

.tnsm-bouton-retour {
	background: none;
	border: none;
	color: var(--gris);
	font-family: var(--corps);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	cursor: pointer;
	padding: 10px 0;
}

.tnsm-bouton-retour:hover {
	color: var(--encre);
}

/* Carte Stripe : à la place du formulaire, dans la colonne de gauche */
.tnsm-carte-stripe {
	max-width: none;
	margin: 0;
}

.tnsm-carte-stripe .tnsm-titre-section {
	text-align: left;
	margin-bottom: 8px !important;
}

.tnsm-stripe-intro {
	color: var(--gris);
	font-size: 14px;
	margin: 0 0 18px;
}

/* ==========================================================================
   Mini-panier flottant (hors conteneur : couleurs en dur)
   ========================================================================== */

#tnsm-mp-bouton {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 99990;
	width: 60px;
	height: 60px;
	border: none;
	border-radius: 50%;
	background: #1f1f1f;
	color: #fff;
	cursor: pointer;
	box-shadow: 0 6px 22px rgba(20, 20, 18, 0.3);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s ease;
}

#tnsm-mp-bouton:hover {
	transform: scale(1.07);
}

#tnsm-mp-bouton svg {
	width: 26px;
	height: 26px;
}

#tnsm-mp-badge {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 22px;
	height: 22px;
	padding: 0 5px;
	border-radius: 999px;
	background: #bcc8c9;
	color: #1f1f1f;
	font-size: 12px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Open Sans', sans-serif;
}

#tnsm-mp-badge.vide {
	display: none;
}

#tnsm-mp-overlay {
	position: fixed;
	inset: 0;
	z-index: 99991;
	background: rgba(20, 20, 18, 0.45);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease;
}

#tnsm-mp-overlay.ouvert {
	opacity: 1;
	pointer-events: auto;
}

#tnsm-mini-panier {
	position: fixed;
	top: 0;
	right: 0;
	z-index: 99992;
	height: 100dvh;
	width: 400px;
	max-width: 94vw;
	background: #fff;
	box-shadow: -8px 0 30px rgba(20, 20, 18, 0.18);
	transform: translateX(105%);
	transition: transform 0.3s ease;
	display: flex;
	flex-direction: column;
	font-family: 'Open Sans', -apple-system, sans-serif;
	color: #3a3936;
}

#tnsm-mini-panier.ouvert {
	transform: none;
}

.tnsm-mp-entete {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 18px 24px;
	border-bottom: 1px solid #e8e4dd;
}

.tnsm-mp-entete h2 {
	font-family: 'Aboreto', serif !important;
	font-weight: 400 !important;
	font-size: 19px !important;
	letter-spacing: 0.06em;
	color: #1f1f1f !important;
	margin: 0 !important;
	padding: 0 !important;
}

#tnsm-mp-fermer {
	border: none;
	background: none;
	font-size: 30px;
	line-height: 1;
	color: #7b766d;
	cursor: pointer;
}

#tnsm-mp-fermer:hover {
	color: #1f1f1f;
}

#tnsm-mp-contenu {
	flex: 1;
	overflow-y: auto;
	padding: 18px 24px 24px;
	display: flex;
	flex-direction: column;
}

.tnsm-mp-vide {
	margin: auto;
	text-align: center;
}

.tnsm-mp-vide .tnsm-bouton {
	margin-top: 12px;
}

.tnsm-mp-liste {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tnsm-mp-liste li {
	display: flex;
	gap: 14px;
	padding: 13px 0;
	border-bottom: 1px solid #efece6;
	align-items: flex-start;
}

.tnsm-mp-image img {
	width: 58px;
	height: 58px;
	object-fit: cover;
	border-radius: 8px;
	background: #faf9f6;
	display: block;
}

.tnsm-mp-infos {
	flex: 1;
	min-width: 0;
}

.tnsm-mp-infos > a {
	color: #1f1f1f;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	display: block;
}

.tnsm-mp-infos small {
	display: block;
	color: #7b766d;
	font-size: 12px;
}

.tnsm-mp-qte {
	display: block;
	font-size: 12.5px;
	color: #7b766d;
	margin-top: 3px;
}

.tnsm-mp-droite {
	text-align: right;
	white-space: nowrap;
}

.tnsm-mp-droite span {
	display: block;
	font-weight: 700;
	font-size: 14px;
	color: #1f1f1f;
}

.tnsm-mp-retirer {
	border: none;
	background: none;
	color: #b0aba2;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	cursor: pointer;
	text-decoration: underline;
	margin-top: 4px;
	padding: 0;
}

.tnsm-mp-retirer:hover {
	color: #a4433b;
}

.tnsm-mp-pied {
	margin-top: auto;
	padding-top: 18px;
}

.tnsm-mp-remise,
.tnsm-mp-total {
	display: flex;
	justify-content: space-between;
	margin: 5px 0;
	font-size: 14px;
}

.tnsm-mp-remise {
	color: #4b6b4e;
}

.tnsm-mp-total {
	font-size: 18px;
	font-weight: 700;
	color: #1f1f1f;
	border-top: 1px solid #e8e4dd;
	padding-top: 12px;
	margin-bottom: 14px;
}

/* Boutons du tiroir (hors conteneur : les variables CSS n'existent pas ici) */
#tnsm-mini-panier .tnsm-bouton {
	background: #1f1f1f;
	border-color: #1f1f1f;
	color: #fff !important;
}

#tnsm-mini-panier .tnsm-bouton:hover {
	background: #3a3936;
}

.tnsm-mp-lien-panier {
	display: block;
	text-align: center;
	margin-top: 12px;
	font-size: 13px;
	color: #7b766d;
}

@media (max-width: 600px) {
	#tnsm-mp-bouton {
		right: 14px;
		bottom: 14px;
		width: 54px;
		height: 54px;
	}
}

/* Mini-panier : ajustements — au-dessus du sélecteur de langue et du header */

#tnsm-mp-bouton {
	bottom: 52px; /* +30px : le sélecteur de langue GTranslate occupe le coin */
	z-index: 9999900;
}

#tnsm-mp-bouton.vide {
	display: none; /* Pas d'articles → pas de bouton */
}

#tnsm-mp-overlay {
	z-index: 9999950; /* Par-dessus le header fixe Divi et la barre d'admin */
}

#tnsm-mini-panier {
	z-index: 9999990;
}

@media (max-width: 600px) {
	#tnsm-mp-bouton {
		bottom: 46px;
	}
}

/* Champs de saisie : un cran plus hauts (confort visuel) */

.tnsm-champ input,
.tnsm-champ select {
	padding: 17px 20px;
	font-size: 15.5px;
}

.tnsm-champ textarea {
	padding: 15px 20px;
	font-size: 15.5px;
}

.tnsm-coupon input {
	padding: 15px 20px;
}

/* ==========================================================================
   Filtres mobiles : bouton Catégories + bottom sheet
   ========================================================================== */

/* Desktop : bouton et éléments de sheet invisibles, pilules inchangées */
.tnsm-filtres-bouton,
.tnsm-filtres-entete,
#tnsm-filtres-overlay {
	display: none;
}

@media (max-width: 700px) {

	/* Bouton compact affichant la catégorie active */
	.tnsm-filtres-bouton {
		display: inline-flex;
		align-items: center;
		gap: 9px;
		padding: 12px 20px;
		border: 1px solid var(--ligne);
		border-radius: 999px;
		background: var(--blanc);
		font-family: var(--corps);
		font-size: 14px;
		font-weight: 600;
		color: var(--encre);
		cursor: pointer;
	}

	.tnsm-filtres-bouton svg {
		width: 18px;
		height: 18px;
	}

	/* La barre de pilules devient un bottom sheet */
	.tnsm-outils .tnsm-filtres {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 9999970;
		margin: 0;
		padding: 0 0 14px;
		background: #fff;
		border-radius: 18px 18px 0 0;
		box-shadow: 0 -10px 34px rgba(20, 20, 18, 0.22);
		max-height: 72dvh;
		overflow-y: auto;
		display: block;
		transform: translateY(105%);
		transition: transform 0.3s ease;
	}

	.tnsm-outils .tnsm-filtres.ouvert {
		transform: none;
	}

	.tnsm-filtres-entete {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 16px 22px 12px;
		border-bottom: 1px solid var(--ligne);
		position: sticky;
		top: 0;
		background: #fff;
		font-family: var(--titre);
		font-size: 16px;
		letter-spacing: 0.06em;
		color: var(--encre);
	}

	.tnsm-filtres-fermer {
		border: none;
		background: none;
		font-size: 28px;
		line-height: 1;
		color: #7b766d;
		cursor: pointer;
		padding: 0 4px;
	}

	/* Les pilules deviennent de grandes lignes tactiles */
	.tnsm-outils .tnsm-filtres a {
		display: flex;
		justify-content: space-between;
		align-items: center;
		width: 100%;
		border: none;
		border-bottom: 1px solid #f0ede7;
		border-radius: 0;
		background: none;
		padding: 15px 22px;
		font-size: 15px;
	}

	.tnsm-outils .tnsm-filtres a.actif {
		background: var(--creme);
		color: var(--encre);
	}

	.tnsm-outils .tnsm-filtres a.actif::after {
		content: '✓';
		color: var(--ok);
		font-weight: 700;
	}

	.tnsm-outils .tnsm-filtres a.actif .tnsm-filtre-nb {
		color: var(--gris);
	}

	#tnsm-filtres-overlay {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 9999960;
		background: rgba(20, 20, 18, 0.45);
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.25s ease;
	}

	#tnsm-filtres-overlay.ouvert {
		opacity: 1;
		pointer-events: auto;
	}

	/* Barre d'outils mobile : bouton + tri côte à côte */
	.tnsm-outils {
		align-items: center;
		gap: 12px;
	}

	.tnsm-tri label {
		display: none;
	}
}

/* ==========================================================================
   Composeur de pack : expérience modale
   ========================================================================== */

.tnsm-pack-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999940;
	background: rgba(20, 20, 18, 0.55);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease;
}

.tnsm-pack-overlay.ouvert {
	opacity: 1;
	pointer-events: auto;
}

.tnsm-pack {
	position: fixed;
	top: 50%;
	left: 50%;
	z-index: 9999945;
	width: 880px;
	max-width: 94vw;
	max-height: 88dvh;
	background: #fff;
	border-radius: 16px;
	transform: translate(-50%, -50%) scale(0.96);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease, transform 0.25s ease;
	display: flex;
	flex-direction: column;
	font-family: 'Open Sans', -apple-system, sans-serif;
	color: #3a3936;
	overflow: hidden;
}

.tnsm-pack.ouvert {
	opacity: 1;
	pointer-events: auto;
	transform: translate(-50%, -50%);
}

.tnsm-pack-entete {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 20px 28px 16px;
	border-bottom: 1px solid #e8e4dd;
}

.tnsm-pack-surtitre {
	font-family: 'Poiret One', sans-serif;
	font-size: 12px;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: #7b766d;
	margin: 0 0 2px;
}

.tnsm-pack-entete h2 {
	font-family: 'Aboreto', serif !important;
	font-weight: 400 !important;
	font-size: 21px !important;
	letter-spacing: 0.05em;
	color: #1f1f1f !important;
	margin: 0 !important;
	padding: 0 !important;
}

#tnsm-pack-fermer {
	border: none;
	background: none;
	font-size: 32px;
	line-height: 1;
	color: #7b766d;
	cursor: pointer;
	flex-shrink: 0;
}

#tnsm-pack-fermer:hover {
	color: #1f1f1f;
}

.tnsm-pack-corps {
	flex: 1;
	overflow-y: auto;
	padding: 20px 28px;
}

/* Jauge de progression : les places se remplissent */
.tnsm-pack-progression {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 20px;
	position: sticky;
	top: -20px;
	background: #fff;
	padding: 10px 0;
	z-index: 2;
}

.tnsm-pack-places {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.tnsm-pack-place {
	width: 46px;
	height: 46px;
	border-radius: 10px;
	border: 2px dashed #d5d0c7;
	background: #faf9f6;
	overflow: hidden;
	transition: border-color 0.2s ease;
}

.tnsm-pack-place.rempli {
	border: 2px solid #5c6b53;
}

.tnsm-pack-place img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tnsm-pack-compteur {
	font-family: 'Poiret One', sans-serif;
	font-size: 20px;
	color: #1f1f1f;
	white-space: nowrap;
	margin-left: auto;
}

/* Grille des produits du pool */
.tnsm-pack-grille {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 14px;
}

.tnsm-pack-produit {
	border: 2px solid #eeeae3;
	border-radius: 12px;
	padding: 10px;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.2s ease, transform 0.15s ease;
	display: flex;
	flex-direction: column;
	gap: 8px;
	background: #fff;
	user-select: none;
}

.tnsm-pack-produit:hover {
	border-color: #bcc8c9;
	transform: translateY(-2px);
}

.tnsm-pack-produit.choisi {
	border-color: #5c6b53;
	background: #f7faf5;
}

.tnsm-pack-produit.indisponible {
	opacity: 0.45;
	cursor: not-allowed;
}

.tnsm-pack-visuel {
	position: relative;
	display: block;
	aspect-ratio: 1;
	border-radius: 8px;
	overflow: hidden;
	background: #faf9f6;
}

.tnsm-pack-visuel img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tnsm-pack-nb {
	position: absolute;
	top: 6px;
	right: 6px;
	background: #5c6b53;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	border-radius: 999px;
	padding: 2px 8px;
}

.tnsm-pack-nom {
	font-size: 13px;
	font-weight: 600;
	color: #1f1f1f;
	line-height: 1.35;
	flex: 1;
}

.tnsm-pack-actions {
	display: flex;
	gap: 6px;
	justify-content: center;
}

.tnsm-pack-plus {
	flex: 1;
	border: 1px solid #1f1f1f;
	background: #1f1f1f;
	color: #fff;
	border-radius: 999px;
	padding: 7px 10px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.15s ease;
}

.tnsm-pack-plus:hover {
	background: #3a3936;
}

.tnsm-pack-plus:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.tnsm-pack-moins {
	width: 34px;
	border: 1px solid #d5d0c7;
	background: #fff;
	color: #1f1f1f;
	border-radius: 999px;
	font-size: 16px;
	cursor: pointer;
}

.tnsm-pack-moins:hover {
	border-color: #a4433b;
	color: #a4433b;
}

.tnsm-pack-rupture {
	font-size: 12px;
	color: #a4433b;
	font-weight: 600;
}

/* Pied : état + validation */
.tnsm-pack-pied {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 28px;
	border-top: 1px solid #e8e4dd;
	background: #faf9f6;
	flex-wrap: wrap;
}

.tnsm-pack-etat {
	font-size: 14px;
	color: #7b766d;
}

.tnsm-pack-etat.complet {
	color: #4b6b4e;
	font-weight: 600;
}

.tnsm-pack-etat.erreur {
	color: #a4433b;
	font-weight: 600;
}

.tnsm-pack .tnsm-bouton {
	background: #1f1f1f;
	border-color: #1f1f1f;
	color: #fff !important;
}

.tnsm-pack .tnsm-bouton:disabled {
	opacity: 0.4;
}

/* Mobile / tablette : plein écran */
@media (max-width: 760px) {
	.tnsm-pack {
		top: 0;
		left: 0;
		width: 100%;
		max-width: none;
		height: 100dvh;
		max-height: none;
		border-radius: 0;
		transform: translateY(4%);
	}

	.tnsm-pack.ouvert {
		transform: none;
	}

	.tnsm-pack-grille {
		grid-template-columns: repeat(2, 1fr);
	}

	.tnsm-pack-place {
		width: 38px;
		height: 38px;
	}

	.tnsm-pack-pied {
		padding-bottom: max(16px, env(safe-area-inset-bottom));
	}

	.tnsm-pack-pied .tnsm-bouton {
		width: 100%;
	}
}

/* Pack multistep : jauge fixe en tête, une étape par produit */

.tnsm-pack .tnsm-pack-progression {
	position: static;
	padding: 14px 28px 4px;
	margin-bottom: 0;
	background: #fff;
}

.tnsm-pack-emplacement {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}

.tnsm-pack-emplacement.courante .tnsm-pack-place {
	border: 2px solid #1f1f1f;
	box-shadow: 0 0 0 3px rgba(188, 200, 201, 0.5);
}

.tnsm-pack-retirer {
	width: 20px;
	height: 20px;
	border: 1px solid #d5d0c7;
	border-radius: 50%;
	background: #fff;
	color: #7b766d;
	font-size: 13px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	transition: all 0.15s ease;
}

.tnsm-pack-retirer:hover {
	border-color: #a4433b;
	color: #a4433b;
}

.tnsm-pack-etape {
	font-family: 'Poiret One', sans-serif;
	font-size: 18px;
	color: #1f1f1f;
	margin: 4px 0 0;
	padding: 0 28px 10px;
}

/* Une seule grille visible : celle de l'étape courante */
.tnsm-pack-slot {
	display: none;
}

.tnsm-pack-slot.actif {
	display: block;
}

/* Cartes plus compactes : moins de scroll */
.tnsm-pack .tnsm-pack-corps {
	padding-top: 6px;
}

.tnsm-pack .tnsm-pack-grille {
	grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
	gap: 10px;
}

.tnsm-pack .tnsm-pack-produit {
	padding: 8px;
	gap: 6px;
}

.tnsm-pack .tnsm-pack-nom {
	font-size: 12px;
	line-height: 1.3;
}

.tnsm-pack-choisir {
	display: block;
	border: 1px solid #1f1f1f;
	border-radius: 999px;
	padding: 5px 8px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #1f1f1f;
	transition: all 0.15s ease;
}

.tnsm-pack-produit:hover .tnsm-pack-choisir {
	background: #1f1f1f;
	color: #fff;
}

@media (max-width: 760px) {
	.tnsm-pack .tnsm-pack-grille {
		grid-template-columns: repeat(3, 1fr);
	}

	.tnsm-pack .tnsm-pack-progression {
		padding: 12px 18px 2px;
	}

	.tnsm-pack-etape {
		padding: 0 18px 8px;
		font-size: 16px;
	}

	.tnsm-pack-place {
		width: 40px;
		height: 40px;
	}
}

/* Champs : hauteur garantie (Divi écrase le padding avec ses styles globaux) */

.tnsm-shop-conteneur .tnsm-champ input,
.tnsm-shop-conteneur .tnsm-champ select {
	padding: 16px 20px !important;
	min-height: 56px !important;
	font-size: 15.5px !important;
	line-height: 1.4 !important;
	box-sizing: border-box !important;
	border-radius: 12px !important;
}

.tnsm-shop-conteneur .tnsm-champ textarea {
	padding: 15px 20px !important;
	min-height: 110px !important;
	font-size: 15.5px !important;
	box-sizing: border-box !important;
	border-radius: 12px !important;
}

.tnsm-shop-conteneur .tnsm-coupon input {
	padding: 14px 20px !important;
	min-height: 50px !important;
	box-sizing: border-box !important;
	border-radius: 12px !important;
}

.tnsm-shop-conteneur .tnsm-slot-choix select {
	min-height: 48px !important;
	box-sizing: border-box !important;
}

/* Champs : priorité définitive (Divi utilise l'ID #page-container, on s'aligne),
   hauteur conventionnelle (48px) et radius 8px */

#page-container .tnsm-shop-conteneur .tnsm-champ input,
#page-container .tnsm-shop-conteneur .tnsm-champ select,
.tnsm-shop-conteneur .tnsm-champ input,
.tnsm-shop-conteneur .tnsm-champ select {
	min-height: 48px !important;
	height: auto !important;
	padding: 12px 16px !important;
	border-radius: 8px !important;
}

#page-container .tnsm-shop-conteneur .tnsm-champ textarea,
.tnsm-shop-conteneur .tnsm-champ textarea {
	min-height: 110px !important;
	padding: 12px 16px !important;
	border-radius: 8px !important;
}

#page-container .tnsm-shop-conteneur .tnsm-coupon input,
.tnsm-shop-conteneur .tnsm-coupon input {
	min-height: 46px !important;
	border-radius: 8px !important;
}

#page-container .tnsm-shop-conteneur .tnsm-slot-choix select,
.tnsm-shop-conteneur .tnsm-slot-choix select {
	min-height: 46px !important;
	border-radius: 8px !important;
}

/* Vignettes de galerie : fiabilité tactile (mobile) */

.tnsm-vignette {
	position: relative;
	z-index: 3;
	touch-action: manipulation;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0.08);
	min-width: 70px;
	min-height: 70px;
}

.tnsm-vignette img {
	pointer-events: none; /* Le tap atteint toujours le bouton, jamais l'image */
}

/* ==========================================================================
   Bandeau hero foncé pleine largeur — même esprit que les bandeaux des
   pages Animations / À propos du site (dégradé sombre diagonal, titre
   blanc Aboreto). Le bandeau sort du conteneur pour couvrir tout l'écran.
   ========================================================================== */

.tnsm-shop-conteneur .tnsm-hero {
	width: auto;
	/* Sort du conteneur centré pour occuper toute la largeur de la fenêtre,
	   et remonte de 40px pour se coller au header (padding haut du conteneur). */
	margin: -40px calc(50% - 50vw) 40px;
	border-radius: 0;
	padding: clamp(46px, 7vw, 84px) 24px;
	/* Recette exacte du bandeau des pages Animations / À propos : texture de
	   vagues répétée (605px) + dégradé diagonal 97° noir 85 % → 35 %. */
	/* Base blanche : la texture est un PNG transparent — sur fond sombre, tout
	   le bandeau devenait noir alors que les autres pages la posent sur blanc.
	   En couverture (cover), comme les fonds de section Divi : vagues amples. */
	background: linear-gradient(97deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.35) 100%),
		#fff url('/wp-content/uploads/2021/11/estate-planning-73.png') right top / cover no-repeat;
	/* Titre à gauche comme sur les autres pages, aligné sur la colonne de contenu. */
	text-align: left;
	padding-left: max(24px, calc(50vw - 580px));
	padding-right: 24px;
}

.tnsm-shop-conteneur .tnsm-hero .tnsm-hero-texte {
	margin-left: 0;
}

.tnsm-shop-conteneur .tnsm-hero .tnsm-hero-titre {
	color: #fff !important;
	font-size: clamp(30px, 5vw, 60px) !important;
}

.tnsm-shop-conteneur .tnsm-hero .tnsm-hero-surtitre {
	color: var(--sauge);
}

.tnsm-shop-conteneur .tnsm-hero .tnsm-hero-texte {
	color: rgba(255, 255, 255, 0.85);
}

.tnsm-shop-conteneur .tnsm-hero-compact {
	padding: clamp(32px, 5vw, 56px) 20px;
	margin-bottom: 32px;
}

/* ==========================================================================
   Section contact — bas de la boutique (coordonnées du site officiel)
   ========================================================================== */

/* Pied de page global : bandeau foncé (texture de vagues + dégradé) puis
   bande de copyright. Rendu hors du conteneur : pleine largeur naturelle. */

.tnsm-pied {
	/* Le pied vit hors de .tnsm-shop-conteneur : il lui faut ses propres jetons. */
	--encre: #1f1f1f;
	--texte: #4c4a46;
	--sauge: #bcc8c9;
	--ligne: #e8e4dd;
	--titre: 'Aboreto', serif;
	--display: 'Poiret One', sans-serif;

	font-family: 'Open Sans', sans-serif;
	font-size: 15.5px;
	line-height: 1.7;
}

.tnsm-pied-haut {
	padding: clamp(48px, 6vw, 76px) 24px;
	background: linear-gradient(97deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.55) 100%),
		#fff url('/wp-content/uploads/2021/11/estate-planning-73.png') right top / cover no-repeat;
}

.tnsm-pied-bas {
	padding: 18px 24px;
	background: #141414;
	text-align: center;
}

.tnsm-pied-bas p {
	max-width: 1160px;
	margin: 0 auto;
	font-size: 13.5px;
	color: rgba(255, 255, 255, 0.65);
}

.tnsm-pied-bas a {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.tnsm-pied-bas a:hover {
	color: #fff;
	border-bottom-color: var(--sauge);
}

/* Le pied du thème est remplacé par le nôtre. */
body.tnsm-pied-actif #main-footer {
	display: none !important;
}

.tnsm-contact-int {
	max-width: 1160px;
	margin: 0 auto;
}

.tnsm-contact-surtitre {
	font-family: var(--display);
	letter-spacing: 0.28em;
	text-transform: uppercase;
	font-size: 12.5px;
	color: var(--sauge);
	text-align: center;
	margin: 0 0 8px;
}

.tnsm-contact-titre {
	font-family: var(--titre) !important;
	font-weight: 400 !important;
	font-size: clamp(24px, 3.2vw, 34px) !important;
	letter-spacing: 0.06em;
	color: #fff !important;
	text-align: center;
	margin: 0 0 40px !important;
	padding: 0 !important;
}

.tnsm-contact-grille {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 32px 24px;
	text-align: center;
}

.tnsm-contact-ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	margin-bottom: 14px;
}

.tnsm-contact-ico svg {
	width: 20px;
	height: 20px;
}

.tnsm-contact-bloc h3 {
	font-family: var(--display) !important;
	font-weight: 400 !important;
	font-size: 15px !important;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #fff !important;
	margin: 0 0 10px !important;
	padding: 0 !important;
}

.tnsm-contact-bloc p {
	margin: 0;
	font-size: 15px;
	line-height: 1.8;
	color: rgba(255, 255, 255, 0.85);
}

.tnsm-contact-bloc a {
	color: #fff;
	text-decoration: none;
	border-bottom: 1px solid var(--sauge);
	transition: border-color 0.2s ease;
}

.tnsm-contact-bloc a:hover {
	border-bottom-color: #fff;
}

.tnsm-contact-note {
	font-size: 13.5px !important;
	color: rgba(255, 255, 255, 0.6) !important;
	margin-top: 6px !important;
}

@media (max-width: 700px) {
	.tnsm-contact-grille {
		grid-template-columns: 1fr;
		gap: 28px;
	}
}

/* ==========================================================================
   Grille produits : médaillons ronds
   ========================================================================== */

.tnsm-carte-image {
	border-radius: 50%;
	aspect-ratio: 1 / 1;
}

/* Badges et bouton recentrés pour rester lisibles dans le cercle. */
.tnsm-carte-image .tnsm-etiquette {
	top: 9%;
	left: 50%;
	transform: translateX(-50%);
	white-space: nowrap;
}

.tnsm-carte-image .tnsm-carte-voir {
	bottom: 13%;
}

.tnsm-carte-nom {
	text-align: center;
}

.tnsm-carte-prix {
	text-align: center;
}

/* ==========================================================================
   Typographie du site (Poiret One) normalisée sur la boutique
   ========================================================================== */

.tnsm-compte,
.tnsm-tri label,
.tnsm-tri select,
.tnsm-filtres-bouton,
.tnsm-filtre-nb,
.tnsm-carte-prix {
	font-family: var(--display) !important;
}

.tnsm-compte {
	font-size: 15.5px;
	letter-spacing: 0.06em;
	color: var(--encre);
}

.tnsm-carte-prix {
	font-size: 16.5px;
	color: var(--encre);
}

.tnsm-tri label,
.tnsm-tri select {
	font-size: 15px;
	color: var(--encre);
}

/* ==========================================================================
   Bandeaux compacts (panier, commande, confirmation) : titre centré
   ========================================================================== */

.tnsm-shop-conteneur .tnsm-hero-compact {
	text-align: center;
	padding-left: 24px;
}

/* ==========================================================================
   Page CGV
   ========================================================================== */

.tnsm-cgv-contenu {
	max-width: 780px;
	margin: 0 auto;
	font-size: 15.5px;
	line-height: 1.85;
}

.tnsm-cgv-intro {
	font-size: 16.5px;
	color: var(--encre);
	border-left: 3px solid var(--sauge);
	padding-left: 18px;
	margin-bottom: 34px;
}

.tnsm-cgv-contenu h2 {
	font-family: var(--titre) !important;
	font-weight: 400 !important;
	font-size: 21px !important;
	letter-spacing: 0.04em;
	color: var(--encre) !important;
	margin: 38px 0 12px !important;
	padding: 0 0 8px !important;
	border-bottom: 1px solid var(--ligne);
}

.tnsm-cgv-contenu p {
	margin: 0 0 14px;
}

.tnsm-cgv-contenu ul {
	margin: 0 0 14px;
	padding-left: 22px;
}

.tnsm-cgv-contenu li {
	margin-bottom: 8px;
}

.tnsm-cgv-contenu a {
	color: var(--encre);
	text-decoration: none;
	border-bottom: 1px solid var(--sauge);
}

.tnsm-cgv-version {
	margin-top: 36px;
	font-size: 13.5px;
	color: #8a857c;
}

/* Case CGV du checkout */

.tnsm-champ-cgv {
	margin: 18px 0 6px;
	font-size: 14.5px;
}

.tnsm-champ-cgv a {
	color: var(--encre);
	text-decoration: none;
	border-bottom: 1px solid var(--sauge);
}

/* ==========================================================================
   Poiret One est très fine (une seule graisse 400) : on épaissit les
   éléments clés en gras synthétique pour la lisibilité.
   ========================================================================== */

.tnsm-filtres a,
.tnsm-filtres-bouton,
.tnsm-carte-nom,
.tnsm-carte-prix,
.tnsm-tri label,
.tnsm-tri select,
.tnsm-compte {
	font-weight: 700 !important;
}

/* Le sous-titre du bandeau reste volontairement fin. */
.tnsm-hero-texte {
	font-size: 18px;
	font-weight: 400 !important;
}

.tnsm-carte-nom {
	font-size: 19px;
}


/* ==========================================================================
   Aboreto partout sur les éléments d'accent (demande cliente).
   Jeu de graisses : fin (400) par défaut pour l'élégance, gras synthétique
   (700) là où la hiérarchie visuelle le mérite.
   ========================================================================== */

.tnsm-filtres a,
.tnsm-filtres-bouton,
.tnsm-hero-texte,
.tnsm-carte-nom,
.tnsm-carte-prix,
.tnsm-tri label,
.tnsm-tri select,
.tnsm-compte,
.tnsm-filtre-nb {
	font-family: var(--titre) !important;
}

/* Fin par défaut : sous-titre, prix de grille, menus, compteur. */
.tnsm-hero-texte,
.tnsm-carte-prix,
.tnsm-tri select,
.tnsm-compte,
.tnsm-filtre-nb {
	font-weight: 400 !important;
}

/* Gras : noms de produits, tri, bouton filtres. */
.tnsm-carte-nom,
.tnsm-tri label,
.tnsm-filtres-bouton {
	font-weight: 700 !important;
}

/* Pilules de filtres : fines au repos, grasses quand actives. */
.tnsm-filtres a {
	font-weight: 400 !important;
	letter-spacing: 0.05em;
	font-size: 13.5px;
}

.tnsm-filtres a.actif {
	font-weight: 700 !important;
}

/* Ajustements de taille : Aboreto est large, on compense légèrement. */
.tnsm-hero-texte {
	font-size: 16.5px;
	letter-spacing: 0.03em;
}

.tnsm-carte-nom {
	font-size: 17px;
	letter-spacing: 0.04em;
	line-height: 1.5;
}

.tnsm-carte-prix {
	font-size: 14.5px;
}

/* ==========================================================================
   Correctif scroll horizontal : les bandes pleine largeur (bandeau, contact)
   utilisent 100vw, qui inclut la barre de défilement — on coupe le
   débordement résiduel avec clip (ne casse pas position: sticky).
   ========================================================================== */

body.tnsm-page-shop {
	overflow-x: clip;
}

/* ==========================================================================
   Fiche produit : image principale carrée à coins arrondis,
   vignettes rondes en dessous
   ========================================================================== */

.tnsm-galerie-principale {
	border-radius: 32px;
	aspect-ratio: 1 / 1;
}

/* Vignettes rondes. */
.tnsm-vignette {
	border-radius: 50%;
}

/* (Fiche produit : polices d'origine conservées — demande cliente.) */

/* Réseaux sociaux de la section contact */

.tnsm-contact-reseaux {
	display: flex;
	justify-content: center;
	gap: 14px;
	margin-top: 42px;
}

.tnsm-contact-reseaux a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.tnsm-contact-reseaux a:hover {
	background: var(--sauge);
	color: var(--encre);
	transform: translateY(-2px);
}

.tnsm-contact-reseaux svg {
	width: 20px;
	height: 20px;
}

/* Sommaire des CGV */

.tnsm-cgv-sommaire {
	margin: 0 0 40px;
	padding: 22px 26px;
	background: var(--creme);
	border-radius: 12px;
}

.tnsm-cgv-sommaire-titre {
	font-family: var(--display);
	letter-spacing: 0.22em;
	text-transform: uppercase;
	font-size: 12.5px;
	color: var(--texte);
	margin: 0 0 12px !important;
}

.tnsm-cgv-sommaire ol {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 2px 24px;
	margin: 0;
	padding-left: 20px;
	font-size: 14.5px;
}

.tnsm-cgv-sommaire li {
	margin-bottom: 4px;
}

.tnsm-cgv-sommaire a {
	border-bottom: none;
	color: var(--texte);
}

.tnsm-cgv-sommaire a:hover {
	color: var(--encre);
	border-bottom: 1px solid var(--sauge);
}

/* Ancres : le titre ne se cache pas sous l'en-tête fixe du thème. */
.tnsm-cgv-contenu h2 {
	scroll-margin-top: 110px;
}

/* Ancres #contact / #infos du menu : elles mènent au pied de page,
   décalées de la hauteur de l'en-tête fixe du thème. */

.tnsm-pied,
.tnsm-pied .tnsm-ancre {
	scroll-margin-top: 100px;
}

.tnsm-pied .tnsm-ancre {
	display: block;
	height: 0;
	overflow: hidden;
}

/* Mobile : le compteur de produits n'apporte rien, on gagne de la place. */

@media (max-width: 700px) {
	.tnsm-compte {
		display: none;
	}
}

/* Mobile : plus d'air entre la barre d'outils (catégories, tri) et la grille. */

@media (max-width: 700px) {
	.tnsm-outils {
		margin-bottom: 34px;
	}

	.tnsm-zone-produits {
		padding-top: 8px;
	}
}

/* Code promo dans le résumé du tunnel de commande */

.tnsm-resume .tnsm-coupon {
	margin: 16px 0 4px;
}

.tnsm-resume #tnsm-message-coupon:empty {
	display: none;
}

.tnsm-resume #tnsm-message-coupon {
	margin: 0 0 10px;
	font-size: 13.5px;
}
