:root {
  --ink: #15151a;
  --muted: #626775;
  --paper: #ffffff;
  --soft: #f3f5f8;
  --line: #e5e9f0;
  --black: #050509;
  --yellow: #feeb0e;
  --violet: #7b3d85;
  --green: #028c3a;
  --orange: #fa8e00;
  --red: #e5070a;
  --cyan: #00a0e3;
  --radius: 8px;
  --shadow: 0 18px 50px rgba(10, 20, 35, .12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f7f8fa;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

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

p {
  margin: 0 0 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  background: rgba(17, 20, 26, .96);
  color: #fff;
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1320px, calc(100% - 32px));
  min-height: 86px;
  margin: 0 auto;
}

.brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 13px;
}

.brand img {
  display: block;
  width: clamp(320px, 31vw, 460px);
  max-height: 76px;
  object-fit: contain;
}

.brand span {
  color: rgba(255, 255, 255, .76);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  gap: 6px;
  font-size: .9rem;
  font-weight: 750;
}

.main-nav a {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 10px 12px;
  color: rgba(255, 255, 255, .78);
  white-space: nowrap;
  transition: color .2s ease, background .2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.main-nav .client-link {
  margin-left: 6px;
  background: #fff;
  color: #08080d;
}

.main-nav .client-link:hover,
.main-nav .client-link.is-active {
  background: var(--yellow);
  color: #08080d;
}

.menu-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  background: #fff;
  color: #08080d;
  cursor: pointer;
  appearance: none;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 6px 0 currentColor, 0 -6px 0 currentColor;
}

.hero {
  position: relative;
  min-height: min(610px, calc(100vh - 76px));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: var(--black);
}

.hero.short {
  min-height: 320px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-image) center / cover no-repeat;
  opacity: .9;
  transform: scale(1.02);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 7, 12, .78), rgba(5, 7, 12, .24) 58%, rgba(5, 7, 12, .58)),
    linear-gradient(0deg, rgba(5, 7, 12, .82), transparent 46%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0 50px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, .82);
  font-size: .84rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--yellow), var(--cyan), var(--red));
}

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

h1 {
  max-width: 950px;
  font-size: clamp(2.2rem, 4vw, 4.15rem);
  font-weight: 900;
  letter-spacing: 0;
}

.hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(1rem, 1.45vw, 1.16rem);
}

.hero .hero-summary {
  max-width: min(100%, 46ch);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 12px 20px;
  background: var(--ink);
  color: #fff;
  font-weight: 820;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

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

.btn.light {
  border-color: rgba(255, 255, 255, .65);
  background: #fff;
  color: var(--ink);
}

.btn.ghost {
  border-color: rgba(255, 255, 255, .42);
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.btn.accent {
  border-color: var(--yellow);
  background: var(--yellow);
  color: #050509;
}

.rotator {
  display: inline-block;
  min-width: min(100%, 390px);
  border-radius: 6px;
  padding: 6px 14px 8px;
  background: var(--cyan);
  color: #fff;
  white-space: nowrap;
}

.page-section {
  padding: clamp(52px, 7vw, 86px) 0;
}

.page-section.dark {
  background: #050509;
  color: #fff;
}

.page-section.soft {
  background: var(--soft);
}

.page-section.pattern {
  background:
    linear-gradient(rgba(5, 5, 9, .88), rgba(5, 5, 9, .9)),
    var(--section-bg) center / cover no-repeat;
  color: #fff;
}

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

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 460px);
  gap: 40px;
  align-items: end;
  margin-bottom: 38px;
}

.section-head.center {
  display: block;
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

.kicker {
  color: var(--cyan);
  font-size: .84rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.dark .kicker,
.pattern .kicker {
  color: var(--yellow);
}

h2 {
  margin-top: 10px;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 900;
}

h3 {
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  font-weight: 900;
}

.lead {
  color: var(--muted);
  font-size: 1.1rem;
}

.dark .lead,
.pattern .lead {
  color: rgba(255, 255, 255, .76);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 520px);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(340px, 520px) minmax(0, 1fr);
}

.split.reverse .media {
  order: 1;
}

.split.reverse .copy {
  order: 2;
}

.copy > * + * {
  margin-top: 18px;
}

.media {
  position: relative;
}

.media img,
.image-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media.frame {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}

.media.stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.image-tile {
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
  background: var(--soft);
}

.image-tile.wide {
  grid-column: span 2;
  aspect-ratio: 16 / 7;
}

.stats-grid,
.card-grid,
.values-grid,
.team-grid,
.finish-grid,
.gallery-grid,
.contact-grid {
  display: grid;
  gap: 18px;
}

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

.stat,
.card,
.value,
.team-card,
.finish-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.stat {
  padding: 24px;
}

.stat strong {
  display: block;
  margin-bottom: 6px;
  font-size: clamp(2rem, 4vw, 4.4rem);
  line-height: .95;
}

.stat span {
  color: var(--muted);
  font-weight: 760;
}

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

.card,
.value {
  padding: 26px;
}

.card p,
.value p,
.team-card p,
.finish-card p,
.contact-card p {
  color: var(--muted);
}

.dark .card,
.dark .value,
.pattern .card,
.pattern .value {
  border-color: rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06);
}

.dark .card p,
.dark .value p,
.pattern .card p,
.pattern .value p {
  color: rgba(255, 255, 255, .74);
}

.value {
  min-height: 154px;
}

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

.swatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.swatch {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 50%;
  background: var(--c);
}

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

.pill-list li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 750;
}

.dark .pill-list li,
.pattern .pill-list li {
  border-color: rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.finish-grid {
  grid-template-columns: repeat(5, 1fr);
}

.finish-card {
  overflow: hidden;
}

.finish-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.finish-card h3 {
  padding: 16px 16px 2px;
  font-size: 1.05rem;
}

.finish-card p {
  padding: 0 16px 18px;
  font-size: .92rem;
}

.video-wrap {
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow);
}

.video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.team-grid {
  grid-template-columns: repeat(5, 1fr);
}

.team-card {
  overflow: hidden;
  background: #fff;
}

.team-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.team-card div {
  padding: 15px 16px 18px;
}

.team-card h3 {
  font-size: 1.08rem;
}

.team-card p {
  margin: 6px 0 0;
  font-size: .9rem;
}

.gallery-grid {
  grid-template-columns: 1.25fr .75fr 1fr;
  grid-auto-rows: 210px;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}

.gallery-grid img:nth-child(1) {
  grid-row: span 2;
}

.gallery-grid img:nth-child(4) {
  grid-column: span 2;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: .92rem;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 13px 14px;
  text-align: left;
}

th {
  background: #111118;
  color: #fff;
  font-size: .82rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.check {
  color: var(--green);
  font-weight: 900;
}

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

.contact-card {
  padding: 26px;
  text-align: center;
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #050509;
  color: #fff;
  font-weight: 900;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

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

label {
  font-weight: 800;
}

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

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

.note {
  color: var(--muted);
  font-size: .93rem;
}

.alert {
  display: none;
  border: 1px solid rgba(0, 160, 227, .24);
  border-radius: var(--radius);
  margin-bottom: 18px;
  padding: 14px 16px;
  background: rgba(0, 160, 227, .08);
}

.alert.is-visible {
  display: block;
}

.alert.success {
  border-color: rgba(46, 164, 79, .28);
  background: rgba(46, 164, 79, .1);
}

.alert.error {
  border-color: rgba(214, 54, 56, .28);
  background: rgba(214, 54, 56, .1);
}

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

.site-footer {
  background: #050509;
  color: #fff;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) repeat(3, minmax(0, 1fr));
  gap: 34px;
  padding: 56px 0;
}

.footer-main img.logo {
  width: min(340px, 100%);
  margin-bottom: 18px;
}

.footer-main h3 {
  margin-bottom: 14px;
  font-size: 1rem;
}

.footer-main p,
.footer-main li,
.footer-main a {
  color: rgba(255, 255, 255, .72);
}

.footer-main ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-main li + li {
  margin-top: 8px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 18px 0;
  color: rgba(255, 255, 255, .68);
  font-size: .92rem;
}

.footer-bottom img {
  width: 124px;
}

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

.legal-content h2,
.legal-content h3 {
  margin-top: 34px;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  background:
    linear-gradient(rgba(5, 5, 9, .78), rgba(5, 5, 9, .82)),
    url("../img/splash-gauche-droite.jpg") center / cover no-repeat;
}

.login-panel {
  width: min(420px, 100%);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius);
  padding: 30px;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow);
}

.login-panel img {
  width: 260px;
  margin: 0 auto 22px;
}

.login-panel .btn {
  width: 100%;
  margin-top: 16px;
}

.login-back {
  display: inline-block;
  margin-top: 18px;
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 980px) {
  .header-inner {
    position: relative;
    min-height: 78px;
  }

  .menu-toggle {
    display: grid;
    flex: 0 0 auto;
    position: static;
    width: 46px;
    height: 46px;
    border-color: #fff;
    background: #fff;
    color: #08080d;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    background: rgba(17, 20, 26, .98);
    box-shadow: 0 22px 60px rgba(0, 0, 0, .36);
  }

  body.nav-open .main-nav {
    display: grid;
  }

  .main-nav a {
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 6px;
    padding: 14px;
  }

  .main-nav .client-link {
    margin: 8px 0 0;
  }

  .section-head,
  .split,
  .split.reverse {
    grid-template-columns: 1fr;
  }

  .split.reverse .media,
  .split.reverse .copy {
    order: initial;
  }

  .stats-grid,
  .values-grid,
  .finish-grid,
  .team-grid,
  .contact-grid,
  .footer-main {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (max-width: 620px) {
  .site-header {
    position: sticky;
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 74px;
    padding: 10px 0;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 0;
  }

  .brand img {
    width: min(290px, calc(100vw - 92px));
    max-height: 56px;
  }

  .brand span {
    display: none;
  }

  .menu-toggle {
    display: grid !important;
    position: static;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-color: #fff;
    background: #fff;
    color: #08080d;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none !important;
    grid-template-columns: 1fr;
    gap: 6px;
    width: auto;
    padding: 12px;
    background: rgba(17, 20, 26, .98);
  }

  body.nav-open .main-nav {
    display: grid !important;
  }

  .main-nav a {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 6px;
    padding: 12px 14px;
    white-space: nowrap;
  }

  .main-nav .client-link {
    margin: 6px 0 0;
    text-align: center;
  }

  .hero,
  .hero.short {
    min-height: 510px;
  }

  .hero-content {
    width: auto;
    margin-left: 16px;
    margin-right: 16px;
    padding: 76px 0 42px;
  }

  .wrap {
    width: auto;
    margin-left: 16px;
    margin-right: 16px;
  }

  h1 {
    max-width: 100%;
    overflow-wrap: break-word;
    font-size: clamp(1.75rem, 7vw, 2.1rem);
  }

  .hero p {
    font-size: 1rem;
  }

  .rotator {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }

  .hero p {
    max-width: 100%;
  }

  .hero .hero-summary {
    max-width: min(100%, 31ch);
  }

  .hero-actions,
  .actions {
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .stats-grid,
  .values-grid,
  .finish-grid,
  .team-grid,
  .gallery-grid,
  .contact-grid,
  .footer-main,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .media.stack {
    grid-template-columns: 1fr;
  }

  .image-tile.wide {
    grid-column: auto;
  }

  .gallery-grid {
    grid-auto-rows: 240px;
  }

  .gallery-grid img:nth-child(1),
  .gallery-grid img:nth-child(4) {
    grid-row: auto;
    grid-column: auto;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}
