/**
 * Home — bandeau 10 ans (light, 3 colonnes).
 */

.rideon-dix-ans {
	--h2-size: clamp(1.45rem, 2.6vw, 2.1rem);
	--lead-size: clamp(0.92rem, 1.25vw, 1.02rem);
	position: relative;
	z-index: 1;
	margin: 0;
	padding: clamp(1.5rem, 2.8vw, 2.15rem) 0;
	background: var(--surface-light, #f5f5f5);
	color: #1d1d1f;
	overflow: hidden;
	scroll-margin-top: calc(var(--site-top-offset, 120px) + 12px);
}

/* Spacers Gutenberg legacy juste sous le bandeau */
.rideon-dix-ans + .wp-block-spacer,
.rideon-dix-ans + .wp-block-spacer + .wp-block-spacer {
	display: none !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Groupe vide laissé après déplacement du tripty — marge blanche */
.rideon-discover + .wp-block-group:not(.communaute),
.rideon-discover + section.wp-block-group {
	display: none !important;
	height: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
	border: 0 !important;
}

/* Wrapper .communaute / groups autour du bandeau 10 ans */
body.home .wp-block-group.communaute:has(.rideon-dix-ans),
body.front-page .wp-block-group.communaute:has(.rideon-dix-ans) {
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
}

body.home .wp-block-group.communaute:has(.rideon-dix-ans) > .wp-block-group__inner-container,
body.home .wp-block-group.communaute:has(.rideon-dix-ans) .wp-block-group,
body.front-page .wp-block-group.communaute:has(.rideon-dix-ans) > .wp-block-group__inner-container,
body.front-page .wp-block-group.communaute:has(.rideon-dix-ans) .wp-block-group,
body.home section.wp-block-group:has(.rideon-dix-ans),
body.front-page section.wp-block-group:has(.rideon-dix-ans) {
	margin: 0 !important;
	padding: 0 !important;
}

.rideon-dix-ans .container,
.rideon-dix-ans__inner {
	width: 100%;
	max-width: var(--container-width, 1440px);
	margin: 0 auto;
	padding: 0 20px;
	box-sizing: border-box;
}

.rideon-dix-ans__inner {
	display: grid;
	grid-template-columns: auto minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: clamp(1.35rem, 3vw, 2.75rem);
	align-items: center;
}

.rideon-dix-ans__illu {
	width: clamp(7.5rem, 12vw, 10rem);
	flex: 0 0 auto;
	pointer-events: none;
	user-select: none;
}

.rideon-dix-ans__illu img {
	display: block;
	width: 100%;
	height: auto;
}

.rideon-dix-ans__copy,
.rideon-dix-ans__aside {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
}

.rideon-dix-ans__title {
	margin: 0 0 0.55rem;
	max-width: none;
	text-wrap: balance;
	font-family: var(--font-headline, "mono45-headline", Impact, sans-serif);
	font-size: var(--h2-size);
	font-weight: 700;
	line-height: 0.95 !important;
	letter-spacing: -0.02em;
	word-spacing: var(--headline-word-spacing, 0) !important;
	text-transform: uppercase;
	color: var(--black-pure, #000);
	background: none !important;
	padding: 0 !important;
	display: block !important;
}

.rideon-dix-ans__lead,
.rideon-dix-ans__text,
.rideon-dix-ans__aside-text {
	margin: 0 0 0.4rem;
	max-width: none;
	font-family: var(--font-main, "Space Grotesk", sans-serif);
	font-size: var(--lead-size);
	font-weight: 500;
	line-height: 1.45;
	color: rgba(0, 0, 0, 0.68);
}

.rideon-dix-ans__lead {
	color: rgba(0, 0, 0, 0.78);
}

.rideon-dix-ans__text:last-of-type,
.rideon-dix-ans__aside-text {
	margin-bottom: 0;
}

.rideon-dix-ans__aside {
	gap: 1rem;
}

.rideon-dix-ans__cta {
	white-space: nowrap;
}

@media (max-width: 980px) {
	.rideon-dix-ans__inner {
		grid-template-columns: auto minmax(0, 1fr);
		gap: 1.15rem 1.5rem;
	}

	.rideon-dix-ans__aside {
		grid-column: 2;
		margin-top: 0.15rem;
	}
}

@media (max-width: 720px) {
	.rideon-dix-ans {
		padding: 1.4rem 0 1.6rem;
	}

	.rideon-dix-ans__inner {
		grid-template-columns: 1fr;
		gap: 0.85rem;
		justify-items: center;
		text-align: center;
	}

	.rideon-dix-ans__illu {
		width: min(7rem, 40%);
		margin-left: auto;
		margin-right: auto;
	}

	.rideon-dix-ans__copy,
	.rideon-dix-ans__aside {
		align-items: center;
		width: 100%;
		text-align: center;
	}

	.rideon-dix-ans__title,
	.rideon-dix-ans__lead,
	.rideon-dix-ans__text,
	.rideon-dix-ans__aside-text {
		margin-left: auto;
		margin-right: auto;
		text-align: center;
	}

	.rideon-dix-ans__aside {
		grid-column: 1;
		margin-top: 0.25rem;
	}

	.rideon-dix-ans__cta {
		margin-left: auto;
		margin-right: auto;
	}
}
