/* =========================================================
   TazaShop — Design tokens & composants partagés
   ========================================================= */

:root {
	--tz-bordeaux: #8E1638;
	--tz-bordeaux-dark: #71102C;
	--tz-rose: #DF587A;
	--tz-rose-powder: #FBD9E1;
	--tz-rose-light: #FFF2F5;
	--tz-bg: #FFFFFF;
	--tz-white: #FFFFFF;
	--tz-text: #20191C;
	--tz-text-2: #70666A;
	--tz-border: #EDE2E5;
	--tz-gold: #C89B5B;
	--tz-green: #2AAF67;
	--tz-star: #F5A000;

	--tz-font-title: "Playfair Display", Georgia, "Times New Roman", serif;
	--tz-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

	--tz-radius-sm: 8px;
	--tz-radius: 10px;
	--tz-radius-lg: 12px;
	--tz-shadow: 0 1px 2px rgba(37, 27, 30, .04), 0 6px 18px rgba(122, 23, 53, .05);
	--tz-shadow-hover: 0 2px 6px rgba(37, 27, 30, .06), 0 14px 30px rgba(122, 23, 53, .10);

	--tz-container: 1380px;
	--tz-cart-icon: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='20' r='1.4'/%3E%3Ccircle cx='18' cy='20' r='1.4'/%3E%3Cpath d='M2 3h3l2.4 11.2A2 2 0 0 0 9.4 16h8.5a2 2 0 0 0 2-1.6L21.5 7H6'/%3E%3C/svg%3E");
	--tz-gap: 24px;
}

body.tz-theme {
	background: var(--tz-bg);
	color: var(--tz-text);
	font-family: var(--tz-font-body);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

.tz-theme h1,
.tz-theme h2,
.tz-theme h3,
.tz-theme h4 {
	font-family: var(--tz-font-title);
	color: var(--tz-text);
	line-height: 1.2;
	font-weight: 600;
	margin: 0 0 .5em;
}

.tz-theme a {
	color: var(--tz-bordeaux);
	text-decoration: none;
}

.tz-theme a:hover {
	color: var(--tz-bordeaux-dark);
}

.tz-theme img {
	max-width: 100%;
	height: auto;
}

.tz-theme :focus-visible,
.tz-theme a:focus-visible,
.tz-theme button:focus-visible,
.tz-theme input:focus-visible,
.tz-theme select:focus-visible,
.tz-theme textarea:focus-visible {
	outline: 2px solid var(--tz-bordeaux);
	outline-offset: 2px;
	border-radius: 4px;
}

/* Mise en page ------------------------------------------------------- */

.tz-container {
	width: calc(100% - 48px);
	max-width: var(--tz-container);
	margin-inline: auto;
}

/* Largeur utile des pages WooCommerce et éditoriales : le thème parent laisse
   la main à Elementor, on la fixe donc uniquement sur nos gabarits. */
.tz-theme.woocommerce .site-main,
.tz-theme.woocommerce-page .site-main,
.tz-theme.tz-editorial .site-main {
	width: calc(100% - 48px);
	max-width: var(--tz-container);
	margin-inline: auto;
	padding-inline: 0;
}

/* Sections pleine largeur dans un conteneur centré. */
.tz-bleed {
	width: 100vw;
	max-width: 100vw;
	margin-inline: calc(50% - 50vw);
}

.tz-section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin: 48px 0 20px;
}

.tz-section-head h2 {
	font-size: clamp(22px, 2.4vw, 28px);
	margin: 0;
}

.tz-section-head__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 500;
	color: var(--tz-text-2);
}

.tz-section-head__link:hover {
	color: var(--tz-bordeaux);
}

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

.tz-theme .tz-btn,
.tz-theme .woocommerce a.button,
.tz-theme .woocommerce button.button,
.tz-theme .woocommerce input.button,
.tz-theme .woocommerce .button,
.tz-theme .wp-element-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 20px;
	border: 0;
	border-radius: var(--tz-radius-sm);
	background: var(--tz-bordeaux);
	color: var(--tz-white);
	font-family: var(--tz-font-body);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	transition: background-color .18s ease, color .18s ease;
}

.tz-theme .tz-btn:hover,
.tz-theme .woocommerce a.button:hover,
.tz-theme .woocommerce button.button:hover,
.tz-theme .woocommerce input.button:hover,
.tz-theme .wp-element-button:hover {
	background: var(--tz-bordeaux-dark);
	color: var(--tz-white);
}

.tz-btn--soft,
.tz-theme .tz-btn--soft:hover {
	background: var(--tz-rose);
	color: var(--tz-white);
}

.tz-theme .tz-btn--soft:hover {
	background: #c25872;
}

.tz-btn--outline {
	background: transparent;
	border: 1px solid var(--tz-border);
	color: var(--tz-text);
}

.tz-theme .tz-btn--outline:hover {
	background: var(--tz-rose-light);
	color: var(--tz-bordeaux);
}

.tz-btn--block,
.tz-theme .tz-btn--block {
	display: flex;
	width: 100%;
}

.tz-btn .tz-icon {
	flex: 0 0 auto;
}

/* Badges ------------------------------------------------------------- */

.tz-badge {
	display: inline-flex;
	align-items: center;
	padding: 5px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: .01em;
	color: var(--tz-white);
	background: var(--tz-bordeaux);
}

.tz-badge--sale {
	background: var(--tz-rose);
}

.tz-badge--new {
	background: var(--tz-gold);
}

/* Notes et avis ------------------------------------------------------ */

.tz-theme .star-rating,
.tz-theme .comment-form-rating .stars a {
	color: var(--tz-star);
}

.tz-theme .star-rating::before {
	color: #E6D9DD;
}

.tz-rating {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 6px 0 0;
}

.tz-rating .star-rating {
	margin: 0;
	font-size: 13px;
}

.tz-rating__count {
	font-size: 13px;
	color: var(--tz-text-2);
}

/* Réassurance -------------------------------------------------------- */

.tz-perks {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 14px;
}

.tz-perks li {
	display: flex;
	align-items: center;
	gap: 12px;
}

.tz-perks__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	flex: 0 0 40px;
	border-radius: 10px;
	background: var(--tz-rose-light);
	color: var(--tz-bordeaux);
}

.tz-perks__text {
	display: block;
	font-size: 13.5px;
	line-height: 1.4;
	color: var(--tz-text);
}

.tz-perks__text strong {
	display: block;
	font-weight: 600;
}

.tz-perks__text span {
	display: block;
	color: var(--tz-text-2);
}

/* Fil d'Ariane ------------------------------------------------------- */

.tz-breadcrumb,
.tz-theme .woocommerce-breadcrumb {
	font-size: 13px;
	color: var(--tz-text-2);
	margin: 0 0 14px;
}

.tz-breadcrumb ol {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
}

.tz-breadcrumb li + li::before {
	content: "›";
	margin-right: 8px;
	color: var(--tz-rose);
}

.tz-breadcrumb a,
.tz-theme .woocommerce-breadcrumb a {
	color: var(--tz-text-2);
}

.tz-breadcrumb a:hover,
.tz-theme .woocommerce-breadcrumb a:hover {
	color: var(--tz-bordeaux);
}

.tz-breadcrumb__sep {
	margin: 0 8px;
	color: var(--tz-rose);
}

/* Hero partagé ------------------------------------------------------- */

.tz-hero {
	background: var(--tz-rose-light);
	overflow: hidden;
}

.tz-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
	align-items: center;
	gap: 32px;
	padding-block: 40px;
}

.tz-hero__title {
	font-size: clamp(34px, 5vw, 58px);
	margin: 0 0 12px;
	letter-spacing: -.01em;
}

.tz-hero__accent {
	color: var(--tz-rose);
}

.tz-hero__intro {
	max-width: 52ch;
	margin: 0;
	color: var(--tz-text-2);
	font-size: 16px;
}

.tz-hero__media img {
	display: block;
	width: 100%;
	border-radius: var(--tz-radius-lg);
	object-fit: cover;
}

/* Champs ------------------------------------------------------------- */

.tz-theme input[type="text"],
.tz-theme input[type="email"],
.tz-theme input[type="search"],
.tz-theme input[type="tel"],
.tz-theme input[type="number"],
.tz-theme input[type="password"],
.tz-theme select,
.tz-theme textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--tz-border);
	border-radius: var(--tz-radius-sm);
	background: var(--tz-white);
	color: var(--tz-text);
	font-family: var(--tz-font-body);
	font-size: 14px;
}

.tz-theme input::placeholder,
.tz-theme textarea::placeholder {
	color: #A3939A;
}

.tz-theme input:focus,
.tz-theme select:focus,
.tz-theme textarea:focus {
	border-color: var(--tz-rose);
}

/* États vides -------------------------------------------------------- */

.tz-empty {
	background: var(--tz-white);
	border: 1px solid var(--tz-border);
	border-radius: var(--tz-radius);
	padding: 48px 24px;
	text-align: center;
}

.tz-empty p {
	color: var(--tz-text-2);
	margin-bottom: 20px;
}

/* Divers ------------------------------------------------------------- */

.tz-icon--flip {
	transform: scaleX(-1);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.tz-toast {
	position: fixed;
	left: 50%;
	bottom: 28px;
	transform: translateX(-50%);
	background: var(--tz-bordeaux);
	color: var(--tz-white);
	padding: 10px 18px;
	border-radius: 999px;
	font-size: 14px;
	z-index: 9999;
}

@media (prefers-reduced-motion: reduce) {
	.tz-theme * {
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
	}
}
