:root {
  --ink: #17211d;
  --muted: #5f6b64;
  --paper: #fbfaf5;
  --cloud: #eef3ef;
  --line: #d9e1d8;
  --forest: #1f4d3a;
  --forest-deep: #123526;
  --moss: #77743d;
  --sky: #d8edf4;
  --white: #ffffff;
  --shadow: 0 18px 54px rgba(18, 53, 38, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.is-lightbox-open {
  overflow: hidden;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--white);
}

.site-header::before {
  content: none;
}

.site-header::after {
  content: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0;
}

.brand-logo {
  width: clamp(230px, 24vw, 390px);
  max-height: 128px;
  height: auto;
  filter: brightness(0) invert(1) drop-shadow(0 10px 24px rgba(0, 0, 0, 0.28));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 13px 18px;
  background: rgba(8, 23, 18, 0.46);
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 38px rgba(8, 23, 18, 0.18);
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  padding: 10px 12px;
  color: var(--white);
  background: rgba(8, 23, 18, 0.32);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
  cursor: pointer;
}

.nav-toggle-icon {
  display: grid;
  gap: 4px;
}

.nav-toggle-icon i {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.nav-toggle strong {
  font-size: 0.82rem;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.84);
}

.nav-links a:hover {
  color: var(--white);
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.hero-image,
.hero-video,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image,
.hero-video {
  object-fit: cover;
  object-position: center;
  z-index: -3;
}

.hero-video {
  pointer-events: none;
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(8, 23, 18, 0.78) 0%, rgba(8, 23, 18, 0.56) 33%, rgba(8, 23, 18, 0.18) 72%),
    linear-gradient(0deg, rgba(8, 23, 18, 0.7) 0%, rgba(8, 23, 18, 0) 46%);
}

.hero-content {
  align-self: center;
  width: min(720px, calc(100% - 36px));
  padding: 130px 0 110px clamp(18px, 7vw, 96px);
}

.eyebrow {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--forest);
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(3.3rem, 8vw, 7.6rem);
  line-height: 0.92;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

h3 {
  margin: 0 0 14px;
  font-size: 1.35rem;
  line-height: 1.15;
}

.hero-copy {
  max-width: 620px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.06rem, 2vw, 1.35rem);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 20px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--forest), var(--moss));
  box-shadow: var(--shadow);
}

.button.primary:hover {
  background: var(--forest-deep);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.1);
}

.hero-note {
  position: absolute;
  right: clamp(18px, 4vw, 56px);
  bottom: clamp(18px, 4vw, 48px);
  width: min(360px, calc(100% - 36px));
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 18px;
  background: rgba(18, 35, 28, 0.34);
  backdrop-filter: blur(18px);
}

.hero-note span,
.hero-note strong {
  display: block;
}

.hero-note span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-note strong {
  margin-top: 6px;
  font-size: 1rem;
  line-height: 1.25;
}

.section-pad {
  padding: clamp(74px, 10vw, 132px) clamp(18px, 6vw, 84px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.7fr);
  gap: clamp(32px, 8vw, 104px);
  align-items: end;
  background: var(--paper);
}

.intro p:last-child,
.contact-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.name-story {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(320px, 0.8fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: end;
  padding: clamp(42px, 7vw, 78px) clamp(18px, 6vw, 84px);
  color: var(--white);
  background:
    linear-gradient(115deg, rgba(18, 53, 38, 0.94), rgba(119, 116, 61, 0.74)),
    url("assets/portfolio-alsace-vallee.png") center / cover;
}

.name-story .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.name-story h2 {
  max-width: 560px;
}

.name-story p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.services {
  background: var(--cloud);
}

.credentials {
  background: var(--white);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 720px);
  margin-bottom: 38px;
}

.section-heading.wide {
  grid-template-columns: minmax(0, 920px);
}

.section-heading p:not(.eyebrow) {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.credential-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.credential-grid article {
  min-height: 250px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 247, 0.96)),
    radial-gradient(circle at top right, rgba(119, 116, 61, 0.12), transparent 42%);
}

.credential-grid span {
  display: inline-flex;
  margin-bottom: 34px;
  border: 1px solid rgba(31, 77, 58, 0.14);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--forest);
  background: rgba(31, 77, 58, 0.06);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.credential-grid h3 {
  margin-bottom: 12px;
  font-size: 1.18rem;
}

.credential-grid p {
  margin: 0;
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.service-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--white);
}

.service-card span {
  display: inline-flex;
  margin-bottom: 54px;
  color: var(--forest);
  font-size: 0.82rem;
  font-weight: 800;
}

.service-card p {
  margin: auto 0 0;
  color: var(--muted);
}

.portfolio {
  background: var(--paper);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: repeat(3, minmax(206px, 1fr));
  gap: 14px;
}

.portfolio-card {
  position: relative;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--forest-deep);
  cursor: zoom-in;
}

.portfolio-card.large {
  grid-row: span 3;
  min-height: 0;
}

.portfolio-card:focus-visible {
  outline: 3px solid rgba(119, 116, 61, 0.52);
  outline-offset: 4px;
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

.portfolio-card:hover img {
  transform: scale(1.035);
}

.portfolio-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(8, 23, 18, 0.74), rgba(8, 23, 18, 0.05) 58%),
    linear-gradient(90deg, rgba(8, 23, 18, 0.18), rgba(8, 23, 18, 0));
}

.portfolio-card figcaption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 1;
  color: var(--white);
}

.portfolio-card span,
.portfolio-card strong {
  display: block;
}

.portfolio-card span {
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.portfolio-card strong {
  max-width: 420px;
  font-size: clamp(1.25rem, 2vw, 1.9rem);
  line-height: 1.08;
}

.area {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr);
  gap: clamp(32px, 8vw, 96px);
  align-items: start;
  background: var(--cloud);
}

.area-content {
  display: grid;
  gap: 28px;
}

.area-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
}

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

.area-list li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--forest-deep);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.territory-map {
  margin: 0;
}

.territory-map svg {
  display: block;
  width: 100%;
  min-height: 430px;
  filter: drop-shadow(0 20px 42px rgba(18, 53, 38, 0.16));
}

.territory-map figcaption {
  max-width: 560px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.map-frame {
  fill: url("#mapGround");
  stroke: rgba(31, 77, 58, 0.16);
}

.map-soft {
  fill: rgba(31, 77, 58, 0.08);
}

.map-ridge {
  fill: none;
  stroke: url("#mapRidge");
  stroke-linecap: round;
  stroke-width: 10;
}

.map-ridge.back {
  opacity: 0.38;
  stroke-width: 8;
}

.map-thur {
  fill: none;
  stroke: #77a8ba;
  stroke-linecap: round;
  stroke-width: 6;
}

.map-road {
  fill: none;
  stroke: rgba(23, 33, 29, 0.22);
  stroke-dasharray: 8 10;
  stroke-linecap: round;
  stroke-width: 4;
}

.map-pins circle {
  fill: var(--forest);
  stroke: var(--white);
  stroke-width: 4;
}

.map-labels text {
  fill: var(--forest-deep);
  font-size: 18px;
  font-weight: 900;
}

.map-labels .main {
  fill: var(--forest);
  font-size: 34px;
}

.map-labels .muted {
  fill: rgba(23, 33, 29, 0.46);
  font-size: 20px;
}

.look {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  min-height: 620px;
  color: var(--white);
  background:
    linear-gradient(115deg, rgba(18, 53, 38, 0.92), rgba(31, 77, 58, 0.7)),
    url("assets/hero-drone-la-haut.png") center / cover;
}

.look-panel {
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: clamp(74px, 10vw, 132px) clamp(18px, 6vw, 84px);
}

.look-panel p:last-child {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.12rem;
}

.look-list {
  display: grid;
  align-content: end;
  gap: 12px;
  padding: clamp(74px, 10vw, 132px) clamp(18px, 6vw, 84px);
  background: rgba(8, 23, 18, 0.26);
  backdrop-filter: blur(14px);
}

.look-list div {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.look-list strong,
.look-list span {
  display: block;
}

.look-list strong {
  margin-bottom: 8px;
}

.look-list span {
  color: rgba(255, 255, 255, 0.74);
}

.mission {
  background: var(--paper);
}

.mission-board {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: 14px;
}

.mission-options {
  display: grid;
  gap: 10px;
}

.mission-option {
  min-height: 62px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 18px;
  color: var(--forest-deep);
  background: var(--white);
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.mission-option:hover,
.mission-option.active {
  color: var(--white);
  border-color: transparent;
  background: linear-gradient(135deg, var(--forest), var(--moss));
}

.mission-option:focus-visible {
  outline: 3px solid rgba(119, 116, 61, 0.28);
  outline-offset: 3px;
}

.mission-preview {
  position: relative;
  display: flex;
  min-height: 278px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 8px;
  padding: clamp(24px, 4vw, 44px);
  color: var(--white);
  background:
    linear-gradient(115deg, rgba(8, 23, 18, 0.82), rgba(31, 77, 58, 0.54)),
    url("assets/portfolio-immobilier.png") center / cover;
}

.mission-preview span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mission-preview h3 {
  max-width: 640px;
  margin: 12px 0 0;
  font-size: clamp(2rem, 4vw, 4.6rem);
}

.mission-preview p {
  max-width: 620px;
  margin: 18px 0 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

.mission-preview .button {
  width: fit-content;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.7fr);
  gap: clamp(32px, 8vw, 96px);
  align-items: start;
  background: var(--paper);
}

.contact-copy p {
  max-width: 560px;
  margin-top: 22px;
}

.contact-form {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 28px);
  background: var(--white);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 7px;
  color: var(--forest-deep);
  font-weight: 800;
}

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

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--forest);
  outline: 3px solid rgba(31, 77, 58, 0.14);
}

.form-button {
  width: 100%;
  margin-top: 4px;
}

.form-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 6vw, 84px);
  color: var(--muted);
  background: var(--cloud);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.footer-brand img {
  width: min(210px, 46vw);
  height: auto;
}

.site-footer a {
  color: var(--forest);
  font-weight: 800;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 48px);
  background: rgba(8, 23, 18, 0.88);
  backdrop-filter: blur(12px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox figure {
  width: min(1120px, 100%);
  margin: 0;
}

.lightbox img {
  width: 100%;
  max-height: 78svh;
  border-radius: 8px;
  object-fit: contain;
  background: var(--forest-deep);
}

.lightbox figcaption {
  margin-top: 14px;
  color: var(--white);
}

.lightbox span,
.lightbox strong {
  display: block;
}

.lightbox span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lightbox strong {
  margin-top: 4px;
  font-size: clamp(1.4rem, 3vw, 2.6rem);
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 1320px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% - 4px);
    right: clamp(18px, 4vw, 56px);
    display: none;
    width: min(320px, calc(100vw - 36px));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    padding: 0;
    background: rgba(8, 23, 18, 0.9);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 46px rgba(8, 23, 18, 0.18);
  }

  .site-header.nav-open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links a:last-child {
    border-bottom: 0;
  }

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

@media (max-width: 980px) {
  .intro,
  .name-story,
  .look,
  .contact {
    grid-template-columns: 1fr;
  }

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

  .mission-board {
    grid-template-columns: 1fr;
  }

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

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

  .look {
    min-height: auto;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .portfolio-card.large {
    grid-row: auto;
    min-height: 420px;
  }

  .portfolio-card {
    min-height: 320px;
  }

}

@media (max-width: 720px) {
  .brand {
    padding: 0;
  }

  .brand-logo {
    width: 210px;
  }

  .hero-content {
    width: 100%;
    padding: 120px 18px 220px;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 4.8rem);
  }

  .hero-note {
    left: 18px;
    right: 18px;
  }

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

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

  .service-card {
    min-height: 220px;
  }

  .portfolio-card,
  .portfolio-card.large {
    min-height: 320px;
  }

  .territory-map svg {
    min-height: 320px;
  }

  .mission-option {
    min-height: 54px;
  }

  .mission-preview {
    min-height: 360px;
  }

  .service-card span {
    margin-bottom: 34px;
  }

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

  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 460px) {
  .site-header {
    padding: 14px 12px;
  }

  .brand-logo {
    width: 168px;
  }

  .nav-toggle {
    padding: 9px 10px;
  }

  .nav-toggle strong {
    display: none;
  }

  h1 {
    font-size: clamp(2.78rem, 16vw, 3.8rem);
  }

  h2 {
    font-size: clamp(1.9rem, 11vw, 3rem);
  }

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

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-note {
    bottom: 16px;
  }

  .section-pad {
    padding: 64px 16px;
  }

  .map-labels text {
    font-size: 22px;
  }

  .lightbox {
    padding: 14px;
  }
}
