/**
 * Petites truffes — styles complémentaires à theme.json.
 */

:root {
	--pt-radius-card: var(--wp--custom--radius--card, 18px);
	--pt-radius-button: var(--wp--custom--radius--button, 14px);
	--pt-display: var(--wp--preset--font-family--lilita);
	--pt-noir: var(--wp--preset--color--noir);
	--pt-bordeaux: var(--wp--preset--color--bordeaux);
	--pt-bordeaux-vif: var(--wp--preset--color--bordeaux-vif);
	--pt-rose: var(--wp--preset--color--rose-pale);
	--pt-ligne: var(--wp--preset--color--ligne);
}

html {
	scroll-behavior: smooth;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

:where(h1, h2, h3, h4, h5, h6) {
	text-wrap: balance;
}

[id] {
	scroll-margin-top: 160px;
}

.is-italic {
	font-style: italic;
}

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

.wp-element-button,
.wp-block-button__link {
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.wp-block-button.is-style-pill .wp-block-button__link {
	border-radius: 999px;
}

.pt-button-xl .wp-block-button__link {
	min-width: min(100%, 22rem);
	padding: 0.42em 1.6em 0.48em;
	font-size: clamp(1.5rem, 2.1vw, 1.875rem);
	text-align: center;
}

/* ---------- En-tête ---------- */

.pt-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--wp--preset--color--blanc);
	transition: box-shadow 0.2s ease;
}

body.admin-bar .pt-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.pt-header.is-scrolled {
	box-shadow: 0 6px 24px rgb(0 0 0 / 7%);
}

.pt-header__inner {
	gap: 1.5rem;
}

.pt-header .wp-block-site-logo img {
	width: clamp(108px, 9.5vw, 140px);
	height: auto;
}

.pt-header__nav {
	flex: 1 1 auto;
	min-width: 0;
	font-size: clamp(1rem, 1.2vw, 1.125rem) !important;
}

/* Le menu reste toujours sur une seule ligne */
.pt-header__nav .wp-block-navigation__container {
	flex-wrap: nowrap !important;
	gap: clamp(1rem, 2.2vw, 2rem) !important;
}

.pt-header__nav .wp-block-navigation-item__content {
	white-space: nowrap;
}

.pt-header__nav .wp-block-navigation-item__content {
	padding-block: 0.35rem;
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 0 2px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	transition: background-size 0.25s ease;
}

.pt-header__nav .wp-block-navigation-item__content:hover,
.pt-header__nav .wp-block-navigation-item__content:focus-visible {
	color: var(--pt-bordeaux-vif);
	background-size: 100% 2px;
}

.pt-header__cta .wp-block-button__link {
	font-size: clamp(1.125rem, 1.4vw, 1.375rem);
	padding: 0.4em 1.2em 0.45em;
	white-space: nowrap;
}

.pt-header__actions .wc-block-mini-cart__button,
.pt-header__actions .wp-block-woocommerce-customer-account a {
	padding: 0.4rem;
	color: var(--pt-noir);
}

.pt-header__actions .wc-block-mini-cart__icon {
	width: 30px;
	height: 30px;
}

.pt-header__actions .wc-block-mini-cart__badge {
	background: var(--pt-bordeaux-vif);
	color: #fff;
	border-color: #fff;
}

.pt-header__actions .wc-block-customer-account__account-icon {
	width: 28px;
	height: 28px;
}

/* Menu mobile */
.pt-header .wp-block-navigation__responsive-container.is-menu-open {
	padding: 2rem 1.5rem;
}

.pt-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	gap: 1.25rem;
}

.pt-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-family: var(--pt-display);
	font-size: 2rem;
	text-transform: uppercase;
}

.pt-header .wp-block-navigation__responsive-container-open svg,
.pt-header .wp-block-navigation__responsive-container-close svg {
	width: 32px;
	height: 32px;
}

/* Pas assez de place pour le bouton : le menu contient déjà « La collection » */
@media (max-width: 1500px) {
	.pt-header__cta {
		display: none !important;
	}
}

@media (max-width: 1180px) {
	/* Menu « hamburger » dès la tablette (WordPress ne le fait qu'à 600 px) */
	.pt-header__nav {
		order: 3;
		flex: 0 0 auto;
	}

	.pt-header__actions {
		margin-left: auto !important;
	}

	.pt-header__nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex !important;
	}

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

@media (max-width: 599px) {
	.pt-header__inner {
		gap: 0.5rem;
	}
}

/* ---------- Titres de section avec filet ---------- */

.pt-title-line {
	display: flex;
	align-items: center;
	gap: clamp(1rem, 2vw, 1.5rem);
}

.pt-title-line::after {
	content: "";
	flex: 1 1 auto;
	height: 2px;
	min-width: 2rem;
	margin-top: 0.12em;
	background: var(--pt-bordeaux-vif);
}

/* ---------- Bandeau principal ---------- */

.pt-hero {
	overflow: hidden;
	margin-top: 0.5rem;
	background-color: #ebeaef;
}

.pt-hero .wp-block-cover__inner-container {
	width: 100%;
}

.pt-hero__content {
	max-width: min(41rem, 47%);
}

/*
 * La photo occupe toute la largeur de l'encart et reste calée en bas.
 * Elle contient du vrai fond au-dessus des colliers : quand l'encart est moins haut
 * que la photo, c'est ce fond qui est coupé (aucune bande ni raccord visible),
 * et les colliers gardent toujours la même place (moitié droite).
 */
@media (min-width: 1024px) {
	.pt-hero .wp-block-cover__image-background {
		top: auto !important;
		right: 0 !important;
		bottom: 0 !important;
		left: 0 !important;
		width: 100% !important;
		height: auto !important;
		max-width: none !important;
		max-height: none !important;
		object-fit: fill !important;
	}
}

.pt-hero__title {
	margin: 0;
	font-size: clamp(2.125rem, 3.4vw, 3rem);
	line-height: 1.02;
	color: var(--pt-noir);
}

.pt-hero__lead {
	margin-top: 0.5rem;
	line-height: 1.3;
	max-width: 31rem;
}

.pt-hero__buttons {
	margin-top: clamp(1.75rem, 4vw, 3.25rem);
}

.pt-hero__reassurance {
	margin-top: clamp(2rem, 5vw, 4.25rem);
	font-size: 1.0625rem !important;
}

/* Tablette et mobile : texte au-dessus, photo en dessous */
@media (max-width: 1023px) {
	.pt-hero.wp-block-cover {
		--pt-hero-pad: clamp(1.5rem, 5.6vw, 80px);
		flex-direction: column;
		align-items: stretch;
		min-height: 0 !important;
		padding-bottom: 0 !important;
	}

	.pt-hero .wp-block-cover__inner-container {
		order: 1;
	}

	/* On agrandit la photo et on ne garde que le bas à droite : les colliers en gros plan */
	.pt-hero .wp-block-cover__image-background {
		position: relative !important;
		order: 2;
		inset: auto;
		align-self: flex-end;
		width: calc(1.6 * (100% + 2 * var(--pt-hero-pad))) !important;
		max-width: none;
		height: auto !important;
		margin: 1.75rem calc(-1 * var(--pt-hero-pad)) 0 0;
		aspect-ratio: 2.4;
		object-fit: cover;
		object-position: 100% 100% !important;
		/* Le haut de la photo se fond dans le fond de l'encart : pas de raccord visible */
		-webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 30%);
		mask-image: linear-gradient(to bottom, transparent 0, #000 30%);
	}

	.pt-hero__content {
		max-width: 38rem;
	}

	.pt-hero__reassurance {
		margin-top: 1.5rem;
	}
}

/* ---------- Comment ça marche ---------- */

.pt-steps {
	gap: 0 !important;
}

.pt-step {
	padding: 0.25rem clamp(0.5rem, 1.2vw, 1rem);
}

.pt-step + .pt-step {
	border-left: 1px solid var(--pt-ligne);
}

.pt-pill {
	display: table;
	margin-inline: auto;
	padding: 0.2rem 1.15rem 0.25rem;
	border-radius: 999px;
	background: var(--pt-rose);
	color: var(--pt-bordeaux-vif);
	font-size: 1.0625rem;
	line-height: 1.4;
}

.pt-step__title {
	margin-top: 1.1rem;
	margin-bottom: 0;
	font-size: clamp(1.375rem, 2.15vw, 1.9375rem);
	text-wrap: nowrap;
}

@media (max-width: 1100px) {
	.pt-step__title {
		text-wrap: balance;
	}
}

.pt-step__text {
	margin-top: 0.15rem;
	font-size: 1.1875rem;
	line-height: 1.3;
}

@media (max-width: 781px) {
	.pt-step + .pt-step {
		border-left: 0;
		border-top: 1px solid var(--pt-ligne);
		padding-top: 1.75rem;
		margin-top: 1.75rem;
	}
}

/* Frise de « capsules » bordeaux */
.pt-scallops {
	--pt-scallop-w: clamp(34px, 4.1vw, 59px);
	height: calc(var(--pt-scallop-w) * 2.2);
	margin-top: 0 !important;
	background:
		linear-gradient(90deg, #ead1d5 0%, #b9737e 26%, #8e1b2e 50%, #b9737e 74%, #ead1d5 100%);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 132'%3E%3Crect x='1.5' y='0' width='57' height='132' rx='28.5'/%3E%3C/svg%3E") 0 0 / var(--pt-scallop-w) 100% repeat-x;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 132'%3E%3Crect x='1.5' y='0' width='57' height='132' rx='28.5'/%3E%3C/svg%3E") 0 0 / var(--pt-scallop-w) 100% repeat-x;
}

.pt-how {
	/* La frise déborde sur la section suivante (fond blanc) */
	background: linear-gradient(var(--wp--preset--color--gris-clair) calc(100% - var(--pt-scallop-half, 60px)), transparent 0) !important;
}

/* ---------- Grilles de produits ---------- */

.pt-product-section > .pt-title-line {
	margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
}

.pt-products .wc-block-product-template,
.pt-products .pt-cards {
	gap: clamp(1rem, 1.6vw, 22px) !important;
}

.pt-products .wc-block-product {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.pt-card__image {
	margin-bottom: 1.1rem !important;
}

.pt-card__image,
.pt-card__image a,
.pt-card__image img {
	border-radius: var(--pt-radius-card);
	overflow: hidden;
}

.pt-card__image img {
	aspect-ratio: 10 / 11;
	width: 100%;
	height: auto;
	object-fit: cover;
	background: #e6e6e8;
	transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.wc-block-product:hover .pt-card__image img {
	transform: scale(1.04);
}

.pt-card__title {
	margin: 0 !important;
	font-size: clamp(1.375rem, 2.2vw, 2rem) !important;
	line-height: 1.05;
	text-align: left !important;
}

.pt-card__title a {
	text-decoration: none;
}

.pt-card__tagline {
	margin: 0.1rem 0 0 !important;
	font-size: clamp(1.125rem, 1.75vw, 1.5625rem);
	line-height: 1.2;
	color: var(--wp--preset--color--encre);
}

.pt-card__tagline p {
	margin: 0;
}

.pt-card__price {
	margin: 0.45rem 0 0.9rem !important;
	text-align: left !important;
	font-size: clamp(1.625rem, 2.6vw, 2.375rem) !important;
	line-height: 1.1;
	color: var(--pt-noir);
}

.pt-card__price .wc-block-components-product-price {
	display: inline;
}

.pt-sizes {
	font-family: var(--wp--preset--font-family--outfit);
	font-size: 0.9em;
	font-weight: 400;
	letter-spacing: 0.01em;
}

.pt-sizes__sep {
	margin: 0 0.3em;
}

.pt-card__button {
	margin-top: auto !important;
	width: 100%;
	align-items: stretch !important;
}

.pt-card__button .wp-block-button__link,
.pt-card__button .wc-block-components-product-button__button {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100% !important;
	min-height: clamp(3.25rem, 4.6vw, 4.125rem);
	margin: 0;
	border-radius: var(--pt-radius-button);
	font-size: clamp(1.5rem, 2.3vw, 2.125rem);
	background: var(--pt-noir);
	color: #fff;
}

.pt-card__button .wp-block-button__link:hover,
.pt-card__button .wc-block-components-product-button__button:hover {
	background: var(--pt-bordeaux-vif);
}

.pt-card__button .added_to_cart {
	display: block;
	margin-top: 0.5rem;
	font-size: 1rem;
	text-align: center;
}

@media (max-width: 600px) {
	.pt-title-line::after {
		display: none;
	}

	.pt-products .wc-block-product-template {
		grid-template-columns: 1fr !important;
		row-gap: 2.5rem !important;
	}

	.pt-card__image img {
		aspect-ratio: 4 / 3;
	}
}

/* ---------- Composition ---------- */

.pt-composition__columns {
	margin: 0;
	gap: 0 !important;
}

.pt-composition__media {
	align-self: center !important;
	flex: 0 0 50% !important;
}

.pt-composition__content {
	flex: 1 1 50% !important;
}

.pt-composition__image {
	height: 100%;
	margin: 0;
}

.pt-composition__image img {
	display: block;
	width: 100%;
	height: clamp(420px, 44vw, 640px);
	max-height: 640px;
	object-fit: cover;
	object-position: 50% 50%;
}

.pt-composition__content > * {
	max-width: 34rem;
}

.pt-composition__content h2 {
	font-size: clamp(2.125rem, 3.9vw, 3.5rem);
	margin-bottom: 1.1rem;
	text-wrap: wrap;
}

.pt-composition__content > p {
	line-height: 1.35;
}

.pt-features {
	list-style: none;
	padding: 0;
	margin: 1.75rem 0 0;
	display: grid;
	gap: 1.35rem;
}

.pt-features li {
	display: flex;
	align-items: center;
	gap: 1.1rem;
	padding-left: 0.4rem;
	font-weight: 600;
	font-size: 1.125rem;
}

.pt-features li::before {
	content: "";
	flex: 0 0 24px;
	height: 24px;
	background: currentColor;
	-webkit-mask: var(--pt-icon) center / contain no-repeat;
	mask: var(--pt-icon) center / contain no-repeat;
}

.pt-icon-recycle {
	--pt-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 19H4.815a1.83 1.83 0 0 1-1.57-.881 1.785 1.785 0 0 1-.004-1.784L7.196 9.5'/%3E%3Cpath d='M11 19h8.203a1.83 1.83 0 0 0 1.556-.89 1.784 1.784 0 0 0 0-1.775l-1.226-2.12'/%3E%3Cpath d='m14 16-3 3 3 3'/%3E%3Cpath d='M8.293 13.596 7.196 9.5 3.1 10.598'/%3E%3Cpath d='m9.344 5.811 1.093-1.892A1.83 1.83 0 0 1 11.985 3a1.784 1.784 0 0 1 1.546.888l3.943 6.843'/%3E%3Cpath d='m13.378 9.633 4.096 1.098 1.097-4.096'/%3E%3C/svg%3E");
}

.pt-icon-shield {
	--pt-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z'/%3E%3C/svg%3E");
}

.pt-icon-pin {
	--pt-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

.pt-size-title {
	font-size: clamp(1.625rem, 2.4vw, 2.125rem) !important;
	margin-bottom: 0.75rem;
}

/* Tableau des tailles */
.pt-size-table {
	margin: 0;
}

.pt-size-table table {
	border-collapse: collapse;
	width: 100%;
}

.pt-size-table th,
.pt-size-table td {
	border: 0;
	padding: 0.45rem 0.75rem;
	text-align: center;
}

.pt-size-table th {
	white-space: nowrap;
	font-family: var(--pt-display);
	font-weight: 400;
	font-size: clamp(1.25rem, 1.7vw, 1.5rem);
	padding-block: 0.35rem 0.65rem;
	border-bottom: 1px solid var(--pt-ligne);
}

.pt-size-table th + th,
.pt-size-table td + td {
	border-left: 1px solid var(--pt-ligne);
}

.pt-size-table td {
	color: var(--wp--preset--color--gris-doux);
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.pt-size-table tbody tr:first-child td {
	padding-top: 1rem;
}

.pt-size-table tbody tr:last-child td {
	padding-bottom: 1.5rem;
}

@media (max-width: 781px) {
	.pt-composition__image img {
		height: auto;
		max-height: 420px;
		aspect-ratio: 4 / 3;
	}

	.pt-composition__content {
		padding-inline: clamp(1rem, 5.8vw, 84px) !important;
	}
}

/* ---------- Newsletter ---------- */

.pt-newsletter.wp-block-cover {
	overflow: hidden;
}

.pt-newsletter .wp-block-cover__inner-container {
	width: 100%;
}

.pt-newsletter__content {
	max-width: 33rem;
}

.pt-newsletter h2 {
	font-size: clamp(2rem, 3.4vw, 3rem);
	margin-bottom: 0.6rem;
}

.pt-newsletter__content > p {
	line-height: 1.3;
	margin-top: 0;
}

.pt-newsletter-form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.pt-newsletter-form__input {
	flex: 1 1 15rem;
	min-width: 0;
	height: 3.6rem;
	padding: 0 1.5rem;
	border: 2px solid #fff;
	border-radius: 999px;
	background: transparent;
	color: #fff;
	font: inherit;
	font-size: 1.125rem;
}

.pt-newsletter-form__input::placeholder {
	color: rgb(255 255 255 / 85%);
}

.pt-newsletter-form__input:focus {
	outline: none;
	background: rgb(255 255 255 / 10%);
	box-shadow: 0 0 0 3px rgb(255 255 255 / 35%);
}

.pt-newsletter-form__button {
	height: 3.6rem;
	padding: 0 1.9rem;
	border: 0;
	border-radius: 999px;
	background: #fff;
	color: var(--pt-bordeaux-vif);
	font-family: var(--pt-display);
	font-size: 1.5rem;
	cursor: pointer;
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.pt-newsletter-form__button:hover,
.pt-newsletter-form__button:focus-visible {
	background: var(--pt-rose);
	transform: translateY(-1px);
}

.pt-newsletter-form__message {
	flex-basis: 100%;
	margin: 0;
	font-weight: 600;
	min-height: 0;
}

.pt-newsletter-form__message:empty {
	display: none;
}

.pt-newsletter__legal {
	opacity: 0.85;
	margin-top: 0.75rem;
}

.pt-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (max-width: 781px) {
	.pt-newsletter .wp-block-cover__background {
		opacity: 0.7 !important;
	}
}

/* ---------- FAQ (et accordéons de la fiche produit) ---------- */

.pt-faq {
	max-width: none;
}

.pt-faq__item {
	border-bottom: 1px solid var(--pt-ligne);
	margin-top: 0 !important;
}

.pt-faq__item summary {
	position: relative;
	display: block;
	list-style: none;
	cursor: pointer;
	padding: 1.15rem 3rem 1.15rem 0;
	font-size: clamp(1.25rem, 2.2vw, 1.875rem);
	font-weight: 500;
	line-height: 1.2;
}

.pt-faq__item summary::-webkit-details-marker {
	display: none;
}

.pt-faq__item summary::after {
	content: "";
	position: absolute;
	right: 0.6rem;
	top: 50%;
	width: 0.6rem;
	height: 0.6rem;
	border-right: 3px solid currentColor;
	border-bottom: 3px solid currentColor;
	transform: translateY(-70%) rotate(45deg);
	transition: transform 0.25s ease;
}

.pt-faq__item[open] summary::after {
	transform: translateY(-25%) rotate(-135deg);
}

.pt-faq__item summary:hover {
	color: var(--pt-bordeaux-vif);
}

.pt-faq__item > :not(summary) {
	margin-top: 0;
	padding-bottom: 1.25rem;
	max-width: 60rem;
	font-size: 1.125rem;
	color: var(--wp--preset--color--gris-texte);
}

/* ---------- Pied de page ---------- */

.pt-footer {
	margin-top: 0;
}

.pt-footer .wp-block-site-logo img {
	width: clamp(150px, 13vw, 190px);
	height: auto;
	filter: brightness(0) invert(1);
}

.pt-footer__links {
	font-size: 1.1875rem;
}

.pt-footer__links p {
	margin: 0;
}

.pt-footer__links a {
	text-underline-offset: 0.18em;
}

.pt-footer__links a:hover {
	color: var(--pt-rose) !important;
}

.pt-footer__social {
	margin-top: 0.5rem !important;
}

.pt-footer__social .wp-social-link a {
	padding: 0;
}

.pt-footer__social .wp-social-link svg {
	width: 36px;
	height: 36px;
}

/* ---------- Pages de texte ---------- */

.pt-page--text h1 {
	font-size: clamp(2.25rem, 4vw, 3.25rem);
}

.pt-page--text h2 {
	font-size: clamp(1.5rem, 2.4vw, 2rem);
	margin-top: 2.5rem;
}

.pt-page--text h3 {
	font-size: 1.375rem;
	margin-top: 2rem;
}

.pt-page--text .wp-block-post-content {
	line-height: 1.65;
}

/* ---------- Boutique ---------- */

.pt-shop .wc-block-breadcrumbs,
.pt-product .wc-block-breadcrumbs {
	color: var(--wp--preset--color--gris-texte);
}

.pt-shop .wc-block-breadcrumbs a,
.pt-product .wc-block-breadcrumbs a {
	text-decoration: none;
}

.pt-shop__toolbar {
	margin-bottom: 1.5rem;
	color: var(--wp--preset--color--gris-texte);
}

.pt-shop__toolbar select,
.wc-block-catalog-sorting select {
	padding: 0.55rem 2.4rem 0.55rem 1rem;
	border: 1.5px solid var(--pt-ligne);
	border-radius: 999px;
	font: inherit;
	background-color: #fff;
}

.pt-shop .wp-block-term-description {
	max-width: 46rem;
	font-size: 1.25rem;
}

.pt-shop + .pt-how {
	margin-top: 0 !important;
}

.pt-pagination {
	margin-top: 2.5rem;
	font-size: 1.125rem;
}

.pt-pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 2.6rem;
	height: 2.6rem;
	border-radius: 999px;
	text-decoration: none;
}

.pt-pagination .page-numbers.current {
	background: var(--pt-noir);
	color: #fff;
}

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

.pt-product__gallery .woocommerce-product-gallery {
	position: relative;
}

.pt-product__gallery .woocommerce-product-gallery__image img,
.pt-product__gallery .flex-viewport {
	border-radius: var(--pt-radius-card);
}

.pt-product__gallery .woocommerce-product-gallery__wrapper {
	margin: 0;
}

.pt-product__gallery .flex-control-thumbs {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 0.75rem;
	margin: 0.9rem 0 0;
	padding: 0;
	list-style: none;
}

.pt-product__gallery .flex-control-thumbs img {
	border-radius: 10px;
	cursor: pointer;
	opacity: 0.6;
	transition: opacity 0.2s ease;
}

.pt-product__gallery .flex-control-thumbs img.flex-active,
.pt-product__gallery .flex-control-thumbs img:hover {
	opacity: 1;
}

.pt-product__gallery .woocommerce-product-gallery__trigger {
	position: absolute;
	top: 1rem;
	right: 1rem;
	z-index: 5;
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 4px 14px rgb(0 0 0 / 12%);
	text-indent: -9999px;
	overflow: hidden;
}

.pt-product__gallery .woocommerce-product-gallery__trigger::before {
	content: "";
	width: 1.1rem;
	height: 1.1rem;
	border: 2px solid var(--pt-noir);
	border-radius: 999px;
	text-indent: 0;
}

.pt-product__summary > * + * {
	margin-top: 0;
}

.pt-product__cat {
	display: inline-block;
	margin: 0 0 1rem;
}

.pt-product__cat a {
	text-decoration: none;
}

.pt-product__title {
	font-size: clamp(2.25rem, 4vw, 3.5rem);
	margin: 0 0 0.5rem;
}

.pt-product__tagline {
	margin: 0 0 1.25rem;
	line-height: 1.35;
	color: var(--wp--preset--color--gris-texte);
}

.pt-product__tagline p {
	margin: 0;
}

.pt-product__price {
	font-size: clamp(2rem, 3vw, 2.5rem) !important;
	margin-bottom: 1.5rem;
	color: var(--pt-noir);
}

.pt-product__form form.cart {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: stretch;
	margin: 0;
}

.pt-product__form .variations_form {
	display: block !important;
}

.pt-product__form table.variations {
	width: 100%;
	margin: 0 0 1rem;
	border: 0;
	border-collapse: collapse;
}

.pt-product__form table.variations th,
.pt-product__form table.variations td {
	display: block;
	padding: 0;
	border: 0;
	text-align: left;
}

.pt-product__form table.variations th label {
	display: block;
	margin-bottom: 0.4rem;
	font-weight: 600;
}

.pt-product__form table.variations select,
.woocommerce .pt-product__form table.variations select {
	width: 100% !important;
	height: 3.4rem !important;
	padding: 0 2.75rem 0 1.25rem !important;
	line-height: normal !important;
	color: var(--pt-noir);
	border: 2px solid var(--pt-noir);
	border-radius: var(--pt-radius-button);
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 1rem center / 18px no-repeat;
	font: inherit;
	font-size: 1.125rem !important;
	appearance: none;
	cursor: pointer;
}

.pt-product__form table.variations td.value {
	padding-bottom: 0;
}

.pt-product__form .single_variation_wrap {
	margin-top: 0.25rem;
}

.pt-product__form .woocommerce-variation-description p {
	margin: 0 0 0.5rem;
}

.pt-product__form .reset_variations {
	display: inline-block;
	margin-top: 0.5rem;
	font-size: 0.9375rem;
}

.pt-product__form .woocommerce-variation-price {
	margin-bottom: 0.75rem;
	font-family: var(--pt-display);
	font-size: 1.75rem;
}

.pt-product__form .woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.pt-product__form .quantity {
	display: flex;
}

.pt-product__form .quantity .qty,
.pt-product__form input.qty {
	width: 5.25rem;
	height: 100%;
	min-height: 3.75rem;
	padding: 0 0.5rem;
	border: 2px solid var(--pt-noir);
	border-radius: var(--pt-radius-button);
	font: inherit;
	font-size: 1.25rem;
	text-align: center;
}

.pt-product__form .single_add_to_cart_button {
	flex: 1 1 14rem;
	min-height: 3.75rem;
	margin: 0;
	border: 0;
	border-radius: var(--pt-radius-button);
	background: var(--pt-noir);
	color: #fff;
	font-family: var(--pt-display);
	font-size: clamp(1.5rem, 2.2vw, 1.875rem);
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.pt-product__form .single_add_to_cart_button:hover {
	background: var(--pt-bordeaux-vif);
}

.pt-product__form .single_add_to_cart_button.disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.pt-product__reassurance {
	margin: 1.5rem 0 1.25rem;
	padding: 0.85rem 1.1rem;
	border-radius: 12px;
	background: var(--wp--preset--color--gris-clair);
	font-size: 1rem !important;
	text-align: center;
}

.pt-product__summary .pt-faq__item summary {
	font-size: 1.25rem;
	padding-block: 0.95rem;
}

.pt-product__summary .pt-faq__item:first-of-type {
	border-top: 1px solid var(--pt-ligne);
}

.pt-product__summary .pt-size-table {
	padding-bottom: 0;
}

.pt-product__details {
	margin-top: var(--wp--preset--spacing--60) !important;
	font-size: 1.125rem;
	line-height: 1.6;
}

.pt-product__details .pt-title-line {
	max-width: none;
}

.pt-product__details .wp-block-post-content > * {
	max-width: 52rem;
}

.pt-product__form table.variations,
.pt-product__form table.variations tbody,
.pt-product__form table.variations tr {
	display: block;
	width: 100%;
}

@media (max-width: 781px) {
	.pt-product__columns {
		gap: 2rem !important;
	}
}

/* ---------- Notices, panier, commande ---------- */

.wc-block-components-notice-banner {
	border-radius: 12px;
}

.wc-block-components-button:not(.is-link),
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
	border-radius: var(--pt-radius-button) !important;
	font-family: var(--pt-display) !important;
	font-size: 1.5rem !important;
	min-height: 3.5rem;
}

.wc-block-components-button:not(.is-link):not(:disabled):hover {
	background-color: var(--pt-bordeaux-vif) !important;
	color: #fff !important;
}

.wc-block-components-text-input input,
.wc-block-components-text-input textarea,
.wc-blocks-components-select select,
.wc-block-components-combobox .components-combobox-control input {
	border-radius: 10px !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.wc-block-components-product-price,
.wc-block-cart-item__total {
	font-family: var(--pt-display);
}

.wp-block-woocommerce-cart .wc-block-components-product-name,
.wp-block-woocommerce-checkout .wc-block-components-product-name {
	font-family: var(--pt-display);
	text-transform: uppercase;
	text-decoration: none;
	font-size: 1.125rem;
}

.wc-block-components-sidebar-layout .wc-block-components-sidebar .wc-block-components-panel,
.wc-block-components-sidebar-layout .wc-block-components-sidebar .wc-block-components-totals-wrapper {
	border-color: var(--pt-ligne);
}

.wp-block-woocommerce-cart.alignwide,
.wp-block-woocommerce-checkout.alignwide {
	margin-inline: auto;
}

/* Mini-panier (tiroir) */
.wc-block-mini-cart__drawer .wc-block-mini-cart__title {
	font-family: var(--pt-display);
	text-transform: uppercase;
	font-weight: 400;
}

.wc-block-mini-cart__drawer .wc-block-components-product-name {
	font-family: var(--pt-display);
	text-transform: uppercase;
	text-decoration: none;
}

/* ---------- Accessibilité ---------- */

:focus-visible {
	outline: 2px solid var(--pt-bordeaux-vif);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

/* ---------- Commande rapide : choix de la taille ---------- */

.pt-quick-buy {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	width: 100%;
	margin: 0;
}

.pt-size-picker {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.pt-size-picker__option {
	position: relative;
	margin: 0;
}

.pt-size-picker__option input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.pt-size-picker__option span {
	display: inline-grid;
	place-items: center;
	min-width: 3rem;
	height: 2.75rem;
	padding: 0 0.8rem;
	border: 1.5px solid var(--pt-ligne);
	border-radius: 999px;
	background: #fff;
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1;
	transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.pt-size-picker__option:hover span {
	border-color: var(--pt-noir);
}

.pt-size-picker__option input:checked + span {
	background: var(--pt-noir);
	border-color: var(--pt-noir);
	color: #fff;
}

.pt-size-picker__option input:focus-visible + span {
	outline: 2px solid var(--pt-bordeaux-vif);
	outline-offset: 2px;
}

.pt-size-picker__option.is-unavailable span {
	opacity: 0.4;
	text-decoration: line-through;
}

.pt-size-picker__option.is-unavailable input {
	cursor: not-allowed;
}

.pt-quick-buy__hint {
	margin: -0.25rem 0 0;
	color: var(--pt-bordeaux-vif);
	font-size: 0.9375rem;
	font-weight: 600;
}

.pt-quick-buy__hint:empty {
	display: none;
}

.pt-quick-buy.is-missing-size .pt-size-picker__option span {
	border-color: var(--pt-bordeaux-vif);
}

.pt-card__button .pt-quick-buy__button {
	border: 0;
	cursor: pointer;
}

/* Fiche produit : les boutons remplacent le menu déroulant */
.pt-product__form .pt-size-picker {
	margin-bottom: 0.25rem;
}

.pt-product__form .pt-size-picker__option span {
	min-width: 3.5rem;
	height: 3.1rem;
	font-size: 1.125rem;
}

.pt-product__form table.variations select.pt-select-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0;
	pointer-events: none;
}

.pt-product__form .reset_variations {
	display: none !important;
}

/* ---------- Page de paiement épurée ---------- */

.pt-checkout-header {
	border-bottom: 1px solid var(--pt-ligne);
}

.pt-checkout-header .wp-block-site-logo img {
	width: clamp(96px, 9vw, 120px);
	height: auto;
}

.pt-checkout-header__secure {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	font-weight: 600;
	font-size: 1rem;
}

.pt-checkout-header__secure::before {
	content: "";
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
}

.pt-checkout-header__back a {
	text-decoration: none;
	font-size: 1rem;
}

.pt-checkout-footer {
	border-top: 1px solid var(--pt-ligne);
	color: var(--wp--preset--color--gris-texte);
}

.pt-checkout-footer p {
	margin: 0;
}

/* Pas de note de commande : un champ de moins */
.pt-page-checkout .wc-block-checkout__order-notes,
.pt-page-checkout .wp-block-woocommerce-checkout-order-note-block {
	display: none !important;
}

@media (max-width: 599px) {
	.pt-checkout-header__back {
		display: none;
	}
}

/* Dans les cartes : les tailles se partagent toujours une seule ligne */
.pt-card__button .pt-size-picker {
	flex-wrap: nowrap;
	gap: 0.35rem;
}

.pt-card__button .pt-size-picker__option {
	flex: 1 1 0;
	min-width: 0;
}

.pt-card__button .pt-size-picker__option span {
	width: 100%;
	min-width: 0;
	height: clamp(2.25rem, 3vw, 2.75rem);
	padding: 0;
	font-size: clamp(0.875rem, 1.1vw, 1.0625rem);
}

.pt-card__button .pt-quick-buy__button {
	white-space: nowrap;
	word-break: normal;
	overflow-wrap: normal;
	font-size: clamp(1.25rem, 2.1vw, 2.125rem) !important;
}

/* ---------- Lien « Guide des tailles » à côté des prix ---------- */

.pt-card__price .wc-block-components-product-price,
.pt-product__price .wc-block-components-product-price {
	display: inline;
}

.pt-size-guide-link {
	margin-left: 0.75rem;
	font-family: var(--wp--preset--font-family--outfit);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1;
	vertical-align: middle;
	color: var(--wp--preset--color--gris-texte);
	text-decoration: underline;
	text-underline-offset: 0.2em;
	white-space: nowrap;
}

.pt-size-guide-link:hover,
.pt-size-guide-link:focus-visible {
	color: var(--pt-bordeaux-vif);
}

.pt-product__price .pt-size-guide-link {
	font-size: 1.0625rem;
}

/* ---------- Fenêtre « Guide des tailles » ---------- */

.pt-modal {
	width: min(560px, calc(100vw - 2rem));
	max-height: calc(100vh - 2rem);
	padding: 0;
	border: 0;
	border-radius: 20px;
	background: #fff;
	color: var(--wp--preset--color--encre);
	box-shadow: 0 24px 60px rgb(0 0 0 / 25%);
	overflow: auto;
}

.pt-modal::backdrop {
	background: rgb(20 0 4 / 55%);
	backdrop-filter: blur(2px);
}

.pt-modal[open] {
	animation: pt-modal-in 0.22s ease-out;
}

@keyframes pt-modal-in {
	from {
		opacity: 0;
		transform: translateY(12px) scale(0.98);
	}
}

.pt-modal__inner {
	position: relative;
	padding: clamp(1.5rem, 4vw, 2.5rem);
}

.pt-modal__title {
	margin: 0 2.5rem 0.5rem 0;
	font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.pt-modal__intro {
	margin: 0 0 1.25rem;
	color: var(--wp--preset--color--gris-texte);
}

.pt-modal__note {
	margin: 0.5rem 0 0;
	font-size: 0.9375rem;
	color: var(--wp--preset--color--gris-texte);
}

.pt-modal__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	width: 2.75rem;
	height: 2.75rem;
	border: 0;
	border-radius: 999px;
	background: var(--wp--preset--color--gris-clair);
	cursor: pointer;
}

.pt-modal__close::before,
.pt-modal__close::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 1.1rem;
	height: 2px;
	background: var(--pt-noir);
	transform: translate(-50%, -50%) rotate(45deg);
}

.pt-modal__close::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.pt-modal__close:hover {
	background: var(--pt-rose);
}

/* ---------- Notre histoire ---------- */

.pt-about__columns {
	gap: clamp(2rem, 6vw, 6rem) !important;
}

.pt-about__image {
	margin: 0;
}

.pt-about__image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	object-position: 50% 40%;
	border-radius: var(--pt-radius-card);
	background: #f3ece4;
	box-shadow: 0 18px 50px rgb(118 0 15 / 12%);
}

.pt-about .pt-pill {
	margin-inline: 0;
	margin-bottom: 1rem;
}

.pt-about h2 {
	font-size: clamp(2rem, 3.6vw, 3.25rem);
	margin: 0 0 1.25rem;
}

.pt-about__content > p {
	max-width: 36rem;
	line-height: 1.45;
}

.pt-about__signature {
	margin-top: 1.5rem;
	font-style: italic;
	color: var(--wp--preset--color--gris-texte);
}

@media (max-width: 781px) {
	.pt-about__image img {
		aspect-ratio: 1 / 1;
	}
}

/* ---------- Page « Bientôt disponible » ---------- */

.pt-soon__hero {
	margin-top: 0 !important;
}

.pt-soon .pt-pill {
	margin-inline: 0;
	margin-bottom: 1.1rem;
}

.pt-soon .pt-how {
	margin-top: var(--wp--preset--spacing--60) !important;
}

.pt-soon__legal {
	margin-top: 0.75rem;
	color: var(--wp--preset--color--gris-texte);
}

.pt-soon__social svg {
	width: 26px;
	height: 26px;
}

.pt-soon .pt-hero__reassurance {
	margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

/* Formulaire sur fond clair */
.pt-newsletter-form--clair .pt-newsletter-form__input {
	border-color: var(--pt-noir);
	background: #fff;
	color: var(--pt-noir);
}

.pt-newsletter-form--clair .pt-newsletter-form__input::placeholder {
	color: var(--wp--preset--color--gris-doux);
}

.pt-newsletter-form--clair .pt-newsletter-form__input:focus {
	background: #fff;
	box-shadow: 0 0 0 3px rgb(142 27 46 / 20%);
}

.pt-newsletter-form--clair .pt-newsletter-form__button {
	background: var(--pt-noir);
	color: #fff;
}

.pt-newsletter-form--clair .pt-newsletter-form__button:hover,
.pt-newsletter-form--clair .pt-newsletter-form__button:focus-visible {
	background: var(--pt-bordeaux-vif);
}

.pt-newsletter-form--clair .pt-newsletter-form__message {
	color: var(--pt-bordeaux-vif);
}

/* ---------- Page « Coming soon » (pré-lancement) ---------- */

.pt-soon2-page {
	min-height: 100vh;
	min-height: 100dvh;
}

.pt-soon2 {
	min-height: 100vh;
	min-height: 100dvh;
	gap: 0 !important;
	flex-wrap: nowrap !important;
}

.pt-soon2__panel {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: clamp(1.5rem, 3vh, 2.5rem);
	padding: clamp(1.25rem, 3.5vh, 3rem) clamp(1.25rem, 6vw, 6rem);
}

.pt-soon2__panel > * {
	margin-block: 0 !important;
}

.pt-soon2__logo img {
	width: clamp(110px, 10vw, 150px);
	height: auto;
}

.pt-soon2__content {
	max-width: 34rem;
}

.pt-soon2 .pt-pill {
	margin: 0 0 1.25rem;
}

.pt-soon2__title {
	margin: 0 0 1rem;
	font-size: clamp(2.5rem, 5.2vw, 4.75rem);
	line-height: 0.98;
}

.pt-soon2__lead {
	margin: 0 0 1.75rem;
	line-height: 1.35;
}

.pt-soon2 .pt-newsletter-form {
	margin-top: 0;
}

.pt-soon2__features {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	margin-top: clamp(1.25rem, 3vh, 2rem);
}

.pt-soon2__features li {
	padding-left: 0;
	gap: 0.6rem;
	font-size: 1rem;
}

.pt-soon2__features li::before {
	flex-basis: 20px;
	height: 20px;
	background: var(--pt-bordeaux-vif);
}

.pt-soon2__bottom {
	gap: 1rem;
	color: var(--wp--preset--color--gris-texte);
}

.pt-soon2__bottom p {
	margin: 0;
}

.pt-soon2__bottom a {
	color: inherit;
}

.pt-soon2__media {
	position: relative;
	overflow: hidden;
	background: var(--pt-bordeaux);
}

.pt-soon2__image {
	position: absolute;
	inset: 0;
	margin: 0;
}

.pt-soon2__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 45% 50%;
}

/* Frise bordeaux en bas de la photo */
.pt-soon2__scallops {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	--pt-scallop-w: clamp(30px, 3vw, 48px);
	background: linear-gradient(90deg, #ead1d5 0%, #b9737e 26%, #8e1b2e 50%, #b9737e 74%, #ead1d5 100%);
	transform: translateY(45%);
}

@media (max-width: 900px) {
	.pt-soon2 {
		flex-direction: column;
		min-height: 0;
	}

	.pt-soon2__media {
		order: -1;
		flex-basis: auto !important;
		height: 38vh;
		min-height: 220px;
	}

	.pt-soon2__panel {
		flex-basis: auto !important;
		padding-top: 1.5rem;
	}

	.pt-soon2__logo {
		position: absolute;
		top: 1rem;
		left: 1rem;
		z-index: 2;
		padding: 0.6rem 0.8rem;
		border-radius: 14px;
		background: #fff;
		box-shadow: 0 6px 18px rgb(0 0 0 / 15%);
	}

	.pt-soon2__logo img {
		width: 96px;
	}

	.pt-soon2__content {
		max-width: none;
	}
}

.pt-soon2 {
	position: relative;
}

/* Accueil (modèle ou page) : même espace avant le pied de page */
main.pt-home + .wp-block-template-part {
	margin-block-start: 0;
}
