/*********** Tokens ***********/
:root {
  --navy: #0B1F3A;
  --navy-2: #102a4c;
  --navy-3: #07111f;
  --blue: #56a5ff;
  --blue-soft: #4889d3;
  --blue-deep: #1A6FD1;
  --teal: #14B8A6;
  --bg: #F3F7FC;
  --bg-2: #e8f0fa;
  --card: #ffffff;
  --ink: #1d2a3a;
  --muted: #5b6b7f;
  --line: rgba(11, 31, 58, 0.09);
  --grad: linear-gradient(90deg, var(--teal), var(--blue));
  --shadow: 0 10px 30px rgba(11, 31, 58, 0.08);
  --shadow-lg: 0 24px 50px rgba(11, 31, 58, 0.18);
  --radius: 18px;
  --wrap: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1a2a;
    --bg-2: #13223a;
    --card: #182a44;
    --ink: #e6edf7;
    --muted: #b3c0d2;
    --line: rgba(255, 255, 255, 0.1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 24px 50px rgba(0, 0, 0, 0.5);
  }
}

@font-face {
  font-family: 'MyRoboto';
  src: url('../fonts/Roboto-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'MyRoboto';
  src: url('../fonts/roboto-regular.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: 'MyRoboto', Arial, Helvetica, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
  color: var(--ink);
  background-color: var(--bg);
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'MyRoboto', sans-serif;
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.wrap {
  width: min(var(--wrap), 100% - 40px);
  margin-inline: auto;
}

/*********** Header (style d'origine conservé) ***********/
header {
  background: linear-gradient(90deg, rgba(11, 31, 58, 0.82) 0%, rgba(86, 165, 255, 0.82) 100%);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  max-height: 100px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 14px rgba(11, 31, 58, 0.35);
  transition: box-shadow 0.3s ease;
}

header .brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

header img.logo {
  max-width: 80px;
  margin: 10px 0;
  transition: transform 0.3s ease, max-width 0.3s ease;
}

header .brand {
  transition: transform 0.3s ease, max-width 0.3s ease;
}

header.is-scrolled img.logo { max-width: 64px; margin: 6px 0; }

header .brand:hover { transform: scale(1.1); }

header img.logo-text { height: 56px; width: auto; transition: height 0.3s ease; }

header.is-scrolled img.logo-text { height: 44px; }

header nav {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  pointer-events: none;
}

header nav a {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: white;
  font-weight: bold;
  text-decoration: none;
  padding: 8px 16px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

header nav a:hover,
header nav a[aria-current="page"] {
  background-color: var(--teal);
  border-color: var(--teal);
}

header nav a.contact-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
}

header nav a.contact-icon:last-child { right: 24px; }
header nav a.contact-icon:nth-last-child(2) { right: 88px; }
header nav a.contact-icon svg { width: 26px; height: 26px; }

/*********** Boutons ***********/
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.25s ease; }
.btn:hover svg { transform: translateX(4px); }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 24px rgba(20, 184, 166, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(20, 184, 166, 0.45); }

.btn-ghost {
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.16); border-color: #fff; }

/*********** Titres de section ***********/
.section { padding: 110px 0; position: relative; }
.section-tight { padding: 80px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
}

.section-head { max-width: 760px; margin: 0 auto 60px; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); color: var(--navy); }
.section-head p { color: var(--muted); font-size: 1.15rem; margin: 18px 0 0; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 400;
}

@media (prefers-color-scheme: dark) {
  .section-head h2 { color: var(--ink); }
}

/*********** Hero ***********/
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: var(--navy-3);
  isolation: isolate;
}


.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(7, 17, 31, 0.92) 0%, rgba(11, 31, 58, 0.75) 45%, rgba(11, 31, 58, 0.25) 100%),
    linear-gradient(0deg, rgba(7, 17, 31, 0.9) 0%, transparent 35%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(86, 165, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(86, 165, 255, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 70%);
}

.hero-inner { padding: 150px 0 120px; }

.hero .logo-full {
  width: 210px;
  margin-bottom: 28px;
  opacity: 0;
  animation: rise 1s ease 0.2s forwards;
}

.hero .eyebrow { color: #7fe3d6; opacity: 0; animation: rise 1s ease 0.35s forwards; }

.hero h1 {
  font-size: clamp(2.5rem, 6.4vw, 5.2rem);
  max-width: 860px;
  opacity: 0;
  animation: rise 1s ease 0.5s forwards;
}

.hero h1 .grad-text {
  background: linear-gradient(90deg, #5eead4, var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  max-width: 620px;
  color: rgba(255, 255, 255, 0.82);
  margin: 26px 0 38px;
  opacity: 0;
  animation: rise 1s ease 0.7s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  opacity: 0;
  animation: rise 1s ease 0.9s forwards;
}

.hero-sectors {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 56px;
  opacity: 0;
  animation: rise 1s ease 1.1s forwards;
}

.hero-sectors a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.hero-sectors a:hover { background: rgba(20, 184, 166, 0.25); border-color: var(--teal); }
.hero-sectors svg { width: 26px; height: 26px; color: #5eead4; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
}
.scroll-cue::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: #fff;
  animation: scrollcue 1.8s ease-in-out infinite;
}

/*********** Bande de confiance ***********/
.trust {
  position: relative;
  z-index: 2;
  margin-top: -56px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 26px 24px;
  border-right: 1px solid var(--line);
}
.trust-item:last-child { border-right: 0; }

.trust-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.14), rgba(86, 165, 255, 0.18));
  color: var(--blue-deep);
}
.trust-icon svg { width: 24px; height: 24px; }
.trust-item strong { display: block; font-size: 1.05rem; color: var(--navy); }
.trust-item span { font-size: 0.88rem; color: var(--muted); }

@media (prefers-color-scheme: dark) {
  .trust-item strong { color: var(--ink); }
  .trust-icon { color: var(--blue); }
}

/*********** Intro split ***********/
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 70px;
  align-items: center;
}

.split h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); color: var(--navy); margin-bottom: 22px; }
.split p { font-size: 1.1rem; color: var(--muted); margin: 0 0 18px; }
.split p strong { color: var(--ink); }

@media (prefers-color-scheme: dark) {
  .split h2 { color: var(--ink); }
}

.checklist { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1.05rem;
}
.checklist li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat, var(--grad);
}

.media-stack { position: relative; }
.media-stack .media-main {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3.2;
}
.media-stack .media-main img { width: 100%; height: 100%; object-fit: cover; }

.media-stack .media-sub {
  position: absolute;
  width: 46%;
  left: -12%;
  bottom: -14%;
  border-radius: 14px;
  overflow: hidden;
  border: 6px solid var(--bg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1;
}
.media-stack .media-sub img { width: 100%; height: 100%; object-fit: cover; }

.badge-float {
  position: absolute;
  top: 22px;
  right: -18px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow-lg);
  animation: float 5s ease-in-out infinite;
}
.badge-float .seal {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}
.badge-float strong { display: block; color: var(--navy); font-size: 1rem; }
.badge-float span { font-size: 0.82rem; color: var(--muted); }
@media (prefers-color-scheme: dark) { .badge-float strong { color: var(--ink); } }

/*********** Secteurs (fond sombre) ***********/
.dark {
  background: radial-gradient(1200px 600px at 10% 0%, rgba(20, 184, 166, 0.16), transparent 60%),
              radial-gradient(900px 600px at 100% 100%, rgba(86, 165, 255, 0.18), transparent 60%),
              var(--navy);
  color: #fff;
  overflow: hidden;
}
.dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.dark .section-head h2 { color: #fff; }
.dark .section-head p { color: rgba(255, 255, 255, 0.72); }
.dark .eyebrow { color: #5eead4; }

.sectors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  position: relative;
}

.sector {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.sector:hover {
  transform: translateY(-8px);
  border-color: rgba(94, 234, 212, 0.5);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(94, 234, 212, 0.2);
}

.sector-visual {
  position: relative;
  aspect-ratio: 16 / 11;
  background: radial-gradient(circle at 50% 55%, rgba(86, 165, 255, 0.22), transparent 65%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.sector-visual svg { width: 100%; height: 100%; }

.sector-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5eead4;
  background: rgba(20, 184, 166, 0.14);
  border: 1px solid rgba(20, 184, 166, 0.35);
}

.sector-body { padding: 28px 28px 32px; display: flex; flex-direction: column; flex: 1; }
.sector h3 { font-size: 1.7rem; margin-bottom: 12px; }
.sector p { color: rgba(255, 255, 255, 0.72); margin: 0 0 18px; }
.sector ul { list-style: none; padding: 0; margin: auto 0 0; display: grid; gap: 8px; }
.sector li {
  position: relative;
  padding-left: 20px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88);
}
.sector li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 2px;
  background: var(--teal);
}

/* Illustrations techniques */
.ill { color: #8cc4ff; }
.ill .stroke { fill: none; stroke: currentColor; stroke-width: 1.4; }
.ill .thin { fill: none; stroke: currentColor; stroke-width: 0.8; opacity: 0.55; }
.ill .dash { fill: none; stroke: currentColor; stroke-width: 0.8; stroke-dasharray: 3 4; opacity: 0.6; }
.ill .accent { fill: none; stroke: #5eead4; stroke-width: 1.6; }
.ill .fill-soft { fill: rgba(86, 165, 255, 0.12); }
.ill .label { fill: #5eead4; font: 600 9px 'MyRoboto', monospace; letter-spacing: 0.06em; }
.ill .dot { fill: #5eead4; }

.spin { transform-box: fill-box; transform-origin: center; animation: spin 14s linear infinite; }
.spin-slow { transform-box: fill-box; transform-origin: center; animation: spin 40s linear infinite reverse; }
.scan { animation: scan 3.6s ease-in-out infinite; }
.pulse { transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-in-out infinite; }
.pulse.d2 { animation-delay: 0.6s; }
.pulse.d3 { animation-delay: 1.2s; }
.pulse.d4 { animation-delay: 1.8s; }
.floaty { animation: float 6s ease-in-out infinite; }
.twinkle { animation: twinkle 3s ease-in-out infinite; }
.twinkle.d2 { animation-delay: 1s; }
.twinkle.d3 { animation-delay: 2s; }
.orbit-move { offset-path: path("M 40 150 A 140 46 0 1 1 320 150 A 140 46 0 1 1 40 150"); animation: orbit 12s linear infinite; }

/*********** Services (cartes image) ***********/
.services-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.svc {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.svc:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.svc-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.svc:hover .svc-img img { transform: scale(1.08); }
.svc-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(11, 31, 58, 0.55));
}
.svc-num {
  position: absolute;
  left: 18px;
  bottom: 12px;
  z-index: 1;
  font-size: 2.4rem;
  font-weight: 300;
  color: #fff;
  line-height: 1;
}

.svc-body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.svc-body::before {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  border-radius: 2px;
  background: var(--grad);
  margin-bottom: 16px;
  transition: width 0.35s ease;
}
.svc:hover .svc-body::before { width: 70px; }
.svc h3 { font-size: 1.3rem; font-weight: 400; color: var(--navy); margin-bottom: 10px; }
.svc p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.svc .more {
  margin-top: auto;
  padding-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue-deep);
  font-weight: 700;
  font-size: 0.9rem;
}
@media (prefers-color-scheme: dark) {
  .svc h3 { color: var(--ink); }
  .svc .more { color: var(--blue); }
}

/*********** Processus ***********/
.process {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}
.process::before,
.process::after {
  content: "";
  position: absolute;
  top: 32px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: var(--line);
}
.process::after {
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 2.2s cubic-bezier(.6, .1, .2, 1) 0.3s;
}
.process.is-visible::after { transform: scaleX(1); }

.process li { position: relative; text-align: center; counter-increment: step; }
.process .step-dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--line);
  color: var(--blue-deep);
  box-shadow: var(--shadow);
  transition: border-color 0.4s ease, transform 0.4s ease;
}
.process li:hover .step-dot { border-color: var(--teal); transform: scale(1.08); }
.process .step-dot svg { width: 28px; height: 28px; }
.process .step-dot::after {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: -6px;
  right: -6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
}
.process h3 { font-size: 1.1rem; font-weight: 400; color: var(--navy); margin-bottom: 6px; }
.process p { margin: 0; font-size: 0.92rem; color: var(--muted); }
@media (prefers-color-scheme: dark) {
  .process h3 { color: var(--ink); }
  .process .step-dot { color: var(--blue); }
}

/*********** Chiffres ***********/
.stats-band {
  position: relative;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.stats-band .bg {
  position: absolute;
  inset: -30% 0;
  z-index: -2;
  background: url("../img/photos/cupule.webp") right 8% center / auto 120% no-repeat;
  opacity: 0.35;
  will-change: transform;
}
.stats-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(11, 31, 58, 0.94), rgba(11, 31, 58, 0.8) 50%, rgba(26, 111, 209, 0.75));
}

.compteurs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.compteur { padding: 10px; position: relative; }
.compteur + .compteur::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 15%;
  bottom: 15%;
  width: 1px;
  background: rgba(255, 255, 255, 0.2);
}
.compteur-valeur {
  display: block;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 300;
  line-height: 1;
  background: linear-gradient(90deg, #fff, #9fd0ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.compteur-label {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.98rem;
}

/*********** Ruban matériaux ***********/
.marquee {
  overflow: hidden;
  padding: 26px 0;
  background: var(--card);
  border-block: 1px solid var(--line);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span {
  display: inline-flex;
  align-items: center;
  gap: 56px;
  font-size: 1.35rem;
  font-weight: 300;
  color: var(--muted);
  white-space: nowrap;
}
.marquee span::after {
  content: "";
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  background: var(--grad);
}

/*********** Qualité ***********/
.quality-card {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  border-radius: 26px;
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow-lg);
}
.quality-media { position: relative; min-height: 420px; }
.quality-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.quality-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.25), rgba(11, 31, 58, 0.35));
}
.iso-seal {
  position: absolute;
  z-index: 1;
  right: 24px;
  bottom: 24px;
  width: 120px;
  height: 120px;
}
.iso-seal .ring { transform-origin: 60px 60px; animation: spin 30s linear infinite; }

.quality-body { padding: 56px 56px; }
.quality-body h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); color: var(--navy); margin-bottom: 18px; }
.quality-body p { color: var(--muted); font-size: 1.08rem; margin: 0; }
@media (prefers-color-scheme: dark) { .quality-body h2 { color: var(--ink); } }

/*********** CTA ***********/
.cta {
  position: relative;
  border-radius: 28px;
  padding: 70px 60px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(120deg, var(--navy) 0%, #12407a 55%, var(--blue-deep) 100%);
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 40px;
  align-items: center;
  isolation: isolate;
}
.cta::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -140px;
  top: -220px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 60px rgba(255, 255, 255, 0.03), 0 0 0 120px rgba(255, 255, 255, 0.025);
  z-index: -1;
}
.cta h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 14px; }
.cta p { margin: 0; color: rgba(255, 255, 255, 0.8); font-size: 1.1rem; max-width: 560px; }
.cta .actions { display: flex; flex-direction: column; gap: 12px; }

/*********** Page Services ***********/
.page-hero {
  position: relative;
  padding: 190px 0 110px;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  background: var(--navy);
}
.page-hero .bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../img/photos/nakamura.webp") right 4% bottom 12% / auto 78% no-repeat;
  animation: kenburns 24s ease-in-out infinite alternate;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(7, 17, 31, 0.94) 0%, rgba(11, 31, 58, 0.8) 55%, rgba(26, 111, 209, 0.45) 100%);
}
.page-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); max-width: 820px; animation: rise 1s ease both; }
.page-hero p { max-width: 680px; color: rgba(255, 255, 255, 0.82); font-size: 1.15rem; margin: 22px 0 0; animation: rise 1s ease 0.2s both; }
.page-hero .eyebrow { color: #5eead4; animation: rise 1s ease both; }

.breadcrumb { font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); margin-bottom: 20px; }
.breadcrumb a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.breadcrumb a:hover { color: #5eead4; }

.svc-rows { display: grid; gap: 110px; }
.svc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.svc-row:nth-child(even) .svc-row-media { order: 2; }

.svc-row-media {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-lg);
}
.svc-row-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.svc-row:hover .svc-row-media img { transform: scale(1.05); }
.svc-row-media .big-num {
  position: absolute;
  left: 22px;
  top: 14px;
  font-size: 5rem;
  font-weight: 300;
  line-height: 1;
  color: #fff;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.45);
}
.svc-row-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(11, 31, 58, 0.75), transparent 45%);
}

.svc-row h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--navy); margin-bottom: 16px; }
.svc-row p { color: var(--muted); font-size: 1.08rem; margin: 0 0 6px; }
@media (prefers-color-scheme: dark) { .svc-row h2 { color: var(--ink); } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips span {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue-deep);
  background: rgba(86, 165, 255, 0.12);
  border: 1px solid rgba(86, 165, 255, 0.3);
}
@media (prefers-color-scheme: dark) { .chips span { color: #9fd0ff; } }

.galerie {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.machine {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow);
  background: var(--navy);
}
.machine img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease, opacity 0.5s ease;
}
.machine:hover img { transform: scale(1.07); opacity: 0.75; }
.machine figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 80px 22px 22px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(7, 17, 31, 0.92));
}
.machine figcaption strong { display: block; font-size: 1.25rem; font-weight: 400; margin-bottom: 4px; }
.machine figcaption span {
  display: block;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.78);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}
.machine:hover figcaption span,
.machine:focus-within figcaption span { max-height: 120px; }

/*********** Pages légales ***********/
body > h1 {
  margin: 0;
  padding: 160px 20px 70px;
  text-align: center;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: #fff;
  background: radial-gradient(800px 400px at 20% 0%, rgba(20, 184, 166, 0.25), transparent 60%), var(--navy);
}
body > h1::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  margin: 18px auto 0;
  border-radius: 2px;
  background: var(--grad);
}
main.page-services {
  width: min(900px, 100% - 40px);
  margin: 0 auto;
  padding: 60px 0 80px;
}
main.page-services section { padding: 26px 0; border-bottom: 1px solid var(--line); }
main.page-services h2 { font-size: 1.6rem; color: var(--blue-deep); margin-bottom: 10px; }
main.page-services p { color: var(--muted); }
@media (prefers-color-scheme: dark) { main.page-services h2 { color: var(--blue); } }

mark { background: #fff3a3; padding: 0 3px; }

/*********** Footer ***********/
footer {
  background-color: var(--navy-3);
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 18px 18px;
  color: white;
  text-align: center;
  padding: 80px 24px 30px;
  position: relative;
  border-top: 3px solid var(--teal);
}
footer h2 { color: white; font-size: clamp(1.9rem, 3.4vw, 2.5rem); margin-bottom: 40px; }
footer a { color: white; font-weight: bold; }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto 40px;
}
.contact-infos { text-align: center; }
.contact-infos p { color: rgba(255, 255, 255, 0.85); }
.contact-map iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.legal-links { font-size: 0.9em; margin-top: 12px; }
.legal-links a { font-weight: normal; text-decoration: underline; }
footer > p { color: rgba(255, 255, 255, 0.6); font-size: 0.92rem; }
.no-margin-bottom { margin-bottom: 2px; }
.no-margin-bottom + p { margin-top: 0; }

/*********** Apparition au défilement ***********/
.js .reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/*********** Animations ***********/
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes scan { 0%, 100% { transform: translateY(-46px); opacity: 0.2; } 50% { transform: translateY(46px); opacity: 1; } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.8); opacity: 0.35; } }
@keyframes twinkle { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } }
@keyframes orbit { to { offset-distance: 100%; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes scrollcue { 0% { transform: translateY(0); opacity: 1; } 80%, 100% { transform: translateY(16px); opacity: 0; } }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12) translate(-2%, -1%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero .logo-full, .hero .eyebrow, .hero h1, .hero-lead, .hero-actions, .hero-sectors { opacity: 1; }
  .js .reveal { opacity: 1; transform: none; }
  .process::after { transform: scaleX(1); }
}

/*********** Responsive ***********/
@media (max-width: 1100px) {
  .services-cards { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .sectors { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; }
  .process { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .process::before, .process::after { display: none; }
}

@media (max-width: 860px) {
  .section { padding: 80px 0; }
  .split, .svc-row, .quality-card, .cta { grid-template-columns: 1fr; }
  .split { gap: 80px; }
  .svc-row { gap: 30px; }
  .svc-row:nth-child(even) .svc-row-media { order: 0; }
  .media-stack { margin: 0 6% 0 10%; }
  .badge-float { right: -4%; }
  .quality-media { min-height: 280px; }
  .quality-body { padding: 36px 28px; }
  .cta { padding: 50px 30px; }
  .compteurs { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .compteur:nth-child(3)::before { display: none; }
  .galerie { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .machine { aspect-ratio: 4 / 3; }
  .machine figcaption span { max-height: none; }
}

@media (max-width: 900px) {
  header img.logo-text { display: none; }
  /*header img.logo-text, header.is-scrolled img.logo-text { height: 44px; }*/
}

@media (max-width: 700px) {
  header { gap: 16px; padding: 0 16px; }
  header nav { position: static; margin-left: auto; gap: 8px; }
  header nav a.contact-icon { position: static; transform: none; }
  header nav a { padding: 6px 12px; font-size: 0.9rem; }
  header img.logo { max-width: 60px; }
  header img.logo-text, header.is-scrolled img.logo-text { height: 36px; }
  .contact-layout { grid-template-columns: 1fr; }
  .services-cards { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-item:last-child { border-bottom: 0; }
  .process { grid-template-columns: 1fr 1fr; }
  .hero-inner { padding: 130px 0 100px; }
  .hero .logo-full { width: 160px; }
  .page-hero { padding: 150px 0 80px; }
}

@media (max-width: 560px) {
  header nav a.nav-secondary { display: none; }
  nav .contact-icon { display: none !important; }
}

/*********** Visuels produits (fonds détourés) ***********/
.hero {
  background:
    radial-gradient(700px 520px at 76% 52%, rgba(86, 165, 255, 0.28), transparent 70%),
    radial-gradient(900px 600px at 10% 100%, rgba(20, 184, 166, 0.16), transparent 60%),
    linear-gradient(180deg, #07111f, var(--navy));
}
.hero::before {
  background: linear-gradient(100deg, rgba(7, 17, 31, 0.85) 0%, rgba(11, 31, 58, 0.35) 45%, transparent 70%);
}
.hero-visual {
  position: absolute;
  z-index: -1;
  right: max(3vw, calc((100vw - var(--wrap)) / 2 - 40px));
  top: 50%;
  width: min(44vw, 600px);
  aspect-ratio: 1;
  transform: translateY(-46%);
  opacity: 0;
  animation: fadeScale 1.4s ease 0.4s forwards;
}
.hero-rings { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-rings .ring-a { transform-origin: 300px 300px; animation: spin 60s linear infinite; }
.hero-rings .ring-b { transform-origin: 300px 300px; animation: spin 36s linear infinite reverse; }
.hero-cup {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 66%;
  height: auto;
  translate: -50% -50%;
  filter: drop-shadow(0 40px 50px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 40px rgba(86, 165, 255, 0.25));
  animation: cupFloat 7s ease-in-out infinite;
}
@keyframes cupFloat {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-18px) rotate(3deg); }
}
@keyframes fadeScale { from { opacity: 0; scale: 0.92; } to { opacity: 1; scale: 1; } }

.media-main, .media-sub, .svc-img, .svc-row-media, .quality-media, .machine {
  background:
    radial-gradient(circle at 50% 45%, #ffffff 0%, #eef3fa 45%, #d6e2f1 100%);
}
.media-stack .media-main img,
.media-stack .media-sub img,
.svc-img img,
.svc-row-media img,
.quality-media img,
.machine img {
  object-fit: contain;
  padding: 7%;
  filter: drop-shadow(0 18px 22px rgba(11, 31, 58, 0.22));
}
.media-stack .media-sub img { padding: 12%; }
.svc-img img { padding: 9% 9% 14%; }
.svc-img::after { background: linear-gradient(180deg, transparent 70%, rgba(11, 31, 58, 0.18)); }
.svc-num { color: var(--navy); opacity: 0.18; font-size: 3rem; text-shadow: none; }
.svc-row-media::after { background: none; }
.svc-row-media .big-num { color: var(--navy); opacity: 0.12; text-shadow: none; font-size: 6rem; }
.quality-media::after { background: linear-gradient(135deg, rgba(20, 184, 166, 0.10), rgba(11, 31, 58, 0.06)); }
.quality-media img { padding: 10%; }
/* sol / reflet */
.svc-row-media::before, .machine::before {
  content: "";
  position: absolute;
  left: 15%; right: 15%; bottom: 7%;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(11, 31, 58, 0.22), transparent);
}
.machine { aspect-ratio: 4 / 5; }
.machine img { inset: 0 0 26% 0; height: 74%; padding: 8%; }
.machine:hover img { transform: scale(1.06); opacity: 1; }
.machine::before { bottom: 27%; }
.machine figcaption {
  padding: 18px 22px 22px;
  background: var(--navy-2);
  border-top: 3px solid var(--teal);
  min-height: 26%;
}
.machine figcaption span { max-height: none; }

@media (prefers-color-scheme: dark) {
  .media-main, .media-sub, .svc-img, .svc-row-media, .quality-media, .machine {
    background: radial-gradient(circle at 50% 45%, #f4f8fd 0%, #d9e4f2 55%, #b9cbe2 100%);
  }
}

@media (max-width: 860px) {
  .hero-visual { width: 78vw; right: -18vw; top: 34%; opacity: 0.35 !important; animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-visual { opacity: 1; }
}

/*********** Processus : toujours sur une ligne ***********/
@media (max-width: 1100px) {
  .process { gap: 10px; }
  .process .step-dot { width: 56px; height: 56px; }
  .process::before, .process::after { top: 28px; }
  .process h3 { font-size: 1rem; }
  .process p { font-size: 0.82rem; }
}
@media (max-width: 760px) {
  .process {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 8px 4px 16px;
    scrollbar-width: thin;
  }
  .process li { flex: 0 0 40%; scroll-snap-align: start; }
  .process::before, .process::after { display: none; }
}

.services-cards .svc h3 { font-size: 1.15rem; }
.services-cards .svc p { font-size: 0.92rem; }
@media (max-width: 1100px) {
  .services-cards { grid-template-columns: repeat(3, 1fr); }
  .galerie { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .services-cards { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .galerie { grid-template-columns: 1fr; }
}

/*********** Sélecteur de langue ***********/
header nav a.lang-switch {
  position: absolute;
  top: 50%;
  right: 152px;
  transform: translateY(-50%);
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}
@media (max-width: 700px) {
  header nav a.lang-switch { position: static; transform: none; width: auto; height: auto; padding: 6px 10px; }
}

/*********** Ajustements : galerie 4 machines & titre hero ***********/
.hero h1 { max-width: 640px; font-size: clamp(2.4rem, 5vw, 4.4rem); }
.machine {
  display: flex;
  flex-direction: column;
  aspect-ratio: auto;
}
.machine img {
  position: static;
  width: 100%;
  height: 260px;
  inset: auto;
}
.machine::before { bottom: auto; top: 238px; }
.machine figcaption {
  position: static;
  flex: 1;
  min-height: 0;
}

/*********** Menu déroulant de langue ***********/
header nav .lang-menu {
  position: absolute;
  top: 50%;
  right: 152px;
  transform: translateY(-50%);
  pointer-events: auto;
}
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 48px;
  padding: 0 12px 0 14px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: bold;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.lang-toggle:hover,
.lang-menu.is-open .lang-toggle { background-color: var(--teal); border-color: var(--teal); }
.lang-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.lang-globe { width: 18px; height: 18px; }
.lang-chevron { width: 16px; height: 16px; transition: transform 0.25s ease; }
.lang-menu.is-open .lang-chevron { transform: rotate(180deg); }

.lang-list {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 170px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(11, 31, 58, 0.28);
  border-top: 3px solid var(--teal);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.lang-menu.is-open .lang-list { opacity: 1; visibility: visible; transform: none; }

header nav .lang-list .lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 0;
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
header nav .lang-list a.lang-option:hover,
header nav .lang-list a.lang-option:focus-visible { background: rgba(20, 184, 166, 0.12); border: 0; color: var(--navy); outline: none; }
.lang-option.is-current { color: var(--teal) !important; cursor: default; }
.lang-option svg { width: 16px; height: 16px; }

@media (max-width: 700px) {
  header nav .lang-menu { position: relative; top: auto; right: auto; transform: none; }
  .lang-toggle { height: 40px; padding: 0 10px; }
}
