/* VCP Fonctionnalités — utilise les couleurs du thème VC Payerne quand il est actif. */
:root {
	--vcp-marine: var(--wp--preset--color--marine, #0B2545);
	--vcp-bleu: var(--wp--preset--color--bleu, #1747A6);
	--vcp-vert: var(--wp--preset--color--vert, #15803D);
	--vcp-vert-fonce: var(--wp--preset--color--vert-fonce, #14532D);
	--vcp-vert-clair: var(--wp--preset--color--vert-clair, #E8F5EC);
	--vcp-gris: var(--wp--preset--color--gris, #475569);
	--vcp-bordure: var(--wp--preset--color--bordure, #E2E8F0);
	--vcp-texte: var(--wp--preset--color--texte, #0F172A);
	--vcp-titre: var(--wp--preset--font-family--display, inherit);
}
.vcp-vide { color: var(--vcp-gris); }

/* Évènements ------------------------------------------------------------ */
.vcp-evenements { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.vcp-evt__lien {
	display: flex; align-items: center; gap: 20px;
	background: #fff; border-radius: 18px; padding: 18px 22px;
	color: var(--vcp-texte) !important; text-decoration: none !important;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
	transition: transform .15s ease, box-shadow .15s ease;
}
.vcp-evt__lien:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12); }
.vcp-evt__lien:focus-visible { outline: 2px solid var(--vcp-bleu); outline-offset: 2px; }
.vcp-evt__date {
	flex: 0 0 70px; height: 74px; border-radius: 14px;
	background: var(--vcp-marine); color: #fff;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.vcp-evenements--passes .vcp-evt__date { background: var(--vcp-bordure); color: var(--vcp-marine); }
.vcp-evt__jour { font-family: var(--vcp-titre); font-weight: 800; font-size: 2rem; line-height: 1; }
.vcp-evt__mois { font-size: .75rem; text-transform: uppercase; letter-spacing: 1px; }
.vcp-evt__corps { display: flex; flex-direction: column; gap: 3px; flex: 1 1 auto; min-width: 0; }
.vcp-evt__cat { font-size: .75rem; font-weight: 700; color: var(--vcp-gris); text-transform: uppercase; letter-spacing: 1px; }
.vcp-evt__titre { font-weight: 700; font-size: 1.15rem; line-height: 1.3; }
.vcp-evt__meta { font-size: .875rem; color: var(--vcp-gris); }
.vcp-evt__fleche { font-weight: 700; color: var(--vcp-bleu); white-space: nowrap; }
@media (max-width: 560px) {
	.vcp-evt__lien { gap: 14px; padding: 14px 16px; }
	.vcp-evt__fleche { display: none; }
	.vcp-evt__date { flex-basis: 58px; height: 62px; }
}

/* Encadré d'un évènement ------------------------------------------------- */
.vcp-infos { background: #fff; border-radius: 22px; padding: 26px 30px; margin-bottom: 2rem; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06); }
.vcp-infos__ligne { display: flex; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--vcp-bordure); }
.vcp-infos__label { flex: 0 0 90px; color: var(--vcp-gris); font-weight: 600; }
.vcp-infos__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* Boutons --------------------------------------------------------------- */
.vcp-bouton {
	display: inline-block; cursor: pointer; border: 0;
	background: var(--vcp-vert); color: #fff !important;
	border-radius: 999px; padding: .9rem 1.6rem; font-weight: 700; font-size: 1rem; line-height: 1.2;
	text-decoration: none !important; font-family: inherit;
}
.vcp-bouton:hover { background: var(--vcp-vert-fonce); }
.vcp-bouton:focus-visible { outline: 2px solid var(--vcp-bleu); outline-offset: 2px; }
.vcp-bouton--contour { background: transparent; color: var(--vcp-marine) !important; border: 2px solid var(--vcp-marine); padding: calc(.9rem - 2px) calc(1.6rem - 2px); }
.vcp-bouton--contour:hover { background: var(--vcp-marine); color: #fff !important; }

/* Partenaires ----------------------------------------------------------- */
.vcp-partenaires { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.vcp-partenaire > a, .vcp-partenaire > span {
	height: 96px; background: #fff; border-radius: 14px; padding: 14px 18px;
	display: flex; align-items: center; justify-content: center; text-align: center;
	box-sizing: border-box; text-decoration: none !important;
	transition: box-shadow .15s ease;
}
.vcp-partenaire > a:hover { box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1); }
.vcp-partenaire__logo { max-width: 100%; max-height: 64px; width: auto; height: auto; object-fit: contain; }
.vcp-partenaire__nom { font-weight: 600; color: var(--vcp-gris); font-size: .9rem; }

/* Documents ------------------------------------------------------------- */
.vcp-docs { margin-bottom: 2.5rem; }
.vcp-docs__titre { font-size: var(--wp--preset--font-size--x-large, 1.75rem); margin-bottom: 1rem; }
.vcp-docs__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.vcp-doc a {
	display: flex; align-items: center; gap: 16px; background: #fff; border-radius: 14px; padding: 14px 18px;
	color: var(--vcp-texte) !important; text-decoration: none !important; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}
.vcp-doc a:hover { box-shadow: 0 10px 22px rgba(15, 23, 42, 0.1); }
.vcp-doc__ext { flex: 0 0 52px; height: 52px; border-radius: 12px; background: var(--vcp-vert-clair); color: var(--vcp-vert-fonce); font-weight: 800; font-size: .8rem; display: flex; align-items: center; justify-content: center; }
.vcp-doc__corps { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.vcp-doc__titre { font-weight: 700; }
.vcp-doc__meta { font-size: .85rem; color: var(--vcp-gris); }
.vcp-doc__action { font-weight: 700; color: var(--vcp-bleu); }
@media (max-width: 560px) { .vcp-doc__action { display: none; } }

/* Formulaires ----------------------------------------------------------- */
.vcp-form__grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.vcp-champ { display: flex; flex-direction: column; gap: 6px; }
.vcp-champ--large { grid-column: 1 / -1; }
@media (max-width: 640px) { .vcp-form__grille { grid-template-columns: 1fr; } }
.vcp-champ label, .vcp-champ legend { font-weight: 600; font-size: .9375rem; }
.vcp-champ fieldset { border: 0; margin: 0; padding: 0; }
.vcp-champ input[type="text"], .vcp-champ input[type="email"], .vcp-champ input[type="tel"],
.vcp-champ input[type="date"], .vcp-champ select, .vcp-champ textarea {
	width: 100%; box-sizing: border-box; min-height: 48px;
	border: 1px solid #94A3B8; border-radius: 12px; padding: 10px 14px;
	font: inherit; color: var(--vcp-texte); background: #fff;
}
.vcp-champ textarea { min-height: 140px; resize: vertical; }
.vcp-champ input:focus, .vcp-champ select:focus, .vcp-champ textarea:focus { outline: 2px solid var(--vcp-bleu); outline-offset: 1px; border-color: var(--vcp-bleu); }
.vcp-choix { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 6px; }
.vcp-choix label { font-weight: 500; display: flex; align-items: center; gap: 8px; min-height: 44px; }
.vcp-champ--consentement { margin: 20px 0; }
.vcp-champ--consentement label { font-weight: 400; display: flex; gap: 10px; align-items: flex-start; }
.vcp-champ--consentement input { margin-top: 5px; }
.vcp-req { color: #B91C1C; }
.vcp-form__note { font-size: .85rem; color: var(--vcp-gris); margin-top: 12px; }
.vcp-form__piege { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.vcp-alerte { border-radius: 14px; padding: 16px 20px; margin-bottom: 20px; }
.vcp-alerte ul { margin: 8px 0 0; padding-left: 20px; }
.vcp-alerte--ok { background: var(--vcp-vert-clair); color: var(--vcp-vert-fonce); }
.vcp-alerte--erreur { background: #FEF2F2; color: #991B1B; }
