:root {
  --paper: #f4f3ed;
  --ink: #242821;
  --muted: #72776c;
  --line: #d9dcd2;
  --orange: #e96539;
  --green: #29372e;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: #f8b59a; }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 5px;
  z-index: 100;
}
.skip-link:focus { left: 8px; }

/* --- Header --- */
header {
  padding: 25px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.logo {
  font-family: Manrope, sans-serif;
  font-size: 33px;
  font-weight: 800;
  letter-spacing: -1.8px;
}
.logo span { color: var(--orange); }

nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 13px;
}
nav a:hover { color: var(--orange); }

.nav-cta {
  border: 1px solid #b9bdb2;
  border-radius: 5px;
  padding: 12px 18px;
}
.arrow { margin-left: 20px; }

.wrap {
  max-width: 1440px;
  margin: auto;
  padding: 0 5%;
}

/* --- Hero --- */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 30px;
  padding-top: 82px;
  padding-bottom: 70px;
  align-items: center;
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  display: flex;
  gap: 11px;
  align-items: center;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  display: inline-block;
}

h1 {
  font-family: Manrope, sans-serif;
  font-size: clamp(48px, 5.4vw, 80px);
  line-height: 1.09;
  letter-spacing: -4px;
  font-weight: 500;
  margin: 27px 0;
}
h1 em { font-style: normal; color: var(--orange); }

.intro {
  max-width: 430px;
  color: #676e61;
  line-height: 1.75;
  font-size: 16px;
}

.actions {
  display: flex;
  gap: 25px;
  align-items: center;
  margin: 32px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 22px;
  border-radius: 5px;
  background: var(--ink);
  color: white;
  font-size: 13px;
  gap: 26px;
  transition: transform .2s, background .2s;
}
.btn:hover { background: #455341; transform: translateY(-2px); }

.textlink {
  font-size: 13px;
  border-bottom: 1px solid #a8ad9e;
  padding: 8px 0;
}

.hero-note { font-size: 11px; color: var(--muted); }

.visual {
  height: 460px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at center, #e3e7d9 0, transparent 67%);
  border: 1px solid #e0e3d9;
  border-radius: 220px 220px 12px 12px;
  background-color: #eeefe7;
}

.grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(#d7ddce70 1px, transparent 1px), linear-gradient(90deg, #d7ddce70 1px, transparent 1px);
  background-size: 35px 35px;
  mask-image: radial-gradient(ellipse, black, transparent 72%);
}

.orbit {
  position: absolute;
  width: 310px;
  height: 310px;
  border: 1px solid #c5cdbb;
  border-radius: 50%;
  transform: rotateX(55deg) rotate(-28deg);
}
.orbit.two {
  width: 410px;
  height: 410px;
  transform: rotateX(55deg) rotate(30deg);
}

.stack {
  position: relative;
  width: 235px;
  height: 240px;
  transform: rotate(-12deg);
  margin-top: -20px;
}

.layer {
  width: 205px;
  height: 145px;
  position: absolute;
  border-radius: 22px;
  transform: skewY(18deg) rotate(-30deg);
  box-shadow: -12px 24px 25px #394a3420;
  border: 1px solid #aebba5;
  background: #ced9c2;
}
.layer:nth-child(1) { top: 115px; left: 0; background: #a4b29b; }
.layer:nth-child(2) { top: 75px; left: 0; background: #c4d0bb; }
.layer:nth-child(3) { top: 35px; left: 0; background: #e3e9d9; }
.layer:nth-child(4) {
  top: -5px;
  left: 0;
  background: #f1f3e8;
  display: grid;
  place-items: center;
  color: var(--orange);
  font-size: 61px;
  font-weight: 500;
  box-shadow: inset 0 0 0 9px #e8eddf, -12px 24px 25px #394a3420;
}

.floating {
  position: absolute;
  padding: 11px 15px;
  background: #fafbf7ee;
  border: 1px solid #d6ddce;
  border-radius: 5px;
  font: 11px monospace;
  box-shadow: 0 5px 20px #28342308;
}
.f1 { top: 105px; left: 25px; }
.f2 { right: 20px; top: 220px; }
.f3 { bottom: 55px; left: 50px; }

.visual-label {
  position: absolute;
  bottom: 19px;
  right: 20px;
  font: 9px monospace;
  letter-spacing: 1px;
  color: #838c79;
}

/* --- Techbar --- */
.techbar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 25px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.techbar small {
  max-width: 140px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1px;
  line-height: 1.7;
}
.techbar span {
  font-family: Manrope, sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #727968;
}

/* --- Sections --- */
.section { padding-top: 100px; padding-bottom: 100px; }

.section-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 45px;
  gap: 30px;
}

h2 {
  font-family: Manrope, sans-serif;
  font-size: clamp(32px, 3.5vw, 49px);
  font-weight: 500;
  letter-spacing: -2px;
  line-height: 1.15;
  margin: 18px 0 0;
}
.section-top p {
  max-width: 310px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.service { padding: 30px 25px 8px 0; }
.service + .service { border-left: 1px solid var(--line); padding-left: 25px; }
.num { font: 11px monospace; color: #8a907f; }
.icon { display: block; margin: 25px 0 28px; color: var(--orange); font: 30px monospace; }
h3 { font-family: Manrope, sans-serif; font-size: 19px; letter-spacing: -.5px; font-weight: 600; }
.service p { font-size: 13px; line-height: 1.8; color: var(--muted); }
.tags { font-size: 10px; color: #626b58; margin-top: 25px; line-height: 2; }

/* --- Réalisations (section sombre) --- */
.dark { background: var(--green); color: #f0f3e9; }
.dark .eyebrow { color: #b3bea8; }
.dark .section-top p { color: #b3bea8; }

.projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.project {
  border: 1px solid #52604f;
  border-radius: 7px;
  overflow: hidden;
}
.project-art {
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #334336;
  overflow: hidden;
}
.project-art .data {
  font-family: monospace;
  width: 80%;
  font-size: 11px;
  color: #cad5bd;
}
.data div {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #59694d;
  padding: 13px;
}
.data div:first-child { color: #f0b28d; }

.chart {
  display: flex;
  gap: 8px;
  align-items: end;
  height: 112px;
  position: absolute;
  right: 40px;
  bottom: 35px;
  opacity: .3;
}
.chart i { width: 18px; background: #b6cb99; }

.project-copy { padding: 27px; }
.project-copy small {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #bbc7b1;
  text-transform: uppercase;
}
.project-copy h3 { font-size: 23px; margin: 14px 0; }
.project-copy p {
  font-size: 13px;
  line-height: 1.7;
  color: #b3bea8;
  max-width: 430px;
}

.mini-window {
  width: 250px;
  background: #f1f1e8;
  border-radius: 8px;
  padding: 20px;
  color: #364031;
  transform: rotate(-5deg);
  box-shadow: 16px 20px 0 #24362b;
}
.mini-window strong { font-size: 23px; letter-spacing: -1px; }
.mini-window p { font-size: 11px; color: #7e8774; }

.pills { display: flex; gap: 5px; flex-wrap: wrap; }
.pills span {
  border-radius: 30px;
  background: #dce2cc;
  padding: 8px 12px;
  font-size: 10px;
}

/* --- À propos --- */
.about {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 100px;
}
.big-number {
  font-family: Manrope;
  font-size: 110px;
  line-height: 1;
  letter-spacing: -8px;
  color: var(--orange);
}
.about-left p { color: var(--muted); font-size: 14px; }
.about h2 { margin-top: 0; }
.about-copy > p { line-height: 1.9; color: var(--muted); font-size: 15px; }

.signature {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 28px;
  display: flex;
  gap: 15px;
  align-items: center;
}
.avatar {
  border-radius: 50%;
  background: #e2e6d8;
  padding: 16px;
  font-size: 13px;
  font-weight: 600;
}
.signature strong { font-size: 13px; display: block; }
.signature small { display: block; color: var(--muted); font-size: 11px; margin-top: 6px; }

/* --- Contact --- */
.contact {
  background: #e7eadd;
  border-radius: 10px;
  padding: 55px 60px;
  margin-bottom: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.contact h2 { margin-top: 15px; }
.contact p { color: var(--muted); font-size: 14px; line-height: 1.8; }
.contact .btn { background: var(--orange); white-space: nowrap; }
.contact .btn:hover { background: #c94f26; }

/* --- Footer --- */
footer { border-top: 1px solid var(--line); padding: 30px 0; color: var(--muted); }
.footer-top { display: flex; justify-content: space-between; align-items: center; }
.footer-links { display: flex; gap: 25px; font-size: 11px; }
.legal {
  background: none;
  border: none;
  color: inherit;
  padding: 0;
  cursor: pointer;
  font-size: 11px;
}

dialog {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  max-width: 560px;
  padding: 35px;
  line-height: 1.8;
}
dialog::backdrop { background: #1e281c99; }
dialog button {
  float: right;
  border: 1px solid var(--line);
  padding: 8px 13px;
  cursor: pointer;
}

.footer-bottom {
  font-size: 10px;
  margin-top: 25px;
  display: flex;
  justify-content: space-between;
}

.mobile-toggle { display: none; }

@media (min-width: 1600px) {
  header {
    padding-left: calc((100% - 1296px)/2);
    padding-right: calc((100% - 1296px)/2);
  }
}

@media (max-width: 900px) {
  .hero { gap: 15px; }
  h1 { letter-spacing: -2.5px; }
  .visual { height: 380px; }
  .floating { font-size: 9px; }
  .f1 { left: 8px; }
  .f2 { right: 8px; }
  .services { grid-template-columns: 1fr 1fr; }
  .service:nth-child(3) { border-left: none; padding-left: 0; }
  .about { gap: 45px; }
  .techbar { flex-wrap: wrap; }
  .section { padding-top: 70px; padding-bottom: 70px; }
  nav { gap: 18px; }
}

@media (max-width: 650px) {
  header { padding: 18px 6%; position: relative; }
  .mobile-toggle {
    display: block;
    background: none;
    border: 1px solid var(--line);
    padding: 9px 12px;
    border-radius: 5px;
  }
  nav {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--paper);
    z-index: 5;
    padding: 25px 6%;
    border-bottom: 1px solid var(--line);
  }
  nav.open { display: flex; flex-direction: column; align-items: stretch; }
  .wrap { padding-left: 6%; padding-right: 6%; }
  .hero { grid-template-columns: 1fr; padding-top: 45px; padding-bottom: 40px; }
  .hero h1 { font-size: 53px; }
  .hero .intro { font-size: 15px; }
  .visual { height: 330px; margin-top: 20px; }
  .stack { transform: scale(.83) rotate(-12deg); }
  .f1 { top: 70px; left: 20px; }
  .f2 { top: 160px; }
  .f3 { bottom: 40px; }
  .techbar { justify-content: flex-start; gap: 20px; }
  .techbar small { max-width: 100%; width: 100%; }
  .techbar span { font-size: 15px; }
  .section-top { display: block; }
  .section-top p { margin-top: 20px; }
  .services { grid-template-columns: 1fr 1fr; }
  .service { padding-right: 15px; }
  .service + .service { padding-left: 15px; }
  .service:nth-child(3) { padding-left: 0; }
  .service h3 { font-size: 17px; }
  .projects, .about { grid-template-columns: 1fr; }
  .about { gap: 30px; }
  .big-number { font-size: 80px; }
  .contact { padding: 32px 25px; display: block; margin-bottom: 40px; }
  .contact .btn { margin-top: 15px; }
  .footer-top { align-items: start; }
  .footer-links { flex-direction: column; gap: 15px; }
  .footer-bottom { line-height: 1.8; gap: 25px; }
  .actions { gap: 18px; }
  .btn { padding: 16px; font-size: 12px; }
  .textlink { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
