/*
Theme Name: Zone Travaux
Theme URI: https://www.zonetravaux.fr/
Author: Livio Studio
Author URI: https://livio-studio.fr/
Description: Thème de blocs sur mesure pour Zone Travaux : tests d'outils, tutoriels et guides d'achat bricolage.
Version: 1.1.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zonetravaux
*/

:root {
	--zt-hi: rgba(255, 255, 255, .85);
	--zt-lo: rgba(166, 158, 143, .55);
	--zt-nm: -7px -7px 15px var(--zt-hi), 7px 7px 16px var(--zt-lo);
	--zt-nm-sm: -4px -4px 9px rgba(255, 255, 255, .78), 4px 4px 10px rgba(166, 158, 143, .5);
	--zt-nm-lg: -10px -10px 22px rgba(255, 255, 255, .9), 12px 12px 26px rgba(166, 158, 143, .6);
	--zt-nm-in: inset 3px 3px 7px rgba(166, 158, 143, .55), inset -3px -3px 7px rgba(255, 255, 255, .82);
	--zt-accent-glow: 6px 6px 14px rgba(245, 163, 26, .35), -5px -5px 12px rgba(255, 255, 255, .5);
	--zt-r: 22px;
	--zt-r-sm: 13px;
	--zt-ease: cubic-bezier(.16, 1, .3, 1);
}

body {
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
	overflow-x: clip;
}

h1, h2, h3, h4 {
	text-wrap: balance;
}

:where(.wp-site-blocks) a:focus-visible,
:where(.wp-site-blocks) button:focus-visible {
	outline: 3px solid var(--wp--preset--color--encre);
	outline-offset: 3px;
	border-radius: 4px;
}

.zt-header {
	position: sticky;
	top: 0;
	z-index: 60;
	box-shadow: 0 12px 30px -24px rgba(70, 60, 40, .55);
}

.zt-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(233, 230, 223, .86);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

/* Le sticky se pose sur l'enveloppe de la partie de modèle : l'en-tête seul n'a pas de hauteur où coller */
.wp-site-blocks > .wp-block-template-part:has(> .zt-header) {
	position: sticky;
	top: 0;
	z-index: 60;
}

.admin-bar .wp-site-blocks > .wp-block-template-part:has(> .zt-header) {
	top: var(--wp-admin--admin-bar--height, 32px);
}

@media (max-width: 600px) {
	.admin-bar .wp-site-blocks > .wp-block-template-part:has(> .zt-header) {
		top: 0;
	}
}

.zt-brand {
	text-decoration: none;
	color: inherit;
}

.zt-brand img {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	box-shadow: var(--zt-nm-sm);
	display: block;
}

.zt-brand-name {
	font-family: var(--wp--preset--font-family--archivo);
	font-weight: 900;
	font-size: 1.24rem;
	letter-spacing: -.02em;
	line-height: .95;
	text-transform: uppercase;
	display: block;
	white-space: nowrap;
}

.zt-brand-sub {
	font-family: var(--wp--preset--font-family--mono);
	font-size: .58rem;
	letter-spacing: .18em;
	color: var(--wp--preset--color--gris);
	text-transform: uppercase;
	display: block;
	margin-top: 4px;
}

@media (max-width: 520px) {
	.zt-brand-sub {
		display: none;
	}
}

.zt-nav .wp-block-navigation-item__content {
	position: relative;
	padding: 4px 0;
	white-space: nowrap;
}

.zt-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	right: 100%;
	bottom: -2px;
	height: 3px;
	border-radius: 2px;
	background: var(--wp--preset--color--accent);
	transition: right .28s var(--zt-ease);
}

.zt-nav .wp-block-navigation__container > .wp-block-navigation-item:hover > .wp-block-navigation-item__content::after,
.zt-nav .current-menu-item > .wp-block-navigation-item__content::after {
	right: 0;
}

.zt-nav .wp-block-navigation__submenu-container {
	border: 0 !important;
	border-radius: var(--zt-r-sm);
	box-shadow: 0 22px 44px -20px rgba(70, 60, 40, .6);
	padding: 8px !important;
	min-width: 240px !important;
}

.zt-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 9px 12px !important;
	border-radius: 9px;
}

.zt-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--papier-2);
}

.zt-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--papier) !important;
	padding: 24px !important;
}

.zt-nav .is-menu-open .wp-block-navigation__responsive-container-content,
.zt-nav .is-menu-open .wp-block-navigation__container,
.zt-nav .is-menu-open .wp-block-navigation-item {
	align-items: flex-start !important;
	text-align: left;
}

.zt-nav .is-menu-open .wp-block-navigation__container {
	gap: 18px !important;
	font-size: 1rem;
}

.zt-nav .is-menu-open .wp-block-navigation__submenu-container {
	box-shadow: none !important;
	background: transparent !important;
	padding: 10px 0 0 14px !important;
	gap: 12px !important;
	font-size: .88rem;
	border-left: 1px solid rgba(27, 29, 32, .18) !important;
	border-radius: 0;
}

.zt-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 2px 0 !important;
	color: var(--wp--preset--color--gris);
}

.zt-search .wp-block-search__button.has-icon {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--wp--preset--color--papier);
	box-shadow: var(--zt-nm-sm);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

@media (max-width: 599px) {
	.zt-nav .wp-block-navigation__responsive-container-open {
		width: 44px;
		height: 44px;
		border-radius: 50%;
		background: var(--wp--preset--color--papier);
		box-shadow: var(--zt-nm-sm);
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}
}

.zt-search .wp-block-search__inside-wrapper {
	border: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	overflow: visible !important;
}

form.wp-block-search.zt-search {
	overflow: visible !important;
}

.zt-search.wp-block-search__searchfield-hidden .wp-block-search__input {
	opacity: 0;
	width: 0;
	padding: 0;
	pointer-events: none;
}

.zt-search.wp-block-search__searchfield-hidden .wp-block-search__inside-wrapper {
	gap: 0;
}

.zt-search .wp-block-search__input {
	border-radius: 999px;
	background: var(--wp--preset--color--papier);
	box-shadow: var(--zt-nm-in);
	border: 0;
	padding: 10px 16px;
	font-size: .95rem;
}

.zt-search .wp-block-search__button {
	border: 0;
	color: var(--wp--preset--color--encre);
	margin-left: 8px;
}

.zt-search .wp-block-search__button.has-icon {
	padding: 0;
}

.zt-search .wp-block-search__button:not(.has-icon) {
	border-radius: 999px;
	padding: 10px 22px;
	background: var(--wp--preset--color--accent);
	box-shadow: var(--zt-accent-glow);
}

.zt-chip,
.zt-chip a,
.zt-card .wp-block-post-terms a {
	font-family: var(--wp--preset--font-family--mono);
	font-size: .66rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	text-decoration: none;
}

.zt-chip a,
.zt-card .wp-block-post-terms a {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 9px;
	color: var(--wp--preset--color--gris);
	background: var(--wp--preset--color--papier);
	box-shadow: var(--zt-nm-in);
}

.zt-chip.is-accent a {
	color: var(--wp--preset--color--encre);
	background: var(--wp--preset--color--accent);
	box-shadow: 3px 3px 9px rgba(245, 163, 26, .32), -3px -3px 8px rgba(255, 255, 255, .4);
}

.zt-chip .wp-block-post-terms__separator,
.zt-card .wp-block-post-terms__separator {
	display: none;
}

.zt-chip.wp-block-post-terms,
.zt-card .wp-block-post-terms {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.zt-card .wp-block-post-terms a:nth-of-type(n+2) {
	display: none;
}

.zt-meta,
.zt-meta a {
	font-family: var(--wp--preset--font-family--mono);
	font-size: .72rem;
	letter-spacing: .03em;
	color: var(--wp--preset--color--gris);
	text-decoration: none;
}

.zt-hero-frame .wp-block-post-featured-image,
.zt-hero-frame .wp-block-post-featured-image img,
.wp-block-post-featured-image.zt-hero-frame,
.wp-block-post-featured-image.zt-hero-frame img {
	border-radius: var(--zt-r);
}

.zt-hero-frame .wp-block-post-featured-image,
.wp-block-post-featured-image.zt-hero-frame {
	overflow: hidden;
	box-shadow: var(--zt-nm-lg);
}

.zt-hero-frame .wp-block-post-featured-image img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	width: 100%;
}

.zt-hero-title a {
	text-decoration: none;
	color: inherit;
}

.zt-card {
	height: 100%;
	border-radius: var(--zt-r);
	background: var(--wp--preset--color--papier);
	box-shadow: var(--zt-nm);
	overflow: hidden;
	position: relative;
	transition: transform .22s var(--zt-ease), box-shadow .22s var(--zt-ease);
}

.zt-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--zt-nm-lg);
}

.zt-card .wp-block-post-featured-image {
	margin: 0;
	overflow: hidden;
}

.zt-card .wp-block-post-featured-image img {
	aspect-ratio: 16 / 10;
	object-fit: cover;
	width: 100%;
	transition: transform .5s var(--zt-ease);
}

.zt-card:hover .wp-block-post-featured-image img {
	transform: scale(1.05);
}

.zt-card .wp-block-post-title a {
	text-decoration: none;
	color: inherit;
	transition: color .2s;
}

.zt-card .wp-block-post-title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.zt-card .wp-block-post-terms a {
	position: relative;
	z-index: 2;
}

.zt-card:hover .wp-block-post-title a {
	color: var(--wp--preset--color--accent-texte);
}

.zt-card-body {
	flex: 1;
}

.zt-card .zt-meta {
	margin-top: auto;
}

.zt-sec-head {
	border-bottom: 1px solid rgba(27, 29, 32, .12);
	position: relative;
}

.zt-sec-head::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 80px;
	height: 3px;
	border-radius: 3px;
	background: var(--wp--preset--color--accent);
}

.zt-more a,
a.zt-more {
	font-family: var(--wp--preset--font-family--archivo);
	font-weight: 700;
	font-size: .8rem;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--wp--preset--color--encre);
}

.zt-more a:hover {
	color: var(--wp--preset--color--accent-texte);
}

.zt-brands a {
	font-family: var(--wp--preset--font-family--archivo);
	font-weight: 900;
	font-size: 1.3rem;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gris);
	text-decoration: none;
	transition: color .2s;
}

.zt-brands a:hover {
	color: var(--wp--preset--color--encre);
}

.zt-brands p {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 32px;
}

.wp-block-button.is-style-doux .wp-block-button__link {
	background: var(--wp--preset--color--papier);
	color: var(--wp--preset--color--encre);
	box-shadow: var(--zt-nm-sm);
}

.wp-block-button .wp-block-button__link {
	transition: transform .18s, background .18s, box-shadow .22s;
}

.wp-block-button:not(.is-style-doux) .wp-block-button__link {
	box-shadow: var(--zt-accent-glow);
}

.wp-block-button .wp-block-button__link:hover {
	transform: translateY(-2px);
}

.is-style-carte {
	border-radius: var(--zt-r);
	background: var(--wp--preset--color--papier);
	box-shadow: var(--zt-nm);
}

.is-style-creux {
	border-radius: var(--zt-r);
	background: var(--wp--preset--color--papier);
	box-shadow: var(--zt-nm-in);
}

.zt-article .wp-block-post-content > * + * {
	margin-block-start: 1.2em;
}

.zt-article .wp-block-post-content img {
	border-radius: var(--zt-r-sm);
	height: auto;
	max-width: 100%;
}

.zt-article .wp-block-post-content video,
.zt-article .wp-block-post-content .wp-video,
.zt-article .wp-block-post-content .wp-caption,
.zt-article .wp-block-post-content figure {
	max-width: 100% !important;
	height: auto;
}

.zt-article .wp-block-post-content a {
	color: var(--wp--preset--color--accent-texte);
	text-underline-offset: 3px;
}

.zt-article .wp-block-post-content iframe {
	max-width: 100%;
	border-radius: var(--zt-r-sm);
}

.zt-article .wp-block-post-content .wp-block-table {
	overflow-x: auto;
	max-width: 100%;
}

.zt-article .wp-block-post-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: .95rem;
}

.zt-article .wp-block-post-content td,
.zt-article .wp-block-post-content th {
	border-bottom: 1px solid rgba(27, 29, 32, .12);
	padding: 10px 8px;
	text-align: left;
	overflow-wrap: anywhere;
}

.zt-article .wp-block-post-content .aligncenter {
	margin-left: auto;
	margin-right: auto;
}

.zt-article .wp-block-post-content .alignleft {
	float: left;
	margin: 0 1.2em 1em 0;
}

.zt-article .wp-block-post-content .alignright {
	float: right;
	margin: 0 0 1em 1.2em;
}

.zt-article .wp-block-post-content::after {
	content: "";
	display: block;
	clear: both;
}

.zt-article .wp-block-post-content .wp-caption {
	max-width: 100%;
}

.zt-article .wp-block-post-content .wp-caption-text,
.zt-article .wp-block-post-content figcaption {
	font-size: .85rem;
	color: var(--wp--preset--color--gris);
}

@media (max-width: 600px) {
	.zt-article .wp-block-post-content .alignleft,
	.zt-article .wp-block-post-content .alignright {
		float: none;
		margin: 0 auto 1em;
	}
}

.zt-verdict h3 {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 9px;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--encre);
	font-size: .95rem;
	text-transform: uppercase;
	letter-spacing: .02em;
}

.zt-pagination a,
.zt-pagination .current {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border-radius: 12px;
	background: var(--wp--preset--color--papier);
	box-shadow: var(--zt-nm-sm);
	text-decoration: none;
	font-family: var(--wp--preset--font-family--mono);
	font-size: .85rem;
}

.zt-pagination .current {
	box-shadow: var(--zt-nm-in);
	font-weight: 700;
}

.zt-footer a {
	text-decoration: none;
	color: var(--wp--preset--color--gris);
}

.zt-footer a:hover {
	color: var(--wp--preset--color--accent-texte);
}

.zt-footer {
	box-shadow: inset 0 9px 22px -16px rgba(70, 60, 40, .4);
}

.wp-block-comments input:not([type="submit"]):not([type="checkbox"]),
.wp-block-comments textarea {
	border: 0;
	border-radius: var(--zt-r-sm);
	background: var(--wp--preset--color--papier);
	box-shadow: var(--zt-nm-in);
	padding: 12px 14px;
	font: inherit;
	width: 100%;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}
}

.zt-header .zt-search .wp-block-search__inside-wrapper {
	position: relative;
	width: auto !important;
}

.zt-header .zt-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__input {
	position: absolute;
	top: 0;
	right: calc(100% + 8px);
	z-index: 5;
	height: 44px;
	width: min(520px, calc(100vw - 100px));
	background: var(--wp--preset--color--papier-2);
	box-shadow: var(--zt-nm-in), 0 18px 36px -18px rgba(70, 60, 40, .55);
}

.zt-header .zt-search .wp-block-search__input:focus {
	outline: 2px solid var(--wp--preset--color--accent-texte);
	outline-offset: 2px;
}

.zt-header:has(.zt-search:not(.wp-block-search__searchfield-hidden)) .zt-nav {
	visibility: hidden;
}

.zt-yt-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	flex: none;
	border-radius: 18px;
	color: #FF0033;
	background: var(--wp--preset--color--papier);
	box-shadow: var(--zt-nm-in);
}

.zt-yt-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	height: 44px;
	padding: 0 16px;
	border-radius: 999px;
	background: var(--wp--preset--color--papier);
	box-shadow: var(--zt-nm-sm);
	color: var(--wp--preset--color--encre);
	text-decoration: none;
	font-family: var(--wp--preset--font-family--archivo);
	font-weight: 700;
	font-size: .78rem;
	text-transform: uppercase;
	white-space: nowrap;
	transition: transform .18s;
}

.zt-yt-btn svg {
	color: #FF0033;
}

.zt-yt-btn:hover {
	transform: translateY(-2px);
	color: var(--wp--preset--color--encre);
}

.zt-yt-btn {
	width: 44px;
	padding: 0;
	justify-content: center;
}

@media (max-width: 599px) {
	.zt-yt-btn {
		display: none;
	}
}

@media (max-width: 599px) {
	.zt-header .alignwide > .wp-block-group {
		gap: 8px !important;
	}
	.zt-search .wp-block-search__button.has-icon,
	.zt-nav .wp-block-navigation__responsive-container-open {
		width: 40px !important;
		height: 40px !important;
	}
	.zt-brand-logo {
		width: 46px;
		height: 46px;
		padding: 3px;
	}
	.zt-brand-logo img {
		width: 40px;
		height: 40px;
	}
}

@media (max-width: 420px) {
	.zt-brand-name {
		font-size: .98rem;
	}
	.zt-brand {
		gap: 8px !important;
	}
}

.zt-nav .wp-block-navigation__container {
	flex-wrap: nowrap;
}

@media (min-width: 600px) and (max-width: 1439px) {
	.zt-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: inline-flex !important;
		width: 44px;
		height: 44px;
		border-radius: 50%;
		background: var(--wp--preset--color--papier);
		box-shadow: var(--zt-nm-sm);
		align-items: center;
		justify-content: center;
	}

	.zt-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none !important;
	}

	.zt-nav .wp-block-navigation__responsive-container.is-menu-open {
		position: fixed;
		inset: 0;
		display: flex !important;
		flex-direction: column;
		overflow: auto;
	}

	.zt-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
		display: flex;
	}

	.zt-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
		flex-direction: column;
		flex-wrap: nowrap;
	}

	.zt-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
		position: static;
		visibility: visible;
		opacity: 1;
		width: auto;
		height: auto;
	}

	.zt-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-icon {
		display: none;
	}
}

.zt-header:has(.zt-search:not(.wp-block-search__searchfield-hidden)) .zt-yt-btn {
	visibility: hidden;
}

.wpcf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.wpcf7 textarea,
.wpcf7 select,
.wp-block-comments input:not([type="submit"]):not([type="checkbox"]),
.wp-block-comments textarea {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid var(--wp--preset--color--gris) !important;
	border-radius: var(--zt-r-sm);
	background: var(--wp--preset--color--papier-2);
	box-shadow: var(--zt-nm-in);
	padding: 12px 14px;
	font: inherit;
	color: var(--wp--preset--color--encre);
}

.wpcf7 label {
	display: block;
	font-weight: 600;
}

.wpcf7 .hidden-fields-container {
	display: none;
}

.wpcf7 input[type="submit"],
.wp-block-comments input[type="submit"] {
	border: 0;
	border-radius: 13px;
	padding: 13px 22px;
	cursor: pointer;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--encre);
	font-family: var(--wp--preset--font-family--archivo);
	font-weight: 700;
	font-size: .82rem;
	letter-spacing: .02em;
	text-transform: uppercase;
	box-shadow: var(--zt-accent-glow);
}

.wpcf7 input[type="submit"]:hover,
.wp-block-comments input[type="submit"]:hover {
	background: var(--wp--preset--color--accent-fonce);
}

.zt-header .zt-search .wp-block-search__input {
	border: 1px solid var(--wp--preset--color--gris);
}

@media (max-width: 400px) {
	.zt-header .wp-block-group.alignwide > .wp-block-group {
		gap: 8px;
	}
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

@media (max-width: 600px) {
	.zt-brands a {
		font-size: 1rem;
	}

	.zt-brands p {
		gap: 8px 20px;
	}
}

/* Logo dans un bouton en relief, comme la recherche et YouTube */
.zt-brand-logo {
	box-sizing: border-box;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	padding: 4px;
	border-radius: 50%;
	background: var(--wp--preset--color--papier);
	box-shadow: var(--zt-nm-sm);
	display: inline-flex;
	flex: none;
	transition: transform .3s var(--zt-ease);
}

.zt-brand:hover .zt-brand-logo {
	transform: translateY(-2px);
}

.zt-brand-logo img {
	width: 44px;
	height: 44px;
	box-shadow: none;
}

/* Boutons Instagram et couleurs dans la barre */
.zt-insta-btn svg {
	color: #C13584;
}

@media (max-width: 599px) {
	.zt-insta-btn {
		display: none;
	}
}

/* Accueil : article tiré au hasard parmi les derniers */
.zt-hero-pool .wp-block-post:not(:first-child),
.zt-hero-tire .wp-block-post:first-child:not(.zt-hero-choisi) {
	display: none;
}

.zt-hero-tire .wp-block-post.zt-hero-choisi {
	display: block;
}

/* Galeries : une grille au lieu de photos empilées en pleine largeur */
.wp-block-gallery.has-nested-images {
	display: grid !important;
	grid-template-columns: repeat(var(--zt-cols, 3), minmax(0, 1fr));
	gap: 10px;
	margin-block: var(--wp--preset--spacing--40);
}

.wp-block-gallery.has-nested-images.columns-1 { --zt-cols: 1; }
.wp-block-gallery.has-nested-images.columns-2,
.wp-block-gallery.has-nested-images.columns-default:has(> figure:nth-of-type(2):last-of-type),
.wp-block-gallery.has-nested-images.columns-default:has(> figure:nth-of-type(4):last-of-type) { --zt-cols: 2; }
.wp-block-gallery.has-nested-images.columns-4 { --zt-cols: 4; }
.wp-block-gallery.has-nested-images.columns-5,
.wp-block-gallery.has-nested-images.columns-6 { --zt-cols: 4; }

.wp-block-gallery.has-nested-images figure.wp-block-image {
	width: auto !important;
	margin: 0 !important;
	position: relative;
	overflow: hidden;
	border-radius: var(--zt-r-sm);
	box-shadow: var(--zt-nm-sm);
}

.wp-block-gallery.has-nested-images figure.wp-block-image img {
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 0;
	display: block;
}

.wp-block-gallery.has-nested-images:not(.is-cropped) figure.wp-block-image img {
	aspect-ratio: auto;
}

.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
	position: absolute;
	inset: auto 0 0 0;
	margin: 0;
	padding: 18px 10px 8px;
	font-size: .78rem;
	color: #fff;
	background: linear-gradient(transparent, rgba(0, 0, 0, .62));
}

@media (max-width: 599px) {
	.wp-block-gallery.has-nested-images {
		--zt-cols: 2 !important;
		gap: 8px;
	}
	.wp-block-gallery.has-nested-images.columns-1 {
		--zt-cols: 1 !important;
	}
}

/* Visionneuse : la photo s'ouvre par-dessus l'article */
img.zt-zoomable {
	cursor: zoom-in;
}

body.zt-v-ouverte {
	overflow: hidden;
}

.zt-visionneuse {
	width: 100vw;
	max-width: 100vw;
	height: 100vh;
	max-height: 100vh;
	height: 100dvh;
	max-height: 100dvh;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(10, 11, 13, .94);
	color: #fff;
}

.zt-visionneuse::backdrop {
	background: rgba(10, 11, 13, .7);
}

.zt-visionneuse figure {
	margin: 0;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 56px 16px 48px;
	box-sizing: border-box;
}

.zt-visionneuse img {
	max-width: 100%;
	max-height: calc(100% - 40px);
	object-fit: contain;
	border-radius: 6px;
}

.zt-visionneuse figcaption {
	margin-top: 12px;
	font-size: .9rem;
	text-align: center;
	color: rgba(255, 255, 255, .85);
}

.zt-visionneuse button {
	position: absolute;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 0;
	background: rgba(255, 255, 255, .14);
	color: #fff;
	font-size: 1.9rem;
	line-height: 1;
	cursor: pointer;
}

.zt-visionneuse button:hover,
.zt-visionneuse button:focus-visible {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--encre);
	outline: 3px solid #fff;
	outline-offset: 2px;
}

.zt-v-fermer { top: 12px; right: 12px; }
.zt-v-prec { left: 12px; top: 50%; transform: translateY(-50%); }
.zt-v-suiv { right: 12px; top: 50%; transform: translateY(-50%); }
.zt-v-seule .zt-v-prec,
.zt-v-seule .zt-v-suiv { display: none; }

.zt-v-compte {
	position: absolute;
	top: 22px;
	left: 0;
	right: 0;
	margin: 0;
	text-align: center;
	font-family: var(--wp--preset--font-family--mono);
	font-size: .8rem;
	pointer-events: none;
}

@media (max-width: 599px) {
	.zt-v-prec,
	.zt-v-suiv {
		top: auto;
		bottom: 10px;
		transform: none;
	}
}

/* Guide d'achat et Instagram mis en avant sur l'accueil */
.zt-guide,
.zt-insta {
	gap: 24px;
}

.zt-guide h2,
.zt-insta h2 {
	margin: 0;
}

.zt-guide p,
.zt-insta p {
	margin: 0;
}

/* Produits Amazon dans les articles */
.zt-amazon {
	margin-block: var(--wp--preset--spacing--40);
	padding: 20px;
	border-radius: var(--zt-r);
	background: var(--wp--preset--color--papier);
	box-shadow: var(--zt-nm);
}

.zt-amazon-titre {
	margin: 0 0 12px;
	font-family: var(--wp--preset--font-family--archivo);
	font-weight: 800;
	text-transform: uppercase;
	font-size: .95rem;
}

.zt-amazon ul {
	list-style: none;
	margin: 0 0 10px;
	padding: 0;
	display: grid;
	gap: 10px;
}

.zt-amazon li a {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 8px 16px;
	padding: 12px 14px;
	border-radius: var(--zt-r-sm);
	background: var(--wp--preset--color--papier-2);
	box-shadow: var(--zt-nm-in);
	color: var(--wp--preset--color--encre);
	text-decoration: none;
}

.zt-amazon-nom {
	flex: 1 1 220px;
	font-weight: 600;
	line-height: 1.35;
}

.zt-amazon-cta {
	flex: none;
	padding: 8px 14px;
	border-radius: 999px;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--encre);
	font-family: var(--wp--preset--font-family--archivo);
	font-weight: 700;
	font-size: .82rem;
	text-transform: uppercase;
}

.zt-amazon li a:hover .zt-amazon-cta {
	background: var(--wp--preset--color--accent-fonce);
}

/* Bannière d'affiliation sous l'article */
.zt-pub {
	margin-block: var(--wp--preset--spacing--50) 0;
	text-align: center;
}

.zt-pub .zt-meta {
	margin: 0 0 6px;
}

.zt-pub img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}
@media (max-width: 380px) {
	.zt-brand-name {
		font-size: .86rem;
	}
	.zt-brand-logo {
		width: 42px;
		height: 42px;
	}
	.zt-brand-logo img {
		width: 36px;
		height: 36px;
	}
	.zt-header .alignwide > .wp-block-group {
		gap: 6px !important;
	}
}

/* Accueil coupé en deux : un article d'un côté, Instagram et YouTube de l'autre */
.zt-split {
	padding-top: var(--wp--preset--spacing--50);
	display: grid !important;
	grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
	gap: 28px;
	align-items: stretch;
}

.zt-split-article .wp-block-post-featured-image {
	margin: 0 0 22px;
	border-radius: var(--zt-r);
	overflow: hidden;
	box-shadow: var(--zt-nm-lg);
}

.zt-split-article .wp-block-post-featured-image img {
	aspect-ratio: 16 / 9;
	object-fit: cover;
	width: 100%;
	height: 100%;
}

.zt-split-article .zt-hero-title {
	font-size: clamp(1.8rem, 1.1rem + 2.4vw, 3rem) !important;
	margin-block: 14px 12px;
}

.zt-split-reseaux {
	display: grid;
	grid-template-rows: 1fr 1fr;
	gap: 28px;
}

.zt-reseau {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 14px;
	padding: 28px;
	border-radius: var(--zt-r);
	background: var(--wp--preset--color--papier);
	box-shadow: var(--zt-nm);
	color: var(--wp--preset--color--encre);
	text-decoration: none;
	transition: transform .35s var(--zt-ease), box-shadow .35s var(--zt-ease);
}

.zt-reseau:hover {
	transform: translateY(-3px);
	box-shadow: var(--zt-nm-lg);
	color: var(--wp--preset--color--encre);
}

.zt-reseau-tete {
	display: flex;
	align-items: center;
	gap: 14px;
}

.zt-reseau-logo {
	width: 56px;
	height: 56px;
	flex: none;
	border-radius: 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	box-shadow: var(--zt-nm-sm);
}

.zt-reseau-insta .zt-reseau-logo {
	background: radial-gradient(circle at 30% 107%, #FDF497 0%, #FDF497 5%, #FD5949 45%, #D6249F 60%, #285AEB 90%);
}

.zt-reseau-yt .zt-reseau-logo {
	background: #FF0033;
}

.zt-reseau-nom {
	display: block;
	font-family: var(--wp--preset--font-family--archivo);
	font-weight: 900;
	font-size: 1.25rem;
	text-transform: uppercase;
	line-height: 1;
}

.zt-reseau-compte {
	display: block;
	margin-top: 5px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: .78rem;
	color: var(--wp--preset--color--gris);
}

.zt-reseau p {
	margin: 0;
	color: var(--wp--preset--color--gris);
	line-height: 1.5;
}

.zt-reseau-bouton {
	align-self: flex-start;
	padding: 10px 18px;
	border-radius: 999px;
	background: var(--wp--preset--color--papier);
	box-shadow: var(--zt-nm-sm);
	font-family: var(--wp--preset--font-family--archivo);
	font-weight: 700;
	font-size: .82rem;
	text-transform: uppercase;
}

@media (max-width: 900px) {
	.zt-split {
		grid-template-columns: minmax(0, 1fr);
	}
	.zt-split-reseaux {
		grid-template-rows: none;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}
}

@media (max-width: 599px) {
	.zt-split-reseaux {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}
	.zt-reseau {
		padding: 20px;
	}
}

/* Aperçus Instagram et YouTube dans les cartes de l'accueil */
a.zt-reseau-tete {
	color: var(--wp--preset--color--encre);
	text-decoration: none;
}

.zt-reseau:hover {
	transform: none;
}

.zt-reseau-bouton {
	color: var(--wp--preset--color--encre);
	text-decoration: none;
	transition: transform .3s var(--zt-ease);
}

.zt-reseau-bouton:hover {
	transform: translateY(-2px);
	color: var(--wp--preset--color--encre);
}

.zt-apercu {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}

.zt-apercu a {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 12px;
	box-shadow: var(--zt-nm-sm);
	color: #fff;
	text-decoration: none;
}

.zt-apercu img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s var(--zt-ease);
}

.zt-apercu a:hover img {
	transform: scale(1.06);
}

.zt-apercu-insta img {
	aspect-ratio: 1;
}

.zt-apercu-yt img {
	aspect-ratio: 16 / 9;
}

.zt-apercu-lecture {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 34px;
	height: 24px;
	margin: -18px 0 0 -17px;
	border-radius: 7px;
	background: #FF0033;
}

.zt-apercu-lecture::after {
	content: "";
	position: absolute;
	left: 13px;
	top: 6px;
	border-style: solid;
	border-width: 6px 0 6px 10px;
	border-color: transparent transparent transparent #fff;
}

.zt-apercu-titre {
	position: absolute;
	inset: auto 0 0 0;
	padding: 16px 7px 6px;
	font-size: .66rem;
	line-height: 1.25;
	background: linear-gradient(transparent, rgba(0, 0, 0, .75));
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

@media (max-width: 599px) {
	.zt-apercu-insta {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.zt-apercu-titre {
		display: none;
	}
}

.zt-split-reseaux {
	grid-template-rows: auto 1fr;
	align-content: start;
}

.zt-reseau {
	justify-content: flex-start;
}

.zt-apercu-titre {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	white-space: nowrap;
}

@media (max-width: 900px) {
	.zt-split-reseaux {
		grid-template-rows: none;
	}
}

/* Barre d'achat fixe : Amazon et ManoMano toujours à l'écran */
.zt-achat {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 55;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	width: 236px;
	padding: 12px;
	border-radius: 20px;
	background: rgba(233, 230, 223, .9);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	box-shadow: var(--zt-nm-lg);
	animation: zt-achat-entree .6s var(--zt-ease) .4s both;
}

@keyframes zt-achat-entree {
	from { opacity: 0; transform: translateY(16px); }
}

.zt-achat-titre {
	grid-column: 1 / -1;
	padding: 0 4px 2px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: .66rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gris);
}

.zt-achat-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 46px;
	border-radius: 13px;
	text-decoration: none;
	transition: transform .3s var(--zt-ease), box-shadow .3s var(--zt-ease);
}

.zt-achat-btn:hover {
	transform: translateY(-2px);
}

.zt-achat-btn:focus-visible {
	outline: 3px solid var(--wp--preset--color--encre);
	outline-offset: 2px;
}

.zt-achat-amazon {
	background: #131921;
	color: #fff;
	box-shadow: 0 8px 18px -8px rgba(19, 25, 33, .7);
}

.zt-achat-amazon:hover {
	color: #fff;
	box-shadow: 0 12px 22px -8px rgba(19, 25, 33, .8);
}

.zt-achat-amazon svg {
	display: block;
	margin-top: 3px;
}

.zt-achat-mano {
	background: #fff;
	color: #0B2A4A;
	box-shadow: var(--zt-nm-sm);
}

.zt-achat-mano:hover {
	color: #0B2A4A;
}

.zt-achat-mano-nom {
	font-family: var(--wp--preset--font-family--archivo);
	font-weight: 600;
	font-size: .98rem;
	letter-spacing: -.01em;
}

.zt-achat-mano-nom b {
	font-weight: 900;
	color: #00A3A1;
}

body.zt-v-ouverte .zt-achat {
	display: none;
}

@media (max-width: 899px) {
	.zt-achat {
		left: 10px;
		right: 10px;
		bottom: max(10px, env(safe-area-inset-bottom));
		width: auto;
		grid-template-columns: auto 1fr 1fr;
		align-items: center;
		padding: 8px 8px 8px 14px;
	}
	.zt-achat-titre {
		grid-column: auto;
		padding: 0;
		font-size: .6rem;
		max-width: 76px;
		line-height: 1.25;
	}
	.zt-achat-btn {
		height: 42px;
	}
	body {
		padding-bottom: 76px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.zt-achat {
		animation: none;
	}
}

/* Logo : image ronde avec une simple ombre (choix du père, 26/10) */
.zt-brand-logo,
.zt-brand:hover .zt-brand-logo {
	width: auto !important;
	height: auto !important;
	padding: 0 !important;
	background: none !important;
	box-shadow: none !important;
	transform: none;
}

.zt-brand-logo img {
	width: 46px !important;
	height: 46px !important;
	border-radius: 50%;
	box-shadow: 0 6px 14px -4px rgba(40, 32, 20, .45) !important;
}

@media (max-width: 380px) {
	.zt-brand-logo img {
		width: 40px !important;
		height: 40px !important;
	}
}

/* Boutons des boîtes produit, au style de la barre d'achat */
.zt-amazon-cta {
	background: #131921;
	color: #fff;
	text-transform: none;
	font-size: .85rem;
	padding: 9px 16px;
	box-shadow: 0 8px 16px -8px rgba(19, 25, 33, .7);
	border-bottom: 2px solid #FF9900;
}

.zt-amazon li a:hover .zt-amazon-cta {
	background: #232F3E;
}

/* Logo Amazon en texte et sourire dessiné : ne dépend plus de la police */
.zt-amz {
	position: relative;
	display: inline-block;
	padding-bottom: 5px;
	font-family: Arial, Helvetica, sans-serif;
	font-weight: 700;
	font-size: 1.05rem;
	letter-spacing: -.02em;
	line-height: 1;
	color: #fff;
}

.zt-amz::after {
	content: "";
	position: absolute;
	left: 6%;
	right: 14%;
	bottom: 0;
	height: 6px;
	border-bottom: 2.5px solid #FF9900;
	border-radius: 0 0 60% 60% / 0 0 100% 100%;
}

.zt-amz::before {
	content: "";
	position: absolute;
	right: 12%;
	bottom: 1px;
	width: 6px;
	height: 6px;
	border-top: 2.5px solid #FF9900;
	border-right: 2.5px solid #FF9900;
	transform: rotate(60deg);
	border-radius: 1px;
}

/* Accueil : guide d'achat compact d'un côté, bons plans de l'autre */
.zt-duo {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 28px;
	margin-top: var(--wp--preset--spacing--60) !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

.zt-duo-carte {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 24px 26px;
	border-radius: var(--zt-r);
	background: var(--wp--preset--color--papier);
	box-shadow: var(--zt-nm);
	color: var(--wp--preset--color--encre);
	text-decoration: none;
}

.zt-duo-guide {
	transition: transform .35s var(--zt-ease), box-shadow .35s var(--zt-ease);
}

.zt-duo-guide:hover {
	transform: translateY(-3px);
	box-shadow: var(--zt-nm-lg);
	color: var(--wp--preset--color--encre);
}

.zt-duo-guide .zt-chip {
	align-self: flex-start;
}

.zt-duo-titre {
	font-family: var(--wp--preset--font-family--archivo);
	font-weight: 900;
	font-size: clamp(1.25rem, 1rem + .9vw, 1.6rem);
	line-height: 1.05;
	text-transform: uppercase;
	letter-spacing: -.01em;
}

.zt-duo-texte {
	color: var(--wp--preset--color--gris);
	font-size: .95rem;
	line-height: 1.45;
}

.zt-duo-fleche {
	position: absolute;
	right: 22px;
	bottom: 18px;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--color--accent);
	box-shadow: var(--zt-accent-glow);
	font-weight: 700;
}

.zt-duo-guide .zt-duo-texte {
	padding-right: 56px;
}

.zt-duo-boutons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-top: 6px;
}

@media (max-width: 760px) {
	.zt-duo {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}
}

.zt-duo .zt-chip {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 9px;
	color: var(--wp--preset--color--encre);
	background: var(--wp--preset--color--accent);
	box-shadow: 3px 3px 9px rgba(245, 163, 26, .32), -3px -3px 8px rgba(255, 255, 255, .4);
}

/* Logos officiels Amazon et ManoMano dans les boutons */
.zt-achat-btn img {
	display: block;
	height: 20px;
	width: auto;
	max-width: 80%;
}

.zt-achat-amazon img {
	height: 22px;
	margin-top: 5px;
}

/* Photo de l'article en tête de la barre d'achat */
.zt-achat-photo {
	grid-column: 1 / -1;
	display: block;
	overflow: hidden;
	border-radius: 13px;
	aspect-ratio: 16 / 10;
	box-shadow: var(--zt-nm-sm);
}

.zt-achat-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s var(--zt-ease);
}

.zt-achat-photo:hover img {
	transform: scale(1.04);
}

@media (max-width: 899px) {
	.zt-achat-avec-photo {
		grid-template-columns: auto auto 1fr 1fr;
		padding-left: 8px;
	}
	.zt-achat-photo {
		grid-column: auto;
		width: 52px;
		height: 42px;
		aspect-ratio: auto;
		border-radius: 10px;
	}
}

/* Boutons d'achat dans les articles (remplacent les anciennes images « Acheter sur ») */
.zt-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	max-width: 300px;
	height: 54px;
	margin: 0 auto 12px;
	border-radius: 14px;
	font-family: var(--wp--preset--font-family--archivo);
	font-size: .9rem;
	font-weight: 600;
	text-decoration: none !important;
	transition: transform .3s var(--zt-ease), box-shadow .3s var(--zt-ease);
}

.zt-cta:hover {
	transform: translateY(-2px);
}

.zt-cta:focus-visible {
	outline: 3px solid var(--wp--preset--color--encre);
	outline-offset: 2px;
}

.zt-cta img {
	display: block;
	flex: none;
	height: 21px !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	box-shadow: none !important;
	border-radius: 0 !important;
}

.zt-cta-amazon,
.zt-cta-amazon:hover {
	background: #131921;
	color: #fff !important;
	box-shadow: 0 10px 20px -10px rgba(19, 25, 33, .7);
}

.zt-cta-amazon img {
	height: 23px !important;
	margin-top: 6px !important;
}

.zt-cta span:first-child {
	white-space: nowrap;
}

.zt-cta-mano,
.zt-cta-mano:hover {
	background: #fff;
	color: #0B2A4A !important;
	box-shadow: var(--zt-nm-sm);
}

/* Bloc produit : photo et boutons réunis dans une carte */
.wp-block-columns:has(> .wp-block-column .zt-cta) {
	align-items: center !important;
	gap: 24px;
	padding: 20px;
	border-radius: 22px;
	background: var(--wp--preset--color--papier);
	box-shadow: var(--zt-nm-lg);
}

.wp-block-columns:has(> .wp-block-column .zt-cta) figure img {
	border-radius: 14px;
	background: #fff;
}

.wp-block-column:has(> .zt-cta) {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.wp-block-column:has(> .zt-cta) > .zt-cta:last-child {
	margin-bottom: 0;
}

@media (max-width: 781px) {
	.wp-block-columns:has(> .wp-block-column .zt-cta) figure img {
		max-width: 200px !important;
		margin-inline: auto;
	}
	.wp-block-columns:has(> .wp-block-column .zt-cta),
	.wp-block-columns:has(> .wp-block-column .zt-cta) .wp-block-columns {
		gap: 14px;
	}
	.wp-block-columns:has(> .wp-block-column .zt-cta) figure {
		display: flex;
		justify-content: center;
		width: 100%;
		margin: 0;
	}
}

/* Carte produit : mêmes marges en haut et en bas */
.wp-block-columns:has(> .wp-block-column .zt-cta) :is(figure, .wp-block-image, .wp-block-column > *) {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

.wp-block-columns:has(> .wp-block-column .zt-cta) figure img {
	display: block;
}

.wp-block-columns:has(> .wp-block-column .zt-cta) .zt-cta {
	margin-bottom: 0;
}

.wp-block-column:has(.zt-cta) {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 12px;
}

/* Ancres : le titre visé ne passe pas sous le menu collant */
html {
	scroll-padding-top: 100px;
}


/* Barre d'achat collante : elle suit l'écran puis s'arrête au-dessus du pied de page */
.zt-achat.zt-achat-colle {
	position: sticky;
	right: auto;
	bottom: 20px;
	margin: 0 20px 20px auto;
}

/* Ombre nette, sans halo blanc */
.zt-achat {
	border: 1px solid rgba(26, 22, 16, .07);
	box-shadow: 0 14px 34px -14px rgba(40, 32, 20, .38), 0 2px 6px rgba(40, 32, 20, .06);
}

.zt-achat-mano,
.zt-achat-photo {
	box-shadow: 0 1px 2px rgba(40, 32, 20, .12), 0 0 0 1px rgba(26, 22, 16, .06);
}

@media (max-width: 899px) {
	.zt-achat.zt-achat-colle {
		bottom: max(10px, env(safe-area-inset-bottom));
		margin: 16px 10px 10px;
	}
	body:has(.zt-achat-colle) {
		padding-bottom: 0;
	}
}

/* Barre d'achat, trois cas : un produit, une sélection, les bons plans */
.zt-achat-texte {
	grid-column: 1 / -1;
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
	padding: 2px 4px 4px;
}

.zt-achat-texte .zt-achat-titre {
	padding: 0;
}

.zt-achat-nom {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	font-family: var(--wp--preset--font-family--archivo);
	font-size: .92rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--wp--preset--color--encre);
}

.zt-achat-voir {
	grid-column: 1 / -1;
	gap: 6px;
	background: var(--wp--preset--color--encre);
	color: #fff;
	font-family: var(--wp--preset--font-family--archivo);
	font-size: .9rem;
	font-weight: 700;
}

.zt-achat-voir:hover {
	color: #fff;
}

@media (max-width: 899px) {
	.zt-achat.zt-achat-produit {
		grid-template-columns: minmax(0, 1fr) 88px 46px;
		gap: 8px;
		padding: 8px;
	}
	.zt-achat.zt-achat-produit.zt-achat-avec-photo {
		grid-template-columns: 46px minmax(0, 1fr) 88px 46px;
	}
	.zt-achat-produit .zt-achat-photo {
		width: 46px;
		height: 46px;
		border-radius: 12px;
	}
	.zt-achat-produit .zt-achat-texte {
		grid-column: auto;
		padding: 0 2px;
		gap: 2px;
	}
	.zt-achat-produit .zt-achat-titre {
		max-width: none;
		font-size: .58rem;
		white-space: nowrap;
	}
	.zt-achat-produit .zt-achat-nom {
		font-size: .8rem;
		line-height: 1.2;
	}
	.zt-achat-produit .zt-achat-btn {
		height: 46px;
	}
	.zt-achat-produit .zt-achat-amazon img {
		height: 19px;
		margin-top: 5px;
	}
	.zt-achat-produit .zt-achat-mano img {
		width: 22px !important;
		height: 22px !important;
		max-width: none;
		object-fit: cover;
		object-position: left center;
	}
	.zt-achat.zt-achat-selection {
		grid-template-columns: auto 1fr;
		align-items: center;
	}
	.zt-achat-selection .zt-achat-titre {
		max-width: none;
		white-space: nowrap;
	}
	.zt-achat-selection .zt-achat-voir {
		grid-column: auto;
	}
	.zt-achat-general .zt-achat-titre {
		max-width: 70px;
	}
}

/* Téléphone : « Trouver ce produit » seul, sans le nom */
@media (max-width: 899px) {
	.zt-achat-produit .zt-achat-nom {
		display: none;
	}
	.zt-achat-produit .zt-achat-titre {
		font-size: .66rem;
		line-height: 1.3;
		white-space: normal;
		color: var(--wp--preset--color--encre);
	}
}

/* Téléphone : photo plus large dans la barre */
@media (max-width: 899px) {
	.zt-achat.zt-achat-produit.zt-achat-avec-photo {
		grid-template-columns: 68px minmax(0, 1fr) 88px 46px;
	}
	.zt-achat-produit .zt-achat-photo {
		width: 68px;
	}
	.zt-achat-produit .zt-achat-titre {
		letter-spacing: .06em;
		white-space: nowrap;
	}
}

@media (max-width: 899px) {
	.zt-achat-produit .zt-achat-titre {
		font-size: .62rem;
		letter-spacing: .04em;
	}
}

@media (max-width: 374px) {
	.zt-achat.zt-achat-produit.zt-achat-avec-photo {
		grid-template-columns: 52px minmax(0, 1fr) 80px 44px;
	}
	.zt-achat-produit .zt-achat-photo {
		width: 52px;
	}
	.zt-achat-produit .zt-achat-titre {
		white-space: normal;
	}
}
