/* ==========================================================================
   Lucas Lemoine — Photographe — Feuille de style principale (thème noir)
   ========================================================================== */

:root {
  --bg: #0b0b0c;
  --bg-raised: #141416;
  --bg-raised-2: #1b1b1e;
  --ink: #f4f3f1;
  --ink-muted: #a3a2a6;
  --ink-faint: #86858a;
  --line: rgba(244, 243, 241, 0.09);
  --line-strong: rgba(244, 243, 241, 0.2);

  /* Violet Krome — utilisé uniquement au survol des boutons/titres cliquables, et en discret clin d'œil dans le footer.
     --violet : couleur exacte de Krome, réservée aux fonds pleins (texte blanc dessus) et aux liserés décoratifs.
     --violet-bright : même teinte éclaircie, utilisée quand le violet sert de COULEUR DE TEXTE sur fond sombre,
     pour rester lisible (contraste ≥ 4.5:1, conforme WCAG AA). */
  --violet: #753bbd;
  --violet-bright: #a58cea;
  --violet-shadow: rgba(117, 59, 189, 0.45);

  --font-display: "Kanit", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1200px;
  --radius: 6px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  color: var(--ink);
}

p { margin: 0 0 1em; color: var(--ink-muted); }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
::selection { background: rgba(244, 243, 241, 0.2); color: #fff; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.9em;
}

.section { padding-block: clamp(56px, 9vw, 120px); }
.section.tight { padding-block: clamp(40px, 6vw, 80px); }

.section-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }

h1 { font-size: clamp(2.4rem, 5vw + 1rem, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3vw + 1rem, 2.8rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 1vw + 1rem, 1.5rem); }

.lede { font-size: clamp(1.05rem, 0.4vw + 1rem, 1.2rem); color: var(--ink-muted); }

/* ---------- Buttons (CTA bien définis) ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--bg);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.95em 1.9em;
  border-radius: var(--radius);
  border: 1.5px solid var(--btn-bg);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
  box-shadow: 0 16px 32px -16px var(--violet-shadow);
}

.btn:active { transform: translateY(0) scale(0.98); }

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn:disabled:hover {
  transform: none;
  box-shadow: none;
  background: var(--btn-bg);
  border-color: var(--btn-bg);
  color: var(--btn-fg);
}

.btn.outline {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line-strong);
}

.btn.outline:hover {
  background: transparent;
  border-color: var(--violet-bright);
  color: var(--violet-bright);
}

.btn-arrow { display: inline-block; transition: transform 0.3s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 200;
  padding-block: 22px;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.site-header.is-scrolled {
  background: rgba(11, 11, 12, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  padding-block: 14px;
  border-color: var(--line);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
  transition: opacity 0.3s var(--ease);
}
.logo:hover { color: var(--violet-bright); }

.nav-primary { display: flex; align-items: center; gap: clamp(18px, 2vw, 32px); }

.nav-link {
  position: relative;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-muted);
  padding-block: 4px;
  transition: color 0.25s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right 0.35s var(--ease);
}

.nav-link:hover { color: var(--violet-bright); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { right: 0; }
.nav-link[aria-current="page"] { color: var(--ink); }

.header-cta { margin-left: 4px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), width 0.3s var(--ease);
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: flex-end; color: var(--ink); overflow: hidden; }

.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-media img { animation: hero-zoom 24s ease-in-out infinite alternate; }

/* La vidéo de fond est légèrement assombrie à la source : quelle que soit la luminosité
   du plan en cours, ça ajoute une marge de sécurité au voile dégradé ci-dessous pour que
   le texte reste toujours lisible. */
.hero-media video { filter: brightness(0.8) saturate(0.95); }

@keyframes hero-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 6, 7, 0.48) 0%, rgba(6, 6, 7, 0.66) 55%, rgba(6, 6, 7, 0.95) 100%);
}

.hero-content { padding-block: clamp(90px, 14vw, 140px) clamp(56px, 8vw, 96px); }
.hero p.lede { color: rgba(244, 243, 241, 0.78); max-width: 46ch; }

.hero-scroll {
  position: absolute;
  right: clamp(20px, 5vw, 48px);
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 243, 241, 0.6);
}

.hero-scroll .line { width: 32px; height: 1px; background: rgba(244, 243, 241, 0.4); position: relative; overflow: hidden; }
.hero-scroll .line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateX(-100%);
  animation: scrollline 2.2s var(--ease) infinite;
}

@keyframes scrollline {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal-group.is-visible .reveal-child { opacity: 1; transform: translateY(0); }
.reveal-child { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-group.is-visible .reveal-child:nth-child(1) { transition-delay: 0.05s; }
.reveal-group.is-visible .reveal-child:nth-child(2) { transition-delay: 0.13s; }
.reveal-group.is-visible .reveal-child:nth-child(3) { transition-delay: 0.21s; }
.reveal-group.is-visible .reveal-child:nth-child(4) { transition-delay: 0.29s; }
.reveal-group.is-visible .reveal-child:nth-child(5) { transition-delay: 0.37s; }

/* ---------- Intro ---------- */
.intro-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }

.stat-row { display: flex; gap: clamp(24px, 4vw, 48px); margin-top: 1.8em; flex-wrap: wrap; }
.stat b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: var(--ink); }
.stat span { color: var(--ink-faint); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- Domaines d'intervention (liste sobre, sans dégradé) ---------- */
.specialites { background: var(--bg-raised); }
.specialite-list { margin-top: 2rem; }

.specialite-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.75rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.3s var(--ease);
}

.specialite-item:first-child { border-top: 1px solid var(--line); }

.specialite-item .num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
  min-width: 2.2rem;
}

.specialite-item .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  color: var(--ink-muted);
  transition: color 0.3s var(--ease);
}

.specialite-item .arrow {
  font-size: 1.3rem;
  color: var(--ink-faint);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s var(--ease), transform 0.35s var(--ease);
}

.specialite-item:hover { padding-left: 0.6rem; }
.specialite-item:hover .name { color: var(--ink); }
.specialite-item:hover .arrow { opacity: 1; transform: translateX(0); color: var(--ink); }

/* ---------- Page Projets : filtres par catégorie + recherche ---------- */
.projects-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

/* Bulle "Filtre" qui replie les boutons de catégorie ; ils se déploient
   dans un panneau flottant au clic, positionné juste à côté du bouton. */
.filter-widget { position: relative; }

.filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-muted);
  padding: 0.6em 1.3em;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.filter-toggle:hover { border-color: var(--violet-bright); color: var(--violet-bright); }
.filter-toggle[aria-expanded="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.filter-panel {
  position: absolute;
  top: 50%;
  left: calc(100% + 10px);
  transform: translateY(-50%);
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: min(60vw, 560px);
}

.filter-panel[hidden] { display: none; }

.filter-btn {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-muted);
  padding: 0.6em 1.3em;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.filter-btn:hover { border-color: var(--violet-bright); color: var(--violet-bright); }
.filter-btn.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.project-search { position: relative; width: 100%; max-width: 260px; }

.project-search input {
  width: 100%;
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.62em 1.1em 0.62em 2.5em;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.86rem;
  transition: border-color 0.3s var(--ease);
}

.project-search input::placeholder { color: var(--ink-faint); }
.project-search input:focus { outline: none; border-color: var(--violet-bright); }

.project-search-icon {
  position: absolute;
  left: 0.9em;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-faint);
  pointer-events: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.work-block[hidden] { display: none !important; }

.gallery-empty { text-align: center; padding: 48px 0; color: var(--ink-faint); display: none; }
.gallery-empty.is-visible { display: block; }

/* ---------- Travaux récents : deux blocs côte à côte ---------- */
.works-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 24px); }

.work-block {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  background: var(--bg-raised);
}

.work-block img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.work-block:hover img { transform: scale(1.06); }
.work-block:hover .work-caption { color: var(--violet-bright); }

.work-block::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(6, 6, 7, 0.75) 0%, transparent 45%);
}

.work-caption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 1;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  transition: color 0.3s var(--ease);
}

.work-caption span {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.78rem;
  color: rgba(244, 243, 241, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* ---------- Galerie de projet : mode "brique de maçon" (masonry), les photos s'imbriquent
   selon leur hauteur réelle pour optimiser la place, sans jamais les recadrer. ---------- */
.project-gallery {
  columns: 2;
  column-gap: clamp(14px, 2vw, 24px);
}

.project-block {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-raised);
  cursor: zoom-in;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin-bottom: clamp(14px, 2vw, 24px);
}

.project-block.full { column-span: all; }

.project-block img { display: block; width: 100%; height: auto; transition: transform 0.7s var(--ease); }
.project-block:hover img { transform: scale(1.03); }

.gallery-more { display: flex; justify-content: center; margin-top: clamp(32px, 5vw, 48px); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 6, 7, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
  padding: 5vh 5vw;
}

.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-frame { position: relative; max-width: 900px; width: 100%; transform: scale(0.96); transition: transform 0.35s var(--ease); }
.lightbox.is-open .lightbox-frame { transform: scale(1); }
.lightbox-frame img { width: 100%; max-height: 78vh; object-fit: contain; border-radius: 2px; }
.lightbox-caption { color: rgba(244, 243, 241, 0.75); font-size: 0.85rem; margin-top: 14px; text-align: center; }

.lightbox-close, .lightbox-nav {
  position: absolute;
  background: rgba(244, 243, 241, 0.07);
  border: 1px solid rgba(244, 243, 241, 0.22);
  color: var(--ink);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background 0.25s var(--ease);
}

.lightbox-close:hover, .lightbox-nav:hover { background: rgba(244, 243, 241, 0.16); }
.lightbox-close { top: -56px; right: 0; }
.lightbox-nav.prev { left: clamp(-56px, -6vw, -20px); top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: clamp(-56px, -6vw, -20px); top: 50%; transform: translateY(-50%); }

/* ---------- Page hero (pages internes) ---------- */
.page-hero { padding-block: clamp(120px, 14vw, 160px) clamp(40px, 6vw, 64px); background: var(--bg-raised); }
.page-hero.centered { text-align: center; }
.page-hero.centered .eyebrow, .page-hero.centered .lede { margin-inline: auto; }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 64px); margin-top: clamp(48px, 6vw, 72px); }

.contact-info-card { background: var(--bg-raised); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); height: fit-content; }
.contact-info-card h3 { margin-bottom: 1em; }
.contact-info-card li { padding-block: 12px; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.contact-info-card li:last-child { border-bottom: none; }
.contact-info-card li b { display: block; color: var(--ink-faint); font-family: var(--font-display); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }

.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 0.78rem;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.socials a:hover { background: var(--violet); border-color: var(--violet); color: #fff; }
.socials a svg { display: block; }

/* ---------- Form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-field.full { grid-column: 1 / -1; }

.form-field label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink);
}

.form-field .req { color: var(--ink-faint); }

.form-field input, .form-field select, .form-field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.85em 1em;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-raised);
  color: var(--ink);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.form-field select { color-scheme: dark; }
.form-field textarea { resize: vertical; min-height: 140px; }

.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(244, 243, 241, 0.12);
}

.form-hint { font-size: 0.78rem; color: var(--ink-faint); }
.form-note { font-size: 0.8rem; color: var(--ink-faint); margin-top: 24px; border-top: 1px solid var(--line); padding-top: 18px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Vidéo de projet ---------- */
.video-card { display: flex; flex-direction: column; max-width: 860px; margin-inline: auto; }

.video-media { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--bg-raised); }
.video-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.video-info { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.video-info .title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.05rem, 1.6vw, 1.4rem); }
.video-info .category { font-family: var(--font-display); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); white-space: nowrap; padding-top: 0.3em; }

.film-credits {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--line);
}

.film-credits li span { display: block; font-family: var(--font-display); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faint); margin-bottom: 6px; }

/* ---------- Badge de récompense (rameaux de laurier de part et d'autre du texte) ---------- */
.award-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 4vw, 36px);
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--line);
  text-align: center;
}

.award-badge img { height: clamp(52px, 7vw, 80px); width: auto; flex-shrink: 0; }
.award-badge .laurel-right { transform: scaleX(-1); }

.award-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(0.92rem, 1.3vw, 1.1rem); color: var(--ink); margin: 0 0 6px; }
.award-subtitle { font-family: var(--font-display); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-faint); margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--bg-raised); text-align: center; }
.cta-band .cta-row { justify-content: center; }

.cta-band-media { position: absolute; inset: 0; z-index: 0; }
.cta-band-media img { width: 100%; height: 100%; object-fit: cover; }

/* Voile sombre au-dessus de l'image pour garantir un contraste texte suffisant (WCAG AA),
   quelle que soit la luminosité de la photo utilisée en arrière-plan. */
.cta-band-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 6, 7, 0.78) 0%, rgba(6, 6, 7, 0.86) 100%);
}

.cta-band .container { position: relative; z-index: 1; }

/* ---------- Legal pages ---------- */
.legal-body h2 { margin-top: 1.8em; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--ink-muted); }
.legal-body li { margin-bottom: 0.5em; }

.legal-pending {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 0.88rem;
  color: var(--ink-faint);
  background: var(--bg-raised);
  margin-bottom: 2em;
}

/* ---------- 404 ---------- */
.error-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.error-code { font-family: var(--font-display); font-weight: 700; font-size: clamp(4.5rem, 15vw, 9rem); line-height: 1; color: var(--ink); margin-bottom: 0.15em; }

/* ---------- Footer (seul endroit avec une mini touche violette) ---------- */
.site-footer {
  background: var(--bg);
  padding-block: clamp(48px, 6vw, 72px) 28px;
  border-top: 1px solid var(--violet);
  border-top-color: rgba(139, 92, 246, 0.28);
  position: relative;
}

.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(24px, 4vw, 40px); margin-bottom: clamp(28px, 4vw, 44px); }

.footer-brand p { color: var(--ink-faint); max-width: 32ch; margin-top: 12px; }

.footer-col h4 { font-family: var(--font-display); font-size: 0.72rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-faint); margin-bottom: 1.1em; }
.footer-col li { margin-bottom: 0.7em; }
.footer-col a { color: var(--ink-muted); transition: color 0.25s var(--ease); }
.footer-col a:hover { color: var(--violet-bright); }

.footer-bottom {
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--ink-faint);
}

.footer-dot { color: var(--violet); opacity: 0.7; }

/* ---------- Mobile nav drawer ---------- */
@media (max-width: 860px) {
  .nav-primary {
    position: fixed;
    inset: 0 0 0 32%;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 26px;
    padding: 32px;
    background: var(--bg-raised);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    z-index: 210;
  }

  .nav-primary.is-open { transform: translateX(0); }
  .nav-link { font-size: 1.15rem; }

  .nav-toggle { display: flex; z-index: 220; }

  body.nav-is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-is-open .nav-toggle span:nth-child(2) { opacity: 0; width: 0; }
  body.nav-is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: var(--radius);
  z-index: 500;
  transition: top 0.25s var(--ease);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-child, .project-block, .hero-media img, .hero-scroll .line::after {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .intro-grid, .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .film-credits { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .works-grid { grid-template-columns: 1fr; }
  .project-gallery { columns: 1; }
  /* Pas assez de place pour déployer les bulles sur le côté : elles
     redescendent sous le bouton "Filtre" comme un petit menu. */
  .filter-panel {
    top: calc(100% + 10px);
    left: 0;
    transform: none;
    max-width: min(90vw, 420px);
  }
  .specialite-item { grid-template-columns: auto 1fr; }
  .specialite-item .arrow { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .film-credits { grid-template-columns: 1fr 1fr; }
  .lightbox-nav { width: 36px; height: 36px; }
  .lightbox-nav.prev { left: 6px; }
  .lightbox-nav.next { right: 6px; }
  .lightbox-close { top: 6px; right: 6px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .film-credits { grid-template-columns: 1fr; }
  .nav-primary { inset: 0; }
}
