/*
Theme Name: Nf Prod
Author: Nf Prod
Description: Thème one-page sur-mesure pour Nf Prod.
Version: 1.0.0
*/

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

:root {
  --bg: #f5f4f0;
  --bg-alt: #eceae3;
  --surface: #ffffff;
  --black: #0a0a0a;
  --black-pure: #000000;
  --border: rgba(10, 10, 10, 0.10);
  --border-mid: rgba(10, 10, 10, 0.18);
  --border-strong: rgba(10, 10, 10, 0.32);
  --fg: #0a0a0a;
  --fg-secondary: #4a4a4a;
  --fg-muted: #7a7770;
  --on-black-fg: #f5f4f0;
  --on-black-secondary: #b8b5ae;
  --on-black-muted: #807d76;
  --font-sans: 'Geist', system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;
  --container: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --letterbox: 72px;
  --usable: calc(100vh - (var(--letterbox) * 2));
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { background: var(--bg); color: var(--fg); font-family: var(--font-sans); font-weight: 400; line-height: 1.55; font-size: 16px; overflow-x: hidden; padding-top: var(--letterbox); padding-bottom: var(--letterbox); }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); width: 100%; }

.letterbox { position: fixed; left: 0; right: 0; height: var(--letterbox); background: var(--black-pure); color: var(--on-black-fg); z-index: 100; display: flex; align-items: center; }
.letterbox--top { top: 0; }
.letterbox--bottom { bottom: 0; }
.letterbox__inner { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100%; }

.logo { display: flex; align-items: center; height: 100%; padding: 12px 0; }
.logo img { height: 100%; max-height: 48px; width: auto; object-fit: contain; }
.logo--footer { height: 40px; display: flex; align-items: center; }
.logo--footer img { height: 28px; width: auto; }

.nav { display: flex; gap: 32px; }
.nav a { font-size: 14px; font-weight: 500; color: var(--on-black-secondary); transition: color 0.15s ease; }
.nav a:hover, .nav a.active { color: var(--on-black-fg); }

.strip-info { display: flex; align-items: center; gap: 16px; font-family: var(--font-mono); font-size: 12px; color: var(--on-black-muted); }
.strip-info span.dot { width: 4px; height: 4px; border-radius: 50%; background: var(--on-black-muted); }
.strip-info a { color: var(--on-black-secondary); transition: color 0.15s ease; }
.strip-info a:hover { color: var(--on-black-fg); }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; font-size: 14px; font-weight: 500; border-radius: 6px; transition: all 0.15s ease; white-space: nowrap; border: 1px solid transparent; }
.btn--primary { background: var(--black); color: var(--bg); }
.btn--primary:hover { background: #000; transform: translateY(-1px); }
.btn--ghost { border: 1px solid var(--border-strong); color: var(--fg); }
.btn--ghost:hover { border-color: var(--black); background: var(--surface); }
.btn--ghost-light { border: 1px solid rgba(255,255,255,0.4); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.btn--on-black { background: var(--on-black-fg); color: var(--black); }
.btn--on-black:hover { background: #fff; }
.btn--lg { padding: 14px 22px; font-size: 15px; }
.btn__arrow { transition: transform 0.15s ease; margin-left: 2px; }
.btn:hover .btn__arrow { transform: translateX(3px); }
.burger { display: none; }

.fullscreen { min-height: var(--usable); display: flex; flex-direction: column; justify-content: center; border-bottom: 1px solid var(--border); padding: 60px 0; position: relative; overflow: hidden; }

.section-label { font-family: var(--font-mono); font-size: 12px; color: var(--fg-muted); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.section-label::before { content: ''; width: 24px; height: 1px; background: var(--fg-muted); }
.section-title { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; max-width: 22ch; }
.section-intro { color: var(--fg-secondary); font-size: 17px; line-height: 1.6; max-width: 60ch; margin-top: 24px; }

.hero { color: #fff; position: relative; }
.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #0a0a0a; }
.hero__bg video, .hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); z-index: 1; }
.hero .container { position: relative; z-index: 2; }
.hero__inner { max-width: 1000px; }
.hero__pretitle { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.75); margin-bottom: 28px; display: flex; align-items: center; gap: 10px; }
.hero__pretitle::before { content: ''; width: 24px; height: 1px; background: rgba(255,255,255,0.75); }
.hero__title { font-size: clamp(2.2rem, 6.5vw, 5.5rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.035em; margin-bottom: 28px; }
.hero__title em { font-style: normal; color: rgba(255,255,255,0.65); font-weight: 400; }
.hero__desc { font-size: clamp(16px, 1.4vw, 18px); line-height: 1.55; color: rgba(255,255,255,0.85); max-width: 60ch; margin-bottom: 36px; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.hero__facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,0.18); border-bottom: 1px solid rgba(255,255,255,0.18); max-width: 1100px; }
.hero__fact { padding: 22px 28px 22px 0; border-right: 1px solid rgba(255,255,255,0.18); }
.hero__fact:last-child { border-right: none; }
.hero__fact strong { display: block; font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1; margin-bottom: 6px; color: #fff; }
.hero__fact span { font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,0.6); }

.services-section { background: var(--bg); }
.services-section__head { margin-bottom: 50px; }
.services { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--border); flex: 1; max-height: 60vh; }
.service { border-bottom: 1px solid var(--border); padding: 36px 36px; display: flex; flex-direction: column; transition: background 0.2s ease; cursor: pointer; position: relative; overflow: hidden; }
.service:nth-child(odd) { border-right: 1px solid var(--border); }
.service:hover { background: var(--surface); }
.service__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.service__num { font-family: var(--font-mono); font-size: 12px; color: var(--fg-muted); }
.service__icon { width: 36px; height: 36px; border: 1px solid var(--border-mid); border-radius: 6px; display: grid; place-items: center; transition: all 0.2s ease; color: var(--fg); }
.service:hover .service__icon { background: var(--black); border-color: var(--black); color: var(--bg); }
.service__title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 14px; }
.service__desc { color: var(--fg-secondary); font-size: 15px; line-height: 1.55; margin-bottom: 20px; max-width: 46ch; }
.service__items { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.service__items li { font-family: var(--font-mono); font-size: 12px; padding: 5px 11px; border: 1px solid var(--border-mid); border-radius: 4px; color: var(--fg-secondary); background: rgba(255,255,255,0.6); }
.service__link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--fg); border-bottom: 1px solid var(--border-strong); padding-bottom: 4px; transition: border-color 0.15s ease; margin-top: auto; align-self: flex-start; }
.service:hover .service__link { border-color: var(--black); }

.portfolio { background: var(--bg-alt); }
.portfolio__head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 24px; margin-bottom: 40px; }
.portfolio__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; flex: 1; align-content: center; }
.work { cursor: pointer; }
.work__thumb { aspect-ratio: 16 / 10; background: var(--black); border-radius: 4px; margin-bottom: 14px; position: relative; overflow: hidden; transition: transform 0.3s ease; }
.work:hover .work__thumb { transform: translateY(-3px); }
.work__thumb::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(255,255,255,0.06) 0%, transparent 60%); z-index: 1; }
.work__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25); backdrop-filter: blur(10px); display: grid; place-items: center; transition: all 0.2s ease; z-index: 2; }
.work:hover .work__play { background: var(--bg); border-color: var(--bg); }
.work__play svg { width: 14px; height: 14px; margin-left: 2px; color: var(--bg); }
.work:hover .work__play svg { color: var(--black); }
.work__info { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.work__title { font-size: 15px; font-weight: 600; letter-spacing: -0.015em; }
.work__meta { font-family: var(--font-mono); font-size: 11px; color: var(--fg-muted); }

.clients-section { min-height: calc(var(--usable) * 0.7); }
.clients__head { margin-bottom: 40px; }
.clients__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); }
.client { aspect-ratio: 5 / 2; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); display: grid; place-items: center; padding: 24px; transition: background 0.2s ease; }
.client:nth-child(4n) { border-right: none; }
.client:hover { background: var(--surface); }
.client__name { font-size: 16px; font-weight: 600; letter-spacing: -0.015em; color: var(--fg-secondary); text-align: center; line-height: 1.2; transition: color 0.2s ease; }
.client:hover .client__name { color: var(--fg); }

.engagement { background: var(--bg-alt); min-height: calc(var(--usable) * 1.1); }
.engagement__inner { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.engagement__title { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 24px; }
.engagement__text { color: var(--fg-secondary); font-size: 17px; line-height: 1.65; margin-bottom: 24px; }
.engagement__text strong { color: var(--fg); font-weight: 600; }
.engagement__stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); border-radius: 6px; margin: 32px 0; overflow: hidden; background: var(--surface); }
.engagement__stat { padding: 22px; border-right: 1px solid var(--border); }
.engagement__stat:last-child { border-right: none; }
.engagement__stat strong { display: block; font-size: clamp(1.6rem, 2.4vw, 2rem); font-weight: 700; letter-spacing: -0.025em; margin-bottom: 6px; }
.engagement__stat span { font-family: var(--font-mono); font-size: 11px; color: var(--fg-muted); }

.cta-final { border-bottom: none; background: var(--bg); min-height: calc(var(--usable) * 0.65); }
.cta-final__inner { max-width: 880px; }
.cta-final__title { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.035em; margin-bottom: 22px; }
.cta-final__desc { font-size: 18px; color: var(--fg-secondary); line-height: 1.55; margin-bottom: 32px; max-width: 50ch; }
.cta-final__contact { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--border); }
.cta-final__contact-item { display: flex; flex-direction: column; gap: 4px; }
.cta-final__contact-label { font-family: var(--font-mono); font-size: 11px; color: var(--fg-muted); }
.cta-final__contact-value { font-size: 15px; font-weight: 500; color: var(--fg); }
.cta-final__contact-value:hover { color: var(--fg-secondary); }

@media (max-width: 900px) {
  :root { --letterbox: 56px; }
  .nav { display: none; }
  .burger { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,0.2); border-radius: 6px; }
  .burger span, .burger span::before, .burger span::after { display: block; width: 16px; height: 1.5px; background: var(--on-black-fg); }
  .burger span { position: relative; }
  .burger span::before, .burger span::after { content: ''; position: absolute; left: 0; }
  .burger span::before { top: -5px; }
  .burger span::after { top: 5px; }
  .fullscreen { min-height: auto; padding: 60px 0; }
  .hero__facts { grid-template-columns: repeat(2, 1fr); }
  .hero__fact:nth-child(2) { border-right: none; }
  .hero__fact { padding: 18px 0; }
  .hero__fact:nth-child(1), .hero__fact:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.18); }
  .services { grid-template-columns: 1fr; max-height: none; }
  .service:nth-child(odd) { border-right: none; }
  .service { padding: 32px 24px; }
  .portfolio__grid { grid-template-columns: repeat(2, 1fr); }
  .clients__grid { grid-template-columns: repeat(2, 1fr); }
  .client:nth-child(2n) { border-right: none; }
  .client:nth-child(4n) { border-right: 1px solid var(--border); }
  .engagement__inner { grid-template-columns: 1fr; }
  .engagement__stats { grid-template-columns: 1fr; }
  .engagement__stat { border-right: none; border-bottom: 1px solid var(--border); }
  .engagement__stat:last-child { border-bottom: none; }
  .strip-info--secondary { display: none; }
}
@media (max-width: 600px) {
  .letterbox__inner .btn--on-black { display: none; }
  .portfolio__grid { grid-template-columns: 1fr; }
}
