/* =========================================================================
   BEE PRODUCTION — Héloïse · Vidéaste de mariage
   Système : Cormorant Garamond (display editorial) + Jost (labels) +
   Pinyon Script (signature). Base ivoire lumineuse, header sombre
   cinématographique, accent terracotta/argile.
   ========================================================================= */

:root {
  /* --- Palette claire (corps de page) --- */
  --bg:        oklch(0.973 0.008 78);   /* ivoire chaud */
  --bg-2:      oklch(0.945 0.012 72);   /* crème un ton plus profond */
  --ink:       oklch(0.285 0.014 58);   /* espresso doux, jamais noir pur */
  --ink-soft:  oklch(0.47 0.013 60);    /* texte secondaire */
  --ink-faint: oklch(0.62 0.012 62);    /* labels discrets */
  --line:      oklch(0.86 0.012 72);    /* filets fins */
  --line-soft: oklch(0.91 0.01 74);

  /* --- Sombre (header cinématographique / footer) --- */
  --dark:      oklch(0.185 0.012 52);
  --dark-2:    oklch(0.235 0.013 50);
  --on-dark:   oklch(0.95 0.01 80);
  --on-dark-soft: oklch(0.78 0.012 72);

  /* --- Accent (réglable via Tweaks) --- */
  --accent:        oklch(0.585 0.085 42);   /* terracotta / argile */
  --accent-deep:   oklch(0.50 0.082 40);
  --accent-soft:   oklch(0.74 0.055 48);
  --accent-tint:   oklch(0.95 0.018 50);
  --hero-film: 0.45;  /* opacité du voile sombre sur la vidéo header */

  /* --- Typo --- */
  --display: "Cormorant Garamond", Georgia, serif;
  --label:   "Jost", "Helvetica Neue", Arial, sans-serif;
  --script:  "Sacramento", "Cormorant Garamond", cursive;
  --sig-scale: 1.3;  /* ajuste l'équilibre visuel selon la police signature */

  /* --- Layout --- */
  --gutter: clamp(1.5rem, 5vw, 6rem);
  --maxw: 1320px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--label);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 300;
  overflow-x: hidden;
}

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

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

/* =====================  TYPOGRAPHIE  ===================== */

.eyebrow {
  font-family: var(--label);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.eyebrow.on-dark { color: var(--on-dark-soft); }
.eyebrow .dot {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  margin: 0 0.7em;
  vertical-align: middle;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.display-xl { font-size: clamp(3.2rem, 9vw, 8.5rem); }
.display-l  { font-size: clamp(2.2rem, 4.6vw, 4.4rem); }
.display-m  { font-size: clamp(1.8rem, 3.4vw, 3rem); }

.lead {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.45;
  font-weight: 300;
  color: var(--ink-soft);
  font-style: italic;
}

.body-text { color: var(--ink-soft); max-width: 52ch; }
.body-text p + p { margin-top: 1.1em; }

.italic-serif { font-family: var(--display); font-style: italic; }

/* =====================  STRUCTURE  ===================== */

section { position: relative; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section-pad { padding-top: clamp(5rem, 12vh, 11rem); padding-bottom: clamp(5rem, 12vh, 11rem); }

.section-head { display: flex; flex-direction: column; gap: 1.2rem; max-width: 38ch; }
.section-head h2 { text-wrap: balance; }
.section-head .eyebrow { order: -1; }

/* =====================  PLACEHOLDERS  ===================== */

.ph {
  position: relative;
  background-color: var(--bg-2);
  background-image: repeating-linear-gradient(
    -45deg,
    transparent, transparent 11px,
    color-mix(in oklab, var(--ink) 6%, transparent) 11px,
    color-mix(in oklab, var(--ink) 6%, transparent) 12px
  );
  overflow: hidden;
}
.ph::after {
  content: attr(data-ph);
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: center;
  padding: 1rem;
}
.ph.on-dark {
  background-color: var(--dark-2);
  background-image: repeating-linear-gradient(
    -45deg,
    transparent, transparent 11px,
    color-mix(in oklab, white 6%, transparent) 11px,
    color-mix(in oklab, white 6%, transparent) 12px
  );
}
.ph.on-dark::after { color: var(--on-dark-soft); }

/* =====================  NAV  ===================== */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(1.1rem, 2.5vw, 1.9rem) var(--gutter);
  transition: background .5s var(--ease), backdrop-filter .5s var(--ease),
              padding .5s var(--ease), border-color .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(120%);
  border-bottom-color: var(--line-soft);
  padding-top: clamp(0.8rem, 1.6vw, 1.1rem);
  padding-bottom: clamp(0.8rem, 1.6vw, 1.1rem);
}

/* logo */
.logo { display: flex; flex-direction: row; align-items: center; gap: 0.6rem; cursor: pointer; }
.logo-words { display: flex; flex-direction: column; line-height: 1; gap: 0.2em; white-space: nowrap; }
.logo-emblem {
  flex: none; width: 104px; height: 66px;
  background: url(assets/logo-gold.png) left center / contain no-repeat;
  transition: opacity .4s var(--ease);
}
html[data-logotint="white"] .logo-emblem { background-image: url(assets/logo-white.png); }
.nav.scrolled .logo-emblem { background-image: url(assets/logo-full-dark.png) !important; }
html[data-mood="light"] .nav:not(.scrolled) .logo-emblem { background-image: url(assets/logo-full-dark.png); }
.logo .mark {
  font-family: var(--script);
  font-size: calc(2rem * var(--sig-scale, 1));
  font-weight: 400;
  color: var(--on-dark);
  letter-spacing: 0.01em;
  transition: color .5s var(--ease), font-family .2s;
}
.logo .sub {
  font-family: var(--label);
  font-size: 0.6rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
  padding-left: 0.2em;
  transition: color .5s var(--ease);
}
.logo .sub .sep { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.5; vertical-align: middle; margin: 0 0.6em; }
.nav.scrolled .logo .mark { color: var(--ink); }
.nav.scrolled .logo .sub  { color: var(--ink-faint); }

/* logo style = lettrage (caps) variant — sans-serif espacé */
html[data-logo="caps"] .logo .mark {
  font-family: var(--label);
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.nav-links { display: flex; align-items: center; gap: clamp(1.4rem, 2.6vw, 2.8rem); }
.nav-links a {
  font-family: var(--label);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--on-dark-soft);
  position: relative;
  padding: 0.4em 0;
  transition: color .35s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.nav-links a:hover { color: var(--on-dark); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav.scrolled .nav-links a { color: var(--ink-soft); }
.nav.scrolled .nav-links a:hover { color: var(--ink); }

.nav-cta {
  font-family: var(--label);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0.75em 1.5em;
  border: 1px solid color-mix(in oklab, var(--on-dark) 45%, transparent);
  color: var(--on-dark);
  border-radius: 999px;
  transition: all .4s var(--ease);
}
.nav-cta:hover { background: var(--on-dark); color: var(--dark); border-color: var(--on-dark); }
.nav.scrolled .nav-cta { border-color: var(--accent); color: var(--accent); }
.nav.scrolled .nav-cta:hover { background: var(--accent); color: var(--bg); }

.nav-burger { display: none; }

/* =====================  HEADER / HERO  ===================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  background: var(--dark);
  color: var(--on-dark);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; filter: grayscale(0.3) brightness(0.82) contrast(1.04); }
/* voile sombre/grisé pour une ambiance plus intimiste */
.hero-film { position: absolute; inset: 0; z-index: 2; background: oklch(0.12 0.012 50 / var(--hero-film, 0.45)); }

/* cinematic animated fallback (montré pendant le chargement de la vidéo) */
.hero-fallback {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(120% 90% at 70% 15%, oklch(0.3 0.02 55) 0%, transparent 55%),
    radial-gradient(100% 80% at 20% 90%, oklch(0.26 0.03 40) 0%, transparent 50%),
    linear-gradient(160deg, oklch(0.21 0.012 55), oklch(0.15 0.012 50));
  animation: heroDrift 26s ease-in-out infinite alternate;
  transform-origin: center;
}
@keyframes heroDrift {
  0%   { transform: scale(1.08) translate(0, 0); }
  100% { transform: scale(1.18) translate(-2%, -2%); }
}
.hero-grain {
  position: absolute; inset: 0; z-index: 3; opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-vignette {
  position: absolute; inset: 0; z-index: 4;
  background: linear-gradient(to top, oklch(0.13 0.01 50 / 0.85) 0%, transparent 42%),
              linear-gradient(to bottom, oklch(0.13 0.01 50 / 0.55) 0%, transparent 30%);
}
.hero-tag {
  position: absolute; top: auto; bottom: 1.6rem; right: 1.6rem; left: auto; transform: none;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--on-dark-soft);
  border: 1px dashed color-mix(in oklab, var(--on-dark) 26%, transparent);
  padding: 0.55em 1em; border-radius: 4px;
  pointer-events: none; opacity: 0.55; z-index: 2;
}

.hero-inner { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(3.5rem, 9vh, 7rem); }
.hero-inner .eyebrow { margin-bottom: 1.4rem; }
.hero h1 { color: var(--on-dark); max-width: 20ch; font-size: clamp(2.3rem, 4.9vw, 4.9rem); line-height: 1.1; }
.hero h1 em { font-style: italic; color: var(--accent-soft); }
.hero-sub {
  margin-top: 2.4rem;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.hero-sub p { max-width: 38ch; color: var(--on-dark-soft); font-size: 1rem; }

.scroll-cue {
  display: flex; align-items: center; gap: 0.8rem; cursor: pointer;
  font-family: var(--label); font-size: 0.66rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--on-dark-soft); white-space: nowrap;
}
.scroll-cue .line {
  width: 54px; height: 1px; background: var(--on-dark-soft); position: relative; overflow: hidden;
}
.scroll-cue .line::after {
  content: ""; position: absolute; inset: 0; background: var(--accent-soft);
  transform: translateX(-100%); animation: cueSlide 2.4s var(--ease) infinite;
}
@keyframes cueSlide { 0% { transform: translateX(-100%);} 60%,100% { transform: translateX(100%);} }

/* =====================  À PROPOS  ===================== */

.about { background: var(--bg); }
.about-grid {
  display: grid; grid-template-columns: 0.85fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem); align-items: start;
}
.about-portrait { position: relative; align-self: start; position: sticky; top: 96px; }
.about-portrait .frame { aspect-ratio: 3 / 4; border-radius: 2px; overflow: hidden; background: var(--bg-2); }
.about-portrait .frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.about-portrait .ph { aspect-ratio: 3 / 4; border-radius: 2px; }
.about-portrait .caption {
  position: absolute; bottom: -1.3rem; left: -1.3rem;
  background: var(--bg); padding: 0.7rem 1.3rem; border: 1px solid var(--line);
  font-family: var(--script); font-size: calc(1.7rem * var(--sig-scale, 1)); color: var(--accent); line-height: 1.1;
}
.about-text h2 { margin-bottom: 1.8rem; }
.about-text .lead { margin-bottom: 1.6rem; }
.about-story .lead { font-size: 1.18rem; line-height: 1.5; color: var(--ink); }
.about-pull {
  font-family: var(--display); font-style: italic; font-weight: 300;
  font-size: clamp(1.5rem, 2.4vw, 2.15rem); line-height: 1.3; color: var(--accent);
  max-width: 24ch; margin: 2.2rem 0;
  padding-left: 1.3rem; border-left: 2px solid var(--accent-soft);
}
.signature-line {
  margin-top: 2.4rem; display: flex; align-items: baseline; gap: 1rem;
  font-family: var(--script); font-size: calc(2.2rem * var(--sig-scale, 1)); color: var(--ink);
}
.signature-line .role {
  font-family: var(--label); font-size: 0.68rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--ink-faint);
}

.stats { display: flex; gap: clamp(2rem,5vw,4rem); margin-top: 3rem; flex-wrap: wrap; }
.stat .num { font-family: var(--display); font-size: 2.8rem; line-height: 1; color: var(--accent); }
.stat .lbl { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); margin-top: 0.5rem; }

/* =====================  SERVICES  ===================== */

.services { background: var(--bg-2); }
.services-head { display: grid; grid-template-columns: 1.45fr 1fr; align-items: end; gap: 1.4rem clamp(2rem, 5vw, 4.5rem); margin-bottom: clamp(3rem, 6vw, 5rem); }
.services-head .section-head { max-width: none; }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.8rem); }
@media (max-width: 1080px) and (min-width: 821px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
.service-card {
  border: 1px solid var(--line); border-radius: 4px; background: var(--bg);
  padding: clamp(1.7rem, 3vw, 2.6rem); display: flex; flex-direction: column; gap: 0.8rem;
  transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.service-card:hover { border-color: var(--accent-soft); transform: translateY(-4px); }
.service-card .idx { font-family: var(--display); font-style: italic; font-size: 1.3rem; color: var(--accent); }
.service-card h3 { font-size: clamp(1.5rem, 2.2vw, 1.95rem); }
.service-card p { color: var(--ink-soft); font-size: 0.95rem; }

/* =====================  RÉALISATIONS  ===================== */

.work { background: var(--bg); }
.work-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2.2rem);
  margin-top: clamp(3rem, 6vw, 5rem);
}
.film { cursor: pointer; }
.film.feature { grid-column: 1 / -1; }
.film-media {
  position: relative; aspect-ratio: 16 / 9; border-radius: 2px; overflow: hidden;
}
.film.feature .film-media { aspect-ratio: 21 / 9; }
.film-media .ph { position: absolute; inset: 0; transition: transform 1.4s var(--ease); }
.film-poster {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.film:hover .film-media .ph,
.film:hover .film-poster { transform: scale(1.05); }
.film-media .overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to top, oklch(0.15 0.01 50 / 0.55), transparent 55%);
  opacity: 0; transition: opacity .5s var(--ease);
}
.film:hover .film-media .overlay { opacity: 1; }
.play-btn {
  position: absolute; z-index: 3; top: 50%; left: 50%;
  width: 74px; height: 74px; transform: translate(-50%,-50%) scale(0.85);
  border: 1px solid color-mix(in oklab, white 70%, transparent);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: white; opacity: 0; transition: all .5s var(--ease);
  backdrop-filter: blur(2px);
}
.film:hover .play-btn { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.play-btn svg { width: 20px; height: 20px; margin-left: 3px; }
.film-meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 1.1rem; gap: 1rem; }
.film-meta h3 { font-size: clamp(1.3rem, 2vw, 1.8rem); }
.film-meta .place { font-family: var(--label); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); white-space: nowrap; }

/* =====================  TÉMOIGNAGES (carrousel centré)  ===================== */

.testi { background: var(--dark); color: var(--on-dark); text-align: center; }
.testi .eyebrow { color: var(--on-dark-soft); }
.testi-wrap { display: flex; flex-direction: column; align-items: center; }
.testi-carousel {
  display: flex; align-items: center; gap: clamp(0.8rem, 3vw, 2.5rem);
  width: 100%; max-width: 1000px; margin: clamp(2rem, 4vw, 3.2rem) auto 0;
}
.testi-stage { position: relative; display: grid; flex: 1; min-width: 0; }
.t-slide {
  grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.t-slide.active { opacity: 1; transform: none; pointer-events: auto; }
.t-slide .q-mark { font-family: var(--display); font-size: 5rem; line-height: 0.5; color: var(--accent-soft); margin-bottom: 1.6rem; }
.t-slide blockquote {
  font-family: var(--display); font-weight: 300; font-style: italic;
  font-size: clamp(1.2rem, 1.9vw, 1.62rem); line-height: 1.55; color: var(--on-dark);
  max-width: 52ch; margin: 0 auto;
}
.t-slide blockquote p + p { margin-top: 0.9em; }
.t-slide figcaption { margin-top: 1.9rem; font-family: var(--label); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--on-dark-soft); }
.t-slide figcaption b { color: var(--accent-soft); font-weight: 400; }
.testi-arrow {
  flex: none; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid color-mix(in oklab, var(--on-dark) 30%, transparent);
  background: transparent; color: var(--on-dark); cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all .4s var(--ease);
}
.testi-arrow:hover { border-color: var(--accent-soft); color: var(--accent-soft); }
.testi-arrow svg { width: 22px; height: 22px; }
.testi-dots { display: flex; gap: 0.6rem; justify-content: center; margin-top: clamp(2rem, 4vw, 3rem); }
.testi-dots button { width: 8px; height: 8px; border-radius: 50%; border: none; padding: 0; cursor: pointer; background: color-mix(in oklab, var(--on-dark) 28%, transparent); transition: all .4s var(--ease); }
.testi-dots button.active { width: 26px; border-radius: 4px; background: var(--accent-soft); }

/* =====================  CONTACT  ===================== */

.contact { background: var(--bg); }
.contact-inner { max-width: 880px; margin: 0 auto; text-align: center; }
.contact-head { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }
.contact-head h2 { margin-top: 0.3rem; }
.contact-intro { font-family: var(--display); font-style: italic; font-size: clamp(1.2rem, 2vw, 1.55rem); color: var(--ink-soft); }

.contact-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: clamp(2.2rem, 5vw, 3.4rem) 0 clamp(2.2rem, 4vw, 3rem); text-align: left; }
.cs-opt {
  display: flex; align-items: center; gap: 1.1rem; padding: 1.25rem 1.4rem;
  border: 1px solid var(--line); border-radius: 4px; background: transparent;
  cursor: pointer; transition: all .4s var(--ease); font: inherit;
}
.cs-opt:hover { border-color: var(--accent-soft); }
.cs-opt.active { border-color: var(--accent); background: var(--accent-tint); }
.cs-ic {
  flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: var(--accent); transition: all .4s var(--ease);
}
.cs-opt.active .cs-ic { border-color: var(--accent); background: var(--accent); color: var(--bg); }
.cs-ic svg { width: 20px; height: 20px; }
.cs-body { display: flex; flex-direction: column; gap: 0.25rem; text-align: left; }
.cs-t { font-family: var(--display); font-size: 1.35rem; font-weight: 400; color: var(--ink); line-height: 1.1; margin-left: -0.06em; }
.cs-s { font-family: var(--label); font-size: 0.64rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-faint); }

.cpanel { display: none; }
.cpanel.active { display: block; animation: fade .5s var(--ease); }
#panel-visio.active { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; padding: 0.5rem 0; }
.cpanel-lead { font-family: var(--display); font-style: italic; font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.5; color: var(--ink-soft); max-width: 48ch; margin: 0 auto; }
.cpanel-note { font-size: 0.85rem; color: var(--ink-faint); }
.link-sw { background: none; border: none; padding: 0; font: inherit; font-size: 0.85rem; color: var(--accent); cursor: pointer; border-bottom: 1px solid var(--accent); }
.link-sw:hover { color: var(--accent-deep); }

.btn {
  font-family: var(--label); font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 1.05em 2em; border-radius: 999px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--bg);
  cursor: pointer; transition: all .4s var(--ease); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 0.7em;
}
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.ghost:hover { background: var(--accent); color: var(--bg); transform: translateY(-2px); }

/* form */
#panel-form { max-width: 640px; margin: 0 auto; text-align: left; }
.contact-form { display: grid; gap: 1.4rem; }
.field { position: relative; display: flex; flex-direction: column; gap: 0.5rem; }
.field.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.field label, .field .field-label {
  font-family: var(--label); font-size: 0.66rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-faint);
}
.field input, .field textarea {
  font-family: var(--display); font-size: 1.15rem; color: var(--ink);
  background: transparent; border: none; border-bottom: 1px solid var(--line);
  padding: 0.6em 0; outline: none; transition: border-color .4s var(--ease); width: 100%;
}
.field textarea { resize: vertical; min-height: 70px; line-height: 1.5; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); opacity: 0.6; }
.field.invalid input, .field.invalid textarea { border-bottom-color: var(--accent-deep); }
.field .err { font-size: 0.68rem; color: var(--accent-deep); letter-spacing: 0.04em; text-transform: none; font-family: var(--label); display: none; }
.field.invalid .err { display: block; }
.form-actions { margin-top: 0.6rem; display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.form-note { font-size: 0.78rem; color: var(--ink-faint); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error {
  display: none; font-family: var(--label); font-size: 0.78rem;
  color: var(--accent-deep); letter-spacing: 0.02em; margin-top: -0.4rem;
}
.form-error.show { display: block; }

.form-success {
  display: none; flex-direction: column; gap: 1rem; padding: 2.5rem 0;
}
.form-success.show { display: flex; }
.form-success .check {
  width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--accent);
  display: flex; align-items: center; justify-content: center; color: var(--accent);
}
.form-success h3 { font-size: 2rem; }
.contact-form.hide { display: none; }

/* =====================  FOOTER  ===================== */

.footer { background: var(--dark); color: var(--on-dark); padding: clamp(4rem,8vw,7rem) 0 2.5rem; }
.footer-top { display: flex; justify-content: space-between; gap: 3rem; flex-wrap: wrap; align-items: flex-start; }
/* le logo du footer = lockup complet (image) */
.footer .logo { cursor: pointer; }
.footer-logo {
  width: clamp(176px, 21vw, 232px); aspect-ratio: 1600 / 1009;
  background: url(assets/logo-gold.png) left center / contain no-repeat;
  cursor: pointer; margin: -0.4rem 0 0 -0.3rem;
}
html[data-logotint="white"] .footer-logo { background-image: url(assets/logo-white.png); }
.footer .tagline { color: var(--on-dark-soft); margin-top: 1rem; max-width: 30ch; font-size: 0.95rem; }
.footer-nav { display: flex; flex-direction: column; gap: 0.9rem; }
.footer-nav a, .footer-contact a { font-family: var(--label); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-soft); transition: color .35s var(--ease); }
.footer-nav a:hover, .footer-contact a:hover { color: var(--accent-soft); }
.footer-contact { display: flex; flex-direction: column; gap: 0.9rem; }
.footer-bottom {
  margin-top: clamp(3rem,6vw,5rem); padding-top: 1.8rem; border-top: 1px solid color-mix(in oklab, var(--on-dark) 14%, transparent);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-family: var(--label); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-soft);
}

/* =====================  LIGHTBOX  ===================== */

.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center; padding: var(--gutter);
  background: oklch(0.13 0.01 50 / 0.92); backdrop-filter: blur(6px);
}
.lightbox.show { display: flex; animation: fade .4s var(--ease); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox-inner { width: min(1000px, 100%); }
.lightbox .ph { aspect-ratio: 16/9; border-radius: 3px; }
#lbMedia video { display: block; width: 100%; aspect-ratio: 16/9; border-radius: 3px; background: #000; object-fit: contain; }
.lightbox .lb-meta { margin-top: 1.2rem; display: flex; justify-content: space-between; color: var(--on-dark); align-items: baseline; }
.lightbox .lb-meta h3 { color: var(--on-dark); font-size: 1.8rem; }
.lightbox .lb-meta .place { font-family: var(--label); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-dark-soft); }
.lb-close { position: absolute; top: 2rem; right: 2.5rem; color: var(--on-dark); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer; font-family: var(--label); display: flex; gap: 0.6rem; align-items: center; }
.lb-close:hover { color: var(--accent-soft); }

/* =====================  REVEAL (scroll)  ===================== */

[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .1s; }
[data-reveal][data-delay="2"] { transition-delay: .2s; }
[data-reveal][data-delay="3"] { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-fallback { animation: none; }
}

/* =====================  RESPONSIVE  ===================== */

@media (max-width: 900px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .about-grid { grid-template-columns: 1fr; }
  .services-head { grid-template-columns: 1fr; }
  .contact-switch { grid-template-columns: 1fr; }
  .about-portrait { max-width: 420px; position: relative; top: 0; }
  .work-grid { grid-template-columns: 1fr; }
  .film.feature .film-media { aspect-ratio: 16/9; }
  .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .field.row2 { grid-template-columns: 1fr; }
  .hero-sub { flex-direction: column; align-items: flex-start; }
  .scroll-cue { display: none; }
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0; z-index: 49; background: var(--dark); color: var(--on-dark);
  display: none; flex-direction: column; justify-content: center; gap: 1.5rem; padding: var(--gutter);
}
.mobile-menu.show { display: flex; animation: fade .4s var(--ease); }
.mobile-menu a { font-family: var(--display); font-size: 2.4rem; color: var(--on-dark); }
.mobile-menu a:hover { color: var(--accent-soft); }
.nav-burger {
  flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 6px;
}
.nav-burger span { width: 26px; height: 1.5px; background: var(--on-dark); transition: background .4s; }
.nav.scrolled .nav-burger span { background: var(--ink); }

/* =====================  AMBIANCE HEADER CLAIRE (toggle Tweaks)  ===================== */

html[data-mood="light"] .hero { background: var(--bg); color: var(--ink); }
html[data-mood="light"] .hero-fallback {
  background:
    radial-gradient(120% 90% at 70% 12%, oklch(0.97 0.012 80) 0%, transparent 55%),
    radial-gradient(100% 80% at 18% 92%, var(--accent-tint) 0%, transparent 55%),
    linear-gradient(160deg, oklch(0.95 0.012 78), oklch(0.9 0.014 70));
}
html[data-mood="light"] .hero-grain { opacity: 0.04; mix-blend-mode: multiply; }
html[data-mood="light"] .hero-vignette {
  background: linear-gradient(to top, oklch(0.9 0.012 72 / 0.6) 0%, transparent 38%);
}
html[data-mood="light"] .hero-tag { color: var(--ink-faint); border-color: var(--line); }
html[data-mood="light"] .hero h1 { color: var(--ink); }
html[data-mood="light"] .hero h1 em { color: var(--accent); }
html[data-mood="light"] .hero-sub p { color: var(--ink-soft); }
html[data-mood="light"] .eyebrow.on-dark { color: var(--ink-faint); }
html[data-mood="light"] .scroll-cue { color: var(--ink-faint); }
html[data-mood="light"] .scroll-cue .line { background: var(--ink-faint); }

/* nav par-dessus un hero clair (avant scroll) */
html[data-mood="light"] .nav:not(.scrolled) .logo .mark { color: var(--ink); }
html[data-mood="light"] .nav:not(.scrolled) .logo .sub  { color: var(--ink-faint); }
html[data-mood="light"] .nav:not(.scrolled) .nav-links a { color: var(--ink-soft); }
html[data-mood="light"] .nav:not(.scrolled) .nav-links a:hover { color: var(--ink); }
html[data-mood="light"] .nav:not(.scrolled) .nav-cta { border-color: var(--accent); color: var(--accent); }
html[data-mood="light"] .nav:not(.scrolled) .nav-cta:hover { background: var(--accent); color: var(--bg); }
html[data-mood="light"] .nav:not(.scrolled) .nav-burger span { background: var(--ink); }

/* texture grain désactivable */
html[data-grain="off"] .hero-grain { display: none; }
