/*!
 * Vino Veritas — Composants
 * Classes utilisables dans Elementor (onglet Avancé > Classes CSS),
 * dans l'éditeur de blocs (Avancé > Classe(s) CSS supplémentaire(s)) ou en HTML.
 */

/* ---------- Styles de texte (classes) ---------- */
.vv-display, .vv-h1, .vv-h2, .vv-h3 {
	font-family: var(--vv-font-display);
	text-transform: uppercase;
	margin-block: 0 0.5em;
	text-wrap: balance;
}
.vv-display { font-size: var(--vv-text-display-size); font-weight: 400; line-height: 1; letter-spacing: 0.02em; }
.vv-h1 { font-size: var(--vv-text-h1-size); font-weight: 400; line-height: 1.05; letter-spacing: 0.03em; }
.vv-h2 { font-size: var(--vv-text-h2-size); font-weight: 400; line-height: 1.1; letter-spacing: 0.04em; }
.vv-h3 { font-size: var(--vv-text-h3-size); font-weight: 500; line-height: 1.2; letter-spacing: 0.05em; }
.vv-h4 { font-family: var(--vv-font-serif); font-style: italic; font-weight: 500; font-size: var(--vv-text-h4-size); line-height: 1.25; margin-block: 0 0.5em; }
.vv-surtitre {
	font-family: var(--vv-font-display);
	font-weight: 600;
	font-size: var(--vv-text-surtitre-size);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--vv-color-bordeaux);
	margin-block: 0 0.75em;
}
.vv-chapeau {
	font-family: var(--vv-font-serif);
	font-style: italic;
	font-size: var(--vv-text-chapeau-size);
	line-height: 1.45;
}
.vv-petit { font-size: var(--vv-text-petit-size); color: var(--vv-color-sarment); }

/* ---------- Boutons ---------- */
.vv-btn,
.vv-btn .elementor-button,
.wp-block-button.is-style-vv-bordeaux .wp-block-button__link,
.wp-block-button.is-style-vv-contour .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6em;
	min-height: 48px; /* cible tactile confortable */
	padding: 0.95em 1.9em;
	font-family: var(--vv-font-display);
	font-weight: 500;
	font-size: var(--vv-text-bouton-size);
	line-height: 1;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: var(--vv-radius-sm);
	border: var(--vv-stroke-trait) solid transparent;
	cursor: pointer;
	transition: background-color var(--vv-motion-normal) var(--vv-motion-courbe),
		color var(--vv-motion-normal) var(--vv-motion-courbe),
		border-color var(--vv-motion-normal) var(--vv-motion-courbe);
}

/* Primaire : bordeaux plein */
.vv-btn,
.vv-btn--primaire,
.vv-btn--primaire .elementor-button,
.wp-block-button.is-style-vv-bordeaux .wp-block-button__link {
	background-color: var(--vv-color-bordeaux);
	color: var(--vv-color-creme);
}
.vv-btn:hover,
.vv-btn--primaire:hover,
.vv-btn--primaire .elementor-button:hover,
.wp-block-button.is-style-vv-bordeaux .wp-block-button__link:hover {
	background-color: var(--vv-color-lie-de-vin);
	color: var(--vv-color-creme);
}

/* Secondaire : contour encre */
.vv-btn--contour,
.vv-btn--contour .elementor-button,
.wp-block-button.is-style-vv-contour .wp-block-button__link {
	background-color: transparent;
	color: var(--vv-color-encre);
	border-color: var(--vv-color-encre);
}
.vv-btn--contour:hover,
.vv-btn--contour .elementor-button:hover,
.wp-block-button.is-style-vv-contour .wp-block-button__link:hover {
	background-color: var(--vv-color-encre);
	color: var(--vv-color-creme);
}

/* Sur fond sombre */
.vv-btn--clair,
.vv-btn--clair .elementor-button {
	background-color: var(--vv-color-creme);
	color: var(--vv-color-encre);
}
.vv-btn--clair:hover,
.vv-btn--clair .elementor-button:hover {
	background-color: var(--vv-color-blanc);
	color: var(--vv-color-bordeaux);
}

/* Tertiaire : lien fléché */
.vv-lien {
	font-family: var(--vv-font-display);
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-size: var(--vv-text-bouton-size);
	color: var(--vv-color-bordeaux);
	text-decoration: none;
	border-bottom: var(--vv-stroke-trait) solid currentColor;
	padding-bottom: 0.2em;
}
.vv-lien::after { content: " \2192"; }
.vv-lien:hover { color: var(--vv-color-lie-de-vin); }

.vv-btn[disabled],
.vv-btn.is-disabled {
	background-color: var(--vv-color-pierre);
	color: var(--vv-color-sarment);
	border-color: transparent;
	cursor: not-allowed;
}

/* ---------- Badges / étiquettes ---------- */
.vv-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding: 0.35em 0.85em;
	font-family: var(--vv-font-display);
	font-weight: 500;
	font-size: 0.75rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	line-height: 1.2;
	border-radius: var(--vv-radius-pill);
	border: 1px solid currentColor;
	color: var(--vv-color-encre);
	background: transparent;
}
.vv-badge--bio,
.vv-badge--nature,
.vv-badge--biodynamie { color: var(--vv-color-feuille-de-vigne); }
.vv-badge--plein { background: var(--vv-color-bordeaux); border-color: var(--vv-color-bordeaux); color: var(--vv-color-creme); }
.vv-badge--atelier { background: var(--vv-color-encre); border-color: var(--vv-color-encre); color: var(--vv-color-creme); }

/* ---------- Surfaces / sections ---------- */
.vv-section--creme { background-color: var(--vv-color-creme); color: var(--vv-color-encre); }
.vv-section--pierre { background-color: var(--vv-color-pierre); color: var(--vv-color-encre); }
.vv-section--rose { background-color: var(--vv-color-rose); color: var(--vv-color-encre); }
.vv-section--encre,
.vv-section--lie-de-vin { color: var(--vv-color-creme); }
.vv-section--encre { background-color: var(--vv-color-encre); }
.vv-section--lie-de-vin { background-color: var(--vv-color-lie-de-vin); }
.vv-section--encre :where(h1, h2, h3, h4, p, a:not([class*="vv-btn"], .vv-lien)),
.vv-section--lie-de-vin :where(h1, h2, h3, h4, p, a:not([class*="vv-btn"], .vv-lien)) { color: inherit; }
.vv-section--encre .vv-lien,
.vv-section--lie-de-vin .vv-lien { color: var(--vv-color-creme); }
.vv-section--encre :is(h5, h6, .vv-surtitre) { color: var(--vv-color-paille); }
.vv-section--lie-de-vin :is(h5, h6, .vv-surtitre) { color: var(--vv-color-rose); }

/* ---------- Carte (vin, atelier, article) ---------- */
.vv-carte {
	display: flex;
	flex-direction: column;
	gap: var(--vv-space-3);
	background: var(--vv-color-blanc);
	border: 1px solid var(--vv-color-pierre);
	border-radius: var(--vv-radius-md);
	padding: var(--vv-space-5);
	box-shadow: var(--vv-shadow-sm);
	transition: box-shadow var(--vv-motion-normal) var(--vv-motion-courbe), transform var(--vv-motion-normal) var(--vv-motion-courbe);
}
.vv-carte:hover { box-shadow: var(--vv-shadow-md); transform: translateY(-2px); }
.vv-carte__meta { font-size: var(--vv-text-petit-size); color: var(--vv-color-sarment); }
.vv-carte__titre { font-family: var(--vv-font-display); font-weight: 500; font-size: 1.375rem; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.15; margin: 0; }
.vv-carte__domaine { font-family: var(--vv-font-serif); font-style: italic; font-size: 1.125rem; margin: 0; }
.vv-prix { font-family: var(--vv-font-display); font-weight: 500; font-size: 1.5rem; color: var(--vv-color-bordeaux); letter-spacing: 0.02em; }

/* ---------- Encart / mise en avant ---------- */
.vv-encart {
	background: var(--vv-color-rose);
	border-radius: var(--vv-radius-md);
	padding: var(--vv-space-6);
}
.vv-encart--pierre { background: var(--vv-color-pierre); }

/* ---------- Citation ---------- */
.vv-citation,
.wp-block-quote.is-style-vv-citation {
	font-family: var(--vv-font-serif);
	font-style: italic;
	font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
	line-height: 1.35;
	text-align: center;
	border: 0;
	padding: var(--vv-space-6) var(--vv-space-4) 0;
	position: relative;
	max-width: 40ch;
	margin-inline: auto;
}
.vv-citation::before,
.wp-block-quote.is-style-vv-citation::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: 14px;
	height: 20px;
	transform: translateX(-50%);
	background: var(--vv-color-bordeaux);
	-webkit-mask: var(--vv-goutte) center / contain no-repeat;
	mask: var(--vv-goutte) center / contain no-repeat;
}
.vv-citation cite,
.wp-block-quote.is-style-vv-citation cite {
	display: block;
	margin-top: var(--vv-space-4);
	font-family: var(--vv-font-display);
	font-style: normal;
	font-size: 0.8125rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--vv-color-sarment);
}

/* ---------- Séparateurs : la goutte & la vague ---------- */
.vv-separateur,
.wp-block-separator.is-style-vv-goutte {
	display: flex;
	align-items: center;
	gap: var(--vv-space-4);
	border: 0 !important;
	background: none !important;
	height: 20px !important;
	max-width: 280px !important;
	margin: var(--vv-space-7) auto !important;
	opacity: 1 !important;
	position: relative;
}
.vv-separateur::before,
.vv-separateur::after { content: ""; flex: 1; border-top: 1px solid var(--vv-color-galet); }
.vv-separateur > span,
.wp-block-separator.is-style-vv-goutte::after {
	content: "";
	display: block;
	width: 14px;
	height: 20px;
	flex: none;
	background: var(--vv-color-bordeaux);
	-webkit-mask: var(--vv-goutte) center / contain no-repeat;
	mask: var(--vv-goutte) center / contain no-repeat;
}
.wp-block-separator.is-style-vv-goutte::before {
	content: "";
	position: absolute;
	inset: 50% 0 auto;
	border-top: 1px solid var(--vv-color-galet);
	-webkit-mask: linear-gradient(90deg, #000 0 42%, transparent 42% 58%, #000 58%);
	mask: linear-gradient(90deg, #000 0 42%, transparent 42% 58%, #000 58%);
}
.wp-block-separator.is-style-vv-goutte::after { margin-inline: auto; position: relative; }

.vv-vague { position: relative; }
.vv-vague > * { position: relative; z-index: 1; }
.vv-vague::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: clamp(24px, 4vw, 56px);
	background: var(--vv-vague-couleur, var(--vv-color-creme));
	-webkit-mask: var(--vv-vague) bottom / 100% 100% no-repeat;
	mask: var(--vv-vague) bottom / 100% 100% no-repeat;
	pointer-events: none;
}

/* ---------- Puces goutte ---------- */
.vv-liste-goutte { list-style: none; padding-left: 0; }
.vv-liste-goutte li { position: relative; padding-left: 1.6em; margin-bottom: 0.5em; }
.vv-liste-goutte li::before {
	content: "";
	position: absolute;
	left: 0.2em;
	top: 0.3em;
	width: 0.6em;
	height: 0.85em;
	background: var(--vv-color-bordeaux);
	-webkit-mask: var(--vv-goutte) center / contain no-repeat;
	mask: var(--vv-goutte) center / contain no-repeat;
}

/* ---------- Fiche technique d'un vin ---------- */
.vv-fiche {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: var(--vv-space-2) var(--vv-space-5);
	margin: 0;
	font-size: var(--vv-text-petit-size);
}
.vv-fiche dt {
	font-family: var(--vv-font-display);
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--vv-color-sarment);
}
.vv-fiche dd { margin: 0; border-bottom: 1px dotted var(--vv-color-galet); padding-bottom: var(--vv-space-2); }

/* ---------- Formulaires ---------- */
.vv-champ,
.vv-form :is(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="search"], select, textarea) {
	width: 100%;
	min-height: 48px;
	padding: 0.75em 1em;
	font-family: var(--vv-font-text);
	font-size: 1rem;
	color: var(--vv-color-encre);
	background: var(--vv-color-blanc);
	border: 1px solid var(--vv-color-galet);
	border-radius: var(--vv-radius-sm);
	transition: border-color var(--vv-motion-rapide);
}
.vv-champ:focus,
.vv-form :is(input, select, textarea):focus { border-color: var(--vv-color-encre); outline: 2px solid var(--vv-color-encre); outline-offset: 1px; }
.vv-form label { display: block; font-weight: 700; font-size: var(--vv-text-petit-size); margin-bottom: var(--vv-space-2); }

/* ---------- Mention sanitaire (Loi Évin) ---------- */
.vv-mention-sanitaire {
	font-family: var(--vv-font-text);
	font-size: 0.8125rem;
	line-height: 1.4;
	text-align: center;
	color: inherit;
	padding: var(--vv-space-3) var(--vv-space-4);
	margin: 0;
}
