/* src/styles.css */
/*@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&family=JetBrains+Mono:wght@400;500&display=swap");

/* Global Variables (Default / Landing Page) */
:root {
  font-family: "Roboto", sans-serif;
  --panel-bg: #fafbfc;
  --banner-duration: 22s;
  /* Brand black (Pantone 5395 C) */
  --brand-black: #001e28;
  --brand-red: #dd0000;
  --hero-blue: #006b8e;
  --yellow-safety: #ffc800;

  /* Hero Variables */
  --hero-height: 100vh;
  --hero-min-height: 0;
  --hero-h1-size: clamp(1.2rem, 3vw, 2rem);
  --hero-title-size: clamp(2.5rem, 6vw, 5rem);
  --hero-title-margin: 1rem;
  --scroll-indicator-display: block;

  /* Product Section Variables */
  --products-section-padding: 6rem 2rem;
  --product-card-padding: 2.5rem;
  --product-image-height: 200px;
  --product-card-h3-size: 1.5rem;
  --product-card-p-size: 1rem;
}

html {
  font-size: 16px; /*base*/
}

/* Base mobile fallback logic for variables */
@media (max-width: 768px) {
  :root {
    --hero-height: 100svh;
  }
}

/* 2. Local Overrides (Products Page) */
.page-products {
  /* Hero overrides */

  --hero-h1-size: clamp(2rem, 4vw, 3rem);
  --hero-title-size: clamp(2rem, 4vw, 3rem);
  --hero-title-margin: 1rem;
  --scroll-indicator-display: none;

  /* Products overrides */
  --products-section-padding: 5rem 2rem;
  --product-card-padding: 2rem;
  --product-image-height: 250px;
  --product-card-h3-size: 1.35rem;
  --product-card-p-size: 0.95rem;
}

.page-products .hero h1 {
  margin-top: 5rem; /* Descend le titre pour éviter qu'il soit caché par le header */
}

/* 3. Local Overrides (PROFINET Technical Page) */
.page-profinet {
  --hero-height: 40vh;
  --hero-min-height: 350px;
  --hero-h1-size: clamp(1.5rem, 3vw, 2.5rem);
  --hero-title-size: clamp(2rem, 5vw, 4rem);
  --hero-title-margin: 0.5rem;
  --scroll-indicator-display: none;
  background-color: #fcfcfc;
}

/* Technical Content Styles */
.tech-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
  background-image: radial-gradient(#e5e7eb 1px, transparent 1px);
  background-size: 40px 40px;
}

.tech-section {
  margin-bottom: 2rem;
  background: white;
  padding: 3rem;
  border-radius: 24px;
  border: 1px solid #f3f4f6;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.tech-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.05);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-number {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  color: var(--brand-red);
  background: #fee2e2;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-weight: 600;
}

.tech-section h2 {
  font-size: 1.75rem;
  color: var(--brand-black);
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tech-section h3 {
  font-size: 1.25rem;
  color: #111827;
  margin: 1.5rem 0 1rem;
  font-weight: 600;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.tech-card {
  background: #fafbfc;
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid #f3f4f6;
  position: relative;
  overflow: hidden;
}

.card-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  color: #9ca3af;
  opacity: 0.5;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.tech-list {
  list-style: none;
  padding: 0;
  font-size: 0.9rem;
}

.tech-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  justify-content: space-between;
}

.tech-list li:last-child {
  border-bottom: none;
}

.tech-table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: 12px;
  border: 1px solid #f3f4f6;
  background: white;
}

.tech-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: left;
}

.tech-table th {
  background: #f9fafb;
  color: #4b5563;
  padding: 1rem 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #f3f4f6;
}

.tech-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
}

.tech-table tr:hover {
  background: #fafbfc;
}

.code-block {
  background: #0f172a;
  color: #94a3b8;
  padding: 1.5rem;
  border-radius: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  margin: 1.5rem 0;
  line-height: 1.6;
  border: 1px solid #1e293b;
  position: relative;
}

.code-block::before {
  content: "TERMINAL";
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  font-size: 0.6rem;
  color: #475569;
  letter-spacing: 0.2em;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.status-badge--success {
  background: #dcfce7;
  color: #166534;
}

.status-badge--info {
  background: #dbeafe;
  color: #1e40af;
}

/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Utility helpers using brand black */
.brand-black {
  color: var(--brand-black);
}

.bg-brand-black {
  background: var(--brand-black);
}

.border-brand-black {
  border-color: var(--brand-black);
}

/* Hero Section */
.hero {
  position: relative;
  height: var(--hero-height);
  min-height: var(--hero-min-height);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #000;
  isolation: isolate;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.video-desktop {
  display: block;
}

.video-mobile {
  display: none;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 5;
  pointer-events: none;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem;
  max-width: 1200px;
  animation:
    fadeInUp 1s ease-out,
    float 6s ease-in-out 2s infinite alternate;
}

.hero-logo-title {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: 1.5rem;
}

.hero-logo {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 6px 28px rgb(0, 0, 0));
  animation: pulse 3s ease-in-out infinite;
}

.hero h1 {
  font-size: var(--hero-h1-size);
  font-weight: 400;
  margin-bottom: 2rem;
  opacity: 0.95;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
  color: #fff;
}

.hero p.infranor-group-title {
  font-family: "Inter", sans-serif;
  font-size: var(--hero-title-size);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
  filter: drop-shadow(0 6px 28px rgb(0, 0, 0));
  position: relative;
  margin: 0;
  margin-bottom: var(--hero-title-margin);
  z-index: 2;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 3rem;
  opacity: 0.9;
  font-weight: 400;
  color: #fff;
}

/* Mobile Hero Overrides */
@media (max-width: 768px) {
  .video-desktop {
    display: none !important;
  }

  .video-mobile {
    display: block !important;
  }

  .hero-logo-title {
    flex-direction: column !important;
    gap: 0.8rem !important;
  }

  .hero-logo {
    width: 50px !important;
    height: 50px !important;
  }

  .hero p.infranor-group-title {
    /* Use variables instead of overriding them */
    margin-top: 0.5rem;
  }
}

/* Buttons */
.cta-button {
  display: inline-block;
  padding: 1.1rem 2.6rem;
  background: #fff;
  color: var(--brand-black) !important;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  /* OPTIMISATION INP MAX : Retrait des ombres dans les calculs d'animation */
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
  will-change: transform;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  margin: 0.5rem;
  border: 2px solid var(--brand-red);
}

/* LE SECRET INP : Réponse instantanée au tap sur mobile */
.cta-button:active {
  transform: scale(0.96) !important; /* Le bouton s'enfonce sous le doigt */
  transition: none !important; /* RÉPONSE INSTANTANÉE (0ms) */
  box-shadow: none !important; /* On simplifie le rendu au clic */
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 44px rgba(221, 0, 0, 0.4);
  background: var(--brand-red);
  color: #fff !important;
}

.cta-button.cta-primary {
  background: var(--brand-red);
  color: #fff !important;
  border-color: var(--brand-red);
  padding: 1.3rem 3.2rem;
  box-shadow: 0 18px 60px rgba(221, 0, 0, 0.18);
  transform: translateZ(0);
}

.cta-button.cta-primary:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 26px 80px rgba(221, 0, 0, 0.28);
}

.cta-button-outline {
  background: transparent;
  border: 2px solid var(--brand-red);
  color: var(--brand-red) !important;
}

.cta-button-outline:hover {
  background: var(--brand-red);
  color: #fff;
}

.cta-button-white {
  background: white;
  color: var(--brand-red);
  border: 2px solid white;
}

.cta-button-white:hover {
  background: transparent;
  color: white;
}

.cta-button-outline-white {
  background: transparent;
  border: 2px solid white;
  color: white !important;
}

.cta-button-outline-white:hover {
  background: white;
  color: #1f2937 !important;
}

/* Trust logos under hero */
.trust-row {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  align-items: center;
  margin-top: 1.25rem;
  opacity: 0.95;
}

.trust-row img {
  height: 30px;
  width: auto;
  filter: grayscale(1) opacity(0.85);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
  display: var(--scroll-indicator-display);
}

.scroll-indicator svg {
  width: 30px;
  height: 30px;
  opacity: 0.8;
  fill: white;
}

/* Industrial Section */
.industrial-section {
  padding: 3rem 2rem;
  background: white;
  position: relative;
  overflow: hidden;
}

.industrial-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.industrial-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.15;
}

.industrial-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0.85)
  );
  z-index: 1;
  pointer-events: none;
}

.industrial-section > * {
  position: relative;
  z-index: 2;
}

.industrial-section h2 {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 1rem;
  font-weight: 800;
  color: var(--brand-black);
}

.industrial-section .subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: #6b7280;
  margin-bottom: 4rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.industrial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

@media (max-width: 768px) {
  .industrial-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .industrial-card {
    padding: 1.5rem !important;
  }
}

.industrial-card {
  background: #f9fafb;
  padding: 2.5rem;
  border-radius: 20px;
  border: 2px solid #f3f4f6;
  transition: all 0.3s ease;
  text-align: center;
}

.industrial-card:hover {
  transform: translateY(-10px);
  background: white;
  border-color: var(--brand-red);
  box-shadow: 0 20px 60px rgba(221, 0, 0, 0.1);
}

.industrial-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.industrial-icon svg {
  width: 48px;
  height: 48px;
  display: block;
  fill: var(--brand-black);
}

.industrial-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: #111827;
}

.industrial-card p {
  color: #6b7280;
  line-height: 1.6;
}

/* Stats Section */
.stats-section {
  padding: 3.5rem 2rem;
  background: var(--panel-bg);
  position: relative;
  overflow: visible;
  border-radius: 12px;
  max-width: 1200px;
  margin: 3rem auto 0;
  border: 1px solid rgba(0, 30, 40, 0.04);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.06);
  height: 100%;
}

.stat-number {
  font-size: clamp(2.5rem, 4.5vw, 4.5rem);
  font-weight: 900;
  margin-bottom: 0.5rem;
  display: block;
  background: linear-gradient(
    135deg,
    var(--brand-black) 0%,
    var(--brand-red) 50%,
    var(--brand-black) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(221, 0, 0, 0.1));
}

.stat-iso-logo {
  display: inline-block;
  width: 80px;
  height: 80px;
  vertical-align: middle;
  object-fit: contain;
}

.stat-label {
  font-size: 0.95rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  color: #374151;
  margin-top: 0.5rem;
}

/* Products Legitimacy - LIGHT WITH COLORED BORDER */
.products-legitimacy {
  padding: 7rem 2rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, #fafbfc 0%, #ffffff 50%, #fafbfc 100%);
}

.products-legitimacy::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: min(960px, 92vw);
  height: 8px;
  background: linear-gradient(
    90deg,
    var(--brand-black) 0%,
    var(--brand-red) 25%,
    var(--brand-black) 50%,
    var(--brand-red) 75%,
    var(--brand-black) 100%
  );
  box-shadow: 0 4px 16px rgba(221, 0, 0, 0.15);
  pointer-events: none;
  z-index: 1;
}

.products-legitimacy > * {
  position: relative;
  z-index: 1;
}

.products-legitimacy h4 {
  text-align: left;
  font-size: clamp(1.85rem, 3.6vw, 3.1rem);
  margin-bottom: 1rem;
  font-weight: 800;
  color: var(--brand-black);
  letter-spacing: -0.03em;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.18;
  border-left: 6px solid var(--brand-red);
  padding-left: 1.25rem;
}

.products-legitimacy .subtitle {
  max-width: 1200px;
  margin: 0 auto 2.5rem;
  color: #6b7280;
  font-size: 1.15rem;
  line-height: 1.6;
  text-align: left;
}

.cert-showcase {
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.cert-showcase > h3 {
  margin: 0 0 1.25rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--brand-black);
  text-align: left;
}

.cert-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.25rem;
}

.cert-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 1.5rem;
  background: #ffffff;
  border: 2px solid #f3f4f6;
  border-left: 4px solid var(--brand-black);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-left-color 0.25s ease;
}

.cert-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(221, 0, 0, 0.12);
  border-left-color: var(--brand-red);
}

.cert-badge-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.cert-badge-img--invert {
  filter: invert(1) brightness(0.95);
}

@media (max-width: 1024px) {
  .cert-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Products Section */
.products-section {
  padding: var(--products-section-padding);
  background: white;
}

/* Alternate backgrounds for clear separation on Products Page */
.page-products .products-section:nth-child(even) {
  background-color: #fafbfc;
}

.products-section h2 {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 1rem;
  font-weight: 800;
  color: #111827;
}

.products-section .subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: #6b7280;
  margin-bottom: 4rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto 3rem;
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .product-card {
    padding: 1.5rem !important;
  }
}

.product-card {
  background: #f9fafb;
  padding: var(--product-card-padding);
  border-radius: 24px;
  border: 2px solid #f3f4f6;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card--video {
  padding: 2rem;
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--brand-red), var(--brand-red));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.product-card:hover::before {
  transform: scaleX(1);
}

.product-card:hover {
  transform: translateY(-10px);
  background: white;
  border-color: var(--brand-red);
  box-shadow: 0 25px 60px rgba(221, 0, 0, 0.15);
}

/* Media Elements (Images and Videos) in Product Cards */
.product-image,
.product-video {
  display: block;
  margin: 0 auto 1.5rem auto;
  max-width: 100%;
  border-radius: 16px;
  /* Fallback variable if not defined */
  height: var(--product-image-height, 200px) !important;
}

.product-image {
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-video {
  width: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .product-video {
    /* Hardcoded override for index.html historical behavior */
    height: 180px !important;
  }
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-card h3 {
  font-size: var(--product-card-h3-size);
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--brand-black);
}

.product-card p {
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: var(--product-card-p-size);
}

.product-link {
  color: var(--brand-red);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  align-self: flex-start;
}

/* OPTIMISATION INP : Animation GPU plutôt que reflow (gap) */
.product-link svg {
  transition: transform 0.3s ease;
  will-change: transform;
}

.product-link:hover svg {
  transform: translateX(0.5rem);
}

.products-cta {
  text-align: center;
}

/* Industries Banner (Landing Page) */
.industries-section {
  padding: 3rem 0 4rem;
  background: var(--panel-bg);
  position: relative;
  box-shadow:
    inset 0 18px 30px -24px #001e28,
    inset 0 -18px 30px -24px #001e28;
}

/* Industries Section Override for Products Page */
.page-products .industries-section {
  padding: 5rem 2rem;
  background-color: #fff;
  text-align: center;
  box-shadow: none;
}

.industries-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(221, 0, 0, 0.12),
    transparent
  );
}

.industries-section p.industries-title {
  text-align: left;
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  margin: 0 0 1.25rem 0;
  font-weight: 500;
  color: #001e28;
  letter-spacing: -0.03em;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.2;
  padding: 0 1rem;
}

.industries-banner {
  width: 100%;
  height: 300px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  position: relative;
}

.banner-track {
  display: flex;
  gap: 2rem;
  align-items: center;
  padding: 1rem 2rem;
  animation: scroll-left var(--banner-duration) linear infinite;
}

.banner-item {
  width: 260px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #001e28;
}

.banner-item img {
  height: 220px;
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.banner-label {
  margin-top: 8px;
  font-size: 0.95rem;
  color: #001e28;
  font-weight: 500;
  line-height: 1.1;
}

.industries-banner:hover .banner-track {
  animation-play-state: paused;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Responsive: smaller items on narrow screens */
@media (max-width: 768px) {
  .industries-section p.industries-title {
    text-align: center;
  }

  .banner-track {
    gap: 1rem;
    padding: 0.5rem 1rem;
  }

  .banner-item {
    width: 200px;
  }

  .banner-item img {
    height: 180px;
  }

  .industries-banner {
    height: 240px;
  }
}

/* Desktop: constrain the visible track to 50% of the viewport and add left/right fades */
@media (min-width: 1024px) {
  .industries-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
  }

  .banner-viewport {
    width: 80vw;
    margin: 0 auto;
    overflow: hidden;
    box-sizing: border-box;
  }

  .banner-viewport {
    position: relative;
  }

  .banner-viewport::before,
  .banner-viewport::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 8%;
    pointer-events: none;
    z-index: 3;
  }

  .banner-viewport::before {
    left: 0;
    background: linear-gradient(
      to right,
      var(--panel-bg) 0%,
      rgba(250, 251, 252, 0) 100%
    );
  }

  .banner-viewport::after {
    right: 0;
    background: linear-gradient(
      to left,
      var(--panel-bg) 0%,
      rgba(250, 251, 252, 0) 100%
    );
  }
}

/* Obsolete generic showcase background classes removed */

.cta-section::before {
  display: none;
}

.cta-section-content {
  position: relative;
  z-index: 1;
  margin: 64px auto;
  text-align: center;
}

.cta-inner {
  max-width: 1140px;
  margin: 0 auto;
  border-radius: 16px;
  padding: 2rem;
  background: linear-gradient(135deg, #001e28 0%, #006b8e 70%, #004b63 100%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: "";
  position: absolute;
  top: -25%;
  left: -25%;
  width: 150%;
  height: 150%;
  background: radial-gradient(
    circle at center,
    rgba(221, 0, 0, 0.08) 0%,
    transparent 60%
  );
  animation: rotate 20s linear infinite;
  pointer-events: none;
  z-index: 0;
  border-radius: inherit;
}

.cta-inner > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .cta-inner {
    padding: 1.5rem;
    margin: 0 1rem;
  }
}

.cta-section h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
  font-weight: 700;
  color: white;
}

.cta-section h5 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
  font-weight: 700;
  color: white;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #e5e7eb;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@keyframes float {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-8px);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, -10px);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 768px) {
  /* Height is now controlled by --hero-height variable so we don't completely override it */

  .stats-grid {
    gap: 2rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .products-legitimacy h4,
  .products-legitimacy .subtitle,
  .cert-showcase > h3 {
    text-align: center;
  }

  .products-legitimacy h4 {
    border-left: 0;
    padding-left: 0;
  }

  .cert-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .cert-item {
    padding: 1.5rem 1rem;
  }

  .standards-text {
    text-align: center;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-button {
    width: 100%;
    max-width: 300px;
  }
}

/* Capability Cards (1-2-1 layout) */
.capability-cards {
  padding: 5rem 2rem;
  background-color: #fff;
  position: relative;
  overflow: hidden;
  --cap-card-max: 400px;
  --cap-card-wide: 400px;
  --cap-iso-col: 220px;
}

.capability-cards .wrap {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  opacity: 0;
  transition: opacity 1s ease;
}

.capability-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.7;
}

.capability-cards h4 {
  text-align: left;
  font-size: clamp(1.85rem, 3.6vw, 3.1rem);
  margin-bottom: 1rem;
  font-weight: 800;
  color: var(--brand-black);
  letter-spacing: -0.03em;
  line-height: 1.18;
  border-left: 6px solid var(--brand-red);
  padding-left: 1.25rem;
}

.capability-cards .subtitle {
  margin: 0 0 2.25rem;
  color: #6b7280;
  font-size: 1.15rem;
  line-height: 1.6;
  text-align: left;
  max-width: 900px;
}

.capability-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: stretch;
  justify-content: center;
}

.cap-card {
  background: #ffffff;
  border: 2px solid #f3f4f6;
  border-radius: 18px;
  padding: 1.6rem 1.6rem;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.06);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  width: 100%;
  max-width: var(--cap-card-max);
  justify-self: center;
}

.cap-card-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.cap-card-icon {
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  background: #f9fafb;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  color: var(--brand-black);
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
}

.cap-card-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.cap-card:hover .cap-card-icon--bulb {
  color: #f59e0b;
  background: #fff7ed;
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.22);
  filter: drop-shadow(0 6px 14px rgba(245, 158, 11, 0.35));
}

.cap-card:hover .cap-card-icon--sizing {
  color: #0ea5e9;
  background: #f0f9ff;
  border-color: rgba(14, 165, 233, 0.35);
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.22);
  filter: drop-shadow(0 6px 14px rgba(14, 165, 233, 0.35));
}

.cap-card:hover .cap-card-icon--factory {
  color: #6366f1;
  background: #eef2ff;
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.22);
  filter: drop-shadow(0 6px 14px rgba(99, 102, 241, 0.35));
}

.cap-card:hover .cap-card-icon--support {
  color: #10b981;
  background: #ecfdf5;
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.22);
  filter: drop-shadow(0 6px 14px rgba(16, 185, 129, 0.35));
}

.cap-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(221, 0, 0, 0.1);
  border-color: rgba(221, 0, 0, 0.45);
}

.cap-card h5 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-black);
  letter-spacing: -0.01em;
}

.cap-card p {
  margin: 0;
  color: #6b7280;
  line-height: 1.65;
}

.cap-iso {
  background: var(--panel-bg);
  border: 2px dashed rgba(0, 30, 40, 0.18);
  border-radius: 18px;
  padding: 1.25rem 1rem;
  display: grid;
  place-items: center;
  text-align: center;
}

.cap-iso img {
  width: 120px;
  height: auto;
  object-fit: contain;
  display: block;
}

.cap-iso .cap-iso-label {
  margin-top: 0.6rem;
  font-weight: 800;
  color: var(--brand-black);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

@media (min-width: 900px) {
  .capability-grid {
    grid-template-columns:
      minmax(0, var(--cap-card-max)) var(--cap-iso-col)
      minmax(0, var(--cap-card-max));
    grid-template-areas:
      "top top top"
      "left iso right"
      "bottom bottom bottom";
  }

  .cap-card--top {
    grid-area: top;
    max-width: var(--cap-card-wide);
  }

  .cap-card--left {
    grid-area: left;
  }

  .cap-iso {
    grid-area: iso;
    align-self: center;
  }

  .cap-card--right {
    grid-area: right;
  }

  .cap-card--bottom {
    grid-area: bottom;
    max-width: var(--cap-card-wide);
  }
}

@media (max-width: 768px) {
  .capability-cards h4,
  .capability-cards .subtitle {
    text-align: center;
  }

  .capability-cards h4 {
    border-left: 0;
    padding-left: 0;
  }
}

.product-video,
.capability-video {
  aspect-ratio: 16 / 9;
  background: #f3f4f6;
}

.hero-video {
  aspect-ratio: auto !important;
  background: transparent;
}

video::-webkit-media-controls {
  display: none !important;
}

video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
}

.elementor-background-video-container video,
.elementor-background-video-embed iframe,
.hero-video {
  pointer-events: none !important;
}

*::-moz-media-controls-play-button,
*::-moz-media-controls-start-playback-button {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Page Sub Navigation (Sticky behavior - Unified from inline HTML) */
.page-subnav,
.category-nav-inside {
  position: sticky;
  top: 100px; /* Attach under the scrolled main header */
  z-index: 998;
  background: rgba(255, 255, 255, 1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  padding: 0;
  display: flex;
  justify-content: center;
}

.page-subnav-list,
.category-nav-inside ul {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 15px 20px;
}

.page-subnav-list a,
.category-nav-inside a {
  text-decoration: none;
  color: #475569;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
  position: relative;
}

.page-subnav-list a:hover,
.category-nav-inside a:hover {
  color: #e30613 !important;
  background: none !important;
  box-shadow: none !important;
}

.page-subnav-list a::after,
.category-nav-inside a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #e30613;
  transition: width 0.3s ease;
}

.page-subnav-list a:hover::after,
.category-nav-inside a:hover::after {
  width: 100%;
}

@media (max-width: 768px) {
  .page-subnav,
  .category-nav-inside {
    position: sticky;
    top: 65px;
    background: rgba(255, 255, 255, 1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 10;
  }
  .page-subnav-list,
  .category-nav-inside ul {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 12px 10px;
  }
  .page-subnav-list a,
  .category-nav-inside a {
    font-size: 0.85rem;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
  }
}

/* Industries / Markets Grid (Products Page) */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 3rem auto 0;
}

.industry-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 12px;
  transition: transform 0.2s ease;
}

.industry-card:hover {
  transform: translateY(-5px);
}

.industry-icon {
  width: 64px;
  height: 64px;
  color: #001e28;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border-radius: 50%;
  padding: 12px;
}

.industry-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #001e28;
  margin: 0;
}

/* Action Section (Downloads + CTA) */
.action-section {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0;
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .action-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.downloads-block {
  background-color: #f3f4f6;
  padding: 3rem;
  border-radius: 16px 0 0 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cta-block {
  background-color: #001e28;
  color: white;
  padding: 3rem;
  border-radius: 0 16px 16px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}

.cta-block::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05));
  pointer-events: none;
}

@media (max-width: 768px) {
  .downloads-block,
  .cta-block {
    border-radius: 16px;
  }
}

.downloads-block h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #001e28;
}

.cta-block h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: white;
  font-weight: 700;
}

.cta-block p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  font-size: 1.1rem;
  max-width: 90%;
}

.btn-primary {
  background-color: var(--brand-red);
  color: white !important;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(221, 0, 0, 0.3);
}

.btn-primary:hover {
  background-color: var(--brand-red);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(221, 0, 0, 0.4);
}

.text-link {
  color: #001e28 !important;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
}

.text-link:hover {
  text-decoration: underline;
  color: var(--brand-red);
}

/* ==========================================================================
   Polyptych Section (Generic Showcase)
   ========================================================================== */
.showcase-section {
  position: relative;
  padding: 12rem 2rem 4rem; /* Plus d'espace au bas pour le nouveau CTA */
  background-color: var(--brand-black, #001e28);
  color: white;
  text-align: center;
  margin-top: 15rem; /* Space above so the overlapping polyptych fits */
  overflow: visible;
}

.showcase-section .showcase-content {
  max-width: 1024px;
  margin: 0 auto;
}

.showcase-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.showcase-section p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.polyptych-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%); /* cheval sur le bord supérieur */
  width: 95%;
  max-width: 1400px;
  z-index: 9;
}

.poly-panel {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition:
    transform 0.4s ease,
    filter 0.4s ease;
  border: 3px solid rgba(255, 255, 255, 0.05); /* Slight framing */
  background: #000;
}

.poly-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}

/* Base states */
.poly-panel.panel-center {
  width: 35%; /* Fixed proportions */
  height: 400px;
  z-index: 5;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
}

.poly-panel.panel-left-inner,
.poly-panel.panel-right-inner {
  width: 25%;
  height: 320px;
  z-index: 4;
  filter: brightness(0.85); /* Slightly darker */
}

.poly-panel.panel-left-outer,
.poly-panel.panel-right-outer {
  width: 0%;
  height: 260px;
  z-index: 3;
  filter: brightness(0.65); /* Darker on edges */
}

/* Hover effects */
.polyptych-grid:hover .poly-panel {
  filter: brightness(0.4);
  transform: scale(0.9);
}

.polyptych-grid .poly-panel:hover {
  filter: brightness(1.1);
  transform: scale(1.05);
  z-index: 10;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
}

/* Responsive */
@media (max-width: 1024px) {
  .polyptych-grid {
    gap: 0.5rem;
  }
  .poly-panel.panel-center {
    height: 300px;
  }
  .poly-panel.panel-left-inner,
  .poly-panel.panel-right-inner {
    height: 240px;
  }
  .poly-panel.panel-left-outer,
  .poly-panel.panel-right-outer {
    height: 180px;
  }
  .showcase-section {
    overflow: visible; /* Restore overlap effect */
  }
}

@media (max-width: 768px) {
  .showcase-section {
    margin-top: 6rem;
    padding-top: 6rem;
    padding-bottom: 4rem;
  }
  .polyptych-grid {
    display: block; /* Disable flex column */
    transform: translateY(-50%); /* Simpler centering */
    top: 0;
    left: 0; /* Override left: 50% from base class */
    margin-top: 0;
    width: 100%;
    padding: 0 1.5rem;
  }

  /* Cache les images de côté sur mobile pour un rendu plus épuré */
  .poly-panel.panel-left-inner,
  .poly-panel.panel-right-inner,
  .poly-panel.panel-left-outer,
  .poly-panel.panel-right-outer {
    display: none !important;
  }

  /* L'image centrale prend toute la largeur */
  .poly-panel.panel-center {
    width: 100% !important;
    height: 250px !important;
    transform: scale(1) !important;
    filter: brightness(1) !important;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  }

  .section-kicker {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 6rem; /* Compense la disparition des autres images */
  }
}

/* ==========================================================================
   IMAGE DE FOND HERO (HTML <picture>)
   ========================================================================== */
.hero-bg-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-position: center;
  display: block;
  z-index: 0;
}
picture {
  display: contents; /* Supprime le bloc picture de l'arbre de rendu pour éviter les bugs d'espacement */
}

/* Le Surtitre Technique */
.section-kicker {
  display: block;
  color: var(--brand-red); /* Rouge d'accentuation pour capter l'œil */
  font-size: 3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em; /* Espacement large très caractéristique des interfaces techniques */
  margin-top: 3rem;
  margin-bottom: 3rem;
}

/* Products Hero Section (Desktop & Mobile) */
.products-hero {
  position: relative;
  overflow: hidden;
  max-height: 80vh;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background-color: #001e28; /* Fond sombre pour matcher l'image */
}

@media (min-width: 769px) {
  .page-products .products-hero .hero-bg-img {
    /* On annule le positionnement absolu par défaut qui pourrait centrer */
    left: auto !important;
    right: 0 !important;

    /* On force la largeur à ne pas dépasser le contenu pour pouvoir coller à droite */
    height: 100% !important;
    object-fit: contain !important; /* Important pour ne pas couper tes produits */
    object-position: right center !important; /* L'ancre de l'image est à droite */
  }

  /* On s'assure que le contenu (texte) reste à gauche et ne passe pas SOUS l'image */
  .page-products .products-hero .hero-content {
    max-width: 50% !important;
    text-align: left !important;
  }
}

/* Version PC : Image contenue sur la droite */
/* (Supprimé car géré par la règle spécifique ci-dessus) */

@media (max-width: 768px) {
  .products-hero {
    max-height: none !important;
    align-items: flex-start;
    justify-content: center;
  }
  /* Version Mobile : Image en couverture alignée en haut */
  .page-products .products-hero .hero-bg-img {
    width: 100% !important;
    left: 0 !important;
    object-fit: cover !important;
    object-position: top center !important;
  }
  .products-hero .hero-content {
    padding: 0;
    text-align: center;
    margin-top: 180px !important; /* Safer alternative to parent padding for Chrome mobile */
    padding-bottom: 80px !important; /* Moved from L1708 without !important for cleaner CSS */
  }
  .products-hero h1 {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
  }
}

/* ==========================================================================
   BENTO LAYOUT SYSTEMS (Unified)
   ========================================================================== */

/* 1. Base Bento Components & Utilities */
.bento-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.bento-header h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--brand-black);
  margin-bottom: 1rem;
}
.bento-header p,
.bento-header .subtitle {
  font-size: 1rem;
  color: #64748b;
  margin: 0 auto;
  max-width: 600px;
  line-height: 1.6;
}

.bento-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  display: block;
}
.tag-red {
  color: var(--brand-red);
}
.tag-black {
  color: var(--brand-black);
}
.tag-blue {
  color: #3b82f6;
}

.bento-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--brand-red);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
}
.bento-link:hover {
  gap: 0.8rem;
  text-decoration: underline;
}

/* 2. Technical Bento Grid (e.g., PROFINET Page) */
.tech-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
}
.bento-item-large {
  grid-column: span 12;
}
.bento-item-medium {
  grid-column: span 6;
}
.bento-item-full {
  grid-column: span 12;
}

@media (max-width: 1024px) {
  .bento-item-medium {
    grid-column: span 12;
  }
}

/* 3. Modern Hero Bento (e.g., Servo Drives Page) */
.bento-showcase {
  max-width: 1400px;
  margin: 0 auto;
}
.bento-grid-hero {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  align-items: stretch;
}
@media (max-width: 1100px) {
  .bento-grid-hero {
    grid-template-columns: repeat(12, 1fr);
  }
}
@media (max-width: 768px) {
  .bento-grid-hero {
    grid-template-columns: 1fr;
  }
}

.bento-card {
  --bento-color: var(--brand-red);
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  transition: all 0.4s ease;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
}

.bento-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--bento-color);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  z-index: 5;
}

.bento-card:hover::before {
  transform: scaleX(1);
}

.bento-card:hover {
  transform: translateY(-10px);
  border-color: var(--bento-color);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1);
}
.bento-card.no-hover:hover {
  transform: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.03);
}
.bento-card.no-hover:hover::before {
  transform: scaleX(0);
}

.bento-point-card {
  --bento-color: var(--brand-red);
  background: #fff;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.03);
  border-left: 4px solid var(--bento-color);
}

/* Specific bento hover overrides if needed */
.bento-card--hover-right:hover {
  transform: translateY(-10px) translateX(8px);
}
.bento-card-header {
  padding: 1.5rem 1.5rem 0.5rem;
}
.bento-card-body {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.bento-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-black);
  margin: 0 0 0.75rem;
  line-height: 1.2;
}
.bento-card p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}
.bento-image-container {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 1.5rem 1.5rem;
}
.bento-image-container img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  display: block;
  transition: transform 0.4s ease;
}

.bento-card:hover .bento-image-container img {
  transform: scale(1.05);
}
.bento-points-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.bento-point-card {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bento-point-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--brand-black);
  margin: 0 0 0.4rem;
}
.bento-point-card p {
  font-size: 0.8rem;
  color: #475569;
  margin: 0;
  line-height: 1.4;
}
.bento-video-card {
  background: #fff;
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.bento-video-card video {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: block;
}

/* 4. Products & Legacy Bento (e.g., Testing, Proven Reliability) */
.bento-products-section {
  padding: var(--products-section-padding, 6rem 2rem);
  background: #fff;
}
.bento-products-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.bento-product-card {
  background: #f8fafc;
  border-radius: 24px;
  padding: 2.5rem;
  border: 1px solid #e2e8f0;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
.bento-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  border-color: #cbd5e1;
}
.bento-product-image {
  width: 100%;
  height: 220px;
  object-fit: contain;
  margin-bottom: 1.5rem;
  border-radius: 12px;
}
.bento-product-card h3 {
  font-size: 1.4rem;
  color: #0f172a;
  font-weight: 700;
  margin-bottom: 1rem;
}
.bento-product-card p {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 2rem;
  flex-grow: 1;
}
.bento-content-wrap {
  height: 100%;
}

/* Grid Spans & Special Layouts */
.bento-span-12 {
  grid-column: span 12;
}
.bento-span-8 {
  grid-column: span 8;
}
.bento-span-7 {
  grid-column: span 7;
}
.bento-span-6 {
  grid-column: span 6;
}
.bento-span-5 {
  grid-column: span 5;
}
.bento-span-4 {
  grid-column: span 4;
}
.bento-span-3 {
  grid-column: span 3;
}
.bento-span-7 {
  grid-column: span 7;
}
.bento-span-6 {
  grid-column: span 6;
}
.bento-span-5 {
  grid-column: span 5;
}
.bento-span-4 {
  grid-column: span 4;
}

.bento-span-12,
.bento-span-8,
.bento-span-7 {
  flex-direction: row;
  align-items: center;
  gap: 2.5rem;
}
.bento-card--vertical {
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 1.5rem !important;
}
.bento-span-12 .bento-product-image,
.bento-span-8 .bento-product-image,
.bento-span-7 .bento-product-image {
  width: 50%;
  flex-shrink: 0;
  margin-bottom: 0;
  height: 480px;
}
.bento-card--vertical .bento-product-image {
  width: 100% !important;
  margin-bottom: 1.5rem !important;
  height: 220px !important;
}
.bento-span-12 .bento-content-wrap,
.bento-span-8 .bento-content-wrap,
.bento-span-7 .bento-content-wrap {
  width: 65%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.bento-card--vertical .bento-content-wrap {
  width: 100% !important;
}

/* Mobile Adaptations for Legacy Bento */
@media (max-width: 1024px) {
  .bento-products-section {
    padding: 60px 1.5rem;
  }
  .bento-product-card {
    padding: 2rem !important;
  }
  .bento-span-8,
  .bento-span-7,
  .bento-span-6,
  .bento-span-5,
  .bento-span-4,
  .bento-span-3 {
    grid-column: span 6;
  }
}
@media (max-width: 768px) {
  .bento-products-grid > div {
    grid-column: span 12 !important;
    padding: 2rem !important;
  }
  .bento-span-12,
  .bento-span-8,
  .bento-span-7,
  .bento-span-6 {
    flex-direction: column !important;
    gap: 1.5rem !important;
    text-align: center;
  }
  .bento-span-12 .bento-product-image,
  .bento-span-8 .bento-product-image {
    width: 100% !important;
    height: auto !important;
    max-height: 250px;
  }
  .bento-span-12 .bento-content-wrap,
  .bento-span-8 .bento-content-wrap {
    width: 100% !important;
    align-items: center !important;
  }
}

/* 5. Shared Bento Utilities (Fieldbus, etc.) */
.bento-fieldbus-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
}
.bento-fieldbus-grid--2col {
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (max-width: 900px) {
  .bento-fieldbus-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 480px) {
  .bento-fieldbus-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.fieldbus-item {
  background: #f8fafc;
  border-radius: 12px;
  padding: 0.75rem 0.5rem;
  text-align: center;
  border: 1px solid #f1f5f9;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 90px;
}
.fieldbus-item:hover {
  background: #fff;
  border-color: var(--brand-red);
  box-shadow: 0 4px 12px rgba(221, 0, 0, 0.1);
}
.fieldbus-icon {
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.fieldbus-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.fieldbus-icon span {
  color: #fff;
  font-weight: 900;
  font-size: 0.5rem;
  line-height: 1.1;
  text-align: center;
}
.fieldbus-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-black);
}
