:root {
  --ink: #07111f;
  --ink-soft: #0d1b2d;
  --ink-card: #112238;
  --paper: #f4f8fb;
  --white: #ffffff;
  --muted: #a9b9c9;
  --text: #dbe7f1;
  --green: #58d14f;
  --green-dark: #2fae42;
  --blue: #36a9ff;
  --blue-soft: #7bc9ff;
  --line: rgba(255, 255, 255, 0.11);
  --line-dark: rgba(7, 17, 31, 0.12);
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.23);
  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 34px;
  --container: 1180px;
  --header-h: 82px;
}

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

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

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--blue-soft);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--ink);
  background: var(--white);
  font-weight: 800;
}

.skip-link:focus {
  transform: none;
}

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

.section {
  position: relative;
  padding: clamp(72px, 9vw, 118px) 0;
}

.section-tight {
  padding: clamp(54px, 6vw, 82px) 0;
}

.section-light {
  color: var(--ink);
  background: var(--paper);
}

.section-white {
  color: var(--ink);
  background: var(--white);
}

.section-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--green);
  font-size: 0.79rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 6px color-mix(in srgb, currentColor 14%, transparent);
  content: "";
}

.section-light .eyebrow,
.section-white .eyebrow {
  color: var(--green-dark);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

h1 {
  margin-bottom: 24px;
  max-width: 860px;
  font-size: clamp(2.65rem, 6.5vw, 5.6rem);
  font-weight: 880;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.65rem);
  font-weight: 850;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.18rem, 2vw, 1.5rem);
  font-weight: 820;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.lead {
  max-width: 710px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  line-height: 1.65;
}

.section-light .lead,
.section-white .lead,
.section-light .muted,
.section-white .muted {
  color: #546577;
}

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

.accent-green {
  color: var(--green);
}

.accent-blue {
  color: var(--blue-soft);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.52fr);
  gap: 44px;
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section-heading > :last-child {
  justify-self: end;
  max-width: 460px;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 17, 31, 0.88);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  min-width: 224px;
  align-items: center;
  gap: 11px;
}

.brand img {
  width: 52px;
  height: 43px;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand strong {
  color: var(--white);
  font-size: 0.98rem;
  font-weight: 860;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  line-height: 1.2;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.desktop-nav a {
  padding: 9px 11px;
  border-radius: 10px;
  color: #becbd8;
  font-size: 0.88rem;
  font-weight: 720;
  white-space: nowrap;
  transition: color 180ms ease, background 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--white);
  background: transparent;
  cursor: pointer;
}

.menu-button svg {
  width: 23px;
  height: 23px;
}

.mobile-menu {
  position: fixed;
  z-index: 99;
  inset: var(--header-h) 0 0;
  display: none;
  padding: 26px 20px 40px;
  background: rgba(7, 17, 31, 0.985);
  overflow-y: auto;
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu nav {
  display: grid;
  gap: 8px;
}

.mobile-menu nav a {
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 790;
}

.mobile-menu .button {
  width: 100%;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #06111f;
  background: var(--green);
  box-shadow: 0 12px 30px rgba(88, 209, 79, 0.15);
  font-size: 0.94rem;
  font-weight: 840;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: #6ce060;
  box-shadow: 0 16px 36px rgba(88, 209, 79, 0.24);
}

.button-blue {
  color: var(--white);
  background: #168ee8;
  box-shadow: 0 12px 30px rgba(22, 142, 232, 0.19);
}

.button-blue:hover {
  background: #2ba6ff;
  box-shadow: 0 16px 36px rgba(22, 142, 232, 0.28);
}

.button-ghost {
  border-color: var(--line);
  color: var(--white);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: none;
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  box-shadow: none;
}

.section-light .button-ghost,
.section-white .button-ghost {
  border-color: var(--line-dark);
  color: var(--ink);
  background: transparent;
}

.button-small {
  min-height: 42px;
  padding: 10px 15px;
  border-radius: 12px;
  font-size: 0.86rem;
}

.button svg,
.text-link svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-soft);
  font-weight: 800;
}

.section-light .text-link,
.section-white .text-link {
  color: #0878c9;
}

.hero {
  position: relative;
  min-height: min(840px, calc(100svh - var(--header-h)));
  padding: clamp(60px, 7vw, 90px) 0 58px;
  color: var(--ink);
  background-color: #f8fbfe;
  background-image:
    linear-gradient(rgba(7, 17, 31, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 17, 31, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  top: -260px;
  right: -180px;
  width: 750px;
  height: 750px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(54, 169, 255, 0.22), rgba(54, 169, 255, 0) 66%);
  content: "";
  pointer-events: none;
}

.hero::after {
  position: absolute;
  bottom: -250px;
  left: -240px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(88, 209, 79, 0.16), rgba(88, 209, 79, 0) 68%);
  content: "";
  pointer-events: none;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(34px, 4vw, 54px);
}

.hero-copy {
  max-width: 1120px;
}

.hero-copy h1 {
  max-width: 1100px;
}

.hero-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(300px, 0.52fr);
  gap: clamp(32px, 4vw, 54px);
  align-items: center;
}

.hero-actions {
  display: grid;
  align-content: center;
}

.hero-actions .button-row {
  display: grid;
  margin-top: 0;
}

.hero-actions .button {
  width: 100%;
  justify-content: center;
}

.hero .lead {
  max-width: 880px;
  color: #4e6174;
}

.hero .eyebrow {
  color: var(--green-dark);
}

.hero .accent-green {
  color: #238e36;
}

.hero .button-ghost {
  border-color: rgba(7, 17, 31, 0.22);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
}

.hero .button-ghost:hover {
  background: var(--white);
}

.hero-visual {
  position: relative;
  min-height: 0;
  aspect-ratio: 1400 / 933;
  display: grid;
  align-items: center;
}

.hero-visual::before {
  position: absolute;
  inset: 5% 2%;
  border: 1px solid rgba(13, 109, 173, 0.15);
  border-radius: 44px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(229, 243, 252, 0.7)),
    radial-gradient(circle at 72% 38%, rgba(54, 169, 255, 0.2), transparent 42%);
  box-shadow: 0 28px 70px rgba(32, 77, 108, 0.17);
  content: "";
  transform: rotate(-2deg);
}

.hero-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  object-fit: contain;
  filter: drop-shadow(0 28px 28px rgba(16, 43, 66, 0.25));
}

.visual-tag {
  position: absolute;
  z-index: 2;
  display: grid;
  min-width: 150px;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid rgba(7, 17, 31, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 34px rgba(30, 72, 104, 0.17);
  backdrop-filter: blur(12px);
}

.visual-tag strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.visual-tag span {
  color: #5f7183;
  font-size: 0.73rem;
}

.visual-tag.tag-one {
  top: 12%;
  left: -3%;
}

.visual-tag.tag-two {
  right: -1%;
  bottom: 13%;
}

.trust-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin-top: 18px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--line-dark);
  overflow: hidden;
}

.trust-item {
  min-height: 0;
  padding: 21px 20px;
  background: rgba(255, 255, 255, 0.94);
}

.trust-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 1rem;
}

.trust-item span {
  color: #5b6d7f;
  font-size: 0.83rem;
  line-height: 1.45;
}

.problem-strip {
  position: relative;
  z-index: 4;
  margin-top: -36px;
}

.problem-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--white);
  background: linear-gradient(115deg, #112840, #0f2034 58%, #122a2a);
  box-shadow: var(--shadow);
}

.problem-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.service-card {
  position: relative;
  grid-column: span 4;
  display: flex;
  min-height: 390px;
  flex-direction: column;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
  overflow: hidden;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 52px rgba(25, 49, 70, 0.13);
}

.service-card.primary {
  grid-column: span 7;
  min-height: 590px;
  isolation: isolate;
  color: var(--white);
  background-color: #080b0f;
  background-image:
    linear-gradient(180deg, rgba(2, 5, 8, 0.88) 0%, rgba(2, 5, 8, 0.62) 30%, rgba(2, 5, 8, 0.08) 52%, rgba(2, 5, 8, 0.12) 72%, rgba(2, 5, 8, 0.84) 100%),
    url("../media/service-batterie-artisanale-v3.webp");
  background-position: center, center 58%;
  background-size: cover, cover;
  background-repeat: no-repeat;
}

.service-card.primary .card-content {
  display: grid;
  grid-template-rows: auto minmax(220px, 1fr) auto;
  gap: 16px;
  width: 100%;
  max-width: none;
  min-height: 522px;
}

.service-card.primary .service-copy {
  display: block;
  max-width: 560px;
}

.service-card.primary .service-number {
  display: block;
  margin-bottom: 10px;
}

.service-card.primary h3,
.service-card.primary p {
  max-width: 540px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.68);
}

.service-card.primary p {
  margin-bottom: 0;
  opacity: 0.88;
}

.service-card.primary .service-battery-photo {
  display: block;
  width: 100%;
  min-height: 220px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  pointer-events: none;
}

.service-card.primary .text-link {
  align-self: end;
  justify-self: start;
  margin-top: 0;
}

.service-card.solar {
  grid-column: span 5;
  min-height: 470px;
  color: var(--white);
  background:
    linear-gradient(150deg, rgba(4, 17, 29, 0.18), rgba(4, 17, 29, 0.91)),
    url("../media/solaire-toiture.webp") center/cover;
}

.service-card.bike {
  grid-column: span 12;
  min-height: 330px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(5, 16, 28, 0.97) 0%, rgba(5, 16, 28, 0.86) 42%, rgba(5, 16, 28, 0.2) 100%),
    url("../media/velo-noir.webp") 70% 54%/cover;
}

.service-card .card-content {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: flex-start;
}

.service-card p {
  max-width: 520px;
  color: currentColor;
  opacity: 0.78;
}

.service-card .text-link {
  margin-top: auto;
  padding: 11px 15px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.service-card:hover .text-link,
.service-card:focus-visible .text-link {
  color: var(--ink);
  background: var(--green);
  transform: translateX(3px);
}

.service-number {
  margin-bottom: auto;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.icon-card {
  min-height: 175px;
  padding: 22px;
  border: 1px solid var(--line-dark);
  border-radius: 18px;
  background: var(--white);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.icon-card:hover {
  transform: translateY(-3px);
  border-color: rgba(8, 123, 207, 0.34);
  box-shadow: 0 18px 40px rgba(16, 61, 92, 0.1);
}

.icon-card > .icon-box {
  display: grid;
  width: 88px;
  height: 62px;
  place-items: center;
  margin: 0 0 18px;
  color: #0b527d;
  background: transparent;
}

.icon-box svg {
  width: 88px;
  height: 62px;
  overflow: visible;
  transition: transform 240ms cubic-bezier(.2, .7, .2, 1);
}

.icon-card:hover .icon-box svg {
  transform: translateY(-2px) scale(1.035);
}

.mobility-line,
.mobility-wheel,
.mobility-soft,
.mobility-accent,
.mobility-detail {
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mobility-line {
  fill: none;
  stroke: #0b527d;
  stroke-width: 2.15;
}

.mobility-wheel {
  fill: #fff;
  stroke: #173b56;
  stroke-width: 2.4;
}

.mobility-soft {
  fill: #e6f5ff;
  stroke: #0b527d;
  stroke-width: 1.9;
}

.mobility-accent {
  fill: #9bdd2c;
  stroke: #236b44;
  stroke-width: 1.45;
}

.mobility-detail {
  fill: none;
  stroke: #65b8e7;
  stroke-width: 1.25;
}

.mobility-bolt {
  fill: #fff;
  stroke: none;
}

.mobility-seat {
  stroke-width: 4;
}

.icon-card strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
}

.icon-card > .icon-copy {
  display: block;
  margin-top: 3px;
  color: #66778a;
  font-size: 0.82rem;
}

.anatomy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 46px);
}

.anatomy-copy {
  max-width: 980px;
}

.anatomy-copy h2 {
  max-width: 940px;
}

.anatomy-copy .lead {
  max-width: 850px;
}

.anatomy-visual {
  position: relative;
  min-height: 0;
  display: grid;
  padding: clamp(12px, 2vw, 24px) clamp(12px, 3vw, 34px) 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 48%, rgba(54, 169, 255, 0.13), transparent 55%),
    rgba(255, 255, 255, 0.025);
  overflow: hidden;
}

.anatomy-visual::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  content: "";
}

.anatomy-picture {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1400 / 933;
}

.anatomy-picture > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.anatomy-marker {
  position: absolute;
  z-index: 2;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(88, 209, 79, 0.42);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 230ms ease, height 230ms ease, border-width 230ms ease, background 230ms ease, box-shadow 230ms ease;
  animation: anatomy-marker-pulse 2.2s ease-out infinite;
}

.anatomy-marker::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  content: "";
  transform: translate(-50%, -50%);
}

.anatomy-grid[data-active-part="cells"] [data-anatomy-layer="cells"],
.anatomy-grid[data-active-part="bms"] [data-anatomy-layer="bms"],
.anatomy-grid[data-active-part="connections"] [data-anatomy-layer="connections"],
.anatomy-grid[data-active-part="casing"] [data-anatomy-layer="casing"] {
  z-index: 3;
  width: clamp(40px, 4.4vw, 52px);
  height: clamp(40px, 4.4vw, 52px);
  border-width: 3px;
  background: rgba(88, 209, 79, 0.2);
  box-shadow: 0 0 0 8px rgba(88, 209, 79, 0.13);
  animation: none;
}

.anatomy-marker--cells {
  top: 36%;
  left: 30%;
}

.anatomy-marker--bms {
  top: 58%;
  left: 71.5%;
  animation-delay: 550ms;
}

.anatomy-marker--connections {
  top: 52%;
  left: 59.3%;
  animation-delay: 1.1s;
}

.anatomy-marker--casing {
  top: 19%;
  left: 37.2%;
  animation-delay: 1.65s;
}

@keyframes anatomy-marker-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(88, 209, 79, 0.38);
  }

  50% {
    box-shadow: 0 0 0 9px rgba(88, 209, 79, 0);
  }
}

.anatomy-visual figcaption {
  position: relative;
  z-index: 2;
  margin-top: 2px;
  color: #8092a5;
  font-size: 0.76rem;
  text-align: center;
}

.anatomy-hint {
  margin: 0;
  color: var(--blue-soft);
  font-size: 0.82rem;
  font-weight: 750;
}

.anatomy-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.anatomy-item {
  display: grid;
  width: 100%;
  min-height: 214px;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 13px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 17px;
  color: inherit;
  background: rgba(255, 255, 255, 0.035);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.anatomy-item:hover,
.anatomy-item:focus-visible,
.anatomy-item.is-active {
  border-color: rgba(88, 209, 79, 0.72);
  background: rgba(88, 209, 79, 0.09);
  transform: translateY(-3px);
}

.anatomy-item .index {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 13px;
  color: var(--ink);
  background: var(--green);
  font-weight: 900;
}

.anatomy-item p,
.anatomy-description {
  display: block;
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 26px 24px;
  border: 1px solid var(--line-dark);
  border-radius: 19px;
  background: var(--white);
  counter-increment: step;
}

.step::before {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 50%;
  color: var(--white);
  background: var(--ink);
  content: counter(step, decimal-leading-zero);
  font-size: 0.76rem;
  font-weight: 850;
}

.step:not(:last-child)::after {
  position: absolute;
  z-index: 2;
  top: 46px;
  right: -25px;
  width: 34px;
  height: 1px;
  background: #9fb0c0;
  content: "";
}

.step p {
  margin-bottom: 0;
  color: #5a6b7d;
  font-size: 0.91rem;
}

.collab-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 34px;
  align-items: center;
  padding: clamp(30px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 92% 15%, rgba(54, 169, 255, 0.19), transparent 30%),
    linear-gradient(135deg, #102339, #0a1728);
  overflow: hidden;
}

.collab-card p {
  max-width: 700px;
  color: var(--muted);
}

.collab-mark {
  justify-self: end;
  display: grid;
  max-width: 300px;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
}

.collab-mark span {
  color: var(--muted);
  font-size: 0.83rem;
}

.collab-mark strong {
  font-size: 1.45rem;
  letter-spacing: -0.035em;
}

.gallery-preview,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.gallery-item {
  position: relative;
  grid-column: span 4;
  min-height: 380px;
  padding: 0;
  border: 0;
  border-radius: 20px;
  color: var(--white);
  background: #17283b;
  cursor: pointer;
  overflow: hidden;
}

.gallery-item.large {
  grid-column: span 7;
  min-height: 480px;
}

.gallery-item.wide {
  grid-column: span 6;
  min-height: 390px;
}

.gallery-item.tall {
  grid-column: span 5;
  min-height: 480px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms cubic-bezier(.2, .7, .2, 1);
}

.gallery-item:hover img {
  transform: scale(1.045);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  text-align: left;
  background: linear-gradient(transparent 38%, rgba(4, 12, 22, 0.92));
}

.gallery-overlay span {
  margin-bottom: 5px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.gallery-overlay strong {
  font-size: 1.14rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 30px;
}

.filter-button {
  padding: 10px 16px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: #425569;
  background: var(--white);
  font-weight: 780;
  cursor: pointer;
}

.filter-button[aria-pressed="true"] {
  border-color: var(--ink);
  color: var(--white);
  background: var(--ink);
}

.gallery-item.is-hidden {
  display: none;
}

.lightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: none;
  place-items: center;
  padding: 28px;
  background: rgba(3, 9, 16, 0.94);
  backdrop-filter: blur(10px);
}

.lightbox.is-open {
  display: grid;
}

.lightbox-content {
  display: grid;
  width: min(1080px, 100%);
  max-height: calc(100svh - 56px);
  grid-template-rows: minmax(0, 1fr) auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--ink-soft);
  overflow: hidden;
}

.lightbox img {
  width: 100%;
  height: 100%;
  max-height: calc(100svh - 150px);
  object-fit: contain;
  background: #02070d;
}

.lightbox-caption {
  padding: 18px 24px;
  color: var(--white);
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--white);
  background: rgba(14, 28, 44, 0.9);
  cursor: pointer;
}

.about-grid,
.feature-split,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  gap: clamp(40px, 7vw, 90px);
  align-items: center;
}

.about-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.fact-card {
  min-height: 160px;
  padding: 23px;
  border: 1px solid var(--line-dark);
  border-radius: 18px;
  background: var(--white);
}

.fact-card strong {
  display: block;
  margin-bottom: 4px;
  color: #087bcf;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  line-height: 1;
}

.fact-card span {
  color: #5d6e80;
  font-size: 0.86rem;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 880px;
  margin-inline: auto;
}

.faq-item {
  border: 1px solid var(--line-dark);
  border-radius: 17px;
  background: var(--white);
  overflow: hidden;
}

.faq-item summary {
  position: relative;
  padding: 21px 56px 21px 22px;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  position: absolute;
  top: 50%;
  right: 22px;
  color: #087bcf;
  content: "+";
  font-size: 1.5rem;
  font-weight: 500;
  transform: translateY(-50%);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item .faq-answer {
  padding: 0 22px 22px;
  color: #596b7c;
}

.faq-item .faq-answer p:last-child {
  margin-bottom: 0;
}

.page-hero {
  position: relative;
  padding: clamp(70px, 9vw, 126px) 0 clamp(64px, 8vw, 105px);
  overflow: hidden;
}

.page-hero::after {
  position: absolute;
  top: -180px;
  right: -120px;
  width: 580px;
  height: 580px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(54, 169, 255, 0.16), transparent 67%);
  content: "";
}

.page-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(400px, 1.05fr);
  gap: 60px;
  align-items: center;
}

.page-hero h1 {
  font-size: clamp(2.65rem, 5.6vw, 5rem);
}

.page-hero-media {
  position: relative;
  min-height: 0;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #101f32;
  overflow: hidden;
}

.page-hero-media img {
  width: 100%;
  height: auto;
  max-height: 100%;
  min-height: 0;
  object-fit: contain;
}

.page-hero-media.cover img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
}

.page-hero-media.contain {
  aspect-ratio: 1400 / 933;
}

.page-hero-media.contain img {
  padding: 22px;
  object-fit: contain;
}

.feature-media {
  width: min(560px, 100%);
  height: auto;
  justify-self: center;
  border-radius: 24px;
  object-fit: contain;
  box-shadow: 0 24px 52px rgba(20, 42, 61, 0.16);
}

.feature-media-portrait {
  width: auto;
  max-width: 100%;
  max-height: 640px;
}

.page-hero-media::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  content: "";
  pointer-events: none;
}

.stat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

.stat-chip {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #cad8e4;
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.81rem;
  font-weight: 750;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 13px;
}

.feature-item {
  padding: 21px;
  border: 1px solid var(--line-dark);
  border-radius: 17px;
  background: var(--white);
}

.feature-item .icon-box {
  margin-bottom: 17px;
}

.feature-item p {
  margin-bottom: 0;
  color: #5f7081;
  font-size: 0.89rem;
}

.notice {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(22, 142, 232, 0.26);
  border-radius: 17px;
  color: #28455e;
  background: #eaf6ff;
}

.notice svg {
  width: 25px;
  color: #087bcf;
}

.notice p {
  margin-bottom: 0;
}

.contact-grid {
  grid-template-columns: minmax(0, 1.16fr) minmax(300px, 0.64fr);
  align-items: start;
}

.contact-form {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 24px 58px rgba(24, 48, 70, 0.1);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label,
.form-legend {
  color: #1c2d3e;
  font-size: 0.84rem;
  font-weight: 790;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #cbd6df;
  border-radius: 12px;
  color: var(--ink);
  background: #f9fbfc;
  outline: none;
  transition: border 160ms ease, box-shadow 160ms ease;
}

.form-field textarea {
  min-height: 150px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: #168ee8;
  box-shadow: 0 0 0 4px rgba(22, 142, 232, 0.12);
}

.form-field small {
  color: #697a8b;
  font-size: 0.74rem;
}

.file-drop {
  padding: 18px;
  border: 1px dashed #a6b7c6;
  border-radius: 13px;
  background: #f4f8fb;
}

.file-drop input {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.check-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  color: #536577;
  font-size: 0.8rem;
}

.check-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--green-dark);
}

.form-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-status {
  display: none;
  margin: 18px 0 0;
  padding: 13px 15px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
}

.form-status.is-visible {
  display: block;
}

.form-status.success {
  color: #155d2b;
  background: #e8f8eb;
}

.form-status.error {
  color: #8b2533;
  background: #fff0f2;
}

.contact-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  display: grid;
  gap: 14px;
}

.contact-card {
  padding: 24px;
  border: 1px solid var(--line-dark);
  border-radius: 18px;
  color: var(--ink);
  background: var(--white);
}

.contact-card a {
  display: inline-block;
  color: #087bcf;
  font-weight: 820;
  word-break: break-word;
}

.contact-card p:last-child {
  margin-bottom: 0;
}

.legal-content {
  max-width: 850px;
}

.legal-content section {
  margin-bottom: 42px;
}

.legal-content h2 {
  font-size: clamp(1.55rem, 3vw, 2.3rem);
}

.legal-content a {
  color: #087bcf;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cta-section {
  padding: 0 0 clamp(70px, 9vw, 110px);
}

.cta-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 35px;
  align-items: center;
  padding: clamp(34px, 6vw, 68px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--white);
  background:
    radial-gradient(circle at 87% 16%, rgba(88, 209, 79, 0.23), transparent 31%),
    linear-gradient(125deg, #0c5b89, #0b2744 72%);
  overflow: hidden;
}

.cta-card h2 {
  max-width: 700px;
  margin-bottom: 12px;
  color: var(--white);
}

.cta-card p {
  max-width: 650px;
  margin-bottom: 0;
  color: #d9e9f5;
}

.cta-card .eyebrow {
  color: #79ed70;
}

.cta-card .button-ghost,
.section-light .cta-card .button-ghost,
.section-white .cta-card .button-ghost {
  border-color: var(--white);
  color: #0b3553;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.cta-card .button-ghost:hover,
.section-light .cta-card .button-ghost:hover,
.section-white .cta-card .button-ghost:hover {
  color: #07243a;
  background: #eaf6ff;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #050c16;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 0.55fr);
  gap: 48px;
  padding: 66px 0 50px;
}

.footer-brand {
  max-width: 390px;
}

.footer-brand .brand {
  margin-bottom: 20px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.91rem;
}

.footer-column strong {
  display: block;
  margin-bottom: 14px;
  color: var(--white);
  font-size: 0.87rem;
}

.footer-column a,
.footer-column span {
  display: block;
  margin: 9px 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.footer-column a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0 30px;
  border-top: 1px solid var(--line);
  color: #8293a4;
  font-size: 0.76rem;
}

.footer-bottom a:hover {
  color: var(--white);
}

@media (max-width: 1080px) {
  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .header-actions .button {
    display: none;
  }

  .page-hero-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .hero-copy {
    max-width: 830px;
  }

  .hero-showcase {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    order: 1;
  }

  .hero-actions .button-row {
    display: flex;
  }

  .hero-actions .button {
    width: auto;
  }

  .hero-visual {
    order: 2;
    width: min(760px, 100%);
    min-height: 0;
    margin-inline: auto;
  }

  .trust-row {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 32px;
  }

  .page-hero-media {
    min-height: 0;
  }

  .icon-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .anatomy-grid,
  .about-grid,
  .feature-split {
    grid-template-columns: 1fr;
  }

  .anatomy-visual {
    min-height: 0;
  }

  .footer-main {
    grid-template-columns: 1.3fr repeat(2, 0.7fr);
  }

  .footer-column:last-child {
    grid-column: 2 / -1;
  }
}

@media (max-width: 820px) {
  :root {
    --header-h: 74px;
  }

  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .section-heading > :last-child {
    justify-self: start;
  }

  .hero-visual {
    min-height: 0;
  }

  .visual-tag.tag-one {
    top: 6%;
    left: 1%;
  }

  .visual-tag.tag-two {
    right: 1%;
    bottom: 8%;
  }

  .trust-row {
    grid-template-columns: 1fr;
  }

  .trust-item {
    min-height: 0;
  }

  .problem-card,
  .collab-card,
  .cta-card {
    grid-template-columns: 1fr;
  }

  .problem-card .button,
  .collab-mark {
    justify-self: start;
  }

  .service-card.primary,
  .service-card.solar,
  .service-card.bike {
    grid-column: span 12;
    min-height: 410px;
  }

  .service-card.bike {
    background-position: 57% center;
  }

  .service-card.primary {
    min-height: 610px;
  }

  .service-card.primary .card-content {
    grid-template-rows: auto minmax(240px, 1fr) auto;
    min-height: 542px;
  }

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

  .icon-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .step::after {
    display: none;
  }

  .gallery-item,
  .gallery-item.large,
  .gallery-item.wide,
  .gallery-item.tall {
    grid-column: span 6;
    min-height: 350px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-sidebar {
    position: static;
  }

  .footer-main {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-column:last-child {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .brand img {
    width: 45px;
    height: 38px;
  }

  h1 {
    font-size: clamp(2.45rem, 13.5vw, 4rem);
  }

  .hero {
    padding-top: 46px;
  }

  .button-row,
  .button-row .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 0;
  }

  .hero-visual img {
    width: 100%;
    margin: 0;
  }

  .visual-tag {
    display: none;
  }

  .service-card.primary {
    min-height: 570px;
    background-position: center, center 56%;
  }

  .service-card.primary .card-content {
    grid-template-rows: auto minmax(180px, 1fr) auto;
    min-height: 522px;
    gap: 14px;
  }

  .service-card.primary .service-battery-photo {
    min-height: 180px;
  }

  .problem-strip {
    margin-top: -20px;
  }

  .problem-card {
    padding: 24px;
  }

  .icon-grid,
  .steps,
  .about-facts,
  .feature-list,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .anatomy-visual {
    min-height: 0;
    padding: 8px;
  }

  .anatomy-list {
    grid-template-columns: 1fr;
  }

  .anatomy-item {
    min-height: 0;
    grid-template-columns: 44px 1fr;
  }

  .gallery-item,
  .gallery-item.large,
  .gallery-item.wide,
  .gallery-item.tall {
    grid-column: span 12;
    min-height: 360px;
  }

  .page-hero-media,
  .page-hero-media img {
    min-height: 0;
  }

  .contact-form {
    padding: 22px 18px;
  }

  .cta-card .button-row {
    margin-top: 6px;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-brand,
  .footer-column:last-child {
    grid-column: auto;
  }

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

/* Galerie administrable et albums multi-photos */
.gallery-grid-dynamic { min-height: 320px; }

.gallery-loading,
.gallery-empty,
.gallery-error {
  grid-column: 1 / -1;
  display: grid;
  min-height: 260px;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 1px dashed #bfd0db;
  border-radius: 20px;
  color: #607487;
  background: #f7fafc;
  text-align: center;
}

.gallery-error[hidden] {
  display: none;
}

.gallery-loading span {
  width: 34px;
  height: 34px;
  border: 3px solid #d7e5ee;
  border-top-color: #0b7fc2;
  border-radius: 50%;
  animation: gallery-spin 800ms linear infinite;
}

.gallery-loading p,
.gallery-empty span { margin: 0; }
.gallery-empty strong { color: var(--ink); }
.gallery-error { min-height: 120px; color: #8b2f3e; background: #fff0f2; }

@keyframes gallery-spin { to { transform: rotate(360deg); } }

.album-card { isolation: isolate; }

.gallery-media {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  transition: transform 420ms cubic-bezier(.2, .7, .2, 1);
}

.gallery-media.is-duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.gallery-media-frame {
  display: block;
  min-width: 0;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

.gallery-item .gallery-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--crop-x, 50%) var(--crop-y, 50%);
  transform: scale(var(--crop-zoom, 1));
  transform-origin: center;
  transition: none;
}

.gallery-item:hover .gallery-media { transform: scale(1.035); }
.gallery-item:hover .gallery-media img { transform: scale(var(--crop-zoom, 1)); }
.album-card .gallery-overlay { z-index: 1; }

.gallery-photo-count {
  align-self: flex-start;
  margin-top: 9px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #fff;
  background: rgba(8, 20, 31, 0.54);
  font-size: 0.7rem;
  font-weight: 760;
  backdrop-filter: blur(6px);
}

.lightbox-gallery {
  grid-template-columns: minmax(52px, 1fr) minmax(0, 1080px) minmax(52px, 1fr);
  gap: 16px;
}

.lightbox-gallery .lightbox-content {
  grid-column: 2;
  grid-template-rows: minmax(0, 1fr) auto auto;
  max-height: calc(100svh - 56px);
}

.lightbox-stage {
  display: grid;
  min-height: 0;
  place-items: center;
  background: #02070d;
  overflow: hidden;
}

.lightbox-gallery .lightbox-stage img {
  width: 100%;
  height: 100%;
  max-height: calc(100svh - 250px);
  object-fit: contain;
  background: #02070d;
}

.lightbox-gallery .lightbox-caption {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.lightbox-caption > div { display: grid; gap: 4px; }
.lightbox-caption strong { color: #fff; font-size: 1rem; }
.lightbox-caption span:not(.lightbox-counter) { color: #b9cad7; font-size: 0.84rem; line-height: 1.45; }

.lightbox-counter {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: #d8e5ee;
  font-size: 0.76rem;
}

.lightbox-thumbnails {
  display: flex;
  gap: 8px;
  padding: 0 20px 16px;
  background: var(--ink-soft);
  overflow-x: auto;
  scrollbar-width: thin;
}

.lightbox-thumbnail {
  flex: 0 0 72px;
  height: 52px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #07101a;
  cursor: pointer;
  overflow: hidden;
  opacity: 0.62;
}

.lightbox-thumbnail[aria-current="true"] { border-color: var(--green); opacity: 1; }
.lightbox-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

.lightbox-nav {
  z-index: 2;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  align-self: center;
  justify-self: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  background: rgba(14, 28, 44, 0.9);
  cursor: pointer;
}

.lightbox-nav:hover { border-color: var(--green); color: var(--green); }
.lightbox-nav svg { width: 25px; height: 25px; }
.lightbox-prev { grid-column: 1; }
.lightbox-next { grid-column: 3; }

.footer-bottom-links { display: flex; align-items: center; gap: 18px; }

.footer-admin-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  opacity: 0.58;
  font-size: 0.74rem;
}

.footer-admin-link:hover { opacity: 1; }
.footer-admin-link svg { width: 14px; height: 14px; }

@media (max-width: 760px) {
  .lightbox-gallery {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 58px 12px 12px;
  }

  .lightbox-gallery .lightbox-content {
    grid-column: 1;
    grid-row: 1;
    max-height: calc(100svh - 128px);
  }

  .lightbox-gallery .lightbox-stage img { max-height: calc(100svh - 305px); }

  .lightbox-prev,
  .lightbox-next {
    position: static;
    grid-row: 2;
    width: 46px;
    height: 46px;
  }

  .lightbox-prev { grid-column: 1; justify-self: start; }
  .lightbox-next { grid-column: 1; justify-self: end; }
  .lightbox-gallery .lightbox-caption { padding: 14px 16px; }
  .lightbox-caption span:not(.lightbox-counter) { display: none; }
  .footer-bottom-links { align-items: flex-start; flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
