/* Styles specific to activity page */
.products-section { padding: 4rem 0; background: #ffffff; }
.activity-product-card { transition: transform 0.3s ease; border-radius: 12px; overflow: hidden; background: white; box-shadow: 0 4px 15px rgba(0,0,0,0.08); }
.activity-product-card:hover { transform: translateY(-8px); }
.activity-product-card img { height: 220px; object-fit: contain; background: #fff; transition: transform 0.35s ease; }
.product-info { padding: 15px; }
.product-name { font-size: 16px; font-weight: 600; color: #222; margin: 0 0 8px; line-height: 1.4; }
.product-price { font-weight: 700; color: #2575fc; }

/* Ensure activity page uses bootstrap columns */
.products-grid { display: block; }
.products-grid .col > .activity-product-card { width: 100%; box-sizing: border-box; display: block; }

.all-professions { padding: 2rem 0; background: white; }
.all-professions h2 { text-align: center; margin-bottom: 3rem; font-weight: 800; }

/* Activity hero / confiance */
.activity-hero { background: #e3e8f0; padding-top: 1.6rem; padding-bottom: 1.6rem; border-bottom: 1px solid #d6dbe3; }
.activity-hero-title { font-size: 1.9rem; font-weight: 800; line-height: 1.08; margin-bottom: 0.4rem; color: #14263b; letter-spacing: -0.02em; }
.activity-hero-desc { font-size: 1.02rem; color: #495b6b; max-width: 60ch; margin-bottom: 0.6rem; }

/* Decorative accent under the title */
.activity-hero-title::after { content: ""; display: block; width: 56px; height: 4px; background: linear-gradient(90deg, #2575fc 0%, #6ea8ff 100%); border-radius: 3px; margin-top: 10px; }

/* Slight text polish / subtle shadow */
.activity-hero-title, .activity-hero-desc { text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
.activity-hero-title { text-shadow: 0 1px 0 rgba(255,255,255,0.6); }
.activity-hero-image { max-height: 170px; object-fit: contain; border-radius: 8px; box-shadow: 0 6px 18px rgba(24, 20, 20, 0.06); }

/* Narrow and center hero content */
.activity-hero .container { max-width: 1100px; margin-left: auto; margin-right: auto; }

.activity-filters { margin-top: -2.25rem; }

/* Material filter dropdown styling */
.material-filter { position: relative; display: inline-block; margin-left: 12px; }
.material-dropdown { min-width: 160px; box-shadow: 0 6px 18px rgba(0,0,0,0.08); }
.material-dropdown .material-item { padding: 6px 10px; cursor: pointer; }
.material-dropdown .material-item:hover { background: #f6f9ff; }

/* Hover polish: match plaque interactions */
.activity-product-card { position: relative; }
.activity-product-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.12); transform: translateY(-8px) scale(1.01); border: 2px solid rgba(37,117,252,0.12); }
.activity-product-card:hover .product-image img { transform: scale(1.06); }
.activity-product-card .product-name { transition: font-size 0.22s ease, transform 0.22s ease; }
.activity-product-card:hover .product-name { transform: translateY(-2px); font-size: 1.05rem; }
.activity-product-card .product-image { overflow: hidden; }

/* Mobile layout: when cards collapse to full width, display image on top, text below */
@media (max-width: 767.98px) {
	.activity-product-card { display: flex; flex-direction: column; align-items: stretch; }
	.activity-product-card .product-image { order: 0; width: 100%; }
	.activity-product-card .product-image img { width: 100%; height: auto; max-height: 320px; object-fit: cover; }
	.activity-product-card .product-info { order: 1; width: 100%; }
	/* tighten spacing for mobile */
	.activity-product-card { padding-bottom: 0.6rem; }
	.product-name { font-size: 1rem; }
	/* Ensure hero image appears above text on small screens */
	.activity-hero .col-md-5 { order: -1; }
}

/* (par-category-container styles removed per request) */

/* Run-ligne: horizontal info strip styling */
.run-ligne { background: linear-gradient(90deg,#f8fbff 0%, #eef6ff 100%); padding: 16px 0; border-top: 1px solid rgba(0,0,0,0.04); border-bottom: 1px solid rgba(0,0,0,0.04); box-shadow: 0 2px 18px rgba(13,38,63,0.03); }
.run-ligne .slide-info { max-width: 1100px; margin: 0 auto; }
.run-ligne .slide-info .col-6, .run-ligne .slide-info .col-6.col-md-3 { display:flex; align-items:center; justify-content:center; flex-direction:column; padding:10px 8px; }
.run-ligne .slide-info i { font-size: 28px; color: #2575fc; margin-bottom: 6px; }
.run-ligne .slide-info p { margin: 0; font-weight: 600; color: #183049; }

/* Make strip slightly tighter on small screens */
@media (max-width: 575.98px) {
	.run-ligne { padding: 10px 0; }
	.run-ligne .slide-info i { font-size: 22px; }
	.run-ligne .slide-info p { font-size: 0.95rem; }
}

/* Marquee (infinite horizontal scroll) */
.run-ligne { overflow: hidden; }
.run-ligne .marquee-wrap { white-space: nowrap; overflow: hidden; }
.run-ligne .marquee-wrap { width: 100%; }
.run-ligne .marquee-track { display: inline-flex; align-items: center; gap: 40px; }
.run-ligne .marquee-track .marquee-item { display: inline-flex; align-items: center; gap: 10px; padding: 0 6px; }

/* Animation: will be applied inline based on content width via JS for smoothness */
.run-ligne .marquee-track.is-animating { will-change: transform; }

/* Default animation fallback so marquee moves even if JS didn't set duration */
.run-ligne .marquee-track { animation: marquee-scroll 28s linear infinite; }

/* comma separators and hover pause */
.run-ligne .marquee-item { padding: 6px 10px; background: rgba(255,255,255,0.6); border-radius: 6px; font-weight:600; color:#102030; }
.run-ligne .marquee-item::after { content: ","; margin-left: 6px; opacity: 0.9; color: #6c757d; }
.run-ligne:hover .marquee-track { animation-play-state: paused; }

/* Prevent marquee item text from wrapping to multiple lines */
.run-ligne .marquee-item,
.run-ligne .marquee-item span {
	white-space: nowrap;
}

/* ensure marquee items look good on small screens */
@media (max-width: 575.98px) {
	.run-ligne .marquee-track { gap: 22px; }
	.run-ligne .marquee-item { font-size: 0.95rem; }
}

/* Make the marquee original set fill at least the viewport width
	 - on desktop: 5 items -> each min-width = 20vw
	 - on tablet: 3 items fit, use 33.333vw
	 - on small screens: allow two per row (50vw) for readability */
@media (min-width: 992px) {
	.run-ligne .marquee-item { min-width: calc(100vw / 5); justify-content:center; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
	.run-ligne .marquee-item { min-width: calc(100vw / 3); justify-content:center; }
}
@media (max-width: 767.98px) {
	.run-ligne .marquee-item { min-width: calc(100vw / 2); justify-content:center; }
}

/* ensure padding/box sizing so width calc includes padding */
.run-ligne .marquee-item { box-sizing: border-box; }

/* Desktop: larger font and icons for run-ligne */
@media (min-width: 992px) {
	.run-ligne { padding: 20px 0; }
	.run-ligne .marquee-item { font-size: 1.4rem; padding: 12px 18px; border-radius: 10px; }
	.run-ligne .marquee-item span { font-size: 1.28rem; }
	.run-ligne .marquee-item i { font-size: 36px; margin-right: 10px; color: #1e66d6; }
	.run-ligne .marquee-track { gap: 56px; }
}
