:root {
  --bg: #e4e4e4;
  --surface: #efefef;
  --text: #282828;
  --muted: #5f5f5f;
  --accent: #ff3f22;
  --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;
}

.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: 88px;
  display: grid;
  grid-template-columns: 230px 1fr auto auto;
  align-items: center;
  gap: 1.2rem;
}
.brand { display:flex; align-items:center; gap:.5rem; text-decoration:none; }
.brand img { width:190px; height:auto; display:block; }
.menu {
  display: flex;
  justify-content: center;
  gap: 2.2rem;
}
.menu a {
  color: #1f1f1f;
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
}
.contact-cta {
  background: var(--dark);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: .95rem 1.7rem;
  position: relative;
  min-width: 170px;
  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; }
.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); padding: 1rem 0 1.5rem; color: var(--muted); }
.footer-inner { display:flex; justify-content:space-between; align-items:center; gap:1rem; }
.site-footer a { color: inherit; text-decoration: underline; }

@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; }
}
@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:#ff4a29;}
.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:#ff4a29; 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:#ff4a29; }
@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; }

.machines-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; margin:1.5rem 0 2rem; }
.machine-card { border:1px solid #ececec; background:#fff; padding:1rem; }
.machine-card h2 { 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-single figure img { margin:0 auto; display:block; }
@media (max-width: 1100px){ .machines-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width: 720px){ .machines-grid{ grid-template-columns:1fr; } }

.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;} }
