/* =========================================================
   MDJ — SOUTIEN ET ÉVÉNEMENTS
   ========================================================= */

.mdj-soutien {
	width: 100%;
}

.mdj-soutien__list {
	display: flex;
	flex-direction: column;
	gap: 24px;
	width: 100%;
}


/* =========================================================
   BANNIÈRE
   ========================================================= */

.mdj-soutien__banner {
	position: relative;
	display: block;

	width: 100%;
	height: 450px;
	min-height: 450px;
	max-height: 450px;

	overflow: hidden;
	isolation: isolate;

	border-radius: 24px;

	color: #fff;
	text-decoration: none;

	background: #222;

	cursor: pointer;

	-webkit-tap-highlight-color: transparent;

	box-sizing: border-box;
}


/* =========================================================
   FACE AVANT / VERSO
   ========================================================= */

.mdj-soutien__flip {
	position: relative;

	width: 100%;
	height: 450px;

	perspective: 1200px;
}

.mdj-soutien__flip-toggle {
	position: absolute;

	width: 1px;
	height: 1px;

	padding: 0;
	margin: -1px;

	overflow: hidden;

	clip: rect(0, 0, 0, 0);
	white-space: nowrap;

	border: 0;
}

.mdj-soutien__flip-inner {
	position: relative;

	width: 100%;
	height: 100%;

	transform-style: preserve-3d;

	transition:
		transform .7s cubic-bezier(.22, 1, .36, 1);
}

.mdj-soutien__flip-toggle:checked + .mdj-soutien__flip-inner {
	transform: rotateY(180deg);
}


/* =========================================================
   FACES
   ========================================================= */

.mdj-soutien__banner--front,
.mdj-soutien__banner--back {
	position: absolute;

	inset: 0;

	width: 100%;
	height: 100%;

	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
}

.mdj-soutien__banner--back {
	transform: rotateY(180deg);

	background: #181818;
}


/* =========================================================
   ZONE DE CLIC DU RECTO
   ========================================================= */

.mdj-soutien__flip-hitarea {
	position: absolute;
	inset: 0;

	z-index: 7;

	display: block;

	width: 100%;
	height: 100%;

	cursor: pointer;
}


/* =========================================================
   IMAGE
   ========================================================= */

.mdj-soutien__media {
	position: absolute;
	inset: 0;
	z-index: 0;

	width: 100%;
	height: 100%;

	overflow: hidden;
}

.mdj-soutien__media img {
	display: block;

	width: 100%;
	height: 100%;

	object-fit: cover;
	object-position: var(--mdj-soutien-image-position, center center);

	transform: scale(1);

	filter: brightness(.92);

	transition:
		transform .7s cubic-bezier(.22, 1, .36, 1),
		filter .7s cubic-bezier(.22, 1, .36, 1);
}


/* =========================================================
   OVERLAY
   ========================================================= */

.mdj-soutien__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;

	background:
		linear-gradient(
			90deg,
			rgba(0, 0, 0, .78) 0%,
			rgba(0, 0, 0, .58) 35%,
			rgba(0, 0, 0, .22) 72%,
			rgba(0, 0, 0, .08) 100%
		);

	transition:
		background .7s cubic-bezier(.22, 1, .36, 1);
}


/* =========================================================
   FOND DU VERSO
   ========================================================= */

.mdj-soutien__back-pattern {
	position: absolute;
	inset: 0;
	z-index: 0;

	background:
		radial-gradient(
			circle at 100% 0%,
			color-mix(
				in srgb,
				var(--mdj-soutien-accent, #6454D7) 30%,
				transparent
			),
			transparent 55%
		),
		linear-gradient(
			135deg,
			#151515 0%,
			#222 100%
		);
}


/* =========================================================
   LIGNE D'ACCENT
   ========================================================= */

.mdj-soutien__accent {
	position: absolute;

	left: 0;
	top: 32px;
	bottom: 32px;

	width: 6px;

	z-index: 5;

	background: var(--mdj-soutien-accent, #6454D7);

	border-radius: 0 6px 6px 0;

	transition:
		top .55s cubic-bezier(.22, 1, .36, 1),
		bottom .55s cubic-bezier(.22, 1, .36, 1),
		width .45s cubic-bezier(.22, 1, .36, 1),
		border-radius .35s ease;
}


/* =========================================================
   CONTENU
   ========================================================= */

.mdj-soutien__content {
	position: relative;
	z-index: 6;

	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;

	width: min(620px, 72%);
	height: 100%;
	min-height: 0;

	padding: 48px 56px;

	box-sizing: border-box;

	transform: translateX(0);

	transition:
		transform .6s cubic-bezier(.22, 1, .36, 1);
}


/* =========================================================
   CONTENU DU VERSO
   ========================================================= */

.mdj-soutien__content--back {
	width: 100%;
	max-width: none;

	padding: 48px 72px;

	justify-content: center;

	z-index: 6;
}

.mdj-soutien__back-inner {
	width: 100%;
	max-width: 100%;

	max-height: 100%;

	display: flex;
	flex-direction: column;
	align-items: flex-start;

	box-sizing: border-box;
}


/* =========================================================
   CATÉGORIE
   ========================================================= */

.mdj-soutien__category {
	display: inline-flex;
	align-items: center;

	margin-bottom: 16px;
	padding: 7px 12px;

	border-radius: 999px;

	background: rgba(255, 255, 255, .14);

	color: #fff;

	font-size: 12px;
	font-weight: 800;
	line-height: 1;

	letter-spacing: .12em;
	text-transform: uppercase;

	transition:
		background-color .35s ease,
		color .35s ease;
}


/* =========================================================
   TITRE
   ========================================================= */

.mdj-soutien__title {
	margin: 0 0 14px;

	color: #fff;

	font-size: clamp(32px, 4vw, 52px);
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: -.025em;

	text-wrap: balance;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.mdj-soutien__description {
	margin: 0 0 20px;

	color: rgba(255, 255, 255, .92);

	font-size: 17px;
	line-height: 1.55;
}

.mdj-soutien__description p {
	margin: 0 0 10px;
}

.mdj-soutien__description p:last-child {
	margin-bottom: 0;
}


/* =========================================================
   DESCRIPTION DU VERSO
   ========================================================= */

.mdj-soutien__content--back .mdj-soutien__description {
	width: 100%;
	max-width: none;

	overflow: visible;
}


/* =========================================================
   INFORMATION
   ========================================================= */

.mdj-soutien__info {
	display: inline-flex;
	align-items: center;
	gap: 9px;

	margin-bottom: 24px;

	color: #fff;

	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
}

.mdj-soutien__info-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	flex: 0 0 auto;

	width: 20px;
	height: 20px;
}

.mdj-soutien__info-icon svg {
	display: block;

	width: 18px;
	height: 18px;

	fill: currentColor;
}


/* =========================================================
   CTA
   ========================================================= */

.mdj-soutien__cta {
	display: flex;
	align-items: stretch;

	width: fit-content;
	max-width: 100%;

	min-height: 46px;

	border: 2px solid var(--mdj-soutien-accent, #6454D7);
	border-radius: 999px;

	background: transparent;

	color: #fff;

	font-size: 13px;
	font-weight: 800;
	line-height: 1;

	letter-spacing: .08em;
	text-transform: uppercase;

	overflow: hidden;

	box-sizing: border-box;

	cursor: pointer;

	transition:
		background-color .35s ease,
		border-color .35s ease;
}


/* =========================================================
   CTA RETOUR
   ========================================================= */

.mdj-soutien__cta--back {
	min-width: 190px;
}


/* =========================================================
   TEXTE CTA
   ========================================================= */

.mdj-soutien__cta-text {
	display: inline-flex;
	align-items: center;

	flex: 0 0 auto;

	padding: 0 18px;

	margin: 0;

	border: 0;

	background: transparent;

	color: inherit;

	white-space: nowrap;

	box-sizing: border-box;
}


/* =========================================================
   FLÈCHE
   ========================================================= */

.mdj-soutien__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	flex: 0 0 42px;

	width: 42px;
	min-height: 42px;

	margin: 0;
	padding: 0;

	border: 0;

	background: transparent;

	color: inherit;

	overflow: hidden;

	box-sizing: border-box;

	transition:
		flex-basis .55s cubic-bezier(.22, 1, .36, 1),
		width .55s cubic-bezier(.22, 1, .36, 1),
		padding-right .55s cubic-bezier(.22, 1, .36, 1);
}

.mdj-soutien__arrow svg {
	display: block;

	width: 20px;
	height: 20px;

	flex: 0 0 20px;

	fill: currentColor;

	transform: none;
}


/* =========================================================
   HOVER DESKTOP
   ========================================================= */

@media (hover: hover) and (pointer: fine) {

	.mdj-soutien__banner:not(.mdj-soutien__banner--back):hover .mdj-soutien__media img,
	.mdj-soutien__banner:not(.mdj-soutien__banner--back):focus-visible .mdj-soutien__media img {
		transform: scale(1.035);
		filter: brightness(.82);
	}

	.mdj-soutien__banner:not(.mdj-soutien__banner--back):hover .mdj-soutien__overlay,
	.mdj-soutien__banner:not(.mdj-soutien__banner--back):focus-visible .mdj-soutien__overlay {
		background:
			linear-gradient(
				90deg,
				rgba(0, 0, 0, .84) 0%,
				rgba(0, 0, 0, .65) 40%,
				rgba(0, 0, 0, .28) 75%,
				rgba(0, 0, 0, .12) 100%
			);
	}

	.mdj-soutien__banner:not(.mdj-soutien__banner--back):hover .mdj-soutien__content,
	.mdj-soutien__banner:not(.mdj-soutien__banner--back):focus-visible .mdj-soutien__content {
		transform: translateX(6px);
	}

	.mdj-soutien__banner:not(.mdj-soutien__banner--back):hover .mdj-soutien__accent,
	.mdj-soutien__banner:not(.mdj-soutien__banner--back):focus-visible .mdj-soutien__accent {
		top: 0;
		bottom: 0;

		width: 7px;

		border-radius: 0 8px 8px 0;
	}

	.mdj-soutien__banner:not(.mdj-soutien__banner--back):hover .mdj-soutien__category,
	.mdj-soutien__banner:not(.mdj-soutien__banner--back):focus-visible .mdj-soutien__category {
		background: var(--mdj-soutien-accent, #6454D7);
		color: #fff;
	}

	.mdj-soutien__banner:not(.mdj-soutien__banner--back):hover .mdj-soutien__cta,
	.mdj-soutien__banner:not(.mdj-soutien__banner--back):focus-visible .mdj-soutien__cta {
		background: var(--mdj-soutien-accent, #6454D7);
		border-color: var(--mdj-soutien-accent, #6454D7);
	}

	/* Expansion de la zone de flèche */
	.mdj-soutien__banner:not(.mdj-soutien__banner--back):hover .mdj-soutien__arrow,
	.mdj-soutien__banner:not(.mdj-soutien__banner--back):focus-visible .mdj-soutien__arrow {
		flex: 0 0 65px;

		width: 65px;

		padding-right: 10px;

		justify-content: flex-end;
	}

	.mdj-soutien__banner:not(.mdj-soutien__banner--back):hover .mdj-soutien__arrow svg,
	.mdj-soutien__banner:not(.mdj-soutien__banner--back):focus-visible .mdj-soutien__arrow svg {
		width: 20px;
		height: 20px;

		flex: 0 0 20px;

		transform: none;
	}

	/* Verso */
	.mdj-soutien__banner--back:hover .mdj-soutien__cta,
	.mdj-soutien__banner--back:focus-visible .mdj-soutien__cta {
		background: var(--mdj-soutien-accent, #6454D7);
		border-color: var(--mdj-soutien-accent, #6454D7);
	}

	.mdj-soutien__banner--back:hover .mdj-soutien__accent,
	.mdj-soutien__banner--back:focus-visible .mdj-soutien__accent {
		top: 0;
		bottom: 0;

		width: 7px;

		border-radius: 0 8px 8px 0;
	}
}


/* =========================================================
   FOCUS
   ========================================================= */

.mdj-soutien__cta:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 4px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

	.mdj-soutien__banner,
	.mdj-soutien__flip {
		height: 450px;
		min-height: 450px;
		max-height: 450px;

		border-radius: 20px;
	}

	.mdj-soutien__content {
		width: 100%;

		height: 100%;
		min-height: 0;

		padding: 40px 32px 36px;

		justify-content: flex-end;

		transform: none !important;
	}

	/* Verso pleine largeur sur mobile également */
	.mdj-soutien__content--back {
		width: 100%;

		padding: 36px 32px 32px;

		justify-content: center;

		overflow: hidden;
	}

	.mdj-soutien__back-inner {
		width: 100%;
		max-width: 100%;

		max-height: 100%;

		overflow-y: auto;

		padding-right: 4px;

		scrollbar-width: thin;
	}

	.mdj-soutien__media {
		height: 100%;
	}

	.mdj-soutien__media img {
		height: 100%;

		transform: none !important;
		filter: brightness(.82);
	}

	.mdj-soutien__overlay {
		background:
			linear-gradient(
				180deg,
				rgba(0, 0, 0, .10) 0%,
				rgba(0, 0, 0, .30) 35%,
				rgba(0, 0, 0, .82) 100%
			);

		transition: none;
	}

	.mdj-soutien__accent {
		top: 24px;
		bottom: 24px;

		width: 5px;
	}

	.mdj-soutien__category {
		margin-bottom: 12px;

		font-size: 11px;
	}

	.mdj-soutien__title {
		margin-bottom: 12px;

		font-size: clamp(30px, 9vw, 42px);
	}

	.mdj-soutien__description {
		margin-bottom: 16px;

		font-size: 15px;
		line-height: 1.45;
	}

	.mdj-soutien__info {
		margin-bottom: 20px;

		font-size: 14px;
	}

	.mdj-soutien__cta {
		width: fit-content;

		min-height: 44px;

		gap: 0;
	}

	.mdj-soutien__cta-text {
		min-height: 40px;

		padding: 0 16px;

		font-size: 12px;
	}

	.mdj-soutien__arrow {
		flex: 0 0 40px;

		width: 40px;

		min-height: 40px;

		padding: 0;
	}

	.mdj-soutien__arrow svg {
		width: 19px;
		height: 19px;

		flex: 0 0 19px;
	}

	/* Retour plus large sur mobile */
	.mdj-soutien__cta--back {
		min-width: 190px;

		flex: 0 0 auto;
	}

	.mdj-soutien__banner--back .mdj-soutien__description {
		max-height: none;

		overflow: visible;
	}

	.mdj-soutien__banner--back .mdj-soutien__cta {
		margin-top: 8px;
	}
}


/* =========================================================
   PETITS ÉCRANS
   ========================================================= */

@media (max-width: 480px) {

	.mdj-soutien__banner,
	.mdj-soutien__flip {
		height: 450px;
		min-height: 450px;
		max-height: 450px;
	}

	.mdj-soutien__content {
		height: 100%;
		min-height: 0;

		padding: 32px 26px 30px;
	}

	.mdj-soutien__content--back {
		padding: 32px 26px 30px;
	}

	.mdj-soutien__title {
		font-size: 32px;
	}

	.mdj-soutien__cta--back {
		min-width: 180px;
	}
}


/* =========================================================
   RÉDUCTION DES ANIMATIONS
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

	.mdj-soutien__media img,
	.mdj-soutien__overlay,
	.mdj-soutien__content,
	.mdj-soutien__category,
	.mdj-soutien__accent,
	.mdj-soutien__cta,
	.mdj-soutien__arrow,
	.mdj-soutien__flip-inner {
		transition: none !important;
	}

	.mdj-soutien__media img {
		transform: none !important;
	}

	.mdj-soutien__flip-inner {
		transition: none !important;
	}
}

/* Toute la face verso est cliquable pour revenir à l'avant */
.mdj-soutien__back-hitarea {
	position: absolute;
	inset: 0;

	z-index: 7;

	display: block;

	width: 100%;
	height: 100%;

	cursor: pointer;
}
@media (max-width: 600px) {

	/* =====================================================
	   VERSO — MOBILE PLUS COMPACT
	   ===================================================== */

	.mdj-soutien__content--back .mdj-soutien__title {
		font-size: 1.45rem;
		line-height: 1.05;
		margin-bottom: 11px;
	}

	.mdj-soutien__content--back .mdj-soutien__description {
		font-size: 0.78rem;
		line-height: 1.35;
		margin-bottom: 13px;
	}

	.mdj-soutien__content--back .mdj-soutien__info {
		font-size: 0.74rem;
		line-height: 1.3;
		margin-bottom: 15px;
	}

	.mdj-soutien__content--back .mdj-soutien__category {
		font-size: 0.64rem;
		margin-bottom: 6px;
	}

	.mdj-soutien__content--back .mdj-soutien__cta {
		min-height: 38px;
	}

	.mdj-soutien__content--back .mdj-soutien__cta-text {
		padding: 0 12px;
		font-size: 0.67rem;
	}

	.mdj-soutien__content--back .mdj-soutien__arrow {
		width: 38px;
		height: 38px;
	}

	.mdj-soutien__content--back .mdj-soutien__arrow svg {
		width: 16px;
		height: 16px;
	}
}