/*
 * Site5 – events listing (Figma "Événements — Desktop", node 224:3254) and single event.
 * This page uses a 1312 px grid with 64 px side margins at 1440 px.
 */

.events-container {
	width: min(1312px, 100% - 2 * var(--events-gutter, 64px));
	margin-inline: auto;
}

@media (max-width: 1279px) {
	.events-container {
		--events-gutter: var(--gutter);
	}
}

.events-kicker {
	color: var(--red-bright);
	font-size: 11px;
	font-weight: 600;
	line-height: 13.2px;
	letter-spacing: 1.32px;
	text-transform: uppercase;
}

/* Featured event -------------------------------------------------------- */

.event-spotlight {
	padding: 96px 0 95px;
}

.event-spotlight__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 48px;
}

.event-spotlight__media {
	position: relative;
	flex: none;
	width: 644px;
	max-width: 50%;
	height: 418px;
	overflow: hidden;
	border-radius: 14px 0 0 14px;
	background: var(--grey-100);
}

.event-spotlight__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(11, 20, 33, 0.36);
}

.event-spotlight__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.event-spotlight__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 593px;
	min-width: 0;
}

.event-spotlight__title {
	margin-top: 12px;
	color: #121213;
	font-family: var(--font-serif);
	font-size: 40px;
	font-weight: 700;
	line-height: 50px;
	text-wrap: balance;
}

.event-spotlight__title a:hover {
	color: var(--red-bright);
}

.event-spotlight__excerpt {
	position: relative;
	max-width: 556px;
	margin-top: 26px;
	padding-left: 24px;
	color: #636970;
	font-size: 18px;
	line-height: 24.8px;
}

.event-spotlight__excerpt::before {
	content: "";
	position: absolute;
	top: 4px;
	bottom: 0;
	left: 0;
	width: 2px;
	border-radius: 45px;
	background: var(--red-bright);
}

.event-spotlight__note {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 72px;
	margin-top: 40px;
	padding: 16px 24px;
	border-radius: 8px;
	background: var(--red-bright);
	color: var(--white);
	font-size: 16px;
	font-weight: 600;
	line-height: 20px;
	text-align: center;
}

a.event-spotlight__note:hover {
	background: #c70511;
}

/* List ------------------------------------------------------------------ */

.events-list {
	padding: 73px 0;
	background: var(--bg-soft);
	scroll-margin-top: var(--header-height);
}

.events-list__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px 48px;
}

.events-list__title {
	margin-top: 12px;
	color: #121213;
	font-family: var(--font-serif);
	font-size: 42px;
	font-weight: 700;
	line-height: 53px;
}

.period-switch {
	display: grid;
	grid-template-columns: 151.7px 1fr;
	align-items: center;
	width: 382px;
	max-width: 100%;
	height: 53px;
	padding: 3.6px;
	border: 1.2px solid #e0ded6;
	border-radius: 27.7px;
	background: var(--white);
}

.period-switch__item {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 43.3px;
	border-radius: 22.9px;
	color: #0b1421;
	font-size: 14.45px;
	font-weight: 600;
	line-height: 17.3px;
	text-transform: uppercase;
	transition: background-color 0.2s, color 0.2s;
}

.period-switch__item.is-active {
	background: var(--red-bright);
	color: var(--white);
}

.period-switch__item:not(.is-active):hover {
	color: var(--red-bright);
}

.events-list__items {
	display: flex;
	flex-direction: column;
	gap: 30px;
	margin-top: 71px;
}

.event-row {
	display: flex;
	align-items: center;
	min-height: 300px;
	padding: 23px 43px 23px 23px;
	border: 1px solid #dbdbd6;
	border-radius: 12px;
	background: var(--white);
}

.event-row__date {
	display: flex;
	flex: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	align-self: stretch;
	width: 120px;
	min-height: 252px;
	border-radius: 8px;
	background: var(--grey-100);
	text-align: center;
}

.event-row__day {
	color: #0b1421;
	font-family: var(--font-serif);
	font-size: 46px;
	font-weight: 700;
	line-height: 50.6px;
}

.event-row__month {
	margin-top: 7px;
	color: var(--red-bright);
	font-size: 12px;
	font-weight: 600;
	line-height: 14.4px;
}

.event-row__year {
	margin-top: 15px;
	color: #636970;
	font-size: 15px;
	font-weight: 500;
	line-height: 13.2px;
}

.event-row__media {
	position: relative;
	flex: none;
	align-self: stretch;
	width: 320px;
	min-height: 252px;
	margin-left: 30px;
	overflow: hidden;
	border-radius: 8px;
	background: var(--grey-100);
}

.event-row__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(11, 20, 33, 0.14);
	pointer-events: none;
}

.event-row__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.event-row__body {
	flex: 0 1 540px;
	min-width: 0;
	margin-left: 36px;
}

.event-row__title {
	margin-top: 18px;
	color: #121213;
	font-family: var(--font-serif);
	font-size: 27px;
	font-weight: 700;
	line-height: 31.05px;
}

.event-row__title a:hover {
	color: var(--red-bright);
}

.event-row__excerpt {
	margin-top: 22px;
	color: #636970;
	font-size: 16px;
	line-height: 25px;
}

.event-row__meta {
	margin-top: 19px;
	color: #636970;
	font-size: 12px;
	font-weight: 500;
	line-height: 16.2px;
}

.event-row__actions {
	display: flex;
	flex: none;
	flex-direction: column;
	align-items: center;
	gap: 26px;
	width: 150px;
	margin-left: auto;
	padding-left: 32px;
	box-sizing: content-box;
}

.event-row__register {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 150px;
	height: 44px;
	border-radius: 8px;
	background: var(--night);
	color: var(--white);
	font-size: 13px;
	font-weight: 600;
	line-height: 15.6px;
	transition: background-color 0.2s;
}

.event-row__register:hover {
	background: var(--navy);
}

.event-row__details {
	color: var(--red-bright);
	font-size: 13px;
	font-weight: 600;
	line-height: 17.55px;
}

.event-row__details:hover {
	text-decoration: underline;
}

.events-list__empty {
	margin-top: 71px;
	padding: 48px 24px;
	border: 1px dashed #dbdbd6;
	border-radius: 12px;
	background: var(--white);
	color: #636970;
	font-size: 16px;
	text-align: center;
}

/* Single event (Figma "Événement — 40 ans · Editorial Desktop", node 236:3397) ------- */

.event-facts {
	position: relative;
	z-index: 1;
	margin-top: -42px;
	background: linear-gradient(transparent 42px, #fbfaf9 42px);
}

.event-facts__card {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 275px));
	justify-content: center;
	gap: 24px;
	width: min(1312px, 100% - 2 * var(--events-gutter, 64px));
	min-height: 137px;
	margin-inline: auto;
	padding: 29px 40px;
	border-radius: 12px;
	background: var(--white);
	box-shadow: 0 7px 20px rgba(0, 0, 0, 0.08);
}

.event-facts__item {
	min-height: 80px;
}

.event-facts__item + .event-facts__item {
	margin-left: -24px;
	padding-left: 24px;
	border-left: 1px solid #dbdbd6;
}

.event-facts__item dt {
	color: var(--red-bright);
	font-size: 15px;
	font-weight: 600;
	line-height: 13.2px;
	letter-spacing: 1.8px;
	text-transform: uppercase;
}

.event-facts__item dd {
	margin-top: 16px;
	color: #5e6369;
	font-size: 18px;
	font-weight: 500;
	line-height: 24px;
}

.event-page {
	padding: 113px 0 146px;
	background: #fbfaf9;
}

.event-page__grid {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 760px) minmax(0, 446px);
	justify-content: space-between;
	column-gap: 106px;
	align-items: start;
}

/* Column divider, 52 px left of the summary. */
.event-page__grid::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 22px;
	left: calc(100% - 446px - 52px);
	width: 1px;
	background: #dbdbd6;
}

.event-eyebrow {
	color: var(--red-bright);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	text-transform: uppercase;
	white-space: pre-wrap;
}

.event-eyebrow span {
	letter-spacing: 0.1em;
}

.event-intro__title {
	margin-top: 13px;
	color: #0b1421;
	font-family: var(--font-serif);
	font-size: 42px;
	font-weight: 700;
	line-height: 1.12;
}

.event-intro__lead {
	max-width: 720px;
	margin-top: 25px;
	color: #636970;
	font-size: 19px;
	line-height: 1.55;
}

.event-section {
	scroll-margin-top: calc(var(--header-height) + 24px);
}

.event-intro + .event-section {
	margin-top: 67px;
}

.event-section + .event-section {
	margin-top: 75px;
	padding-top: 75px;
	border-top: 1px solid #dbdbd6;
}

.event-intro + .event-section + .event-section {
	margin-top: 53px;
	padding-top: 53px;
}

.event-section__title {
	margin-top: 12px;
	color: #121213;
	font-family: var(--font-serif);
	font-size: 30px;
	font-weight: 700;
	line-height: 1.2;
}

.event-section__text {
	margin-top: 30px;
	color: #636970;
	font-size: 18px;
	line-height: 1.7;
}

.event-section__text > * + * {
	margin-top: 10px;
}

.event-section__text a {
	color: var(--red-bright);
	text-decoration: underline;
}

.event-section__text ul {
	padding-left: 1.2em;
	list-style: disc;
}

.event-figures,
.event-bullets,
.event-timeline,
.event-statement {
	margin-top: 33px;
}

.event-figures {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 132px;
	margin-top: 52px;
	padding: 29px 24px;
	border-radius: 12px;
	background: var(--navy);
}

.event-figures__item {
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: 160px;
	min-height: 74px;
}

.event-figures__item + .event-figures__item {
	width: 173px;
	padding-left: 12px;
	border-left: 1px solid #3b4759;
}

.event-figures__item dt {
	color: var(--white);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.2;
	text-transform: uppercase;
}

.event-figures__item dd {
	margin-top: 10px;
	color: #b8bfcc;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	text-transform: uppercase;
}

.event-figures__item dd.is-highlight {
	color: var(--red-bright);
}

.event-bullets {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.event-bullets li {
	display: grid;
	grid-template-columns: 195px minmax(0, 1fr);
	gap: 59px;
	color: #636970;
	font-size: 18px;
	line-height: 1.55;
}

.event-bullets strong {
	display: flex;
	align-items: center;
	gap: 18px;
	align-self: start;
	color: #121213;
	font-weight: 600;
}

.event-bullets strong::before {
	content: "";
	flex: none;
	width: 6px;
	height: 6px;
	border-radius: 3px;
	background: var(--red-bright);
}

.event-timeline li {
	display: grid;
	grid-template-columns: 92px 250px minmax(0, 1fr);
	gap: 15px;
	padding-bottom: 30px;
	border-bottom: 1px solid #dbdbd6;
}

.event-timeline li + li {
	padding-top: 30px;
}

.event-timeline li:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.event-timeline__time {
	color: var(--red-bright);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	text-transform: uppercase;
}

.event-timeline__title {
	color: #121213;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
}

.event-timeline__text {
	color: #636970;
	font-size: 18px;
	line-height: 1.55;
}

.event-statement {
	position: relative;
	min-height: 218px;
	margin-top: 41px;
	padding: 30px 66px 32px 34px;
	overflow: hidden;
	border-radius: 14px;
	background: var(--navy);
}

.event-statement::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 6px;
	border-radius: 3px;
	background: var(--red-bright);
}

.event-statement__label {
	color: var(--red-bright);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.3;
	text-transform: uppercase;
}

.event-statement__quote {
	margin-top: 16px;
	color: var(--white);
	font-family: var(--font-serif);
	font-size: 27px;
	font-weight: 700;
	line-height: 1.35;
}

.event-statement__signature {
	margin-top: 27px;
	color: #b8bfcc;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.3;
	white-space: pre-wrap;
}

/* Summary card (sticky). */
.event-summary {
	position: sticky;
	top: calc(var(--header-height) + 24px);
	padding: 42px 28px 41px 27px;
	border: 1px solid #dbdbd6;
	border-radius: 18px;
	background: var(--white);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.admin-bar .event-summary {
	top: calc(var(--header-height) + 56px);
}

.event-summary__row {
	display: grid;
	grid-template-columns: 92px minmax(0, 1fr);
	gap: 12px;
	padding: 16px 0 22px;
	border-bottom: 1px solid #dbdbd6;
}

.event-summary__row dt {
	color: var(--red-bright);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	text-transform: uppercase;
}

.event-summary__row dd {
	color: #121213;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.45;
}

.event-summary__register,
.event-summary__past {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 54px;
	margin-top: 25px;
	padding: 0 24px;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	text-transform: uppercase;
}

.event-summary__register {
	background: var(--red-bright);
	color: var(--white);
	transition: background-color 0.2s;
}

.event-summary__register:hover {
	background: #c70511;
}

.event-summary__register span:last-child {
	font-size: 18px;
	font-weight: 500;
	transition: transform 0.2s;
}

.event-summary__register:hover span:last-child {
	transform: translateX(4px);
}

.event-summary__past {
	justify-content: center;
	background: var(--grey-100);
	color: #636970;
}

.event-toc__title {
	margin-top: 39px;
	color: #636970;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	text-transform: uppercase;
}

.event-toc ul {
	margin-top: 15px;
}

.event-toc li + li {
	margin-top: 20px;
}

.event-toc a {
	display: flex;
	align-items: center;
	gap: 13px;
	color: #636970;
	font-size: 16px;
	line-height: 1.4;
	transition: color 0.2s;
}

.event-toc a::before {
	content: "";
	flex: none;
	width: 5px;
	height: 5px;
	border-radius: 3px;
	background: #dbdbd6;
	transition: background-color 0.2s;
}

.event-toc a:hover,
.event-toc a.is-active {
	color: #0b1421;
}

.event-toc a.is-active {
	font-weight: 600;
}

.event-toc a.is-active::before {
	background: var(--red-bright);
}

/* Responsive ------------------------------------------------------------ */

@media (max-width: 1279px) {
	.event-facts__card {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		width: calc(100% - 2 * var(--gutter));
		padding: 29px 32px;
	}

	.event-page__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
		gap: 64px;
	}

	.event-page__grid::before {
		left: calc(100% - 360px - 32px);
	}

	.event-bullets li {
		grid-template-columns: 170px minmax(0, 1fr);
		gap: 32px;
	}

	.event-timeline li {
		grid-template-columns: 70px 180px minmax(0, 1fr);
	}

	.event-row__media {
		width: 260px;
	}

	.event-row__actions {
		width: 130px;
	}

	.event-row__register {
		width: 130px;
	}
}

@media (max-width: 1023px) {
	.event-facts__card {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 24px;
	}

	.event-facts__item:nth-child(odd) {
		margin-left: 0;
		padding-left: 0;
		border-left: 0;
	}

	.event-page {
		padding: 64px 0 96px;
	}

	.event-page__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 48px;
	}

	.event-page__grid::before {
		display: none;
	}

	.event-summary {
		position: static;
		order: -1;
	}

	/* The facts bar above already shows these details. */
	.event-summary__facts {
		display: none;
	}

	.event-summary__register,
	.event-summary__past {
		margin-top: 0;
	}

	.event-figures {
		flex-wrap: wrap;
		justify-content: flex-start;
		row-gap: 20px;
	}

	.event-spotlight {
		padding: 64px 0;
	}

	.event-spotlight__inner {
		flex-direction: column;
		align-items: stretch;
		gap: 32px;
	}

	.event-spotlight__media {
		width: 100%;
		max-width: none;
		height: 360px;
		border-radius: 14px;
	}

	.event-spotlight__body {
		width: auto;
	}

	.events-list {
		padding: 64px 0;
	}

	.events-list__title br {
		display: none;
	}

	.page-hero--events .page-hero__title {
		line-height: 54px;
	}

	.event-row {
		flex-wrap: wrap;
		align-items: stretch;
		padding: 20px;
	}

	.event-row__media {
		flex: 1;
		width: auto;
		margin-left: 20px;
	}

	.event-row__body {
		flex: 1 1 100%;
		margin: 24px 0 0;
	}

	.event-row__actions {
		flex-direction: row;
		align-items: center;
		gap: 24px;
		width: auto;
		margin: 20px 0 0;
		padding: 0;
	}
}

@media (max-width: 767px) {
	.event-facts__card {
		grid-template-columns: minmax(0, 1fr);
		padding: 24px;
	}

	.event-facts__item {
		min-height: 0;
	}

	.event-facts__item + .event-facts__item {
		margin-left: 0;
		padding: 20px 0 0;
		border-left: 0;
		border-top: 1px solid #dbdbd6;
	}

	.event-page {
		padding: 48px 0 64px;
	}

	.event-summary {
		padding: 24px 20px;
	}

	.event-intro__title {
		font-size: 30px;
	}

	.event-intro__title br {
		display: none;
	}

	.event-intro__lead,
	.event-section__text {
		font-size: 16px;
	}

	.event-intro + .event-section,
	.event-section + .event-section,
	.event-intro + .event-section + .event-section {
		margin-top: 48px;
		padding-top: 48px;
	}

	.event-intro + .event-section {
		padding-top: 0;
	}

	.event-section__title {
		font-size: 26px;
	}

	.event-figures {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px 12px;
		margin-top: 32px;
		padding: 24px 20px;
	}

	.event-figures__item,
	.event-figures__item + .event-figures__item {
		width: auto;
		min-height: 0;
	}

	.event-figures__item:nth-child(odd) {
		padding-left: 0;
		border-left: 0;
	}

	.event-bullets li,
	.event-timeline li {
		grid-template-columns: minmax(0, 1fr);
		gap: 6px;
		font-size: 16px;
	}

	.event-timeline__title,
	.event-timeline__text {
		font-size: 16px;
	}

	.event-statement {
		padding: 28px 24px 28px 30px;
	}

	.event-statement__quote {
		font-size: 22px;
	}

	.event-spotlight {
		padding: 48px 0;
	}

	.event-spotlight__media {
		height: 240px;
	}

	.event-spotlight__title,
	.events-list__title {
		font-size: 30px;
		line-height: 38px;
	}

	.page-hero--events .page-hero__title {
		line-height: 40px;
	}

	.page-hero--events .page-hero__text {
		margin-top: 20px;
		line-height: 26px;
	}

	.event-spotlight__excerpt {
		font-size: 16px;
		line-height: 24px;
	}

	.events-list {
		padding: 48px 0;
	}

	.period-switch {
		width: 100%;
		grid-template-columns: 1fr 1fr;
	}

	.period-switch__item {
		font-size: 13px;
	}

	.events-list__items {
		gap: 20px;
		margin-top: 40px;
	}

	.event-row {
		padding: 16px;
	}

	.event-row__date {
		width: 84px;
		min-height: 160px;
	}

	.event-row__day {
		font-size: 36px;
		line-height: 40px;
	}

	.event-row__media {
		min-height: 160px;
		margin-left: 12px;
	}

	.event-row__title {
		font-size: 22px;
		line-height: 28px;
	}

	.event-row__excerpt {
		margin-top: 14px;
		font-size: 15px;
		line-height: 23px;
	}

	.event-row__actions {
		flex-wrap: wrap;
		gap: 16px;
	}

}
