:root {
  --ink: #101820;
  --muted: #64717a;
  --line: #d9e1e5;
  --paper: #f5f7f8;
  --white: #ffffff;
  --brand-blue: #00aeef;
  --charcoal: #151a1d;
  --focus-blue: #00aeef;
  --shadow: 0 18px 60px rgba(16, 24, 32, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

body.menu-open {
  overflow: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 247, 248, 0.94);
  border-bottom: 1px solid rgba(16, 24, 32, 0.08);
  backdrop-filter: blur(16px);
  transition: background 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(245, 247, 248, 0.98);
  box-shadow: 0 12px 30px rgba(16, 24, 32, 0.08);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 148px;
}

.brand img {
  width: 220px;
  height: auto;
  max-height: 62px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 10px 13px;
  color: var(--muted);
  font-size: 0.93rem;
  border-radius: 999px;
  transition: background 180ms ease, color 180ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: rgba(16, 24, 32, 0.06);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.hero {
  min-height: calc(100svh - 76px);
  display: grid;
  align-items: start;
  background:
    linear-gradient(90deg, rgba(9, 19, 25, 0.78), rgba(9, 19, 25, 0.34) 44%, rgba(9, 19, 25, 0.08)),
    url("assets/hero-solaire-polynesie.jpg") center / cover no-repeat;
  color: var(--white);
}

.hero-inner {
  animation: hero-entry 700ms ease both;
}

.hero-inner,
.section,
.page-hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand-blue);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 780px;
  font-size: clamp(2.8rem, 7vw, 6.2rem);
  letter-spacing: 0;
}

h2 {
  max-width: 820px;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

h3 {
  font-size: 1.25rem;
}

.lead {
  max-width: 660px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 750;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(16, 24, 32, 0.14);
}

.btn:active {
  transform: translateY(0);
}

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

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.36);
  color: var(--white);
}

.btn-outline {
  border-color: var(--line);
  color: var(--ink);
  background: var(--white);
}

.section {
  padding: 86px 0;
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.55fr);
  gap: 42px;
  align-items: end;
  margin-bottom: 34px;
}

.section-header p {
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

.card {
  background: var(--white);
  border: 1px solid rgba(16, 24, 32, 0.08);
  border-radius: 10px;
  padding: 26px;
  box-shadow: 0 1px 0 rgba(16, 24, 32, 0.03);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 24, 32, 0.14);
  box-shadow: 0 18px 44px rgba(16, 24, 32, 0.1);
}

.card p,
.split p,
.page-copy p,
.contact-list p {
  color: var(--muted);
}

.metric {
  font-size: 2.6rem;
  line-height: 1;
  font-weight: 800;
  color: var(--charcoal);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(280px, 0.52fr);
  gap: 34px;
  align-items: start;
}

.panel {
  background: var(--charcoal);
  color: var(--white);
  border-radius: 10px;
  padding: 30px;
  box-shadow: var(--shadow);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 70px rgba(16, 24, 32, 0.18);
}

.panel p {
  color: rgba(255, 255, 255, 0.78);
}

.list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.list li {
  padding: 13px 0;
  border-top: 1px solid rgba(16, 24, 32, 0.1);
}

.panel .list li {
  border-top-color: rgba(255, 255, 255, 0.16);
}

.page-hero {
  background: linear-gradient(135deg, #101820, #20272c);
  color: var(--white);
}

.page-hero-inner {
  padding: 88px 0 70px;
}

.page-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.8);
}

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

.solution-product-card {
  display: grid;
  gap: 20px;
}

.solution-product-card h3 {
  max-width: 640px;
  font-size: clamp(1.55rem, 2.6vw, 2.35rem);
}

.product-status {
  width: fit-content;
  margin: 0;
  padding: 7px 11px;
  border: 1px solid rgba(0, 174, 239, 0.24);
  border-radius: 999px;
  background: rgba(0, 174, 239, 0.08);
  color: #0b5b75;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.product-spec {
  min-height: 88px;
  padding: 16px;
  border: 1px solid rgba(16, 24, 32, 0.08);
  border-radius: 8px;
  background: rgba(245, 247, 248, 0.72);
}

.product-spec span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-spec strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.28;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.realisation {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(160deg, rgba(16, 24, 32, 0.96), rgba(0, 174, 239, 0.72));
  color: var(--white);
}

.realisation p {
  color: rgba(255, 255, 255, 0.8);
}

.form {
  display: grid;
  gap: 16px;
}

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

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.92rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 14px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--focus-blue);
  box-shadow: 0 0 0 4px rgba(0, 174, 239, 0.14);
  outline: none;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

.form-note {
  min-height: 24px;
  color: var(--charcoal);
  font-weight: 700;
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 620ms ease, transform 620ms ease;
}

.js .reveal-delay-1.is-visible {
  transition-delay: 80ms;
}

.js .reveal-delay-2.is-visible {
  transition-delay: 160ms;
}

@keyframes hero-entry {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-footer {
  background: #0f1718;
  color: var(--white);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.footer-inner p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.62);
}

.footer-links {
  display: flex;
  gap: 18px;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 860px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 16px 18px;
    background: rgba(245, 247, 248, 0.98);
    border-bottom: 1px solid rgba(16, 24, 32, 0.08);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: max-height 240ms ease, opacity 180ms ease, transform 180ms ease;
  }

  .nav-links.is-open {
    max-height: 360px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    border-radius: 6px;
  }

  .hero {
    min-height: 760px;
    background-position: 58% center;
  }

  .section,
  .page-hero-inner {
    padding: 58px 0;
  }

  .section-header,
  .split,
  .grid-2,
  .grid-3,
  .solutions-list,
  .form-row,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 520px) {
  .nav {
    width: min(100% - 22px, 1180px);
  }

  .brand {
    min-width: 126px;
  }

  .brand img {
    width: 138px;
    max-height: 42px;
  }

  .hero-inner,
  .section,
  .page-hero-inner,
  .footer-inner {
    width: min(100% - 22px, 1180px);
  }

  .hero-inner {
    padding-bottom: 52px;
  }

  .btn {
    width: 100%;
  }

  .card,
  .panel {
    padding: 20px;
  }

  .product-specs {
    grid-template-columns: 1fr;
  }
}

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

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