/* ==========================================================================
   Villars Graphic - thème blocs
   Jaune #FED30D, graphite #313233. Chargé après Bootstrap 5.3 (composants)
   et les styles globaux de WordPress (theme.json).

   Règle de mise en page : dans une section « contrainte », WordPress centre
   chaque enfant direct. On ne pose donc jamais de max-width sur un enfant
   direct d'une section ; on la pose sur le contenu d'un groupe intérieur.
   ========================================================================== */

/* ---------- Jetons ---------- */
:root {
	--vg-yellow: var(--wp--preset--color--yellow);
	--vg-yellow-deep: var(--wp--preset--color--yellow-deep);
	--vg-yellow-rgb: 254, 211, 13;
	--vg-graphite: var(--wp--preset--color--graphite);
	--vg-on-yellow: var(--wp--preset--color--on-yellow);
	--vg-bg: var(--wp--preset--color--base);
	--vg-surface: var(--wp--preset--color--surface);
	--vg-text: var(--wp--preset--color--contrast);
	--vg-text-soft: var(--wp--preset--color--soft);
	--vg-text-mute: #707376;
	--vg-rule: var(--wp--preset--color--rule);
	--vg-line-strong: #cfcfcc;
	--vg-invert-bg: #232323;
	--vg-invert-fg: #ffffff;
	--vg-shadow: 0 1px 0 rgb(35 35 35 / 0.04), 0 18px 40px -24px rgb(49 50 51 / 0.35);
	--vg-font-mono: var(--wp--preset--font-family--mono);
	--vg-section: clamp(64px, 8vw, 112px);
	--vg-ease: cubic-bezier(0.16, 1, 0.3, 1);
	--vg-gutter: clamp(16px, 4vw, 48px);
	--vg-z-header: 1030;
	--vg-z-grain: 1090;

	/* Bootstrap */
	--bs-body-font-family: var(--wp--preset--font-family--archivo);
	--bs-body-font-size: 1.0625rem;
	--bs-body-line-height: 1.6;
	--bs-body-bg: var(--vg-bg);
	--bs-body-color: var(--vg-text);
	--bs-secondary-color: var(--vg-text-soft);
	--bs-border-color: var(--vg-rule);
	--bs-border-radius: 2px;
	--bs-link-color-rgb: 35, 35, 35;
	--bs-link-hover-color-rgb: 35, 35, 35;
	--bs-focus-ring-color: rgb(var(--vg-yellow-rgb) / 0.6);
	--bs-form-invalid-color: #b42318;
	--bs-form-invalid-border-color: #b42318;
	--bs-form-valid-border-color: var(--vg-line-strong);
	color-scheme: light;
}

/* Thème sombre : on redéfinit les couleurs de la palette WordPress. */
:root[data-bs-theme="dark"] {
	--wp--preset--color--base: #18191a;
	--wp--preset--color--surface: #212223;
	--wp--preset--color--contrast: #ededeb;
	--wp--preset--color--soft: #b4b7b9;
	--wp--preset--color--rule: #2f3132;
	--vg-text-mute: #93969a;
	--vg-line-strong: #4a4d4f;
	--vg-invert-bg: #ededeb;
	--vg-invert-fg: #18191a;
	--vg-shadow: 0 18px 40px -24px rgb(0 0 0 / 0.8);
	--bs-link-color-rgb: 237, 237, 235;
	--bs-link-hover-color-rgb: 237, 237, 235;
	--bs-form-invalid-color: #ff8a7a;
	--bs-form-invalid-border-color: #ff8a7a;
	color-scheme: dark;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
	font-variation-settings: "wdth" 100;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
	transition: background-color 0.3s, color 0.3s;
}
a { text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
h1, h2, h3, h4 { text-wrap: balance; margin-top: 0; }
h1, .has-display-font-size { font-variation-settings: "wdth" 112; }
h2 { font-variation-settings: "wdth" 108; }
h3 { font-variation-settings: "wdth" 104; }
:where(.is-layout-flow) > p { max-width: 65ch; text-wrap: pretty; }
::selection { background: var(--vg-yellow); color: var(--vg-on-yellow); }
:focus-visible { outline: 2px solid var(--vg-yellow-deep); outline-offset: 3px; }
.wp-block-image img { border-radius: 2px; }

.skip {
	position: absolute; left: 12px; top: -60px; z-index: 2000;
	background: var(--vg-yellow); color: var(--vg-on-yellow);
	padding: 10px 16px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Les sections pleine largeur s'enchaînent sans espace. */
.wp-site-blocks > * { margin-block: 0; }
.vg-main > .wp-block-post-content > * { margin-block-start: 0; }
.vg-main { margin: 0; }

/* ---------- Rythme des sections ---------- */
.vg-section { padding-block: var(--vg-section) calc(var(--vg-section) * 1.1); }
.vg-section-tight { padding-block: calc(var(--vg-section) * 0.6) calc(var(--vg-section) * 0.7); }
.vg-page-hero { padding-block: clamp(40px, 6vw, 88px) clamp(48px, 6vw, 88px); }
.vg-home-hero { padding-block: clamp(32px, 5vw, 72px) clamp(56px, 7vw, 100px); }
.vg-rule { border-top: 1px solid var(--vg-rule); }
.wp-block-group.vg-pt-0 { padding-top: 0; }
.wp-block-group.vg-pb-0 { padding-bottom: 0; }
.vg-pb-0 + .vg-section { padding-top: clamp(24px, 3vw, 40px); }
.vg-stack-head { margin-bottom: clamp(36px, 5vw, 64px); }
.vg-stack-head > * { max-width: 760px; }

@media (min-width: 782px) {
	.vg-sticky { position: sticky; top: 120px; align-self: flex-start; }
	.wp-block-columns:has(> .vg-col-offset) { justify-content: space-between; }
}

/* Ratios d'images */
.vg-ratio-169 img { aspect-ratio: 16 / 9; }
.vg-ratio-45 img { aspect-ratio: 4 / 5; }
.vg-ratio-54 img { aspect-ratio: 5 / 4; }
.vg-ratio-11 img { aspect-ratio: 1; }
.vg-ratio-219 img { aspect-ratio: 21 / 9; }
.vg-ratio-218 img { aspect-ratio: 21 / 8; }
:is(.vg-ratio-169, .vg-ratio-45, .vg-ratio-54, .vg-ratio-11, .vg-ratio-219, .vg-ratio-218) img { width: 100%; object-fit: cover; }
@media (max-width: 781px) { :is(.vg-ratio-219, .vg-ratio-218) img { aspect-ratio: 4 / 3; } }

/* ---------- Styles de blocs ---------- */

/* Titre « en registre » : imprimé en deux passages, le jaune se cale. */
.is-style-registre { text-shadow: 0.045em 0.04em 0 var(--vg-yellow); }
:root[data-bs-theme="dark"] .is-style-registre { text-shadow: 0.045em 0.04em 0 var(--vg-yellow-deep); }
@media (prefers-reduced-motion: no-preference) {
	.js .is-style-registre { animation: vg-register 1.4s var(--vg-ease) 0.15s both; }
}
@keyframes vg-register {
	0% { text-shadow: -0.35em 0.22em 0 rgb(254 211 13 / 0); }
	35% { text-shadow: -0.2em 0.14em 0 rgb(254 211 13 / 1); }
	100% { text-shadow: 0.045em 0.04em 0 var(--vg-yellow); }
}

/* Traits de coupe autour d'une image. */
.wp-block-image.is-style-crop { position: relative; overflow: visible; }
.wp-block-image.is-style-crop::after {
	--m: 14px; --l: 22px; --c: var(--vg-line-strong);
	content: ""; position: absolute; inset: calc(var(--m) * -1); pointer-events: none;
	background:
		linear-gradient(var(--c), var(--c)) left var(--m) top 0 / 1px calc(var(--l) - var(--m) + 2px) no-repeat,
		linear-gradient(var(--c), var(--c)) left 0 top var(--m) / calc(var(--l) - var(--m) + 2px) 1px no-repeat,
		linear-gradient(var(--c), var(--c)) right var(--m) top 0 / 1px calc(var(--l) - var(--m) + 2px) no-repeat,
		linear-gradient(var(--c), var(--c)) right 0 top var(--m) / calc(var(--l) - var(--m) + 2px) 1px no-repeat,
		linear-gradient(var(--c), var(--c)) left var(--m) bottom 0 / 1px calc(var(--l) - var(--m) + 2px) no-repeat,
		linear-gradient(var(--c), var(--c)) left 0 bottom var(--m) / calc(var(--l) - var(--m) + 2px) 1px no-repeat,
		linear-gradient(var(--c), var(--c)) right var(--m) bottom 0 / 1px calc(var(--l) - var(--m) + 2px) no-repeat,
		linear-gradient(var(--c), var(--c)) right 0 bottom var(--m) / calc(var(--l) - var(--m) + 2px) 1px no-repeat;
}
.wp-block-image.is-style-crop:has(figcaption)::after { bottom: calc(14px - 2.4em); }

/* Paragraphes */
.is-style-lead { font-size: var(--wp--preset--font-size--large); line-height: 1.5; color: var(--vg-text-soft); }
:where(.is-layout-flow) > .is-style-lead { max-width: 52ch; }
.is-style-label { font-family: var(--vg-font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--vg-text-mute); font-weight: 500; }
.is-style-pull { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 600; font-variation-settings: "wdth" 104; line-height: 1.25; letter-spacing: -0.015em; margin-block: 40px !important; padding-left: 24px; border-left: 4px solid var(--vg-yellow); max-width: 30ch !important; }
.vg-crumbs { font-family: var(--vg-font-mono); font-size: 0.78rem; color: var(--vg-text-mute); margin-bottom: 28px; }
.vg-crumbs a { color: inherit; text-decoration: none; }
.vg-crumbs a:hover { color: var(--vg-text); }
.vg-muted, .vg-note { color: var(--vg-text-soft); }
.vg-note { font-size: 0.82rem; }
.vg-h3 { font-size: var(--wp--preset--font-size--x-large) !important; font-weight: 650; }
.vg-h1-sm { font-size: clamp(2.4rem, 4.6vw, 4.4rem) !important; }

/* Boutons */
.wp-block-button__link {
	display: inline-flex; align-items: center; gap: 0.6em;
	white-space: nowrap; letter-spacing: 0.005em;
	transition: background-color 0.25s var(--vg-ease), color 0.25s, border-color 0.25s, transform 0.25s var(--vg-ease), background-size 0.35s var(--vg-ease);
}
.wp-block-button:not(.is-style-line) .wp-block-button__link::after { content: "\2192"; transition: transform 0.3s var(--vg-ease); }
.wp-block-button__link:hover::after { transform: translateX(3px); }
.wp-block-button__link:active { transform: translateY(1px) scale(0.99); }
.wp-block-button.is-style-ink .wp-block-button__link { background: var(--vg-invert-bg); border-color: var(--vg-invert-bg); color: var(--vg-invert-fg); }
.wp-block-button.is-style-ink .wp-block-button__link:hover { background: var(--vg-graphite); border-color: var(--vg-graphite); color: #fff; }
.wp-block-button.is-style-line .wp-block-button__link { background: transparent; border-color: var(--vg-line-strong); color: var(--vg-text); }
.wp-block-button.is-style-line .wp-block-button__link:hover { border-color: var(--vg-text); }
.wp-block-button.is-style-text .wp-block-button__link {
	background: linear-gradient(var(--vg-yellow), var(--vg-yellow)) left bottom / 100% 2px no-repeat;
	border: 0; padding: 0 0 2px; border-radius: 0; color: inherit;
}
.wp-block-button.is-style-text .wp-block-button__link:hover { background-size: 100% 100%; color: var(--vg-on-yellow); }
.wp-block-buttons { gap: 1.5rem; align-items: center; }

/* Listes */
.is-style-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.is-style-chips li, .chip {
	padding: 8px 14px; border: 1px solid var(--vg-line-strong); border-radius: 999px;
	font-size: 0.92rem; background: var(--vg-surface); color: var(--vg-text);
	white-space: nowrap; line-height: 1.3; margin: 0;
}
label.chip { cursor: pointer; transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
label.chip:hover { border-color: var(--vg-text); }
.btn-check:checked + label.chip { background: var(--vg-invert-bg); color: var(--vg-invert-fg); border-color: var(--vg-invert-bg); }
.btn-check:focus-visible + label.chip { box-shadow: 0 0 0 3px rgb(var(--vg-yellow-rgb) / 0.6); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.is-style-label + .is-style-chips { margin-top: 0.75rem; }
.is-style-chips + .is-style-label { margin-top: 2.5rem; }

.is-style-marquee {
	display: flex; width: max-content; list-style: none; margin: 0; padding: 26px 0;
	border-block: 1px solid var(--vg-rule); background: var(--vg-surface);
}
.is-style-marquee li { font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-weight: 700; font-variation-settings: "wdth" 115; letter-spacing: -0.02em; white-space: nowrap; display: flex; align-items: center; gap: 28px; margin-right: 28px; }
.is-style-marquee li::after { content: ""; width: 18px; height: 18px; border: 2px solid var(--vg-yellow-deep); border-radius: 50%; background: radial-gradient(circle, var(--vg-yellow-deep) 0 2px, transparent 2.5px); flex: none; }
.is-style-marquee em { color: var(--vg-text-mute); }
.vg-marquee-wrap { overflow: hidden; border-block: 1px solid var(--vg-rule); background: var(--vg-surface); }
.vg-marquee-wrap .is-style-marquee { border: 0; }
@media (prefers-reduced-motion: no-preference) {
	.vg-marquee-wrap .is-style-marquee { animation: vg-marquee 60s linear infinite; }
	.vg-marquee-wrap:hover .is-style-marquee { animation-play-state: paused; }
}
@keyframes vg-marquee { to { transform: translateX(-50%); } }

.is-style-facts { list-style: none; padding: 0; margin: 0; }
.is-style-facts li { padding: 22px 0; border-bottom: 1px solid var(--vg-rule); color: var(--vg-text-soft); }
.is-style-facts li:first-child { padding-top: 0; }
.is-style-facts strong { display: block; color: var(--vg-text); font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 800; font-variation-settings: "wdth" 118; letter-spacing: -0.035em; line-height: 1.05; margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.vg-specs-grid.is-style-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--vg-rule); border: 1px solid var(--vg-rule); margin-bottom: 40px; }
.vg-specs-grid.is-style-facts li { background: var(--vg-surface); padding: 16px 18px; border: 0; font-size: 0.85rem; }
.vg-specs-grid.is-style-facts li:last-child { grid-column: 1 / -1; }
.vg-specs-grid.is-style-facts strong { font-size: 1.05rem; font-weight: 700; letter-spacing: 0; font-variation-settings: "wdth" 100; }

.is-style-access { list-style: none; padding: 0; border-top: 1px solid var(--vg-rule); }
.is-style-access li { display: grid; grid-template-columns: 44px 1fr; gap: 4px 14px; padding: 18px 0; border-bottom: 1px solid var(--vg-rule); color: var(--vg-text-soft); align-items: center; }
.is-style-access li::before {
	content: ""; grid-row: span 2; width: 44px; height: 44px; background-color: var(--vg-yellow);
	background-image: radial-gradient(circle, transparent 7px, var(--vg-on-yellow) 7.5px 8.5px, transparent 9px), linear-gradient(var(--vg-on-yellow), var(--vg-on-yellow)), linear-gradient(var(--vg-on-yellow), var(--vg-on-yellow));
	background-size: 100% 100%, 26px 1px, 1px 26px; background-position: center; background-repeat: no-repeat;
}
.is-style-access strong { color: var(--vg-text); display: block; }

/* Groupe « panneau » */
.is-style-panel { background: var(--vg-surface); border: 1px solid var(--vg-rule); padding: clamp(24px, 3.5vw, 48px); }

/* Grande citation */
.vg-quote-band { border-block: 1px solid var(--vg-rule); }
.wp-block-quote.is-style-big { border: 0; padding: 0; margin: 0; }
.wp-block-quote.is-style-big p { font-size: clamp(1.7rem, 3.6vw, 3rem); font-weight: 650; font-variation-settings: "wdth" 104; line-height: 1.15; letter-spacing: -0.025em; max-width: 26ch; margin-bottom: 26px; }
.wp-block-quote.is-style-big p::before { content: "\201C"; color: var(--vg-yellow-deep); }
.wp-block-quote.is-style-big p::after { content: "\201D"; color: var(--vg-yellow-deep); }
.wp-block-quote.is-style-big cite { font-style: normal; font-size: 0.95rem; color: var(--vg-text-mute); }
.wp-block-quote.is-style-big cite strong { color: var(--vg-text); font-size: 1.05rem; }

/* ---------- En-tête (navbar Bootstrap) ---------- */
.vg-site-header { position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) - var(--vg-topbar-h, 0px)); z-index: var(--vg-z-header); }
@media (min-width: 1200px) { .vg-site-header { --vg-topbar-h: 33px; } }
.container-xxl { padding-inline: var(--vg-gutter); }
@media (min-width: 1400px) { .container-xxl { max-width: 1496px; } }

.topbar { background: var(--vg-graphite); color: #d9dadb; font-family: var(--vg-font-mono); font-size: 0.78rem; }
:root[data-bs-theme="dark"] .topbar { background: #111213; }
.topbar .container-xxl { display: flex; justify-content: flex-end; gap: 24px; padding-block: 7px; }
.topbar a { text-decoration: none; color: inherit; display: inline-flex; gap: 6px; align-items: center; }
.topbar a:hover { color: var(--vg-yellow); }

.vg-nav {
	--bs-navbar-padding-y: 0;
	--bs-navbar-color: var(--vg-text);
	--bs-navbar-hover-color: var(--vg-text);
	--bs-navbar-active-color: var(--vg-text);
	--bs-navbar-nav-link-padding-x: 0.8rem;
	min-height: 72px; border-bottom: 1px solid var(--vg-rule); isolation: isolate;
}
/* Flou sur un pseudo-élément : sur la navbar, il casserait l'offcanvas mobile. */
.vg-nav::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: color-mix(in srgb, var(--vg-bg) 88%, transparent);
	backdrop-filter: blur(14px) saturate(140%);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
}
.vg-nav .navbar-brand img { height: 46px; width: auto; }
.vg-nav .nav-link { font-size: 0.95rem; font-weight: 550; padding-block: 0.65rem; border-radius: 2px; transition: background-color 0.2s; text-decoration: none; }
.vg-nav .nav-link:hover, .vg-nav .nav-link:focus-visible { background: color-mix(in srgb, var(--vg-text) 6%, transparent); }
.vg-nav .nav-link.active, .vg-nav .nav-link.show { box-shadow: inset 0 -2px 0 var(--vg-yellow); }
.vg-nav .dropdown-toggle::after { display: none; }
.vg-nav .dropdown-toggle i { font-size: 0.85em; margin-left: 2px; transition: transform 0.25s var(--vg-ease); }
.vg-nav .dropdown-toggle.show i { transform: rotate(180deg); }
.vg-nav .dropdown-menu {
	--bs-dropdown-bg: var(--vg-surface);
	--bs-dropdown-border-color: var(--vg-rule);
	--bs-dropdown-border-radius: 2px;
	--bs-dropdown-link-hover-bg: color-mix(in srgb, var(--vg-text) 6%, transparent);
	--bs-dropdown-link-active-bg: rgb(var(--vg-yellow-rgb) / 0.35);
	--bs-dropdown-link-active-color: var(--vg-text);
	--bs-dropdown-link-color: var(--vg-text);
	--bs-dropdown-link-hover-color: var(--vg-text);
	--bs-dropdown-padding-x: 8px; --bs-dropdown-padding-y: 8px;
	--bs-dropdown-item-padding-x: 10px; --bs-dropdown-item-padding-y: 10px;
	min-width: 310px; box-shadow: var(--vg-shadow);
}
.vg-nav .dropdown-item { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; white-space: normal; border-radius: 2px; text-decoration: none; }
.vg-nav .dropdown-item.no-thumb { grid-template-columns: 1fr; }
.vg-nav .dropdown-item img { width: 44px; height: 44px; object-fit: cover; border-radius: 2px; }
.vg-nav .dropdown-item strong { display: block; font-weight: 600; font-size: 0.95rem; }
.vg-nav .dropdown-item small { display: block; color: var(--vg-text-soft); font-size: 0.8rem; line-height: 1.35; }
@media (min-width: 1200px) {
	/* Sous-menu au survol : il reste ouvert un court instant (0,3 s) après la sortie du curseur,
	   et un « pont » invisible couvre l'espace entre le lien et le menu. */
	.vg-nav .dropdown > .dropdown-menu {
		display: block; top: calc(100% + 8px); margin-top: 0 !important;
		opacity: 0; visibility: hidden; transform: translateY(6px);
		transition: opacity 0.18s ease 0.12s, transform 0.25s var(--vg-ease) 0.12s, visibility 0s linear 0.3s;
	}
	.vg-nav .dropdown > .dropdown-menu::before { content: ""; position: absolute; left: -12px; right: -12px; bottom: 100%; height: 20px; }
	.vg-nav .dropdown:hover > .dropdown-menu,
	.vg-nav .dropdown:focus-within > .dropdown-menu,
	.vg-nav .dropdown > .dropdown-menu.show { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
}
.vg-nav .nav-cta { margin-left: 10px; }

.btn {
	--bs-btn-padding-x: 1.4rem; --bs-btn-padding-y: 0.9rem; --bs-btn-font-weight: 600; --bs-btn-font-size: 0.98rem; --bs-btn-border-radius: 2px;
	--bs-btn-focus-box-shadow: 0 0 0 3px rgb(var(--vg-yellow-rgb) / 0.55);
	display: inline-flex; align-items: center; gap: 0.6em; white-space: nowrap; text-decoration: none;
}
.btn i { font-size: 1.15em; transition: transform 0.3s var(--vg-ease); }
.btn:hover i { transform: translateX(3px); }
.btn-brand {
	--bs-btn-bg: var(--vg-yellow); --bs-btn-border-color: var(--vg-yellow); --bs-btn-color: var(--vg-on-yellow);
	--bs-btn-hover-bg: var(--vg-yellow-deep); --bs-btn-hover-border-color: var(--vg-yellow-deep); --bs-btn-hover-color: var(--vg-on-yellow);
	--bs-btn-active-bg: var(--vg-yellow-deep); --bs-btn-active-border-color: var(--vg-yellow-deep); --bs-btn-active-color: var(--vg-on-yellow);
}
.btn-line {
	--bs-btn-bg: transparent; --bs-btn-border-color: var(--vg-line-strong); --bs-btn-color: var(--vg-text);
	--bs-btn-hover-bg: var(--vg-yellow); --bs-btn-hover-border-color: var(--vg-yellow); --bs-btn-hover-color: var(--vg-on-yellow);
	--bs-btn-active-bg: var(--vg-yellow-deep); --bs-btn-active-color: var(--vg-on-yellow);
}

/* Lignes et tuiles cliquables en entier (voir site.js). */
.is-linked { cursor: pointer; }

/* Lecture : repère de registre qui se remplit au scroll */
@property --p { syntax: "<number>"; inherits: false; initial-value: 0; }
.regwrap { position: relative; width: 26px; height: 26px; flex: none; }
.regwrap::before, .regwrap::after { content: ""; position: absolute; background: var(--vg-text); left: 50%; top: 50%; }
.regwrap::before { width: 34px; height: 1px; transform: translate(-50%, -50%); }
.regwrap::after { width: 1px; height: 34px; transform: translate(-50%, -50%); }
.regwrap .ring { position: absolute; inset: 0; border: 1px solid var(--vg-text); border-radius: 50%; }
.regmark {
	position: absolute; inset: 0; border-radius: 50%;
	background: conic-gradient(var(--vg-yellow) calc(var(--p, 0) * 1turn), transparent 0);
	-webkit-mask: radial-gradient(circle, transparent 7px, #000 7.5px);
	mask: radial-gradient(circle, transparent 7px, #000 7.5px);
}
@supports (animation-timeline: scroll()) {
	.regmark { animation: vg-read linear both; animation-timeline: scroll(root); animation-duration: auto !important; }
}
@keyframes vg-read { to { --p: 1; } }

/* Bouton thème clair / sombre */
.theme-toggle {
	display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px;
	border: 1px solid var(--vg-line-strong); border-radius: 999px;
	background: var(--vg-surface); color: var(--vg-text);
	font-size: 0.85rem; font-weight: 600; cursor: pointer;
	transition: border-color 0.2s, background-color 0.3s;
}
.theme-toggle:hover { border-color: var(--vg-text); }
.theme-toggle__track { position: relative; width: 34px; height: 20px; border-radius: 999px; background: var(--vg-rule); transition: background-color 0.3s; flex: none; }
.theme-toggle__thumb { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--vg-yellow); display: grid; place-items: center; font-size: 10px; color: var(--vg-on-yellow); transition: transform 0.35s var(--vg-ease); }
:root[data-bs-theme="dark"] .theme-toggle__track { background: #3a3c3e; }
:root[data-bs-theme="dark"] .theme-toggle__thumb { transform: translateX(14px); }

.vg-toggler { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--vg-line-strong); border-radius: 2px; padding: 9px 14px; font-weight: 600; font-size: 0.95rem; background: transparent; color: var(--vg-text); }
@media (max-width: 1199.98px) {
	.topbar { display: none; }
	.vg-nav .offcanvas { --bs-offcanvas-bg: var(--vg-graphite); --bs-offcanvas-color: #f1f1ef; --bs-offcanvas-width: min(440px, 100vw); }
	.vg-nav .offcanvas .nav-link { color: #f1f1ef; font-size: clamp(1.5rem, 6vw, 2rem); font-weight: 700; font-variation-settings: "wdth" 110; letter-spacing: -0.02em; padding: 12px 0; border-bottom: 1px solid #45484a; box-shadow: none !important; }
	.vg-nav .offcanvas .nav-link.active { color: var(--vg-yellow); }
	.vg-nav .offcanvas .dropdown-menu { position: static; display: block; background: transparent; border: 0; box-shadow: none; padding: 0; margin: 0 !important; min-width: 0; }
	.vg-nav .offcanvas .dropdown-toggle { pointer-events: none; }
	.vg-nav .offcanvas .dropdown-toggle i { display: none; }
	.vg-nav .offcanvas .dropdown-item { color: #c7c9ca; padding: 8px 0 8px 18px; grid-template-columns: 1fr; }
	.vg-nav .offcanvas .dropdown-item img, .vg-nav .offcanvas .dropdown-item small { display: none; }
	.vg-nav .offcanvas .dropdown-item strong { font-weight: 500; font-size: 1.1rem; }
	.vg-nav .offcanvas .dropdown-item:hover, .vg-nav .offcanvas .dropdown-item.active { background: transparent; color: var(--vg-yellow); }
	.vg-nav .offcanvas .nav-cta { margin: 24px 0 0; }
	.vg-nav .offcanvas .btn-close { filter: invert(1); opacity: 0.9; }
	.offcanvas-foot { margin-top: auto; padding-top: 32px; font-family: var(--vg-font-mono); font-size: 0.9rem; display: grid; gap: 6px; }
	.offcanvas-foot a { color: var(--vg-yellow); text-decoration: none; }
}
@media (min-width: 1200px) { .offcanvas-foot { display: none; } }

/* ---------- Accueil ---------- */
.vg-home-hero h1 { font-size: clamp(2.6rem, 5.6vw, 5.1rem); }
.vg-hero-img img { width: 100%; aspect-ratio: 4 / 5; max-height: calc(100dvh - 250px); min-height: 380px; object-fit: cover; }
@media (max-width: 781px) { .vg-hero-img img { aspect-ratio: 4 / 3; min-height: 0; } }
.vg-since { display: flex; align-items: baseline; gap: 14px; font-family: var(--vg-font-mono); font-size: 0.8rem; color: var(--vg-text-mute); margin-top: 22px !important; }
.vg-since strong { font-family: var(--wp--preset--font-family--archivo); font-size: 2.2rem; color: var(--vg-text); font-weight: 800; font-variation-settings: "wdth" 120; letter-spacing: -0.03em; }

/* Index des services */
.vg-svc-index { position: relative; }
.vg-svc-index > * { margin-block-start: 0 !important; }
.vg-svc-row {
	position: relative; isolation: isolate;
	display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) 48px; gap: 32px; align-items: center;
	padding: 30px 0; border-bottom: 1px solid var(--vg-rule);
}
.vg-svc-row > * { margin: 0 !important; }
.vg-svc-row::before { content: ""; position: absolute; inset: 0 calc(var(--vg-gutter) * -1); z-index: -1; background: var(--vg-yellow); transform: scaleY(0); transform-origin: bottom; transition: transform 0.45s var(--vg-ease); }
.vg-svc-row::after { content: "\2192"; grid-column: 3; grid-row: 1; justify-self: end; font-size: 1.8rem; line-height: 1; transition: transform 0.35s var(--vg-ease); }
.vg-svc-row:hover::before, .vg-svc-row:focus-within::before { transform: scaleY(1); }
.vg-svc-row:hover, .vg-svc-row:focus-within, .vg-svc-row:hover p { color: var(--vg-on-yellow); }
.vg-svc-row:hover::after { transform: rotate(-45deg); }
.vg-svc-row h3 { grid-column: 1; grid-row: 1; font-size: clamp(1.6rem, 3.2vw, 2.8rem); font-weight: 700; font-variation-settings: "wdth" 112; letter-spacing: -0.03em; transition: transform 0.45s var(--vg-ease); }
.vg-svc-row:hover h3 { transform: translateX(10px); }
.vg-svc-row h3 a { color: inherit; text-decoration: none; }
.vg-svc-row p { grid-column: 2; grid-row: 1; color: var(--vg-text-soft); font-size: 0.98rem; }
.vg-svc-row .vg-svc-thumb { display: none; }
.svc-preview { position: absolute; top: 0; left: 0; width: 260px; aspect-ratio: 4 / 5; pointer-events: none; z-index: 2; margin: -160px 0 0 40px; opacity: 0; scale: 0.85; transition: opacity 0.3s, scale 0.4s var(--vg-ease); box-shadow: var(--vg-shadow); }
.svc-preview.show { opacity: 1; scale: 1; }
.svc-preview img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none), (max-width: 991.98px) {
	.svc-preview { display: none; }
	.vg-svc-row { grid-template-columns: 88px 1fr; gap: 6px 18px; padding: 22px 0; align-items: start; }
	.vg-svc-row::after { display: none; }
	.vg-svc-row .vg-svc-thumb { display: block; grid-column: 1; grid-row: 1 / span 2; }
	.vg-svc-row .vg-svc-thumb img { aspect-ratio: 1; object-fit: cover; width: 88px; }
	.vg-svc-row h3 { grid-column: 2; font-size: 1.5rem; }
	.vg-svc-row p { grid-column: 2; grid-row: 2; }
}

/* Frise */
.vg-timeline > * { margin-block-start: 0 !important; }
.vg-tl-row { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; padding: 34px 0; border-top: 1px solid var(--vg-rule); }
.vg-tl-row:last-child { border-bottom: 1px solid var(--vg-rule); }
.vg-tl-row > * { margin: 0 !important; }
.vg-yr { font-size: clamp(2.6rem, 5vw, 4.2rem); font-weight: 800; font-variation-settings: "wdth" 120; line-height: 0.9; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; transition: color 0.3s; }
.vg-tl-row:hover .vg-yr { color: transparent; -webkit-text-stroke: 1.5px var(--vg-text); }
.vg-tl-row h3 { font-size: 1.2rem; font-weight: 650; margin-bottom: 6px; letter-spacing: -0.01em; }
.vg-tl-row p { margin: 0; color: var(--vg-text-soft); }
@media (max-width: 600px) { .vg-tl-row { grid-template-columns: 1fr; gap: 8px; } }

/* Mosaïque */
.vg-bento { display: grid; grid-template-columns: 2fr 1fr; grid-template-areas: "cal eco" "cal ech" "ate ate" "plx plx"; gap: 16px; }
.vg-b-plx { grid-area: plx; min-height: 0 !important; height: auto; align-self: start; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; padding: 26px clamp(24px, 3vw, 40px); border: 1px solid var(--vg-rule); }
.vg-b-plx p { margin: 0; }
.vg-b-plx h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 700; margin: 0; }
.vg-b-plx h3 a::after { content: " ↗"; color: var(--vg-yellow-deep); }
.vg-h1-home { font-size: clamp(2.6rem, 5.6vw, 5.4rem) !important; }
.vg-bento > *, .vg-tile > *, .vg-tile-body > * { margin-block-start: 0 !important; }
.vg-tile { position: relative; overflow: hidden; border-radius: 2px; min-height: 260px; }
/* WordPress ajoute un padding aux groupes colorés : les tuiles gèrent le leur. */
.vg-tile.has-background { padding: 0; }
.vg-b-eco.has-background { padding: 30px; }
.vg-tile h3 a { color: inherit; text-decoration: none; }
.vg-tile-bg { position: absolute; inset: 0; margin: 0 !important; max-width: none !important; }
.vg-tile-bg img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform 1.4s var(--vg-ease); }
.vg-tile:hover .vg-tile-bg img { transform: scale(1.04); }

.vg-b-cal { grid-area: cal; min-height: 620px; color: #fff; background: #222; }
.vg-b-cal::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(20 20 21 / 0.85), rgb(20 20 21 / 0) 55%); }
.vg-b-cal .vg-tile-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(24px, 3vw, 44px); display: grid; gap: 14px; justify-items: start; }
.vg-b-cal h3 { font-size: clamp(2rem, 3.6vw, 3.2rem); font-weight: 800; font-variation-settings: "wdth" 112; }
.vg-b-cal p { margin: 0; color: #e2e2e0; }
.vg-fake-btn { background: var(--vg-yellow); color: var(--vg-on-yellow) !important; font-weight: 600; padding: 0.9rem 1.4rem; border-radius: 2px; }
.vg-fake-btn::after { content: " \2192"; }

.vg-b-eco { grid-area: eco; padding: 30px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; color: #f1f1ef; }
.vg-eco-logo img { width: 150px; }
.vg-b-eco p { margin: 0; font-size: 1.12rem; font-weight: 550; line-height: 1.35; }
.vg-mono-link { font-family: var(--vg-font-mono); font-size: 0.85rem !important; }
.vg-mono-link a { color: var(--vg-yellow); text-decoration: none; }
.vg-mono-link a::before { content: "\2197  "; }

.vg-b-ech { grid-area: ech; display: grid; grid-template-columns: 1fr 1fr; }
.vg-b-ech .vg-tile-body { padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.vg-b-ech h3 { font-size: 1.35rem; font-weight: 700; line-height: 1.12; }
.vg-more { font-weight: 600; border-bottom: 2px solid currentColor; width: fit-content; }
.vg-b-ech .wp-block-image { margin: 0; height: 100%; }
.vg-b-ech .wp-block-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }

.vg-b-ate { grid-area: ate; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--vg-rule); min-height: 380px; }
.vg-b-ate .wp-block-image { margin: 0; height: 100%; }
.vg-b-ate .wp-block-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; min-height: 280px; }
.vg-b-ate .vg-tile-body { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.vg-b-ate .vg-tile-body p { color: var(--vg-text-soft); }
@media (max-width: 900px) {
	.vg-bento { grid-template-columns: 1fr; grid-template-areas: "cal" "eco" "ech" "ate" "plx"; }
	.vg-b-cal { min-height: 480px; }
	.vg-b-ate { grid-template-columns: 1fr; }
}

/* ---------- À propos ---------- */
.vg-hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 30%); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 18px; scrollbar-width: thin; scrollbar-color: var(--vg-line-strong) transparent; }
.vg-hscroll > * { margin: 0 !important; }
.vg-card { position: relative; scroll-snap-align: start; }
.vg-card > * { margin-block-start: 0 !important; }
.vg-card .wp-block-image { margin-bottom: 14px; overflow: hidden; background: var(--vg-rule); }
.vg-card .wp-block-image img { aspect-ratio: 3 / 4; width: 100%; object-fit: cover; transition: transform 1.2s var(--vg-ease); }
.vg-card:hover .wp-block-image img { transform: scale(1.03); }
.vg-card .vg-contain, .vg-contain { background: #fff; }
.vg-card .vg-contain img, .vg-contain img { object-fit: contain !important; padding: 12%; }
.vg-card h3 { font-size: 1.3rem; font-weight: 650; margin-bottom: 6px; }
.vg-card h3 a { color: inherit; text-decoration: none; }
.vg-card p { color: var(--vg-text-soft); font-size: 0.95rem; }
.vg-hscroll-nav { display: flex; gap: 8px; justify-content: flex-end; margin-bottom: 16px; }
.vg-hscroll-nav button { width: 46px; height: 46px; border: 1px solid var(--vg-line-strong); background: var(--vg-surface); color: var(--vg-text); border-radius: 2px; font-size: 1.2rem; cursor: pointer; }
.vg-hscroll-nav button:hover { background: var(--vg-yellow); border-color: var(--vg-yellow); color: var(--vg-on-yellow); }
@media (max-width: 700px) { .vg-hscroll { grid-auto-columns: 78%; } }

/* ---------- Photographie : couverture + onglets ---------- */
.vg-cover-hero { position: relative; min-height: min(78dvh, 760px); display: flex; flex-direction: column; justify-content: flex-end; color: #fff; background: #1b1b1c; overflow: hidden; padding-block: clamp(40px, 6vw, 88px); }
.vg-cover-hero > .vg-cover-bg { position: absolute; inset: 0; max-width: none !important; margin: 0 !important; z-index: 0; }
.vg-cover-bg img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.vg-cover-hero::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(to top, rgb(18 18 19 / 0.88) 0%, rgb(18 18 19 / 0.35) 45%, rgb(18 18 19 / 0.05) 100%); }
.vg-cover-hero > :not(.vg-cover-bg) { position: relative; z-index: 1; width: 100%; }
.vg-cover-hero .vg-crumbs { color: #c9cbcc; }
.vg-cover-hero .is-style-lead { color: #e1e2e3; }

.vg-tabs.is-ready { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(28px, 5vw, 72px); }
.vg-tabs.is-ready > .tab-content { margin: 0; }
.vg-tabs.is-ready .vg-tab-label { display: none; }
.vg-tabs:not(.is-ready) .vg-tab + .vg-tab { margin-top: 3rem; }
.vg-tabnav { display: flex; flex-direction: column; gap: 4px; }
.vg-tabnav .nav-link {
	text-align: left; border: 0; border-radius: 0; border-bottom: 1px solid var(--vg-rule); background: none; padding: 18px 0;
	font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 700; font-variation-settings: "wdth" 112; letter-spacing: -0.03em;
	color: var(--vg-text-mute); display: flex; justify-content: space-between; align-items: center;
}
.vg-tabnav .nav-link::after { content: "\2192"; font-size: 1.4rem; opacity: 0; transform: translateX(-10px); transition: 0.3s var(--vg-ease); color: var(--vg-yellow-deep); }
.vg-tabnav .nav-link:hover, .vg-tabnav .nav-link.active { color: var(--vg-text); }
.vg-tabnav .nav-link.active::after { opacity: 1; transform: none; }
.tab-pane.fade { transform: translateY(14px); transition: opacity 0.4s, transform 0.6s var(--vg-ease); }
.tab-pane.fade.show { transform: none; }
.vg-tab p { color: var(--vg-text-soft); }
@media (max-width: 991.98px) {
	.vg-tabs.is-ready { grid-template-columns: 1fr; }
	.vg-tabnav { flex-direction: row; overflow-x: auto; gap: 20px; }
	.vg-tabnav .nav-link { font-size: 1.4rem; white-space: nowrap; }
	.vg-tabnav .nav-link::after { display: none; }
}

/* Tuiles « autres prestations » */
.vg-related { display: grid; grid-template-columns: 1.4fr 1fr; grid-auto-rows: minmax(240px, auto); gap: 16px; margin-top: 2rem; }
.vg-related > * { margin: 0 !important; }
.vg-related-tile { color: #fff; background: #222; }
.vg-related-tile.is-big { grid-row: span 2; min-height: 500px; }
.vg-related-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(20 20 21 / 0.82), rgb(20 20 21 / 0) 60%); z-index: 1; }
.vg-related-tile.vg-contain .vg-tile-bg img { object-fit: contain; background: #f4f4f3; padding: 10%; }
.vg-related-tile h3 { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 2; display: flex; justify-content: space-between; align-items: end; gap: 12px; font-size: clamp(1.3rem, 2.2vw, 1.9rem); font-weight: 700; font-variation-settings: "wdth" 110; letter-spacing: -0.02em; line-height: 1.05; }
.vg-related-tile h3::after { content: "\2192"; flex: none; width: 44px; height: 44px; display: grid; place-items: center; background: var(--vg-yellow); color: var(--vg-on-yellow); font-size: 1.3rem; transition: transform 0.35s var(--vg-ease); }
.vg-related-tile:hover h3::after { transform: rotate(-45deg); }
@media (max-width: 781px) { .vg-related { grid-template-columns: 1fr; } .vg-related-tile.is-big { grid-row: auto; min-height: 320px; } }

/* ---------- 3D ---------- */
.vg-tilt { background: #fff; border: 1px solid var(--vg-rule); padding: 8%; transition: transform 0.4s var(--vg-ease); }
.vg-tilt img { width: 100%; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 30px 30px rgb(35 35 35 / 0.18)); }
.vg-axes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 64px; }
.vg-axes > * { margin: 0 !important; }
.vg-axis-card { background: var(--vg-surface); border: 1px solid var(--vg-rule); border-radius: 2px; }
.vg-axes > .is-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 3fr 2fr; grid-template-rows: 1fr auto auto 1fr; }
.vg-axes > .is-featured > .vg3d { grid-row: 1 / -1; border-bottom: 0; border-right: 1px solid var(--vg-rule); }
.vg-axes > .is-featured > h3 { grid-row: 2; font-size: clamp(1.4rem, 2.4vw, 2rem); padding: 0 32px; }
.vg-axes > .is-featured > .axes { grid-row: 3; padding: 18px 32px 0; }
.vg-axis-card:not(.is-featured):nth-child(odd) { position: relative; top: 64px; }
.vg-axis-card > * { margin-block-start: 0 !important; }
.vg-axis-img { margin: 0; background: #fff; border-bottom: 1px solid var(--vg-rule); padding: 28px; }
.vg-axis-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.vg-axis-card h3 { font-size: 1.15rem; font-weight: 650; letter-spacing: -0.01em; padding: 24px 24px 0; }
.vg-axis-card .axes { padding: 18px 24px 24px; }
@media (max-width: 781px) { .vg-axes { grid-template-columns: 1fr; padding-bottom: 0; } .vg-axis-card:not(.is-featured):nth-child(odd) { top: 0; } .vg-axes > .is-featured { display: block; } .vg-axes > .is-featured > .vg3d { border-right: 0; border-bottom: 1px solid var(--vg-rule); } .vg-axes > .is-featured > h3 { padding: 24px 24px 0; } .vg-axes > .is-featured > .axes { padding: 18px 24px 24px; } }
.axes { display: flex; gap: 24px; flex-wrap: wrap; }
.axis { display: flex; align-items: center; gap: 12px; }
.axis__ring { width: 46px; height: 46px; border-radius: 50%; background: conic-gradient(from calc(var(--deg) * -0.5deg + 90deg), var(--vg-yellow-deep) calc(var(--deg) * 1deg), var(--vg-rule) 0); -webkit-mask: radial-gradient(circle, transparent 15px, #000 16px); mask: radial-gradient(circle, transparent 15px, #000 16px); }
.axis__ring--h { background: conic-gradient(var(--vg-yellow-deep) calc(var(--deg) * 1deg), var(--vg-rule) 0); }
.axis__txt { display: grid; line-height: 1.2; }
.axis__txt b { font-family: var(--vg-font-mono); font-size: 1rem; font-weight: 500; }
.axis__txt span { font-size: 0.82rem; color: var(--vg-text-mute); }

.vg-qa { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(20px, 5vw, 80px); padding-block: 40px; border-top: 1px solid var(--vg-rule); }
.vg-qa > * { margin: 0 !important; }
.vg-qa h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 700; font-variation-settings: "wdth" 108; letter-spacing: -0.02em; line-height: 1.1; }
.vg-qa p { color: var(--vg-text-soft); font-size: 1.05rem; }
@media (max-width: 781px) { .vg-qa { grid-template-columns: 1fr; } }

/* Objet 3D (Object2VR) : aperçu, puis lecteur en iframe au clic */
.vg3d { position: relative; overflow: hidden; background: #fff; border-bottom: 1px solid var(--vg-rule); width: 100%; margin: 0 !important; }
.vg3d > img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform 1.2s var(--vg-ease), filter 0.4s; }
.vg3d:hover > img { transform: scale(1.03); }
.vg3d iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vg3d__btn {
	position: absolute; left: 50%; bottom: 18px; translate: -50% 0;
	display: inline-flex; align-items: center; gap: 0.5em; white-space: nowrap;
	padding: 0.7rem 1.1rem; border: 0; border-radius: 999px; cursor: pointer;
	background: var(--vg-yellow); color: var(--vg-on-yellow); font-weight: 600; font-size: 0.92rem;
	box-shadow: 0 10px 30px -10px rgb(0 0 0 / 0.45); transition: scale 0.3s var(--vg-ease), background-color 0.2s;
}
.vg3d__btn:hover { background: var(--vg-yellow-deep); scale: 1.05; }
.vg3d__btn i { font-size: 1.2em; }
.vg3d.is-loading::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--vg-yellow); transform-origin: left; animation: vg-load 1.6s var(--vg-ease) infinite; }
@keyframes vg-load { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Aérienne ---------- */
.vg-title-lead { margin-bottom: clamp(32px, 4vw, 56px); }
.vg-title-lead .is-style-lead { margin: 0; }
.vg-altimeter { display: grid; gap: 16px; margin-top: 2rem; }
.vg-altimeter > * { margin: 0 !important; }
.vg-alt-row { display: grid; grid-template-columns: 260px 1fr 1.1fr; gap: clamp(20px, 3vw, 44px); align-items: center; padding: 20px; background: var(--vg-surface); border: 1px solid var(--vg-rule); border-radius: 2px; }
.vg-alt-row > * { margin: 0 !important; }
.vg-alt-row .wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.vg-alt-row h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 700; font-variation-settings: "wdth" 110; letter-spacing: -0.02em; margin-bottom: 10px; }
.vg-alt-row p { margin: 0; color: var(--vg-text-soft); font-size: 0.98rem; }
@media (max-width: 900px) { .vg-alt-row { grid-template-columns: 1fr; } }
.alt-gauge { display: grid; gap: 12px; }
.alt-gauge__val { font-size: clamp(2.4rem, 4.6vw, 4rem); font-weight: 800; font-variation-settings: "wdth" 120; letter-spacing: -0.04em; line-height: 0.9; font-variant-numeric: tabular-nums; }
.alt-gauge__val small { font-size: 0.4em; font-weight: 600; letter-spacing: 0; margin-left: 4px; color: var(--vg-text-mute); }
.alt-gauge__bar { height: 10px; position: relative; background: repeating-linear-gradient(90deg, var(--vg-line-strong) 0 1px, transparent 1px 10%); }
.alt-gauge__bar span { position: absolute; inset: 0 auto 0 0; width: calc(var(--h) * 1%); background: var(--vg-yellow); transform-origin: left; }
@media (prefers-reduced-motion: no-preference) {
	.js .vg-alt-row .alt-gauge__bar span { transform: scaleX(0); transition: transform 1.4s var(--vg-ease) 0.3s; }
	.js .vg-alt-row.in .alt-gauge__bar span { transform: none; }
}
.alt-gauge .mono { font-family: var(--vg-font-mono); font-size: 0.8rem; color: var(--vg-text-mute); }

.vg-aero-gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 300px 300px; grid-auto-rows: 300px; gap: 12px; margin-top: 1.5rem; }
.vg-aero-gallery > * { margin: 0 !important; }
.vg-aero-gallery .wp-block-image { margin: 0; }
.vg-aero-gallery .wp-block-image:first-child { grid-row: span 2; }
.vg-aero-gallery .wp-block-image a, .vg-aero-gallery .wp-block-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 781px) { .vg-aero-gallery { grid-template-columns: 1fr; grid-template-rows: none; } .vg-aero-gallery .wp-block-image:first-child { grid-row: auto; } .vg-aero-gallery img { aspect-ratio: 4 / 3; } }

/* ---------- Vidéo ---------- */
.vg-videos { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 20px; }
.vg-videos > * { margin: 0 !important; }
.vg-videos .vid--feature { grid-column: 1 / -1; }
.vid { margin: 0; }
/* Le bouton reste en position absolue dans .ratio (sinon le cadre 16:9 double de hauteur). */
.vid__poster { display: block; width: 100%; height: 100%; background: #1c1d1e; border: 0; padding: 0; cursor: pointer; overflow: hidden; border-radius: 2px; }
.vid__poster img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--vg-ease); }
.vid__poster:hover img { transform: scale(1.04); }
.vid__play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 76px; height: 76px; border-radius: 50%; background: var(--vg-yellow); color: var(--vg-on-yellow); display: grid; place-items: center; font-size: 1.7rem; transition: scale 0.35s var(--vg-ease); box-shadow: 0 10px 30px -8px rgb(0 0 0 / 0.5); }
.vid--feature .vid__play { width: 104px; height: 104px; font-size: 2.2rem; }
.vid__poster:hover .vid__play { scale: 1.1; }
.vid iframe { border: 0; border-radius: 2px; }
.vid__title { margin-top: 14px; font-weight: 600; font-size: 1rem; color: var(--vg-text); }
@media (max-width: 700px) { .vg-videos { grid-template-columns: 1fr; } }

/* ---------- Impression ---------- */
.qty-tool { padding: clamp(28px, 4vw, 52px); background: var(--vg-surface); border: 1px solid var(--vg-rule); margin-bottom: 16px; }
.qty-tool__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.qty-tool label { font-weight: 600; display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.qty-tool output { font-family: var(--vg-font-mono); font-size: 1.1rem; }
.qty-tool__scale { display: flex; justify-content: space-between; font-family: var(--vg-font-mono); font-size: 0.75rem; color: var(--vg-text-mute); }
.qty-tool__res { border-left: 4px solid var(--vg-yellow); padding-left: 24px; }
.qty-tool__name { display: block; font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 800; font-variation-settings: "wdth" 115; letter-spacing: -0.035em; line-height: 1; margin: 6px 0 12px; }
.qty-tool__res p { margin: 0; color: var(--vg-text-soft); }
.label-vg { font-family: var(--vg-font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--vg-text-mute); font-weight: 500; }
@media (max-width: 781px) { .qty-tool__grid { grid-template-columns: 1fr; } }
.form-range { height: 28px; }
.form-range::-webkit-slider-runnable-track { height: 6px; background: var(--vg-rule); border-radius: 0; }
.form-range::-moz-range-track { height: 6px; background: var(--vg-rule); border-radius: 0; }
.form-range::-webkit-slider-thumb { width: 26px; height: 26px; margin-top: -10px; background: var(--vg-yellow); border: 3px solid #232323; border-radius: 50%; }
.form-range::-moz-range-thumb { width: 22px; height: 22px; background: var(--vg-yellow); border: 3px solid #232323; border-radius: 50%; }

.vg-proc-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.vg-proc-grid > * { margin: 0 !important; }
.vg-proc-grid > :nth-child(4n + 1), .vg-proc-grid > :nth-child(4n + 4) { grid-column: span 7; }
.vg-proc-grid > :nth-child(4n + 2), .vg-proc-grid > :nth-child(4n + 3) { grid-column: span 5; }
.vg-proc { position: relative; padding: clamp(26px, 3vw, 40px); border: 1px solid var(--vg-rule); background: var(--vg-surface); display: flex; flex-direction: column; gap: 14px; min-height: 300px; overflow: hidden; border-radius: 2px; transition: background-color 0.4s, border-color 0.4s, color 0.4s; }
.vg-proc > * { margin: 0 !important; }
.vg-proc h3 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); font-weight: 800; font-variation-settings: "wdth" 115; letter-spacing: -0.03em; }
.vg-proc p { color: var(--vg-text-soft); }
.vg-specs { margin-top: auto !important; display: grid; gap: 6px; }
.vg-specs > * { margin: 0 !important; }
.vg-spec { display: grid; grid-template-columns: 7.5em 1fr; align-items: baseline; font-weight: 600; font-size: 0.95rem; color: inherit !important; }
.vg-spec span { display: block; font-family: var(--vg-font-mono); font-size: 0.78rem; font-weight: 400; color: var(--vg-text-mute); }
.vg-proc-img { color: #fff; border: 0; justify-content: flex-end; background: #222; }
.vg-proc-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(18 18 19 / 0.92) 0%, rgb(18 18 19 / 0.7) 55%, rgb(18 18 19 / 0.2) 100%); }
.vg-proc-img > :not(.vg-tile-bg) { position: relative; z-index: 1; }
.vg-proc-img h3 { margin-top: auto !important; }
.vg-proc-img .vg-specs { margin-top: 0 !important; }
.vg-proc-img p, .vg-proc-img .vg-spec span { color: #e3e3e1; }
.qty-tool__prep { margin-top: 22px; display: flex; align-items: center; gap: 10px; padding-left: 2.6em; }
.qty-tool__prep .form-check-input { width: 2.4em; height: 1.3em; cursor: pointer; }
.qty-tool__prep .form-check-input:checked { background-color: var(--vg-yellow); border-color: var(--vg-yellow-deep); }
.qty-tool__prep label { cursor: pointer; font-size: 0.95rem; }
.vg-proc.is-match { background: var(--vg-yellow); border-color: var(--vg-yellow); color: var(--vg-on-yellow); }
.vg-proc.is-match p, .vg-proc.is-match .vg-spec span { color: #3d3a2a; }
.vg-proc::before { content: "Adapté à votre tirage"; position: absolute; top: 18px; right: 18px; font-family: var(--vg-font-mono); font-size: 0.75rem; background: #232323; color: #fff; padding: 5px 10px; opacity: 0; transform: translateY(-6px); transition: 0.35s var(--vg-ease); z-index: 2; }
.vg-proc.is-match::before { opacity: 1; transform: none; }
@media (max-width: 781px) { .vg-proc-grid > * { grid-column: 1 / -1 !important; } }

/* Carte de procédé avec photo. Les photos d'origine font ~290 px de large :
   - carte étroite : photo au-dessus (légèrement agrandie au plus) ;
   - carte large (≥ 560 px) : photo à gauche à sa taille réelle, texte à droite. */
.vg-proc-grid { align-items: start; }
.vg-proc-grid > .vg-proc.has-photo { grid-column: span 6; } /* Cartes égales : place pour la photo à côté du texte. */
.vg-proc { --vg-pad: clamp(26px, 3vw, 40px); container-type: inline-size; }
.vg-proc > .vg-proc-photo { margin: 0 0 6px !important; overflow: hidden; border-radius: 2px; max-width: none; }
.vg-proc > .vg-proc-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; transition: transform 1.2s var(--vg-ease); }
.vg-proc.has-photo:hover > .vg-proc-photo img { transform: scale(1.03); }
.vg-proc.has-photo::before { top: calc(var(--vg-pad) + 10px); left: calc(var(--vg-pad) + 10px); right: auto; }
@supports (container-type: inline-size) {
	@container (min-width: 380px) {
		.vg-proc.has-photo > .vg-proc-photo { float: left; width: min(260px, 45%); margin: 0 var(--vg-pad) 0 0 !important; }
		.vg-proc.has-photo > .vg-proc-photo img { aspect-ratio: 4 / 5; }
	}
}
.vg-proc.has-photo { display: block; }
.vg-proc.has-photo > :not(.vg-proc-photo) { margin-bottom: 14px !important; }
.vg-proc.has-photo::after { content: ""; display: table; clear: both; }
.vg-proc.has-photo .vg-specs { margin-top: 12px !important; display: grid; }
.vg-img-dark img { background: #0f0f10; }

/* Carte Instagram */
.vg-insta { position: relative; overflow: hidden; display: grid; gap: 12px; justify-items: start; padding: clamp(26px, 3vw, 40px); border-radius: 2px; background: var(--vg-graphite); color: #f1f1ef; }
:root[data-bs-theme="dark"] .vg-insta { background: #111213; }
.vg-insta::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; border: 2px solid rgb(254 211 13 / 0.35); background: radial-gradient(circle, transparent 54px, rgb(254 211 13 / 0.12) 55px 57px, transparent 58px); }
.vg-insta__icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--vg-yellow); color: var(--vg-on-yellow); font-size: 1.8rem; }
.vg-insta__handle { margin: 0; font-family: var(--vg-font-mono); font-size: 0.85rem; color: var(--vg-yellow); }
.vg-insta__title { margin: 0; color: #fff; font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 700; font-variation-settings: "wdth" 110; letter-spacing: -0.02em; }
.vg-insta__text { margin: 0 0 6px; color: #c9cbcc; max-width: 34ch; }

/* ---------- Découpe ---------- */
.bed__plate { position: relative; border: 1.5px dashed var(--vg-text-mute); margin: 30px 0 0 30px;
	background: linear-gradient(var(--vg-rule) 1px, transparent 1px) 0 0 / 10% 15%, linear-gradient(90deg, var(--vg-rule) 1px, transparent 1px) 0 0 / 10% 15%, var(--vg-surface); }
.bed__w, .bed__h { position: absolute; font-family: var(--vg-font-mono); font-size: 0.85rem; color: var(--vg-text-soft); display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.bed__w { top: -30px; left: 0; right: 0; }
.bed__h { left: -30px; top: 0; bottom: 0; writing-mode: vertical-rl; transform: rotate(180deg); }
.bed__w::before, .bed__w::after, .bed__h::before, .bed__h::after { content: ""; flex: 1; background: var(--vg-text-mute); }
.bed__w::before, .bed__w::after { height: 1px; }
.bed__h::before, .bed__h::after { width: 1px; }
.bed__shape { position: absolute; inset: 22% 30%; border: 2px solid var(--vg-yellow-deep); }
.bed__laser { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--vg-yellow); box-shadow: 0 0 0 5px rgb(var(--vg-yellow-rgb) / 0.35); left: 30%; top: 22%; }
@media (prefers-reduced-motion: no-preference) { .bed__laser { animation: vg-laser 7s linear infinite; } }
@keyframes vg-laser { 0% { left: 30%; top: 22%; } 25% { left: 70%; top: 22%; } 50% { left: 70%; top: 78%; } 75% { left: 30%; top: 78%; } 100% { left: 30%; top: 22%; } }
.vg-caps { border-top: 1px solid var(--vg-rule); margin-top: clamp(48px, 6vw, 80px) !important; gap: 0 !important; }
.vg-caps > .wp-block-column { padding: 32px 28px 8px; }
.vg-caps > .wp-block-column:first-child { padding-left: 0; }
.vg-caps h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; display: flex; gap: 10px; align-items: center; }
.vg-caps h3::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--vg-yellow-deep); flex: none; }
.vg-caps p { color: var(--vg-text-soft); }
/* Variante avec photo (Découpe : Matières / Marquage / Découpe et rainage). Photos d'origine en 290 px : pas d'agrandissement. */
.vg-caps-img { border-top: 0; margin-top: 0 !important; }
.vg-caps-img > .wp-block-column { padding-top: 0; }
.vg-caps-img .wp-block-image { margin: 0 0 22px; max-width: 290px; overflow: hidden; border-radius: 2px; }
.vg-caps-img .wp-block-image img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; transition: transform 1.2s var(--vg-ease); }
.vg-caps-img > .wp-block-column:hover .wp-block-image img { transform: scale(1.04); }
@media (max-width: 781px) { .vg-caps-img > .wp-block-column + .wp-block-column { padding-top: 32px; } }
@media (min-width: 782px) { .vg-caps > .wp-block-column + .wp-block-column { border-left: 1px solid var(--vg-rule); } }
@media (max-width: 781px) { .vg-caps > .wp-block-column { padding-left: 0; } .vg-caps > .wp-block-column + .wp-block-column { border-top: 1px solid var(--vg-rule); } }

.vg-filter-gallery .vg-filters { margin: 0 0 24px; }
.vg-filter-gallery > :is(.vg-masonry, .vg-aero-gallery) > [hidden] { display: none !important; }
.vg-masonry { columns: 3 280px; column-gap: 14px; }
.vg-masonry > .wp-block-image { break-inside: avoid; margin: 0 0 18px; display: block; }
.vg-masonry > .wp-block-image img { width: 100%; }
.vg-masonry > [hidden] { display: none !important; }

/* ---------- Photo du mois ---------- */
.vg-pdm { margin-top: clamp(28px, 4vw, 48px); }
.pdm-feature { display: grid; grid-template-columns: 8fr 4fr; gap: clamp(24px, 4vw, 56px); align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.pdm-feature__img { display: block; overflow: hidden; }
.pdm-feature__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.pdm-feature__meta { display: grid; gap: 10px; justify-items: start; }
.pdm-feature__meta p { margin: 0; }
.pdm-feature__month { font-size: clamp(2.2rem, 4vw, 3.6rem); font-weight: 800; font-variation-settings: "wdth" 118; letter-spacing: -0.035em; line-height: 1; }
.pdm-feature__meta .btn { margin-top: 14px; }
.muted { color: var(--vg-text-soft); }
@media (max-width: 781px) { .pdm-feature { grid-template-columns: 1fr; } }
.pdm-years { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; margin-bottom: 28px; }
.pdm-year__title { font-size: var(--wp--preset--font-size--xx-large); margin-bottom: 6px; }
.pdm-year__count { margin: 0 0 24px; }
.pdm-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 16px; }
.pdm-card { display: block; text-decoration: none; color: inherit; }
.pdm-card .frame { display: block; overflow: hidden; background: var(--vg-rule); border-radius: 2px; }
.pdm-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.2s var(--vg-ease); }
.pdm-card:hover img { transform: scale(1.03); }
.pdm-card__cap { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; font-weight: 600; }
.pdm-card__cap i { opacity: 0; transition: opacity 0.25s; }
.pdm-card:hover .pdm-card__cap i, .pdm-card:focus-visible .pdm-card__cap i { opacity: 1; }
@media (prefers-reduced-motion: no-preference) { .pdm-grid li { animation: vg-in 0.6s var(--vg-ease) both; animation-delay: calc(var(--i) * 40ms); } }
@keyframes vg-in { from { opacity: 0; transform: translateY(14px); } }
@media (max-width: 1000px) { .pdm-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .pdm-grid { grid-template-columns: repeat(2, 1fr); } }
.vg-license { margin-top: clamp(40px, 5vw, 64px); padding: 20px 24px; background: var(--vg-surface); border: 1px solid var(--vg-rule); border-left: 4px solid var(--vg-yellow); }
.vg-license > * { max-width: 70ch; margin: 0; }

/* ---------- Contact ---------- */
.vg-big-links a { font-size: clamp(1.5rem, 3vw, 2.6rem); font-weight: 750; font-variation-settings: "wdth" 110; letter-spacing: -0.03em; text-decoration: none; color: inherit; overflow-wrap: anywhere; line-height: 1.25; background: linear-gradient(var(--vg-yellow), var(--vg-yellow)) left 92% / 0 0.35em no-repeat; transition: background-size 0.4s var(--vg-ease); }
.vg-big-links a:hover { background-size: 100% 0.35em; }
.vg-big-links { margin-block: 36px !important; }
.vg-address { font-size: 1.1rem; }
.vg-map { display: block; width: 100%; aspect-ratio: 21 / 8; border: 0; filter: grayscale(1) contrast(1.05); }
:root[data-bs-theme="dark"] .vg-map { filter: grayscale(1) invert(0.9) contrast(0.9); }
@media (max-width: 781px) { .vg-map { aspect-ratio: 4 / 3; } }

/* ---------- Formulaires (Bootstrap restylé) ---------- */
.vg-form .form-label { font-weight: 600; font-size: 0.92rem; margin-bottom: 0.45rem; }
.vg-form .form-label .req { color: var(--vg-text-mute); font-weight: 400; }
.vg-form .form-control { padding: 0.85rem 1rem; background-color: var(--vg-surface); border-color: var(--vg-line-strong); color: var(--vg-text); border-radius: 2px; }
.vg-form .form-control:focus { background-color: var(--vg-surface); color: var(--vg-text); border-color: var(--vg-text); box-shadow: 0 0 0 3px rgb(var(--vg-yellow-rgb) / 0.6); }
.vg-form textarea.form-control { min-height: 160px; }
.vg-form .form-text { color: var(--vg-text-mute); font-size: 0.82rem; }
.was-validated .form-control:valid { background-image: none; padding-right: 1rem; border-color: var(--vg-line-strong); }
.was-validated .form-control:invalid, .form-control.is-invalid { background-image: none; padding-right: 1rem; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: 0.82rem; color: var(--vg-text-mute); max-width: 60ch; }
.form-success { padding: 28px; background: var(--vg-yellow); color: var(--vg-on-yellow); border-radius: 2px; }
.form-success h3 { margin-bottom: 8px; font-size: 1.35rem; }
.form-success p { margin: 0; }
.vg-form .btn[disabled] { opacity: 0.6; }
.stepper { width: fit-content; }
.stepper .btn { --bs-btn-padding-x: 0; width: 52px; justify-content: center; }
.stepper .form-control { width: 70px; flex: none; text-align: center; font-family: var(--vg-font-mono); font-size: 1.1rem; }
.order-sum { margin: 4px 0 8px; padding: 18px 0; border-block: 1px solid var(--vg-rule); display: grid; gap: 8px; font-variant-numeric: tabular-nums; }
.order-sum div { display: flex; justify-content: space-between; }
.order-sum .total { font-size: 1.3rem; font-weight: 750; padding-top: 8px; }
.order-step { font-size: 1.25rem; font-weight: 700; display: flex; gap: 12px; align-items: center; margin: 12px 0 18px; }
.order-step span { width: 30px; height: 30px; display: grid; place-items: center; background: var(--vg-invert-bg); color: var(--vg-invert-fg); font-size: 0.85rem; font-family: var(--vg-font-mono); font-weight: 500; }

/* ---------- Calendrier / échantillons ---------- */
.vg-product-img { background: #1f1f20; }
.vg-price { display: flex; align-items: baseline; gap: 14px; color: var(--vg-text-soft); margin-block: 24px !important; }
.vg-price strong { font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 800; font-variation-settings: "wdth" 118; letter-spacing: -0.035em; color: var(--vg-text); }
.vg-dark-hero { background: #0f0f10; color: #fff; padding-block: 56px; }
.vg-dark-hero .wp-block-columns { min-height: min(68dvh, 640px); }
.vg-dark-hero .is-style-lead { color: #d0d1d2; }
.vg-dark-hero .vg-crumbs { color: #a8abad; }
.vg-free-tag { display: inline-block; background: var(--vg-yellow); color: var(--vg-on-yellow); font-weight: 700; padding: 6px 12px; transform: rotate(-2deg); width: fit-content; }

/* ---------- Bandeau d'appel ---------- */
.vg-cta { padding-block: clamp(64px, 8vw, 110px); }
.vg-cta__title { font-size: clamp(2.2rem, 5vw, 4.4rem) !important; font-weight: 800; font-variation-settings: "wdth" 115; letter-spacing: -0.035em; }
.vg-cta__phone a { font-family: var(--vg-font-mono); font-size: clamp(1.2rem, 2vw, 1.6rem); text-decoration: none; font-weight: 500; color: inherit; }
.vg-cta .wp-block-button.is-style-ink .wp-block-button__link { background: #232323; border-color: #232323; color: #fff; }
.vg-cta .wp-block-button.is-style-ink .wp-block-button__link:hover { background: #000; border-color: #000; }

/* ---------- Pied de page ---------- */
.vg-footer { color: #c9cbcc; padding-top: clamp(64px, 8vw, 110px); }
:root[data-bs-theme="dark"] .vg-footer { background-color: #111213 !important; }
.vg-footer a:not(.wp-block-button__link) { color: inherit; text-decoration: none; }
.vg-footer a:not(.wp-block-button__link):hover { color: var(--vg-yellow); }
.vg-footer-claim { font-size: clamp(1.6rem, 2.6vw, 2.3rem) !important; font-weight: 700; color: #f3f3f1; font-variation-settings: "wdth" 110; letter-spacing: -0.02em; line-height: 1.1; max-width: 16ch !important; }
.vg-footer-h { font-family: var(--vg-font-mono); font-size: 0.75rem !important; letter-spacing: 0.08em; text-transform: uppercase; color: var(--vg-yellow); font-weight: 500; }
.vg-footer-list { list-style: none; padding: 0; display: grid; gap: 9px; }
.vg-social { gap: 10px !important; margin-top: 22px !important; }
.vg-social .wp-social-link { background: transparent !important; color: #c9cbcc !important; border: 1px solid #4a4d4f; border-radius: 0 !important; transition: background-color 0.2s, color 0.2s; }
.vg-social .wp-social-link a { padding: 10px !important; }
.vg-social .wp-social-link:hover { background: var(--vg-yellow) !important; color: var(--vg-on-yellow) !important; transform: none !important; }
.vg-footer-eco { border-block: 1px solid #45484a; margin-top: 64px !important; gap: 0 !important; }
.vg-footer-eco > .wp-block-column { padding-block: 26px; }
.vg-footer-eco > .wp-block-column + .wp-block-column { border-left: 1px solid #45484a; padding-left: var(--vg-gutter); }
.vg-footer-eco a { font-weight: 600; color: #f3f3f1 !important; }
.vg-footer-eco span { color: #a9acad; font-size: 0.9rem; }
/* Logo Print-Eco en couleur (PNG transparent du site d’origine). */
.vg-footer-eco-label { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.vg-footer-eco-label > * { margin: 0 !important; }
.vg-footer-eco-logo { background: none; padding: 0; }
.vg-footer-eco-logo img { display: block; width: 230px; height: auto; }
.vg-footer-eco-logo a { display: block; }
.vg-footer-bottom { font-size: 0.85rem; color: #9a9d9e; padding-block: 18px; }
/* « villars.graphic » occupe toute la largeur du pied de page sans être coupé.
   Le texte mesure 7,83 fois la taille de police (Archivo 800, wdth 125) :
   taille = largeur du pied de page / 8, recalculée selon l'écran. */
.vg-footer { container-type: inline-size; }
.vg-footer > .vg-footer-mark {
	/* Pleine largeur : 100cqw = largeur intérieure du pied de page (marges latérales déduites). */
	font-size: calc((100vw - 2 * var(--vg-gutter)) / 8) !important;
	font-size: calc(100cqw / 8) !important;
	max-width: none !important;
	font-weight: 800; font-variation-settings: "wdth" 125; letter-spacing: -0.05em; line-height: 1;
	color: #3a3c3d; margin: 24px auto 0 !important; padding-bottom: 0.08em; /* bas du « g » et du « p » */ white-space: nowrap; text-align: center; user-select: none;
}
.vg-footer-mark mark { padding: 0; } /* Bootstrap ajoute un padding à <mark>. */
:root[data-bs-theme="dark"] .vg-footer-mark { color: #232425; }
@media (max-width: 781px) {
	.vg-footer-eco > .wp-block-column + .wp-block-column { border-left: 0; border-top: 1px solid #45484a; padding-left: 0; }
	.vg-footer-bottom .has-text-align-right { text-align: left; }
}

.vg-footer-legal a { margin-left: 18px; }
.vg-footer-legal a:first-child { margin-left: 0; }

/* ---------- Carte Google Maps (noir et blanc) + grand bouton centré ---------- */
.vg-mapbox { position: relative; overflow: hidden; border-radius: 2px; background: #e4e4e1; aspect-ratio: 21 / 8; min-height: 360px; }
.vg-mapbox > iframe, .vg-mapbox > .vg-gate { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vg-mapbox > iframe { filter: grayscale(1) contrast(1.08) brightness(1.02); }
:root[data-bs-theme="dark"] .vg-mapbox > iframe { filter: grayscale(1) invert(0.92) contrast(0.92); }
.vg-mapbox__cta { position: absolute; inset: 0; display: grid; place-items: end end; padding: clamp(16px, 2.4vw, 28px); pointer-events: none; z-index: 2; }
.vg-mapbox__btn { pointer-events: auto; --bs-btn-padding-x: clamp(1.4rem, 3vw, 2.4rem); --bs-btn-padding-y: clamp(1rem, 1.6vw, 1.35rem); --bs-btn-font-size: clamp(1rem, 1.6vw, 1.3rem); --bs-btn-font-weight: 700; box-shadow: 0 18px 50px -12px rgb(0 0 0 / 0.45); }
.vg-mapbox__btn .ph-map-pin { font-size: 1.3em; }
.vg-mapbox__btn:hover .ph-map-pin { transform: none; }
@media (max-width: 781px) { .vg-mapbox { aspect-ratio: 4 / 5; min-height: 0; } }
.vg-map-section { padding-bottom: 24px; }

/* ---------- Contenus externes bloqués jusqu'à l'accord (YouTube, Vimeo, Google Maps) ---------- */
.vg-gate { position: relative; display: grid; place-items: center; padding: 24px; background: #1c1d1e; color: #ededeb; text-align: center; border-radius: 2px; }
.vg-gate--embed { aspect-ratio: 16 / 9; }
.vg-gate__box { max-width: 460px; }
.vg-gate__icon { font-size: 2rem; color: var(--vg-yellow); }
.vg-gate__text { font-size: 0.92rem; line-height: 1.5; margin: 10px 0 16px; color: inherit; }
.vg-gate__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; margin: 0; }
.vg-gate__actions a { color: inherit; font-size: 0.88rem; }
/* Vidéo : le message couvre la vignette. */
.vg-gate--video { position: absolute; inset: 0; background: rgb(18 18 19 / 0.88); backdrop-filter: blur(4px); z-index: 3; }
.vg-gate--video[hidden] { display: none; }
/* Carte : plan stylisé en attente, message en bas, bouton au centre. */
.vg-gate--map {
	place-items: end start; text-align: left; color: var(--vg-text); padding: clamp(16px, 2.4vw, 28px);
	background-color: #ececea;
	background-image:
		linear-gradient(28deg, transparent 47%, #fff 47%, #fff 53%, transparent 53%),
		linear-gradient(-62deg, transparent 48%, #fff 48%, #fff 51%, transparent 51%),
		linear-gradient(#dcdcd9 1px, transparent 1px), linear-gradient(90deg, #dcdcd9 1px, transparent 1px);
	background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
}
:root[data-bs-theme="dark"] .vg-gate--map { background-color: #232425; background-image: linear-gradient(28deg, transparent 47%, #3a3c3d 47%, #3a3c3d 53%, transparent 53%), linear-gradient(-62deg, transparent 48%, #3a3c3d 48%, #3a3c3d 51%, transparent 51%), linear-gradient(#2c2e2f 1px, transparent 1px), linear-gradient(90deg, #2c2e2f 1px, transparent 1px); }
.vg-gate--map .vg-gate__box { max-width: 380px; background: var(--vg-surface); padding: 16px 18px; border: 1px solid var(--vg-rule); box-shadow: var(--vg-shadow); position: relative; z-index: 3; }
.vg-gate--map .vg-gate__icon { display: none; }
.vg-gate--map .vg-gate__text { margin-top: 0; font-size: 0.85rem; color: var(--vg-text-soft); }
.vg-gate--map .vg-gate__actions { justify-content: flex-start; }
.vg-gate--map .btn { --bs-btn-padding-y: 0.6rem; --bs-btn-padding-x: 1rem; --bs-btn-font-size: 0.88rem; }
@media (max-width: 781px) { .vg-gate--map .vg-gate__box { max-width: none; } .vg-gate--map { place-items: start stretch; } }

/* ---------- Bandeau de cookies ---------- */
.vg-consent { position: fixed; z-index: calc(var(--vg-z-grain) + 1); left: var(--vg-gutter); bottom: var(--vg-gutter); width: min(460px, calc(100vw - 2 * var(--vg-gutter))); animation: vg-consent-in 0.6s var(--vg-ease) both; }
.vg-consent[hidden] { display: none; }
@keyframes vg-consent-in { from { opacity: 0; transform: translateY(16px); } }
.vg-consent__box { background: var(--vg-graphite); color: #ededeb; padding: 24px; border-radius: 2px; box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.55); border-top: 4px solid var(--vg-yellow); }
.vg-consent__title { font-weight: 800; font-size: 1.15rem; margin: 0 0 8px; letter-spacing: -0.01em; }
.vg-consent__text { font-size: 0.9rem; line-height: 1.55; color: #c9cbcc; margin: 0 0 16px; }
.vg-consent__text a { color: var(--vg-yellow); }
.vg-consent__prefs { border: 0; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.vg-consent__opt { display: grid; grid-template-columns: auto 1fr; gap: 10px; font-size: 0.86rem; line-height: 1.45; color: #c9cbcc; cursor: pointer; }
.vg-consent__opt strong { color: #fff; display: block; }
.vg-consent__opt input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--vg-yellow); }
.vg-consent__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.vg-consent__actions .btn { --bs-btn-padding-x: 1rem; --bs-btn-padding-y: 0.7rem; --bs-btn-font-size: 0.9rem; flex: 1 1 auto; justify-content: center; }
.vg-consent .btn-line { --bs-btn-color: #ededeb; --bs-btn-border-color: #5a5d5f; }
@media (prefers-reduced-motion: reduce) { .vg-consent { animation: none; } }

/* ---------- Pages légales ---------- */
.vg-legal { margin: 0 0 40px; border-top: 1px solid var(--vg-rule); }
.vg-legal__row { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 6px 24px; padding: 14px 0; border-bottom: 1px solid var(--vg-rule); }
.vg-legal dt { font-family: var(--vg-font-mono); font-size: 0.8rem; font-weight: 400; color: var(--vg-text-mute); padding-top: 3px; }
.vg-legal dd { margin: 0; font-weight: 600; }
@media (max-width: 575px) { .vg-legal__row { grid-template-columns: 1fr; } }

.vg-prose h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin: 48px 0 14px; }
.vg-prose h2:first-child { margin-top: 0; }
.vg-prose p, .vg-prose li { color: var(--vg-text-soft); }
.vg-prose ul { padding-left: 1.2em; }
.vg-prose li { margin-bottom: 6px; }

/* ---------- 404 ---------- */
.vg-404 { min-height: 70dvh; display: flex; flex-direction: column; justify-content: center; padding-block: var(--vg-section); }
.vg-404-title { font-size: clamp(5rem, 16vw, 12rem) !important; font-variation-settings: "wdth" 125; }

/* ---------- Visionneuse (modal Bootstrap) ---------- */
.vg-lightbox .modal-content { background: #141415; color: #eee; border: 0; border-radius: 2px; }
.vg-lightbox .modal-body { padding: 0; background: #0e0e0f; }
.vg-lightbox .modal-body img { width: 100%; max-height: 78vh; object-fit: contain; display: block; }
.vg-lightbox .modal-footer { border: 0; justify-content: space-between; padding: 14px 18px; }
.vg-lightbox .icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 1px solid #45484a; background: transparent; color: inherit; font-size: 1.2rem; border-radius: 2px; text-decoration: none; transition: background-color 0.2s, color 0.2s; }
.vg-lightbox .icon-btn:hover { background: var(--vg-yellow); color: var(--vg-on-yellow); border-color: var(--vg-yellow); }
.modal-backdrop { --bs-backdrop-bg: #141415; --bs-backdrop-opacity: 0.86; }

/* ---------- Révélations ---------- */
@media (prefers-reduced-motion: no-preference) {
	.js .vg-reveal, .js .vg-stagger > * { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--vg-ease), transform 0.9s var(--vg-ease); transition-delay: calc(var(--i, 0) * 80ms); }
	.js .vg-reveal.in, .js .vg-stagger > .in { opacity: 1; transform: none; }
	.js .vg-axis-card:nth-child(even).in { transform: none; }
	.js .is-style-crop.vg-wipe img { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--vg-ease), transform 1.2s var(--vg-ease); }
	.js .is-style-crop.vg-wipe.in img { clip-path: inset(0 0 0 0); }
}

/* Grain */
.grain { position: fixed; inset: 0; pointer-events: none; z-index: var(--vg-z-grain); opacity: 0.035; mix-blend-mode: multiply;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
:root[data-bs-theme="dark"] .grain { mix-blend-mode: screen; opacity: 0.025; }
@media (prefers-reduced-transparency: reduce) { .vg-nav::before { background: var(--vg-bg); backdrop-filter: none; } }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
/* Image affichée en entier (sans recadrage). */
.wp-block-image.vg-img-whole img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; border-radius: 2px; }
.wp-block-image.vg-img-whole + .wp-block-heading { margin-top: clamp(40px, 5vw, 72px) !important; }
