:root {
  --paper: #f1eee8;
  --paper-2: #e7e2d9;
  --ink: #121212;
  --muted: #6f6b64;
  --accent: #b34d31;
  --footer: #171717;
  --white: #ffffff;

  --atelier: #5a4634;
  --maison: #6f1517;
  --nova: #24272a;
  --marcel: #b7902f;

  --header-h: 92px;
  --page-pad: clamp(24px, 4.6vw, 74px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

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

.site-header {
  position: absolute;
  z-index: 20;
  inset: 0 0 auto 0;
  height: var(--header-h);
  padding: 26px var(--page-pad) 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  pointer-events: none;
}

.site-header > * {
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  line-height: 0.82;
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.site-nav {
  display: flex;
  gap: clamp(24px, 3vw, 52px);
  padding-top: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 670px;
  overflow: hidden;
  padding: calc(var(--header-h) + 50px) var(--page-pad) 68px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  align-items: end;
  background:
    linear-gradient(136deg, transparent 0 68%, rgba(0, 0, 0, 0.025) 68% 100%),
    var(--paper);
}

.hero-side {
  position: absolute;
  left: 18px;
  top: 190px;
  bottom: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.hero-side i {
  display: block;
  width: 1px;
  height: 185px;
  margin-top: 16px;
  background: var(--ink);
  opacity: 0.55;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  padding-left: clamp(20px, 2.5vw, 40px);
}

.hero h1 {
  margin: 0;
  max-width: 900px;
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: clamp(4.2rem, 7.5vw, 7.9rem);
  line-height: 0.86;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.hero h1 span {
  color: var(--accent);
}

.hero-kicker {
  margin: 38px 0 0;
  color: var(--accent);
  font-size: clamp(0.82rem, 1vw, 1.08rem);
  line-height: 1.8;
  font-weight: 600;
  letter-spacing: 0.37em;
}

.hero-copy {
  max-width: 540px;
  margin-top: 36px;
  font-size: 0.98rem;
  line-height: 1.55;
}

.hero-copy p {
  margin: 0 0 12px;
}

.hero-copy strong {
  font-size: 0.95rem;
}

.hero-media {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  width: 49%;
  height: 68%;
  clip-path: polygon(31% 25%, 100% 0, 100% 100%, 0 100%);
  opacity: 1;
}

.hero-media-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  flex-direction: column;
  padding: 32px;
  text-align: right;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(0, 0, 0, 0.055) 0 1px,
      transparent 1px 18px
    ),
    linear-gradient(135deg, #d8d2c8, #b8b1a7);
  color: rgba(18, 18, 18, 0.58);
}

.hero-media-placeholder span {
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: clamp(1.6rem, 3vw, 3rem);
  font-weight: 600;
}

.hero-media-placeholder small {
  margin-top: 6px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: #000;
}

.project {
  position: relative;
  min-height: 485px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.project-link {
  position: absolute;
  inset: 0;
  display: block;
  color: var(--white);
}

.project-placeholder,
.project-overlay {
  position: absolute;
  inset: 0;
}

.project-placeholder {
  transition: transform 550ms cubic-bezier(.2,.6,.2,1), filter 350ms ease;
}

.project-atelier .project-placeholder {
  background:
    linear-gradient(28deg, rgba(255,255,255,0.07), transparent 45%),
    var(--atelier);
}

.project-maison .project-placeholder {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.05), transparent 45%),
    var(--maison);
}

.project-nova .project-placeholder {
  background:
    radial-gradient(circle at 70% 55%, rgba(255,255,255,0.1), transparent 24%),
    var(--nova);
}

.project-marcel .project-placeholder {
  background:
    radial-gradient(circle at 70% 30%, rgba(255,255,255,0.15), transparent 17%),
    var(--marcel);
}

.project-overlay {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.06));
  transition: background 350ms ease;
}

.project-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 485px;
  padding: 34px clamp(28px, 4vw, 52px) 38px;
  display: flex;
  flex-direction: column;
}

.project-index {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.project-index span {
  padding: 0 8px;
}

.project-title-block {
  margin-top: auto;
  margin-bottom: auto;
  transform: translateY(22px);
}

.project-title-block h2 {
  margin: 0;
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: clamp(3.5rem, 6vw, 6.4rem);
  line-height: 0.9;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.project-title-block p {
  margin: 14px 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.project-cta {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  width: max-content;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.project-cta b {
  display: inline-block;
  font-size: 1.1rem;
  transition: transform 250ms ease;
}

.project-link:hover .project-placeholder,
.project-link:focus-visible .project-placeholder {
  transform: scale(1.035);
}

.project-link:hover .project-overlay,
.project-link:focus-visible .project-overlay {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0));
}

.project-link:hover .project-cta b,
.project-link:focus-visible .project-cta b {
  transform: translateX(8px);
}

.contact-strip {
  padding: 42px var(--page-pad) 44px;
  display: grid;
  grid-template-columns: 1.05fr 0.9fr 1fr;
  gap: 0;
  background: var(--paper);
  align-items: stretch;
}

.contact-strip > div {
  min-height: 122px;
  display: flex;
  align-items: center;
}

.contact-strip > div + div {
  border-left: 1px solid rgba(18, 18, 18, 0.2);
  padding-left: clamp(28px, 4vw, 66px);
}

.contact-intro p {
  margin: 0;
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: clamp(2rem, 3.1vw, 3.15rem);
  line-height: 0.92;
  font-weight: 600;
}

.contact-intro span {
  color: var(--accent);
}

.contact-copy {
  flex-direction: column;
  justify-content: center;
  align-items: flex-start !important;
}

.contact-copy p {
  margin: 0 0 22px;
  color: #55514b;
  font-size: 0.82rem;
  line-height: 1.5;
}

.contact-copy a {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.contact-copy a span {
  margin-left: 10px;
}

.contact-brand {
  justify-content: center;
  gap: 18px;
}

.contact-mark {
  font-size: 2rem;
  opacity: 0.42;
}

.contact-brand div:last-child {
  display: flex;
  flex-direction: column;
}

.contact-brand strong {
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 1.55rem;
  letter-spacing: 0.03em;
}

.contact-brand span {
  margin-top: 1px;
  font-size: 0.61rem;
  letter-spacing: 0.12em;
}

.site-footer {
  min-height: 100px;
  padding: 26px var(--page-pad);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: var(--footer);
  color: rgba(255,255,255,0.58);
  font-size: 0.6rem;
  line-height: 1.6;
}

.site-footer > div:first-child {
  display: flex;
  flex-direction: column;
}

.footer-symbol {
  color: rgba(255,255,255,0.75);
  font-size: 1.35rem;
}

.footer-links {
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--white);
}

/* -------------------------------------------------------------------------- */
/* Remplacement des aplats par les futures images                             */
/* -------------------------------------------------------------------------- */

.hero-media-placeholder {
  background-image: url("media/images/hero.png");
  background-size: cover;
  background-position: center;
}

.hero-media-placeholder > * {
  display: none;
}

.project-atelier .project-placeholder {
  background-image: url("media/images/atelier-62.png");
  background-size: cover;
  background-position: center;
}

.project-maison .project-placeholder {
  background-image: url("media/images/maison-17.png");
  background-size: cover;
  background-position: center;
}

.project-nova .project-placeholder {
  background-image: url("media/images/nova.png");
  background-size: cover;
  background-position: center;
}

.project-marcel .project-placeholder {
  background-image: url("media/images/marcel.png");
  background-size: cover;
  background-position: center;
}


@media (max-width: 980px) {
  :root {
    --header-h: 78px;
  }

  .site-header {
    padding-top: 20px;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 40;
    padding: 110px var(--page-pad) 40px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    background: var(--paper);
    font-family: "Barlow Condensed", Arial, sans-serif;
    font-size: clamp(2.6rem, 10vw, 5rem);
    transform: translateY(-105%);
    transition: transform 350ms cubic-bezier(.2,.65,.25,1);
  }

  .site-nav.is-open {
    transform: translateY(0);
  }

  .menu-toggle {
    position: relative;
    z-index: 50;
    width: 34px;
    height: 30px;
    padding: 5px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle-line {
    width: 100%;
    height: 2px;
    background: var(--ink);
    transition: transform 250ms ease, opacity 250ms ease;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .hero {
    min-height: 760px;
    grid-template-columns: 1fr;
    align-items: start;
    padding-top: calc(var(--header-h) + 76px);
  }

  .hero-side {
    display: none;
  }

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

  .hero h1 {
    max-width: 840px;
  }

  .hero-media {
    width: 68%;
    height: 46%;
    opacity: 0.66;
  }

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

  .project,
  .project-content {
    min-height: 420px;
  }

  .contact-strip {
    grid-template-columns: 1fr 1fr;
  }

  .contact-brand {
    grid-column: 1 / -1;
    min-height: 90px !important;
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid rgba(18, 18, 18, 0.2);
    border-left: 0 !important;
  }
}

@media (max-width: 640px) {
  :root {
    --page-pad: 22px;
  }

  .brand {
    font-size: 0.94rem;
  }

  .hero {
    min-height: 690px;
    padding-top: 122px;
    padding-bottom: 36px;
  }

  .hero h1 {
    font-size: clamp(3.25rem, 15vw, 4.8rem);
  }

  .hero-kicker {
    margin-top: 26px;
    font-size: 0.7rem;
    letter-spacing: 0.24em;
  }

  .hero-copy {
    max-width: 360px;
    margin-top: 28px;
    font-size: 0.87rem;
  }

  .hero-media {
    width: 100%;
    height: 36%;
    clip-path: polygon(42% 22%, 100% 0, 100% 100%, 0 100%);
    opacity: 0.45;
  }

  .hero-media-placeholder {
    padding: 18px;
  }

  .hero-media-placeholder span,
  .hero-media-placeholder small {
    display: none;
  }

  .project,
  .project-content {
    min-height: 355px;
  }

  .project-content {
    padding: 26px 24px 28px;
  }

  .project-title-block {
    transform: translateY(12px);
  }

  .project-title-block h2 {
    font-size: clamp(3.35rem, 19vw, 5.2rem);
  }

  .contact-strip {
    grid-template-columns: 1fr;
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .contact-strip > div {
    min-height: auto;
  }

  .contact-strip > div + div {
    margin-top: 28px;
    padding-top: 28px;
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(18, 18, 18, 0.2);
  }

  .contact-brand {
    grid-column: auto;
    justify-content: flex-start;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
    gap: 20px;
  }

  .footer-symbol {
    display: none;
  }
}
