/*!
 * Vendici Marketplace — interface publique (1.0.1 · identité valaisanne)
 * Mobile-first · polices auto-hébergées (OFL) · cibles tactiles ≥ 48 px
 */

/* ---------- Polices (servies par le plugin, aucun appel externe) ---------- */
@font-face { font-family: "Vendici Display"; src: url("../fonts/jakarta-var-latin.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Vendici Text"; src: url("../fonts/inter-var-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

/* ---------- Jetons ---------- */
:root {
	--vd-red: #d52b1e;
	--vd-red-dark: #a8201a;
	--vd-red-soft: #fdf0ef;
	--vd-red-on-dark: #ff5446;
	--vd-dark: #121417;
	--vd-ink: #121417;
	--vd-text: #1a1d21;
	--vd-muted: #5a616b;
	--vd-line: #e6e7ea;
	--vd-bg: #ffffff;
	--vd-bg-alt: #f6f6f7;
	--vd-green: #1d7a46;
	--vd-blue-soft: #eef4ff;
	--vd-focus: #0b57d0;
	--vd-radius: 18px;
	--vd-radius-sm: 12px;
	--vd-shadow: 0 1px 2px rgba(18, 20, 23, .05), 0 4px 14px rgba(18, 20, 23, .06);
	--vd-shadow-lg: 0 18px 50px rgba(18, 20, 23, .16);
	--vd-ease: cubic-bezier(.2, .7, .2, 1);
	--vd-font: "Vendici Text", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--vd-font-display: "Vendici Display", "Vendici Text", system-ui, -apple-system, "Segoe UI", sans-serif;
	--vd-max: 1240px;
	--vd-header-h: 72px;
	--vd-bottomnav-h: 68px;
}

/* Teintes dérivées de la couleur principale (navigateurs récents) */
@supports (color: color-mix(in srgb, red 50%, blue)) {
	:root {
		--vd-red-dark: color-mix(in srgb, var(--vd-red) 80%, #000);
		--vd-red-soft: color-mix(in srgb, var(--vd-red) 8%, #fff);
	}
}

/* Taille de texte agrandie (bouton A+) */
html.vd-text-large { font-size: 118.75%; }

/* ---------- Base (limité aux vues Vendici) ---------- */
body.vendici {
	margin: 0;
	background: var(--vd-bg);
	color: var(--vd-text);
	font-family: var(--vd-font);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
.vendici *, .vendici *::before, .vendici *::after { box-sizing: border-box; }
.vendici img { max-width: 100%; height: auto; display: block; }
.vendici a { color: var(--vd-red-dark); text-underline-offset: .18em; }
.vendici a:hover { color: var(--vd-red); }
.vendici h1, .vendici h2, .vendici h3 { font-family: var(--vd-font-display); color: var(--vd-ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
.vendici h1 { font-size: clamp(1.85rem, 1.3rem + 2.2vw, 2.75rem); }
.vendici h2 { font-size: clamp(1.45rem, 1.15rem + 1.2vw, 2.1rem); }
.vendici h3 { font-size: 1.125rem; }
.vendici p { margin: 0 0 1em; }
.vendici ul, .vendici ol { margin: 0; padding: 0; }
.vendici :focus-visible { outline: 3px solid var(--vd-focus); outline-offset: 2px; border-radius: 6px; }
.vendici button, .vendici input, .vendici select, .vendici textarea { font: inherit; color: inherit; }

.vd-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.vd-skip { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--vd-dark); color: #fff !important; padding: 12px 18px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.vd-skip:focus { top: 12px; }
.vd-container { width: 100%; max-width: var(--vd-max); margin: 0 auto; padding: 0 16px; }
.vd-muted { color: var(--vd-muted); }
.vd-lead { font-size: 1.15rem; }
.vd-center { text-align: center; margin-left: auto; margin-right: auto; }
.vd-main { display: block; min-height: 60vh; padding-bottom: calc(var(--vd-bottomnav-h) + 24px + env(safe-area-inset-bottom)); }
.vd-main:focus { outline: none; }

.vd-icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }

/* ---------- Boutons ---------- */
.vd-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 48px; padding: .6em 1.15em;
	border: 2px solid transparent; border-radius: 12px;
	font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none !important;
	cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
	white-space: nowrap; -webkit-tap-highlight-color: transparent;
}
.vd-btn--primary { background: var(--vd-red); color: #fff !important; }
.vd-btn--primary:hover { background: var(--vd-red-dark); }
.vd-btn--outline { background: #fff; color: var(--vd-dark) !important; border-color: var(--vd-dark); }
.vd-btn--outline:hover { background: var(--vd-dark); color: #fff !important; }
.vd-btn--ghost { background: transparent; color: var(--vd-dark) !important; }
.vd-btn--ghost:hover { background: var(--vd-bg-alt); }
.vd-btn--light { background: #fff; color: var(--vd-red-dark) !important; }
.vd-btn--light:hover { background: #fdeceb; }
.vd-btn--icon { width: 48px; padding: 0; background: transparent; color: var(--vd-dark); border-color: var(--vd-line); }
.vd-btn--icon[aria-pressed="true"] { background: var(--vd-dark); color: #fff; border-color: var(--vd-dark); }
.vd-btn--lg { min-height: 56px; font-size: 1.0625rem; padding: .7em 1.4em; }
.vd-btn--block { width: 100%; }
.vd-btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- En-tête ---------- */
.vd-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--vd-line); backdrop-filter: saturate(1.4) blur(8px); }
.admin-bar .vd-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .vd-header { top: 32px; } }
.vd-header__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; min-height: var(--vd-header-h); padding-top: 10px; padding-bottom: 10px; }
.vd-logo { display: inline-flex; align-items: center; margin-right: auto; text-decoration: none; }
.vd-logo img { height: 40px; width: auto; }
.vd-logo__text { font-size: 1.5rem; font-weight: 800; color: var(--vd-dark); }
.vd-logo__text span { color: var(--vd-red); }
.vd-header__actions { display: flex; align-items: center; gap: 8px; }
.vd-header__search { order: 3; flex: 1 1 100%; display: flex; position: relative; }
.vd-header__search input {
	width: 100%; min-height: 48px; padding: 0 56px 0 16px;
	border: 2px solid var(--vd-line); border-radius: 12px; background: var(--vd-bg-alt);
}
.vd-header__search input:focus { border-color: var(--vd-dark); background: #fff; outline: none; }
.vd-header__search-btn { position: absolute; right: 4px; top: 4px; bottom: 4px; width: 44px; border: 0; border-radius: 9px; background: var(--vd-red); color: #fff; display: grid; place-items: center; cursor: pointer; }
.vd-hide-mobile { display: none !important; }

@media (min-width: 960px) {
	.vd-hide-mobile { display: inline-flex !important; }
	.vd-header__search { order: 0; flex: 1 1 320px; max-width: 460px; margin-right: auto; }
	.vd-logo { margin-right: 8px; }
	.vendici-home .vd-logo { margin-right: auto; }
	.vd-logo img { height: 46px; }
}

/* ---------- Formulaire de recherche ---------- */
.vd-search { display: grid; gap: 12px; }

.vd-field { display: flex; flex-direction: column; gap: 6px; margin: 0; border: 0; padding: 0; min-width: 0; }
.vd-field label, .vd-field legend { font-weight: 700; font-size: .95rem; color: var(--vd-dark); padding: 0; }
.vendici .vd-field input, .vendici .vd-field select, .vd-price-range input {
	width: 100%; min-height: 52px; padding: 0 14px;
	border: 2px solid var(--vd-line); border-radius: 12px; background: #fff; font-size: 1rem;
	appearance: none; -webkit-appearance: none;
}
.vendici .vd-field select {
	padding-right: 42px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b2f36' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 12px center; background-size: 20px;
}
.vendici .vd-field input:focus, .vendici .vd-field select:focus, .vd-price-range input:focus { border-color: var(--vd-dark); outline: 3px solid color-mix(in srgb, var(--vd-focus) 35%, transparent); outline-offset: 0; }
.vd-input-icon { position: relative; }
.vd-input-icon .vd-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--vd-muted); pointer-events: none; }
.vendici .vd-input-icon input { padding-left: 46px; }
.vd-price-range { display: flex; align-items: center; gap: 8px; }
.vd-field--submit { justify-content: flex-end; }
.vd-field--submit .vd-btn { width: 100%; }
.vd-link-reset { display: inline-block; margin-top: 10px; font-weight: 600; text-align: center; }



/* ---------- Sections ---------- */
.vd-section { padding: 40px 0; }
.vd-section--alt { background: var(--vd-bg-alt); }
.vd-section--flush { padding: 32px 0 0; }
.vd-section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 20px; }
.vd-section__head h2 { margin: 0; }
.vd-link-more { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; text-decoration: none; min-height: 44px; }
.vd-link-more:hover { text-decoration: underline; }
@media (min-width: 960px) { .vd-section { padding: 56px 0; } }

/* ---------- Grille + cartes ---------- */
.vd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 720px) { .vd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) { .vd-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } .vd-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.vd-card { background: #fff; border: 1px solid var(--vd-line); border-radius: var(--vd-radius); overflow: hidden; transition: box-shadow .15s, transform .15s; }
.vd-card:hover { box-shadow: var(--vd-shadow-lg); transform: translateY(-2px); }
.vd-card__link { display: flex; flex-direction: column; height: 100%; color: inherit !important; text-decoration: none; }
.vd-card__media { position: relative; aspect-ratio: 4 / 3; background: var(--vd-bg-alt); }
.vd-card__media img { width: 100%; height: 100%; object-fit: cover; }
.vd-card__placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: #b3b9c1; }
.vd-card__placeholder .vd-icon { width: 44px; height: 44px; }
.vd-card__count { position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: rgba(0, 0, 0, .65); color: #fff; font-size: .8rem; font-weight: 700; }
.vd-card__count .vd-icon { width: 14px; height: 14px; }
.vd-card__body { display: flex; flex-direction: column; gap: 4px; padding: 12px; flex: 1; }
.vd-card__price { margin: 0; font-size: 1.15rem; font-weight: 800; color: var(--vd-dark); }
.vd-card__price.is-free, .vd-detail__price.is-free { color: var(--vd-green); }
.vendici .vd-card__title { margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.35; color: var(--vd-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vd-card__meta { margin: auto 0 0; padding-top: 6px; display: flex; flex-direction: column; gap: 2px; font-size: .875rem; color: var(--vd-muted); }
.vd-card__meta span { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.vd-card__meta .vd-icon { width: 15px; height: 15px; }

.vd-badge { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--vd-bg-alt); color: var(--vd-muted); font-size: .8rem; font-weight: 700; }
.vd-badge--demo { position: absolute; left: 8px; top: 8px; background: #fff3c4; color: #6b4e00; }

/* ---------- Étapes / confiance / CTA ---------- */
.vd-steps { list-style: none; display: grid; gap: 16px; counter-reset: none; }
.vd-steps li { background: #fff; border: 1px solid var(--vd-line); border-radius: var(--vd-radius); padding: 20px; }
.vd-steps h2, .vd-steps h3 { font-size: 1.125rem; margin: 10px 0 6px; }
.vd-steps p { margin: 0; color: var(--vd-muted); }
.vd-steps__num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--vd-dark); color: #fff; font-weight: 800; }
.vd-steps--compact li { padding: 16px; }
@media (min-width: 760px) { .vd-steps { grid-template-columns: repeat(3, 1fr); } .vd-steps--compact { grid-template-columns: 1fr; } }

.vd-checklist { list-style: none; display: grid; gap: 10px; margin-bottom: 12px !important; }
.vd-checklist li { display: flex; gap: 10px; align-items: flex-start; }
.vd-checklist .vd-icon { color: var(--vd-green); margin-top: .2em; }

/* ---------- Pages intérieures ---------- */
.vd-page { padding-top: 20px; padding-bottom: 24px; }
.vd-page--narrow { max-width: 640px; }
.vd-page__head { margin-bottom: 16px; }
.vd-page__head h1 { margin-bottom: .2em; }
.vd-breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; font-size: .9rem; color: var(--vd-muted); margin-bottom: 14px; }
.vd-breadcrumb li + li::before { content: "›"; margin: 0 6px 0 2px; color: #a0a7b0; }
.vd-breadcrumb a { color: var(--vd-muted); }
.vd-breadcrumb li[aria-current] { color: var(--vd-text); max-width: 32ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.vd-box { background: #fff; border: 1px solid var(--vd-line); border-radius: var(--vd-radius); padding: 20px; margin-bottom: 16px; }
.vd-box h2 { display: flex; align-items: center; gap: 8px; }
@media (min-width: 760px) { .vd-box { padding: 28px; } }

.vd-alert { padding: 14px 16px; border-radius: var(--vd-radius-sm); border: 1px solid; margin-bottom: 16px; }
.vd-alert ul { list-style: disc; padding-left: 1.2em; }
.vd-alert--info { background: var(--vd-blue-soft); border-color: #c9dafc; color: #1b3a6b; }
.vd-alert--error { background: #fdeceb; border-color: #f5c2bd; color: #8a1a12; }
.vd-alert--success { background: #e9f6ee; border-color: #b8e0c8; color: #14532d; }

.vd-prose { max-width: 72ch; }
.vd-prose > *:last-child { margin-bottom: 0; }
.vd-prose ul, .vd-prose ol { padding-left: 1.4em; margin-bottom: 1em; }

/* Puces de catégories (défilement horizontal sur mobile) */
.vd-chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; margin: 0 -16px 8px; padding-left: 16px; padding-right: 16px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.vd-chip { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--vd-line); background: #fff; color: var(--vd-dark) !important; font-weight: 600; text-decoration: none; scroll-snap-align: start; }
.vd-chip .vd-icon { width: 18px; height: 18px; color: var(--vd-red); }
.vd-chip:hover { border-color: var(--vd-dark); }
.vd-chip.is-active { background: var(--vd-dark); border-color: var(--vd-dark); color: #fff !important; }
.vd-chip.is-active .vd-icon { color: #fff; }
@media (min-width: 960px) { .vd-chips { flex-wrap: wrap; overflow: visible; margin: 0 0 12px; padding: 4px 0 8px; } }

/* Liste + filtres */
.vd-listing { display: grid; gap: 16px; }
.vd-filters > summary { list-style: none; width: 100%; }
.vd-filters > summary::-webkit-details-marker { display: none; }
.vd-filters__body { margin-top: 12px; background: #fff; border: 1px solid var(--vd-line); border-radius: var(--vd-radius); padding: 16px; }
@media (min-width: 960px) {
	.vd-listing { grid-template-columns: 290px minmax(0, 1fr); gap: 28px; align-items: start; }
	.vd-listing__filters { position: sticky; top: calc(var(--vd-header-h) + 16px); }
	.vd-filters > summary { display: none; }
	.vd-filters__body { margin-top: 0; }
}

.vd-empty { text-align: center; background: #fff; border: 2px dashed var(--vd-line); border-radius: var(--vd-radius); padding: 40px 20px; }
.vd-empty__icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--vd-bg-alt); color: var(--vd-muted); margin-bottom: 12px; }
.vd-empty__icon .vd-icon { width: 30px; height: 30px; }
.vd-empty__title { font-size: 1.2rem; font-weight: 750; color: var(--vd-dark); margin-bottom: .4em; }

.vd-pagination { margin-top: 28px; }
.vd-pagination ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.vd-pagination a, .vd-pagination span { display: inline-grid; place-items: center; min-width: 48px; min-height: 48px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--vd-line); background: #fff; color: var(--vd-dark) !important; font-weight: 700; text-decoration: none; }
.vd-pagination .current { background: var(--vd-dark); border-color: var(--vd-dark); color: #fff !important; }
.vd-pagination .dots { border: 0; background: none; }

/* ---------- Détail d'annonce ---------- */
.vd-detail { display: grid; gap: 16px; grid-template-areas: "gallery" "aside" "content"; }
.vd-detail__gallery { grid-area: gallery; min-width: 0; }
.vd-detail__aside { grid-area: aside; min-width: 0; }
.vd-detail__content { grid-area: content; min-width: 0; }
@media (min-width: 960px) {
	.vd-detail { grid-template-columns: minmax(0, 1fr) 380px; grid-template-areas: "gallery aside" "content aside"; gap: 24px 28px; align-items: start; }
	.vd-box--sticky { position: sticky; top: calc(var(--vd-header-h) + 16px); }
}

.vd-gallery__main { position: relative; aspect-ratio: 4 / 3; background: #111; border-radius: var(--vd-radius); overflow: hidden; }
.vd-gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.vd-gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--vd-dark); display: grid; place-items: center; cursor: pointer; box-shadow: var(--vd-shadow); }
.vd-gallery__nav--prev { left: 10px; }
.vd-gallery__nav--next { right: 10px; }
.vd-gallery__counter { position: absolute; right: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .65); color: #fff; font-size: .85rem; font-weight: 700; }
.vd-gallery__thumbs { list-style: none; display: flex; gap: 8px; overflow-x: auto; padding: 10px 2px 4px; }
.vd-gallery__thumb { width: 76px; height: 76px; padding: 0; border: 3px solid transparent; border-radius: 12px; overflow: hidden; background: var(--vd-bg-alt); cursor: pointer; flex-shrink: 0; }
.vd-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.vd-gallery__thumb.is-active { border-color: var(--vd-red); }
.vd-gallery__empty { aspect-ratio: 4 / 3; border-radius: var(--vd-radius); background: var(--vd-bg-alt); color: #a7aeb7; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-weight: 600; }
.vd-gallery__empty .vd-icon { width: 56px; height: 56px; }

.vd-detail__price { font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.1rem); font-weight: 850; color: var(--vd-dark); margin: 0 0 4px; line-height: 1.15; }
.vd-detail__nego { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 3px 10px; border-radius: 999px; background: var(--vd-bg-alt); font-size: .85rem; font-weight: 700; color: var(--vd-muted); }
.vendici .vd-detail__title { font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); margin-bottom: 14px; }
.vd-detail__facts { list-style: none; display: grid; gap: 8px; margin-bottom: 18px !important; color: var(--vd-muted); }
.vd-detail__facts li { display: flex; align-items: center; gap: 8px; }
.vd-seller { display: flex; align-items: center; gap: 12px; padding: 14px 0; margin-bottom: 16px; border-top: 1px solid var(--vd-line); border-bottom: 1px solid var(--vd-line); }
.vd-seller p { margin: 0; }
.vd-seller__name { font-weight: 750; color: var(--vd-dark); }
.vd-seller__avatar { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--vd-bg-alt); color: var(--vd-muted); }
.vd-soon { margin: 8px 0 0; font-size: .9rem; color: var(--vd-muted); text-align: center; }
.vd-detail__tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; justify-content: center; }

.vd-specs { display: grid; gap: 0; margin: 0; }
.vd-specs > div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--vd-line); }
.vd-specs > div:last-child { border-bottom: 0; }
.vd-specs dt { color: var(--vd-muted); }
.vd-specs dd { margin: 0; font-weight: 600; }
.vd-box--safety { background: #f3faf6; border-color: #cfe9da; }
.vd-box--safety h2 .vd-icon { color: var(--vd-green); }

/* ---------- Authentification ---------- */
.vd-auth h1 { margin-bottom: .2em; }
.vd-auth form p, .vd-form .vd-field { margin: 0 0 16px; }
.vd-auth label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--vd-dark); }
.vendici .vd-auth input[type="text"], .vendici .vd-auth input[type="email"], .vendici .vd-auth input[type="password"] {
	width: 100%; min-height: 52px; padding: 0 14px; border: 2px solid var(--vd-line); border-radius: 12px; background: #fff; font-size: 1rem;
}
.vendici .vd-auth input:focus { border-color: var(--vd-dark); outline: 3px solid color-mix(in srgb, var(--vd-focus) 35%, transparent); outline-offset: 0; }
.vd-auth .login-remember label { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; min-height: 44px; cursor: pointer; }
.vd-auth input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--vd-red); }
.vd-auth #vd-submit, .vd-auth .login-submit input[type="submit"] { width: 100%; min-height: 56px; border: 0; border-radius: 12px; background: var(--vd-red); color: #fff; font-weight: 750; font-size: 1.0625rem; cursor: pointer; }
.vd-auth #vd-submit:hover { background: var(--vd-red-dark); }
.vd-auth__links { text-align: center; margin-top: 4px; }
.vd-auth__switch { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--vd-line); text-align: center; }
.vd-auth__switch p { margin-bottom: 10px; color: var(--vd-muted); }
.vd-help { display: block; font-size: .9rem; color: var(--vd-muted); }
.vd-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Compte ---------- */
.vd-tiles { list-style: none; display: grid; gap: 14px; margin-bottom: 24px !important; }
.vd-tile { background: #fff; border: 1px solid var(--vd-line); border-radius: var(--vd-radius); padding: 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.vd-tile h2 { font-size: 1.15rem; margin: 6px 0 0; }
.vd-tile p { margin: 0 0 8px; color: var(--vd-muted); }
.vd-tile__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--vd-red-soft); color: var(--vd-red); }
.vd-tile.is-soon { opacity: .8; }
.vd-tile.is-soon .vd-tile__icon { background: var(--vd-bg-alt); color: var(--vd-muted); }
@media (min-width: 640px) { .vd-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .vd-tiles { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Navigation mobile (barre du bas) ---------- */
.vd-bottomnav {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 110;
	display: flex; justify-content: space-around; align-items: stretch;
	height: calc(var(--vd-bottomnav-h) + env(safe-area-inset-bottom));
	padding-bottom: env(safe-area-inset-bottom);
	background: #fff; border-top: 1px solid var(--vd-line); box-shadow: 0 -4px 16px rgba(16, 24, 40, .06);
}
.vd-bottomnav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; color: var(--vd-muted) !important; text-decoration: none; font-size: .78rem; font-weight: 700; }
.vd-bottomnav a .vd-icon { width: 24px; height: 24px; }
.vd-bottomnav a[aria-current="page"] { color: var(--vd-red) !important; }
.vd-bottomnav__plus { display: grid; place-items: center; width: 44px; height: 44px; margin-top: -18px; border-radius: 50%; background: var(--vd-red); color: #fff; box-shadow: 0 4px 12px color-mix(in srgb, var(--vd-red) 45%, transparent); border: 3px solid #fff; }
.vd-bottomnav__cta { color: var(--vd-dark) !important; }
@media (min-width: 960px) {
	.vd-bottomnav { display: none; }
	.vd-main { padding-bottom: 32px; }
}

/* ---------- Préférences utilisateur ---------- */
@media (prefers-reduced-motion: reduce) {
	.vendici *, .vendici *::before, .vendici *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
	.vd-btn, .vd-card, .vd-cat, .vd-chip { border: 2px solid CanvasText; }
}
@media print {
	.vd-header, .vd-footer, .vd-bottomnav, .vd-detail__tools, .vd-gallery__nav { display: none !important; }
}

/* =====================================================================
 * 1.0.1 — Identité valaisanne
 * ===================================================================== */

.vendici .vd-btn { font-family: var(--vd-font-display); font-weight: 700; letter-spacing: -.005em; border-radius: 14px; }
.vd-btn--primary { box-shadow: 0 6px 18px rgba(213, 43, 30, .28); }
.vd-btn--primary:hover { box-shadow: 0 8px 22px rgba(213, 43, 30, .36); transform: translateY(-1px); }
.vd-btn--outline { border-color: var(--vd-ink); color: var(--vd-ink) !important; }
.vd-btn--outline:hover { background: var(--vd-ink); }

.vd-kicker { margin: 0 0 6px !important; font-family: var(--vd-font-display); font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--vd-red); }
.vd-kicker--light { color: var(--vd-red-on-dark); }
.vd-section__head { align-items: flex-end; }

/* Logo texte (pied de page) */
.vd-wordmark { font-family: var(--vd-font-display); font-weight: 800; font-size: 1.6rem; letter-spacing: -.03em; color: #fff !important; text-decoration: none !important; }
.vd-wordmark span { color: var(--vd-red-on-dark); }
.vd-logo__text { font-family: var(--vd-font-display); letter-spacing: -.03em; }

/* ---------- Crêtes alpines (séparateurs) ---------- */
.vd-peaks { display: block; width: 100%; height: 56px; pointer-events: none; }
.vd-peaks__fill { fill: currentColor; }
.vd-peaks__accent { fill: var(--vd-red); }
@media (min-width: 960px) { .vd-peaks { height: 84px; } }

/* ---------- Hero ---------- */
.vd-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--vd-ink); color: #fff; }
.vd-hero__media { position: absolute; inset: 0; z-index: -2; }
.vd-hero__media img, .vd-hero__fallback { width: 100%; height: 100%; object-fit: cover; display: block; }
.vd-hero__media--top img { object-position: 50% 20%; }
.vd-hero__media--center img { object-position: 50% 50%; }
.vd-hero__media--bottom img { object-position: 50% 80%; }
.has-photo .vd-hero__media img { animation: vd-kenburns 18s var(--vd-ease) both; transform-origin: 60% 50%; }
@keyframes vd-kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.vd-hero__shade {
	position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(180deg, rgba(10, 11, 13, .55) 0%, rgba(10, 11, 13, .35) 35%, rgba(10, 11, 13, .78) 100%);
}
@media (min-width: 960px) {
	.vd-hero__shade {
		background:
			linear-gradient(90deg, rgba(10, 11, 13, .82) 0%, rgba(10, 11, 13, .6) 38%, rgba(10, 11, 13, .18) 70%, rgba(10, 11, 13, .05) 100%),
			linear-gradient(180deg, rgba(10, 11, 13, .25) 0%, rgba(10, 11, 13, 0) 30%, rgba(10, 11, 13, .45) 100%);
	}
}
.vd-hero__content { position: relative; padding-top: 36px; padding-bottom: 92px; }
@media (min-width: 960px) {
	.vd-hero { min-height: min(820px, 88vh); display: flex; align-items: center; }
	.vd-hero__content { padding-top: 72px; padding-bottom: 150px; }
}

.vd-hero__eyebrow {
	display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px !important; padding: 7px 14px 7px 12px;
	border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28);
	backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
	font-size: .9rem; font-weight: 600; letter-spacing: .01em;
}
.vd-hero__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--vd-red-on-dark); box-shadow: 0 0 0 0 rgba(255, 84, 70, .6); animation: vd-pulse 2.4s infinite; }
@keyframes vd-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 84, 70, .55); } 70% { box-shadow: 0 0 0 10px rgba(255, 84, 70, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 84, 70, 0); } }

.vendici .vd-hero__title {
	color: #fff; max-width: 21ch; margin-bottom: 16px;
	font-size: clamp(2.35rem, 1.3rem + 4.6vw, 4.6rem); line-height: 1.02; letter-spacing: -.035em;
	text-shadow: 0 2px 24px rgba(0, 0, 0, .25);
}
.vd-hero__accent { display: block; color: var(--vd-red-on-dark); }
.vd-hero__lead { max-width: 46ch; margin-bottom: 26px !important; font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); color: rgba(255, 255, 255, .92); }

/* Recherche premium */
.vd-search--hero {
	position: relative; max-width: 860px; color: var(--vd-text);
	background: #fff; border-radius: 22px; padding: 14px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .5);
}
.vd-search--hero .vd-field label { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--vd-muted); padding-left: 4px; }
.vendici .vd-search--hero .vd-field input, .vendici .vd-search--hero .vd-field select { min-height: 56px; border-color: transparent; background-color: var(--vd-bg-alt); font-size: 1.05rem; }
.vendici .vd-search--hero .vd-field input:hover, .vendici .vd-search--hero .vd-field select:hover { border-color: var(--vd-line); }
.vendici .vd-input-icon select { padding-left: 46px; }
.vd-search--hero .vd-field--submit .vd-btn { min-height: 56px; }
@media (min-width: 760px) {
	.vd-search--hero { display: grid; grid-template-columns: 1.7fr 1fr auto; gap: 10px; align-items: end; padding: 16px; }
	.vd-search--hero .vd-field--submit .vd-btn { width: auto; padding-left: 1.6em; padding-right: 1.6em; }
}

.vd-hero__quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font-size: .95rem; }
.vd-hero__quick-label { color: rgba(255, 255, 255, .8); font-weight: 600; margin-right: 2px; }
.vd-hero__quick a {
	display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px;
	color: #fff !important; text-decoration: none; font-weight: 600;
	background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25);
	backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
	transition: background-color .2s, border-color .2s;
}
.vd-hero__quick a:hover { background: var(--vd-red); border-color: var(--vd-red); }

.vd-hero__credit { position: absolute; right: 14px; bottom: 62px; z-index: 2; margin: 0 !important; font-size: .72rem; color: rgba(255, 255, 255, .75); text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.vd-hero__credit a { color: rgba(255, 255, 255, .9) !important; }
@media (min-width: 960px) { .vd-hero__credit { bottom: 92px; right: 24px; } }

.vd-peaks--hero { position: absolute; left: 0; right: 0; bottom: -1px; color: var(--vd-bg); z-index: 1; }

/* ---------- Cartes catégories illustrées ---------- */
.vd-catcards { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 680px) { .vd-catcards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1080px) { .vd-catcards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.vd-catcard {
	display: flex; flex-direction: column; height: 100%;
	background: #fff; border: 1px solid var(--vd-line); border-radius: var(--vd-radius); overflow: hidden;
	color: var(--vd-ink) !important; text-decoration: none !important;
	transition: transform .35s var(--vd-ease), box-shadow .35s var(--vd-ease), border-color .35s;
}
.vd-catcard:hover { transform: translateY(-4px); box-shadow: var(--vd-shadow-lg); border-color: transparent; }
.vd-catcard__visual { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--vd-bg-alt); }
.vd-catcard__art, .vd-catcard__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vd-catcard__back, .vd-catcard__front, .vd-catcard__sun, .vd-catcard__photo { transition: transform .6s var(--vd-ease); }
.vd-catcard:hover .vd-catcard__back { transform: translateX(-10px); }
.vd-catcard:hover .vd-catcard__front { transform: translateX(8px); }
.vd-catcard:hover .vd-catcard__sun { transform: translateY(-6px); }
.vd-catcard:hover .vd-catcard__photo { transform: scale(1.05); }
.vd-catcard__icon {
	position: absolute; left: 12px; bottom: 12px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
	background: #fff; color: var(--vd-accent, var(--vd-red)); box-shadow: 0 6px 16px rgba(18, 20, 23, .14);
	transition: transform .35s var(--vd-ease);
}
.vd-catcard:hover .vd-catcard__icon { transform: translateY(-3px) rotate(-4deg); }
.vd-catcard__icon .vd-icon { width: 24px; height: 24px; stroke-width: 1.8; }
.vd-catcard__name { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 13px 14px 15px; font-family: var(--vd-font-display); font-weight: 700; font-size: 1rem; line-height: 1.25; }
.vd-catcard__arrow { width: 18px; height: 18px; color: var(--vd-muted); transition: transform .3s var(--vd-ease), color .3s; }
.vd-catcard:hover .vd-catcard__arrow { transform: translateX(4px); color: var(--vd-red); }

/* ---------- Section « Explorer le Valais » ---------- */
.vd-valais { position: relative; background: var(--vd-ink); color: #e9eaec; margin-top: 56px; padding-top: 48px; }
.vd-valais .vd-peaks--valais { position: absolute; left: 0; right: 0; top: -55px; color: var(--vd-ink); }
@media (min-width: 960px) { .vd-valais { margin-top: 84px; padding-top: 64px; } .vd-valais .vd-peaks--valais { top: -83px; } }
.vd-valais h2 { color: #fff !important; max-width: 20ch; }
.vd-valais p { color: rgba(255, 255, 255, .78); max-width: 52ch; }
.vd-valais__inner { display: grid; gap: 28px; align-items: center; }
@media (min-width: 960px) { .vd-valais__inner { grid-template-columns: 1fr 1.1fr; gap: 56px; } }
.vd-places { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.vd-place {
	display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .04);
	color: #fff !important; font-weight: 600; text-decoration: none !important;
	transition: background-color .2s, border-color .2s, transform .2s var(--vd-ease);
}
.vd-place .vd-icon { width: 18px; height: 18px; color: var(--vd-red-on-dark); }
.vd-place:hover { background: var(--vd-red); border-color: var(--vd-red); transform: translateY(-2px); }
.vd-place:hover .vd-icon { color: #fff; }
.vd-place--all { background: #fff; color: var(--vd-ink) !important; border-color: #fff; }
.vd-place--all .vd-icon { color: var(--vd-red); }

/* ---------- Étapes ---------- */
.vd-steps li { border-radius: var(--vd-radius); padding: 24px; position: relative; overflow: hidden; }
.vd-steps li::after { content: ""; position: absolute; right: -10px; bottom: -14px; width: 120px; height: 60px; background: var(--vd-bg-alt); clip-path: polygon(0 100%, 35% 30%, 52% 55%, 75% 0, 100% 100%); opacity: .9; }
.vd-steps__num { background: var(--vd-red); font-family: var(--vd-font-display); }

/* ---------- Né à Sion ---------- */
.vd-origin__inner { display: grid; gap: 24px; align-items: start; }
.vd-origin__mark { color: var(--vd-red); width: 96px; }
.vd-origin__mark svg { width: 100%; height: auto; display: block; }
@media (min-width: 900px) { .vd-origin__inner { grid-template-columns: 180px 1fr; gap: 40px; max-width: 980px; } .vd-origin__mark { width: 150px; margin-top: 10px; } }

/* ---------- Appel à l'action ---------- */
.vd-cta { position: relative; background: var(--vd-red); color: #fff; padding: 40px 0 44px; margin-top: 56px; }
.vd-cta .vd-peaks--cta { position: absolute; left: 0; right: 0; top: -55px; color: var(--vd-red); }
.vd-cta .vd-peaks--cta .vd-peaks__accent { fill: var(--vd-ink); }
@media (min-width: 960px) { .vd-cta { margin-top: 84px; } .vd-cta .vd-peaks--cta { top: -83px; } }
.vd-cta h2 { color: #fff !important; margin-bottom: .25em; }
.vd-cta p { margin: 0; opacity: .95; }
.vd-cta__inner { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
@media (min-width: 760px) { .vd-cta__inner { flex-direction: row; align-items: center; justify-content: space-between; } }

/* ---------- Pied de page ---------- */
.vd-footer { position: relative; background: var(--vd-ink); color: #c9ccd1; padding-top: 44px; margin-top: 56px; }
.vd-cta + .vd-footer, .vd-main + .vd-footer { margin-top: 56px; }
.vd-footer .vd-peaks--footer { position: absolute; left: 0; right: 0; top: -55px; color: var(--vd-ink); }
@media (min-width: 960px) { .vd-footer { margin-top: 84px; } .vd-footer .vd-peaks--footer { top: -83px; } }
.vendici-home .vd-main { padding-bottom: 0; }
.vendici-home .vd-cta { margin-bottom: 0; }
.vendici-home .vd-footer { margin-top: 0; }
.vendici-home .vd-footer .vd-peaks--footer { display: none; }
.vd-footer a { color: #fff; text-decoration: none; }
.vd-footer a:hover { text-decoration: underline; color: #fff; }
.vd-footer__grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; padding-bottom: 32px; }
.vd-footer__brand { grid-column: 1 / -1; }
.vd-footer__brand p { margin: 8px 0 0; max-width: 34ch; }
.vendici .vd-footer h2 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 12px; }
.vd-footer ul { list-style: none; display: grid; gap: 2px; }
.vd-footer li a { display: inline-flex; align-items: center; min-height: 40px; }
.vd-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 16px 0; font-size: .9rem; }
.vd-footer__bottom p { margin: 0; }
@media (min-width: 900px) { .vd-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } .vd-footer__brand { grid-column: auto; } }

/* ---------- Ajustements des composants existants ---------- */
.vd-card { border-radius: var(--vd-radius); transition: transform .3s var(--vd-ease), box-shadow .3s var(--vd-ease); }
.vd-card__price { font-family: var(--vd-font-display); letter-spacing: -.01em; }
.vd-card__media img { transition: transform .6s var(--vd-ease); }
.vd-card:hover .vd-card__media img { transform: scale(1.04); }
.vd-detail__price { font-family: var(--vd-font-display); letter-spacing: -.02em; }
.vd-chip.is-active, .vd-pagination .current { background: var(--vd-ink); border-color: var(--vd-ink); }
.vd-bottomnav__plus { box-shadow: 0 6px 16px rgba(213, 43, 30, .4); }
.vd-header { border-bottom-color: transparent; box-shadow: 0 1px 0 var(--vd-line); }
.vendici-home .vd-header { box-shadow: none; }

/* ---------- Apparition au défilement (si JS) ---------- */
.vd-js .vd-reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--vd-ease), transform .7s var(--vd-ease); transition-delay: var(--vd-delay, 0ms); }
.vd-js .vd-reveal.is-in { opacity: 1; transform: none; }
/* Sécurité : si le script ne se charge pas, le contenu s'affiche quand même. */
.vd-js .vd-reveal:not(.is-in) { animation: vd-failsafe .01s 4s forwards; }
@keyframes vd-failsafe { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
	.vd-js .vd-reveal { opacity: 1; transform: none; }
	.has-photo .vd-hero__media img, .vd-hero__dot { animation: none !important; }
}
