/* ========================================
   ATELIER GRANIT — Cabinet d'architecture
   Sidebar verticale · Fraunces variable · effet hero strips
   ======================================== */

:root {
  --ink: #0a0a0c;
  --ink-soft: #131319;
  --ink-line: #26262e;
  --paper: #ece6d8;
  --paper-soft: #c9c3b5;
  --paper-mute: #807a6e;
  --accent: #d36a3c;
  --accent-soft: #e8c89a;
  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "DM Mono", "Courier New", monospace;
  --rail-w: 92px;
  --pad: clamp(24px, 4vw, 64px);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; transition: color .25s ease, opacity .25s ease; }
a:hover { color: var(--accent-soft); }

.site-main {
  margin-left: var(--rail-w);
  min-height: 100vh;
}

/* ===== TYPOGRAPHIE ===== */
h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1;
  color: var(--paper);
}

h1 { font-size: clamp(54px, 9vw, 156px); font-style: italic; font-weight: 350; }
h2 { font-size: clamp(38px, 5.4vw, 84px); font-weight: 400; }
h3 { font-size: clamp(24px, 2.4vw, 38px); font-weight: 400; }
h4 {
  font-size: 13px;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

em { font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 1; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--paper-mute);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 32px; height: 1px;
  background: var(--paper-mute);
}

/* ============================================================
   SIDEBAR / RAIL VERTICALE GAUCHE
   ============================================================ */
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail-w);
  z-index: 60;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0 28px;
  background: var(--ink);
  border-right: 1px solid var(--ink-line);
}

.rail-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--paper);
}
.rail-mark {
  width: 44px; height: 44px;
  color: var(--accent);
  transition: transform .8s cubic-bezier(.16,1,.3,1);
}
.rail-logo:hover .rail-mark { transform: rotate(60deg); }
.rail-wordmark {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--paper-soft);
}

.rail-nav {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.rail-nav-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--paper-mute);
  margin-bottom: 24px;
  align-self: center;
}
.rail-nav ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rail-nav li {
  position: relative;
}
.rail-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0 14px 22px;
  color: var(--paper-mute);
  position: relative;
}
.rail-nav a .num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  width: 22px;
  display: inline-block;
  transition: color .3s ease;
}
.rail-nav a .label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  letter-spacing: -0.01em;
  position: absolute;
  left: 56px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-12px);
  pointer-events: none;
  background: var(--ink);
  padding: 4px 18px 4px 14px;
  color: var(--paper);
  transition: opacity .35s ease, transform .35s ease;
  box-shadow: 0 0 0 1px var(--ink-line);
}
.rail-nav a .line {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 10px;
  height: 1px;
  background: var(--paper-mute);
  transition: width .4s ease, background .3s ease;
}
.rail-nav a:hover .label,
.rail-nav li.active a .label {
  opacity: 1;
  transform: translateX(0);
}
.rail-nav a:hover .line,
.rail-nav li.active a .line {
  width: 18px;
  background: var(--accent);
}
.rail-nav a:hover .num,
.rail-nav li.active a .num {
  color: var(--paper);
}
.rail-nav li.active a {
  color: var(--paper);
}

.rail-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.rail-coords {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-align: center;
  color: var(--paper-mute);
  line-height: 1.8;
}
.rail-rotate {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--paper-soft);
}
.rail-rotate sup {
  font-size: 0.7em;
  vertical-align: super;
  letter-spacing: 0;
}

.rail-status {
  position: fixed;
  top: 24px;
  right: var(--pad);
  z-index: 50;
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--paper-mute);
  mix-blend-mode: difference;
}
.rail-status-num {
  font-size: 22px;
  font-family: var(--serif);
  font-style: italic;
  color: var(--paper);
  letter-spacing: 0;
  font-variation-settings: "opsz" 144;
}
.rail-status-sep { color: var(--paper-mute); }
.rail-status-total { color: var(--paper-mute); }

.rail-burger {
  display: none;
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 80;
  width: 44px;
  height: 44px;
  background: var(--ink);
  border: 1px solid var(--ink-line);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
}
.rail-burger span {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--paper);
  transition: transform .3s ease, opacity .3s ease;
}
.rail-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.rail-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.rail-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  :root { --rail-w: 0px; }
  .rail {
    transform: translateX(-100%);
    transition: transform .4s cubic-bezier(.16,1,.3,1);
    width: 280px;
  }
  .rail.is-open { transform: translateX(0); }
  .rail-burger { display: flex; }
  .rail-status { display: none; }
}

/* ============================================================
   HERO ANIMÉ (image en bandes verticales + parallax)
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  padding: 0 var(--pad) clamp(60px, 10vh, 120px);
}

.hero-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  perspective: 1200px;
}

.hero-image-full {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5) contrast(1.05) saturate(0.85);
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 1.4s ease 2.1s, transform 12s cubic-bezier(.16,1,.3,1) 2.1s;
  will-change: transform;
}
.hero.strips-done .hero-image-full {
  opacity: 1;
  transform: scale(1.08);
}

.hero-strips {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  z-index: 2;
}
.hero-strips .strip {
  position: relative;
  overflow: hidden;
  background-image: var(--strip-bg);
  background-size: 600% 100%;
  background-position: calc(var(--strip-i) * -100%) center;
  background-repeat: no-repeat;
  filter: brightness(0.5) contrast(1.05) saturate(0.85);
  transform: translateY(102%);
  animation: stripIn 1.6s cubic-bezier(.16,1,.3,1) forwards;
  animation-delay: calc(0.18s * (5 - var(--strip-i)));
}
.hero-strips .strip::after {
  content: "";
  position: absolute;
  inset: 0 -1px 0 0;
  background: var(--ink);
  opacity: 0;
  transform: translateY(0);
  animation: stripDissolve 1s ease 2.4s forwards;
}
.hero.strips-done .hero-strips {
  opacity: 0;
  transition: opacity 0.6s ease 2.4s;
  pointer-events: none;
}

@keyframes stripIn {
  0%   { transform: translateY(102%); }
  60%  { transform: translateY(-3%); }
  100% { transform: translateY(0); }
}
@keyframes stripDissolve {
  to { opacity: 1; }
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(10,10,12,0.85) 0%, rgba(10,10,12,0.1) 55%, rgba(10,10,12,0) 80%),
    radial-gradient(ellipse at 50% 0%,   rgba(10,10,12,0.55) 0%, rgba(10,10,12,0) 50%);
}

.hero-content {
  position: relative;
  z-index: 4;
  max-width: 1100px;
}
.hero-title {
  font-size: clamp(58px, 9vw, 156px);
  margin: 28px 0 36px;
  font-style: italic;
  font-weight: 350;
  font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 1;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--paper);
}
.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}
.hero-title .word {
  display: inline-block;
  transform: translateY(105%);
  opacity: 0;
}
.hero-title .word.italic em,
.hero-title .word.italic {
  color: var(--accent-soft);
}
.hero-title .word.period { color: var(--accent); padding-left: 4px; }
.hero.strips-done .hero-title .word {
  animation: wordUp 1s cubic-bezier(.16,1,.3,1) forwards;
}
.hero.strips-done .hero-title .word:nth-child(1) { animation-delay: 2.55s; }
.hero.strips-done .hero-title .word:nth-child(2) { animation-delay: 2.65s; }
.hero.strips-done .hero-title .word:nth-child(3) { animation-delay: 2.75s; }
.hero.strips-done .hero-title .word:nth-child(4) { animation-delay: 2.85s; }
.hero.strips-done .hero-title .word:nth-child(5) { animation-delay: 2.95s; }

.hero-title .line:nth-child(2) .word:nth-child(1) { animation-delay: 2.7s !important; }
.hero-title .line:nth-child(2) .word:nth-child(2) { animation-delay: 2.78s !important; }
.hero-title .line:nth-child(2) .word:nth-child(3) { animation-delay: 2.86s !important; }
.hero-title .line:nth-child(3) .word:nth-child(1) { animation-delay: 2.9s !important; }
.hero-title .line:nth-child(3) .word:nth-child(2) { animation-delay: 2.98s !important; }
.hero-title .line:nth-child(3) .word:nth-child(3) { animation-delay: 3.05s !important; }

@keyframes wordUp {
  to { transform: translateY(0); opacity: 1; }
}

.reveal-line {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.reveal-line > span {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 1s cubic-bezier(.16,1,.3,1), opacity 1s ease;
}
.hero.strips-done .reveal-line > span {
  transform: translateY(0);
  opacity: 1;
}
.hero.strips-done .reveal-line:nth-of-type(1) > span { transition-delay: 2.45s; }
.hero.strips-done .hero-lede > span { transition-delay: 3.3s; }
.hero.strips-done .hero-meta > span { transition-delay: 3.45s; }

.hero-lede {
  font-family: var(--serif);
  font-size: clamp(20px, 1.9vw, 26px);
  font-style: italic;
  font-weight: 350;
  font-variation-settings: "opsz" 144, "SOFT" 40;
  color: var(--paper-soft);
  max-width: 56ch;
  line-height: 1.45;
  display: block;
  overflow: hidden;
}
.hero-lede > span { display: block; }

.hero-meta {
  position: absolute;
  right: var(--pad);
  bottom: clamp(60px, 10vh, 120px);
  z-index: 4;
  text-align: right;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper-mute);
  line-height: 1.9;
  overflow: hidden;
  display: block;
}
.hero-meta > span { display: block; }
.hero-meta strong {
  color: var(--paper);
  font-weight: 500;
  display: block;
  font-size: 12px;
}

/* Coins éditoriaux du hero (esthétique magazine) */
.hero-corner {
  position: absolute;
  z-index: 4;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--paper-mute);
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  animation: cornerIn 1s ease 3.4s forwards;
}
@keyframes cornerIn { to { opacity: 1; } }
.hero-corner .corner-label {
  color: var(--paper-mute);
}
.hero-corner .corner-val {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--paper-soft);
  letter-spacing: 0;
  font-variation-settings: "opsz" 144;
}
.hero-corner.top-left { top: 28px; left: var(--pad); }
.hero-corner.top-right { top: 28px; right: var(--pad); text-align: right; align-items: flex-end; }
.hero-corner.bottom-right {
  bottom: 24px;
  right: var(--pad);
  display: none;
}

.scroll-cue {
  position: absolute;
  left: var(--pad);
  bottom: 28px;
  z-index: 4;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--paper-mute);
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  animation: cornerIn 1s ease 3.4s forwards;
}
.scroll-cue .cue-bar {
  width: 60px; height: 1px;
  background: linear-gradient(90deg, var(--paper-mute), transparent);
  animation: cuePulse 2.6s ease-in-out infinite;
  transform-origin: left;
}
@keyframes cuePulse {
  0%, 100% { transform: scaleX(0.35); opacity: 0.4; }
  50% { transform: scaleX(1); opacity: 1; }
}

/* ===== SECTIONS GÉNÉRIQUES ===== */
section {
  padding: clamp(80px, 12vh, 160px) var(--pad);
  position: relative;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 80px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--ink-line);
}
@media (max-width: 800px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; }
}

/* ===== MANIFESTE ===== */
.manifesto { background: var(--ink); }
.manifesto-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 120px);
  align-items: center;
}
.manifesto-text h2 {
  margin: 24px 0 40px;
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 70, "WONK" 1;
}
.manifesto-text h2 em { color: var(--accent); font-style: italic; }
.manifesto-text p {
  color: var(--paper-soft);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 18px;
  max-width: 50ch;
}
.manifesto-signature {
  margin-top: 40px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--paper);
  font-variation-settings: "opsz" 144, "SOFT" 60;
}
.manifesto-signature small {
  display: block;
  font-family: var(--mono);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--paper-mute);
  margin-top: 8px;
}
.manifesto-image {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}
.manifesto-image img {
  width: 100%; height: 100%; object-fit: cover;
}
.manifesto-image::before {
  content: "01";
  position: absolute;
  top: -22px; left: -18px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 220px;
  color: var(--ink);
  -webkit-text-stroke: 1px var(--paper-mute);
  z-index: 2;
  line-height: 1;
  pointer-events: none;
  font-variation-settings: "opsz" 144;
}
@media (max-width: 800px) {
  .manifesto-grid { grid-template-columns: 1fr; }
}

/* ===== PROJETS PHARES ===== */
.featured { background: var(--ink-soft); }
.featured-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.featured-item {
  position: relative;
  overflow: hidden;
  background: var(--ink);
}
.featured-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s cubic-bezier(.16,1,.3,1);
}
.featured-item:hover img { transform: scale(1.04); }
.featured-item .meta {
  position: absolute;
  inset: auto 24px 24px 24px;
  z-index: 2;
  color: var(--paper);
}
.featured-item .meta .eyebrow { color: var(--accent-soft); }
.featured-item .meta .eyebrow::before { background: var(--accent-soft); }
.featured-item .meta h3 {
  margin-top: 10px;
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.featured-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,12,0) 40%, rgba(10,10,12,0.85) 100%);
  pointer-events: none;
  z-index: 1;
}
.featured-item.span-7 { grid-column: span 7; aspect-ratio: 3/2; }
.featured-item.span-5 { grid-column: span 5; aspect-ratio: 3/4; }
.featured-item.span-6 { grid-column: span 6; aspect-ratio: 4/3; }
.featured-item.span-4 { grid-column: span 4; aspect-ratio: 3/4; }
.featured-item.span-8 { grid-column: span 8; aspect-ratio: 16/9; }
.featured-item.span-12 { grid-column: span 12; aspect-ratio: 21/9; }
@media (max-width: 900px) {
  .featured-item { grid-column: span 12 !important; aspect-ratio: 4/3 !important; }
}

/* ===== CITATION ===== */
.pull-quote {
  padding: clamp(100px, 14vh, 180px) var(--pad);
  text-align: center;
  background: var(--ink);
  border-top: 1px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
}
.pull-quote blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 350;
  font-size: clamp(34px, 4.6vw, 62px);
  line-height: 1.18;
  max-width: 24ch;
  margin: 0 auto;
  color: var(--paper);
  font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 1;
}
.pull-quote blockquote::before { content: "« "; color: var(--accent); }
.pull-quote blockquote::after { content: " »"; color: var(--accent); }
.pull-quote cite {
  display: block;
  margin-top: 40px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--paper-mute);
  font-style: normal;
}

/* ===== STATS ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink-line);
  background: var(--ink);
}
.stats .stat {
  padding: 64px 30px;
  border-right: 1px solid var(--ink-line);
}
.stats .stat:last-child { border-right: none; }
.stats .stat .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(52px, 5.2vw, 84px);
  color: var(--paper);
  display: block;
  line-height: 1;
  font-variation-settings: "opsz" 144, "SOFT" 70, "WONK" 1;
}
.stats .stat .num sup {
  font-size: 0.42em;
  color: var(--accent);
  margin-left: 4px;
  letter-spacing: 0.05em;
}
.stats .stat .label {
  display: block;
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-mute);
}
@media (max-width: 800px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats .stat:nth-child(2) { border-right: none; }
  .stats .stat { border-bottom: 1px solid var(--ink-line); }
}

/* ===== CTA BAND ===== */
.cta-band {
  padding: clamp(80px, 12vh, 140px) var(--pad);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
  border-top: 1px solid var(--ink-line);
}
.cta-band h2 {
  font-style: italic;
  max-width: 20ch;
  font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 1;
}
.cta-band h2 em { color: var(--accent); font-style: italic; }
@media (max-width: 800px) {
  .cta-band { grid-template-columns: 1fr; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 22px 34px;
  border: 1px solid var(--paper);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  background: transparent;
  cursor: pointer;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.btn:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.btn .arrow {
  width: 20px; height: 1px;
  background: currentColor;
  position: relative;
}
.btn .arrow::after {
  content: "";
  position: absolute;
  right: 0; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.btn.btn-accent { border-color: var(--accent); color: var(--accent-soft); }
.btn.btn-accent:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }

/* ===== PAGE HEADERS ===== */
.page-header {
  padding: 160px var(--pad) 80px;
  border-bottom: 1px solid var(--ink-line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
}
.page-header h1 {
  font-size: clamp(60px, 10vw, 160px);
  font-style: italic;
  line-height: 0.95;
  font-variation-settings: "opsz" 144, "SOFT" 70, "WONK" 1;
}
.page-header p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--paper-soft);
  max-width: 44ch;
  line-height: 1.5;
  font-variation-settings: "opsz" 144, "SOFT" 40;
}
@media (max-width: 800px) {
  .page-header { grid-template-columns: 1fr; padding-top: 130px; }
}

/* ===== FILTRE PROJETS ===== */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 40px var(--pad);
  border-bottom: 1px solid var(--ink-line);
}
.filter-bar button {
  background: none;
  border: 1px solid var(--ink-line);
  color: var(--paper-soft);
  padding: 12px 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .25s ease;
}
.filter-bar button:hover { border-color: var(--paper); color: var(--paper); }
.filter-bar button.is-active {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.projects-grid {
  padding: 60px var(--pad) 120px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.project-card {
  position: relative;
  overflow: hidden;
  background: var(--ink-soft);
  cursor: pointer;
}
.project-card .img-wrap { overflow: hidden; aspect-ratio: 4/5; }
.project-card .img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s cubic-bezier(.16,1,.3,1);
}
.project-card:hover .img-wrap img { transform: scale(1.06); }
.project-card .info {
  padding: 24px 0 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: baseline;
}
.project-card .info h3 {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.project-card .info .year {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--paper-mute);
}
.project-card .info .cat {
  grid-column: 1 / -1;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-soft);
}
.project-card.large { grid-column: span 7; }
.project-card.medium { grid-column: span 5; }
.project-card.small { grid-column: span 4; }
@media (max-width: 900px) {
  .project-card { grid-column: span 12 !important; }
}
.is-hidden { display: none !important; }

/* ===== ATELIER (à propos) ===== */
.intro-block {
  padding: 160px var(--pad) 60px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: end;
}
@media (max-width: 800px) {
  .intro-block { grid-template-columns: 1fr; padding-top: 130px; }
}
.intro-block h1 {
  font-size: clamp(56px, 9vw, 140px);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 70, "WONK" 1;
}
.intro-block .lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.4;
  color: var(--paper-soft);
  font-variation-settings: "opsz" 144, "SOFT" 40;
}
.intro-block .lede em { color: var(--accent); font-style: italic; }

.split-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 60px var(--pad);
}
.split-image img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}
.split-image img:first-child { aspect-ratio: 3/4; }
.split-image img:last-child { aspect-ratio: 4/5; margin-top: 80px; }
@media (max-width: 700px) {
  .split-image { grid-template-columns: 1fr; }
  .split-image img:last-child { margin-top: 0; }
}

.values {
  padding: 120px var(--pad);
  border-top: 1px solid var(--ink-line);
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  margin-top: 60px;
}
.value {
  border-left: 1px solid var(--ink-line);
  padding-left: 30px;
}
.value .roman {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.value h3 {
  margin: 18px 0 18px;
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 60;
}
.value p {
  color: var(--paper-soft);
  font-size: 15px;
  line-height: 1.7;
}
@media (max-width: 800px) {
  .values-grid { grid-template-columns: 1fr; gap: 40px; }
}

.team {
  padding: 120px var(--pad);
  border-top: 1px solid var(--ink-line);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 60px;
}
.team-member figure { margin: 0; }
.team-member img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: filter .5s ease;
}
.team-member:hover img { filter: grayscale(0); }
.team-member figcaption { margin-top: 20px; }
.team-member h4 {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.team-member .role {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--paper-mute);
  margin-top: 6px;
  display: block;
}
@media (max-width: 800px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

.timeline {
  padding: 120px var(--pad);
  border-top: 1px solid var(--ink-line);
}
.timeline-list {
  margin-top: 60px;
  border-top: 1px solid var(--ink-line);
}
.timeline-row {
  display: grid;
  grid-template-columns: 120px 1fr 2fr;
  gap: 40px;
  padding: 34px 0;
  border-bottom: 1px solid var(--ink-line);
  align-items: baseline;
  transition: background .3s ease;
}
.timeline-row:hover { background: rgba(255,255,255,0.02); }
.timeline-row .year {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.timeline-row .title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.timeline-row .desc {
  color: var(--paper-soft);
  font-size: 15px;
}
@media (max-width: 700px) {
  .timeline-row { grid-template-columns: 1fr; gap: 8px; }
}

/* ===== SERVICES ===== */
.services-list {
  padding: 60px var(--pad) 120px;
}
.service-row {
  display: grid;
  grid-template-columns: 80px 1fr 1.4fr;
  gap: 60px;
  padding: 52px 0;
  border-top: 1px solid var(--ink-line);
  align-items: start;
}
.service-row:last-child { border-bottom: 1px solid var(--ink-line); }
.service-row .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 54px;
  color: var(--accent);
  line-height: 1;
  font-variation-settings: "opsz" 144, "SOFT" 70;
}
.service-row h3 {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-variation-settings: "opsz" 144, "SOFT" 60;
}
.service-row .body {
  color: var(--paper-soft);
  font-size: 16px;
  line-height: 1.7;
}
.service-row .body ul {
  margin-top: 18px;
  list-style: none;
}
.service-row .body ul li {
  padding: 8px 0 8px 28px;
  position: relative;
  border-bottom: 1px dashed var(--ink-line);
  font-size: 14px;
  color: var(--paper-soft);
}
.service-row .body ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}
@media (max-width: 800px) {
  .service-row { grid-template-columns: 1fr; gap: 18px; }
}

.process {
  padding: 120px var(--pad);
  border-top: 1px solid var(--ink-line);
  background: var(--ink-soft);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: 60px;
}
.process-step {
  border-top: 1px solid var(--paper-mute);
  padding-top: 24px;
}
.process-step .step-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.22em;
}
.process-step h4 {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  margin: 14px 0 10px;
  font-variation-settings: "opsz" 144, "SOFT" 60;
}
.process-step p {
  font-size: 13px;
  color: var(--paper-soft);
  line-height: 1.6;
}
@media (max-width: 900px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== CONTACT ===== */
.contact-hero {
  padding: 170px var(--pad) 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  border-bottom: 1px solid var(--ink-line);
  align-items: end;
}
@media (max-width: 800px) {
  .contact-hero { grid-template-columns: 1fr; padding-top: 130px; }
}
.contact-hero h1 {
  font-size: clamp(58px, 9vw, 150px);
  font-style: italic;
  line-height: 0.95;
  font-variation-settings: "opsz" 144, "SOFT" 70, "WONK" 1;
}
.contact-hero .lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  color: var(--paper-soft);
  line-height: 1.5;
  font-variation-settings: "opsz" 144, "SOFT" 40;
}

.contact-grid {
  padding: 100px var(--pad);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-info h4 {
  margin-bottom: 24px;
  color: var(--paper-mute);
}
.contact-info .block {
  padding: 24px 0;
  border-top: 1px solid var(--ink-line);
}
.contact-info .block:last-child { border-bottom: 1px solid var(--ink-line); }
.contact-info .block .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--paper-mute);
  display: block;
  margin-bottom: 8px;
}
.contact-info .block .value {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  color: var(--paper);
  font-variation-settings: "opsz" 144, "SOFT" 50;
}

form.contact-form { display: grid; gap: 28px; }
form.contact-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 600px) {
  form.contact-form .row { grid-template-columns: 1fr; }
}
form.contact-form .field label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--paper-mute);
  margin-bottom: 10px;
}
form.contact-form input,
form.contact-form select,
form.contact-form textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ink-line);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  padding: 14px 0;
  outline: none;
  transition: border-color .3s ease;
}
form.contact-form input:focus,
form.contact-form select:focus,
form.contact-form textarea:focus {
  border-color: var(--accent);
}
form.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}
form.contact-form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--paper-mute) 50%),
                    linear-gradient(135deg, var(--paper-mute) 50%, transparent 50%);
  background-position: calc(100% - 18px) center, calc(100% - 12px) center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--ink-soft);
  padding: 80px var(--pad) 40px;
  border-top: 1px solid var(--ink-line);
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--ink-line);
}
.footer-brand-block .brand {
  font-family: var(--serif);
  font-style: italic;
  font-size: 42px;
  display: block;
  margin-bottom: 20px;
  color: var(--paper);
  font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 1;
}
.footer-brand-block p {
  max-width: 40ch;
  color: var(--paper-soft);
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.5;
  font-variation-settings: "opsz" 144, "SOFT" 40;
}
.footer-col h4 {
  margin-bottom: 24px;
  color: var(--paper-mute);
}
.footer-col a, .footer-col span {
  display: block;
  padding: 6px 0;
  color: var(--paper-soft);
  font-size: 14px;
}
.footer-col a:hover { color: var(--accent-soft); }
.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  padding-top: 40px;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-mute);
}
.footer-bottom .center { justify-self: center; }
.footer-bottom .right { justify-self: end; }
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-bottom { grid-template-columns: 1fr; text-align: center; }
  .footer-bottom .right, .footer-bottom .center { justify-self: center; }
}

/* ===== ANIMATIONS scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(.16,1,.3,1), transform 1s cubic-bezier(.16,1,.3,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }

/* ===== Préfère-réduit-mouvement ===== */
@media (prefers-reduced-motion: reduce) {
  .hero-strips .strip { animation: none !important; transform: translateY(0) !important; }
  .hero-image-full { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-strips { opacity: 0 !important; }
  .hero-title .word { transform: none !important; opacity: 1 !important; animation: none !important; }
  .reveal-line > span { transform: none !important; opacity: 1 !important; }
  .hero-corner, .scroll-cue { opacity: 1 !important; animation: none !important; }
}
