.sc-wrap {
	box-sizing: border-box;
	padding: var(--sc-wrap-pad, 20px);
	border-radius: var(--sc-wrap-radius, 36px);
	background:
		var(--sc-wrap-img, none),
		linear-gradient(180deg, var(--sc-wrap-bg, #e8f2fd), var(--sc-wrap-bg2, #fff));
}
.sc-wrap *, .sc-wrap *::before, .sc-wrap *::after { box-sizing: border-box; }

/* Filtres par catégorie */
.sc-filters {
	display: flex; flex-wrap: wrap; gap: var(--sc-f-gap, 10px);
	justify-content: var(--sc-f-justify, center);
	margin: 0 0 20px; padding: 2px 2px 6px;
	scrollbar-width: none;
}
.sc-filters::-webkit-scrollbar { display: none; }
.sc-filter {
	flex: none; appearance: none; cursor: pointer; margin: 0;
	padding: .55em 1.2em; font: inherit; font-size: var(--sc-f-size, 15px); font-weight: 500; line-height: 1.2;
	color: var(--sc-f-color, #3d4257); background: var(--sc-f-bg, #f4f6fa);
	border: 1px solid var(--sc-f-border, #e2e6ee); border-radius: var(--sc-f-radius, 999px);
	transition: background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
@media (hover: hover) {
	.sc-filter:not(.is-active):hover {
		transform: translateY(-1px);
		color: var(--sc-f-hcolor, #0a0a3c); background: var(--sc-f-hbg, #e8edf6); border-color: var(--sc-f-hborder, #0a0a3c);
	}
}
.sc-filter.is-active {
	color: var(--sc-f-acolor, #fff); background: var(--sc-f-abg, #0a0a3c); border-color: var(--sc-f-abg, #0a0a3c);
	font-weight: 600; box-shadow: var(--sc-f-shadow, none);
}
.sc-filter:focus-visible { outline: 2px solid var(--sc-f-abg, #0a0a3c); outline-offset: 2px; }
.sc-card.sc-hidden { display: none !important; }

/* Flèches de navigation */
.sc-stage { position: relative; }
.sc-nav { display: none; gap: 8px; align-items: center; }
.sc-nav--top-right, .sc-nav--top-center, .sc-nav--top-left { margin: 0 0 14px; padding: 0 var(--sc-a-off, 8px); }
.sc-nav--top-right { justify-content: flex-end; }
.sc-nav--top-center { justify-content: center; }
.sc-nav--top-left { justify-content: flex-start; }
.sc-nav--sides {
	position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 3;
	justify-content: space-between; padding: 0 var(--sc-a-off, 8px); pointer-events: none;
}
.sc-arrow {
	display: flex; align-items: center; justify-content: center; flex: none;
	width: var(--sc-a-size, 40px); height: var(--sc-a-size, 40px); margin: 0; padding: 0;
	border: 0; border-radius: 50%; cursor: pointer; pointer-events: auto;
	color: var(--sc-a-color, #0a0a3c); background: var(--sc-a-bg, #eef1f7);
	box-shadow: var(--sc-a-shadow, none);
	transition: opacity .25s ease, transform .25s ease, background-color .2s ease, color .2s ease;
}
.sc-arrow:hover, .sc-arrow:focus-visible { color: var(--sc-a-hcolor, #fff); background: var(--sc-a-hbg, #0a0a3c); }
.sc-arrow:focus-visible { outline: 2px solid var(--sc-a-hbg, #0a0a3c); outline-offset: 2px; }
.sc-arrow:active { transform: scale(.92); }
.sc-arrow[disabled] { opacity: .35; pointer-events: none; }
.sc-nav--sides .sc-arrow[disabled] { opacity: 0; transform: scale(.8); }

/* Flou en découpe transparente sur les bords */
.sc-trackwrap { position: relative; }
.sc-fade {
	display: none; position: absolute; top: 0; bottom: 0; z-index: 2;
	width: var(--sc-edge-w, 70px); pointer-events: none;
	background: var(--sc-edge-bg, rgba(255,255,255,.35));
	-webkit-backdrop-filter: blur(var(--sc-edge-blur, 8px)); backdrop-filter: blur(var(--sc-edge-blur, 8px));
	opacity: 0; transition: opacity .35s ease;
}
.sc-fade.is-on { opacity: 1; }
/* Voile qui reprend exactement le dégradé de fond du bloc (aligné par le JS) */
.sc-edge-follow .sc-fade {
	background-color: transparent;
	background-image: linear-gradient(180deg, var(--sc-edge-g1, rgba(232,242,253,.35)), var(--sc-edge-g2, rgba(255,255,255,.35)));
	background-repeat: no-repeat;
	background-size: 100% var(--sc-wrap-h, 100%);
	background-position: 0 calc(var(--sc-fade-y, 0px) * -1);
}
.sc-fade-r {
	right: 0;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 85%); mask-image: linear-gradient(to right, transparent, #000 85%);
}
.sc-fade-l {
	left: 0;
	-webkit-mask-image: linear-gradient(to left, transparent, #000 85%); mask-image: linear-gradient(to left, transparent, #000 85%);
}

/* Piste de défilement (mobile / tablette) */
.sc-track {
	display: flex;
	flex-direction: row;
	gap: var(--sc-gap, 16px);
	overflow-x: auto;
	overflow-y: hidden;
	padding: 4px 2px 16px;
	scroll-snap-type: x mandatory;
	scroll-padding-left: 2px;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.sc-track::-webkit-scrollbar { display: none; }
.sc-track:focus-visible { outline: 2px solid var(--sc-thumb, #0a0a3c); outline-offset: 2px; border-radius: 12px; }

/* Barre de progression */
.sc-progress {
	width: var(--sc-sb-w, 60%);
	height: var(--sc-sb-h, 6px);
	margin: 6px auto 2px;
	border-radius: 999px;
	background: var(--sc-track, #dde6f3);
	overflow: hidden;
}
.sc-progress.is-hidden { display: none; }
.sc-bar {
	display: block;
	width: 0;
	height: 100%;
	border-radius: 999px;
	background: var(--sc-thumb, #0a0a3c);
	transition: width .12s ease-out;
}

/* Carte à effet verre dépoli */
.sc-card {
	position: relative;
	flex: 0 0 var(--sc-card-w, 280px);
	scroll-snap-align: start;
	min-height: var(--sc-card-h, 0);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--sc-card-bg, rgba(255,255,255,.7));
	-webkit-backdrop-filter: blur(var(--sc-blur, 12px));
	backdrop-filter: blur(var(--sc-blur, 12px));
	border: var(--sc-bw, 1px) solid var(--sc-bc, #fff);
	border-radius: var(--sc-radius, 28px);
	box-shadow: var(--sc-shadow, none);
}

/* Image optionnelle, fondue vers le bas */
.sc-img {
	height: 150px;
	background-size: cover;
	background-position: center;
	-webkit-mask-image: linear-gradient(#000 55%, transparent);
	mask-image: linear-gradient(#000 55%, transparent);
}

/* Vidéo YouTube (facade : l'iframe ne se charge qu'au clic) */
.sc-video { position: relative; aspect-ratio: 16 / 9; flex: none; background: linear-gradient(135deg, var(--sc-icon-bg, #0a0a3c), #2b2b8f); }
.sc-video-btn, .sc-video iframe {
	position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block;
}
.sc-video-btn {
	display: flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden;
}
.sc-video-thumb {
	position: absolute; inset: 0; width: 100%; height: 100%;
	object-fit: cover; display: block; margin: 0; max-width: none;
}
.sc-video-btn::after {
	content: ""; position: absolute; inset: 0; background: var(--sc-play-overlay, rgba(0,0,0,.15)); transition: background .2s;
}
.sc-video-btn:hover::after { background: rgba(0,0,0,.05); }
.sc-play {
	position: relative; z-index: 1; flex: none;
	width: 64px; height: 64px; margin: 0; padding: 0;
	display: flex; align-items: center; justify-content: center;
	border-radius: 50%; background: #0a0a3c;
}
.sc-video-btn:focus-visible { outline: 3px solid var(--sc-thumb, #0a0a3c); outline-offset: -3px; }

.sc-body { padding: var(--sc-pad, 20px); }

.sc-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: calc(var(--sc-icon-size, 22px) * 2);
	height: calc(var(--sc-icon-size, 22px) * 2);
	margin-bottom: 12px;
	border-radius: 50%;
	background: var(--sc-icon-bg, #0a0a3c);
	color: var(--sc-icon, #fff);
	font-size: var(--sc-icon-size, 22px);
	line-height: 1;
}

.sc-title {
	margin: 0 0 8px;
	font-size: var(--sc-title-size, 20px);
	line-height: 1.25;
	color: var(--sc-title, #0a0a3c);
}
.sc-text {
	margin: 0 0 12px;
	font-size: var(--sc-text-size, 15px);
	line-height: 1.5;
	color: var(--sc-text, #4a4a5a);
}
.sc-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	text-decoration: none;
	color: var(--sc-link, #0a0a3c);
}
.sc-link:hover { text-decoration: underline; }

/* Contenu centré */
.sc-center .sc-body { text-align: center; }

@media (prefers-reduced-motion: reduce) {
	.sc-track { scroll-behavior: auto; }
	.sc-bar, .sc-filter, .sc-fade { transition: none; }
}
