/* CEDETI INGENIERIE — temporary EN/DE landing page
   Palette and type sourced from the CEDETI brand (cedeti-ingenierie.com):
   navy #0d3b7f / #2e4392, grays #58585a #7e8a98 #9c9e9f, Oswald + Roboto */

:root {
  --navy: #0d3b7f;
  --navy-dark: #082a5c;
  --navy-alt: #2e4392;
  --gray-dark: #58585a;
  --gray-mid: #7e8a98;
  --gray-light: #9c9e9f;
  --bg-light: #f4f6f9;
  --white: #ffffff;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(13, 59, 127, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: var(--gray-dark);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Oswald', 'Arial Narrow', sans-serif;
  color: var(--navy);
  margin: 0 0 16px 0;
  font-weight: 600;
}

a { color: inherit; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid #ececec;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.site-header img.logo {
  height: 48px;
  display: block;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  flex: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.header-nav a.nav-link {
  text-decoration: none;
  color: var(--navy);
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.header-nav a.nav-link:hover { color: var(--navy-alt); }
.header-nav a.nav-link.is-current {
  color: var(--navy-alt);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.btn {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 13px;
  padding: 12px 26px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--white); color: var(--navy); }
.btn-primary:hover { box-shadow: 0 8px 20px rgba(0,0,0,0.15); }

.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }

.btn-solid { background: var(--navy); color: var(--white); }
.btn-solid:hover { background: var(--navy-alt); box-shadow: 0 8px 20px rgba(13,59,127,0.25); }

.header-nav .btn { padding: 10px 20px; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 16px;
  margin-left: 4px;
  border-left: 1px solid #e2e5ea;
}

.lang-switch a { display: flex; line-height: 0; }

.lang-switch img {
  width: 24px;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
  transition: transform .15s ease;
}

.lang-switch img:hover { transform: scale(1.15); }

.lang-switch a.social img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  box-shadow: none;
}

/* ---------- Hero slider ---------- */
.hero-slider {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  background: var(--navy);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s ease;
}
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-slide-overlay {
  position: absolute;
  top: 0;
  right: 15.1%;
  bottom: 0;
  width: 28.1%;
  background: rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 20px 30px;
}

.hero-slide-icon { height: 56px; width: auto; }

.hero-slide-overlay h2 {
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 1.15;
  text-transform: uppercase;
  margin: 0;
}

.hero-slide-btn {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--white);
  background: rgba(0,58,129,0.75);
  padding: 10px 22px;
  border-radius: 2px;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.hero-slide-btn:hover { background: var(--white); color: #000; }

.hero-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(0,0,0,0.5);
  border: none;
  color: var(--white);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-slider-nav:hover { background: #000; }
.hero-slider-nav.prev { left: 16px; }
.hero-slider-nav.next { right: 16px; }

.hero-slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  padding: 0;
  cursor: pointer;
}
.hero-dot.is-active { background: var(--white); }

@media (max-width: 900px) {
  .hero-slider { height: 320px; }
  .hero-slide-overlay h2 { font-size: 24px; }
}

@media (max-width: 600px) {
  .hero-slider { height: 280px; }
  .hero-slide-overlay { right: 0; width: 100%; background: rgba(0,0,0,0.55); padding: 16px; gap: 10px; }
  .hero-slide-overlay h2 { font-size: 20px; }
  .hero-slide-icon { height: 40px; }
  .hero-slider-nav { width: 32px; height: 32px; font-size: 18px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-alt) 100%);
  color: var(--white);
  overflow: hidden;
  padding: 96px 0 110px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.5) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.5) 0 1px, transparent 1px 64px);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 0 0 60px rgba(255,255,255,0.04), 0 0 0 120px rgba(255,255,255,0.02);
  pointer-events: none;
}

.hero .wrap { position: relative; z-index: 2; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: 0.03em;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4fd1a5;
  box-shadow: 0 0 0 3px rgba(79,209,165,0.25);
}

.hero h1 {
  color: var(--white);
  font-size: 44px;
  max-width: 720px;
  margin-bottom: 18px;
  line-height: 1.15;
}

.hero p.lead {
  max-width: 620px;
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-bottom: 40px;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.75);
}

.hero-tags span { position: relative; padding-left: 16px; }
.hero-tags span::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  width: 8px; height: 8px; margin-top: -4px;
  background: #4fd1a5;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- About ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-light); }
#moyens { background: var(--white); }

.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head h2 { font-size: 32px; }
.section-head .kicker {
  display: block;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12.5px;
  color: var(--gray-light);
  margin-bottom: 2px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: start;
}

.about-grid h2 { font-size: 32px; text-align: left; }

.about-grid p { margin: 0 0 16px 0; color: var(--gray-dark); font-size: 15.5px; }
.about-grid p.muted { color: var(--gray-mid); }
.about-grid p strong { color: var(--navy); }

.stat-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #e7eaf0;
  border-radius: var(--radius);
  overflow: hidden;
}

.stat {
  padding: 22px 26px;
  border-bottom: 1px solid #e7eaf0;
  background: var(--white);
}
.stat:last-child { border-bottom: none; }

.stat .num {
  font-family: 'Oswald', sans-serif;
  font-size: 30px;
  color: var(--navy);
  font-weight: 600;
  display: block;
}

.stat .label {
  font-size: 13px;
  color: var(--gray-mid);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ---------- Expertise cards ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #4fd1a5, var(--navy-alt));
}

.card .icon {
  height: 44px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}

.card .icon img { height: 100%; width: auto; display: block; }

.card h3 {
  color: var(--white);
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
  text-align: center;
}

.card ul {
  list-style: none;
  margin: 0; padding: 0;
  font-size: 13.5px;
  color: rgba(255,255,255,0.8);
}

.card ul li {
  padding: 6px 0 6px 16px;
  position: relative;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.card ul li:first-child { border-top: none; }
.card ul li::before {
  content: "";
  position: absolute; left: 0; top: 14px;
  width: 6px; height: 6px;
  background: #4fd1a5;
}

/* ---------- Clients ---------- */
.clients-wall {
  display: block;
  width: 100%;
  max-width: 980px;
  height: auto;
  margin: 0 auto;
}

/* ---------- Logo marquee ---------- */
#clients { padding-top: 32px; padding-bottom: 32px; }

.logo-marquee {
  display: flex;
  flex-direction: column;
  gap: 22px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.marquee-row {
  overflow: hidden;
  width: 100%;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 44px;
  width: max-content;
  animation: marquee-scroll 55s linear infinite;
}

.marquee-row:nth-child(1) .marquee-track { animation-duration: 62s; }
.marquee-row:nth-child(2) .marquee-track { animation-duration: 70s; animation-direction: reverse; }
.marquee-row:nth-child(3) .marquee-track { animation-duration: 58s; }

.marquee-row:hover .marquee-track { animation-play-state: paused; }

.marquee-item {
  flex: 0 0 auto;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.marquee-item img {
  height: 100%;
  max-width: 130px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.55;
  transition: filter .2s ease, opacity .2s ease;
}

.marquee-item img:hover {
  filter: none;
  opacity: 1;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee-row { overflow-x: auto; }
}

/* ---------- Contact ---------- */
.contact {
  background: linear-gradient(160deg, var(--navy-dark), var(--navy-alt));
  color: var(--white);
  padding: 80px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.contact h2 { color: var(--white); font-size: 30px; }
.contact p.lead { color: rgba(255,255,255,0.8); font-size: 16px; max-width: 480px; }

.contact-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 32px;
}

.contact-line {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
  font-size: 15px;
}
.contact-line:last-child { margin-bottom: 0; }
.contact-line svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; stroke: #4fd1a5; fill: none; }
.contact-line a { text-decoration: none; color: var(--white); }
.contact-line a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-light);
  padding: 32px 0;
  font-size: 13px;
  color: var(--gray-light);
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer img.logo { height: 30px; opacity: 0.85; }

.site-footer .foot-links a {
  text-decoration: none;
  color: var(--gray-mid);
  margin-left: 20px;
}
.site-footer .foot-links a:hover { color: var(--navy); }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  border: none;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 60;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, background .15s ease;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--navy-alt); }
.back-to-top svg { width: 20px; height: 20px; stroke: currentColor; fill: none; }

@media (max-width: 600px) {
  .back-to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-alt) 100%);
  color: var(--white);
  overflow: hidden;
  padding: 56px 0 64px;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.5) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.5) 0 1px, transparent 1px 64px);
  pointer-events: none;
}

.page-hero .wrap { position: relative; z-index: 2; }

.breadcrumb {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
}

.breadcrumb a { color: rgba(255,255,255,0.7); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb .sep { margin: 0 8px; opacity: 0.5; }
.breadcrumb .current { color: var(--white); }

.page-hero h1 { color: var(--white); font-size: 38px; margin-bottom: 14px; }
.page-hero p.lead { max-width: 640px; font-size: 16px; color: rgba(255,255,255,0.85); margin: 0; }

/* ---------- Phases (prestations) ---------- */
.phase-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 880px;
  margin: 0 auto;
}

.phase {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid #e7eaf0;
}
.phase:first-child { border-top: none; }

.phase .phase-num {
  font-family: 'Oswald', sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--navy-alt);
  opacity: 0.35;
  line-height: 1;
}

.phase h3 { font-size: 18px; margin-bottom: 10px; }

.phase ul, .phase p {
  list-style: none;
  margin: 0; padding: 0;
  font-size: 14.5px;
  color: var(--gray-dark);
}

.phase ul li {
  padding: 5px 0 5px 16px;
  position: relative;
}
.phase ul li::before {
  content: "";
  position: absolute; left: 0; top: 13px;
  width: 6px; height: 6px;
  background: #4fd1a5;
}

.section-text {
  margin-bottom: 32px;
}
.section-text p {
  font-size: 15.5px;
  color: var(--gray-dark);
  margin: 0 0 16px 0;
}
.section-text p:last-child { margin-bottom: 0; }

/* ---------- Legal content ---------- */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
}
.legal-content h2 {
  font-size: 20px;
  margin: 40px 0 12px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p {
  font-size: 15.5px;
  color: var(--gray-dark);
  line-height: 1.7;
  margin: 0 0 14px 0;
}
.legal-content p:last-child { margin-bottom: 0; }
.legal-content a { color: var(--navy); }

/* ---------- Callout ---------- */
.callout {
  max-width: 880px;
  margin: 0 auto;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 36px 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.callout::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #4fd1a5, var(--navy-alt));
}
.callout h3 { color: var(--white); font-size: 19px; margin-bottom: 12px; }
.callout p { margin: 0; color: rgba(255,255,255,0.85); font-size: 15px; }

/* ---------- Feature blocks (outils & méthodes) ---------- */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid #e7eaf0;
}
.feature-block:first-child { border-top: none; padding-top: 0; }
.feature-block:last-child { padding-bottom: 0; }

.feature-block.reverse .feature-media { order: 2; }
.feature-block.reverse .feature-text { order: 1; }

.feature-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature-icon svg { width: 24px; height: 24px; stroke: var(--navy); fill: none; }

.feature-text h3 { font-size: 22px; margin-bottom: 14px; }
.feature-text p { font-size: 15px; color: var(--gray-dark); margin: 0 0 14px 0; }
.feature-text p:last-child { margin-bottom: 0; }

.feature-text ul { list-style: none; margin: 0 0 14px 0; padding: 0; font-size: 14.5px; color: var(--gray-dark); }
.feature-text ul li { padding: 5px 0 5px 16px; position: relative; }
.feature-text ul li::before {
  content: "";
  position: absolute; left: 0; top: 13px;
  width: 6px; height: 6px;
  background: #4fd1a5;
}

.feature-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-note {
  grid-column: 1 / -1;
  margin: 8px 0 0 0;
  padding-top: 24px;
  border-top: 1px solid #e7eaf0;
  font-size: 15px;
  color: var(--gray-dark);
}
.feature-note strong { color: var(--navy); }

.feature-note.standalone {
  grid-column: auto;
  border-top: none;
  padding-top: 0;
  max-width: 880px;
  margin: 24px auto 0;
}

.block-intro {
  font-size: 14.5px;
  color: var(--gray-dark);
  margin: 0 0 16px 0;
}

.feature-media .media-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.feature-media .media-pair + .media-pair { margin-top: 16px; }

.feature-block.text-only { grid-template-columns: 1fr; }
.feature-block.text-only .feature-text { max-width: 720px; }

.scan-gallery {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 12px;
  aspect-ratio: 4 / 3;
}

.scan-gallery img.gallery-main { grid-row: 1 / span 3; }

.scan-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Phase list preview (home) ---------- */
.phase-list-preview .phase h3 { margin-bottom: 0; }

/* ---------- Technologies preview (home) ---------- */
.tech-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.tech-preview-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}
.tech-preview-card:hover { transform: translateY(-3px); }
.tech-preview-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tech-preview-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tech-preview-media-icon svg { width: 52px; height: 52px; stroke: var(--navy); fill: none; }
.tech-preview-media.tech-preview-media-logo {
  padding: 40px;
  box-sizing: border-box;
  background: var(--white);
}
.tech-preview-media.tech-preview-media-logo img { width: 100%; height: 100%; object-fit: contain; }
.tech-preview-card h3 { font-size: 16px; margin: 16px 20px 20px; text-align: center; }

/* ---------- Lightbox ---------- */
.lightbox-zone img { cursor: zoom-in; }

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 20, 40, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 48px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.lightbox-overlay.is-open { opacity: 1; pointer-events: auto; }

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 78vh;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--white);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--white);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-caption-bar {
  margin-top: 18px;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.lightbox-caption {
  margin: 0;
  color: rgba(255,255,255,0.9);
  font-size: 14px;
  line-height: 1.5;
}

.lightbox-counter {
  color: rgba(255,255,255,0.85);
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  letter-spacing: 0.05em;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  padding: 6px 16px;
}

.services-more {
  text-align: center;
  margin-top: 40px;
}

/* ---------- Sector chips ---------- */
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 880px;
  margin: 0 auto;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-light);
  border: 1px solid #e7eaf0;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  color: var(--navy);
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.01em;
}

.chip .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4fd1a5;
  flex-shrink: 0;
}

/* ---------- Tool logos ---------- */
.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 56px;
  margin-bottom: 56px;
}

.media-quad {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.media-quad img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: zoom-in;
}

.tool-group { margin-bottom: 0; }
.tool-group:last-child { margin-bottom: 0; }
.tool-group h4 {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 18px;
}

.tool-group h4 a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
.tool-group h4 a:hover {
  color: var(--navy-alt);
  border-bottom-color: currentColor;
}

.tool-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
}

.tool-logos img {
  height: 34px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.65;
  transition: filter .2s ease, opacity .2s ease;
}
.tool-logos img:hover { filter: none; opacity: 1; }

/* ---------- Norms list (two columns) ---------- */
.norms-list {
  columns: 2;
  column-gap: 40px;
  max-width: 880px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}
.norms-list li {
  break-inside: avoid;
  padding: 8px 0 8px 18px;
  position: relative;
  font-size: 14.5px;
  color: var(--gray-dark);
  border-top: 1px solid #e7eaf0;
}
.norms-list li:nth-child(-n+2) { border-top: none; }
.norms-list li::before {
  content: "";
  position: absolute; left: 0; top: 17px;
  width: 6px; height: 6px;
  background: #4fd1a5;
}

/* ---------- Habilitations ---------- */
.habilitations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 880px;
  margin: 0 auto;
}

.habilitations-grid h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 6px;
}

.habilitations-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14.5px;
  color: var(--gray-dark);
}
.habilitations-grid ul li {
  padding: 6px 0 6px 16px;
  position: relative;
}
.habilitations-grid ul li::before {
  content: "";
  position: absolute; left: 0; top: 14px;
  width: 6px; height: 6px;
  background: #4fd1a5;
}

/* ---------- Portfolio ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 48px;
}

.filter-btn {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 12.5px;
  background: var(--white);
  color: var(--navy);
  border: 1px solid #e2e5ea;
  border-radius: 999px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.filter-btn:hover { border-color: var(--navy-alt); }
.filter-btn.is-active { background: var(--navy); color: var(--white); border-color: var(--navy); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
}

.portfolio-preview { margin-top: 40px; }
.portfolio-preview .portfolio-card img { cursor: pointer; }

.portfolio-preview-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 24px 0 8px;
}
.portfolio-preview-controls[hidden] { display: none; }
.portfolio-preview-nav {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #dfe3ea;
  background: var(--white);
  color: var(--navy);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.portfolio-preview-nav:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.portfolio-preview-dots { display: flex; gap: 8px; }
.portfolio-preview-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d7dbe3;
  border: none;
  padding: 0;
  cursor: pointer;
}
.portfolio-preview-dot.is-active { background: var(--navy); }

.portfolio-card {
  position: relative;
  overflow: hidden;
  background: var(--navy);
}

.portfolio-card.is-hidden { display: none; }

.portfolio-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform .35s ease;
}
.portfolio-card:hover img { transform: scale(1.06); }

.portfolio-card .card-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px 20px 16px;
  background: linear-gradient(0deg, rgba(8,20,40,0.88) 0%, rgba(8,20,40,0.55) 55%, transparent 100%);
  pointer-events: none;
}

.portfolio-card .card-count {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(8,20,40,0.65);
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-size: 11.5px;
  letter-spacing: 0.03em;
  padding: 5px 10px;
  border-radius: 999px;
}
.portfolio-card .card-count svg { width: 13px; height: 13px; stroke: var(--white); fill: none; }

.portfolio-card .card-tag {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 11px;
  color: #4fd1a5;
  margin-bottom: 6px;
}

.portfolio-card .card-title {
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  line-height: 1.3;
  margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-preview-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 34px; }

  .site-header .wrap { position: relative; }
  .nav-toggle { display: flex; }
  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    background: var(--white);
    padding: 12px 24px 24px;
    border-top: 1px solid #ececec;
    box-shadow: 0 16px 24px rgba(0,0,0,0.1);
    max-height: calc(100vh - 84px);
    overflow-y: auto;
  }
  .header-nav.is-open { display: flex; }
  .header-nav a.nav-link { width: 100%; padding: 12px 0; border-bottom: 1px solid #f2f2f2; }
  .header-nav .btn { margin-top: 12px; width: 100%; text-align: center; }
  .header-nav .lang-switch {
    padding-left: 0;
    margin-left: 0;
    border-left: none;
    border-top: 1px solid #ececec;
    margin-top: 12px;
    padding-top: 12px;
    width: 100%;
  }

  .feature-block { grid-template-columns: 1fr; gap: 28px; }
  .feature-block.reverse .feature-media { order: 1; }
  .feature-block.reverse .feature-text { order: 2; }
  .habilitations-grid { grid-template-columns: 1fr; gap: 28px; }
  .tools-grid { grid-template-columns: 1fr; gap: 32px; }
  .media-quad { grid-template-columns: 1fr 1fr; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}

@media (max-width: 600px) {
  .cards-grid { grid-template-columns: 1fr; }
  .tech-preview-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 72px; }
  .section { padding: 64px 0; }
  .site-footer .wrap { flex-direction: column; text-align: center; }
  .site-footer .foot-links a { margin: 0 8px; }
  .page-hero h1 { font-size: 28px; }
  .phase { grid-template-columns: 1fr; gap: 8px; }
  .media-pair { grid-template-columns: 1fr; }
  .marquee-item { height: 40px; }
  .marquee-item img { max-width: 96px; }
  .logo-marquee { gap: 14px; }
  .scan-gallery { grid-template-columns: 1fr 1fr; aspect-ratio: auto; }
  .scan-gallery img { height: auto; aspect-ratio: 4 / 3; }
  .scan-gallery img.gallery-main { grid-row: 1 / span 2; aspect-ratio: auto; height: 100%; }
  .norms-list { columns: 1; }
  .tool-logos { gap: 20px; }
  .tool-logos img { height: 28px; }
  .media-quad { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .filter-bar { gap: 8px; }
  .filter-btn { padding: 8px 14px; font-size: 11.5px; }
  .lightbox-nav { width: 40px; height: 40px; font-size: 22px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}
