:root {
  --sea: #0a3d42;
  --sea-mid: #0e4c52;
  --sea-deep: #051c20;
  --limestone: #e8dfd0;
  --foam: #f4efe6;
  --brass: #b8954a;
  --brass-bright: #d4b56a;
  --ink: #102226;
  --mist: #8aa3a6;
  --white: #fbf8f3;
  --line: rgba(184, 149, 74, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3.5rem;
  --space-6: 6rem;
  --wrap: min(1180px, calc(100% - 2.5rem));
  --header: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: calc(var(--header) + 0.75rem);
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--foam);
  text-rendering: optimizeLegibility;
}

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

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

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

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

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  background: var(--brass);
  color: var(--sea-deep);
  padding: 0.7rem 1rem;
  font-weight: 600;
}

.skip:focus {
  top: 1rem;
}

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

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
}

.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: currentColor;
}

.display {
  font-family: "Big Shoulders Display", "Arial Narrow", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.92;
  text-transform: uppercase;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--sea-deep) 88%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: var(--wrap);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
}

.brand img {
  width: 36px;
  height: 36px;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name strong {
  font-family: "Big Shoulders Display", sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  color: var(--white);
}

.brand-name span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
}

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

.nav a {
  color: var(--limestone);
  font-size: 0.92rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--white);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.1rem;
  border: 1px solid var(--brass);
  color: var(--brass-bright) !important;
  letter-spacing: 0.06em;
  font-size: 0.82rem !important;
  text-transform: uppercase;
}

.nav-cta:hover {
  background: var(--brass);
  color: var(--sea-deep) !important;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.nav-toggle .burger,
.nav-toggle .burger::before,
.nav-toggle .burger::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  position: relative;
}

.nav-toggle .burger::before,
.nav-toggle .burger::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle .burger::before {
  top: -6px;
}

.nav-toggle .burger::after {
  top: 6px;
}

.hero {
  position: relative;
  min-height: calc(100dvh - var(--header));
  background: var(--sea-deep);
  color: var(--white);
  overflow: hidden;
  display: grid;
  align-items: center;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(0.9) contrast(1.04) brightness(0.92);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 28, 32, 0.18) 0%, rgba(5, 28, 32, 0.42) 48%, rgba(5, 28, 32, 0.78) 100%),
    linear-gradient(90deg, rgba(10, 61, 66, 0.28), transparent 58%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(184, 149, 74, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 149, 74, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 70%, transparent);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: var(--wrap);
  margin-inline: auto;
  padding: 5rem 0 3.5rem;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2rem;
  align-items: end;
}

.hero h1 {
  margin: 1rem 0 1.2rem;
  font-size: clamp(3.4rem, 8vw, 7.2rem);
  max-width: 11ch;
}

.hero p {
  max-width: 38rem;
  color: var(--limestone);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.stamp {
  justify-self: end;
  width: min(210px, 36vw);
  opacity: 0.92;
  animation: stamp-turn 48s linear infinite;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0 1.3rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease);
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--brass);
  color: var(--sea-deep);
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--brass-bright);
}

.btn-ghost {
  border-color: var(--limestone);
  color: var(--white);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--white);
  color: var(--sea-deep);
}

.btn-dark {
  background: var(--sea);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--sea-mid);
}

.trust {
  background: var(--sea);
  color: var(--limestone);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-inner {
  width: var(--wrap);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}

.trust article {
  padding: 1.4rem 1rem 1.4rem 0;
}

.trust dt {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.35rem;
}

.trust dd {
  margin: 0;
  font-family: "Big Shoulders Display", sans-serif;
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
}

.section {
  padding: var(--space-6) 0;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: 2.8rem;
}

.section-head h2 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
}

.lede {
  color: color-mix(in srgb, var(--ink) 78%, var(--mist));
  max-width: 40rem;
}

.services {
  background:
    linear-gradient(180deg, var(--foam), #efe7d8);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-grid article {
  background: var(--white);
  padding: 1.6rem 1.4rem 1.8rem;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.service-grid h3 {
  font-family: "Big Shoulders Display", sans-serif;
  font-size: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.icon-line {
  width: 28px;
  height: 28px;
  color: var(--sea);
}

.quartiers {
  background: var(--sea-deep);
  color: var(--white);
}

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

.plaque {
  background: #0c4f7a;
  border: 6px solid #f2f2f2;
  box-shadow:
    0 0 0 2px #1a1a1a,
    0 12px 30px rgba(0, 0, 0, 0.28);
  min-height: 120px;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
}

.plaque small {
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.18em;
  font-size: 0.68rem;
  opacity: 0.8;
}

.plaque strong {
  font-family: "Big Shoulders Display", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.methode {
  background: var(--limestone);
}

.dossier {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
}

.dossier article {
  padding: 1.8rem 1.5rem;
  border-right: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  background: var(--white);
}

.dossier article:last-child {
  border-right: 0;
}

.dossier .ref {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--brass);
}

.dossier h3 {
  margin: 0.7rem 0 0.6rem;
  font-size: 1.7rem;
  text-transform: uppercase;
  font-family: "Big Shoulders Display", sans-serif;
}

.about {
  background: var(--foam);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.about-photo {
  position: relative;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.05);
}

.about-photo figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: var(--sea);
  color: var(--white);
  padding: 0.55rem 0.8rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.about h2 {
  margin: 0.8rem 0 1rem;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
}

.contact {
  background: var(--sea);
  color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.4rem;
}

.contact a {
  color: var(--brass-bright);
}

.contact-card {
  border: 1px solid var(--line);
  padding: 1.4rem;
  margin-top: 1.4rem;
}

.contact-card p + p {
  margin-top: 0.7rem;
}

.form {
  background: var(--white);
  color: var(--ink);
  padding: 1.6rem;
  display: grid;
  gap: 0.95rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field span {
  font-size: 0.88rem;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  min-height: 48px;
  border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  background: var(--foam);
  padding: 0.7rem 0.85rem;
  color: var(--ink);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--ink) 70%, var(--mist));
}

.form-status {
  min-height: 1.3rem;
  font-size: 0.9rem;
}

.footer {
  background: var(--sea-deep);
  color: var(--mist);
  padding: 2.2rem 0 1.6rem;
  font-size: 0.9rem;
}

.footer-inner {
  width: var(--wrap);
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
}

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

.wa-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 50;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #128c7e;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.wa-float svg {
  width: 28px;
  height: 28px;
}

.legal-page {
  background: var(--foam);
  color: var(--ink);
  min-height: 100dvh;
}

.legal-page main {
  width: var(--wrap);
  margin: 3rem auto 5rem;
  max-width: 46rem;
}

.legal-page h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin: 1rem 0 1.4rem;
}

.legal-page h2 {
  margin: 2rem 0 0.6rem;
  font-size: 1.4rem;
}

.legal-page p,
.legal-page li {
  color: color-mix(in srgb, var(--ink) 82%, var(--mist));
}

.matter {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 0.6rem;
  margin-top: 2.4rem;
}

.matter figure {
  margin: 0;
  overflow: hidden;
}

.matter img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.matter figcaption {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: color-mix(in srgb, var(--ink) 55%, var(--mist));
  margin-top: 0.45rem;
}

@media (max-width: 900px) {
  :root {
    --wrap: min(1180px, calc(100% - 1.5rem));
    --space-6: 4rem;
  }

  .trust-inner {
    grid-template-columns: 1fr 1fr;
  }

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

  .matter img {
    height: 220px;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav {
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--sea-deep);
    padding: 0.6rem 1rem 1.2rem;
    border-bottom: 1px solid var(--line);
  }

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

  .nav a {
    border-bottom: 1px solid rgba(232, 223, 208, 0.08);
  }

  .hero-inner,
  .section-head,
  .service-grid,
  .plaque-grid,
  .dossier,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .stamp {
    display: none;
  }

  .dossier article {
    border-right: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  }

  .hero {
    min-height: 88dvh;
  }
}

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

  .stamp {
    animation: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@keyframes stamp-turn {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
