/* ==========================================================================
   VC Payerne — compléments au theme.json
   ========================================================================== */

/* En-tête ---------------------------------------------------------------- */
.vcp-topbar a { color: var(--wp--preset--color--bleu-pale); }
.vcp-topbar a:hover { color: var(--wp--preset--color--lime); text-decoration: none; }

.vcp-header .wp-block-navigation a:hover,
.vcp-header .wp-block-navigation a:focus { color: var(--wp--preset--color--lime); text-decoration: none; }
.vcp-header .wp-block-navigation .wp-block-navigation__submenu-container {
	border: 0 !important;
	border-radius: 14px;
	padding: 8px 0;
	box-shadow: 0 18px 40px rgba(7, 26, 51, 0.35);
	min-width: 220px;
}
.vcp-header .wp-block-navigation .wp-block-navigation__submenu-container a { padding: 10px 18px; }
.vcp-header .wp-block-site-title a { color: var(--wp--preset--color--blanc); }
.vcp-header .wp-block-site-title a:hover { text-decoration: none; color: var(--wp--preset--color--lime); }
.vcp-header .wp-block-site-logo img { border-radius: 0; }
.vcp-header .vcp-nav-cta a {
	background: var(--wp--preset--color--vert);
	color: #fff !important;
	border-radius: 999px;
	padding: 0.75rem 1.25rem !important;
}
.vcp-header .vcp-nav-cta a:hover { background: var(--wp--preset--color--vert-fonce); }
.vcp-external .wp-block-navigation-item__label::after,
a.vcp-external::after { content: " ↗"; font-size: 0.85em; }

/* Pied de page ----------------------------------------------------------- */
.vcp-footer a { color: var(--wp--preset--color--bleu-pale); }
.vcp-footer a:hover { color: var(--wp--preset--color--lime); }
.vcp-footer .wp-block-site-title a { color: #fff; }

/* Styles de blocs -------------------------------------------------------- */
.is-style-carte {
	background: var(--wp--preset--color--blanc);
	border-radius: 22px;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
	overflow: hidden;
}
.is-style-surtitre {
	font-size: 0.8125rem !important;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--wp--preset--color--vert);
}
.has-marine-background-color .is-style-surtitre,
.has-nuit-background-color .is-style-surtitre { color: var(--wp--preset--color--lime); }

.is-style-liens { list-style: none; padding-left: 0; }
.is-style-liens li {
	padding: 1rem 0;
	border-bottom: 1px solid var(--wp--preset--color--bordure);
}
.is-style-liens li a { font-weight: 600; }

.wp-block-image.is-style-arrondie img,
.is-style-arrondie img { border-radius: 22px; }

/* Cartes cliquables : toute la carte réagit au survol */
.vcp-carte-lien { transition: transform .15s ease, box-shadow .15s ease; }
.vcp-carte-lien:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12); }
.vcp-carte-lien .wp-block-image img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }

/* Boutons --------------------------------------------------------------- */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	border: 2px solid currentColor;
	padding: calc(0.9rem - 2px) calc(1.6rem - 2px);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.12);
}

/* Hero ------------------------------------------------------------------ */
.vcp-hero h1 { color: var(--wp--preset--color--blanc); }
.vcp-hero h1 mark { background: none; color: var(--wp--preset--color--lime); }
.vcp-hero .wp-block-image img { border-radius: 28px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.vcp-badge {
	display: inline-block;
	background: rgba(184, 233, 134, 0.14);
	border-radius: 999px;
	padding: 0.45rem 0.9rem !important;
}

/* Bandeau chiffres clés -------------------------------------------------- */
.vcp-chiffres { margin-top: -2.5rem !important; position: relative; z-index: 2; }
.vcp-chiffres .wp-block-column + .wp-block-column { border-left: 1px solid var(--wp--preset--color--bordure); }
@media (max-width: 781px) {
	.vcp-chiffres .wp-block-column + .wp-block-column { border-left: 0; border-top: 1px solid var(--wp--preset--color--bordure); }
}

/* Bandeau sombre avec photo --------------------------------------------- */
.vcp-bandeau { overflow: hidden; }
.vcp-bandeau .wp-block-image,
.vcp-bandeau .wp-block-image img { height: 100%; }
.vcp-bandeau .wp-block-image img { object-fit: cover; width: 100%; min-height: 320px; }

/* Titres de page -------------------------------------------------------- */
.vcp-page-titre h1 { color: var(--wp--preset--color--blanc); }

/* Divers ---------------------------------------------------------------- */
.wp-block-post-content > .alignfull:first-child { margin-top: 0; }
main.wp-block-group { margin-top: 0; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
.vcp-footer ul { list-style: none; margin: 0; }
.vcp-footer li { margin: 0 0 0.5rem; }
.vcp-page-titre a { color: var(--wp--preset--color--lime); }
.vcp-page-titre a:hover { color: var(--wp--preset--color--blanc); }
.vcp-footer h2 { margin-bottom: 0.9rem; }
