:root {
  --bg: #e4e4e4;
  --surface: #efefef;
  --text: #282828;
  --muted: #5f5f5f;
  --accent: #0030a1;
  --a3s-blue: #0030a1;
  --dark: #17181d;
  --line: #d0d0d0;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Raleway", system-ui, sans-serif;
  color: var(--text);
  background: #f1f1f1;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  left: -140px;
  top: 120px;
  width: 900px;
  height: 900px;
  background: url('/images/group-3.svg') no-repeat center/contain;
  opacity: .55;
  filter: contrast(1.35) brightness(.78);
  pointer-events: none;
  z-index: 0;
}
main, .site-header, .site-footer { position: relative; z-index: 1; }

.announcement-bar {
  background: var(--dark);
  color: #fff;
  text-align: center;
  padding: .85rem 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .01em;
  position: relative;
  z-index: 21;
}
.announcement-bar p { margin: 0; }
.announcement-bar strong { color: var(--accent); font-weight: 800; }


.container { width: min(1140px, 92vw); margin: 0 auto; }

.site-header {
  border-bottom: 1px solid #ececec;
  background: #f3f3f3;
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .container { width: min(1310px, 94vw); }

.breadcrumbs { margin: .85rem 0 0; font-size: .88rem; color: #666; }
.breadcrumbs ol { list-style: none; display:flex; flex-wrap:wrap; gap:.35rem; padding:0; margin:0; }
.breadcrumbs li { display:flex; align-items:center; gap:.35rem; }
.breadcrumbs li + li::before { content: ">"; color:#999; margin-right:.2rem; }
.breadcrumbs a { color:#666; text-decoration:none; }
.breadcrumbs a:hover { text-decoration:underline; }
.breadcrumbs [aria-current="page"] { color:#1f1f1f; font-weight:600; }
.nav-wrap {
  min-height: 112px;
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: .85rem;
}
.brand { display:flex; align-items:center; gap:.5rem; text-decoration:none; }
.brand img { width:118px; height:auto; display:block; }
.menu {
  display: flex;
  justify-content: center;
  gap: .85rem;
  flex-wrap: nowrap;
  align-items: center;
}
.menu a,
.menu-item > a {
  color: #1f1f1f;
  text-decoration: none;
  font-weight: 700;
  font-size: .84rem;
  display: block;
  padding: .45rem 0;
  white-space: nowrap;
}
.menu > a,
.menu-item > a {
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}
.menu > a:hover,
.menu > a.is-active,
.menu-item:hover > a,
.menu-item.is-active > a {
  border-color: var(--a3s-blue);
  color: var(--a3s-blue);
}
.menu-item {
  position: relative;
}
.has-submenu > a::after {
  content: "▾";
  font-size: .72em;
  margin-left: .35rem;
}
.submenu {
  background: #fff;
  border-top: 3px solid var(--a3s-blue);
  box-shadow: 0 10px 24px rgba(0,0,0,.14);
  left: 0;
  min-width: 270px;
  opacity: 0;
  padding: .45rem 0;
  pointer-events: none;
  position: absolute;
  top: 100%;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease;
  z-index: 80;
}
.submenu a {
  color: #262626;
  font-size: .84rem;
  line-height: 1.25;
  padding: .7rem .9rem;
  white-space: normal;
}
.submenu a:hover,
.submenu a.is-active {
  background: #f3f3f3;
  color: var(--a3s-blue);
}
.menu-item:hover .submenu,
.menu-item:focus-within .submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.contact-cta {
  background: var(--dark);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: .95rem 1.45rem;
  position: relative;
  min-width: 150px;
  text-align: center;
}
.contact-cta::after {
  content: "";
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 100%;
  height: 100%;
  background: var(--accent);
  z-index: -1;
}
.lang-switcher { display: flex; gap: .8rem; }
.lang {
  text-decoration: none;
  color: #1f1f1f;
  font-weight: 700;
}
.lang.is-active { text-decoration: underline; }

.hero { padding: 2.4rem 0 2.8rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.2rem;
  align-items: center;
}
.hero-copy {
  background: transparent;
  padding: 2rem 1.2rem;
}
.hero-copy h1 {
  margin: 0 0 .8rem;
  font-size: clamp(2rem, 4.8vw, 4rem);
  line-height: 1.02;
  font-weight: 900;
  color:#0f0f10;
}
.hero-tech{ color:#ff4a29; }
.lead {
  color: #646464;
  font-size: clamp(1rem, 1.9vw, 1.15rem);
  max-width: 620px;
  font-weight:500;
}
.hero-button {
  display: inline-block;
  margin-top: 1.2rem;
  background: var(--dark);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: .95rem 1.6rem;
  position: relative;
}
.hero-button::after {
  content: "";
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 100%;
  height: 100%;
  background: var(--accent);
  z-index: -1;
}
.hero-media { position: relative; }
.hero-media img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #d5d5d5;
}
.hero-red-block {
  position: absolute;
  right: -10%;
  top: 27%;
  width: 42%;
  aspect-ratio: 1/1;
  background: rgba(255,63,34,.95);
}
.hero-discover {
  position: absolute;
  right: -7%;
  top: 45%;
  writing-mode: vertical-rl;
  text-transform: uppercase;
  letter-spacing: .3em;
  font-weight: 700;
  color: #fff;
  font-size: .7rem;
}

.content-section { padding: .5rem 0 3.5rem; }
.migrated-page > .container {
  width: min(1310px, 96vw);
}
.prose {
  background: transparent;
  border: 0;
  padding: 0;
}
 .prose h2 {
  margin-top: 3.2rem;
  border-top: 0;
  padding-top: 0;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 800;
}
.prose h2:first-of-type { margin-top: 0; }
.prose img {
  width: 100%;
  margin: .8rem 0;
  border: 1px solid #d0d0d0;
}
.prose .gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
}
.prose .gallery img { margin: 0; height: 190px; object-fit: cover; background: #fff; }
.prose .cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1rem;
}
.prose .card {
  background: #fff;
  border: 1px solid var(--line);
  padding: .7rem;
}
.prose .activities { columns: 2; gap: 1.5rem; }
.prose .logos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: .8rem;
  align-items: center;
}
.prose .logos img { max-height: 72px; object-fit: contain; background: #fff; padding: .7rem; }
.prose .contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: .8rem;
}
.prose .contact-grid > div {
  background: #f5f5f5;
  border: 1px solid var(--line);
  padding: .8rem;
}

input, textarea {
  width: 100%; border: 1px solid #b7b7b7; border-radius: 8px; padding: .75rem;
  margin-top: .25rem; margin-bottom: .8rem; font: inherit;
}
button {
  background: var(--dark); color: #fff; border: 0; border-radius: 8px;
  padding: .75rem 1.2rem; font-weight: 700; cursor: pointer;
}
.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 1.25rem 0 1.5rem;
}
.footer-inner {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: 110px minmax(0, 1fr) auto;
}
.footer-brand {
  display: inline-flex;
}
.footer-brand img {
  display: block;
  height: auto;
  width: 86px;
}
.footer-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .9rem;
  justify-content: center;
}
.footer-meta p {
  margin: 0;
}
.site-footer a {
  color: inherit;
  text-decoration: underline;
}
.footer-social {
  align-items: center;
  background: var(--a3s-blue);
  color: #fff !important;
  display: inline-flex;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  height: 38px;
  justify-content: center;
  line-height: 1;
  text-decoration: none !important;
  width: 38px;
}
.footer-social:hover {
  background: #101820;
}

@media (max-width: 1100px) {
  .nav-wrap { grid-template-columns: 1fr auto auto; }
  .menu { grid-column: 1 / -1; order: 4; justify-content: flex-start; padding-bottom: .8rem; }
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { margin-right: 8%; }
  .prose .contact-grid { grid-template-columns: 1fr; }
  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}
@media (max-width: 820px) {
  body::before { width: 420px; height: 420px; left: -140px; top: 160px; opacity: .2; }
  .prose .cards, .prose .logos, .prose .gallery { grid-template-columns: 1fr; }
  .prose .activities { columns: 1; }
  .hero-red-block, .hero-discover { display: none; }
  .contact-cta { min-width: auto; padding: .75rem 1rem; }

  .menu {
    gap: .95rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: .35rem;
  }
  .menu a {
    font-size: .9rem;
    white-space: nowrap;
    flex: 0 0 auto;
  }

  /* mobile header: keep language switch compact (flag only) */
  .lang-switcher summary span:not(.flag) { display: none; }
  .lang-switcher summary { gap: .1rem; }
  .lang-switcher summary::after { margin-left: 0; }
}

.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  margin: 1rem 0 2rem;
  overflow: hidden;
}
.video-wrap iframe {
  border: 0;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.video-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}
.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 63, 34, .9);
  border: 0;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 0 2px;
  transition: background .2s;
}
.video-play:hover { background: rgba(255, 63, 34, 1); }
.video-consent-msg {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  background: rgba(0, 0, 0, .85);
  color: #fff;
  font-size: 1rem;
  text-align: center;
  padding: 1.5rem;
  z-index: 3;
}
.video-consent-msg[hidden] { display: none; }
.video-consent-link {
  color: #ff4a29;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.sector-slider {
  display: flex;
  gap: .7rem;
  overflow-x: auto;
  padding: .4rem 0 .8rem;
  scroll-snap-type: x mandatory;
}
.sector-slider span {
  scroll-snap-align: start;
  flex: 0 0 auto;
  background: #1f1f1f;
  color: #fff;
  padding: .55rem .8rem;
  font-size: .85rem;
  font-weight: 700;
  white-space: nowrap;
}

.gallery.gallery-10 {
  grid-template-columns: repeat(5, minmax(0,1fr));
}

@media (max-width: 980px) {
  .gallery.gallery-10 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

.contact-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}
.contact-panel {
  background: #f5f5f5;
  border: 1px solid var(--line);
  padding: 1rem;
}
.map-wrap {
  position: relative;
  min-height: 320px;
}
.map-wrap iframe {
  border: 0;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
@media (max-width: 980px) {
  .contact-section-grid { grid-template-columns: 1fr; }
  .map-wrap { min-height: 260px; }
}

.hero-subtitle {
  margin: 1.2rem 0 .45rem;
  font-size: 1.35rem;
  font-weight: 800;
}
.hero-expertise {
  margin: 0 0 .45rem;
  color: #666;
  max-width: 620px;
  font-weight:500;
}

.hero-scroll{position:absolute;right:2%;top:36%;height:170px;width:78px;display:block;z-index:6;}
.hero-scroll svg{width:100%;height:100%;overflow:visible;}
.tube-track{fill:none;stroke:#1d1d1d;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.tube-dot{fill:#ff4a29;filter:drop-shadow(0 0 3px rgba(255,74,41,.5));}

.lang-switcher { position: relative; }
.lang-switcher summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: .4rem;
  color: #1f1f1f;
}
.lang-switcher summary::-webkit-details-marker { display: none; }
.lang-switcher summary::after { content: "▾"; font-size: .85rem; margin-left: .2rem; }
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + .45rem);
  min-width: 170px;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 8px 24px rgba(0,0,0,.09);
  padding: .35rem;
  z-index: 99;
}
.lang-menu a {
  display: flex;
  gap: .45rem;
  align-items: center;
  text-decoration: none;
  color: #212121;
  padding: .45rem .5rem;
  font-size: .95rem;
}
.lang-menu a:hover { background:#f4f4f4; }
.flag { width: 1.2rem; display:inline-flex; justify-content:center; }


#activities { position: relative; padding-left: 48px; }
#activities::before { content:""; position:absolute; left:0; top:8px; width:34px; height:34px; background:#ff4a29; }
@media (max-width: 980px){ #activities::before{ left:0; width:24px; height:24px; top:10px; } }
@media (max-width: 820px){ #activities::before{ left:0; top:10px; }
  #activities { padding-left: 34px; } }

#machines { position: relative; padding-left: 48px; }
#machines::before { content:""; position:absolute; left:0; top:8px; width:34px; height:34px; background:#ff4a29; }

#realisations { position: relative; padding-left: 48px; }
#realisations::before { content:""; position:absolute; left:0; top:8px; width:34px; height:34px; background:#ff4a29; }
@media (max-width: 980px){ #machines::before{ left:0; width:24px; height:24px; top:10px; }
  #realisations::before{ left:0; width:24px; height:24px; top:10px; } }
@media (max-width: 820px){ #machines::before{ left:0; top:10px; }
  #machines { padding-left: 34px; }
  #realisations { padding-left: 34px; } }


.activity-slider { position: relative; margin: .8rem 0 1.6rem; overflow: hidden; }
.activity-track { display: flex; transition: transform .5s ease; }
.activity-slide { min-width: 100%; margin: 0; position: relative; }
.activity-slide img { width: 100%; height: 360px; object-fit: cover; display: block; border: 1px solid #dadada; }
.activity-slide::before{content:"";position:absolute;left:110px;top:20%;width:280px;height:80%;background:rgba(255,64,32,.35);pointer-events:none;z-index:1;}
.activity-slide figcaption { position:absolute; left: 110px; bottom: 0; transform: none; background:#ff4020; color:#fff; width:280px; min-height:120px; padding: 1.2rem 1.35rem; display:flex; flex-direction:column; justify-content:flex-end; gap:.2rem; z-index:2; }
.activity-slide figcaption small{font-size:.9rem;line-height:1;opacity:.95;}
.activity-slide figcaption strong{font-size:1.9rem;line-height:1;font-weight:800;}
.activity-prev, .activity-next { position: absolute; top: 50%; transform: translateY(-50%); border: 0; background: rgba(0,0,0,.55); color: #fff; width: 40px; height: 40px; font-size: 1.6rem; line-height: 1; }
.activity-prev { left: 10px; }
.activity-next { right: 10px; }
@media (max-width: 820px) { .activity-slide img { height: 230px; } .activity-slide::before{height:100%;width:220px;left:36px;}.activity-slide figcaption{left:36px;bottom:0;width:220px;min-height:90px;transform:none;} .activity-slide figcaption strong{font-size:1.45rem;} }


.machines-panel p { max-width: 100%; color:#5a5a5a; }
.machines-panel ul { list-style: none; padding: 0; margin: 1.1rem 0 1.2rem; }
.machines-panel li { position: relative; padding-left: 28px; margin: .6rem 0; color:#4c4c4c; }
.machines-panel li::before { content:""; position:absolute; left:0; top:.55em; width:11px; height:11px; border-radius:50%; background:#ff4a29; }
.machines-cta { display:inline-block; background:#111; color:#fff !important; text-decoration:none; padding:.78rem 1.25rem; font-weight:700; }


.advantages-split { display:grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items:start; margin-top: .8rem; }
.advantages-slider { position: relative; aspect-ratio: 1024 / 555; min-height: 0; background: transparent; border: 0; overflow: hidden; }
.adv-slide { position:absolute; inset:0; width:100%; height:100%; object-fit: contain; opacity:0; transition: opacity .55s ease; border:0 !important; box-shadow:none !important; image-rendering:auto; }
.adv-slide.is-active { opacity:1; }
.advantages-text p { margin: 0 0 .9rem; color:#575757; font-size:.98rem; line-height:1.55; text-align: justify; }
@media (max-width: 980px){ .advantages-split{ grid-template-columns:1fr; } .advantages-slider{ aspect-ratio: 16 / 10; } }

.advantages-slider .adv-slide { border: 0 !important; box-shadow: none !important; }


/* Réalisations techniques: mixed mosaic + fullscreen lightbox */
.prose .gallery.gallery-10 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  grid-auto-rows: 185px;
  gap: 8px;
}
.prose .gallery.gallery-10 img {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
  background: #d8d8d8;
  border: 0 !important;
  box-shadow: none !important;
  cursor: zoom-in;
}
.prose .gallery.gallery-10 img.tall { grid-row: span 2; }
@media (max-width: 900px) {
  .prose .gallery.gallery-10 {
    grid-template-columns: repeat(2, minmax(0,1fr));
    grid-auto-rows: 155px;
  }
}
.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.gallery-lightbox.open { display: flex; }
.gallery-lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 0 !important;
  background: transparent;
}
.gallery-lightbox button {
  position: absolute;
  border: 0;
  background: rgba(255,255,255,.15);
  color: #fff;
  width: 46px;
  height: 46px;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.gallery-lightbox .lb-close { top: 18px; right: 18px; }
.gallery-lightbox .lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.gallery-lightbox .lb-next { right: 18px; top: 50%; transform: translateY(-50%); }


.contact-modern { background:transparent; padding:0; margin: 2.2rem 0 2rem; }
.contact-modern h2 { margin:0 0 1rem; font-size: clamp(2rem,4vw,3rem); line-height:1; font-weight:800; color:#111; position:relative; padding-left:48px; }
.contact-modern h2::before{content:"";position:absolute;left:0;top:8px;width:34px;height:34px;background:var(--accent);}
.contact-modern label { display:block; font-size:.95rem; font-weight:700; color:#4f4f4f; margin-bottom:.8rem; }
.contact-modern input, .contact-modern textarea { width:100%; border:0; border-radius:0; background:#e9e9e9; padding:.95rem .85rem; margin-top:.45rem; font:inherit; }
.contact-modern textarea { min-height: 200px; resize: vertical; }
.contact-row { display:grid; grid-template-columns:1fr 1fr; gap: 1rem; }
.contact-submit-wrap { display:flex; justify-content:flex-end; margin-top:1rem; position:relative; }
.contact-send { position:relative; background:#16181d; color:#fff; border:0; border-radius:0; padding:1rem 4.2rem; font-weight:700; z-index:2; }
.contact-submit-wrap::after { content:""; width:64px; height:64px; background:var(--accent); position:absolute; right:-6px; top:-10px; z-index:1; }
@media (max-width: 820px){ .contact-modern{ padding:1.1rem; } .contact-row{ grid-template-columns:1fr; } .contact-submit-wrap::after{ right:-2px; } }

@media (max-width: 820px){ .contact-modern h2{padding-left:34px;} .contact-modern h2::before{width:24px;height:24px;top:10px;} }


.sites-split { display:grid; grid-template-columns: 1.05fr 1fr; gap:2rem; align-items:start; margin-top:1rem; }
.sites-map-wrap { background:#f1f1f1; min-height:520px; position:relative; }
.sites-map-wrap iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
.sites-list { display:flex; flex-direction:column; gap:1rem; }
.site-item { display:grid; grid-template-columns:72px 1fr; gap:1rem; padding:.65rem .6rem; opacity:.45; transition:opacity .2s ease, background .2s ease; cursor:pointer; }
.site-item img { width:58px; height:58px; object-fit:contain; border:0 !important; box-shadow:none !important; background:transparent; margin:0; }
.site-item h4 { margin:.05rem 0 .35rem; font-size:1.05rem; }
.site-item p { margin:.2rem 0; color:#6b6b6b; font-size:.9rem; line-height:1.35; }
.site-item.is-active { opacity:1; background:#f7f7f7; }
.site-item.is-active p strong { color:var(--accent); }
@media (max-width: 980px){ .sites-split{ grid-template-columns:1fr; } .sites-map-wrap{ min-height:340px; } }

.site-item .site-detail { color:#3f3f3f; font-weight:600; }

.machine-type-nav { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; margin:2rem 0 2.4rem; }
.machine-type-card { display:flex; min-height:310px; position:relative; overflow:hidden; background:#17181d; text-decoration:none; color:#fff !important; isolation:isolate; }
.machine-type-card img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; margin:0; border:0; transform:scale(1.01); transition:transform .25s ease; z-index:-2; }
.machine-type-card::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(23,24,29,.08), rgba(23,24,29,.78)); z-index:-1; }
.machine-type-card:hover img { transform:scale(1.06); }
.machine-type-card:focus-visible { outline:3px solid #ff4a29; outline-offset:3px; }
.machine-type-content { align-self:flex-end; display:block; padding:1.15rem; }
.machine-type-content strong { display:block; font-size:1.35rem; line-height:1.12; margin-bottom:.45rem; }
.machine-type-content span { display:block; color:rgba(255,255,255,.86); line-height:1.42; }
.machine-range-section { scroll-margin-top:110px; margin:2.4rem 0 2.8rem; }
.machine-range-section > h2 { margin:0 0 1rem; }
.machine-family-section { margin:1.25rem 0 1.8rem; padding-top:1.05rem; border-top:1px solid #d8d8d8; }
.machine-family-heading { display:flex; align-items:baseline; gap:.85rem; flex-wrap:wrap; margin:0 0 .75rem; }
.machine-family-heading h3 { margin:0; font-size:1.15rem; line-height:1.2; font-weight:800; color:#17181d; }
.machine-family-heading p { margin:0; color:#5f5f5f; font-weight:600; }
.machines-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; margin:1rem 0 0; }
.machine-card { border:1px solid #ececec; background:#fff; padding:1rem; }
.machine-card h3, .machine-card h4 { margin:.35rem 0 .55rem; font-size:1.35rem; }
.machine-card .machine-series { margin:0; color:#ff4a29; font-weight:700; font-size:.85rem; text-transform:uppercase; letter-spacing:.05em; }
.machine-card ul { margin:.7rem 0 1rem; padding-left:1.1rem; }
.machine-card li { margin:.3rem 0; }
.machine-link { font-weight:700; color:#111; text-decoration:none; }
.machine-link:hover { color:#ff4a29; }
.machine-single .lead { color:#4b4b4b; font-size:1.07rem; }
.machine-thumb { width:100%; aspect-ratio:4/3; object-fit:contain; display:block; margin:0 0 .75rem; border:1px solid #ececec; background:#f4f4f4; }
.machine-hero { margin:0 0 1rem; }
.machine-hero img { width:100%; max-width:960px; height:auto; border:1px solid #ececec; display:block; }
.machine-gallery-slider { max-width:960px; margin:0 auto 1.2rem; }
.machine-gallery-slider .activity-slide::before { display:none; }
.machine-gallery-slider .activity-slide img { width:100%; max-width:960px; height:auto; max-height:70vh; object-fit:contain; object-position:center; border:1px solid #ececec; cursor:zoom-in; background:#f4f4f4; margin:0 auto; }
.machine-gallery-slider .machine-gallery-slide-compact img { max-height:52.5vh; }
.machine-single figure img { margin:0 auto; display:block; }
@media (max-width: 1100px){ .machine-type-nav, .machines-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width: 720px){ .machine-type-nav, .machines-grid{ grid-template-columns:1fr; } .machine-type-card{ min-height:240px; } }

.activities-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; margin:1.2rem 0 1.8rem; }
.activity-card { border:1px solid #ececec; background:#fff; padding:1rem; }
.activity-card img { width:100%; height:200px; object-fit:cover; border:1px solid #ececec; display:block; margin:0 0 .7rem; }
.activity-card h2 { margin:.35rem 0 .45rem; font-size:1.3rem; }

/* keep links neutral on domain/machine pages (visited or not) */
.domain-list a,
.domain-list a:visited,
.domain-single a:not(.machines-cta),
.domain-single a:not(.machines-cta):visited,
.machines-grid a,
.machines-grid a:visited,
.machine-single a:not(.machines-cta),
.machine-single a:not(.machines-cta):visited {
  color:#1f1f1f;
}

.domain-hero-image { width:100%; height:auto; border:1px solid #e8e8e8; }
.domain-hero-image.compact { max-height: 340px; object-fit: cover; }

@media (max-width: 1100px){ .activities-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width: 720px){ .activities-grid{ grid-template-columns:1fr; } .domain-hero-image.compact{max-height:260px;} }

.migrated-page {
  padding-top: 2rem;
}

.migrated-page h1,
.migrated-page h2,
.migrated-page h3 {
  line-height: 1.12;
  margin: 0 0 1rem;
}

.migrated-page h1 {
  font-size: clamp(2.35rem, 4.35vw, 3.5rem);
  color: #000;
  font-family: "Raleway", system-ui, sans-serif;
  font-weight: 600;
}

.migrated-page h2 {
  font-size: clamp(1.8rem, 3.4vw, 3.1rem);
  color: #101820;
}

.migrated-page p {
  color: #3f4650;
  font-size: 1.02rem;
  text-align: justify;
}

.migrated-page a:not(.a3s-button):not(.a3s-service-card):not(.machines-cta),
.migrated-page a:not(.a3s-button):not(.a3s-service-card):not(.machines-cta):visited {
  color: #101820;
  font-weight: 800;
  text-decoration: none;
}

.migrated-page a:not(.a3s-button):not(.a3s-service-card):not(.machines-cta):hover,
.migrated-page a:not(.a3s-button):not(.a3s-service-card):not(.machines-cta):focus-visible {
  color: var(--a3s-blue);
  text-decoration: none;
}

.a3s-tauring-page {
  max-width: 892px;
  margin: 0 auto;
}

.migrated-page .a3s-tauring-page h1 {
  font-weight: 900;
  margin-bottom: 2.4rem;
}

.migrated-page .a3s-tauring-page h2 {
  color: #1d1d1d;
  font-size: 2.5rem;
  font-weight: 500;
  margin: 3.4rem 0 1.9rem;
}

.migrated-page .a3s-tauring-page p {
  color: #747474;
  font-size: .97rem;
  line-height: 1.52;
}

.migrated-page .a3s-tauring-page p:has(> img) {
  margin: 1.3rem 0 1.4rem;
  text-align: left;
}

.a3s-tauring-page img {
  display: block;
  height: auto;
  max-width: 100%;
}

.migrated-page .a3s-tauring-cta {
  margin: 1.7rem 0 2.8rem;
  min-height: 5.2rem;
  text-align: center;
}

.a3s-tauring-cta .a3s-button {
  font-weight: 600;
  min-width: 180px;
  padding: 1.15rem 2.2rem;
  text-align: center;
}

.a3s-tauring-image-row {
  align-items: flex-start;
  display: flex;
  gap: 23px;
  margin: 1.4rem 0 1.5rem;
}

.a3s-tauring-image-row img {
  flex: 0 0 auto;
}

.a3s-references-intro {
  max-width: 892px;
  margin: 0 auto;
}

.migrated-page .a3s-references-intro h1 {
  font-weight: 900;
  margin-bottom: 2.4rem;
}

.migrated-page .a3s-references-intro p {
  color: #747474;
  font-size: .97rem;
  line-height: 1.52;
}

.a3s-references-grid {
  align-items: start;
  display: grid;
  gap: 50px;
  grid-template-columns: repeat(5, 1fr);
  margin: 3rem auto 0;
  max-width: 1205px;
}

.migrated-page .a3s-references-grid a,
.migrated-page .a3s-references-grid a:visited,
.migrated-page .a3s-references-grid a:hover,
.migrated-page .a3s-references-grid a:focus-visible {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 180px;
  text-decoration: none;
}

.a3s-references-grid img {
  display: block;
  height: auto;
  max-height: 180px;
  max-width: 180px;
  object-fit: contain;
  width: auto;
}

.a3s-references-grid .is-wide img {
  max-height: 122px;
  max-width: 201px;
}

.a3s-used-intro {
  max-width: 892px;
  margin: 0 auto 3rem;
}

.migrated-page .a3s-used-intro h1 {
  font-weight: 900;
  margin-bottom: 2.4rem;
}

.migrated-page .a3s-used-intro p {
  color: #747474;
  font-size: .97rem;
  line-height: 1.52;
}

.a3s-used-tabs > input {
  height: 1px;
  left: -9999px;
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
}

.a3s-used-filter {
  display: grid;
  gap: 31px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto 3.8rem;
  max-width: 1205px;
}

.a3s-used-filter label {
  align-items: center;
  background-color: #fff;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border: 1px solid #bdbdbd;
  box-shadow: inset 0 0 0 9999px rgba(255, 255, 255, .58), 0 2px 7px rgba(0, 0, 0, .35);
  color: #000;
  cursor: pointer;
  display: flex;
  font-size: .97rem;
  font-weight: 700;
  justify-content: center;
  min-height: 169px;
  padding: 1.5rem;
  text-align: center;
  text-transform: uppercase;
  transition: color .2s ease, background-color .2s ease;
}

.a3s-used-filter label[for="used-fr-bending"] {
  background-image: url("/wp-assets/uploads/2025/07/filtre-cintrage.webp");
}

.a3s-used-filter label[for="used-fr-forming"] {
  background-image: url("/wp-assets/uploads/2025/07/filtre-faconnage.webp");
}

.a3s-used-filter label[for="used-fr-other"] {
  background-image: url("/wp-assets/uploads/2025/07/filtres-autres-machines-4.webp");
}

#used-fr-bending:checked ~ .a3s-used-filter label[for="used-fr-bending"],
#used-fr-forming:checked ~ .a3s-used-filter label[for="used-fr-forming"],
#used-fr-other:checked ~ .a3s-used-filter label[for="used-fr-other"] {
  border-top: 2px solid var(--a3s-blue);
  color: var(--a3s-blue);
}

.a3s-used-panel {
  display: none;
  margin: 0 auto;
  max-width: 1224px;
}

#used-fr-bending:checked ~ .a3s-used-panel--bending,
#used-fr-forming:checked ~ .a3s-used-panel--forming,
#used-fr-other:checked ~ .a3s-used-panel--other {
  display: block;
}

.a3s-used-grid {
  column-count: 3;
  column-gap: 0;
}

.a3s-used-card {
  break-inside: avoid;
  display: inline-block;
  margin: 0;
  padding: 10px;
  width: 100%;
}

.a3s-used-card--sold a {
  position: relative;
}

.a3s-used-badge {
  background: #d51010;
  color: #fff;
  display: inline-block;
  font-size: .82rem;
  font-weight: 800;
  left: 1.1rem;
  line-height: 1;
  padding: .55rem .75rem;
  position: absolute;
  text-transform: uppercase;
  top: 1.1rem;
  z-index: 1;
}

.migrated-page .a3s-used-card a,
.migrated-page .a3s-used-card a:visited {
  color: inherit;
  display: block;
  font-weight: inherit;
  text-decoration: none;
}

.migrated-page .a3s-used-card a:hover h2,
.migrated-page .a3s-used-card a:focus-visible h2 {
  color: var(--a3s-blue);
}

.a3s-used-card img {
  background: #fff;
  display: block;
  height: auto;
  width: 100%;
}

.a3s-machine-detail {
  max-width: 892px;
  margin: 0 auto;
}

.migrated-page .a3s-machine-detail h1 {
  font-weight: 900;
  margin-bottom: 2.4rem;
}

.a3s-machine-detail-cover img {
  display: block;
  height: auto;
  max-width: 100%;
}

.migrated-page .a3s-machine-detail-content p {
  color: #747474;
  font-size: .97rem;
  line-height: 1.52;
}

.migrated-page .a3s-machine-detail-content a {
  color: var(--a3s-blue);
  font-weight: 800;
}

.migrated-page .a3s-used-card h2 {
  background: #fff;
  color: #333;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.25;
  margin: 0;
  padding: 1rem 1.1rem 1.1rem;
}

@media (max-width: 760px) {
  .a3s-tauring-page {
    max-width: 100%;
  }

  .a3s-tauring-image-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .a3s-references-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }

  .migrated-page .a3s-references-grid a {
    min-height: 130px;
  }

  .a3s-references-grid img {
    max-height: 130px;
    max-width: 100%;
  }

  .a3s-used-filter {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .a3s-used-filter label {
    min-height: 92px;
  }

  .a3s-used-grid {
    column-count: 1;
  }
}

.eyebrow {
  color: var(--a3s-blue) !important;
  font-size: .78rem !important;
  font-weight: 800;
  letter-spacing: .08em;
  margin: 0 0 .6rem !important;
  text-transform: uppercase;
}

.a3s-hero,
.a3s-split,
.a3s-callout {
  display: grid;
  gap: 2.4rem;
  margin: 2rem 0 4rem;
}

.a3s-hero {
  grid-template-columns: minmax(0, 13fr) minmax(320px, 7fr);
  align-items: center;
  margin-top: 1.15rem;
}

.a3s-hero-copy {
  max-width: 840px;
  min-width: 0;
}

.a3s-hero-copy h1 {
  margin-bottom: 1.2rem;
  line-height: 1.08;
}

.a3s-title-blue {
  color: var(--a3s-blue);
}

.a3s-hero-media img,
.a3s-service-card img,
.a3s-portrait img,
.a3s-logo-panel img {
  display: block;
  width: 100%;
}

.a3s-hero-media img {
  aspect-ratio: 1;
  height: auto;
  object-fit: cover;
}

.a3s-hero-media {
  min-width: 0;
}

.a3s-button {
  background: transparent;
  color: #fff !important;
  display: inline-block;
  font-weight: 800;
  margin-top: .8rem;
  padding: 1rem 2.45rem;
  position: relative;
  text-decoration: none;
  z-index: 0;
}

.a3s-button::before {
  background: var(--a3s-blue);
  content: "";
  height: 96px;
  left: 170px;
  position: absolute;
  top: -20px;
  width: 84px;
  z-index: -2;
}

.a3s-button::after {
  background: #000;
  content: "";
  inset: 0;
  position: absolute;
  z-index: -1;
}

.a3s-button:hover {
  background: #000;
}

.a3s-band {
  background: #e8ebef;
  color: #101820;
  margin: 2rem calc(50% - 50vw) 2.2rem;
  padding: 3rem max(4vw, calc((100vw - 1140px) / 2));
  position: relative;
}

.a3s-band::before {
  background: var(--a3s-blue);
  content: "";
  height: 88px;
  left: max(4vw, calc((100vw - 1140px) / 2));
  position: absolute;
  top: 3rem;
  width: 8px;
}

.a3s-band h2 {
  color: #101820;
  max-width: 760px;
  padding-left: 1.4rem;
}

.a3s-service-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 4.5rem;
}

.a3s-service-card {
  background: #fff;
  color: #101820;
  isolation: isolate;
  min-height: 280px;
  overflow: hidden;
  position: relative;
  text-decoration: none;
}

.a3s-service-card img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  transform: scale(1);
  transition: transform .35s ease, filter .35s ease;
}

.a3s-service-card::after {
  background: rgba(40, 42, 47, .9);
  content: "";
  inset: 0;
  opacity: 0;
  position: absolute;
  transform: scale(.88);
  transition: opacity .25s ease, transform .25s ease;
  z-index: 1;
}

.a3s-service-card span {
  bottom: 0;
  color: #fff;
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  left: 0;
  line-height: 1.18;
  padding: 1.2rem;
  position: absolute;
  right: 0;
  text-shadow: 2px 2px 5px rgba(0,0,0,.9);
  transition: transform .25s ease;
  z-index: 2;
}

.a3s-service-card span::after {
  color: rgba(255,255,255,.92);
  content: "en savoir plus";
  display: block;
  font-size: .78rem;
  font-weight: 600;
  margin-top: .55rem;
  opacity: 0;
  text-transform: lowercase;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
}

.a3s-service-card:hover img,
.a3s-service-card:focus-visible img {
  filter: saturate(.9);
  transform: scale(1.07);
}

.a3s-service-card:hover::after,
.a3s-service-card:focus-visible::after {
  opacity: 1;
  transform: scale(1);
}

.a3s-service-card:hover span,
.a3s-service-card:focus-visible span {
  transform: translateY(-10px);
}

.a3s-service-card:hover span::after,
.a3s-service-card:focus-visible span::after {
  opacity: 1;
  transform: translateY(0);
}

.a3s-split {
  align-items: center;
  grid-template-columns: minmax(260px, .45fr) minmax(0, .55fr);
}

.a3s-machines-feature {
  grid-template-columns: minmax(0, .58fr) minmax(320px, .42fr);
}

.a3s-machines-feature .a3s-hero-media {
  justify-self: end;
  max-width: 720px;
  width: 100%;
}

.a3s-tooling-hero {
  grid-template-columns: minmax(0, .5fr) minmax(320px, .5fr);
}

.a3s-tooling-hero .a3s-hero-media {
  justify-self: end;
  max-width: 600px;
  width: 100%;
}

.a3s-tooling-hero .a3s-hero-media img {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
}

.a3s-special-hero .a3s-hero-media {
  max-width: 470px;
}

.a3s-family-feature {
  grid-template-columns: minmax(260px, .28fr) minmax(0, .72fr);
}

.a3s-family-feature .a3s-portrait {
  justify-self: center;
  max-width: 380px;
  width: 100%;
}

.a3s-team-feature,
.a3s-growth-feature,
.a3s-group-feature {
  margin: 0 0 4.5rem;
}

.a3s-team-feature > div,
.a3s-growth-feature > div,
.a3s-group-feature > div {
  max-width: 900px;
}

.a3s-group-feature > div {
  max-width: 1180px;
}

.a3s-team-feature img,
.a3s-group-feature > img {
  display: block;
  height: auto;
  margin: 1.7rem 0 0 auto;
  max-width: 900px;
  width: 100%;
}

.a3s-group-feature > img {
  max-width: 1205px;
}

.a3s-partners-logo {
  display: block;
  height: auto;
  margin: 1.6rem 0 0;
  max-width: 703px;
  width: 100%;
}

.a3s-portrait img {
  aspect-ratio: 1;
  object-fit: cover;
}

.a3s-callout {
  align-items: center;
  background: #e8ebef;
  grid-template-columns: 1fr auto;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 3rem max(4vw, calc((100vw - 1140px) / 2));
}

.a3s-callout p:last-child {
  margin: 0;
}

.a3s-training {
  align-items: center;
  grid-template-columns: minmax(0, .6fr) minmax(220px, .4fr);
}

.a3s-logo-panel {
  background: #fff;
  padding: 2rem;
}

.a3s-stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: -1rem 0 4rem;
}

.a3s-stats div {
  background: #fff;
  border-left: 6px solid #0030a1;
  padding: 1.4rem;
}

.a3s-stats strong {
  color: #101820;
  display: block;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
}

.a3s-stats span {
  color: #56606b;
  display: block;
  font-weight: 800;
  margin-top: .5rem;
}

.a3s-video {
  margin: 0 0 4.5rem;
}

.a3s-video video {
  background: #101820;
  display: block;
  width: 100%;
}

.a3s-timeline {
  margin: 0 0 4.5rem;
}

.a3s-timeline ol {
  display: grid;
  gap: 2.25rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0 0 0 3.25rem;
  position: relative;
}

.a3s-timeline ol::before {
  background: #303438;
  bottom: 0;
  content: "";
  left: 3.25rem;
  position: absolute;
  top: 0;
  width: 1px;
}

.a3s-timeline li {
  align-items: start;
  background: #eef1f4;
  display: flex;
  gap: 1.7rem;
  min-height: 150px;
  padding: 1.85rem 2.2rem 1.9rem 2.25rem;
  position: relative;
}

.a3s-timeline i {
  align-items: center;
  background: #303438;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-style: normal;
  font-weight: 800;
  height: 38px;
  justify-content: center;
  left: -2.1rem;
  line-height: 1;
  position: relative;
  width: 38px;
  z-index: 1;
}

.a3s-timeline h3 {
  color: #303438;
  font-size: clamp(1.35rem, 2.1vw, 1.72rem);
  font-weight: 500;
  line-height: 1.2;
  margin: .15rem 0 1rem;
}

.a3s-timeline p {
  color: #666;
  font-size: .96rem;
  line-height: 1.55;
  margin: 0;
  text-align: left;
}

.a3s-equipment {
  margin: 0 0 4.5rem;
}

.a3s-equipment-grid {
  display: grid;
  gap: 2rem 3rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1040px;
}

.a3s-equipment figure {
  background: #fff;
  margin: 0;
}

.a3s-equipment img {
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  width: 100%;
}

.a3s-equipment figcaption {
  color: #3f4650;
  font-weight: 800;
  line-height: 1.3;
  padding: .9rem;
}

.page-intro {
  margin-top: 0;
}

.page-intro h1 {
  color: #fff;
  max-width: 860px;
}

.page-intro p {
  color: #d9dde3;
  max-width: 900px;
}

.a3s-card-grid {
  display: grid;
  gap: 1rem;
  margin: 0 0 4rem;
}

.a3s-card-grid.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.a3s-card-grid.three-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.a3s-card-grid.four-columns {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.a3s-card-grid article {
  background: #fff;
  border-top: 5px solid #0030a1;
  padding: 1.2rem;
}

.a3s-card-grid h2 {
  font-size: 1.35rem;
  margin-bottom: .7rem;
}

.a3s-card-grid ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
}

.a3s-card-grid a {
  color: #0030a1;
  font-weight: 800;
}

.a3s-tooling-tabs {
  background: #fff;
  display: grid;
  grid-template-columns: minmax(300px, .42fr) minmax(0, .58fr);
  margin: 0 0 4rem;
}

.a3s-tooling-tab-nav {
  background: #f1f3f5;
}

.a3s-tooling-tab-nav a {
  align-items: center;
  border-bottom: 1px solid #fff;
  color: #1c1c1c !important;
  display: flex;
  font-size: 1rem;
  font-weight: 800;
  gap: 1rem;
  line-height: 1.35;
  min-height: 84px;
  padding: 1.4rem 1.85rem;
  text-decoration: none;
}

.a3s-tooling-tab-nav a.is-active {
  background: #fff;
}

.a3s-tooling-tab-nav a span {
  align-items: center;
  background: #34383c;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: .72rem;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.a3s-tooling-tab-panels {
  background: #fff;
  min-height: 252px;
  padding: 1.65rem 1.9rem;
}

.a3s-tooling-tabs article[hidden] {
  display: none;
}

.a3s-tooling-tabs h2 {
  color: #1c1c1c;
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 .9rem;
}

.a3s-tooling-tabs article > p:first-of-type {
  margin-top: 0;
}

.a3s-tooling-tabs article > p:last-child,
.a3s-tooling-tabs article > ul:last-child {
  margin-bottom: 0;
}

.a3s-tooling-tabs ul {
  color: #3f4650;
  padding-left: 1.25rem;
}

.a3s-machining-tabs {
  grid-template-columns: minmax(315px, .25fr) minmax(0, .75fr);
}

.a3s-special-cta {
  margin: 0 0 4rem;
}

.a3s-special-case {
  margin: 0 0 4rem;
}

.a3s-special-case h1,
.a3s-special-case > h2:first-child {
  margin-left: 25%;
  position: relative;
}

.a3s-special-case h1::before,
.a3s-special-case > h2:first-child::before {
  background: var(--a3s-blue);
  content: "";
  height: 84px;
  left: -5.8rem;
  position: absolute;
  top: .22em;
  width: 84px;
  z-index: -1;
}

.a3s-special-case h2:not(:first-child) {
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  margin-top: 2rem;
}

.a3s-special-case h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
}

.a3s-special-case ul {
  color: #3f4650;
  padding-left: 1.25rem;
}

.a3s-tooling-gallery {
  margin: 0 0 4.5rem;
}

.a3s-tooling-gallery h1,
.a3s-tooling-gallery > h2:first-child {
  margin-left: 25%;
  position: relative;
}

.a3s-tooling-gallery h1::before,
.a3s-tooling-gallery > h2:first-child::before {
  background: var(--a3s-blue);
  content: "";
  height: 84px;
  left: -5.8rem;
  position: absolute;
  top: .22em;
  width: 84px;
  z-index: -1;
}

.a3s-tooling-gallery > div {
  display: grid;
  gap: 50px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.6rem;
}

.a3s-tooling-gallery a {
  display: block;
}

.a3s-tooling-gallery img {
  aspect-ratio: 5 / 4;
  background: #fff;
  cursor: zoom-in;
  display: block;
  object-fit: cover;
  width: 100%;
}

.a3s-gallery {
  margin: 0 0 4.5rem;
}

.a3s-gallery > div {
  display: grid;
  gap: .8rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1.2rem;
}

.a3s-gallery img {
  aspect-ratio: 1;
  background: #fff;
  display: block;
  object-fit: cover;
  width: 100%;
}

.a3s-case-study {
  margin: 0 0 4.5rem;
}

.a3s-case-study h3 {
  font-size: 1.25rem;
}

.a3s-machine-list {
  margin: 0 0 4rem;
}

.a3s-machine-list ul {
  column-gap: 2rem;
  columns: 3;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.a3s-machine-list li {
  background: #fff;
  break-inside: avoid;
  color: #3f4650;
  font-weight: 800;
  margin: 0 0 .5rem;
  padding: .65rem .8rem;
}

.machine-gallery img {
  aspect-ratio: 4 / 3;
}

.a3s-contact-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 4rem;
}

.a3s-contact-grid article {
  background: #fff;
  padding: 1.2rem;
}

.a3s-contact-grid img {
  height: 70px;
  margin-bottom: 1rem;
  object-fit: contain;
  object-position: left center;
  width: 180px;
}

.a3s-contact-grid h2 {
  font-size: 1.25rem;
}

.a3s-contact-grid a {
  color: #0030a1;
  font-weight: 800;
}

.a3s-logo-grid {
  display: grid;
  gap: .9rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0 0 4.5rem;
}

.a3s-logo-grid img {
  aspect-ratio: 1;
  background: #fff;
  display: block;
  object-fit: contain;
  padding: 1rem;
  width: 100%;
}

.a3s-machine-series {
  display: grid;
  gap: 1rem;
  margin: 0 0 4.5rem;
}

.a3s-machine-series article {
  align-items: center;
  background: #fff;
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 240px 1fr;
  padding: 1.2rem;
}

.a3s-machine-series img {
  display: block;
  width: 100%;
}

.a3s-machine-series h2 {
  font-size: 1.6rem;
}

.a3s-inline-gallery {
  display: grid;
  gap: .8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1rem 0 1.2rem;
}

.a3s-inline-gallery img {
  background: #fff;
  border: 1px solid #d8d8d8;
  display: block;
  height: auto;
  width: 100%;
}

.legal-page {
  background: #fff;
  margin: 2rem 0 4rem;
  padding: clamp(1.4rem, 4vw, 3rem);
}

.legal-page h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.legal-page h2 {
  border-top: 1px solid #d9dde3;
  font-size: 1.35rem;
  margin-top: 2rem;
  padding-top: 1.2rem;
}

.legal-page li,
.legal-page p {
  color: #3f4650;
}

@media (max-width: 920px) {
  .a3s-hero,
  .a3s-split,
  .a3s-training,
  .a3s-callout {
    grid-template-columns: 1fr;
  }

  .a3s-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .a3s-equipment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .a3s-card-grid.three-columns,
  .a3s-card-grid.four-columns,
  .a3s-gallery > div,
  .a3s-tooling-gallery > div,
  .a3s-logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .a3s-tooling-tabs,
  .a3s-tooling-tabs article {
    display: block;
  }

  .a3s-tooling-tabs article > p,
  .a3s-tooling-tabs article > ul {
    margin-left: 1.35rem;
    margin-right: 1.35rem;
  }

  .a3s-tooling-tabs article > p:last-child,
  .a3s-tooling-tabs article > ul:last-child {
    padding-bottom: 1.35rem;
  }

  .a3s-tooling-gallery h1,
  .a3s-tooling-gallery > h2:first-child {
    margin-left: 3rem;
  }

  .a3s-tooling-gallery h1::before,
  .a3s-tooling-gallery > h2:first-child::before,
  .a3s-special-case h1::before,
  .a3s-special-case > h2:first-child::before {
    height: 58px;
    left: -3.5rem;
    width: 58px;
  }

  .a3s-special-case h1,
  .a3s-special-case > h2:first-child {
    margin-left: 3rem;
  }

  .a3s-machine-list ul {
    columns: 2;
  }
}

@media (max-width: 640px) {
  .a3s-service-grid,
  .a3s-stats,
  .a3s-equipment-grid,
  .a3s-contact-grid,
  .a3s-card-grid.two-columns,
  .a3s-card-grid.three-columns,
  .a3s-card-grid.four-columns,
  .a3s-gallery > div,
  .a3s-tooling-gallery > div,
  .a3s-logo-grid,
  .a3s-machine-series article {
    grid-template-columns: 1fr;
  }

  .a3s-service-card {
    min-height: 230px;
  }

  .a3s-timeline li {
    grid-template-columns: 1fr;
  }

  .a3s-machine-list ul {
    columns: 1;
  }
}
