/* Boutique Vouivre — tout est préfixé .vom pour ne pas toucher au reste du site.
   Les couleurs et l'arrondi se règlent dans WooCommerce > Boutique Vouivre. */

.vom {
	position: relative;
	--vom-or: #FCC13D;
	--vom-sur-or: #1C1C1C;
	--vom-fond: #1D1D1D;
	--vom-rayon: 10px;
	--vom-texte: #FFFFFF;
	--vom-doux: rgba(255, 255, 255, .74);
	--vom-faible: rgba(255, 255, 255, .45);
	--vom-trait: rgba(255, 255, 255, .16);
	--vom-surface: rgba(255, 255, 255, .045);
	--vom-surface-forte: rgba(255, 255, 255, .08);
	--vom-or-texte: var(--vom-or);
	--vom-erreur: #FF9B8A;
	box-sizing: border-box;
	color: var(--vom-texte);
	font-family: inherit;
	font-size: 17px;
	line-height: 1.55;
	text-align: left;
}

.vom--clair {
	--vom-texte: #1D1D1D;
	--vom-doux: #555555;
	--vom-faible: #8A8A8A;
	--vom-trait: #E3E1DA;
	--vom-surface: #F5F4F0;
	--vom-surface-forte: #ECEAE3;
	--vom-or-texte: #8A6400;
	--vom-erreur: #B3261E;
}

.vom *,
.vom *::before,
.vom *::after {
	box-sizing: inherit;
}

/* Remise à zéro face aux styles de Divi */
.vom p,
.vom ul,
.vom li,
.vom h2,
.vom h3,
.vom form,
.vom table,
.vom details,
.vom summary {
	margin: 0;
	padding: 0;
}

.vom h2,
.vom h3 {
	color: var(--vom-texte);
	font-family: inherit;
	line-height: 1.2;
}

.vom ul {
	list-style: none;
}

.vom a {
	color: inherit;
}

.vom-lecteur {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ---------- Boutons : ceux du site, dorés à coins droits ---------- */

.vom .vom-bouton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	padding: 12px 24px;
	border: 0;
	border-radius: 0;
	background: var(--vom-or);
	color: var(--vom-sur-or);
	font-family: inherit;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: filter .15s ease;
}

.vom .vom-bouton:hover {
	filter: brightness(1.08);
	color: var(--vom-sur-or);
	text-decoration: none;
}

.vom .vom-bouton:focus-visible,
.vom a:focus-visible,
.vom summary:focus-visible,
.vom button:focus-visible,
.vom input:focus-visible,
.vom [tabindex]:focus-visible {
	outline: 3px solid var(--vom-or);
	outline-offset: 3px;
}

.vom .vom-bouton.is-inactif {
	border: 1px dashed var(--vom-trait);
	background: transparent;
	color: var(--vom-faible);
	cursor: not-allowed;
	filter: none;
}

/* ---------- Rubriques ---------- */

.vom .vom-rubrique + .vom-rubrique {
	margin-top: clamp(64px, 9vw, 112px);
}

.vom .vom-rubrique__tete {
	margin-bottom: clamp(24px, 3.5vw, 40px);
}

/* Même traitement que les titres de section du site : petites capitales très espacées */
.vom .vom-rubrique__titre {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .85em;
	line-height: 1.6;
	text-transform: uppercase;
	color: var(--vom-texte);
}

.vom .vom-rubrique__texte {
	max-width: 44em;
	margin-top: 14px;
	color: var(--vom-doux);
	font-size: clamp(17px, 1.6vw, 20px);
	line-height: 1.55;
}

.vom .vom-rubrique__texte p + p {
	margin-top: .7em;
}

/* ---------- Cartes ---------- */

.vom .vom-offres {
	display: grid;
	gap: clamp(16px, 2vw, 24px);
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.vom .vom-offres--2 {
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.vom .vom-offres--1 {
	grid-template-columns: 1fr;
}

.vom .vom-carte {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 30px 26px 26px;
	border-radius: var(--vom-rayon);
	background: var(--vom-surface);
	box-shadow: inset 0 3px 0 var(--vom-or);
}

.vom .vom-carte__nom {
	font-size: 24px;
	font-weight: 600;
}

.vom .vom-prix {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 10px;
	margin-top: 10px;
}

.vom .vom-prix__montant {
	font-size: clamp(28px, 3vw, 36px);
	font-weight: 700;
	line-height: 1.1;
	font-variant-numeric: lining-nums tabular-nums;
	white-space: nowrap;
}

.vom .vom-prix__note {
	color: var(--vom-doux);
	font-size: 15px;
}

.vom .vom-carte__intro {
	margin-top: 14px;
	color: var(--vom-doux);
	font-size: 16px;
}

.vom .vom-carte__intro p + p {
	margin-top: .6em;
}

.vom .vom-puces {
	display: grid;
	gap: 0;
	margin-top: 20px;
}

.vom .vom-puces li {
	position: relative;
	padding: 10px 0 10px 28px;
	border-top: 1px solid var(--vom-trait);
	font-size: 16px;
	line-height: 1.4;
}

/* Coche dorée dessinée en CSS */
.vom .vom-puces li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 14px;
	width: 6px;
	height: 11px;
	border: solid var(--vom-or-texte);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.vom .vom-carte__pied {
	margin-top: auto;
	padding-top: 24px;
}

.vom .vom-dans-selection {
	margin-bottom: 12px;
	color: var(--vom-or-texte);
	font-size: 15px;
	font-weight: 600;
}

/* Une seule offre dans la rubrique : carte en largeur */
.vom .vom-carte--large {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
	gap: 24px clamp(28px, 5vw, 64px);
	padding: clamp(28px, 4vw, 44px);
}

.vom .vom-carte--large .vom-carte__nom {
	font-size: clamp(24px, 2.6vw, 30px);
}

.vom .vom-carte__action {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 18px;
}

.vom .vom-carte--large .vom-carte__intro {
	margin-top: 0;
	font-size: 17px;
}

/* ---------- Tableau comparatif ---------- */

.vom .vom-comparatif {
	margin-top: 28px;
}

.vom .vom-comparatif summary {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	color: var(--vom-texte);
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

.vom .vom-comparatif summary::-webkit-details-marker {
	display: none;
}

.vom .vom-comparatif summary::after {
	content: "";
	width: 8px;
	height: 8px;
	margin-top: -4px;
	border: solid var(--vom-or-texte);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
	transition: transform .2s ease;
}

.vom .vom-comparatif[open] summary::after {
	margin-top: 4px;
	transform: rotate(-135deg);
}

.vom .vom-comparatif__defile {
	position: relative; /* contient les textes pour lecteurs d'écran, sinon ils élargissent la page */
	margin-top: 16px;
	overflow-x: auto;
	border-radius: var(--vom-rayon);
	background: var(--vom-surface);
}

.vom .vom-comparatif table {
	width: 100%;
	min-width: 640px;
	border: 0;
	border-collapse: collapse;
	font-size: 15px;
}

.vom .vom-comparatif th,
.vom .vom-comparatif td {
	padding: 12px 14px;
	border: 0;
	border-bottom: 1px solid var(--vom-trait);
	color: var(--vom-texte);
	font-weight: 400;
	text-align: center;
	vertical-align: middle;
}

.vom .vom-comparatif tbody th[scope="row"],
.vom .vom-comparatif thead th:first-child {
	text-align: left;
	color: var(--vom-doux);
}

.vom .vom-comparatif thead th {
	color: var(--vom-texte);
	font-size: 16px;
	font-weight: 700;
}

.vom .vom-comparatif__groupe th {
	padding-top: 22px;
	color: var(--vom-or-texte);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .3em;
	text-align: left;
	text-transform: uppercase;
}

.vom .vom-comparatif .is-oui {
	color: var(--vom-or-texte);
	font-size: 18px;
	font-weight: 700;
}

.vom .vom-comparatif .is-non {
	color: var(--vom-faible);
}

/* Sur mobile, le tableau tient dans l'écran : colonnes resserrées, libellés sur plusieurs lignes */
@media (max-width: 760px) {
	.vom .vom-comparatif table {
		min-width: 0;
		font-size: 13px;
	}

	.vom .vom-comparatif th,
	.vom .vom-comparatif td {
		padding: 10px 4px;
	}

	.vom .vom-comparatif tbody th[scope="row"],
	.vom .vom-comparatif thead th:first-child {
		width: 38%;
		padding-left: 12px;
	}

	.vom .vom-comparatif thead th {
		font-size: 13px;
	}

	.vom .vom-comparatif__groupe th {
		padding-left: 12px;
		letter-spacing: .18em;
	}
}

/* ---------- Fiche d'une offre ---------- */

.vom .vom-retour {
	margin-bottom: 28px;
}

.vom .vom-retour a {
	color: var(--vom-doux);
	font-weight: 600;
	text-decoration: none;
}

.vom .vom-retour a:hover {
	color: var(--vom-texte);
}

.vom .vom-detail__grille {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: clamp(28px, 5vw, 64px);
	align-items: start;
}

.vom .vom-detail__visuel {
	position: sticky;
	top: 110px;
	overflow: hidden;
	border-radius: var(--vom-rayon);
}

.vom .vom-detail__visuel img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
}

.vom .vom-affiche {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 24px;
	aspect-ratio: 4 / 5;
	padding: clamp(24px, 4vw, 40px);
	border: 1px solid var(--vom-trait);
	background: #000;
	box-shadow: inset 0 3px 0 var(--vom-or);
}

.vom .vom-affiche__haut,
.vom .vom-affiche__bas {
	color: var(--vom-or);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .5em;
	text-transform: uppercase;
}

.vom .vom-affiche__nom {
	color: #FFFFFF;
	font-size: clamp(34px, 5vw, 60px);
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

.vom .vom-detail__rubrique {
	color: var(--vom-or-texte);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .5em;
	text-transform: uppercase;
}

.vom .vom-detail__rubrique + .vom-detail__nom {
	margin-top: 10px;
}

.vom .vom-detail__nom {
	font-size: clamp(32px, 4vw, 46px);
	font-weight: 600;
	line-height: 1.05;
}

.vom .vom-detail .vom-prix {
	margin-top: 14px;
}

.vom .vom-texte {
	margin-top: 22px;
	color: var(--vom-doux);
}

.vom .vom-texte p + p,
.vom .vom-texte p + ul,
.vom .vom-texte ul + p {
	margin-top: .8em;
}

.vom .vom-texte ul li {
	position: relative;
	padding: 6px 0 6px 26px;
	color: var(--vom-texte);
}

.vom .vom-texte ul li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 11px;
	width: 6px;
	height: 11px;
	border: solid var(--vom-or-texte);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.vom .vom-texte strong {
	color: var(--vom-texte);
}

.vom .vom-formulaire {
	margin-top: 32px;
	padding-top: 28px;
	border-top: 1px solid var(--vom-trait);
}

.vom .vom-champ__libelle {
	display: block;
	margin-bottom: 10px;
	font-size: 16px;
	font-weight: 600;
}

.vom .vom-quantite {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid var(--vom-trait);
}

.vom .vom-quantite__pas {
	width: 52px;
	min-height: 54px;
	padding: 0;
	border: 0;
	background: var(--vom-surface);
	color: var(--vom-texte);
	font-family: inherit;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.vom .vom-quantite__pas:hover {
	background: var(--vom-surface-forte);
}

.vom .vom-quantite input {
	width: 110px;
	min-height: 54px;
	margin: 0;
	padding: 8px;
	border: 0;
	border-left: 1px solid var(--vom-trait);
	border-right: 1px solid var(--vom-trait);
	border-radius: 0;
	background: transparent;
	color: var(--vom-texte);
	font-family: inherit;
	font-size: 22px;
	font-weight: 600;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}

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

.vom .vom-quantite input[aria-invalid="true"] {
	color: var(--vom-erreur);
}

.vom .vom-aide {
	margin-top: 8px;
	color: var(--vom-faible);
	font-size: 15px;
}

.vom .vom-total {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 12px;
	margin-top: 24px;
}

.vom .vom-total__libelle {
	color: var(--vom-doux);
}

.vom .vom-total__montant {
	font-size: clamp(28px, 3.4vw, 36px);
	font-weight: 700;
	line-height: 1.1;
	font-variant-numeric: lining-nums tabular-nums;
}

.vom .vom-total__detail {
	flex-basis: 100%;
	color: var(--vom-doux);
	font-size: 15px;
}

.vom .vom-bonus {
	margin-top: 14px;
	padding: 10px 14px;
	border-left: 3px solid var(--vom-or);
	background: var(--vom-surface);
	font-size: 15px;
}

.vom .vom-erreur {
	min-height: 1.5em;
	margin-top: 10px;
	color: var(--vom-erreur);
	font-size: 15px;
	font-weight: 600;
}

.vom .vom-bouton--large {
	margin-top: 6px;
}

/* ---------- Votre sélection ---------- */

.vom .vom-selection {
	margin-bottom: clamp(56px, 8vw, 96px);
	padding: clamp(22px, 3vw, 32px);
	border: 1px solid var(--vom-or);
	border-radius: var(--vom-rayon);
	scroll-margin-top: 110px;
}

.vom .vom-selection__vide {
	margin-top: 14px;
	color: var(--vom-doux);
	font-size: 18px;
}

.vom .vom-selection__lignes {
	margin-top: 14px;
}

.vom .vom-selection__ligne {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	align-items: baseline;
	gap: 6px 24px;
	padding: 14px 0;
	border-bottom: 1px solid var(--vom-trait);
}

.vom .vom-selection__quoi strong {
	display: block;
	font-size: 18px;
	font-weight: 600;
}

.vom .vom-selection__quoi span {
	color: var(--vom-doux);
	font-size: 15px;
}

.vom .vom-selection__montant {
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.vom .vom-selection__actions {
	display: flex;
	gap: 16px;
	font-size: 15px;
}

.vom .vom-selection__actions a {
	color: var(--vom-doux);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.vom .vom-selection__actions a:hover {
	color: var(--vom-texte);
}

.vom .vom-selection__pied {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	margin-top: 22px;
}

.vom .vom-selection__total {
	font-size: 18px;
}

.vom .vom-selection__total strong {
	margin-left: 8px;
	font-size: 28px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.vom .vom-selection__pied .vom-bouton {
	width: auto;
	min-width: 240px;
}

/* ---------- Barre « Votre sélection » (déplacée dans <body> par le script) ---------- */

.vom.vom--flottant {
	display: contents;
}

.vom .vom-barre {
	position: fixed;
	left: 15px;
	right: 15px;
	bottom: calc(15px + env(safe-area-inset-bottom, 0px));
	z-index: 99990;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 10px 10px 10px 20px;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, .16);
	background: var(--vom-fond);
	color: #FFFFFF;
	/* Cachée sous le bord de l'écran ; elle glisse vers le haut quand le script ajoute .is-visible */
	transform: translateY(calc(100% + 40px));
	visibility: hidden;
	transition: transform .4s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .4s;
}

.vom .vom-barre.is-visible {
	transform: none;
	visibility: visible;
	transition: transform .4s cubic-bezier(.2, .8, .2, 1), visibility 0s;
}

/* Avant le script (ou sans script), la barre n'est pas affichée du tout */
.vom .vom-barre[hidden] {
	display: none;
}

.vom .vom-barre__texte {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
}

.vom .vom-barre__texte strong {
	font-size: 20px;
	font-weight: 700;
}

.vom .vom-barre__texte span {
	color: rgba(255, 255, 255, .74);
	font-size: 14px;
}

.vom .vom-barre .vom-bouton {
	width: auto;
	min-height: 46px;
	white-space: nowrap;
}

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

.vom .vom-notices {
	margin-bottom: 28px;
}

.vom .vom-notices .woocommerce-message,
.vom .vom-notices .woocommerce-error,
.vom .vom-notices .woocommerce-info {
	margin: 0 0 10px;
	padding: 14px 18px;
	border: 0;
	border-left: 3px solid var(--vom-or);
	background: var(--vom-surface);
	color: var(--vom-texte);
	font-size: 16px;
	list-style: none;
}

.vom .vom-notices .woocommerce-error {
	border-left-color: var(--vom-erreur);
}

.vom .vom-notices .woocommerce-error li {
	list-style: none;
}

.vom .vom-notices a {
	margin-left: 8px;
	font-weight: 600;
	text-decoration: underline;
}

.vom .vom-notices .button {
	float: none;
	padding: 0;
	border: 0;
	background: none;
	color: var(--vom-texte);
	font-size: inherit;
}

.vom .vom-notices .woocommerce-message::before,
.vom .vom-notices .woocommerce-error::before,
.vom .vom-notices .woocommerce-info::before {
	display: none;
}

.vom .vom-vide {
	padding: 18px 20px;
	border: 1px dashed var(--vom-trait);
	color: var(--vom-doux);
}

/* ---------- Petits écrans ---------- */

@media (max-width: 860px) {
	.vom .vom-detail__grille {
		grid-template-columns: minmax(0, 1fr);
	}

	.vom .vom-detail__visuel {
		position: static;
	}

	/* Sans photo du produit, l'affiche ne ferait que répéter le titre : on la masque */
	.vom .vom-affiche {
		display: none;
	}

	.vom .vom-carte--large {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 600px) {
	.vom .vom-rubrique__titre {
		letter-spacing: .5em;
	}

	.vom .vom-selection__ligne {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.vom .vom-selection__actions {
		grid-column: 1 / -1;
	}

	.vom .vom-selection__pied .vom-bouton {
		width: 100%;
	}

	.vom .vom-quantite {
		display: flex;
	}

	.vom .vom-quantite input {
		flex: 1;
		width: auto;
	}

	.vom .vom-barre__texte span {
		font-size: 13px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vom .vom-barre,
	.vom .vom-barre.is-visible {
		transition: none;
	}

	.vom .vom-comparatif summary::after,
	.vom .vom-bouton {
		transition: none;
	}
}
