:root {
  --ink: #16202a;
  --muted: #617080;
  --paper: #fffaf2;
  --surface: #ffffff;
  --blue: #153f8f;
  --blue-2: #0a78b8;
  --orange: #f06f23;
  --green: #8ebd42;
  --yellow: #ffd84d;
  --line: rgba(22, 32, 42, 0.12);
  --shadow: 0 20px 48px rgba(21, 63, 143, 0.16);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 999;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 18px;
  align-items: center;
  min-height: 82px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: 82px;
  height: auto;
}

.brand-name,
.brand-tag {
  margin: 0;
}

.brand-name {
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-tag {
  color: var(--muted);
  font-size: 0.82rem;
}

.menu {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.menu a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: #293543;
  font-weight: 800;
  text-decoration: none;
}

.menu a:hover,
.menu a:focus-visible,
.menu a.active {
  background: #ecf4ff;
  color: var(--blue);
}

.menu-toggle {
  display: none;
}

.language-switch {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.language-switch button {
  min-width: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.language-switch button.active {
  background: var(--blue);
  color: #fff;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 12px 24px rgba(240, 111, 35, 0.26);
}

.btn-secondary {
  background: #fff;
  border-color: var(--blue);
  color: var(--blue);
}

.btn-dark {
  background: var(--blue);
  color: #fff;
}

.hero-slider {
  position: relative;
  min-height: 700px;
  overflow: hidden;
  background: var(--ink);
}

.slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.slide.active {
  opacity: 1;
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 20, 46, 0.88), rgba(5, 20, 46, 0.5), rgba(5, 20, 46, 0.1)),
    var(--slide-image) center / cover no-repeat;
}

.slide-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 40px));
  margin-left: max(20px, calc((100vw - 1160px) / 2));
  padding: 80px 0 110px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--yellow);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(2.8rem, 7vw, 6rem);
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.hero-text {
  max-width: 660px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.18rem;
}

.slider-controls {
  position: absolute;
  right: max(20px, calc((100vw - 1160px) / 2));
  bottom: 32px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.slider-dot {
  width: 42px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.slider-dot.active {
  background: var(--yellow);
}

.section {
  padding: 90px 0;
}

.section-alt {
  background: #eef5fb;
}

.section-warm {
  background: var(--paper);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.45fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 34px;
}

.section-intro,
.lead {
  color: var(--muted);
  font-size: 1.08rem;
}

.lead {
  max-width: 75ch;
}

.kicker {
  color: var(--orange);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cards-3,
.cards-4,
.image-grid,
.project-grid,
.stats {
  display: grid;
  gap: 20px;
}

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

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

.card,
.stat,
.project-card,
.contact-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card-body,
.project-card .card-body,
.contact-card {
  padding: 24px;
}

.card img,
.project-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.icon-card {
  padding: 26px;
}

.icon-card::before {
  content: "";
  display: block;
  width: 54px;
  height: 8px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--green));
}

.stat {
  padding: 26px 18px;
  text-align: center;
}

.stat strong {
  display: block;
  color: var(--blue);
  font-size: clamp(2rem, 3.5vw, 3.4rem);
  line-height: 1;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: 42px;
  align-items: center;
}

.split img,
.feature-image {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-panel {
  padding: 34px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.pill-list li {
  padding: 8px 12px;
  border-radius: 999px;
  background: #ecf4ff;
  color: var(--blue);
  font-weight: 800;
}

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

.image-grid img {
  width: 100%;
  height: 230px;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.banner {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
  background: var(--ink);
  color: #fff;
}

.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 20, 46, 0.86), rgba(5, 20, 46, 0.35)),
    var(--banner-image) center / cover no-repeat;
}

.banner .container {
  position: relative;
  z-index: 1;
}

.banner h1 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
}

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

.timeline article {
  padding: 22px;
  border-left: 6px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: #fff;
  box-shadow: var(--shadow);
}

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

.amount-box {
  padding: 30px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #fff;
  box-shadow: var(--shadow);
}

.amount-box strong {
  display: block;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
  gap: 28px;
  align-items: start;
}

form {
  display: grid;
  gap: 12px;
}

label {
  font-weight: 900;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  font: inherit;
}

input:focus,
textarea:focus {
  border-color: var(--blue-2);
  outline: 3px solid rgba(10, 120, 184, 0.16);
}

.site-footer {
  padding: 36px 0;
  background: #071a34;
  color: rgba(255, 255, 255, 0.78);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

[data-lang="en"] {
  display: none;
}

body.lang-en [data-lang="fr"] {
  display: none;
}

body.lang-en [data-lang="en"] {
  display: revert;
}

@media (max-width: 980px) {
  .nav-wrap {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
  }

  .menu-toggle {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    justify-self: end;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font: inherit;
    font-weight: 900;
    padding: 0 16px;
  }

  nav {
    display: contents;
  }

  .menu {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 82px;
    display: none;
    flex-direction: column;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
  }

  .menu.open {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .language-switch {
    justify-self: end;
  }

  .hero-slider {
    min-height: 620px;
  }

  .cards-3,
  .cards-4,
  .project-grid,
  .section-head,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .brand img {
    width: 54px;
  }

  .brand {
    min-width: 0;
  }

  .brand-name {
    font-size: 0.95rem;
  }

  .language-switch button {
    min-width: 36px;
  }

  .brand-tag {
    display: none;
  }

  .hero-slider {
    min-height: 680px;
  }

  .slide-content {
    padding-top: 54px;
  }

  h1 {
    font-size: clamp(2.3rem, 14vw, 4.2rem);
  }

  .section {
    padding: 62px 0;
  }

  .image-grid,
  .stats {
    grid-template-columns: 1fr;
  }

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