/* ===== AR production — style sobre, noir & blanc ===== */

:root {
  --bg: #0a0a0a;
  --bg-alt: #111111;
  --fg: #f5f5f2;
  --fg-dim: #a3a3a0;
  --border: #2a2a2a;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --max-width: 1180px;
  --pad: clamp(20px, 5vw, 64px);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 2.5rem;
}

section {
  padding: clamp(64px, 10vw, 140px) var(--pad);
  max-width: var(--max-width);
  margin: 0 auto;
}

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.75rem;
  color: var(--fg-dim);
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-block;
  border: 1px solid var(--fg);
  color: var(--fg);
  padding: 0.9em 2em;
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: background 0.25s ease, color 0.25s ease;
  cursor: pointer;
  background: transparent;
}

.btn:hover {
  background: var(--fg);
  color: var(--bg);
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.logo img { height: 38px; color: var(--fg); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.header-contact-btn {
  padding: 0.6em 1.4em;
  font-size: 0.85rem;
}

.main-nav {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: min(320px, 85vw);
  background: var(--bg-alt);
  border-left: 1px solid var(--border);
  z-index: 110;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  padding: var(--pad);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  transform: translateX(100%);
  transition: transform 0.35s ease;
}

.main-nav.is-open { transform: translateX(0); }

.main-nav a { opacity: 0.85; transition: opacity 0.2s ease; }
.main-nav a:hover { opacity: 1; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 120;
  position: relative;
}

.nav-toggle span {
  width: 22px;
  height: 1px;
  background: var(--fg);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */

.btn-solid {
  background: var(--fg);
  color: var(--bg);
  border: 1px solid var(--fg);
}

.btn-solid:hover {
  background: transparent;
  color: var(--fg);
}

.btn-outline-light {
  border: 1px solid rgba(245,245,242,0.6);
  color: var(--fg);
  background: transparent;
  display: inline-block;
  padding: 0.9em 2em;
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.btn-outline-light:hover {
  background: rgba(245,245,242,0.1);
  border-color: var(--fg);
}

/* ---------- Hero (full-bleed) ---------- */

.hero-full {
  max-width: none;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 var(--pad);
  overflow: hidden;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.75) 0%, rgba(10,10,10,0.55) 40%, rgba(10,10,10,0.85) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding-top: 100px;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-sub {
  color: rgba(245,245,242,0.8);
  max-width: 50ch;
  margin-bottom: 2.2rem;
  font-size: 1.05rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-play {
  position: absolute;
  right: clamp(24px, 6vw, 100px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 1px solid rgba(245,245,242,0.7);
  background: rgba(10,10,10,0.35);
  color: var(--fg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero-play:hover {
  background: rgba(245,245,242,0.15);
  transform: translateY(-50%) scale(1.05);
}

.play-icon { margin-left: 4px; }

.play-bracket {
  position: absolute;
  left: 50%;
  width: 1px;
  height: 26px;
  background: rgba(245,245,242,0.5);
  transform: translateX(-50%);
}

.play-bracket-top { top: -40px; }
.play-bracket-bottom { bottom: -40px; }

.scroll-indicator {
  position: absolute;
  left: var(--pad);
  bottom: 40px;
  z-index: 2;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: rgba(245,245,242,0.6);
}

/* ---------- Video modal (lightbox) ---------- */

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-modal[hidden] { display: none; }

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.9);
}

.video-modal-content {
  position: relative;
  z-index: 1;
  width: min(420px, 88vw);
}

.video-modal-content video {
  width: 100%;
  border: 1px solid var(--border);
}

.video-modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: none;
  color: var(--fg);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 700px) {
  .hero-full {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-bottom: 60px;
    gap: 2.5rem;
  }

  .hero-content {
    padding-top: 90px;
  }

  .play-bracket { display: none; }

  .hero-play {
    position: static;
    align-self: center;
    width: 64px;
    height: 64px;
    transform: none;
  }

  .hero-play:hover {
    transform: scale(1.05);
  }

  .scroll-indicator { display: none; }
}

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.service-card {
  background: var(--bg);
  padding: clamp(28px, 4vw, 48px);
}

.service-num {
  display: block;
  font-family: var(--font-display);
  color: var(--fg-dim);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.9rem;
}

.service-card p {
  color: var(--fg-dim);
  font-size: 0.95rem;
}

/* ---------- Projets ---------- */

.projets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 32px);
  margin-bottom: 3rem;
}

.projets-cta {
  display: block;
  width: fit-content;
  margin: 0 auto;
}

.projet-card {
  border: 1px solid var(--border);
}

.projet-card video {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
  background: #000;
}

.projet-card figcaption {
  padding: 1rem 1.2rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-top: 1px solid var(--border);
}

/* ---------- À propos ---------- */

.apropos {
  background: var(--bg-alt);
  max-width: none;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.apropos-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}

.apropos p {
  color: var(--fg-dim);
  font-size: 1.05rem;
}

/* ---------- Contact ---------- */

.contact-inner {
  max-width: 620px;
  margin: 0 auto;
  text-align: left;
}

.contact p {
  color: var(--fg-dim);
  margin-bottom: 2.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-row label {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.form-row input,
.form-row textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.6em 0;
  resize: vertical;
  transition: border-color 0.2s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-bottom-color: var(--fg);
}

.contact-form .btn {
  align-self: flex-start;
  margin-top: 0.5rem;
}

.form-status {
  font-size: 0.9rem;
  color: var(--fg-dim);
  min-height: 1.2em;
}

.form-status.success { color: var(--fg); }
.form-status.error { color: #d98c8c; }

.contact-direct {
  margin-top: 2.5rem;
  font-size: 0.9rem;
}

.contact-direct a {
  border-bottom: 1px solid var(--fg-dim);
}

/* ---------- Footer ---------- */

.site-footer {
  text-align: center;
  padding: 2.5rem var(--pad);
  color: var(--fg-dim);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
}

.footer-social {
  margin-top: 0.6rem;
}

.footer-social a {
  border-bottom: 1px solid var(--fg-dim);
}

.footer-social a:hover {
  color: var(--fg);
  border-bottom-color: var(--fg);
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .services-grid,
  .projets-grid {
    grid-template-columns: 1fr;
  }

  .header-contact-btn {
    padding: 0.5em 1em;
    font-size: 0.78rem;
  }
}

@media (max-width: 1080px) and (min-width: 861px) {
  .projets-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Page Projets (dédiée) ---------- */

.page-hero {
  padding-top: calc(120px + var(--pad));
  padding-bottom: 2rem;
  max-width: var(--max-width);
}

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 1rem;
}

.page-hero p {
  color: var(--fg-dim);
  max-width: 60ch;
}

.projets-full {
  max-width: var(--max-width);
  padding-top: 1rem;
}

.projets-full-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(48px, 6vw, 90px);
}

.projet-full-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: clamp(48px, 6vw, 90px);
}

.projet-full-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.projet-full-card:nth-child(even) .projet-full-video {
  order: 2;
}

.projet-full-video {
  border: 1px solid var(--border);
  overflow: hidden;
  background: #000;
}

.projet-full-video video {
  width: 100%;
  max-height: 78vh;
  display: block;
  background: #000;
}

.projet-full-info .service-num {
  display: block;
  font-family: var(--font-display);
  color: var(--fg-dim);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.projet-full-info h2 {
  font-size: 1.6rem;
  margin-bottom: 0.9rem;
}

.projet-full-info p {
  color: var(--fg-dim);
}

@media (max-width: 780px) {
  .projet-full-card,
  .projet-full-card:nth-child(even) .projet-full-video {
    grid-template-columns: 1fr;
    order: initial;
  }

  .projet-full-card {
    grid-template-columns: 1fr;
  }
}
