:root {
  --bg: #0b0b0a;
  --bg-2: #141412;
  --ink: #f2efe9;
  --muted: #9b968c;
  --line: rgba(242, 239, 233, .12);
  --accent: #e9a24c;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
  --pad: clamp(20px, 5vw, 80px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-weight: 400; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.section { padding: clamp(80px, 12vw, 160px) var(--pad); }
.eyebrow { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); }
h1, h2 { font-weight: 500; letter-spacing: -.025em; line-height: 1.02; }
h2 { font-size: clamp(38px, 5.5vw, 80px); }
.section-head { margin-bottom: clamp(40px, 6vw, 80px); }
.section-head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 28px; border-radius: 100px; font-size: 14px; font-weight: 600; letter-spacing: .02em; transition: transform .3s, background .3s, color .3s; }
.btn-light { background: var(--ink); color: var(--bg); }
.btn-light:hover { background: var(--accent); transform: translateY(-2px); }
.btn-ghost { border: 1px solid rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }

/* NAV */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; justify-content: space-between; align-items: center; padding: 22px var(--pad); transition: background .4s, padding .4s, backdrop-filter .4s; }
.nav.scrolled { background: rgba(11,11,10,.78); backdrop-filter: blur(14px); padding-top: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
/* Logo — une seule typo (Manrope) : J.B.K en blanc, STUDIO en accent, séparés par un filet */
.logo { display: inline-flex; align-items: center; font-family: var(--sans); font-weight: 800; font-size: 22px; letter-spacing: .18em; line-height: 1; color: var(--ink); white-space: nowrap; }
.logo span { font-family: var(--sans); font-style: normal; font-weight: 700; font-size: .62em; letter-spacing: .42em; text-transform: uppercase; color: var(--accent); margin-left: 16px; padding-left: 16px; border-left: 1px solid rgba(242,239,233,.35); line-height: 1.6; margin-right: -.42em; }
.nav-links { display: flex; align-items: center; gap: 36px; font-size: 14px; }
.nav-links a { opacity: .85; transition: opacity .2s, color .2s; }
.nav-links a:hover { opacity: 1; color: var(--accent); }
.nav-cta { border: 1px solid rgba(255,255,255,.35); padding: 10px 20px; border-radius: 100px; opacity: 1 !important; }
.nav-cta:hover { background: var(--ink); color: var(--bg) !important; }
.burger { display: none; width: 32px; height: 22px; position: relative; z-index: 60; }
.burger span { position: absolute; left: 0; width: 100%; height: 2px; background: var(--ink); transition: .3s; }
.burger span:first-child { top: 5px; } .burger span:last-child { bottom: 5px; }
.burger.open span:first-child { top: 10px; transform: rotate(45deg); }
.burger.open span:last-child { bottom: 10px; transform: rotate(-45deg); }

/* HERO */
.hero { position: relative; height: 100vh; min-height: 640px; overflow: hidden; display: flex; align-items: flex-end; }
.hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1.6s ease, transform 7s ease-out; }
.hero-slides img.active { opacity: 1; transform: scale(1); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.05) 35%, rgba(0,0,0,.25) 60%, rgba(11,11,10,.95) 100%); }
.hero-content { position: relative; z-index: 2; padding: 0 var(--pad) clamp(90px, 12vh, 140px); max-width: 1100px; }
.hero h1 { font-size: clamp(46px, 8.4vw, 128px); margin-bottom: 28px; }
.hero-sub { font-size: clamp(16px, 1.4vw, 19px); color: rgba(242,239,233,.82); max-width: 560px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { position: absolute; right: var(--pad); bottom: clamp(90px, 12vh, 140px); z-index: 2; display: flex; align-items: center; gap: 16px; font-size: 12px; letter-spacing: .15em; color: rgba(255,255,255,.75); }
.hero-bar { width: 120px; height: 1px; background: rgba(255,255,255,.25); overflow: hidden; }
.hero-bar i { display: block; height: 100%; width: 0; background: var(--accent); }
.hero-bar i.run { animation: bar 6s linear forwards; }
@keyframes bar { to { width: 100%; } }

/* MARQUEE */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 26px 0; }
.marquee-track { display: flex; gap: 40px; width: max-content; animation: marquee 32s linear infinite; font-size: clamp(28px, 4vw, 54px); font-weight: 500; letter-spacing: -.02em; white-space: nowrap; align-items: center; }
.marquee-track span:nth-child(4n+3) { font-family: var(--serif); font-style: italic; font-weight: 400; }
.marquee-track b { color: var(--accent); font-size: .5em; font-weight: 400; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* INTRO */
.intro { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.intro h2 { font-size: clamp(32px, 3.8vw, 56px); margin-bottom: 32px; }
.intro-text > p:not(.eyebrow) { color: var(--muted); font-size: 17px; max-width: 580px; }
.stats { display: flex; gap: clamp(28px, 5vw, 70px); margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--line); }
.stats strong { display: block; font-size: clamp(40px, 4.5vw, 64px); font-weight: 500; line-height: 1; letter-spacing: -.03em; }
.stats strong::after { content: "+"; color: var(--accent); }
.stats span { font-size: 13px; color: var(--muted); }
.intro-visual { position: relative; aspect-ratio: 4/5; }
.intro-visual img { position: absolute; object-fit: cover; border-radius: 4px; }
.intro-visual img { inset: 0; width: 100%; height: 100%; object-position: 82% center; }

/* FEATURED */
.feat-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(120px, 14vw, 210px); gap: clamp(10px, 1.4vw, 20px); }
.feat { position: relative; overflow: hidden; border-radius: 4px; cursor: zoom-in; background: var(--bg-2); }
.feat img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1), filter .6s; }
.feat:hover img { transform: scale(1.06); }
.feat figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 22px 20px; background: linear-gradient(transparent, rgba(0,0,0,.75)); font-size: 15px; font-weight: 500; transform: translateY(12px); opacity: 0; transition: .5s; }
.feat figcaption span { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.feat:hover figcaption { transform: none; opacity: 1; }
.f1 { grid-column: 1 / 8; grid-row: span 3; }
.f1 img { object-position: center 12%; } /* garder le visage entier */
.f2 { grid-column: 8 / 13; grid-row: span 4; }
.f3 { grid-column: 1 / 5; grid-row: span 2; }
.f4 { grid-column: 5 / 8; grid-row: span 2; }
.f5 { grid-column: 8 / 13; grid-row: span 1; }

/* SERVICES */
.services { position: relative; background: var(--bg-2); }
.svc-list { border-top: 1px solid var(--line); position: relative; z-index: 2; }
.svc { display: grid; grid-template-columns: 80px 1fr 1fr; gap: 30px; align-items: baseline; padding: 36px 0; border-bottom: 1px solid var(--line); cursor: default; transition: padding .4s; }
.svc-n { font-size: 13px; color: var(--muted); letter-spacing: .1em; }
.svc h3 { font-size: clamp(26px, 3.2vw, 46px); font-weight: 500; letter-spacing: -.02em; line-height: 1.1; transition: color .3s, transform .4s; }
.svc p { color: var(--muted); max-width: 440px; }
.svc:hover h3 { color: var(--accent); transform: translateX(10px); }
.svc-preview { position: fixed; top: 0; left: 0; width: 300px; aspect-ratio: 4/3; pointer-events: none; z-index: 1; opacity: 0; transform: translate(-50%, -50%) scale(.85); transition: opacity .3s, transform .3s; border-radius: 4px; overflow: hidden; }
.svc-preview.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.svc-preview img { width: 100%; height: 100%; object-fit: cover; }

/* PORTFOLIO */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button { padding: 10px 18px; border: 1px solid var(--line); border-radius: 100px; font-size: 13px; color: var(--muted); transition: .25s; }
.filters button:hover { color: var(--ink); border-color: rgba(255,255,255,.4); }
.filters button.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.masonry { columns: 4 260px; column-gap: clamp(10px, 1.2vw, 16px); }
.tile { break-inside: avoid; margin-bottom: clamp(10px, 1.2vw, 16px); overflow: hidden; border-radius: 3px; cursor: zoom-in; background: var(--bg-2); position: relative; animation: fadeUp .7s both; }
.tile img { width: 100%; height: auto; transition: transform 1s cubic-bezier(.2,.7,.2,1), opacity .5s; }
.tile:hover img { transform: scale(1.04); }
.tile::after { content: attr(data-label); position: absolute; left: 14px; bottom: 12px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; opacity: 0; transition: .3s; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.tile:hover::after { opacity: 1; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } }

/* PROCESS */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.steps li { background: var(--bg); padding: clamp(28px, 3vw, 44px); min-height: 280px; display: flex; flex-direction: column; }
.steps span { font-family: var(--serif); font-style: italic; font-size: 44px; color: var(--accent); line-height: 1; margin-bottom: auto; }
.steps h3 { font-size: 22px; font-weight: 600; margin: 40px 0 10px; }
.steps p { color: var(--muted); font-size: 15px; }

/* CONTACT */
.contact { position: relative; overflow: hidden; }
.contact-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,11,10,.95) 0%, rgba(11,11,10,.75) 55%, rgba(11,11,10,.55) 100%); }
.contact-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.contact-text > p:not(.eyebrow) { color: rgba(242,239,233,.75); margin: 26px 0 40px; max-width: 440px; font-size: 17px; }
.contact-lines { list-style: none; border-top: 1px solid var(--line); }
.contact-lines li { display: flex; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.contact-lines span { color: var(--muted); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.contact-lines a:hover { color: var(--accent); }
.contact-form { background: rgba(20,20,18,.7); backdrop-filter: blur(16px); border: 1px solid var(--line); border-radius: 6px; padding: clamp(26px, 3vw, 44px); display: grid; gap: 20px; }
.contact-form label { display: grid; gap: 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea { font: inherit; font-size: 16px; text-transform: none; letter-spacing: 0; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.25); padding: 10px 0; outline: none; transition: border-color .3s; resize: vertical; }
.contact-form select option { background: var(--bg-2); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--accent); }
.contact-form .btn { justify-self: start; margin-top: 8px; }

/* FOOTER */
.footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 36px var(--pad); border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* LIGHTBOX */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(6,6,5,.96); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .35s; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 88vw; max-height: 86vh; object-fit: contain; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lb-close, .lb-prev, .lb-next { position: absolute; color: var(--ink); font-size: 40px; line-height: 1; width: 56px; height: 56px; border-radius: 50%; transition: background .2s; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.1); }
.lb-close { top: 20px; right: 24px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); font-size: 52px; }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); font-size: 52px; }
.lb-count { position: absolute; bottom: 24px; font-size: 12px; letter-spacing: .2em; color: var(--muted); }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal:nth-child(2) { transition-delay: .12s; }
.hero .reveal:nth-child(3) { transition-delay: .24s; }
.hero .reveal:nth-child(4) { transition-delay: .36s; }

/* RESPONSIVE */
@media (max-width: 960px) {
  .intro, .contact-inner { grid-template-columns: 1fr; }
  .intro-visual { max-width: 520px; }
  .svc { grid-template-columns: 50px 1fr; }
  .svc p { grid-column: 2; }
  .svc-preview { display: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .feat-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 46vw; }
  .f1, .f2, .f3, .f4, .f5 { grid-column: auto; grid-row: auto; }
  .f1 { grid-column: 1 / -1; }
  .f4, .f5 { grid-column: 1 / -1; }
  .feat figcaption { opacity: 1; transform: none; }
}
@media (max-width: 760px) {
  .burger { display: block; }
  .nav-links { position: fixed; inset: 0; background: var(--bg); flex-direction: column; justify-content: center; gap: 28px; font-size: 26px; opacity: 0; pointer-events: none; transition: opacity .35s; }
  .nav-links.open { opacity: 1; pointer-events: auto; }
  .hero-meta { display: none; }
  .steps { grid-template-columns: 1fr; }
  .steps li { min-height: 0; }
  .stats { gap: 24px; }
  .masonry { columns: 2; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Hero legibility over bright photos */
.hero em { color: var(--ink); }
.hero .eyebrow { color: rgba(255,255,255,.85); }
.hero-shade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 55%, transparent 100%); }

/* CLIENTS — logos kept in their original colours on light tiles */
.clients { padding-top: 0; }
.client-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.client-grid li { background: #ffffff; border-radius: 6px; min-height: 150px; display: flex; align-items: center; justify-content: center; padding: 26px 22px; text-align: center; transition: transform .35s, box-shadow .35s; }
.client-grid li:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.45); }
.client-grid img { width: 100%; max-height: 130px; object-fit: contain; }
.client-grid span { font-weight: 800; font-size: 16px; letter-spacing: .08em; text-transform: uppercase; line-height: 1.25; color: #1b1e33; }
.client-grid span.serif { font-family: var(--serif); font-weight: 400; font-size: 34px; letter-spacing: .01em; text-transform: none; }
@media (max-width: 760px) {
  .client-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .client-grid li { min-height: 130px; padding: 12px; }
  .client-grid img { max-height: 100px; }
  .client-grid span { font-size: 13px; }
}
/* Desktop : rangées de 7, logos agrandis, dernière rangée centrée */
@media (min-width: 1100px) {
  .client-grid { display: flex; flex-wrap: wrap; justify-content: center; }
  .client-grid li { flex: 0 0 calc((100% - 6 * 14px) / 7); min-height: 180px; padding: 18px; }
  .client-grid { gap: 14px; }
}
/* Logo blanc d'origine : case sombre pour le garder tel quel */
.client-grid li.dark-tile { background: #1b1b19; border: 1px solid var(--line); }

/* ===== PAGE VIDÉO ===== */
.nav-links a.active { color: var(--accent); opacity: 1; }
.page-head { padding-top: clamp(150px, 18vw, 230px); padding-bottom: clamp(40px, 5vw, 70px); }
.page-head h1 { font-size: clamp(44px, 7vw, 104px); margin-bottom: 28px; }
.page-sub { color: var(--muted); font-size: clamp(16px, 1.3vw, 19px); max-width: 620px; }
.videos { padding-top: 0; }
.videos .filters { margin-bottom: 40px; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: clamp(16px, 2vw, 28px); }
.vcard { cursor: pointer; outline: none; animation: fadeUp .7s both; }
.vcard.soon { cursor: default; }
.vthumb { position: relative; aspect-ratio: 16/9; overflow: hidden; border-radius: 4px; background: var(--bg-2); }
.vthumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1), filter .5s; }
.vthumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0,0,0,.55)); }
.vcard:hover .vthumb img, .vcard:focus-visible .vthumb img { transform: scale(1.05); }
.vcard.soon .vthumb img { filter: grayscale(.6) brightness(.55); }
.vplay { position: absolute; z-index: 2; left: 50%; top: 50%; width: 74px; height: 74px; margin: -37px 0 0 -37px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); backdrop-filter: blur(6px); background: rgba(0,0,0,.25); transition: background .3s, transform .3s, border-color .3s; }
.vplay::before { content: ""; position: absolute; left: 30px; top: 24px; border-left: 20px solid #fff; border-top: 13px solid transparent; border-bottom: 13px solid transparent; }
.vcard:not(.soon):hover .vplay { background: var(--accent); border-color: var(--accent); transform: scale(1.08); }
.vcard.soon .vplay { opacity: .45; }
.vsoon { position: absolute; z-index: 2; left: 16px; top: 16px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; padding: 7px 12px; border-radius: 100px; background: rgba(11,11,10,.75); color: var(--accent); border: 1px solid rgba(233,162,76,.4); }
.vmeta { padding: 18px 2px 6px; }
.vcat { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.vmeta h3 { font-size: 21px; font-weight: 600; letter-spacing: -.01em; margin: 6px 0 2px; }
.vmeta p { color: var(--muted); font-size: 14px; }
.video-empty { color: var(--muted); padding: 40px 0; }
.video-cta { text-align: center; border-top: 1px solid var(--line); }
.video-cta h2 { margin-bottom: 36px; }
.player-frame { width: min(92vw, 1200px); aspect-ratio: 16/9; background: #000; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.player-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 760px) {
  .video-grid { grid-template-columns: 1fr; }
  .nav-links a.active { color: var(--accent); }
}
.svc-link { color: var(--accent); white-space: nowrap; } .svc-link:hover { text-decoration: underline; }
/* Inouchka : logo blanc inversé en noir sur case blanche (demande client) */
.client-grid li.invert-logo img { filter: brightness(0); }

/* ===== FAQ ===== */
.faq-list { border-top: 1px solid var(--line); max-width: 980px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; font-size: clamp(18px, 2vw, 24px); font-weight: 500; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-family: var(--serif); font-size: 32px; line-height: 1; color: var(--accent); transition: transform .3s; flex: none; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { color: var(--muted); font-size: 16px; line-height: 1.7; max-width: 760px; padding-bottom: 26px; margin-top: -6px; }

/* ===== SECTEURS ===== */
.sector-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.5vw, 36px); }
.sector { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding-top: 24px; }
.sector img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 4px; margin-bottom: 26px; }
.sector h3 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; letter-spacing: -.01em; margin-bottom: 14px; }
.sector p { color: var(--muted); font-size: 15.5px; line-height: 1.7; margin-bottom: 20px; }
.sector ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.sector li { font-size: 12.5px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 100px; color: var(--ink); }
@media (max-width: 900px) { .sector-grid { grid-template-columns: 1fr; gap: 48px; } }
.sector img[src*="commercial-04"] { object-position: center 12%; }

/* Hero : la hauteur s'adapte au contenu pour ne jamais passer sous le logo */
.hero { height: auto; min-height: max(100vh, 640px); padding-top: 120px; }
@media (max-width: 760px) { .hero { min-height: 100svh; padding-top: 110px; } }
