:root {
  --ink: #17212b;
  --muted: #5b6671;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --line: #d9ddd8;
  --navy: #18344f;
  --teal: #0f766e;
  --brass: #a66f2a;
  --soft: #eef4f2;
  --shadow: 0 18px 42px rgba(23, 33, 43, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

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

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

p,
h1,
h2,
h3 {
  margin-top: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 72px);
  color: #fff;
  background: rgba(24, 52, 79, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand img {
  width: auto;
  height: 42px;
}

.brand-text {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 6px;
  align-items: baseline;
  line-height: 1;
  letter-spacing: 0;
}

.brand-text span,
.brand-text strong {
  font-size: 1.25rem;
}

.brand-text small {
  grid-column: 1 / -1;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.73rem;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 3vw, 38px);
  font-size: 0.96rem;
}

.site-nav a,
.header-action {
  color: rgba(255, 255, 255, 0.82);
}

.site-nav a:hover,
.header-action:hover {
  color: #fff;
}

.header-action {
  min-width: max-content;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 6px;
  font-weight: 700;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(88vh - 70px);
  padding: clamp(82px, 12vw, 160px) clamp(22px, 7vw, 96px) clamp(56px, 8vw, 96px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(12, 28, 44, 0.86), rgba(12, 28, 44, 0.48), rgba(12, 28, 44, 0.2)),
    url("assets/hero-interieur.jpg") center / cover;
}

.hero-content {
  display: grid;
  justify-items: center;
  width: min(900px, 100%);
  text-align: center;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #a8f2ea;
}

.hero h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

h1 {
  max-width: 900px;
  margin-bottom: 22px;
  font-size: clamp(3.2rem, 9vw, 7rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.24rem;
  line-height: 1.25;
}

.hero-logo {
  width: min(640px, 88vw);
  margin-bottom: clamp(18px, 3vw, 28px);
}

.hero-tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(760px, 100%);
  min-height: 118px;
  margin: 0;
  padding: 24px clamp(18px, 5vw, 48px);
  border: 3px solid rgba(255, 255, 255, 0.94);
  color: #fff;
  font-size: clamp(1.65rem, 4vw, 2.45rem);
  font-weight: 900;
  line-height: 1.35;
  text-wrap: balance;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 6px;
  font-weight: 800;
}

.button.primary {
  color: #fff;
  background: var(--teal);
}

.button.secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.section {
  padding: clamp(64px, 9vw, 118px) clamp(20px, 6vw, 84px);
}

.intro,
.vision {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.74fr);
  gap: clamp(32px, 7vw, 86px);
  align-items: center;
}

.section-copy p,
.section-heading p,
.service-card p,
.contact-copy p {
  color: var(--muted);
  font-size: 1.04rem;
}

.portrait-panel {
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(180deg, #edf6f3 0%, #fff 100%);
  box-shadow: var(--shadow);
}

.portrait-panel img {
  width: 100%;
  aspect-ratio: 1 / 0.95;
  object-fit: contain;
  object-position: bottom center;
  background: #edf6f3;
}

.values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line);
}

.values li {
  min-height: 58px;
  padding: 16px;
  background: #fff;
  font-weight: 800;
}

.vision {
  grid-template-columns: minmax(320px, 0.86fr) minmax(0, 1fr);
  background: var(--soft);
}

.image-band {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.image-band img {
  width: 100%;
  aspect-ratio: 4 / 3.25;
  object-fit: cover;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 36px;
}

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

.service-card,
.tariff-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 28px rgba(23, 33, 43, 0.08);
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 24px;
}

.service-card img {
  width: calc(100% + 48px);
  height: 190px;
  margin: -24px -24px 22px;
  border-radius: 8px 8px 0 0;
  object-fit: cover;
}

.service-card ul {
  display: grid;
  gap: 8px;
  margin: auto 0 0;
  padding-left: 18px;
  color: var(--ink);
}

.tariffs {
  background: #fff;
}

.tariff-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.tariff-block {
  overflow: hidden;
}

.tariff-block h3 {
  margin: 0;
  padding: 18px 20px;
  color: #fff;
  background: var(--navy);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 430px;
  border-collapse: collapse;
  font-size: 0.96rem;
}

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

th {
  color: var(--muted);
  background: #f5f7f6;
  font-size: 0.82rem;
  text-transform: uppercase;
}

td:not(:first-child),
th:not(:first-child) {
  text-align: right;
  white-space: nowrap;
}

.compact-tariffs dl {
  margin: 0;
  padding: 0;
}

.compact-tariffs div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}

.compact-tariffs dt {
  font-weight: 800;
}

.compact-tariffs dd {
  margin: 0;
  color: var(--muted);
  text-align: right;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.55fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  padding: clamp(64px, 9vw, 120px) clamp(20px, 6vw, 84px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(24, 52, 79, 0.96), rgba(15, 118, 110, 0.88)),
    url("assets/plan-immobilier.png") center / cover;
}

.contact-section .eyebrow,
.contact-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-logo {
  width: min(260px, 100%);
  margin-bottom: 24px;
}

.contact-card {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  font-style: normal;
}

.contact-card a {
  font-size: 1.22rem;
  font-weight: 800;
}

.contact-card span {
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .site-nav {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .header-action {
    justify-self: start;
  }

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

@media (max-width: 780px) {
  .hero {
    min-height: 78vh;
    background-position: 58% center;
  }

  .intro,
  .vision,
  .contact-section,
  .tariff-layout {
    grid-template-columns: 1fr;
  }

  .vision .image-band {
    order: 2;
  }

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

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

  .compact-tariffs div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .compact-tariffs dd {
    text-align: left;
  }
}

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

  .brand img {
    height: 36px;
  }

  .site-nav {
    gap: 18px;
    font-size: 0.9rem;
  }

  h1 {
    font-size: 3rem;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .section,
  .contact-section {
    padding-left: 16px;
    padding-right: 16px;
  }
}
