:root {
  --noir: #000000;
  --papier: #efe9de;
  --blanc: #faf7f1;
  --gris: #6e685f;
  --gris-clair: #a39d93;
  --filet: #cbc3b4;
  --font: "Schibsted Grotesk", system-ui, sans-serif;
  --logo: "Montserrat", var(--font);
  --marge: clamp(20px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--noir);
  background: var(--papier);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
img, svg { display: block; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* En-tête */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 22px var(--marge);
  color: var(--blanc);
}
.site-header::after {
  content: "";
  position: absolute;
  left: var(--marge); right: var(--marge); bottom: 0;
  border-bottom: 1px solid rgba(250, 247, 241, .35);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 46px; height: 34px; }
.brand-name { font-family: var(--logo); font-weight: 500; font-size: 24px; letter-spacing: .01em; }
.nav { display: flex; gap: 32px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 16px; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Boutons */
.btn {
  display: inline-block;
  padding: 13px 22px;
  font: 500 16px/1.2 var(--font);
  text-decoration: none;
  border: 1px solid currentColor;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn-outline { color: var(--blanc); background: transparent; }
.btn-outline:hover { background: var(--blanc); color: var(--noir); }
.btn-light { color: var(--noir); background: var(--blanc); border-color: var(--blanc); }
.btn-light:hover { background: transparent; color: var(--blanc); }
.link-light { color: var(--blanc); text-underline-offset: 5px; }

/* Hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  grid-template-areas: "text mark" "foot foot";
  align-items: center;
  gap: 40px var(--marge);
  min-height: 92vh;
  padding: 150px var(--marge) 36px;
  background: var(--noir);
  color: var(--blanc);
}
.hero-text { grid-area: text; }
.hero h1 {
  font-weight: 500;
  font-size: clamp(40px, 6.4vw, 96px);
  line-height: 1;
  letter-spacing: -.035em;
  max-width: 13ch;
}
.lead {
  margin-top: 28px;
  max-width: 46ch;
  font-size: clamp(17px, 1.5vw, 20px);
  color: #d9d3c8;
}
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 36px; flex-wrap: wrap; }
.hero-mark { grid-area: mark; width: 100%; height: auto; aspect-ratio: 1051 / 777; color: var(--blanc); }
.hero-foot {
  grid-area: foot;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
  color: var(--gris-clair);
}

/* Le GC se dessine au chargement, une seule fois */
.hero-mark use {
  fill-opacity: 0;
  stroke: var(--blanc);
  stroke-width: 2;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: trace 2.2s cubic-bezier(.6, 0, .3, 1) .2s forwards, remplit .7s ease 2.1s forwards;
}
@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes remplit { to { fill-opacity: 1; stroke-width: 0; } }

/* Sections */
.section { padding: clamp(72px, 10vw, 140px) var(--marge); border-top: 1px solid var(--filet); }
.section:first-of-type { border-top: 0; }
.section h2 {
  font-weight: 500;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -.03em;
}
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.section-head p { max-width: 38ch; color: var(--gris); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px var(--marge); }

/* Réalisations */
.projects { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; margin-top: 56px; }
.project h3 { margin-top: 18px; font-weight: 600; font-size: 20px; }
.project p { color: var(--gris); font-size: 15px; }
.project-visual {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 4 / 3;
  padding: clamp(20px, 3vw, 36px);
}
.pv-name { font-size: 14px; font-weight: 600; letter-spacing: .04em; }
.pv-title { font-size: clamp(26px, 3.2vw, 44px); line-height: 1.05; letter-spacing: -.02em; max-width: 12ch; }
.visual-forme { background: linear-gradient(160deg, #b9b1a4 0%, #8d8578 55%, #5f5a52 100%); color: #fbf8f2; }
.visual-sillon { background: #3f3f2c; color: #ede6d6; }
.visual-sillon .pv-title { font-family: Georgia, "Times New Roman", serif; letter-spacing: 0; }

/* Services */
.service { padding: 26px 0; border-top: 1px solid var(--noir); }
.service:last-child { border-bottom: 1px solid var(--noir); }
.service h3 { font-weight: 500; font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -.02em; }
.service p { margin-top: 8px; max-width: 52ch; color: var(--gris); }

/* Méthode */
.steps {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}
.steps li { border-top: 1px solid var(--noir); padding-top: 18px; }
.step-n { font-size: 15px; color: var(--gris); }
.steps h3 { margin-top: 28px; font-weight: 500; font-size: 22px; letter-spacing: -.01em; }
.steps p { margin-top: 8px; color: var(--gris); font-size: 16px; }

/* À propos */
.about p { max-width: 48ch; font-size: clamp(18px, 1.6vw, 21px); }
.about p + p { margin-top: 16px; color: var(--gris); }

/* Contact */
.contact {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 10vw, 140px) var(--marge);
  background: var(--noir);
  color: var(--blanc);
}
.contact-mark {
  position: absolute;
  right: -8%;
  bottom: -18%;
  width: min(70vw, 900px);
  height: auto;
  aspect-ratio: 1051 / 777;
  color: #262626;
  pointer-events: none;
}
.contact-inner { position: relative; max-width: 760px; }
.contact h2 { font-weight: 500; font-size: clamp(40px, 6vw, 84px); line-height: 1; letter-spacing: -.035em; }
.contact-lead { margin-top: 20px; max-width: 46ch; color: #d9d3c8; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; margin-top: 44px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 15px; color: #d9d3c8; }
.opt { color: var(--gris-clair); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  font: 16px/1.4 var(--font);
  color: var(--blanc);
  background: rgba(250, 247, 241, .06);
  border: 1px solid rgba(250, 247, 241, .3);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--blanc) 50%), linear-gradient(135deg, var(--blanc) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.field select option { color: var(--noir); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blanc); }
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-end { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.form-status { font-size: 15px; color: #d9d3c8; }

/* Pied de page */
.site-footer {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 26px var(--marge) 34px;
  background: var(--noir);
  color: var(--blanc);
  border-top: 1px solid rgba(250, 247, 241, .2);
  font-size: 15px;
}
.site-footer .brand { margin-right: auto; }
.site-footer .brand-mark { width: 38px; height: 28px; }
.site-footer .brand-name { font-size: 20px; }
.site-footer a:not(.brand) { text-underline-offset: 4px; }

/* Tablette */
@media (max-width: 960px) {
  .nav { display: none; }
  .site-header .btn { margin-left: auto; }
  .steps { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header { gap: 12px; padding-top: 16px; padding-bottom: 16px; }
  .brand-mark { width: 38px; height: 28px; }
  .brand-name { font-size: 20px; }
  .site-header .btn { padding: 10px 14px; font-size: 14px; }
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas: "mark" "text" "foot";
    min-height: auto;
    padding-top: 110px;
    gap: 28px;
  }
  .hero-mark { width: 62%; justify-self: end; }
  .hero-foot { flex-direction: column; gap: 4px; }
  .projects { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { padding-bottom: 24px; }
  .steps h3 { margin-top: 8px; }
  .form { grid-template-columns: 1fr; }
  .contact-mark { width: 120vw; right: -40%; bottom: -10%; }
  .site-footer { flex-wrap: wrap; gap: 14px 24px; }
  .site-footer .brand { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-mark use { animation: none; fill-opacity: 1; stroke-width: 0; }
}
