:root {
  --yellow: #f1cd3a;
  --yellow-soft: #f8f0ce;
  --charcoal: #3d3e40;
  --ink: #212427;
  --olive: #4a554e;
  --muted: #7a7a7a;
  --gray: #54595f;
  --fog: #f5f5f5;
  --paper: #f7f7f7;
  --white: #ffffff;
  --max: 1140px;
  --header-h: 110px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

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

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

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

h1, h2, h3, h4 { font-family: "Questrial", sans-serif; font-weight: 600; line-height: 1.15; }

.sr-only, .hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -40px;
  z-index: 10000;
  background: var(--ink);
  color: var(--white);
  padding: 8px 14px;
}
.skip-link:focus { top: 8px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font-family: "Questrial", sans-serif;
  font-size: 16px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 3px;
  transition: background-color .25s, color .25s, transform .25s;
}
.btn--contact {
  background: var(--charcoal);
  color: var(--white);
}
.btn--contact:hover { background: var(--yellow); color: var(--ink); transform: scale(1.05); }
.btn--dark {
  background: var(--charcoal);
  color: var(--white);
}
.btn--dark:hover { background: var(--white); color: var(--charcoal); }
.btn--white {
  background: var(--white);
  color: var(--charcoal);
}
.btn--white:hover { background: var(--yellow); color: var(--white); }
.btn--submit {
  width: 100%;
  background: var(--ink);
  color: var(--white);
  font-family: "Work Sans", sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1px;
  padding: 14px 20px;
}
.btn--submit:hover { background: var(--yellow); }
.btn--small { font-size: 14px; font-weight: 700; padding: 8px 16px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255,255,255,.05);
  border-bottom: 1px solid #fff;
  transition: background-color 2s ease;
}
.site-header.is-stuck { background: #fff; }
.site-header.is-stuck .site-header__inner { min-height: 80px; }
.site-header__inner {
  display: flex;
  align-items: center;
  max-width: none;
  padding: 8px 20px;
  gap: 8px;
}
.brand { flex: 0 0 25%; display: flex; justify-content: center; }
.brand img {
  width: 30%;
  min-width: 72px;
  max-width: 140px;
  transition: transform .6s ease;
}
.brand:hover img { transform: rotate(360deg); }

.nav { flex: 1 1 50%; }
.nav__list {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}
.nav__link {
  font-family: "Questrial", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--charcoal);
  padding: 18px 25px;
  background: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav__link svg { width: 10px; height: 10px; }
.nav__link:hover,
.nav__link.is-active { color: var(--ink); }
.nav__item--has-sub { position: relative; }
.nav__sub {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border-radius: 0 0 15px 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  overflow: hidden;
  z-index: 20;
}
.nav__item--has-sub:hover .nav__sub,
.nav__item--has-sub.is-open .nav__sub { display: block; }
.nav__sublink {
  display: block;
  padding: 12px 20px;
  font-family: "Questrial", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--charcoal);
}
.nav__sublink:hover,
.nav__sublink.is-active {
  background: var(--yellow);
  color: #fff;
}

.site-header__cta { flex: 0 0 20%; display: flex; justify-content: flex-end; padding-left: 50px; }
.social-icon {
  flex: 0 0 4%;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--charcoal);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color .25s, transform .25s;
}
.social-icon svg { width: 18px; height: 18px; }
.social-icon:hover { background: var(--yellow); transform: scale(1.08); }

.menu-toggle {
  display: none;
  background: var(--yellow);
  color: #fff;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; fill: #fff; }
.menu-toggle[aria-expanded="true"] { background: var(--charcoal); }
.menu-toggle .menu-toggle__close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: block; }

.mobile-menu {
  display: none;
  background: #fff;
  padding: 10px 20px 24px;
}
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu a, .mobile-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 12px 8px;
  font-family: "Questrial", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--charcoal);
}
.mobile-menu .nav__sub { position: static; display: none; box-shadow: none; }
.mobile-menu .nav__item--has-sub.is-open .nav__sub { display: block; }
.mobile-menu .nav__sublink:hover { background: var(--yellow); }

/* Hero */
.hero,
.page-hero {
  position: relative;
  min-height: 100vh;
  margin-top: -135px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}
.page-hero--inner {
  min-height: 62vh;
  justify-content: flex-end;
}
.hero__overlay,
.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
}
.hero__wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(198,255,221,.18), rgba(251,215,134,.18), rgba(247,121,125,.18));
  mix-blend-mode: hard-light;
  animation: wash 10s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes wash {
  from { opacity: .35; }
  to { opacity: .7; }
}
.hero__inner,
.page-hero__copy {
  position: relative;
  z-index: 1;
  padding: 160px 50px 80px;
}
.hero__kicker {
  margin: 0 0 8px;
  font-family: "Questrial", sans-serif;
  font-size: 30px;
  font-weight: 500;
  color: #fff;
}
.hero h1,
.page-hero h1 {
  margin: 0 0 28px;
  font-size: 110px;
  font-weight: 600;
  line-height: .95;
  color: #fff;
}
.page-hero__copy { padding: 0 100px 35px 50px; }

/* Offers */
.offers { background: #fff; }
.offers__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 20px 20px;
}
.offer-card {
  display: block;
  padding: 20px;
  border-radius: 15px;
  transition: background-color .3s;
}
.offer-card:hover { background: var(--yellow-soft); }
.offer-card__icon { display: block; width: 56px; height: 56px; margin-bottom: 25px; }
.offer-card__icon svg { width: 100%; height: 100%; }
.offer-card h3 {
  margin: 0 0 6px;
  font-size: 21px;
  font-weight: 600;
  color: var(--charcoal);
}
.offer-card p {
  margin: 0;
  font-size: 16px;
  font-weight: 300;
  color: var(--olive);
  text-align: justify;
}

.anchor { scroll-margin-top: 90px; height: 0; }

/* About / expertise */
.about, .expertise { padding: 100px 0; }
.about__grid,
.expertise__grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
}
.section-title {
  margin: 0 0 24px;
  padding: 0 0 0 20px;
  font-size: 50px;
  font-weight: 600;
  line-height: 55px;
  color: var(--ink);
}
.about__media, .expertise__media { padding: 0; }
.about__media img, .expertise__media img {
  width: 100%;
  height: 700px;
  object-fit: cover;
}
.about__copy, .expertise__copy { padding: 0 50px; }
.about__copy h3, .expertise__copy h3 {
  margin: 0 0 35px;
  font-size: 45px;
  font-weight: 500;
  line-height: 50px;
  color: var(--ink);
}
.about__copy p, .expertise__copy p {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 300;
  color: var(--ink);
  text-align: justify;
}
.expertise__closing {
  font-size: 32px;
  font-weight: 500;
  line-height: 1.25;
  margin-top: 24px;
}

/* Flip boxes */
.solutions { background: var(--fog); padding: 70px 25px 35px; }
.solutions .section-title { max-width: var(--max); margin: 0 auto 20px; padding-left: 0; }
.flip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: var(--max);
  margin: 0 auto;
}
.flip {
  height: 400px;
  border-radius: 15px;
  overflow: hidden;
  perspective: 1200px;
}
.flip__inner {
  position: relative;
  width: 100%;
  height: 100%;
}
.flip__face {
  position: absolute;
  inset: 0;
  background: var(--flip-image) center/cover no-repeat;
  display: flex;
  align-items: center;
  padding: 40px;
  transition: transform .6s cubic-bezier(.25,.46,.45,.94);
}
.flip__front { z-index: 2; }
.flip__back {
  transform: translateY(100%);
  background-color: #000;
}
.flip__back::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #f1cd3a75;
}
.flip:hover .flip__front { transform: translateY(-100%); }
.flip:hover .flip__back { transform: translateY(0); }
.flip__copy { color: #fff; }
.flip__copy h3 {
  margin: 0 0 8px;
  font-size: 45px;
  font-weight: 400;
  color: #fff;
}
.flip__copy p {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: 20px;
  font-weight: 300;
}
.flip__back .btn { position: relative; z-index: 1; box-shadow: 0 0 10px rgba(0,0,0,.5); }

/* Works */
.works { padding: 70px 20px 75px; max-width: 1280px; margin: 0 auto; }
.works-toolbar { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.works-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Questrial", sans-serif;
  font-size: 30px;
  font-weight: 500;
}
.works-filter select {
  appearance: none;
  -webkit-appearance: none;
  width: 261px;
  padding: 10px 36px 10px 14px;
  border: 1px solid #ddd;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' stroke='%233d3e40' fill='none' stroke-width='1.5'/></svg>") no-repeat right 12px center;
  font-size: 16px;
}
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.work-card { min-height: 400px; }
.work-card[hidden] { display: none; }
.work-card__link {
  display: flex;
  align-items: flex-end;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  position: relative;
  color: #fff;
}
.work-card__overlay {
  position: absolute;
  inset: 0;
  background: var(--charcoal);
  opacity: .2;
  transition: opacity .5s, background-color .5s;
}
.work-card__link:hover .work-card__overlay {
  background: var(--yellow);
  opacity: .5;
}
.work-card__body { position: relative; z-index: 1; padding: 0 0 15px 15px; }
.work-card__body h2 {
  margin: 0 0 4px;
  font-size: 35px;
  color: #fff;
}
.work-card__body p {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 400;
  color: #fff;
}

.works-empty { grid-column: 1 / -1; }

.gallery { padding: 100px 20px; max-width: 1200px; margin: 0 auto; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}
.gallery-item {
  display: block;
  overflow: hidden;
}
.gallery-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform .8s;
}
.gallery-item:hover img { transform: scale(1.04); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 4000;
  background: rgba(0,0,0,.88);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 90vw; max-height: 85vh; }
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: absolute;
  background: var(--ink);
  color: #fff;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
}
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev, .lightbox__next { top: 50%; transform: translateY(-50%) rotate(-90deg); }
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; transform: translateY(-50%) rotate(90deg); }
.lightbox button svg { width: 18px; height: 18px; fill: #fff; }

.simple {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 20px;
  text-align: center;
}

/* Footer */
.cta-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 400px;
}
.cta-band__copy {
  background: var(--yellow);
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.cta-band__title {
  margin: 0 0 15px;
  font-size: 48px;
  line-height: 55px;
  color: var(--ink);
}
.cta-band__sub {
  margin: 0 0 24px;
  font-family: "Questrial", sans-serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--charcoal);
}
.cta-band__media {
  background-size: cover;
  background-position: center right;
}

.site-footer { background: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 25% 24% 25% 26%;
  gap: 0;
  padding: 40px 20px 10px;
  max-width: 1400px;
  margin: 0 auto;
}
.footer-logo { width: 51%; margin: 0 auto; }
.footer-title {
  margin: 25px 0 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--charcoal);
}
.footer-list { list-style: none; margin: 8px 0 0; padding: 0; }
.footer-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--olive);
}
.footer-list a:hover { color: var(--yellow); }
.footer-list svg { width: 17px; height: 17px; fill: var(--charcoal); }
.footer-list a:hover svg { fill: var(--yellow); }
.footer-address {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--olive);
}
.footer-bottom {
  border-top: 1px solid var(--yellow);
  text-align: center;
  padding: 12px 16px;
  font-size: 12px;
  color: var(--ink);
}
.footer-bottom a { text-decoration: underline; }

/* Devis popup */
.devis-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0,0,0,.8);
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
}
.devis-overlay[hidden] { display: none; }
.devis-panel {
  width: 500px;
  max-width: 100%;
  height: 100vh;
  background: #fff;
  overflow: auto;
  box-shadow: 2px 8px 23px 3px rgba(0,0,0,.2);
  animation: slideInRight 1.2s ease;
  position: relative;
}
@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
.devis-close {
  position: absolute;
  top: 2%;
  right: 8%;
  width: 40px;
  height: 40px;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.devis-close svg { width: 18px; height: 18px; fill: currentColor; }
.devis-close:hover { background: var(--yellow); color: var(--ink); }
.devis-hero { width: 100%; height: auto; }
.devis-body { padding: 10px 25px 25px; }
.devis__title {
  margin: 25px 0 15px;
  font-size: 35px;
  color: var(--ink);
}
.devis-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { display: block; margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  background: #fff;
  color: var(--ink);
  font-family: "Poppins", sans-serif;
  font-size: 14px;
}
.devis-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 10px;
}
.devis-meta h3 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 400;
  color: var(--ink);
}
.devis-meta p, .devis-meta a {
  font-size: 12px;
  font-weight: 300;
  color: var(--ink);
}
.form-status { margin-top: 12px; font-size: 14px; }
.form-status.is-ok { color: #2e7d32; }
.form-status.is-err { color: #b00020; }

.scroll-top {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 995;
  background: var(--charcoal);
  color: var(--yellow);
  border: 0;
  padding: 2px 13px 0;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, background-color .25s, color .25s;
}
.scroll-top.is-visible { opacity: 1; pointer-events: auto; }
.scroll-top svg { width: 18px; height: 18px; fill: currentColor; }
.scroll-top:hover { background: var(--yellow); color: var(--charcoal); }

@media (max-width: 1024px) {
  .hero h1, .page-hero h1 { font-size: 80px; }
  .hero__kicker { font-size: 80px; }
  .site-header__cta { padding-left: 0; }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .mobile-menu.is-open { display: block; }
  .site-header__cta { flex: 1; }
  .brand { flex: 0 0 20%; }
  .cta-band__title { font-size: 40px; }
}

@media (max-width: 767px) {
  .hero, .page-hero { min-height: 50vh; }
  .page-hero--inner { min-height: 50vh; }
  .hero__inner { padding: 140px 15px 40px; }
  .page-hero__copy { padding: 0 0 25px 15px; }
  .hero h1, .page-hero h1 { font-size: 55px; }
  .hero__kicker { font-size: 20px; }
  .offers__grid,
  .flip-grid,
  .works-grid,
  .about__grid,
  .expertise__grid,
  .cta-band,
  .footer-grid,
  .devis-form__row,
  .devis-meta,
  .gallery-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 30px; line-height: 1.1; text-align: center; padding: 15px; }
  .about__copy, .expertise__copy { padding: 15px; }
  .about__copy h3, .expertise__copy h3 { font-size: 28px; line-height: 1.2; }
  .about__media img, .expertise__media img { height: 400px; }
  .about, .expertise { padding: 50px 0; }
  .flip { height: 280px; }
  .flip__copy h3 { font-size: 32px; }
  .work-card, .work-card__link { min-height: 320px; }
  .works-filter { font-size: 22px; flex-wrap: wrap; }
  .cta-band__copy { padding: 30px 20px; text-align: center; align-items: center; }
  .cta-band__title { font-size: 30px; line-height: 1.1; }
  .cta-band__media { min-height: 200px; }
  .footer-grid { padding: 20px; }
  .footer-col--logo { display: none; }
  .brand img { width: 100%; height: 75px; object-fit: contain; }
  .devis-panel { width: 100%; }
  .devis__title { font-size: 32px; }
}
