body.pegments-page {
  min-height: 100vh;
}
.raq-toast {
  justify-self: center;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  display: none;
}
.raq-toast.ok {
  background: #16a34a;
}
.raq-toast.error {
  background: #ef4444;
}
.bm-page {
  min-height: 100vh;
}
.bm-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 20px 90px;
  text-align: center;
  background: #0b1422;
  overflow: hidden;
}
.bm-hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(10, 14, 22, 0.7), rgba(10, 14, 22, 0.7)),
    url("../image/pegments/peg-cover.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.9;
}
.bm-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 16px;
}
.bm-hero-title {
  font-size: 44px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 16px;
}
.bm-hero-title span {
  color: #2f6cc8;
}
.bm-hero-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #c7d2e5;
  margin: 0 auto 28px;
  max-width: 640px;
}
.bm-hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.bm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}
.bm-btn:active {
  transform: translateY(1px);
}
.bm-btn-primary {
  background: #2f6cc8;
  color: #ffffff;
  border: 1px solid #2f6cc8;
}
.bm-btn-primary:hover {
  background: #2b62b4;
  border-color: #2b62b4;
}
.bm-btn-outline {
  background: transparent;
  color: #d0dcf2;
  border: 1px solid #3a4b66;
}
.bm-btn-outline:hover {
  background: rgba(47, 108, 200, 0.12);
  color: #ffffff;
  border-color: #2f6cc8;
}
.bm-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
}
.bm-stat {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 14px;
}
.bm-stat-number {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}
.bm-stat-label {
  font-size: 12px;
  color: #9fb1cc;
}

#block-machine-m1 {
  position: relative;
}
.introduction.section {
  position: relative;
  min-height: 320px;
  background: #ffffff;
}
.intro-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  /* padding: 48px 20px; */
  padding-top: 100px;
  padding-bottom: 100px;
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 36px;
  align-items: center;
}
.intro-title {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: 1px;
  margin: 0 0 12px;
  color: #0c0c0c;
  text-align: left;
}
.intro-text p {
  font-size: 14px;
  line-height: 1.7;
  color: #1b1b1b;
  margin: 10px 0;
  text-align: left;
}
.intro-media img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  display: block;
  object-fit: cover;
  border: 4px solid #313233;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.intro-media img:hover {
  transform: translateX(10px) translateY(-10px) scale(1.03);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  border-color: #313233;
}
/* Ensure image column centers vertically with the text column */
.intro-media {
  align-self: center;
}
@media (max-width: 960px) {
  .intro-inner {
    grid-template-columns: 1fr;
  }
  .intro-media {
    order: 2;
  }
}
/* Product sections on Pigments page: force white background */
.bm-product-section {
  background: #ffffff;
  color: #0f1a2c;
}
.bm-product-section#color-asphalt,
.bm-product-section.color-asphalt {
  background: #060606;
  color: #ffffff;
}
.asphalt-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 20px 64px;
  text-align: center;
}
.asphalt-title {
  font-size: 44px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 12px;
}
.asphalt-desc {
  font-size: 14px;
  line-height: 1.8;
  color: #dbe6f7;
  max-width: 1100px;
  margin: 0 auto 28px;
}
.asphalt-banner {
  display: block;
  margin: 0 auto;
  max-width: 980px;
  width: 100%;
  height: auto;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  transform-origin: center center;
  cursor: zoom-in;
}
.asphalt-banner:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}
.bm-product-section .bm-product-title {
  color: #0f1a2c;
}
.bm-product-section .bm-product-subtitle,
.bm-product-section .bm-product-desc,
.bm-product-section .bm-product-list {
  color: #273244;
}
.product-intro-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 20px 64px;
  text-align: center;
}
.pro-intro {
  background: #ffffff;
  color: #0f1a2c;
}
.product-intro-title {
  font-size: 44px;
  font-weight: 800;
  color: #0f1a2c;
  margin: 0 0 12px;
}
.product-intro-desc {
  font-size: 14px;
  line-height: 1.8;
  color: #273244;
  max-width: 980px;
  margin: 0 auto 28px;
}
.product-intro-banner {
  display: block;
  margin: 0 auto;
  max-width: 980px;
  width: 100%;
  height: auto;
}
/* Product Application section */
.product-app-section {
  background: #060606;
  color: #ffffff;
}
.product-app-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 20px 64px;
  text-align: center;
}
.product-app-title {
  font-size: 44px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 24px;
}
.product-app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.product-app-card {
  background: transparent;
}
.product-app-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.product-app-img:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
.product-app-label {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}
@media (max-width: 960px) {
  .product-app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .product-app-grid {
    grid-template-columns: 1fr;
  }
}

/* Color Chart section */
.color-chart-section {
  position: relative;

  background-color: #050505; /* Fond presque noir */

  /* C'est ici que la magie opère. On empile plusieurs couches : */
  background-image: 
    /* 1. La Vignette (Ombre sur les bords pour l'effet cinéma) */
    radial-gradient(circle at center, transparent 30%, #000 90%),
    /* 2. GRILLE PRINCIPALE (Cyan - Grande) - Lignes Verticales & Horizontales */
    linear-gradient(rgba(3, 233, 244, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(3, 233, 244, 0.1) 1px, transparent 1px),
    /* 3. GRILLE SECONDAIRE (Magenta - Petite) - Lignes Verticales & Horizontales */
    linear-gradient(rgba(217, 3, 244, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 3, 244, 0.05) 1px, transparent 1px);

  /* On définit la taille des grilles */
  background-size:
    100% 100%,
    /* Vignette */ 60px 60px,
    /* Grande grille Cyan (60px) */ 60px 60px,
    20px 20px,
    /* Petite grille Magenta (20px) */ 20px 20px;

  /* On lance l'animation */
  animation: cyber-move 10s linear infinite;
}

/* L'animation qui fait bouger les grilles */
@keyframes cyber-move {
  0% {
    background-position:
      0 0,
      /* Vignette (ne bouge pas) */ 0 0,
      0 0,
      /* Grille Cyan (Départ) */ 0 0,
      0 0; /* Grille Magenta (Départ) */
  }
  100% {
    background-position:
      0 0,
      /* Vignette */ 60px 60px,
      60px 60px,
      /* Grille Cyan bouge de 60px (1 carreau) */ 40px 40px,
      40px 40px; /* Grille Magenta bouge de 40px (plus vite/décalé) */
  }
}
.color-chart-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 20px 64px;
  position: relative;
  z-index: 1;
}
.color-chart-title {
  font-size: 36px;
  font-weight: 800;
  text-align: center;
  margin: 0 0 22px;
  color: #ffffff;
}

.color-chart-grid {
  display: grid;
  grid-template-columns: repeat(4, 268px);
  gap: 26px 34px;
  justify-content: center;
  align-items: start; /* prevent sibling cards from stretching to tallest height */
}
.cc-card {
  width: 268px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
.cc-card-head {
  background: #000000;
  color: #ffffff;
  font-weight: 800;
  font-size: 16px;
  text-align: center;
  padding: 10px 12px;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.12s ease,
    box-shadow 0.12s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  white-space: normal;
}
.cc-swatches {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 14px;
  overflow: hidden;
  max-height: 212px; /* 2*86 + 12 gap + 28 padding */
  opacity: 1;
  transition:
    max-height 0.28s ease,
    opacity 0.28s ease,
    padding 0.28s ease;
}
.cc-card.is-collapsed .cc-swatches {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
}
.cc-card.is-collapsed .cc-card-head {
  border-radius: 14px;
  background: #b20124;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}
.cc-card.is-collapsed .cc-card-head:hover {
  background: #98011e;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}
.cc-card.is-collapsed .cc-card-head:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.cc-card.is-collapsed .cc-card-head:focus-visible {
  outline: 2px solid #b20124;
  outline-offset: 2px;
}

/* Lock control (shows only when card is expanded) */
.cc-lock {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  /* Colorable masked icon */
  -webkit-mask: url("../image/icons/lock.png") center/contain no-repeat;
  mask: url("../image/icons/lock.png") center/contain no-repeat;
  background-color: #ffffff; /* default visible white */
  border: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  transition:
    opacity 0.15s ease,
    transform 0.12s ease;
  z-index: 2;
}
.cc-card:not(.is-collapsed) .cc-lock {
  opacity: 0.9;
}
.cc-lock:hover {
  transform: translateY(-50%) scale(1.05);
}
.cc-card.is-locked .cc-lock {
  opacity: 1;
  background-color: #b20124; /* locked: red */
}
.cc-swatch {
  height: 86px;
  border-radius: 12px;
  background: var(--swatch, #ccc);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
  transition:
    height 0.2s ease,
    box-shadow 0.15s ease,
    filter 0.15s ease;
  cursor: pointer;
}
.cc-swatch::after {
  content: attr(data-label);
  position: absolute;
  inset: 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.cc-swatch:hover:not(.is-closed) {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.15),
    0 6px 16px rgba(0, 0, 0, 0.15);
  filter: saturate(1.05);
}
.cc-swatch.is-closed {
  height: 18px;
  background: #f2f4f7;
}
.cc-swatch.is-closed::after {
  opacity: 0;
}
@media (max-width: 1024px) {
  .color-chart-grid {
    grid-template-columns: repeat(2, 268px);
  }
}
@media (max-width: 640px) {
  .color-chart-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .cc-card {
    width: 100%;
    max-width: none;
    min-width: 0;
  }
  .cc-card-head {
    font-size: clamp(11px, 2.9vw, 13px);
    padding: 8px 10px;
    min-height: 38px;
    text-align: center;
    justify-content: center;
  }
  .cc-lock {
    right: 8px;
    width: 18px;
    height: 18px;
  }
}

/* Technical Index section */
.tech-index-section {
  background: #ffffff;
  color: #0f1a2c;
}
.tech-index-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 20px 64px;
}
.tech-index-title {
  font-size: 44px;
  font-weight: 800;
  text-align: center;
  margin: 0 0 18px;
}
.tech-index-table-wrap {
  overflow-x: auto;
}
.tech-index-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.tech-index-table th,
.tech-index-table td {
  border: 1px solid #e2e8f0;
  padding: 10px 12px;
  text-align: center;
  white-space: nowrap;
}
.tech-index-table thead th {
  background: #8b5a3c;
  color: #ffffff;
  font-weight: 700;
}
.tech-index-table td.sticky-col {
  position: sticky;
  left: 0;
  background: #ffffff;
  text-align: left;
  z-index: 1;
}
.tech-index-table thead th.sticky-col {
  position: sticky;
  left: 0;
  background: #8b5a3c;
  color: #ffffff;
  text-align: left;
  z-index: 2;
}
.group-red td.sticky-col,
.group-red td:not(.sticky-col) {
  background: #fdecec;
}
.group-yellow td.sticky-col,
.group-yellow td:not(.sticky-col) {
  background: #fff7da;
}
.group-black td.sticky-col,
.group-black td:not(.sticky-col) {
  background: #eceff3;
}
.group-blue td.sticky-col,
.group-blue td:not(.sticky-col) {
  background: #e8f1fb;
}
.group-green td.sticky-col,
.group-green td:not(.sticky-col) {
  background: #e9f7ef;
}
.group-brown td.sticky-col,
.group-brown td:not(.sticky-col) {
  background: #f5ede6;
}
.group-orange td.sticky-col,
.group-orange td:not(.sticky-col) {
  background: #fff1df;
}

/* Logistics & Packaging section */
.lp-section {
  background: #ffffff;
  color: #0f1a2c;
}
.lp-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 20px 64px;
  display: grid;
  grid-template-columns: 560px 1fr;
  gap: 36px;
  align-items: center;
}
.lp-img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 18px;
  display: block;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.15);
}
.lp-title {
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 10px;
}
.lp-desc {
  font-size: 14px;
  line-height: 1.8;
  color: #273244;
  margin: 0 0 18px;
}
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 10px;
  background: #2f6cc8;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #2f6cc8;
  transition:
    background-color 0.15s ease,
    transform 0.15s ease,
    border-color 0.15s ease;
}
.lp-btn:hover {
  background: #2b62b4;
  border-color: #2b62b4;
  transform: translateY(-1px);
}
@media (max-width: 960px) {
  .lp-inner {
    grid-template-columns: 1fr;
  }
  .lp-img {
    height: 280px;
  }
}

/* ===== Global responsive overrides for pegments page ===== */
.bm-page img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 1200px) {
  .bm-hero {
    min-height: auto;
    padding: clamp(110px, 12vw, 140px) 16px clamp(60px, 7vw, 90px);
  }

  .bm-hero-title {
    font-size: clamp(30px, 5vw, 44px);
  }

  .bm-hero-desc {
    font-size: clamp(13px, 1.9vw, 14px);
    max-width: min(92vw, 72ch);
  }

  .intro-inner,
  .asphalt-inner,
  .product-intro-inner,
  .product-app-inner,
  .color-chart-inner,
  .tech-index-inner,
  .lp-inner {
    width: min(1180px, 100%);
    padding-left: clamp(12px, 2.4vw, 20px);
    padding-right: clamp(12px, 2.4vw, 20px);
  }

  .intro-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
    gap: clamp(18px, 3vw, 30px);
    padding-top: clamp(44px, 8vw, 80px);
    padding-bottom: clamp(44px, 8vw, 80px);
  }

  .intro-title {
    font-size: clamp(30px, 5vw, 50px);
  }

  .asphalt-title,
  .product-intro-title,
  .product-app-title,
  .tech-index-title {
    font-size: clamp(30px, 5vw, 44px);
  }
}

@media (max-width: 992px) {
  .bm-hero-actions {
    gap: 10px;
    margin-bottom: 26px;
  }

  .bm-btn {
    padding: 10px 16px;
    font-size: clamp(12px, 1.8vw, 14px);
  }

  .bm-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: min(96vw, 680px);
  }

  .intro-inner {
    grid-template-columns: 1fr;
  }

  .intro-media {
    order: 2;
  }

  .intro-text p,
  .asphalt-desc,
  .product-intro-desc,
  .lp-desc {
    font-size: clamp(13px, 1.8vw, 14px);
    line-height: 1.7;
  }

  .product-app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .product-app-img {
    height: clamp(160px, 26vw, 220px);
  }

  .color-chart-title {
    font-size: clamp(24px, 4.5vw, 34px);
  }

  .color-chart-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .cc-card {
    width: 100%;
  }

  .lp-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .lp-img {
    height: clamp(220px, 42vw, 300px);
  }
}

@media (max-width: 768px) {
  .bm-hero-title {
    font-size: clamp(24px, 6.2vw, 34px);
  }

  .bm-hero-desc {
    font-size: 13px;
  }

  .bm-stats {
    grid-template-columns: 1fr;
    gap: 10px;
    max-width: 420px;
  }

  .bm-stat-number {
    font-size: 16px;
  }

  .bm-stat-label {
    font-size: 11px;
  }

  .bm-scroll {
    width: 30px;
    height: 30px;
    bottom: 18px;
  }

  .intro-title,
  .asphalt-title,
  .product-intro-title,
  .product-app-title,
  .tech-index-title {
    font-size: clamp(24px, 6vw, 32px);
  }

  .product-app-label {
    font-size: clamp(13px, 2.4vw, 15px);
  }

  .tech-index-table {
    font-size: 12px;
  }

  .tech-index-table th,
  .tech-index-table td {
    padding: 8px 10px;
  }
}

@media (max-width: 560px) {
  .bm-hero {
    padding: 102px 12px 52px;
  }

  .bm-hero-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .bm-btn {
    width: 100%;
  }

  .intro-inner,
  .asphalt-inner,
  .product-intro-inner,
  .product-app-inner,
  .color-chart-inner,
  .tech-index-inner,
  .lp-inner {
    padding-left: 12px;
    padding-right: 12px;
  }

  .product-app-grid,
  .color-chart-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-app-grid {
    grid-template-columns: 1fr;
  }

  .cc-card {
    max-width: none;
    margin: 0;
  }
  .cc-card-head {
    font-size: clamp(10px, 2.8vw, 12px);
    letter-spacing: 0.1px;
    min-height: 36px;
  }
  .cc-swatch::after {
    font-size: clamp(10px, 2.5vw, 11px);
  }

  .lp-title {
    font-size: clamp(24px, 6vw, 30px);
  }

  .lp-desc {
    font-size: 13px;
  }
}
