/* Styles specific to plaque-prof-maison page */
.top-activities h1 { font-size: 2.5rem; font-weight: 900; text-align: center; margin-bottom: 2rem; }
.top-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; font-size: 1.1rem; font-weight: 600; }
.top-links a { color: white; text-decoration: none; padding: 0.5rem 0; border-bottom: 3px solid transparent; transition: all 0.3s ease; opacity: 0.9; }
.top-links a:hover, .top-links a.active { opacity: 1; border-bottom: 3px solid #fff; font-weight: 700; }
.top-links a.active { color: #ffd700; }

.products-section {  background: #f8f9fa; }
.category-products-section { padding: 0 !important; }
.plaque-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); }
.plaque-product-card:hover { transform: translateY(-8px); }
.plaque-product-card img { height: 220px; object-fit: contain; background: #fff; transition: transform 0.35s ease; }
.card-body { padding: 1.2rem; text-align: center; }
.price { font-size: 1.5rem; font-weight: bold; color: #2575fc; margin: 0.5rem 0; }
.btn-custom { background: #2575fc; color: white; border: none; padding: 0.6rem 1.2rem; border-radius: 8px; font-weight: 600; }
.btn-see-more { display: inline-block; margin: 3rem auto 0; padding: 0.75rem 1.5rem; font-size: 1.05rem; background: #212529; color: white; border-radius: 50px; text-align: center; max-width: 360px; }
.btn-see-more.btn { /* ensure Bootstrap btn class compatibility */ background: #212529; border-color: #212529; }
.all-professions { padding: 2rem 0; background: white; }
.all-professions h2 { text-align: center; margin-bottom: 3rem; font-weight: 800; }

/* Ensure plaque page uses Bootstrap columns cleanly */
.products-grid { display: block; }
.products-grid .row { margin-left: 0; margin-right: 0; }
.products-grid .col { display: block; }
.products-grid .col > .plaque-product-card { width: 100%; box-sizing: border-box; display: block; }

/* Index products section: add spacing between cards */
.products-section .row.g-4 {
  --bs-gutter-x: 2.5rem;
  --bs-gutter-y: 2.5rem;
}

/* Index products section: force 4 columns on large screens (override global 5-col rule) */
@media (min-width: 1200px) {
  .products-section .product-card.col-lg-3 {
    flex: 0 0 25% !important;
    max-width: 25% !important;
    width: 25% !important;
  }
}

@media (min-width: 992px) and (max-width: 1399px) {
  .plaque-product-card { max-width: none !important; }
}

/* Hover polish: border, slight scale on image and larger product name */
.plaque-product-card { position: relative; }
.plaque-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); }
.plaque-product-card:hover .product-image img { transform: scale(1.06); }
.plaque-product-card .product-name { transition: font-size 0.22s ease, transform 0.22s ease; }
.plaque-product-card:hover .product-name { transform: translateY(-2px); font-size: 1.05rem; }

/* Keep images inside card clipped when scaled */
.plaque-product-card .product-image { overflow: hidden; }

/* Activity hero tweaks for plaque page */
.activity-hero { padding-top: 0.6rem; padding-bottom: 0.6rem; }
.activity-hero .activity-hero-title { margin-bottom: .25rem; }
.activity-hero-image { max-height: 180px; width: auto; object-fit: contain; }
@media (max-width: 767.98px) {
  .activity-hero-image { max-height: 160px; }
}

/* Run-ligne / marquee styles (copied minimal subset from activity.css)
   Ensures marquee appears correctly on plaque pages which load plaque.css only */
.run-ligne { background: linear-gradient(90deg, rgba(243,246,249,1) 0%, rgba(235,239,243,1) 100%); padding: 12px 0; }
.marquee-wrap { overflow: hidden; }
.marquee-track { display: flex; align-items: center; gap: 1rem; }
.marquee-item { display: inline-flex; align-items: center; gap: .5rem; padding: 6px 12px; background: #fff; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); font-weight:600; }
.marquee-item i { font-size: 1.05rem; }

/* make plaque hero use the same soft blue as activity page */
.activity-hero { background-color: #e3e8f0; border-radius: 8px; }

/* plaque-specific marquee styles (mirror activity styles but unique classes) */
.plaque-run-ligne { background: linear-gradient(90deg, rgba(243,246,249,1) 0%, rgba(235,239,243,1) 100%); padding: 10px 0; margin-top: 1.5rem; }
.plaque-marquee-wrap { overflow: hidden; max-width: 1100px; margin: 0 auto; }

@media (min-width: 1400px) {
  .plaque-marquee-wrap { max-width: 100%; padding: 0 40px; }
}
.plaque-marquee-track { display: flex; align-items: center; gap: 1rem; }
.plaque-marquee-item { display: inline-flex; align-items: center; gap: .5rem; padding: 6px 12px; background: #fff; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); font-weight:600; }
.plaque-marquee-item i { font-size: 1.05rem; }

/* performance: hint for transform changes */
.plaque-marquee-track { will-change: transform; }

/* Keep plaque marquee item text on a single line */
.plaque-marquee-item,
.plaque-marquee-item span {
  white-space: nowrap;
}

/* ==== product-detail specific (pd-) marquee mirror to avoid class conflicts ==== */
.pd-plaque-run { background: linear-gradient(90deg, rgba(243,246,249,1) 0%, rgba(235,239,243,1) 100%); padding: 10px 0; margin-top: 1.5rem; }
.pd-plaque-wrap { overflow: hidden; max-width: 1100px; margin: 0 auto; }
.pd-plaque-track { display: flex; align-items: center; gap: 1rem; will-change: transform; }
.pd-plaque-item { display: inline-flex; align-items: center; gap: .5rem; padding: 6px 12px; background: #fff; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); font-weight:600; }
.pd-plaque-item i { font-size: 1.05rem; }
.pd-plaque-item,
.pd-plaque-item span { white-space: nowrap; }

/* Desktop tweaks: larger icon/text and spacing to match activity page */
@media (min-width: 992px) {
  .plaque-run-ligne { padding: 18px 0; }
  .plaque-marquee-item { font-size: 1.4rem; padding: 12px 18px; border-radius: 10px; }
  .plaque-marquee-item span { font-size: 1.28rem; }
  .plaque-marquee-item i { font-size: 36px; margin-right: 10px; color: #1e66d6; }
  .plaque-marquee-track { gap: 56px; }
  /* mirror for product-detail marquee */
  .pd-plaque-run { padding: 18px 0; }
  .pd-plaque-item { font-size: 1.4rem; padding: 12px 18px; border-radius: 10px; }
  .pd-plaque-item span { font-size: 1.28rem; }
  .pd-plaque-item i { font-size: 36px; margin-right: 10px; color: #1e66d6; }
  .pd-plaque-track { gap: 56px; }

  /* ensure items fill viewport (avoid blank on very wide screens) */
  .plaque-marquee-item { min-width: calc(100vw / 5); justify-content: center; }
  .pd-plaque-item { min-width: max(220px, calc(100vw / 4.2)); justify-content: center; }
}
