/* Tomuss Production — shared system */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Oswald:wght@300;400;500;600&family=JetBrains+Mono:wght@300;400;500&display=swap');

:root {
  --bg: #0F0F0F;
  --bg-2: #161616;
  --surface: #1A1A1A;
  --fg: #F4EFE6;
  --fg-dim: rgba(244, 239, 230, 0.62);
  --fg-faint: rgba(244, 239, 230, 0.34);
  --line: rgba(244, 239, 230, 0.10);
  --line-strong: rgba(244, 239, 230, 0.22);
  --accent: #1fa5ff;
  --accent-dim: rgba(31, 165, 255, 0.6);

  --f-display: 'Bebas Neue', 'Oswald', 'Arial Narrow', sans-serif;
  --f-body: 'Oswald', 'Arial Narrow', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --max: 1640px;
  --gutter: clamp(24px, 4vw, 56px);

  --ease: cubic-bezier(.22, 1, .36, 1);
}

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

html, body {
  background: var(--bg) url("../uploads/bg-hero.jpg") center/cover fixed no-repeat;
  color: var(--fg);
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  background-color: transparent;
  position: relative;
}

/* Subtle film grain overlay on every page */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: .055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}

/* Subtle logo watermark behind content */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  transform: rotate(8deg);
  opacity: .08;
  filter: blur(2px);
  background-image:
    radial-gradient(circle at center, rgba(255,255,255,.05), transparent 32%),
    url("../uploads/Plan de travail 5tomuss.png");
  background-repeat: no-repeat, no-repeat;
  background-position: center center, center center;
  background-size: cover, 40%;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img { display: block; max-width: 100%; }

/* Typography utilities */
.display {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: .85;
  letter-spacing: -.01em;
}
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--fg-dim);
}
.mono { font-family: var(--f-mono); font-size: 13px; letter-spacing: .04em; }

/* Minimum readable text size */
.hero-meta,
.hero-tag,
.hero-cta .label,
.nav-links,
.nav-cta,
.footer h4,
.footer-bar,
.thumb-frame .ph-label,
.thumb-frame .duration,
.thumb-frame .tag,
.thumb-meta .info p,
.filter .count,
.field label,
.ptype,
.submit,
.submit-bar .terms,
.offer .price,
.offer .idx,
.contact-left .channels a span,
.id-card dt,
.portrait .corner,
.portrait .corner2,
.approach-row .step,
.num-cell .idx,
.gallery-intro .meta-line,
.slide-tag,
.slide-stats,
.slide-cta,
.yt-thumb-ph,
.yt-info-sub,
.showcase-num,
.showcase-hint,
.stat .lbl,
.service-row .idx,
.big-cta .pre,
.big-cta .pill {
  font-size: 13px !important;
}

/* Header / nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  mix-blend-mode: normal;
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav.solid {
  background: linear-gradient(180deg, rgba(15,15,15,.85), rgba(15,15,15,0));
  mix-blend-mode: normal;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-size: 22px;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--fg);
  z-index: 200;
  position: relative;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.9));
}
.logo-img {
  margin-top: -50px;
  height: 160px;
  width: auto;
  display: block;
}
.logo .mark {
  width: 32px; height: 32px;
  border: 1px solid var(--fg);
  display: grid; place-items: center;
  position: relative;
  font-family: var(--f-display);
  font-size: 16px;
}
.logo .mark::after {
  content: '';
  position: absolute;
  right: -1px; bottom: -1px;
  width: 8px; height: 8px;
  background: var(--accent);
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  font-family: var(--f-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .22em;
}
.nav-links a {
  position: relative;
  padding: 6px 0;
  color: var(--fg);
  opacity: .8;
  font-weight: 600;
  transition: color .3s var(--ease), opacity .3s var(--ease);
}
.nav-links a:hover, .nav-links a.active {
  opacity: 1;
  color: var(--accent);
}
.nav-links a.active::before {
  content: '';
  position: absolute;
  top: 50%; left: -14px;
  width: 6px; height: 6px;
  background: var(--accent);
  transform: translateY(-50%);
}

.nav-cta {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .22em;
  padding: 12px 22px;
  border: 1px solid var(--fg);
  color: var(--fg);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.nav-cta:hover { background: var(--fg); color: var(--bg); }

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 80px var(--gutter) 36px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  position: relative;
}
.footer h4 {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--fg-dim);
  margin-bottom: 18px;
}
.footer .big {
  font-family: var(--f-display);
  font-size: clamp(48px, 6vw, 96px);
  line-height: .9;
  text-transform: uppercase;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font-family: var(--f-body); font-size: 15px; color: var(--fg-dim); transition: color .25s; }
.footer ul a:hover { color: var(--fg); }
.footer-bar {
  grid-column: 1 / -1;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--fg-faint);
}

/* Page intro overlay (cinematic curtain) */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
  pointer-events: none;
  transform-origin: top;
  animation: curtain 1s var(--ease) forwards;
}
@keyframes curtain {
  0% { transform: scaleY(1); }
  100% { transform: scaleY(0); }
}

/* Generic fade-up on scroll */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.fade-up.in { opacity: 1; transform: translateY(0); }

/* Project thumb (used on landing + projects) */
.thumb {
  position: relative;
  display: block;
  cursor: pointer;
  user-select: none;
  isolation: isolate;
}
.thumb-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: border-color .35s var(--ease), border-width .35s var(--ease);
}
.thumb-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.thumb:hover .thumb-frame {
  border-color: var(--accent);
  border-width: 5px;
}
.thumb-frame::before {
  z-index: 0;
  /* striped placeholder */
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,.025) 0 2px,
      transparent 2px 14px
    ),
    radial-gradient(120% 80% at 30% 20%, #2a2a2a 0%, #141414 60%, #0c0c0c 100%);
}
.thumb-frame .ph-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.thumb-frame .duration {
  position: absolute;
  right: 10px; bottom: 10px;
  background: rgba(0,0,0,.78);
  color: var(--fg);
  font-family: var(--f-mono);
  font-size: 12px;
  padding: 4px 8px;
  letter-spacing: .04em;
}
.thumb-frame .play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.thumb:hover .thumb-frame .play { opacity: 1; }
.thumb-frame .play span {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  display: grid; place-items: center;
  font-size: 20px;
}
.thumb-frame .tag {
  position: absolute;
  top: 10px; left: 10px;
  font-family: var(--f-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .2em;
  background: rgba(15,15,15,.75);
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
}
.thumb-meta {
  display: flex;
  gap: 12px;
  padding-top: 14px;
}
.thumb-meta .avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #2a2a2a, #444);
  flex-shrink: 0;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
}
.thumb-meta .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.thumb-meta .info { min-width: 0; }
.thumb-meta .info h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 19px;
  text-transform: uppercase;
  letter-spacing: .005em;
  line-height: 1.15;
  margin-bottom: 6px;
}
.thumb-meta .info p {
  font-family: var(--f-body);
  font-size: 14px;
  color: var(--fg-dim);
  font-weight: 300;
}
.thumb-meta .info p .sep { margin: 0 6px; color: var(--fg-faint); }

/* Section header */
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 0 var(--gutter);
  margin-bottom: 48px;
  gap: 32px;
}
.section-head h2 {
  font-family: var(--f-display);
  font-size: clamp(40px, 6vw, 80px);
  line-height: .9;
  text-transform: uppercase;
}
.section-head p {
  max-width: 420px;
  color: var(--fg-dim);
  font-size: 18px;
  font-weight: 300;
}

/* Marquee / ticker */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
  padding: 18px 0;
  font-family: var(--f-display);
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.ticker-track {
  display: inline-flex;
  gap: 48px;
  animation: ticker 38s linear infinite;
}
.ticker-track span { display: inline-flex; align-items: center; gap: 48px; }
.ticker-track .dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Scrollbar (dark) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2a2a; }
::-webkit-scrollbar-thumb:hover { background: #3a3a3a; }

/* Selection */
::selection { background: var(--accent); color: var(--bg); }

/* ── NAVIGATION MOBILE ── */
.nav-end {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 200;
  position: relative;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--fg);
  transition: transform .35s var(--ease), opacity .25s;
  transform-origin: center;
}
.nav-toggle.open span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle.open span:last-child  { transform: translateY(-3.5px) rotate(-45deg); }

/* Drawer plein-écran */
.nav-drawer {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 95;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px var(--gutter) 60px;
  transform: translateX(100%);
  transition: transform .55s var(--ease);
  overflow-y: auto;
}
.nav-drawer.open { transform: translateX(0); }

.nav-drawer ul {
  list-style: none;
  border-top: 1px solid var(--line);
}
.nav-drawer ul li a {
  font-family: var(--f-display);
  font-size: clamp(44px, 12vw, 80px);
  text-transform: uppercase;
  color: var(--fg);
  opacity: .45;
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.05;
  transition: opacity .2s, color .2s, padding-left .3s var(--ease);
}
.nav-drawer ul li a:hover,
.nav-drawer ul li a.active { opacity: 1; color: var(--accent); padding-left: 16px; }

.nav-drawer-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  padding: 16px 28px;
  border: 1px solid var(--fg);
  font-family: var(--f-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--fg);
  width: fit-content;
  transition: background .3s, color .3s, border-color .3s;
}
.nav-drawer-cta:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  z-index: 94;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s;
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }

body.nav-open { overflow: hidden; }

/* Mobile collapse */
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .nav-toggle { display: flex; }
  .footer { grid-template-columns: 1fr 1fr; }
  .footer .big { font-size: 48px; }
}

/* Petits téléphones */
@media (max-width: 480px) {
  .footer { grid-template-columns: 1fr; }
  .footer .big { font-size: 36px; }
  .footer h4 { margin-top: 8px; }
}

/* ── CURSEUR PERSONNALISÉ — style Premiere Pro ── */
@media (hover: hover) and (pointer: fine) {
  body, a, button, input, textarea, select, label, [role="button"] {
    cursor: none !important;
  }
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
  opacity: 0;
}

/* Le point central + crosshair */
.cursor-dot {
  width: 5px;
  height: 5px;
  background: var(--accent);
  z-index: 10001;
  transform: translate(calc(var(--cx, -200px) - 50%), calc(var(--cy, -200px) - 50%));
  transition: background .15s, width .15s var(--ease), height .15s var(--ease), opacity .3s;
}
.cursor-dot::before,
.cursor-dot::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: rgba(31, 165, 255, .45);
}
.cursor-dot::before {
  width: 1px;
  height: 18px;
  transform: translate(-50%, -50%);
}
.cursor-dot::after {
  width: 18px;
  height: 1px;
  transform: translate(-50%, -50%);
}

/* L'anneau qui suit en retard */
.cursor-ring {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(31, 165, 255, .55);
  z-index: 10000;
  transform: translate(calc(var(--rx, -200px) - 50%), calc(var(--ry, -200px) - 50%));
  box-shadow: 0 0 8px rgba(31, 165, 255, .18);
  transition:
    width   .28s var(--ease),
    height  .28s var(--ease),
    border-color .28s,
    box-shadow   .28s,
    opacity .3s;
}

/* Hover sur éléments interactifs */
body.cursor-hover .cursor-dot {
  background: #fff;
  width: 7px;
  height: 7px;
}
body.cursor-hover .cursor-ring {
  width: 56px;
  height: 56px;
  border-color: var(--accent);
  box-shadow:
    0 0 0 0 rgba(31, 165, 255, .3),
    0 0 20px rgba(31, 165, 255, .4),
    0 0 40px rgba(31, 165, 255, .12),
    inset 0 0 10px rgba(31, 165, 255, .07);
}

/* Pulse au clic */
.cursor-ring.is-clicking {
  animation: cursorPulse .45s ease-out forwards;
}
@keyframes cursorPulse {
  0%   { box-shadow: 0 0 0 0px  rgba(31, 165, 255, .6), 0 0 8px rgba(31, 165, 255, .2); }
  100% { box-shadow: 0 0 0 22px rgba(31, 165, 255, 0),  0 0 8px rgba(31, 165, 255, .2); }
}

/* Désactivé sur mobile / touch */
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none !important; }
  body, a, button { cursor: auto !important; }
}
