/* Clara Events — single-event template styles.
   Ported from mage-eventpress templates/themes/Clara.php inline <style> block. */

/* Zero the theme's #content padding for event pages (Dara applies 57.6px/55px
   here; em/%-based so it varies by breakpoint). This replicates Dara's
   full-width-page template — the hero then sits flush under the menu with no
   white gap, and we own all internal spacing below. */
.single-clara_event #content.site-content {
	padding: 0;
}

.clara-event-single {
	padding: 0;
}

.clara-event-hero {
	margin: 0;
}

.clara-event-thumb {
	/* Show the whole banner at full width (no crop) — the title is baked into
	   the image, so any crop would cut it. Tall banners are capped at 435px
	   (prod's max-height) and cover-cropped; wide/short banners show in full. */
	display: block;
	width: 100%;
	max-height: 435px;
	object-fit: cover;
}

/* White content box: side gutters (13%) + a gentle upward overlap onto the hero
   that keeps the banner title readable. Replicates prod's
   .content-wrapper.full-width.with-featured-image (margin -4.7em 13% 0). */
.clara-content-wrapper {
	background: #fff;
	/* Prod overlaps this box onto the hero by 66px (Dara's -4.7em resolving
	   against prod's 14px .event.site-content context — measured live). We set
	   that resolved value directly so body text keeps its normal size, and the
	   overlap is a fixed ~66px regardless of banner height, exactly like prod.
	   Side gutters 13% + padding 1.6em-equiv, also matching prod. */
	margin: -66px 13% 40px;
	padding: 22px 3% 30px;
	position: relative;
	z-index: 2;
}

.clara-event-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
}

.clara-event-main {
	/* Grow to fill the row; basis 0 so the fixed-width sidebar + gap always fit
	   inside the (narrower, gutter-inset) content box without wrapping. */
	flex: 1 1 0;
	min-width: 280px;
	background: #f7f7f7;
	border-radius: 8px;
	box-shadow: rgba(45, 46, 92, 0.15) 0 1px 3px 0;
	padding: 10px 30px;
}

.clara-event-title {
	margin: 0.2em 0 0.4em;
	font-size: 28px;
	line-height: 1.2;
	font-weight: 700;
	color: #6a2c91;
}

/* Friendly date row: calendar icon + readable FR date. */
.clara-event-date {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 0.6em;
	color: #6a6a6a;
	font-weight: 400;
}

/* Capitalize only the first letter (e.g. "Vendredi 19 juin 2026 à 10h00") —
   French keeps month names and "à" lowercase. */
.clara-event-date span::first-letter {
	text-transform: uppercase;
}

.clara-event-date-icon {
	flex: 0 0 auto;
	color: #6a2c91;
}

/* Coloured accent bar between the title/date and the content. */
.clara-event-rule {
	border: 0;
	height: 2px;
	background: #6a2c91;
	margin: 0 0 1.25em;
}

/* Body copy: keep the theme's light 300 weight (lighter, like the address
   block) with a steady rhythm so the Word-pasted description reads cleanly. */
.clara-event-content {
	border-bottom: solid #eee 1px;
	margin: 0 0 1.5em;
	padding: 0 0 1.25em;
	font-weight: 300;
	line-height: 1.6;
}

.clara-event-content p {
	margin: 0 0 0.4em;
}

/* The description fakes a list with leading "-" in separate paragraphs. Indent
   those lines and hang the dash so they read like a real bullet list. */
.clara-event-content p:not(:first-child) {
	margin-bottom: 0.25em;
}

/* Consistent section heading shared by every section label ("Inscription", …). */
.clara-event-section-title {
	margin: 1.25em 0 0.75em;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.2;
	padding-bottom: 0.35em;
	border-bottom: 2px solid #6a2c91;
}

.clara-event-cart {
	margin-top: 1.5em;
}

.clara-event-cart-note {
	margin: 0 0 1em;
	font-weight: 400;
}

.clara-event-tickets {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1.25em;
}

.clara-event-tickets th {
	padding: 8px 12px;
	border-bottom: 2px solid #e0e0e0;
	text-align: left;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	color: #6a6a6a;
}

.clara-event-tickets td {
	padding: 12px;
	border-bottom: 1px solid #eee;
	text-align: left;
	vertical-align: middle;
}

/* Right-align price + quantity columns; keep the ticket name left. */
.clara-event-tickets th:nth-child(2),
.clara-event-tickets th:nth-child(3),
.clara-ticket-cell-price,
.clara-ticket-cell-qty {
	text-align: right;
	white-space: nowrap;
}

.clara-ticket-name {
	font-weight: 600;
}

.clara-ticket-row.is-sold-out {
	opacity: 0.6;
}

/* Remaining-seats as a muted caption under the ticket name. */
.clara-ticket-remaining {
	display: block;
	color: #888;
	font-size: 0.8em;
	margin-top: 2px;
}

.clara-ticket-soldout {
	color: #b00;
	font-weight: 700;
}

.clara-ticket-qty {
	width: 64px;
	padding: 6px 8px;
	text-align: center;
}

.clara-event-summary {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1em;
	margin: 0;
	padding: 0.9em 0;
	border-top: 1px solid #e0e0e0;
	font-weight: 600;
}

.clara-event-summary__total strong {
	font-size: 1.2em;
	color: #6a2c91;
}

/* Submit button sits at the end of the qty → Total flow, on the right (prod).
   Higher specificity than the theme's `.button.alt` which pins display/margin. */
.clara-event-form .clara-event-submit.button.alt {
	display: block;
	margin-left: auto;
	width: fit-content;
}

/* Purple buttons (override the theme's teal WC .button.alt), matching prod. */
.clara-event-submit,
.clara-event-cart-link,
.clara-event-cart-link.button.alt,
.clara-event-submit.button.alt {
	margin-top: 0.5em;
	background-color: #6a2c91;
	border-color: #6a2c91;
	color: #fff;
}

.clara-event-submit:hover,
.clara-event-submit:focus,
.clara-event-cart-link:hover,
.clara-event-cart-link:focus {
	background-color: #e0218a;
	border-color: #e0218a;
	color: #fff;
}

.clara-event-notice {
	padding: 12px 16px;
	margin: 1em 0;
	border-radius: 3px;
	background: #fff3cd;
	color: #856404;
	border: 1px solid #ffeeba;
}

.clara-event-notice--sold-out,
.clara-event-notice--expired {
	background: #f8d7da;
	color: #721c24;
	border-color: #f5c6cb;
}

.clara-event-notice--members,
.clara-event-notice--closed {
	background: #d1ecf1;
	color: #0c5460;
	border-color: #bee5eb;
}

.clara-event-sidebar {
	flex: 0 0 300px;
	min-width: 260px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* Shared sidebar-box look (seats, share, address). */
.clara-event-seats,
.clara-event-share,
.clara-event-address {
	background: #f7f7f7;
	border-radius: 8px;
	box-shadow: rgba(45, 46, 92, 0.15) 0 1px 3px 0;
	padding: 16px 20px;
	line-height: normal;
}

/* Remaining seats — emphasis on the remaining count, total after a slash. */
.clara-event-seats {
	text-align: center;
}

/* Consistent bold sidebar-box titles (seats label + share heading). */
.clara-event-seats-label,
.clara-event-share-title {
	display: block;
	margin: 0 0 10px;
	font-size: 15px;
	font-weight: 700;
	color: #1d2327;
	text-align: center;
}

.clara-event-seats-remaining {
	font-size: 34px;
	font-weight: 700;
	color: #6a2c91;
	line-height: 1;
}

.clara-event-seats-total {
	font-size: 18px;
	color: #999;
}

.clara-event-seats.is-full .clara-event-seats-remaining {
	color: #c0392b;
}

/* Share box. */
.clara-event-share-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.clara-event-share-list li {
	margin: 0;
	padding: 0;
	display: flex;
}

.clara-event-share-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #6a2c91;
	color: #fff;
	cursor: pointer;
	transition: background 0.15s ease;
	box-sizing: border-box;
}

/* Uniform icon size — each glyph shares the same 24×24 viewBox, so a fixed
   render box makes Facebook/WhatsApp match the rest regardless of path weight. */
.clara-event-share-link svg {
	width: 20px;
	height: 20px;
	display: block;
}

.clara-event-share-link:hover,
.clara-event-share-link:focus {
	background: #e0218a;
	color: #fff;
}

.clara-event-share-link.is-copied {
	background: #2e7d32;
}

.clara-event-address ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.clara-event-address ul li {
	margin-bottom: 1px;
	padding: 0;
}

.clara-event-address ul li.clara-address-venue,
.clara-event-address ul li:first-child {
	font-weight: bold;
	margin-bottom: 10px;
}

/* ---- [event-list] single-column list ---- */

.clara-event-list {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.clara-event-list-empty {
	color: #777;
	font-style: italic;
}

.clara-event-list-item {
	position: relative;
	display: flex;
	gap: 20px;
	background: #f7f7f7;
	border-radius: 12px;
	box-shadow: rgba(45, 46, 92, 0.12) 0 1px 3px 0;
	overflow: hidden;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

/* Alternating row colours: grey ↔ light blue, matching production. */
.clara-event-list-item:nth-child(even) {
	background: #eef3fb;
}

.clara-event-list-item:hover {
	box-shadow: rgba(45, 46, 92, 0.22) 0 4px 12px 0;
}

/* Stretched link: the whole card is clickable via the title anchor's overlay,
   while keeping a single semantic link per card (good for screen readers). */
.clara-event-list-title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

/* Sold-out card: render the poster in black & white so the red "Complet"
   banner pops, while keeping the text fully legible. */
.clara-event-list-item.is-sold-out .clara-event-list-thumb img {
	filter: grayscale(1) brightness(0.95);
}

.clara-event-list-item.is-sold-out .clara-event-list-price {
	text-decoration: line-through;
	opacity: 0.65;
}

.clara-event-list-thumb {
	position: relative;
	flex: 0 0 220px;
	min-height: 150px;
	background: #ececec;
	display: block;
}

.clara-event-list-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.clara-event-list-badge {
	position: absolute;
	top: 0;
	left: 12px;
	text-align: center;
	line-height: 1.1;
	overflow: hidden;
	border-radius: 0 0 4px 4px;
	box-shadow: rgba(45, 46, 92, 0.2) 0 1px 4px 0;
}

/* Date badge: purple day over magenta month (production colours). */
.clara-event-list-day {
	display: block;
	background: #6a2c91;
	color: #fff;
	font-size: 18px;
	font-weight: bold;
	padding: 6px 12px 4px;
}

.clara-event-list-month {
	display: block;
	background: #e0218a;
	color: #fff;
	font-size: 11px;
	text-transform: uppercase;
	padding: 3px 12px 5px;
	letter-spacing: 0.5px;
}

/* "Complet" banner: a bold full-width band across the (now grayscale) poster,
   impossible to miss. The red lives only on the banner — the image is B&W. */
.clara-event-list-ribbon {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	transform: translateY(-50%) rotate(-8deg);
	z-index: 2;
	background: #c0392b;
	color: #fff;
	font-size: 20px;
	font-weight: 800;
	letter-spacing: 2px;
	text-transform: uppercase;
	text-align: center;
	padding: 10px 0;
	box-shadow: rgba(45, 46, 92, 0.35) 0 2px 10px 0;
	text-shadow: rgba(0, 0, 0, 0.25) 0 1px 2px;
}

.clara-event-list-body {
	flex: 1 1 auto;
	padding: 16px 20px;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

/* A single purple accent dash covering both the title and the price. */
.clara-event-list-head {
	padding-left: 14px;
	border-left: 4px solid #6a2c91;
	margin-bottom: 12px;
}

.clara-event-list-title {
	margin: 0 0 8px;
	font-size: 20px;
	line-height: 1.25;
}

.clara-event-list-price {
	margin: 0;
	font-weight: bold;
	color: #e0218a;
}

.clara-event-list-excerpt {
	color: #555;
	margin-bottom: 12px;
}

/* Location pinned to the bottom of the card, icon + text vertically centred. */
.clara-event-list-city {
	color: #777;
	margin: auto 0 0;
	display: flex;
	align-items: center;
	gap: 6px;
}

.clara-event-list-pin {
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	color: #6a2c91;
}

.clara-event-list-venue {
	font-weight: bold;
}

.clara-event-list-citytown {
	font-style: italic;
}

.clara-event-list-pagination ul {
	list-style: none;
	display: flex;
	gap: 6px;
	padding: 0;
	margin: 12px 0 0;
}

.clara-event-list-pagination .page-numbers {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 3px;
	background: #f1f1f1;
	text-decoration: none;
}

.clara-event-list-pagination .page-numbers.current {
	background: #2d2e5c;
	color: #fff;
}

/* ---- Order received (thankyou) page ---- */
.clara-order-received {
	max-width: 720px;
	margin: 0 auto;
}

.clara-order-title {
	color: #6a2c91;
	font-weight: 700;
	margin: 0 0 0.4em;
}

.clara-order-lead {
	margin: 0 0 1.5em;
	color: #555;
}

.clara-order-events {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 1.5em;
}

.clara-order-event {
	background: #f7f7f7;
	border-radius: 8px;
	border-left: 4px solid #6a2c91;
	padding: 16px 20px;
}

.clara-order-event-name {
	margin: 0 0 0.5em;
	color: #6a2c91;
	font-size: 18px;
	font-weight: 700;
}

.clara-order-event-meta {
	list-style: none;
	margin: 0;
	padding: 0;
	line-height: 1.7;
}

.clara-order-event-meta .clara-order-label {
	font-weight: 600;
	color: #1d2327;
}

.clara-order-overview {
	list-style: none;
	margin: 0 0 1.5em;
	padding: 16px 20px;
	background: #f7f7f7;
	border-radius: 8px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 16px 24px;
	/* Reset theme decorations (counter cells, dashed dividers) on these list items. */
	counter-reset: none;
}

.clara-order-overview .clara-order-overview__item {
	display: flex !important;
	flex-direction: column;
	gap: 4px;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	min-width: 0;
	text-align: left;
	float: none !important;
	width: auto !important;
}

.clara-order-overview .clara-order-overview__item::before {
	content: none !important;
}

.clara-order-overview .clara-order-overview-label {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #6a6a6a;
}

.clara-order-overview strong {
	font-size: 16px;
	word-break: break-word;
}

.clara-order-notice {
	padding: 14px 18px;
	border-radius: 6px;
	margin: 0 0 1em;
}

.clara-order-notice--error {
	background: #fdecea;
	color: #8a1c12;
	border: 1px solid #f5c6cb;
}

.clara-order-notice--info {
	background: #eef3fb;
	color: #1d3a66;
	border: 1px solid #cfe0f5;
}

.clara-order-actions {
	margin-top: 1.5em;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

/* Purple buttons on the order-received page (override the theme's grey/teal
   .button), matching the registration/checkout buttons. */
.clara-order-received .button,
.clara-order-actions .button {
	background-color: #6a2c91;
	border-color: #6a2c91;
	color: #fff;
}

.clara-order-received .button:hover,
.clara-order-received .button:focus,
.clara-order-actions .button:hover,
.clara-order-actions .button:focus {
	background-color: #e0218a;
	border-color: #e0218a;
	color: #fff;
}

/* Spinner shown while we poll for SumUp's async payment confirmation. */
.clara-order-spinner {
	display: inline-block;
	width: 28px;
	height: 28px;
	border: 3px solid rgba(106, 44, 145, 0.25);
	border-top-color: #6a2c91;
	border-radius: 50%;
	animation: clara-spin 0.8s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
	.clara-order-spinner { animation: none; }
}
