/*
 * Site5 – sections shared by several templates (content from Site settings):
 * members & partners logo walls and the membership call to action.
 */

/* Members & partners ---------------------------------------------------- */

.network {
	padding: 60px 0;
}

.network__head {
	padding-top: 5.2px;
	text-align: center;
}

.network__title {
	margin-top: 14.8px;
	color: #090909;
	font-family: var(--font-serif);
	font-size: 30px;
	font-weight: 700;
	line-height: 36px;
}

.network__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px;
	align-items: center;
	margin-top: 40px;
}

.network-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 22px;
	overflow: hidden;
	border-radius: 24px;
}

.network-card--light {
	min-height: 315px;
	padding: 33.6px;
	border: 1px solid #ebedf0;
}

.network-card--dark {
	gap: 12px;
	min-height: 311.2px;
	padding: 32px;
	background: var(--navy);
	color: var(--white);
}

.network-card--night {
	background: var(--night);
}

.network-card--dark::before {
	content: "";
	position: absolute;
	top: -60px;
	right: -60px;
	width: 208px;
	height: 208px;
	border-radius: 9999px;
	background: rgba(216, 30, 5, 0.2);
	filter: blur(52.2px);
}

.network-card__head {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
}

.network-card--dark .network-card__head {
	margin-bottom: 15.5px;
}

.network-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--red);
}

.network-card--dark .network-card__icon {
	border: 0.5px solid rgba(255, 255, 255, 0.35);
	background: rgba(255, 255, 255, 0.15);
}

.network-card__label {
	color: var(--red);
	font-size: 10px;
	font-weight: 700;
	line-height: 15px;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.network-card--dark .network-card__label {
	color: var(--white);
}

.network-card__title {
	color: var(--ink);
	font-family: var(--font-serif);
	font-size: 20px;
	font-weight: 700;
	line-height: 28px;
}

.network-card--dark .network-card__title {
	color: var(--white);
}

.network-card__row {
	--marquee-duration: 30s;
	position: relative;
	height: 80px;
}

.network-card--light .marquee__list {
	gap: 10px;
	padding-right: 10px;
}

.network-card--dark .marquee__list {
	gap: 12px;
	padding-right: 12px;
}

.network-card .marquee__item {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 80px;
	padding: 1px;
	border-radius: 12px;
}

.network-card--light .marquee__item {
	width: 167.6px;
	border: 1px solid var(--grey-100);
	background: var(--bg-alt);
}

.network-card--dark .marquee__item {
	width: 259px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(255, 255, 255, 0.05);
}

.network-card--light .marquee__logo {
	width: auto;
	max-width: 116px;
	height: auto;
	max-height: 61px;
}

.network-card--dark .marquee__logo {
	width: auto;
	max-width: 153px;
	height: auto;
	max-height: 52.9px;
}

/* CTA ------------------------------------------------------------------- */

.cta {
	padding: 64px var(--gutter) 56px;
	background:
		radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.15) 0, rgba(255, 255, 255, 0) 442px),
		var(--red);
	color: var(--white);
	text-align: center;
}

.cta__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 896px;
	margin-inline: auto;
}

.cta__title {
	font-family: var(--font-serif);
	font-size: 36px;
	font-weight: 700;
	line-height: 40px;
}

.cta__text {
	max-width: 700px;
	margin-top: 16px;
	color: #ffe1df;
	font-size: 16px;
	font-weight: 300;
	line-height: 20px;
}

.button--cta {
	margin-top: 32px;
	padding: 16px 40px;
	background: var(--white);
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
	color: var(--red);
	font-size: 14px;
	line-height: 20px;
	letter-spacing: 0.7px;
	text-transform: uppercase;
}

/* Inner page hero ------------------------------------------------------------------ */

.page-hero {
	position: relative;
	display: flex;
	justify-content: center;
	min-height: 452px;
	padding: 100px var(--gutter) 96px;
	overflow: hidden;
	background: #0b1421;
	color: var(--white);
	text-align: center;
}

.page-hero__media {
	position: absolute;
	inset: 0;
}

/* The Figma hero starts under the header: the visible part begins 39 px into the image. */
.page-hero__image {
	position: absolute;
	top: -39px;
	left: 0;
	width: 100%;
	min-height: calc(100% + 39px);
	object-fit: cover;
	object-position: top;
}

.page-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(18, 18, 19, 0.59);
	mix-blend-mode: luminosity;
}

.page-hero__content {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: min(923px, 100%);
}

.page-hero__label {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 106px;
	height: 28px;
	padding: 0 16px;
	border-radius: 14px;
	background: var(--red-bright);
	font-size: 10px;
	font-weight: 700;
	line-height: 14px;
	text-transform: uppercase;
}

.page-hero__title {
	margin-top: 29px;
	font-family: var(--font-serif);
	font-size: 58px;
	font-weight: 700;
	line-height: 66px;
}

.page-hero__text {
	margin-top: 29px;
	color: #e8ebf0;
	font-size: 18px;
	line-height: 30px;
}

.page-hero__meta {
	margin-top: 20px;
	color: #e8ebf0;
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
}

/* Events variant (Figma "Événements — Desktop"): darker veil, serif label. */
.page-hero--events {
	min-height: 447px;
	padding-top: 84px;
	padding-bottom: 84px;
}

/* Here the image fills its 486 px Figma frame, centred (the CCSM hero is top-aligned). */
.page-hero--events .page-hero__image {
	height: calc(100% + 39px);
	object-position: center;
}

.page-hero--events .page-hero__media::after {
	background: rgba(18, 18, 19, 0.68);
}

.page-hero--events .page-hero__content {
	width: min(719px, 100%);
}

.page-hero--events .page-hero__label {
	min-width: 160px;
	height: 35px;
	border-radius: 104px;
	font-family: var(--font-serif);
	font-size: 12px;
	font-weight: 600;
	line-height: 14.4px;
	letter-spacing: 1.44px;
	text-transform: none;
}

.page-hero--events .page-hero__title {
	margin-top: 12px;
	line-height: 69px;
}

.page-hero--events .page-hero__text {
	max-width: 590px;
	margin-top: 38px;
	color: #d1d9e0;
	line-height: 27.9px;
}


/* Single event variant (Figma "Événement — 40 ans"): darker veil, highlighted words. */
.page-hero--event {
	min-height: 441px;
	padding-top: 72px;
	padding-bottom: 120px;
}

.page-hero--event .page-hero__image {
	height: calc(100% + 39px);
	object-position: 50% 58%;
}

.page-hero--event .page-hero__media::after {
	background: rgba(11, 20, 33, 0.73);
}

.page-hero--event .page-hero__content {
	width: min(765px, 100%);
}

.page-hero--event .page-hero__title {
	margin-top: 0;
	font-size: 52px;
	line-height: 66px;
}

.page-hero__accent {
	color: var(--red-bright);
}

.page-hero__number {
	font-size: 70px;
}

.page-hero--event .page-hero__text {
	max-width: 650px;
	margin-top: 24px;
	color: #dbe0e8;
	line-height: 27px;
}

/* Testimonials ---------------------------------------------------------- */

.testimonials {
	display: flex;
	align-items: center;
	gap: 70px;
	min-height: 568px;
	padding: 40px 0 40px max(var(--gutter-wide), calc((100% - 1280px) / 2));
	overflow: hidden;
}

.testimonials__copy {
	display: flex;
	flex: none;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
	width: 570px;
}

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

.testimonials__text {
	color: #3d454f;
	font-size: 16px;
	line-height: 29px;
}

.button--wide {
	width: 350px;
	max-width: 100%;
	height: 52px;
	padding: 16px 22px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
}

.testimonials__slider {
	flex: 0 1 665px;
	min-width: 0;
}

.testimonials__track {
	gap: 15px;
	height: 426px;
	align-items: center;
	padding-left: 18px;
	scroll-padding-left: 18px;
}

.video-card {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 291px;
	height: 357px;
	overflow: hidden;
	border: 1px solid rgba(99, 105, 112, 0.17);
	border-radius: 22px;
	box-shadow: 0 10px 11.4px rgba(0, 0, 0, 0.06);
}

.video-card__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 58%;
}

.video-card .play-button {
	position: relative;
}

.testimonials__controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 646px;
	max-width: 100%;
}

.round-arrow {
	display: flex;
	border-radius: 9999px;
}

.slider-dots {
	display: flex;
	align-items: center;
	gap: 4px;
}

.slider-dots__dot {
	width: 6px;
	height: 6px;
	border-radius: 9999px;
	background: #d9d9d9;
	transition: width 0.2s, background-color 0.2s;
}

.slider-dots__dot.is-active {
	width: 14px;
	background: var(--red-bright);
}


/* Directory page variant: same block with more breathing room (Figma 649 px). */
.testimonials--spacious {
	min-height: 649px;
	padding-top: 80px;
	padding-bottom: 80px;
}

/* Breadcrumb (shared) ------------------------------------------------------------ */

.breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	color: #87909a;
	font-size: 12px;
	line-height: 18px;
	letter-spacing: 0.2px;
}

.breadcrumb li + li::before {
	content: "/";
	margin: 0 0.6em;
}

.breadcrumb a,
.breadcrumb span {
	text-transform: uppercase;
}

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

/* Split hero: text + image (directory, services) ------------------------------------------------------------------ */

.split-hero {
	background: #f8f8f7;
}

.split-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 620px) minmax(0, 570px);
	justify-content: space-between;
	align-items: start;
	gap: 48px;
	width: min(1280px, 100% - 2 * var(--gutter-wide));
	margin-inline: auto;
	padding: 48px 0 97px;
}

.split-hero__body {
	padding-top: 8px;
}

.split-hero__kicker {
	margin-top: 32px;
	color: var(--red-bright);
	font-size: 13px;
	font-weight: 500;
	line-height: 18px;
	letter-spacing: 1.1px;
	text-transform: uppercase;
}

.split-hero__title {
	margin-top: 16px;
	color: #0b1421;
	font-family: var(--font-serif);
	font-size: 54px;
	font-weight: 700;
	line-height: 64px;
}

.split-hero__text {
	margin-top: 21px;
	color: #3d454f;
	font-size: 17px;
	line-height: 30px;
}

.split-hero__button {
	min-width: 292px;
	height: 52px;
	margin-top: 41px;
	padding: 0 24px;
	border-radius: 8px;
	background: var(--red-bright);
	color: var(--white);
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
}

.split-hero__button:hover {
	background: #c70511;
}

.split-hero__media {
	height: 524px;
	overflow: hidden;
	border-radius: 24px;
	box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
}

.split-hero__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Pagination (shared) ------------------------------------------------------------ */

.pagination {
	margin-top: 72px;
}

.pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.pagination .page-numbers,
.pagination__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 1px solid #dfe3e8;
	border-radius: 4px;
	background: var(--white);
	color: #212b36;
	font-size: 14px;
	font-weight: 700;
	line-height: 20px;
}

.pagination a.page-numbers:hover {
	border-color: #da291c;
}

.pagination .page-numbers.is-current {
	border-color: #da291c;
	color: #da291c;
}

.pagination__arrow::before {
	content: "";
	width: 24px;
	height: 24px;
	background: url("../icons/chevron-left-grey.svg") center / contain no-repeat;
}

.pagination__arrow--next {
	border-color: #da291c;
	background: #da291c;
}

.pagination__arrow--next::before {
	background-image: url("../icons/chevron-left-white.svg");
	transform: rotate(180deg);
}

.pagination__arrow.is-disabled {
	opacity: 0.5;
}

/* Compact variant (Conseil d’administration, SwissEco): pill label, title only, image from
   the top of the section. */
.page-hero--compact {
	min-height: 353px;
	padding-top: 115px;
	padding-bottom: 115px;
}

.page-hero--compact .page-hero__image {
	top: 0;
	height: max(604px, 100%);
	min-height: 0;
	object-position: center;
}

.page-hero--compact .page-hero__media::after {
	background: rgba(18, 18, 19, 0.61);
}

.page-hero--compact .page-hero__label {
	min-width: 160px;
	text-transform: none;
	height: 35px;
	border-radius: 104px;
	font-family: var(--font-serif);
	font-size: 12px;
	font-weight: 600;
	line-height: 14px;
	letter-spacing: 1.44px;
}

.page-hero--compact .page-hero__title {
	margin-top: 21px;
	font-size: 48px;
	line-height: 66px;
}

/* Commissions variant: plain red label, two-line title. */
.page-hero--commissions {
	min-height: 440px;
	padding-top: 100px;
	padding-bottom: 115px;
}

.page-hero--commissions .page-hero__image {
	height: calc(100% + 39px);
	object-position: center;
}

.page-hero--commissions .page-hero__media::after {
	background: rgba(18, 18, 19, 0.68);
}

.page-hero--commissions .page-hero__content {
	width: min(957px, 100%);
}

.page-hero--commissions .page-hero__label {
	min-width: 0;
	height: auto;
	padding: 0;
	background: none;
	color: var(--red-bright);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
}

.page-hero--commissions .page-hero__title {
	margin-top: 12px;
	font-size: 48px;
	line-height: 1.22;
}

.page-hero--commissions .page-hero__text {
	margin-top: 17px;
	color: #bdc4d1;
	line-height: 1.65;
}

/* Single commission variant: title, bold subtitle, text and button. */
.page-hero--commission {
	min-height: 454px;
	padding-top: 80px;
	padding-bottom: 66px;
}

.page-hero--commission .page-hero__image {
	height: calc(100% + 39px);
	object-position: 50% 90%;
}

.page-hero--commission .page-hero__media::after {
	background: rgba(11, 20, 33, 0.69);
}

.page-hero--commission .page-hero__content {
	width: min(895px, 100%);
}

.page-hero--commission .page-hero__title {
	margin-top: 0;
	font-size: 50px;
	line-height: 1.08;
}

.page-hero__subtitle {
	margin-top: 23px;
	color: #e0ded6;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.6;
}

.page-hero--commission .page-hero__text {
	margin-top: 14px;
	color: #e0ded6;
	line-height: 1.6;
}

.page-hero__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 233px;
	height: 46px;
	margin-top: 24px;
	padding: 0 20px;
	border-radius: 7px;
	background: var(--red-bright);
	color: var(--white);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.3;
	transition: background-color 0.2s;
}

.page-hero__button:hover {
	background: #c70511;
}

/* Membership and FAQ variants (Figma "Adhérer", "FAQ"): pill label, button without arrow. */
.page-hero--adhesion {
	align-items: center;
	min-height: 482px;
	padding-top: 69px;
	padding-bottom: 69px;
}

.page-hero--adhesion .page-hero__image,
.page-hero--faq .page-hero__image {
	top: 0;
	height: 100%;
	min-height: 0;
	object-position: center;
}

.page-hero--adhesion .page-hero__media::after,
.page-hero--faq .page-hero__media::after {
	background: rgba(18, 18, 19, 0.61);
}

.page-hero--adhesion .page-hero__content,
.page-hero--faq .page-hero__content {
	width: min(939px, 100%);
}

.page-hero--adhesion .page-hero__label,
.page-hero--faq .page-hero__label {
	min-width: 160px;
	height: 35px;
	border-radius: 104px;
	font-family: var(--font-serif);
	font-size: 12px;
	font-weight: 600;
	line-height: 14.4px;
	letter-spacing: 1.44px;
}

.page-hero--adhesion .page-hero__title,
.page-hero--faq .page-hero__title {
	margin-top: 21px;
	font-size: 48px;
	line-height: 66px;
}

.page-hero--faq {
	align-items: center;
	min-height: 353px;
	padding-top: 82px;
	padding-bottom: 82px;
}

.page-hero--adhesion .page-hero__text {
	margin-top: 22px;
	color: #ccd4db;
	font-size: 17px;
	line-height: 30px;
}

.page-hero--adhesion .page-hero__button {
	min-width: 235px;
	height: 52px;
	margin-top: 22px;
	border-radius: 8px;
	font-size: 14px;
	line-height: 20px;
}

/* Desktop: the Figma image fills a 1668 × 604 frame (stretched), centred, from the top. */
@media (min-width: 1280px) {
	.page-hero--adhesion .page-hero__image,
	.page-hero--faq .page-hero__image {
		left: -7.91%;
		width: 115.82%;
		max-width: none;
		height: 604px;
		object-fit: fill;
	}
}

/* Numbered process steps on a line (service approach, membership steps) -- */

.process-steps {
	position: relative;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 250px));
	gap: 70px;
	margin-top: 72px;
	padding-left: 35px;
}

/* Line through the step numbers. */
.process-steps::before {
	content: "";
	position: absolute;
	top: 24px;
	right: -20px;
	left: 60px;
	height: 2px;
	background: #e3e5e8;
}

.process-step {
	position: relative;
}

.process-step__number {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	border-radius: 25px;
	background: #0b1421;
	color: var(--white);
	font-size: 15px;
	font-weight: 700;
	line-height: 20px;
}

.process-step:first-child .process-step__number {
	background: var(--red-bright);
}

.process-step__title {
	margin-top: 36px;
	color: #0b1421;
	font-family: var(--font-serif);
	font-size: 24px;
	font-weight: 700;
	line-height: 32px;
}

.process-step__text {
	margin-top: 12px;
	color: #3d454f;
	font-size: 16px;
	line-height: 23px;
}

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

@media (max-width: 1279px) {
	.split-hero__inner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
	}

	.testimonials--spacious {
		min-height: 0;
	}

	.testimonials {
		flex-direction: column;
		align-items: stretch;
		gap: 40px;
		padding: 72px 0;
	}

	.testimonials__copy {
		width: auto;
		max-width: 720px;
		padding-inline: var(--gutter);
	}

	/* Column layout: the 665 px flex-basis would otherwise become a height. */
	.testimonials__slider {
		flex: none;
		width: auto;
	}

	.testimonials__track {
		padding-left: var(--gutter);
		padding-right: var(--gutter);
		scroll-padding-left: var(--gutter);
	}

	.testimonials__controls {
		margin-inline: var(--gutter);
		width: auto;
	}

	.network__grid {
		gap: 24px;
	}
}

@media (max-width: 1023px) {
	.split-hero__inner {
		grid-template-columns: minmax(0, 1fr);
		padding: 40px 0 64px;
	}

	.split-hero__title {
		font-size: 44px;
		line-height: 52px;
	}

	.split-hero__media {
		height: 420px;
	}

	.page-hero__title {
		font-size: 46px;
		line-height: 54px;
	}

	.network__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 767px) {
	.page-hero--commission .page-hero__title {
		font-size: 34px;
	}

	.pagination {
		margin-top: 40px;
	}

	.split-hero__inner {
		gap: 32px;
		padding: 32px 0 48px;
	}

	.split-hero__kicker {
		margin-top: 24px;
	}

	.split-hero__title {
		font-size: 34px;
		line-height: 42px;
	}

	.split-hero__text {
		font-size: 16px;
		line-height: 27px;
	}

	.split-hero__button {
		width: 100%;
		min-width: 0;
		margin-top: 28px;
	}

	.split-hero__media {
		height: 300px;
	}

	.testimonials {
		padding: 48px 0;
	}

	.testimonials__title {
		font-size: 34px;
		line-height: 42px;
	}

	.button--wide {
		width: 100%;
		height: auto;
	}

	.testimonials__track {
		height: 380px;
	}

	.video-card {
		width: 260px;
		height: 319px;
	}

	.round-arrow .icon {
		width: 40px;
		height: 40px;
	}

	.page-hero--event .page-hero__title {
		font-size: 34px;
		line-height: 42px;
	}

	.page-hero__number {
		font-size: 44px;
	}

	.page-hero {
		min-height: 0;
		padding: 64px var(--gutter);
	}

	.page-hero__title {
		margin-top: 20px;
		font-size: 34px;
		line-height: 40px;
	}

	.page-hero__text {
		margin-top: 20px;
		font-size: 16px;
		line-height: 26px;
	}

	.cta__title {
		font-size: 28px;
		line-height: 34px;
	}

	.network {
		padding: 48px 0;
	}

	.network__title {
		font-size: 24px;
		line-height: 30px;
	}

	.network-card--light,
	.network-card--dark {
		padding: 24px 20px;
	}

	.network-card--light .marquee__item {
		width: 140px;
	}

	.network-card--dark .marquee__item {
		width: 200px;
	}

	.network-card--dark .marquee__logo {
		max-width: 130px;
	}

	.cta {
		padding: 48px var(--gutter);
	}

	.cta__text {
		font-size: 15px;
		line-height: 22px;
	}
}

@media (max-width: 767px) {
	.page-hero--compact {
		min-height: 280px;
		padding-top: 80px;
		padding-bottom: 80px;
	}

	.page-hero--compact .page-hero__title {
		font-size: 36px;
		line-height: 44px;
	}
}
