/**
 * ZEKIN E-VOTE & E-TICKET — styles publics.
 *
 * Tout est bâti sur les variables `--zk-*` posées par le plugin depuis l'écran
 * Apparence : aucune couleur n'est écrite en dur ici, sinon changer la couleur
 * d'un bouton dans l'administration n'aurait d'effet qu'à moitié.
 *
 * Les huit modèles partagent le même balisage ; ce fichier est ce qui les
 * distingue. C'est délibéré : huit balisages seraient huit endroits où
 * corriger le bouton de vote.
 */

/* ---------------------------------------------------------------------------
   Socle
   --------------------------------------------------------------------------- */

.zk {
	--zk-gap: 20px;
	box-sizing: border-box;
	color: var(--zk-text, #101828);
	font-family: var(--zk-font, inherit);
	line-height: 1.55;
}

.zk *,
.zk *::before,
.zk *::after {
	box-sizing: inherit;
}

.zk img {
	max-width: 100%;
	height: auto;
}

.zk-hidden {
	display: none !important;
}

/* Un modèle sombre inverse le texte : posé sur le fond d'encre de la charte,
   le texte par défaut serait noir sur noir. */
.zk-dark {
	--zk-text: #FFFFFF;
	--zk-muted: rgba(255, 255, 255, .72);
	--zk-surface: rgba(255, 255, 255, .06);
	--zk-border: rgba(255, 255, 255, .14);
	background: #101828;
	padding: 24px;
	border-radius: var(--zk-radius-lg, 18px);
}

/* ---------------------------------------------------------------------------
   En-tête, filtres
   --------------------------------------------------------------------------- */

.zk-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
}

.zk-head__title {
	margin: 0;
	font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
	line-height: 1.2;
}

.zk-head__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 8px 0 0;
	color: var(--zk-muted);
	font-size: .92rem;
}

/* Le libellé « Classement en direct » n'appartient qu'au modèle Podium : il est
   rendu partout et révélé par lui seul, plutôt qu'écrit dans une feuille de
   style, où il ne serait pas traduisible. */
.zk-head__ranking { display: none; margin: 4px 0 0; font-weight: 700; }

.zk-tag {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--zk-primary-soft);
	color: var(--zk-primary);
	font-size: .82rem;
	font-weight: 600;
}

.zk-search__input {
	min-width: 240px;
}

.zk-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 18px;
}

.zk-chip {
	padding: 7px 14px;
	border: 1px solid var(--zk-border);
	border-radius: 999px;
	background: transparent;
	color: var(--zk-muted);
	font-size: .88rem;
	cursor: pointer;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.zk-chip:hover {
	border-color: var(--zk-primary);
	color: var(--zk-primary);
}

.zk-chip.is-active {
	border-color: var(--zk-primary);
	background: var(--zk-primary);
	color: var(--zk-on-primary);
}

/* ---------------------------------------------------------------------------
   Grille
   --------------------------------------------------------------------------- */

.zk-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: var(--zk-gap);
}

/* La grille ne prend le nombre de colonnes réglé qu'à partir du grand écran :
   quatre nominés par ligne sur un téléphone ne sont pas quatre nominés
   lisibles. En dessous, c'est la largeur minimale qui décide. */
@media (min-width: 900px) {
	.zk-grid {
		grid-template-columns: repeat(var(--zk-columns, 4), minmax(0, 1fr));
	}
}

.zk-grid--single {
	grid-template-columns: minmax(0, 520px);
}

.zk-group {
	margin-bottom: 28px;
}

.zk-group__title {
	margin: 0 0 14px;
	font-size: 1.05rem;
	color: var(--zk-muted);
	text-transform: uppercase;
	letter-spacing: .04em;
}

/* ---------------------------------------------------------------------------
   Carte d'un nominé
   --------------------------------------------------------------------------- */

.zk-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--zk-border);
	border-radius: var(--zk-radius);
	background: var(--zk-surface);
}

.zk-has-shadow .zk-card {
	box-shadow: var(--zk-shadow);
}

.zk-animated .zk-card {
	transition: transform .18s ease, box-shadow .18s ease;
}

.zk-animated .zk-card:hover {
	transform: translateY(-3px);
}

.zk-card__media {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	background: var(--zk-bg);
	overflow: hidden;
}

.zk-ratio-3-4 .zk-card__media { aspect-ratio: 3 / 4; }
.zk-ratio-4-3 .zk-card__media { aspect-ratio: 4 / 3; }
.zk-ratio-16-9 .zk-card__media { aspect-ratio: 16 / 9; }

.zk-card__link {
	display: block;
	width: 100%;
	height: 100%;
}

.zk-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.zk-card__initial {
	font-size: 2.6rem;
	font-weight: 700;
	color: var(--zk-primary);
	opacity: .5;
}

.zk-card__badge {
	position: absolute;
	left: 10px;
	top: 10px;
	max-width: calc(100% - 20px);
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(16, 24, 40, .72);
	color: #fff;
	font-size: .74rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.zk-card__rank {
	position: absolute;
	right: 10px;
	top: 10px;
	display: none;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--zk-accent);
	color: #101828;
	font-weight: 700;
	line-height: 30px;
	text-align: center;
}

.zk-card__body {
	padding: 14px 14px 6px;
	flex: 1;
}

.zk-card__title {
	margin: 0 0 4px;
	font-size: 1.02rem;
	line-height: 1.3;
}

.zk-card__title a {
	color: inherit;
	text-decoration: none;
}

.zk-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	color: var(--zk-muted);
	font-size: .85rem;
}

.zk-card__votes {
	font-weight: 600;
	color: var(--zk-primary);
}

.zk-card__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding: 12px 14px 14px;
}

.zk-card__price {
	color: var(--zk-muted);
	font-size: .82rem;
}

/* ---------------------------------------------------------------------------
   Boutons, champs
   --------------------------------------------------------------------------- */

.zk-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	/* 48 px de haut : la charte l'impose pour les boutons et les champs, et
	   c'est aussi la cible tactile minimale d'un pouce. */
	min-height: 48px;
	padding: 0 18px;
	border: 1px solid transparent;
	border-radius: var(--zk-radius);
	background: var(--zk-primary);
	color: var(--zk-on-primary);
	font-size: .95rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.zk-btn:hover:not(:disabled) {
	background: var(--zk-primary-hover);
	color: var(--zk-on-primary);
}

.zk-btn:focus-visible {
	outline: 3px solid var(--zk-primary-ring);
	outline-offset: 2px;
}

.zk-btn:disabled {
	opacity: .55;
	cursor: not-allowed;
}

.zk-btn--secondary {
	background: transparent;
	border-color: var(--zk-primary);
	color: var(--zk-primary);
}

.zk-btn--secondary:hover:not(:disabled) {
	background: var(--zk-primary-soft);
	color: var(--zk-primary);
}

.zk-btn--ghost {
	background: transparent;
	color: var(--zk-muted);
	border-color: var(--zk-border);
}

.zk-btn--ghost:hover:not(:disabled) {
	background: var(--zk-bg);
	color: var(--zk-text);
}

.zk-btn--block {
	width: 100%;
}

.zk-btn--tiny {
	min-height: 30px;
	padding: 0 10px;
	font-size: .78rem;
	background: transparent;
	border-color: var(--zk-border);
	color: var(--zk-muted);
}

.zk-spinner {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: zk-spin .7s linear infinite;
}

.zk-btn.is-busy .zk-spinner {
	display: inline-block;
}

.zk-btn.is-busy .zk-btn__label {
	opacity: .7;
}

@keyframes zk-spin {
	to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
	.zk-spinner { animation-duration: 2s; }
	.zk-animated .zk-card { transition: none; }
}

.zk-fields {
	display: grid;
	gap: 14px;
}

@media (min-width: 640px) {
	.zk-fields {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.zk-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.zk-field--grow { flex: 1; }

.zk-label {
	font-size: .88rem;
	font-weight: 600;
}

.zk-required { color: var(--zk-danger); }
.zk-optional { color: var(--zk-muted); font-weight: 400; font-size: .82rem; }

.zk-input {
	width: 100%;
	min-height: 48px;
	padding: 10px 12px;
	border: 1px solid var(--zk-border);
	border-radius: var(--zk-radius-sm);
	background: var(--zk-surface);
	color: var(--zk-text);
	font-size: 1rem;
}

.zk-input:focus {
	outline: none;
	border-color: var(--zk-primary);
	box-shadow: 0 0 0 3px var(--zk-primary-ring);
}

.zk-input--upper,
.zk-input--code {
	text-transform: uppercase;
	letter-spacing: .06em;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.zk-help {
	margin: 0;
	color: var(--zk-muted);
	font-size: .82rem;
}

.zk-error {
	display: none;
	margin: 0;
	color: var(--zk-danger);
	font-size: .84rem;
	font-weight: 500;
}

.zk-error.is-visible {
	display: block;
}

.zk-terms {
	margin: 14px 0 0;
	color: var(--zk-muted);
	font-size: .82rem;
}

/* ---------------------------------------------------------------------------
   Moyens de paiement
   --------------------------------------------------------------------------- */

.zk-methods {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.zk-methods__loading {
	margin: 0;
	color: var(--zk-muted);
	font-size: .86rem;
}

.zk-method {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 8px 14px;
	border: 1px solid var(--zk-border);
	border-radius: var(--zk-radius-sm);
	background: var(--zk-surface);
	color: var(--zk-text);
	font-size: .9rem;
	cursor: pointer;
}

.zk-method__dot {
	width: 14px;
	height: 14px;
	border: 2px solid var(--zk-border);
	border-radius: 50%;
}

.zk-method.is-active {
	border-color: var(--zk-primary);
	background: var(--zk-primary-soft);
}

.zk-method.is-active .zk-method__dot {
	border-color: var(--zk-primary);
	background: var(--zk-primary);
}

/* ---------------------------------------------------------------------------
   Quantité, total
   --------------------------------------------------------------------------- */

.zk-quantity {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid var(--zk-border);
	border-radius: var(--zk-radius-sm);
	overflow: hidden;
	background: var(--zk-surface);
}

.zk-quantity__btn {
	width: 46px;
	border: 0;
	background: transparent;
	color: var(--zk-primary);
	font-size: 1.2rem;
	cursor: pointer;
}

.zk-quantity__btn:hover { background: var(--zk-primary-soft); }

.zk-quantity__input {
	width: 84px;
	border: 0;
	border-left: 1px solid var(--zk-border);
	border-right: 1px solid var(--zk-border);
	background: transparent;
	color: inherit;
	font-size: 1rem;
	text-align: center;
	/* Les flèches natives sont retirées : elles sont minuscules au doigt et
	   les boutons + / − les remplacent avantageusement. */
	-moz-appearance: textfield;
}

.zk-quantity__input::-webkit-outer-spin-button,
.zk-quantity__input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.zk-quantity--small .zk-quantity__btn { width: 38px; }
.zk-quantity--small .zk-quantity__input { width: 56px; }

.zk-presets {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 10px;
}

.zk-total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin: 16px 0 0;
	padding-top: 12px;
	border-top: 1px dashed var(--zk-border);
	font-size: 1rem;
}

.zk-total strong {
	font-size: 1.25rem;
	color: var(--zk-primary);
}

/* ---------------------------------------------------------------------------
   Panneaux, messages
   --------------------------------------------------------------------------- */

.zk-panel {
	padding: 20px;
	border: 1px solid var(--zk-border);
	border-radius: var(--zk-radius);
	background: var(--zk-surface);
}

.zk-has-shadow .zk-panel { box-shadow: var(--zk-shadow); }

.zk-notice {
	margin: 0 0 16px;
	padding: 12px 14px;
	border-left: 4px solid var(--zk-primary);
	border-radius: var(--zk-radius-sm);
	background: var(--zk-primary-soft);
	font-size: .92rem;
}

.zk-notice--error { border-color: var(--zk-danger); background: color-mix(in srgb, var(--zk-danger) 10%, transparent); }
.zk-notice--success { border-color: var(--zk-success); background: color-mix(in srgb, var(--zk-success) 10%, transparent); }
.zk-notice--warning { border-color: var(--zk-accent); background: color-mix(in srgb, var(--zk-accent) 12%, transparent); }

.zk-section__title {
	margin: 28px 0 14px;
	font-size: 1.2rem;
}

.zk-back {
	margin: 0 0 14px;
	font-size: .9rem;
}

.zk-back a {
	color: var(--zk-primary);
	text-decoration: none;
}

.zk-details {
	margin-top: 18px;
	border: 1px solid var(--zk-border);
	border-radius: var(--zk-radius);
	padding: 12px 16px;
}

.zk-details summary {
	cursor: pointer;
	font-weight: 600;
	color: var(--zk-primary);
}

.zk-details[open] summary { margin-bottom: 14px; }

/* ---------------------------------------------------------------------------
   Fiche d'un nominé
   --------------------------------------------------------------------------- */

.zk-profile {
	display: grid;
	gap: 24px;
	align-items: start;
}

@media (min-width: 820px) {
	.zk-profile {
		grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
	}
}

.zk-profile__media {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 3 / 4;
	border-radius: var(--zk-radius-lg);
	background: var(--zk-bg);
	overflow: hidden;
}

.zk-profile__img { width: 100%; height: 100%; object-fit: cover; }

.zk-profile__initial {
	font-size: 4rem;
	font-weight: 700;
	color: var(--zk-primary);
	opacity: .45;
}

.zk-profile__name { margin: 10px 0 2px; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
.zk-profile__realname { margin: 0 0 14px; color: var(--zk-muted); }

.zk-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
	gap: 12px;
	margin: 18px 0;
}

.zk-fact {
	padding: 10px 12px;
	border: 1px solid var(--zk-border);
	border-radius: var(--zk-radius-sm);
	background: var(--zk-bg);
}

.zk-fact dt { margin: 0 0 2px; color: var(--zk-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; }
.zk-fact dd { margin: 0; font-weight: 600; }
.zk-fact__strong { font-size: 1.3rem; color: var(--zk-primary); }

.zk-countdown {
	font-variant-numeric: tabular-nums;
	color: var(--zk-accent);
	font-weight: 600;
}

.zk-countdown--large { font-size: 1.1rem; }
.zk-countdown.is-over { color: var(--zk-muted); }

.zk-countdown-block { text-align: center; }
.zk-countdown-block__label { margin: 0 0 8px; color: var(--zk-muted); }
.zk-countdown-block__value { display: flex; justify-content: center; gap: 10px; }

.zk-cd {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 64px;
	padding: 10px;
	border-radius: var(--zk-radius);
	background: var(--zk-primary-soft);
}

.zk-cd strong { font-size: 1.6rem; font-variant-numeric: tabular-nums; color: var(--zk-primary); }
.zk-cd small { color: var(--zk-muted); font-size: .74rem; text-transform: uppercase; }

/* ---------------------------------------------------------------------------
   Billets
   --------------------------------------------------------------------------- */

.zk-ticket {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--zk-border);
	border-radius: var(--zk-radius);
	background: var(--zk-surface);
	overflow: hidden;
}

.zk-has-shadow .zk-ticket { box-shadow: var(--zk-shadow); }

.zk-ticket.is-soldout { opacity: .62; }

.zk-ticket__media { aspect-ratio: 16 / 9; background: var(--zk-bg); }
.zk-ticket__media img { width: 100%; height: 100%; object-fit: cover; }

.zk-ticket__body { padding: 16px; flex: 1; }
.zk-ticket__title { margin: 0 0 6px; font-size: 1.1rem; }
.zk-ticket__title a { color: inherit; text-decoration: none; }

.zk-ticket__price {
	margin: 0 0 10px;
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--zk-primary);
}

.zk-ticket__meta,
.zk-ticket__advantages {
	margin: 0 0 8px;
	padding: 0;
	list-style: none;
	color: var(--zk-muted);
	font-size: .86rem;
}

.zk-ticket__advantages li { position: relative; padding-left: 18px; }
.zk-ticket__advantages li::before { content: "✓"; position: absolute; left: 0; color: var(--zk-success); }
.zk-ticket__grant { color: var(--zk-accent); font-weight: 600; }

.zk-ticket__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding: 0 16px 16px;
}

.zk-cartbar {
	position: sticky;
	bottom: 12px;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-top: 20px;
	padding: 12px 16px;
	border-radius: var(--zk-radius);
	background: var(--zk-text);
	color: #fff;
	box-shadow: 0 12px 32px rgba(16, 24, 40, .22);
}

.zk-cartbar--static { position: static; }
.zk-cartbar__summary { display: flex; flex-direction: column; }
.zk-cartbar__summary strong { font-size: 1.2rem; }

.zk-cart { margin: 0 0 12px; padding: 0; list-style: none; }

.zk-cart__line {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 0;
	border-bottom: 1px solid var(--zk-border);
}

/* ---------------------------------------------------------------------------
   Fenêtres
   --------------------------------------------------------------------------- */

body.zk-modal-open { overflow: hidden; }

.zk-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.zk-modal[hidden] { display: none; }

.zk-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(16, 24, 40, .55);
	backdrop-filter: blur(2px);
}

.zk-modal__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(560px, 100%);
	max-height: min(88vh, 900px);
	border-radius: var(--zk-radius-lg);
	background: var(--zk-surface);
	color: var(--zk-text);
	box-shadow: 0 24px 64px rgba(16, 24, 40, .28);
	overflow: hidden;
}

.zk-modal__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 20px;
	border-bottom: 1px solid var(--zk-border);
}

.zk-modal__identity { display: flex; align-items: center; gap: 12px; }

.zk-modal__avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--zk-primary-soft) center/cover no-repeat;
	color: var(--zk-primary);
	font-weight: 700;
	flex: 0 0 auto;
}

.zk-modal__title { margin: 0; font-size: 1.1rem; }
.zk-modal__subtitle { margin: 2px 0 0; color: var(--zk-muted); font-size: .86rem; }

.zk-modal__close {
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--zk-muted);
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
}

.zk-modal__close:hover { background: var(--zk-bg); color: var(--zk-text); }

.zk-modal__progress { height: 3px; background: var(--zk-border); display: none; }
.zk-modal__progress-bar { display: block; height: 100%; width: 50%; background: var(--zk-primary); transition: width .2s ease; }

.zk-modal__body { padding: 20px; overflow-y: auto; }

.zk-modal__footer {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--zk-border);
}

.zk-step__title { margin: 0 0 14px; font-size: 1rem; }
.zk-step + .zk-step { margin-top: 22px; }

/* ---------------------------------------------------------------------------
   Résultat d'un paiement
   --------------------------------------------------------------------------- */

.zk-result { padding: 24px 20px; text-align: center; }

.zk-result__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-bottom: 12px;
	border-radius: 50%;
	background: var(--zk-primary-soft);
	color: var(--zk-primary);
	font-size: 1.6rem;
}

.zk-result__icon.is-approved { background: color-mix(in srgb, var(--zk-success) 14%, transparent); color: var(--zk-success); }
.zk-result__icon.is-canceled { background: color-mix(in srgb, var(--zk-danger) 14%, transparent); color: var(--zk-danger); }

.zk-result__title { margin: 0 0 6px; font-size: 1.2rem; }
.zk-result__message { margin: 0 0 10px; color: var(--zk-muted); }

.zk-result__gateway {
	margin: 0 auto 16px;
	max-width: 460px;
	padding: 10px 14px;
	border-radius: var(--zk-radius-sm);
	background: color-mix(in srgb, var(--zk-accent) 12%, transparent);
	font-size: .9rem;
}

.zk-result__facts {
	display: grid;
	gap: 10px;
	max-width: 420px;
	margin: 0 auto 14px;
	text-align: left;
}

.zk-result__fact {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 12px;
	border: 1px solid var(--zk-border);
	border-radius: var(--zk-radius-sm);
}

.zk-result__fact dt { margin: 0; color: var(--zk-muted); font-size: .82rem; }
.zk-result__fact dd { margin: 0; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.zk-result__fact code { font-size: .84rem; word-break: break-all; }

.zk-result__note { margin: 0 0 16px; color: var(--zk-muted); font-size: .82rem; }

.zk-result__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.zk-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--zk-primary-soft);
	color: var(--zk-primary);
	font-size: .78rem;
	font-weight: 600;
}

.zk-badge--approved { background: color-mix(in srgb, var(--zk-success) 14%, transparent); color: var(--zk-success); }
.zk-badge--canceled { background: color-mix(in srgb, var(--zk-danger) 14%, transparent); color: var(--zk-danger); }
.zk-badge--muted { background: var(--zk-bg); color: var(--zk-muted); }

.zk-tickets-issued { max-width: 460px; margin: 0 auto 16px; text-align: left; }
.zk-tickets-issued h4 { margin: 0 0 8px; font-size: .95rem; }
.zk-tickets-issued__list { margin: 0; padding: 0; list-style: none; }

.zk-ticket-issued {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 8px 12px;
	border: 1px dashed var(--zk-border);
	border-radius: var(--zk-radius-sm);
	margin-bottom: 6px;
}

.zk-ticket-issued code { font-size: 1rem; font-weight: 700; letter-spacing: .08em; }

/* ---------------------------------------------------------------------------
   Onglets
   --------------------------------------------------------------------------- */

.zk-tabs { display: flex; gap: 6px; margin-bottom: 18px; border-bottom: 1px solid var(--zk-border); }

.zk-tab {
	padding: 12px 16px;
	border: 0;
	border-bottom: 2px solid transparent;
	background: transparent;
	color: var(--zk-muted);
	font-size: .95rem;
	font-weight: 600;
	cursor: pointer;
}

.zk-tab.is-active { border-bottom-color: var(--zk-primary); color: var(--zk-primary); }

.zk-tabpanel { display: none; }
.zk-tabpanel.is-active { display: block; }

.zk-more { margin-top: 22px; text-align: center; }
.zk-more__count { margin: 8px 0 0; color: var(--zk-muted); font-size: .84rem; }

.zk-form--inline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.zk-form--inline .zk-field { flex: 1 1 260px; }

.zk-prose { margin-bottom: 20px; color: var(--zk-muted); }

/* ===========================================================================
   LES SIX MODÈLES DE LISTE — repris de la vitrine Zekin

   Un seul balisage, six feuilles. Six balisages seraient six endroits où
   corriger le bouton de vote, sur le geste qui rapporte l'argent.

   `zekin` n'a pas de règle : c'est le socle ci-dessus, inchangé. Une marque qui
   ne choisit rien voit donc exactement la grille de la vitrine.
   =========================================================================== */

/* ---------------------------------------------------------------------------
   list-1 — Galerie
   De grandes tuiles carrées où la photo occupe TOUT le cadre : ni bordure, ni
   fond, ni marge. Le nom et le bouton sont posés dessus, dans un dégradé qui
   monte du bas. Le dégradé n'est pas décoratif — sans lui, un nom blanc sur une
   photo claire devient illisible.
   --------------------------------------------------------------------------- */

.zk-tpl-list-1 .zk-card {
	position: relative;
	border: 0;
	border-radius: 16px;
	background: #E2E8F0;
	overflow: hidden;
	aspect-ratio: 1 / 1;
}

.zk-tpl-list-1 .zk-card__media {
	position: absolute;
	inset: 0;
	aspect-ratio: auto;
	border-radius: 0;
}

.zk-tpl-list-1 .zk-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, .85), rgba(0, 0, 0, .2) 55%, transparent);
}

.zk-tpl-list-1 .zk-card__body,
.zk-tpl-list-1 .zk-card__actions {
	position: relative;
	z-index: 2;
}

.zk-tpl-list-1 .zk-card__body {
	margin-top: auto;
	padding: 0 16px 6px;
}

.zk-tpl-list-1 .zk-card__actions {
	padding: 0 16px 16px;
}

.zk-tpl-list-1 .zk-card__title,
.zk-tpl-list-1 .zk-card__title a,
.zk-tpl-list-1 .zk-card__meta {
	color: #fff;
}

.zk-tpl-list-1 .zk-card__title {
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.15;
}

.zk-tpl-list-1 .zk-card__votes {
	position: absolute;
	top: 12px;
	right: 12px;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--zk-primary);
	color: var(--zk-on-primary);
	font-size: .68rem;
	font-weight: 700;
}

.zk-tpl-list-1 .zk-card__country,
.zk-tpl-list-1 .zk-card__price {
	color: rgba(255, 255, 255, .75);
}

/* Le bouton passe en translucide : sur une photo, un aplat plein masquerait le
   visage sur lequel on vote. */
.zk-tpl-list-1 .zk-vote-open {
	flex: 1;
	background: rgba(255, 255, 255, .18);
	backdrop-filter: blur(4px);
	border-radius: 999px;
	min-height: 40px;
}

.zk-tpl-list-1 .zk-share {
	border-color: transparent;
	color: #fff;
}

/* ---------------------------------------------------------------------------
   list-2 — Podium
   Les trois premiers en grandes cartes de hauteurs inégales — 2ᵉ, 1ᵉʳ, 3ᵉ dans
   l'ordre visuel d'un vrai podium — puis le reste en tuiles 3:4.

   Le rang vient de l'ordre reçu, jamais d'un calcul local : la liste arrive
   déjà triée par la coquille, et recalculer ici afficherait un podium qui
   contredirait le tri en cours.
   --------------------------------------------------------------------------- */

.zk-tpl-list-2 .zk-head {
	padding: 20px;
	border-radius: 16px;
	background: var(--zk-primary);
	color: #fff;
}

.zk-tpl-list-2 .zk-head__title,
.zk-tpl-list-2 .zk-head__meta {
	color: #fff;
}

.zk-tpl-list-2 .zk-head .zk-tag {
	background: rgba(255, 255, 255, .16);
	color: #fff;
}

.zk-tpl-list-2 .zk-head__ranking {
	display: block;
}

.zk-tpl-list-2 .zk-card {
	position: relative;
	border: 0;
	border-radius: 16px;
	background: #E2E8F0;
	overflow: hidden;
	aspect-ratio: 3 / 4;
}

.zk-tpl-list-2 .zk-card__media {
	position: absolute;
	inset: 0;
	aspect-ratio: auto;
}

.zk-tpl-list-2 .zk-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, .9), rgba(0, 0, 0, .25) 50%, transparent);
}

.zk-tpl-list-2 .zk-card__body,
.zk-tpl-list-2 .zk-card__actions {
	position: relative;
	z-index: 2;
}

.zk-tpl-list-2 .zk-card__body { margin-top: auto; padding: 0 14px 4px; }
.zk-tpl-list-2 .zk-card__actions { padding: 0 14px 14px; }

.zk-tpl-list-2 .zk-card__title,
.zk-tpl-list-2 .zk-card__title a { color: #fff; font-weight: 800; }
.zk-tpl-list-2 .zk-card__meta { color: rgba(255, 255, 255, .8); }
.zk-tpl-list-2 .zk-card__votes { color: var(--zk-accent); font-weight: 700; }

.zk-tpl-list-2 .zk-card__rank {
	display: flex;
	align-items: center;
	justify-content: center;
	top: 12px;
	left: 12px;
	right: auto;
	width: 36px;
	height: 36px;
	background: var(--zk-primary);
	color: #fff;
	font-size: .9rem;
	font-weight: 800;
}

.zk-tpl-list-2 .zk-card--rank-1 .zk-card__rank {
	background: var(--zk-accent);
	color: #101828;
}

.zk-tpl-list-2 .zk-vote-open {
	flex: 1;
	background: rgba(255, 255, 255, .18);
	backdrop-filter: blur(4px);
	border-radius: 999px;
	min-height: 40px;
}

.zk-tpl-list-2 .zk-share { border-color: transparent; color: #fff; }

/* Le podium proprement dit : trois hauteurs inégales, ordre 2 – 1 – 3. */
@media (min-width: 820px) {
	.zk-tpl-list-2 .zk-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		align-items: end;
	}

	.zk-tpl-list-2 .zk-card--rank-1 { order: 2; aspect-ratio: auto; height: 340px; }
	.zk-tpl-list-2 .zk-card--rank-2 { order: 1; aspect-ratio: auto; height: 280px; }
	.zk-tpl-list-2 .zk-card--rank-3 { order: 3; aspect-ratio: auto; height: 240px; }

	/* Le reste reprend la grille réglée, sous le podium. */
	.zk-tpl-list-2 .zk-card:not(.zk-card--rank-1):not(.zk-card--rank-2):not(.zk-card--rank-3) {
		order: 4;
	}
}

/* ---------------------------------------------------------------------------
   list-3 — Rails par catégorie
   Une rangée horizontale par catégorie, en cartes 3:4 qui défilent au pouce.
   `scroll-snap` : le défilement s'arrête sur une carte entière, jamais au
   milieu de l'une d'elles — c'est ce qui fait un rail plutôt qu'une zone qui
   déborde.
   --------------------------------------------------------------------------- */

.zk-tpl-list-3 .zk-group { margin-bottom: 36px; }

.zk-tpl-list-3 .zk-group__title {
	color: var(--zk-text);
	font-size: 1.05rem;
	font-weight: 800;
	text-transform: none;
	letter-spacing: 0;
}

.zk-tpl-list-3 .zk-grid {
	display: flex;
	grid-template-columns: none;
	gap: 16px;
	padding-bottom: 12px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
}

.zk-tpl-list-3 .zk-card {
	flex: 0 0 190px;
	width: 190px;
	scroll-snap-align: start;
	border: 0;
	background: transparent;
}

@media (min-width: 640px) {
	.zk-tpl-list-3 .zk-card { flex-basis: 220px; width: 220px; }
}

.zk-tpl-list-3 .zk-card__media {
	aspect-ratio: 3 / 4;
	border-radius: 16px;
	margin-bottom: 10px;
}

.zk-tpl-list-3 .zk-card__body { padding: 0; }
.zk-tpl-list-3 .zk-card__actions { padding: 8px 0 0; }
.zk-tpl-list-3 .zk-card__title { font-size: .9rem; font-weight: 800; }

.zk-has-shadow.zk-tpl-list-3 .zk-card { box-shadow: none; }

/* ---------------------------------------------------------------------------
   list-4 — Mur immersif
   Grille SANS gouttière sur fond très sombre : les photos se touchent et
   forment une seule surface. L'en-tête partage ce fond et l'arrondi supérieur —
   les deux ne font qu'un bloc ; une barre claire flottant au-dessus d'un mur
   noir se lirait comme un morceau d'une autre page.
   --------------------------------------------------------------------------- */

.zk-tpl-list-4 {
	background: #0B0F1A;
	padding: 0;
	border-radius: 16px;
	overflow: hidden;
}

.zk-tpl-list-4 .zk-head {
	margin: 0;
	padding: 20px 20px 16px;
	background: #0B0F1A;
}

.zk-tpl-list-4 .zk-filters { padding: 0 20px 16px; margin: 0; background: #0B0F1A; }
.zk-tpl-list-4 .zk-notice { margin: 0 20px 16px; }

.zk-tpl-list-4 .zk-grid {
	gap: 1px;
	background: #1B2333;
}

.zk-tpl-list-4 .zk-card {
	position: relative;
	border: 0;
	border-radius: 0;
	background: #0B0F1A;
	aspect-ratio: 1 / 1;
	overflow: hidden;
}

.zk-tpl-list-4 .zk-card__media {
	position: absolute;
	inset: 0;
	aspect-ratio: auto;
	border-radius: 0;
	background: #0B0F1A;
}

.zk-tpl-list-4 .zk-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, .9), transparent 55%);
}

.zk-tpl-list-4 .zk-card__body,
.zk-tpl-list-4 .zk-card__actions {
	position: relative;
	z-index: 2;
}

.zk-tpl-list-4 .zk-card__body { margin-top: auto; padding: 0 12px 4px; }
.zk-tpl-list-4 .zk-card__actions { padding: 0 12px 12px; }
.zk-tpl-list-4 .zk-card__title { font-size: .9rem; }
.zk-tpl-list-4 .zk-card__badge { background: rgba(255, 255, 255, .12); }

.zk-tpl-list-4 .zk-vote-open {
	width: 100%;
	min-height: 38px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .18);
	backdrop-filter: blur(4px);
}

/* Les actions restent atteignables sans survol : sur un écran tactile, le
   survol n'existe pas. Seul l'habillage change sur grand écran. */
@media (min-width: 640px) and (hover: hover) {
	.zk-tpl-list-4 .zk-card__actions { opacity: .85; transition: opacity .2s ease; }
	.zk-tpl-list-4 .zk-card:hover .zk-card__actions { opacity: 1; }
}

.zk-tpl-list-4 .zk-more,
.zk-tpl-list-4 .zk-list__empty { padding: 20px; }

/* ---------------------------------------------------------------------------
   list-5 — Fiches
   Une fiche par ligne : photo à gauche (largeur fixe, pour que la colonne de
   texte parte d'une ligne commune d'une fiche à l'autre), texte et action à
   droite. Le seul modèle où la photo et le texte se lisent côte à côte.
   --------------------------------------------------------------------------- */

.zk-tpl-list-5 .zk-grid { grid-template-columns: minmax(0, 1fr); }

@media (min-width: 900px) {
	.zk-tpl-list-5 .zk-grid { grid-template-columns: minmax(0, 1fr); }
}

.zk-tpl-list-5 .zk-card {
	flex-direction: row;
	align-items: stretch;
	border-radius: 16px;
}

.zk-tpl-list-5 .zk-card__media {
	flex: 0 0 38%;
	width: 38%;
	aspect-ratio: auto;
}

@media (min-width: 640px) {
	.zk-tpl-list-5 .zk-card__media { flex-basis: 34%; width: 34%; }
}

.zk-tpl-list-5 .zk-card__body {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 16px 18px 8px;
}

.zk-tpl-list-5 .zk-card__actions { padding: 0 18px 18px; }
.zk-tpl-list-5 .zk-card__title { font-size: 1.05rem; font-weight: 800; }

.zk-tpl-list-5 .zk-card__badge {
	position: static;
	display: inline-block;
	margin-top: 6px;
	padding: 0;
	background: transparent;
	color: var(--zk-muted);
	font-size: .78rem;
}

.zk-tpl-list-5 .zk-card__votes { font-weight: 800; }

/* La barre de filtres colle sous l'en-tête du site : sur une longue liste, on
   ne remonte pas pour changer de catégorie. */
.zk-tpl-list-5 .zk-head {
	position: sticky;
	top: 0;
	z-index: 20;
	padding: 12px 0;
	border-top: 1px solid var(--zk-border);
	border-bottom: 1px solid var(--zk-border);
	background: color-mix(in srgb, var(--zk-surface) 95%, transparent);
	backdrop-filter: blur(6px);
}

/* ===========================================================================
   LES SIX MODÈLES DE PAGE NOMINÉ — repris de la vitrine
   =========================================================================== */

/* nominee-1 — Portrait : bande photographique pleine largeur, le nom dessus,
   puis le vote en colonne centrée. On regarde d'abord une personne. */
.zk-nom-nominee-1.zk-nominee-page {
	background: #0B0F1A;
	padding: 0 0 40px;
	border-radius: 18px;
	overflow: hidden;
	color: #fff;
}

.zk-nom-nominee-1 .zk-profile {
	display: block;
	position: relative;
}

.zk-nom-nominee-1 .zk-profile__media {
	aspect-ratio: 21 / 9;
	border-radius: 0;
	background: #0B0F1A;
}

/* La photo est montrée EN ENTIER, jamais recadrée, et répétée en flou derrière
   elle-même : sans le flou, une image verticale laisserait deux bandes vides. */
.zk-nom-nominee-1 .zk-profile__img {
	object-fit: contain;
	position: relative;
	z-index: 1;
}

.zk-nom-nominee-1 .zk-profile__media::before {
	content: "";
	position: absolute;
	inset: 0;
	background: inherit;
	filter: blur(28px) brightness(.5);
	transform: scale(1.1);
}

.zk-nom-nominee-1 .zk-profile__media::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	background: linear-gradient(to top, #0B0F1A, rgba(11, 15, 26, .4) 55%, transparent);
}

.zk-nom-nominee-1 .zk-profile__body {
	position: relative;
	z-index: 3;
	max-width: 1100px;
	margin: -90px auto 0;
	padding: 0 20px;
}

.zk-nom-nominee-1 .zk-profile__name,
.zk-nom-nominee-1 .zk-profile__realname { color: #fff; }
.zk-nom-nominee-1 .zk-fact { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); }
.zk-nom-nominee-1 .zk-fact dt { color: rgba(255, 255, 255, .6); }
.zk-nom-nominee-1 .zk-fact dd { color: #fff; }

.zk-nom-nominee-1 .zk-vote-area {
	max-width: 720px;
	margin: 0 auto;
	padding: 0 20px;
}

.zk-nom-nominee-1 .zk-section__title { color: #fff; }
.zk-nom-nominee-1 .zk-panel { background: #fff; color: #101828; }

/* nominee-2 — Scrutin : registre administratif. Des filets, pas d'ombre, pas de
   dégradé, aucune accroche photographique. La barre de couleur en tête du bloc
   de vote est le seul accent de la page. */
.zk-nom-nominee-2 .zk-profile { display: block; }
.zk-nom-nominee-2 .zk-profile__media { display: none; }

.zk-nom-nominee-2 .zk-profile__body {
	padding: 28px 0;
	border-bottom: 1px solid var(--zk-border);
	background: #FAFBFC;
}

.zk-nom-nominee-2 .zk-profile__name { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }

.zk-nom-nominee-2 .zk-tag {
	background: transparent;
	color: var(--zk-muted);
	font-size: .72rem;
	letter-spacing: .2em;
	text-transform: uppercase;
}

.zk-nom-nominee-2 .zk-panel {
	border-radius: 8px;
	border-color: #D0D5DD;
	padding: 0;
	overflow: hidden;
}

.zk-nom-nominee-2 .zk-panel::before {
	content: "";
	display: block;
	height: 4px;
	background: var(--zk-primary);
}

.zk-nom-nominee-2 .zk-form { padding: 20px; }
.zk-has-shadow.zk-nom-nominee-2 .zk-panel { box-shadow: none; }

/* nominee-3 — Duo : la fiche de l'évènement passe à gauche et devient collante.
   Sur une édition à décompte, ce qui pousse à voter reste visible pendant toute
   la saisie, au lieu de disparaître en haut de page. */
@media (min-width: 1000px) {
	.zk-nom-nominee-3 .zk-nominee-inner {
		display: grid;
		grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
		gap: 32px;
		align-items: start;
	}

	/* `align-self: start` est indispensable : sans lui la colonne s'étire et
	   `sticky` n'a plus aucune marge de manœuvre. */
	.zk-nom-nominee-3 .zk-profile {
		position: sticky;
		top: 24px;
		align-self: start;
		display: block;
	}

	.zk-nom-nominee-3 .zk-vote-area { margin-top: 0; }
}

.zk-nom-nominee-3 .zk-profile__media { aspect-ratio: 4 / 3; }
.zk-nom-nominee-3 .zk-vote-area .zk-section__title { margin-top: 0; }

/* nominee-4 — Focus vote : une seule chose à l'écran. L'évènement se réduit à
   une ligne, sa fiche se replie en bas de page — replier n'est pas supprimer. */
.zk-nom-nominee-4 .zk-nominee-inner {
	max-width: 760px;
	margin: 0 auto;
	text-align: center;
}

.zk-nom-nominee-4.zk-nominee-page {
	background:
		radial-gradient(70rem 30rem at 50% -6rem, color-mix(in srgb, var(--zk-primary) 18%, transparent), transparent 70%),
		#FBFCFE;
	padding: 24px 20px 40px;
	border-radius: 18px;
}

.zk-nom-nominee-4 .zk-profile { display: block; }
.zk-nom-nominee-4 .zk-profile__media {
	width: 120px;
	margin: 0 auto 16px;
	aspect-ratio: 1 / 1;
	border-radius: 50%;
}

.zk-nom-nominee-4 .zk-facts { display: none; }
.zk-nom-nominee-4 .zk-profile__name { font-size: clamp(1.8rem, 1.4rem + 2vw, 2.5rem); }
.zk-nom-nominee-4 .zk-form,
.zk-nom-nominee-4 .zk-result { text-align: left; }

.zk-nom-nominee-4 .zk-panel {
	border: 0;
	border-radius: 16px;
	box-shadow: 0 18px 44px -18px rgba(15, 33, 68, .28);
}

/* nominee-5 — Magazine : grande photo 3:4 à gauche, nom en typographie de
   couverture par-dessus, vote à droite. La photo et le vote se lisent côte à
   côte — c'est ce qui le distingue de « Portrait ». */
@media (min-width: 1000px) {
	.zk-nom-nominee-5 .zk-nominee-inner {
		display: grid;
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		gap: 32px;
		align-items: start;
	}

	.zk-nom-nominee-5 .zk-profile { display: block; }
	.zk-nom-nominee-5 .zk-vote-area { margin-top: 0; }
}

.zk-nom-nominee-5 .zk-profile__media {
	position: relative;
	aspect-ratio: 3 / 4;
	border-radius: 24px;
}

.zk-nom-nominee-5 .zk-profile__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, .85), rgba(0, 0, 0, .1) 55%, transparent);
}

.zk-nom-nominee-5 .zk-profile__body {
	position: relative;
	margin-top: -140px;
	z-index: 2;
	padding: 0 24px 24px;
}

.zk-nom-nominee-5 .zk-profile__name {
	font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem);
	line-height: 1.05;
	color: #fff;
}

.zk-nom-nominee-5 .zk-profile__realname { color: rgba(255, 255, 255, .8); }
.zk-nom-nominee-5 .zk-tag { background: rgba(255, 255, 255, .18); color: #fff; }
.zk-nom-nominee-5 .zk-facts { display: none; }

/* ===========================================================================
   LES SIX MODÈLES DE FORMULAIRE — repris de la vitrine

   Le modèle dispose, il ne remplace pas : les champs, les contrôles et l'appel
   à la passerelle sont les mêmes dans les six cas. Six copies du tunnel
   seraient six occasions d'en casser une.
   =========================================================================== */

/* form-1 — Colonne : un seul axe, mais chaque étape porte son numéro. Le numéro
   dit qu'il y a un ordre, pas qu'il y a un parcours : rien n'est masqué. */
.zk-form-form-1 .zk-step {
	counter-increment: zk-step;
}

.zk-form-form-1 .zk-form { counter-reset: zk-step; }

.zk-form-form-1 .zk-step__title {
	display: flex;
	align-items: center;
	gap: 10px;
}

.zk-form-form-1 .zk-step__title::before {
	content: counter(zk-step);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--zk-primary);
	color: var(--zk-on-primary);
	font-size: .7rem;
	font-weight: 700;
}

.zk-form-form-1 .zk-total {
	order: -1;
	margin: 0 0 20px;
	padding: 16px;
	border: 1px solid var(--zk-border);
	border-top: 1px solid var(--zk-border);
	border-radius: 16px;
	background: var(--zk-bg);
}

/* form-2 — Récapitulatif latéral : saisie à gauche, panneau collant à droite.
   Le seul où le total reste sous les yeux pendant toute la saisie.

   La bascule se fait sur une requête de CONTENEUR, pas de fenêtre : ce
   formulaire s'affiche aussi dans une fenêtre, où l'écran peut être large alors
   que la boîte ne l'est pas — `min-width` y produirait deux colonnes de rien. */
.zk-form-form-2 .zk-form { container-type: inline-size; }

@container (min-width: 42rem) {
	.zk-form-form-2 .zk-form {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 17rem;
		gap: 24px;
		align-items: start;
	}

	.zk-form-form-2 .zk-total,
	.zk-form-form-2 .zk-terms,
	.zk-form-form-2 [data-zk-submit] {
		grid-column: 2;
	}

	.zk-form-form-2 .zk-total {
		position: sticky;
		top: 16px;
		margin: 0;
		padding: 16px;
		border: 1px solid var(--zk-border);
		border-radius: 16px;
		background: var(--zk-bg);
	}

	.zk-form-form-2 .zk-fields { grid-template-columns: minmax(0, 1fr); }
}

/* form-3 — Guichet compact : bandeau de montant plein cadre aux couleurs de la
   marque, champs à la suite, aucun décor. Le plus léger sur un téléphone
   d'entrée de gamme — chaque pixel de hauteur gagné est du défilement épargné.

   Le montant y est une affirmation, pas une note : c'est ce qui le distingue
   de « Colonne ». */
.zk-form-form-3 .zk-total {
	order: -1;
	margin: 0 0 16px;
	padding: 14px 16px;
	border: 0;
	border-radius: 16px;
	background: var(--zk-primary);
	color: var(--zk-on-primary);
}

.zk-form-form-3 .zk-total strong { color: var(--zk-on-primary); }
.zk-form-form-3 .zk-step__title { font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.zk-form-form-3 .zk-fields { gap: 10px; }
.zk-form-form-3 .zk-input { min-height: 44px; }
.zk-form-form-3 .zk-help { display: none; }
.zk-form-form-3 .zk-panel { padding: 14px; }

/* form-4 — Étapes numérotées : une étape à l'écran, barre de progression.
   Le découpage est fait par le script (voir `Steps`), qui lit cette classe. */
.zk-form-form-4 .zk-modal__progress,
.zk-form-form-5 .zk-modal__progress { display: block; }

.zk-form-form-4 .zk-modal__footer { justify-content: space-between; }

.zk-form-form-4 .zk-step__title {
	padding-bottom: 10px;
	border-bottom: 1px solid var(--zk-border);
}

/* form-5 — Accordéon guidé : les étapes franchies se replient en résumé et se
   rouvrent d'un clic. Le seul qui montre à la fois où l'on en est et ce qu'on a
   déjà saisi. */
.zk-form-form-5 .zk-step {
	margin: 0 0 10px;
	padding: 14px 16px;
	border: 1px solid var(--zk-border);
	border-radius: var(--zk-radius-sm);
	background: var(--zk-surface);
}

.zk-form-form-5 .zk-step__title {
	margin: 0;
	cursor: pointer;
}

.zk-form-form-5 .zk-step.is-done .zk-step__title::after {
	content: "✓";
	margin-left: auto;
	color: var(--zk-success);
	font-weight: 700;
}

.zk-form-form-5 .zk-step__title {
	display: flex;
	align-items: center;
	gap: 8px;
}

/* ===========================================================================
   IMPOSER LE STYLE DU PLUGIN

   Sans `.zk-forced`, le thème garde la main sur ce qu'il sait habiller et le
   plugin s'intègre au site. Avec, ce sont les réglages de l'écran Apparence qui
   l'emportent.

   **Volontairement ciblé, jamais `all: revert`** : cette propriété remettrait
   aussi à zéro ce que le plugin pose lui-même, et il faudrait tout réécrire
   derrière. Ne sont forcées que les propriétés qu'un thème écrase réellement —
   police, couleurs, arrondis, hauteur des champs, décoration des liens. Le
   reste continue d'hériter, ce qui garde le rendu proche du site.
   =========================================================================== */

/*
 * **Aucune règle sur `*`.** La première version en posait une — police,
 * interlettrage, capitales — et elle écrasait les modèles eux-mêmes : « Scrutin »
 * y perdait ses capitales, « Galerie » son texte blanc. Une propriété forcée sur
 * tous les descendants gagne contre les règles de modèle, qui ne portent pas
 * `!important` ; le forçage se retournait donc contre ce qu'il devait protéger.
 *
 * Ne sont forcés que les éléments **que le plugin dessine et qu'un thème
 * repeint** : boutons, champs, surfaces, liens, listes. Tout le reste continue
 * d'hériter, ce qui garde le rendu proche du site.
 */

.zk-forced .zk-btn,
.zk-forced button.zk-btn,
.zk-forced a.zk-btn {
	min-height: 48px !important;
	padding: 0 18px !important;
	border-radius: var(--zk-radius) !important;
	background: var(--zk-primary) !important;
	color: var(--zk-on-primary) !important;
	border: 1px solid transparent !important;
	font-size: .95rem !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	text-decoration: none !important;
	text-shadow: none !important;
	box-shadow: none !important;
	cursor: pointer !important;
}

.zk-forced .zk-btn--secondary {
	background: transparent !important;
	border-color: var(--zk-primary) !important;
	color: var(--zk-primary) !important;
}

.zk-forced .zk-btn--ghost {
	background: transparent !important;
	border-color: var(--zk-border) !important;
	color: var(--zk-muted) !important;
}

.zk-forced .zk-btn--tiny {
	min-height: 30px !important;
	padding: 0 10px !important;
	font-size: .78rem !important;
	background: transparent !important;
	border-color: var(--zk-border) !important;
	color: var(--zk-muted) !important;
}

/* Le bouton de vote des modèles sur photo reste translucide : un aplat plein
   masquerait le visage sur lequel on vote. */
.zk-forced.zk-tpl-list-1 .zk-vote-open,
.zk-forced.zk-tpl-list-2 .zk-vote-open,
.zk-forced.zk-tpl-list-4 .zk-vote-open {
	background: rgba(255, 255, 255, .18) !important;
	border-radius: 999px !important;
	color: #fff !important;
}

.zk-forced .zk-input,
.zk-forced select.zk-input,
.zk-forced textarea.zk-input,
.zk-forced input.zk-input {
	min-height: 48px !important;
	padding: 10px 12px !important;
	border: 1px solid var(--zk-border) !important;
	border-radius: var(--zk-radius-sm) !important;
	background: var(--zk-surface) !important;
	background-image: none !important;
	color: var(--zk-text) !important;
	font-size: 1rem !important;
	line-height: 1.4 !important;
	box-shadow: none !important;
	max-width: none !important;
	width: 100% !important;
}

.zk-forced .zk-panel,
.zk-forced .zk-modal__panel {
	border-radius: var(--zk-radius) !important;
	background: var(--zk-surface) !important;
	color: var(--zk-text) !important;
}

/* La carte : seulement l'arrondi et l'ombre. Sa couleur appartient au modèle —
   la forcer repeindrait en blanc les tuiles de Galerie, de Podium et du Mur. */
.zk-forced .zk-card,
.zk-forced .zk-ticket {
	border-radius: var(--zk-radius) !important;
	box-shadow: none !important;
}

.zk-has-shadow.zk-forced .zk-card,
.zk-has-shadow.zk-forced .zk-ticket {
	box-shadow: var(--zk-shadow) !important;
}

.zk-forced .zk-card__link,
.zk-forced .zk-card__title a,
.zk-forced .zk-back a {
	text-decoration: none !important;
	box-shadow: none !important;
	border: 0 !important;
}

/* Les listes du plugin ne sont pas des listes de contenu : un thème qui pose
   des puces ajouterait des points devant chaque billet. */
.zk-forced .zk-grid,
.zk-forced .zk-cart,
.zk-forced .zk-ticket__meta,
.zk-forced .zk-ticket__advantages,
.zk-forced .zk-tickets-issued__list,
.zk-forced .zk-bars {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.zk-forced .zk-ticket__advantages li,
.zk-forced .zk-ticket__meta li,
.zk-forced .zk-cart__line,
.zk-forced .zk-tickets-issued__list li {
	list-style: none !important;
	margin: 0 !important;
}

.zk-forced .zk-ticket__advantages li { padding-left: 18px !important; }

/* Un modèle sombre reste sombre malgré le forçage : ces règles reposent les
   couleurs du modèle APRÈS celles du plugin, sinon un mur noir repasserait en
   blanc au moment précis où l'on impose le style. */
.zk-forced.zk-dark .zk-card,
.zk-forced.zk-tpl-list-4 .zk-card {
	background: #0B0F1A !important;
	color: #fff !important;
}

.zk-forced.zk-tpl-list-1 .zk-card,
.zk-forced.zk-tpl-list-2 .zk-card {
	background: #E2E8F0 !important;
}

.zk-forced.zk-tpl-list-1 .zk-card__title,
.zk-forced.zk-tpl-list-2 .zk-card__title,
.zk-forced.zk-tpl-list-4 .zk-card__title,
.zk-forced.zk-nom-nominee-1 .zk-profile__name,
.zk-forced.zk-nom-nominee-5 .zk-profile__name {
	color: #fff !important;
}


/* ===========================================================================
   LES HUIT MODÈLES DE FENÊTRE — propres au plugin
   =========================================================================== */

/* modal-2 — Feuille basse : arrive au plus près du pouce. */
.zk-mod-modal-2 .zk-modal { align-items: flex-end; padding: 0; }
.zk-mod-modal-2 .zk-modal__panel {
	width: 100%;
	max-width: 640px;
	max-height: 92vh;
	border-radius: var(--zk-radius-lg) var(--zk-radius-lg) 0 0;
	animation: zk-slide-up .22s ease;
}

@keyframes zk-slide-up { from { transform: translateY(24px); opacity: .6; } }

/* modal-3 — Tiroir latéral : la liste reste visible à côté. */
.zk-mod-modal-3 .zk-modal { align-items: stretch; justify-content: flex-end; padding: 0; }
.zk-mod-modal-3 .zk-modal__panel {
	width: min(460px, 100%);
	max-height: 100vh;
	height: 100%;
	border-radius: 0;
}

/* modal-4 — Plein écran. */
.zk-mod-modal-4 .zk-modal { padding: 0; }
.zk-mod-modal-4 .zk-modal__panel { width: 100%; max-width: none; height: 100%; max-height: 100vh; border-radius: 0; }
.zk-mod-modal-4 .zk-modal__body { max-width: 620px; margin: 0 auto; width: 100%; }

/* modal-5 — Compacte : étroite, dense, sans décor. */
.zk-mod-modal-5 .zk-modal__panel { width: min(420px, 100%); }
.zk-mod-modal-5 .zk-modal__header { padding: 14px 16px; }
.zk-mod-modal-5 .zk-modal__body { padding: 16px; }
.zk-mod-modal-5 .zk-modal__avatar { display: none; }
.zk-mod-modal-5 .zk-fields { grid-template-columns: minmax(0, 1fr); }

/* modal-6 — En-tête coloré. */
.zk-mod-modal-6 .zk-modal__header { background: var(--zk-primary); color: var(--zk-on-primary); border-bottom: 0; }
.zk-mod-modal-6 .zk-modal__subtitle { color: color-mix(in srgb, var(--zk-on-primary) 82%, transparent); }
.zk-mod-modal-6 .zk-modal__close { color: var(--zk-on-primary); }
.zk-mod-modal-6 .zk-modal__avatar { background-color: rgba(255, 255, 255, .2); color: var(--zk-on-primary); }

/* modal-7 — Sombre, quelle que soit la couleur de la page. */
.zk-mod-modal-7 .zk-modal__panel {
	--zk-text: #FFFFFF;
	--zk-muted: rgba(255, 255, 255, .7);
	--zk-surface: #16202F;
	--zk-bg: #0F1826;
	--zk-border: rgba(255, 255, 255, .14);
	background: #16202F;
}

/* modal-8 — Étapes guidées : une étape à l'écran, barre de progression. */
.zk-mod-modal-8 .zk-modal__progress { display: block; }
.zk-mod-modal-8 .zk-step + .zk-step { margin-top: 0; }
.zk-mod-modal-8 .zk-modal__footer { justify-content: space-between; }

/* ---------------------------------------------------------------------------
   Petits écrans
   --------------------------------------------------------------------------- */

@media (max-width: 600px) {
	.zk-modal { padding: 0; align-items: flex-end; }
	.zk-modal__panel { width: 100%; max-height: 94vh; border-radius: var(--zk-radius-lg) var(--zk-radius-lg) 0 0; }
	.zk-head { flex-direction: column; align-items: stretch; }
	.zk-search__input { min-width: 0; width: 100%; }
	.zk-fields { grid-template-columns: minmax(0, 1fr); }
	.zk-card__actions { flex-direction: column; align-items: stretch; }
	.zk-card__actions .zk-btn { width: 100%; }
}

/* ---------------------------------------------------------------------------
   Bac à sable
   --------------------------------------------------------------------------- */

/*
 * Le bloc de règlement simulé. Volontairement rayé et sans la couleur de la
 * marque : il ne doit pas ressembler à un geste ordinaire du site, mais à un
 * outil d'atelier posé par-dessus. Un site qu'on croit en production ne doit
 * jamais faire douter de ce qu'on regarde.
 */
.zk-sandbox-settle {
	max-width: 460px;
	margin: 0 auto 16px;
	padding: 14px;
	border: 1px dashed var(--zk-accent);
	border-radius: var(--zk-radius-sm);
	background: repeating-linear-gradient(
		45deg,
		color-mix(in srgb, var(--zk-accent) 7%, transparent) 0 10px,
		transparent 10px 20px
	);
}

.zk-sandbox-settle__label {
	margin: 0 0 10px;
	font-size: .85rem;
	font-weight: 600;
	color: var(--zk-muted);
}

.zk-sandbox-settle__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

/* ---------------------------------------------------------------------------
   Partage
   --------------------------------------------------------------------------- */

.zk-modal--share .zk-modal__panel { width: min(420px, 100%); }

.zk-networks {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 14px;
}

.zk-network {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 14px;
	border: 1px solid var(--zk-border);
	border-radius: var(--zk-radius-sm);
	background: var(--zk-surface);
	color: var(--zk-text);
	font-size: .92rem;
	font-weight: 600;
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease;
}

.zk-network:hover { background: var(--zk-bg); }

/* Les couleurs de marque des réseaux sont écrites en dur, contrairement au
   reste : ce sont des marques tierces, elles ne suivent ni le thème ni les
   réglages — Facebook est bleu chez tout le monde. Même raisonnement que les
   couleurs d'opérateurs sur la page Couverture de la vitrine. */
.zk-network__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	color: #fff;
	font-size: .95rem;
	font-weight: 700;
	flex: 0 0 auto;
}

.zk-network--facebook .zk-network__icon { background: #1877F2; }
.zk-network--whatsapp .zk-network__icon { background: #25D366; }
.zk-network--instagram .zk-network__icon { background: linear-gradient(45deg, #F58529, #DD2A7B 50%, #8134AF); }
.zk-network--tiktok .zk-network__icon { background: #010101; }

.zk-network--facebook:hover { border-color: #1877F2; }
.zk-network--whatsapp:hover { border-color: #25D366; }
.zk-network--instagram:hover { border-color: #DD2A7B; }
.zk-network--tiktok:hover { border-color: #010101; }

.zk-share__note { margin: 0 0 14px; }

.zk-share__link {
	display: flex;
	gap: 8px;
	margin-bottom: 12px;
}

.zk-share__link .zk-input {
	font-size: .85rem;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (max-width: 420px) {
	.zk-networks { grid-template-columns: minmax(0, 1fr); }
	.zk-share__link { flex-direction: column; }
}
