/* ==========================================================
   Prolux & Co
   Calm and airy: lots of white space, a clear title, then the
   information. Two colors carry the site: Porcelain (#FFFFFA)
   and Stormy Teal (#0D5C63). Everything uses the same rounded
   shapes (pills for buttons, one large radius for cards and
   photos).
   ========================================================== */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("assets/fonts/manrope-latin-wght.woff2") format("woff2");
}

:root {
  --porcelain: #fffffa;
  --teal: #0d5c63;
  --teal-deep: #0a4a50;
  --ink: #0e2629;
  --muted: #4b6366;
  --tint: #edf4f4;
  --tint-strong: #d6e7e8;
  --line: rgba(13, 92, 99, 0.16);

  --focus: var(--teal);

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --radius: 1.5rem;
  --gutter: 1.25rem;
  --header-h: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

p {
  margin: 0;
}

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

.service--urgent,
.site-footer,
.lightbox {
  --focus: var(--porcelain);
}

.wrap {
  width: min(100% - 2 * var(--gutter), 72rem);
  margin-inline: auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--teal);
  color: var(--porcelain);
  font-weight: 600;
  transition: top 0.15s ease;
}

.skip:focus {
  top: 0.75rem;
}

.icon {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  border: 1.5px solid var(--teal);
  border-radius: 999px;
  background: var(--teal);
  color: var(--porcelain);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
}

.btn--small {
  padding: 0.65rem 1.2rem;
  font-size: 0.95rem;
}

.btn--ghost {
  border-color: rgba(13, 92, 99, 0.35);
  background: transparent;
  color: var(--teal);
}

.btn--ghost:hover {
  border-color: var(--teal);
  background: var(--tint);
  color: var(--teal-deep);
}

.btn--light {
  border-color: var(--porcelain);
  background: var(--porcelain);
  color: var(--teal);
}

.btn--light:hover {
  border-color: var(--tint-strong);
  background: var(--tint-strong);
  color: var(--teal-deep);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 250, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
}

.brand {
  justify-self: start;
  color: var(--teal);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav__link:hover {
  color: var(--teal);
}

/* Language switcher: FR / NL / EN */

.lang {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.lang button {
  padding: 0.4rem 0.7rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.lang button:hover {
  color: var(--teal);
}

.lang button[aria-pressed="true"] {
  background: rgba(13, 92, 99, 0.12);
  color: var(--teal);
}

.lang--menu {
  display: none;
}

.site-header__actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 0.75rem;
}

.call__label {
  display: none;
}

.menu-toggle {
  display: none;
  padding: 0.65rem 1.1rem;
  border: 1.5px solid rgba(13, 92, 99, 0.35);
  border-radius: 999px;
  background: transparent;
  color: var(--teal);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 5.5rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
  background: linear-gradient(180deg, var(--tint-strong) 0%, #f2f8f7 55%, var(--porcelain) 100%);
}

.hero__text {
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero h1 {
  max-width: 9em;
  margin-inline: auto;
  font-size: clamp(3.1rem, 9vw, 6.5rem);
}

.hero__lead {
  max-width: 26rem;
  margin: 1.5rem auto 0;
  color: var(--muted);
  font-size: 1.2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero__photo {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-radius: var(--radius);
  background: var(--tint-strong);
  overflow: hidden;
  aspect-ratio: 16 / 8;
  animation: settle 1.3s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 30%;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(4.5rem, 10vw, 8rem);
}

.section__title {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  font-size: clamp(2.5rem, 5.5vw, 4rem);
}

/* ---------- Services ---------- */

.service-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  min-height: 15rem;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--tint);
}

.service__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: var(--teal);
  color: var(--porcelain);
}

.service__icon .icon {
  width: 1.5rem;
  height: 1.5rem;
}

.service__name {
  font-size: clamp(1.3rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-wrap: balance;
}

.service__note {
  margin-top: 0.4rem;
  color: var(--muted);
}

.service--urgent {
  background: var(--teal);
  color: var(--porcelain);
}

.service--urgent .service__icon {
  background: var(--porcelain);
  color: var(--teal);
}

.service--urgent .service__note {
  color: rgba(255, 255, 250, 0.82);
}

.service--urgent .btn {
  margin-top: 1rem;
}

/* ---------- Travaux ---------- */

.travaux {
  background: var(--tint);
}

.group + .group {
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.group h3 {
  margin-bottom: 1.25rem;
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
}

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

.tile {
  position: relative;
  display: block;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--tint-strong);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.shot {
  cursor: zoom-in;
}

.shot img,
.video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
}

.shot img {
  transition: transform 0.5s ease;
}

.shot:hover img {
  transform: scale(1.03);
}

.video__toggle {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 0.5rem 1rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 250, 0.92);
  color: var(--teal);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.video__toggle:hover {
  background: var(--porcelain);
}

/* ---------- About ---------- */

.about__inner {
  max-width: 54rem;
  text-align: center;
}

.pill {
  display: inline-block;
  margin-bottom: 1.5rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: var(--tint);
  color: var(--teal);
  font-size: 0.95rem;
  font-weight: 600;
}

.about h2 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1.12;
}

.inline-photo {
  display: inline-block;
  width: 2.4em;
  height: 0.88em;
  margin-inline: 0.08em;
  border-radius: 999px;
  vertical-align: -0.08em;
  overflow: hidden;
}

.inline-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% 12%;
}

.about__text {
  max-width: 30rem;
  margin: 1.75rem auto 0;
  color: var(--muted);
  font-size: 1.15rem;
}

.about__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* ---------- Contact ---------- */

.contact {
  background: var(--tint);
}

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

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--porcelain);
}

.card__label {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.card__value {
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.card__value--mail {
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

a.card__value:hover {
  color: var(--teal);
}

.card__action {
  margin-top: auto;
}

.card__value + .card__action {
  margin-top: 1.25rem;
}

.card__action--row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.contact__status {
  color: var(--teal);
  font-size: 0.95rem;
  font-weight: 600;
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 2.5rem;
  background: var(--teal);
  color: rgba(255, 255, 250, 0.82);
  font-size: 0.95rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}

.site-footer a {
  color: var(--porcelain);
}

.site-footer a:hover {
  color: var(--tint-strong);
}

/* ---------- Lightbox ---------- */

.lightbox {
  width: min(94vw, 90rem);
  max-height: 92svh;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: #082a2e;
  color: var(--porcelain);
  overflow: hidden;
}

.lightbox::backdrop {
  background: rgba(6, 28, 31, 0.88);
}

.lightbox figure {
  margin: 0;
}

.lightbox img {
  width: 100%;
  max-height: 82svh;
  object-fit: contain;
}

.lightbox figcaption {
  padding: 0.75rem 1.25rem 1rem;
  font-weight: 600;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  padding: 0.55rem 1.1rem;
  border: 0;
  border-radius: 999px;
  background: var(--porcelain);
  color: var(--teal);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.lightbox__close {
  top: 0.75rem;
  right: 0.75rem;
}

.lightbox__nav {
  top: 45%;
  transform: translateY(-50%);
}

.lightbox__prev {
  left: 0.75rem;
}

.lightbox__next {
  right: 0.75rem;
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: var(--tint-strong);
}

/* ---------- Tablet ---------- */

@media (max-width: 900px) {
  .service-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .card {
    padding: 1.5rem;
  }

  .hero__photo {
    aspect-ratio: 4 / 3;
  }

  /* Menu becomes a button; the links open in a panel under the header */
  .site-header__inner {
    grid-template-columns: 1fr auto;
  }

  .menu-toggle {
    display: inline-block;
  }

  .call__number {
    display: none;
  }

  .call__label {
    display: inline;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
    border-bottom: 1px solid var(--line);
    background: var(--porcelain);
  }

  .nav.is-open {
    display: flex;
  }

  .nav__link {
    padding: 0.95rem 0;
    border-top: 1px solid var(--line);
    color: var(--ink);
    font-size: 1.1rem;
  }

  .nav__link:first-child {
    border-top: 0;
  }

  .lang--header {
    display: none;
  }

  .lang--menu {
    display: flex;
    gap: 0.5rem;
    margin-left: -1rem;
    padding-top: 1rem;
    border-top: 0;
  }

  .lang--menu button {
    padding: 0.55rem 1rem;
    font-size: 0.95rem;
  }
}

/* ---------- Mobile: each group of photos swipes sideways ---------- */

@media (max-width: 700px) {
  .service-list {
    grid-template-columns: 1fr;
  }

  .service {
    min-height: 0;
    gap: 1.5rem;
  }

  .gallery {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    gap: 0.75rem;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }

  .gallery::-webkit-scrollbar {
    display: none;
  }

  .tile {
    scroll-snap-align: start;
  }

  .hero__actions .btn {
    flex: 1 1 auto;
  }

  .inline-photo {
    width: 2.1em;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}