/* Ajustement du rythme vertical d'après la maquette de référence. */
:root {
  --separator-gap: clamp(14px, 1.15vw, 18px);
  --gallery-separator-gap: clamp(28px, 2.3vw, 36px);
}

.background-art {
  min-height: 0;
  height: 100%;
}

.line {
  stroke-width: 1.15;
  opacity: 0.52;
}

.line-orange {
  opacity: 0.45;
}

.shape {
  stroke: none;
  pointer-events: none;
}

.shape-blue {
  fill: #dbe9f5;
  opacity: 0.22;
}

.shape-orange {
  fill: #f2dfca;
  opacity: 0.18;
}

.site-header {
  position: relative;
  z-index: 1;
  min-height: 112px;
  background: transparent;
  border-bottom: 1px solid rgba(37, 40, 43, 0.28);
}

.brand {
  background: transparent;
}

.brand,
.brand-crop {
  width: 190px;
  height: 98px;
}

.brand img {
  width: 190px;
  height: 98px;
}

.site-header nav {
  font-size: 1.06rem;
}

.board-images {
  height: min(38vw, 500px);
}

.board-images {
  position: relative;
}

.board-images.is-animating > figure {
  visibility: hidden;
}

.transition-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.transition-layer img {
  position: absolute;
  max-width: none;
  object-fit: contain;
  background: #f1f0ec;
}

.hero {
  min-height: 350px;
  padding-top: clamp(2.25rem, 4vw, 3.75rem);
  padding-bottom: clamp(2rem, 3vw, 3rem);
}

.hero--editorial {
  min-height: 300px;
  display: block;
  padding: clamp(2.2rem, 4vw, 3.6rem) 0 clamp(2.5rem, 4vw, 3.75rem) 6vw;
}

.hero--editorial h1 {
  max-width: 720px;
  font-size: clamp(2.75rem, 4.8vw, 4.6rem);
  line-height: 1.08;
}

.hero--architectural {
  min-height: 410px;
  padding: var(--separator-gap) 0;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
  gap: clamp(3rem, 7vw, 7.5rem);
  align-items: center;
}

.hero-copy {
  padding-left: clamp(1rem, 3vw, 3.5rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero--architectural h1 {
  max-width: 630px;
  font-size: clamp(2.7rem, 4.35vw, 4.2rem);
}

.hero--architectural .hero-note {
  width: auto;
  max-width: 290px;
  margin: 1.75rem 0 0;
  justify-self: auto;
  align-self: flex-start;
  font-size: clamp(0.95rem, 1.1vw, 1.08rem);
  line-height: 1.55;
}

.hero-visual {
  height: clamp(310px, 28vw, 390px);
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #e8e5de;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 49% 50%;
  transform: scale(1.2);
}

.project-board {
  border-top: 1px solid rgba(37, 40, 43, 0.25);
}

.board-heading {
  min-height: 58px;
  padding-bottom: 11px;
}

.project-board--reverse {
  border-top: 0;
  padding-bottom: 0;
}

.breathing-space {
  min-height: clamp(94px, 8vw, 112px);
  margin-top: var(--gallery-separator-gap);
  border-top: 1px solid rgba(37, 40, 43, 0.42);
  border-bottom: 1px solid rgba(37, 40, 43, 0.25);
}

.breathing-space p {
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  font-size: clamp(1.35rem, 2.15vw, 2.35rem);
  text-align: center;
}

.breathing-space p::before {
  flex: 0 0 34px;
  margin: 0;
}

.site-footer {
  position: relative;
  overflow: hidden;
  background: transparent;
  border-top: 1px solid rgba(37, 40, 43, 0.28);
  margin-top: var(--gallery-separator-gap);
  margin-bottom: 0;
}

.site-footer::before {
  content: none;
  position: absolute;
  right: -5vw;
  top: -28px;
  width: 240px;
  height: 70px;
  border-top: 1px solid rgba(217, 154, 84, 0.38);
  border-radius: 50%;
  transform: rotate(-7deg);
}

.footer-inner {
  min-height: 88px;
  padding-inline: clamp(1.5rem, 3vw, 3rem);
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  font-size: 0.76rem;
}

.footer-inner strong {
  font-weight: 500;
}

.footer-brand {
  display: block;
  width: 135px;
  height: 70px;
}

.footer-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-inner .email {
  font-size: inherit;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.66rem;
}

@media (max-width: 720px) {
  .line-hero,
  .line-mid {
    display: none;
  }

  .site-header {
    min-height: 96px;
  }

  .brand,
  .brand-crop {
    width: 136px;
    height: 70px;
  }

  .brand img {
    width: 136px;
    height: 70px;
  }

  .hero {
    min-height: 420px;
    padding-top: 3.25rem;
    padding-bottom: 3rem;
  }

  h1 {
    font-size: clamp(2.05rem, 9vw, 2.5rem);
  }

  .site-header nav {
    gap: 0.9rem;
    font-size: 0.86rem;
  }

  .hero--editorial {
    min-height: 290px;
    padding: 3.25rem 0 3rem 0;
  }

  .hero--editorial h1 {
    font-size: clamp(2.35rem, 10vw, 3rem);
  }

  .hero--architectural {
    min-height: 0;
    padding: var(--separator-gap) 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }

  .hero-copy {
    padding-left: 0;
  }

  .hero--architectural h1 {
    font-size: clamp(2.25rem, 9.5vw, 2.9rem);
  }

  .hero--architectural .hero-note {
    margin: 1.5rem 0 0;
  }

  .hero-visual {
    height: clamp(225px, 62vw, 300px);
    border-radius: 10px;
  }

  .hero-note {
    margin-top: 3.5rem;
  }

  .breathing-space {
    min-height: clamp(118px, 31vw, 145px);
    margin-top: var(--gallery-separator-gap);
  }

  .breathing-space p {
    margin: 0 auto;
    display: block;
    font-size: clamp(1.45rem, 6.5vw, 2rem);
  }

  .breathing-space p::before {
    margin-bottom: 1.25rem;
  }

  .board-images,
  .project-board--reverse .board-images {
    height: auto;
    grid-template-rows: minmax(235px, 58vw) minmax(112px, 28vw);
  }

  .footer-inner {
    min-height: 102px;
    grid-template-columns: 1fr auto;
    align-content: center;
    gap: 0.75rem 1.5rem;
  }

  .footer-brand {
    width: 116px;
    height: 60px;
  }

  .footer-inner p {
    grid-column: 1 / -1;
  }

  .site-footer {
    margin-top: var(--gallery-separator-gap);
    margin-bottom: 0;
  }
}
