:root {
  --bg: #f5f5f7;
  --panel: #ffffff;
  --ink: #111111;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --blue: #0071e3;
  --orange: #f26d21;
  --dark: #050505;
  --dark-2: #121214;
  --radius: 8px;
  --container: 1180px;
  --header-h: 64px;
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.10);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #08090b;
  --panel: #14161a;
  --ink: #f5f5f7;
  --muted: #a1a1a6;
  --line: #30333a;
  --dark: #000000;
  --dark-2: #101115;
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  line-height: 1.45;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
select {
  font: inherit;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.38);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-h);
  border-bottom: 1px solid rgba(210, 210, 215, 0.76);
  background: rgba(245, 245, 247, 0.78);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
}

html[data-theme="dark"] .site-header {
  background: rgba(8, 9, 11, 0.78);
}

.navbar {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.nav-logo-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.nav-logo-text {
  width: 112px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
}

.nav-links a {
  transition: color 0.18s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

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

.btn-primary {
  color: #ffffff;
  background: var(--blue);
}

.btn-primary:hover {
  background: #0066cc;
}

.btn-ghost {
  color: var(--blue);
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(0, 113, 227, 0.22);
}

html[data-theme="dark"] .btn-ghost {
  background: rgba(20, 22, 26, 0.82);
  border-color: rgba(0, 113, 227, 0.34);
}

.btn-ghost:hover {
  background: #ffffff;
  border-color: rgba(0, 113, 227, 0.45);
}

.page-hero,
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - var(--header-h));
  color: #ffffff;
  background: var(--dark);
}

.hero-bg,
.page-hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}

.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.18) 42%, rgba(0, 0, 0, 0.82)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.70), rgba(0, 0, 0, 0.10) 70%);
}

.hero-inner,
.page-hero-inner {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-content: center;
  justify-items: start;
  padding-top: 76px;
  padding-bottom: 84px;
}

.hero-copy,
.page-hero-copy {
  max-width: 680px;
}

.eyebrow,
.hero-kicker {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0;
}

.section .eyebrow,
.product-detail .eyebrow {
  color: var(--orange);
}

.hero-title,
.page-title {
  margin: 0;
  font-size: 5.8rem;
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-subtitle,
.page-subtitle {
  margin: 20px 0 0;
  max-width: 590px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.28rem;
}

.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.quick-strip {
  position: relative;
  z-index: 2;
  margin-top: -54px;
}

.quick-strip-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

html[data-theme="dark"] .quick-strip-inner,
html[data-theme="dark"] .quick-item {
  background: rgba(20, 22, 26, 0.88);
}

.quick-item {
  min-height: 108px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.86);
}

.quick-item strong {
  display: block;
  font-size: 1.22rem;
}

.quick-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.section {
  padding: 96px 0;
}

.section-compact {
  padding: 64px 0;
}

.section-title {
  max-width: 820px;
  margin: 0 auto 14px;
  text-align: center;
  font-size: 3.6rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.section-subtitle {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  color: var(--muted);
  font-size: 1.16rem;
}

.duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 44px;
}

.tile {
  min-height: 520px;
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(220px, 1fr);
  overflow: hidden;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

html[data-theme="dark"] .tile,
html[data-theme="dark"] .flow-step,
html[data-theme="dark"] .product-card,
html[data-theme="dark"] .card,
html[data-theme="dark"] .devis-panel,
html[data-theme="dark"] .spec-panel,
html[data-theme="dark"] .cta-band {
  background: var(--panel);
}

.tile.dark {
  color: #ffffff;
  background: var(--dark-2);
}

.tile-copy {
  position: relative;
  z-index: 1;
  padding: 34px;
}

.tile h3 {
  margin: 0;
  font-size: 2.3rem;
  line-height: 1.05;
}

.tile p {
  max-width: 360px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.tile.dark p {
  color: rgba(255, 255, 255, 0.72);
}

.tile .btn {
  margin-top: 20px;
}

.tile-media {
  position: static;
  align-self: end;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  padding: 0 24px 24px;
}

.mini-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 44px;
}

.flow-step {
  min-height: 220px;
  padding: 28px;
  border-radius: var(--radius);
  background: #ffffff;
}

.flow-step span {
  color: var(--orange);
  font-weight: 800;
}

.flow-step h3 {
  margin: 32px 0 8px;
  font-size: 1.55rem;
}

.flow-step p {
  margin: 0;
  color: var(--muted);
}

.store-intro {
  padding: 66px 0 34px;
}

.store-title {
  margin: 0;
  text-align: center;
  font-size: 4rem;
  line-height: 1;
}

.store-subtitle {
  max-width: 560px;
  margin: 16px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 1.14rem;
}

.store-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 30px 0 0;
}

.store-filter {
  min-height: 36px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

html[data-theme="dark"] .store-filter {
  background: var(--panel);
}

.store-filter-active,
.store-filter:hover {
  color: #ffffff;
  border-color: var(--blue);
  background: var(--blue);
}

#catalogue {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  min-height: 560px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #ffffff;
}

.product-card .card-tag {
  display: inline-flex;
  margin-bottom: 14px;
}

.product-card .card-title {
  margin: 0;
  font-size: 2rem;
  line-height: 1.08;
}

.product-card .product-image {
  height: 360px;
  margin-top: 28px;
  background: #eef0f2;
  display: flex;
  align-items: center;
  justify-content: center;
}

html[data-theme="dark"] .product-card .product-image,
html[data-theme="dark"] .product-visual,
html[data-theme="dark"] .product-price,
html[data-theme="dark"] .product-leadtime {
  background: #1c1f25;
}

.product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-card .card-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  color: var(--muted);
}

.catalogue-price {
  color: var(--orange);
  font-weight: 800;
}

.catalogue-note {
  color: var(--muted);
}

.card,
.devis-panel,
.spec-panel {
  border-radius: var(--radius);
  background: #ffffff;
}

.product-card,
.card,
.devis-panel,
.spec-panel {
  padding: 30px;
}

.card-tag,
.product-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--orange);
  background: rgba(242, 109, 33, 0.10);
  font-size: 0.8rem;
  font-weight: 800;
}

.cta-band {
  margin-top: 22px;
  padding: 34px;
  border-radius: var(--radius);
  text-align: center;
  background: #ffffff;
}

.cta-band h2 {
  margin: 0;
  font-size: 2.3rem;
}

.cta-band p {
  margin: 8px auto 0;
  max-width: 520px;
  color: var(--muted);
}

.cta-band .btn {
  margin-top: 20px;
}

.service-hero {
  padding: 92px 0 56px;
  text-align: center;
}

.service-hero h1 {
  max-width: 860px;
  margin: 0 auto;
  font-size: 5rem;
  line-height: 0.98;
}

.service-hero p {
  max-width: 560px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 1.18rem;
}

.service-hero .hero-actions {
  justify-content: center;
}

.devis-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-top: 30px;
}

.devis-panel h2 {
  margin: 0;
  font-size: 2rem;
}

.devis-panel p {
  margin: 6px 0 0;
  color: var(--muted);
}

.product-hero {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: center;
  padding: 56px 0;
  background: #ffffff;
}

html[data-theme="dark"] .product-hero {
  background: var(--bg);
}

.product-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 42px;
  align-items: center;
}

.product-visual {
  position: relative;
  min-height: 620px;
  border-radius: var(--radius);
  background: #eef0f2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-carousel {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.product-carousel > img {
  align-self: stretch;
}

.carousel-control {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(245, 245, 247, 0.84);
  box-shadow: var(--shadow);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-50%);
}

.carousel-prev {
  left: 18px;
}

.carousel-next {
  right: 18px;
}

html[data-theme="dark"] .carousel-control {
  background: rgba(20, 22, 26, 0.88);
}

.carousel-thumbs {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px;
}

.carousel-thumb {
  flex: 0 0 86px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: rgba(245, 245, 247, 0.86);
  cursor: pointer;
  overflow: hidden;
}

.carousel-thumb.is-active {
  border-color: var(--blue);
}

.carousel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-summary {
  position: static;
}

.product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.product-badge.badge-highlight {
  color: var(--blue);
  background: rgba(0, 113, 227, 0.10);
}

.product-title {
  margin: 0;
  font-size: 4.2rem;
  line-height: 0.96;
  letter-spacing: 0;
}

.product-subtitle {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.18rem;
}

.product-price-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0;
}

.product-price,
.product-leadtime {
  padding: 18px;
  border-radius: var(--radius);
  background: var(--bg);
}

.product-price-label {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.product-price-value {
  display: block;
  margin-top: 5px;
  font-size: 1.12rem;
  font-weight: 800;
}

.product-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-detail {
  padding: 76px 0;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.spec-panel h3 {
  margin: 0;
  font-size: 1.35rem;
}

.spec-panel p {
  margin: 8px 0 0;
  color: var(--muted);
}

footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
}

html[data-theme="dark"] footer {
  background: var(--bg);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 28px;
  padding-bottom: 28px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner a {
  color: var(--blue);
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  :root {
    --header-h: 108px;
  }

  .navbar {
    flex-wrap: wrap;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 20px;
    overflow-x: auto;
  }

  .nav-cta {
    margin-left: auto;
  }

  .hero-title,
  .page-title,
  .service-hero h1,
  .product-title {
    font-size: 4rem;
  }

  .duo,
  .mini-flow,
  #catalogue,
  .product-hero-grid,
  .spec-grid,
  .devis-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .tile,
  .product-card {
    min-height: 500px;
  }

  .product-visual {
    min-height: 460px;
  }

  .carousel-thumbs {
    left: 14px;
    right: 14px;
  }
}

@media (max-width: 680px) {
  .container {
    padding: 0 18px;
  }

  .nav-logo-text {
    display: none;
  }

  .nav-cta {
    width: 100%;
    margin-left: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nav-cta .btn {
    min-width: 0;
    padding-inline: 12px;
  }

  .hero,
  .page-hero,
  .product-hero {
    min-height: auto;
  }

  .hero-inner,
  .page-hero-inner {
    min-height: 620px;
    padding-top: 54px;
    padding-bottom: 72px;
  }

  .hero-title,
  .page-title,
  .service-hero h1,
  .product-title {
    font-size: 2.7rem;
  }

  .hero-subtitle,
  .page-subtitle {
    font-size: 1.05rem;
  }

  .quick-strip {
    margin-top: 0;
  }

  .quick-strip-inner {
    grid-template-columns: minmax(0, 1fr);
    box-shadow: none;
  }

  .section {
    padding: 64px 0;
  }

  .section-title,
  .store-title {
    font-size: 2.35rem;
  }

  .tile-copy,
  .product-card,
  .devis-panel,
  .spec-panel,
  .cta-band {
    padding: 22px;
  }

  .tile {
    min-height: 430px;
    grid-template-rows: auto minmax(180px, 1fr);
  }

  .product-card .product-image {
    height: 260px;
  }

  .product-visual {
    min-height: 340px;
  }

  .carousel-control {
    width: 38px;
    height: 38px;
    font-size: 1.6rem;
  }

  .carousel-thumb {
    flex-basis: 72px;
    height: 54px;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .navbar {
    gap: 12px;
  }

  .nav-links {
    gap: 14px;
    font-size: 0.82rem;
  }

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

  .nav-cta a[href$="store.html"] {
    display: none;
  }

  .btn {
    min-height: 38px;
    font-size: 0.84rem;
  }

  .hero-title,
  .page-title,
  .service-hero h1,
  .product-title {
    font-size: 2.25rem;
  }

  .store-title {
    font-size: 2.2rem;
  }
}
