/* HQ Production — design system
   Direction : sobre, lumineux, première personne, motion subtil. */

:root {
  --bg: #fafaf7;
  --bg-alt: #f1efe8;
  --text: #0a0a0a;
  --text-muted: #6b6b66;
  --accent: #d24a00;
  --accent-soft: #f5e9dd;
  --border: #e8e5dc;
  --max-width: 1160px;
  --radius: 14px;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

/* ── Layout helpers ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 24px; }
.section--alt { background: var(--bg-alt); }
.section__lede { color: var(--text-muted); font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 16px; }
.section__title { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 16px; }
.section__intro { color: var(--text-muted); max-width: 620px; font-size: 1.05rem; }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__logo { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.nav__logo span { color: var(--accent); }
.nav__links { display: flex; gap: 28px; list-style: none; font-size: 0.95rem; }
.nav__links a { color: var(--text-muted); }
.nav__links a:hover { color: var(--text); }
.nav__cta {
  padding: 10px 20px; border-radius: 999px;
  background: var(--text); color: var(--bg);
  font-weight: 500; font-size: 0.92rem;
  transition: background 0.2s;
}
.nav__cta:hover { background: var(--accent); color: var(--bg); }

/* ── Hero ── */
.hero { padding: 120px 24px 96px; }
.hero__inner { max-width: var(--max-width); margin: 0 auto; }
.hero__eyebrow {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 28px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 18ch;
  margin-bottom: 24px;
}
.hero__title em { font-style: normal; color: var(--accent); }
.hero__sub { font-size: 1.15rem; color: var(--text-muted); max-width: 56ch; margin-bottom: 36px; }
.hero__buttons { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px;
  font-size: 0.95rem; font-weight: 500;
  transition: all 0.2s; cursor: pointer; border: 1px solid transparent;
}
.btn--primary { background: var(--text); color: var(--bg); }
.btn--primary:hover { background: var(--accent); color: var(--bg); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--text); color: var(--text); }

/* ── Services grid ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 48px;
}
.service-card {
  padding: 28px 24px; border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.service-card:hover { transform: translateY(-2px); border-color: var(--text); }
.service-card__title { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.service-card__desc { color: var(--text-muted); font-size: 0.95rem; }

/* ── Network grid ── */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.person {
  text-align: left;
}
.person__avatar {
  aspect-ratio: 4 / 5; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--bg-alt), var(--accent-soft));
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; font-weight: 700; color: var(--text-muted);
  margin-bottom: 14px;
  overflow: hidden;
}
.person__name { font-size: 1rem; font-weight: 600; }
.person__role { color: var(--text-muted); font-size: 0.9rem; }

/* ── Cases grid ── */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 48px;
}
.case {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}
.case__media {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--bg-alt), var(--accent-soft));
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.case__body { padding: 18px 20px; }
.case__title { font-weight: 600; margin-bottom: 4px; }
.case__client { color: var(--text-muted); font-size: 0.9rem; }

/* ── Contact ── */
.contact-card {
  margin-top: 48px;
  padding: 48px 32px;
  border-radius: var(--radius);
  background: var(--text); color: var(--bg);
  display: grid; gap: 24px; align-items: center;
  grid-template-columns: 1fr;
}
.contact-card__title { font-size: 1.6rem; font-weight: 600; }
.contact-card__title em { color: var(--accent); font-style: normal; }
.contact-card a { color: var(--bg); border-bottom: 1px solid rgba(255,255,255,0.3); padding-bottom: 2px; }
.contact-card a:hover { color: var(--accent); }
.contact-card__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Footer ── */
.footer { padding: 48px 24px 32px; border-top: 1px solid var(--border); margin-top: 64px; }
.footer__inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer__logo { font-weight: 700; }
.footer__links { display: flex; gap: 24px; list-style: none; font-size: 0.92rem; color: var(--text-muted); }
.footer__copy { width: 100%; text-align: center; color: var(--text-muted); font-size: 0.82rem; padding-top: 16px; border-top: 1px solid var(--border); margin-top: 24px; }

/* ── Legal pages ── */
.legal { padding: 80px 24px; }
.legal__container { max-width: 760px; margin: 0 auto; }
.legal__breadcrumb { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 24px; }
.legal__breadcrumb a:hover { color: var(--accent); }
.legal h1 { font-size: 2.2rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 12px; }
.legal__intro { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 40px; }
.legal__content h2 { font-size: 1.15rem; font-weight: 600; margin-top: 36px; margin-bottom: 12px; }
.legal__content p, .legal__content ul { margin-bottom: 16px; color: var(--text); }
.legal__content ul { padding-left: 22px; }
.legal__content li { margin-bottom: 6px; }
.legal__content a { color: var(--accent); }
.legal__content a:hover { text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 720px) {
  .nav__links { display: none; }
  .section { padding: 64px 24px; }
  .hero { padding: 80px 24px 64px; }
  .contact-card { padding: 32px 24px; }
}

/* ──────────────────────────────────────────────
   Motion design — subtil, type 27e Caractère
   ────────────────────────────────────────────── */

/* Hero entrance ── slide up with stagger */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero__eyebrow,
.hero__title,
.hero__sub,
.hero__buttons {
  opacity: 0;
  animation: slideUp 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.hero__eyebrow { animation-delay: 0.1s; }
.hero__title   { animation-delay: 0.25s; }
.hero__sub     { animation-delay: 0.4s; }
.hero__buttons { animation-delay: 0.55s; }

/* Hero accent breathes — gentle pulse on the orange word */
@keyframes hueBreath {
  0%, 100% { color: var(--accent); }
  50%      { color: #ff5e0e; }
}
.hero__title em {
  animation: hueBreath 4s ease-in-out infinite;
  animation-delay: 1.2s;
}

/* Marquee ticker — disciplines that scroll */
.marquee {
  background: var(--text);
  color: var(--bg);
  padding: 20px 0;
  overflow: hidden;
  position: relative;
}
.marquee::before,
.marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0;   background: linear-gradient(90deg, var(--text), transparent); }
.marquee::after  { right: 0;  background: linear-gradient(270deg, var(--text), transparent); }
.marquee__track {
  display: inline-flex; gap: 56px; align-items: center;
  white-space: nowrap;
  animation: marqueeScroll 38s linear infinite;
  padding-right: 56px;
}
.marquee__item {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  font-weight: 600; letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: 56px;
}
.marquee__item::after {
  content: ""; display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}
.marquee__item:last-child::after { display: none; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Scroll reveal — applied via JS adding .is-visible */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal--stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.reveal--stagger.is-visible > *:nth-child(2) { transition-delay: 0.12s; opacity: 1; transform: translateY(0); }
.reveal--stagger.is-visible > *:nth-child(3) { transition-delay: 0.19s; opacity: 1; transform: translateY(0); }
.reveal--stagger.is-visible > *:nth-child(4) { transition-delay: 0.26s; opacity: 1; transform: translateY(0); }
.reveal--stagger.is-visible > *:nth-child(5) { transition-delay: 0.33s; opacity: 1; transform: translateY(0); }
.reveal--stagger.is-visible > *:nth-child(6) { transition-delay: 0.40s; opacity: 1; transform: translateY(0); }

/* Service cards — accent line draws on hover */
.service-card {
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  height: 2px; width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.service-card:hover::after { transform: scaleX(1); }
.service-card { transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px -16px rgba(0,0,0,0.15); }

/* Person avatars — gentle hover */
.person { transition: transform 0.3s ease; cursor: default; }
.person:hover { transform: translateY(-4px); }
.person__avatar { transition: background 0.4s, color 0.3s, transform 0.4s; }
.person:hover .person__avatar {
  background: var(--text);
  color: var(--accent);
  transform: rotate(-2deg);
}

/* Cases hover — soft elevate + accent edge */
.case {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.case:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px -20px rgba(0,0,0,0.2);
}

/* Buttons motion */
.btn { transition: background 0.2s, color 0.2s, transform 0.15s ease; }
.btn:active { transform: scale(0.97); }
.btn--primary:hover { background: var(--accent); }

/* Nav CTA — hint that something happens */
.nav__cta { transition: background 0.2s, color 0.2s, transform 0.15s; }
.nav__cta:active { transform: scale(0.97); }

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .hero__eyebrow,
  .hero__title,
  .hero__sub,
  .hero__buttons,
  .reveal,
  .reveal--stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }
  .marquee__track { animation: none; }
}
