* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #FFFFFF; --ink: #0A0A0A; --ink-soft: #6B6B6B; --line: #E4E4E4; --tile: #F3F3F3;
  --gutter: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-block; margin-bottom: 18px;
}

h1, h2, h3 { font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-weight: 400; line-height: 1.05; letter-spacing: -0.02em; }
em { font-style: normal; font-family: inherit; color: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* NAV */
nav.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { width: 168px; height: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 14px; color: var(--ink-soft); text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.nav-cta { color: #fff; background: var(--ink); padding: 9px 16px; }
.nav-links a.nav-cta:hover { color: #fff; background: #333; }
@media (max-width: 640px){
  .nav-links a:not(.nav-cta){ display: none; }
  .brand-logo { width: 140px; }
}

/* EN-TÊTE PROJET */
.p-head { padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 72px); }
.back { display: flex; width: max-content; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-soft); text-decoration: none; margin-bottom: clamp(40px, 5vw, 64px); transition: color .2s; }
.back:hover { color: var(--ink); }
.p-head h1 { font-size: clamp(40px, 6.4vw, 88px); margin-bottom: 20px; max-width: 16ch; }
.p-sub { font-size: clamp(19px, 2.2vw, 26px); line-height: 1.3; color: var(--ink); margin-bottom: 28px; }
.p-lede { max-width: 680px; }
.p-lede p { font-size: clamp(16px, 1.5vw, 18px); color: var(--ink-soft); margin-bottom: 14px; }
.p-lede p strong { color: var(--ink); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 6px 0; margin-top: 28px; list-style: none; }
.chips li { font-size: 14px; color: var(--ink-soft); }
.chips li:not(:last-child)::after { content: "·"; margin: 0 10px; color: var(--ink-soft); }
.chips a { text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color .2s, color .2s; }
.chips a:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* BLOCS */
.blk { padding: 40px 0; }
.blk-title { max-width: 720px; margin-bottom: 28px; }
.blk-title .eyebrow { margin-bottom: 12px; }
.blk-title h2 { font-size: clamp(28px, 3.6vw, 44px); margin-bottom: 14px; }
.blk-title .p-sub { font-size: clamp(18px, 2vw, 22px); margin-bottom: 12px; }
.blk-title p { color: var(--ink-soft); font-size: 16px; margin-bottom: 12px; }
.blk-title .meta { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.section-sep { border-top: 1px solid var(--line); margin-top: 40px; padding-top: clamp(56px, 7vw, 88px); }

figure { margin: 0; }
.shot { background: var(--tile); overflow: hidden; cursor: zoom-in; }
.shot img { width: 100%; }
figcaption { font-size: 13.5px; color: var(--ink-soft); margin-top: 10px; max-width: 720px; }

.row { display: flex; gap: clamp(16px, 2vw, 24px); align-items: flex-start; }
.row + .row, .row + figure, figure + .row, figure + figure { margin-top: clamp(16px, 2vw, 24px); }
.row > figure { min-width: 0; }
.row > figure + figure { margin-top: 0; }
.split + .split { margin-top: 64px; }
@media (max-width: 700px){
  .row { flex-direction: column; gap: 16px; }
  .row > figure { flex: none !important; width: 100%; }
  .row + .row, .row + figure, figure + .row, figure + figure { margin-top: 16px; }
  .row > figure + figure { margin-top: 0; }
}

.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.split.rev { grid-template-columns: .85fr 1.15fr; }
.split.rev > figure { order: 2; }
.split .txt h3 { font-size: clamp(21px, 2.3vw, 28px); line-height: 1.2; margin-bottom: 14px; }
.split .txt p { color: var(--ink-soft); font-size: 16px; margin-bottom: 12px; }
@media (max-width: 820px){
  .split, .split.rev { grid-template-columns: 1fr; gap: 22px; }
  .split.rev > figure { order: 0; }
}

/* PALETTE */
.palette { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; margin: 8px 0 22px; max-width: 680px; }
@media (max-width: 700px){ .palette { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 420px){ .palette { gap: 14px; } }
.swatch { text-align: center; }
.swatch span { display: block; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line); margin: 0 auto 10px; max-width: 104px; }
.swatch b { display: block; font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.swatch small { font-size: 12.5px; color: var(--ink-soft); }
.swatch i { display: block; font-size: 12px; color: var(--ink-soft); font-style: normal; }

/* TYPOGRAPHIES */
.typo { list-style: none; border-top: 1px solid var(--ink); }
.typo li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.typo b { font-weight: 500; font-size: 16px; }
.typo span { color: var(--ink-soft); font-size: 14.5px; }

/* SENS */
.sens { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 18px; }
@media (max-width: 820px){ .sens { grid-template-columns: repeat(2, 1fr); } }
.sens h4 { font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.sens i { display: block; color: var(--ink); font-style: normal; font-size: 16px; }
.sens p { font-size: 14px; color: var(--ink-soft); }

/* NAVIGATION ENTRE PROJETS */
.p-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: clamp(56px, 7vw, 96px) 0 0; padding: 28px 0 0; border-top: 1px solid var(--ink); }
.p-nav a { display: block; text-decoration: none; }
.p-nav small { display: block; font-size: 13px; color: var(--ink-soft); margin-bottom: 4px; }
.p-nav span { font-size: clamp(20px, 2.4vw, 28px); letter-spacing: -0.01em; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.p-nav a:hover span { background-size: 100% 1px; }
.p-nav .next { text-align: right; }
@media (max-width: 560px){ .p-nav { grid-template-columns: 1fr; gap: 28px; } .p-nav .next { text-align: left; } }

/* CONTACT */
.contact { padding: clamp(112px, 14vw, 200px) 0 clamp(88px, 10vw, 136px); }
.contact h2 { font-size: clamp(44px, 7.4vw, 108px); max-width: 12ch; }
.contact .sub { margin-top: 28px; font-size: clamp(16px, 1.5vw, 19px); }
.contact .actions { margin-top: 36px; }
.btn {
  display: inline-block; font: inherit; font-size: 15px; line-height: 1;
  color: #fff; background: var(--ink); text-decoration: none;
  padding: 16px 24px; border: 0; cursor: pointer; transition: background .2s;
}
.btn:hover { background: #333; }

footer { border-top: 1px solid var(--line); }
.foot-in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px 24px; padding-top: 28px; padding-bottom: 40px; font-size: 13px; color: var(--ink-soft); }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-in a { text-decoration: none; transition: color .2s; }
.foot-in a:hover { color: var(--ink); }

/* APPARITION */
.rvw { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rvw.rv { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){
  html { scroll-behavior: auto; }
  .rvw { opacity: 1; transform: none; transition: none; }
  .p-nav span { transition: none; }
}

/* ZOOM */
.lb { position: fixed; inset: 0; z-index: 400; background: rgba(10, 10, 10, .94); display: none; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.lb.show { display: flex; }
.lb img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.lb button { position: absolute; top: 14px; right: 18px; background: none; border: none; color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }

/* COOKIES */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  max-width: 760px; margin: 0 auto;
  background: #fff; color: var(--ink); border: 1px solid var(--ink);
  padding: 18px 20px;
  display: none; gap: 16px; align-items: center; flex-wrap: wrap;
}
.cookie-banner.show { display: flex; }
.cookie-banner p { font-size: 13.5px; color: var(--ink-soft); flex: 1 1 320px; line-height: 1.55; }
.cookie-banner a { color: var(--ink); }
.cookie-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.cookie-btn { font: inherit; font-size: 13.5px; padding: 10px 18px; cursor: pointer; border: 1px solid var(--ink); transition: background .2s; }
.cookie-btn-solid { background: var(--ink); color: #fff; }
.cookie-btn-solid:hover { background: #333; }
.cookie-btn-ghost { background: #fff; color: var(--ink); }
.cookie-btn-ghost:hover { background: var(--tile); }
