/* ==============================================
   RENDU.BE — Main Stylesheet
   Design system Rendu
   ============================================== */

/* ==============================================
   RESET
   ============================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  background: var(--offwhite);
  color: var(--black);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
::selection { background: var(--yellow); color: var(--black); }

/* ==============================================
   UTILITY
   ============================================== */
.sg { font-family: var(--font-display); }
.mono { font-family: var(--font-mono); }
.container { max-width: 1200px; margin: 0 auto; padding-inline: 40px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* ==============================================
   REVEAL / ANIMATIONS
   ============================================== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  }
  .reveal.visible { opacity: 1; transform: translateY(0); }
  .reveal-d1 { transition-delay: 0.08s; }
  .reveal-d2 { transition-delay: 0.16s; }
  .reveal-d3 { transition-delay: 0.24s; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.333%); }
}
.fu { animation: fadeUp 0.6s ease-out both; }
.fu1 { animation: fadeUp 0.6s ease-out 0.08s both; }
.fu2 { animation: fadeUp 0.6s ease-out 0.16s both; }
.fu3 { animation: fadeUp 0.6s ease-out 0.24s both; }
.fu4 { animation: fadeUp 0.6s ease-out 0.32s both; }

/* ==============================================
   BUTTONS
   ============================================== */
.btn-p {
  background: var(--black); color: var(--white);
  border: 2px solid var(--black); padding: 14px 32px;
  font-size: 14px; font-weight: 700;
  font-family: var(--font-display);
  cursor: pointer; transition: all 0.2s;
  text-transform: uppercase; letter-spacing: 0.04em;
  display: inline-block;
}
.btn-p:hover {
  background: var(--blue); border-color: var(--blue);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--black);
}
.btn-p:active { transform: translate(0,0); box-shadow: none; }
.btn-p:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

.btn-s {
  background: transparent; color: var(--black);
  border: 2px solid var(--black); padding: 14px 32px;
  font-size: 14px; font-weight: 700;
  font-family: var(--font-display);
  cursor: pointer; transition: all 0.2s;
  text-transform: uppercase; letter-spacing: 0.04em;
  display: inline-block;
}
.btn-s:hover {
  background: var(--yellow);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--black);
}
.btn-s:active { transform: translate(0,0); box-shadow: none; }
.btn-s:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

/* ==============================================
   NAV
   ============================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  border-bottom: 2px solid transparent; transition: all 0.3s;
}
.nav.scrolled {
  background: #F8F6F1EE;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--black);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 14px 40px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display); font-size: 22px;
  font-weight: 700; color: var(--black); text-transform: uppercase;
  letter-spacing: -0.02em;
  display: flex; align-items: center;
}
.nav-logo .dot {
  width: 8px; height: 8px; background: var(--red);
  border-radius: 50%; margin-left: 2px;
  position: relative; top: 3px;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link {
  color: var(--black); font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  font-family: var(--font-display); transition: color 0.2s;
}
.nav-link:hover { color: var(--blue); }
.nav-link:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
.nav-cta { padding: 10px 22px !important; font-size: 12px !important; }

.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; cursor: pointer; z-index: 110;
}
.nav-burger span {
  display: block; width: 24px; height: 2px;
  background: var(--black); transition: all 0.3s;
}
.nav-burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ==============================================
   HERO (index)
   ============================================== */
.hero {
  min-height: calc(100vh - 56px); display: flex; align-items: flex-start;
  padding: 80px 40px 40px; position: relative; overflow: hidden;
  margin-top: 56px;
}
.hero-shapes { position: absolute; inset: 0; pointer-events: none; }
.hero-inner { max-width: 1200px; margin: 0 auto; width: 100%; position: relative; z-index: 1; }
.hero-content { max-width: 720px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 20px;
}
.hero-badge .swatch { width: 12px; height: 12px; }
.hero-badge .lbl {
  font-family: var(--font-display); font-size: 12px;
  font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-muted); margin-left: 8px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 64px); font-weight: 700;
  line-height: 1.0; color: var(--black); margin-bottom: 16px;
  text-transform: uppercase; letter-spacing: -0.02em;
}
.hero h1 .hl { color: var(--blue); }
.hero h1 .dot-r { color: var(--red); }
.hero .lead {
  font-size: 18px; line-height: 1.75; color: var(--text-muted);
  max-width: 500px; margin-bottom: 24px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  display: inline-flex; margin-top: 32px;
  border: 2px solid var(--black); overflow: hidden;
}
.hero-stat {
  padding: 16px 28px; border-right: 2px solid var(--black);
}
.hero-stat:last-child { border-right: none; }
.hero-stat .val {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700; color: var(--black);
}
.hero-stat .lbl {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; margin-top: 2px;
}

/* ==============================================
   MARQUEE / TICKER
   ============================================== */
.marquee-wrap {
  border-top: 2px solid var(--black); border-bottom: 2px solid var(--black);
  background: var(--black); padding: 14px 0; overflow: hidden; white-space: nowrap;
}
.marquee-track {
  display: inline-flex; align-items: center;
  animation: marquee 30s linear infinite;
}
.marquee-item {
  font-family: var(--font-display); font-size: 13px;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  padding: 0 24px;
}
.marquee-dot { width: 6px; height: 6px; flex-shrink: 0; }

/* ==============================================
   SECTION LABEL
   ============================================== */
.section-label {
  display: flex; align-items: center; gap: 16px; margin-bottom: 12px;
}
.section-label .bar { width: 40px; height: 4px; }
.section-label span {
  font-family: var(--font-display); font-size: 12px;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em;
}

/* ==============================================
   SERVICES (cat-card style)
   ============================================== */
.services { padding: 80px 0 100px; }
.services h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 50px); font-weight: 700;
  color: var(--black); text-transform: uppercase;
  line-height: 1.05; letter-spacing: -0.01em;
}
.services .sub {
  font-size: 16px; color: var(--text-muted); max-width: 460px;
  line-height: 1.75; margin-top: 16px;
}
.services-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px;
}
.service-card {
  background: var(--white); border-radius: 4px; overflow: hidden;
  border: 2px solid var(--border); transition: all 0.3s;
  box-shadow: 4px 4px 0px var(--border);
  cursor: default; position: relative;
}
.service-card:hover { transform: translateY(-4px); }
.service-card-header {
  padding: 24px 28px 20px; position: relative; overflow: hidden;
}
.service-card-num {
  position: absolute; top: -12px; right: 12px;
  font-family: var(--font-display);
  font-size: 96px; font-weight: 700;
  color: var(--white); opacity: 0.2; line-height: 1;
}
.service-card-header .inner { position: relative; z-index: 1; }
.service-card-subtitle {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; display: block; margin-bottom: 6px;
}
.service-card-title {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 700; margin: 0; line-height: 1.2;
}
.service-card-body { padding: 24px 28px 28px; }
.service-card-body p { font-size: 14px; line-height: 1.75; color: var(--text-muted); margin: 0 0 16px; }
.service-card-cta {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 12px;
  font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; margin-top: 16px;
  padding-top: 16px; border-top: 2px solid var(--border);
  transition: color 0.2s;
}
.service-card-cta .arrow {
  display: inline-block; transition: transform 0.2s;
}
.service-card:hover .service-card-cta .arrow { transform: translateX(4px); }

/* ==============================================
   ABOUT
   ============================================== */
.about {
  border-top: 2px solid var(--black);
  padding: 80px 0;
}
.about .container {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start;
}
.about h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 50px); font-weight: 700;
  color: var(--black); text-transform: uppercase;
  line-height: 1.05; letter-spacing: -0.01em;
}
.about h2 em { font-style: normal; color: var(--blue); }
.about-text p {
  font-size: 15px; line-height: 1.8; color: var(--text-muted);
  margin-bottom: 16px;
}

/* ==============================================
   PROCESS (approche-grid style)
   ============================================== */
.process {
  border-top: 2px solid var(--black); border-bottom: 2px solid var(--black);
}
.process-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.process-item { padding: 48px 40px; }
.process-item + .process-item { border-left: 2px solid var(--black); }
.process-num {
  font-family: var(--font-display);
  font-size: 64px; font-weight: 700; color: var(--black);
  opacity: 0.08; line-height: 1; margin-bottom: 16px;
}
.process-item h3 {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700; color: var(--black);
  margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.02em;
}
.process-item p { font-size: 14px; line-height: 1.8; color: var(--text-muted); margin: 0; }

/* ==============================================
   CONTACT / CTA
   ============================================== */
.contact-section { padding: 80px 40px 120px; }
.contact-box {
  max-width: 900px; margin: 0 auto;
  border: 2px solid var(--black); overflow: hidden;
}
.contact-bar { display: flex; height: 8px; }
.contact-bar div { flex: 1; }
.contact-inner { padding: 48px; background: var(--white); }
.contact-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 38px); font-weight: 700;
  color: var(--black); margin-bottom: 12px; text-transform: uppercase;
  text-align: center;
}
.contact-inner .sub {
  font-size: 15px; color: var(--text-muted); line-height: 1.7;
  max-width: 500px; margin: 0 auto 36px; text-align: center;
}
.contact-form { max-width: 600px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-family: var(--font-display);
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 6px; color: var(--black);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 14px 16px;
  background: var(--offwhite); color: var(--black);
  border: 2px solid var(--border);
  font-family: var(--font-body); font-size: 14px;
  outline: none; transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--blue); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select { cursor: pointer; }
.form-submit {
  width: 100%; padding: 16px;
  background: var(--black); color: var(--white);
  border: 2px solid var(--black);
  font-family: var(--font-display); font-size: 14px;
  font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; cursor: pointer;
  transition: all 0.2s;
}
.form-submit:hover { background: var(--blue); border-color: var(--blue); }
.form-submit:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.contact-fine {
  font-size: 12px; color: var(--text-light); margin-top: 16px; text-align: center;
}

/* CTA aside items */
.cta-aside {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 2px solid var(--black); margin-top: 0;
}
.cta-aside-item {
  padding: 20px 24px; border-right: 2px solid var(--black);
  background: var(--white);
}
.cta-aside-item:last-child { border-right: none; }
.cta-aside-item strong {
  display: block; font-family: var(--font-display);
  font-size: 14px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.02em; margin-bottom: 4px;
}
.cta-aside-item span {
  font-size: 12px; color: var(--text-muted); line-height: 1.5;
}

/* Rappel form (inside contact-box) */
.rappel-form { max-width: 600px; margin: 0 auto; }
.rappel-fields { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.rappel-field label {
  display: block; font-family: var(--font-display);
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 6px; color: var(--black);
}
.rappel-field input,
.rappel-field select {
  width: 100%; padding: 14px 16px;
  background: var(--offwhite); color: var(--black);
  border: 2px solid var(--border);
  font-family: var(--font-body); font-size: 14px;
  outline: none; transition: border-color 0.2s;
}
.rappel-field input:focus,
.rappel-field select:focus { border-color: var(--blue); }
.rappel-field select { cursor: pointer; }

.rappel-confirm {
  display: none; text-align: center; padding: 24px;
}
.rappel-confirm.visible { display: block; }
.rappel-confirm .confirm-msg {
  font-family: var(--font-display); font-size: 18px;
  font-weight: 700; color: var(--blue);
  text-transform: uppercase; letter-spacing: 0.02em;
}

/* ==============================================
   FOOTER
   ============================================== */
footer {
  border-top: 2px solid var(--black); padding: 28px 40px; background: var(--black);
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-logo {
  font-family: var(--font-display); font-size: 18px;
  font-weight: 700; color: var(--white); text-transform: uppercase;
  display: flex; align-items: center;
}
.footer-logo .dot { width: 8px; height: 8px; background: var(--red); border-radius: 50%; margin-left: 2px; position: relative; top: 3px; }
.footer-copy { font-size: 12px; color: var(--text-light); }
.footer-links { display: flex; gap: 24px; }
.footer-link {
  font-size: 12px; color: #888; font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: 0.06em; transition: color 0.2s;
}
.footer-link:hover { color: var(--white); }

/* ==============================================
   PORTFOLIO — Page hero (detail-header style)
   ============================================== */
.detail-header {
  padding: 100px 0 60px; position: relative; overflow: hidden;
  border-bottom: 2px solid var(--black);
}
.detail-header .container { position: relative; z-index: 1; }
.detail-header-color {
  position: absolute; top: 0; right: 0;
  width: 40%; height: 100%;
  background: var(--blue); opacity: 0.06; pointer-events: none;
}
.detail-subtitle {
  font-family: var(--font-display); font-size: 12px;
  font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; margin-bottom: 8px; color: var(--blue);
}
.detail-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px); font-weight: 700;
  text-transform: uppercase; line-height: 1.05;
  letter-spacing: -0.01em; margin-bottom: 16px;
}
.detail-title .hl { color: var(--red); }
.detail-meta {
  display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px;
}
.detail-tag {
  font-family: var(--font-display); font-size: 11px;
  font-weight: 700; padding: 6px 14px;
  text-transform: uppercase; letter-spacing: 0.06em;
  border: 2px solid var(--border); background: var(--white);
}

/* Portfolio section dividers */
.portfolio-divider {
  padding: 40px 0; border-bottom: 2px solid var(--black);
}
.portfolio-divider h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px); font-weight: 700;
  text-transform: uppercase; line-height: 1.1;
}
.portfolio-divider h2 em { font-style: normal; color: var(--blue); }
.portfolio-divider .sub {
  font-size: 13px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-top: 8px;
}

/* ==============================================
   PORTFOLIO — Project slides
   ============================================== */
.project-slide {
  display: grid; grid-template-columns: 1fr 1fr;
  border-bottom: 2px solid var(--black); min-height: 50vh;
}
.project-slide.dark { background: var(--black); color: var(--white); }
.project-slide.dark .project-info { border-left-color: rgba(255,255,255,0.12); }
.project-slide.dark .info-label { opacity: 0.4; }
.project-slide.dark .info-value { color: var(--white); }
.project-slide.dark .project-link { color: var(--yellow); }
.project-slide.dark .project-link:hover { color: var(--white); }
.project-slide.dark .watermark { color: var(--white); }
.project-slide.dark .info-row { border-top-color: rgba(255,255,255,0.1); }

.project-mockup {
  padding: 48px; display: flex; align-items: center; justify-content: center;
  border-right: 2px solid var(--black);
}
.project-slide.dark .project-mockup { border-right-color: rgba(255,255,255,0.12); }

/* Browser frame */
.browser-frame {
  width: 100%; max-width: 520px; border: 2px solid var(--black);
  border-radius: 4px; overflow: hidden;
  box-shadow: 6px 6px 0 var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none; display: block;
}
.browser-frame:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--border);
}
.project-slide.dark .browser-frame {
  border-color: rgba(255,255,255,0.25);
  box-shadow: 6px 6px 0 rgba(255,255,255,0.05);
}
.project-slide.dark .browser-frame:hover {
  box-shadow: 9px 9px 0 rgba(255,255,255,0.05);
}
.browser-bar {
  background: var(--black); padding: 10px 14px;
  display: flex; align-items: center; gap: 10px;
}
.project-slide.dark .browser-bar { background: rgba(255,255,255,0.08); }
.browser-dots { display: flex; gap: 5px; }
.browser-dots span { width: 10px; height: 10px; border-radius: 50%; }
.browser-dots span:nth-child(1) { background: var(--red); }
.browser-dots span:nth-child(2) { background: var(--yellow); }
.browser-dots span:nth-child(3) { background: #34C759; }
.browser-url {
  flex: 1; background: rgba(255,255,255,0.1); padding: 4px 10px;
  border-radius: 3px; font-family: var(--font-mono);
  font-size: 11px; color: rgba(255,255,255,0.6); letter-spacing: 0.03em;
}
.browser-content {
  height: 280px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; position: relative;
}
.browser-content-name {
  font-family: var(--font-display); font-size: 48px;
  font-weight: 700; letter-spacing: -0.02em; line-height: 1;
  text-transform: uppercase; position: relative; z-index: 2;
}
.browser-content-sub {
  font-size: 12px; font-weight: 600; opacity: 0.7; margin-top: 8px;
  text-transform: uppercase; letter-spacing: 0.1em; position: relative; z-index: 2;
}
.browser-content.lihanza { background: #E8DDD3; color: #2C2C2C; }
.browser-content.pelican { background: #1B4332; color: var(--offwhite); }

/* Terminal frame */
.terminal-frame {
  width: 100%; max-width: 520px; border: 2px solid rgba(255,255,255,0.2);
  border-radius: 4px; overflow: hidden;
  box-shadow: 6px 6px 0 rgba(255,255,255,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  display: block;
}
.terminal-frame:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 rgba(255,255,255,0.05);
}
.project-slide:not(.dark) .terminal-frame {
  border-color: var(--black);
  box-shadow: 6px 6px 0 var(--border);
}
.project-slide:not(.dark) .terminal-frame:hover {
  box-shadow: 9px 9px 0 var(--border);
}
.terminal-bar {
  background: #1A1A1A; padding: 10px 14px;
  display: flex; align-items: center; gap: 10px;
}
.terminal-title {
  flex: 1; font-family: var(--font-mono); font-size: 11px;
  color: rgba(255,255,255,0.4); letter-spacing: 0.05em;
}
.terminal-content {
  background: var(--black); height: 280px; padding: 24px;
  display: flex; flex-direction: column; justify-content: center;
  font-family: var(--font-mono);
}
.terminal-prompt {
  font-size: 12px; color: #34C759; opacity: 0.7; margin-bottom: 16px;
}
.terminal-name {
  font-family: var(--font-display); font-size: 48px;
  font-weight: 700; color: var(--white); letter-spacing: -0.02em;
  line-height: 1; text-transform: uppercase;
}
.terminal-desc {
  font-size: 11px; color: #34C759; margin-top: 12px;
  letter-spacing: 0.03em; line-height: 1.6;
}

/* Project info */
.project-info {
  padding: 48px; display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden; border-left: 2px solid var(--black);
}
.watermark {
  font-family: var(--font-display); font-size: clamp(10rem, 18vw, 16rem);
  font-weight: 700; color: var(--black); opacity: 0.04;
  position: absolute; top: 50%; right: -1rem;
  transform: translateY(-50%); pointer-events: none; user-select: none; line-height: 1;
}
.project-name {
  font-family: var(--font-display); font-size: clamp(36px, 5vw, 56px);
  font-weight: 700; text-transform: uppercase;
  line-height: 0.95; letter-spacing: -0.01em; margin-bottom: 32px;
  position: relative; z-index: 2;
}
.info-row {
  display: flex; gap: 16px; align-items: baseline; padding: 12px 0;
  border-top: 1px solid rgba(0,0,0,0.1); position: relative; z-index: 2;
}
.info-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; opacity: 0.45; width: 80px; flex-shrink: 0;
}
.info-value { font-size: 14px; font-weight: 400; color: var(--black); line-height: 1.6; }
.project-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 24px;
  font-family: var(--font-display); font-size: 14px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--blue); transition: color 0.2s, gap 0.2s;
  position: relative; z-index: 2;
}
.project-link:hover { color: var(--red); gap: 12px; }

/* Portfolio CTA block */
.portfolio-cta {
  background: var(--black); color: var(--white); padding: 80px 40px;
  text-align: center;
}
.portfolio-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 64px); font-weight: 700;
  text-transform: uppercase; line-height: 0.95;
  letter-spacing: -0.01em; margin-bottom: 20px;
}
.portfolio-cta h2 .hl { color: var(--yellow); }
.portfolio-cta p {
  font-size: 16px; line-height: 1.7; color: rgba(255,255,255,0.6);
  max-width: 420px; margin: 0 auto 32px;
}
.portfolio-cta .btn-p {
  background: var(--red); border-color: var(--red); color: var(--white);
}
.portfolio-cta .btn-p:hover {
  background: var(--yellow); border-color: var(--yellow); color: var(--black);
  box-shadow: 4px 4px 0 rgba(255,255,255,0.2);
}

/* ==============================================
   LEGAL PAGES
   ============================================== */
.legal-page { padding: 100px 0 80px; }
.legal-page .container { max-width: 780px; }
.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700; text-transform: uppercase;
  line-height: 1.1; margin-bottom: 8px;
}
.legal-page h1 .hl { color: var(--red); }
.legal-page .legal-update {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-light); margin-bottom: 48px;
}
.legal-page h2 {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.02em;
  margin: 40px 0 12px; padding-top: 24px;
  border-top: 2px solid var(--border);
}
.legal-page h2:first-of-type { border-top: none; padding-top: 0; }
.legal-page p {
  font-size: 15px; line-height: 1.8;
  color: var(--text-muted); margin-bottom: 16px;
}
.legal-page a {
  color: var(--blue); text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-page a:hover { color: var(--black); }
.legal-page strong { color: var(--black); }

/* Info block inside legal */
.info-block {
  background: var(--black); color: var(--white);
  padding: 24px 28px; margin: 20px 0;
  border-left: 4px solid var(--yellow);
}
.info-block p { color: rgba(255,255,255,0.75) !important; font-size: 14px !important; margin-bottom: 8px !important; }
.info-block p:last-child { margin-bottom: 0 !important; }
.info-block strong { color: var(--yellow) !important; }
.info-block a { color: var(--yellow) !important; }

/* ==============================================
   404 PAGE
   ============================================== */
.error-page {
  min-height: 100vh; display: flex; flex-direction: column;
}
.error-main {
  flex: 1; display: flex; align-items: center;
  padding: 100px 40px 60px;
}
.error-main .container {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  max-width: 1200px; width: 100%;
}
.error-left {}
.error-tag {
  display: inline-block; background: var(--red); color: var(--white);
  padding: 6px 14px; margin-bottom: 24px;
  font-family: var(--font-display); font-size: 11px;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
}
.error-code {
  font-family: var(--font-display);
  font-size: clamp(100px, 15vw, 180px); font-weight: 700;
  line-height: 0.88; letter-spacing: -0.02em;
  color: var(--black);
}
.error-code .four-red { color: var(--red); }
.error-code .four-blue { color: var(--blue); }
.error-msg { margin-top: 32px; }
.error-msg h1 {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 40px); font-weight: 700;
  text-transform: uppercase; line-height: 1.1;
  color: var(--black); margin-bottom: 12px;
}
.error-msg h1 .hl { color: var(--yellow); }
.error-msg p {
  font-size: 16px; font-weight: 400; line-height: 1.7;
  color: var(--text-muted); max-width: 380px;
}
.error-actions {
  display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap;
}

/* Error right panel */
.error-right { position: relative; }
.error-bg {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(12rem, 22vw, 22rem);
  font-weight: 700; color: var(--black);
  opacity: 0.03; pointer-events: none; user-select: none;
  white-space: nowrap; letter-spacing: -0.05em;
}
.error-deco {
  position: absolute; top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: var(--sky); opacity: 0.15;
  clip-path: polygon(100% 0%, 0% 100%, 100% 100%);
}
.quick-links { position: relative; z-index: 2; margin-top: 80px; }
.quick-links-label {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-light); margin-bottom: 20px;
}
.quick-link {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-top: 1px solid var(--border);
  color: var(--black); transition: padding-left 0.2s, color 0.2s;
  min-height: 44px;
}
.quick-link:last-child { border-bottom: 1px solid var(--border); }
.quick-link:hover { padding-left: 12px; color: var(--blue); }
.quick-link span { font-weight: 400; font-size: 14px; letter-spacing: 0.02em; }
.quick-link-arrow {
  font-size: 14px; color: var(--text-light);
  transition: opacity 0.2s, transform 0.2s;
}
.quick-link:hover .quick-link-arrow { color: var(--blue); transform: translateX(4px); }

/* ==============================================
   SKIP LINK
   ============================================== */
.skip-link:focus {
  position: fixed !important;
  clip: auto !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  background: var(--yellow);
  color: var(--black);
  padding: 8px 16px;
  z-index: 999;
  font-weight: 700;
}

/* ==============================================
   RESPONSIVE
   ============================================== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--offwhite);
    padding: 100px 40px 40px;
    gap: 24px; z-index: 105;
  }
  .nav-links.open .nav-link { font-size: 24px; }
  .nav-links.open .btn-p { text-align: center; font-size: 16px !important; padding: 18px 32px !important; }

  .hero-shapes { display: none; }
  .hero h1 { font-size: clamp(36px, 10vw, 56px); }
  .hero-stats { flex-direction: column; }
  .hero-stat { border-right: none; border-bottom: 2px solid var(--black); }
  .hero-stat:last-child { border-bottom: none; }

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

  .about .container { grid-template-columns: 1fr; gap: 32px; }

  .process-grid { grid-template-columns: 1fr; }
  .process-item + .process-item { border-left: none; border-top: 2px solid var(--black); }

  .contact-inner { padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .rappel-fields { grid-template-columns: 1fr; }

  .cta-aside { grid-template-columns: 1fr 1fr; }
  .cta-aside-item:nth-child(2) { border-right: none; }
  .cta-aside-item:nth-child(3),
  .cta-aside-item:nth-child(4) { border-top: 2px solid var(--black); }

  .footer-inner { justify-content: center; text-align: center; }

  /* Portfolio responsive */
  .project-slide { grid-template-columns: 1fr; min-height: auto; }
  .project-mockup { border-right: none; border-bottom: 2px solid var(--black); padding: 32px 24px; }
  .project-slide.dark .project-mockup { border-bottom-color: rgba(255,255,255,0.12); }
  .project-info { border-left: none; padding: 32px 24px; }

  /* Error responsive */
  .error-main .container { grid-template-columns: 1fr; gap: 40px; }
  .error-right { min-height: 200px; }
}

@media (max-width: 520px) {
  .container { padding-inline: 20px; }
  .nav-inner { padding: 14px 20px; }
  .hero { padding: 90px 20px 32px; }
  .contact-section { padding: 60px 20px 80px; }
  .cta-aside { grid-template-columns: 1fr; }
  .cta-aside-item { border-right: none; border-bottom: 2px solid var(--black); }
  .cta-aside-item:last-child { border-bottom: none; }
  .cta-aside-item:nth-child(3),
  .cta-aside-item:nth-child(4) { border-top: none; }
  .project-mockup { padding: 24px 16px; }
  .project-info { padding: 24px 16px; }
  .browser-content, .terminal-content { height: 200px; }
  .browser-content-name, .terminal-name { font-size: 36px; }
  .error-main { padding: 80px 20px 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
